@juo/orion-extensions 0.11.0 → 0.11.1-staging.2

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.
Files changed (2) hide show
  1. package/dist/extensions.js +1010 -1470
  2. package/package.json +3 -3
@@ -1,22 +1,12 @@
1
1
  var __defProp = Object.defineProperty;
2
- var __defNormalProp = (obj, key2, value) => key2 in obj ? __defProp(obj, key2, { enumerable: true, configurable: true, writable: true, value }) : obj[key2] = value;
3
- var __publicField = (obj, key2, value) => {
4
- __defNormalProp(obj, typeof key2 !== "symbol" ? key2 + "" : key2, value);
5
- return value;
6
- };
7
- var __accessCheck = (obj, member, msg) => {
8
- if (!member.has(obj))
9
- throw TypeError("Cannot " + msg);
10
- };
11
- var __privateGet = (obj, member, getter) => {
12
- __accessCheck(obj, member, "read from private field");
13
- return getter ? getter.call(obj) : member.get(obj);
14
- };
15
- var __privateAdd = (obj, member, value) => {
16
- if (member.has(obj))
17
- throw TypeError("Cannot add the same private member more than once");
18
- member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
2
+ var __typeError = (msg) => {
3
+ throw TypeError(msg);
19
4
  };
5
+ var __defNormalProp = (obj, key2, value) => key2 in obj ? __defProp(obj, key2, { enumerable: true, configurable: true, writable: true, value }) : obj[key2] = value;
6
+ var __publicField = (obj, key2, value) => __defNormalProp(obj, typeof key2 !== "symbol" ? key2 + "" : key2, value);
7
+ var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
8
+ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
9
+ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
20
10
  import { effect, injectContext, createCeRenderer, defineBlock, SubscriptionServiceContext, ProductServiceContext, LoginServiceContext, StateContext, WorkflowServiceContext, registerBlock } from "@juo/orion-core";
21
11
  /**
22
12
  * @vue/shared v3.5.13
@@ -27,8 +17,7 @@ import { effect, injectContext, createCeRenderer, defineBlock, SubscriptionServi
27
17
  // @__NO_SIDE_EFFECTS__
28
18
  function makeMap(str) {
29
19
  const map = /* @__PURE__ */ Object.create(null);
30
- for (const key2 of str.split(","))
31
- map[key2] = 1;
20
+ for (const key2 of str.split(",")) map[key2] = 1;
32
21
  return (val) => val in map;
33
22
  }
34
23
  const EMPTY_OBJ = {};
@@ -178,8 +167,7 @@ function includeBooleanAttr(value) {
178
167
  return !!value || value === "";
179
168
  }
180
169
  function looseCompareArrays(a2, b) {
181
- if (a2.length !== b.length)
182
- return false;
170
+ if (a2.length !== b.length) return false;
183
171
  let equal = true;
184
172
  for (let i2 = 0; equal && i2 < a2.length; i2++) {
185
173
  equal = looseEqual(a2[i2], b[i2]);
@@ -187,8 +175,7 @@ function looseCompareArrays(a2, b) {
187
175
  return equal;
188
176
  }
189
177
  function looseEqual(a2, b) {
190
- if (a2 === b)
191
- return true;
178
+ if (a2 === b) return true;
192
179
  let aValidType = isDate(a2);
193
180
  let bValidType = isDate(b);
194
181
  if (aValidType || bValidType) {
@@ -517,15 +504,13 @@ function endBatch() {
517
504
  ;
518
505
  e2.trigger();
519
506
  } catch (err) {
520
- if (!error)
521
- error = err;
507
+ if (!error) error = err;
522
508
  }
523
509
  }
524
510
  e2 = next;
525
511
  }
526
512
  }
527
- if (error)
528
- throw error;
513
+ if (error) throw error;
529
514
  }
