shared-ritm 1.2.88 → 1.2.89

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.
@@ -1,7 +1,7 @@
1
1
  var $0 = Object.defineProperty;
2
2
  var H0 = (e, n, t) => n in e ? $0(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
3
  var xf = (e, n, t) => H0(e, typeof n != "symbol" ? n + "" : n, t);
4
- import { markRaw as Pp, defineComponent as Pt, reactive as ia, h as T, withDirectives as qn, computed as k, ref as Y, getCurrentInstance as Ye, nextTick as _t, watch as me, onMounted as vn, onBeforeUnmount as Tt, onUnmounted as Bp, Teleport as U0, onDeactivated as ho, unref as Er, Transition as Hn, useCssVars as qo, createBlock as Pe, openBlock as Q, mergeProps as Bc, withCtx as ve, renderSlot as nn, createCommentVNode as tt, createTextVNode as Wt, toDisplayString as mt, toRaw as eo, normalizeClass as Ke, createElementBlock as be, createVNode as _e, createElementVNode as fe, onBeforeUpdate as Op, inject as co, onActivated as Ta, mergeModels as _f, useModel as j0, createSlots as Aa, provide as Xs, normalizeStyle as cs, getCurrentScope as G0, onScopeDispose as K0, createStaticVNode as dr, resolveDynamicComponent as X0, Fragment as Ar, renderList as $r, vShow as Np, onBeforeMount as Oc, onUpdated as Y0, useSlots as Lp, shallowReactive as Q0, resolveComponent as Z0, withModifiers as Ys, normalizeProps as J0, toHandlers as e1 } from "vue";
4
+ import { markRaw as Pp, defineComponent as Pt, reactive as ia, h as T, withDirectives as qn, computed as k, ref as Y, getCurrentInstance as Ye, nextTick as _t, watch as me, onMounted as vn, onBeforeUnmount as Tt, onUnmounted as Bp, Teleport as U0, onDeactivated as ho, unref as Er, Transition as Hn, useCssVars as qo, createBlock as Pe, openBlock as Q, mergeProps as Bc, withCtx as ve, renderSlot as nn, createCommentVNode as tt, createTextVNode as Wt, toDisplayString as mt, toRaw as eo, normalizeClass as Ke, createElementBlock as be, createVNode as _e, createElementVNode as fe, onBeforeUpdate as Op, inject as co, onActivated as Ta, mergeModels as _f, useModel as j0, createSlots as Aa, provide as Xs, normalizeStyle as ni, getCurrentScope as G0, onScopeDispose as K0, createStaticVNode as dr, resolveDynamicComponent as X0, Fragment as Ar, renderList as $r, vShow as Np, onBeforeMount as Oc, onUpdated as Y0, useSlots as Lp, shallowReactive as Q0, resolveComponent as Z0, withModifiers as Ys, normalizeProps as J0, toHandlers as e1 } from "vue";
5
5
  function nr(e, n, t, r) {
6
6
  return Object.defineProperty(e, n, {
7
7
  get: t,
@@ -406,7 +406,7 @@ function $p(e, n) {
406
406
  changeScrollEvent: o
407
407
  };
408
408
  }
409
- function ns(e) {
409
+ function rs(e) {
410
410
  if (Object(e.$parent) === e.$parent)
411
411
  return e.$parent;
412
412
  let { parent: n } = e.$;
@@ -422,19 +422,19 @@ function Vc(e) {
422
422
  function Js(e) {
423
423
  return e.isUnmounted === !0 || e.isDeactivated === !0;
424
424
  }
425
- const vi = {
425
+ const mi = {
426
426
  modelValue: {
427
427
  type: Boolean,
428
428
  default: null
429
429
  },
430
430
  "onUpdate:modelValue": [Function, Array]
431
- }, mi = [
431
+ }, gi = [
432
432
  "beforeShow",
433
433
  "show",
434
434
  "beforeHide",
435
435
  "hide"
436
436
  ];
437
- function gi({
437
+ function yi({
438
438
  showing: e,
439
439
  canShow: n,
440
440
  // optional
@@ -483,18 +483,18 @@ function gi({
483
483
  const g = { show: f, hide: p, toggle: d };
484
484
  return Object.assign(l, g), g;
485
485
  }
486
- let So = [], ni = [];
486
+ let So = [], ri = [];
487
487
  function Hp(e) {
488
- ni = ni.filter((n) => n !== e);
488
+ ri = ri.filter((n) => n !== e);
489
489
  }
490
490
  function d1(e) {
491
- Hp(e), ni.push(e);
491
+ Hp(e), ri.push(e);
492
492
  }
493
493
  function kf(e) {
494
- Hp(e), ni.length === 0 && So.length !== 0 && (So[So.length - 1](), So = []);
494
+ Hp(e), ri.length === 0 && So.length !== 0 && (So[So.length - 1](), So = []);
495
495
  }
496
- function yi(e) {
497
- ni.length === 7 ? e() : So.push(e);
496
+ function bi(e) {
497
+ ri.length === 7 ? e() : So.push(e);
498
498
  }
499
499
  function f1(e) {
500
500
  So = So.filter((n) => n !== e);
@@ -522,12 +522,12 @@ function Up(e, n) {
522
522
  do {
523
523
  if (e.$options.name === "QMenu") {
524
524
  if (e.hide(n), e.$props.separateClosePopup === !0)
525
- return ns(e);
525
+ return rs(e);
526
526
  } else if (e.__qPortal === !0) {
527
- const t = ns(e);
527
+ const t = rs(e);
528
528
  return (t == null ? void 0 : t.$options.name) === "QPopupProxy" ? (e.hide(n), t) : e;
529
529
  }
530
- e = ns(e);
530
+ e = rs(e);
531
531
  } while (e != null);
532
532
  }
533
533
  function y1(e, n, t) {
@@ -539,7 +539,7 @@ function y1(e, n, t) {
539
539
  }
540
540
  e.hide(n);
541
541
  }
542
- e = ns(e);
542
+ e = rs(e);
543
543
  }
544
544
  }
545
545
  const b1 = Ge({
@@ -740,10 +740,10 @@ function Pu(e, n, t) {
740
740
  }
741
741
  Kl(e, n);
742
742
  }
743
- let Pi;
744
- function rs() {
745
- if (Pi !== void 0)
746
- return Pi;
743
+ let Bi;
744
+ function os() {
745
+ if (Bi !== void 0)
746
+ return Bi;
747
747
  const e = document.createElement("p"), n = document.createElement("div");
748
748
  jl(e, {
749
749
  width: "100%",
@@ -760,7 +760,7 @@ function rs() {
760
760
  const t = e.offsetWidth;
761
761
  n.style.overflow = "scroll";
762
762
  let r = e.offsetWidth;
763
- return t === r && (r = n.clientWidth), n.remove(), Pi = t - r, Pi;
763
+ return t === r && (r = n.clientWidth), n.remove(), Bi = t - r, Bi;
764
764
  }
765
765
  function C1(e, n = !0) {
766
766
  return !e || e.nodeType !== Node.ELEMENT_NODE ? !1 : n ? e.scrollHeight > e.clientHeight && (e.classList.contains("scroll") || e.classList.contains("overflow-auto") || ["auto", "scroll"].includes(window.getComputedStyle(e)["overflow-y"])) : e.scrollWidth > e.clientWidth && (e.classList.contains("scroll") || e.classList.contains("overflow-auto") || ["auto", "scroll"].includes(window.getComputedStyle(e)["overflow-x"]));
@@ -925,7 +925,7 @@ function Uc(e, n = 0) {
925
925
  }, x.maxHeight !== void 0 && (b.maxHeight = x.maxHeight + "px", p.height > x.maxHeight && (b.minHeight = b.maxHeight)), x.maxWidth !== void 0 && (b.maxWidth = x.maxWidth + "px", p.width > x.maxWidth && (b.minWidth = b.maxWidth)), Object.assign(t.style, b), t.scrollTop !== h && (t.scrollTop = h), t.scrollLeft !== f && (t.scrollLeft = f);
926
926
  }
927
927
  function Bu(e, n, t, r, o) {
928
- const a = t.bottom, i = t.right, s = rs(), u = window.innerHeight - s, l = document.body.clientWidth;
928
+ const a = t.bottom, i = t.right, s = os(), u = window.innerHeight - s, l = document.body.clientWidth;
929
929
  if (e.top < 0 || e.top + a > u)
930
930
  if (o.vertical === "center")
931
931
  e.top = n[r.vertical] > u / 2 ? Math.max(0, u - a) : 0, e.maxHeight = Math.min(a, u);
@@ -960,7 +960,7 @@ const gs = Ge({
960
960
  inheritAttrs: !1,
961
961
  props: {
962
962
  ...zp,
963
- ...vi,
963
+ ...mi,
964
964
  ...ua,
965
965
  maxHeight: {
966
966
  type: String,
@@ -1005,11 +1005,11 @@ const gs = Ge({
1005
1005
  persistent: Boolean
1006
1006
  },
1007
1007
  emits: [
1008
- ...mi
1008
+ ...gi
1009
1009
  ],
1010
1010
  setup(e, { slots: n, emit: t, attrs: r }) {
1011
1011
  let o, a;
1012
- const i = Ye(), { proxy: { $q: s } } = i, u = Y(null), l = Y(!1), c = k(() => ms(e.anchor, s.lang.rtl)), d = k(() => ms(e.self, s.lang.rtl)), f = k(() => e.persistent !== !0), { registerTick: h, removeTick: p } = la(), { registerTimeout: v } = wa(), { transitionProps: m, transitionStyle: g } = Wc(e), { localScrollTarget: w, changeScrollEvent: b, unconfigureScrollTarget: y } = $p(e, G), { anchorEl: x, canShow: _, anchorEvents: E } = qc({ showing: l, configureAnchorEl: j }), { show: R, hide: C } = gi({
1012
+ const i = Ye(), { proxy: { $q: s } } = i, u = Y(null), l = Y(!1), c = k(() => ms(e.anchor, s.lang.rtl)), d = k(() => ms(e.self, s.lang.rtl)), f = k(() => e.persistent !== !0), { registerTick: h, removeTick: p } = la(), { registerTimeout: v } = wa(), { transitionProps: m, transitionStyle: g } = Wc(e), { localScrollTarget: w, changeScrollEvent: b, unconfigureScrollTarget: y } = $p(e, G), { anchorEl: x, canShow: _, anchorEvents: E } = qc({ showing: l, configureAnchorEl: j }), { show: R, hide: C } = yi({
1013
1013
  showing: l,
1014
1014
  canShow: _,
1015
1015
  handleShow: W,
@@ -1344,7 +1344,7 @@ function Ff(e, { modifiers: n, value: t, arg: r }) {
1344
1344
  keyCodes: [].concat(o.keyCodes || 13)
1345
1345
  };
1346
1346
  }
1347
- const bi = Nc(
1347
+ const wi = Nc(
1348
1348
  {
1349
1349
  name: "ripple",
1350
1350
  beforeMount(e, n) {
@@ -1813,7 +1813,7 @@ const St = Ge({
1813
1813
  B
1814
1814
  ),
1815
1815
  [[
1816
- bi,
1816
+ wi,
1817
1817
  w.value,
1818
1818
  void 0,
1819
1819
  b.value
@@ -2214,7 +2214,7 @@ function Lf(e, n, t) {
2214
2214
  function ny(e) {
2215
2215
  return ry(e) === 0;
2216
2216
  }
2217
- function os(e, n) {
2217
+ function as(e, n) {
2218
2218
  return n <= 6 ? 31 : n <= 11 || ny(e) ? 30 : 29;
2219
2219
  }
2220
2220
  function ry(e) {
@@ -2716,7 +2716,7 @@ function Xa(e, n, t, r, o) {
2716
2716
  if (c.D !== void 0) {
2717
2717
  if (a.day = parseInt(d[c.D], 10), a.year === null || a.month === null || a.day < 1)
2718
2718
  return a;
2719
- const h = r !== "persian" ? new Date(a.year, a.month, 0).getDate() : os(a.year, a.month);
2719
+ const h = r !== "persian" ? new Date(a.year, a.month, 0).getDate() : as(a.year, a.month);
2720
2720
  if (a.day > h)
2721
2721
  return a;
2722
2722
  }
@@ -2759,7 +2759,7 @@ function Lr(e, n, t) {
2759
2759
  }
2760
2760
  return r;
2761
2761
  }
2762
- function Bi(e, n, t) {
2762
+ function Oi(e, n, t) {
2763
2763
  return (e.getTime() - e.getTimezoneOffset() * ec - (n.getTime() - n.getTimezoneOffset() * ec)) / t;
2764
2764
  }
2765
2765
  function xv(e, n, t = "days") {
@@ -2774,16 +2774,16 @@ function xv(e, n, t = "days") {
2774
2774
  case "days":
2775
2775
  case "day":
2776
2776
  case "date":
2777
- return Bi(Lr(r, "day"), Lr(o, "day"), yv);
2777
+ return Oi(Lr(r, "day"), Lr(o, "day"), yv);
2778
2778
  case "hours":
2779
2779
  case "hour":
2780
- return Bi(Lr(r, "hour"), Lr(o, "hour"), sy);
2780
+ return Oi(Lr(r, "hour"), Lr(o, "hour"), sy);
2781
2781
  case "minutes":
2782
2782
  case "minute":
2783
- return Bi(Lr(r, "minute"), Lr(o, "minute"), ec);
2783
+ return Oi(Lr(r, "minute"), Lr(o, "minute"), ec);
2784
2784
  case "seconds":
2785
2785
  case "second":
2786
- return Bi(Lr(r, "second"), Lr(o, "second"), 1e3);
2786
+ return Oi(Lr(r, "second"), Lr(o, "second"), 1e3);
2787
2787
  }
2788
2788
  }
2789
2789
  function Vu(e) {
@@ -3115,7 +3115,7 @@ const Cv = Ge({
3115
3115
  return $ > 0 ? P.slice($, 7).concat(P.slice(0, $)) : P;
3116
3116
  }), oe = k(() => {
3117
3117
  const P = y.value;
3118
- return e.calendar !== "persian" ? new Date(P.year, P.month, 0).getDate() : os(P.year, P.month);
3118
+ return e.calendar !== "persian" ? new Date(P.year, P.month, 0).getDate() : as(P.year, P.month);
3119
3119
  }), ze = k(() => typeof e.eventColor == "function" ? e.eventColor : () => e.eventColor), ge = k(() => {
3120
3120
  if (e.navigationMinYearMonth === void 0)
3121
3121
  return null;
@@ -3198,7 +3198,7 @@ const Cv = Ge({
3198
3198
  const ke = Lf(ne, ye, 1);
3199
3199
  P = new Date(ke.gy, ke.gm - 1, ke.gd);
3200
3200
  let dt = ye - 1, Te = ne;
3201
- dt === 0 && (dt = 12, Te--), $ = os(Te, dt);
3201
+ dt === 0 && (dt = 12, Te--), $ = as(Te, dt);
3202
3202
  }
3203
3203
  return {
3204
3204
  days: P.getDay() - de.value - 1,
@@ -3426,7 +3426,7 @@ const Cv = Ge({
3426
3426
  const $ = L.value[0] !== void 0 && L.value[0].dateHash !== null ? { ...L.value[0] } : { ...y.value };
3427
3427
  _t(() => {
3428
3428
  $.year = y.value.year, $.month = y.value.month;
3429
- const ne = e.calendar !== "persian" ? new Date($.year, $.month, 0).getDate() : os($.year, $.month);
3429
+ const ne = e.calendar !== "persian" ? new Date($.year, $.month, 0).getDate() : as($.year, $.month);
3430
3430
  $.day = Math.min(Math.max(1, $.day), ne);
3431
3431
  const ye = ir($), { details: ke } = Uo("", $);
3432
3432
  pe(ye), t("update:modelValue", ye, P, ke);
@@ -3861,7 +3861,7 @@ function hy(e) {
3861
3861
  function Kf(e) {
3862
3862
  e.target === document && (document.scrollingElement.scrollTop = document.scrollingElement.scrollTop);
3863
3863
  }
3864
- function Oi(e) {
3864
+ function Ni(e) {
3865
3865
  Hu !== !0 && (Hu = !0, requestAnimationFrame(() => {
3866
3866
  Hu = !1;
3867
3867
  const { height: n } = e.target, { clientHeight: t, scrollTop: r } = document.scrollingElement;
@@ -3872,9 +3872,9 @@ function Xf(e) {
3872
3872
  const n = document.body, t = window.visualViewport !== void 0;
3873
3873
  if (e === "add") {
3874
3874
  const { overflowY: r, overflowX: o } = window.getComputedStyle(n);
3875
- Wu = Hc(window), $u = $c(window), Uf = n.style.left, jf = n.style.top, Gf = window.location.href, n.style.left = `-${Wu}px`, n.style.top = `-${$u}px`, o !== "hidden" && (o === "scroll" || n.scrollWidth > window.innerWidth) && n.classList.add("q-body--force-scrollbar-x"), r !== "hidden" && (r === "scroll" || n.scrollHeight > window.innerHeight) && n.classList.add("q-body--force-scrollbar-y"), n.classList.add("q-body--prevent-scroll"), document.qScrollPrevented = !0, hn.is.ios === !0 && (t === !0 ? (window.scrollTo(0, 0), window.visualViewport.addEventListener("resize", Oi, Yt.passiveCapture), window.visualViewport.addEventListener("scroll", Oi, Yt.passiveCapture), window.scrollTo(0, 0)) : window.addEventListener("scroll", Kf, Yt.passiveCapture));
3875
+ Wu = Hc(window), $u = $c(window), Uf = n.style.left, jf = n.style.top, Gf = window.location.href, n.style.left = `-${Wu}px`, n.style.top = `-${$u}px`, o !== "hidden" && (o === "scroll" || n.scrollWidth > window.innerWidth) && n.classList.add("q-body--force-scrollbar-x"), r !== "hidden" && (r === "scroll" || n.scrollHeight > window.innerHeight) && n.classList.add("q-body--force-scrollbar-y"), n.classList.add("q-body--prevent-scroll"), document.qScrollPrevented = !0, hn.is.ios === !0 && (t === !0 ? (window.scrollTo(0, 0), window.visualViewport.addEventListener("resize", Ni, Yt.passiveCapture), window.visualViewport.addEventListener("scroll", Ni, Yt.passiveCapture), window.scrollTo(0, 0)) : window.addEventListener("scroll", Kf, Yt.passiveCapture));
3876
3876
  }
3877
- hn.is.desktop === !0 && hn.is.mac === !0 && window[`${e}EventListener`]("wheel", fy, Yt.notPassive), e === "remove" && (hn.is.ios === !0 && (t === !0 ? (window.visualViewport.removeEventListener("resize", Oi, Yt.passiveCapture), window.visualViewport.removeEventListener("scroll", Oi, Yt.passiveCapture)) : window.removeEventListener("scroll", Kf, Yt.passiveCapture)), n.classList.remove("q-body--prevent-scroll"), n.classList.remove("q-body--force-scrollbar-x"), n.classList.remove("q-body--force-scrollbar-y"), document.qScrollPrevented = !1, n.style.left = Uf, n.style.top = jf, window.location.href === Gf && window.scrollTo(Wu, $u), Ya = void 0);
3877
+ hn.is.desktop === !0 && hn.is.mac === !0 && window[`${e}EventListener`]("wheel", fy, Yt.notPassive), e === "remove" && (hn.is.ios === !0 && (t === !0 ? (window.visualViewport.removeEventListener("resize", Ni, Yt.passiveCapture), window.visualViewport.removeEventListener("scroll", Ni, Yt.passiveCapture)) : window.removeEventListener("scroll", Kf, Yt.passiveCapture)), n.classList.remove("q-body--prevent-scroll"), n.classList.remove("q-body--force-scrollbar-x"), n.classList.remove("q-body--force-scrollbar-y"), document.qScrollPrevented = !1, n.style.left = Uf, n.style.top = jf, window.location.href === Gf && window.scrollTo(Wu, $u), Ya = void 0);
3878
3878
  }
3879
3879
  function py(e) {
3880
3880
  let n = "add";
@@ -3935,7 +3935,7 @@ function tc(e) {
3935
3935
  const n = Mo.indexOf(e);
3936
3936
  n !== -1 && (Mo.splice(n, 1), Mo.length === 0 && document.body.removeEventListener("focusin", Iv));
3937
3937
  }
3938
- let Ni = 0;
3938
+ let Li = 0;
3939
3939
  const yy = {
3940
3940
  standard: "fixed-full flex-center",
3941
3941
  top: "fixed-top justify-center",
@@ -3952,7 +3952,7 @@ const yy = {
3952
3952
  name: "QDialog",
3953
3953
  inheritAttrs: !1,
3954
3954
  props: {
3955
- ...vi,
3955
+ ...mi,
3956
3956
  ...ua,
3957
3957
  transitionShow: String,
3958
3958
  // override useTransitionProps
@@ -3980,7 +3980,7 @@ const yy = {
3980
3980
  }
3981
3981
  },
3982
3982
  emits: [
3983
- ...mi,
3983
+ ...gi,
3984
3984
  "shake",
3985
3985
  "click",
3986
3986
  "escapeKey"
@@ -3999,7 +3999,7 @@ const yy = {
3999
3999
  a,
4000
4000
  X,
4001
4001
  "dialog"
4002
- ), { hide: R } = gi({
4002
+ ), { hide: R } = yi({
4003
4003
  showing: i,
4004
4004
  hideOnRouteChange: f,
4005
4005
  handleShow: W,
@@ -4040,7 +4040,7 @@ const yy = {
4040
4040
  }, e.transitionDuration);
4041
4041
  }
4042
4042
  function B(ae) {
4043
- yi(() => {
4043
+ bi(() => {
4044
4044
  let le = a.value;
4045
4045
  if (le !== null) {
4046
4046
  if (ae !== void 0) {
@@ -4068,7 +4068,7 @@ const yy = {
4068
4068
  u !== null && (clearTimeout(u), u = null), (ae === !0 || i.value === !0) && (j(!1), e.seamless !== !0 && (h(!1), tc(N), bs(L))), ae !== !0 && (l = null);
4069
4069
  }
4070
4070
  function j(ae) {
4071
- ae === !0 ? c !== !0 && (Ni < 1 && document.body.classList.add("q-body--dialog"), Ni++, c = !0) : c === !0 && (Ni < 2 && document.body.classList.remove("q-body--dialog"), Ni--, c = !1);
4071
+ ae === !0 ? c !== !0 && (Li < 1 && document.body.classList.add("q-body--dialog"), Li++, c = !0) : c === !0 && (Li < 2 && document.body.classList.remove("q-body--dialog"), Li--, c = !1);
4072
4072
  }
4073
4073
  function G(ae) {
4074
4074
  d !== !0 && (R(ae), t("click", ae));
@@ -4120,12 +4120,12 @@ const yy = {
4120
4120
  }
4121
4121
  return E;
4122
4122
  }
4123
- }), wi = Ge({
4123
+ }), xi = Ge({
4124
4124
  name: "QMenu",
4125
4125
  inheritAttrs: !1,
4126
4126
  props: {
4127
4127
  ...Wp,
4128
- ...vi,
4128
+ ...mi,
4129
4129
  ...xn,
4130
4130
  ...ua,
4131
4131
  persistent: Boolean,
@@ -4162,7 +4162,7 @@ const yy = {
4162
4162
  }
4163
4163
  },
4164
4164
  emits: [
4165
- ...mi,
4165
+ ...gi,
4166
4166
  "click",
4167
4167
  "escapeKey"
4168
4168
  ],
@@ -4170,7 +4170,7 @@ const yy = {
4170
4170
  let o = null, a, i, s;
4171
4171
  const u = Ye(), { proxy: l } = u, { $q: c } = l, d = Y(null), f = Y(!1), h = k(
4172
4172
  () => e.persistent !== !0 && e.noRouteDismiss !== !0
4173
- ), p = _n(e, c), { registerTick: v, removeTick: m } = la(), { registerTimeout: g } = wa(), { transitionProps: w, transitionStyle: b } = Wc(e), { localScrollTarget: y, changeScrollEvent: x, unconfigureScrollTarget: _ } = $p(e, X), { anchorEl: E, canShow: R } = qc({ showing: f }), { hide: C } = gi({
4173
+ ), p = _n(e, c), { registerTick: v, removeTick: m } = la(), { registerTimeout: g } = wa(), { transitionProps: w, transitionStyle: b } = Wc(e), { localScrollTarget: y, changeScrollEvent: x, unconfigureScrollTarget: _ } = $p(e, X), { anchorEl: E, canShow: R } = qc({ showing: f }), { hide: C } = yi({
4174
4174
  showing: f,
4175
4175
  canShow: R,
4176
4176
  handleShow: G,
@@ -4199,7 +4199,7 @@ const yy = {
4199
4199
  oe === !0 ? (Rv(se), Xp(W)) : (bs(se), ps(W));
4200
4200
  });
4201
4201
  function j() {
4202
- yi(() => {
4202
+ bi(() => {
4203
4203
  let oe = d.value;
4204
4204
  oe && oe.contains(document.activeElement) !== !0 && (oe = oe.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]") || oe.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]") || oe.querySelector("[autofocus], [data-autofocus]") || oe, oe.focus({ preventScroll: !0 }));
4205
4205
  });
@@ -4328,7 +4328,7 @@ const yy = {
4328
4328
  onHide: p
4329
4329
  };
4330
4330
  let m;
4331
- return d.value === "dialog" ? m = Pa : (m = wi, Object.assign(v, {
4331
+ return d.value === "dialog" ? m = Pa : (m = xi, Object.assign(v, {
4332
4332
  target: e.target,
4333
4333
  contextMenu: e.contextMenu,
4334
4334
  noParentEvent: !0,
@@ -5057,7 +5057,7 @@ const Ry = Ge({
5057
5057
  };
5058
5058
  }
5059
5059
  });
5060
- let ju, Li = 0;
5060
+ let ju, qi = 0;
5061
5061
  const gn = new Array(256);
5062
5062
  for (let e = 0; e < 256; e++)
5063
5063
  gn[e] = (e + 256).toString(16).substring(1);
@@ -5080,8 +5080,8 @@ const Iy = (() => {
5080
5080
  };
5081
5081
  })(), Jf = 4096;
5082
5082
  function ws() {
5083
- (ju === void 0 || Li + 16 > Jf) && (Li = 0, ju = Iy(Jf));
5084
- const e = Array.prototype.slice.call(ju, Li, Li += 16);
5083
+ (ju === void 0 || qi + 16 > Jf) && (qi = 0, ju = Iy(Jf));
5084
+ const e = Array.prototype.slice.call(ju, qi, qi += 16);
5085
5085
  return e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128, gn[e[0]] + gn[e[1]] + gn[e[2]] + gn[e[3]] + "-" + gn[e[4]] + gn[e[5]] + "-" + gn[e[6]] + gn[e[7]] + "-" + gn[e[8]] + gn[e[9]] + "-" + gn[e[10]] + gn[e[11]] + gn[e[12]] + gn[e[13]] + gn[e[14]] + gn[e[15]];
5086
5086
  }
5087
5087
  function Ty(e) {
@@ -5117,7 +5117,7 @@ function Ay() {
5117
5117
  }
5118
5118
  return Op(r), r(), t;
5119
5119
  }
5120
- const Dy = "_q_", xi = "_q_l_", Dv = "_q_pc_", Mv = "_q_fo_", Fv = "_q_tabs_";
5120
+ const Dy = "_q_", _i = "_q_l_", Dv = "_q_pc_", Mv = "_q_fo_", Fv = "_q_tabs_";
5121
5121
  function dn() {
5122
5122
  }
5123
5123
  function My({ validate: e, resetValidation: n, requiresQForm: t }) {
@@ -5133,7 +5133,7 @@ function My({ validate: e, resetValidation: n, requiresQForm: t }) {
5133
5133
  });
5134
5134
  } else t === !0 && console.error("Parent QForm not found on useFormChild()!");
5135
5135
  }
5136
- const nh = /^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/, rh = /^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/, oh = /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/, qi = /^rgb\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5])\)$/, Vi = /^rgba\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/, Gu = {
5136
+ const nh = /^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/, rh = /^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/, oh = /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/, Vi = /^rgb\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5])\)$/, zi = /^rgba\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/, Gu = {
5137
5137
  date: (e) => /^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(e),
5138
5138
  time: (e) => /^([0-1]?\d|2[0-3]):[0-5]\d$/.test(e),
5139
5139
  fulltime: (e) => /^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(e),
@@ -5148,12 +5148,12 @@ const nh = /^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/, rh = /^#[0-9a-fA-F]{4}([0-9a-fA
5148
5148
  hexColor: (e) => nh.test(e),
5149
5149
  hexaColor: (e) => rh.test(e),
5150
5150
  hexOrHexaColor: (e) => oh.test(e),
5151
- rgbColor: (e) => qi.test(e),
5152
- rgbaColor: (e) => Vi.test(e),
5153
- rgbOrRgbaColor: (e) => qi.test(e) || Vi.test(e),
5154
- hexOrRgbColor: (e) => nh.test(e) || qi.test(e),
5155
- hexaOrRgbaColor: (e) => rh.test(e) || Vi.test(e),
5156
- anyColor: (e) => oh.test(e) || qi.test(e) || Vi.test(e)
5151
+ rgbColor: (e) => Vi.test(e),
5152
+ rgbaColor: (e) => zi.test(e),
5153
+ rgbOrRgbaColor: (e) => Vi.test(e) || zi.test(e),
5154
+ hexOrRgbColor: (e) => nh.test(e) || Vi.test(e),
5155
+ hexaOrRgbaColor: (e) => rh.test(e) || zi.test(e),
5156
+ anyColor: (e) => oh.test(e) || Vi.test(e) || zi.test(e)
5157
5157
  };
5158
5158
  function ed(e, n = 250, t) {
5159
5159
  let r = null;
@@ -5245,7 +5245,7 @@ function By(e, n) {
5245
5245
  resetValidation: p
5246
5246
  };
5247
5247
  }
5248
- function ri(e) {
5248
+ function oi(e) {
5249
5249
  return e != null && ("" + e).length !== 0;
5250
5250
  }
5251
5251
  const Oy = {
@@ -5327,7 +5327,7 @@ function nd({ requiredForAttr: e = !0, tagProp: n, changeEvent: t = !1 } = {}) {
5327
5327
  function rd(e) {
5328
5328
  const { props: n, emit: t, slots: r, attrs: o, proxy: a } = Ye(), { $q: i } = a;
5329
5329
  let s = null;
5330
- e.hasValue === void 0 && (e.hasValue = k(() => ri(n.modelValue))), e.emitValue === void 0 && (e.emitValue = (q) => {
5330
+ e.hasValue === void 0 && (e.hasValue = k(() => oi(n.modelValue))), e.emitValue === void 0 && (e.emitValue = (q) => {
5331
5331
  t("update:modelValue", q);
5332
5332
  }), e.controlEvents === void 0 && (e.controlEvents = {
5333
5333
  onFocusin: C,
@@ -5377,7 +5377,7 @@ function rd(e) {
5377
5377
  j && (q === null || q.id !== e.targetUid.value) && (j.hasAttribute("tabindex") === !0 || (j = j.querySelector("[tabindex]")), j !== q && (j == null || j.focus({ preventScroll: !0 })));
5378
5378
  }
5379
5379
  function E() {
5380
- yi(_);
5380
+ bi(_);
5381
5381
  }
5382
5382
  function R() {
5383
5383
  f1(_);
@@ -5875,7 +5875,7 @@ const Ba = Ge({
5875
5875
  onMaskedClick: w
5876
5876
  } = qy(e, n, V, d), b = Vy(
5877
5877
  e
5878
- ), y = k(() => ri(h.value)), x = Bv(D), _ = nd({ changeEvent: !0 }), E = k(
5878
+ ), y = k(() => oi(h.value)), x = Bv(D), _ = nd({ changeEvent: !0 }), E = k(
5879
5879
  () => e.type === "textarea" || e.autogrow === !0
5880
5880
  ), R = k(
5881
5881
  () => E.value === !0 || ["text", "search", "url", "tel", "password"].includes(e.type)
@@ -5923,7 +5923,7 @@ const Ba = Ge({
5923
5923
  e.autogrow === !0 && _t(L);
5924
5924
  });
5925
5925
  function M() {
5926
- yi(() => {
5926
+ bi(() => {
5927
5927
  const N = document.activeElement;
5928
5928
  d.value !== null && d.value !== N && (N === null || N.id !== _.targetUid.value) && d.value.focus({ preventScroll: !0 });
5929
5929
  });
@@ -6006,7 +6006,7 @@ const Ba = Ge({
6006
6006
  emitValue: V,
6007
6007
  hasValue: y,
6008
6008
  floatingLabel: k(
6009
- () => y.value === !0 && (e.type !== "number" || isNaN(h.value) === !1) || ri(e.displayValue)
6009
+ () => y.value === !0 && (e.type !== "number" || isNaN(h.value) === !1) || oi(e.displayValue)
6010
6010
  ),
6011
6011
  getControl: () => T(E.value === !0 ? "textarea" : "input", {
6012
6012
  ref: d,
@@ -6549,7 +6549,7 @@ const Uy = { class: "app-input-new" }, jy = {
6549
6549
  }, AA = /* @__PURE__ */ Fe(t2, [["__cssModules", r2]]), o2 = Ge({
6550
6550
  name: "QPageContainer",
6551
6551
  setup(e, { slots: n }) {
6552
- const { proxy: { $q: t } } = Ye(), r = co(xi, dn);
6552
+ const { proxy: { $q: t } } = Ye(), r = co(_i, dn);
6553
6553
  if (r === dn)
6554
6554
  return console.error("QPageContainer needs to be child of QLayout"), dn;
6555
6555
  Xs(Dv, !0);
@@ -6715,7 +6715,7 @@ const qv = typeof ResizeObserver < "u", uh = qv === !0 ? {} : {
6715
6715
  onResize: Function
6716
6716
  },
6717
6717
  setup(e, { slots: n, emit: t }) {
6718
- const { proxy: { $q: r } } = Ye(), o = Y(null), a = Y(r.screen.height), i = Y(e.container === !0 ? 0 : r.screen.width), s = Y({ position: 0, direction: "down", inflectionPoint: 0 }), u = Y(0), l = Y(Oo.value === !0 ? 0 : rs()), c = k(
6718
+ const { proxy: { $q: r } } = Ye(), o = Y(null), a = Y(r.screen.height), i = Y(e.container === !0 ? 0 : r.screen.width), s = Y({ position: 0, direction: "down", inflectionPoint: 0 }), u = Y(0), l = Y(Oo.value === !0 ? 0 : os()), c = k(
6719
6719
  () => "q-layout q-layout--" + (e.container === !0 ? "containerized" : "standard")
6720
6720
  ), d = k(() => e.container === !1 ? { minHeight: r.screen.height + "px" } : null), f = k(() => l.value !== 0 ? { [r.lang.rtl === !0 ? "left" : "right"]: `${l.value}px` } : null), h = k(() => l.value !== 0 ? {
6721
6721
  [r.lang.rtl === !0 ? "right" : "left"]: 0,
@@ -6744,7 +6744,7 @@ const qv = typeof ResizeObserver < "u", uh = qv === !0 ? {} : {
6744
6744
  }
6745
6745
  function g() {
6746
6746
  if (e.container === !0) {
6747
- const y = a.value > u.value ? rs() : 0;
6747
+ const y = a.value > u.value ? os() : 0;
6748
6748
  l.value !== y && (l.value = y);
6749
6749
  }
6750
6750
  }
@@ -6780,7 +6780,7 @@ const qv = typeof ResizeObserver < "u", uh = qv === !0 ? {} : {
6780
6780
  b[y][x] = _;
6781
6781
  }
6782
6782
  };
6783
- if (Xs(xi, b), rs() > 0) {
6783
+ if (Xs(_i, b), os() > 0) {
6784
6784
  let y = function() {
6785
6785
  E = null, R.classList.remove("hide-scrollbar");
6786
6786
  }, x = function() {
@@ -6892,7 +6892,7 @@ const qv = typeof ResizeObserver < "u", uh = qv === !0 ? {} : {
6892
6892
  ], 2)) : tt("", !0),
6893
6893
  nn(a.$slots, "drawer"),
6894
6894
  nn(a.$slots, "header", {
6895
- style: cs(r.value)
6895
+ style: ni(r.value)
6896
6896
  }),
6897
6897
  _e(o2, {
6898
6898
  class: Ke({ container: a.container }),
@@ -6900,7 +6900,7 @@ const qv = typeof ResizeObserver < "u", uh = qv === !0 ? {} : {
6900
6900
  }, {
6901
6901
  default: ve(() => [
6902
6902
  nn(a.$slots, "content", {
6903
- style: cs(r.value)
6903
+ style: ni(r.value)
6904
6904
  })
6905
6905
  ]),
6906
6906
  _: 3
@@ -7070,7 +7070,7 @@ const qv = typeof ResizeObserver < "u", uh = qv === !0 ? {} : {
7070
7070
  },
7071
7071
  emits: ["reveal", "focusin"],
7072
7072
  setup(e, { slots: n, emit: t }) {
7073
- const { proxy: { $q: r } } = Ye(), o = co(xi, dn);
7073
+ const { proxy: { $q: r } } = Ye(), o = co(_i, dn);
7074
7074
  if (o === dn)
7075
7075
  return console.error("QHeader needs to be child of QLayout"), dn;
7076
7076
  const a = Y(parseInt(e.heightHint, 10)), i = Y(!0), s = k(
@@ -7183,7 +7183,7 @@ function Vv(e) {
7183
7183
  }
7184
7184
  const zv = typeof window < "u" && typeof document < "u";
7185
7185
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
7186
- const b2 = Object.prototype.toString, w2 = (e) => b2.call(e) === "[object Object]", as = () => {
7186
+ const b2 = Object.prototype.toString, w2 = (e) => b2.call(e) === "[object Object]", is = () => {
7187
7187
  }, x2 = /* @__PURE__ */ _2();
7188
7188
  function _2() {
7189
7189
  var e, n;
@@ -7198,7 +7198,7 @@ const Wv = zv ? window : void 0;
7198
7198
  function Xu(...e) {
7199
7199
  let n, t, r, o;
7200
7200
  if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([t, r, o] = e, n = Wv) : [n, t, r, o] = e, !n)
7201
- return as;
7201
+ return is;
7202
7202
  Array.isArray(t) || (t = [t]), Array.isArray(r) || (r = [r]);
7203
7203
  const a = [], i = () => {
7204
7204
  a.forEach((c) => c()), a.length = 0;
@@ -7222,8 +7222,8 @@ let ch = !1;
7222
7222
  function C2(e, n, t = {}) {
7223
7223
  const { window: r = Wv, ignore: o = [], capture: a = !0, detectIframe: i = !1 } = t;
7224
7224
  if (!r)
7225
- return as;
7226
- x2 && !ch && (ch = !0, Array.from(r.document.body.children).forEach((f) => f.addEventListener("click", as)), r.document.documentElement.addEventListener("click", as));
7225
+ return is;
7226
+ x2 && !ch && (ch = !0, Array.from(r.document.body.children).forEach((f) => f.addEventListener("click", is)), r.document.documentElement.addEventListener("click", is));
7227
7227
  let s = !0;
7228
7228
  const u = (f) => o.some((h) => {
7229
7229
  if (typeof h == "string")
@@ -8179,7 +8179,7 @@ const jw = /* @__PURE__ */ Fe($w, [["render", Uw]]), Gw = /* @__PURE__ */ Pt({
8179
8179
  size: "28px",
8180
8180
  name: "setting-icon"
8181
8181
  }),
8182
- _e(wi, {
8182
+ _e(xi, {
8183
8183
  "max-height": "160px",
8184
8184
  offset: [-18, 4],
8185
8185
  class: Ke(d.$style["settings-menu"])
@@ -8247,7 +8247,7 @@ const jw = /* @__PURE__ */ Fe($w, [["render", Uw]]), Gw = /* @__PURE__ */ Pt({
8247
8247
  styleFn: Function
8248
8248
  },
8249
8249
  setup(e, { slots: n }) {
8250
- const { proxy: { $q: t } } = Ye(), r = co(xi, dn);
8250
+ const { proxy: { $q: t } } = Ye(), r = co(_i, dn);
8251
8251
  if (r === dn)
8252
8252
  return console.error("QPage needs to be a deep child of QLayout"), dn;
8253
8253
  if (co(Dv, dn) === dn)
@@ -8388,7 +8388,7 @@ const FA = /* @__PURE__ */ Fe(cx, [["render", dx], ["__scopeId", "data-v-51e4160
8388
8388
  v(),
8389
8389
  "ripple",
8390
8390
  e.ripple !== !1 && e.disable !== !0,
8391
- () => [[bi, e.ripple]]
8391
+ () => [[wi, e.ripple]]
8392
8392
  );
8393
8393
  };
8394
8394
  }
@@ -8446,7 +8446,7 @@ const FA = /* @__PURE__ */ Fe(cx, [["render", dx], ["__scopeId", "data-v-51e4160
8446
8446
  }, kt(n.default));
8447
8447
  }
8448
8448
  });
8449
- let oi = !1;
8449
+ let ai = !1;
8450
8450
  {
8451
8451
  const e = document.createElement("div");
8452
8452
  e.setAttribute("dir", "rtl"), Object.assign(e.style, {
@@ -8458,7 +8458,7 @@ let oi = !1;
8458
8458
  Object.assign(n.style, {
8459
8459
  width: "1000px",
8460
8460
  height: "1px"
8461
- }), document.body.appendChild(e), e.appendChild(n), e.scrollLeft = -1e3, oi = e.scrollLeft >= 0, e.remove();
8461
+ }), document.body.appendChild(e), e.appendChild(n), e.scrollLeft = -1e3, ai = e.scrollLeft >= 0, e.remove();
8462
8462
  }
8463
8463
  const sr = 1e3, px = [
8464
8464
  "start",
@@ -8490,7 +8490,7 @@ function Yu(e, n, t, r, o, a, i, s) {
8490
8490
  offsetStart: -i,
8491
8491
  offsetEnd: -s
8492
8492
  };
8493
- if (o === !0 ? (e === window ? (c.scrollStart = window.pageXOffset || window.scrollX || document.body.scrollLeft || 0, c.scrollViewSize += document.documentElement.clientWidth) : (c.scrollStart = u.scrollLeft, c.scrollViewSize += u.clientWidth), c.scrollMaxSize = u.scrollWidth, a === !0 && (c.scrollStart = (oi === !0 ? c.scrollMaxSize - c.scrollViewSize : 0) - c.scrollStart)) : (e === window ? (c.scrollStart = window.pageYOffset || window.scrollY || document.body.scrollTop || 0, c.scrollViewSize += document.documentElement.clientHeight) : (c.scrollStart = u.scrollTop, c.scrollViewSize += u.clientHeight), c.scrollMaxSize = u.scrollHeight), t !== null)
8493
+ if (o === !0 ? (e === window ? (c.scrollStart = window.pageXOffset || window.scrollX || document.body.scrollLeft || 0, c.scrollViewSize += document.documentElement.clientWidth) : (c.scrollStart = u.scrollLeft, c.scrollViewSize += u.clientWidth), c.scrollMaxSize = u.scrollWidth, a === !0 && (c.scrollStart = (ai === !0 ? c.scrollMaxSize - c.scrollViewSize : 0) - c.scrollStart)) : (e === window ? (c.scrollStart = window.pageYOffset || window.scrollY || document.body.scrollTop || 0, c.scrollViewSize += document.documentElement.clientHeight) : (c.scrollStart = u.scrollTop, c.scrollViewSize += u.clientHeight), c.scrollMaxSize = u.scrollHeight), t !== null)
8494
8494
  for (let d = t.previousElementSibling; d !== null; d = d.previousElementSibling)
8495
8495
  d.classList.contains("q-virtual-scroll--skip") === !1 && (c.offsetStart += d[l]);
8496
8496
  if (r !== null)
@@ -8503,7 +8503,7 @@ function Yu(e, n, t, r, o, a, i, s) {
8503
8503
  return c;
8504
8504
  }
8505
8505
  function dh(e, n, t, r) {
8506
- n === "end" && (n = (e === window ? document.body : e)[t === !0 ? "scrollWidth" : "scrollHeight"]), e === window ? t === !0 ? (r === !0 && (n = (oi === !0 ? document.body.scrollWidth - document.documentElement.clientWidth : 0) - n), window.scrollTo(n, window.pageYOffset || window.scrollY || document.body.scrollTop || 0)) : window.scrollTo(window.pageXOffset || window.scrollX || document.body.scrollLeft || 0, n) : t === !0 ? (r === !0 && (n = (oi === !0 ? e.scrollWidth - e.offsetWidth : 0) - n), e.scrollLeft = n) : e.scrollTop = n;
8506
+ n === "end" && (n = (e === window ? document.body : e)[t === !0 ? "scrollWidth" : "scrollHeight"]), e === window ? t === !0 ? (r === !0 && (n = (ai === !0 ? document.body.scrollWidth - document.documentElement.clientWidth : 0) - n), window.scrollTo(n, window.pageYOffset || window.scrollY || document.body.scrollTop || 0)) : window.scrollTo(window.pageXOffset || window.scrollX || document.body.scrollLeft || 0, n) : t === !0 ? (r === !0 && (n = (ai === !0 ? e.scrollWidth - e.offsetWidth : 0) - n), e.scrollLeft = n) : e.scrollTop = n;
8507
8507
  }
8508
8508
  function Wa(e, n, t, r) {
8509
8509
  if (t >= r)
@@ -8946,7 +8946,7 @@ const sd = Ge({
8946
8946
  const Ie = e[Se];
8947
8947
  Ie !== void 0 && (H[Se] = Ie);
8948
8948
  }), H;
8949
- }), ae = k(() => e.optionsDark === null ? O.isDark.value : e.optionsDark), le = k(() => ri(N.value)), se = k(() => {
8949
+ }), ae = k(() => e.optionsDark === null ? O.isDark.value : e.optionsDark), le = k(() => oi(N.value)), se = k(() => {
8950
8950
  let H = "q-field__input q-placeholder col";
8951
8951
  return e.hideSelected === !0 || N.value.length === 0 ? [H, e.inputClass] : (H += " q-field__input--padding", e.inputClass === void 0 ? H : [H, e.inputClass]);
8952
8952
  }), de = k(
@@ -9313,7 +9313,7 @@ const sd = Ge({
9313
9313
  );
9314
9314
  }
9315
9315
  function rt() {
9316
- return T(wi, {
9316
+ return T(xi, {
9317
9317
  ref: E,
9318
9318
  class: de.value,
9319
9319
  style: e.popupContentStyle,
@@ -9489,7 +9489,7 @@ const sd = Ge({
9489
9489
  hasValue: le,
9490
9490
  showPopup: Qe,
9491
9491
  floatingLabel: k(
9492
- () => e.hideSelected !== !0 && le.value === !0 || typeof u.value == "number" || u.value.length !== 0 || ri(e.displayValue)
9492
+ () => e.hideSelected !== !0 && le.value === !0 || typeof u.value == "number" || u.value.length !== 0 || oi(e.displayValue)
9493
9493
  ),
9494
9494
  getControlChild: () => {
9495
9495
  if (O.editable.value !== !1 && (i.value === !0 || xe.value !== !0 || n["no-option"] !== void 0))
@@ -9898,7 +9898,7 @@ function Ox(e, n, t, r) {
9898
9898
  };
9899
9899
  return qn(
9900
9900
  T(b, x, m()),
9901
- [[bi, l.value]]
9901
+ [[wi, l.value]]
9902
9902
  );
9903
9903
  }
9904
9904
  return { renderTab: w, $tabs: o };
@@ -9973,7 +9973,7 @@ const qx = ["left", "center", "right", "justify"], Vx = Ge({
9973
9973
  () => `q-tabs row no-wrap items-center q-tabs--${v.value === !0 ? "" : "not-"}scrollable q-tabs--${e.vertical === !0 ? "vertical" : "horizontal"} q-tabs__arrows--${e.outsideArrows === !0 ? "outside" : "inside"} q-tabs--mobile-with${e.mobileArrows === !0 ? "" : "out"}-arrows` + (e.dense === !0 ? " q-tabs--dense" : "") + (e.shrink === !0 ? " col-shrink" : "") + (e.stretch === !0 ? " self-stretch" : "")
9974
9974
  ), W = k(
9975
9975
  () => "q-tabs__content scroll--mobile row no-wrap items-center self-stretch hide-scrollbar relative-position " + M.value + (e.contentClass !== void 0 ? ` ${e.contentClass}` : "")
9976
- ), D = k(() => e.vertical === !0 ? { container: "height", content: "offsetHeight", scroll: "scrollHeight" } : { container: "width", content: "offsetWidth", scroll: "scrollWidth" }), B = k(() => e.vertical !== !0 && o.lang.rtl === !0), V = k(() => oi === !1 && B.value === !0);
9976
+ ), D = k(() => e.vertical === !0 ? { container: "height", content: "offsetHeight", scroll: "scrollHeight" } : { container: "width", content: "offsetWidth", scroll: "scrollWidth" }), B = k(() => e.vertical !== !0 && o.lang.rtl === !0), V = k(() => ai === !1 && B.value === !0);
9977
9977
  me(B, N), me(() => e.modelValue, (Z) => {
9978
9978
  L({ name: Z, setCurrent: !0, skipEmit: !0 });
9979
9979
  }), me(() => e.outsideArrows, q);
@@ -10224,7 +10224,7 @@ const qx = ["left", "center", "right", "justify"], Vx = Ge({
10224
10224
  }, Xx = /* @__PURE__ */ Pt({
10225
10225
  __name: "AppSheetNew",
10226
10226
  props: {
10227
- dialogRef: {},
10227
+ modelValue: { type: Boolean, default: !1 },
10228
10228
  loading: { type: Boolean, default: !1 },
10229
10229
  title: { default: "" },
10230
10230
  tabsTitle: { default: "" },
@@ -10235,48 +10235,39 @@ const qx = ["left", "center", "right", "justify"], Vx = Ge({
10235
10235
  sidebarWidth: { default: "" },
10236
10236
  persistent: { type: Boolean, default: !1 }
10237
10237
  },
10238
- emits: ["update:dialogRef", "update:tabId", "close", "before-hide"],
10238
+ emits: ["update:modelValue", "update:tabId", "close", "before-hide"],
10239
10239
  setup(e, { emit: n }) {
10240
- qo((s) => ({
10241
- "92d85226": s.width
10240
+ qo((i) => ({
10241
+ f4c19a7e: i.width
10242
10242
  }));
10243
10243
  const t = e, r = n, o = Lp(), a = k({
10244
10244
  get() {
10245
- return t.dialogRef;
10246
- },
10247
- set(s) {
10248
- r("update:dialogRef", s);
10249
- }
10250
- }), i = k({
10251
- get() {
10252
- var s, u;
10253
- return (u = (s = t.tabs) == null ? void 0 : s.find((l) => l.id === t.tabId)) == null ? void 0 : u.title;
10245
+ var i, s;
10246
+ return (s = (i = t.tabs) == null ? void 0 : i.find((u) => u.id === t.tabId)) == null ? void 0 : s.title;
10254
10247
  },
10255
- set(s) {
10256
- var l, c;
10257
- const u = (c = (l = t.tabs) == null ? void 0 : l.find((d) => d.title === s)) == null ? void 0 : c.id;
10258
- r("update:tabId", u);
10248
+ set(i) {
10249
+ var u, l;
10250
+ const s = (l = (u = t.tabs) == null ? void 0 : u.find((c) => c.title === i)) == null ? void 0 : l.id;
10251
+ r("update:tabId", s);
10259
10252
  }
10260
10253
  });
10261
- return (s, u) => (Q(), Pe(Er(Pa), {
10262
- ref_key: "DialogRef",
10263
- ref: a,
10264
- "model-value": !0,
10254
+ return (i, s) => (Q(), Pe(Er(Pa), {
10255
+ "model-value": i.modelValue,
10265
10256
  position: "right",
10266
- class: Ke(s.$style["sheet-dialog"]),
10267
- persistent: s.persistent,
10257
+ class: Ke(i.$style["sheet-dialog"]),
10258
+ persistent: i.persistent,
10268
10259
  "no-shake": "",
10269
10260
  "no-esc-dismiss": "",
10270
10261
  "full-height": "",
10271
10262
  "full-width": "",
10272
- onBeforeHide: u[2] || (u[2] = (l) => r("before-hide"))
10263
+ "onUpdate:modelValue": s[2] || (s[2] = (u) => r("update:modelValue", u))
10273
10264
  }, {
10274
10265
  default: ve(() => {
10275
- var l;
10266
+ var u;
10276
10267
  return [
10277
- s.loading ? (Q(), be("div", zx, [
10268
+ i.loading ? (Q(), be("div", zx, [
10278
10269
  fe("div", Wx, [
10279
- s.loading ? (Q(), Pe(Cs, {
10270
+ i.loading ? (Q(), Pe(Cs, {
10280
10271
  key: 0,
10281
10272
  class: "loader-spinner",
10282
10273
  size: "md",
@@ -10285,15 +10276,15 @@ const qx = ["left", "center", "right", "justify"], Vx = Ge({
10285
10276
  })) : tt("", !0)
10286
10277
  ])
10287
10278
  ])) : (Q(), be("div", $x, [
10288
- (l = s.tabs) != null && l.length ? (Q(), be("div", {
10279
+ (u = i.tabs) != null && u.length ? (Q(), be("div", {
10289
10280
  key: 0,
10290
- class: Ke(["sidebar", { noTitle: !s.tabsTitle }]),
10291
- style: cs({ width: s.sidebarWidth })
10281
+ class: Ke(["sidebar", { noTitle: !i.tabsTitle }]),
10282
+ style: ni({ width: i.sidebarWidth })
10292
10283
  }, [
10293
- s.tabsTitle ? (Q(), be("h5", Hx, mt(s.tabsTitle), 1)) : tt("", !0),
10284
+ i.tabsTitle ? (Q(), be("h5", Hx, mt(i.tabsTitle), 1)) : tt("", !0),
10294
10285
  _e(Vx, {
10295
- modelValue: i.value,
10296
- "onUpdate:modelValue": u[0] || (u[0] = (c) => i.value = c),
10286
+ modelValue: a.value,
10287
+ "onUpdate:modelValue": s[0] || (s[0] = (l) => a.value = l),
10297
10288
  vertical: "",
10298
10289
  align: "justify",
10299
10290
  "inline-label": "",
@@ -10303,53 +10294,53 @@ const qx = ["left", "center", "right", "justify"], Vx = Ge({
10303
10294
  "no-caps": ""
10304
10295
  }, {
10305
10296
  default: ve(() => [
10306
- (Q(!0), be(Ar, null, $r(s.tabs, (c) => (Q(), Pe(Nx, {
10307
- key: c.id,
10308
- class: Ke(s.$style.tab),
10309
- name: c.title,
10297
+ (Q(!0), be(Ar, null, $r(i.tabs, (l) => (Q(), Pe(Nx, {
10298
+ key: l.id,
10299
+ class: Ke(i.$style.tab),
10300
+ name: l.title,
10310
10301
  icon: "radio_button_unchecked",
10311
- label: c.title
10302
+ label: l.title
10312
10303
  }, null, 8, ["class", "name", "label"]))), 128))
10313
10304
  ]),
10314
10305
  _: 1
10315
10306
  }, 8, ["modelValue"])
10316
10307
  ], 6)) : tt("", !0),
10317
10308
  fe("div", Ux, [
10318
- s.title ? (Q(), be("div", jx, [
10309
+ i.title ? (Q(), be("div", jx, [
10319
10310
  fe("h2", {
10320
10311
  class: "ellipsis",
10321
- title: s.title
10322
- }, mt(s.title), 9, Gx),
10312
+ title: i.title
10313
+ }, mt(i.title), 9, Gx),
10323
10314
  qn(_e(St, {
10324
10315
  dense: "",
10325
10316
  flat: "",
10326
10317
  icon: "close",
10327
- onClick: u[1] || (u[1] = (c) => r("close"))
10318
+ onClick: s[1] || (s[1] = (l) => r("close"))
10328
10319
  }, null, 512), [
10329
- [ou, !s.persistent]
10320
+ [ou, !i.persistent]
10330
10321
  ])
10331
10322
  ])) : tt("", !0),
10332
- nn(s.$slots, "default", {}, void 0, !0),
10323
+ nn(i.$slots, "default", {}, void 0, !0),
10333
10324
  "actions" in Er(o) ? (Q(), be("div", Kx, [
10334
- nn(s.$slots, "actions", {}, void 0, !0)
10325
+ nn(i.$slots, "actions", {}, void 0, !0)
10335
10326
  ])) : tt("", !0)
10336
10327
  ])
10337
10328
  ]))
10338
10329
  ];
10339
10330
  }),
10340
10331
  _: 3
10341
- }, 8, ["class", "persistent"]));
10332
+ }, 8, ["model-value", "class", "persistent"]));
10342
10333
  }
10343
10334
  }), Yx = "_tab_2ayur_9", Qx = {
10344
10335
  "sheet-dialog": "_sheet-dialog_2ayur_1",
10345
10336
  tab: Yx
10346
10337
  }, Zx = {
10347
10338
  $style: Qx
10348
- }, OA = /* @__PURE__ */ Fe(Xx, [["__cssModules", Zx], ["__scopeId", "data-v-352e8f88"]]), hh = 150, Jx = Ge({
10339
+ }, OA = /* @__PURE__ */ Fe(Xx, [["__cssModules", Zx], ["__scopeId", "data-v-aee25542"]]), hh = 150, Jx = Ge({
10349
10340
  name: "QDrawer",
10350
10341
  inheritAttrs: !1,
10351
10342
  props: {
10352
- ...vi,
10343
+ ...mi,
10353
10344
  ...xn,
10354
10345
  side: {
10355
10346
  type: String,
@@ -10386,12 +10377,12 @@ const qx = ["left", "center", "right", "justify"], Vx = Ge({
10386
10377
  noSwipeBackdrop: Boolean
10387
10378
  },
10388
10379
  emits: [
10389
- ...mi,
10380
+ ...gi,
10390
10381
  "onLayout",
10391
10382
  "miniState"
10392
10383
  ],
10393
10384
  setup(e, { slots: n, emit: t, attrs: r }) {
10394
- const o = Ye(), { proxy: { $q: a } } = o, i = _n(e, a), { preventBodyScroll: s } = Sv(), { registerTimeout: u, removeTimeout: l } = wa(), c = co(xi, dn);
10385
+ const o = Ye(), { proxy: { $q: a } } = o, i = _n(e, a), { preventBodyScroll: s } = Sv(), { registerTimeout: u, removeTimeout: l } = wa(), c = co(_i, dn);
10395
10386
  if (c === dn)
10396
10387
  return console.error("QDrawer needs to be child of QLayout"), dn;
10397
10388
  let d, f = null, h;
@@ -10419,7 +10410,7 @@ const qx = ["left", "center", "right", "justify"], Vx = Ge({
10419
10410
  t("hide", ue);
10420
10411
  }, hh) : l();
10421
10412
  }
10422
- const { show: x, hide: _ } = gi({
10413
+ const { show: x, hide: _ } = yi({
10423
10414
  showing: g,
10424
10415
  hideOnRouteChange: w,
10425
10416
  handleShow: b,
@@ -10701,7 +10692,7 @@ const qx = ["left", "center", "right", "justify"], Vx = Ge({
10701
10692
  name: "QExpansionItem",
10702
10693
  props: {
10703
10694
  ...Xc,
10704
- ...vi,
10695
+ ...mi,
10705
10696
  ...xn,
10706
10697
  icon: String,
10707
10698
  label: String,
@@ -10728,7 +10719,7 @@ const qx = ["left", "center", "right", "justify"], Vx = Ge({
10728
10719
  headerClass: [Array, String, Object]
10729
10720
  },
10730
10721
  emits: [
10731
- ...mi,
10722
+ ...gi,
10732
10723
  "click",
10733
10724
  "afterShow",
10734
10725
  "afterHide"
@@ -10736,7 +10727,7 @@ const qx = ["left", "center", "right", "justify"], Vx = Ge({
10736
10727
  setup(e, { slots: n, emit: t }) {
10737
10728
  const { proxy: { $q: r } } = Ye(), o = _n(e, r), a = Y(
10738
10729
  e.modelValue !== null ? e.modelValue : e.defaultOpened
10739
- ), i = Y(null), s = Jc(), { show: u, hide: l, toggle: c } = gi({ showing: a });
10730
+ ), i = Y(null), s = Jc(), { show: u, hide: l, toggle: c } = yi({ showing: a });
10740
10731
  let d, f;
10741
10732
  const h = k(
10742
10733
  () => `q-expansion-item q-item-type q-expansion-item--${a.value === !0 ? "expanded" : "collapsed"} q-expansion-item--${e.popup === !0 ? "popup" : "standard"}`
@@ -11014,7 +11005,7 @@ const qx = ["left", "center", "right", "justify"], Vx = Ge({
11014
11005
  ]),
11015
11006
  _: 1
11016
11007
  }, 8, ["class", "active", "to", "data-test"])), [
11017
- [bi]
11008
+ [wi]
11018
11009
  ]) : tt("", !0);
11019
11010
  };
11020
11011
  }
@@ -11194,7 +11185,7 @@ const qx = ["left", "center", "right", "justify"], Vx = Ge({
11194
11185
  ]),
11195
11186
  _: 1
11196
11187
  }, 8, ["class"])), [
11197
- [bi]
11188
+ [wi]
11198
11189
  ])
11199
11190
  ]),
11200
11191
  _: 1
@@ -11535,7 +11526,7 @@ const z_ = Ge({
11535
11526
  })
11536
11527
  ];
11537
11528
  return e.disableDropdown !== !0 && y.push(
11538
- T(wi, {
11529
+ T(xi, {
11539
11530
  ref: a,
11540
11531
  id: i.value,
11541
11532
  class: e.contentClass,
@@ -11798,7 +11789,7 @@ const z_ = Ge({
11798
11789
  });
11799
11790
  }
11800
11791
  function d() {
11801
- yi(() => {
11792
+ bi(() => {
11802
11793
  if (o.value === null) return;
11803
11794
  const h = o.value.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]") || o.value.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]") || o.value.querySelector("[autofocus], [data-autofocus]") || Array.prototype.find.call(o.value.querySelectorAll("[tabindex]"), (p) => p.tabIndex !== -1);
11804
11795
  h == null || h.focus({ preventScroll: !0 });
@@ -12045,7 +12036,7 @@ const z_ = Ge({
12045
12036
  key: 0,
12046
12037
  removable: "",
12047
12038
  tabindex: w.tabindex,
12048
- style: cs({ backgroundColor: v.chipColor }),
12039
+ style: ni({ backgroundColor: v.chipColor }),
12049
12040
  "icon-remove": "close",
12050
12041
  "text-color": "secondary",
12051
12042
  onRemove: (b) => w.removeAtIndex(w.index)
@@ -13292,7 +13283,7 @@ function zC(e, n, t) {
13292
13283
  computedColspan: i
13293
13284
  };
13294
13285
  }
13295
- const zi = "q-table__bottom row items-center", Yv = {};
13286
+ const Wi = "q-table__bottom row items-center", Yv = {};
13296
13287
  Uv.forEach((e) => {
13297
13288
  Yv[e] = {};
13298
13289
  });
@@ -13735,11 +13726,11 @@ const WC = Ge({
13735
13726
  }),
13736
13727
  $e
13737
13728
  ];
13738
- return T("div", { class: zi + " q-table__bottom--nodata" }, rt);
13729
+ return T("div", { class: Wi + " q-table__bottom--nodata" }, rt);
13739
13730
  }
13740
13731
  const ee = n.bottom;
13741
13732
  if (ee !== void 0)
13742
- return T("div", { class: zi }, [ee(he.value)]);
13733
+ return T("div", { class: Wi }, [ee(he.value)]);
13743
13734
  const Ce = e.hideSelectedBanner !== !0 && M.value === !0 && V.value > 0 ? [
13744
13735
  T("div", { class: "q-table__control" }, [
13745
13736
  T("div", [
@@ -13749,10 +13740,10 @@ const WC = Ge({
13749
13740
  ] : [];
13750
13741
  if (e.hidePagination !== !0)
13751
13742
  return T("div", {
13752
- class: zi + " justify-end"
13743
+ class: Wi + " justify-end"
13753
13744
  }, Uo(Ce));
13754
13745
  if (Ce.length !== 0)
13755
- return T("div", { class: zi }, Ce);
13746
+ return T("div", { class: Wi }, Ce);
13756
13747
  }
13757
13748
  function vr(ee) {
13758
13749
  b({
@@ -14110,7 +14101,8 @@ const jC = /* @__PURE__ */ Fe($C, [["render", UC]]), GC = {
14110
14101
  fn: ve((h) => [
14111
14102
  _e(Kv, {
14112
14103
  props: h,
14113
- class: Ke({ "cursor-pointer": f.filterType, actions: f.name === "actions" })
14104
+ class: Ke({ "cursor-pointer": f.filterType, actions: f.name === "actions" }),
14105
+ style: ni(f.style)
14114
14106
  }, {
14115
14107
  default: ve(() => {
14116
14108
  var p, v;
@@ -14124,7 +14116,7 @@ const jC = /* @__PURE__ */ Fe($C, [["render", UC]]), GC = {
14124
14116
  fe("span", null, mt(f.label), 1),
14125
14117
  ["multi", "single"].includes(f.filterType) && ((p = c.columnFilters.value[f.name]) != null && p.length) ? (Q(), be("div", XC, " - " + mt(f.filterType === "multi" ? (v = c.columnFilters.value[f.name]) == null ? void 0 : v.length : 1), 1)) : tt("", !0)
14126
14118
  ], 8, KC)) : (Q(), be("div", YC, mt(f.label), 1)),
14127
- f.filterType ? (Q(), Pe(wi, {
14119
+ f.filterType ? (Q(), Pe(xi, {
14128
14120
  key: 2,
14129
14121
  "model-value": c.filterMenus.value[f.name],
14130
14122
  fit: "",
@@ -14203,13 +14195,13 @@ const jC = /* @__PURE__ */ Fe($C, [["render", UC]]), GC = {
14203
14195
  ];
14204
14196
  }),
14205
14197
  _: 2
14206
- }, 1032, ["props", "class"])
14198
+ }, 1032, ["props", "class", "style"])
14207
14199
  ])
14208
14200
  }))
14209
14201
  ]), 1032, ["selected", "rows", "columns", "selection"])
14210
14202
  ]));
14211
14203
  }
14212
- }), rk = /* @__PURE__ */ Fe(nk, [["__scopeId", "data-v-8d1cf9b0"]]), ok = {
14204
+ }), rk = /* @__PURE__ */ Fe(nk, [["__scopeId", "data-v-a1ebe3a5"]]), ok = {
14213
14205
  key: 0,
14214
14206
  class: "table-controls"
14215
14207
  }, ak = { class: "table-wrapper" }, ik = {
@@ -14289,16 +14281,16 @@ function Qv(e, n) {
14289
14281
  const { toString: uk } = Object.prototype, { getPrototypeOf: cd } = Object, { iterator: au, toStringTag: Zv } = Symbol, iu = /* @__PURE__ */ ((e) => (n) => {
14290
14282
  const t = uk.call(n);
14291
14283
  return e[t] || (e[t] = t.slice(8, -1).toLowerCase());
14292
- })(/* @__PURE__ */ Object.create(null)), fr = (e) => (e = e.toLowerCase(), (n) => iu(n) === e), su = (e) => (n) => typeof n === e, { isArray: Oa } = Array, ai = su("undefined");
14284
+ })(/* @__PURE__ */ Object.create(null)), fr = (e) => (e = e.toLowerCase(), (n) => iu(n) === e), su = (e) => (n) => typeof n === e, { isArray: Oa } = Array, ii = su("undefined");
14293
14285
  function lk(e) {
14294
- return e !== null && !ai(e) && e.constructor !== null && !ai(e.constructor) && On(e.constructor.isBuffer) && e.constructor.isBuffer(e);
14286
+ return e !== null && !ii(e) && e.constructor !== null && !ii(e.constructor) && On(e.constructor.isBuffer) && e.constructor.isBuffer(e);
14295
14287
  }
14296
14288
  const Jv = fr("ArrayBuffer");
14297
14289
  function ck(e) {
14298
14290
  let n;
14299
14291
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? n = ArrayBuffer.isView(e) : n = e && e.buffer && Jv(e.buffer), n;
14300
14292
  }
14301
- const dk = su("string"), On = su("function"), em = su("number"), uu = (e) => e !== null && typeof e == "object", fk = (e) => e === !0 || e === !1, is = (e) => {
14293
+ const dk = su("string"), On = su("function"), em = su("number"), uu = (e) => e !== null && typeof e == "object", fk = (e) => e === !0 || e === !1, ss = (e) => {
14302
14294
  if (iu(e) !== "object")
14303
14295
  return !1;
14304
14296
  const n = cd(e);
@@ -14308,7 +14300,7 @@ const dk = su("string"), On = su("function"), em = su("number"), uu = (e) => e !
14308
14300
  return e && (typeof FormData == "function" && e instanceof FormData || On(e.append) && ((n = iu(e)) === "formdata" || // detect form-data instance
14309
14301
  n === "object" && On(e.toString) && e.toString() === "[object FormData]"));
14310
14302
  }, bk = fr("URLSearchParams"), [wk, xk, _k, Ck] = ["ReadableStream", "Request", "Response", "Headers"].map(fr), kk = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
14311
- function _i(e, n, { allOwnKeys: t = !1 } = {}) {
14303
+ function Ci(e, n, { allOwnKeys: t = !1 } = {}) {
14312
14304
  if (e === null || typeof e > "u")
14313
14305
  return;
14314
14306
  let r, o;
@@ -14331,17 +14323,17 @@ function tm(e, n) {
14331
14323
  return o;
14332
14324
  return null;
14333
14325
  }
14334
- const Eo = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, nm = (e) => !ai(e) && e !== Eo;
14326
+ const Eo = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, nm = (e) => !ii(e) && e !== Eo;
14335
14327
  function ic() {
14336
14328
  const { caseless: e } = nm(this) && this || {}, n = {}, t = (r, o) => {
14337
14329
  const a = e && tm(n, o) || o;
14338
- is(n[a]) && is(r) ? n[a] = ic(n[a], r) : is(r) ? n[a] = ic({}, r) : Oa(r) ? n[a] = r.slice() : n[a] = r;
14330
+ ss(n[a]) && ss(r) ? n[a] = ic(n[a], r) : ss(r) ? n[a] = ic({}, r) : Oa(r) ? n[a] = r.slice() : n[a] = r;
14339
14331
  };
14340
14332
  for (let r = 0, o = arguments.length; r < o; r++)
14341
- arguments[r] && _i(arguments[r], t);
14333
+ arguments[r] && Ci(arguments[r], t);
14342
14334
  return n;
14343
14335
  }
14344
- const Sk = (e, n, t, { allOwnKeys: r } = {}) => (_i(n, (o, a) => {
14336
+ const Sk = (e, n, t, { allOwnKeys: r } = {}) => (Ci(n, (o, a) => {
14345
14337
  t && On(o) ? e[a] = Qv(o, t) : e[a] = o;
14346
14338
  }, { allOwnKeys: r }), e), Ek = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Rk = (e, n, t, r) => {
14347
14339
  e.prototype = Object.create(n.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
@@ -14390,7 +14382,7 @@ const Sk = (e, n, t, { allOwnKeys: r } = {}) => (_i(n, (o, a) => {
14390
14382
  }
14391
14383
  ), xh = (({ hasOwnProperty: e }) => (n, t) => e.call(n, t))(Object.prototype), Ok = fr("RegExp"), rm = (e, n) => {
14392
14384
  const t = Object.getOwnPropertyDescriptors(e), r = {};
14393
- _i(t, (o, a) => {
14385
+ Ci(t, (o, a) => {
14394
14386
  let i;
14395
14387
  (i = n(o, a, e)) !== !1 && (r[a] = i || o);
14396
14388
  }), Object.defineProperties(e, r);
@@ -14429,9 +14421,9 @@ const Wk = (e) => {
14429
14421
  if (!("toJSON" in r)) {
14430
14422
  n[o] = r;
14431
14423
  const a = Oa(r) ? [] : {};
14432
- return _i(r, (i, s) => {
14424
+ return Ci(r, (i, s) => {
14433
14425
  const u = t(i, o + 1);
14434
- !ai(u) && (a[s] = u);
14426
+ !ii(u) && (a[s] = u);
14435
14427
  }), n[o] = void 0, a;
14436
14428
  }
14437
14429
  }
@@ -14455,12 +14447,12 @@ const Wk = (e) => {
14455
14447
  isNumber: em,
14456
14448
  isBoolean: fk,
14457
14449
  isObject: uu,
14458
- isPlainObject: is,
14450
+ isPlainObject: ss,
14459
14451
  isReadableStream: wk,
14460
14452
  isRequest: xk,
14461
14453
  isResponse: _k,
14462
14454
  isHeaders: Ck,
14463
- isUndefined: ai,
14455
+ isUndefined: ii,
14464
14456
  isDate: hk,
14465
14457
  isFile: pk,
14466
14458
  isBlob: vk,
@@ -14470,7 +14462,7 @@ const Wk = (e) => {
14470
14462
  isURLSearchParams: bk,
14471
14463
  isTypedArray: Dk,
14472
14464
  isFileList: mk,
14473
- forEach: _i,
14465
+ forEach: Ci,
14474
14466
  merge: ic,
14475
14467
  extend: Sk,
14476
14468
  trim: kk,
@@ -14802,7 +14794,7 @@ function u3(e, n, t) {
14802
14794
  }
14803
14795
  return (t || JSON.stringify)(e);
14804
14796
  }
14805
- const Ci = {
14797
+ const ki = {
14806
14798
  transitional: cm,
14807
14799
  adapter: ["xhr", "http", "fetch"],
14808
14800
  transformRequest: [function(n, t) {
@@ -14831,7 +14823,7 @@ const Ci = {
14831
14823
  return a || o ? (t.setContentType("application/json", !1), u3(n)) : n;
14832
14824
  }],
14833
14825
  transformResponse: [function(n) {
14834
- const t = this.transitional || Ci.transitional, r = t && t.forcedJSONParsing, o = this.responseType === "json";
14826
+ const t = this.transitional || ki.transitional, r = t && t.forcedJSONParsing, o = this.responseType === "json";
14835
14827
  if (te.isResponse(n) || te.isReadableStream(n))
14836
14828
  return n;
14837
14829
  if (n && te.isString(n) && (r && !this.responseType || o)) {
@@ -14869,7 +14861,7 @@ const Ci = {
14869
14861
  }
14870
14862
  };
14871
14863
  te.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
14872
- Ci.headers[e] = {};
14864
+ ki.headers[e] = {};
14873
14865
  });
14874
14866
  const l3 = te.toObjectSet([
14875
14867
  "age",
@@ -14900,8 +14892,8 @@ const l3 = te.toObjectSet([
14900
14892
  function Ha(e) {
14901
14893
  return e && String(e).trim().toLowerCase();
14902
14894
  }
14903
- function ss(e) {
14904
- return e === !1 || e == null ? e : te.isArray(e) ? e.map(ss) : String(e);
14895
+ function us(e) {
14896
+ return e === !1 || e == null ? e : te.isArray(e) ? e.map(us) : String(e);
14905
14897
  }
14906
14898
  function d3(e) {
14907
14899
  const n = /* @__PURE__ */ Object.create(null), t = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
@@ -14946,7 +14938,7 @@ let Nn = class {
14946
14938
  if (!c)
14947
14939
  throw new Error("header name must be a non-empty string");
14948
14940
  const d = te.findKey(o, c);
14949
- (!d || o[d] === void 0 || l === !0 || l === void 0 && o[d] !== !1) && (o[d || u] = ss(s));
14941
+ (!d || o[d] === void 0 || l === !0 || l === void 0 && o[d] !== !1) && (o[d || u] = us(s));
14950
14942
  }
14951
14943
  const i = (s, u) => te.forEach(s, (l, c) => a(l, c, u));
14952
14944
  if (te.isPlainObject(n) || n instanceof this.constructor)
@@ -15014,11 +15006,11 @@ let Nn = class {
15014
15006
  return te.forEach(this, (o, a) => {
15015
15007
  const i = te.findKey(r, a);
15016
15008
  if (i) {
15017
- t[i] = ss(o), delete t[a];
15009
+ t[i] = us(o), delete t[a];
15018
15010
  return;
15019
15011
  }
15020
15012
  const s = n ? h3(a) : String(a).trim();
15021
- s !== a && delete t[a], t[s] = ss(o), r[s] = !0;
15013
+ s !== a && delete t[a], t[s] = us(o), r[s] = !0;
15022
15014
  }), this;
15023
15015
  }
15024
15016
  concat(...n) {
@@ -15073,7 +15065,7 @@ te.reduceDescriptors(Nn.prototype, ({ value: e }, n) => {
15073
15065
  });
15074
15066
  te.freezeMethods(Nn);
15075
15067
  function el(e, n) {
15076
- const t = this || Ci, r = n || t, o = Nn.from(r.headers);
15068
+ const t = this || ki, r = n || t, o = Nn.from(r.headers);
15077
15069
  let a = r.data;
15078
15070
  return te.forEach(e, function(s) {
15079
15071
  a = s.call(t, a, o.normalize(), n ? n.status : void 0);
@@ -15600,7 +15592,7 @@ function Mh(e) {
15600
15592
  return tl(e), e.headers = Nn.from(e.headers), e.data = el.call(
15601
15593
  e,
15602
15594
  e.transformRequest
15603
- ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), ym.getAdapter(e.adapter || Ci.adapter)(e).then(function(r) {
15595
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), ym.getAdapter(e.adapter || ki.adapter)(e).then(function(r) {
15604
15596
  return tl(e), r.data = el.call(
15605
15597
  e,
15606
15598
  e.transformResponse,
@@ -15659,10 +15651,10 @@ function P3(e, n, t) {
15659
15651
  throw new ut("Unknown option " + a, ut.ERR_BAD_OPTION);
15660
15652
  }
15661
15653
  }
15662
- const us = {
15654
+ const ls = {
15663
15655
  assertOptions: P3,
15664
15656
  validators: du
15665
- }, mr = us.validators;
15657
+ }, mr = ls.validators;
15666
15658
  let Fo = class {
15667
15659
  constructor(n) {
15668
15660
  this.defaults = n || {}, this.interceptors = {
@@ -15698,16 +15690,16 @@ let Fo = class {
15698
15690
  _request(n, t) {
15699
15691
  typeof n == "string" ? (t = t || {}, t.url = n) : t = n || {}, t = No(this.defaults, t);
15700
15692
  const { transitional: r, paramsSerializer: o, headers: a } = t;
15701
- r !== void 0 && us.assertOptions(r, {
15693
+ r !== void 0 && ls.assertOptions(r, {
15702
15694
  silentJSONParsing: mr.transitional(mr.boolean),
15703
15695
  forcedJSONParsing: mr.transitional(mr.boolean),
15704
15696
  clarifyTimeoutError: mr.transitional(mr.boolean)
15705
15697
  }, !1), o != null && (te.isFunction(o) ? t.paramsSerializer = {
15706
15698
  serialize: o
15707
- } : us.assertOptions(o, {
15699
+ } : ls.assertOptions(o, {
15708
15700
  encode: mr.function,
15709
15701
  serialize: mr.function
15710
- }, !0)), t.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? t.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : t.allowAbsoluteUrls = !0), us.assertOptions(t, {
15702
+ }, !0)), t.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? t.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : t.allowAbsoluteUrls = !0), ls.assertOptions(t, {
15711
15703
  baseUrl: mr.spelling("baseURL"),
15712
15704
  withXsrfToken: mr.spelling("withXSRFToken")
15713
15705
  }, !0), t.method = (t.method || this.defaults.method || "get").toLowerCase();
@@ -15942,7 +15934,7 @@ function xm(e) {
15942
15934
  return xm(No(e, o));
15943
15935
  }, t;
15944
15936
  }
15945
- const Zt = xm(Ci);
15937
+ const Zt = xm(ki);
15946
15938
  Zt.Axios = Fo;
15947
15939
  Zt.CanceledError = Na;
15948
15940
  Zt.CancelToken = B3;
@@ -16858,7 +16850,7 @@ function ko(e, n) {
16858
16850
  }
16859
16851
  return { newShape: t, keptDims: r };
16860
16852
  }
16861
- function ii(e, n) {
16853
+ function si(e, n) {
16862
16854
  var t = null;
16863
16855
  if (e == null || e === "float32") t = new Float32Array(n);
16864
16856
  else if (e === "int32") t = new Int32Array(n);
@@ -16916,8 +16908,8 @@ function uS(e) {
16916
16908
  function lS(e) {
16917
16909
  return typeof e == "number";
16918
16910
  }
16919
- function ki(e) {
16920
- return Array.isArray(e) ? ki(e[0]) : e instanceof Float32Array ? "float32" : e instanceof Int32Array || e instanceof Uint8Array ? "int32" : lS(e) ? "float32" : hd(e) ? "string" : uS(e) ? "bool" : "float32";
16911
+ function Si(e) {
16912
+ return Array.isArray(e) ? Si(e[0]) : e instanceof Float32Array ? "float32" : e instanceof Int32Array || e instanceof Uint8Array ? "int32" : lS(e) ? "float32" : hd(e) ? "string" : uS(e) ? "bool" : "float32";
16921
16913
  }
16922
16914
  function vc(e) {
16923
16915
  return !!(e && e.constructor && e.call && e.apply);
@@ -16968,10 +16960,10 @@ function Oh(e, n) {
16968
16960
  }(0, e, n);
16969
16961
  }
16970
16962
  function Am(e, n) {
16971
- for (var t = Si(e, n), r = 0; r < t.length; r++) t[r] = 1;
16963
+ for (var t = Ei(e, n), r = 0; r < t.length; r++) t[r] = 1;
16972
16964
  return t;
16973
16965
  }
16974
- function Si(e, n) {
16966
+ function Ei(e, n) {
16975
16967
  if (n == null || n === "float32" || n === "complex64") return new Float32Array(e);
16976
16968
  if (n === "int32") return new Int32Array(e);
16977
16969
  if (n === "bool") return new Uint8Array(e);
@@ -17099,7 +17091,7 @@ function Ga(e) {
17099
17091
  for (var n = [], t = 0; t < e.length; t += 2) n.push([e[t], e[t + 1]]);
17100
17092
  return n;
17101
17093
  }
17102
- var si = function() {
17094
+ var ui = function() {
17103
17095
  function e(n, t, r) {
17104
17096
  var o = this;
17105
17097
  if (this.dtype = t, this.shape = n.slice(), this.size = Be(n), r != null) {
@@ -17867,7 +17859,7 @@ var gl, Vh = function() {
17867
17859
  u != null && (o = u.gradFunc), o != null && (s.gradient = function(l) {
17868
17860
  return l = l.map(function(c, d) {
17869
17861
  if (c == null) {
17870
- var f = r[d], h = Si(f.size, f.dtype);
17862
+ var f = r[d], h = Ei(f.size, f.dtype);
17871
17863
  return i.makeTensor(h, f.shape, f.dtype);
17872
17864
  }
17873
17865
  return c;
@@ -18090,7 +18082,7 @@ Or.registerFlag("DEBUG", function() {
18090
18082
  }), Or.registerFlag("IS_TEST", function() {
18091
18083
  return !1;
18092
18084
  });
18093
- var ui, jn, $n, _o = {}, yl = { alpha: !1, antialias: !1, premultipliedAlpha: !1, preserveDrawingBuffer: !1, depth: !1, stencil: !1, failIfMajorPerformanceCaveat: !0 };
18085
+ var li, jn, $n, _o = {}, yl = { alpha: !1, antialias: !1, premultipliedAlpha: !1, preserveDrawingBuffer: !1, depth: !1, stencil: !1, failIfMajorPerformanceCaveat: !0 };
18094
18086
  function yS(e, n) {
18095
18087
  _o[e] = n;
18096
18088
  }
@@ -18116,7 +18108,7 @@ function Ja(e) {
18116
18108
  var n = Be(e);
18117
18109
  return pc(Math.ceil(n / 4));
18118
18110
  }
18119
- function Ei(e, n) {
18111
+ function Ri(e, n) {
18120
18112
  return [Math.max(1, Math.ceil(n / 2)), Math.max(1, Math.ceil(e / 2))];
18121
18113
  }
18122
18114
  function pd(e, n) {
@@ -18132,7 +18124,7 @@ function Ne(e, n, t) {
18132
18124
  }
18133
18125
  (function(e) {
18134
18126
  e[e.DENSE = 0] = "DENSE", e[e.SHARED_BATCH = 1] = "SHARED_BATCH";
18135
- })(ui || (ui = {})), function(e) {
18127
+ })(li || (li = {})), function(e) {
18136
18128
  e[e.RENDER = 0] = "RENDER", e[e.UPLOAD = 1] = "UPLOAD", e[e.PIXELS = 2] = "PIXELS", e[e.DOWNLOAD = 3] = "DOWNLOAD";
18137
18129
  }(jn || (jn = {})), function(e) {
18138
18130
  e[e.UNPACKED_FLOAT16 = 0] = "UNPACKED_FLOAT16", e[e.UNPACKED_FLOAT32 = 1] = "UNPACKED_FLOAT32", e[e.PACKED_4X1_UNSIGNED_BYTE = 2] = "PACKED_4X1_UNSIGNED_BYTE", e[e.PACKED_2X2_FLOAT32 = 3] = "PACKED_2X2_FLOAT32", e[e.PACKED_2X2_FLOAT16 = 4] = "PACKED_2X2_FLOAT16";
@@ -18161,7 +18153,7 @@ function _S(e, n) {
18161
18153
  return "Unknown error code " + n;
18162
18154
  }
18163
18155
  }
18164
- function Wi(e, n, t) {
18156
+ function $i(e, n, t) {
18165
18157
  return Ur(e, n, function() {
18166
18158
  return e.getExtension(t);
18167
18159
  }, 'Extension "' + t + '" not supported on this browser.');
@@ -18301,7 +18293,7 @@ function Wh(e, n, t) {
18301
18293
  return e.framebufferTexture2D(e.FRAMEBUFFER, e.COLOR_ATTACHMENT0, e.TEXTURE_2D, null, 0);
18302
18294
  });
18303
18295
  }
18304
- function $i(e) {
18296
+ function Hi(e) {
18305
18297
  var n = e.checkFramebufferStatus(e.FRAMEBUFFER);
18306
18298
  if (n !== e.FRAMEBUFFER_COMPLETE) throw new Error("Error binding framebuffer: " + NS(e, n));
18307
18299
  }
@@ -18366,16 +18358,16 @@ function qS(e, n) {
18366
18358
  }
18367
18359
  return pc(a);
18368
18360
  }
18369
- function Hi(e) {
18361
+ function Ui(e) {
18370
18362
  return e % 2 == 0;
18371
18363
  }
18372
- function Ui(e, n) {
18364
+ function ji(e, n) {
18373
18365
  if (pn(e = e.slice(-2), n = n.slice(-2)) || !e.length || !n.length || e[0] === 0 || e[1] === 0 || n[0] === 0 || n[1] === 0) return !0;
18374
18366
  if (e.length !== n.length) {
18375
18367
  var t = e.slice(-1)[0], r = n.slice(-1)[0];
18376
- if (t === r || Hi(t) && Hi(r) && (e[0] === 1 || n[0] === 1)) return !0;
18368
+ if (t === r || Ui(t) && Ui(r) && (e[0] === 1 || n[0] === 1)) return !0;
18377
18369
  }
18378
- return e[1] === n[1] && Hi(e[0]) && Hi(n[0]);
18370
+ return e[1] === n[1] && Ui(e[0]) && Ui(n[0]);
18379
18371
  }
18380
18372
  function VS(e) {
18381
18373
  if (bl == null) {
@@ -18487,7 +18479,7 @@ function Hh(e, n, t, r) {
18487
18479
  }
18488
18480
  function A(e, n, t, r) {
18489
18481
  if (r === void 0 && (r = "numeric"), e instanceof $t) return Hh(r, e.dtype, n, t), e;
18490
- var o = ki(e);
18482
+ var o = Si(e);
18491
18483
  if (o !== "string" && ["bool", "int32", "float32"].indexOf(r) >= 0 && (o = r), Hh(r, o, n, t), e == null || !Cr(e) && !Array.isArray(e) && typeof e != "number" && typeof e != "boolean" && typeof e != "string") {
18492
18484
  var a = e == null ? "null" : e.constructor.name;
18493
18485
  throw new Error("Argument '" + n + "' passed to '" + t + "' must be a Tensor or TensorLike, but got '" + a + "'");
@@ -18657,7 +18649,7 @@ function wn(e, n, t) {
18657
18649
  return vo(e, n, po(e, t), t);
18658
18650
  }
18659
18651
  function vo(e, n, t, r) {
18660
- if (r == null && (r = ki(e)), r === "complex64") throw new Error("Cannot construct a complex64 tensor directly. Please use tf.complex(real, imag).");
18652
+ if (r == null && (r = Si(e)), r === "complex64") throw new Error("Cannot construct a complex64 tensor directly. Please use tf.complex(real, imag).");
18661
18653
  if (!Cr(e) && !Array.isArray(e) && typeof e != "number" && typeof e != "boolean" && typeof e != "string") throw new Error("values passed to tensor(values) must be a number/boolean/string or an array of numbers/booleans/strings, or a TypedArray");
18662
18654
  if (n != null) {
18663
18655
  Dm(n);
@@ -18736,7 +18728,7 @@ function Vt(e, n) {
18736
18728
  var t = Vt(e, "float32"), r = Vt(e, "float32");
18737
18729
  return yn(t, r);
18738
18730
  }
18739
- var o = Si(Be(e), n);
18731
+ var o = Ei(Be(e), n);
18740
18732
  return U.makeTensor(o, e, n);
18741
18733
  }
18742
18734
  function Sr(e, n, t) {
@@ -18753,7 +18745,7 @@ function ZS(e, n, t) {
18753
18745
  function Ps(e, n, t, r) {
18754
18746
  if (t === void 0 && (t = 1), r === void 0 && (r = "float32"), t === 0) throw new Error("Cannot have a step of zero");
18755
18747
  if (e === n || e < n && t < 0 || n < e && t > 1) return Vt([0], r);
18756
- var o = Si(Math.abs(Math.ceil((n - e) / t)), r);
18748
+ var o = Ei(Math.abs(Math.ceil((n - e) / t)), r);
18757
18749
  n < e && t === 1 && (t = -1), o[0] = e;
18758
18750
  for (var a = 1; a < o.length; a++) o[a] = o[a - 1] + t;
18759
18751
  return en(o, r);
@@ -19144,7 +19136,7 @@ var hu = Co.alea, yd = function() {
19144
19136
  }, e;
19145
19137
  }();
19146
19138
  function ot(e, n, t) {
19147
- return n === void 0 && (n = "float32"), n = n || "float32", Dm(e), new si(e, n, t);
19139
+ return n === void 0 && (n = "float32"), n = n || "float32", Dm(e), new ui(e, n, t);
19148
19140
  }
19149
19141
  function d4(e, n) {
19150
19142
  n === void 0 && (n = !1), console.log(e.toString(n));
@@ -19442,7 +19434,7 @@ var qm = z({ batchToSpaceND_: function(e, n, t) {
19442
19434
  return o = f.sent(), [4, r.data()];
19443
19435
  case 2:
19444
19436
  for (a = f.sent(), i = new Set(a), s = 0, c = 0; c < o.length; c++) i.has(o[c]) || s++;
19445
- for (u = new si([s], t.dtype), l = new si([s], "int32"), c = 0, d = 0; c < o.length; c++) i.has(o[c]) || (u.values[d] = o[c], l.values[d] = c, d++);
19437
+ for (u = new ui([s], t.dtype), l = new ui([s], "int32"), c = 0, d = 0; c < o.length; c++) i.has(o[c]) || (u.values[d] = o[c], l.values[d] = c, d++);
19446
19438
  return [2, [u.toTensor(), l.toTensor()]];
19447
19439
  }
19448
19440
  });
@@ -19982,7 +19974,7 @@ function pt(e, n) {
19982
19974
  }
19983
19975
  return t;
19984
19976
  }
19985
- function li(e, n, t, r, o, a, i) {
19977
+ function ci(e, n, t, r, o, a, i) {
19986
19978
  i === void 0 && (i = "channelsLast");
19987
19979
  var s, u = zs(n), l = u[0], c = u[1];
19988
19980
  if (i === "channelsLast") s = [l, c, e[3], e[3]];
@@ -20139,7 +20131,7 @@ function kc(e, n) {
20139
20131
  return U.makeTensorFromDataId(e.dataId, n, e.dtype);
20140
20132
  }
20141
20133
  function eg(e, n, t) {
20142
- var r = (n - e) / (t - 1), o = Si(t, "float32");
20134
+ var r = (n - e) / (t - 1), o = Ei(t, "float32");
20143
20135
  o[0] = e;
20144
20136
  for (var a = 1; a < o.length; a++) o[a] = o[a - 1] + r;
20145
20137
  return en(o, "float32");
@@ -20235,7 +20227,7 @@ function rg(e, n) {
20235
20227
  return o.toTensor();
20236
20228
  }
20237
20229
  function og(e, n, t, r, o) {
20238
- for (var a = n[n.length - 1], i = [e.length / a, a], s = i[0], u = i[1], l = ii(t, s * r), c = ii("int32", s * r), d = 0; d < s; d++) {
20230
+ for (var a = n[n.length - 1], i = [e.length / a, a], s = i[0], u = i[1], l = si(t, s * r), c = si("int32", s * r), d = 0; d < s; d++) {
20239
20231
  for (var f = d * u, h = e.subarray(f, f + u), p = [], v = 0; v < h.length; v++) p.push({ value: h[v], index: v });
20240
20232
  p.sort(function(y, x) {
20241
20233
  return x.value - y.value;
@@ -21662,15 +21654,15 @@ var K4 = function(e, n, t, r) {
21662
21654
  f += `
21663
21655
  if (` + l + " < " + s[u] + " && " + l + " >= " + s[u - 1] + `) {
21664
21656
  return getChannel(
21665
- getT` + u + "(" + ji(i, l, h) + `),
21666
- vec2(` + ji(c, l, h) + `));
21657
+ getT` + u + "(" + Gi(i, l, h) + `),
21658
+ vec2(` + Gi(c, l, h) + `));
21667
21659
  }`;
21668
21660
  }
21669
21661
  var p = s.length, v = s[s.length - 1];
21670
21662
  f += `
21671
21663
  return getChannel(
21672
- getT` + p + "(" + ji(i, l, v) + `),
21673
- vec2(` + ji(c, l, v) + "));", this.userCode = `
21664
+ getT` + p + "(" + Gi(i, l, v) + `),
21665
+ vec2(` + Gi(c, l, v) + "));", this.userCode = `
21674
21666
  float getValue(` + i.map(function(m) {
21675
21667
  return "int " + m;
21676
21668
  }) + `) {
@@ -21700,7 +21692,7 @@ var K4 = function(e, n, t, r) {
21700
21692
  }
21701
21693
  `;
21702
21694
  };
21703
- function ji(e, n, t) {
21695
+ function Gi(e, n, t) {
21704
21696
  var r = e.indexOf(n);
21705
21697
  return e.map(function(o, a) {
21706
21698
  return a === r ? o + " - " + t : o;
@@ -22567,7 +22559,7 @@ function Jh(e, n) {
22567
22559
  throw Error("Cumulative sum for rank " + e + " is not yet supported");
22568
22560
  }
22569
22561
  var vE = function(e) {
22570
- this.variableNames = ["A"], this.packedInputs = !1, this.packedOutput = !0, this.outPackingScheme = ui.DENSE;
22562
+ this.variableNames = ["A"], this.packedInputs = !1, this.packedOutput = !0, this.outPackingScheme = li.DENSE;
22571
22563
  var n = Ja(e), t = En();
22572
22564
  this.outputShape = e, this.userCode = `
22573
22565
  ivec3 outCoordsFromFlatIndex(int index) {
@@ -22592,7 +22584,7 @@ var vE = function(e) {
22592
22584
  }
22593
22585
  `;
22594
22586
  }, mE = function(e) {
22595
- this.variableNames = ["A"], this.packedInputs = !0, this.packedOutput = !0, this.outPackingScheme = ui.DENSE;
22587
+ this.variableNames = ["A"], this.packedInputs = !0, this.packedOutput = !0, this.outPackingScheme = li.DENSE;
22596
22588
  var n = Ja(e), t = En();
22597
22589
  this.outputShape = e, this.userCode = `
22598
22590
  ivec3 outCoordsFromFlatIndex(int index) {
@@ -22879,7 +22871,7 @@ function TE(e, n) {
22879
22871
  function AE(e, n) {
22880
22872
  return TS(e, n, new Uint16Array([0, 1, 2, 2, 1, 3]));
22881
22873
  }
22882
- function Ri(e, n, t, r, o, a, i) {
22874
+ function Ii(e, n, t, r, o, a, i) {
22883
22875
  DS(t, r);
22884
22876
  var s = AS(e, n), u = e.TEXTURE_2D;
22885
22877
  return Ne(e, n, function() {
@@ -22900,23 +22892,23 @@ function Ri(e, n, t, r, o, a, i) {
22900
22892
  }
22901
22893
  function DE(e, n, t, r, o) {
22902
22894
  var a = fu(t, r);
22903
- return Ri(e, n, a[0], a[1], o.internalFormatFloat, o.textureFormatFloat, e.FLOAT);
22895
+ return Ii(e, n, a[0], a[1], o.internalFormatFloat, o.textureFormatFloat, e.FLOAT);
22904
22896
  }
22905
22897
  function ME(e, n, t, r, o) {
22906
22898
  var a = fu(t, r);
22907
- return Ri(e, n, a[0], a[1], o.internalFormatHalfFloat, o.textureFormatFloat, o.textureTypeHalfFloat);
22899
+ return Ii(e, n, a[0], a[1], o.internalFormatHalfFloat, o.textureFormatFloat, o.textureTypeHalfFloat);
22908
22900
  }
22909
22901
  function FE(e, n, t, r, o) {
22910
22902
  var a = fu(t, r);
22911
- return Ri(e, n, a[0], a[1], e.RGBA, e.RGBA, e.UNSIGNED_BYTE);
22903
+ return Ii(e, n, a[0], a[1], e.RGBA, e.RGBA, e.UNSIGNED_BYTE);
22912
22904
  }
22913
22905
  function PE(e, n, t, r, o) {
22914
- var a = Ei(t, r);
22915
- return Ri(e, n, a[0], a[1], o.internalFormatPackedFloat, e.RGBA, e.FLOAT);
22906
+ var a = Ri(t, r);
22907
+ return Ii(e, n, a[0], a[1], o.internalFormatPackedFloat, e.RGBA, e.FLOAT);
22916
22908
  }
22917
22909
  function BE(e, n, t, r, o) {
22918
- var a = Ei(t, r);
22919
- return Ri(e, n, a[0], a[1], o.internalFormatPackedHalfFloat, e.RGBA, o.textureTypeHalfFloat);
22910
+ var a = Ri(t, r);
22911
+ return Ii(e, n, a[0], a[1], o.internalFormatPackedHalfFloat, e.RGBA, o.textureTypeHalfFloat);
22920
22912
  }
22921
22913
  function OE(e, n, t, r) {
22922
22914
  return Ne(e, n, function() {
@@ -22970,7 +22962,7 @@ function zE(e, n, t, r, o) {
22970
22962
  }
22971
22963
  function WE(e, n, t, r, o, a, i, s) {
22972
22964
  var u = e, l = new Float32Array(function(c, d) {
22973
- var f = Ei(c, d);
22965
+ var f = Ri(c, d);
22974
22966
  return f[0] * f[1] * 4;
22975
22967
  }(a, i));
22976
22968
  return u.bindBuffer(u.PIXEL_PACK_BUFFER, n), u.getBufferSubData(u.PIXEL_PACK_BUFFER, 0, l), u.bindBuffer(u.PIXEL_PACK_BUFFER, null), l;
@@ -22988,9 +22980,9 @@ var HE = function() {
22988
22980
  n != null ? (this.gl = n, yS(t, n)) : this.gl = Dr(t);
22989
22981
  var r = "WEBGL_color_buffer_float";
22990
22982
  if (ie().getNumber("WEBGL_VERSION") === 1) {
22991
- if (this.textureFloatExtension = Wi(this.gl, this.debug, "OES_texture_float"), or(this.gl, "OES_texture_half_float")) this.textureHalfFloatExtension = Wi(this.gl, this.debug, "OES_texture_half_float");
22983
+ if (this.textureFloatExtension = $i(this.gl, this.debug, "OES_texture_float"), or(this.gl, "OES_texture_half_float")) this.textureHalfFloatExtension = $i(this.gl, this.debug, "OES_texture_half_float");
22992
22984
  else if (ie().get("WEBGL_FORCE_F16_TEXTURES")) throw new Error("GL context does not support half float textures, yet the environment flag WEBGL_FORCE_F16_TEXTURES is set to true.");
22993
- if (this.colorBufferFloatExtension = this.gl.getExtension(r), or(this.gl, "EXT_color_buffer_half_float")) this.colorBufferHalfFloatExtension = Wi(this.gl, this.debug, "EXT_color_buffer_half_float");
22985
+ if (this.colorBufferFloatExtension = this.gl.getExtension(r), or(this.gl, "EXT_color_buffer_half_float")) this.colorBufferHalfFloatExtension = $i(this.gl, this.debug, "EXT_color_buffer_half_float");
22994
22986
  else if (ie().get("WEBGL_FORCE_F16_TEXTURES")) throw new Error("GL context does not support color renderable half floats, yet the environment flag WEBGL_FORCE_F16_TEXTURES is set to true.");
22995
22987
  } else if (r = "EXT_color_buffer_float", or(this.gl, r)) this.colorBufferFloatExtension = this.gl.getExtension(r);
22996
22988
  else {
@@ -23107,14 +23099,14 @@ var HE = function() {
23107
23099
  this.setOutputMatrixTextureDriver(n, r, t);
23108
23100
  }, e.prototype.setOutputPackedMatrixTexture = function(n, t, r) {
23109
23101
  this.throwIfDisposed();
23110
- var o = Ei(t, r), a = o[0], i = o[1];
23102
+ var o = Ri(t, r), a = o[0], i = o[1];
23111
23103
  this.setOutputMatrixTextureDriver(n, a, i);
23112
23104
  }, e.prototype.setOutputMatrixWriteRegion = function(n, t, r, o) {
23113
23105
  this.setOutputMatrixWriteRegionDriver(r, n, o, t);
23114
23106
  }, e.prototype.setOutputPackedMatrixWriteRegion = function(n, t, r, o) {
23115
23107
  throw new Error("setOutputPackedMatrixWriteRegion not implemented.");
23116
23108
  }, e.prototype.debugValidate = function() {
23117
- this.program != null && xl(this.gl, this.debug, this.program), $i(this.gl);
23109
+ this.program != null && xl(this.gl, this.debug, this.program), Hi(this.gl);
23118
23110
  }, e.prototype.executeProgram = function() {
23119
23111
  this.throwIfDisposed(), this.throwIfNoProgram();
23120
23112
  var n = this.gl;
@@ -23127,7 +23119,7 @@ var HE = function() {
23127
23119
  return n.gl.finish();
23128
23120
  });
23129
23121
  }, e.prototype.getQueryTimerExtension = function() {
23130
- return this.disjointQueryTimerExtension == null && (this.disjointQueryTimerExtension = Wi(this.gl, this.debug, ie().getNumber("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_VERSION") === 2 ? "EXT_disjoint_timer_query_webgl2" : "EXT_disjoint_timer_query")), this.disjointQueryTimerExtension;
23122
+ return this.disjointQueryTimerExtension == null && (this.disjointQueryTimerExtension = $i(this.gl, this.debug, ie().getNumber("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_VERSION") === 2 ? "EXT_disjoint_timer_query_webgl2" : "EXT_disjoint_timer_query")), this.disjointQueryTimerExtension;
23131
23123
  }, e.prototype.getQueryTimerExtensionWebGL2 = function() {
23132
23124
  return this.getQueryTimerExtension();
23133
23125
  }, e.prototype.getQueryTimerExtensionWebGL1 = function() {
@@ -23201,9 +23193,9 @@ var HE = function() {
23201
23193
  return r.pollItems(), r.itemsToPoll.length === 0;
23202
23194
  });
23203
23195
  }, e.prototype.bindTextureToFrameBuffer = function(n) {
23204
- this.throwIfDisposed(), _l(this.gl, this.debug, n, this.framebuffer), this.debug && $i(this.gl);
23196
+ this.throwIfDisposed(), _l(this.gl, this.debug, n, this.framebuffer), this.debug && Hi(this.gl);
23205
23197
  }, e.prototype.unbindTextureToFrameBuffer = function() {
23206
- this.outputTexture != null ? (_l(this.gl, this.debug, this.outputTexture, this.framebuffer), this.debug && $i(this.gl)) : Wh(this.gl, this.debug, this.framebuffer);
23198
+ this.outputTexture != null ? (_l(this.gl, this.debug, this.outputTexture, this.framebuffer), this.debug && Hi(this.gl)) : Wh(this.gl, this.debug, this.framebuffer);
23207
23199
  }, e.prototype.downloadMatrixDriver = function(n, t) {
23208
23200
  this.bindTextureToFrameBuffer(n);
23209
23201
  var r = t();
@@ -23211,7 +23203,7 @@ var HE = function() {
23211
23203
  }, e.prototype.setOutputMatrixTextureDriver = function(n, t, r) {
23212
23204
  this.throwIfDisposed();
23213
23205
  var o = this.gl;
23214
- _l(o, this.debug, n, this.framebuffer), this.debug && $i(o), this.outputTexture = n, Ne(o, this.debug, function() {
23206
+ _l(o, this.debug, n, this.framebuffer), this.debug && Hi(o), this.outputTexture = n, Ne(o, this.debug, function() {
23215
23207
  return o.viewport(0, 0, t, r);
23216
23208
  }), Ne(o, this.debug, function() {
23217
23209
  return o.scissor(0, 0, t, r);
@@ -23689,7 +23681,7 @@ var UE = function(e, n, t) {
23689
23681
  }
23690
23682
  `;
23691
23683
  }
23692
- }, eR = function(e, n, t) {
23684
+ }, e5 = function(e, n, t) {
23693
23685
  this.variableNames = ["x"], this.outputShape = n.map(function(u, l) {
23694
23686
  return u[0] + e[l] + u[1];
23695
23687
  });
@@ -23724,7 +23716,7 @@ var UE = function(e, n, t) {
23724
23716
  }
23725
23717
  }
23726
23718
  `;
23727
- }, tR = function(e, n, t) {
23719
+ }, t5 = function(e, n, t) {
23728
23720
  this.variableNames = ["x"], this.packedInputs = !0, this.packedOutput = !0, this.outputShape = n.map(function(m, g) {
23729
23721
  return m[0] + e[g] + m[1];
23730
23722
  });
@@ -24087,7 +24079,7 @@ var UE = function(e, n, t) {
24087
24079
  }
24088
24080
  `;
24089
24081
  }
24090
- }, nR = function(e, n) {
24082
+ }, n5 = function(e, n) {
24091
24083
  this.variableNames = ["x"];
24092
24084
  var t = e.windowSize, r = e.batchSize, o = e.inSize, a = Math.ceil(o / t);
24093
24085
  this.outputShape = [r, a];
@@ -24184,7 +24176,7 @@ var UE = function(e, n, t) {
24184
24176
  setOutput(` + u + `);
24185
24177
  }
24186
24178
  `;
24187
- }, rR = function(e, n) {
24179
+ }, r5 = function(e, n) {
24188
24180
  this.variableNames = ["A"], this.packedInputs = !0, this.packedOutput = !0, this.outputShape = e;
24189
24181
  for (var t = "", r = 0; r < 4; r++) {
24190
24182
  var o = "thisRC = rc;";
@@ -24224,7 +24216,7 @@ var UE = function(e, n, t) {
24224
24216
  setOutput(result);
24225
24217
  }
24226
24218
  `;
24227
- }, oR = function(e, n, t) {
24219
+ }, o5 = function(e, n, t) {
24228
24220
  this.variableNames = ["dy"], this.outputShape = [], this.outputShape = n.shape;
24229
24221
  var r = n.shape, o = r[1], a = r[2], i = e.shape, s = i[1], u = i[2], l = [t && s > 1 ? o - 1 : o, t && u > 1 ? a - 1 : a], c = [t && s > 1 ? s - 1 : s, t && u > 1 ? u - 1 : u], d = l[0] / c[0], f = l[1] / c[1], h = 1 / d, p = 1 / f, v = 2 * Math.ceil(h) + 2, m = 2 * Math.ceil(p) + 2;
24230
24222
  this.userCode = `
@@ -24309,7 +24301,7 @@ var UE = function(e, n, t) {
24309
24301
  setOutput(accumulator);
24310
24302
  }
24311
24303
  `;
24312
- }, aR = function(e, n, t, r) {
24304
+ }, a5 = function(e, n, t, r) {
24313
24305
  this.variableNames = ["A"], this.outputShape = [];
24314
24306
  var o = e[0], a = e[1], i = e[2], s = e[3];
24315
24307
  this.outputShape = [o, n, t, s];
@@ -24348,7 +24340,7 @@ var UE = function(e, n, t) {
24348
24340
  setOutput(newValue);
24349
24341
  }
24350
24342
  `;
24351
- }, iR = function(e, n, t, r) {
24343
+ }, i5 = function(e, n, t, r) {
24352
24344
  this.variableNames = ["A"], this.packedInputs = !0, this.packedOutput = !0, this.outputShape = [];
24353
24345
  var o = e[0], a = e[1], i = e[2], s = e[3];
24354
24346
  this.outputShape = [o, n, t, s];
@@ -24431,7 +24423,7 @@ var UE = function(e, n, t) {
24431
24423
  setOutput(newValue);
24432
24424
  }
24433
24425
  `;
24434
- }, sR = function(e, n, t) {
24426
+ }, s5 = function(e, n, t) {
24435
24427
  this.variableNames = ["dy"], this.outputShape = [], this.outputShape = n.shape;
24436
24428
  var r = n.shape, o = r[1], a = r[2], i = e.shape, s = i[1], u = i[2], l = [t && s > 1 ? o - 1 : o, t && u > 1 ? a - 1 : a], c = [t && s > 1 ? s - 1 : s, t && u > 1 ? u - 1 : u], d = l[0] / c[0], f = l[1] / c[1], h = 1 / d, p = 1 / f, v = 2 * Math.ceil(h) + 2, m = 2 * Math.ceil(p) + 2;
24437
24429
  this.userCode = `
@@ -24505,7 +24497,7 @@ var UE = function(e, n, t) {
24505
24497
  setOutput(accumulator);
24506
24498
  }
24507
24499
  `;
24508
- }, uR = function(e, n, t, r) {
24500
+ }, u5 = function(e, n, t, r) {
24509
24501
  this.variableNames = ["A"], this.outputShape = [];
24510
24502
  var o = e[0], a = e[1], i = e[2], s = e[3];
24511
24503
  this.outputShape = [o, n, t, s];
@@ -24534,7 +24526,7 @@ var UE = function(e, n, t) {
24534
24526
  setOutput(newValue);
24535
24527
  }
24536
24528
  `;
24537
- }, lR = function(e, n) {
24529
+ }, l5 = function(e, n) {
24538
24530
  this.variableNames = ["x"];
24539
24531
  var t = e.length;
24540
24532
  if (t > 4) throw new Error("WebGL backend: Reverse of rank-" + t + " tensor is not yet supported");
@@ -24556,7 +24548,7 @@ var UE = function(e, n, t) {
24556
24548
  setOutput(getX(` + e[0] + ` - coord - 1));
24557
24549
  }
24558
24550
  `;
24559
- }, cR = function(e, n) {
24551
+ }, c5 = function(e, n) {
24560
24552
  this.variableNames = ["x"], this.packedInputs = !0, this.packedOutput = !0;
24561
24553
  var t = e.length;
24562
24554
  if (t > 4) throw new Error("WebGL backend: Reverse of rank-" + t + " tensor is not yet supported");
@@ -24635,7 +24627,7 @@ var UE = function(e, n, t) {
24635
24627
  setOutput(mix(getDefaultValue(), sum, float(found)));
24636
24628
  }
24637
24629
  `;
24638
- }, dR = function(e, n) {
24630
+ }, d5 = function(e, n) {
24639
24631
  this.variableNames = ["x", "segmentIds"];
24640
24632
  var t = e.windowSize, r = e.batchSize, o = e.inSize, a = e.numSegments, i = a * Math.ceil(o / t);
24641
24633
  this.outputShape = [r, i];
@@ -24749,7 +24741,7 @@ var UE = function(e, n, t) {
24749
24741
  setOutput(sumValue);
24750
24742
  }
24751
24743
  `;
24752
- }, fR = function(e, n, t) {
24744
+ }, f5 = function(e, n, t) {
24753
24745
  var r, o;
24754
24746
  if (this.variableNames = ["c", "a", "b"], this.outputShape = n, t > 4) throw Error("Where for rank " + t + " is not yet supported");
24755
24747
  if (t === 1) o = "resRC", r = "resRC";
@@ -24769,7 +24761,7 @@ var UE = function(e, n, t) {
24769
24761
  }
24770
24762
  }
24771
24763
  `;
24772
- }, hR = function() {
24764
+ }, h5 = function() {
24773
24765
  function e(n) {
24774
24766
  this.variableNames = ["source"], this.outputShape = n, this.rank = n.length;
24775
24767
  var t, r = Lt(this.rank), o = "uniform int start[" + this.rank + "];", a = function(i) {
@@ -24801,7 +24793,7 @@ var UE = function(e, n, t) {
24801
24793
  t.startLoc == null && (t.startLoc = r.getUniformLocationNoThrow(o, "start"), t.startLoc == null) || r.gl.uniform1iv(t.startLoc, n);
24802
24794
  };
24803
24795
  }, e;
24804
- }(), Al = ["x", "y", "z", "w", "u", "v"], pR = function() {
24796
+ }(), Al = ["x", "y", "z", "w", "u", "v"], p5 = function() {
24805
24797
  function e(n) {
24806
24798
  this.variableNames = ["source"], this.packedInputs = !0, this.packedOutput = !0, this.outputShape = n, this.rank = n.length;
24807
24799
  var t = Lt(this.rank), r = Pn("coords", this.rank), o = Pn("sourceLoc", this.rank), a = this.rank === 1 ? "sourceLoc" : "vec2(" + o.slice(-2).join() + ")", i = "getChannel(getSource(" + o.join() + "), " + a + ")", s = `
@@ -24848,7 +24840,7 @@ var UE = function(e, n, t) {
24848
24840
  t.startLoc == null && (t.startLoc = r.getUniformLocationNoThrow(o, "start"), t.startLoc == null) || r.gl.uniform1iv(t.startLoc, n);
24849
24841
  };
24850
24842
  }, e;
24851
- }(), vR = function(e, n, t) {
24843
+ }(), v5 = function(e, n, t) {
24852
24844
  this.variableNames = ["x"], this.outputShape = t;
24853
24845
  var r = t.length, o = Lt(t.length), a = Lt(t.length), i = "";
24854
24846
  if (r === 1) i = "coords * strides + begin";
@@ -24867,7 +24859,7 @@ var UE = function(e, n, t) {
24867
24859
  setOutput(getX(` + i + `));
24868
24860
  }
24869
24861
  `;
24870
- }, mR = function() {
24862
+ }, m5 = function() {
24871
24863
  function e(n) {
24872
24864
  this.gpgpu = n, this.numUsedTextures = 0, this.numFreeTextures = 0, this.freeTextures = {}, this.logEnabled = !1, this.usedTextures = {};
24873
24865
  }
@@ -24920,7 +24912,7 @@ function rp(e, n) {
24920
24912
  function op(e, n, t) {
24921
24913
  return e[0] + "_" + e[1] + "_" + n + "_" + t;
24922
24914
  }
24923
- var gR = function(e, n) {
24915
+ var g5 = function(e, n) {
24924
24916
  this.variableNames = ["A"];
24925
24917
  for (var t = new Array(e.length), r = 0; r < t.length; r++) t[r] = e[r] * n[r];
24926
24918
  this.outputShape = t, this.rank = t.length;
@@ -24937,7 +24929,7 @@ var gR = function(e, n) {
24937
24929
  setOutput(getA(` + a + `));
24938
24930
  }
24939
24931
  `;
24940
- }, yR = function(e, n) {
24932
+ }, y5 = function(e, n) {
24941
24933
  this.variableNames = ["A"];
24942
24934
  for (var t = new Array(e.length), r = 0; r < t.length; r++) t[r] = e[n[r]];
24943
24935
  this.outputShape = t, this.rank = t.length;
@@ -24953,7 +24945,7 @@ var gR = function(e, n) {
24953
24945
  setOutput(getA(` + a + `));
24954
24946
  }
24955
24947
  `;
24956
- }, bR = function(e, n) {
24948
+ }, b5 = function(e, n) {
24957
24949
  this.variableNames = ["A"], this.packedInputs = !0, this.packedOutput = !0;
24958
24950
  for (var t = new Array(e.length), r = 0; r < t.length; r++) t[r] = e[n[r]];
24959
24951
  if (this.outputShape = t, this.rank = t.length, this.rank > 6) throw Error("Packed transpose for rank " + this.rank + " is not yet supported.");
@@ -24991,37 +24983,37 @@ var gR = function(e, n) {
24991
24983
  setOutput(y);
24992
24984
  }
24993
24985
  `;
24994
- }, pr = "if (isnan(x)) return x;", wR = "return x;", ap = "return abs(x);", cg = pr + `
24986
+ }, pr = "if (isnan(x)) return x;", w5 = "return x;", ap = "return abs(x);", cg = pr + `
24995
24987
  return (x < 0.0) ? 0.0 : x;
24996
24988
  `, dg = pr + `
24997
24989
  return (x < 0.0) ? 0.0 : min(6.0, x);
24998
- `, fg = "return (x >= 0.0) ? x : (exp(x) - 1.0);", xR = `
24990
+ `, fg = "return (x >= 0.0) ? x : (exp(x) - 1.0);", x5 = `
24999
24991
  // Stable and Attracting Fixed Point (0, 1) for Normalized Weights.
25000
24992
  // see: https://arxiv.org/abs/1706.02515
25001
24993
  float scaleAlpha = ` + Sd + `;
25002
24994
  float scale = ` + Ed + `;
25003
24995
  return (x >= 0.0) ? scale * x : scaleAlpha * (exp(x) - 1.0);
25004
- `, ip = "return -x;", sp = "return ceil(x);", up = "return floor(x);", lp = "return exp(x);", cp = "return exp(x) - 1.0;", _R = pr + `
24996
+ `, ip = "return -x;", sp = "return ceil(x);", up = "return floor(x);", lp = "return exp(x);", cp = "return exp(x) - 1.0;", _5 = pr + `
25005
24997
  return sin(x);
25006
- `, CR = pr + `
24998
+ `, C5 = pr + `
25007
24999
  return cos(x);
25008
- `, kR = pr + `
25000
+ `, k5 = pr + `
25009
25001
  if (abs(x) > 1.) {
25010
25002
  return NAN;
25011
25003
  }
25012
25004
  return asin(x);
25013
- `, SR = pr + `
25005
+ `, S5 = pr + `
25014
25006
  if (abs(x) > 1.) {
25015
25007
  return NAN;
25016
25008
  }
25017
25009
  return acos(x);
25018
- `, ER = pr + `
25010
+ `, E5 = pr + `
25019
25011
  return atan(x);
25020
- `, RR = pr + "return log(x + sqrt(x * x + 1.0));", IR = pr + `
25012
+ `, R5 = pr + "return log(x + sqrt(x * x + 1.0));", I5 = pr + `
25021
25013
  if (x < 1.0) return NAN;
25022
- return log(x + sqrt(x * x - 1.0));`, TR = pr + `
25014
+ return log(x + sqrt(x * x - 1.0));`, T5 = pr + `
25023
25015
  if ((x < -1.0) || (x > 1.0)) return NAN;
25024
- return (log(1.0 + x) - log(1.0 - x)) / 2.0;`, Gi = "return x;", AR = "return x;", hg = `
25016
+ return (log(1.0 + x) - log(1.0 - x)) / 2.0;`, Ki = "return x;", A5 = "return x;", hg = `
25025
25017
  vec4 result = x * vec4(greaterThanEqual(x, vec4(0.0)));
25026
25018
  bvec4 isNaN = isnan(x);
25027
25019
 
@@ -25063,7 +25055,7 @@ var gR = function(e, n) {
25063
25055
  setOutput(y);
25064
25056
  }
25065
25057
  `;
25066
- }, DR = function(e) {
25058
+ }, D5 = function(e) {
25067
25059
  this.variableNames = ["A"], this.packedInputs = !0, this.packedOutput = !1, this.outputShape = e;
25068
25060
  var n = e.length, t = Pn("rc", n), r = Lt(n), o = function(s, u) {
25069
25061
  if (s === 1) return "rc";
@@ -25078,24 +25070,24 @@ var gR = function(e, n) {
25078
25070
  setOutput(getChannel(packedInput, ` + i + `));
25079
25071
  }
25080
25072
  `;
25081
- }, Ki = {};
25082
- function Xi(e, n) {
25083
- if (n === void 0 && (n = !1), e === "linear") return n ? AR : wR;
25073
+ }, Xi = {};
25074
+ function Yi(e, n) {
25075
+ if (n === void 0 && (n = !1), e === "linear") return n ? A5 : w5;
25084
25076
  if (e === "relu") return n ? hg : cg;
25085
25077
  if (e === "elu") return n ? vg : fg;
25086
25078
  if (e === "relu6") return n ? pg : dg;
25087
25079
  if (e === "prelu") return n ? lg : ug;
25088
25080
  throw new Error("Activation " + e + " has not been implemented for the WebGL backend.");
25089
25081
  }
25090
- var MR = 600, FR = function(e) {
25082
+ var M5 = 600, F5 = function(e) {
25091
25083
  function n(t) {
25092
25084
  var r, o = e.call(this) || this;
25093
25085
  if (o.pendingRead = /* @__PURE__ */ new WeakMap(), o.pendingDisposal = /* @__PURE__ */ new WeakSet(), o.dataRefCount = /* @__PURE__ */ new WeakMap(), o.numBytesInGPU = 0, o.uploadWaitMs = 0, o.downloadWaitMs = 0, o.warnedAboutMemory = !1, o.pendingDeletes = 0, o.disposed = !1, !ie().getBool("HAS_WEBGL")) throw new Error("WebGL is not supported on this device");
25094
25086
  if (t == null) {
25095
25087
  var a = Dr(ie().getNumber("WEBGL_VERSION"));
25096
- o.binaryCache = ((r = ie().getNumber("WEBGL_VERSION")) in Ki || (Ki[r] = {}), Ki[r]), o.gpgpu = new HE(a), o.canvas = a.canvas, o.gpgpuCreatedLocally = !0;
25088
+ o.binaryCache = ((r = ie().getNumber("WEBGL_VERSION")) in Xi || (Xi[r] = {}), Xi[r]), o.gpgpu = new HE(a), o.canvas = a.canvas, o.gpgpuCreatedLocally = !0;
25097
25089
  } else o.gpgpu = t, o.binaryCache = {}, o.gpgpuCreatedLocally = !1, o.canvas = t.gl.canvas;
25098
- return o.textureManager = new mR(o.gpgpu), o.numMBBeforeWarning = ie().global.screen == null ? 1024 : ie().global.screen.height * ie().global.screen.width * window.devicePixelRatio * MR / 1024 / 1024, o.texData = new Ym(o, U), o;
25090
+ return o.textureManager = new m5(o.gpgpu), o.numMBBeforeWarning = ie().global.screen == null ? 1024 : ie().global.screen.height * ie().global.screen.width * window.devicePixelRatio * M5 / 1024 / 1024, o.texData = new Ym(o, U), o;
25099
25091
  }
25100
25092
  return hr(n, e), n.prototype.numDataIds = function() {
25101
25093
  return this.texData.numDataIds() + (this.cpuBackend ? this.cpuBackend.numDataIds() : 0) - this.pendingDeletes;
@@ -25110,7 +25102,7 @@ var MR = 600, FR = function(e) {
25110
25102
  var r = this.texData.get(t), o = r.values, a = r.dtype, i = r.complexTensors, s = r.slice, u = r.shape, l = r.isPacked;
25111
25103
  if (s != null) {
25112
25104
  var c = void 0;
25113
- c = l ? new Ka(u, Gi) : new lt(u, Gi);
25105
+ c = l ? new Ka(u, Ki) : new lt(u, Ki);
25114
25106
  var d = this.runWebGLProgram(c, [{ dataId: t, shape: u, dtype: a }], a), f = this.readSync(d.dataId);
25115
25107
  return this.disposeData(d.dataId), f;
25116
25108
  }
@@ -25127,7 +25119,7 @@ var MR = 600, FR = function(e) {
25127
25119
  if (this.pendingRead.has(t)) return r = this.pendingRead.get(t), [2, new Promise(function(S) {
25128
25120
  return r.push(S);
25129
25121
  })];
25130
- if (o = this.texData.get(t), a = o.values, i = o.shape, s = o.slice, u = o.dtype, l = o.complexTensors, c = o.isPacked, s != null) return d = void 0, d = c ? new Ka(i, Gi) : new lt(i, Gi), f = this.runWebGLProgram(d, [{ dataId: t, shape: i, dtype: u }], u), h = this.read(f.dataId), this.disposeData(f.dataId), [2, h];
25122
+ if (o = this.texData.get(t), a = o.values, i = o.shape, s = o.slice, u = o.dtype, l = o.complexTensors, c = o.isPacked, s != null) return d = void 0, d = c ? new Ka(i, Ki) : new lt(i, Ki), f = this.runWebGLProgram(d, [{ dataId: t, shape: i, dtype: u }], u), h = this.read(f.dataId), this.disposeData(f.dataId), [2, h];
25131
25123
  if (a != null) return [2, this.convertAndCacheOnCPU(t)];
25132
25124
  if (!ie().getBool("WEBGL_DOWNLOAD_FLOAT_ENABLED") && ie().getNumber("WEBGL_VERSION") === 2) throw new Error("tensor.data() with WEBGL_DOWNLOAD_FLOAT_ENABLED=false and WEBGL_VERSION=2 not yet supported.");
25133
25125
  return p = null, u !== "complex64" && ie().get("WEBGL_BUFFER_SUPPORTED") && (v = this.decode(t), m = this.texData.get(v.dataId), p = (R = this.gpgpu).createBufferFromTexture.apply(R, [m.texture].concat(Ja(i)))), this.pendingRead.set(t, []), u === "complex64" ? [3, 2] : [4, this.gpgpu.createAndWaitForFence()];
@@ -25242,7 +25234,7 @@ var MR = 600, FR = function(e) {
25242
25234
  if (Be(o) === 0) return wn([], o, t.dtype);
25243
25235
  var a = this.texData.get(t.dataId).isPacked, i = Km(t.shape, r, o);
25244
25236
  if (a || !i) {
25245
- var s = ie().getBool("WEBGL_PACK_ARRAY_OPERATIONS") ? new pR(o) : new hR(o), u = s.getCustomSetupFunc(r);
25237
+ var s = ie().getBool("WEBGL_PACK_ARRAY_OPERATIONS") ? new p5(o) : new h5(o), u = s.getCustomSetupFunc(r);
25246
25238
  return this.compileAndRun(s, [t], null, u);
25247
25239
  }
25248
25240
  return this.uploadToGPU(t.dataId), this.shallowSlice(t, r, o);
@@ -25259,10 +25251,10 @@ var MR = 600, FR = function(e) {
25259
25251
  if (i.some(function(u) {
25260
25252
  return u === 0;
25261
25253
  })) return wn([], i);
25262
- var s = new vR(r, a, i);
25254
+ var s = new v5(r, a, i);
25263
25255
  return this.compileAndRun(s, [t]);
25264
25256
  }, n.prototype.reverse = function(t, r) {
25265
- var o = ie().getBool("WEBGL_PACK_ARRAY_OPERATIONS") ? new cR(t.shape, r) : new lR(t.shape, r);
25257
+ var o = ie().getBool("WEBGL_PACK_ARRAY_OPERATIONS") ? new c5(t.shape, r) : new l5(t.shape, r);
25266
25258
  return this.compileAndRun(o, [t]);
25267
25259
  }, n.prototype.concat = function(t, r) {
25268
25260
  if (t[0].dtype === "complex64") {
@@ -25308,7 +25300,7 @@ var MR = 600, FR = function(e) {
25308
25300
  var h = bn(t.dtype, r.dtype), p = new Rl(t.shape, [l, i, s], o, a);
25309
25301
  return this.compileAndRun(p, [t, r], h);
25310
25302
  }, n.prototype.fusedBatchMatMul = function(t) {
25311
- var r = t.a, o = t.b, a = t.transposeA, i = t.transposeB, s = t.bias, u = t.activation, l = t.preluActivationWeights, c = a ? r.shape[2] : r.shape[1], d = i ? o.shape[1] : o.shape[2], f = r.shape[0], h = bn(r.dtype, o.dtype), p = s != null, v = l != null, m = u ? Xi(u, !0) : null, g = new Rl(r.shape, [f, c, d], a, i, p, m, v), w = [r, o];
25303
+ var r = t.a, o = t.b, a = t.transposeA, i = t.transposeB, s = t.bias, u = t.activation, l = t.preluActivationWeights, c = a ? r.shape[2] : r.shape[1], d = i ? o.shape[1] : o.shape[2], f = r.shape[0], h = bn(r.dtype, o.dtype), p = s != null, v = l != null, m = u ? Yi(u, !0) : null, g = new Rl(r.shape, [f, c, d], a, i, p, m, v), w = [r, o];
25312
25304
  return s && w.push(s), l && w.push(l), this.compileAndRun(g, w, h);
25313
25305
  }, n.prototype.multiply = function(t, r) {
25314
25306
  if (t.dtype === "complex64") {
@@ -25342,14 +25334,14 @@ var MR = 600, FR = function(e) {
25342
25334
  });
25343
25335
  return rg(ot(t.shape, t.dtype, o), r);
25344
25336
  }
25345
- var a = new gR(t.shape, r);
25337
+ var a = new g5(t.shape, r);
25346
25338
  return this.compileAndRun(a, [t]);
25347
25339
  }, n.prototype.pad = function(t, r, o) {
25348
- var a = ie().getBool("WEBGL_PACK_ARRAY_OPERATIONS") ? new tR(t.shape, r, o) : new eR(t.shape, r, o);
25340
+ var a = ie().getBool("WEBGL_PACK_ARRAY_OPERATIONS") ? new t5(t.shape, r, o) : new e5(t.shape, r, o);
25349
25341
  return this.compileAndRun(a, [t]);
25350
25342
  }, n.prototype.transpose = function(t, r) {
25351
25343
  if (this.shouldExecuteOnCPU([t])) return this.cpuBackend.transpose(t, r);
25352
- var o = ie().getBool("WEBGL_PACK_ARRAY_OPERATIONS") ? new bR(t.shape, r) : new yR(t.shape, r);
25344
+ var o = ie().getBool("WEBGL_PACK_ARRAY_OPERATIONS") ? new b5(t.shape, r) : new y5(t.shape, r);
25353
25345
  return this.compileAndRun(o, [t]);
25354
25346
  }, n.prototype.gather = function(t, r, o) {
25355
25347
  if (this.shouldExecuteOnCPU([t, r])) return this.cpuBackend.gather(t, r, o);
@@ -25375,7 +25367,7 @@ var MR = 600, FR = function(e) {
25375
25367
  var u = t.pad(i), l = Bs(u.shape, r, a, !1), c = Os(l.length, r.length, !1), d = Ns(u.shape, r, a, !1);
25376
25368
  return u.reshape(l).transpose(c).reshape(d);
25377
25369
  }, n.prototype.reduce = function(t, r, o) {
25378
- var a = t.shape[0], i = t.shape[1], s = kl(i), u = new nR({ windowSize: s, inSize: i, batchSize: a }, r), l = this.compileAndRun(u, [t], o);
25370
+ var a = t.shape[0], i = t.shape[1], s = kl(i), u = new n5({ windowSize: s, inSize: i, batchSize: a }, r), l = this.compileAndRun(u, [t], o);
25379
25371
  return l.shape[1] === 1 ? l : this.reduce(l, r, o);
25380
25372
  }, n.prototype.argReduce = function(t, r, o) {
25381
25373
  o === void 0 && (o = null);
@@ -25410,7 +25402,7 @@ var MR = 600, FR = function(e) {
25410
25402
  var p, v = !1;
25411
25403
  for (f <= Gm ? (p = f, v = !0) : p = mc(f, Math.floor(Math.sqrt(f))); !v; ) p > h || p === f ? v = !0 : p = mc(f, p + 1);
25412
25404
  return p;
25413
- }(u, i), c = new dR({ windowSize: l, inSize: u, batchSize: s, numSegments: i }), d = this.compileAndRun(c, [t, o], a);
25405
+ }(u, i), c = new d5({ windowSize: l, inSize: u, batchSize: s, numSegments: i }), d = this.compileAndRun(c, [t, o], a);
25414
25406
  return d.shape[1] === i ? d : (o = Ps(0, i).tile([u / l]), this.segOpCompute(d, r, o, a, i));
25415
25407
  }, n.prototype.argMinMaxReduce = function(t, r, o) {
25416
25408
  var a = [r];
@@ -25486,7 +25478,7 @@ var MR = 600, FR = function(e) {
25486
25478
  var o = new Gt("return float(a >= 1.0 || b >= 1.0);", t.shape, r.shape);
25487
25479
  return this.compileAndRun(o, [t, r], "bool");
25488
25480
  }, n.prototype.select = function(t, r, o) {
25489
- var a = new fR(t.rank, r.shape, r.rank);
25481
+ var a = new f5(t.rank, r.shape, r.rank);
25490
25482
  return this.compileAndRun(a, [t, r, o], bn(r.dtype, o.dtype));
25491
25483
  }, n.prototype.where = function(t) {
25492
25484
  Ms("tf.where() in webgl locks the UI thread. Call tf.whereAsync() instead");
@@ -25805,7 +25797,7 @@ return (round(mod(b, 2.0)) != 1) ?
25805
25797
  `, t.shape, r.shape) : new Gt("return (b >= 1.0) ? a : a * (b + 1.0);", t.shape, r.shape);
25806
25798
  return this.compileAndRun(o, [t, r]);
25807
25799
  }, n.prototype.selu = function(t) {
25808
- var r = new lt(t.shape, xR);
25800
+ var r = new lt(t.shape, x5);
25809
25801
  return this.compileAndRun(r, [t]);
25810
25802
  }, n.prototype.int = function(t) {
25811
25803
  var r = new lt(t.shape, "return float(int(x));");
@@ -25848,22 +25840,22 @@ return (round(mod(b, 2.0)) != 1) ?
25848
25840
  `);
25849
25841
  return this.compileAndRun(r, [t]);
25850
25842
  }, n.prototype.sin = function(t) {
25851
- var r = new lt(t.shape, _R);
25843
+ var r = new lt(t.shape, _5);
25852
25844
  return this.compileAndRun(r, [t]);
25853
25845
  }, n.prototype.cos = function(t) {
25854
- var r = new lt(t.shape, CR);
25846
+ var r = new lt(t.shape, C5);
25855
25847
  return this.compileAndRun(r, [t]);
25856
25848
  }, n.prototype.tan = function(t) {
25857
25849
  var r = new lt(t.shape, "return tan(x);");
25858
25850
  return this.compileAndRun(r, [t]);
25859
25851
  }, n.prototype.asin = function(t) {
25860
- var r = new lt(t.shape, kR);
25852
+ var r = new lt(t.shape, k5);
25861
25853
  return this.compileAndRun(r, [t]);
25862
25854
  }, n.prototype.acos = function(t) {
25863
- var r = new lt(t.shape, SR);
25855
+ var r = new lt(t.shape, S5);
25864
25856
  return this.compileAndRun(r, [t]);
25865
25857
  }, n.prototype.atan = function(t) {
25866
- var r = new lt(t.shape, ER);
25858
+ var r = new lt(t.shape, E5);
25867
25859
  return this.compileAndRun(r, [t]);
25868
25860
  }, n.prototype.atan2 = function(t, r) {
25869
25861
  var o = ie().getBool("WEBGL_PACK_BINARY_OPERATIONS") ? new qr(`
@@ -25902,13 +25894,13 @@ return (round(mod(b, 2.0)) != 1) ?
25902
25894
  `);
25903
25895
  return this.compileAndRun(r, [t]);
25904
25896
  }, n.prototype.asinh = function(t) {
25905
- var r = new lt(t.shape, RR);
25897
+ var r = new lt(t.shape, R5);
25906
25898
  return this.compileAndRun(r, [t]);
25907
25899
  }, n.prototype.acosh = function(t) {
25908
- var r = new lt(t.shape, IR);
25900
+ var r = new lt(t.shape, I5);
25909
25901
  return this.compileAndRun(r, [t]);
25910
25902
  }, n.prototype.atanh = function(t) {
25911
- var r = new lt(t.shape, TR);
25903
+ var r = new lt(t.shape, T5);
25912
25904
  return this.compileAndRun(r, [t]);
25913
25905
  }, n.prototype.erf = function(t) {
25914
25906
  var r = new lt(t.shape, `
@@ -25942,7 +25934,7 @@ return (round(mod(b, 2.0)) != 1) ?
25942
25934
  return this.reshape(this.fusedBatchMatMul({ a: g, b: w, transposeA: !1, transposeB: !1, bias: a, activation: i, preluActivationWeights: s }), o.outShape);
25943
25935
  }
25944
25936
  var b = h ? u[0] * u[1] * (u[2] + 1) : u[0] * u[2] * (u[3] + 1), y = { dataId: t.dataId, shape: [1, b, o.inChannels], dtype: t.dtype }, x = l.shape;
25945
- l.shape = l.shape.slice(), l.shape[l.shape.length - 2]++, F(Ui(l.shape, y.shape), function() {
25937
+ l.shape = l.shape.slice(), l.shape[l.shape.length - 2]++, F(ji(l.shape, y.shape), function() {
25946
25938
  return "packed reshape " + l.shape + " to " + y.shape + " isn't free";
25947
25939
  });
25948
25940
  var _ = this.reshape(r, [1, o.inChannels, o.outChannels]), E = this.fusedBatchMatMul({ a: y, b: _, transposeA: !1, transposeB: !1, bias: a, activation: i, preluActivationWeights: s }), R = this.texData.get(E.dataId);
@@ -25950,7 +25942,7 @@ return (round(mod(b, 2.0)) != 1) ?
25950
25942
  return "batchMatMul result is expected to be packed";
25951
25943
  }), l.shape = x, R.shape = o.outShape, U.makeTensorFromDataId(E.dataId, o.outShape, E.dtype);
25952
25944
  }, n.prototype.conv2dWithIm2Row = function(t, r, o, a, i, s) {
25953
- var u = o.filterWidth, l = o.filterHeight, c = o.inChannels, d = o.outWidth, f = o.outHeight, h = o.dataFormat === "channelsLast", p = u * l * c, v = f * d, m = [p, v], g = t.squeeze([0]), w = r.reshape([1, p, -1]), b = new UE(m, g.shape, o), y = this.compileAndRun(b, [g]).reshape([1, m[0], m[1]]), x = a != null, _ = s != null, E = i ? Xi(i, !0) : null, R = new Rl(y.shape, [1, v, o.outChannels], !0, !1, x, E, _), C = [y, w];
25945
+ var u = o.filterWidth, l = o.filterHeight, c = o.inChannels, d = o.outWidth, f = o.outHeight, h = o.dataFormat === "channelsLast", p = u * l * c, v = f * d, m = [p, v], g = t.squeeze([0]), w = r.reshape([1, p, -1]), b = new UE(m, g.shape, o), y = this.compileAndRun(b, [g]).reshape([1, m[0], m[1]]), x = a != null, _ = s != null, E = i ? Yi(i, !0) : null, R = new Rl(y.shape, [1, v, o.outChannels], !0, !1, x, E, _), C = [y, w];
25954
25946
  a && C.push(a), _ && C.push(s);
25955
25947
  var S = this.compileAndRun(R, C);
25956
25948
  return h ? S.reshape([1, f, d, o.outChannels]) : S.reshape([1, o.outChannels, f, d]);
@@ -25958,7 +25950,7 @@ return (round(mod(b, 2.0)) != 1) ?
25958
25950
  var r = t.input, o = t.filter, a = t.convInfo, i = t.bias, s = t.activation, u = t.preluActivationWeights;
25959
25951
  if (a.filterHeight === 1 && a.filterWidth === 1 && a.dilationHeight === 1 && a.dilationWidth === 1 && a.strideHeight === 1 && a.strideWidth === 1 && (a.padInfo.type === "SAME" || a.padInfo.type === "VALID")) return this.conv2dByMatMul(r, o, a, i, s, u);
25960
25952
  if (ie().getBool("WEBGL_CONV_IM2COL") && r.shape[0] === 1) return this.conv2dWithIm2Row(r, o, a, i, s, u);
25961
- var l = i != null, c = u != null, d = s ? Xi(s, !1) : null, f = new Yh(a, l, d, c), h = [r, o];
25953
+ var l = i != null, c = u != null, d = s ? Yi(s, !1) : null, f = new Yh(a, l, d, c), h = [r, o];
25962
25954
  return i && h.push(i), u && h.push(u), this.compileAndRun(f, h);
25963
25955
  }, n.prototype.conv2d = function(t, r, o) {
25964
25956
  if (o.filterHeight === 1 && o.filterWidth === 1 && o.dilationHeight === 1 && o.dilationWidth === 1 && o.strideHeight === 1 && o.strideWidth === 1 && (o.padInfo.type === "SAME" || o.padInfo.type === "VALID")) return this.conv2dByMatMul(t, r, o);
@@ -25972,7 +25964,7 @@ return (round(mod(b, 2.0)) != 1) ?
25972
25964
  var a = new iE(o);
25973
25965
  return this.compileAndRun(a, [t, r]);
25974
25966
  }, n.prototype.fusedDepthwiseConv2D = function(t) {
25975
- var r, o = t.input, a = t.filter, i = t.convInfo, s = t.bias, u = t.activation, l = t.preluActivationWeights, c = ie().getBool("WEBGL_PACK_DEPTHWISECONV") && i.strideWidth <= 2 && i.outChannels / i.inChannels == 1, d = u ? Xi(u, c) : null, f = [o, a], h = s != null, p = l != null;
25967
+ var r, o = t.input, a = t.filter, i = t.convInfo, s = t.bias, u = t.activation, l = t.preluActivationWeights, c = ie().getBool("WEBGL_PACK_DEPTHWISECONV") && i.strideWidth <= 2 && i.outChannels / i.inChannels == 1, d = u ? Yi(u, c) : null, f = [o, a], h = s != null, p = l != null;
25976
25968
  return h && f.push(s), p && f.push(l), c ? (r = new Zh(i, h, d, p), this.compileAndRun(r, f)) : (r = new Qh(i, h, d, p), this.compileAndRun(r, f));
25977
25969
  }, n.prototype.depthwiseConv2D = function(t, r, o) {
25978
25970
  var a;
@@ -26027,22 +26019,22 @@ return (round(mod(b, 2.0)) != 1) ?
26027
26019
  return s.dispose(), l;
26028
26020
  }, n.prototype.reshape = function(t, r) {
26029
26021
  var o = this.texData.get(t.dataId);
26030
- if (o.isPacked && !Ui(t.shape, r) && (o.texture === null || !Ui(o.shape, r))) {
26022
+ if (o.isPacked && !ji(t.shape, r) && (o.texture === null || !ji(o.shape, r))) {
26031
26023
  var a = this.packedReshape(t, r);
26032
26024
  return U.makeTensorFromDataId(a.dataId, a.shape, a.dtype);
26033
26025
  }
26034
26026
  return kc(t, r);
26035
26027
  }, n.prototype.resizeBilinear = function(t, r, o, a) {
26036
- var i = ie().getBool("WEBGL_PACK_IMAGE_OPERATIONS") ? new iR(t.shape, r, o, a) : new aR(t.shape, r, o, a);
26028
+ var i = ie().getBool("WEBGL_PACK_IMAGE_OPERATIONS") ? new i5(t.shape, r, o, a) : new a5(t.shape, r, o, a);
26037
26029
  return this.compileAndRun(i, [t], "float32");
26038
26030
  }, n.prototype.resizeBilinearBackprop = function(t, r, o) {
26039
- var a = new oR(t, r, o);
26031
+ var a = new o5(t, r, o);
26040
26032
  return this.compileAndRun(a, [t]);
26041
26033
  }, n.prototype.resizeNearestNeighbor = function(t, r, o, a) {
26042
- var i = new uR(t.shape, r, o, a);
26034
+ var i = new u5(t.shape, r, o, a);
26043
26035
  return this.compileAndRun(i, [t]);
26044
26036
  }, n.prototype.resizeNearestNeighborBackprop = function(t, r, o) {
26045
- var a = new sR(t, r, o);
26037
+ var a = new s5(t, r, o);
26046
26038
  return this.compileAndRun(a, [t]);
26047
26039
  }, n.prototype.multinomial = function(t, r, o, a) {
26048
26040
  var i = r ? t : jr(t), s = i.shape[0], u = i.shape[1], l = new QE(s, u, o), c = l.getCustomSetupFunc(a);
@@ -26085,7 +26077,7 @@ return (round(mod(b, 2.0)) != 1) ?
26085
26077
  var o = r.shape, a = o[o.length - 1], i = jm(t, r), s = i[0], u = i[1], l = i[2], c = i[3], d = r.reshape([u, a]), f = t.reshape([t.size / l, l]), h = new RE(a, c, [u, l]);
26086
26078
  return this.compileAndRun(h, [f, d]).reshape(s);
26087
26079
  }, n.prototype.fill = function(t, r, o) {
26088
- if ((o = o || ki(r)) === "string") {
26080
+ if ((o = o || Si(r)) === "string") {
26089
26081
  var a = Is(o, Be(t));
26090
26082
  return a.fill(r), U.makeTensor(a, t, o, this);
26091
26083
  }
@@ -26105,13 +26097,13 @@ return (round(mod(b, 2.0)) != 1) ?
26105
26097
  var o = this.makeTensorInfo(t, r).dataId;
26106
26098
  return U.makeTensorFromDataId(o, t, r, this);
26107
26099
  }, n.prototype.unpackTensor = function(t) {
26108
- var r = new DR(t.shape);
26100
+ var r = new D5(t.shape);
26109
26101
  return this.runWebGLProgram(r, [t], t.dtype);
26110
26102
  }, n.prototype.packTensor = function(t) {
26111
26103
  var r = new JE(t.shape);
26112
26104
  return this.runWebGLProgram(r, [t], t.dtype, null, !0);
26113
26105
  }, n.prototype.packedReshape = function(t, r) {
26114
- var o = [As(t.shape)].concat(Ds(t.shape)), a = { dtype: t.dtype, shape: o, dataId: t.dataId }, i = [As(r)].concat(Ds(r)), s = new rR(i, o), u = this.runWebGLProgram(s, [a], t.dtype, null, !0);
26106
+ var o = [As(t.shape)].concat(Ds(t.shape)), a = { dtype: t.dtype, shape: o, dataId: t.dataId }, i = [As(r)].concat(Ds(r)), s = new r5(i, o), u = this.runWebGLProgram(s, [a], t.dtype, null, !0);
26115
26107
  return { dataId: u.dataId, shape: r, dtype: u.dtype };
26116
26108
  }, n.prototype.decode = function(t) {
26117
26109
  var r, o = this.texData.get(t), a = o.isPacked, i = o.shape, s = o.dtype, u = Cl(i);
@@ -26120,13 +26112,13 @@ return (round(mod(b, 2.0)) != 1) ?
26120
26112
  var s = this;
26121
26113
  i === void 0 && (i = !1);
26122
26114
  var u = this.makeTensorInfo(t.outputShape, o), l = this.texData.get(u.dataId);
26123
- if (t.packedOutput && (l.isPacked = !0), t.outPackingScheme === ui.DENSE) {
26115
+ if (t.packedOutput && (l.isPacked = !0), t.outPackingScheme === li.DENSE) {
26124
26116
  var c = Ja(t.outputShape);
26125
26117
  l.texShape = c.map(function(b) {
26126
26118
  return 2 * b;
26127
26119
  });
26128
26120
  }
26129
- if (t.outTexUsage != null && (l.usage = t.outTexUsage), Be(u.shape) === 0) return l.values = ii(u.dtype, 0), u;
26121
+ if (t.outTexUsage != null && (l.usage = t.outTexUsage), Be(u.shape) === 0) return l.values = si(u.dtype, 0), u;
26130
26122
  var d = [], f = r.map(function(b) {
26131
26123
  if (b.dtype === "complex64") throw new Error("GPGPUProgram does not support complex64 input. For complex64 dtypes, please separate the program into real and imaginary parts.");
26132
26124
  var y = s.texData.get(b.dataId);
@@ -26134,7 +26126,7 @@ return (round(mod(b, 2.0)) != 1) ?
26134
26126
  if (!t.packedInputs && Be(b.shape) <= ie().getNumber("WEBGL_SIZE_UPLOAD_UNIFORM")) return { shape: b.shape, texData: null, isUniform: !0, uniformValues: y.values };
26135
26127
  t.packedInputs && (y.isPacked = !0, y.shape = b.shape);
26136
26128
  } else if (!!y.isPacked != !!t.packedInputs) b = y.isPacked ? s.unpackTensor(b) : s.packTensor(b), d.push(b), y = s.texData.get(b.dataId);
26137
- else if (y.isPacked && !Ui(y.shape, b.shape)) {
26129
+ else if (y.isPacked && !ji(y.shape, b.shape)) {
26138
26130
  var x = b, _ = b.shape;
26139
26131
  b.shape = y.shape, b = s.packedReshape(b, _), d.push(b), y = s.texData.get(b.dataId), x.shape = _;
26140
26132
  }
@@ -26218,7 +26210,7 @@ return (round(mod(b, 2.0)) != 1) ?
26218
26210
  var h = o.texShape;
26219
26211
  if (h == null && (h = qS(a, c), o.texShape = h), s != null) {
26220
26212
  var p = Cl(a), v = void 0, m = h[1], g = h[0], w = s instanceof Uint8Array;
26221
- c ? (m = (r = Ei(h[0], h[1]))[0], g = r[1], v = new _E(p, [g, m], w)) : v = new xE(p, [g, m], w);
26213
+ c ? (m = (r = Ri(h[0], h[1]))[0], g = r[1], v = new _E(p, [g, m], w)) : v = new xE(p, [g, m], w);
26222
26214
  var b = this.makeTensorInfo([g, m], i);
26223
26215
  this.texData.get(b.dataId).usage = w ? jn.PIXELS : jn.UPLOAD, this.gpgpu.uploadDenseMatrixToTexture(this.getTexture(b.dataId), m, g, s);
26224
26216
  var y = this.runWebGLProgram(v, [b], i, null, !0), x = this.texData.get(y.dataId);
@@ -26249,14 +26241,14 @@ return (round(mod(b, 2.0)) != 1) ?
26249
26241
  }, n;
26250
26242
  }(Qm);
26251
26243
  Bm() && U.registerBackend("webgl", function() {
26252
- return new FR();
26244
+ return new F5();
26253
26245
  }, 2);
26254
- var PR = z({ square_: function(e) {
26246
+ var P5 = z({ square_: function(e) {
26255
26247
  var n = A(e, "x", "square"), t = [n];
26256
26248
  return U.runKernelFunc(function(r, o) {
26257
26249
  return o([n]), r.square(n);
26258
26250
  }, { x: n }, null, "Square", {}, t, []);
26259
- } }), ci = "SquaredDifference", mg = z({ squaredDifference_: function(e, n) {
26251
+ } }), di = "SquaredDifference", mg = z({ squaredDifference_: function(e, n) {
26260
26252
  var t, r = A(e, "a", "squaredDifference"), o = A(n, "b", "squaredDifference");
26261
26253
  t = Ut(r, o), r = t[0], o = t[1], pt(r.shape, o.shape);
26262
26254
  var a = { a: r, b: o }, i = [r, o];
@@ -26270,8 +26262,8 @@ var PR = z({ square_: function(e) {
26270
26262
  }, b: function() {
26271
26263
  return s.mul(c.sub(l).mul(d));
26272
26264
  } };
26273
- }, ci, {}, i, []);
26274
- } }), BR = z({ abs_: function(e) {
26265
+ }, di, {}, i, []);
26266
+ } }), B5 = z({ abs_: function(e) {
26275
26267
  var n = A(e, "x", "abs");
26276
26268
  return n.dtype === "complex64" ? U.runKernelFunc(function(t) {
26277
26269
  return t.complexAbs(n);
@@ -26284,7 +26276,7 @@ var PR = z({ square_: function(e) {
26284
26276
  return t.mul(o.toFloat().step(-1));
26285
26277
  } };
26286
26278
  }, "Abs");
26287
- } }), OR = z({ acos_: function(e) {
26279
+ } }), O5 = z({ acos_: function(e) {
26288
26280
  var n = A(e, "x", "acos");
26289
26281
  return U.runKernelFunc(function(t, r) {
26290
26282
  var o = t.acos(n);
@@ -26295,7 +26287,7 @@ var PR = z({ square_: function(e) {
26295
26287
  return t.divStrict(we(1).sub(o.toFloat().square()).sqrt()).neg();
26296
26288
  } };
26297
26289
  });
26298
- } }), NR = z({ acosh_: function(e) {
26290
+ } }), N5 = z({ acosh_: function(e) {
26299
26291
  var n = A(e, "x", "acosh");
26300
26292
  return U.runKernelFunc(function(t, r) {
26301
26293
  var o = t.acosh(n);
@@ -26306,7 +26298,7 @@ var PR = z({ square_: function(e) {
26306
26298
  return t.divStrict(o.toFloat().square().sub(1).sqrt());
26307
26299
  } };
26308
26300
  });
26309
- } }), LR = z({ asin_: function(e) {
26301
+ } }), L5 = z({ asin_: function(e) {
26310
26302
  var n = A(e, "x", "asin");
26311
26303
  return U.runKernelFunc(function(t, r) {
26312
26304
  var o = t.asin(n);
@@ -26317,7 +26309,7 @@ var PR = z({ square_: function(e) {
26317
26309
  return t.divStrict(we(1).sub(o.toFloat().square()).sqrt());
26318
26310
  } };
26319
26311
  });
26320
- } }), qR = z({ asinh_: function(e) {
26312
+ } }), q5 = z({ asinh_: function(e) {
26321
26313
  var n = A(e, "x", "asinh");
26322
26314
  return U.runKernelFunc(function(t, r) {
26323
26315
  var o = t.asinh(n);
@@ -26328,7 +26320,7 @@ var PR = z({ square_: function(e) {
26328
26320
  return t.divStrict(we(1).add(o.toFloat().square()).sqrt());
26329
26321
  } };
26330
26322
  });
26331
- } }), VR = z({ atan_: function(e) {
26323
+ } }), V5 = z({ atan_: function(e) {
26332
26324
  var n = A(e, "x", "atan");
26333
26325
  return U.runKernelFunc(function(t, r) {
26334
26326
  var o = t.atan(n);
@@ -26339,7 +26331,7 @@ var PR = z({ square_: function(e) {
26339
26331
  return t.div(o.toFloat().square().add(1));
26340
26332
  } };
26341
26333
  });
26342
- } }), zR = z({ atanh_: function(e) {
26334
+ } }), z5 = z({ atanh_: function(e) {
26343
26335
  var n = A(e, "x", "atanh");
26344
26336
  return U.runKernelFunc(function(t, r) {
26345
26337
  var o = t.atanh(n);
@@ -26350,7 +26342,7 @@ var PR = z({ square_: function(e) {
26350
26342
  return t.div(we(1).sub(o.toFloat().square()));
26351
26343
  } };
26352
26344
  });
26353
- } }), WR = z({ ceil_: function(e) {
26345
+ } }), W5 = z({ ceil_: function(e) {
26354
26346
  var n = A(e, "x", "ceil");
26355
26347
  return U.runKernelFunc(function(t) {
26356
26348
  return t.ceil(n);
@@ -26374,7 +26366,7 @@ var PR = z({ square_: function(e) {
26374
26366
  return i.where(u.greaterEqual(n).logicalAnd(u.lessEqual(t)), yt(i));
26375
26367
  } };
26376
26368
  }, "ClipByValue", a, o);
26377
- } }), $R = z({ cos_: function(e) {
26369
+ } }), $5 = z({ cos_: function(e) {
26378
26370
  var n = A(e, "x", "cos"), t = [n];
26379
26371
  return U.runKernelFunc(function(r, o) {
26380
26372
  var a = r.cos(n);
@@ -26385,7 +26377,7 @@ var PR = z({ square_: function(e) {
26385
26377
  return a.toFloat().sin().neg().mul(r);
26386
26378
  } };
26387
26379
  }, "Cos", {}, t);
26388
- } }), HR = z({ cosh_: function(e) {
26380
+ } }), H5 = z({ cosh_: function(e) {
26389
26381
  var n = A(e, "x", "cosh");
26390
26382
  return U.runKernelFunc(function(t, r) {
26391
26383
  var o = t.cosh(n);
@@ -26396,7 +26388,7 @@ var PR = z({ square_: function(e) {
26396
26388
  return o.toFloat().sinh().mulStrict(t);
26397
26389
  } };
26398
26390
  });
26399
- } }), UR = z({ erf_: function(e) {
26391
+ } }), U5 = z({ erf_: function(e) {
26400
26392
  var n = A(e, "x", "erf");
26401
26393
  return F(n.dtype === "int32" || n.dtype === "float32", function() {
26402
26394
  return "Input dtype must be `int32` or `float32`.";
@@ -26419,7 +26411,7 @@ var PR = z({ square_: function(e) {
26419
26411
  return t.mulStrict(r[0]);
26420
26412
  } };
26421
26413
  }, "Exp", {}, [], [!0]);
26422
- } }), jR = z({ expm1_: function(e) {
26414
+ } }), j5 = z({ expm1_: function(e) {
26423
26415
  var n = A(e, "x", "expm1");
26424
26416
  return U.runKernelFunc(function(t, r) {
26425
26417
  var o = t.expm1(n);
@@ -26430,7 +26422,7 @@ var PR = z({ square_: function(e) {
26430
26422
  return t.mul(o.exp());
26431
26423
  } };
26432
26424
  });
26433
- } }), GR = z({ floor_: function(e) {
26425
+ } }), G5 = z({ floor_: function(e) {
26434
26426
  var n = A(e, "x", "floor");
26435
26427
  return U.runKernelFunc(function(t) {
26436
26428
  return t.floor(n);
@@ -26439,7 +26431,7 @@ var PR = z({ square_: function(e) {
26439
26431
  return yt(t);
26440
26432
  } };
26441
26433
  });
26442
- } }), KR = z({ log_: function(e) {
26434
+ } }), K5 = z({ log_: function(e) {
26443
26435
  var n = A(e, "x", "log"), t = [n];
26444
26436
  return U.runKernelFunc(function(r, o) {
26445
26437
  var a = r.log(n);
@@ -26450,7 +26442,7 @@ var PR = z({ square_: function(e) {
26450
26442
  return r.div(a.toFloat());
26451
26443
  } };
26452
26444
  }, "Log", {}, t);
26453
- } }), XR = z({ log1p_: function(e) {
26445
+ } }), X5 = z({ log1p_: function(e) {
26454
26446
  var n = A(e, "x", "log1p");
26455
26447
  return U.runKernelFunc(function(t, r) {
26456
26448
  var o = t.log1p(n);
@@ -26461,7 +26453,7 @@ var PR = z({ square_: function(e) {
26461
26453
  return t.div(o.add(1));
26462
26454
  } };
26463
26455
  });
26464
- } }), YR = z({ logSigmoid_: function(e) {
26456
+ } }), Y5 = z({ logSigmoid_: function(e) {
26465
26457
  var n = A(e, "x", "logSigmoid");
26466
26458
  return U.runKernelFunc(function(t, r) {
26467
26459
  var o = t.softplus(n.neg()).neg();
@@ -26481,7 +26473,7 @@ var PR = z({ square_: function(e) {
26481
26473
  return r.neg();
26482
26474
  } };
26483
26475
  }, "Neg", {}, t);
26484
- } }), QR = z({ reciprocal_: function(e) {
26476
+ } }), Q5 = z({ reciprocal_: function(e) {
26485
26477
  var n = A(e, "x", "reciprocal");
26486
26478
  return U.runKernelFunc(function(t, r) {
26487
26479
  var o = t.reciprocal(n);
@@ -26492,7 +26484,7 @@ var PR = z({ square_: function(e) {
26492
26484
  return t.div(o.square().neg());
26493
26485
  } };
26494
26486
  });
26495
- } }), ZR = z({ round_: function(e) {
26487
+ } }), Z5 = z({ round_: function(e) {
26496
26488
  var n = A(e, "x", "round");
26497
26489
  return U.runKernelFunc(function(t) {
26498
26490
  return t.round(n);
@@ -26523,7 +26515,7 @@ var PR = z({ square_: function(e) {
26523
26515
  return t.mul(o.mul(we(1).sub(o)));
26524
26516
  } };
26525
26517
  }, "Sigmoid");
26526
- } }), JR = z({ sign_: function(e) {
26518
+ } }), J5 = z({ sign_: function(e) {
26527
26519
  var n = A(e, "x", "sign");
26528
26520
  return U.runKernelFunc(function(t) {
26529
26521
  return t.sign(n);
@@ -26532,7 +26524,7 @@ var PR = z({ square_: function(e) {
26532
26524
  return yt(t);
26533
26525
  } };
26534
26526
  });
26535
- } }), e5 = z({ isNaN_: function(e) {
26527
+ } }), eR = z({ isNaN_: function(e) {
26536
26528
  var n = A(e, "x", "isNaN");
26537
26529
  return U.runKernelFunc(function(t) {
26538
26530
  return t.isNaN(n);
@@ -26541,7 +26533,7 @@ var PR = z({ square_: function(e) {
26541
26533
  return yt(t);
26542
26534
  } };
26543
26535
  });
26544
- } }), t5 = z({ isInf_: function(e) {
26536
+ } }), tR = z({ isInf_: function(e) {
26545
26537
  var n = A(e, "x", "isInf");
26546
26538
  return U.runKernelFunc(function(t) {
26547
26539
  return t.isInf(n);
@@ -26550,7 +26542,7 @@ var PR = z({ square_: function(e) {
26550
26542
  return yt(t);
26551
26543
  } };
26552
26544
  });
26553
- } }), n5 = z({ isFinite_: function(e) {
26545
+ } }), nR = z({ isFinite_: function(e) {
26554
26546
  var n = A(e, "x", "isFinite");
26555
26547
  return U.runKernelFunc(function(t) {
26556
26548
  return t.isFinite(n);
@@ -26559,7 +26551,7 @@ var PR = z({ square_: function(e) {
26559
26551
  return yt(t);
26560
26552
  } };
26561
26553
  });
26562
- } }), r5 = z({ sin_: function(e) {
26554
+ } }), rR = z({ sin_: function(e) {
26563
26555
  var n = A(e, "x", "sin"), t = [n];
26564
26556
  return U.runKernelFunc(function(r, o) {
26565
26557
  var a = r.sin(n);
@@ -26570,7 +26562,7 @@ var PR = z({ square_: function(e) {
26570
26562
  return a.toFloat().cos().mul(r);
26571
26563
  } };
26572
26564
  }, "Sin", {}, t);
26573
- } }), o5 = z({ sinh_: function(e) {
26565
+ } }), oR = z({ sinh_: function(e) {
26574
26566
  var n = A(e, "x", "sinh");
26575
26567
  return U.runKernelFunc(function(t, r) {
26576
26568
  var o = t.sinh(n);
@@ -26581,7 +26573,7 @@ var PR = z({ square_: function(e) {
26581
26573
  return o.toFloat().cosh().mulStrict(t);
26582
26574
  } };
26583
26575
  });
26584
- } }), a5 = z({ softplus_: function(e) {
26576
+ } }), aR = z({ softplus_: function(e) {
26585
26577
  var n = A(e, "x", "softplus");
26586
26578
  return U.runKernelFunc(function(t, r) {
26587
26579
  var o = t.softplus(n);
@@ -26592,7 +26584,7 @@ var PR = z({ square_: function(e) {
26592
26584
  return t.mul(o.sigmoid());
26593
26585
  } };
26594
26586
  });
26595
- } }), i5 = z({ sqrt_: function(e) {
26587
+ } }), iR = z({ sqrt_: function(e) {
26596
26588
  var n = A(e, "x", "sqrt");
26597
26589
  return U.runKernelFunc(function(t, r) {
26598
26590
  var o = t.sqrt(n);
@@ -26603,7 +26595,7 @@ var PR = z({ square_: function(e) {
26603
26595
  return t.div(o.toFloat().sqrt().mul(2));
26604
26596
  } };
26605
26597
  });
26606
- } }), s5 = z({ step_: function(e, n) {
26598
+ } }), sR = z({ step_: function(e, n) {
26607
26599
  n === void 0 && (n = 0);
26608
26600
  var t = A(e, "x", "step");
26609
26601
  return U.runKernelFunc(function(r) {
@@ -26613,7 +26605,7 @@ var PR = z({ square_: function(e) {
26613
26605
  return yt(r);
26614
26606
  } };
26615
26607
  });
26616
- } }), u5 = z({ tan_: function(e) {
26608
+ } }), uR = z({ tan_: function(e) {
26617
26609
  var n = A(e, "x", "tan");
26618
26610
  return U.runKernelFunc(function(t, r) {
26619
26611
  var o = t.tan(n);
@@ -26624,7 +26616,7 @@ var PR = z({ square_: function(e) {
26624
26616
  return t.div(o.cos().square());
26625
26617
  } };
26626
26618
  });
26627
- } }), l5 = z({ tanh_: function(e) {
26619
+ } }), lR = z({ tanh_: function(e) {
26628
26620
  var n = A(e, "x", "tanh");
26629
26621
  return U.runKernelFunc(function(t, r) {
26630
26622
  var o = t.tanh(n);
@@ -26648,7 +26640,7 @@ function bg(e, n, t, r, o, a) {
26648
26640
  return "Error in batchNorm2D: scale must be rank 2 or rank 1 but got rank " + i.rank + ".";
26649
26641
  }), s != null && F(s.rank === 2 || s.rank === 1, function() {
26650
26642
  return "Error in batchNorm2D: offset must be rank 2 or rank 1 but got rank " + s.rank + ".";
26651
- }), Ii(u, l, c, s, i, a);
26643
+ }), Ti(u, l, c, s, i, a);
26652
26644
  }
26653
26645
  function wg(e, n, t, r, o, a) {
26654
26646
  var i, s, u = A(e, "x", "batchNorm"), l = A(n, "mean", "batchNorm"), c = A(t, "variance", "batchNorm");
@@ -26662,7 +26654,7 @@ function wg(e, n, t, r, o, a) {
26662
26654
  return "Error in batchNorm3D: scale must be rank 3 or rank 1 but got rank " + i.rank + ".";
26663
26655
  }), s != null && F(s.rank === 3 || s.rank === 1, function() {
26664
26656
  return "Error in batchNorm3D: offset must be rank 3 or rank 1 but got rank " + s.rank + ".";
26665
- }), Ii(u, l, c, s, i, a);
26657
+ }), Ti(u, l, c, s, i, a);
26666
26658
  }
26667
26659
  function xg(e, n, t, r, o, a) {
26668
26660
  var i, s, u = A(e, "x", "batchNorm"), l = A(n, "mean", "batchNorm"), c = A(t, "variance", "batchNorm");
@@ -26676,9 +26668,9 @@ function xg(e, n, t, r, o, a) {
26676
26668
  return "Error in batchNorm4D: scale must be rank 4 or rank 1 but got rank " + i.rank + ".";
26677
26669
  }), s != null && F(s.rank === 4 || s.rank === 1, function() {
26678
26670
  return "Error in batchNorm4D: offset must be rank 4 or rank 1 but got rank " + s.rank + ".";
26679
- }), Ii(u, l, c, s, i, a);
26671
+ }), Ti(u, l, c, s, i, a);
26680
26672
  }
26681
- function Ii(e, n, t, r, o, a) {
26673
+ function Ti(e, n, t, r, o, a) {
26682
26674
  a == null && (a = 1e-3);
26683
26675
  var i, s, u, l = A(e, "x", "batchNorm"), c = A(n, "mean", "batchNorm"), d = A(t, "variance", "batchNorm");
26684
26676
  o != null && (i = A(o, "scale", "batchNorm")), r != null && (s = A(r, "offset", "batchNorm")), F(c.rank === d.rank, function() {
@@ -26690,7 +26682,7 @@ function Ii(e, n, t, r, o, a) {
26690
26682
  }), u = l.rank === 0 || l.rank === 1 ? l.as4D(1, 1, 1, l.size) : l.rank === 2 ? l.as4D(1, 1, l.shape[0], l.shape[1]) : l.rank === 3 ? l.as4D(1, l.shape[0], l.shape[1], l.shape[2]) : l;
26691
26683
  var f = [l, c, d, i];
26692
26684
  return U.runKernelFunc(function(h, p) {
26693
- var v = h.batchNormalization(u, Yi(c), Yi(d), a, Yi(i), Yi(s));
26685
+ var v = h.batchNormalization(u, Qi(c), Qi(d), a, Qi(i), Qi(s));
26694
26686
  return p([l, c, d, i]), v;
26695
26687
  }, { x: l, mean: c, variance: d, scale: i, offset: s }, function(h, p) {
26696
26688
  var v = p, m = v[0], g = v[1], w = v[2], b = v[3], y = b ?? we(1), x = an(g.shape, u.shape), _ = [];
@@ -26716,26 +26708,26 @@ function Ii(e, n, t, r, o, a) {
26716
26708
  } };
26717
26709
  }, "BatchNormalization", { varianceEpsilon: a }, f).reshape(l.shape);
26718
26710
  }
26719
- function Yi(e) {
26711
+ function Qi(e) {
26720
26712
  return e == null ? null : e.rank === 0 ? e.as1D() : e.rank === 1 ? e : e.rank === 2 ? e.as4D(1, 1, e.shape[0], e.shape[1]) : e.rank === 3 ? e.as4D(1, e.shape[0], e.shape[1], e.shape[2]) : e;
26721
26713
  }
26722
26714
  function vu() {
26723
26715
  Om("tf.batchNormalization() is going away. Use tf.batchNorm() instead, and note the positional argument change of scale, offset, and varianceEpsilon");
26724
26716
  }
26725
- var c5 = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
26717
+ var cR = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
26726
26718
  return r === void 0 && (r = 1e-3), vu(), bg(e, n, t, a, o, r);
26727
- } }), d5 = z({ batchNormalization3d_: function(e, n, t, r, o, a) {
26719
+ } }), dR = z({ batchNormalization3d_: function(e, n, t, r, o, a) {
26728
26720
  return r === void 0 && (r = 1e-3), vu(), wg(e, n, t, a, o, r);
26729
- } }), f5 = z({ batchNormalization4d_: function(e, n, t, r, o, a) {
26721
+ } }), fR = z({ batchNormalization4d_: function(e, n, t, r, o, a) {
26730
26722
  return r === void 0 && (r = 1e-3), vu(), xg(e, n, t, a, o, r);
26731
- } }), h5 = z({ batchNormalization_: function(e, n, t, r, o, a) {
26732
- return r === void 0 && (r = 1e-3), vu(), Ii(e, n, t, a, o, r);
26733
- } }), _g = z({ batchNorm_: Ii }), p5 = z({ batchNorm2d_: bg }), v5 = z({ batchNorm3d_: wg }), m5 = z({ batchNorm4d_: xg }), mu = z({ logicalAnd_: function(e, n) {
26723
+ } }), hR = z({ batchNormalization_: function(e, n, t, r, o, a) {
26724
+ return r === void 0 && (r = 1e-3), vu(), Ti(e, n, t, a, o, r);
26725
+ } }), _g = z({ batchNorm_: Ti }), pR = z({ batchNorm2d_: bg }), vR = z({ batchNorm3d_: wg }), mR = z({ batchNorm4d_: xg }), mu = z({ logicalAnd_: function(e, n) {
26734
26726
  var t = A(e, "a", "logicalAnd", "bool"), r = A(n, "b", "logicalAnd", "bool");
26735
26727
  return pt(t.shape, r.shape), U.runKernelFunc(function(o) {
26736
26728
  return o.logicalAnd(t, r);
26737
26729
  }, { a: t, b: r }, null, "LogicalAnd");
26738
- } }), g5 = z({ logicalNot_: function(e) {
26730
+ } }), gR = z({ logicalNot_: function(e) {
26739
26731
  var n = A(e, "x", "logicalNot", "bool");
26740
26732
  return U.runKernelFunc(function(t) {
26741
26733
  return t.logicalNot(n);
@@ -26745,7 +26737,7 @@ var c5 = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
26745
26737
  return pt(t.shape, r.shape), U.runKernelFunc(function(o) {
26746
26738
  return o.logicalOr(t, r);
26747
26739
  }, { $a: t, $b: r });
26748
- } }), y5 = z({ logicalXor_: function(e, n) {
26740
+ } }), yR = z({ logicalXor_: function(e, n) {
26749
26741
  var t = A(e, "a", "logicalXor", "bool"), r = A(n, "b", "logicalXor", "bool");
26750
26742
  return pt(t.shape, r.shape), Cg(e, n).logicalAnd(mu(e, n).logicalNot());
26751
26743
  } }), Lo = z({ where_: function(e, n, t) {
@@ -26792,7 +26784,7 @@ var c5 = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
26792
26784
  return u.length > 0 && (s = s.sum(u)), s.reshape(o.shape);
26793
26785
  } };
26794
26786
  }, "Add");
26795
- } }), b5 = z({ addN_: function(e) {
26787
+ } }), bR = z({ addN_: function(e) {
26796
26788
  F(Array.isArray(e), function() {
26797
26789
  return "The argument passed to tf.addN() must be a list of tensors";
26798
26790
  }), F(e.length >= 1, function() {
@@ -26817,10 +26809,10 @@ var c5 = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
26817
26809
  };
26818
26810
  }), a;
26819
26811
  }, "AddN");
26820
- } }), w5 = z({ addStrict_: function(e, n) {
26812
+ } }), wR = z({ addStrict_: function(e, n) {
26821
26813
  var t = A(e, "a", "addStrict"), r = A(n, "b", "addStrict");
26822
26814
  return Rt(t.shape, r.shape, "Error in addStrict: "), t.add(r);
26823
- } }), x5 = z({ atan2_: function(e, n) {
26815
+ } }), xR = z({ atan2_: function(e, n) {
26824
26816
  var t, r = A(e, "a", "atan2"), o = A(n, "b", "atan2");
26825
26817
  t = Ut(r, o), r = t[0], o = t[1];
26826
26818
  var a = pt(r.shape, o.shape);
@@ -26856,12 +26848,12 @@ var c5 = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
26856
26848
  return c.div(f.toFloat()).neg();
26857
26849
  } };
26858
26850
  }, "Div");
26859
- } }), _5 = z({ divNoNan_: function(e, n) {
26851
+ } }), _R = z({ divNoNan_: function(e, n) {
26860
26852
  var t, r = A(e, "a", "div"), o = A(n, "b", "div");
26861
26853
  r = (t = Ut(r, o))[0], o = t[1];
26862
26854
  var a = ur(r, o), i = yt(a), s = o.equal(i);
26863
26855
  return Lo(s, i, a);
26864
- } }), C5 = z({ divStrict_: function(e, n) {
26856
+ } }), CR = z({ divStrict_: function(e, n) {
26865
26857
  var t = A(e, "a", "div"), r = A(n, "b", "div");
26866
26858
  return Rt(t.shape, r.shape, "Error in divideStrict: "), t.div(r);
26867
26859
  } }), Sg = z({ floorDiv_: function(e, n) {
@@ -26896,7 +26888,7 @@ var c5 = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
26896
26888
  return a.mul(s.less(u).toFloat());
26897
26889
  } };
26898
26890
  }, "Maximum");
26899
- } }), k5 = z({ maximumStrict_: function(e, n) {
26891
+ } }), kR = z({ maximumStrict_: function(e, n) {
26900
26892
  var t = A(e, "a", "maximumStrict"), r = A(n, "b", "maximumStrict");
26901
26893
  return Rt(t.shape, r.shape, "Error in maximumStrict: "), t.maximum(r);
26902
26894
  } }), Eg = z({ minimum_: function(e, n) {
@@ -26912,10 +26904,10 @@ var c5 = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
26912
26904
  return a.mul(s.greater(u).toFloat());
26913
26905
  } };
26914
26906
  }, "Minimum");
26915
- } }), S5 = z({ minimumStrict_: function(e, n) {
26907
+ } }), SR = z({ minimumStrict_: function(e, n) {
26916
26908
  var t = A(e, "a", "minimumStrict"), r = A(n, "b", "minimumStrict");
26917
26909
  return Rt(t.shape, r.shape, "Error in minimumStrict: "), t.minimum(r);
26918
- } }), E5 = z({ mod_: function(e, n) {
26910
+ } }), ER = z({ mod_: function(e, n) {
26919
26911
  var t, r = A(e, "a", "mod"), o = A(n, "b", "mod");
26920
26912
  t = Ut(r, o), r = t[0], o = t[1];
26921
26913
  var a = pt(r.shape, o.shape);
@@ -26932,7 +26924,7 @@ var c5 = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
26932
26924
  return d.length > 0 ? c.sum(d).reshape(l.shape) : c;
26933
26925
  } };
26934
26926
  });
26935
- } }), R5 = z({ modStrict_: function(e, n) {
26927
+ } }), RR = z({ modStrict_: function(e, n) {
26936
26928
  var t = A(e, "a", "modStrict"), r = A(n, "b", "modStrict");
26937
26929
  return Rt(t.shape, r.shape, "Error in modStrict: "), t.mod(r);
26938
26930
  } }), In = z({ mul_: function(e, n) {
@@ -26952,7 +26944,7 @@ var c5 = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
26952
26944
  return d.length > 0 ? c.sum(d).reshape(l.shape) : c;
26953
26945
  } };
26954
26946
  }, "Mul");
26955
- } }), I5 = z({ mulStrict_: function(e, n) {
26947
+ } }), IR = z({ mulStrict_: function(e, n) {
26956
26948
  var t = A(e, "a", "mul"), r = A(n, "b", "mul");
26957
26949
  return Rt(t.shape, r.shape, "Error in multiplyStrict: "), t.mul(r);
26958
26950
  } }), $s = z({ pow_: function(e, n) {
@@ -26972,9 +26964,9 @@ var c5 = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
26972
26964
  return v.length > 0 && (p = p.sum(v)), p.reshape(c.shape);
26973
26965
  } };
26974
26966
  }, "Pow", {}, i, [!0]);
26975
- } }), T5 = z({ powStrict_: function(e, n) {
26967
+ } }), TR = z({ powStrict_: function(e, n) {
26976
26968
  return Rt(e.shape, n.shape, "Error in powStrict: "), e.pow(n);
26977
- } }), A5 = z({ squaredDifferenceStrict_: function(e, n) {
26969
+ } }), AR = z({ squaredDifferenceStrict_: function(e, n) {
26978
26970
  var t = A(e, "a", "squaredDifferenceStrict"), r = A(n, "b", "squaredDifferenceStrict");
26979
26971
  return Rt(t.shape, r.shape, "Error in squaredDifferenceStrict: "), t.squaredDifference(r);
26980
26972
  } }), sn = z({ sub_: function(e, n) {
@@ -26992,7 +26984,7 @@ var c5 = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
26992
26984
  return u.length > 0 && (s = s.sum(u)), s.neg().reshape(o.shape);
26993
26985
  } };
26994
26986
  }, "Sub");
26995
- } }), D5 = z({ subStrict_: function(e, n) {
26987
+ } }), DR = z({ subStrict_: function(e, n) {
26996
26988
  var t = A(e, "a", "subStrict"), r = A(n, "b", "subStrict");
26997
26989
  return Rt(t.shape, r.shape, "Error in subStrict: "), t.sub(r);
26998
26990
  } }), Rg = z({ equal_: function(e, n) {
@@ -27000,10 +26992,10 @@ var c5 = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
27000
26992
  return t = Ut(r, o), r = t[0], o = t[1], pt(r.shape, o.shape), U.runKernelFunc(function(a) {
27001
26993
  return a.equal(r, o);
27002
26994
  }, { $a: r, $b: o });
27003
- } }), M5 = z({ equalStrict_: function(e, n) {
26995
+ } }), MR = z({ equalStrict_: function(e, n) {
27004
26996
  var t = A(e, "a", "equalStrict"), r = A(n, "b", "equalStrict");
27005
26997
  return Rt(t.shape, r.shape, "Error in equalStrict: "), t.equal(r);
27006
- } }), F5 = z({ greater_: function(e, n) {
26998
+ } }), FR = z({ greater_: function(e, n) {
27007
26999
  var t, r = A(e, "a", "greater"), o = A(n, "b", "greater");
27008
27000
  return t = Ut(r, o), r = t[0], o = t[1], pt(r.shape, o.shape), U.runKernelFunc(function(a) {
27009
27001
  return a.greater(r, o);
@@ -27021,35 +27013,35 @@ var c5 = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
27021
27013
  return yt(u);
27022
27014
  } };
27023
27015
  }, "GreaterEqual");
27024
- } }), P5 = z({ greaterEqualStrict_: function(e, n) {
27016
+ } }), PR = z({ greaterEqualStrict_: function(e, n) {
27025
27017
  var t = A(e, "a", "greaterEqualStrict"), r = A(n, "b", "greaterEqualStrict");
27026
27018
  return Rt(t.shape, r.shape, "Error in greaterEqualStrict: "), t.greaterEqual(r);
27027
- } }), B5 = z({ greaterStrict_: function(e, n) {
27019
+ } }), BR = z({ greaterStrict_: function(e, n) {
27028
27020
  var t = A(e, "a", "greaterStrict"), r = A(n, "b", "greaterStrict");
27029
27021
  return Rt(t.shape, r.shape, "Error in greaterStrict: "), t.greater(r);
27030
- } }), O5 = z({ less_: function(e, n) {
27022
+ } }), OR = z({ less_: function(e, n) {
27031
27023
  var t, r = A(e, "a", "less"), o = A(n, "b", "less");
27032
27024
  return t = Ut(r, o), r = t[0], o = t[1], pt(r.shape, o.shape), U.runKernelFunc(function(a) {
27033
27025
  return a.less(r, o);
27034
27026
  }, { a: r, b: o }, null, "Less");
27035
- } }), N5 = z({ lessEqual_: function(e, n) {
27027
+ } }), NR = z({ lessEqual_: function(e, n) {
27036
27028
  var t, r = A(e, "a", "lessEqual"), o = A(n, "b", "lessEqual");
27037
27029
  return t = Ut(r, o), r = t[0], o = t[1], pt(r.shape, o.shape), U.runKernelFunc(function(a, i) {
27038
27030
  var s = a.lessEqual(r, o);
27039
27031
  return i([r, o]), s;
27040
27032
  }, { a: r, b: o }, null, "LessEqual");
27041
- } }), L5 = z({ lessEqualStrict_: function(e, n) {
27033
+ } }), LR = z({ lessEqualStrict_: function(e, n) {
27042
27034
  var t = A(e, "a", "lessEqualStrict"), r = A(n, "b", "lessEqualStrict");
27043
27035
  return Rt(t.shape, r.shape, "Error in lessEqualStrict: "), t.lessEqual(r);
27044
- } }), q5 = z({ lessStrict_: function(e, n) {
27036
+ } }), qR = z({ lessStrict_: function(e, n) {
27045
27037
  var t = A(e, "a", "lessStrict"), r = A(n, "b", "lessStrict");
27046
27038
  return Rt(t.shape, r.shape, "Error in lessStrict: "), t.less(r);
27047
- } }), V5 = z({ notEqual_: function(e, n) {
27039
+ } }), VR = z({ notEqual_: function(e, n) {
27048
27040
  var t, r = A(e, "a", "notEqual"), o = A(n, "b", "notEqual");
27049
27041
  return t = Ut(r, o), r = t[0], o = t[1], pt(r.shape, o.shape), U.runKernelFunc(function(a) {
27050
27042
  return a.notEqual(r, o);
27051
27043
  }, { a: r, b: o }, null, "NotEqual");
27052
- } }), z5 = z({ notEqualStrict_: function(e, n) {
27044
+ } }), zR = z({ notEqualStrict_: function(e, n) {
27053
27045
  var t = A(e, "a", "notEqualStrict"), r = A(n, "b", "notEqualStrict");
27054
27046
  return Rt(t.shape, r.shape, "Error in notEqualStrict: "), t.notEqual(r);
27055
27047
  } });
@@ -27101,7 +27093,7 @@ var Td = z({ gather_: function(e, n, t) {
27101
27093
  }(a, s);
27102
27094
  } };
27103
27095
  });
27104
- } }), W5 = function(e, n, t) {
27096
+ } }), WR = function(e, n, t) {
27105
27097
  return Ae(this, void 0, void 0, function() {
27106
27098
  var r, o, a, i, s, u, l, c, d, f, h, p, v;
27107
27099
  return De(this, function(m) {
@@ -27179,7 +27171,7 @@ function Dg(e, n, t, r, o) {
27179
27171
  }, { dy5D: i });
27180
27172
  return s ? d.as4D(d.shape[1], d.shape[2], d.shape[3], d.shape[4]) : d;
27181
27173
  }
27182
- var $5 = z({ conv1d_: function(e, n, t, r, o, a, i) {
27174
+ var $R = z({ conv1d_: function(e, n, t, r, o, a, i) {
27183
27175
  o === void 0 && (o = "NWC"), a === void 0 && (a = 1);
27184
27176
  var s = A(e, "x", "conv1d"), u = A(n, "filter", "conv1d"), l = s, c = !1;
27185
27177
  s.rank === 2 && (c = !0, l = s.as3D(1, s.shape[0], s.shape[1])), F(l.rank === 3, function() {
@@ -27227,7 +27219,7 @@ var $5 = z({ conv1d_: function(e, n, t, r, o, a, i) {
27227
27219
  } };
27228
27220
  }, "Conv2D", h, p);
27229
27221
  return c ? v.as3D(v.shape[1], v.shape[2], v.shape[3]) : v;
27230
- } }), H5 = z({ conv3d_: function(e, n, t, r, o, a) {
27222
+ } }), HR = z({ conv3d_: function(e, n, t, r, o, a) {
27231
27223
  o === void 0 && (o = "NDHWC"), a === void 0 && (a = [1, 1, 1]);
27232
27224
  var i = A(e, "x", "conv3d"), s = A(n, "filter", "conv3d"), u = i, l = !1;
27233
27225
  i.rank === 4 && (l = !0, u = i.as5D(1, i.shape[0], i.shape[1], i.shape[2], i.shape[3])), F(u.rank === 5, function() {
@@ -27365,9 +27357,9 @@ var $5 = z({ conv1d_: function(e, n, t, r, o, a, i) {
27365
27357
  });
27366
27358
  var p = gu(c, u, r, o, i, a), v = ar(p, l, 1, "valid", i);
27367
27359
  return d ? v.as3D(v.shape[1], v.shape[2], v.shape[3]) : v;
27368
- } }), U5 = z({ conv2dTranspose_: function(e, n, t, r, o, a) {
27360
+ } }), UR = z({ conv2dTranspose_: function(e, n, t, r, o, a) {
27369
27361
  return Ag(t, A(e, "x", "conv2dTranspose"), A(n, "filter", "conv2dTranspose"), r, o, "NHWC", a);
27370
- } }), j5 = z({ conv3dTranspose_: function(e, n, t, r, o) {
27362
+ } }), jR = z({ conv3dTranspose_: function(e, n, t, r, o) {
27371
27363
  return Dg(t, A(e, "x", "conv3dTranspose"), A(n, "filter", "conv3dTranspose"), r, o);
27372
27364
  } }), yu = z({ matMul_: function(e, n, t, r) {
27373
27365
  var o;
@@ -27406,7 +27398,7 @@ var $5 = z({ conv1d_: function(e, n, t, r, o, a, i) {
27406
27398
  return _.matMul(b, !0, !1);
27407
27399
  } };
27408
27400
  }, "BatchMatMul", w).reshape(v);
27409
- } }), G5 = z({ dot_: function(e, n) {
27401
+ } }), GR = z({ dot_: function(e, n) {
27410
27402
  var t = A(e, "t1", "dot"), r = A(n, "t2", "dot");
27411
27403
  F(!(t.rank !== 1 && t.rank !== 2 || r.rank !== 1 && r.rank !== 2), function() {
27412
27404
  return "Error in dot: inputs must all be rank 1 or 2, but got ranks " + t.rank + " and " + r.rank + ".";
@@ -27415,12 +27407,12 @@ var $5 = z({ conv1d_: function(e, n, t, r, o, a, i) {
27415
27407
  return F(o === a, function() {
27416
27408
  return "Error in dot: inner dimensions of inputs must match, but got " + o + " and " + a + ".";
27417
27409
  }), t.rank === 1 && r.rank === 1 ? t.as2D(1, -1).matMul(r.as2D(-1, 1)).asScalar() : t.rank === 1 && r.rank === 2 ? t.as2D(1, -1).matMul(r.as2D(r.shape[0], r.shape[1])).as1D() : t.rank === 2 && r.rank === 1 ? t.matMul(r.as2D(-1, 1)).as1D() : t.matMul(r.as2D(r.shape[0], r.shape[1]));
27418
- } }), K5 = z({ outerProduct_: function(e, n) {
27410
+ } }), KR = z({ outerProduct_: function(e, n) {
27419
27411
  var t = A(e, "v1", "outerProduct"), r = A(n, "v2", "outerProduct");
27420
27412
  return F(t.rank === 1 && r.rank === 1, function() {
27421
27413
  return "Error in outerProduct: inputs must be rank 1, but got ranks " + t.rank + " and " + r.rank + ".";
27422
27414
  }), t.as2D(-1, 1).matMul(r.as2D(1, -1));
27423
- } }), Ti = z({ reverse_: function(e, n) {
27415
+ } }), Ai = z({ reverse_: function(e, n) {
27424
27416
  var t = A(e, "x", "reverse");
27425
27417
  if (t.rank === 0) return t.clone();
27426
27418
  var r = un(n, t.shape);
@@ -27431,26 +27423,26 @@ var $5 = z({ conv1d_: function(e, n, t, r, o, a, i) {
27431
27423
  return o.reverse(r);
27432
27424
  } };
27433
27425
  }).reshapeAs(t);
27434
- } }), X5 = z({ reverse1d_: function(e) {
27426
+ } }), XR = z({ reverse1d_: function(e) {
27435
27427
  var n = A(e, "x", "reverse");
27436
27428
  return F(n.rank === 1, function() {
27437
27429
  return "Error in reverse1D: x must be rank 1 but got rank " + n.rank + ".";
27438
- }), Ti(n, 0);
27439
- } }), Y5 = z({ reverse2d_: function(e, n) {
27430
+ }), Ai(n, 0);
27431
+ } }), YR = z({ reverse2d_: function(e, n) {
27440
27432
  var t = A(e, "x", "reverse");
27441
27433
  return F(t.rank === 2, function() {
27442
27434
  return "Error in reverse2D: x must be rank 2 but got rank " + t.rank + ".";
27443
- }), Ti(t, n);
27444
- } }), Q5 = z({ reverse3d_: function(e, n) {
27435
+ }), Ai(t, n);
27436
+ } }), QR = z({ reverse3d_: function(e, n) {
27445
27437
  var t = A(e, "x", "reverse");
27446
27438
  return F(t.rank === 3, function() {
27447
27439
  return "Error in reverse3D: x must be rank 3 but got rank " + t.rank + ".";
27448
- }), Ti(t, n);
27449
- } }), Z5 = z({ reverse4d_: function(e, n) {
27440
+ }), Ai(t, n);
27441
+ } }), ZR = z({ reverse4d_: function(e, n) {
27450
27442
  var t = A(e, "x", "reverse");
27451
27443
  return F(t.rank === 4, function() {
27452
27444
  return "Error in reverse4D: x must be rank 4 but got rank " + t.rank + ".";
27453
- }), Ti(t, n);
27445
+ }), Ai(t, n);
27454
27446
  } });
27455
27447
  function Bg(e, n, t, r, o, a) {
27456
27448
  var i = A(e, "x", "maxPool"), s = i, u = !1;
@@ -27461,7 +27453,7 @@ function Bg(e, n, t, r, o, a) {
27461
27453
  }), a != null && F(Qt(o), function() {
27462
27454
  return "Error in maxPool: pad must be an integer when using, dimRoundingMode " + a + " but got pad " + o + ".";
27463
27455
  });
27464
- var l = li(s.shape, n, t, r, o, a);
27456
+ var l = ci(s.shape, n, t, r, o, a);
27465
27457
  if (l.filterWidth === 1 && l.filterHeight === 1 && pn(l.inShape, l.outShape)) return i.clone();
27466
27458
  var c = [s], d = U.runKernelFunc(function(f, h) {
27467
27459
  var p = f.maxPool(s, l);
@@ -27480,7 +27472,7 @@ function Bg(e, n, t, r, o, a) {
27480
27472
  }), F(C.rank === 4, function() {
27481
27473
  return "Error in maxPoolBackprop: input must be rank 4 but got rank " + C.rank + ".";
27482
27474
  });
27483
- var M = li(C.shape, b, y, x, _, E);
27475
+ var M = ci(C.shape, b, y, x, _, E);
27484
27476
  return U.runKernelFunc(function(I) {
27485
27477
  return I.maxPoolBackprop(R, C, S, M);
27486
27478
  }, { $dy: R, $input: C });
@@ -27500,7 +27492,7 @@ function Og(e, n, t, r, o, a) {
27500
27492
  }), a != null && F(Qt(o), function() {
27501
27493
  return "Error in avgPool: pad must be an integer when using, dimRoundingMode " + a + " but got pad " + o + ".";
27502
27494
  });
27503
- var l = li(s.shape, n, t, r, o, a);
27495
+ var l = ci(s.shape, n, t, r, o, a);
27504
27496
  if (l.filterWidth === 1 && l.filterHeight === 1 && pn(l.inShape, l.outShape)) return i.clone();
27505
27497
  var c = U.runKernelFunc(function(d) {
27506
27498
  return d.avgPool(s, l);
@@ -27519,7 +27511,7 @@ function Og(e, n, t, r, o, a) {
27519
27511
  }), F(y.rank === 4, function() {
27520
27512
  return "Error in avgPoolBackprop: input must be rank 4 but got rank " + y.rank + ".";
27521
27513
  });
27522
- var E = li(y.shape, p, v, m, g), R = U.runKernelFunc(function(C) {
27514
+ var E = ci(y.shape, p, v, m, g), R = U.runKernelFunc(function(C) {
27523
27515
  return C.avgPoolBackprop(x, y, E);
27524
27516
  }, { dy4D: x, input4D: y });
27525
27517
  return _ ? R.as3D(R.shape[1], R.shape[2], R.shape[3]) : R;
@@ -27530,15 +27522,15 @@ function Og(e, n, t, r, o, a) {
27530
27522
  }
27531
27523
  var cn = z({ maxPool_: function(e, n, t, r, o) {
27532
27524
  return Bg(e, n, t, 1, r, o);
27533
- } }), Ai = z({ avgPool_: function(e, n, t, r, o) {
27525
+ } }), Di = z({ avgPool_: function(e, n, t, r, o) {
27534
27526
  return Og(e, n, t, 1, r, o);
27535
- } }), J5 = z({ pool_: function(e, n, t, r, o, a) {
27527
+ } }), JR = z({ pool_: function(e, n, t, r, o, a) {
27536
27528
  o == null && (o = [1, 1]), a == null && (a = 1), r === 0 && (r = "valid");
27537
27529
  var i = A(e, "x", "maxPool"), s = i, u = !1;
27538
27530
  i.rank === 3 && (u = !0, s = i.as4D(1, i.shape[0], i.shape[1], i.shape[2])), F(zn(a, o), function() {
27539
27531
  return "Error in pool: Either strides or dilations must be 1. Got strides " + a + " and dilations '" + o + "'";
27540
27532
  });
27541
- var l, c = li(s.shape, n, a, o, r), d = [c.dilationHeight, c.dilationWidth];
27533
+ var l, c = ci(s.shape, n, a, o, r), d = [c.dilationHeight, c.dilationWidth];
27542
27534
  l = r === "same" ? function(y, x) {
27543
27535
  var _ = y.map(function(C, S) {
27544
27536
  return C + (C - 1) * (x[S] - 1);
@@ -28166,7 +28158,7 @@ var Pd = z({ hannWindow_: function(e) {
28166
28158
  case 1:
28167
28159
  return i = g.sent(), [4, o.data()];
28168
28160
  case 2:
28169
- for (s = g.sent(), u = [i.length / a, a], c = u[1], d = ii("bool", l = u[0]), f = 0; f < l; f++) {
28161
+ for (s = g.sent(), u = [i.length / a, a], c = u[1], d = si("bool", l = u[0]), f = 0; f < l; f++) {
28170
28162
  for (h = f * c, p = i.subarray(h, h + c), v = [], m = 0; m < p.length; m++) v.push({ value: p[m], index: m });
28171
28163
  for (v.sort(function(w, b) {
28172
28164
  return b.value - w.value;
@@ -28610,7 +28602,7 @@ var $I = z({ resizeBilinear_: function(e, n, t) {
28610
28602
  } }, B);
28611
28603
  }, "FusedDepthwiseConv2D", { convInfo: x, activation: f }, E, [!0]);
28612
28604
  return w ? R.as3D(R.shape[1], R.shape[2], R.shape[3]) : R;
28613
- } }), JI = Object.freeze({ matMul: YI, conv2d: QI, depthwiseConv2d: ZI }), eT = Object.freeze({ image: Od, linalg: WI, losses: LI, spectral: CI, fused: JI, signal: II, square: PR, squaredDifference: mg, conv1d: $5, conv2d: ar, conv3d: H5, depthwiseConv2d: gu, separableConv2d: Dd, conv2dTranspose: U5, conv3dTranspose: j5, op: z, batchNormalization2d: c5, batchNormalization3d: d5, batchNormalization4d: f5, batchNormalization: h5, batchNorm: _g, batchNorm2d: p5, batchNorm3d: v5, batchNorm4d: m5, booleanMaskAsync: W5, complex: yn, real: rr, imag: xr, concat: rn, concat1d: JS, concat2d: e4, concat3d: t4, concat4d: n4, split: gd, matMul: yu, dot: G5, outerProduct: K5, reverse: Ti, reverse1d: X5, reverse2d: Y5, reverse3d: Q5, reverse4d: Z5, maxPool: cn, avgPool: Ai, pool: J5, maxPool3d: eI, avgPool3d: tI, slice: Rr, slice1d: nI, slice2d: rI, slice3d: Ng, slice4d: oI, abs: BR, acos: OR, acosh: NR, asin: LR, asinh: qR, atan: VR, atanh: zR, ceil: WR, clipByValue: Rd, cos: $R, cosh: HR, erf: UR, exp: Ec, expm1: jR, floor: GR, log: KR, log1p: XR, logSigmoid: YR, neg: Ws, reciprocal: QR, round: ZR, rsqrt: gg, sigmoid: yg, sign: JR, isNaN: e5, isInf: t5, isFinite: n5, sin: r5, sinh: o5, softplus: a5, sqrt: i5, step: s5, tan: u5, tanh: l5, all: aI, any: iI, argMax: sI, argMin: uI, logSumExp: lI, max: bu, mean: cI, min: dI, moments: fI, sum: qg, prod: hI, equal: Rg, equalStrict: M5, greater: F5, greaterEqual: Ig, greaterEqualStrict: P5, greaterStrict: B5, less: O5, lessEqual: N5, lessEqualStrict: L5, lessStrict: q5, notEqual: V5, notEqualStrict: z5, add: ft, addN: b5, addStrict: w5, atan2: x5, div: ur, divNoNan: _5, divStrict: C5, floorDiv: Sg, maximum: Id, maximumStrict: k5, minimum: Eg, minimumStrict: S5, mod: E5, modStrict: R5, mul: In, mulStrict: I5, pow: $s, powStrict: T5, squaredDifferenceStrict: A5, sub: sn, subStrict: D5, elu: Vg, leakyRelu: pI, prelu: zg, relu: Ht, relu6: Wg, selu: vI, logicalAnd: mu, logicalNot: g5, logicalOr: Cg, logicalXor: y5, where: Lo, whereAsync: kg, buffer: ot, print: d4, batchToSpaceND: qm, broadcastTo: f4, cast: h4, clone: p4, cumsum: v4, depthToSpace: m4, expandDims: tr, eye: Vm, multinomial: g4, oneHot: _c, pad: zo, pad1d: y4, pad2d: b4, pad3d: w4, pad4d: x4, rand: _4, randomNormal: C4, randomGamma: k4, randomUniform: zm, reshape: lr, spaceToBatchND: Wm, squeeze: $m, stack: Yn, tile: ha, truncatedNormal: S4, unstack: on, setdiff1dAsync: E4, fill: Sr, linspace: ZS, ones: qa, range: Ps, scalar: we, tensor: wn, tensor1d: en, tensor2d: so, tensor3d: md, tensor4d: Fn, tensor5d: XS, tensor6d: YS, variable: QS, zeros: Vt, onesLike: Lm, zerosLike: yt, transpose: fo, softmax: jr, logSoftmax: F4, localResponseNormalization: mI, norm: $g, gather: Td, unsortedSegmentSum: Tg, basicLSTMCell: gI, multiRNNCell: yI, movingAverage: bI, stridedSlice: wI, topk: xI, scatterND: _I, fft: Md, ifft: Hs, rfft: Fd, irfft: Hg, sparseToDense: kI, gatherND: SI, diag: EI, dropout: RI, hannWindow: Pd, hammingWindow: jg, frame: Bd, stft: Gg, inTopKAsync: TI });
28605
+ } }), JI = Object.freeze({ matMul: YI, conv2d: QI, depthwiseConv2d: ZI }), eT = Object.freeze({ image: Od, linalg: WI, losses: LI, spectral: CI, fused: JI, signal: II, square: P5, squaredDifference: mg, conv1d: $R, conv2d: ar, conv3d: HR, depthwiseConv2d: gu, separableConv2d: Dd, conv2dTranspose: UR, conv3dTranspose: jR, op: z, batchNormalization2d: cR, batchNormalization3d: dR, batchNormalization4d: fR, batchNormalization: hR, batchNorm: _g, batchNorm2d: pR, batchNorm3d: vR, batchNorm4d: mR, booleanMaskAsync: WR, complex: yn, real: rr, imag: xr, concat: rn, concat1d: JS, concat2d: e4, concat3d: t4, concat4d: n4, split: gd, matMul: yu, dot: GR, outerProduct: KR, reverse: Ai, reverse1d: XR, reverse2d: YR, reverse3d: QR, reverse4d: ZR, maxPool: cn, avgPool: Di, pool: JR, maxPool3d: eI, avgPool3d: tI, slice: Rr, slice1d: nI, slice2d: rI, slice3d: Ng, slice4d: oI, abs: B5, acos: O5, acosh: N5, asin: L5, asinh: q5, atan: V5, atanh: z5, ceil: W5, clipByValue: Rd, cos: $5, cosh: H5, erf: U5, exp: Ec, expm1: j5, floor: G5, log: K5, log1p: X5, logSigmoid: Y5, neg: Ws, reciprocal: Q5, round: Z5, rsqrt: gg, sigmoid: yg, sign: J5, isNaN: eR, isInf: tR, isFinite: nR, sin: rR, sinh: oR, softplus: aR, sqrt: iR, step: sR, tan: uR, tanh: lR, all: aI, any: iI, argMax: sI, argMin: uI, logSumExp: lI, max: bu, mean: cI, min: dI, moments: fI, sum: qg, prod: hI, equal: Rg, equalStrict: MR, greater: FR, greaterEqual: Ig, greaterEqualStrict: PR, greaterStrict: BR, less: OR, lessEqual: NR, lessEqualStrict: LR, lessStrict: qR, notEqual: VR, notEqualStrict: zR, add: ft, addN: bR, addStrict: wR, atan2: xR, div: ur, divNoNan: _R, divStrict: CR, floorDiv: Sg, maximum: Id, maximumStrict: kR, minimum: Eg, minimumStrict: SR, mod: ER, modStrict: RR, mul: In, mulStrict: IR, pow: $s, powStrict: TR, squaredDifferenceStrict: AR, sub: sn, subStrict: DR, elu: Vg, leakyRelu: pI, prelu: zg, relu: Ht, relu6: Wg, selu: vI, logicalAnd: mu, logicalNot: gR, logicalOr: Cg, logicalXor: yR, where: Lo, whereAsync: kg, buffer: ot, print: d4, batchToSpaceND: qm, broadcastTo: f4, cast: h4, clone: p4, cumsum: v4, depthToSpace: m4, expandDims: tr, eye: Vm, multinomial: g4, oneHot: _c, pad: zo, pad1d: y4, pad2d: b4, pad3d: w4, pad4d: x4, rand: _4, randomNormal: C4, randomGamma: k4, randomUniform: zm, reshape: lr, spaceToBatchND: Wm, squeeze: $m, stack: Yn, tile: ha, truncatedNormal: S4, unstack: on, setdiff1dAsync: E4, fill: Sr, linspace: ZS, ones: qa, range: Ps, scalar: we, tensor: wn, tensor1d: en, tensor2d: so, tensor3d: md, tensor4d: Fn, tensor5d: XS, tensor6d: YS, variable: QS, zeros: Vt, onesLike: Lm, zerosLike: yt, transpose: fo, softmax: jr, logSoftmax: F4, localResponseNormalization: mI, norm: $g, gather: Td, unsortedSegmentSum: Tg, basicLSTMCell: gI, multiRNNCell: yI, movingAverage: bI, stridedSlice: wI, topk: xI, scatterND: _I, fft: Md, ifft: Hs, rfft: Fd, irfft: Hg, sparseToDense: kI, gatherND: SI, diag: EI, dropout: RI, hannWindow: Pd, hammingWindow: jg, frame: Bd, stft: Gg, inTopKAsync: TI });
28614
28606
  function ce(e, n) {
28615
28607
  Array.isArray(e) || (e = [e]), e.forEach(function(t) {
28616
28608
  t != null && F(t.dtype !== "complex64", function() {
@@ -29716,7 +29708,7 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
29716
29708
  }, n.prototype.gatherND = function(t, r) {
29717
29709
  var o = r.shape, a = o[o.length - 1], i = jm(t, r), s = i[0], u = i[1], l = i[2], c = i[3];
29718
29710
  if (u === 0) return wn([], s, t.dtype);
29719
- for (var d = new si([u, l], t.dtype), f = this.readSync(r.dataId), h = this.readSync(t.dataId), p = 0; p < u; p++) {
29711
+ for (var d = new ui([u, l], t.dtype), f = this.readSync(r.dataId), h = this.readSync(t.dataId), p = 0; p < u; p++) {
29720
29712
  for (var v = [], m = 0, g = 0; g < a; g++) {
29721
29713
  var w = f[p * a + g];
29722
29714
  m += w * c[g], v.push(w);
@@ -29729,7 +29721,7 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
29729
29721
  var a = Ls(0, t, o), i = a.sliceRank, s = a.numUpdates, u = a.sliceSize, l = a.strides, c = a.outputSize, d = we(0);
29730
29722
  return this.scatter(t, r, o, c, u, s, i, l, d, !0);
29731
29723
  }, n.prototype.fill = function(t, r, o) {
29732
- var a = Is(o = o || ki(r), Be(t));
29724
+ var a = Is(o = o || Si(r), Be(t));
29733
29725
  return a.fill(r), U.makeTensor(a, t, o, this);
29734
29726
  }, n.prototype.onesLike = function(t) {
29735
29727
  if (t.dtype === "string") throw new Error("onesLike is not supported for string tensors");
@@ -29742,7 +29734,7 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
29742
29734
  }, n.prototype.scatter = function(t, r, o, a, i, s, u, l, c, d) {
29743
29735
  var f = [a / i, i], h = this.readSync(t.dataId), p = this.readSync(r.dataId);
29744
29736
  if (a === 0) return wn([], o, r.dtype);
29745
- var v = new si(f, r.dtype);
29737
+ var v = new ui(f, r.dtype);
29746
29738
  v.values.fill(this.readSync(c.dataId)[0]);
29747
29739
  for (var m = 0; m < s; m++) {
29748
29740
  for (var g = [], w = 0, b = 0; b < u; b++) {
@@ -29771,11 +29763,11 @@ for (var Fl = 0, pp = [{ kernelName: "NonMaxSuppressionV5", backendName: "cpu",
29771
29763
  i[s] = u * u;
29772
29764
  }
29773
29765
  return { dataId: o.write(i, r.shape, r.dtype), shape: r.shape, dtype: r.dtype };
29774
- } }, { kernelName: ci, backendName: "cpu", kernelFunc: function(e) {
29766
+ } }, { kernelName: di, backendName: "cpu", kernelFunc: function(e) {
29775
29767
  var n = e.inputs, t = e.backend, r = n, o = r.a, a = r.b, i = t;
29776
- ce([o, a], ci);
29768
+ ce([o, a], di);
29777
29769
  var s = i.data.get(o.dataId).values, u = i.data.get(a.dataId).values, l = function(f, h, p, v, m, g) {
29778
- var w = pt(f, h), b = w.length, y = kr(w), x = ii(m, Be(w)), _ = f.length, E = h.length, R = kr(f), C = kr(h), S = oo(f, w), M = oo(h, w);
29770
+ var w = pt(f, h), b = w.length, y = kr(w), x = si(m, Be(w)), _ = f.length, E = h.length, R = kr(f), C = kr(h), S = oo(f, w), M = oo(h, w);
29779
29771
  if (S.length + M.length === 0) for (var I = 0; I < x.length; ++I) x[I] = g(p[I % p.length], v[I % v.length]);
29780
29772
  else {
29781
29773
  var W = function(D) {
@@ -29880,7 +29872,7 @@ for (var Pl = 0, vp = [{ kernelName: "FromPixels", backendName: "webgl", kernelF
29880
29872
  } }, { kernelName: "Square", backendName: "webgl", kernelFunc: function(e) {
29881
29873
  var n = e.inputs, t = e.backend, r = n.x, o = t, a = new lt(r.shape, "return x * x;");
29882
29874
  return o.runWebGLProgram(a, [r], r.dtype);
29883
- } }, { kernelName: ci, backendName: "webgl", kernelFunc: function(e) {
29875
+ } }, { kernelName: di, backendName: "webgl", kernelFunc: function(e) {
29884
29876
  var n = e.inputs, t = e.backend, r = n, o = r.a, a = r.b, i = t, s = ie().getBool("WEBGL_PACK_BINARY_OPERATIONS") ? new qr("return (a - b) * (a - b);", o.shape, a.shape) : new Gt("return (a - b) * (a - b);", o.shape, a.shape);
29885
29877
  return i.compileAndRun(s, [o, a]);
29886
29878
  } }]; Pl < vp.length; Pl++)
@@ -29890,7 +29882,7 @@ for (var Bl = 0, mp = [{ kernelName: "Square", gradFunc: function(e, n) {
29890
29882
  return { x: function() {
29891
29883
  return e.mul(t.toFloat().mul(2));
29892
29884
  } };
29893
- } }, { kernelName: ci, gradFunc: function(e, n) {
29885
+ } }, { kernelName: di, gradFunc: function(e, n) {
29894
29886
  var t = n[0], r = n[1], o = we(2);
29895
29887
  return { a: function() {
29896
29888
  return In(e, In(o, sn(t, r)));
@@ -30005,7 +29997,7 @@ function yp(e) {
30005
29997
  var n = e.split("/");
30006
29998
  return n[n.length - 1];
30007
29999
  }
30008
- function Di(e) {
30000
+ function Mi(e) {
30009
30001
  if (e.modelTopology instanceof ArrayBuffer) throw new Error("Expected JSON model topology, received ArrayBuffer.");
30010
30002
  return { dateSaved: /* @__PURE__ */ new Date(), modelTopologyType: "JSON", modelTopologyBytes: e.modelTopology == null ? 0 : gp(JSON.stringify(e.modelTopology)), weightSpecsBytes: e.weightSpecs == null ? 0 : gp(JSON.stringify(e.weightSpecs)), weightDataBytes: e.weightData == null ? 0 : e.weightData.byteLength };
30011
30003
  }
@@ -30054,7 +30046,7 @@ var Gn = function() {
30054
30046
  return Object.keys(this.getInstance().managers);
30055
30047
  }, e;
30056
30048
  }();
30057
- function ls(e) {
30049
+ function cs(e) {
30058
30050
  if (e.indexOf(va) === -1) throw new Error("The url string provided does not contain a scheme. Supported schemes are: " + uo.getSchemes().join(","));
30059
30051
  return { scheme: e.split(va)[0], path: e.split(va)[1] };
30060
30052
  }
@@ -30074,7 +30066,7 @@ function bp(e, n, t) {
30074
30066
  return "Copying failed because no save handler is found for destination URL " + n + ".";
30075
30067
  }), F(a.length < 2, function() {
30076
30068
  return "Copying failed because more than one (" + r.length + ") save handlers for destination URL " + n + ".";
30077
- }), i = a[0], s = ls(e).scheme, u = ls(e).path, l = s === ls(e).scheme, [4, o.load()];
30069
+ }), i = a[0], s = cs(e).scheme, u = cs(e).path, l = s === cs(e).scheme, [4, o.load()];
30078
30070
  case 1:
30079
30071
  return c = f.sent(), t && l ? [4, uo.getManager(s).removeModel(u)] : [3, 3];
30080
30072
  case 2:
@@ -30139,7 +30131,7 @@ var ma = function() {
30139
30131
  return s.close();
30140
30132
  };
30141
30133
  } else {
30142
- var c, d = Di(t), f = s.transaction(ao, "readwrite"), h = f.objectStore(ao), p = h.put({ modelPath: r.modelPath, modelArtifactsInfo: d });
30134
+ var c, d = Mi(t), f = s.transaction(ao, "readwrite"), h = f.objectStore(ao), p = h.put({ modelPath: r.modelPath, modelArtifactsInfo: d });
30143
30135
  p.onsuccess = function() {
30144
30136
  var v = (c = s.transaction(Io, "readwrite")).objectStore(Io).put({ modelPath: r.modelPath, modelArtifacts: t, modelArtifactsInfo: d });
30145
30137
  v.onsuccess = function() {
@@ -30264,7 +30256,7 @@ var ga = function() {
30264
30256
  var t, r, o;
30265
30257
  return De(this, function(a) {
30266
30258
  if (n.modelTopology instanceof ArrayBuffer) throw new Error("BrowserLocalStorage.save() does not support saving model topology in binary formats yet.");
30267
- t = JSON.stringify(n.modelTopology), r = JSON.stringify(n.weightSpecs), o = Di(n);
30259
+ t = JSON.stringify(n.modelTopology), r = JSON.stringify(n.weightSpecs), o = Mi(n);
30268
30260
  try {
30269
30261
  return this.LS.setItem(this.keys.info, JSON.stringify(o)), this.LS.setItem(this.keys.topology, t), this.LS.setItem(this.keys.weightSpecs, r), this.LS.setItem(this.keys.weightData, function(i) {
30270
30262
  if (Ic) return Buffer.from(i).toString("base64");
@@ -30364,7 +30356,7 @@ var Nl = function() {
30364
30356
  case 3:
30365
30357
  u.sent(), u.label = 4;
30366
30358
  case 4:
30367
- return [2, { modelArtifactsInfo: Di(n) }];
30359
+ return [2, { modelArtifactsInfo: Mi(n) }];
30368
30360
  }
30369
30361
  });
30370
30362
  });
@@ -30561,7 +30553,7 @@ var Jg = function() {
30561
30553
  if (n.modelTopology instanceof ArrayBuffer) throw new Error("BrowserHTTPRequest.save() does not support saving model topology in binary formats yet.");
30562
30554
  return (t = Object.assign({ method: this.DEFAULT_METHOD }, this.requestInit)).body = new FormData(), r = [{ paths: ["./model.weights.bin"], weights: n.weightSpecs }], o = { modelTopology: n.modelTopology, format: n.format, generatedBy: n.generatedBy, convertedBy: n.convertedBy, userDefinedMetadata: n.userDefinedMetadata, weightsManifest: r }, t.body.append("model.json", new Blob([JSON.stringify(o)], { type: "application/json" }), "model.json"), n.weightData != null && t.body.append("model.weights.bin", new Blob([n.weightData], { type: "application/octet-stream" }), "model.weights.bin"), [4, this.fetch(this.path, t)];
30563
30555
  case 1:
30564
- if ((a = i.sent()).ok) return [2, { modelArtifactsInfo: Di(n), responses: [a] }];
30556
+ if ((a = i.sent()).ok) return [2, { modelArtifactsInfo: Mi(n), responses: [a] }];
30565
30557
  throw new Error("BrowserHTTPRequest.save() failed due to HTTP response status " + a.status + ".");
30566
30558
  }
30567
30559
  });
@@ -30695,7 +30687,7 @@ var Ll = function() {
30695
30687
  return arguments.length === 1 ? e.modelTopology != null || e.weightSpecs != null ? new Ll(e) : (console.warn("Please call tf.io.fromMemory() with only one argument. The argument should be of type ModelArtifacts. The multi-argument signature of tf.io.fromMemory() has been deprecated and will be removed in a future release."), new Ll({ modelTopology: e })) : (console.warn("Please call tf.io.fromMemory() with only one argument. The argument should be of type ModelArtifacts. The multi-argument signature of tf.io.fromMemory() has been deprecated and will be removed in a future release."), new Ll({ modelTopology: e, weightSpecs: n, weightData: t, trainingConfig: r }));
30696
30688
  }, getLoadHandlers: function(e, n) {
30697
30689
  return Gn.getLoadHandlers(e, n);
30698
- }, getModelArtifactsInfoForJSON: Di, getSaveHandlers: function(e) {
30690
+ }, getModelArtifactsInfoForJSON: Mi, getSaveHandlers: function(e) {
30699
30691
  return Gn.getSaveHandlers(e);
30700
30692
  }, http: Dc, isHTTPScheme: Ac, loadWeights: function(e, n, t, r) {
30701
30693
  return n === void 0 && (n = ""), Ae(this, void 0, void 0, function() {
@@ -30746,7 +30738,7 @@ var Ll = function() {
30746
30738
  return Ae(this, void 0, void 0, function() {
30747
30739
  var n;
30748
30740
  return De(this, function(t) {
30749
- return n = ls(e), [2, uo.getManager(n.scheme).removeModel(n.path)];
30741
+ return n = cs(e), [2, uo.getManager(n.scheme).removeModel(n.path)];
30750
30742
  });
30751
30743
  });
30752
30744
  } }), ea;
@@ -31559,7 +31551,7 @@ function Hd(e) {
31559
31551
  return n.add(t);
31560
31552
  }, new Ct(0, 0)).div(new Ct(e.length, e.length));
31561
31553
  }
31562
- function di(e, n, t) {
31554
+ function fi(e, n, t) {
31563
31555
  return Array(e).fill(0).map(function(r, o) {
31564
31556
  return n + o * t;
31565
31557
  });
@@ -31848,7 +31840,7 @@ function FT(e) {
31848
31840
  }, 0);
31849
31841
  return new Cu(r, o, a, i);
31850
31842
  }
31851
- function fi(e, n, t, r) {
31843
+ function hi(e, n, t, r) {
31852
31844
  r === void 0 && (r = !0);
31853
31845
  for (var o = n.map(function(s, u) {
31854
31846
  return { score: s, boxIndex: u };
@@ -31870,7 +31862,7 @@ function fi(e, n, t, r) {
31870
31862
  i();
31871
31863
  return a;
31872
31864
  }
31873
- function Mi(e, n) {
31865
+ function Fi(e, n) {
31874
31866
  return Re(function() {
31875
31867
  var t = n[0], r = n[1], o = n[2], a = Sr(ti(e.shape.slice(0, 3), [1]), t), i = Sr(ti(e.shape.slice(0, 3), [1]), r), s = Sr(ti(e.shape.slice(0, 3), [1]), o), u = rn([a, i, s], 3);
31876
31868
  return sn(e, u);
@@ -32062,7 +32054,7 @@ var ku = (
32062
32054
  configurable: !0
32063
32055
  }), n;
32064
32056
  }(Ir)
32065
- ), Qi = (
32057
+ ), Zi = (
32066
32058
  /** @class */
32067
32059
  function() {
32068
32060
  function e(n, t) {
@@ -32124,10 +32116,10 @@ var ku = (
32124
32116
  configurable: !0
32125
32117
  }), n;
32126
32118
  })(Ap);
32127
- function hi(e) {
32119
+ function pi(e) {
32128
32120
  return e.detection instanceof Qn;
32129
32121
  }
32130
- function pi(e, n) {
32122
+ function vi(e, n) {
32131
32123
  var t = { detection: n };
32132
32124
  return Object.assign({}, e, t);
32133
32125
  }
@@ -32358,7 +32350,7 @@ var l0 = (
32358
32350
  function $T(e, n) {
32359
32351
  var t = Array.isArray(n) ? n : [n];
32360
32352
  t.forEach(function(r) {
32361
- var o = r instanceof Qn ? r.score : hi(r) ? r.detection.score : void 0, a = r instanceof Qn ? r.box : hi(r) ? r.detection.box : new Ir(r), i = o ? "" + $d(o) : void 0;
32353
+ var o = r instanceof Qn ? r.score : pi(r) ? r.detection.score : void 0, a = r instanceof Qn ? r.box : pi(r) ? r.detection.box : new Ir(r), i = o ? "" + $d(o) : void 0;
32362
32354
  new WT(a, { label: i }).draw(e);
32363
32355
  });
32364
32356
  }
@@ -32483,7 +32475,7 @@ var js = (
32483
32475
  }), Object.defineProperty(e.prototype, "reshapedInputDimensions", {
32484
32476
  get: function() {
32485
32477
  var n = this;
32486
- return di(this.batchSize, 0, 1).map(function(t, r) {
32478
+ return fi(this.batchSize, 0, 1).map(function(t, r) {
32487
32479
  return n.getReshapedInputDimensions(r);
32488
32480
  });
32489
32481
  },
@@ -32505,7 +32497,7 @@ var js = (
32505
32497
  }, e.prototype.toBatchTensor = function(n, t) {
32506
32498
  var r = this;
32507
32499
  return t === void 0 && (t = !0), this._inputSize = n, Re(function() {
32508
- var o = di(r.batchSize, 0, 1).map(function(i) {
32500
+ var o = fi(r.batchSize, 0, 1).map(function(i) {
32509
32501
  var s = r.getInput(i);
32510
32502
  if (s instanceof $t) {
32511
32503
  var u = lo(s) ? s : s.expandDims();
@@ -32832,7 +32824,7 @@ function Vl(e, n, t) {
32832
32824
  return Ht(ft(r, ft(o, i)));
32833
32825
  });
32834
32826
  }
32835
- function Zi(e, n, t, r) {
32827
+ function Ji(e, n, t, r) {
32836
32828
  return t === void 0 && (t = !1), r === void 0 && (r = !0), Re(function() {
32837
32829
  var o = Ht(t ? ft(ar(e, n.conv0.filters, r ? [2, 2] : [1, 1], "same"), n.conv0.bias) : Kn(e, n.conv0, r ? [2, 2] : [1, 1])), a = Kn(o, n.conv1, [1, 1]), i = Ht(ft(o, a)), s = Kn(i, n.conv2, [1, 1]), u = Ht(ft(o, ft(a, s))), l = Kn(u, n.conv3, [1, 1]);
32838
32830
  return Ht(ft(o, ft(a, ft(s, l))));
@@ -32979,8 +32971,8 @@ var g0 = (
32979
32971
  if (!r)
32980
32972
  throw new Error("FaceFeatureExtractor - load model before inference");
32981
32973
  return Re(function() {
32982
- var o = t.toBatchTensor(112, !0), a = [122.782, 117.001, 104.298], i = Mi(o, a).div(we(255)), s = Zi(i, r.dense0, !0);
32983
- return s = Zi(s, r.dense1), s = Zi(s, r.dense2), s = Zi(s, r.dense3), s = Ai(s, [7, 7], [2, 2], "valid"), s;
32974
+ var o = t.toBatchTensor(112, !0), a = [122.782, 117.001, 104.298], i = Fi(o, a).div(we(255)), s = Ji(i, r.dense0, !0);
32975
+ return s = Ji(s, r.dense1), s = Ji(s, r.dense2), s = Ji(s, r.dense3), s = Di(s, [7, 7], [2, 2], "valid"), s;
32984
32976
  });
32985
32977
  }, n.prototype.forward = function(t) {
32986
32978
  return Le(this, void 0, void 0, function() {
@@ -33171,14 +33163,14 @@ function r6(e, n, t, r) {
33171
33163
  throw new Error("drawFaceExpressions - expected faceExpressions to be FaceExpressions | WithFaceExpressions<{}> or array thereof");
33172
33164
  var s = i.asSortedArray(), u = s.filter(function(d) {
33173
33165
  return d.probability > t;
33174
- }), l = hi(a) ? a.detection.box.bottomLeft : new Ct(0, 0), c = new c0(u.map(function(d) {
33166
+ }), l = pi(a) ? a.detection.box.bottomLeft : new Ct(0, 0), c = new c0(u.map(function(d) {
33175
33167
  return d.expression + " (" + $d(d.probability) + ")";
33176
33168
  }), l);
33177
33169
  c.draw(e);
33178
33170
  });
33179
33171
  }
33180
33172
  function Jd(e) {
33181
- return hi(e) && e.landmarks instanceof Ia && e.unshiftedLandmarks instanceof Ia && e.alignedRect instanceof Qn;
33173
+ return pi(e) && e.landmarks instanceof Ia && e.unshiftedLandmarks instanceof Ia && e.alignedRect instanceof Qn;
33182
33174
  }
33183
33175
  function Tu(e, n) {
33184
33176
  var t = e.detection.box, r = n.shiftBy(t.x, t.y), o = r.align(), a = e.detection.imageDims, i = new Qn(e.detection.score, o.rescale(a.reverse()), a), s = {
@@ -33248,7 +33240,7 @@ function u6(e, n) {
33248
33240
  reduction_block_0: f,
33249
33241
  reduction_block_1: h
33250
33242
  }, v = {};
33251
- di(n, 0, 1).forEach(function(b) {
33243
+ fi(n, 0, 1).forEach(function(b) {
33252
33244
  v["main_block_" + b] = c(128, "middle_flow/main_block_" + b);
33253
33245
  });
33254
33246
  var m = l(128, 256, "exit_flow/reduction_block"), g = u(256, 512, "exit_flow/separable_conv"), w = {
@@ -33285,7 +33277,7 @@ function c6(e, n) {
33285
33277
  reduction_block_0: l,
33286
33278
  reduction_block_1: c
33287
33279
  }, f = {};
33288
- di(n, 0, 1).forEach(function(m) {
33280
+ fi(n, 0, 1).forEach(function(m) {
33289
33281
  f["main_block_" + m] = s("middle_flow/main_block_" + m);
33290
33282
  });
33291
33283
  var h = i("exit_flow/reduction_block"), p = a("exit_flow/separable_conv"), v = {
@@ -33319,8 +33311,8 @@ var f6 = (
33319
33311
  if (!o)
33320
33312
  throw new Error("TinyXception - load model before inference");
33321
33313
  return Re(function() {
33322
- var a = t.toBatchTensor(112, !0), i = [122.782, 117.001, 104.298], s = Mi(a, i).div(we(256)), u = Ht(x0(s, o.entry_flow.conv_in, [2, 2]));
33323
- return u = zl(u, o.entry_flow.reduction_block_0, !1), u = zl(u, o.entry_flow.reduction_block_1), di(r._numMainBlocks, 0, 1).forEach(function(l) {
33314
+ var a = t.toBatchTensor(112, !0), i = [122.782, 117.001, 104.298], s = Fi(a, i).div(we(256)), u = Ht(x0(s, o.entry_flow.conv_in, [2, 2]));
33315
+ return u = zl(u, o.entry_flow.reduction_block_0, !1), u = zl(u, o.entry_flow.reduction_block_1), fi(r._numMainBlocks, 0, 1).forEach(function(l) {
33324
33316
  u = d6(u, o.middle_flow["main_block_" + l]);
33325
33317
  }), u = zl(u, o.exit_flow.reduction_block), u = Ht(Kn(u, o.exit_flow.separable_conv, [1, 1])), u;
33326
33318
  });
@@ -33392,7 +33384,7 @@ var v6 = (
33392
33384
  if (!o)
33393
33385
  throw new Error(this._name + " - load model before inference");
33394
33386
  return Re(function() {
33395
- var a = t instanceof js ? r.faceFeatureExtractor.forwardInput(t) : t, i = Ai(a, [7, 7], [2, 2], "valid").as2D(a.shape[0], -1), s = _r(i, o.fc.age).as1D(), u = _r(i, o.fc.gender);
33387
+ var a = t instanceof js ? r.faceFeatureExtractor.forwardInput(t) : t, i = Di(a, [7, 7], [2, 2], "valid").as2D(a.shape[0], -1), s = _r(i, o.fc.age).as1D(), u = _r(i, o.fc.gender);
33396
33388
  return { age: s, gender: u };
33397
33389
  });
33398
33390
  }, n.prototype.forwardInput = function(t) {
@@ -33612,8 +33604,8 @@ var y6 = (
33612
33604
  if (!r)
33613
33605
  throw new Error("TinyFaceFeatureExtractor - load model before inference");
33614
33606
  return Re(function() {
33615
- var o = t.toBatchTensor(112, !0), a = [122.782, 117.001, 104.298], i = Mi(o, a).div(we(255)), s = Vl(i, r.dense0, !0);
33616
- return s = Vl(s, r.dense1), s = Vl(s, r.dense2), s = Ai(s, [14, 14], [2, 2], "valid"), s;
33607
+ var o = t.toBatchTensor(112, !0), a = [122.782, 117.001, 104.298], i = Fi(o, a).div(we(255)), s = Vl(i, r.dense0, !0);
33608
+ return s = Vl(s, r.dense1), s = Vl(s, r.dense2), s = Di(s, [14, 14], [2, 2], "valid"), s;
33617
33609
  });
33618
33610
  }, n.prototype.forward = function(t) {
33619
33611
  return Le(this, void 0, void 0, function() {
@@ -33782,10 +33774,10 @@ function gr(e, n) {
33782
33774
  var t = x6(e, n.conv1);
33783
33775
  return t = k0(t, n.conv2), t = ft(t, e), t = Ht(t), t;
33784
33776
  }
33785
- function Ji(e, n) {
33777
+ function es(e, n) {
33786
33778
  var t = S0(e, n.conv1);
33787
33779
  t = k0(t, n.conv2);
33788
- var r = Ai(e, 2, 2, "valid"), o = Vt(r.shape), a = r.shape[3] !== t.shape[3], i = r.shape[1] !== t.shape[1] || r.shape[2] !== t.shape[2];
33780
+ var r = Di(e, 2, 2, "valid"), o = Vt(r.shape), a = r.shape[3] !== t.shape[3], i = r.shape[1] !== t.shape[1] || r.shape[2] !== t.shape[2];
33789
33781
  if (i) {
33790
33782
  var s = ti(t.shape);
33791
33783
  s[1] = 1;
@@ -33810,8 +33802,8 @@ var E6 = (
33810
33802
  if (!r)
33811
33803
  throw new Error("FaceRecognitionNet - load model before inference");
33812
33804
  return Re(function() {
33813
- var o = t.toBatchTensor(150, !0).toFloat(), a = [122.782, 117.001, 104.298], i = Mi(o, a).div(we(256)), s = S0(i, r.conv32_down);
33814
- s = cn(s, 3, 2, "valid"), s = gr(s, r.conv32_1), s = gr(s, r.conv32_2), s = gr(s, r.conv32_3), s = Ji(s, r.conv64_down), s = gr(s, r.conv64_1), s = gr(s, r.conv64_2), s = gr(s, r.conv64_3), s = Ji(s, r.conv128_down), s = gr(s, r.conv128_1), s = gr(s, r.conv128_2), s = Ji(s, r.conv256_down), s = gr(s, r.conv256_1), s = gr(s, r.conv256_2), s = Ji(s, r.conv256_down_out);
33805
+ var o = t.toBatchTensor(150, !0).toFloat(), a = [122.782, 117.001, 104.298], i = Fi(o, a).div(we(256)), s = S0(i, r.conv32_down);
33806
+ s = cn(s, 3, 2, "valid"), s = gr(s, r.conv32_1), s = gr(s, r.conv32_2), s = gr(s, r.conv32_3), s = es(s, r.conv64_down), s = gr(s, r.conv64_1), s = gr(s, r.conv64_2), s = gr(s, r.conv64_3), s = es(s, r.conv128_down), s = gr(s, r.conv128_1), s = gr(s, r.conv128_2), s = es(s, r.conv256_down), s = gr(s, r.conv256_1), s = gr(s, r.conv256_2), s = es(s, r.conv256_down_out);
33815
33807
  var u = s.mean([1, 2]), l = yu(u, r.fc);
33816
33808
  return l;
33817
33809
  });
@@ -34356,7 +34348,7 @@ var z6 = 0.4, W6 = [
34356
34348
  new Ct(2.882459, 3.518061),
34357
34349
  new Ct(4.266906, 5.178857),
34358
34350
  new Ct(9.041765, 10.66308)
34359
- ], H6 = [117.001, 114.697, 97.404], U6 = "tiny_yolov2_model", j6 = "tiny_yolov2_separable_conv_model", es = function(e) {
34351
+ ], H6 = [117.001, 114.697, 97.404], U6 = "tiny_yolov2_model", j6 = "tiny_yolov2_separable_conv_model", ts = function(e) {
34360
34352
  return typeof e == "number";
34361
34353
  };
34362
34354
  function G6(e) {
@@ -34364,7 +34356,7 @@ function G6(e) {
34364
34356
  throw new Error("invalid config: " + e);
34365
34357
  if (typeof e.withSeparableConvs != "boolean")
34366
34358
  throw new Error("config.withSeparableConvs has to be a boolean, have: " + e.withSeparableConvs);
34367
- if (!es(e.iouThreshold) || e.iouThreshold < 0 || e.iouThreshold > 1)
34359
+ if (!ts(e.iouThreshold) || e.iouThreshold < 0 || e.iouThreshold > 1)
34368
34360
  throw new Error("config.iouThreshold has to be a number between [0, 1], have: " + e.iouThreshold);
34369
34361
  if (!Array.isArray(e.classes) || !e.classes.length || !e.classes.every(function(n) {
34370
34362
  return typeof n == "string";
@@ -34373,10 +34365,10 @@ function G6(e) {
34373
34365
  if (!Array.isArray(e.anchors) || !e.anchors.length || !e.anchors.map(function(n) {
34374
34366
  return n || {};
34375
34367
  }).every(function(n) {
34376
- return es(n.x) && es(n.y);
34368
+ return ts(n.x) && ts(n.y);
34377
34369
  }))
34378
34370
  throw new Error("config.anchors has to be an array of { x: number, y: number }, have: " + JSON.stringify(e.anchors));
34379
- if (e.meanRgb && (!Array.isArray(e.meanRgb) || e.meanRgb.length !== 3 || !e.meanRgb.every(es)))
34371
+ if (e.meanRgb && (!Array.isArray(e.meanRgb) || e.meanRgb.length !== 3 || !e.meanRgb.every(ts)))
34380
34372
  throw new Error("config.meanRgb has to be an array of shape [number, number, number], have: " + JSON.stringify(e.meanRgb));
34381
34373
  }
34382
34374
  function tf(e) {
@@ -34543,7 +34535,7 @@ var nf = (
34543
34535
  throw new Error("TinyYolov2 - load model before inference");
34544
34536
  return Re(function() {
34545
34537
  var i = t.toBatchTensor(r, !1).toFloat();
34546
- return i = o.config.meanRgb ? Mi(i, o.config.meanRgb) : i, i = i.div(we(256)), o.config.withSeparableConvs ? o.runMobilenet(i, a) : o.runTinyYolov2(i, a);
34538
+ return i = o.config.meanRgb ? Fi(i, o.config.meanRgb) : i, i = i.div(we(256)), o.config.withSeparableConvs ? o.runMobilenet(i, a) : o.runTinyYolov2(i, a);
34547
34539
  });
34548
34540
  }, n.prototype.forward = function(t, r) {
34549
34541
  return Le(this, void 0, void 0, function() {
@@ -34584,7 +34576,7 @@ var nf = (
34584
34576
  return y.classScore;
34585
34577
  }), v = d.map(function(y) {
34586
34578
  return w.config.classes[y.label];
34587
- }), m = fi(f.map(function(y) {
34579
+ }), m = hi(f.map(function(y) {
34588
34580
  return y.rescale(a);
34589
34581
  }), h, this.config.iouThreshold, !0), g = m.map(function(y) {
34590
34582
  return new n0(h[y], p[y], v[y], f[y], c);
@@ -34734,7 +34726,7 @@ var nf = (
34734
34726
  }
34735
34727
  return n;
34736
34728
  }(nf)
34737
- ), Fi = (
34729
+ ), Pi = (
34738
34730
  /** @class */
34739
34731
  function() {
34740
34732
  function e() {
@@ -34809,7 +34801,7 @@ function J6(e) {
34809
34801
  return Yn(on(e, 3).reverse(), 3);
34810
34802
  });
34811
34803
  }
34812
- var ts = 2, Ks = 12;
34804
+ var ns = 2, Ks = 12;
34813
34805
  function eA(e, n) {
34814
34806
  var t = Iu(e, n), r = Xd(e, n);
34815
34807
  function o(l, c) {
@@ -34939,7 +34931,7 @@ function sA(e, n, t, r) {
34939
34931
  for (var s = 0; s < e.shape[1]; s++)
34940
34932
  a[i][s] >= r && o.push(new Ct(s, i));
34941
34933
  var u = o.map(function(l) {
34942
- var c = new Cu(Math.round((l.y * ts + 1) / t), Math.round((l.x * ts + 1) / t), Math.round((l.y * ts + Ks) / t), Math.round((l.x * ts + Ks) / t)), d = a[l.y][l.x], f = n.arraySync(), h = new of(f[l.y][l.x][0], f[l.y][l.x][1], f[l.y][l.x][2], f[l.y][l.x][3]);
34934
+ var c = new Cu(Math.round((l.y * ns + 1) / t), Math.round((l.x * ns + 1) / t), Math.round((l.y * ns + Ks) / t), Math.round((l.x * ns + Ks) / t)), d = a[l.y][l.x], f = n.arraySync(), h = new of(f[l.y][l.x][0], f[l.y][l.x][1], f[l.y][l.x][2], f[l.y][l.x][3]);
34943
34935
  return {
34944
34936
  cell: c,
34945
34937
  score: d,
@@ -34966,7 +34958,7 @@ function uA(e, n, t, r, o) {
34966
34958
  var h = f.scoresTensor, p = f.regionsTensor, v = f.scale, m = f.statsForScale, g = sA(h, p, v, t);
34967
34959
  if (h.dispose(), p.dispose(), !g.length)
34968
34960
  return o.stage1.push(m), [];
34969
- var w = Date.now(), b = fi(g.map(function(y) {
34961
+ var w = Date.now(), b = hi(g.map(function(y) {
34970
34962
  return y.cell;
34971
34963
  }), g.map(function(y) {
34972
34964
  return y.score;
@@ -34978,7 +34970,7 @@ function uA(e, n, t, r, o) {
34978
34970
  return f.concat(h);
34979
34971
  }, []), u = [], l = [];
34980
34972
  if (s.length > 0) {
34981
- var c = Date.now(), d = fi(s.map(function(f) {
34973
+ var c = Date.now(), d = hi(s.map(function(f) {
34982
34974
  return f.cell;
34983
34975
  }), s.map(function(f) {
34984
34976
  return f.score;
@@ -35062,7 +35054,7 @@ function cA(e, n, t, r, o) {
35062
35054
  return n[y];
35063
35055
  }), p = f.map(function(y) {
35064
35056
  return l[y];
35065
- }), v = [], m = [], h.length > 0 && (a = Date.now(), g = fi(h, p, 0.7), o.stage2_nms = Date.now() - a, w = g.map(function(y) {
35057
+ }), v = [], m = [], h.length > 0 && (a = Date.now(), g = hi(h, p, 0.7), o.stage2_nms = Date.now() - a, w = g.map(function(y) {
35066
35058
  var x = s[f[y]].regions.arraySync();
35067
35059
  return new of(x[0][0], x[0][1], x[0][2], x[0][3]);
35068
35060
  }), m = g.map(function(y) {
@@ -35116,7 +35108,7 @@ function fA(e, n, t, r, o) {
35116
35108
  return n[x].calibrate(h[_]);
35117
35109
  }), v = f.map(function(x) {
35118
35110
  return l[x];
35119
- }), m = [], g = [], w = [], p.length > 0 && (a = Date.now(), b = fi(p, v, 0.7, !1), o.stage3_nms = Date.now() - a, m = b.map(function(x) {
35111
+ }), m = [], g = [], w = [], p.length > 0 && (a = Date.now(), b = hi(p, v, 0.7, !1), o.stage3_nms = Date.now() - a, m = b.map(function(x) {
35120
35112
  return p[x];
35121
35113
  }), g = b.map(function(x) {
35122
35114
  return v[x];
@@ -35181,7 +35173,7 @@ var hA = (
35181
35173
  return _ = C.sent(), i.total_stage2 = Date.now() - y, _.boxes.length ? (i.stage3_numInputBoxes = _.boxes.length, y = Date.now(), [4, fA(a, _.boxes, g[2], o.onet, i)]) : [2, l({ results: [], stats: i })];
35182
35174
  case 3:
35183
35175
  return E = C.sent(), i.total_stage3 = Date.now() - y, R = E.boxes.map(function(S, M) {
35184
- return Tu(pi({}, new Qn(E.scores[M], new ku(S.left / f, S.top / d, S.width / f, S.height / d), {
35176
+ return Tu(vi({}, new Qn(E.scores[M], new ku(S.left / f, S.top / d, S.width / f, S.height / d), {
35185
35177
  height: d,
35186
35178
  width: f
35187
35179
  })), new LT(E.points[M].map(function(I) {
@@ -35298,7 +35290,7 @@ var hA = (
35298
35290
  return a.parentTask = t, a.input = r, a.extractedFaces = o, a;
35299
35291
  }
35300
35292
  return n;
35301
- }(Fi)
35293
+ }(Pi)
35302
35294
  ), sf = (
35303
35295
  /** @class */
35304
35296
  function(e) {
@@ -35404,7 +35396,7 @@ var hA = (
35404
35396
  return a.parentTask = t, a.input = r, a.extractedFaces = o, a;
35405
35397
  }
35406
35398
  return n;
35407
- }(Fi)
35399
+ }(Pi)
35408
35400
  ), df = (
35409
35401
  /** @class */
35410
35402
  function(e) {
@@ -35511,7 +35503,7 @@ var hA = (
35511
35503
  return o.parentTask = t, o.input = r, o;
35512
35504
  }
35513
35505
  return n;
35514
- }(Fi)
35506
+ }(Pi)
35515
35507
  ), vf = (
35516
35508
  /** @class */
35517
35509
  function(e) {
@@ -35596,7 +35588,7 @@ var hA = (
35596
35588
  enumerable: !0,
35597
35589
  configurable: !0
35598
35590
  }), n;
35599
- }(Fi)
35591
+ }(Pi)
35600
35592
  ), yA = (
35601
35593
  /** @class */
35602
35594
  function(e) {
@@ -35694,7 +35686,7 @@ var hA = (
35694
35686
  return o.input = t, o.options = r, o;
35695
35687
  }
35696
35688
  return n;
35697
- }(Fi)
35689
+ }(Pi)
35698
35690
  ), V0 = (
35699
35691
  /** @class */
35700
35692
  function(e) {
@@ -35737,7 +35729,7 @@ var hA = (
35737
35729
  return [4, this.run()];
35738
35730
  case 1:
35739
35731
  return o = a.sent(), [2, r(o.map(function(i) {
35740
- return pi({}, i);
35732
+ return vi({}, i);
35741
35733
  }))];
35742
35734
  }
35743
35735
  });
@@ -35781,7 +35773,7 @@ var hA = (
35781
35773
  case 0:
35782
35774
  return [4, this.run()];
35783
35775
  case 1:
35784
- return o = a.sent(), [2, r(o ? pi({}, o) : void 0)];
35776
+ return o = a.sent(), [2, r(o ? vi({}, o) : void 0)];
35785
35777
  }
35786
35778
  });
35787
35779
  });
@@ -35817,12 +35809,12 @@ function xA(e, n) {
35817
35809
  return "person " + o++;
35818
35810
  };
35819
35811
  this._labeledDescriptors = r.map(function(i) {
35820
- if (i instanceof Qi)
35812
+ if (i instanceof Zi)
35821
35813
  return i;
35822
35814
  if (i instanceof Float32Array)
35823
- return new Qi(a(), [i]);
35815
+ return new Zi(a(), [i]);
35824
35816
  if (i.descriptor && i.descriptor instanceof Float32Array)
35825
- return new Qi(a(), [i.descriptor]);
35817
+ return new Zi(a(), [i.descriptor]);
35826
35818
  throw new Error("FaceRecognizer.constructor - expected inputs to be of type LabeledFaceDescriptors | WithFaceDescriptor<any> | Float32Array | Array<LabeledFaceDescriptors | WithFaceDescriptor<any> | Float32Array>");
35827
35819
  });
35828
35820
  }
@@ -35864,7 +35856,7 @@ function xA(e, n) {
35864
35856
  };
35865
35857
  }, e.fromJSON = function(n) {
35866
35858
  var t = n.labeledDescriptors.map(function(r) {
35867
- return Qi.fromJSON(r);
35859
+ return Zi.fromJSON(r);
35868
35860
  });
35869
35861
  return new e(t, n.distanceThreshold);
35870
35862
  }, e;
@@ -35879,9 +35871,9 @@ function z0(e, n) {
35879
35871
  });
35880
35872
  if (Jd(e)) {
35881
35873
  var a = e.detection.forSize(r, o), i = e.unshiftedLandmarks.forSize(a.box.width, a.box.height);
35882
- return Tu(pi(e, a), i);
35874
+ return Tu(vi(e, a), i);
35883
35875
  }
35884
- return hi(e) ? pi(e, e.detection.forSize(r, o)) : e instanceof Ia || e instanceof Qn ? e.forSize(r, o) : e;
35876
+ return pi(e) ? vi(e, e.detection.forSize(r, o)) : e instanceof Ia || e instanceof Qn ? e.forSize(r, o) : e;
35885
35877
  }
35886
35878
  class _A {
35887
35879
  // async getFaceSnapshot(inputImage: any, box: any) {
@@ -35980,7 +35972,9 @@ function _D(e) {
35980
35972
  };
35981
35973
  return me(
35982
35974
  () => e.columnFilters.value,
35983
- () => r(n.value, t.value),
35975
+ async () => {
35976
+ t.value = 1, await r(n.value, t.value);
35977
+ },
35984
35978
  { deep: !0 }
35985
35979
  ), vn(() => r(n.value, t.value)), {
35986
35980
  search: n,