530
515
  function prepareDeps(sub) {
531
516
  for (let link = sub.deps; link; link = link.nextDep) {
@@ -541,8 +526,7 @@ function cleanupDeps(sub) {
541
526
  while (link) {
542
527
  const prev = link.prevDep;
543
528
  if (link.version === -1) {
544
- if (link === tail)
545
- tail = prev;
529
+ if (link === tail) tail = prev;
546
530
  removeSub(link);
547
531
  removeDep(link);
548
532
  } else {
@@ -720,8 +704,7 @@ class Dep {
720
704
  notify(debugInfo) {
721
705
  startBatch();
722
706
  try {
723
- if (false)
724
- ;
707
+ if (false) ;
725
708
  for (let link = this.subs; link; link = link.prevSub) {
726
709
  if (link.sub.notify()) {
727
710
  ;
@@ -746,8 +729,7 @@ function addSub(link) {
746
729
  const currentTail = link.dep.subs;
747
730
  if (currentTail !== link) {
748
731
  link.prevSub = currentTail;
749
- if (currentTail)
750
- currentTail.nextSub = link;
732
+ if (currentTail) currentTail.nextSub = link;
751
733
  }
752
734
  link.dep.subs = link;
753
735
  }
@@ -847,8 +829,7 @@ function getDepFromReactive(object, key2) {
847
829
  }
848
830
  function reactiveReadArray(array) {
849
831
  const raw = toRaw(array);
850
- if (raw === array)
851
- return raw;
832
+ if (raw === array) return raw;
852
833
  track$1(raw, "iterate", ARRAY_ITERATE_KEY);
853
834
  return isShallow(array) ? raw : raw.map(toReactive);
854
835
  }
@@ -1026,8 +1007,7 @@ const builtInSymbols = new Set(
1026
1007
  /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((key2) => key2 !== "arguments" && key2 !== "caller").map((key2) => Symbol[key2]).filter(isSymbol)
1027
1008
  );
1028
1009
  function hasOwnProperty$2(key2) {
1029
- if (!isSymbol(key2))
1030
- key2 = String(key2);
1010
+ if (!isSymbol(key2)) key2 = String(key2);
1031
1011
  const obj = toRaw(this);
1032
1012
  track$1(obj, "has", key2);
1033
1013
  return obj.hasOwnProperty(key2);
@@ -1038,8 +1018,7 @@ class BaseReactiveHandler {
1038
1018
  this._isShallow = _isShallow;
1039
1019
  }
1040
1020
  get(target, key2, receiver) {
1041
- if (key2 === "__v_skip")
1042
- return target["__v_skip"];
1021
+ if (key2 === "__v_skip") return target["__v_skip"];
1043
1022
  const isReadonly2 = this._isReadonly, isShallow2 = this._isShallow;
1044
1023
  if (key2 === "__v_isReactive") {
1045
1024
  return !isReadonly2;
@@ -1667,16 +1646,14 @@ let activeWatcher = void 0;
1667
1646
  function onWatcherCleanup(cleanupFn, failSilently = false, owner = activeWatcher) {
1668
1647
  if (owner) {
1669
1648
  let cleanups = cleanupMap.get(owner);
1670
- if (!cleanups)
1671
- cleanupMap.set(owner, cleanups = []);
1649
+ if (!cleanups) cleanupMap.set(owner, cleanups = []);
1672
1650
  cleanups.push(cleanupFn);
1673
1651
  }
1674
1652
  }
1675
1653
  function watch$1(source, cb, options = EMPTY_OBJ) {
1676
1654
  const { immediate, deep, once, scheduler: scheduler2, augmentJob, call } = options;
1677
1655
  const reactiveGetter = (source2) => {
1678
- if (deep)
1679
- return source2;
1656
+ if (deep) return source2;
1680
1657
  if (isShallow(source2) || deep === false || deep === 0)
1681
1658
  return traverse(source2, 1);
1682
1659
  return traverse(source2);
@@ -1703,8 +1680,7 @@ function watch$1(source, cb, options = EMPTY_OBJ) {
1703
1680
  return reactiveGetter(s2);
1704
1681
  } else if (isFunction(s2)) {
1705
1682
  return call ? call(s2, 2) : s2();
1706
- } else
1707
- ;
1683
+ } else ;
1708
1684
  });
1709
1685
  } else if (isFunction(source)) {
1710
1686
  if (cb) {
@@ -1795,8 +1771,7 @@ function watch$1(source, cb, options = EMPTY_OBJ) {
1795
1771
  if (call) {
1796
1772
  call(cleanups, 4);
1797
1773
  } else {
1798
- for (const cleanup2 of cleanups)
1799
- cleanup2();
1774
+ for (const cleanup2 of cleanups) cleanup2();
1800
1775
  }
1801
1776
  cleanupMap.delete(effect2);
1802
1777
  }
@@ -1857,8 +1832,7 @@ function traverse(value, depth = Infinity, seen) {
1857
1832
  const stack = [];
1858
1833
  let isWarning = false;
1859
1834
  function warn$1(msg, ...args) {
1860
- if (isWarning)
1861
- return;
1835
+ if (isWarning) return;
1862
1836
  isWarning = true;
1863
1837
  pauseTracking();
1864
1838
  const instance = stack.length ? stack[stack.length - 1].component : null;
@@ -2117,8 +2091,7 @@ function flushPostFlushCbs(seen) {
2117
2091
  if (cb.flags & 4) {
2118
2092
  cb.flags &= -2;
2119
2093
  }
2120
- if (!(cb.flags & 8))
2121
- cb();
2094
+ if (!(cb.flags & 8)) cb();
2122
2095
  cb.flags &= -2;
2123
2096
  }
2124
2097
  activePostFlushCbs = null;
@@ -2131,8 +2104,7 @@ function flushJobs(seen) {
2131
2104
  for (flushIndex = 0; flushIndex < queue.length; flushIndex++) {
2132
2105
  const job = queue[flushIndex];
2133
2106
  if (job && !(job.flags & 8)) {
2134
- if (false)
2135
- ;
2107
+ if (false) ;
2136
2108
  if (job.flags & 4) {
2137
2109
  job.flags &= ~1;
2138
2110
  }
@@ -2171,8 +2143,7 @@ function setCurrentRenderingInstance(instance) {
2171
2143
  return prev;
2172
2144
  }
2173
2145
  function withCtx(fn, ctx = currentRenderingInstance, isNonScopedSlot) {
2174
- if (!ctx)
2175
- return fn;
2146
+ if (!ctx) return fn;
2176
2147
  if (fn._n) {
2177
2148
  return fn;
2178
2149
  }
@@ -2427,8 +2398,7 @@ function resolveTransitionHooks(vnode, props, state, instance, postClone) {
2427
2398
  const done = args[1];
2428
2399
  callHook2(hook, args);
2429
2400
  if (isArray(hook)) {
2430
- if (hook.every((hook2) => hook2.length <= 1))
2431
- done();
2401
+ if (hook.every((hook2) => hook2.length <= 1)) done();
2432
2402
  } else if (hook.length <= 1) {
2433
2403
  done();
2434
2404
  }
@@ -2472,8 +2442,7 @@ function resolveTransitionHooks(vnode, props, state, instance, postClone) {
2472
2442
  }
2473
2443
  let called = false;
2474
2444
  const done = el[enterCbKey] = (cancelled) => {
2475
- if (called)
2476
- return;
2445
+ if (called) return;
2477
2446
  called = true;
2478
2447
  if (cancelled) {
2479
2448
  callHook2(cancelHook, [el]);
@@ -2505,8 +2474,7 @@ function resolveTransitionHooks(vnode, props, state, instance, postClone) {
2505
2474
  callHook2(onBeforeLeave, [el]);
2506
2475
  let called = false;
2507
2476
  const done = el[leaveCbKey] = (cancelled) => {
2508
- if (called)
2509
- return;
2477
+ if (called) return;
2510
2478
  called = true;
2511
2479
  remove2();
2512
2480
  if (cancelled) {
@@ -2534,8 +2502,7 @@ function resolveTransitionHooks(vnode, props, state, instance, postClone) {
2534
2502
  instance,
2535
2503
  postClone
2536
2504
  );
2537
- if (postClone)
2538
- postClone(hooks2);
2505
+ if (postClone) postClone(hooks2);
2539
2506
  return hooks2;
2540
2507
  }
2541
2508
  };
@@ -2583,8 +2550,7 @@ function getTransitionRawChildren(children, keepComment = false, parentKey) {
2583
2550
  let child = children[i2];
2584
2551
  const key2 = parentKey == null ? child.key : String(parentKey) + String(child.key != null ? child.key : i2);
2585
2552
  if (child.type === Fragment) {
2586
- if (child.patchFlag & 128)
2587
- keyedFragmentCount++;
2553
+ if (child.patchFlag & 128) keyedFragmentCount++;
2588
2554
  ret = ret.concat(
2589
2555
  getTransitionRawChildren(child.children, keepComment, key2)
2590
2556
  );
@@ -2677,8 +2643,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
2677
2643
  }
2678
2644
  } else {
2679
2645
  ref3.value = [refValue];
2680
- if (rawRef.k)
2681
- refs[rawRef.k] = ref3.value;
2646
+ if (rawRef.k) refs[rawRef.k] = ref3.value;
2682
2647
  }
2683
2648
  } else if (!existing.includes(refValue)) {
2684
2649
  existing.push(refValue);
@@ -2691,10 +2656,8 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
2691
2656
  }
2692
2657
  } else if (_isRef) {
2693
2658
  ref3.value = value;
2694
- if (rawRef.k)
2695
- refs[rawRef.k] = value;
2696
- } else
2697
- ;
2659
+ if (rawRef.k) refs[rawRef.k] = value;
2660
+ } else ;
2698
2661
  };
2699
2662
  if (value) {
2700
2663
  doSet.id = -1;
@@ -2874,8 +2837,7 @@ function renderList(source, renderItem, cache, index2) {
2874
2837
  }
2875
2838
  function renderSlot(slots, name, props = {}, fallback, noSlotted) {
2876
2839
  if (currentRenderingInstance.ce || currentRenderingInstance.parent && isAsyncWrapper(currentRenderingInstance.parent) && currentRenderingInstance.parent.ce) {
2877
- if (name !== "default")
2878
- props.name = name;
2840
+ if (name !== "default") props.name = name;
2879
2841
  return openBlock(), createBlock(
2880
2842
  Fragment,
2881
2843
  null,
@@ -2911,20 +2873,16 @@ function renderSlot(slots, name, props = {}, fallback, noSlotted) {
2911
2873
  }
2912
2874
  function ensureValidVNode(vnodes) {
2913
2875
  return vnodes.some((child) => {
2914
- if (!isVNode(child))
2915
- return true;
2916
- if (child.type === Comment)
2917
- return false;
2876
+ if (!isVNode(child)) return true;
2877
+ if (child.type === Comment) return false;
2918
2878
  if (child.type === Fragment && !ensureValidVNode(child.children))
2919
2879
  return false;
2920
2880
  return true;
2921
2881
  }) ? vnodes : null;
2922
2882
  }
2923
2883
  const getPublicInstance = (i2) => {
2924
- if (!i2)
2925
- return null;
2926
- if (isStatefulComponent(i2))
2927
- return getComponentPublicInstance(i2);
2884
+ if (!i2) return null;
2885
+ if (isStatefulComponent(i2)) return getComponentPublicInstance(i2);
2928
2886
  return getPublicInstance(i2.parent);
2929
2887
  };
2930
2888
  const publicPropertiesMap = (
@@ -3013,8 +2971,7 @@ const PublicInstanceProxyHandlers = {
3013
2971
  {
3014
2972
  return globalProperties[key2];
3015
2973
  }
3016
- } else
3017
- ;
2974
+ } else ;
3018
2975
  },
3019
2976
  set({ _: instance }, key2, value) {
3020
2977
  const { data, setupState, ctx } = instance;
@@ -3065,10 +3022,8 @@ function normalizePropsOrEmits(props) {
3065
3022
  ) : props;
3066
3023
  }
3067
3024
  function mergeModels(a2, b) {
3068
- if (!a2 || !b)
3069
- return a2 || b;
3070
- if (isArray(a2) && isArray(b))
3071
- return a2.concat(b);
3025
+ if (!a2 || !b) return a2 || b;
3026
+ if (isArray(a2) && isArray(b)) return a2.concat(b);
3072
3027
  return extend({}, normalizePropsOrEmits(a2), normalizePropsOrEmits(b));
3073
3028
  }
3074
3029
  let shouldCacheAccess = true;
@@ -3129,8 +3084,7 @@ function applyOptions(instance) {
3129
3084
  }
3130
3085
  if (dataOptions) {
3131
3086
  const data = dataOptions.call(publicThis, publicThis);
3132
- if (!isObject$1(data))
3133
- ;
3087
+ if (!isObject$1(data)) ;
3134
3088
  else {
3135
3089
  instance.data = reactive(data);
3136
3090
  }
@@ -3205,10 +3159,8 @@ function applyOptions(instance) {
3205
3159
  if (inheritAttrs != null) {
3206
3160
  instance.inheritAttrs = inheritAttrs;
3207
3161
  }
3208
- if (components)
3209
- instance.components = components;
3210
- if (directives)
3211
- instance.directives = directives;
3162
+ if (components) instance.components = components;
3163
+ if (directives) instance.directives = directives;
3212
3164
  if (serverPrefetch) {
3213
3165
  markAsyncBoundary(instance);
3214
3166
  }
@@ -3274,8 +3226,7 @@ function createWatcher(raw, ctx, publicThis, key2) {
3274
3226
  watch(getter, handler, raw);
3275
3227
  }
3276
3228
  }
3277
- } else
3278
- ;
3229
+ } else ;
3279
3230
  }
3280
3231
  function resolveMergedOptions(instance) {
3281
3232
  const base = instance.type;
@@ -3318,8 +3269,7 @@ function mergeOptions(to, from, strats, asMixin = false) {
3318
3269
  );
3319
3270
  }
3320
3271
  for (const key2 in from) {
3321
- if (asMixin && key2 === "expose")
3322
- ;
3272
+ if (asMixin && key2 === "expose") ;
3323
3273
  else {
3324
3274
  const strat = internalOptionMergeStrats[key2] || strats && strats[key2];
3325
3275
  to[key2] = strat ? strat(to[key2], from[key2]) : from[key2];
@@ -3406,10 +3356,8 @@ function mergeEmitsOrPropsOptions(to, from) {
3406
3356
  }
3407
3357
  }
3408
3358
  function mergeWatchOptions(to, from) {
3409
- if (!to)
3410
- return from;
3411
- if (!from)
3412
- return to;
3359
+ if (!to) return from;
3360
+ if (!from) return to;
3413
3361
  const merged = extend(/* @__PURE__ */ Object.create(null), to);
3414
3362
  for (const key2 in from) {
3415
3363
  merged[key2] = mergeAsArray(to[key2], from[key2]);
@@ -3464,16 +3412,14 @@ function createAppAPI(render2, hydrate) {
3464
3412
  set config(v2) {
3465
3413
  },
3466
3414
  use(plugin, ...options) {
3467
- if (installedPlugins.has(plugin))
3468
- ;
3415
+ if (installedPlugins.has(plugin)) ;
3469
3416
  else if (plugin && isFunction(plugin.install)) {
3470
3417
  installedPlugins.add(plugin);
3471
3418
  plugin.install(app, ...options);
3472
3419
  } else if (isFunction(plugin)) {
3473
3420
  installedPlugins.add(plugin);
3474
3421
  plugin(app, ...options);
3475
- } else
3476
- ;
3422
+ } else ;
3477
3423
  return app;
3478
3424
  },
3479
3425
  mixin(mixin) {
@@ -3549,8 +3495,7 @@ function createAppAPI(render2, hydrate) {
3549
3495
  }
3550
3496
  let currentApp = null;
3551
3497
  function provide(key2, value) {
3552
- if (!currentInstance)
3553
- ;
3498
+ if (!currentInstance) ;
3554
3499
  else {
3555
3500
  let provides = currentInstance.provides;
3556
3501
  const parentProvides = currentInstance.parent && currentInstance.parent.provides;
@@ -3568,8 +3513,7 @@ function inject(key2, defaultValue, treatDefaultAsFactory = false) {
3568
3513
  return provides[key2];
3569
3514
  } else if (arguments.length > 1) {
3570
3515
  return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance && instance.proxy) : defaultValue;
3571
- } else
3572
- ;
3516
+ } else ;
3573
3517
  }
3574
3518
  }
3575
3519
  const internalObjectProto = {};
@@ -3784,8 +3728,7 @@ function normalizePropsOptions(comp, appContext, asMixin = false) {
3784
3728
  hasExtends = true;
3785
3729
  const [props, keys] = normalizePropsOptions(raw2, appContext, true);
3786
3730
  extend(normalized, props);
3787
- if (keys)
3788
- needCastKeys.push(...keys);
3731
+ if (keys) needCastKeys.push(...keys);
3789
3732
  };
3790
3733
  if (!asMixin && appContext.mixins.length) {
3791
3734
  appContext.mixins.forEach(extendProps);
@@ -3866,8 +3809,7 @@ const normalizeSlot = (key2, rawSlot, ctx) => {
3866
3809
  return rawSlot;
3867
3810
  }
3868
3811
  const normalized = withCtx((...args) => {
3869
- if (false)
3870
- ;
3812
+ if (false) ;
3871
3813
  return normalizeSlotValue(rawSlot(...args));
3872
3814
  }, ctx);
3873
3815
  normalized._c = false;
@@ -3876,8 +3818,7 @@ const normalizeSlot = (key2, rawSlot, ctx) => {
3876
3818
  const normalizeObjectSlots = (rawSlots, slots, instance) => {
3877
3819
  const ctx = rawSlots._ctx;
3878
3820
  for (const key2 in rawSlots) {
3879
- if (isInternalKey(key2))
3880
- continue;
3821
+ if (isInternalKey(key2)) continue;
3881
3822
  const value = rawSlots[key2];
3882
3823
  if (isFunction(value)) {
3883
3824
  slots[key2] = normalizeSlot(key2, value, ctx);
@@ -4054,8 +3995,7 @@ function baseCreateRenderer(options, createHydrationFns) {
4054
3995
  optimized,
4055
3996
  internals
4056
3997
  );
4057
- } else
4058
- ;
3998
+ } else ;
4059
3999
  }
4060
4000
  if (ref3 != null && parentComponent) {
4061
4001
  setRef(ref3, n1 && n1.ref, parentSuspense, n2 || n1, !n2);
@@ -4367,8 +4307,7 @@ function baseCreateRenderer(options, createHydrationFns) {
4367
4307
  }
4368
4308
  }
4369
4309
  for (const key2 in newProps) {
4370
- if (isReservedProp(key2))
4371
- continue;
4310
+ if (isReservedProp(key2)) continue;
4372
4311
  const next = newProps[key2];
4373
4312
  const prev = oldProps[key2];
4374
4313
  if (next !== prev && key2 !== "value") {
@@ -4854,8 +4793,7 @@ function baseCreateRenderer(options, createHydrationFns) {
4854
4793
  let moved = false;
4855
4794
  let maxNewIndexSoFar = 0;
4856
4795
  const newIndexToOldIndexMap = new Array(toBePatched);
4857
- for (i2 = 0; i2 < toBePatched; i2++)
4858
- newIndexToOldIndexMap[i2] = 0;
4796
+ for (i2 = 0; i2 < toBePatched; i2++) newIndexToOldIndexMap[i2] = 0;
4859
4797
  for (i2 = s1; i2 <= e1; i2++) {
4860
4798
  const prevChild = c1[i2];
4861
4799
  if (patched >= toBePatched) {
@@ -5429,8 +5367,7 @@ const getModelModifiers = (props, modelName) => {
5429
5367
  return modelName === "modelValue" || modelName === "model-value" ? props.modelModifiers : props[`${modelName}Modifiers`] || props[`${camelize(modelName)}Modifiers`] || props[`${hyphenate(modelName)}Modifiers`];
5430
5368
  };
5431
5369
  function emit(instance, event, ...rawArgs) {
5432
- if (instance.isUnmounted)
5433
- return;
5370
+ if (instance.isUnmounted) return;
5434
5371
  const props = instance.vnode.props || EMPTY_OBJ;
5435
5372
  let args = rawArgs;
5436
5373
  const isModelListener2 = event.startsWith("update:");
@@ -5573,8 +5510,7 @@ function renderComponentRoot(instance) {
5573
5510
  fallthroughAttrs = attrs;
5574
5511
  } else {
5575
5512
  const render22 = Component2;
5576
- if (false)
5577
- ;
5513
+ if (false) ;
5578
5514
  result = normalizeVNode(
5579
5515
  render22.length > 1 ? render22(
5580
5516
  false ? shallowReadonly(props) : props,
@@ -5903,8 +5839,7 @@ function _createVNode(type, props = null, children = null, patchFlag = 0, dynami
5903
5839
  );
5904
5840
  }
5905
5841
  function guardReactiveProps(props) {
5906
- if (!props)
5907
- return null;
5842
+ if (!props) return null;
5908
5843
  return isProxy(props) || isInternalObject(props) ? extend({}, props) : props;
5909
5844
  }
5910
5845
  function cloneVNode(vnode, extraProps, mergeRef = false, cloneTransition = false) {
@@ -6165,14 +6100,11 @@ let setInSSRSetupState;
6165
6100
  const g2 = getGlobalThis();
6166
6101
  const registerGlobalSetter = (key2, setter) => {
6167
6102
  let setters;
6168
- if (!(setters = g2[key2]))
6169
- setters = g2[key2] = [];
6103
+ if (!(setters = g2[key2])) setters = g2[key2] = [];
6170
6104
  setters.push(setter);
6171
6105
  return (v2) => {
6172
- if (setters.length > 1)
6173
- setters.forEach((set) => set(v2));
6174
- else
6175
- setters[0](v2);
6106
+ if (setters.length > 1) setters.forEach((set) => set(v2));
6107
+ else setters[0](v2);
6176
6108
  };
6177
6109
  };
6178
6110
  internalSetCurrentInstance = registerGlobalSetter(
@@ -6262,8 +6194,7 @@ function handleSetupResult(instance, setupResult, isSSR) {
6262
6194
  }
6263
6195
  } else if (isObject$1(setupResult)) {
6264
6196
  instance.setupState = proxyRefs(setupResult);
6265
- } else
6266
- ;
6197
+ } else ;
6267
6198
  finishComponentSetup(instance);
6268
6199
  }
6269
6200
  function finishComponentSetup(instance, isSSR, skipOptions) {
@@ -6434,8 +6365,7 @@ const nodeOps = {
6434
6365
  if (start && (start === end || start.nextSibling)) {
6435
6366
  while (true) {
6436
6367
  parent.insertBefore(start.cloneNode(true), anchor);
6437
- if (start === end || !(start = start.nextSibling))
6438
- break;
6368
+ if (start === end || !(start = start.nextSibling)) break;
6439
6369
  }
6440
6370
  } else {
6441
6371
  templateContainer.innerHTML = unsafeToTrustedHTML(
@@ -6729,8 +6659,7 @@ function getTimeout(delays, durations) {
6729
6659
  return Math.max(...durations.map((d2, i2) => toMs(d2) + toMs(delays[i2])));
6730
6660
  }
6731
6661
  function toMs(s2) {
6732
- if (s2 === "auto")
6733
- return 0;
6662
+ if (s2 === "auto") return 0;
6734
6663
  return Number(s2.slice(0, -1).replace(",", ".")) * 1e3;
6735
6664
  }
6736
6665
  function forceReflow() {
@@ -6802,8 +6731,7 @@ function setVarsOnVNode(vnode, vars) {
6802
6731
  let { el, anchor } = vnode;
6803
6732
  while (el) {
6804
6733
  setVarsOnNode(el, vars);
6805
- if (el === anchor)
6806
- break;
6734
+ if (el === anchor) break;
6807
6735
  el = el.nextSibling;
6808
6736
  }
6809
6737
  }
@@ -6873,8 +6801,7 @@ function setStyle(style2, name, val) {
6873
6801
  if (isArray(val)) {
6874
6802
  val.forEach((v2) => setStyle(style2, name, v2));
6875
6803
  } else {
6876
- if (val == null)
6877
- val = "";
6804
+ if (val == null) val = "";
6878
6805
  if (name.startsWith("--")) {
6879
6806
  style2.setProperty(name, val);
6880
6807
  } else {
@@ -7118,8 +7045,7 @@ const REMOVAL = {};
7118
7045
  // @__NO_SIDE_EFFECTS__
7119
7046
  function defineCustomElement(options, extraOptions, _createApp) {
7120
7047
  const Comp = /* @__PURE__ */ defineComponent(options, extraOptions);
7121
- if (isPlainObject(Comp))
7122
- extend(Comp, extraOptions);
7048
+ if (isPlainObject(Comp)) extend(Comp, extraOptions);
7123
7049
  class VueCustomElement extends VueElement {
7124
7050
  constructor(initialProps) {
7125
7051
  super(Comp, initialProps, _createApp);
@@ -7160,8 +7086,7 @@ class VueElement extends BaseClass {
7160
7086
  }
7161
7087
  }
7162
7088
  connectedCallback() {
7163
- if (!this.isConnected)
7164
- return;
7089
+ if (!this.isConnected) return;
7165
7090
  if (!this.shadowRoot) {
7166
7091
  this._parseSlots();
7167
7092
  }
@@ -7204,8 +7129,7 @@ class VueElement extends BaseClass {
7204
7129
  this._ob = null;
7205
7130
  }
7206
7131
  this._app && this._app.unmount();
7207
- if (this._instance)
7208
- this._instance.ce = void 0;
7132
+ if (this._instance) this._instance.ce = void 0;
7209
7133
  this._app = this._instance = null;
7210
7134
  }
7211
7135
  });
@@ -7268,8 +7192,7 @@ class VueElement extends BaseClass {
7268
7192
  this._app._ceVNode = this._createVNode();
7269
7193
  this._app.mount(this._root);
7270
7194
  const exposed = this._instance && this._instance.exposed;
7271
- if (!exposed)
7272
- return;
7195
+ if (!exposed) return;
7273
7196
  for (const key2 in exposed) {
7274
7197
  if (!hasOwn(this, key2)) {
7275
7198
  Object.defineProperty(this, key2, {
@@ -7299,8 +7222,7 @@ class VueElement extends BaseClass {
7299
7222
  }
7300
7223
  }
7301
7224
  _setAttr(key2) {
7302
- if (key2.startsWith("data-v-"))
7303
- return;
7225
+ if (key2.startsWith("data-v-")) return;
7304
7226
  const has = this.hasAttribute(key2);
7305
7227
  let value = has ? this.getAttribute(key2) : REMOVAL;
7306
7228
  const camelKey = camelize(key2);
@@ -7379,8 +7301,7 @@ class VueElement extends BaseClass {
7379
7301
  return vnode;
7380
7302
  }
7381
7303
  _applyStyles(styles, owner) {
7382
- if (!styles)
7383
- return;
7304
+ if (!styles) return;
7384
7305
  if (owner) {
7385
7306
  if (owner === this._def || this._styleChildren.has(owner)) {
7386
7307
  return;
@@ -7390,8 +7311,7 @@ class VueElement extends BaseClass {
7390
7311
  const nonce = this._nonce;
7391
7312
  for (let i2 = styles.length - 1; i2 >= 0; i2--) {
7392
7313
  const s2 = document.createElement("style");
7393
- if (nonce)
7394
- s2.setAttribute("nonce", nonce);
7314
+ if (nonce) s2.setAttribute("nonce", nonce);
7395
7315
  s2.textContent = styles[i2];
7396
7316
  this.shadowRoot.prepend(s2);
7397
7317
  }
@@ -7433,8 +7353,7 @@ class VueElement extends BaseClass {
7433
7353
  parent.insertBefore(n2, o2);
7434
7354
  }
7435
7355
  } else {
7436
- while (o2.firstChild)
7437
- parent.insertBefore(o2.firstChild, o2);
7356
+ while (o2.firstChild) parent.insertBefore(o2.firstChild, o2);
7438
7357
  }
7439
7358
  parent.removeChild(o2);
7440
7359
  }
@@ -7479,8 +7398,7 @@ const vModelText = {
7479
7398
  el[assignKey] = getModelAssigner(vnode);
7480
7399
  const castToNumber = number || vnode.props && vnode.props.type === "number";
7481
7400
  addEventListener(el, lazy ? "change" : "input", (e2) => {
7482
- if (e2.target.composing)
7483
- return;
7401
+ if (e2.target.composing) return;
7484
7402
  let domValue = el.value;
7485
7403
  if (trim) {
7486
7404
  domValue = domValue.trim();
@@ -7507,8 +7425,7 @@ const vModelText = {
7507
7425
  },
7508
7426
  beforeUpdate(el, { value, oldValue, modifiers: { lazy, trim, number } }, vnode) {
7509
7427
  el[assignKey] = getModelAssigner(vnode);
7510
- if (el.composing)
7511
- return;
7428
+ if (el.composing) return;
7512
7429
  const elValue = (number || el.type === "number") && !/^0\d/.test(el.value) ? looseToNumber(el.value) : el.value;
7513
7430
  const newValue = value == null ? "" : value;
7514
7431
  if (elValue === newValue) {
@@ -7579,8 +7496,7 @@ function setSelected(el, value) {
7579
7496
  option.selected = value.has(optionValue);
7580
7497
  }
7581
7498
  } else if (looseEqual(getValue(option), value)) {
7582
- if (el.selectedIndex !== i2)
7583
- el.selectedIndex = i2;
7499
+ if (el.selectedIndex !== i2) el.selectedIndex = i2;
7584
7500
  return;
7585
7501
  }
7586
7502
  }
@@ -7611,8 +7527,7 @@ const withModifiers = (fn, modifiers) => {
7611
7527
  return cache[cacheKey] || (cache[cacheKey] = (event, ...args) => {
7612
7528
  for (let i2 = 0; i2 < modifiers.length; i2++) {
7613
7529
  const guard = modifierGuards[modifiers[i2]];
7614
- if (guard && guard(event, modifiers))
7615
- return;
7530
+ if (guard && guard(event, modifiers)) return;
7616
7531
  }
7617
7532
  return fn(event, ...args);
7618
7533
  });
@@ -7654,8 +7569,7 @@ const createApp = (...args) => {
7654
7569
  const { mount } = app;
7655
7570
  app.mount = (containerOrSelector) => {
7656
7571
  const container = normalizeContainer(containerOrSelector);
7657
- if (!container)
7658
- return;
7572
+ if (!container) return;
7659
7573
  const component = app._component;
7660
7574
  if (!isFunction(component) && !component.render && !component.template) {
7661
7575
  component.template = container.innerHTML;
@@ -7872,8 +7786,7 @@ function createEditorBridge() {
7872
7786
  return;
7873
7787
  }
7874
7788
  const isOverlay = path.some((node) => {
7875
- if (!(node instanceof HTMLElement))
7876
- return false;
7789
+ if (!(node instanceof HTMLElement)) return false;
7877
7790
  let current = node;
7878
7791
  while (current) {
7879
7792
  const computedStyle = window.getComputedStyle(current);
@@ -7888,8 +7801,7 @@ function createEditorBridge() {
7888
7801
  return false;
7889
7802
  });
7890
7803
  const isEditorUI = path.some((node) => {
7891
- if (!(node instanceof HTMLElement))
7892
- return false;
7804
+ if (!(node instanceof HTMLElement)) return false;
7893
7805
  let current = node;
7894
7806
  const root2 = node.getRootNode();
7895
7807
  while (current && current !== root2) {
@@ -8043,8 +7955,7 @@ function createEditorBridge() {
8043
7955
  let suppressScrollReport = false;
8044
7956
  function reportContentHeight() {
8045
7957
  var _a;
8046
- if (!isEditorMode)
8047
- return;
7958
+ if (!isEditorMode) return;
8048
7959
  const height = Math.max(
8049
7960
  document.documentElement.scrollHeight,
8050
7961
  ((_a = document.body) == null ? void 0 : _a.scrollHeight) ?? 0
@@ -8069,11 +7980,9 @@ function createEditorBridge() {
8069
7980
  }
8070
7981
  function onBlockPresetChange(blockId, callback) {
8071
7982
  return onMessage((message) => {
8072
- if (message.type !== "SET_BLOCK_PRESET")
8073
- return;
7983
+ if (message.type !== "SET_BLOCK_PRESET") return;
8074
7984
  const presetMessage = message;
8075
- if (presetMessage.payload.blockId !== blockId)
8076
- return;
7985
+ if (presetMessage.payload.blockId !== blockId) return;
8077
7986
  const preset = presetMessage.payload.preset;
8078
7987
  callback(
8079
7988
  preset
@@ -8125,8 +8034,7 @@ function useBridge$2(options) {
8125
8034
  const isEditorMode = computed(() => blockId.value !== null);
8126
8035
  watchEffect((onCleanup) => {
8127
8036
  const currentBlockId = blockId.value;
8128
- if (!currentBlockId)
8129
- return;
8037
+ if (!currentBlockId) return;
8130
8038
  const unsub = editorBridge.onBlockPresetChange(
8131
8039
  currentBlockId,
8132
8040
  (preset) => {
@@ -8499,8 +8407,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
8499
8407
  };
8500
8408
  });
8501
8409
  const handleCancel = async () => {
8502
- if (!singleSubscription.value)
8503
- return;
8410
+ if (!singleSubscription.value) return;
8504
8411
  if (!confirm("Are you sure you want to cancel this subscription?")) {
8505
8412
  return;
8506
8413
  }
@@ -8521,8 +8428,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
8521
8428
  }
8522
8429
  };
8523
8430
  const handleReschedule = async () => {
8524
- if (!singleSubscription.value)
8525
- return;
8431
+ if (!singleSubscription.value) return;
8526
8432
  if (!singleSubscription.value.nextDeliveryDate) {
8527
8433
  alert("No delivery date available for this subscription");
8528
8434
  return;
@@ -8551,8 +8457,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
8551
8457
  }
8552
8458
  };
8553
8459
  const handlePause = async () => {
8554
- if (!singleSubscription.value)
8555
- return;
8460
+ if (!singleSubscription.value) return;
8556
8461
  if (!confirm("Are you sure you want to pause this subscription?")) {
8557
8462
  return;
8558
8463
  }
@@ -8573,8 +8478,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
8573
8478
  }
8574
8479
  };
8575
8480
  const handleResume = async () => {
8576
- if (!singleSubscription.value)
8577
- return;
8481
+ if (!singleSubscription.value) return;
8578
8482
  if (!confirm("Are you sure you want to resume this subscription?")) {
8579
8483
  return;
8580
8484
  }
@@ -8595,8 +8499,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
8595
8499
  }
8596
8500
  };
8597
8501
  const handleReactivate = async () => {
8598
- if (!singleSubscription.value)
8599
- return;
8502
+ if (!singleSubscription.value) return;
8600
8503
  if (!confirm("Are you sure you want to reactivate this subscription?")) {
8601
8504
  return;
8602
8505
  }
@@ -8617,8 +8520,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
8617
8520
  }
8618
8521
  };
8619
8522
  const handleAddItem = async () => {
8620
- if (!singleSubscription.value)
8621
- return;
8523
+ if (!singleSubscription.value) return;
8622
8524
  try {
8623
8525
  const productResults = await productService.search({});
8624
8526
  availableProducts.value = productResults.items;
@@ -8628,11 +8530,9 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
8628
8530
  }
8629
8531
  };
8630
8532
  const handleProductSelectedFromPrompt = async () => {
8631
- if (!singleSubscription.value || !selectedProductId.value)
8632
- return;
8533
+ if (!singleSubscription.value || !selectedProductId.value) return;
8633
8534
  const product = availableProducts.value.find((p2) => p2.id === selectedProductId.value);
8634
- if (!product)
8635
- return;
8535
+ if (!product) return;
8636
8536
  const quantityInput = prompt("Enter quantity (default: 1):");
8637
8537
  const quantity = quantityInput ? parseInt(quantityInput, 10) : 1;
8638
8538
  if (isNaN(quantity) || quantity < 1) {
@@ -8673,8 +8573,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
8673
8573
  selectedProductId.value = "";
8674
8574
  };
8675
8575
  const handleRemoveItem = async (itemId) => {
8676
- if (!singleSubscription.value)
8677
- return;
8576
+ if (!singleSubscription.value) return;
8678
8577
  if (singleSubscription.value.items.length <= 1) {
8679
8578
  alert("Cannot remove the last item from the subscription");
8680
8579
  return;
@@ -8714,8 +8613,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
8714
8613
  selectedItemIdForDiscount.value = null;
8715
8614
  };
8716
8615
  const handleDiscountCodeSubmitted = async () => {
8717
- if (!singleSubscription.value || !discountCode.value.trim())
8718
- return;
8616
+ if (!singleSubscription.value || !discountCode.value.trim()) return;
8719
8617
  isLoading.value = true;
8720
8618
  actionType.value = "applyDiscount";
8721
8619
  try {
@@ -8743,8 +8641,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
8743
8641
  }
8744
8642
  };
8745
8643
  const handleRemoveDiscount = async (discountId) => {
8746
- if (!singleSubscription.value)
8747
- return;
8644
+ if (!singleSubscription.value) return;
8748
8645
  if (!confirm("Are you sure you want to remove this discount?")) {
8749
8646
  return;
8750
8647
  }
@@ -9270,21 +9167,15 @@ function _sfc_render$1(_ctx, _cache) {
9270
9167
  const UiSuccessIcon = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["render", _sfc_render$1]]);
9271
9168
  function r$3(e2) {
9272
9169
  var t2, f2, n2 = "";
9273
- if ("string" == typeof e2 || "number" == typeof e2)
9274
- n2 += e2;
9275
- else if ("object" == typeof e2)
9276
- if (Array.isArray(e2)) {
9277
- var o2 = e2.length;
9278
- for (t2 = 0; t2 < o2; t2++)
9279
- e2[t2] && (f2 = r$3(e2[t2])) && (n2 && (n2 += " "), n2 += f2);
9280
- } else
9281
- for (f2 in e2)
9282
- e2[f2] && (n2 && (n2 += " "), n2 += f2);
9170
+ if ("string" == typeof e2 || "number" == typeof e2) n2 += e2;
9171
+ else if ("object" == typeof e2) if (Array.isArray(e2)) {
9172
+ var o2 = e2.length;
9173
+ for (t2 = 0; t2 < o2; t2++) e2[t2] && (f2 = r$3(e2[t2])) && (n2 && (n2 += " "), n2 += f2);
9174
+ } else for (f2 in e2) e2[f2] && (n2 && (n2 += " "), n2 += f2);
9283
9175
  return n2;
9284
9176
  }
9285
9177
  function clsx() {
9286
- for (var e2, t2, f2 = 0, n2 = "", o2 = arguments.length; f2 < o2; f2++)
9287
- (e2 = arguments[f2]) && (t2 = r$3(e2)) && (n2 && (n2 += " "), n2 += t2);
9178
+ for (var e2, t2, f2 = 0, n2 = "", o2 = arguments.length; f2 < o2; f2++) (e2 = arguments[f2]) && (t2 = r$3(e2)) && (n2 && (n2 += " "), n2 += t2);
9288
9179
  return n2;
9289
9180
  }
9290
9181
  const CLASS_PART_SEPARATOR = "-";
@@ -12965,8 +12856,7 @@ const c$3 = /* @__PURE__ */ function() {
12965
12856
  return e2 === "string" && n2 === "string" ? t2.localeCompare(r2) : e2 === "number" && n2 === "number" ? t2 - r2 : String.prototype.localeCompare.call(this.serialize(t2, true), this.serialize(r2, true));
12966
12857
  }
12967
12858
  serialize(t2, r2) {
12968
- if (t2 === null)
12969
- return "null";
12859
+ if (t2 === null) return "null";
12970
12860
  switch (typeof t2) {
12971
12861
  case "string":
12972
12862
  return r2 ? t2 : `'${t2}'`;
@@ -12981,11 +12871,9 @@ const c$3 = /* @__PURE__ */ function() {
12981
12871
  }
12982
12872
  serializeObject(t2) {
12983
12873
  const r2 = Object.prototype.toString.call(t2);
12984
- if (r2 !== "[object Object]")
12985
- return this.serializeBuiltInType(r2.length < 10 ? `unknown:${r2}` : r2.slice(8, -1), t2);
12874
+ if (r2 !== "[object Object]") return this.serializeBuiltInType(r2.length < 10 ? `unknown:${r2}` : r2.slice(8, -1), t2);
12986
12875
  const e2 = t2.constructor, n2 = e2 === Object || e2 === void 0 ? "" : e2.name;
12987
- if (n2 !== "" && globalThis[n2] === e2)
12988
- return this.serializeBuiltInType(n2, t2);
12876
+ if (n2 !== "" && globalThis[n2] === e2) return this.serializeBuiltInType(n2, t2);
12989
12877
  if (typeof t2.toJSON == "function") {
12990
12878
  const i2 = t2.toJSON();
12991
12879
  return n2 + (i2 !== null && typeof i2 == "object" ? this.$object(i2) : `(${this.serialize(i2)})`);
@@ -12994,10 +12882,8 @@ const c$3 = /* @__PURE__ */ function() {
12994
12882
  }
12995
12883
  serializeBuiltInType(t2, r2) {
12996
12884
  const e2 = this["$" + t2];
12997
- if (e2)
12998
- return e2.call(this, r2);
12999
- if (typeof (r2 == null ? void 0 : r2.entries) == "function")
13000
- return this.serializeObjectEntries(t2, r2.entries());
12885
+ if (e2) return e2.call(this, r2);
12886
+ if (typeof (r2 == null ? void 0 : r2.entries) == "function") return this.serializeObjectEntries(t2, r2.entries());
13001
12887
  throw new Error(`Cannot serialize ${t2}`);
13002
12888
  }
13003
12889
  serializeObjectEntries(t2, r2) {
@@ -13019,8 +12905,7 @@ const c$3 = /* @__PURE__ */ function() {
13019
12905
  }
13020
12906
  $Array(t2) {
13021
12907
  let r2 = "[";
13022
- for (let e2 = 0; e2 < t2.length; e2++)
13023
- r2 += this.serialize(t2[e2]), e2 < t2.length - 1 && (r2 += ",");
12908
+ for (let e2 = 0; e2 < t2.length; e2++) r2 += this.serialize(t2[e2]), e2 < t2.length - 1 && (r2 += ",");
13024
12909
  return r2 + "]";
13025
12910
  }
13026
12911
  $Date(t2) {
@@ -13041,18 +12926,15 @@ const c$3 = /* @__PURE__ */ function() {
13041
12926
  }
13042
12927
  }
13043
12928
  _t = new WeakMap();
13044
- for (const s2 of ["Error", "RegExp", "URL"])
13045
- o2.prototype["$" + s2] = function(t2) {
13046
- return `${s2}(${t2})`;
13047
- };
13048
- for (const s2 of ["Int8Array", "Uint8Array", "Uint8ClampedArray", "Int16Array", "Uint16Array", "Int32Array", "Uint32Array", "Float32Array", "Float64Array"])
13049
- o2.prototype["$" + s2] = function(t2) {
13050
- return `${s2}[${t2.join(",")}]`;
13051
- };
13052
- for (const s2 of ["BigInt64Array", "BigUint64Array"])
13053
- o2.prototype["$" + s2] = function(t2) {
13054
- return `${s2}[${t2.join("n,")}${t2.length > 0 ? "n" : ""}]`;
13055
- };
12929
+ for (const s2 of ["Error", "RegExp", "URL"]) o2.prototype["$" + s2] = function(t2) {
12930
+ return `${s2}(${t2})`;
12931
+ };
12932
+ for (const s2 of ["Int8Array", "Uint8Array", "Uint8ClampedArray", "Int16Array", "Uint16Array", "Int32Array", "Uint32Array", "Float32Array", "Float64Array"]) o2.prototype["$" + s2] = function(t2) {
12933
+ return `${s2}[${t2.join(",")}]`;
12934
+ };
12935
+ for (const s2 of ["BigInt64Array", "BigUint64Array"]) o2.prototype["$" + s2] = function(t2) {
12936
+ return `${s2}[${t2.join("n,")}${t2.length > 0 ? "n" : ""}]`;
12937
+ };
13056
12938
  return o2;
13057
12939
  }();
13058
12940
  function isEqual(object1, object2) {
@@ -13785,10 +13667,8 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
13785
13667
  as: _ctx.as,
13786
13668
  "as-child": _ctx.asChild,
13787
13669
  onMousedown: _cache[0] || (_cache[0] = (event) => {
13788
- if (!_ctx.focusable)
13789
- event.preventDefault();
13790
- else
13791
- unref(context).onItemFocus(id.value);
13670
+ if (!_ctx.focusable) event.preventDefault();
13671
+ else unref(context).onItemFocus(id.value);
13792
13672
  }),
13793
13673
  onFocus: _cache[1] || (_cache[1] = ($event) => unref(context).onItemFocus(id.value)),
13794
13674
  onKeydown: handleKeydown
@@ -14265,14 +14145,12 @@ const falsyToString = (value) => typeof value === "boolean" ? `${value}` : value
14265
14145
  const cx = clsx;
14266
14146
  const cva = (base, config) => (props) => {
14267
14147
  var _config_compoundVariants;
14268
- if ((config === null || config === void 0 ? void 0 : config.variants) == null)
14269
- return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
14148
+ if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
14270
14149
  const { variants, defaultVariants } = config;
14271
14150
  const getVariantClassNames = Object.keys(variants).map((variant) => {
14272
14151
  const variantProp = props === null || props === void 0 ? void 0 : props[variant];
14273
14152
  const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];
14274
- if (variantProp === null)
14275
- return null;
14153
+ if (variantProp === null) return null;
14276
14154
  const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);
14277
14155
  return variants[variant][variantKey];
14278
14156
  });
@@ -14619,11 +14497,9 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
14619
14497
  const expanded = ref(false);
14620
14498
  const scrollContainer = ref(null);
14621
14499
  function onScroll() {
14622
- if (!props.hasMore || props.loadingMore)
14623
- return;
14500
+ if (!props.hasMore || props.loadingMore) return;
14624
14501
  const el = scrollContainer.value;
14625
- if (!el)
14626
- return;
14502
+ if (!el) return;
14627
14503
  const distanceFromBottom = el.scrollHeight - el.scrollTop - el.clientHeight;
14628
14504
  if (distanceFromBottom < SCROLL_THRESHOLD) {
14629
14505
  emit2("loadMore");
@@ -14665,8 +14541,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
14665
14541
  );
14666
14542
  function isVariantSelected(product) {
14667
14543
  const defaultVariant = getDefaultVariant(product);
14668
- if (!defaultVariant)
14669
- return false;
14544
+ if (!defaultVariant) return false;
14670
14545
  return props.modelValue.some(
14671
14546
  (s2) => s2.productId === product.id && s2.variantId === defaultVariant.id
14672
14547
  );
@@ -14681,14 +14556,12 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
14681
14556
  }
14682
14557
  function getFormattedPrice(product) {
14683
14558
  const variant = getDefaultVariant(product);
14684
- if (!variant)
14685
- return null;
14559
+ if (!variant) return null;
14686
14560
  return formatPrice2(variant.price.amount, variant.price.currencyCode);
14687
14561
  }
14688
14562
  function formatPrice2(amount, currencyCode) {
14689
14563
  const num = Number(amount);
14690
- if (Number.isNaN(num))
14691
- return "";
14564
+ if (Number.isNaN(num)) return "";
14692
14565
  const currency = currencyCode && /^[A-Z]{3}$/i.test(currencyCode) ? currencyCode : "USD";
14693
14566
  try {
14694
14567
  return new Intl.NumberFormat(void 0, {
@@ -14720,8 +14593,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
14720
14593
  }
14721
14594
  function onProductClick(product) {
14722
14595
  const variant = getDefaultVariant(product);
14723
- if (!variant)
14724
- return;
14596
+ if (!variant) return;
14725
14597
  toggleVariant(product.id, variant.id);
14726
14598
  }
14727
14599
  return (_ctx, _cache) => {
@@ -15379,13 +15251,20 @@ const LoginCe = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["styles", [_style_0$l
15379
15251
  }
15380
15252
  return /* @__PURE__ */ new Map();
15381
15253
  })();
15382
- const __variableDynamicImportRuntimeHelper = (glob, path) => {
15254
+ const __variableDynamicImportRuntimeHelper = (glob, path, segs) => {
15383
15255
  const v2 = glob[path];
15384
15256
  if (v2) {
15385
15257
  return typeof v2 === "function" ? v2() : Promise.resolve(v2);
15386
15258
  }
15387
15259
  return new Promise((_2, reject) => {
15388
- (typeof queueMicrotask === "function" ? queueMicrotask : setTimeout)(reject.bind(null, new Error("Unknown variable dynamic import: " + path)));
15260
+ (typeof queueMicrotask === "function" ? queueMicrotask : setTimeout)(
15261
+ reject.bind(
15262
+ null,
15263
+ new Error(
15264
+ "Unknown variable dynamic import: " + path + (path.split("/").length !== segs ? ". Note that variables only represent file names one level deep." : "")
15265
+ )
15266
+ )
15267
+ );
15389
15268
  });
15390
15269
  };
15391
15270
  function normalizeLocale(locale) {
@@ -15395,7 +15274,7 @@ function blockLocales(blockType) {
15395
15274
  return {
15396
15275
  load: async (locale) => {
15397
15276
  const normalized = normalizeLocale(locale);
15398
- const loadFile = async (code) => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../locales/cs.json": () => import("./cs-CkBa54eD.js"), "../locales/de.json": () => import("./de-CPRJRab0.js"), "../locales/en.json": () => Promise.resolve().then(() => en), "../locales/es.json": () => import("./es-CQoo17kt.js"), "../locales/fr.json": () => import("./fr-DzCAo5LI.js"), "../locales/hu.json": () => import("./hu-ywN6j-km.js"), "../locales/nl.json": () => import("./nl-BhpUGLYx.js"), "../locales/pl.json": () => import("./pl-sN_bBWgE.js"), "../locales/pt.json": () => import("./pt-BYE93EVG.js"), "../locales/sk.json": () => import("./sk-DQZc55Jx.js"), "../locales/sl.json": () => import("./sl-CUzueLNl.js") }), `../locales/${code}.json`).then((module) => module.default ?? module).catch(() => ({}));
15277
+ const loadFile = async (code) => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../locales/cs.json": () => import("./cs-CkBa54eD.js"), "../locales/de.json": () => import("./de-CPRJRab0.js"), "../locales/en.json": () => Promise.resolve().then(() => en), "../locales/es.json": () => import("./es-CQoo17kt.js"), "../locales/fr.json": () => import("./fr-DzCAo5LI.js"), "../locales/hu.json": () => import("./hu-ywN6j-km.js"), "../locales/nl.json": () => import("./nl-BhpUGLYx.js"), "../locales/pl.json": () => import("./pl-sN_bBWgE.js"), "../locales/pt.json": () => import("./pt-BYE93EVG.js"), "../locales/sk.json": () => import("./sk-DQZc55Jx.js"), "../locales/sl.json": () => import("./sl-CUzueLNl.js") }), `../locales/${code}.json`, 3).then((module) => module.default ?? module).catch(() => ({}));
15399
15278
  const selected = await loadFile(normalized);
15400
15279
  if (selected[blockType] != null) {
15401
15280
  return selected[blockType];
@@ -15568,8 +15447,7 @@ const LoginBlock = defineBlock("Login", {
15568
15447
  const t$1 = globalThis, i$2 = t$1.trustedTypes, s$2 = i$2 ? i$2.createPolicy("lit-html", { createHTML: (t2) => t2 }) : void 0, e$2 = "$lit$", h$3 = `lit$${Math.random().toFixed(9).slice(2)}$`, o$2 = "?" + h$3, n$1 = `<${o$2}>`, r$2 = document, l$2 = () => r$2.createComment(""), c$2 = (t2) => null === t2 || "object" != typeof t2 && "function" != typeof t2, a$2 = Array.isArray, u$2 = (t2) => a$2(t2) || "function" == typeof (t2 == null ? void 0 : t2[Symbol.iterator]), d$2 = "[ \n\f\r]", f$2 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, v$2 = /-->/g, _$1 = />/g, m$2 = RegExp(`>|${d$2}(?:([^\\s"'>=/]+)(${d$2}*=${d$2}*(?:[^
15569
15448
  \f\r"'\`<>=]|("|')|))|$)`, "g"), p$2 = /'/g, g$1 = /"/g, $$1 = /^(?:script|style|textarea|title)$/i, y$2 = (t2) => (i2, ...s2) => ({ _$litType$: t2, strings: i2, values: s2 }), x$2 = y$2(1), T$2 = Symbol.for("lit-noChange"), E$1 = Symbol.for("lit-nothing"), A$2 = /* @__PURE__ */ new WeakMap(), C$2 = r$2.createTreeWalker(r$2, 129);
15570
15449
  function P$1(t2, i2) {
15571
- if (!a$2(t2) || !t2.hasOwnProperty("raw"))
15572
- throw Error("invalid template strings array");
15450
+ if (!a$2(t2) || !t2.hasOwnProperty("raw")) throw Error("invalid template strings array");
15573
15451
  return void 0 !== s$2 ? s$2.createHTML(i2) : i2;
15574
15452
  }
15575
15453
  const V$1 = (t2, i2) => {
@@ -15578,8 +15456,7 @@ const V$1 = (t2, i2) => {
15578
15456
  for (let i3 = 0; i3 < s2; i3++) {
15579
15457
  const s3 = t2[i3];
15580
15458
  let a2, u2, d2 = -1, y2 = 0;
15581
- for (; y2 < s3.length && (c2.lastIndex = y2, u2 = c2.exec(s3), null !== u2); )
15582
- y2 = c2.lastIndex, c2 === f$2 ? "!--" === u2[1] ? c2 = v$2 : void 0 !== u2[1] ? c2 = _$1 : void 0 !== u2[2] ? ($$1.test(u2[2]) && (r2 = RegExp("</" + u2[2], "g")), c2 = m$2) : void 0 !== u2[3] && (c2 = m$2) : c2 === m$2 ? ">" === u2[0] ? (c2 = r2 ?? f$2, d2 = -1) : void 0 === u2[1] ? d2 = -2 : (d2 = c2.lastIndex - u2[2].length, a2 = u2[1], c2 = void 0 === u2[3] ? m$2 : '"' === u2[3] ? g$1 : p$2) : c2 === g$1 || c2 === p$2 ? c2 = m$2 : c2 === v$2 || c2 === _$1 ? c2 = f$2 : (c2 = m$2, r2 = void 0);
15459
+ for (; y2 < s3.length && (c2.lastIndex = y2, u2 = c2.exec(s3), null !== u2); ) y2 = c2.lastIndex, c2 === f$2 ? "!--" === u2[1] ? c2 = v$2 : void 0 !== u2[1] ? c2 = _$1 : void 0 !== u2[2] ? ($$1.test(u2[2]) && (r2 = RegExp("</" + u2[2], "g")), c2 = m$2) : void 0 !== u2[3] && (c2 = m$2) : c2 === m$2 ? ">" === u2[0] ? (c2 = r2 ?? f$2, d2 = -1) : void 0 === u2[1] ? d2 = -2 : (d2 = c2.lastIndex - u2[2].length, a2 = u2[1], c2 = void 0 === u2[3] ? m$2 : '"' === u2[3] ? g$1 : p$2) : c2 === g$1 || c2 === p$2 ? c2 = m$2 : c2 === v$2 || c2 === _$1 ? c2 = f$2 : (c2 = m$2, r2 = void 0);
15583
15460
  const x2 = c2 === m$2 && t2[i3 + 1].startsWith("/>") ? " " : "";
15584
15461
  l2 += c2 === f$2 ? s3 + n$1 : d2 >= 0 ? (o2.push(a2), s3.slice(0, d2) + e$2 + s3.slice(d2) + h$3 + x2) : s3 + h$3 + (-2 === d2 ? i3 : x2);
15585
15462
  }
@@ -15597,30 +15474,23 @@ let N$1 = class N {
15597
15474
  }
15598
15475
  for (; null !== (r2 = C$2.nextNode()) && d2.length < u2; ) {
15599
15476
  if (1 === r2.nodeType) {
15600
- if (r2.hasAttributes())
15601
- for (const t3 of r2.getAttributeNames())
15602
- if (t3.endsWith(e$2)) {
15603
- const i2 = v2[a2++], s3 = r2.getAttribute(t3).split(h$3), e2 = /([.?@])?(.*)/.exec(i2);
15604
- d2.push({ type: 1, index: c2, name: e2[2], strings: s3, ctor: "." === e2[1] ? H : "?" === e2[1] ? I$1 : "@" === e2[1] ? L$1 : k$2 }), r2.removeAttribute(t3);
15605
- } else
15606
- t3.startsWith(h$3) && (d2.push({ type: 6, index: c2 }), r2.removeAttribute(t3));
15477
+ if (r2.hasAttributes()) for (const t3 of r2.getAttributeNames()) if (t3.endsWith(e$2)) {
15478
+ const i2 = v2[a2++], s3 = r2.getAttribute(t3).split(h$3), e2 = /([.?@])?(.*)/.exec(i2);
15479
+ d2.push({ type: 1, index: c2, name: e2[2], strings: s3, ctor: "." === e2[1] ? H : "?" === e2[1] ? I$1 : "@" === e2[1] ? L$1 : k$2 }), r2.removeAttribute(t3);
15480
+ } else t3.startsWith(h$3) && (d2.push({ type: 6, index: c2 }), r2.removeAttribute(t3));
15607
15481
  if ($$1.test(r2.tagName)) {
15608
15482
  const t3 = r2.textContent.split(h$3), s3 = t3.length - 1;
15609
15483
  if (s3 > 0) {
15610
15484
  r2.textContent = i$2 ? i$2.emptyScript : "";
15611
- for (let i2 = 0; i2 < s3; i2++)
15612
- r2.append(t3[i2], l$2()), C$2.nextNode(), d2.push({ type: 2, index: ++c2 });
15485
+ for (let i2 = 0; i2 < s3; i2++) r2.append(t3[i2], l$2()), C$2.nextNode(), d2.push({ type: 2, index: ++c2 });
15613
15486
  r2.append(t3[s3], l$2());
15614
15487
  }
15615
15488
  }
15616
- } else if (8 === r2.nodeType)
15617
- if (r2.data === o$2)
15618
- d2.push({ type: 2, index: c2 });
15619
- else {
15620
- let t3 = -1;
15621
- for (; -1 !== (t3 = r2.data.indexOf(h$3, t3 + 1)); )
15622
- d2.push({ type: 7, index: c2 }), t3 += h$3.length - 1;
15623
- }
15489
+ } else if (8 === r2.nodeType) if (r2.data === o$2) d2.push({ type: 2, index: c2 });
15490
+ else {
15491
+ let t3 = -1;
15492
+ for (; -1 !== (t3 = r2.data.indexOf(h$3, t3 + 1)); ) d2.push({ type: 7, index: c2 }), t3 += h$3.length - 1;
15493
+ }
15624
15494
  c2++;
15625
15495
  }
15626
15496
  }
@@ -15631,8 +15501,7 @@ let N$1 = class N {
15631
15501
  };
15632
15502
  function S$1(t2, i2, s2 = t2, e2) {
15633
15503
  var _a, _b;
15634
- if (i2 === T$2)
15635
- return i2;
15504
+ if (i2 === T$2) return i2;
15636
15505
  let h2 = void 0 !== e2 ? (_a = s2._$Co) == null ? void 0 : _a[e2] : s2._$Cl;
15637
15506
  const o2 = c$2(i2) ? void 0 : i2._$litDirective$;
15638
15507
  return (h2 == null ? void 0 : h2.constructor) !== o2 && ((_b = h2 == null ? void 0 : h2._$AO) == null ? void 0 : _b.call(h2, false), void 0 === o2 ? h2 = void 0 : (h2 = new o2(t2), h2._$AT(t2, s2, e2)), void 0 !== e2 ? (s2._$Co ?? (s2._$Co = []))[e2] = h2 : s2._$Cl = h2), void 0 !== h2 && (i2 = S$1(t2, h2._$AS(t2, i2.values), h2, e2)), i2;
@@ -15662,8 +15531,7 @@ let M$1 = class M {
15662
15531
  }
15663
15532
  p(t2) {
15664
15533
  let i2 = 0;
15665
- for (const s2 of this._$AV)
15666
- void 0 !== s2 && (void 0 !== s2.strings ? (s2._$AI(t2, s2, i2), i2 += s2.strings.length - 2) : s2._$AI(t2[i2])), i2++;
15534
+ for (const s2 of this._$AV) void 0 !== s2 && (void 0 !== s2.strings ? (s2._$AI(t2, s2, i2), i2 += s2.strings.length - 2) : s2._$AI(t2[i2])), i2++;
15667
15535
  }
15668
15536
  };
15669
15537
  class R {
@@ -15700,8 +15568,7 @@ class R {
15700
15568
  $(t2) {
15701
15569
  var _a;
15702
15570
  const { values: i2, _$litType$: s2 } = t2, e2 = "number" == typeof s2 ? this._$AC(t2) : (void 0 === s2.el && (s2.el = N$1.createElement(P$1(s2.h, s2.h[0]), this.options)), s2);
15703
- if (((_a = this._$AH) == null ? void 0 : _a._$AD) === e2)
15704
- this._$AH.p(i2);
15571
+ if (((_a = this._$AH) == null ? void 0 : _a._$AD) === e2) this._$AH.p(i2);
15705
15572
  else {
15706
15573
  const t3 = new M$1(e2, this), s3 = t3.u(this.options);
15707
15574
  t3.p(i2), this.T(s3), this._$AH = t3;
@@ -15715,8 +15582,7 @@ class R {
15715
15582
  a$2(this._$AH) || (this._$AH = [], this._$AR());
15716
15583
  const i2 = this._$AH;
15717
15584
  let s2, e2 = 0;
15718
- for (const h2 of t2)
15719
- e2 === i2.length ? i2.push(s2 = new R(this.O(l$2()), this.O(l$2()), this, this.options)) : s2 = i2[e2], s2._$AI(h2), e2++;
15585
+ for (const h2 of t2) e2 === i2.length ? i2.push(s2 = new R(this.O(l$2()), this.O(l$2()), this, this.options)) : s2 = i2[e2], s2._$AI(h2), e2++;
15720
15586
  e2 < i2.length && (this._$AR(s2 && s2._$AB.nextSibling, e2), i2.length = e2);
15721
15587
  }
15722
15588
  _$AR(t2 = this._$AA.nextSibling, i2) {
@@ -15744,13 +15610,11 @@ let k$2 = class k {
15744
15610
  _$AI(t2, i2 = this, s2, e2) {
15745
15611
  const h2 = this.strings;
15746
15612
  let o2 = false;
15747
- if (void 0 === h2)
15748
- t2 = S$1(this, t2, i2, 0), o2 = !c$2(t2) || t2 !== this._$AH && t2 !== T$2, o2 && (this._$AH = t2);
15613
+ if (void 0 === h2) t2 = S$1(this, t2, i2, 0), o2 = !c$2(t2) || t2 !== this._$AH && t2 !== T$2, o2 && (this._$AH = t2);
15749
15614
  else {
15750
15615
  const e3 = t2;
15751
15616
  let n2, r2;
15752
- for (t2 = h2[0], n2 = 0; n2 < h2.length - 1; n2++)
15753
- r2 = S$1(this, e3[s2 + n2], i2, n2), r2 === T$2 && (r2 = this._$AH[n2]), o2 || (o2 = !c$2(r2) || r2 !== this._$AH[n2]), r2 === E$1 ? t2 = E$1 : t2 !== E$1 && (t2 += (r2 ?? "") + h2[n2 + 1]), this._$AH[n2] = r2;
15617
+ for (t2 = h2[0], n2 = 0; n2 < h2.length - 1; n2++) r2 = S$1(this, e3[s2 + n2], i2, n2), r2 === T$2 && (r2 = this._$AH[n2]), o2 || (o2 = !c$2(r2) || r2 !== this._$AH[n2]), r2 === E$1 ? t2 = E$1 : t2 !== E$1 && (t2 += (r2 ?? "") + h2[n2 + 1]), this._$AH[n2] = r2;
15754
15618
  }
15755
15619
  o2 && !e2 && this.j(t2);
15756
15620
  }
@@ -15779,8 +15643,7 @@ let L$1 = class L extends k$2 {
15779
15643
  super(t2, i2, s2, e2, h2), this.type = 5;
15780
15644
  }
15781
15645
  _$AI(t2, i2 = this) {
15782
- if ((t2 = S$1(this, t2, i2, 0) ?? E$1) === T$2)
15783
- return;
15646
+ if ((t2 = S$1(this, t2, i2, 0) ?? E$1) === T$2) return;
15784
15647
  const s2 = this._$AH, e2 = t2 === E$1 && s2 !== E$1 || t2.capture !== s2.capture || t2.once !== s2.once || t2.passive !== s2.passive, h2 = t2 !== E$1 && (s2 === E$1 || e2);
15785
15648
  e2 && this.element.removeEventListener(this.name, this, s2), h2 && this.element.addEventListener(this.name, this, t2), this._$AH = t2;
15786
15649
  }
@@ -16395,8 +16258,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
16395
16258
  const subscription = ref(null);
16396
16259
  const products = ref([]);
16397
16260
  const itemsWithProducts = computed(() => {
16398
- if (!subscription.value)
16399
- return [];
16261
+ if (!subscription.value) return [];
16400
16262
  return subscription.value.items.map((item) => ({
16401
16263
  ...item,
16402
16264
  product: products.value.find(
@@ -16418,15 +16280,12 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
16418
16280
  }
16419
16281
  onMounted(async () => {
16420
16282
  const subscriptionId = subscriptionService.getCurrentSubscriptionId();
16421
- if (!subscriptionId)
16422
- return;
16283
+ if (!subscriptionId) return;
16423
16284
  const result = await subscriptionService.getById(subscriptionId);
16424
- if (result._tag !== "Success" || !result.data)
16425
- return;
16285
+ if (result._tag !== "Success" || !result.data) return;
16426
16286
  subscription.value = result.data;
16427
16287
  const productIds = result.data.items.map((item) => item.productId);
16428
- if (productIds.length === 0)
16429
- return;
16288
+ if (productIds.length === 0) return;
16430
16289
  const productResults = await productService.search({
16431
16290
  query: `id:${productIds.join(" OR id:")}`
16432
16291
  });
@@ -17104,8 +16963,7 @@ var react_production = {};
17104
16963
  */
17105
16964
  var REACT_ELEMENT_TYPE$1 = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE$2 = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE$1 = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE$1 = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE$1 = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE$1 = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE$1 = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE$1 = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE$1 = Symbol.for("react.suspense"), REACT_MEMO_TYPE$1 = Symbol.for("react.memo"), REACT_LAZY_TYPE$1 = Symbol.for("react.lazy"), MAYBE_ITERATOR_SYMBOL$1 = Symbol.iterator;
17106
16965
  function getIteratorFn$1(maybeIterable) {
17107
- if (null === maybeIterable || "object" !== typeof maybeIterable)
17108
- return null;
16966
+ if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
17109
16967
  maybeIterable = MAYBE_ITERATOR_SYMBOL$1 && maybeIterable[MAYBE_ITERATOR_SYMBOL$1] || maybeIterable["@@iterator"];
17110
16968
  return "function" === typeof maybeIterable ? maybeIterable : null;
17111
16969
  }
@@ -17211,11 +17069,9 @@ function resolveThenable(thenable) {
17211
17069
  }
17212
17070
  function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
17213
17071
  var type = typeof children;
17214
- if ("undefined" === type || "boolean" === type)
17215
- children = null;
17072
+ if ("undefined" === type || "boolean" === type) children = null;
17216
17073
  var invokeCallback = false;
17217
- if (null === children)
17218
- invokeCallback = true;
17074
+ if (null === children) invokeCallback = true;
17219
17075
  else
17220
17076
  switch (type) {
17221
17077
  case "bigint":
@@ -17286,8 +17142,7 @@ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
17286
17142
  return invokeCallback;
17287
17143
  }
17288
17144
  function mapChildren(children, func, context) {
17289
- if (null == children)
17290
- return children;
17145
+ if (null == children) return children;
17291
17146
  var result = [], count2 = 0;
17292
17147
  mapIntoArray(children, result, "", "", function(child) {
17293
17148
  return func.call(context, child, count2++);
@@ -17310,8 +17165,7 @@ function lazyInitializer(payload) {
17310
17165
  );
17311
17166
  -1 === payload._status && (payload._status = 0, payload._result = ctor);
17312
17167
  }
17313
- if (1 === payload._status)
17314
- return payload._result.default;
17168
+ if (1 === payload._status) return payload._result.default;
17315
17169
  throw payload._result;
17316
17170
  }
17317
17171
  var reportGlobalError$1 = "function" === typeof reportError ? reportError : function(error) {
@@ -17322,8 +17176,7 @@ var reportGlobalError$1 = "function" === typeof reportError ? reportError : func
17322
17176
  message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
17323
17177
  error
17324
17178
  });
17325
- if (!window.dispatchEvent(event))
17326
- return;
17179
+ if (!window.dispatchEvent(event)) return;
17327
17180
  } else if ("object" === typeof process && "function" === typeof process.emit) {
17328
17181
  process.emit("uncaughtException", error);
17329
17182
  return;
@@ -17391,8 +17244,7 @@ react_production.cloneElement = function(element, config, children) {
17391
17244
  for (propName in void 0 !== config.ref && (owner = void 0), void 0 !== config.key && (key2 = "" + config.key), config)
17392
17245
  !hasOwnProperty$1.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
17393
17246
  var propName = arguments.length - 2;
17394
- if (1 === propName)
17395
- props.children = children;
17247
+ if (1 === propName) props.children = children;
17396
17248
  else if (1 < propName) {
17397
17249
  for (var childArray = Array(propName), i2 = 0; i2 < propName; i2++)
17398
17250
  childArray[i2] = arguments[i2 + 2];
@@ -17422,8 +17274,7 @@ react_production.createElement = function(type, config, children) {
17422
17274
  for (propName in void 0 !== config.key && (key2 = "" + config.key), config)
17423
17275
  hasOwnProperty$1.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (props[propName] = config[propName]);
17424
17276
  var childrenLength = arguments.length - 2;
17425
- if (1 === childrenLength)
17426
- props.children = children;
17277
+ if (1 === childrenLength) props.children = children;
17427
17278
  else if (1 < childrenLength) {
17428
17279
  for (var childArray = Array(childrenLength), i2 = 0; i2 < childrenLength; i2++)
17429
17280
  childArray[i2] = arguments[i2 + 2];
@@ -17632,34 +17483,29 @@ var scheduler_production = {};
17632
17483
  function push2(heap, node) {
17633
17484
  var index2 = heap.length;
17634
17485
  heap.push(node);
17635
- a:
17636
- for (; 0 < index2; ) {
17637
- var parentIndex = index2 - 1 >>> 1, parent = heap[parentIndex];
17638
- if (0 < compare(parent, node))
17639
- heap[parentIndex] = node, heap[index2] = parent, index2 = parentIndex;
17640
- else
17641
- break a;
17642
- }
17486
+ a: for (; 0 < index2; ) {
17487
+ var parentIndex = index2 - 1 >>> 1, parent = heap[parentIndex];
17488
+ if (0 < compare(parent, node))
17489
+ heap[parentIndex] = node, heap[index2] = parent, index2 = parentIndex;
17490
+ else break a;
17491
+ }
17643
17492
  }
17644
17493
  function peek(heap) {
17645
17494
  return 0 === heap.length ? null : heap[0];
17646
17495
  }
17647
17496
  function pop2(heap) {
17648
- if (0 === heap.length)
17649
- return null;
17497
+ if (0 === heap.length) return null;
17650
17498
  var first = heap[0], last = heap.pop();
17651
17499
  if (last !== first) {
17652
17500
  heap[0] = last;
17653
- a:
17654
- for (var index2 = 0, length = heap.length, halfLength = length >>> 1; index2 < halfLength; ) {
17655
- var leftIndex = 2 * (index2 + 1) - 1, left = heap[leftIndex], rightIndex = leftIndex + 1, right = heap[rightIndex];
17656
- if (0 > compare(left, last))
17657
- rightIndex < length && 0 > compare(right, left) ? (heap[index2] = right, heap[rightIndex] = last, index2 = rightIndex) : (heap[index2] = left, heap[leftIndex] = last, index2 = leftIndex);
17658
- else if (rightIndex < length && 0 > compare(right, last))
17659
- heap[index2] = right, heap[rightIndex] = last, index2 = rightIndex;
17660
- else
17661
- break a;
17662
- }
17501
+ a: for (var index2 = 0, length = heap.length, halfLength = length >>> 1; index2 < halfLength; ) {
17502
+ var leftIndex = 2 * (index2 + 1) - 1, left = heap[leftIndex], rightIndex = leftIndex + 1, right = heap[rightIndex];
17503
+ if (0 > compare(left, last))
17504
+ rightIndex < length && 0 > compare(right, left) ? (heap[index2] = right, heap[rightIndex] = last, index2 = rightIndex) : (heap[index2] = left, heap[leftIndex] = last, index2 = leftIndex);
17505
+ else if (rightIndex < length && 0 > compare(right, last))
17506
+ heap[index2] = right, heap[rightIndex] = last, index2 = rightIndex;
17507
+ else break a;
17508
+ }
17663
17509
  }
17664
17510
  return first;
17665
17511
  }
@@ -17682,12 +17528,10 @@ var scheduler_production = {};
17682
17528
  var taskQueue = [], timerQueue = [], taskIdCounter = 1, currentTask = null, currentPriorityLevel = 3, isPerformingWork = false, isHostCallbackScheduled = false, isHostTimeoutScheduled = false, needsPaint = false, localSetTimeout = "function" === typeof setTimeout ? setTimeout : null, localClearTimeout = "function" === typeof clearTimeout ? clearTimeout : null, localSetImmediate = "undefined" !== typeof setImmediate ? setImmediate : null;
17683
17529
  function advanceTimers(currentTime) {
17684
17530
  for (var timer = peek(timerQueue); null !== timer; ) {
17685
- if (null === timer.callback)
17686
- pop2(timerQueue);
17531
+ if (null === timer.callback) pop2(timerQueue);
17687
17532
  else if (timer.startTime <= currentTime)
17688
17533
  pop2(timerQueue), timer.sortIndex = timer.expirationTime, push2(taskQueue, timer);
17689
- else
17690
- break;
17534
+ else break;
17691
17535
  timer = peek(timerQueue);
17692
17536
  }
17693
17537
  }
@@ -17738,12 +17582,10 @@ var scheduler_production = {};
17738
17582
  }
17739
17583
  currentTask === peek(taskQueue) && pop2(taskQueue);
17740
17584
  advanceTimers(currentTime);
17741
- } else
17742
- pop2(taskQueue);
17585
+ } else pop2(taskQueue);
17743
17586
  currentTask = peek(taskQueue);
17744
17587
  }
17745
- if (null !== currentTask)
17746
- hasMoreWork = true;
17588
+ if (null !== currentTask) hasMoreWork = true;
17747
17589
  else {
17748
17590
  var firstTimer = peek(timerQueue);
17749
17591
  null !== firstTimer && requestHostTimeout(
@@ -17942,8 +17784,7 @@ function createPortal$1(children, containerInfo, implementation) {
17942
17784
  }
17943
17785
  var ReactSharedInternals$1 = React$1.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
17944
17786
  function getCrossOriginStringAs(as, input) {
17945
- if ("font" === as)
17946
- return "";
17787
+ if ("font" === as) return "";
17947
17788
  if ("string" === typeof input)
17948
17789
  return "use-credentials" === input ? input : "";
17949
17790
  }
@@ -17957,8 +17798,7 @@ reactDom_production.createPortal = function(children, container) {
17957
17798
  reactDom_production.flushSync = function(fn) {
17958
17799
  var previousTransition = ReactSharedInternals$1.T, previousUpdatePriority = Internals.p;
17959
17800
  try {
17960
- if (ReactSharedInternals$1.T = null, Internals.p = 2, fn)
17961
- return fn();
17801
+ if (ReactSharedInternals$1.T = null, Internals.p = 2, fn) return fn();
17962
17802
  } finally {
17963
17803
  ReactSharedInternals$1.T = previousTransition, Internals.p = previousUpdatePriority, Internals.d.f();
17964
17804
  }
@@ -18002,8 +17842,7 @@ reactDom_production.preinitModule = function(href, options) {
18002
17842
  nonce: "string" === typeof options.nonce ? options.nonce : void 0
18003
17843
  });
18004
17844
  }
18005
- } else
18006
- null == options && Internals.d.M(href);
17845
+ } else null == options && Internals.d.M(href);
18007
17846
  };
18008
17847
  reactDom_production.preload = function(href, options) {
18009
17848
  if ("string" === typeof href && "object" === typeof options && null !== options && "string" === typeof options.as) {
@@ -18030,8 +17869,7 @@ reactDom_production.preloadModule = function(href, options) {
18030
17869
  crossOrigin,
18031
17870
  integrity: "string" === typeof options.integrity ? options.integrity : void 0
18032
17871
  });
18033
- } else
18034
- Internals.d.m(href);
17872
+ } else Internals.d.m(href);
18035
17873
  };
18036
17874
  reactDom_production.requestFormReset = function(form) {
18037
17875
  Internals.d.r(form);
@@ -18085,9 +17923,7 @@ function isValidContainer(node) {
18085
17923
  }
18086
17924
  function getNearestMountedFiber(fiber) {
18087
17925
  var node = fiber, nearestMounted = fiber;
18088
- if (fiber.alternate)
18089
- for (; node.return; )
18090
- node = node.return;
17926
+ if (fiber.alternate) for (; node.return; ) node = node.return;
18091
17927
  else {
18092
17928
  fiber = node;
18093
17929
  do
@@ -18100,8 +17936,7 @@ function getSuspenseInstanceFromFiber(fiber) {
18100
17936
  if (13 === fiber.tag) {
18101
17937
  var suspenseState = fiber.memoizedState;
18102
17938
  null === suspenseState && (fiber = fiber.alternate, null !== fiber && (suspenseState = fiber.memoizedState));
18103
- if (null !== suspenseState)
18104
- return suspenseState.dehydrated;
17939
+ if (null !== suspenseState) return suspenseState.dehydrated;
18105
17940
  }
18106
17941
  return null;
18107
17942
  }
@@ -18113,14 +17948,12 @@ function findCurrentFiberUsingSlowPath(fiber) {
18113
17948
  var alternate = fiber.alternate;
18114
17949
  if (!alternate) {
18115
17950
  alternate = getNearestMountedFiber(fiber);
18116
- if (null === alternate)
18117
- throw Error(formatProdErrorMessage(188));
17951
+ if (null === alternate) throw Error(formatProdErrorMessage(188));
18118
17952
  return alternate !== fiber ? null : fiber;
18119
17953
  }
18120
17954
  for (var a2 = fiber, b = alternate; ; ) {
18121
17955
  var parentA = a2.return;
18122
- if (null === parentA)
18123
- break;
17956
+ if (null === parentA) break;
18124
17957
  var parentB = parentA.alternate;
18125
17958
  if (null === parentB) {
18126
17959
  b = parentA.return;
@@ -18132,16 +17965,13 @@ function findCurrentFiberUsingSlowPath(fiber) {
18132
17965
  }
18133
17966
  if (parentA.child === parentB.child) {
18134
17967
  for (parentB = parentA.child; parentB; ) {
18135
- if (parentB === a2)
18136
- return assertIsMounted(parentA), fiber;
18137
- if (parentB === b)
18138
- return assertIsMounted(parentA), alternate;
17968
+ if (parentB === a2) return assertIsMounted(parentA), fiber;
17969
+ if (parentB === b) return assertIsMounted(parentA), alternate;
18139
17970
  parentB = parentB.sibling;
18140
17971
  }
18141
17972
  throw Error(formatProdErrorMessage(188));
18142
17973
  }
18143
- if (a2.return !== b.return)
18144
- a2 = parentA, b = parentB;
17974
+ if (a2.return !== b.return) a2 = parentA, b = parentB;
18145
17975
  else {
18146
17976
  for (var didFindChild = false, child$0 = parentA.child; child$0; ) {
18147
17977
  if (child$0 === a2) {
@@ -18174,25 +18004,20 @@ function findCurrentFiberUsingSlowPath(fiber) {
18174
18004
  }
18175
18005
  child$0 = child$0.sibling;
18176
18006
  }
18177
- if (!didFindChild)
18178
- throw Error(formatProdErrorMessage(189));
18007
+ if (!didFindChild) throw Error(formatProdErrorMessage(189));
18179
18008
  }
18180
18009
  }
18181
- if (a2.alternate !== b)
18182
- throw Error(formatProdErrorMessage(190));
18010
+ if (a2.alternate !== b) throw Error(formatProdErrorMessage(190));
18183
18011
  }
18184
- if (3 !== a2.tag)
18185
- throw Error(formatProdErrorMessage(188));
18012
+ if (3 !== a2.tag) throw Error(formatProdErrorMessage(188));
18186
18013
  return a2.stateNode.current === a2 ? fiber : alternate;
18187
18014
  }
18188
18015
  function findCurrentHostFiberImpl(node) {
18189
18016
  var tag = node.tag;
18190
- if (5 === tag || 26 === tag || 27 === tag || 6 === tag)
18191
- return node;
18017
+ if (5 === tag || 26 === tag || 27 === tag || 6 === tag) return node;
18192
18018
  for (node = node.child; null !== node; ) {
18193
18019
  tag = findCurrentHostFiberImpl(node);
18194
- if (null !== tag)
18195
- return tag;
18020
+ if (null !== tag) return tag;
18196
18021
  node = node.sibling;
18197
18022
  }
18198
18023
  return null;
@@ -18202,19 +18027,16 @@ var REACT_ACTIVITY_TYPE = Symbol.for("react.activity");
18202
18027
  var REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel");
18203
18028
  var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
18204
18029
  function getIteratorFn(maybeIterable) {
18205
- if (null === maybeIterable || "object" !== typeof maybeIterable)
18206
- return null;
18030
+ if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
18207
18031
  maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
18208
18032
  return "function" === typeof maybeIterable ? maybeIterable : null;
18209
18033
  }
18210
18034
  var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
18211
18035
  function getComponentNameFromType(type) {
18212
- if (null == type)
18213
- return null;
18036
+ if (null == type) return null;
18214
18037
  if ("function" === typeof type)
18215
18038
  return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
18216
- if ("string" === typeof type)
18217
- return type;
18039
+ if ("string" === typeof type) return type;
18218
18040
  switch (type) {
18219
18041
  case REACT_FRAGMENT_TYPE:
18220
18042
  return "Fragment";
@@ -18331,8 +18153,7 @@ function clz32Fallback(x2) {
18331
18153
  var nextTransitionLane = 256, nextRetryLane = 4194304;
18332
18154
  function getHighestPriorityLanes(lanes) {
18333
18155
  var pendingSyncLanes = lanes & 42;
18334
- if (0 !== pendingSyncLanes)
18335
- return pendingSyncLanes;
18156
+ if (0 !== pendingSyncLanes) return pendingSyncLanes;
18336
18157
  switch (lanes & -lanes) {
18337
18158
  case 1:
18338
18159
  return 1;
@@ -18386,8 +18207,7 @@ function getHighestPriorityLanes(lanes) {
18386
18207
  }
18387
18208
  function getNextLanes(root2, wipLanes, rootHasPendingCommit) {
18388
18209
  var pendingLanes = root2.pendingLanes;
18389
- if (0 === pendingLanes)
18390
- return 0;
18210
+ if (0 === pendingLanes) return 0;
18391
18211
  var nextLanes = 0, suspendedLanes = root2.suspendedLanes, pingedLanes = root2.pingedLanes;
18392
18212
  root2 = root2.warmLanes;
18393
18213
  var nonIdlePendingLanes = pendingLanes & 134217727;
@@ -18451,8 +18271,7 @@ function claimNextRetryLane() {
18451
18271
  return lane;
18452
18272
  }
18453
18273
  function createLaneMap(initial) {
18454
- for (var laneMap = [], i2 = 0; 31 > i2; i2++)
18455
- laneMap.push(initial);
18274
+ for (var laneMap = [], i2 = 0; 31 > i2; i2++) laneMap.push(initial);
18456
18275
  return laneMap;
18457
18276
  }
18458
18277
  function markRootUpdated$1(root2, updateLane) {
@@ -18545,8 +18364,7 @@ function lanesToEventPriority(lanes) {
18545
18364
  }
18546
18365
  function resolveUpdatePriority() {
18547
18366
  var updatePriority = ReactDOMSharedInternals.p;
18548
- if (0 !== updatePriority)
18549
- return updatePriority;
18367
+ if (0 !== updatePriority) return updatePriority;
18550
18368
  updatePriority = window.event;
18551
18369
  return void 0 === updatePriority ? 32 : getEventPriority(updatePriority.type);
18552
18370
  }
@@ -18568,15 +18386,13 @@ function detachDeletedInstance(node) {
18568
18386
  }
18569
18387
  function getClosestInstanceFromNode(targetNode) {
18570
18388
  var targetInst = targetNode[internalInstanceKey];
18571
- if (targetInst)
18572
- return targetInst;
18389
+ if (targetInst) return targetInst;
18573
18390
  for (var parentNode = targetNode.parentNode; parentNode; ) {
18574
18391
  if (targetInst = parentNode[internalContainerInstanceKey] || parentNode[internalInstanceKey]) {
18575
18392
  parentNode = targetInst.alternate;
18576
18393
  if (null !== targetInst.child || null !== parentNode && null !== parentNode.child)
18577
18394
  for (targetNode = getParentSuspenseInstance(targetNode); null !== targetNode; ) {
18578
- if (parentNode = targetNode[internalInstanceKey])
18579
- return parentNode;
18395
+ if (parentNode = targetNode[internalInstanceKey]) return parentNode;
18580
18396
  targetNode = getParentSuspenseInstance(targetNode);
18581
18397
  }
18582
18398
  return targetInst;
@@ -18596,8 +18412,7 @@ function getInstanceFromNode(node) {
18596
18412
  }
18597
18413
  function getNodeFromInstance(inst) {
18598
18414
  var tag = inst.tag;
18599
- if (5 === tag || 26 === tag || 27 === tag || 6 === tag)
18600
- return inst.stateNode;
18415
+ if (5 === tag || 26 === tag || 27 === tag || 6 === tag) return inst.stateNode;
18601
18416
  throw Error(formatProdErrorMessage(33));
18602
18417
  }
18603
18418
  function getResourcesFromRoot(root2) {
@@ -18624,8 +18439,7 @@ var VALID_ATTRIBUTE_NAME_REGEX = RegExp(
18624
18439
  function isAttributeNameSafe(attributeName) {
18625
18440
  if (hasOwnProperty.call(validatedAttributeNameCache, attributeName))
18626
18441
  return true;
18627
- if (hasOwnProperty.call(illegalAttributeNameCache, attributeName))
18628
- return false;
18442
+ if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) return false;
18629
18443
  if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName))
18630
18444
  return validatedAttributeNameCache[attributeName] = true;
18631
18445
  illegalAttributeNameCache[attributeName] = true;
@@ -18633,8 +18447,7 @@ function isAttributeNameSafe(attributeName) {
18633
18447
  }
18634
18448
  function setValueForAttribute(node, name, value) {
18635
18449
  if (isAttributeNameSafe(name))
18636
- if (null === value)
18637
- node.removeAttribute(name);
18450
+ if (null === value) node.removeAttribute(name);
18638
18451
  else {
18639
18452
  switch (typeof value) {
18640
18453
  case "undefined":
@@ -18653,8 +18466,7 @@ function setValueForAttribute(node, name, value) {
18653
18466
  }
18654
18467
  }
18655
18468
  function setValueForKnownAttribute(node, name, value) {
18656
- if (null === value)
18657
- node.removeAttribute(name);
18469
+ if (null === value) node.removeAttribute(name);
18658
18470
  else {
18659
18471
  switch (typeof value) {
18660
18472
  case "undefined":
@@ -18668,8 +18480,7 @@ function setValueForKnownAttribute(node, name, value) {
18668
18480
  }
18669
18481
  }
18670
18482
  function setValueForNamespacedAttribute(node, namespace, name, value) {
18671
- if (null === value)
18672
- node.removeAttribute(name);
18483
+ if (null === value) node.removeAttribute(name);
18673
18484
  else {
18674
18485
  switch (typeof value) {
18675
18486
  case "undefined":
@@ -18696,8 +18507,7 @@ function describeBuiltInComponentFrame(name) {
18696
18507
  }
18697
18508
  var reentry = false;
18698
18509
  function describeNativeComponentFrame(fn, construct) {
18699
- if (!fn || reentry)
18700
- return "";
18510
+ if (!fn || reentry) return "";
18701
18511
  reentry = true;
18702
18512
  var previousPrepareStackTrace = Error.prepareStackTrace;
18703
18513
  Error.prepareStackTrace = void 0;
@@ -18878,11 +18688,9 @@ function track(node) {
18878
18688
  node._valueTracker || (node._valueTracker = trackValueOnNode(node));
18879
18689
  }
18880
18690
  function updateValueIfChanged(node) {
18881
- if (!node)
18882
- return false;
18691
+ if (!node) return false;
18883
18692
  var tracker = node._valueTracker;
18884
- if (!tracker)
18885
- return true;
18693
+ if (!tracker) return true;
18886
18694
  var lastValue = tracker.getValue();
18887
18695
  var value = "";
18888
18696
  node && (value = isCheckable(node) ? node.checked ? "true" : "false" : node.value);
@@ -18891,8 +18699,7 @@ function updateValueIfChanged(node) {
18891
18699
  }
18892
18700
  function getActiveElement(doc2) {
18893
18701
  doc2 = doc2 || ("undefined" !== typeof document ? document : void 0);
18894
- if ("undefined" === typeof doc2)
18895
- return null;
18702
+ if ("undefined" === typeof doc2) return null;
18896
18703
  try {
18897
18704
  return doc2.activeElement || doc2.body;
18898
18705
  } catch (e2) {
@@ -18975,11 +18782,9 @@ function updateTextarea(element, value, defaultValue) {
18975
18782
  function initTextarea(element, value, defaultValue, children) {
18976
18783
  if (null == value) {
18977
18784
  if (null != children) {
18978
- if (null != defaultValue)
18979
- throw Error(formatProdErrorMessage(92));
18785
+ if (null != defaultValue) throw Error(formatProdErrorMessage(92));
18980
18786
  if (isArrayImpl(children)) {
18981
- if (1 < children.length)
18982
- throw Error(formatProdErrorMessage(93));
18787
+ if (1 < children.length) throw Error(formatProdErrorMessage(93));
18983
18788
  children = children[0];
18984
18789
  }
18985
18790
  defaultValue = children;
@@ -19025,8 +18830,7 @@ function setValueForStyles(node, styles, prevStyles) {
19025
18830
  styles.hasOwnProperty(styleName$17) && setValueForStyle(node, styleName$17, styles[styleName$17]);
19026
18831
  }
19027
18832
  function isCustomElement(tagName) {
19028
- if (-1 === tagName.indexOf("-"))
19029
- return false;
18833
+ if (-1 === tagName.indexOf("-")) return false;
19030
18834
  switch (tagName) {
19031
18835
  case "annotation-xml":
19032
18836
  case "color-profile":
@@ -19135,62 +18939,58 @@ function restoreStateOfTarget(target) {
19135
18939
  var internalInstance = getInstanceFromNode(target);
19136
18940
  if (internalInstance && (target = internalInstance.stateNode)) {
19137
18941
  var props = target[internalPropsKey] || null;
19138
- a:
19139
- switch (target = internalInstance.stateNode, internalInstance.type) {
19140
- case "input":
19141
- updateInput(
19142
- target,
19143
- props.value,
19144
- props.defaultValue,
19145
- props.defaultValue,
19146
- props.checked,
19147
- props.defaultChecked,
19148
- props.type,
19149
- props.name
18942
+ a: switch (target = internalInstance.stateNode, internalInstance.type) {
18943
+ case "input":
18944
+ updateInput(
18945
+ target,
18946
+ props.value,
18947
+ props.defaultValue,
18948
+ props.defaultValue,
18949
+ props.checked,
18950
+ props.defaultChecked,
18951
+ props.type,
18952
+ props.name
18953
+ );
18954
+ internalInstance = props.name;
18955
+ if ("radio" === props.type && null != internalInstance) {
18956
+ for (props = target; props.parentNode; ) props = props.parentNode;
18957
+ props = props.querySelectorAll(
18958
+ 'input[name="' + escapeSelectorAttributeValueInsideDoubleQuotes(
18959
+ "" + internalInstance
18960
+ ) + '"][type="radio"]'
19150
18961
  );
19151
- internalInstance = props.name;
19152
- if ("radio" === props.type && null != internalInstance) {
19153
- for (props = target; props.parentNode; )
19154
- props = props.parentNode;
19155
- props = props.querySelectorAll(
19156
- 'input[name="' + escapeSelectorAttributeValueInsideDoubleQuotes(
19157
- "" + internalInstance
19158
- ) + '"][type="radio"]'
19159
- );
19160
- for (internalInstance = 0; internalInstance < props.length; internalInstance++) {
19161
- var otherNode = props[internalInstance];
19162
- if (otherNode !== target && otherNode.form === target.form) {
19163
- var otherProps = otherNode[internalPropsKey] || null;
19164
- if (!otherProps)
19165
- throw Error(formatProdErrorMessage(90));
19166
- updateInput(
19167
- otherNode,
19168
- otherProps.value,
19169
- otherProps.defaultValue,
19170
- otherProps.defaultValue,
19171
- otherProps.checked,
19172
- otherProps.defaultChecked,
19173
- otherProps.type,
19174
- otherProps.name
19175
- );
19176
- }
18962
+ for (internalInstance = 0; internalInstance < props.length; internalInstance++) {
18963
+ var otherNode = props[internalInstance];
18964
+ if (otherNode !== target && otherNode.form === target.form) {
18965
+ var otherProps = otherNode[internalPropsKey] || null;
18966
+ if (!otherProps) throw Error(formatProdErrorMessage(90));
18967
+ updateInput(
18968
+ otherNode,
18969
+ otherProps.value,
18970
+ otherProps.defaultValue,
18971
+ otherProps.defaultValue,
18972
+ otherProps.checked,
18973
+ otherProps.defaultChecked,
18974
+ otherProps.type,
18975
+ otherProps.name
18976
+ );
19177
18977
  }
19178
- for (internalInstance = 0; internalInstance < props.length; internalInstance++)
19179
- otherNode = props[internalInstance], otherNode.form === target.form && updateValueIfChanged(otherNode);
19180
18978
  }
19181
- break a;
19182
- case "textarea":
19183
- updateTextarea(target, props.value, props.defaultValue);
19184
- break a;
19185
- case "select":
19186
- internalInstance = props.value, null != internalInstance && updateOptions(target, !!props.multiple, internalInstance, false);
19187
- }
18979
+ for (internalInstance = 0; internalInstance < props.length; internalInstance++)
18980
+ otherNode = props[internalInstance], otherNode.form === target.form && updateValueIfChanged(otherNode);
18981
+ }
18982
+ break a;
18983
+ case "textarea":
18984
+ updateTextarea(target, props.value, props.defaultValue);
18985
+ break a;
18986
+ case "select":
18987
+ internalInstance = props.value, null != internalInstance && updateOptions(target, !!props.multiple, internalInstance, false);
18988
+ }
19188
18989
  }
19189
18990
  }
19190
18991
  var isInsideEventHandler = false;
19191
18992
  function batchedUpdates$1(fn, a2, b) {
19192
- if (isInsideEventHandler)
19193
- return fn(a2, b);
18993
+ if (isInsideEventHandler) return fn(a2, b);
19194
18994
  isInsideEventHandler = true;
19195
18995
  try {
19196
18996
  var JSCompiler_inline_result = fn(a2);
@@ -19198,40 +18998,35 @@ function batchedUpdates$1(fn, a2, b) {
19198
18998
  } finally {
19199
18999
  if (isInsideEventHandler = false, null !== restoreTarget || null !== restoreQueue) {
19200
19000
  if (flushSyncWork$1(), restoreTarget && (a2 = restoreTarget, fn = restoreQueue, restoreQueue = restoreTarget = null, restoreStateOfTarget(a2), fn))
19201
- for (a2 = 0; a2 < fn.length; a2++)
19202
- restoreStateOfTarget(fn[a2]);
19001
+ for (a2 = 0; a2 < fn.length; a2++) restoreStateOfTarget(fn[a2]);
19203
19002
  }
19204
19003
  }
19205
19004
  }
19206
19005
  function getListener(inst, registrationName) {
19207
19006
  var stateNode = inst.stateNode;
19208
- if (null === stateNode)
19209
- return null;
19007
+ if (null === stateNode) return null;
19210
19008
  var props = stateNode[internalPropsKey] || null;
19211
- if (null === props)
19212
- return null;
19009
+ if (null === props) return null;
19213
19010
  stateNode = props[registrationName];
19214
- a:
19215
- switch (registrationName) {
19216
- case "onClick":
19217
- case "onClickCapture":
19218
- case "onDoubleClick":
19219
- case "onDoubleClickCapture":
19220
- case "onMouseDown":
19221
- case "onMouseDownCapture":
19222
- case "onMouseMove":
19223
- case "onMouseMoveCapture":
19224
- case "onMouseUp":
19225
- case "onMouseUpCapture":
19226
- case "onMouseEnter":
19227
- (props = !props.disabled) || (inst = inst.type, props = !("button" === inst || "input" === inst || "select" === inst || "textarea" === inst));
19228
- inst = !props;
19229
- break a;
19230
- default:
19231
- inst = false;
19232
- }
19233
- if (inst)
19234
- return null;
19011
+ a: switch (registrationName) {
19012
+ case "onClick":
19013
+ case "onClickCapture":
19014
+ case "onDoubleClick":
19015
+ case "onDoubleClickCapture":
19016
+ case "onMouseDown":
19017
+ case "onMouseDownCapture":
19018
+ case "onMouseMove":
19019
+ case "onMouseMoveCapture":
19020
+ case "onMouseUp":
19021
+ case "onMouseUpCapture":
19022
+ case "onMouseEnter":
19023
+ (props = !props.disabled) || (inst = inst.type, props = !("button" === inst || "input" === inst || "select" === inst || "textarea" === inst));
19024
+ inst = !props;
19025
+ break a;
19026
+ default:
19027
+ inst = false;
19028
+ }
19029
+ if (inst) return null;
19235
19030
  if (stateNode && "function" !== typeof stateNode)
19236
19031
  throw Error(
19237
19032
  formatProdErrorMessage(231, registrationName, typeof stateNode)
@@ -19254,14 +19049,11 @@ if (canUseDOM)
19254
19049
  }
19255
19050
  var root = null, startText = null, fallbackText = null;
19256
19051
  function getData() {
19257
- if (fallbackText)
19258
- return fallbackText;
19052
+ if (fallbackText) return fallbackText;
19259
19053
  var start, startValue = startText, startLength = startValue.length, end, endValue = "value" in root ? root.value : root.textContent, endLength = endValue.length;
19260
- for (start = 0; start < startLength && startValue[start] === endValue[start]; start++)
19261
- ;
19054
+ for (start = 0; start < startLength && startValue[start] === endValue[start]; start++) ;
19262
19055
  var minEnd = startLength - start;
19263
- for (end = 1; end <= minEnd && startValue[startLength - end] === endValue[endLength - end]; end++)
19264
- ;
19056
+ for (end = 1; end <= minEnd && startValue[startLength - end] === endValue[endLength - end]; end++) ;
19265
19057
  return fallbackText = endValue.slice(start, 1 < end ? 1 - end : void 0);
19266
19058
  }
19267
19059
  function getEventCharCode(nativeEvent) {
@@ -19333,8 +19125,7 @@ var EventInterface = {
19333
19125
  return void 0 === event.relatedTarget ? event.fromElement === event.srcElement ? event.toElement : event.fromElement : event.relatedTarget;
19334
19126
  },
19335
19127
  movementX: function(event) {
19336
- if ("movementX" in event)
19337
- return event.movementX;
19128
+ if ("movementX" in event) return event.movementX;
19338
19129
  event !== lastMouseEvent && (lastMouseEvent && "mousemove" === event.type ? (lastMovementX = event.screenX - lastMouseEvent.screenX, lastMovementY = event.screenY - lastMouseEvent.screenY) : lastMovementY = lastMovementX = 0, lastMouseEvent = event);
19339
19130
  return lastMovementX;
19340
19131
  },
@@ -19416,8 +19207,7 @@ var KeyboardEventInterface = assign({}, UIEventInterface, {
19416
19207
  key: function(nativeEvent) {
19417
19208
  if (nativeEvent.key) {
19418
19209
  var key2 = normalizeKey[nativeEvent.key] || nativeEvent.key;
19419
- if ("Unidentified" !== key2)
19420
- return key2;
19210
+ if ("Unidentified" !== key2) return key2;
19421
19211
  }
19422
19212
  return "keypress" === nativeEvent.type ? (nativeEvent = getEventCharCode(nativeEvent), 13 === nativeEvent ? "Enter" : String.fromCharCode(nativeEvent)) : "keydown" === nativeEvent.type || "keyup" === nativeEvent.type ? translateToKey[nativeEvent.keyCode] || "Unidentified" : "";
19423
19213
  },
@@ -19502,8 +19292,7 @@ function getNativeBeforeInputChars(domEventName, nativeEvent) {
19502
19292
  case "compositionend":
19503
19293
  return getDataFromCustomEvent(nativeEvent);
19504
19294
  case "keypress":
19505
- if (32 !== nativeEvent.which)
19506
- return null;
19295
+ if (32 !== nativeEvent.which) return null;
19507
19296
  hasSpaceKeypress = true;
19508
19297
  return SPACEBAR_CHAR;
19509
19298
  case "textInput":
@@ -19522,8 +19311,7 @@ function getFallbackBeforeInputChars(domEventName, nativeEvent) {
19522
19311
  if (!(nativeEvent.ctrlKey || nativeEvent.altKey || nativeEvent.metaKey) || nativeEvent.ctrlKey && nativeEvent.altKey) {
19523
19312
  if (nativeEvent.char && 1 < nativeEvent.char.length)
19524
19313
  return nativeEvent.char;
19525
- if (nativeEvent.which)
19526
- return String.fromCharCode(nativeEvent.which);
19314
+ if (nativeEvent.which) return String.fromCharCode(nativeEvent.which);
19527
19315
  }
19528
19316
  return null;
19529
19317
  case "compositionend":
@@ -19570,12 +19358,10 @@ function runEventInBatch(dispatchQueue) {
19570
19358
  }
19571
19359
  function getInstIfValueChanged(targetInst) {
19572
19360
  var targetNode = getNodeFromInstance(targetInst);
19573
- if (updateValueIfChanged(targetNode))
19574
- return targetInst;
19361
+ if (updateValueIfChanged(targetNode)) return targetInst;
19575
19362
  }
19576
19363
  function getTargetInstForChangeEvent(domEventName, targetInst) {
19577
- if ("change" === domEventName)
19578
- return targetInst;
19364
+ if ("change" === domEventName) return targetInst;
19579
19365
  }
19580
19366
  var isInputEventSupported = false;
19581
19367
  if (canUseDOM) {
@@ -19588,8 +19374,7 @@ if (canUseDOM) {
19588
19374
  isSupported$jscomp$inline_417 = "function" === typeof element$jscomp$inline_418.oninput;
19589
19375
  }
19590
19376
  JSCompiler_inline_result$jscomp$282 = isSupported$jscomp$inline_417;
19591
- } else
19592
- JSCompiler_inline_result$jscomp$282 = false;
19377
+ } else JSCompiler_inline_result$jscomp$282 = false;
19593
19378
  isInputEventSupported = JSCompiler_inline_result$jscomp$282 && (!document.documentMode || 9 < document.documentMode);
19594
19379
  }
19595
19380
  function stopWatchingForValueChange() {
@@ -19615,8 +19400,7 @@ function getTargetInstForInputEventPolyfill(domEventName) {
19615
19400
  return getInstIfValueChanged(activeElementInst$1);
19616
19401
  }
19617
19402
  function getTargetInstForClickEvent(domEventName, targetInst) {
19618
- if ("click" === domEventName)
19619
- return getInstIfValueChanged(targetInst);
19403
+ if ("click" === domEventName) return getInstIfValueChanged(targetInst);
19620
19404
  }
19621
19405
  function getTargetInstForInputOrChangeEvent(domEventName, targetInst) {
19622
19406
  if ("input" === domEventName || "change" === domEventName)
@@ -19627,13 +19411,11 @@ function is(x2, y2) {
19627
19411
  }
19628
19412
  var objectIs = "function" === typeof Object.is ? Object.is : is;
19629
19413
  function shallowEqual(objA, objB) {
19630
- if (objectIs(objA, objB))
19631
- return true;
19414
+ if (objectIs(objA, objB)) return true;
19632
19415
  if ("object" !== typeof objA || null === objA || "object" !== typeof objB || null === objB)
19633
19416
  return false;
19634
19417
  var keysA = Object.keys(objA), keysB = Object.keys(objB);
19635
- if (keysA.length !== keysB.length)
19636
- return false;
19418
+ if (keysA.length !== keysB.length) return false;
19637
19419
  for (keysB = 0; keysB < keysA.length; keysB++) {
19638
19420
  var currentKey = keysA[keysB];
19639
19421
  if (!hasOwnProperty.call(objB, currentKey) || !objectIs(objA[currentKey], objB[currentKey]))
@@ -19642,8 +19424,7 @@ function shallowEqual(objA, objB) {
19642
19424
  return true;
19643
19425
  }
19644
19426
  function getLeafNode(node) {
19645
- for (; node && node.firstChild; )
19646
- node = node.firstChild;
19427
+ for (; node && node.firstChild; ) node = node.firstChild;
19647
19428
  return node;
19648
19429
  }
19649
19430
  function getNodeForCharacterOffset(root2, offset) {
@@ -19680,10 +19461,8 @@ function getActiveElementDeep(containerInfo) {
19680
19461
  } catch (err) {
19681
19462
  JSCompiler_inline_result = false;
19682
19463
  }
19683
- if (JSCompiler_inline_result)
19684
- containerInfo = element.contentWindow;
19685
- else
19686
- break;
19464
+ if (JSCompiler_inline_result) containerInfo = element.contentWindow;
19465
+ else break;
19687
19466
  element = getActiveElement(containerInfo.document);
19688
19467
  }
19689
19468
  return element;
@@ -19726,10 +19505,8 @@ var vendorPrefixes = {
19726
19505
  }, prefixedEventNames = {}, style = {};
19727
19506
  canUseDOM && (style = document.createElement("div").style, "AnimationEvent" in window || (delete vendorPrefixes.animationend.animation, delete vendorPrefixes.animationiteration.animation, delete vendorPrefixes.animationstart.animation), "TransitionEvent" in window || delete vendorPrefixes.transitionend.transition);
19728
19507
  function getVendorPrefixedEventName(eventName) {
19729
- if (prefixedEventNames[eventName])
19730
- return prefixedEventNames[eventName];
19731
- if (!vendorPrefixes[eventName])
19732
- return eventName;
19508
+ if (prefixedEventNames[eventName]) return prefixedEventNames[eventName];
19509
+ if (!vendorPrefixes[eventName]) return eventName;
19733
19510
  var prefixMap = vendorPrefixes[eventName], styleProp;
19734
19511
  for (styleProp in prefixMap)
19735
19512
  if (prefixMap.hasOwnProperty(styleProp) && styleProp in style)
@@ -19748,8 +19525,7 @@ var CapturedStacks = /* @__PURE__ */ new WeakMap();
19748
19525
  function createCapturedValueAtFiber(value, source) {
19749
19526
  if ("object" === typeof value && null !== value) {
19750
19527
  var existing = CapturedStacks.get(value);
19751
- if (void 0 !== existing)
19752
- return existing;
19528
+ if (void 0 !== existing) return existing;
19753
19529
  source = {
19754
19530
  value,
19755
19531
  source,
@@ -19873,8 +19649,7 @@ function resetWorkInProgress(workInProgress2, renderLanes2) {
19873
19649
  function createFiberFromTypeAndProps(type, key2, pendingProps, owner, mode, lanes) {
19874
19650
  var fiberTag = 0;
19875
19651
  owner = type;
19876
- if ("function" === typeof type)
19877
- shouldConstruct(type) && (fiberTag = 1);
19652
+ if ("function" === typeof type) shouldConstruct(type) && (fiberTag = 1);
19878
19653
  else if ("string" === typeof type)
19879
19654
  fiberTag = isHostHoistableType(
19880
19655
  type,
@@ -19882,49 +19657,48 @@ function createFiberFromTypeAndProps(type, key2, pendingProps, owner, mode, lane
19882
19657
  contextStackCursor.current
19883
19658
  ) ? 26 : "html" === type || "head" === type || "body" === type ? 27 : 5;
19884
19659
  else
19885
- a:
19886
- switch (type) {
19887
- case REACT_ACTIVITY_TYPE:
19888
- return type = createFiberImplClass(31, pendingProps, key2, mode), type.elementType = REACT_ACTIVITY_TYPE, type.lanes = lanes, type;
19889
- case REACT_FRAGMENT_TYPE:
19890
- return createFiberFromFragment(pendingProps.children, mode, lanes, key2);
19891
- case REACT_STRICT_MODE_TYPE:
19892
- fiberTag = 8;
19893
- mode |= 24;
19894
- break;
19895
- case REACT_PROFILER_TYPE:
19896
- return type = createFiberImplClass(12, pendingProps, key2, mode | 2), type.elementType = REACT_PROFILER_TYPE, type.lanes = lanes, type;
19897
- case REACT_SUSPENSE_TYPE:
19898
- return type = createFiberImplClass(13, pendingProps, key2, mode), type.elementType = REACT_SUSPENSE_TYPE, type.lanes = lanes, type;
19899
- case REACT_SUSPENSE_LIST_TYPE:
19900
- return type = createFiberImplClass(19, pendingProps, key2, mode), type.elementType = REACT_SUSPENSE_LIST_TYPE, type.lanes = lanes, type;
19901
- default:
19902
- if ("object" === typeof type && null !== type)
19903
- switch (type.$$typeof) {
19904
- case REACT_PROVIDER_TYPE:
19905
- case REACT_CONTEXT_TYPE:
19906
- fiberTag = 10;
19907
- break a;
19908
- case REACT_CONSUMER_TYPE:
19909
- fiberTag = 9;
19910
- break a;
19911
- case REACT_FORWARD_REF_TYPE:
19912
- fiberTag = 11;
19913
- break a;
19914
- case REACT_MEMO_TYPE:
19915
- fiberTag = 14;
19916
- break a;
19917
- case REACT_LAZY_TYPE:
19918
- fiberTag = 16;
19919
- owner = null;
19920
- break a;
19921
- }
19922
- fiberTag = 29;
19923
- pendingProps = Error(
19924
- formatProdErrorMessage(130, null === type ? "null" : typeof type, "")
19925
- );
19926
- owner = null;
19927
- }
19660
+ a: switch (type) {
19661
+ case REACT_ACTIVITY_TYPE:
19662
+ return type = createFiberImplClass(31, pendingProps, key2, mode), type.elementType = REACT_ACTIVITY_TYPE, type.lanes = lanes, type;
19663
+ case REACT_FRAGMENT_TYPE:
19664
+ return createFiberFromFragment(pendingProps.children, mode, lanes, key2);
19665
+ case REACT_STRICT_MODE_TYPE:
19666
+ fiberTag = 8;
19667
+ mode |= 24;
19668
+ break;
19669
+ case REACT_PROFILER_TYPE:
19670
+ return type = createFiberImplClass(12, pendingProps, key2, mode | 2), type.elementType = REACT_PROFILER_TYPE, type.lanes = lanes, type;
19671
+ case REACT_SUSPENSE_TYPE:
19672
+ return type = createFiberImplClass(13, pendingProps, key2, mode), type.elementType = REACT_SUSPENSE_TYPE, type.lanes = lanes, type;
19673
+ case REACT_SUSPENSE_LIST_TYPE:
19674
+ return type = createFiberImplClass(19, pendingProps, key2, mode), type.elementType = REACT_SUSPENSE_LIST_TYPE, type.lanes = lanes, type;
19675
+ default:
19676
+ if ("object" === typeof type && null !== type)
19677
+ switch (type.$$typeof) {
19678
+ case REACT_PROVIDER_TYPE:
19679
+ case REACT_CONTEXT_TYPE:
19680
+ fiberTag = 10;
19681
+ break a;
19682
+ case REACT_CONSUMER_TYPE:
19683
+ fiberTag = 9;
19684
+ break a;
19685
+ case REACT_FORWARD_REF_TYPE:
19686
+ fiberTag = 11;
19687
+ break a;
19688
+ case REACT_MEMO_TYPE:
19689
+ fiberTag = 14;
19690
+ break a;
19691
+ case REACT_LAZY_TYPE:
19692
+ fiberTag = 16;
19693
+ owner = null;
19694
+ break a;
19695
+ }
19696
+ fiberTag = 29;
19697
+ pendingProps = Error(
19698
+ formatProdErrorMessage(130, null === type ? "null" : typeof type, "")
19699
+ );
19700
+ owner = null;
19701
+ }
19928
19702
  key2 = createFiberImplClass(fiberTag, pendingProps, key2, mode);
19929
19703
  key2.elementType = type;
19930
19704
  key2.type = owner;
@@ -20070,10 +19844,8 @@ function popToNextHostParent(fiber) {
20070
19844
  }
20071
19845
  }
20072
19846
  function popHydrationState(fiber) {
20073
- if (fiber !== hydrationParentFiber)
20074
- return false;
20075
- if (!isHydrating)
20076
- return popToNextHostParent(fiber), isHydrating = true, false;
19847
+ if (fiber !== hydrationParentFiber) return false;
19848
+ if (!isHydrating) return popToNextHostParent(fiber), isHydrating = true, false;
20077
19849
  var tag = fiber.tag, JSCompiler_temp;
20078
19850
  if (JSCompiler_temp = 3 !== tag && 27 !== tag) {
20079
19851
  if (JSCompiler_temp = 5 === tag)
@@ -20085,8 +19857,7 @@ function popHydrationState(fiber) {
20085
19857
  if (13 === tag) {
20086
19858
  fiber = fiber.memoizedState;
20087
19859
  fiber = null !== fiber ? fiber.dehydrated : null;
20088
- if (!fiber)
20089
- throw Error(formatProdErrorMessage(317));
19860
+ if (!fiber) throw Error(formatProdErrorMessage(317));
20090
19861
  a: {
20091
19862
  fiber = fiber.nextSibling;
20092
19863
  for (tag = 0; fiber; ) {
@@ -20135,8 +19906,7 @@ function scheduleContextWorkOnParentPath(parent, renderLanes2, propagationRoot)
20135
19906
  for (; null !== parent; ) {
20136
19907
  var alternate = parent.alternate;
20137
19908
  (parent.childLanes & renderLanes2) !== renderLanes2 ? (parent.childLanes |= renderLanes2, null !== alternate && (alternate.childLanes |= renderLanes2)) : null !== alternate && (alternate.childLanes & renderLanes2) !== renderLanes2 && (alternate.childLanes |= renderLanes2);
20138
- if (parent === propagationRoot)
20139
- break;
19909
+ if (parent === propagationRoot) break;
20140
19910
  parent = parent.return;
20141
19911
  }
20142
19912
  }
@@ -20148,38 +19918,34 @@ function propagateContextChanges(workInProgress2, contexts, renderLanes2, forceP
20148
19918
  if (null !== list) {
20149
19919
  var nextFiber = fiber.child;
20150
19920
  list = list.firstContext;
20151
- a:
20152
- for (; null !== list; ) {
20153
- var dependency = list;
20154
- list = fiber;
20155
- for (var i2 = 0; i2 < contexts.length; i2++)
20156
- if (dependency.context === contexts[i2]) {
20157
- list.lanes |= renderLanes2;
20158
- dependency = list.alternate;
20159
- null !== dependency && (dependency.lanes |= renderLanes2);
20160
- scheduleContextWorkOnParentPath(
20161
- list.return,
20162
- renderLanes2,
20163
- workInProgress2
20164
- );
20165
- forcePropagateEntireTree || (nextFiber = null);
20166
- break a;
20167
- }
20168
- list = dependency.next;
20169
- }
19921
+ a: for (; null !== list; ) {
19922
+ var dependency = list;
19923
+ list = fiber;
19924
+ for (var i2 = 0; i2 < contexts.length; i2++)
19925
+ if (dependency.context === contexts[i2]) {
19926
+ list.lanes |= renderLanes2;
19927
+ dependency = list.alternate;
19928
+ null !== dependency && (dependency.lanes |= renderLanes2);
19929
+ scheduleContextWorkOnParentPath(
19930
+ list.return,
19931
+ renderLanes2,
19932
+ workInProgress2
19933
+ );
19934
+ forcePropagateEntireTree || (nextFiber = null);
19935
+ break a;
19936
+ }
19937
+ list = dependency.next;
19938
+ }
20170
19939
  } else if (18 === fiber.tag) {
20171
19940
  nextFiber = fiber.return;
20172
- if (null === nextFiber)
20173
- throw Error(formatProdErrorMessage(341));
19941
+ if (null === nextFiber) throw Error(formatProdErrorMessage(341));
20174
19942
  nextFiber.lanes |= renderLanes2;
20175
19943
  list = nextFiber.alternate;
20176
19944
  null !== list && (list.lanes |= renderLanes2);
20177
19945
  scheduleContextWorkOnParentPath(nextFiber, renderLanes2, workInProgress2);
20178
19946
  nextFiber = null;
20179
- } else
20180
- nextFiber = fiber.child;
20181
- if (null !== nextFiber)
20182
- nextFiber.return = fiber;
19947
+ } else nextFiber = fiber.child;
19948
+ if (null !== nextFiber) nextFiber.return = fiber;
20183
19949
  else
20184
19950
  for (nextFiber = fiber; null !== nextFiber; ) {
20185
19951
  if (nextFiber === workInProgress2) {
@@ -20201,15 +19967,12 @@ function propagateParentContextChanges(current, workInProgress2, renderLanes2, f
20201
19967
  current = null;
20202
19968
  for (var parent = workInProgress2, isInsidePropagationBailout = false; null !== parent; ) {
20203
19969
  if (!isInsidePropagationBailout) {
20204
- if (0 !== (parent.flags & 524288))
20205
- isInsidePropagationBailout = true;
20206
- else if (0 !== (parent.flags & 262144))
20207
- break;
19970
+ if (0 !== (parent.flags & 524288)) isInsidePropagationBailout = true;
19971
+ else if (0 !== (parent.flags & 262144)) break;
20208
19972
  }
20209
19973
  if (10 === parent.tag) {
20210
19974
  var currentParent = parent.alternate;
20211
- if (null === currentParent)
20212
- throw Error(formatProdErrorMessage(387));
19975
+ if (null === currentParent) throw Error(formatProdErrorMessage(387));
20213
19976
  currentParent = currentParent.memoizedProps;
20214
19977
  if (null !== currentParent) {
20215
19978
  var context = parent.type;
@@ -20217,8 +19980,7 @@ function propagateParentContextChanges(current, workInProgress2, renderLanes2, f
20217
19980
  }
20218
19981
  } else if (parent === hostTransitionProviderCursor.current) {
20219
19982
  currentParent = parent.alternate;
20220
- if (null === currentParent)
20221
- throw Error(formatProdErrorMessage(387));
19983
+ if (null === currentParent) throw Error(formatProdErrorMessage(387));
20222
19984
  currentParent.memoizedState.memoizedState !== parent.memoizedState.memoizedState && (null !== current ? current.push(HostTransitionContext) : current = [HostTransitionContext]);
20223
19985
  }
20224
19986
  parent = parent.return;
@@ -20259,13 +20021,11 @@ function readContextForConsumer(consumer, context) {
20259
20021
  var value = context._currentValue;
20260
20022
  context = { context, memoizedValue: value, next: null };
20261
20023
  if (null === lastContextDependency) {
20262
- if (null === consumer)
20263
- throw Error(formatProdErrorMessage(308));
20024
+ if (null === consumer) throw Error(formatProdErrorMessage(308));
20264
20025
  lastContextDependency = context;
20265
20026
  consumer.dependencies = { lanes: 0, firstContext: context };
20266
20027
  consumer.flags |= 524288;
20267
- } else
20268
- lastContextDependency = lastContextDependency.next = context;
20028
+ } else lastContextDependency = lastContextDependency.next = context;
20269
20029
  return value;
20270
20030
  }
20271
20031
  var AbortControllerLocal = "undefined" !== typeof AbortController ? AbortController : function() {
@@ -20327,8 +20087,7 @@ function pingEngtangledActionScope() {
20327
20087
  currentEntangledListeners = null;
20328
20088
  currentEntangledLane = 0;
20329
20089
  currentEntangledActionThenable = null;
20330
- for (var i2 = 0; i2 < listeners.length; i2++)
20331
- (0, listeners[i2])();
20090
+ for (var i2 = 0; i2 < listeners.length; i2++) (0, listeners[i2])();
20332
20091
  }
20333
20092
  }
20334
20093
  function chainThenableValue(thenable, result) {
@@ -20344,8 +20103,7 @@ function chainThenableValue(thenable, result) {
20344
20103
  function() {
20345
20104
  thenableWithOverride.status = "fulfilled";
20346
20105
  thenableWithOverride.value = result;
20347
- for (var i2 = 0; i2 < listeners.length; i2++)
20348
- (0, listeners[i2])(result);
20106
+ for (var i2 = 0; i2 < listeners.length; i2++) (0, listeners[i2])(result);
20349
20107
  },
20350
20108
  function(error) {
20351
20109
  thenableWithOverride.status = "rejected";
@@ -20390,8 +20148,7 @@ function trackUsedThenable(thenableState2, thenable, index2) {
20390
20148
  case "rejected":
20391
20149
  throw thenableState2 = thenable.reason, checkIfUseWrappedInAsyncCatch(thenableState2), thenableState2;
20392
20150
  default:
20393
- if ("string" === typeof thenable.status)
20394
- thenable.then(noop$3, noop$3);
20151
+ if ("string" === typeof thenable.status) thenable.then(noop$3, noop$3);
20395
20152
  else {
20396
20153
  thenableState2 = workInProgressRoot;
20397
20154
  if (null !== thenableState2 && 100 < thenableState2.shellSuspendCounter)
@@ -20427,8 +20184,7 @@ function trackUsedThenable(thenableState2, thenable, index2) {
20427
20184
  }
20428
20185
  var suspendedThenable = null;
20429
20186
  function getSuspendedThenable() {
20430
- if (null === suspendedThenable)
20431
- throw Error(formatProdErrorMessage(459));
20187
+ if (null === suspendedThenable) throw Error(formatProdErrorMessage(459));
20432
20188
  var thenable = suspendedThenable;
20433
20189
  suspendedThenable = null;
20434
20190
  return thenable;
@@ -20462,8 +20218,7 @@ function createUpdate(lane) {
20462
20218
  }
20463
20219
  function enqueueUpdate(fiber, update, lane) {
20464
20220
  var updateQueue = fiber.updateQueue;
20465
- if (null === updateQueue)
20466
- return null;
20221
+ if (null === updateQueue) return null;
20467
20222
  updateQueue = updateQueue.shared;
20468
20223
  if (0 !== (executionContext & 2)) {
20469
20224
  var pending = updateQueue.pending;
@@ -20504,8 +20259,7 @@ function enqueueCapturedUpdate(workInProgress2, capturedUpdate) {
20504
20259
  queue2 = queue2.next;
20505
20260
  } while (null !== queue2);
20506
20261
  null === newLast ? newFirst = newLast = capturedUpdate : newLast = newLast.next = capturedUpdate;
20507
- } else
20508
- newFirst = newLast = capturedUpdate;
20262
+ } else newFirst = newLast = capturedUpdate;
20509
20263
  queue2 = {
20510
20264
  baseState: current.baseState,
20511
20265
  firstBaseUpdate: newFirst,
@@ -20524,8 +20278,7 @@ var didReadFromEntangledAsyncAction = false;
20524
20278
  function suspendIfUpdateReadFromEntangledAsyncAction() {
20525
20279
  if (didReadFromEntangledAsyncAction) {
20526
20280
  var entangledActionThenable = currentEntangledActionThenable;
20527
- if (null !== entangledActionThenable)
20528
- throw entangledActionThenable;
20281
+ if (null !== entangledActionThenable) throw entangledActionThenable;
20529
20282
  }
20530
20283
  }
20531
20284
  function processUpdateQueue(workInProgress$jscomp$0, props, instance$jscomp$0, renderLanes2) {
@@ -20576,8 +20329,7 @@ function processUpdateQueue(workInProgress$jscomp$0, props, instance$jscomp$0, r
20576
20329
  case 0:
20577
20330
  workInProgress2 = update.payload;
20578
20331
  updateLane = "function" === typeof workInProgress2 ? workInProgress2.call(instance, newState, updateLane) : workInProgress2;
20579
- if (null === updateLane || void 0 === updateLane)
20580
- break a;
20332
+ if (null === updateLane || void 0 === updateLane) break a;
20581
20333
  newState = assign({}, newState, updateLane);
20582
20334
  break a;
20583
20335
  case 2:
@@ -20643,11 +20395,9 @@ function throwInvalidHookError() {
20643
20395
  throw Error(formatProdErrorMessage(321));
20644
20396
  }
20645
20397
  function areHookInputsEqual(nextDeps, prevDeps) {
20646
- if (null === prevDeps)
20647
- return false;
20398
+ if (null === prevDeps) return false;
20648
20399
  for (var i2 = 0; i2 < prevDeps.length && i2 < nextDeps.length; i2++)
20649
- if (!objectIs(nextDeps[i2], prevDeps[i2]))
20650
- return false;
20400
+ if (!objectIs(nextDeps[i2], prevDeps[i2])) return false;
20651
20401
  return true;
20652
20402
  }
20653
20403
  function renderWithHooks(current, workInProgress2, Component2, props, secondArg, nextRenderLanes) {
@@ -20677,8 +20427,7 @@ function finishRenderingHooks(current) {
20677
20427
  didScheduleRenderPhaseUpdate = false;
20678
20428
  thenableIndexCounter$1 = 0;
20679
20429
  thenableState$1 = null;
20680
- if (didRenderTooFewHooks)
20681
- throw Error(formatProdErrorMessage(300));
20430
+ if (didRenderTooFewHooks) throw Error(formatProdErrorMessage(300));
20682
20431
  null === current || didReceiveUpdate || (current = current.dependencies, null !== current && checkIfContextChanged(current) && (didReceiveUpdate = true));
20683
20432
  }
20684
20433
  function renderWithHooksAgain(workInProgress2, Component2, props, secondArg) {
@@ -20688,8 +20437,7 @@ function renderWithHooksAgain(workInProgress2, Component2, props, secondArg) {
20688
20437
  didScheduleRenderPhaseUpdateDuringThisPass && (thenableState$1 = null);
20689
20438
  thenableIndexCounter$1 = 0;
20690
20439
  didScheduleRenderPhaseUpdateDuringThisPass = false;
20691
- if (25 <= numberOfReRenders)
20692
- throw Error(formatProdErrorMessage(301));
20440
+ if (25 <= numberOfReRenders) throw Error(formatProdErrorMessage(301));
20693
20441
  numberOfReRenders += 1;
20694
20442
  workInProgressHook = currentHook = null;
20695
20443
  if (null != workInProgress2.updateQueue) {
@@ -20751,8 +20499,7 @@ function updateWorkInProgressHook() {
20751
20499
  if (null === currentHook) {
20752
20500
  var nextCurrentHook = currentlyRenderingFiber.alternate;
20753
20501
  nextCurrentHook = null !== nextCurrentHook ? nextCurrentHook.memoizedState : null;
20754
- } else
20755
- nextCurrentHook = currentHook.next;
20502
+ } else nextCurrentHook = currentHook.next;
20756
20503
  var nextWorkInProgressHook = null === workInProgressHook ? currentlyRenderingFiber.memoizedState : workInProgressHook.next;
20757
20504
  if (null !== nextWorkInProgressHook)
20758
20505
  workInProgressHook = nextWorkInProgressHook, currentHook = nextCurrentHook;
@@ -20788,10 +20535,8 @@ function useThenable(thenable) {
20788
20535
  }
20789
20536
  function use(usable) {
20790
20537
  if (null !== usable && "object" === typeof usable) {
20791
- if ("function" === typeof usable.then)
20792
- return useThenable(usable);
20793
- if (usable.$$typeof === REACT_CONTEXT_TYPE)
20794
- return readContext(usable);
20538
+ if ("function" === typeof usable.then) return useThenable(usable);
20539
+ if (usable.$$typeof === REACT_CONTEXT_TYPE) return readContext(usable);
20795
20540
  }
20796
20541
  throw Error(formatProdErrorMessage(438, String(usable)));
20797
20542
  }
@@ -20826,8 +20571,7 @@ function updateReducer(reducer) {
20826
20571
  }
20827
20572
  function updateReducerImpl(hook, current, reducer) {
20828
20573
  var queue2 = hook.queue;
20829
- if (null === queue2)
20830
- throw Error(formatProdErrorMessage(311));
20574
+ if (null === queue2) throw Error(formatProdErrorMessage(311));
20831
20575
  queue2.lastRenderedReducer = reducer;
20832
20576
  var baseQueue = hook.baseQueue, pendingQueue = queue2.pending;
20833
20577
  if (null !== pendingQueue) {
@@ -20840,8 +20584,7 @@ function updateReducerImpl(hook, current, reducer) {
20840
20584
  queue2.pending = null;
20841
20585
  }
20842
20586
  pendingQueue = hook.baseState;
20843
- if (null === baseQueue)
20844
- hook.memoizedState = pendingQueue;
20587
+ if (null === baseQueue) hook.memoizedState = pendingQueue;
20845
20588
  else {
20846
20589
  current = baseQueue.next;
20847
20590
  var newBaseQueueFirst = baseFirst = null, newBaseQueueLast = null, update = current, didReadFromEntangledAsyncAction$32 = false;
@@ -20898,8 +20641,7 @@ function updateReducerImpl(hook, current, reducer) {
20898
20641
  }
20899
20642
  function rerenderReducer(reducer) {
20900
20643
  var hook = updateWorkInProgressHook(), queue2 = hook.queue;
20901
- if (null === queue2)
20902
- throw Error(formatProdErrorMessage(311));
20644
+ if (null === queue2) throw Error(formatProdErrorMessage(311));
20903
20645
  queue2.lastRenderedReducer = reducer;
20904
20646
  var dispatch = queue2.dispatch, lastRenderPhaseUpdate = queue2.pending, newState = hook.memoizedState;
20905
20647
  if (null !== lastRenderPhaseUpdate) {
@@ -20918,11 +20660,9 @@ function rerenderReducer(reducer) {
20918
20660
  function updateSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
20919
20661
  var fiber = currentlyRenderingFiber, hook = updateWorkInProgressHook(), isHydrating$jscomp$0 = isHydrating;
20920
20662
  if (isHydrating$jscomp$0) {
20921
- if (void 0 === getServerSnapshot)
20922
- throw Error(formatProdErrorMessage(407));
20663
+ if (void 0 === getServerSnapshot) throw Error(formatProdErrorMessage(407));
20923
20664
  getServerSnapshot = getServerSnapshot();
20924
- } else
20925
- getServerSnapshot = getSnapshot();
20665
+ } else getServerSnapshot = getSnapshot();
20926
20666
  var snapshotChanged = !objectIs(
20927
20667
  (currentHook || hook).memoizedState,
20928
20668
  getServerSnapshot
@@ -20945,8 +20685,7 @@ function updateSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
20945
20685
  ),
20946
20686
  null
20947
20687
  );
20948
- if (null === workInProgressRoot)
20949
- throw Error(formatProdErrorMessage(349));
20688
+ if (null === workInProgressRoot) throw Error(formatProdErrorMessage(349));
20950
20689
  isHydrating$jscomp$0 || 0 !== (renderLanes & 124) || pushStoreConsistencyCheck(fiber, getSnapshot, getServerSnapshot);
20951
20690
  }
20952
20691
  return getServerSnapshot;
@@ -21014,8 +20753,7 @@ function updateOptimisticImpl(hook, current, passthrough, reducer) {
21014
20753
  );
21015
20754
  }
21016
20755
  function dispatchActionState(fiber, actionQueue, setPendingState, setState, payload) {
21017
- if (isRenderPhaseUpdate(fiber))
21018
- throw Error(formatProdErrorMessage(485));
20756
+ if (isRenderPhaseUpdate(fiber)) throw Error(formatProdErrorMessage(485));
21019
20757
  fiber = actionQueue.action;
21020
20758
  if (null !== fiber) {
21021
20759
  var actionNode = {
@@ -21089,8 +20827,7 @@ function onActionError(actionQueue, actionNode, error) {
21089
20827
  }
21090
20828
  function notifyActionListeners(actionNode) {
21091
20829
  actionNode = actionNode.listeners;
21092
- for (var i2 = 0; i2 < actionNode.length; i2++)
21093
- (0, actionNode[i2])();
20830
+ for (var i2 = 0; i2 < actionNode.length; i2++) (0, actionNode[i2])();
21094
20831
  }
21095
20832
  function actionStateReducer(oldState, newState) {
21096
20833
  return newState;
@@ -21193,12 +20930,10 @@ function updateActionStateImpl(stateHook, currentStateHook, action) {
21193
20930
  try {
21194
20931
  var state = useThenable(currentStateHook);
21195
20932
  } catch (x2) {
21196
- if (x2 === SuspenseException)
21197
- throw SuspenseActionException;
20933
+ if (x2 === SuspenseException) throw SuspenseActionException;
21198
20934
  throw x2;
21199
20935
  }
21200
- else
21201
- state = currentStateHook;
20936
+ else state = currentStateHook;
21202
20937
  currentStateHook = updateWorkInProgressHook();
21203
20938
  var actionQueue = currentStateHook.queue, dispatch = actionQueue.dispatch;
21204
20939
  action !== currentStateHook.memoizedState && (currentlyRenderingFiber.flags |= 2048, pushSimpleEffect(
@@ -21327,8 +21062,7 @@ function mountDeferredValueImpl(hook, value, initialValue) {
21327
21062
  return initialValue;
21328
21063
  }
21329
21064
  function updateDeferredValueImpl(hook, prevValue, value, initialValue) {
21330
- if (objectIs(value, prevValue))
21331
- return value;
21065
+ if (objectIs(value, prevValue)) return value;
21332
21066
  if (null !== currentTreeHiddenStackCursor.current)
21333
21067
  return hook = mountDeferredValueImpl(hook, value, initialValue), objectIs(hook, prevValue) || (didReceiveUpdate = true), hook;
21334
21068
  if (0 === (renderLanes & 42))
@@ -21380,8 +21114,7 @@ function startTransition(fiber, queue2, pendingState, finishedState, callback) {
21380
21114
  function noop$2() {
21381
21115
  }
21382
21116
  function startHostTransition(formFiber, pendingState, action, formData) {
21383
- if (5 !== formFiber.tag)
21384
- throw Error(formatProdErrorMessage(476));
21117
+ if (5 !== formFiber.tag) throw Error(formatProdErrorMessage(476));
21385
21118
  var queue2 = ensureFormComponentIsStateful(formFiber).queue;
21386
21119
  startTransition(
21387
21120
  formFiber,
@@ -21396,8 +21129,7 @@ function startHostTransition(formFiber, pendingState, action, formData) {
21396
21129
  }
21397
21130
  function ensureFormComponentIsStateful(formFiber) {
21398
21131
  var existingStateHook = formFiber.memoizedState;
21399
- if (null !== existingStateHook)
21400
- return existingStateHook;
21132
+ if (null !== existingStateHook) return existingStateHook;
21401
21133
  existingStateHook = {
21402
21134
  memoizedState: sharedNotPendingObject,
21403
21135
  baseState: sharedNotPendingObject,
@@ -21484,8 +21216,7 @@ function dispatchSetStateInternal(fiber, queue2, action, lane) {
21484
21216
  eagerState: null,
21485
21217
  next: null
21486
21218
  };
21487
- if (isRenderPhaseUpdate(fiber))
21488
- enqueueRenderPhaseUpdate(queue2, update);
21219
+ if (isRenderPhaseUpdate(fiber)) enqueueRenderPhaseUpdate(queue2, update);
21489
21220
  else {
21490
21221
  var alternate = fiber.alternate;
21491
21222
  if (0 === fiber.lanes && (null === alternate || 0 === alternate.lanes) && (alternate = queue2.lastRenderedReducer, null !== alternate))
@@ -21514,8 +21245,7 @@ function dispatchOptimisticSetState(fiber, throwIfDuringRender, queue2, action)
21514
21245
  next: null
21515
21246
  };
21516
21247
  if (isRenderPhaseUpdate(fiber)) {
21517
- if (throwIfDuringRender)
21518
- throw Error(formatProdErrorMessage(479));
21248
+ if (throwIfDuringRender) throw Error(formatProdErrorMessage(479));
21519
21249
  } else
21520
21250
  throwIfDuringRender = enqueueConcurrentHookUpdate(
21521
21251
  fiber,
@@ -21621,8 +21351,7 @@ var ContextOnlyDispatcher = {
21621
21351
  setIsStrictModeForDevtools(false);
21622
21352
  }
21623
21353
  }
21624
- } else
21625
- initialState = initialArg;
21354
+ } else initialState = initialArg;
21626
21355
  hook.memoizedState = hook.baseState = initialState;
21627
21356
  reducer = {
21628
21357
  pending: null,
@@ -21867,8 +21596,7 @@ function createChildReconciler(shouldTrackSideEffects) {
21867
21596
  }
21868
21597
  }
21869
21598
  function deleteRemainingChildren(returnFiber, currentFirstChild) {
21870
- if (!shouldTrackSideEffects)
21871
- return null;
21599
+ if (!shouldTrackSideEffects) return null;
21872
21600
  for (; null !== currentFirstChild; )
21873
21601
  deleteChild(returnFiber, currentFirstChild), currentFirstChild = currentFirstChild.sibling;
21874
21602
  return null;
@@ -22127,8 +21855,7 @@ function createChildReconciler(shouldTrackSideEffects) {
22127
21855
  return resultingFirstChild;
22128
21856
  }
22129
21857
  function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildren, lanes) {
22130
- if (null == newChildren)
22131
- throw Error(formatProdErrorMessage(151));
21858
+ if (null == newChildren) throw Error(formatProdErrorMessage(151));
22132
21859
  for (var resultingFirstChild = null, previousNewFiber = null, oldFiber = currentFirstChild, newIdx = currentFirstChild = 0, nextOldFiber = null, step = newChildren.next(); null !== oldFiber && !step.done; newIdx++, step = newChildren.next()) {
22133
21860
  oldFiber.index > newIdx ? (nextOldFiber = oldFiber, oldFiber = null) : nextOldFiber = oldFiber.sibling;
22134
21861
  var newFiber = updateSlot(returnFiber, oldFiber, step.value, lanes);
@@ -22194,8 +21921,7 @@ function createChildReconciler(shouldTrackSideEffects) {
22194
21921
  }
22195
21922
  deleteRemainingChildren(returnFiber, currentFirstChild);
22196
21923
  break;
22197
- } else
22198
- deleteChild(returnFiber, currentFirstChild);
21924
+ } else deleteChild(returnFiber, currentFirstChild);
22199
21925
  currentFirstChild = currentFirstChild.sibling;
22200
21926
  }
22201
21927
  newChild.type === REACT_FRAGMENT_TYPE ? (lanes = createFiberFromFragment(
@@ -22230,8 +21956,7 @@ function createChildReconciler(shouldTrackSideEffects) {
22230
21956
  deleteRemainingChildren(returnFiber, currentFirstChild);
22231
21957
  break;
22232
21958
  }
22233
- else
22234
- deleteChild(returnFiber, currentFirstChild);
21959
+ else deleteChild(returnFiber, currentFirstChild);
22235
21960
  currentFirstChild = currentFirstChild.sibling;
22236
21961
  }
22237
21962
  lanes = createFiberFromPortal(newChild, returnFiber.mode, lanes);
@@ -22256,8 +21981,7 @@ function createChildReconciler(shouldTrackSideEffects) {
22256
21981
  );
22257
21982
  if (getIteratorFn(newChild)) {
22258
21983
  key2 = getIteratorFn(newChild);
22259
- if ("function" !== typeof key2)
22260
- throw Error(formatProdErrorMessage(150));
21984
+ if ("function" !== typeof key2) throw Error(formatProdErrorMessage(150));
22261
21985
  newChild = key2.call(newChild);
22262
21986
  return reconcileChildrenIterator(
22263
21987
  returnFiber,
@@ -22296,8 +22020,7 @@ function createChildReconciler(shouldTrackSideEffects) {
22296
22020
  thenableState = null;
22297
22021
  return firstChildFiber;
22298
22022
  } catch (x2) {
22299
- if (x2 === SuspenseException || x2 === SuspenseActionException)
22300
- throw x2;
22023
+ if (x2 === SuspenseException || x2 === SuspenseActionException) throw x2;
22301
22024
  var fiber = createFiberImplClass(29, x2, null, returnFiber.mode);
22302
22025
  fiber.lanes = lanes;
22303
22026
  fiber.return = returnFiber;
@@ -22319,8 +22042,7 @@ function pushOffscreenSuspenseHandler(fiber) {
22319
22042
  var current = fiber.alternate;
22320
22043
  null !== current && null !== current.memoizedState && (shellBoundary = fiber);
22321
22044
  }
22322
- } else
22323
- reuseSuspenseHandlerOnStack();
22045
+ } else reuseSuspenseHandlerOnStack();
22324
22046
  }
22325
22047
  function reuseSuspenseHandlerOnStack() {
22326
22048
  push(suspenseStackCursor, suspenseStackCursor.current);
@@ -22339,18 +22061,15 @@ function findFirstSuspended(row) {
22339
22061
  if (null !== state && (state = state.dehydrated, null === state || "$?" === state.data || isSuspenseInstanceFallback(state)))
22340
22062
  return node;
22341
22063
  } else if (19 === node.tag && void 0 !== node.memoizedProps.revealOrder) {
22342
- if (0 !== (node.flags & 128))
22343
- return node;
22064
+ if (0 !== (node.flags & 128)) return node;
22344
22065
  } else if (null !== node.child) {
22345
22066
  node.child.return = node;
22346
22067
  node = node.child;
22347
22068
  continue;
22348
22069
  }
22349
- if (node === row)
22350
- break;
22070
+ if (node === row) break;
22351
22071
  for (; null === node.sibling; ) {
22352
- if (null === node.return || node.return === row)
22353
- return null;
22072
+ if (null === node.return || node.return === row) return null;
22354
22073
  node = node.return;
22355
22074
  }
22356
22075
  node.sibling.return = node.return;
@@ -22424,8 +22143,7 @@ var reportGlobalError = "function" === typeof reportError ? reportError : functi
22424
22143
  message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
22425
22144
  error
22426
22145
  });
22427
- if (!window.dispatchEvent(event))
22428
- return;
22146
+ if (!window.dispatchEvent(event)) return;
22429
22147
  } else if ("object" === typeof process && "function" === typeof process.emit) {
22430
22148
  process.emit("uncaughtException", error);
22431
22149
  return;
@@ -22541,8 +22259,7 @@ function throwException(root2, returnFiber, sourceFiber, value, rootRenderLanes)
22541
22259
  wrapperError = createCapturedValueAtFiber(wrapperError, sourceFiber);
22542
22260
  null === workInProgressRootConcurrentErrors ? workInProgressRootConcurrentErrors = [wrapperError] : workInProgressRootConcurrentErrors.push(wrapperError);
22543
22261
  4 !== workInProgressRootExitStatus && (workInProgressRootExitStatus = 2);
22544
- if (null === returnFiber)
22545
- return true;
22262
+ if (null === returnFiber) return true;
22546
22263
  value = createCapturedValueAtFiber(value, sourceFiber);
22547
22264
  sourceFiber = returnFiber;
22548
22265
  do {
@@ -22578,8 +22295,7 @@ function updateForwardRef(current, workInProgress2, Component2, nextProps, rende
22578
22295
  var propsWithoutRef = {};
22579
22296
  for (var key2 in nextProps)
22580
22297
  "ref" !== key2 && (propsWithoutRef[key2] = nextProps[key2]);
22581
- } else
22582
- propsWithoutRef = nextProps;
22298
+ } else propsWithoutRef = nextProps;
22583
22299
  prepareToReadContext(workInProgress2);
22584
22300
  nextProps = renderWithHooks(
22585
22301
  current,
@@ -22661,8 +22377,7 @@ function updateOffscreenComponent(current, workInProgress2, renderLanes2) {
22661
22377
  for (prevState = 0; null !== nextChildren; )
22662
22378
  prevState = prevState | nextChildren.lanes | nextChildren.childLanes, nextChildren = nextChildren.sibling;
22663
22379
  workInProgress2.childLanes = prevState & ~nextProps;
22664
- } else
22665
- workInProgress2.childLanes = 0, workInProgress2.child = null;
22380
+ } else workInProgress2.childLanes = 0, workInProgress2.child = null;
22666
22381
  return deferHiddenOffscreenComponent(
22667
22382
  current,
22668
22383
  workInProgress2,
@@ -22988,8 +22703,7 @@ function updateSuspenseComponent(current, workInProgress2, renderLanes2) {
22988
22703
  ), workInProgress2.memoizedState = SUSPENDED_MARKER, workInProgress2 = showFallback);
22989
22704
  else if (pushPrimaryTreeSuspenseHandler(workInProgress2), isSuspenseInstanceFallback(nextInstance)) {
22990
22705
  JSCompiler_temp = nextInstance.nextSibling && nextInstance.nextSibling.dataset;
22991
- if (JSCompiler_temp)
22992
- var digest = JSCompiler_temp.dgst;
22706
+ if (JSCompiler_temp) var digest = JSCompiler_temp.dgst;
22993
22707
  JSCompiler_temp = digest;
22994
22708
  nextProps = Error(formatProdErrorMessage(419));
22995
22709
  nextProps.stack = "";
@@ -23104,27 +22818,25 @@ function updateSuspenseListComponent(current, workInProgress2, renderLanes2) {
23104
22818
  nextProps = nextProps & 1 | 2, workInProgress2.flags |= 128;
23105
22819
  else {
23106
22820
  if (null !== current && 0 !== (current.flags & 128))
23107
- a:
23108
- for (current = workInProgress2.child; null !== current; ) {
23109
- if (13 === current.tag)
23110
- null !== current.memoizedState && scheduleSuspenseWorkOnFiber(current, renderLanes2, workInProgress2);
23111
- else if (19 === current.tag)
23112
- scheduleSuspenseWorkOnFiber(current, renderLanes2, workInProgress2);
23113
- else if (null !== current.child) {
23114
- current.child.return = current;
23115
- current = current.child;
23116
- continue;
23117
- }
23118
- if (current === workInProgress2)
22821
+ a: for (current = workInProgress2.child; null !== current; ) {
22822
+ if (13 === current.tag)
22823
+ null !== current.memoizedState && scheduleSuspenseWorkOnFiber(current, renderLanes2, workInProgress2);
22824
+ else if (19 === current.tag)
22825
+ scheduleSuspenseWorkOnFiber(current, renderLanes2, workInProgress2);
22826
+ else if (null !== current.child) {
22827
+ current.child.return = current;
22828
+ current = current.child;
22829
+ continue;
22830
+ }
22831
+ if (current === workInProgress2) break a;
22832
+ for (; null === current.sibling; ) {
22833
+ if (null === current.return || current.return === workInProgress2)
23119
22834
  break a;
23120
- for (; null === current.sibling; ) {
23121
- if (null === current.return || current.return === workInProgress2)
23122
- break a;
23123
- current = current.return;
23124
- }
23125
- current.sibling.return = current.return;
23126
- current = current.sibling;
22835
+ current = current.return;
23127
22836
  }
22837
+ current.sibling.return = current.return;
22838
+ current = current.sibling;
22839
+ }
23128
22840
  nextProps &= 1;
23129
22841
  }
23130
22842
  push(suspenseStackCursor, nextProps);
@@ -23185,8 +22897,7 @@ function bailoutOnAlreadyFinishedWork(current, workInProgress2, renderLanes2) {
23185
22897
  false
23186
22898
  ), 0 === (renderLanes2 & workInProgress2.childLanes))
23187
22899
  return null;
23188
- } else
23189
- return null;
22900
+ } else return null;
23190
22901
  if (null !== current && workInProgress2.child !== current.child)
23191
22902
  throw Error(formatProdErrorMessage(153));
23192
22903
  if (null !== workInProgress2.child) {
@@ -23200,8 +22911,7 @@ function bailoutOnAlreadyFinishedWork(current, workInProgress2, renderLanes2) {
23200
22911
  return workInProgress2.child;
23201
22912
  }
23202
22913
  function checkScheduledUpdateOrContext(current, renderLanes2) {
23203
- if (0 !== (current.lanes & renderLanes2))
23204
- return true;
22914
+ if (0 !== (current.lanes & renderLanes2)) return true;
23205
22915
  current = current.dependencies;
23206
22916
  return null !== current && checkIfContextChanged(current) ? true : false;
23207
22917
  }
@@ -23264,10 +22974,8 @@ function attemptEarlyBailoutIfNoScheduledUpdate(current, workInProgress2, render
23264
22974
  didSuspendBefore = workInProgress2.memoizedState;
23265
22975
  null !== didSuspendBefore && (didSuspendBefore.rendering = null, didSuspendBefore.tail = null, didSuspendBefore.lastEffect = null);
23266
22976
  push(suspenseStackCursor, suspenseStackCursor.current);
23267
- if (state)
23268
- break;
23269
- else
23270
- return null;
22977
+ if (state) break;
22978
+ else return null;
23271
22979
  case 22:
23272
22980
  case 23:
23273
22981
  return workInProgress2.lanes = 0, updateOffscreenComponent(current, workInProgress2, renderLanes2);
@@ -23367,8 +23075,7 @@ function beginWork(current, workInProgress2, renderLanes2) {
23367
23075
  workInProgress2,
23368
23076
  workInProgress2.stateNode.containerInfo
23369
23077
  );
23370
- if (null === current)
23371
- throw Error(formatProdErrorMessage(387));
23078
+ if (null === current) throw Error(formatProdErrorMessage(387));
23372
23079
  lazyComponent = workInProgress2.pendingProps;
23373
23080
  var prevState = workInProgress2.memoizedState;
23374
23081
  init = prevState.element;
@@ -23780,40 +23487,37 @@ function completeWork(current, workInProgress2, renderLanes2) {
23780
23487
  }
23781
23488
  current[internalInstanceKey] = workInProgress2;
23782
23489
  current[internalPropsKey] = newProps;
23783
- a:
23784
- for (type = workInProgress2.child; null !== type; ) {
23785
- if (5 === type.tag || 6 === type.tag)
23786
- current.appendChild(type.stateNode);
23787
- else if (4 !== type.tag && 27 !== type.tag && null !== type.child) {
23788
- type.child.return = type;
23789
- type = type.child;
23790
- continue;
23791
- }
23792
- if (type === workInProgress2)
23793
- break a;
23794
- for (; null === type.sibling; ) {
23795
- if (null === type.return || type.return === workInProgress2)
23796
- break a;
23797
- type = type.return;
23798
- }
23799
- type.sibling.return = type.return;
23800
- type = type.sibling;
23490
+ a: for (type = workInProgress2.child; null !== type; ) {
23491
+ if (5 === type.tag || 6 === type.tag)
23492
+ current.appendChild(type.stateNode);
23493
+ else if (4 !== type.tag && 27 !== type.tag && null !== type.child) {
23494
+ type.child.return = type;
23495
+ type = type.child;
23496
+ continue;
23801
23497
  }
23802
- workInProgress2.stateNode = current;
23803
- a:
23804
- switch (setInitialProperties(current, renderLanes2, newProps), renderLanes2) {
23805
- case "button":
23806
- case "input":
23807
- case "select":
23808
- case "textarea":
23809
- current = !!newProps.autoFocus;
23810
- break a;
23811
- case "img":
23812
- current = true;
23498
+ if (type === workInProgress2) break a;
23499
+ for (; null === type.sibling; ) {
23500
+ if (null === type.return || type.return === workInProgress2)
23813
23501
  break a;
23814
- default:
23815
- current = false;
23502
+ type = type.return;
23816
23503
  }
23504
+ type.sibling.return = type.return;
23505
+ type = type.sibling;
23506
+ }
23507
+ workInProgress2.stateNode = current;
23508
+ a: switch (setInitialProperties(current, renderLanes2, newProps), renderLanes2) {
23509
+ case "button":
23510
+ case "input":
23511
+ case "select":
23512
+ case "textarea":
23513
+ current = !!newProps.autoFocus;
23514
+ break a;
23515
+ case "img":
23516
+ current = true;
23517
+ break a;
23518
+ default:
23519
+ current = false;
23520
+ }
23817
23521
  current && markUpdate(workInProgress2);
23818
23522
  }
23819
23523
  }
@@ -23854,12 +23558,10 @@ function completeWork(current, workInProgress2, renderLanes2) {
23854
23558
  type = popHydrationState(workInProgress2);
23855
23559
  if (null !== newProps && null !== newProps.dehydrated) {
23856
23560
  if (null === current) {
23857
- if (!type)
23858
- throw Error(formatProdErrorMessage(318));
23561
+ if (!type) throw Error(formatProdErrorMessage(318));
23859
23562
  type = workInProgress2.memoizedState;
23860
23563
  type = null !== type ? type.dehydrated : null;
23861
- if (!type)
23862
- throw Error(formatProdErrorMessage(317));
23564
+ if (!type) throw Error(formatProdErrorMessage(317));
23863
23565
  type[internalInstanceKey] = workInProgress2;
23864
23566
  } else
23865
23567
  resetHydrationState(), 0 === (workInProgress2.flags & 128) && (workInProgress2.memoizedState = null), workInProgress2.flags |= 4;
@@ -23898,13 +23600,11 @@ function completeWork(current, workInProgress2, renderLanes2) {
23898
23600
  case 19:
23899
23601
  pop(suspenseStackCursor);
23900
23602
  type = workInProgress2.memoizedState;
23901
- if (null === type)
23902
- return bubbleProperties(workInProgress2), null;
23603
+ if (null === type) return bubbleProperties(workInProgress2), null;
23903
23604
  newProps = 0 !== (workInProgress2.flags & 128);
23904
23605
  cache$127 = type.rendering;
23905
23606
  if (null === cache$127)
23906
- if (newProps)
23907
- cutOffTailIfNeeded(type, false);
23607
+ if (newProps) cutOffTailIfNeeded(type, false);
23908
23608
  else {
23909
23609
  if (0 !== workInProgressRootExitStatus || null !== current && 0 !== (current.flags & 128))
23910
23610
  for (current = workInProgress2.child; null !== current; ) {
@@ -24139,23 +23839,21 @@ function safelyDetachRef(current, nearestMountedAncestor) {
24139
23839
  } catch (error$143) {
24140
23840
  captureCommitPhaseError(current, nearestMountedAncestor, error$143);
24141
23841
  }
24142
- else
24143
- ref2.current = null;
23842
+ else ref2.current = null;
24144
23843
  }
24145
23844
  function commitHostMount(finishedWork) {
24146
23845
  var type = finishedWork.type, props = finishedWork.memoizedProps, instance = finishedWork.stateNode;
24147
23846
  try {
24148
- a:
24149
- switch (type) {
24150
- case "button":
24151
- case "input":
24152
- case "select":
24153
- case "textarea":
24154
- props.autoFocus && instance.focus();
24155
- break a;
24156
- case "img":
24157
- props.src ? instance.src = props.src : props.srcSet && (instance.srcset = props.srcSet);
24158
- }
23847
+ a: switch (type) {
23848
+ case "button":
23849
+ case "input":
23850
+ case "select":
23851
+ case "textarea":
23852
+ props.autoFocus && instance.focus();
23853
+ break a;
23854
+ case "img":
23855
+ props.src ? instance.src = props.src : props.srcSet && (instance.srcset = props.srcSet);
23856
+ }
24159
23857
  } catch (error) {
24160
23858
  captureCommitPhaseError(finishedWork, finishedWork.return, error);
24161
23859
  }
@@ -24173,27 +23871,20 @@ function isHostParent(fiber) {
24173
23871
  return 5 === fiber.tag || 3 === fiber.tag || 26 === fiber.tag || 27 === fiber.tag && isSingletonScope(fiber.type) || 4 === fiber.tag;
24174
23872
  }
24175
23873
  function getHostSibling(fiber) {
24176
- a:
24177
- for (; ; ) {
24178
- for (; null === fiber.sibling; ) {
24179
- if (null === fiber.return || isHostParent(fiber.return))
24180
- return null;
24181
- fiber = fiber.return;
24182
- }
24183
- fiber.sibling.return = fiber.return;
24184
- for (fiber = fiber.sibling; 5 !== fiber.tag && 6 !== fiber.tag && 18 !== fiber.tag; ) {
24185
- if (27 === fiber.tag && isSingletonScope(fiber.type))
24186
- continue a;
24187
- if (fiber.flags & 2)
24188
- continue a;
24189
- if (null === fiber.child || 4 === fiber.tag)
24190
- continue a;
24191
- else
24192
- fiber.child.return = fiber, fiber = fiber.child;
24193
- }
24194
- if (!(fiber.flags & 2))
24195
- return fiber.stateNode;
23874
+ a: for (; ; ) {
23875
+ for (; null === fiber.sibling; ) {
23876
+ if (null === fiber.return || isHostParent(fiber.return)) return null;
23877
+ fiber = fiber.return;
23878
+ }
23879
+ fiber.sibling.return = fiber.return;
23880
+ for (fiber = fiber.sibling; 5 !== fiber.tag && 6 !== fiber.tag && 18 !== fiber.tag; ) {
23881
+ if (27 === fiber.tag && isSingletonScope(fiber.type)) continue a;
23882
+ if (fiber.flags & 2) continue a;
23883
+ if (null === fiber.child || 4 === fiber.tag) continue a;
23884
+ else fiber.child.return = fiber, fiber = fiber.child;
24196
23885
  }
23886
+ if (!(fiber.flags & 2)) return fiber.stateNode;
23887
+ }
24197
23888
  }
24198
23889
  function insertOrAppendPlacementNodeIntoContainer(node, before, parent) {
24199
23890
  var tag = node.tag;
@@ -24249,36 +23940,30 @@ function commitBeforeMutationEffects(root2, firstChild) {
24249
23940
  break a;
24250
23941
  }
24251
23942
  var length = 0, start = -1, end = -1, indexWithinAnchor = 0, indexWithinFocus = 0, node = root2, parentNode = null;
24252
- b:
24253
- for (; ; ) {
24254
- for (var next; ; ) {
24255
- node !== JSCompiler_temp || 0 !== anchorOffset && 3 !== node.nodeType || (start = length + anchorOffset);
24256
- node !== focusNode || 0 !== selection && 3 !== node.nodeType || (end = length + selection);
24257
- 3 === node.nodeType && (length += node.nodeValue.length);
24258
- if (null === (next = node.firstChild))
24259
- break;
24260
- parentNode = node;
24261
- node = next;
24262
- }
24263
- for (; ; ) {
24264
- if (node === root2)
24265
- break b;
24266
- parentNode === JSCompiler_temp && ++indexWithinAnchor === anchorOffset && (start = length);
24267
- parentNode === focusNode && ++indexWithinFocus === selection && (end = length);
24268
- if (null !== (next = node.nextSibling))
24269
- break;
24270
- node = parentNode;
24271
- parentNode = node.parentNode;
24272
- }
23943
+ b: for (; ; ) {
23944
+ for (var next; ; ) {
23945
+ node !== JSCompiler_temp || 0 !== anchorOffset && 3 !== node.nodeType || (start = length + anchorOffset);
23946
+ node !== focusNode || 0 !== selection && 3 !== node.nodeType || (end = length + selection);
23947
+ 3 === node.nodeType && (length += node.nodeValue.length);
23948
+ if (null === (next = node.firstChild)) break;
23949
+ parentNode = node;
24273
23950
  node = next;
24274
23951
  }
23952
+ for (; ; ) {
23953
+ if (node === root2) break b;
23954
+ parentNode === JSCompiler_temp && ++indexWithinAnchor === anchorOffset && (start = length);
23955
+ parentNode === focusNode && ++indexWithinFocus === selection && (end = length);
23956
+ if (null !== (next = node.nextSibling)) break;
23957
+ node = parentNode;
23958
+ parentNode = node.parentNode;
23959
+ }
23960
+ node = next;
23961
+ }
24275
23962
  JSCompiler_temp = -1 === start || -1 === end ? null : { start, end };
24276
- } else
24277
- JSCompiler_temp = null;
23963
+ } else JSCompiler_temp = null;
24278
23964
  }
24279
23965
  JSCompiler_temp = JSCompiler_temp || { start: 0, end: 0 };
24280
- } else
24281
- JSCompiler_temp = null;
23966
+ } else JSCompiler_temp = null;
24282
23967
  selectionInformation = { focusedElem: root2, selectionRange: JSCompiler_temp };
24283
23968
  _enabled = false;
24284
23969
  for (nextEffect = firstChild; null !== nextEffect; )
@@ -24346,8 +24031,7 @@ function commitBeforeMutationEffects(root2, firstChild) {
24346
24031
  case 17:
24347
24032
  break;
24348
24033
  default:
24349
- if (0 !== (root2 & 1024))
24350
- throw Error(formatProdErrorMessage(163));
24034
+ if (0 !== (root2 & 1024)) throw Error(formatProdErrorMessage(163));
24351
24035
  }
24352
24036
  root2 = firstChild.sibling;
24353
24037
  if (null !== root2) {
@@ -24645,30 +24329,28 @@ function recursivelyTraverseMutationEffects(root$jscomp$0, parentFiber) {
24645
24329
  if (null !== deletions)
24646
24330
  for (var i2 = 0; i2 < deletions.length; i2++) {
24647
24331
  var childToDelete = deletions[i2], root2 = root$jscomp$0, returnFiber = parentFiber, parent = returnFiber;
24648
- a:
24649
- for (; null !== parent; ) {
24650
- switch (parent.tag) {
24651
- case 27:
24652
- if (isSingletonScope(parent.type)) {
24653
- hostParent = parent.stateNode;
24654
- hostParentIsContainer = false;
24655
- break a;
24656
- }
24657
- break;
24658
- case 5:
24332
+ a: for (; null !== parent; ) {
24333
+ switch (parent.tag) {
24334
+ case 27:
24335
+ if (isSingletonScope(parent.type)) {
24659
24336
  hostParent = parent.stateNode;
24660
24337
  hostParentIsContainer = false;
24661
24338
  break a;
24662
- case 3:
24663
- case 4:
24664
- hostParent = parent.stateNode.containerInfo;
24665
- hostParentIsContainer = true;
24666
- break a;
24667
- }
24668
- parent = parent.return;
24339
+ }
24340
+ break;
24341
+ case 5:
24342
+ hostParent = parent.stateNode;
24343
+ hostParentIsContainer = false;
24344
+ break a;
24345
+ case 3:
24346
+ case 4:
24347
+ hostParent = parent.stateNode.containerInfo;
24348
+ hostParentIsContainer = true;
24349
+ break a;
24669
24350
  }
24670
- if (null === hostParent)
24671
- throw Error(formatProdErrorMessage(160));
24351
+ parent = parent.return;
24352
+ }
24353
+ if (null === hostParent) throw Error(formatProdErrorMessage(160));
24672
24354
  commitDeletionEffectsOnFiber(root2, returnFiber, childToDelete);
24673
24355
  hostParent = null;
24674
24356
  hostParentIsContainer = false;
@@ -24713,56 +24395,55 @@ function commitMutationEffectsOnFiber(finishedWork, root2) {
24713
24395
  flags = finishedWork.type;
24714
24396
  current = finishedWork.memoizedProps;
24715
24397
  hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot;
24716
- b:
24717
- switch (flags) {
24718
- case "title":
24719
- currentResource = hoistableRoot.getElementsByTagName("title")[0];
24720
- if (!currentResource || currentResource[internalHoistableMarker] || currentResource[internalInstanceKey] || "http://www.w3.org/2000/svg" === currentResource.namespaceURI || currentResource.hasAttribute("itemprop"))
24721
- currentResource = hoistableRoot.createElement(flags), hoistableRoot.head.insertBefore(
24722
- currentResource,
24723
- hoistableRoot.querySelector("head > title")
24724
- );
24725
- setInitialProperties(currentResource, flags, current);
24726
- currentResource[internalInstanceKey] = finishedWork;
24727
- markNodeAsHoistable(currentResource);
24728
- flags = currentResource;
24729
- break a;
24730
- case "link":
24731
- var maybeNodes = getHydratableHoistableCache(
24732
- "link",
24733
- "href",
24734
- hoistableRoot
24735
- ).get(flags + (current.href || ""));
24736
- if (maybeNodes) {
24737
- for (var i2 = 0; i2 < maybeNodes.length; i2++)
24738
- if (currentResource = maybeNodes[i2], currentResource.getAttribute("href") === (null == current.href || "" === current.href ? null : current.href) && currentResource.getAttribute("rel") === (null == current.rel ? null : current.rel) && currentResource.getAttribute("title") === (null == current.title ? null : current.title) && currentResource.getAttribute("crossorigin") === (null == current.crossOrigin ? null : current.crossOrigin)) {
24739
- maybeNodes.splice(i2, 1);
24740
- break b;
24741
- }
24742
- }
24743
- currentResource = hoistableRoot.createElement(flags);
24744
- setInitialProperties(currentResource, flags, current);
24745
- hoistableRoot.head.appendChild(currentResource);
24746
- break;
24747
- case "meta":
24748
- if (maybeNodes = getHydratableHoistableCache(
24749
- "meta",
24750
- "content",
24751
- hoistableRoot
24752
- ).get(flags + (current.content || ""))) {
24753
- for (i2 = 0; i2 < maybeNodes.length; i2++)
24754
- if (currentResource = maybeNodes[i2], currentResource.getAttribute("content") === (null == current.content ? null : "" + current.content) && currentResource.getAttribute("name") === (null == current.name ? null : current.name) && currentResource.getAttribute("property") === (null == current.property ? null : current.property) && currentResource.getAttribute("http-equiv") === (null == current.httpEquiv ? null : current.httpEquiv) && currentResource.getAttribute("charset") === (null == current.charSet ? null : current.charSet)) {
24755
- maybeNodes.splice(i2, 1);
24756
- break b;
24757
- }
24758
- }
24759
- currentResource = hoistableRoot.createElement(flags);
24760
- setInitialProperties(currentResource, flags, current);
24761
- hoistableRoot.head.appendChild(currentResource);
24762
- break;
24763
- default:
24764
- throw Error(formatProdErrorMessage(468, flags));
24765
- }
24398
+ b: switch (flags) {
24399
+ case "title":
24400
+ currentResource = hoistableRoot.getElementsByTagName("title")[0];
24401
+ if (!currentResource || currentResource[internalHoistableMarker] || currentResource[internalInstanceKey] || "http://www.w3.org/2000/svg" === currentResource.namespaceURI || currentResource.hasAttribute("itemprop"))
24402
+ currentResource = hoistableRoot.createElement(flags), hoistableRoot.head.insertBefore(
24403
+ currentResource,
24404
+ hoistableRoot.querySelector("head > title")
24405
+ );
24406
+ setInitialProperties(currentResource, flags, current);
24407
+ currentResource[internalInstanceKey] = finishedWork;
24408
+ markNodeAsHoistable(currentResource);
24409
+ flags = currentResource;
24410
+ break a;
24411
+ case "link":
24412
+ var maybeNodes = getHydratableHoistableCache(
24413
+ "link",
24414
+ "href",
24415
+ hoistableRoot
24416
+ ).get(flags + (current.href || ""));
24417
+ if (maybeNodes) {
24418
+ for (var i2 = 0; i2 < maybeNodes.length; i2++)
24419
+ if (currentResource = maybeNodes[i2], currentResource.getAttribute("href") === (null == current.href || "" === current.href ? null : current.href) && currentResource.getAttribute("rel") === (null == current.rel ? null : current.rel) && currentResource.getAttribute("title") === (null == current.title ? null : current.title) && currentResource.getAttribute("crossorigin") === (null == current.crossOrigin ? null : current.crossOrigin)) {
24420
+ maybeNodes.splice(i2, 1);
24421
+ break b;
24422
+ }
24423
+ }
24424
+ currentResource = hoistableRoot.createElement(flags);
24425
+ setInitialProperties(currentResource, flags, current);
24426
+ hoistableRoot.head.appendChild(currentResource);
24427
+ break;
24428
+ case "meta":
24429
+ if (maybeNodes = getHydratableHoistableCache(
24430
+ "meta",
24431
+ "content",
24432
+ hoistableRoot
24433
+ ).get(flags + (current.content || ""))) {
24434
+ for (i2 = 0; i2 < maybeNodes.length; i2++)
24435
+ if (currentResource = maybeNodes[i2], currentResource.getAttribute("content") === (null == current.content ? null : "" + current.content) && currentResource.getAttribute("name") === (null == current.name ? null : current.name) && currentResource.getAttribute("property") === (null == current.property ? null : current.property) && currentResource.getAttribute("http-equiv") === (null == current.httpEquiv ? null : current.httpEquiv) && currentResource.getAttribute("charset") === (null == current.charSet ? null : current.charSet)) {
24436
+ maybeNodes.splice(i2, 1);
24437
+ break b;
24438
+ }
24439
+ }
24440
+ currentResource = hoistableRoot.createElement(flags);
24441
+ setInitialProperties(currentResource, flags, current);
24442
+ hoistableRoot.head.appendChild(currentResource);
24443
+ break;
24444
+ default:
24445
+ throw Error(formatProdErrorMessage(468, flags));
24446
+ }
24766
24447
  currentResource[internalInstanceKey] = finishedWork;
24767
24448
  markNodeAsHoistable(currentResource);
24768
24449
  flags = currentResource;
@@ -24884,49 +24565,46 @@ function commitMutationEffectsOnFiber(finishedWork, root2) {
24884
24565
  offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden;
24885
24566
  commitReconciliationEffects(finishedWork);
24886
24567
  if (flags & 8192)
24887
- a:
24888
- for (root2 = finishedWork.stateNode, root2._visibility = hoistableRoot ? root2._visibility & -2 : root2._visibility | 1, hoistableRoot && (null === current || wasHidden || offscreenSubtreeIsHidden || offscreenSubtreeWasHidden || recursivelyTraverseDisappearLayoutEffects(finishedWork)), current = null, root2 = finishedWork; ; ) {
24889
- if (5 === root2.tag || 26 === root2.tag) {
24890
- if (null === current) {
24891
- wasHidden = current = root2;
24892
- try {
24893
- if (currentResource = wasHidden.stateNode, hoistableRoot)
24894
- maybeNodes = currentResource.style, "function" === typeof maybeNodes.setProperty ? maybeNodes.setProperty("display", "none", "important") : maybeNodes.display = "none";
24895
- else {
24896
- i2 = wasHidden.stateNode;
24897
- var styleProp = wasHidden.memoizedProps.style, display = void 0 !== styleProp && null !== styleProp && styleProp.hasOwnProperty("display") ? styleProp.display : null;
24898
- i2.style.display = null == display || "boolean" === typeof display ? "" : ("" + display).trim();
24899
- }
24900
- } catch (error) {
24901
- captureCommitPhaseError(wasHidden, wasHidden.return, error);
24902
- }
24903
- }
24904
- } else if (6 === root2.tag) {
24905
- if (null === current) {
24906
- wasHidden = root2;
24907
- try {
24908
- wasHidden.stateNode.nodeValue = hoistableRoot ? "" : wasHidden.memoizedProps;
24909
- } catch (error) {
24910
- captureCommitPhaseError(wasHidden, wasHidden.return, error);
24568
+ a: for (root2 = finishedWork.stateNode, root2._visibility = hoistableRoot ? root2._visibility & -2 : root2._visibility | 1, hoistableRoot && (null === current || wasHidden || offscreenSubtreeIsHidden || offscreenSubtreeWasHidden || recursivelyTraverseDisappearLayoutEffects(finishedWork)), current = null, root2 = finishedWork; ; ) {
24569
+ if (5 === root2.tag || 26 === root2.tag) {
24570
+ if (null === current) {
24571
+ wasHidden = current = root2;
24572
+ try {
24573
+ if (currentResource = wasHidden.stateNode, hoistableRoot)
24574
+ maybeNodes = currentResource.style, "function" === typeof maybeNodes.setProperty ? maybeNodes.setProperty("display", "none", "important") : maybeNodes.display = "none";
24575
+ else {
24576
+ i2 = wasHidden.stateNode;
24577
+ var styleProp = wasHidden.memoizedProps.style, display = void 0 !== styleProp && null !== styleProp && styleProp.hasOwnProperty("display") ? styleProp.display : null;
24578
+ i2.style.display = null == display || "boolean" === typeof display ? "" : ("" + display).trim();
24911
24579
  }
24580
+ } catch (error) {
24581
+ captureCommitPhaseError(wasHidden, wasHidden.return, error);
24912
24582
  }
24913
- } else if ((22 !== root2.tag && 23 !== root2.tag || null === root2.memoizedState || root2 === finishedWork) && null !== root2.child) {
24914
- root2.child.return = root2;
24915
- root2 = root2.child;
24916
- continue;
24917
24583
  }
24918
- if (root2 === finishedWork)
24919
- break a;
24920
- for (; null === root2.sibling; ) {
24921
- if (null === root2.return || root2.return === finishedWork)
24922
- break a;
24923
- current === root2 && (current = null);
24924
- root2 = root2.return;
24584
+ } else if (6 === root2.tag) {
24585
+ if (null === current) {
24586
+ wasHidden = root2;
24587
+ try {
24588
+ wasHidden.stateNode.nodeValue = hoistableRoot ? "" : wasHidden.memoizedProps;
24589
+ } catch (error) {
24590
+ captureCommitPhaseError(wasHidden, wasHidden.return, error);
24591
+ }
24925
24592
  }
24593
+ } else if ((22 !== root2.tag && 23 !== root2.tag || null === root2.memoizedState || root2 === finishedWork) && null !== root2.child) {
24594
+ root2.child.return = root2;
24595
+ root2 = root2.child;
24596
+ continue;
24597
+ }
24598
+ if (root2 === finishedWork) break a;
24599
+ for (; null === root2.sibling; ) {
24600
+ if (null === root2.return || root2.return === finishedWork) break a;
24926
24601
  current === root2 && (current = null);
24927
- root2.sibling.return = root2.return;
24928
- root2 = root2.sibling;
24602
+ root2 = root2.return;
24929
24603
  }
24604
+ current === root2 && (current = null);
24605
+ root2.sibling.return = root2.return;
24606
+ root2 = root2.sibling;
24607
+ }
24930
24608
  flags & 4 && (flags = finishedWork.updateQueue, null !== flags && (current = flags.retryQueue, null !== current && (flags.retryQueue = null, attachSuspenseRetryListeners(finishedWork, current))));
24931
24609
  break;
24932
24610
  case 19:
@@ -24953,8 +24631,7 @@ function commitReconciliationEffects(finishedWork) {
24953
24631
  }
24954
24632
  parentFiber = parentFiber.return;
24955
24633
  }
24956
- if (null == hostParentFiber)
24957
- throw Error(formatProdErrorMessage(160));
24634
+ if (null == hostParentFiber) throw Error(formatProdErrorMessage(160));
24958
24635
  switch (hostParentFiber.tag) {
24959
24636
  case 27:
24960
24637
  var parent = hostParentFiber.stateNode, before = getHostSibling(finishedWork);
@@ -25484,25 +25161,23 @@ function commitPassiveUnmountEffectsInsideOfDeletedTree_begin(deletedSubtreeRoot
25484
25161
  releaseCache(fiber.memoizedState.cache);
25485
25162
  }
25486
25163
  cache = fiber.child;
25487
- if (null !== cache)
25488
- cache.return = fiber, nextEffect = cache;
25164
+ if (null !== cache) cache.return = fiber, nextEffect = cache;
25489
25165
  else
25490
- a:
25491
- for (fiber = deletedSubtreeRoot; null !== nextEffect; ) {
25492
- cache = nextEffect;
25493
- var sibling = cache.sibling, returnFiber = cache.return;
25494
- detachFiberAfterEffects(cache);
25495
- if (cache === fiber) {
25496
- nextEffect = null;
25497
- break a;
25498
- }
25499
- if (null !== sibling) {
25500
- sibling.return = returnFiber;
25501
- nextEffect = sibling;
25502
- break a;
25503
- }
25504
- nextEffect = returnFiber;
25166
+ a: for (fiber = deletedSubtreeRoot; null !== nextEffect; ) {
25167
+ cache = nextEffect;
25168
+ var sibling = cache.sibling, returnFiber = cache.return;
25169
+ detachFiberAfterEffects(cache);
25170
+ if (cache === fiber) {
25171
+ nextEffect = null;
25172
+ break a;
25505
25173
  }
25174
+ if (null !== sibling) {
25175
+ sibling.return = returnFiber;
25176
+ nextEffect = sibling;
25177
+ break a;
25178
+ }
25179
+ nextEffect = returnFiber;
25180
+ }
25506
25181
  }
25507
25182
  }
25508
25183
  var DefaultAsyncDispatcher = {
@@ -25545,8 +25220,7 @@ function scheduleUpdateOnFiber(root2, fiber, lane) {
25545
25220
  )), ensureRootIsScheduled(root2);
25546
25221
  }
25547
25222
  function performWorkOnRoot(root$jscomp$0, lanes, forceSync) {
25548
- if (0 !== (executionContext & 6))
25549
- throw Error(formatProdErrorMessage(327));
25223
+ if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327));
25550
25224
  var shouldTimeSlice = !forceSync && 0 === (lanes & 124) && 0 === (lanes & root$jscomp$0.expiredLanes) || checkIfRootIsPrerendering(root$jscomp$0, lanes), exitStatus = shouldTimeSlice ? renderRootConcurrent(root$jscomp$0, lanes) : renderRootSync(root$jscomp$0, lanes, true), renderWasConcurrent = shouldTimeSlice;
25551
25225
  do {
25552
25226
  if (0 === exitStatus) {
@@ -25594,8 +25268,7 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) {
25594
25268
  exitStatus = JSCompiler_inline_result;
25595
25269
  }
25596
25270
  renderWasConcurrent = false;
25597
- if (2 !== exitStatus)
25598
- continue;
25271
+ if (2 !== exitStatus) continue;
25599
25272
  }
25600
25273
  }
25601
25274
  if (1 === exitStatus) {
@@ -25611,8 +25284,7 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) {
25611
25284
  case 1:
25612
25285
  throw Error(formatProdErrorMessage(345));
25613
25286
  case 4:
25614
- if ((lanes & 4194048) !== lanes)
25615
- break;
25287
+ if ((lanes & 4194048) !== lanes) break;
25616
25288
  case 6:
25617
25289
  markRootSuspended(
25618
25290
  shouldTimeSlice,
@@ -25637,8 +25309,7 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) {
25637
25309
  workInProgressDeferredLane,
25638
25310
  !workInProgressRootDidSkipSuspendedSiblings
25639
25311
  );
25640
- if (0 !== getNextLanes(shouldTimeSlice, 0, true))
25641
- break a;
25312
+ if (0 !== getNextLanes(shouldTimeSlice, 0, true)) break a;
25642
25313
  shouldTimeSlice.timeoutHandle = scheduleTimeout(
25643
25314
  commitRootWhenReady.bind(
25644
25315
  null,
@@ -25730,8 +25401,7 @@ function isRenderConsistentWithExternalStores(finishedWork) {
25730
25401
  var check = tag[i2], getSnapshot = check.getSnapshot;
25731
25402
  check = check.value;
25732
25403
  try {
25733
- if (!objectIs(getSnapshot(), check))
25734
- return false;
25404
+ if (!objectIs(getSnapshot(), check)) return false;
25735
25405
  } catch (error) {
25736
25406
  return false;
25737
25407
  }
@@ -25740,11 +25410,9 @@ function isRenderConsistentWithExternalStores(finishedWork) {
25740
25410
  if (node.subtreeFlags & 16384 && null !== tag)
25741
25411
  tag.return = node, node = tag;
25742
25412
  else {
25743
- if (node === finishedWork)
25744
- break;
25413
+ if (node === finishedWork) break;
25745
25414
  for (; null === node.sibling; ) {
25746
- if (null === node.return || node.return === finishedWork)
25747
- return true;
25415
+ if (null === node.return || node.return === finishedWork) return true;
25748
25416
  node = node.return;
25749
25417
  }
25750
25418
  node.sibling.return = node.return;
@@ -25848,41 +25516,40 @@ function renderRootSync(root2, lanes, shouldYieldForPrerendering) {
25848
25516
  workInProgressTransitions = null, prepareFreshStack(root2, lanes);
25849
25517
  lanes = false;
25850
25518
  var exitStatus = workInProgressRootExitStatus;
25851
- a:
25852
- do
25853
- try {
25854
- if (0 !== workInProgressSuspendedReason && null !== workInProgress) {
25855
- var unitOfWork = workInProgress, thrownValue = workInProgressThrownValue;
25856
- switch (workInProgressSuspendedReason) {
25857
- case 8:
25858
- resetWorkInProgressStack();
25859
- exitStatus = 6;
25519
+ a: do
25520
+ try {
25521
+ if (0 !== workInProgressSuspendedReason && null !== workInProgress) {
25522
+ var unitOfWork = workInProgress, thrownValue = workInProgressThrownValue;
25523
+ switch (workInProgressSuspendedReason) {
25524
+ case 8:
25525
+ resetWorkInProgressStack();
25526
+ exitStatus = 6;
25527
+ break a;
25528
+ case 3:
25529
+ case 2:
25530
+ case 9:
25531
+ case 6:
25532
+ null === suspenseHandlerStackCursor.current && (lanes = true);
25533
+ var reason = workInProgressSuspendedReason;
25534
+ workInProgressSuspendedReason = 0;
25535
+ workInProgressThrownValue = null;
25536
+ throwAndUnwindWorkLoop(root2, unitOfWork, thrownValue, reason);
25537
+ if (shouldYieldForPrerendering && workInProgressRootIsPrerendering) {
25538
+ exitStatus = 0;
25860
25539
  break a;
25861
- case 3:
25862
- case 2:
25863
- case 9:
25864
- case 6:
25865
- null === suspenseHandlerStackCursor.current && (lanes = true);
25866
- var reason = workInProgressSuspendedReason;
25867
- workInProgressSuspendedReason = 0;
25868
- workInProgressThrownValue = null;
25869
- throwAndUnwindWorkLoop(root2, unitOfWork, thrownValue, reason);
25870
- if (shouldYieldForPrerendering && workInProgressRootIsPrerendering) {
25871
- exitStatus = 0;
25872
- break a;
25873
- }
25874
- break;
25875
- default:
25876
- reason = workInProgressSuspendedReason, workInProgressSuspendedReason = 0, workInProgressThrownValue = null, throwAndUnwindWorkLoop(root2, unitOfWork, thrownValue, reason);
25877
- }
25540
+ }
25541
+ break;
25542
+ default:
25543
+ reason = workInProgressSuspendedReason, workInProgressSuspendedReason = 0, workInProgressThrownValue = null, throwAndUnwindWorkLoop(root2, unitOfWork, thrownValue, reason);
25878
25544
  }
25879
- workLoopSync();
25880
- exitStatus = workInProgressRootExitStatus;
25881
- break;
25882
- } catch (thrownValue$167) {
25883
- handleThrow(root2, thrownValue$167);
25884
25545
  }
25885
- while (1);
25546
+ workLoopSync();
25547
+ exitStatus = workInProgressRootExitStatus;
25548
+ break;
25549
+ } catch (thrownValue$167) {
25550
+ handleThrow(root2, thrownValue$167);
25551
+ }
25552
+ while (1);
25886
25553
  lanes && root2.shellSuspendCounter++;
25887
25554
  lastContextDependency = currentlyRenderingFiber$1 = null;
25888
25555
  executionContext = prevExecutionContext;
@@ -25892,8 +25559,7 @@ function renderRootSync(root2, lanes, shouldYieldForPrerendering) {
25892
25559
  return exitStatus;
25893
25560
  }
25894
25561
  function workLoopSync() {
25895
- for (; null !== workInProgress; )
25896
- performUnitOfWork(workInProgress);
25562
+ for (; null !== workInProgress; ) performUnitOfWork(workInProgress);
25897
25563
  }
25898
25564
  function renderRootConcurrent(root2, lanes) {
25899
25565
  var prevExecutionContext = executionContext;
@@ -25903,92 +25569,88 @@ function renderRootConcurrent(root2, lanes) {
25903
25569
  root2,
25904
25570
  lanes
25905
25571
  );
25906
- a:
25907
- do
25908
- try {
25909
- if (0 !== workInProgressSuspendedReason && null !== workInProgress) {
25910
- lanes = workInProgress;
25911
- var thrownValue = workInProgressThrownValue;
25912
- b:
25913
- switch (workInProgressSuspendedReason) {
25914
- case 1:
25915
- workInProgressSuspendedReason = 0;
25916
- workInProgressThrownValue = null;
25917
- throwAndUnwindWorkLoop(root2, lanes, thrownValue, 1);
25918
- break;
25919
- case 2:
25920
- case 9:
25921
- if (isThenableResolved(thrownValue)) {
25572
+ a: do
25573
+ try {
25574
+ if (0 !== workInProgressSuspendedReason && null !== workInProgress) {
25575
+ lanes = workInProgress;
25576
+ var thrownValue = workInProgressThrownValue;
25577
+ b: switch (workInProgressSuspendedReason) {
25578
+ case 1:
25579
+ workInProgressSuspendedReason = 0;
25580
+ workInProgressThrownValue = null;
25581
+ throwAndUnwindWorkLoop(root2, lanes, thrownValue, 1);
25582
+ break;
25583
+ case 2:
25584
+ case 9:
25585
+ if (isThenableResolved(thrownValue)) {
25586
+ workInProgressSuspendedReason = 0;
25587
+ workInProgressThrownValue = null;
25588
+ replaySuspendedUnitOfWork(lanes);
25589
+ break;
25590
+ }
25591
+ lanes = function() {
25592
+ 2 !== workInProgressSuspendedReason && 9 !== workInProgressSuspendedReason || workInProgressRoot !== root2 || (workInProgressSuspendedReason = 7);
25593
+ ensureRootIsScheduled(root2);
25594
+ };
25595
+ thrownValue.then(lanes, lanes);
25596
+ break a;
25597
+ case 3:
25598
+ workInProgressSuspendedReason = 7;
25599
+ break a;
25600
+ case 4:
25601
+ workInProgressSuspendedReason = 5;
25602
+ break a;
25603
+ case 7:
25604
+ isThenableResolved(thrownValue) ? (workInProgressSuspendedReason = 0, workInProgressThrownValue = null, replaySuspendedUnitOfWork(lanes)) : (workInProgressSuspendedReason = 0, workInProgressThrownValue = null, throwAndUnwindWorkLoop(root2, lanes, thrownValue, 7));
25605
+ break;
25606
+ case 5:
25607
+ var resource = null;
25608
+ switch (workInProgress.tag) {
25609
+ case 26:
25610
+ resource = workInProgress.memoizedState;
25611
+ case 5:
25612
+ case 27:
25613
+ var hostFiber = workInProgress;
25614
+ if (resource ? preloadResource(resource) : 1) {
25922
25615
  workInProgressSuspendedReason = 0;
25923
25616
  workInProgressThrownValue = null;
25924
- replaySuspendedUnitOfWork(lanes);
25925
- break;
25926
- }
25927
- lanes = function() {
25928
- 2 !== workInProgressSuspendedReason && 9 !== workInProgressSuspendedReason || workInProgressRoot !== root2 || (workInProgressSuspendedReason = 7);
25929
- ensureRootIsScheduled(root2);
25930
- };
25931
- thrownValue.then(lanes, lanes);
25932
- break a;
25933
- case 3:
25934
- workInProgressSuspendedReason = 7;
25935
- break a;
25936
- case 4:
25937
- workInProgressSuspendedReason = 5;
25938
- break a;
25939
- case 7:
25940
- isThenableResolved(thrownValue) ? (workInProgressSuspendedReason = 0, workInProgressThrownValue = null, replaySuspendedUnitOfWork(lanes)) : (workInProgressSuspendedReason = 0, workInProgressThrownValue = null, throwAndUnwindWorkLoop(root2, lanes, thrownValue, 7));
25941
- break;
25942
- case 5:
25943
- var resource = null;
25944
- switch (workInProgress.tag) {
25945
- case 26:
25946
- resource = workInProgress.memoizedState;
25947
- case 5:
25948
- case 27:
25949
- var hostFiber = workInProgress;
25950
- if (resource ? preloadResource(resource) : 1) {
25951
- workInProgressSuspendedReason = 0;
25952
- workInProgressThrownValue = null;
25953
- var sibling = hostFiber.sibling;
25954
- if (null !== sibling)
25955
- workInProgress = sibling;
25956
- else {
25957
- var returnFiber = hostFiber.return;
25958
- null !== returnFiber ? (workInProgress = returnFiber, completeUnitOfWork(returnFiber)) : workInProgress = null;
25959
- }
25960
- break b;
25961
- }
25617
+ var sibling = hostFiber.sibling;
25618
+ if (null !== sibling) workInProgress = sibling;
25619
+ else {
25620
+ var returnFiber = hostFiber.return;
25621
+ null !== returnFiber ? (workInProgress = returnFiber, completeUnitOfWork(returnFiber)) : workInProgress = null;
25622
+ }
25623
+ break b;
25962
25624
  }
25963
- workInProgressSuspendedReason = 0;
25964
- workInProgressThrownValue = null;
25965
- throwAndUnwindWorkLoop(root2, lanes, thrownValue, 5);
25966
- break;
25967
- case 6:
25968
- workInProgressSuspendedReason = 0;
25969
- workInProgressThrownValue = null;
25970
- throwAndUnwindWorkLoop(root2, lanes, thrownValue, 6);
25971
- break;
25972
- case 8:
25973
- resetWorkInProgressStack();
25974
- workInProgressRootExitStatus = 6;
25975
- break a;
25976
- default:
25977
- throw Error(formatProdErrorMessage(462));
25978
25625
  }
25626
+ workInProgressSuspendedReason = 0;
25627
+ workInProgressThrownValue = null;
25628
+ throwAndUnwindWorkLoop(root2, lanes, thrownValue, 5);
25629
+ break;
25630
+ case 6:
25631
+ workInProgressSuspendedReason = 0;
25632
+ workInProgressThrownValue = null;
25633
+ throwAndUnwindWorkLoop(root2, lanes, thrownValue, 6);
25634
+ break;
25635
+ case 8:
25636
+ resetWorkInProgressStack();
25637
+ workInProgressRootExitStatus = 6;
25638
+ break a;
25639
+ default:
25640
+ throw Error(formatProdErrorMessage(462));
25979
25641
  }
25980
- workLoopConcurrentByScheduler();
25981
- break;
25982
- } catch (thrownValue$169) {
25983
- handleThrow(root2, thrownValue$169);
25984
25642
  }
25985
- while (1);
25643
+ workLoopConcurrentByScheduler();
25644
+ break;
25645
+ } catch (thrownValue$169) {
25646
+ handleThrow(root2, thrownValue$169);
25647
+ }
25648
+ while (1);
25986
25649
  lastContextDependency = currentlyRenderingFiber$1 = null;
25987
25650
  ReactSharedInternals.H = prevDispatcher;
25988
25651
  ReactSharedInternals.A = prevAsyncDispatcher;
25989
25652
  executionContext = prevExecutionContext;
25990
- if (null !== workInProgress)
25991
- return 0;
25653
+ if (null !== workInProgress) return 0;
25992
25654
  workInProgressRoot = null;
25993
25655
  workInProgressRootRenderLanes = 0;
25994
25656
  finishQueueingConcurrentUpdates();
@@ -26059,8 +25721,7 @@ function throwAndUnwindWorkLoop(root2, unitOfWork, thrownValue, suspendedReason)
26059
25721
  return;
26060
25722
  }
26061
25723
  } catch (error) {
26062
- if (null !== returnFiber)
26063
- throw workInProgress = returnFiber, error;
25724
+ if (null !== returnFiber) throw workInProgress = returnFiber, error;
26064
25725
  workInProgressRootExitStatus = 1;
26065
25726
  logUncaughtError(
26066
25727
  root2,
@@ -26070,15 +25731,13 @@ function throwAndUnwindWorkLoop(root2, unitOfWork, thrownValue, suspendedReason)
26070
25731
  return;
26071
25732
  }
26072
25733
  if (unitOfWork.flags & 32768) {
26073
- if (isHydrating || 1 === suspendedReason)
26074
- root2 = true;
25734
+ if (isHydrating || 1 === suspendedReason) root2 = true;
26075
25735
  else if (workInProgressRootIsPrerendering || 0 !== (workInProgressRootRenderLanes & 536870912))
26076
25736
  root2 = false;
26077
25737
  else if (workInProgressRootDidSkipSuspendedSiblings = root2 = true, 2 === suspendedReason || 9 === suspendedReason || 3 === suspendedReason || 6 === suspendedReason)
26078
25738
  suspendedReason = suspenseHandlerStackCursor.current, null !== suspendedReason && 13 === suspendedReason.tag && (suspendedReason.flags |= 16384);
26079
25739
  unwindUnitOfWork(unitOfWork, root2);
26080
- } else
26081
- completeUnitOfWork(unitOfWork);
25740
+ } else completeUnitOfWork(unitOfWork);
26082
25741
  }
26083
25742
  function completeUnitOfWork(unitOfWork) {
26084
25743
  var completedWork = unitOfWork;
@@ -26133,11 +25792,9 @@ function commitRoot(root2, finishedWork, lanes, recoverableErrors, transitions,
26133
25792
  do
26134
25793
  flushPendingEffects();
26135
25794
  while (0 !== pendingEffectsStatus);
26136
- if (0 !== (executionContext & 6))
26137
- throw Error(formatProdErrorMessage(327));
25795
+ if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327));
26138
25796
  if (null !== finishedWork) {
26139
- if (finishedWork === root2.current)
26140
- throw Error(formatProdErrorMessage(177));
25797
+ if (finishedWork === root2.current) throw Error(formatProdErrorMessage(177));
26141
25798
  didIncludeRenderPhaseUpdate = finishedWork.lanes | finishedWork.childLanes;
26142
25799
  didIncludeRenderPhaseUpdate |= concurrentlyUpdatedLanes;
26143
25800
  markRootFinished(
@@ -26323,8 +25980,7 @@ function flushPendingEffects(wasDelayedCommit) {
26323
25980
  return flushPassiveEffects();
26324
25981
  }
26325
25982
  function flushPassiveEffects() {
26326
- if (5 !== pendingEffectsStatus)
26327
- return false;
25983
+ if (5 !== pendingEffectsStatus) return false;
26328
25984
  var root2 = pendingEffectsRoot, remainingLanes = pendingEffectsRemainingLanes;
26329
25985
  pendingEffectsRemainingLanes = 0;
26330
25986
  var renderPriority = lanesToEventPriority(pendingEffectsLanes), prevTransition = ReactSharedInternals.T, previousPriority = ReactDOMSharedInternals.p;
@@ -26337,8 +25993,7 @@ function flushPassiveEffects() {
26337
25993
  pendingEffectsStatus = 0;
26338
25994
  pendingFinishedWork = pendingEffectsRoot = null;
26339
25995
  pendingEffectsLanes = 0;
26340
- if (0 !== (executionContext & 6))
26341
- throw Error(formatProdErrorMessage(331));
25996
+ if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(331));
26342
25997
  var prevExecutionContext = executionContext;
26343
25998
  executionContext |= 4;
26344
25999
  commitPassiveUnmountOnFiber(root$jscomp$0.current);
@@ -26461,8 +26116,7 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) {
26461
26116
  for (var root$174 = firstScheduledRoot; null !== root$174; ) {
26462
26117
  if (0 !== syncTransitionLanes) {
26463
26118
  var pendingLanes = root$174.pendingLanes;
26464
- if (0 === pendingLanes)
26465
- var JSCompiler_inline_result = 0;
26119
+ if (0 === pendingLanes) var JSCompiler_inline_result = 0;
26466
26120
  else {
26467
26121
  var suspendedLanes = root$174.suspendedLanes, pingedLanes = root$174.pingedLanes;
26468
26122
  JSCompiler_inline_result = (1 << 31 - clz32(42 | syncTransitionLanes) + 1) - 1;
@@ -26505,8 +26159,7 @@ function scheduleTaskForRootDuringMicrotask(root2, currentTime) {
26505
26159
  if (-1 === expirationTime) {
26506
26160
  if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes))
26507
26161
  expirationTimes[index$3] = computeExpirationTime(lane, currentTime);
26508
- } else
26509
- expirationTime <= currentTime && (root2.expiredLanes |= lane);
26162
+ } else expirationTime <= currentTime && (root2.expiredLanes |= lane);
26510
26163
  lanes &= ~lane;
26511
26164
  }
26512
26165
  currentTime = workInProgressRoot;
@@ -26521,8 +26174,7 @@ function scheduleTaskForRootDuringMicrotask(root2, currentTime) {
26521
26174
  return null !== pingedLanes && null !== pingedLanes && cancelCallback$1(pingedLanes), root2.callbackNode = null, root2.callbackPriority = 0;
26522
26175
  if (0 === (suspendedLanes & 3) || checkIfRootIsPrerendering(root2, suspendedLanes)) {
26523
26176
  currentTime = suspendedLanes & -suspendedLanes;
26524
- if (currentTime === root2.callbackPriority)
26525
- return currentTime;
26177
+ if (currentTime === root2.callbackPriority) return currentTime;
26526
26178
  null !== pingedLanes && cancelCallback$1(pingedLanes);
26527
26179
  switch (lanesToEventPriority(suspendedLanes)) {
26528
26180
  case 2:
@@ -26561,15 +26213,13 @@ function performWorkOnRootViaSchedulerTask(root2, didTimeout) {
26561
26213
  root2 === workInProgressRoot ? workInProgressRootRenderLanes$jscomp$0 : 0,
26562
26214
  null !== root2.cancelPendingCommit || -1 !== root2.timeoutHandle
26563
26215
  );
26564
- if (0 === workInProgressRootRenderLanes$jscomp$0)
26565
- return null;
26216
+ if (0 === workInProgressRootRenderLanes$jscomp$0) return null;
26566
26217
  performWorkOnRoot(root2, workInProgressRootRenderLanes$jscomp$0, didTimeout);
26567
26218
  scheduleTaskForRootDuringMicrotask(root2, now());
26568
26219
  return null != root2.callbackNode && root2.callbackNode === originalCallbackNode ? performWorkOnRootViaSchedulerTask.bind(null, root2) : null;
26569
26220
  }
26570
26221
  function performSyncWorkOnRoot(root2, lanes) {
26571
- if (flushPendingEffects())
26572
- return null;
26222
+ if (flushPendingEffects()) return null;
26573
26223
  performWorkOnRoot(root2, lanes, true);
26574
26224
  }
26575
26225
  function scheduleImmediateRootScheduleTask() {
@@ -26804,36 +26454,32 @@ function addTrappedEventListener(targetContainer, domEventName, eventSystemFlags
26804
26454
  function dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativeEvent, targetInst$jscomp$0, targetContainer) {
26805
26455
  var ancestorInst = targetInst$jscomp$0;
26806
26456
  if (0 === (eventSystemFlags & 1) && 0 === (eventSystemFlags & 2) && null !== targetInst$jscomp$0)
26807
- a:
26808
- for (; ; ) {
26809
- if (null === targetInst$jscomp$0)
26810
- return;
26811
- var nodeTag = targetInst$jscomp$0.tag;
26812
- if (3 === nodeTag || 4 === nodeTag) {
26813
- var container = targetInst$jscomp$0.stateNode.containerInfo;
26814
- if (container === targetContainer)
26815
- break;
26816
- if (4 === nodeTag)
26817
- for (nodeTag = targetInst$jscomp$0.return; null !== nodeTag; ) {
26818
- var grandTag = nodeTag.tag;
26819
- if ((3 === grandTag || 4 === grandTag) && nodeTag.stateNode.containerInfo === targetContainer)
26820
- return;
26821
- nodeTag = nodeTag.return;
26822
- }
26823
- for (; null !== container; ) {
26824
- nodeTag = getClosestInstanceFromNode(container);
26825
- if (null === nodeTag)
26457
+ a: for (; ; ) {
26458
+ if (null === targetInst$jscomp$0) return;
26459
+ var nodeTag = targetInst$jscomp$0.tag;
26460
+ if (3 === nodeTag || 4 === nodeTag) {
26461
+ var container = targetInst$jscomp$0.stateNode.containerInfo;
26462
+ if (container === targetContainer) break;
26463
+ if (4 === nodeTag)
26464
+ for (nodeTag = targetInst$jscomp$0.return; null !== nodeTag; ) {
26465
+ var grandTag = nodeTag.tag;
26466
+ if ((3 === grandTag || 4 === grandTag) && nodeTag.stateNode.containerInfo === targetContainer)
26826
26467
  return;
26827
- grandTag = nodeTag.tag;
26828
- if (5 === grandTag || 6 === grandTag || 26 === grandTag || 27 === grandTag) {
26829
- targetInst$jscomp$0 = ancestorInst = nodeTag;
26830
- continue a;
26831
- }
26832
- container = container.parentNode;
26468
+ nodeTag = nodeTag.return;
26833
26469
  }
26470
+ for (; null !== container; ) {
26471
+ nodeTag = getClosestInstanceFromNode(container);
26472
+ if (null === nodeTag) return;
26473
+ grandTag = nodeTag.tag;
26474
+ if (5 === grandTag || 6 === grandTag || 26 === grandTag || 27 === grandTag) {
26475
+ targetInst$jscomp$0 = ancestorInst = nodeTag;
26476
+ continue a;
26477
+ }
26478
+ container = container.parentNode;
26834
26479
  }
26835
- targetInst$jscomp$0 = targetInst$jscomp$0.return;
26836
26480
  }
26481
+ targetInst$jscomp$0 = targetInst$jscomp$0.return;
26482
+ }
26837
26483
  batchedUpdates$1(function() {
26838
26484
  var targetInst = ancestorInst, nativeEventTarget = getEventTarget(nativeEvent), dispatchQueue = [];
26839
26485
  a: {
@@ -26842,8 +26488,7 @@ function dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativ
26842
26488
  var SyntheticEventCtor = SyntheticEvent, reactEventType = domEventName;
26843
26489
  switch (domEventName) {
26844
26490
  case "keypress":
26845
- if (0 === getEventCharCode(nativeEvent))
26846
- break a;
26491
+ if (0 === getEventCharCode(nativeEvent)) break a;
26847
26492
  case "keydown":
26848
26493
  case "keyup":
26849
26494
  SyntheticEventCtor = SyntheticKeyboardEvent;
@@ -26861,8 +26506,7 @@ function dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativ
26861
26506
  SyntheticEventCtor = SyntheticFocusEvent;
26862
26507
  break;
26863
26508
  case "click":
26864
- if (2 === nativeEvent.button)
26865
- break a;
26509
+ if (2 === nativeEvent.button) break a;
26866
26510
  case "auxclick":
26867
26511
  case "dblclick":
26868
26512
  case "mousedown":
@@ -26932,8 +26576,7 @@ function dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativ
26932
26576
  5 !== _instance && 26 !== _instance && 27 !== _instance || null === lastHostComponent || null === reactEventName || (_instance = getListener(instance, reactEventName), null != _instance && inCapturePhase.push(
26933
26577
  createDispatchListener(instance, _instance, lastHostComponent)
26934
26578
  ));
26935
- if (accumulateTargetOnly)
26936
- break;
26579
+ if (accumulateTargetOnly) break;
26937
26580
  instance = instance.return;
26938
26581
  }
26939
26582
  0 < inCapturePhase.length && (reactName = new SyntheticEventCtor(
@@ -26956,8 +26599,7 @@ function dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativ
26956
26599
  if (SyntheticEventCtor) {
26957
26600
  if (reactEventType = nativeEvent.relatedTarget || nativeEvent.toElement, SyntheticEventCtor = targetInst, reactEventType = reactEventType ? getClosestInstanceFromNode(reactEventType) : null, null !== reactEventType && (accumulateTargetOnly = getNearestMountedFiber(reactEventType), inCapturePhase = reactEventType.tag, reactEventType !== accumulateTargetOnly || 5 !== inCapturePhase && 27 !== inCapturePhase && 6 !== inCapturePhase))
26958
26601
  reactEventType = null;
26959
- } else
26960
- SyntheticEventCtor = null, reactEventType = targetInst;
26602
+ } else SyntheticEventCtor = null, reactEventType = targetInst;
26961
26603
  if (SyntheticEventCtor !== reactEventType) {
26962
26604
  inCapturePhase = SyntheticMouseEvent;
26963
26605
  _instance = "onMouseLeave";
@@ -27007,8 +26649,7 @@ function dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativ
27007
26649
  }
27008
26650
  inCapturePhase = null;
27009
26651
  }
27010
- else
27011
- inCapturePhase = null;
26652
+ else inCapturePhase = null;
27012
26653
  null !== SyntheticEventCtor && accumulateEnterLeaveListenersForEvent(
27013
26654
  dispatchQueue,
27014
26655
  reactName,
@@ -27071,8 +26712,7 @@ function dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativ
27071
26712
  constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget);
27072
26713
  break;
27073
26714
  case "selectionchange":
27074
- if (skipSelectionChangeEvent)
27075
- break;
26715
+ if (skipSelectionChangeEvent) break;
27076
26716
  case "keydown":
27077
26717
  case "keyup":
27078
26718
  constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget);
@@ -27140,15 +26780,13 @@ function accumulateTwoPhaseListeners(targetFiber, reactName) {
27140
26780
  ), _instance2 = getListener(targetFiber, reactName), null != _instance2 && listeners.push(
27141
26781
  createDispatchListener(targetFiber, _instance2, stateNode)
27142
26782
  ));
27143
- if (3 === targetFiber.tag)
27144
- return listeners;
26783
+ if (3 === targetFiber.tag) return listeners;
27145
26784
  targetFiber = targetFiber.return;
27146
26785
  }
27147
26786
  return [];
27148
26787
  }
27149
26788
  function getParent(inst) {
27150
- if (null === inst)
27151
- return null;
26789
+ if (null === inst) return null;
27152
26790
  do
27153
26791
  inst = inst.return;
27154
26792
  while (inst && 5 !== inst.tag && 27 !== inst.tag);
@@ -27158,8 +26796,7 @@ function accumulateEnterLeaveListenersForEvent(dispatchQueue, event, target, com
27158
26796
  for (var registrationName = event._reactName, listeners = []; null !== target && target !== common; ) {
27159
26797
  var _instance3 = target, alternate = _instance3.alternate, stateNode = _instance3.stateNode;
27160
26798
  _instance3 = _instance3.tag;
27161
- if (null !== alternate && alternate === common)
27162
- break;
26799
+ if (null !== alternate && alternate === common) break;
27163
26800
  5 !== _instance3 && 26 !== _instance3 && 27 !== _instance3 || null === stateNode || (alternate = stateNode, inCapturePhase ? (stateNode = getListener(target, registrationName), null != stateNode && listeners.unshift(
27164
26801
  createDispatchListener(target, stateNode, alternate)
27165
26802
  )) : inCapturePhase || (stateNode = getListener(target, registrationName), null != stateNode && listeners.push(
@@ -27271,8 +26908,7 @@ function setProp(domElement, tag, key2, value, props, prevValue) {
27271
26908
  throw Error(formatProdErrorMessage(61));
27272
26909
  key2 = value.__html;
27273
26910
  if (null != key2) {
27274
- if (null != props.children)
27275
- throw Error(formatProdErrorMessage(60));
26911
+ if (null != props.children) throw Error(formatProdErrorMessage(60));
27276
26912
  domElement.innerHTML = key2;
27277
26913
  }
27278
26914
  }
@@ -27452,8 +27088,7 @@ function setPropOnCustomElement(domElement, tag, key2, value, props, prevValue)
27452
27088
  throw Error(formatProdErrorMessage(61));
27453
27089
  key2 = value.__html;
27454
27090
  if (null != key2) {
27455
- if (null != props.children)
27456
- throw Error(formatProdErrorMessage(60));
27091
+ if (null != props.children) throw Error(formatProdErrorMessage(60));
27457
27092
  domElement.innerHTML = key2;
27458
27093
  }
27459
27094
  }
@@ -27611,8 +27246,7 @@ function setInitialProperties(domElement, tag, props) {
27611
27246
  propKey = defaultValue;
27612
27247
  break;
27613
27248
  case "dangerouslySetInnerHTML":
27614
- if (null != defaultValue)
27615
- throw Error(formatProdErrorMessage(91));
27249
+ if (null != defaultValue) throw Error(formatProdErrorMessage(91));
27616
27250
  break;
27617
27251
  default:
27618
27252
  setProp(domElement, tag, propValue, defaultValue, props, null);
@@ -27841,8 +27475,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
27841
27475
  case "children":
27842
27476
  break;
27843
27477
  case "dangerouslySetInnerHTML":
27844
- if (null != name)
27845
- throw Error(formatProdErrorMessage(91));
27478
+ if (null != name) throw Error(formatProdErrorMessage(91));
27846
27479
  break;
27847
27480
  default:
27848
27481
  name !== type && setProp(domElement, tag, value, name, nextProps, type);
@@ -27980,8 +27613,7 @@ var currentPopstateTransitionEvent = null;
27980
27613
  function shouldAttemptEagerTransition() {
27981
27614
  var event = window.event;
27982
27615
  if (event && "popstate" === event.type) {
27983
- if (event === currentPopstateTransitionEvent)
27984
- return false;
27616
+ if (event === currentPopstateTransitionEvent) return false;
27985
27617
  currentPopstateTransitionEvent = event;
27986
27618
  return true;
27987
27619
  }
@@ -28026,8 +27658,7 @@ function clearSuspenseBoundary(parentInstance, suspenseInstance) {
28026
27658
  depth--;
28027
27659
  } else
28028
27660
  "$" === node || "$?" === node || "$!" === node ? depth++ : possiblePreambleContribution = node.charCodeAt(0) - 48;
28029
- else
28030
- possiblePreambleContribution = 0;
27661
+ else possiblePreambleContribution = 0;
28031
27662
  node = nextNode;
28032
27663
  } while (node);
28033
27664
  retryIfBlockedOn(suspenseInstance);
@@ -28049,8 +27680,7 @@ function clearContainerSparingly(container) {
28049
27680
  case "STYLE":
28050
27681
  continue;
28051
27682
  case "LINK":
28052
- if ("stylesheet" === node.rel.toLowerCase())
28053
- continue;
27683
+ if ("stylesheet" === node.rel.toLowerCase()) continue;
28054
27684
  }
28055
27685
  container.removeChild(node);
28056
27686
  }
@@ -28066,13 +27696,11 @@ function canHydrateInstance(instance, type, props, inRootOrSingleton) {
28066
27696
  var name = null == anyProps.name ? null : "" + anyProps.name;
28067
27697
  if ("hidden" === anyProps.type && instance.getAttribute("name") === name)
28068
27698
  return instance;
28069
- } else
28070
- return instance;
27699
+ } else return instance;
28071
27700
  else if (!instance[internalHoistableMarker])
28072
27701
  switch (type) {
28073
27702
  case "meta":
28074
- if (!instance.hasAttribute("itemprop"))
28075
- break;
27703
+ if (!instance.hasAttribute("itemprop")) break;
28076
27704
  return instance;
28077
27705
  case "link":
28078
27706
  name = instance.getAttribute("rel");
@@ -28082,8 +27710,7 @@ function canHydrateInstance(instance, type, props, inRootOrSingleton) {
28082
27710
  break;
28083
27711
  return instance;
28084
27712
  case "style":
28085
- if (instance.hasAttribute("data-precedence"))
28086
- break;
27713
+ if (instance.hasAttribute("data-precedence")) break;
28087
27714
  return instance;
28088
27715
  case "script":
28089
27716
  name = instance.getAttribute("src");
@@ -28094,20 +27721,17 @@ function canHydrateInstance(instance, type, props, inRootOrSingleton) {
28094
27721
  return instance;
28095
27722
  }
28096
27723
  instance = getNextHydratable(instance.nextSibling);
28097
- if (null === instance)
28098
- break;
27724
+ if (null === instance) break;
28099
27725
  }
28100
27726
  return null;
28101
27727
  }
28102
27728
  function canHydrateTextInstance(instance, text, inRootOrSingleton) {
28103
- if ("" === text)
28104
- return null;
27729
+ if ("" === text) return null;
28105
27730
  for (; 3 !== instance.nodeType; ) {
28106
27731
  if ((1 !== instance.nodeType || "INPUT" !== instance.nodeName || "hidden" !== instance.type) && !inRootOrSingleton)
28107
27732
  return null;
28108
27733
  instance = getNextHydratable(instance.nextSibling);
28109
- if (null === instance)
28110
- return null;
27734
+ if (null === instance) return null;
28111
27735
  }
28112
27736
  return instance;
28113
27737
  }
@@ -28130,14 +27754,12 @@ function registerSuspenseInstanceRetry(instance, callback) {
28130
27754
  function getNextHydratable(node) {
28131
27755
  for (; null != node; node = node.nextSibling) {
28132
27756
  var nodeType = node.nodeType;
28133
- if (1 === nodeType || 3 === nodeType)
28134
- break;
27757
+ if (1 === nodeType || 3 === nodeType) break;
28135
27758
  if (8 === nodeType) {
28136
27759
  nodeType = node.data;
28137
27760
  if ("$" === nodeType || "$!" === nodeType || "$?" === nodeType || "F!" === nodeType || "F" === nodeType)
28138
27761
  break;
28139
- if ("/$" === nodeType)
28140
- return null;
27762
+ if ("/$" === nodeType) return null;
28141
27763
  }
28142
27764
  }
28143
27765
  return node;
@@ -28149,11 +27771,9 @@ function getParentSuspenseInstance(targetInstance) {
28149
27771
  if (8 === targetInstance.nodeType) {
28150
27772
  var data = targetInstance.data;
28151
27773
  if ("$" === data || "$!" === data || "$?" === data) {
28152
- if (0 === depth)
28153
- return targetInstance;
27774
+ if (0 === depth) return targetInstance;
28154
27775
  depth--;
28155
- } else
28156
- "/$" === data && depth++;
27776
+ } else "/$" === data && depth++;
28157
27777
  }
28158
27778
  targetInstance = targetInstance.previousSibling;
28159
27779
  }
@@ -28164,18 +27784,15 @@ function resolveSingletonInstance(type, props, rootContainerInstance) {
28164
27784
  switch (type) {
28165
27785
  case "html":
28166
27786
  type = props.documentElement;
28167
- if (!type)
28168
- throw Error(formatProdErrorMessage(452));
27787
+ if (!type) throw Error(formatProdErrorMessage(452));
28169
27788
  return type;
28170
27789
  case "head":
28171
27790
  type = props.head;
28172
- if (!type)
28173
- throw Error(formatProdErrorMessage(453));
27791
+ if (!type) throw Error(formatProdErrorMessage(453));
28174
27792
  return type;
28175
27793
  case "body":
28176
27794
  type = props.body;
28177
- if (!type)
28178
- throw Error(formatProdErrorMessage(454));
27795
+ if (!type) throw Error(formatProdErrorMessage(454));
28179
27796
  return type;
28180
27797
  default:
28181
27798
  throw Error(formatProdErrorMessage(451));
@@ -28361,8 +27978,7 @@ function preinitModuleScript(src, options) {
28361
27978
  }
28362
27979
  function getResource(type, currentProps, pendingProps, currentResource) {
28363
27980
  var JSCompiler_inline_result = (JSCompiler_inline_result = rootInstanceStackCursor.current) ? getHoistableRoot(JSCompiler_inline_result) : null;
28364
- if (!JSCompiler_inline_result)
28365
- throw Error(formatProdErrorMessage(446));
27981
+ if (!JSCompiler_inline_result) throw Error(formatProdErrorMessage(446));
28366
27982
  switch (type) {
28367
27983
  case "meta":
28368
27984
  case "title":
@@ -28521,10 +28137,8 @@ function insertStylesheet(instance, precedence, root2) {
28521
28137
  'link[rel="stylesheet"][data-precedence],style[data-precedence]'
28522
28138
  ), last = nodes.length ? nodes[nodes.length - 1] : null, prior = last, i2 = 0; i2 < nodes.length; i2++) {
28523
28139
  var node = nodes[i2];
28524
- if (node.dataset.precedence === precedence)
28525
- prior = node;
28526
- else if (prior !== last)
28527
- break;
28140
+ if (node.dataset.precedence === precedence) prior = node;
28141
+ else if (prior !== last) break;
28528
28142
  }
28529
28143
  prior ? prior.parentNode.insertBefore(instance, prior.nextSibling) : (precedence = 9 === root2.nodeType ? root2.head : root2, precedence.insertBefore(instance, precedence.firstChild));
28530
28144
  }
@@ -28546,8 +28160,7 @@ function getHydratableHoistableCache(type, keyAttribute, ownerDocument) {
28546
28160
  caches.set(ownerDocument, cache);
28547
28161
  } else
28548
28162
  caches = tagCaches, cache = caches.get(ownerDocument), cache || (cache = /* @__PURE__ */ new Map(), caches.set(ownerDocument, cache));
28549
- if (cache.has(type))
28550
- return cache;
28163
+ if (cache.has(type)) return cache;
28551
28164
  cache.set(type, null);
28552
28165
  ownerDocument = ownerDocument.getElementsByTagName(type);
28553
28166
  for (caches = 0; caches < ownerDocument.length; caches++) {
@@ -28569,8 +28182,7 @@ function mountHoistable(hoistableRoot, type, instance) {
28569
28182
  );
28570
28183
  }
28571
28184
  function isHostHoistableType(type, props, hostContext) {
28572
- if (1 === hostContext || null != props.itemProp)
28573
- return false;
28185
+ if (1 === hostContext || null != props.itemProp) return false;
28574
28186
  switch (type) {
28575
28187
  case "meta":
28576
28188
  case "title":
@@ -28601,8 +28213,7 @@ var suspendedState = null;
28601
28213
  function noop() {
28602
28214
  }
28603
28215
  function suspendResource(hoistableRoot, resource, props) {
28604
- if (null === suspendedState)
28605
- throw Error(formatProdErrorMessage(475));
28216
+ if (null === suspendedState) throw Error(formatProdErrorMessage(475));
28606
28217
  var state = suspendedState;
28607
28218
  if ("stylesheet" === resource.type && ("string" !== typeof props.media || false !== matchMedia(props.media).matches) && 0 === (resource.state.loading & 4)) {
28608
28219
  if (null === resource.instance) {
@@ -28636,8 +28247,7 @@ function suspendResource(hoistableRoot, resource, props) {
28636
28247
  }
28637
28248
  }
28638
28249
  function waitForCommitToBeReady() {
28639
- if (null === suspendedState)
28640
- throw Error(formatProdErrorMessage(475));
28250
+ if (null === suspendedState) throw Error(formatProdErrorMessage(475));
28641
28251
  var state = suspendedState;
28642
28252
  state.stylesheets && 0 === state.count && insertSuspendedStylesheets(state, state.stylesheets);
28643
28253
  return 0 < state.count ? function(commit) {
@@ -28659,8 +28269,7 @@ function waitForCommitToBeReady() {
28659
28269
  function onUnsuspend() {
28660
28270
  this.count--;
28661
28271
  if (0 === this.count) {
28662
- if (this.stylesheets)
28663
- insertSuspendedStylesheets(this, this.stylesheets);
28272
+ if (this.stylesheets) insertSuspendedStylesheets(this, this.stylesheets);
28664
28273
  else if (this.unsuspend) {
28665
28274
  var unsuspend = this.unsuspend;
28666
28275
  this.unsuspend = null;
@@ -28676,8 +28285,7 @@ function insertSuspendedStylesheets(state, resources) {
28676
28285
  function insertStylesheetIntoRoot(root2, resource) {
28677
28286
  if (!(resource.state.loading & 4)) {
28678
28287
  var precedences = precedencesByRoot.get(root2);
28679
- if (precedences)
28680
- var last = precedences.get(null);
28288
+ if (precedences) var last = precedences.get(null);
28681
28289
  else {
28682
28290
  precedences = /* @__PURE__ */ new Map();
28683
28291
  precedencesByRoot.set(root2, precedences);
@@ -28760,8 +28368,7 @@ function createFiberRoot(containerInfo, tag, hydrate, initialChildren, hydration
28760
28368
  return containerInfo;
28761
28369
  }
28762
28370
  function getContextForSubtree(parentComponent) {
28763
- if (!parentComponent)
28764
- return emptyContextObject;
28371
+ if (!parentComponent) return emptyContextObject;
28765
28372
  parentComponent = emptyContextObject;
28766
28373
  return parentComponent;
28767
28374
  }
@@ -28866,8 +28473,7 @@ function dispatchEvent(domEventName, eventSystemFlags, targetContainer, nativeEv
28866
28473
  return_targetInst,
28867
28474
  targetContainer
28868
28475
  );
28869
- if (fiber === blockedOn)
28870
- break;
28476
+ if (fiber === blockedOn) break;
28871
28477
  blockedOn = fiber;
28872
28478
  }
28873
28479
  null !== blockedOn && nativeEvent.stopPropagation();
@@ -28891,21 +28497,18 @@ function findInstanceBlockingTarget(targetNode) {
28891
28497
  targetNode = getClosestInstanceFromNode(targetNode);
28892
28498
  if (null !== targetNode) {
28893
28499
  var nearestMounted = getNearestMountedFiber(targetNode);
28894
- if (null === nearestMounted)
28895
- targetNode = null;
28500
+ if (null === nearestMounted) targetNode = null;
28896
28501
  else {
28897
28502
  var tag = nearestMounted.tag;
28898
28503
  if (13 === tag) {
28899
28504
  targetNode = getSuspenseInstanceFromFiber(nearestMounted);
28900
- if (null !== targetNode)
28901
- return targetNode;
28505
+ if (null !== targetNode) return targetNode;
28902
28506
  targetNode = null;
28903
28507
  } else if (3 === tag) {
28904
28508
  if (nearestMounted.stateNode.current.memoizedState.isDehydrated)
28905
28509
  return 3 === nearestMounted.tag ? nearestMounted.stateNode.containerInfo : null;
28906
28510
  targetNode = null;
28907
- } else
28908
- nearestMounted !== targetNode && (targetNode = null);
28511
+ } else nearestMounted !== targetNode && (targetNode = null);
28909
28512
  }
28910
28513
  }
28911
28514
  return_targetInst = targetNode;
@@ -29130,8 +28733,7 @@ function attemptExplicitHydrationTarget(queuedTarget) {
29130
28733
  queuedTarget.blockedOn = null;
29131
28734
  }
29132
28735
  function attemptReplayContinuousQueuedEvent(queuedEvent) {
29133
- if (null !== queuedEvent.blockedOn)
29134
- return false;
28736
+ if (null !== queuedEvent.blockedOn) return false;
29135
28737
  for (var targetContainers = queuedEvent.targetContainers; 0 < targetContainers.length; ) {
29136
28738
  var nextBlockedOn = findInstanceBlockingEvent(queuedEvent.nativeEvent);
29137
28739
  if (null === nextBlockedOn) {
@@ -29177,8 +28779,7 @@ function scheduleReplayQueueIfNeeded(formReplayingQueue) {
29177
28779
  if ("function" !== typeof submitterOrAction)
29178
28780
  if (null === findInstanceBlockingTarget(submitterOrAction || form))
29179
28781
  continue;
29180
- else
29181
- break;
28782
+ else break;
29182
28783
  var formInst = getInstanceFromNode(form);
29183
28784
  null !== formInst && (formReplayingQueue.splice(i2, 3), i2 -= 3, startHostTransition(
29184
28785
  formInst,
@@ -29222,11 +28823,9 @@ function retryIfBlockedOn(unblocked) {
29222
28823
  if (form = submitterOrAction, formProps = submitterOrAction[internalPropsKey] || null)
29223
28824
  action = formProps.formAction;
29224
28825
  else {
29225
- if (null !== findInstanceBlockingTarget(form))
29226
- continue;
28826
+ if (null !== findInstanceBlockingTarget(form)) continue;
29227
28827
  }
29228
- else
29229
- action = formProps.action;
28828
+ else action = formProps.action;
29230
28829
  "function" === typeof action ? i2[queuedTarget + 1] = action : (i2.splice(queuedTarget, 3), queuedTarget -= 3);
29231
28830
  scheduleReplayQueueIfNeeded(i2);
29232
28831
  }
@@ -29237,8 +28836,7 @@ function ReactDOMRoot(internalRoot) {
29237
28836
  }
29238
28837
  ReactDOMHydrationRoot.prototype.render = ReactDOMRoot.prototype.render = function(children) {
29239
28838
  var root2 = this._internalRoot;
29240
- if (null === root2)
29241
- throw Error(formatProdErrorMessage(409));
28839
+ if (null === root2) throw Error(formatProdErrorMessage(409));
29242
28840
  var current = root2.current, lane = requestUpdateLane();
29243
28841
  updateContainerImpl(current, lane, children, root2, null, null);
29244
28842
  };
@@ -29259,8 +28857,7 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function(target) {
29259
28857
  if (target) {
29260
28858
  var updatePriority = resolveUpdatePriority();
29261
28859
  target = { blockedOn: null, target, priority: updatePriority };
29262
- for (var i2 = 0; i2 < queuedExplicitHydrationTargets.length && 0 !== updatePriority && updatePriority < queuedExplicitHydrationTargets[i2].priority; i2++)
29263
- ;
28860
+ for (var i2 = 0; i2 < queuedExplicitHydrationTargets.length && 0 !== updatePriority && updatePriority < queuedExplicitHydrationTargets[i2].priority; i2++) ;
29264
28861
  queuedExplicitHydrationTargets.splice(i2, 0, target);
29265
28862
  0 === i2 && attemptExplicitHydrationTarget(target);
29266
28863
  }
@@ -29305,8 +28902,7 @@ if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
29305
28902
  }
29306
28903
  }
29307
28904
  reactDomClient_production.createRoot = function(container, options) {
29308
- if (!isValidContainer(container))
29309
- throw Error(formatProdErrorMessage(299));
28905
+ if (!isValidContainer(container)) throw Error(formatProdErrorMessage(299));
29310
28906
  var isStrictMode = false, identifierPrefix = "", onUncaughtError = defaultOnUncaughtError, onCaughtError = defaultOnCaughtError, onRecoverableError = defaultOnRecoverableError, transitionCallbacks = null;
29311
28907
  null !== options && void 0 !== options && (true === options.unstable_strictMode && (isStrictMode = true), void 0 !== options.identifierPrefix && (identifierPrefix = options.identifierPrefix), void 0 !== options.onUncaughtError && (onUncaughtError = options.onUncaughtError), void 0 !== options.onCaughtError && (onCaughtError = options.onCaughtError), void 0 !== options.onRecoverableError && (onRecoverableError = options.onRecoverableError), void 0 !== options.unstable_transitionCallbacks && (transitionCallbacks = options.unstable_transitionCallbacks));
29312
28908
  options = createFiberRoot(
@@ -29328,8 +28924,7 @@ reactDomClient_production.createRoot = function(container, options) {
29328
28924
  return new ReactDOMRoot(options);
29329
28925
  };
29330
28926
  reactDomClient_production.hydrateRoot = function(container, initialChildren, options) {
29331
- if (!isValidContainer(container))
29332
- throw Error(formatProdErrorMessage(299));
28927
+ if (!isValidContainer(container)) throw Error(formatProdErrorMessage(299));
29333
28928
  var isStrictMode = false, identifierPrefix = "", onUncaughtError = defaultOnUncaughtError, onCaughtError = defaultOnCaughtError, onRecoverableError = defaultOnRecoverableError, transitionCallbacks = null, formState = null;
29334
28929
  null !== options && void 0 !== options && (true === options.unstable_strictMode && (isStrictMode = true), void 0 !== options.identifierPrefix && (identifierPrefix = options.identifierPrefix), void 0 !== options.onUncaughtError && (onUncaughtError = options.onUncaughtError), void 0 !== options.onCaughtError && (onCaughtError = options.onCaughtError), void 0 !== options.onRecoverableError && (onRecoverableError = options.onRecoverableError), void 0 !== options.unstable_transitionCallbacks && (transitionCallbacks = options.unstable_transitionCallbacks), void 0 !== options.formState && (formState = options.formState));
29335
28930
  initialChildren = createFiberRoot(
@@ -29391,8 +28986,7 @@ function createSlotChildren(block) {
29391
28986
  const ReactSlotWrapper = ({ block }) => {
29392
28987
  const containerRef = React$2.useRef(null);
29393
28988
  React$2.useEffect(() => {
29394
- if (!containerRef.current)
29395
- return;
28989
+ if (!containerRef.current) return;
29396
28990
  const children = createSlotChildren(block);
29397
28991
  containerRef.current.replaceChildren(...children);
29398
28992
  }, [block]);
@@ -29433,8 +29027,7 @@ function useBridge$1(options) {
29433
29027
  callbackRef.current = options.onPresetChange;
29434
29028
  const isEditorMode = blockId !== null;
29435
29029
  reactExports.useEffect(() => {
29436
- if (!isEditorMode || !blockId)
29437
- return;
29030
+ if (!isEditorMode || !blockId) return;
29438
29031
  return editorBridge.onBlockPresetChange(blockId, (preset) => {
29439
29032
  callbackRef.current(preset);
29440
29033
  }).unsubscribe;
@@ -29716,8 +29309,7 @@ const ReactTestBlock = defineBlock("React Test", {
29716
29309
  });
29717
29310
  var n, l$1, u$1, i$1, r$1, o$1, e$1, f$1, c$1, s$1, a$1, h$1, p$1 = {}, v$1 = [], y$1 = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, w$1 = Array.isArray;
29718
29311
  function d$1(n2, l2) {
29719
- for (var u2 in l2)
29720
- n2[u2] = l2[u2];
29312
+ for (var u2 in l2) n2[u2] = l2[u2];
29721
29313
  return n2;
29722
29314
  }
29723
29315
  function g(n2) {
@@ -29725,11 +29317,8 @@ function g(n2) {
29725
29317
  }
29726
29318
  function _(l2, u2, t2) {
29727
29319
  var i2, r2, o2, e2 = {};
29728
- for (o2 in u2)
29729
- "key" == o2 ? i2 = u2[o2] : "ref" == o2 ? r2 = u2[o2] : e2[o2] = u2[o2];
29730
- if (arguments.length > 2 && (e2.children = arguments.length > 3 ? n.call(arguments, 2) : t2), "function" == typeof l2 && null != l2.defaultProps)
29731
- for (o2 in l2.defaultProps)
29732
- void 0 === e2[o2] && (e2[o2] = l2.defaultProps[o2]);
29320
+ for (o2 in u2) "key" == o2 ? i2 = u2[o2] : "ref" == o2 ? r2 = u2[o2] : e2[o2] = u2[o2];
29321
+ if (arguments.length > 2 && (e2.children = arguments.length > 3 ? n.call(arguments, 2) : t2), "function" == typeof l2 && null != l2.defaultProps) for (o2 in l2.defaultProps) void 0 === e2[o2] && (e2[o2] = l2.defaultProps[o2]);
29733
29322
  return m$1(l2, e2, i2, r2, null);
29734
29323
  }
29735
29324
  function m$1(n2, t2, i2, r2, o2) {
@@ -29743,21 +29332,17 @@ function x$1(n2, l2) {
29743
29332
  this.props = n2, this.context = l2;
29744
29333
  }
29745
29334
  function S(n2, l2) {
29746
- if (null == l2)
29747
- return n2.__ ? S(n2.__, n2.__i + 1) : null;
29748
- for (var u2; l2 < n2.__k.length; l2++)
29749
- if (null != (u2 = n2.__k[l2]) && null != u2.__e)
29750
- return u2.__e;
29335
+ if (null == l2) return n2.__ ? S(n2.__, n2.__i + 1) : null;
29336
+ for (var u2; l2 < n2.__k.length; l2++) if (null != (u2 = n2.__k[l2]) && null != u2.__e) return u2.__e;
29751
29337
  return "function" == typeof n2.type ? S(n2) : null;
29752
29338
  }
29753
29339
  function C$1(n2) {
29754
29340
  var l2, u2;
29755
29341
  if (null != (n2 = n2.__) && null != n2.__c) {
29756
- for (n2.__e = n2.__c.base = null, l2 = 0; l2 < n2.__k.length; l2++)
29757
- if (null != (u2 = n2.__k[l2]) && null != u2.__e) {
29758
- n2.__e = n2.__c.base = u2.__e;
29759
- break;
29760
- }
29342
+ for (n2.__e = n2.__c.base = null, l2 = 0; l2 < n2.__k.length; l2++) if (null != (u2 = n2.__k[l2]) && null != u2.__e) {
29343
+ n2.__e = n2.__c.base = u2.__e;
29344
+ break;
29345
+ }
29761
29346
  return C$1(n2);
29762
29347
  }
29763
29348
  }
@@ -29765,30 +29350,24 @@ function M2(n2) {
29765
29350
  (!n2.__d && (n2.__d = true) && i$1.push(n2) && !$.__r++ || r$1 != l$1.debounceRendering) && ((r$1 = l$1.debounceRendering) || o$1)($);
29766
29351
  }
29767
29352
  function $() {
29768
- for (var n2, u2, t2, r2, o2, f2, c2, s2 = 1; i$1.length; )
29769
- i$1.length > s2 && i$1.sort(e$1), n2 = i$1.shift(), s2 = i$1.length, n2.__d && (t2 = void 0, o2 = (r2 = (u2 = n2).__v).__e, f2 = [], c2 = [], u2.__P && ((t2 = d$1({}, r2)).__v = r2.__v + 1, l$1.vnode && l$1.vnode(t2), O(u2.__P, t2, r2, u2.__n, u2.__P.namespaceURI, 32 & r2.__u ? [o2] : null, f2, null == o2 ? S(r2) : o2, !!(32 & r2.__u), c2), t2.__v = r2.__v, t2.__.__k[t2.__i] = t2, z$1(f2, t2, c2), t2.__e != o2 && C$1(t2)));
29353
+ for (var n2, u2, t2, r2, o2, f2, c2, s2 = 1; i$1.length; ) i$1.length > s2 && i$1.sort(e$1), n2 = i$1.shift(), s2 = i$1.length, n2.__d && (t2 = void 0, o2 = (r2 = (u2 = n2).__v).__e, f2 = [], c2 = [], u2.__P && ((t2 = d$1({}, r2)).__v = r2.__v + 1, l$1.vnode && l$1.vnode(t2), O(u2.__P, t2, r2, u2.__n, u2.__P.namespaceURI, 32 & r2.__u ? [o2] : null, f2, null == o2 ? S(r2) : o2, !!(32 & r2.__u), c2), t2.__v = r2.__v, t2.__.__k[t2.__i] = t2, z$1(f2, t2, c2), t2.__e != o2 && C$1(t2)));
29770
29354
  $.__r = 0;
29771
29355
  }
29772
29356
  function I2(n2, l2, u2, t2, i2, r2, o2, e2, f2, c2, s2) {
29773
29357
  var a2, h2, y2, w2, d2, g2, _2 = t2 && t2.__k || v$1, m2 = l2.length;
29774
- for (f2 = P(u2, l2, _2, f2, m2), a2 = 0; a2 < m2; a2++)
29775
- null != (y2 = u2.__k[a2]) && (h2 = -1 == y2.__i ? p$1 : _2[y2.__i] || p$1, y2.__i = a2, g2 = O(n2, y2, h2, i2, r2, o2, e2, f2, c2, s2), w2 = y2.__e, y2.ref && h2.ref != y2.ref && (h2.ref && q(h2.ref, null, y2), s2.push(y2.ref, y2.__c || w2, y2)), null == d2 && null != w2 && (d2 = w2), 4 & y2.__u || h2.__k === y2.__k ? f2 = A$1(y2, f2, n2) : "function" == typeof y2.type && void 0 !== g2 ? f2 = g2 : w2 && (f2 = w2.nextSibling), y2.__u &= -7);
29358
+ for (f2 = P(u2, l2, _2, f2, m2), a2 = 0; a2 < m2; a2++) null != (y2 = u2.__k[a2]) && (h2 = -1 == y2.__i ? p$1 : _2[y2.__i] || p$1, y2.__i = a2, g2 = O(n2, y2, h2, i2, r2, o2, e2, f2, c2, s2), w2 = y2.__e, y2.ref && h2.ref != y2.ref && (h2.ref && q(h2.ref, null, y2), s2.push(y2.ref, y2.__c || w2, y2)), null == d2 && null != w2 && (d2 = w2), 4 & y2.__u || h2.__k === y2.__k ? f2 = A$1(y2, f2, n2) : "function" == typeof y2.type && void 0 !== g2 ? f2 = g2 : w2 && (f2 = w2.nextSibling), y2.__u &= -7);
29776
29359
  return u2.__e = d2, f2;
29777
29360
  }
29778
29361
  function P(n2, l2, u2, t2, i2) {
29779
29362
  var r2, o2, e2, f2, c2, s2 = u2.length, a2 = s2, h2 = 0;
29780
- for (n2.__k = new Array(i2), r2 = 0; r2 < i2; r2++)
29781
- null != (o2 = l2[r2]) && "boolean" != typeof o2 && "function" != typeof o2 ? (f2 = r2 + h2, (o2 = n2.__k[r2] = "string" == typeof o2 || "number" == typeof o2 || "bigint" == typeof o2 || o2.constructor == String ? m$1(null, o2, null, null, null) : w$1(o2) ? m$1(k$1, { children: o2 }, null, null, null) : null == o2.constructor && o2.__b > 0 ? m$1(o2.type, o2.props, o2.key, o2.ref ? o2.ref : null, o2.__v) : o2).__ = n2, o2.__b = n2.__b + 1, e2 = null, -1 != (c2 = o2.__i = L2(o2, u2, f2, a2)) && (a2--, (e2 = u2[c2]) && (e2.__u |= 2)), null == e2 || null == e2.__v ? (-1 == c2 && (i2 > s2 ? h2-- : i2 < s2 && h2++), "function" != typeof o2.type && (o2.__u |= 4)) : c2 != f2 && (c2 == f2 - 1 ? h2-- : c2 == f2 + 1 ? h2++ : (c2 > f2 ? h2-- : h2++, o2.__u |= 4))) : n2.__k[r2] = null;
29782
- if (a2)
29783
- for (r2 = 0; r2 < s2; r2++)
29784
- null != (e2 = u2[r2]) && 0 == (2 & e2.__u) && (e2.__e == t2 && (t2 = S(e2)), B$1(e2, e2));
29363
+ for (n2.__k = new Array(i2), r2 = 0; r2 < i2; r2++) null != (o2 = l2[r2]) && "boolean" != typeof o2 && "function" != typeof o2 ? (f2 = r2 + h2, (o2 = n2.__k[r2] = "string" == typeof o2 || "number" == typeof o2 || "bigint" == typeof o2 || o2.constructor == String ? m$1(null, o2, null, null, null) : w$1(o2) ? m$1(k$1, { children: o2 }, null, null, null) : null == o2.constructor && o2.__b > 0 ? m$1(o2.type, o2.props, o2.key, o2.ref ? o2.ref : null, o2.__v) : o2).__ = n2, o2.__b = n2.__b + 1, e2 = null, -1 != (c2 = o2.__i = L2(o2, u2, f2, a2)) && (a2--, (e2 = u2[c2]) && (e2.__u |= 2)), null == e2 || null == e2.__v ? (-1 == c2 && (i2 > s2 ? h2-- : i2 < s2 && h2++), "function" != typeof o2.type && (o2.__u |= 4)) : c2 != f2 && (c2 == f2 - 1 ? h2-- : c2 == f2 + 1 ? h2++ : (c2 > f2 ? h2-- : h2++, o2.__u |= 4))) : n2.__k[r2] = null;
29364
+ if (a2) for (r2 = 0; r2 < s2; r2++) null != (e2 = u2[r2]) && 0 == (2 & e2.__u) && (e2.__e == t2 && (t2 = S(e2)), B$1(e2, e2));
29785
29365
  return t2;
29786
29366
  }
29787
29367
  function A$1(n2, l2, u2) {
29788
29368
  var t2, i2;
29789
29369
  if ("function" == typeof n2.type) {
29790
- for (t2 = n2.__k, i2 = 0; t2 && i2 < t2.length; i2++)
29791
- t2[i2] && (t2[i2].__ = n2, l2 = A$1(t2[i2], l2, u2));
29370
+ for (t2 = n2.__k, i2 = 0; t2 && i2 < t2.length; i2++) t2[i2] && (t2[i2].__ = n2, l2 = A$1(t2[i2], l2, u2));
29792
29371
  return l2;
29793
29372
  }
29794
29373
  n2.__e != l2 && (l2 && n2.type && !u2.contains(l2) && (l2 = S(n2)), u2.insertBefore(n2.__e, l2 || null), l2 = n2.__e);
@@ -29799,21 +29378,17 @@ function A$1(n2, l2, u2) {
29799
29378
  }
29800
29379
  function L2(n2, l2, u2, t2) {
29801
29380
  var i2, r2, o2 = n2.key, e2 = n2.type, f2 = l2[u2];
29802
- if (null === f2 && null == n2.key || f2 && o2 == f2.key && e2 == f2.type && 0 == (2 & f2.__u))
29803
- return u2;
29804
- if (t2 > (null != f2 && 0 == (2 & f2.__u) ? 1 : 0))
29805
- for (i2 = u2 - 1, r2 = u2 + 1; i2 >= 0 || r2 < l2.length; ) {
29806
- if (i2 >= 0) {
29807
- if ((f2 = l2[i2]) && 0 == (2 & f2.__u) && o2 == f2.key && e2 == f2.type)
29808
- return i2;
29809
- i2--;
29810
- }
29811
- if (r2 < l2.length) {
29812
- if ((f2 = l2[r2]) && 0 == (2 & f2.__u) && o2 == f2.key && e2 == f2.type)
29813
- return r2;
29814
- r2++;
29815
- }
29381
+ if (null === f2 && null == n2.key || f2 && o2 == f2.key && e2 == f2.type && 0 == (2 & f2.__u)) return u2;
29382
+ if (t2 > (null != f2 && 0 == (2 & f2.__u) ? 1 : 0)) for (i2 = u2 - 1, r2 = u2 + 1; i2 >= 0 || r2 < l2.length; ) {
29383
+ if (i2 >= 0) {
29384
+ if ((f2 = l2[i2]) && 0 == (2 & f2.__u) && o2 == f2.key && e2 == f2.type) return i2;
29385
+ i2--;
29386
+ }
29387
+ if (r2 < l2.length) {
29388
+ if ((f2 = l2[r2]) && 0 == (2 & f2.__u) && o2 == f2.key && e2 == f2.type) return r2;
29389
+ r2++;
29816
29390
  }
29391
+ }
29817
29392
  return -1;
29818
29393
  }
29819
29394
  function T$1(n2, l2, u2) {
@@ -29821,96 +29396,70 @@ function T$1(n2, l2, u2) {
29821
29396
  }
29822
29397
  function j$1(n2, l2, u2, t2, i2) {
29823
29398
  var r2, o2;
29824
- n:
29825
- if ("style" == l2)
29826
- if ("string" == typeof u2)
29827
- n2.style.cssText = u2;
29828
- else {
29829
- if ("string" == typeof t2 && (n2.style.cssText = t2 = ""), t2)
29830
- for (l2 in t2)
29831
- u2 && l2 in u2 || T$1(n2.style, l2, "");
29832
- if (u2)
29833
- for (l2 in u2)
29834
- t2 && u2[l2] == t2[l2] || T$1(n2.style, l2, u2[l2]);
29835
- }
29836
- else if ("o" == l2[0] && "n" == l2[1])
29837
- r2 = l2 != (l2 = l2.replace(f$1, "$1")), o2 = l2.toLowerCase(), l2 = o2 in n2 || "onFocusOut" == l2 || "onFocusIn" == l2 ? o2.slice(2) : l2.slice(2), n2.l || (n2.l = {}), n2.l[l2 + r2] = u2, u2 ? t2 ? u2.u = t2.u : (u2.u = c$1, n2.addEventListener(l2, r2 ? a$1 : s$1, r2)) : n2.removeEventListener(l2, r2 ? a$1 : s$1, r2);
29838
- else {
29839
- if ("http://www.w3.org/2000/svg" == i2)
29840
- l2 = l2.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
29841
- else if ("width" != l2 && "height" != l2 && "href" != l2 && "list" != l2 && "form" != l2 && "tabIndex" != l2 && "download" != l2 && "rowSpan" != l2 && "colSpan" != l2 && "role" != l2 && "popover" != l2 && l2 in n2)
29842
- try {
29843
- n2[l2] = null == u2 ? "" : u2;
29844
- break n;
29845
- } catch (n3) {
29846
- }
29847
- "function" == typeof u2 || (null == u2 || false === u2 && "-" != l2[4] ? n2.removeAttribute(l2) : n2.setAttribute(l2, "popover" == l2 && 1 == u2 ? "" : u2));
29399
+ n: if ("style" == l2) if ("string" == typeof u2) n2.style.cssText = u2;
29400
+ else {
29401
+ if ("string" == typeof t2 && (n2.style.cssText = t2 = ""), t2) for (l2 in t2) u2 && l2 in u2 || T$1(n2.style, l2, "");
29402
+ if (u2) for (l2 in u2) t2 && u2[l2] == t2[l2] || T$1(n2.style, l2, u2[l2]);
29403
+ }
29404
+ else if ("o" == l2[0] && "n" == l2[1]) r2 = l2 != (l2 = l2.replace(f$1, "$1")), o2 = l2.toLowerCase(), l2 = o2 in n2 || "onFocusOut" == l2 || "onFocusIn" == l2 ? o2.slice(2) : l2.slice(2), n2.l || (n2.l = {}), n2.l[l2 + r2] = u2, u2 ? t2 ? u2.u = t2.u : (u2.u = c$1, n2.addEventListener(l2, r2 ? a$1 : s$1, r2)) : n2.removeEventListener(l2, r2 ? a$1 : s$1, r2);
29405
+ else {
29406
+ if ("http://www.w3.org/2000/svg" == i2) l2 = l2.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
29407
+ else if ("width" != l2 && "height" != l2 && "href" != l2 && "list" != l2 && "form" != l2 && "tabIndex" != l2 && "download" != l2 && "rowSpan" != l2 && "colSpan" != l2 && "role" != l2 && "popover" != l2 && l2 in n2) try {
29408
+ n2[l2] = null == u2 ? "" : u2;
29409
+ break n;
29410
+ } catch (n3) {
29848
29411
  }
29412
+ "function" == typeof u2 || (null == u2 || false === u2 && "-" != l2[4] ? n2.removeAttribute(l2) : n2.setAttribute(l2, "popover" == l2 && 1 == u2 ? "" : u2));
29413
+ }
29849
29414
  }
29850
29415
  function F(n2) {
29851
29416
  return function(u2) {
29852
29417
  if (this.l) {
29853
29418
  var t2 = this.l[u2.type + n2];
29854
- if (null == u2.t)
29855
- u2.t = c$1++;
29856
- else if (u2.t < t2.u)
29857
- return;
29419
+ if (null == u2.t) u2.t = c$1++;
29420
+ else if (u2.t < t2.u) return;
29858
29421
  return t2(l$1.event ? l$1.event(u2) : u2);
29859
29422
  }
29860
29423
  };
29861
29424
  }
29862
29425
  function O(n2, u2, t2, i2, r2, o2, e2, f2, c2, s2) {
29863
29426
  var a2, h2, p2, v2, y2, _2, m2, b, S2, C2, M3, $2, P2, A2, H2, L3, T2, j2 = u2.type;
29864
- if (null != u2.constructor)
29865
- return null;
29427
+ if (null != u2.constructor) return null;
29866
29428
  128 & t2.__u && (c2 = !!(32 & t2.__u), o2 = [f2 = u2.__e = t2.__e]), (a2 = l$1.__b) && a2(u2);
29867
- n:
29868
- if ("function" == typeof j2)
29869
- try {
29870
- if (b = u2.props, S2 = "prototype" in j2 && j2.prototype.render, C2 = (a2 = j2.contextType) && i2[a2.__c], M3 = a2 ? C2 ? C2.props.value : a2.__ : i2, t2.__c ? m2 = (h2 = u2.__c = t2.__c).__ = h2.__E : (S2 ? u2.__c = h2 = new j2(b, M3) : (u2.__c = h2 = new x$1(b, M3), h2.constructor = j2, h2.render = D$1), C2 && C2.sub(h2), h2.props = b, h2.state || (h2.state = {}), h2.context = M3, h2.__n = i2, p2 = h2.__d = true, h2.__h = [], h2._sb = []), S2 && null == h2.__s && (h2.__s = h2.state), S2 && null != j2.getDerivedStateFromProps && (h2.__s == h2.state && (h2.__s = d$1({}, h2.__s)), d$1(h2.__s, j2.getDerivedStateFromProps(b, h2.__s))), v2 = h2.props, y2 = h2.state, h2.__v = u2, p2)
29871
- S2 && null == j2.getDerivedStateFromProps && null != h2.componentWillMount && h2.componentWillMount(), S2 && null != h2.componentDidMount && h2.__h.push(h2.componentDidMount);
29872
- else {
29873
- if (S2 && null == j2.getDerivedStateFromProps && b !== v2 && null != h2.componentWillReceiveProps && h2.componentWillReceiveProps(b, M3), !h2.__e && null != h2.shouldComponentUpdate && false === h2.shouldComponentUpdate(b, h2.__s, M3) || u2.__v == t2.__v) {
29874
- for (u2.__v != t2.__v && (h2.props = b, h2.state = h2.__s, h2.__d = false), u2.__e = t2.__e, u2.__k = t2.__k, u2.__k.some(function(n3) {
29875
- n3 && (n3.__ = u2);
29876
- }), $2 = 0; $2 < h2._sb.length; $2++)
29877
- h2.__h.push(h2._sb[$2]);
29878
- h2._sb = [], h2.__h.length && e2.push(h2);
29879
- break n;
29880
- }
29881
- null != h2.componentWillUpdate && h2.componentWillUpdate(b, h2.__s, M3), S2 && null != h2.componentDidUpdate && h2.__h.push(function() {
29882
- h2.componentDidUpdate(v2, y2, _2);
29883
- });
29884
- }
29885
- if (h2.context = M3, h2.props = b, h2.__P = n2, h2.__e = false, P2 = l$1.__r, A2 = 0, S2) {
29886
- for (h2.state = h2.__s, h2.__d = false, P2 && P2(u2), a2 = h2.render(h2.props, h2.state, h2.context), H2 = 0; H2 < h2._sb.length; H2++)
29887
- h2.__h.push(h2._sb[H2]);
29888
- h2._sb = [];
29889
- } else
29890
- do {
29891
- h2.__d = false, P2 && P2(u2), a2 = h2.render(h2.props, h2.state, h2.context), h2.state = h2.__s;
29892
- } while (h2.__d && ++A2 < 25);
29893
- h2.state = h2.__s, null != h2.getChildContext && (i2 = d$1(d$1({}, i2), h2.getChildContext())), S2 && !p2 && null != h2.getSnapshotBeforeUpdate && (_2 = h2.getSnapshotBeforeUpdate(v2, y2)), L3 = a2, null != a2 && a2.type === k$1 && null == a2.key && (L3 = N2(a2.props.children)), f2 = I2(n2, w$1(L3) ? L3 : [L3], u2, t2, i2, r2, o2, e2, f2, c2, s2), h2.base = u2.__e, u2.__u &= -161, h2.__h.length && e2.push(h2), m2 && (h2.__E = h2.__ = null);
29894
- } catch (n3) {
29895
- if (u2.__v = null, c2 || null != o2)
29896
- if (n3.then) {
29897
- for (u2.__u |= c2 ? 160 : 128; f2 && 8 == f2.nodeType && f2.nextSibling; )
29898
- f2 = f2.nextSibling;
29899
- o2[o2.indexOf(f2)] = null, u2.__e = f2;
29900
- } else
29901
- for (T2 = o2.length; T2--; )
29902
- g(o2[T2]);
29903
- else
29904
- u2.__e = t2.__e, u2.__k = t2.__k;
29905
- l$1.__e(n3, u2, t2);
29906
- }
29907
- else
29908
- null == o2 && u2.__v == t2.__v ? (u2.__k = t2.__k, u2.__e = t2.__e) : f2 = u2.__e = V(t2.__e, u2, t2, i2, r2, o2, e2, c2, s2);
29429
+ n: if ("function" == typeof j2) try {
29430
+ if (b = u2.props, S2 = "prototype" in j2 && j2.prototype.render, C2 = (a2 = j2.contextType) && i2[a2.__c], M3 = a2 ? C2 ? C2.props.value : a2.__ : i2, t2.__c ? m2 = (h2 = u2.__c = t2.__c).__ = h2.__E : (S2 ? u2.__c = h2 = new j2(b, M3) : (u2.__c = h2 = new x$1(b, M3), h2.constructor = j2, h2.render = D$1), C2 && C2.sub(h2), h2.props = b, h2.state || (h2.state = {}), h2.context = M3, h2.__n = i2, p2 = h2.__d = true, h2.__h = [], h2._sb = []), S2 && null == h2.__s && (h2.__s = h2.state), S2 && null != j2.getDerivedStateFromProps && (h2.__s == h2.state && (h2.__s = d$1({}, h2.__s)), d$1(h2.__s, j2.getDerivedStateFromProps(b, h2.__s))), v2 = h2.props, y2 = h2.state, h2.__v = u2, p2) S2 && null == j2.getDerivedStateFromProps && null != h2.componentWillMount && h2.componentWillMount(), S2 && null != h2.componentDidMount && h2.__h.push(h2.componentDidMount);
29431
+ else {
29432
+ if (S2 && null == j2.getDerivedStateFromProps && b !== v2 && null != h2.componentWillReceiveProps && h2.componentWillReceiveProps(b, M3), !h2.__e && null != h2.shouldComponentUpdate && false === h2.shouldComponentUpdate(b, h2.__s, M3) || u2.__v == t2.__v) {
29433
+ for (u2.__v != t2.__v && (h2.props = b, h2.state = h2.__s, h2.__d = false), u2.__e = t2.__e, u2.__k = t2.__k, u2.__k.some(function(n3) {
29434
+ n3 && (n3.__ = u2);
29435
+ }), $2 = 0; $2 < h2._sb.length; $2++) h2.__h.push(h2._sb[$2]);
29436
+ h2._sb = [], h2.__h.length && e2.push(h2);
29437
+ break n;
29438
+ }
29439
+ null != h2.componentWillUpdate && h2.componentWillUpdate(b, h2.__s, M3), S2 && null != h2.componentDidUpdate && h2.__h.push(function() {
29440
+ h2.componentDidUpdate(v2, y2, _2);
29441
+ });
29442
+ }
29443
+ if (h2.context = M3, h2.props = b, h2.__P = n2, h2.__e = false, P2 = l$1.__r, A2 = 0, S2) {
29444
+ for (h2.state = h2.__s, h2.__d = false, P2 && P2(u2), a2 = h2.render(h2.props, h2.state, h2.context), H2 = 0; H2 < h2._sb.length; H2++) h2.__h.push(h2._sb[H2]);
29445
+ h2._sb = [];
29446
+ } else do {
29447
+ h2.__d = false, P2 && P2(u2), a2 = h2.render(h2.props, h2.state, h2.context), h2.state = h2.__s;
29448
+ } while (h2.__d && ++A2 < 25);
29449
+ h2.state = h2.__s, null != h2.getChildContext && (i2 = d$1(d$1({}, i2), h2.getChildContext())), S2 && !p2 && null != h2.getSnapshotBeforeUpdate && (_2 = h2.getSnapshotBeforeUpdate(v2, y2)), L3 = a2, null != a2 && a2.type === k$1 && null == a2.key && (L3 = N2(a2.props.children)), f2 = I2(n2, w$1(L3) ? L3 : [L3], u2, t2, i2, r2, o2, e2, f2, c2, s2), h2.base = u2.__e, u2.__u &= -161, h2.__h.length && e2.push(h2), m2 && (h2.__E = h2.__ = null);
29450
+ } catch (n3) {
29451
+ if (u2.__v = null, c2 || null != o2) if (n3.then) {
29452
+ for (u2.__u |= c2 ? 160 : 128; f2 && 8 == f2.nodeType && f2.nextSibling; ) f2 = f2.nextSibling;
29453
+ o2[o2.indexOf(f2)] = null, u2.__e = f2;
29454
+ } else for (T2 = o2.length; T2--; ) g(o2[T2]);
29455
+ else u2.__e = t2.__e, u2.__k = t2.__k;
29456
+ l$1.__e(n3, u2, t2);
29457
+ }
29458
+ else null == o2 && u2.__v == t2.__v ? (u2.__k = t2.__k, u2.__e = t2.__e) : f2 = u2.__e = V(t2.__e, u2, t2, i2, r2, o2, e2, c2, s2);
29909
29459
  return (a2 = l$1.diffed) && a2(u2), 128 & u2.__u ? void 0 : f2;
29910
29460
  }
29911
29461
  function z$1(n2, u2, t2) {
29912
- for (var i2 = 0; i2 < t2.length; i2++)
29913
- q(t2[i2], t2[++i2], t2[++i2]);
29462
+ for (var i2 = 0; i2 < t2.length; i2++) q(t2[i2], t2[++i2], t2[++i2]);
29914
29463
  l$1.__c && l$1.__c(u2, n2), n2.some(function(u3) {
29915
29464
  try {
29916
29465
  n2 = u3.__h, u3.__h = [], n2.some(function(n3) {
@@ -29927,40 +29476,27 @@ function N2(n2) {
29927
29476
  function V(u2, t2, i2, r2, o2, e2, f2, c2, s2) {
29928
29477
  var a2, h2, v2, y2, d2, _2, m2, b = i2.props, k3 = t2.props, x2 = t2.type;
29929
29478
  if ("svg" == x2 ? o2 = "http://www.w3.org/2000/svg" : "math" == x2 ? o2 = "http://www.w3.org/1998/Math/MathML" : o2 || (o2 = "http://www.w3.org/1999/xhtml"), null != e2) {
29930
- for (a2 = 0; a2 < e2.length; a2++)
29931
- if ((d2 = e2[a2]) && "setAttribute" in d2 == !!x2 && (x2 ? d2.localName == x2 : 3 == d2.nodeType)) {
29932
- u2 = d2, e2[a2] = null;
29933
- break;
29934
- }
29479
+ for (a2 = 0; a2 < e2.length; a2++) if ((d2 = e2[a2]) && "setAttribute" in d2 == !!x2 && (x2 ? d2.localName == x2 : 3 == d2.nodeType)) {
29480
+ u2 = d2, e2[a2] = null;
29481
+ break;
29482
+ }
29935
29483
  }
29936
29484
  if (null == u2) {
29937
- if (null == x2)
29938
- return document.createTextNode(k3);
29485
+ if (null == x2) return document.createTextNode(k3);
29939
29486
  u2 = document.createElementNS(o2, x2, k3.is && k3), c2 && (l$1.__m && l$1.__m(t2, e2), c2 = false), e2 = null;
29940
29487
  }
29941
- if (null == x2)
29942
- b === k3 || c2 && u2.data == k3 || (u2.data = k3);
29488
+ if (null == x2) b === k3 || c2 && u2.data == k3 || (u2.data = k3);
29943
29489
  else {
29944
- if (e2 = e2 && n.call(u2.childNodes), b = i2.props || p$1, !c2 && null != e2)
29945
- for (b = {}, a2 = 0; a2 < u2.attributes.length; a2++)
29946
- b[(d2 = u2.attributes[a2]).name] = d2.value;
29947
- for (a2 in b)
29948
- if (d2 = b[a2], "children" == a2)
29949
- ;
29950
- else if ("dangerouslySetInnerHTML" == a2)
29951
- v2 = d2;
29952
- else if (!(a2 in k3)) {
29953
- if ("value" == a2 && "defaultValue" in k3 || "checked" == a2 && "defaultChecked" in k3)
29954
- continue;
29955
- j$1(u2, a2, null, d2, o2);
29956
- }
29957
- for (a2 in k3)
29958
- d2 = k3[a2], "children" == a2 ? y2 = d2 : "dangerouslySetInnerHTML" == a2 ? h2 = d2 : "value" == a2 ? _2 = d2 : "checked" == a2 ? m2 = d2 : c2 && "function" != typeof d2 || b[a2] === d2 || j$1(u2, a2, d2, b[a2], o2);
29959
- if (h2)
29960
- c2 || v2 && (h2.__html == v2.__html || h2.__html == u2.innerHTML) || (u2.innerHTML = h2.__html), t2.__k = [];
29961
- else if (v2 && (u2.innerHTML = ""), I2("template" == t2.type ? u2.content : u2, w$1(y2) ? y2 : [y2], t2, i2, r2, "foreignObject" == x2 ? "http://www.w3.org/1999/xhtml" : o2, e2, f2, e2 ? e2[0] : i2.__k && S(i2, 0), c2, s2), null != e2)
29962
- for (a2 = e2.length; a2--; )
29963
- g(e2[a2]);
29490
+ if (e2 = e2 && n.call(u2.childNodes), b = i2.props || p$1, !c2 && null != e2) for (b = {}, a2 = 0; a2 < u2.attributes.length; a2++) b[(d2 = u2.attributes[a2]).name] = d2.value;
29491
+ for (a2 in b) if (d2 = b[a2], "children" == a2) ;
29492
+ else if ("dangerouslySetInnerHTML" == a2) v2 = d2;
29493
+ else if (!(a2 in k3)) {
29494
+ if ("value" == a2 && "defaultValue" in k3 || "checked" == a2 && "defaultChecked" in k3) continue;
29495
+ j$1(u2, a2, null, d2, o2);
29496
+ }
29497
+ for (a2 in k3) d2 = k3[a2], "children" == a2 ? y2 = d2 : "dangerouslySetInnerHTML" == a2 ? h2 = d2 : "value" == a2 ? _2 = d2 : "checked" == a2 ? m2 = d2 : c2 && "function" != typeof d2 || b[a2] === d2 || j$1(u2, a2, d2, b[a2], o2);
29498
+ if (h2) c2 || v2 && (h2.__html == v2.__html || h2.__html == u2.innerHTML) || (u2.innerHTML = h2.__html), t2.__k = [];
29499
+ else if (v2 && (u2.innerHTML = ""), I2("template" == t2.type ? u2.content : u2, w$1(y2) ? y2 : [y2], t2, i2, r2, "foreignObject" == x2 ? "http://www.w3.org/1999/xhtml" : o2, e2, f2, e2 ? e2[0] : i2.__k && S(i2, 0), c2, s2), null != e2) for (a2 = e2.length; a2--; ) g(e2[a2]);
29964
29500
  c2 || (a2 = "value", "progress" == x2 && null == _2 ? u2.removeAttribute("value") : null != _2 && (_2 !== u2[a2] || "progress" == x2 && !_2 || "option" == x2 && _2 != b[a2]) && j$1(u2, a2, _2, b[a2], o2), a2 = "checked", null != m2 && m2 != u2[a2] && j$1(u2, a2, m2, b[a2], o2));
29965
29501
  }
29966
29502
  return u2;
@@ -29970,8 +29506,7 @@ function q(n2, u2, t2) {
29970
29506
  if ("function" == typeof n2) {
29971
29507
  var i2 = "function" == typeof n2.__u;
29972
29508
  i2 && n2.__u(), i2 && null == u2 || (n2.__u = n2(u2));
29973
- } else
29974
- n2.current = u2;
29509
+ } else n2.current = u2;
29975
29510
  } catch (n3) {
29976
29511
  l$1.__e(n3, t2);
29977
29512
  }
@@ -29979,17 +29514,14 @@ function q(n2, u2, t2) {
29979
29514
  function B$1(n2, u2, t2) {
29980
29515
  var i2, r2;
29981
29516
  if (l$1.unmount && l$1.unmount(n2), (i2 = n2.ref) && (i2.current && i2.current != n2.__e || q(i2, null, u2)), null != (i2 = n2.__c)) {
29982
- if (i2.componentWillUnmount)
29983
- try {
29984
- i2.componentWillUnmount();
29985
- } catch (n3) {
29986
- l$1.__e(n3, u2);
29987
- }
29517
+ if (i2.componentWillUnmount) try {
29518
+ i2.componentWillUnmount();
29519
+ } catch (n3) {
29520
+ l$1.__e(n3, u2);
29521
+ }
29988
29522
  i2.base = i2.__P = null;
29989
29523
  }
29990
- if (i2 = n2.__k)
29991
- for (r2 = 0; r2 < i2.length; r2++)
29992
- i2[r2] && B$1(i2[r2], u2, t2 || "function" != typeof n2.type);
29524
+ if (i2 = n2.__k) for (r2 = 0; r2 < i2.length; r2++) i2[r2] && B$1(i2[r2], u2, t2 || "function" != typeof n2.type);
29993
29525
  t2 || g(n2.__e), n2.__c = n2.__ = n2.__e = void 0;
29994
29526
  }
29995
29527
  function D$1(n2, l2, u2) {
@@ -30023,14 +29555,11 @@ function K(n2) {
30023
29555
  }).contextType = l2, l2;
30024
29556
  }
30025
29557
  n = v$1.slice, l$1 = { __e: function(n2, l2, u2, t2) {
30026
- for (var i2, r2, o2; l2 = l2.__; )
30027
- if ((i2 = l2.__c) && !i2.__)
30028
- try {
30029
- if ((r2 = i2.constructor) && null != r2.getDerivedStateFromError && (i2.setState(r2.getDerivedStateFromError(n2)), o2 = i2.__d), null != i2.componentDidCatch && (i2.componentDidCatch(n2, t2 || {}), o2 = i2.__d), o2)
30030
- return i2.__E = i2;
30031
- } catch (l3) {
30032
- n2 = l3;
30033
- }
29558
+ for (var i2, r2, o2; l2 = l2.__; ) if ((i2 = l2.__c) && !i2.__) try {
29559
+ if ((r2 = i2.constructor) && null != r2.getDerivedStateFromError && (i2.setState(r2.getDerivedStateFromError(n2)), o2 = i2.__d), null != i2.componentDidCatch && (i2.componentDidCatch(n2, t2 || {}), o2 = i2.__d), o2) return i2.__E = i2;
29560
+ } catch (l3) {
29561
+ n2 = l3;
29562
+ }
30034
29563
  throw n2;
30035
29564
  } }, u$1 = 0, x$1.prototype.setState = function(n2, l2) {
30036
29565
  var u2;
@@ -30056,15 +29585,13 @@ function h(n2, u2, i2) {
30056
29585
  t2 !== r2 && (o2.__N = [r2, o2.__[1]], o2.__c.setState({}));
30057
29586
  }], o2.__c = r, !r.__f)) {
30058
29587
  var f2 = function(n3, t2, r2) {
30059
- if (!o2.__c.__H)
30060
- return true;
29588
+ if (!o2.__c.__H) return true;
30061
29589
  var u3 = o2.__c.__H.__.filter(function(n4) {
30062
29590
  return !!n4.__c;
30063
29591
  });
30064
29592
  if (u3.every(function(n4) {
30065
29593
  return !n4.__N;
30066
- }))
30067
- return !c2 || c2.call(this, n3, t2, r2);
29594
+ })) return !c2 || c2.call(this, n3, t2, r2);
30068
29595
  var i3 = o2.__c.props !== n3;
30069
29596
  return u3.forEach(function(n4) {
30070
29597
  if (n4.__N) {
@@ -30103,13 +29630,11 @@ function x(n2) {
30103
29630
  return i2.c = n2, u2 ? (null == i2.__ && (i2.__ = true, u2.sub(r)), u2.props.value) : n2.__;
30104
29631
  }
30105
29632
  function j() {
30106
- for (var n2; n2 = f.shift(); )
30107
- if (n2.__P && n2.__H)
30108
- try {
30109
- n2.__H.__h.forEach(z2), n2.__H.__h.forEach(B), n2.__H.__h = [];
30110
- } catch (t2) {
30111
- n2.__H.__h = [], c.__e(t2, n2.__v);
30112
- }
29633
+ for (var n2; n2 = f.shift(); ) if (n2.__P && n2.__H) try {
29634
+ n2.__H.__h.forEach(z2), n2.__H.__h.forEach(B), n2.__H.__h = [];
29635
+ } catch (t2) {
29636
+ n2.__H.__h = [], c.__e(t2, n2.__v);
29637
+ }
30113
29638
  }
30114
29639
  c.__b = function(n2) {
30115
29640
  r = null, e && e(n2);
@@ -30236,8 +29761,7 @@ const PreactSlotWrapper = ({
30236
29761
  }) => {
30237
29762
  const containerRef = A(null);
30238
29763
  y(() => {
30239
- if (!containerRef.current)
30240
- return;
29764
+ if (!containerRef.current) return;
30241
29765
  const children = createSlotChildren(block);
30242
29766
  containerRef.current.replaceChildren(...children);
30243
29767
  }, [block]);
@@ -30279,8 +29803,7 @@ function useBridge(options) {
30279
29803
  callbackRef.current = options.onPresetChange;
30280
29804
  const isEditorMode = blockId !== null;
30281
29805
  y(() => {
30282
- if (!isEditorMode || !blockId)
30283
- return;
29806
+ if (!isEditorMode || !blockId) return;
30284
29807
  if (subscriptionMap.has(blockId)) {
30285
29808
  subscriptionMap.get(blockId)();
30286
29809
  subscriptionMap.delete(blockId);
@@ -31318,7 +30841,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
31318
30841
  const currency = computed(
31319
30842
  () => {
31320
30843
  var _a;
31321
- return ((_a = actionConfig.value) == null ? void 0 : _a.currency) ?? "USD";
30844
+ return ((_a = actionConfig.value) == null ? void 0 : _a.currency) ?? "";
31322
30845
  }
31323
30846
  );
31324
30847
  const recurringCycleLimit = computed(
@@ -31327,9 +30850,26 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
31327
30850
  return ((_a = actionConfig.value) == null ? void 0 : _a.recurringCycleLimit) ?? null;
31328
30851
  }
31329
30852
  );
31330
- const formattedDiscount = computed(
31331
- () => discountType.value === "percentage" ? `${discountValue.value}%` : `${discountValue.value} ${currency.value}`
31332
- );
30853
+ const formattedDiscount = computed(() => {
30854
+ if (discountType.value === "percentage") {
30855
+ return `${discountValue.value}%`;
30856
+ }
30857
+ const amount = Number(discountValue.value);
30858
+ const code = currency.value;
30859
+ if (code) {
30860
+ try {
30861
+ return new Intl.NumberFormat(void 0, {
30862
+ style: "currency",
30863
+ currency: code,
30864
+ minimumFractionDigits: 0,
30865
+ maximumFractionDigits: 2
30866
+ }).format(amount);
30867
+ } catch {
30868
+ return `${discountValue.value} ${code}`;
30869
+ }
30870
+ }
30871
+ return String(discountValue.value);
30872
+ });
31333
30873
  const durationText = computed(
31334
30874
  () => recurringCycleLimit.value ? `for ${recurringCycleLimit.value} order${Number(recurringCycleLimit.value) === 1 ? "" : "s"}` : "on all subscription renewals"
31335
30875
  );
@@ -31767,12 +31307,10 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
31767
31307
  return ((_a = resolvedProduct.value) == null ? void 0 : _a.imageUrl) ?? "";
31768
31308
  });
31769
31309
  const formattedPrice = computed(() => {
31770
- if (!resolvedProduct.value)
31771
- return "";
31310
+ if (!resolvedProduct.value) return "";
31772
31311
  const { price, currencyCode } = resolvedProduct.value;
31773
31312
  const amount = Number(price);
31774
- if (Number.isNaN(amount))
31775
- return "";
31313
+ if (Number.isNaN(amount)) return "";
31776
31314
  try {
31777
31315
  return new Intl.NumberFormat(void 0, {
31778
31316
  style: "currency",
@@ -32240,14 +31778,11 @@ const OfferFreeGiftActionBlock = defineBlock(
32240
31778
  async function resolveSubscriptionId(subscriptionService, workflowState) {
32241
31779
  var _a;
32242
31780
  const fromUrl = subscriptionService.getCurrentSubscriptionId();
32243
- if (fromUrl)
32244
- return fromUrl;
31781
+ if (fromUrl) return fromUrl;
32245
31782
  const fromFlow = (_a = workflowState.value.flowParams) == null ? void 0 : _a.subscriptionId;
32246
- if (typeof fromFlow === "string")
32247
- return fromFlow;
31783
+ if (typeof fromFlow === "string") return fromFlow;
32248
31784
  const result = await subscriptionService.getDefaultSubscriptionId();
32249
- if (result._tag === "Success" && result.data)
32250
- return result.data;
31785
+ if (result._tag === "Success" && result.data) return result.data;
32251
31786
  return null;
32252
31787
  }
32253
31788
  const _hoisted_1$a = { class: "max-w-[500px] flex flex-col items-center gap-xl box-border" };
@@ -32284,8 +31819,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
32284
31819
  const selectedPlanIndex = ref(0);
32285
31820
  const isLoadingPlans = ref(true);
32286
31821
  function formatPlanLabel(plan) {
32287
- if (plan.name)
32288
- return plan.name;
31822
+ if (plan.name) return plan.name;
32289
31823
  const { intervalCount, interval } = plan.deliveryPolicy;
32290
31824
  try {
32291
31825
  const rtf = new Intl.RelativeTimeFormat("en");
@@ -32307,8 +31841,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
32307
31841
  subscriptionService,
32308
31842
  workflowService.state
32309
31843
  );
32310
- if (!subscriptionId)
32311
- return;
31844
+ if (!subscriptionId) return;
32312
31845
  const result = await subscriptionService.getAvailablePlans(subscriptionId);
32313
31846
  if (result._tag === "Success" && result.data.length > 0) {
32314
31847
  plans.value = result.data;
@@ -32320,8 +31853,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
32320
31853
  });
32321
31854
  function handleAccept() {
32322
31855
  const plan = plans.value[selectedPlanIndex.value];
32323
- if (!plan)
32324
- return;
31856
+ if (!plan) return;
32325
31857
  const { intervalCount, interval } = plan.deliveryPolicy;
32326
31858
  workflowService.respond("accepted", {
32327
31859
  intervalCount,
@@ -32702,8 +32234,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
32702
32234
  const variantId = opt.productVariantId;
32703
32235
  try {
32704
32236
  const product = await productService.getByVariantId(variantId);
32705
- if (!product)
32706
- return;
32237
+ if (!product) return;
32707
32238
  const variant = product.variants.items.find(
32708
32239
  (v2) => v2.id === variantId
32709
32240
  );
@@ -32732,7 +32263,23 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
32732
32263
  const discountType = opt.discountType ?? "percentage";
32733
32264
  const recurringCycleLimit = opt.recurringCycleLimit;
32734
32265
  const currency = ((_a = actionConfig.value) == null ? void 0 : _a.currency) ?? "";
32735
- const formattedDiscount = discountType === "percentage" ? `${discountValue}%` : `${discountValue} ${currency}`.trim();
32266
+ let formattedDiscount;
32267
+ if (discountType === "percentage") {
32268
+ formattedDiscount = `${discountValue}%`;
32269
+ } else if (currency) {
32270
+ try {
32271
+ formattedDiscount = new Intl.NumberFormat(void 0, {
32272
+ style: "currency",
32273
+ currency,
32274
+ minimumFractionDigits: 0,
32275
+ maximumFractionDigits: 2
32276
+ }).format(discountValue);
32277
+ } catch {
32278
+ formattedDiscount = `${discountValue} ${currency}`;
32279
+ }
32280
+ } else {
32281
+ formattedDiscount = String(discountValue);
32282
+ }
32736
32283
  const durationText = recurringCycleLimit != null ? `for ${recurringCycleLimit} cycle${Number(recurringCycleLimit) === 1 ? "" : "s"}` : "on all subscription renewals";
32737
32284
  result[key2] = {
32738
32285
  badge: `${formattedDiscount} OFF`,
@@ -33734,8 +33281,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
33734
33281
  const workflowService = useContext$2(WorkflowServiceContext);
33735
33282
  const isLoading = computed(() => workflowService.isLoading.value);
33736
33283
  const isVideo = computed(() => {
33737
- if (props.mediaType)
33738
- return props.mediaType === "video";
33284
+ if (props.mediaType) return props.mediaType === "video";
33739
33285
  const url = props.mediaUrl ?? "";
33740
33286
  return /\.(mp4|webm|ogg)(\?|$)/i.test(url);
33741
33287
  });
@@ -33751,8 +33297,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
33751
33297
  const items = [];
33752
33298
  for (let i2 = 0; i2 < count2; i2++) {
33753
33299
  const val = props[benefitProps[i2]];
33754
- if (val)
33755
- items.push(val);
33300
+ if (val) items.push(val);
33756
33301
  }
33757
33302
  return items;
33758
33303
  });
@@ -34582,8 +34127,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
34582
34127
  const items = [];
34583
34128
  for (let i2 = 0; i2 < count2; i2++) {
34584
34129
  const val = props[benefitProps[i2]];
34585
- if (val)
34586
- items.push(val);
34130
+ if (val) items.push(val);
34587
34131
  }
34588
34132
  return items;
34589
34133
  });
@@ -34972,10 +34516,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
34972
34516
  }
34973
34517
  async function fetchProducts(query, cursor) {
34974
34518
  const opts = {};
34975
- if (query)
34976
- opts.query = query;
34977
- if (cursor)
34978
- opts.pagination = { after: cursor };
34519
+ if (query) opts.query = query;
34520
+ if (cursor) opts.pagination = { after: cursor };
34979
34521
  return productService.search(Object.keys(opts).length > 0 ? opts : void 0);
34980
34522
  }
34981
34523
  async function loadFirstPage(query) {
@@ -34991,8 +34533,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
34991
34533
  }
34992
34534
  }
34993
34535
  async function onLoadMore() {
34994
- if (!hasNextPage.value || isLoadingMore.value)
34995
- return;
34536
+ if (!hasNextPage.value || isLoadingMore.value) return;
34996
34537
  isLoadingMore.value = true;
34997
34538
  try {
34998
34539
  const result = await fetchProducts(searchQuery.value, endCursor.value);
@@ -35013,8 +34554,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
35013
34554
  subscriptionService,
35014
34555
  workflowService.state
35015
34556
  );
35016
- if (!subscriptionId)
35017
- return;
34557
+ if (!subscriptionId) return;
35018
34558
  const result = await subscriptionService.getById(subscriptionId);
35019
34559
  if (result._tag === "Success" && result.data) {
35020
34560
  subscriptionItems.value = result.data.items;