shared-ritm 1.3.42 → 1.3.44

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 a1 = Object.defineProperty;
2
2
  var i1 = (e, n, t) => n in e ? a1(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
- var Ff = (e, n, t) => i1(e, typeof n != "symbol" ? n + "" : n, t);
4
- import { markRaw as Xp, defineComponent as Dt, reactive as da, h as I, withDirectives as Jn, computed as _, ref as X, getCurrentInstance as Xe, nextTick as Ct, watch as me, onMounted as vn, onBeforeUnmount as At, onUnmounted as Qp, Teleport as s1, onDeactivated as po, unref as An, Transition as jn, useCssVars as Oa, createBlock as Ae, openBlock as Y, mergeProps as Cs, withCtx as pe, renderSlot as $t, createCommentVNode as We, createTextVNode as Wt, toDisplayString as pt, toRaw as eo, normalizeClass as Ue, createElementBlock as ye, createVNode as xe, createElementVNode as fe, onBeforeUpdate as Zp, inject as fo, onActivated as Na, mergeModels as si, useModel as Gc, createSlots as La, provide as au, normalizeStyle as so, getCurrentScope as u1, onScopeDispose as l1, createStaticVNode as fr, resolveDynamicComponent as c1, Fragment as hr, renderList as Wr, vShow as Jp, onBeforeMount as Kc, onUpdated as d1, useSlots as iu, shallowReactive as f1, resolveComponent as h1, withModifiers as Ao, normalizeProps as Pf, toHandlers as p1 } from "vue";
3
+ var Uu = (e, n, t) => i1(e, typeof n != "symbol" ? n + "" : n, t);
4
+ import { markRaw as Xp, defineComponent as Dt, reactive as da, h as I, withDirectives as Jn, computed as _, ref as X, getCurrentInstance as Xe, nextTick as Ct, watch as me, onMounted as vn, onBeforeUnmount as At, onUnmounted as Qp, Teleport as s1, onDeactivated as po, unref as An, Transition as jn, useCssVars as Oa, createBlock as Ae, openBlock as Y, mergeProps as Cs, withCtx as pe, renderSlot as $t, createCommentVNode as We, createTextVNode as Wt, toDisplayString as pt, toRaw as eo, normalizeClass as Ue, createElementBlock as ye, createVNode as xe, createElementVNode as fe, onBeforeUpdate as Zp, inject as fo, onActivated as Na, mergeModels as si, useModel as Kc, createSlots as La, provide as au, normalizeStyle as so, getCurrentScope as u1, onScopeDispose as l1, createStaticVNode as fr, resolveDynamicComponent as c1, Fragment as hr, renderList as Wr, vShow as Jp, onBeforeMount as Yc, onUpdated as d1, useSlots as iu, shallowReactive as f1, resolveComponent as h1, withModifiers as Ao, normalizeProps as Pf, toHandlers as p1 } from "vue";
5
5
  function Gn(e, n, t, r) {
6
6
  return Object.defineProperty(e, n, {
7
7
  get: t,
@@ -17,7 +17,7 @@ function v1(e, n) {
17
17
  function je(e) {
18
18
  return Xp(Dt(e));
19
19
  }
20
- function Yc(e) {
20
+ function Xc(e) {
21
21
  return Xp(e);
22
22
  }
23
23
  const m1 = (e, n) => {
@@ -36,7 +36,7 @@ const m1 = (e, n) => {
36
36
  function kt(e, n) {
37
37
  return e !== void 0 && e() || n;
38
38
  }
39
- function Xc(e, n) {
39
+ function Qc(e, n) {
40
40
  if (e !== void 0) {
41
41
  const t = e();
42
42
  if (t != null)
@@ -50,7 +50,7 @@ function On(e, n) {
50
50
  function g1(e, n) {
51
51
  return e === void 0 ? n : n !== void 0 ? n.concat(e()) : e();
52
52
  }
53
- function oc(e, n, t, r, o, a) {
53
+ function ac(e, n, t, r, o, a) {
54
54
  n.key = r + o;
55
55
  const i = I(e, n, t);
56
56
  return o === !0 ? Jn(i, a()) : i;
@@ -86,7 +86,7 @@ const y1 = ["top", "middle", "bottom"], ev = je({
86
86
  }), Lo = X(
87
87
  !1
88
88
  );
89
- let ac;
89
+ let ic;
90
90
  function b1(e, n) {
91
91
  const t = /(edg|edge|edga|edgios)\/([\w.]+)/.exec(e) || /(opr)[\/]([\w.]+)/.exec(e) || /(vivaldi)[\/]([\w.]+)/.exec(e) || /(chrome|crios)[\/]([\w.]+)/.exec(e) || /(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e) || /(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e) || /(firefox|fxios)[\/]([\w.]+)/.exec(e) || /(webkit)[\/]([\w.]+)/.exec(e) || /(opera)(?:.*version|)[\/]([\w.]+)/.exec(e) || [];
92
92
  return {
@@ -141,7 +141,7 @@ function x1(e) {
141
141
  else if (document.location.href.indexOf("-extension://") !== -1)
142
142
  o.bex = !0;
143
143
  else {
144
- if (window.Capacitor !== void 0 ? (o.capacitor = !0, o.nativeMobile = !0, o.nativeMobileWrapper = "capacitor") : (window._cordovaNative !== void 0 || window.cordova !== void 0) && (o.cordova = !0, o.nativeMobile = !0, o.nativeMobileWrapper = "cordova"), Lo.value === !0 && (ac = { is: { ...o } }), tv === !0 && o.mac === !0 && (o.desktop === !0 && o.safari === !0 || o.nativeMobile === !0 && o.android !== !0 && o.ios !== !0 && o.ipad !== !0)) {
144
+ if (window.Capacitor !== void 0 ? (o.capacitor = !0, o.nativeMobile = !0, o.nativeMobileWrapper = "capacitor") : (window._cordovaNative !== void 0 || window.cordova !== void 0) && (o.cordova = !0, o.nativeMobile = !0, o.nativeMobileWrapper = "cordova"), Lo.value === !0 && (ic = { is: { ...o } }), tv === !0 && o.mac === !0 && (o.desktop === !0 && o.safari === !0 || o.nativeMobile === !0 && o.android !== !0 && o.ios !== !0 && o.ipad !== !0)) {
145
145
  delete o.mac, delete o.desktop;
146
146
  const i = Math.min(window.innerHeight, window.innerWidth) > 414 ? "ipad" : "iphone";
147
147
  Object.assign(o, {
@@ -170,7 +170,7 @@ const Bf = navigator.userAgent || navigator.vendor || window.opera, C1 = {
170
170
  within: {
171
171
  iframe: window.self !== window.top
172
172
  }
173
- }, ic = {
173
+ }, sc = {
174
174
  install(e) {
175
175
  const { $q: n } = e;
176
176
  Lo.value === !0 ? (e.onSSRHydrated.push(() => {
@@ -189,12 +189,12 @@ const Bf = navigator.userAgent || navigator.vendor || window.opera, C1 = {
189
189
  } catch {
190
190
  }
191
191
  return e = !1, !1;
192
- }), Object.assign(ic, rn), Lo.value === !0 && (Object.assign(ic, ac, C1), ac = null);
192
+ }), Object.assign(sc, rn), Lo.value === !0 && (Object.assign(sc, ic, C1), ic = null);
193
193
  }
194
194
  function ks() {
195
195
  if (window.getSelection !== void 0) {
196
196
  const e = window.getSelection();
197
- e.empty !== void 0 ? e.empty() : e.removeAllRanges !== void 0 && (e.removeAllRanges(), ic.is.mobile !== !0 && e.addRange(document.createRange()));
197
+ e.empty !== void 0 ? e.empty() : e.removeAllRanges !== void 0 && (e.removeAllRanges(), sc.is.mobile !== !0 && e.addRange(document.createRange()));
198
198
  } else document.selection !== void 0 && document.selection.empty();
199
199
  }
200
200
  const Qt = {
@@ -250,7 +250,7 @@ function En(e) {
250
250
  function Tt(e) {
251
251
  e.cancelable !== !1 && e.preventDefault(), e.stopPropagation();
252
252
  }
253
- function Uu(e, n) {
253
+ function ju(e, n) {
254
254
  if (e === void 0 || n === !0 && e.__dragPrevented === !0)
255
255
  return;
256
256
  const t = n === !0 ? (r) => {
@@ -289,7 +289,7 @@ const nv = {
289
289
  ...nv,
290
290
  contextMenu: Boolean
291
291
  };
292
- function Qc({
292
+ function Zc({
293
293
  showing: e,
294
294
  avoidEmit: n,
295
295
  // required for QPopupProxy (true)
@@ -416,7 +416,7 @@ function ds(e) {
416
416
  n = n.parent;
417
417
  }
418
418
  }
419
- function Zc(e) {
419
+ function Jc(e) {
420
420
  return e.appContext.config.globalProperties.$router !== void 0;
421
421
  }
422
422
  function lu(e) {
@@ -475,7 +475,7 @@ function Ci({
475
475
  function v(w) {
476
476
  s.disable === !0 && w === !0 ? s["onUpdate:modelValue"] !== void 0 && u("update:modelValue", !1) : w === !0 !== e.value && (w === !0 ? h : m)(c);
477
477
  }
478
- me(() => s.modelValue, v), t !== void 0 && Zc(i) === !0 && me(() => l.$route.fullPath, () => {
478
+ me(() => s.modelValue, v), t !== void 0 && Jc(i) === !0 && me(() => l.$route.fullPath, () => {
479
479
  t.value === !0 && e.value === !0 && p();
480
480
  }), a === !0 && vn(() => {
481
481
  v(s.modelValue);
@@ -558,7 +558,7 @@ function P1(e) {
558
558
  }
559
559
  return !1;
560
560
  }
561
- function Jc(e, n, t, r) {
561
+ function ed(e, n, t, r) {
562
562
  const o = X(!1), a = X(!1);
563
563
  let i = null;
564
564
  const s = {}, u = r === "dialog" && P1(e);
@@ -599,7 +599,7 @@ const pa = {
599
599
  default: 300
600
600
  }
601
601
  };
602
- function ed(e, n = () => {
602
+ function td(e, n = () => {
603
603
  }, t = () => {
604
604
  }) {
605
605
  return {
@@ -648,7 +648,7 @@ function Ea() {
648
648
  }
649
649
  };
650
650
  }
651
- function sc(e, n) {
651
+ function uc(e, n) {
652
652
  const t = e.style;
653
653
  for (const r in n)
654
654
  t[r] = n[r];
@@ -684,42 +684,42 @@ function du(e, n) {
684
684
  }
685
685
  return O1.includes(t) ? window : t;
686
686
  }
687
- function td(e) {
687
+ function nd(e) {
688
688
  return e === window ? window.pageYOffset || window.scrollY || document.body.scrollTop || 0 : e.scrollTop;
689
689
  }
690
- function nd(e) {
690
+ function rd(e) {
691
691
  return e === window ? window.pageXOffset || window.scrollX || document.body.scrollLeft || 0 : e.scrollLeft;
692
692
  }
693
693
  function uv(e, n, t = 0) {
694
- const r = arguments[3] === void 0 ? performance.now() : arguments[3], o = td(e);
694
+ const r = arguments[3] === void 0 ? performance.now() : arguments[3], o = nd(e);
695
695
  if (t <= 0) {
696
- o !== n && uc(e, n);
696
+ o !== n && lc(e, n);
697
697
  return;
698
698
  }
699
699
  requestAnimationFrame((a) => {
700
700
  const i = a - r, s = o + (n - o) / Math.max(i, t) * i;
701
- uc(e, s), s !== n && uv(e, n, t - i, a);
701
+ lc(e, s), s !== n && uv(e, n, t - i, a);
702
702
  });
703
703
  }
704
704
  function lv(e, n, t = 0) {
705
- const r = arguments[3] === void 0 ? performance.now() : arguments[3], o = nd(e);
705
+ const r = arguments[3] === void 0 ? performance.now() : arguments[3], o = rd(e);
706
706
  if (t <= 0) {
707
- o !== n && lc(e, n);
707
+ o !== n && cc(e, n);
708
708
  return;
709
709
  }
710
710
  requestAnimationFrame((a) => {
711
711
  const i = a - r, s = o + (n - o) / Math.max(i, t) * i;
712
- lc(e, s), s !== n && lv(e, n, t - i, a);
712
+ cc(e, s), s !== n && lv(e, n, t - i, a);
713
713
  });
714
714
  }
715
- function uc(e, n) {
715
+ function lc(e, n) {
716
716
  if (e === window) {
717
717
  window.scrollTo(window.pageXOffset || window.scrollX || document.body.scrollLeft || 0, n);
718
718
  return;
719
719
  }
720
720
  e.scrollTop = n;
721
721
  }
722
- function lc(e, n) {
722
+ function cc(e, n) {
723
723
  if (e === window) {
724
724
  window.scrollTo(n, window.pageYOffset || window.scrollY || document.body.scrollTop || 0);
725
725
  return;
@@ -731,24 +731,24 @@ function Lf(e, n, t) {
731
731
  uv(e, n, t);
732
732
  return;
733
733
  }
734
- uc(e, n);
734
+ lc(e, n);
735
735
  }
736
- function ju(e, n, t) {
736
+ function Gu(e, n, t) {
737
737
  if (t) {
738
738
  lv(e, n, t);
739
739
  return;
740
740
  }
741
- lc(e, n);
741
+ cc(e, n);
742
742
  }
743
743
  let zi;
744
744
  function fs() {
745
745
  if (zi !== void 0)
746
746
  return zi;
747
747
  const e = document.createElement("p"), n = document.createElement("div");
748
- sc(e, {
748
+ uc(e, {
749
749
  width: "100%",
750
750
  height: "200px"
751
- }), sc(n, {
751
+ }), uc(n, {
752
752
  position: "absolute",
753
753
  top: "0px",
754
754
  left: "0px",
@@ -804,20 +804,20 @@ function Rs(e) {
804
804
  function dv(e) {
805
805
  return e ? !(e.length !== 2 || typeof e[0] != "number" || typeof e[1] != "number") : !0;
806
806
  }
807
- const cc = {
807
+ const dc = {
808
808
  "start#ltr": "left",
809
809
  "start#rtl": "right",
810
810
  "end#ltr": "right",
811
811
  "end#rtl": "left"
812
812
  };
813
813
  ["left", "middle", "right"].forEach((e) => {
814
- cc[`${e}#ltr`] = e, cc[`${e}#rtl`] = e;
814
+ dc[`${e}#ltr`] = e, dc[`${e}#rtl`] = e;
815
815
  });
816
816
  function Is(e, n) {
817
817
  const t = e.split(" ");
818
818
  return {
819
819
  vertical: t[0],
820
- horizontal: cc[`${t[1]}#${n === !0 ? "rtl" : "ltr"}`]
820
+ horizontal: dc[`${t[1]}#${n === !0 ? "rtl" : "ltr"}`]
821
821
  };
822
822
  }
823
823
  function L1(e, n) {
@@ -862,11 +862,11 @@ function zf(e, n, t, r) {
862
862
  left: e[t.horizontal] - n[r.horizontal]
863
863
  };
864
864
  }
865
- function rd(e, n = 0) {
865
+ function od(e, n = 0) {
866
866
  if (e.targetEl === null || e.anchorEl === null || n > 5) return;
867
867
  if (e.targetEl.offsetHeight === 0 || e.targetEl.offsetWidth === 0) {
868
868
  setTimeout(() => {
869
- rd(e, n + 1);
869
+ od(e, n + 1);
870
870
  }, 10);
871
871
  return;
872
872
  }
@@ -902,10 +902,10 @@ function rd(e, n = 0) {
902
902
  const g = V1(y, w);
903
903
  let x = zf(p, g, a, i);
904
904
  if (s === void 0 || r === void 0)
905
- Gu(x, p, g, a, i);
905
+ Ku(x, p, g, a, i);
906
906
  else {
907
907
  const { top: C, left: S } = x;
908
- Gu(x, p, g, a, i);
908
+ Ku(x, p, g, a, i);
909
909
  let E = !1;
910
910
  if (x.top !== C) {
911
911
  E = !0;
@@ -917,14 +917,14 @@ function rd(e, n = 0) {
917
917
  const R = 2 * r[0];
918
918
  p.middle = p.left -= R, p.right -= R + 2;
919
919
  }
920
- E === !0 && (x = zf(p, g, a, i), Gu(x, p, g, a, i));
920
+ E === !0 && (x = zf(p, g, a, i), Ku(x, p, g, a, i));
921
921
  }
922
922
  b = {
923
923
  top: x.top + "px",
924
924
  left: x.left + "px"
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
- function Gu(e, n, t, r, o) {
927
+ function Ku(e, n, t, r, o) {
928
928
  const a = t.bottom, i = t.right, s = fs(), u = window.innerHeight - s, l = document.body.clientWidth;
929
929
  if (e.top < 0 || e.top + a > u)
930
930
  if (o.vertical === "center")
@@ -1009,7 +1009,7 @@ const Ts = je({
1009
1009
  ],
1010
1010
  setup(e, { slots: n, emit: t, attrs: r }) {
1011
1011
  let o, a;
1012
- const i = Xe(), { proxy: { $q: s } } = i, u = X(null), l = X(!1), c = _(() => Is(e.anchor, s.lang.rtl)), d = _(() => Is(e.self, s.lang.rtl)), f = _(() => e.persistent !== !0), { registerTick: h, removeTick: p } = va(), { registerTimeout: m } = Ea(), { transitionProps: v, transitionStyle: y } = ed(e), { localScrollTarget: w, changeScrollEvent: b, unconfigureScrollTarget: g } = ov(e, K), { anchorEl: x, canShow: C, anchorEvents: S } = Qc({ showing: l, configureAnchorEl: H }), { show: E, hide: R } = Ci({
1012
+ const i = Xe(), { proxy: { $q: s } } = i, u = X(null), l = X(!1), c = _(() => Is(e.anchor, s.lang.rtl)), d = _(() => Is(e.self, s.lang.rtl)), f = _(() => e.persistent !== !0), { registerTick: h, removeTick: p } = va(), { registerTimeout: m } = Ea(), { transitionProps: v, transitionStyle: y } = td(e), { localScrollTarget: w, changeScrollEvent: b, unconfigureScrollTarget: g } = ov(e, K), { anchorEl: x, canShow: C, anchorEvents: S } = Zc({ showing: l, configureAnchorEl: H }), { show: E, hide: R } = Ci({
1013
1013
  showing: l,
1014
1014
  canShow: C,
1015
1015
  handleShow: q,
@@ -1018,7 +1018,7 @@ const Ts = je({
1018
1018
  processOnMount: !0
1019
1019
  });
1020
1020
  Object.assign(S, { delayShow: F, delayHide: P });
1021
- const { showPortal: k, hidePortal: T, renderPortal: A } = Jc(i, u, V, "tooltip");
1021
+ const { showPortal: k, hidePortal: T, renderPortal: A } = ed(i, u, V, "tooltip");
1022
1022
  if (s.platform.is.mobile === !0) {
1023
1023
  const G = {
1024
1024
  anchorEl: x,
@@ -1058,7 +1058,7 @@ const Ts = je({
1058
1058
  a !== void 0 && (a.disconnect(), a = void 0), o !== void 0 && (o(), o = void 0), g(), Do(S, "tooltipTemp");
1059
1059
  }
1060
1060
  function z() {
1061
- rd({
1061
+ od({
1062
1062
  targetEl: u.value,
1063
1063
  offset: e.offset,
1064
1064
  anchorEl: x.value,
@@ -1122,7 +1122,7 @@ const Ts = je({
1122
1122
  }
1123
1123
  return At(O), Object.assign(i.proxy, { updatePosition: z }), A;
1124
1124
  }
1125
- }), dc = {
1125
+ }), fc = {
1126
1126
  xs: 18,
1127
1127
  sm: 24,
1128
1128
  md: 32,
@@ -1131,22 +1131,22 @@ const Ts = je({
1131
1131
  }, qa = {
1132
1132
  size: String
1133
1133
  };
1134
- function Va(e, n = dc) {
1134
+ function Va(e, n = fc) {
1135
1135
  return _(() => e.size !== void 0 ? { fontSize: e.size in n ? `${n[e.size]}px` : e.size } : null);
1136
1136
  }
1137
- const $f = "0 0 24 24", Ku = (e) => e, Yu = (e) => `ionicons ${e}`, fv = {
1137
+ const $f = "0 0 24 24", Yu = (e) => e, Xu = (e) => `ionicons ${e}`, fv = {
1138
1138
  "mdi-": (e) => `mdi ${e}`,
1139
- "icon-": Ku,
1139
+ "icon-": Yu,
1140
1140
  // fontawesome equiv
1141
1141
  "bt-": (e) => `bt ${e}`,
1142
1142
  "eva-": (e) => `eva ${e}`,
1143
- "ion-md": Yu,
1144
- "ion-ios": Yu,
1145
- "ion-logo": Yu,
1146
- "iconfont ": Ku,
1143
+ "ion-md": Xu,
1144
+ "ion-ios": Xu,
1145
+ "ion-logo": Xu,
1146
+ "iconfont ": Yu,
1147
1147
  "ti-": (e) => `themify-icon ${e}`,
1148
1148
  "bi-": (e) => `bootstrap-icons ${e}`,
1149
- "i-": Ku
1149
+ "i-": Yu
1150
1150
  // UnoCSS pure icons
1151
1151
  }, hv = {
1152
1152
  o_: "-outlined",
@@ -1257,32 +1257,32 @@ const $f = "0 0 24 24", Ku = (e) => e, Yu = (e) => `ionicons ${e}`, fv = {
1257
1257
  ])));
1258
1258
  };
1259
1259
  }
1260
- }), od = {
1260
+ }), ad = {
1261
1261
  size: {
1262
1262
  type: [String, Number],
1263
1263
  default: "1em"
1264
1264
  },
1265
1265
  color: String
1266
1266
  };
1267
- function ad(e) {
1267
+ function id(e) {
1268
1268
  return {
1269
- cSize: _(() => e.size in dc ? `${dc[e.size]}px` : e.size),
1269
+ cSize: _(() => e.size in fc ? `${fc[e.size]}px` : e.size),
1270
1270
  classes: _(
1271
1271
  () => "q-spinner" + (e.color ? ` text-${e.color}` : "")
1272
1272
  )
1273
1273
  };
1274
1274
  }
1275
- const id = je({
1275
+ const sd = je({
1276
1276
  name: "QSpinner",
1277
1277
  props: {
1278
- ...od,
1278
+ ...ad,
1279
1279
  thickness: {
1280
1280
  type: Number,
1281
1281
  default: 5
1282
1282
  }
1283
1283
  },
1284
1284
  setup(e) {
1285
- const { cSize: n, classes: t } = ad(e);
1285
+ const { cSize: n, classes: t } = id(e);
1286
1286
  return () => I("svg", {
1287
1287
  class: t.value + " q-spinner-mat",
1288
1288
  width: n.value,
@@ -1316,7 +1316,7 @@ function Hf(e, n, t, r) {
1316
1316
  let a = t.modifiers.center;
1317
1317
  a = a === !0 || r === !0;
1318
1318
  const i = document.createElement("span"), s = document.createElement("span"), u = Sa(e), { left: l, top: c, width: d, height: f } = n.getBoundingClientRect(), h = Math.sqrt(d * d + f * f), p = h / 2, m = `${(d - h) / 2}px`, v = a ? m : `${u.left - l - p}px`, y = `${(f - h) / 2}px`, w = a ? y : `${u.top - c - p}px`;
1319
- s.className = "q-ripple__inner", sc(s, {
1319
+ s.className = "q-ripple__inner", uc(s, {
1320
1320
  height: `${h}px`,
1321
1321
  width: `${h}px`,
1322
1322
  transform: `translate3d(${v},${w},0) scale3d(.2,.2,1)`,
@@ -1344,7 +1344,7 @@ function Uf(e, { modifiers: n, value: t, arg: r }) {
1344
1344
  keyCodes: [].concat(o.keyCodes || 13)
1345
1345
  };
1346
1346
  }
1347
- const _i = Yc(
1347
+ const _i = Xc(
1348
1348
  {
1349
1349
  name: "ripple",
1350
1350
  beforeMount(e, n) {
@@ -1442,7 +1442,7 @@ const yv = {
1442
1442
  target: String,
1443
1443
  // state
1444
1444
  disable: Boolean
1445
- }, sd = {
1445
+ }, ud = {
1446
1446
  ...yv,
1447
1447
  // router-link
1448
1448
  exact: Boolean,
@@ -1456,7 +1456,7 @@ const yv = {
1456
1456
  }
1457
1457
  };
1458
1458
  function bv({ fallbackTag: e, useDisableForRouterLinkProps: n = !0 } = {}) {
1459
- const t = Xe(), { props: r, proxy: o, emit: a } = t, i = Zc(t), s = _(() => r.disable !== !0 && r.href !== void 0), u = n === !0 ? _(
1459
+ const t = Xe(), { props: r, proxy: o, emit: a } = t, i = Jc(t), s = _(() => r.disable !== !0 && r.href !== void 0), u = n === !0 ? _(
1460
1460
  () => i === !0 && r.disable !== !0 && s.value !== !0 && r.to !== void 0 && r.to !== null && r.to !== ""
1461
1461
  ) : _(
1462
1462
  () => i === !0 && s.value !== !0 && r.to !== void 0 && r.to !== null && r.to !== ""
@@ -1557,7 +1557,7 @@ function ry(e) {
1557
1557
  const n = wv(e);
1558
1558
  return n !== void 0 ? { [n]: !0 } : {};
1559
1559
  }
1560
- const ud = {
1560
+ const ld = {
1561
1561
  ...qa,
1562
1562
  ...yv,
1563
1563
  type: {
@@ -1600,7 +1600,7 @@ const ud = {
1600
1600
  },
1601
1601
  disable: Boolean
1602
1602
  }, oy = {
1603
- ...ud,
1603
+ ...ld,
1604
1604
  round: Boolean
1605
1605
  };
1606
1606
  function ay(e) {
@@ -1804,7 +1804,7 @@ const Et = je({
1804
1804
  I("span", {
1805
1805
  key: "loading",
1806
1806
  class: "absolute-full flex flex-center"
1807
- }, n.loading !== void 0 ? n.loading() : [I(id)])
1807
+ }, n.loading !== void 0 ? n.loading() : [I(sd)])
1808
1808
  ] : null)
1809
1809
  ), Jn(
1810
1810
  I(
@@ -1934,7 +1934,7 @@ const Et = je({
1934
1934
  return t;
1935
1935
  }, ly = {
1936
1936
  $style: uy
1937
- }, fc = /* @__PURE__ */ De(iy, [["__cssModules", ly]]), xn = {
1937
+ }, hc = /* @__PURE__ */ De(iy, [["__cssModules", ly]]), xn = {
1938
1938
  dark: {
1939
1939
  type: Boolean,
1940
1940
  default: null
@@ -1978,7 +1978,7 @@ function fu(e = {}) {
1978
1978
  );
1979
1979
  };
1980
1980
  }
1981
- function ld(e) {
1981
+ function cd(e) {
1982
1982
  return _(() => e.name || e.for);
1983
1983
  }
1984
1984
  const kv = {
@@ -2206,7 +2206,7 @@ const ro = [
2206
2206
  3178
2207
2207
  ];
2208
2208
  function vy(e, n, t) {
2209
- return Object.prototype.toString.call(e) === "[object Date]" && (t = e.getDate(), n = e.getMonth() + 1, e = e.getFullYear()), by(cd(e, n, t));
2209
+ return Object.prototype.toString.call(e) === "[object Date]" && (t = e.getDate(), n = e.getMonth() + 1, e = e.getFullYear()), by(dd(e, n, t));
2210
2210
  }
2211
2211
  function Xf(e, n, t) {
2212
2212
  return Iv(yy(e, n, t));
@@ -2243,12 +2243,12 @@ function Rv(e, n) {
2243
2243
  }
2244
2244
  function yy(e, n, t) {
2245
2245
  const r = Rv(e, !0);
2246
- return cd(r.gy, 3, r.march) + (n - 1) * 31 - zt(n, 7) * (n - 7) + t - 1;
2246
+ return dd(r.gy, 3, r.march) + (n - 1) * 31 - zt(n, 7) * (n - 7) + t - 1;
2247
2247
  }
2248
2248
  function by(e) {
2249
2249
  const n = Iv(e).gy;
2250
2250
  let t = n - 621, r, o, a;
2251
- const i = Rv(t, !1), s = cd(n, 3, i.march);
2251
+ const i = Rv(t, !1), s = dd(n, 3, i.march);
2252
2252
  if (a = e - s, a >= 0) {
2253
2253
  if (a <= 185)
2254
2254
  return o = 1 + zt(a, 31), r = Kn(a, 31) + 1, {
@@ -2265,7 +2265,7 @@ function by(e) {
2265
2265
  jd: r
2266
2266
  };
2267
2267
  }
2268
- function cd(e, n, t) {
2268
+ function dd(e, n, t) {
2269
2269
  let r = zt((e + zt(n - 8, 6) + 100100) * 1461, 4) + zt(153 * Kn(n + 9, 12) + 2, 5) + t - 34840408;
2270
2270
  return r = r - zt(zt(e + 100100 + zt(n - 8, 6), 100) * 3, 4) + 752, r;
2271
2271
  }
@@ -2444,10 +2444,10 @@ function Dv(e) {
2444
2444
  function Ds(e) {
2445
2445
  return Object.prototype.toString.call(e) === "[object Date]";
2446
2446
  }
2447
- function hc(e) {
2447
+ function pc(e) {
2448
2448
  return typeof e == "number" && isFinite(e);
2449
2449
  }
2450
- const pc = {
2450
+ const vc = {
2451
2451
  isoName: "en-US",
2452
2452
  nativeName: "English (US)",
2453
2453
  label: {
@@ -2561,7 +2561,7 @@ const to = m1({
2561
2561
  // props: object
2562
2562
  // __langConfig: object
2563
2563
  getLocale: Jf,
2564
- set(e = pc, n) {
2564
+ set(e = vc, n) {
2565
2565
  const t = {
2566
2566
  ...e,
2567
2567
  rtl: e.rtl === !0,
@@ -2583,13 +2583,13 @@ const to = m1({
2583
2583
  ownKeys(r) {
2584
2584
  return Reflect.ownKeys(r).filter((o) => o !== "set" && o !== "getLocale");
2585
2585
  }
2586
- }), this.set(n || pc));
2586
+ }), this.set(n || vc));
2587
2587
  }
2588
- }), Mv = 864e5, ky = 36e5, vc = 6e4, Fv = "YYYY-MM-DDTHH:mm:ss.SSSZ", _y = /\[((?:[^\]\\]|\\]|\\)*)\]|do|d{1,4}|Mo|M{1,4}|m{1,2}|wo|w{1,2}|Qo|Do|DDDo|D{1,4}|YY(?:YY)?|H{1,2}|h{1,2}|s{1,2}|S{1,3}|Z{1,2}|a{1,2}|[AQExX]/g, Sy = /(\[[^\]]*\])|do|d{1,4}|Mo|M{1,4}|m{1,2}|wo|w{1,2}|Qo|Do|DDDo|D{1,4}|YY(?:YY)?|H{1,2}|h{1,2}|s{1,2}|S{1,3}|Z{1,2}|a{1,2}|[AQExX]|([.*+:?^,\s${}()|\\]+)/g, Xu = {};
2588
+ }), Mv = 864e5, ky = 36e5, mc = 6e4, Fv = "YYYY-MM-DDTHH:mm:ss.SSSZ", _y = /\[((?:[^\]\\]|\\]|\\)*)\]|do|d{1,4}|Mo|M{1,4}|m{1,2}|wo|w{1,2}|Qo|Do|DDDo|D{1,4}|YY(?:YY)?|H{1,2}|h{1,2}|s{1,2}|S{1,3}|Z{1,2}|a{1,2}|[AQExX]/g, Sy = /(\[[^\]]*\])|do|d{1,4}|Mo|M{1,4}|m{1,2}|wo|w{1,2}|Qo|Do|DDDo|D{1,4}|YY(?:YY)?|H{1,2}|h{1,2}|s{1,2}|S{1,3}|Z{1,2}|a{1,2}|[AQExX]|([.*+:?^,\s${}()|\\]+)/g, Qu = {};
2589
2589
  function Ey(e, n) {
2590
2590
  const t = "(" + n.days.join("|") + ")", r = e + t;
2591
- if (Xu[r] !== void 0)
2592
- return Xu[r];
2591
+ if (Qu[r] !== void 0)
2592
+ return Qu[r];
2593
2593
  const o = "(" + n.daysShort.join("|") + ")", a = "(" + n.months.join("|") + ")", i = "(" + n.monthsShort.join("|") + ")", s = {};
2594
2594
  let u = 0;
2595
2595
  const l = e.replace(Sy, (d) => {
@@ -2677,10 +2677,10 @@ function Ey(e, n) {
2677
2677
  return u--, d[0] === "[" && (d = d.substring(1, d.length - 1)), d.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
2678
2678
  }
2679
2679
  }), c = { map: s, regex: new RegExp("^" + l) };
2680
- return Xu[r] = c, c;
2680
+ return Qu[r] = c, c;
2681
2681
  }
2682
2682
  function Pv(e, n) {
2683
- return e !== void 0 ? e : n !== void 0 ? n.date : pc.date;
2683
+ return e !== void 0 ? e : n !== void 0 ? n.date : vc.date;
2684
2684
  }
2685
2685
  function eh(e, n = "") {
2686
2686
  const t = e > 0 ? "-" : "+", r = Math.abs(e), o = Math.floor(r / 60), a = r % 60;
@@ -2689,13 +2689,13 @@ function eh(e, n = "") {
2689
2689
  function Ry(e, n, t) {
2690
2690
  let r = e.getFullYear(), o = e.getMonth();
2691
2691
  const a = e.getDate();
2692
- return n.year !== void 0 && (r += t * n.year, delete n.year), n.month !== void 0 && (o += t * n.month, delete n.month), e.setDate(1), e.setMonth(2), e.setFullYear(r), e.setMonth(o), e.setDate(Math.min(a, hd(e))), n.date !== void 0 && (e.setDate(e.getDate() + t * n.date), delete n.date), e;
2692
+ return n.year !== void 0 && (r += t * n.year, delete n.year), n.month !== void 0 && (o += t * n.month, delete n.month), e.setDate(1), e.setMonth(2), e.setFullYear(r), e.setMonth(o), e.setDate(Math.min(a, pd(e))), n.date !== void 0 && (e.setDate(e.getDate() + t * n.date), delete n.date), e;
2693
2693
  }
2694
2694
  function Iy(e, n, t) {
2695
2695
  const r = n.year !== void 0 ? n.year : e[`get${t}FullYear`](), o = n.month !== void 0 ? n.month - 1 : e[`get${t}Month`](), a = new Date(r, o + 1, 0).getDate(), i = Math.min(a, n.date !== void 0 ? n.date : e[`get${t}Date`]());
2696
2696
  return e[`set${t}Date`](1), e[`set${t}Month`](2), e[`set${t}FullYear`](r), e[`set${t}Month`](o), e[`set${t}Date`](i), delete n.year, delete n.month, delete n.date, e;
2697
2697
  }
2698
- function dd(e, n, t) {
2698
+ function fd(e, n, t) {
2699
2699
  const r = Bv(n), o = new Date(e), a = r.year !== void 0 || r.month !== void 0 || r.date !== void 0 ? Ry(o, r, t) : o;
2700
2700
  for (const i in r) {
2701
2701
  const s = xy(i);
@@ -2725,7 +2725,7 @@ function Ty(e, n, t) {
2725
2725
  r.second,
2726
2726
  r.millisecond
2727
2727
  ), a = o.getTimezoneOffset();
2728
- return r.timezoneOffset === null || r.timezoneOffset === a ? o : dd(o, { minutes: r.timezoneOffset - a }, 1);
2728
+ return r.timezoneOffset === null || r.timezoneOffset === a ? o : fd(o, { minutes: r.timezoneOffset - a }, 1);
2729
2729
  }
2730
2730
  function fa(e, n, t, r, o) {
2731
2731
  const a = {
@@ -2798,19 +2798,19 @@ function ps(e) {
2798
2798
  function Fy(e) {
2799
2799
  return e.getFullYear() * 1e4 + e.getMonth() * 100 + e.getDate();
2800
2800
  }
2801
- function Qu(e, n) {
2801
+ function Zu(e, n) {
2802
2802
  const t = new Date(e);
2803
2803
  return n === !0 ? Fy(t) : t.getTime();
2804
2804
  }
2805
2805
  function Py(e, n, t, r = {}) {
2806
- const o = Qu(n, r.onlyDate), a = Qu(t, r.onlyDate), i = Qu(e, r.onlyDate);
2806
+ const o = Zu(n, r.onlyDate), a = Zu(t, r.onlyDate), i = Zu(e, r.onlyDate);
2807
2807
  return (i > o || r.inclusiveFrom === !0 && i === o) && (i < a || r.inclusiveTo === !0 && i === a);
2808
2808
  }
2809
2809
  function By(e, n) {
2810
- return dd(e, n, 1);
2810
+ return fd(e, n, 1);
2811
2811
  }
2812
2812
  function Oy(e, n) {
2813
- return dd(e, n, -1);
2813
+ return fd(e, n, -1);
2814
2814
  }
2815
2815
  function wr(e, n, t) {
2816
2816
  const r = new Date(e), o = `set${t === !0 ? "UTC" : ""}`;
@@ -2845,7 +2845,7 @@ function Ny(e, n, t) {
2845
2845
  r[`${o}Month`](11);
2846
2846
  case "month":
2847
2847
  case "months":
2848
- r[`${o}Date`](hd(r));
2848
+ r[`${o}Date`](pd(r));
2849
2849
  case "day":
2850
2850
  case "days":
2851
2851
  case "date":
@@ -2875,9 +2875,9 @@ function qy(e) {
2875
2875
  }), n;
2876
2876
  }
2877
2877
  function $i(e, n, t) {
2878
- return (e.getTime() - e.getTimezoneOffset() * vc - (n.getTime() - n.getTimezoneOffset() * vc)) / t;
2878
+ return (e.getTime() - e.getTimezoneOffset() * mc - (n.getTime() - n.getTimezoneOffset() * mc)) / t;
2879
2879
  }
2880
- function fd(e, n, t = "days") {
2880
+ function hd(e, n, t = "days") {
2881
2881
  const r = new Date(e), o = new Date(n);
2882
2882
  switch (t) {
2883
2883
  case "years":
@@ -2895,14 +2895,14 @@ function fd(e, n, t = "days") {
2895
2895
  return $i(wr(r, "hour"), wr(o, "hour"), ky);
2896
2896
  case "minutes":
2897
2897
  case "minute":
2898
- return $i(wr(r, "minute"), wr(o, "minute"), vc);
2898
+ return $i(wr(r, "minute"), wr(o, "minute"), mc);
2899
2899
  case "seconds":
2900
2900
  case "second":
2901
2901
  return $i(wr(r, "second"), wr(o, "second"), 1e3);
2902
2902
  }
2903
2903
  }
2904
2904
  function vs(e) {
2905
- return fd(e, wr(e, "year"), "days") + 1;
2905
+ return hd(e, wr(e, "year"), "days") + 1;
2906
2906
  }
2907
2907
  function Vy(e) {
2908
2908
  return Ds(e) === !0 ? "date" : typeof e == "number" ? "number" : "string";
@@ -2957,7 +2957,7 @@ function $y(e, n, t) {
2957
2957
  }
2958
2958
  return !0;
2959
2959
  }
2960
- function hd(e) {
2960
+ function pd(e) {
2961
2961
  return new Date(e.getFullYear(), e.getMonth() + 1, 0).getDate();
2962
2962
  }
2963
2963
  function ea(e) {
@@ -3147,7 +3147,7 @@ const th = {
3147
3147
  return e.getTime();
3148
3148
  }
3149
3149
  };
3150
- function pd(e, n, t, r, o) {
3150
+ function vd(e, n, t, r, o) {
3151
3151
  if (e !== 0 && !e || e === 1 / 0 || e === -1 / 0) return;
3152
3152
  const a = new Date(e);
3153
3153
  if (isNaN(a)) return;
@@ -3175,15 +3175,15 @@ const Hy = {
3175
3175
  endOfDate: Ny,
3176
3176
  getMaxDate: Ly,
3177
3177
  getMinDate: qy,
3178
- getDateDiff: fd,
3178
+ getDateDiff: hd,
3179
3179
  getDayOfYear: vs,
3180
3180
  inferDateFormat: Vy,
3181
3181
  getDateBetween: zy,
3182
3182
  isSameDate: $y,
3183
- daysInMonth: hd,
3184
- formatDate: pd,
3183
+ daysInMonth: pd,
3184
+ formatDate: vd,
3185
3185
  clone: Wy
3186
- }, Or = 20, Uy = ["Calendar", "Years", "Months"], nh = (e) => Uy.includes(e), Zu = (e) => /^-?[\d]+\/[0-1]\d$/.test(e), ta = " — ";
3186
+ }, Or = 20, Uy = ["Calendar", "Years", "Months"], nh = (e) => Uy.includes(e), Ju = (e) => /^-?[\d]+\/[0-1]\d$/.test(e), ta = " — ";
3187
3187
  function Qr(e) {
3188
3188
  return e.year + "/" + wt(e.month);
3189
3189
  }
@@ -3209,7 +3209,7 @@ const Nv = je({
3209
3209
  },
3210
3210
  defaultYearMonth: {
3211
3211
  type: String,
3212
- validator: Zu
3212
+ validator: Ju
3213
3213
  },
3214
3214
  yearsInMonthView: Boolean,
3215
3215
  events: [Array, Function],
@@ -3218,11 +3218,11 @@ const Nv = je({
3218
3218
  options: [Array, Function],
3219
3219
  navigationMinYearMonth: {
3220
3220
  type: String,
3221
- validator: Zu
3221
+ validator: Ju
3222
3222
  },
3223
3223
  navigationMaxYearMonth: {
3224
3224
  type: String,
3225
- validator: Zu
3225
+ validator: Ju
3226
3226
  },
3227
3227
  noUnset: Boolean,
3228
3228
  firstDayOfWeek: [String, Number],
@@ -3258,7 +3258,7 @@ const Nv = je({
3258
3258
  }), H = _(() => e.calendar !== "persian" ? (N) => new Date(N.year, N.month - 1, N.day) : (N) => {
3259
3259
  const W = Xf(N.year, N.month, N.day);
3260
3260
  return new Date(W.gy, W.gm - 1, W.gd);
3261
- }), K = _(() => e.calendar === "persian" ? Lr : (N, W, re) => pd(
3261
+ }), K = _(() => e.calendar === "persian" ? Lr : (N, W, re) => vd(
3262
3262
  new Date(
3263
3263
  N.year,
3264
3264
  N.month - 1,
@@ -3274,7 +3274,7 @@ const Nv = je({
3274
3274
  N.timezoneOffset
3275
3275
  )), L = _(
3276
3276
  () => F.value.length + P.value.reduce(
3277
- (N, W) => N + 1 + fd(
3277
+ (N, W) => N + 1 + hd(
3278
3278
  H.value(W.to),
3279
3279
  H.value(W.from)
3280
3280
  ),
@@ -4039,7 +4039,7 @@ function Lv(e, n, t) {
4039
4039
  }
4040
4040
  };
4041
4041
  }
4042
- let ja = 0, Ju, el, ti, tl = !1, rh, oh, ah, bo = null;
4042
+ let ja = 0, el, tl, ti, nl = !1, rh, oh, ah, bo = null;
4043
4043
  function jy(e) {
4044
4044
  Gy(e) && Tt(e);
4045
4045
  }
@@ -4058,8 +4058,8 @@ function ih(e) {
4058
4058
  e.target === document && (document.scrollingElement.scrollTop = document.scrollingElement.scrollTop);
4059
4059
  }
4060
4060
  function Wi(e) {
4061
- tl !== !0 && (tl = !0, requestAnimationFrame(() => {
4062
- tl = !1;
4061
+ nl !== !0 && (nl = !0, requestAnimationFrame(() => {
4062
+ nl = !1;
4063
4063
  const { height: n } = e.target, { clientHeight: t, scrollTop: r } = document.scrollingElement;
4064
4064
  (ti === void 0 || n !== window.innerHeight) && (ti = t - n, document.scrollingElement.scrollTop = r), r > ti && (document.scrollingElement.scrollTop -= Math.ceil((r - ti) / 8));
4065
4065
  }));
@@ -4068,9 +4068,9 @@ function sh(e) {
4068
4068
  const n = document.body, t = window.visualViewport !== void 0;
4069
4069
  if (e === "add") {
4070
4070
  const { overflowY: r, overflowX: o } = window.getComputedStyle(n);
4071
- Ju = nd(window), el = td(window), rh = n.style.left, oh = n.style.top, ah = window.location.href, n.style.left = `-${Ju}px`, n.style.top = `-${el}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, rn.is.ios === !0 && (t === !0 ? (window.scrollTo(0, 0), window.visualViewport.addEventListener("resize", Wi, Qt.passiveCapture), window.visualViewport.addEventListener("scroll", Wi, Qt.passiveCapture), window.scrollTo(0, 0)) : window.addEventListener("scroll", ih, Qt.passiveCapture));
4071
+ el = rd(window), tl = nd(window), rh = n.style.left, oh = n.style.top, ah = window.location.href, n.style.left = `-${el}px`, n.style.top = `-${tl}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, rn.is.ios === !0 && (t === !0 ? (window.scrollTo(0, 0), window.visualViewport.addEventListener("resize", Wi, Qt.passiveCapture), window.visualViewport.addEventListener("scroll", Wi, Qt.passiveCapture), window.scrollTo(0, 0)) : window.addEventListener("scroll", ih, Qt.passiveCapture));
4072
4072
  }
4073
- rn.is.desktop === !0 && rn.is.mac === !0 && window[`${e}EventListener`]("wheel", jy, Qt.notPassive), e === "remove" && (rn.is.ios === !0 && (t === !0 ? (window.visualViewport.removeEventListener("resize", Wi, Qt.passiveCapture), window.visualViewport.removeEventListener("scroll", Wi, Qt.passiveCapture)) : window.removeEventListener("scroll", ih, Qt.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 = rh, n.style.top = oh, window.location.href === ah && window.scrollTo(Ju, el), ti = void 0);
4073
+ rn.is.desktop === !0 && rn.is.mac === !0 && window[`${e}EventListener`]("wheel", jy, Qt.notPassive), e === "remove" && (rn.is.ios === !0 && (t === !0 ? (window.visualViewport.removeEventListener("resize", Wi, Qt.passiveCapture), window.visualViewport.removeEventListener("scroll", Wi, Qt.passiveCapture)) : window.removeEventListener("scroll", ih, Qt.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 = rh, n.style.top = oh, window.location.href === ah && window.scrollTo(el, tl), ti = void 0);
4074
4074
  }
4075
4075
  function Ky(e) {
4076
4076
  let n = "add";
@@ -4127,7 +4127,7 @@ function $v(e) {
4127
4127
  function Wv(e) {
4128
4128
  rn.is.desktop === !0 && (Po.push(e), Po.length === 1 && document.body.addEventListener("focusin", $v));
4129
4129
  }
4130
- function mc(e) {
4130
+ function gc(e) {
4131
4131
  const n = Po.indexOf(e);
4132
4132
  n !== -1 && (Po.splice(n, 1), Po.length === 0 && document.body.removeEventListener("focusin", $v));
4133
4133
  }
@@ -4186,11 +4186,11 @@ const Zy = {
4186
4186
  let u = null, l = null, c, d;
4187
4187
  const f = _(
4188
4188
  () => e.persistent !== !0 && e.noRouteDismiss !== !0 && e.seamless !== !0
4189
- ), { preventBodyScroll: h } = qv(), { registerTimeout: p } = Ea(), { registerTick: m, removeTick: v } = va(), { transitionProps: y, transitionStyle: w } = ed(
4189
+ ), { preventBodyScroll: h } = qv(), { registerTimeout: p } = Ea(), { registerTick: m, removeTick: v } = va(), { transitionProps: y, transitionStyle: w } = td(
4190
4190
  e,
4191
4191
  () => uh[e.position][0],
4192
4192
  () => uh[e.position][1]
4193
- ), b = _(() => w.value + (e.backdropFilter !== void 0 ? `;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}` : "")), { showPortal: g, hidePortal: x, portalIsAccessible: C, renderPortal: S } = Jc(
4193
+ ), b = _(() => w.value + (e.backdropFilter !== void 0 ? `;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}` : "")), { showPortal: g, hidePortal: x, portalIsAccessible: C, renderPortal: S } = ed(
4194
4194
  o,
4195
4195
  a,
4196
4196
  G,
@@ -4212,7 +4212,7 @@ const Zy = {
4212
4212
  me(() => e.maximized, (ne) => {
4213
4213
  i.value === !0 && H(ne);
4214
4214
  }), me(k, (ne) => {
4215
- h(ne), ne === !0 ? (Wv(V), zv(F)) : (mc(V), Ms(F));
4215
+ h(ne), ne === !0 ? (Wv(V), zv(F)) : (gc(V), Ms(F));
4216
4216
  });
4217
4217
  function q(ne) {
4218
4218
  var ue;
@@ -4261,7 +4261,7 @@ const Zy = {
4261
4261
  e.seamless !== !0 && (e.persistent === !0 || e.noEscDismiss === !0 ? e.maximized !== !0 && e.noShake !== !0 && z() : (t("escapeKey"), E()));
4262
4262
  }
4263
4263
  function P(ne) {
4264
- u !== null && (clearTimeout(u), u = null), (ne === !0 || i.value === !0) && (H(!1), e.seamless !== !0 && (h(!1), mc(V), Ms(F))), ne !== !0 && (l = null);
4264
+ u !== null && (clearTimeout(u), u = null), (ne === !0 || i.value === !0) && (H(!1), e.seamless !== !0 && (h(!1), gc(V), Ms(F))), ne !== !0 && (l = null);
4265
4265
  }
4266
4266
  function H(ne) {
4267
4267
  ne === !0 ? c !== !0 && (Hi < 1 && document.body.classList.add("q-body--dialog"), Hi++, c = !0) : c === !0 && (Hi < 2 && document.body.classList.remove("q-body--dialog"), Hi--, c = !1);
@@ -4366,14 +4366,14 @@ const Zy = {
4366
4366
  let o = null, a, i, s;
4367
4367
  const u = Xe(), { proxy: l } = u, { $q: c } = l, d = X(null), f = X(!1), h = _(
4368
4368
  () => e.persistent !== !0 && e.noRouteDismiss !== !0
4369
- ), p = Cn(e, c), { registerTick: m, removeTick: v } = va(), { registerTimeout: y } = Ea(), { transitionProps: w, transitionStyle: b } = ed(e), { localScrollTarget: g, changeScrollEvent: x, unconfigureScrollTarget: C } = ov(e, G), { anchorEl: S, canShow: E } = Qc({ showing: f }), { hide: R } = Ci({
4369
+ ), p = Cn(e, c), { registerTick: m, removeTick: v } = va(), { registerTimeout: y } = Ea(), { transitionProps: w, transitionStyle: b } = td(e), { localScrollTarget: g, changeScrollEvent: x, unconfigureScrollTarget: C } = ov(e, G), { anchorEl: S, canShow: E } = Zc({ showing: f }), { hide: R } = Ci({
4370
4370
  showing: f,
4371
4371
  canShow: E,
4372
4372
  handleShow: K,
4373
4373
  handleHide: L,
4374
4374
  hideOnRouteChange: h,
4375
4375
  processOnMount: !0
4376
- }), { showPortal: k, hidePortal: T, renderPortal: A } = Jc(u, d, we, "menu"), q = {
4376
+ }), { showPortal: k, hidePortal: T, renderPortal: A } = ed(u, d, we, "menu"), q = {
4377
4377
  anchorEl: S,
4378
4378
  innerRef: d,
4379
4379
  onClickOutside(ae) {
@@ -4424,7 +4424,7 @@ const Zy = {
4424
4424
  }, e.transitionDuration);
4425
4425
  }
4426
4426
  function V(ae) {
4427
- a = void 0, i !== void 0 && (i(), i = void 0), (ae === !0 || f.value === !0) && (mc(ue), C(), Es(q), Ms(ce)), ae !== !0 && (o = null);
4427
+ a = void 0, i !== void 0 && (i(), i = void 0), (ae === !0 || f.value === !0) && (gc(ue), C(), Es(q), Ms(ce)), ae !== !0 && (o = null);
4428
4428
  }
4429
4429
  function G() {
4430
4430
  (S.value !== null || e.scrollTarget !== void 0) && (g.value = du(S.value, e.scrollTarget), x(g.value, le));
@@ -4439,7 +4439,7 @@ const Zy = {
4439
4439
  e.noEscDismiss !== !0 && (t("escapeKey"), R(ae));
4440
4440
  }
4441
4441
  function le() {
4442
- rd({
4442
+ od({
4443
4443
  targetEl: d.value,
4444
4444
  offset: e.offset,
4445
4445
  anchorEl: S.value,
@@ -4486,7 +4486,7 @@ const Zy = {
4486
4486
  },
4487
4487
  emits: ["show", "hide"],
4488
4488
  setup(e, { slots: n, emit: t, attrs: r }) {
4489
- const { proxy: o } = Xe(), { $q: a } = o, i = X(!1), s = X(null), u = _(() => parseInt(e.breakpoint, 10)), { canShow: l } = Qc({ showing: i });
4489
+ const { proxy: o } = Xe(), { $q: a } = o, i = X(!1), s = X(null), u = _(() => parseInt(e.breakpoint, 10)), { canShow: l } = Zc({ showing: i });
4490
4490
  function c() {
4491
4491
  return a.screen.width < u.value || a.screen.height < u.value ? "dialog" : "menu";
4492
4492
  }
@@ -4559,7 +4559,7 @@ const Zy = {
4559
4559
  return d >= f;
4560
4560
  }
4561
4561
  return (i, s) => (Y(), ye("div", Jy, [
4562
- xe(fc, {
4562
+ xe(hc, {
4563
4563
  class: "button",
4564
4564
  outline: "",
4565
4565
  size: "20px",
@@ -4601,26 +4601,26 @@ const Zy = {
4601
4601
  ])
4602
4602
  ]));
4603
4603
  }
4604
- }), vD = /* @__PURE__ */ De(tb, [["__scopeId", "data-v-a3ab30e6"]]), vd = {
4604
+ }), vD = /* @__PURE__ */ De(tb, [["__scopeId", "data-v-a3ab30e6"]]), md = {
4605
4605
  left: !0,
4606
4606
  right: !0,
4607
4607
  up: !0,
4608
4608
  down: !0,
4609
4609
  horizontal: !0,
4610
4610
  vertical: !0
4611
- }, nb = Object.keys(vd);
4612
- vd.all = !0;
4611
+ }, nb = Object.keys(md);
4612
+ md.all = !0;
4613
4613
  function lh(e) {
4614
4614
  const n = {};
4615
4615
  for (const t of nb)
4616
4616
  e[t] === !0 && (n[t] = !0);
4617
- return Object.keys(n).length === 0 ? vd : (n.horizontal === !0 ? n.left = n.right = !0 : n.left === !0 && n.right === !0 && (n.horizontal = !0), n.vertical === !0 ? n.up = n.down = !0 : n.up === !0 && n.down === !0 && (n.vertical = !0), n.horizontal === !0 && n.vertical === !0 && (n.all = !0), n);
4617
+ return Object.keys(n).length === 0 ? md : (n.horizontal === !0 ? n.left = n.right = !0 : n.left === !0 && n.right === !0 && (n.horizontal = !0), n.vertical === !0 ? n.up = n.down = !0 : n.up === !0 && n.down === !0 && (n.vertical = !0), n.horizontal === !0 && n.vertical === !0 && (n.all = !0), n);
4618
4618
  }
4619
4619
  const rb = ["INPUT", "TEXTAREA"];
4620
4620
  function ch(e, n) {
4621
4621
  return n.event === void 0 && e.target !== void 0 && e.target.draggable !== !0 && typeof n.handler == "function" && rb.includes(e.target.nodeName.toUpperCase()) === !1 && (e.qClonedBy === void 0 || e.qClonedBy.indexOf(n.uid) === -1);
4622
4622
  }
4623
- function nl(e, n, t) {
4623
+ function rl(e, n, t) {
4624
4624
  const r = Sa(e);
4625
4625
  let o, a = r.left - n.event.x, i = r.top - n.event.y, s = Math.abs(a), u = Math.abs(i);
4626
4626
  const l = n.direction;
@@ -4658,7 +4658,7 @@ function nl(e, n, t) {
4658
4658
  };
4659
4659
  }
4660
4660
  let ob = 0;
4661
- const ma = Yc(
4661
+ const ma = Xc(
4662
4662
  {
4663
4663
  name: "touch-pan",
4664
4664
  beforeMount(e, { value: n, modifiers: t }) {
@@ -4689,7 +4689,7 @@ const ma = Yc(
4689
4689
  }
4690
4690
  },
4691
4691
  start(a, i) {
4692
- if (rn.is.firefox === !0 && Uu(e, !0), o.lastEvt = a, i === !0 || t.stop === !0) {
4692
+ if (rn.is.firefox === !0 && ju(e, !0), o.lastEvt = a, i === !0 || t.stop === !0) {
4693
4693
  if (o.direction.all !== !0 && (i !== !0 || o.modifiers.mouseAllDir !== !0 && o.modifiers.mousealldir !== !0)) {
4694
4694
  const l = a.type.indexOf("mouse") !== -1 ? new MouseEvent(a.type, a) : new TouchEvent(a.type, a);
4695
4695
  a.defaultPrevented === !0 && En(l), a.cancelBubble === !0 && Fn(l), Object.assign(l, {
@@ -4738,7 +4738,7 @@ const ma = Yc(
4738
4738
  };
4739
4739
  if (o.event.detected === !0) {
4740
4740
  o.event.isFirst !== !0 && r(a, o.event.mouse);
4741
- const { payload: h, synthetic: p } = nl(a, o, !1);
4741
+ const { payload: h, synthetic: p } = rl(a, o, !1);
4742
4742
  h !== void 0 && (o.handler(h) === !1 ? o.end(a) : (o.styleCleanup === void 0 && o.event.isFirst === !0 && c(), o.event.lastX = h.position.left, o.event.lastY = h.position.top, o.event.lastDir = p === !0 ? void 0 : h.direction, o.event.isFirst = !1));
4743
4743
  return;
4744
4744
  }
@@ -4752,11 +4752,11 @@ const ma = Yc(
4752
4752
  end(a, i) {
4753
4753
  var s;
4754
4754
  if (o.event !== void 0) {
4755
- if (Do(o, "temp"), rn.is.firefox === !0 && Uu(e, !1), i === !0)
4755
+ if (Do(o, "temp"), rn.is.firefox === !0 && ju(e, !1), i === !0)
4756
4756
  (s = o.styleCleanup) == null || s.call(o), o.event.detected !== !0 && o.initialEvent !== void 0 && o.initialEvent.target.dispatchEvent(o.initialEvent.event);
4757
4757
  else if (o.event.detected === !0) {
4758
- o.event.isFirst === !0 && o.handler(nl(a === void 0 ? o.lastEvt : a, o).payload);
4759
- const { payload: u } = nl(a === void 0 ? o.lastEvt : a, o, !0), l = () => {
4758
+ o.event.isFirst === !0 && o.handler(rl(a === void 0 ? o.lastEvt : a, o).payload);
4759
+ const { payload: u } = rl(a === void 0 ? o.lastEvt : a, o, !0), l = () => {
4760
4760
  o.handler(u);
4761
4761
  };
4762
4762
  o.styleCleanup !== void 0 ? o.styleCleanup(l) : l();
@@ -4784,7 +4784,7 @@ const ma = Yc(
4784
4784
  beforeUnmount(e) {
4785
4785
  var t;
4786
4786
  const n = e.__qtouchpan;
4787
- n !== void 0 && (n.event !== void 0 && n.end(), Do(n, "main"), Do(n, "temp"), rn.is.firefox === !0 && Uu(e, !1), (t = n.styleCleanup) == null || t.call(n), delete e.__qtouchpan);
4787
+ n !== void 0 && (n.event !== void 0 && n.end(), Do(n, "main"), Do(n, "temp"), rn.is.firefox === !0 && ju(e, !1), (t = n.styleCleanup) == null || t.call(n), delete e.__qtouchpan);
4788
4788
  }
4789
4789
  }
4790
4790
  );
@@ -5114,7 +5114,7 @@ const sb = je({
5114
5114
  g.value.hour === null || g.value.minute === null || e.withSeconds === !0 && g.value.second === null || Ke();
5115
5115
  }
5116
5116
  function Ke(oe) {
5117
- const he = Object.assign({ ...g.value }, oe), Ve = e.calendar === "persian" ? wt(he.hour) + ":" + wt(he.minute) + (e.withSeconds === !0 ? ":" + wt(he.second) : "") : pd(
5117
+ const he = Object.assign({ ...g.value }, oe), Ve = e.calendar === "persian" ? wt(he.hour) + ":" + wt(he.minute) + (e.withSeconds === !0 ? ":" + wt(he.second) : "") : vd(
5118
5118
  new Date(
5119
5119
  he.year,
5120
5120
  he.month === null ? null : he.month - 1,
@@ -5253,7 +5253,7 @@ const sb = je({
5253
5253
  };
5254
5254
  }
5255
5255
  });
5256
- let rl, Ui = 0;
5256
+ let ol, Ui = 0;
5257
5257
  const gn = new Array(256);
5258
5258
  for (let e = 0; e < 256; e++)
5259
5259
  gn[e] = (e + 256).toString(16).substring(1);
@@ -5276,8 +5276,8 @@ const ub = (() => {
5276
5276
  };
5277
5277
  })(), dh = 4096;
5278
5278
  function Fs() {
5279
- (rl === void 0 || Ui + 16 > dh) && (Ui = 0, rl = ub(dh));
5280
- const e = Array.prototype.slice.call(rl, Ui, Ui += 16);
5279
+ (ol === void 0 || Ui + 16 > dh) && (Ui = 0, ol = ub(dh));
5280
+ const e = Array.prototype.slice.call(ol, Ui, Ui += 16);
5281
5281
  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]];
5282
5282
  }
5283
5283
  function lb(e) {
@@ -5286,7 +5286,7 @@ function lb(e) {
5286
5286
  function fh(e, n) {
5287
5287
  return e ?? (n === !0 ? `f_${Fs()}` : null);
5288
5288
  }
5289
- function md({ getValue: e, required: n = !0 } = {}) {
5289
+ function gd({ getValue: e, required: n = !0 } = {}) {
5290
5290
  if (Lo.value === !0) {
5291
5291
  const t = e !== void 0 ? X(lb(e())) : X(null);
5292
5292
  return n === !0 && t.value === null && vn(() => {
@@ -5329,7 +5329,7 @@ function fb({ validate: e, resetValidation: n, requiresQForm: t }) {
5329
5329
  });
5330
5330
  } else t === !0 && console.error("Parent QForm not found on useFormChild()!");
5331
5331
  }
5332
- const ph = /^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/, vh = /^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/, mh = /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/, ji = /^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])\)$/, Gi = /^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)\)$/, ol = {
5332
+ const ph = /^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/, vh = /^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/, mh = /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/, ji = /^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])\)$/, Gi = /^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)\)$/, al = {
5333
5333
  date: (e) => /^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(e),
5334
5334
  time: (e) => /^([0-1]?\d|2[0-3]):[0-5]\d$/.test(e),
5335
5335
  fulltime: (e) => /^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(e),
@@ -5351,7 +5351,7 @@ const ph = /^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/, vh = /^#[0-9a-fA-F]{4}([0-9a-fA
5351
5351
  hexaOrRgbaColor: (e) => vh.test(e) || Gi.test(e),
5352
5352
  anyColor: (e) => mh.test(e) || ji.test(e) || Gi.test(e)
5353
5353
  };
5354
- function gd(e, n = 250, t) {
5354
+ function yd(e, n = 250, t) {
5355
5355
  let r = null;
5356
5356
  function o() {
5357
5357
  const a = arguments, i = () => {
@@ -5415,7 +5415,7 @@ function vb(e, n) {
5415
5415
  for (let C = 0; C < t.rules.length; C++) {
5416
5416
  const S = t.rules[C];
5417
5417
  let E;
5418
- if (typeof S == "function" ? E = S(y, ol) : typeof S == "string" && ol[S] !== void 0 && (E = ol[S](y)), E === !1 || typeof E == "string")
5418
+ if (typeof S == "function" ? E = S(y, al) : typeof S == "string" && al[S] !== void 0 && (E = al[S](y)), E === !1 || typeof E == "string")
5419
5419
  return g(!0, E), !1;
5420
5420
  E !== !0 && E !== void 0 && x.push(E);
5421
5421
  }
@@ -5429,7 +5429,7 @@ function vb(e, n) {
5429
5429
  (C) => (w === s && (console.error(C), g(!0)), !1)
5430
5430
  ));
5431
5431
  }
5432
- const v = gd(m, 0);
5432
+ const v = yd(m, 0);
5433
5433
  return At(() => {
5434
5434
  u == null || u(), v.cancel();
5435
5435
  }), Object.assign(r, { resetValidation: p, validate: m }), Gn(r, "hasError", () => d.value), {
@@ -5480,7 +5480,7 @@ const Kv = {
5480
5480
  maxlength: [Number, String]
5481
5481
  }, pu = ["update:modelValue", "clear", "focus", "blur"];
5482
5482
  function vu({ requiredForAttr: e = !0, tagProp: n, changeEvent: t = !1 } = {}) {
5483
- const { props: r, proxy: o } = Xe(), a = Cn(r, o.$q), i = md({
5483
+ const { props: r, proxy: o } = Xe(), a = Cn(r, o.$q), i = gd({
5484
5484
  required: e,
5485
5485
  getValue: () => r.for
5486
5486
  });
@@ -5617,7 +5617,7 @@ function mu(e) {
5617
5617
  ), n.loading === !0 || e.innerLoading.value === !0 ? P.push(
5618
5618
  z(
5619
5619
  "inner-loading-append",
5620
- r.loading !== void 0 ? r.loading() : [I(id, { color: n.color })]
5620
+ r.loading !== void 0 ? r.loading() : [I(sd, { color: n.color })]
5621
5621
  )
5622
5622
  ) : n.clearable === !0 && e.hasValue.value === !0 && e.editable.value === !0 && P.push(
5623
5623
  z("inner-clearable-append", [
@@ -6087,7 +6087,7 @@ const za = je({
6087
6087
  setup(e, { emit: n, attrs: t }) {
6088
6088
  const { proxy: r } = Xe(), { $q: o } = r, a = {};
6089
6089
  let i = NaN, s, u, l = null, c;
6090
- const d = X(null), f = ld(e), {
6090
+ const d = X(null), f = cd(e), {
6091
6091
  innerValue: h,
6092
6092
  hasMask: p,
6093
6093
  moveCursorForPaste: m,
@@ -6286,7 +6286,7 @@ const em = (e, n) => ({
6286
6286
  color: e === "danger" ? "red" : e === "success" ? "green" : e === "warning" ? "orange" : "white",
6287
6287
  position: "top-right"
6288
6288
  });
6289
- function yd() {
6289
+ function bd() {
6290
6290
  return fo(db);
6291
6291
  }
6292
6292
  const _b = { class: "app-input-new" }, Sb = {
@@ -6359,7 +6359,7 @@ const _b = { class: "app-input-new" }, Sb = {
6359
6359
  },
6360
6360
  emits: ["update:modelValue", "blur"],
6361
6361
  setup(e, { emit: n }) {
6362
- const t = e, r = n, o = yd(), a = X(!1), i = _({
6362
+ const t = e, r = n, o = bd(), a = X(!1), i = _({
6363
6363
  get: () => u(t.modelValue),
6364
6364
  set: (c) => r("update:modelValue", u(c))
6365
6365
  }), s = _(() => t.type === "password" && a.value ? "text" : t.type), u = (c) => t.type === "number" ? c && +c : c, l = () => {
@@ -6446,7 +6446,7 @@ const _b = { class: "app-input-new" }, Sb = {
6446
6446
  }),
6447
6447
  emits: /* @__PURE__ */ si(["update:modelValue"], ["update:modelValue"]),
6448
6448
  setup(e) {
6449
- const n = e, t = Gc(e, "modelValue"), r = X(!1), o = (f) => {
6449
+ const n = e, t = Kc(e, "modelValue"), r = X(!1), o = (f) => {
6450
6450
  n.required && !r.value && !t.value && !f && (r.value = !0);
6451
6451
  }, a = (f) => {
6452
6452
  if (r.value = !1, !n.noPastDates) {
@@ -6849,7 +6849,7 @@ const _b = { class: "app-input-new" }, Sb = {
6849
6849
  });
6850
6850
  function i() {
6851
6851
  r == null || r();
6852
- const d = Math.max(0, td(o)), f = nd(o), h = {
6852
+ const d = Math.max(0, nd(o)), f = rd(o), h = {
6853
6853
  top: d - t.position.top,
6854
6854
  left: f - t.position.left
6855
6855
  };
@@ -7092,7 +7092,7 @@ const nm = typeof ResizeObserver < "u", xh = nm === !0 ? {} : {
7092
7092
  return (n, t) => (Y(), ye("div", {
7093
7093
  class: Ue({ "loader-backdrop": e.backdrop && e.loading })
7094
7094
  }, [
7095
- e.loading ? (Y(), Ae(id, {
7095
+ e.loading ? (Y(), Ae(sd, {
7096
7096
  key: 0,
7097
7097
  size: e.size,
7098
7098
  class: "loader-spinner",
@@ -7172,7 +7172,7 @@ const nm = typeof ResizeObserver < "u", xh = nm === !0 ? {} : {
7172
7172
  true: "inset",
7173
7173
  item: "item-inset",
7174
7174
  "item-thumbnail": "item-thumbnail-inset"
7175
- }, al = {
7175
+ }, il = {
7176
7176
  xs: 2,
7177
7177
  sm: 4,
7178
7178
  md: 8,
@@ -7194,7 +7194,7 @@ const nm = typeof ResizeObserver < "u", xh = nm === !0 ? {} : {
7194
7194
  ), s = _(() => {
7195
7195
  const u = {};
7196
7196
  if (e.size !== void 0 && (u[e.vertical === !0 ? "width" : "height"] = e.size), e.spaced !== !1) {
7197
- const l = e.spaced === !0 ? `${al.md}px` : e.spaced in al ? `${al[e.spaced]}px` : e.spaced, c = e.vertical === !0 ? ["Left", "Right"] : ["Top", "Bottom"];
7197
+ const l = e.spaced === !0 ? `${il.md}px` : e.spaced in il ? `${il[e.spaced]}px` : e.spaced, c = e.vertical === !0 ? ["Left", "Right"] : ["Top", "Bottom"];
7198
7198
  u[`margin${c[0]}`] = u[`margin${c[1]}`] = l;
7199
7199
  }
7200
7200
  return u;
@@ -7209,7 +7209,7 @@ const nm = typeof ResizeObserver < "u", xh = nm === !0 ? {} : {
7209
7209
  name: "QItem",
7210
7210
  props: {
7211
7211
  ...xn,
7212
- ...sd,
7212
+ ...ud,
7213
7213
  tag: {
7214
7214
  type: String,
7215
7215
  default: "div"
@@ -7248,7 +7248,7 @@ const nm = typeof ResizeObserver < "u", xh = nm === !0 ? {} : {
7248
7248
  t("keyup", b);
7249
7249
  }
7250
7250
  function w() {
7251
- const b = Xc(n.default, []);
7251
+ const b = Qc(n.default, []);
7252
7252
  return h.value === !0 && b.unshift(
7253
7253
  I("div", { class: "q-focus-helper", tabindex: -1, ref: d })
7254
7254
  ), b;
@@ -7269,7 +7269,7 @@ const nm = typeof ResizeObserver < "u", xh = nm === !0 ? {} : {
7269
7269
  );
7270
7270
  };
7271
7271
  }
7272
- }), Kb = ["ul", "ol"], bd = je({
7272
+ }), Kb = ["ul", "ol"], wd = je({
7273
7273
  name: "QList",
7274
7274
  props: {
7275
7275
  ...xn,
@@ -7374,7 +7374,7 @@ const nm = typeof ResizeObserver < "u", xh = nm === !0 ? {} : {
7374
7374
  return o.instances.header = y, e.modelValue === !0 && h("size", a.value), h("space", e.modelValue), h("offset", u.value), At(() => {
7375
7375
  o.instances.header === y && (o.instances.header = void 0, h("size", 0), h("offset", 0), h("space", !1));
7376
7376
  }), () => {
7377
- const w = Xc(n.default, []);
7377
+ const w = Qc(n.default, []);
7378
7378
  return e.elevated === !0 && w.push(
7379
7379
  I("div", {
7380
7380
  class: "q-layout__shadow absolute-full overflow-hidden no-pointer-events"
@@ -7400,7 +7400,7 @@ function Ch(e) {
7400
7400
  const n = parseInt(e, 10);
7401
7401
  return isNaN(n) ? 0 : n;
7402
7402
  }
7403
- const wd = Yc(
7403
+ const xd = Xc(
7404
7404
  {
7405
7405
  name: "close-popup",
7406
7406
  beforeMount(e, { value: n }) {
@@ -7447,7 +7447,7 @@ function ni(e) {
7447
7447
  return (n = t == null ? void 0 : t.$el) != null ? n : t;
7448
7448
  }
7449
7449
  const am = om ? window : void 0;
7450
- function il(...e) {
7450
+ function sl(...e) {
7451
7451
  let n, t, r, o;
7452
7452
  if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([t, r, o] = e, n = am) : [n, t, r, o] = e, !n)
7453
7453
  return gs;
@@ -7485,7 +7485,7 @@ function n2(e, n, t = {}) {
7485
7485
  return p && (f.target === p || f.composedPath().includes(p));
7486
7486
  }
7487
7487
  }), c = [
7488
- il(r, "click", (f) => {
7488
+ sl(r, "click", (f) => {
7489
7489
  const h = ni(e);
7490
7490
  if (!(!h || h === f.target || f.composedPath().includes(h))) {
7491
7491
  if (f.detail === 0 && (s = !u(f)), !s) {
@@ -7495,11 +7495,11 @@ function n2(e, n, t = {}) {
7495
7495
  n(f);
7496
7496
  }
7497
7497
  }, { passive: !0, capture: a }),
7498
- il(r, "pointerdown", (f) => {
7498
+ sl(r, "pointerdown", (f) => {
7499
7499
  const h = ni(e);
7500
7500
  s = !u(f) && !!(h && !f.composedPath().includes(h));
7501
7501
  }, { passive: !0 }),
7502
- i && il(r, "blur", (f) => {
7502
+ i && sl(r, "blur", (f) => {
7503
7503
  setTimeout(() => {
7504
7504
  var h;
7505
7505
  const p = ni(e);
@@ -8445,7 +8445,7 @@ const Sx = /* @__PURE__ */ De(Cx, [["render", _x]]), Ex = /* @__PURE__ */ Dt({
8445
8445
  class: Ue(d.$style["settings-menu"])
8446
8446
  }, {
8447
8447
  default: pe(() => [
8448
- (Y(!0), ye(hr, null, Wr(e.settingsMenuItems, (p) => (Y(), Ae(bd, {
8448
+ (Y(!0), ye(hr, null, Wr(e.settingsMenuItems, (p) => (Y(), Ae(wd, {
8449
8449
  key: p.name,
8450
8450
  class: Ue(d.$style["settings-menu__list"])
8451
8451
  }, {
@@ -8461,7 +8461,7 @@ const Sx = /* @__PURE__ */ De(Cx, [["render", _x]]), Ex = /* @__PURE__ */ Dt({
8461
8461
  _: 2
8462
8462
  }, 1032, ["class", "onClick"])), [
8463
8463
  [Jp, p.isShow],
8464
- [wd]
8464
+ [xd]
8465
8465
  ])
8466
8466
  ]),
8467
8467
  _: 2
@@ -8644,7 +8644,7 @@ const CD = /* @__PURE__ */ De(Wx, [["render", Hx], ["__scopeId", "data-v-51e4160
8644
8644
  v,
8645
8645
  d.value.chip,
8646
8646
  { onClick: h, onKeyup: f }
8647
- ), oc(
8647
+ ), ac(
8648
8648
  "div",
8649
8649
  v,
8650
8650
  m(),
@@ -8685,7 +8685,7 @@ const CD = /* @__PURE__ */ De(Wx, [["render", Hx], ["__scopeId", "data-v-51e4160
8685
8685
  );
8686
8686
  return () => I("div", { class: t.value }, kt(n.default));
8687
8687
  }
8688
- }), gc = je({
8688
+ }), yc = je({
8689
8689
  name: "QItemLabel",
8690
8690
  props: {
8691
8691
  overline: Boolean,
@@ -8744,7 +8744,7 @@ const ur = 1e3, Gx = [
8744
8744
  function ga(e, n) {
8745
8745
  return e + n;
8746
8746
  }
8747
- function sl(e, n, t, r, o, a, i, s) {
8747
+ function ul(e, n, t, r, o, a, i, s) {
8748
8748
  const u = e === window ? document.scrollingElement || document.documentElement : e, l = o === !0 ? "offsetWidth" : "offsetHeight", c = {
8749
8749
  scrollStart: 0,
8750
8750
  scrollViewSize: -i - s,
@@ -8800,7 +8800,7 @@ const sm = {
8800
8800
  default: 0
8801
8801
  },
8802
8802
  tableColspan: [Number, String]
8803
- }, um = Object.keys(sm), yc = {
8803
+ }, um = Object.keys(sm), bc = {
8804
8804
  virtualScrollHorizontal: Boolean,
8805
8805
  onVirtualScroll: Function,
8806
8806
  ...sm
@@ -8831,7 +8831,7 @@ function lm({
8831
8831
  function k(L, V) {
8832
8832
  const G = n();
8833
8833
  if (G == null || G.nodeType === 8) return;
8834
- const ne = sl(
8834
+ const ne = ul(
8835
8835
  G,
8836
8836
  t(),
8837
8837
  y.value,
@@ -8852,7 +8852,7 @@ function lm({
8852
8852
  function T() {
8853
8853
  const L = n();
8854
8854
  if (L == null || L.nodeType === 8) return;
8855
- const V = sl(
8855
+ const V = ul(
8856
8856
  L,
8857
8857
  t(),
8858
8858
  y.value,
@@ -8972,7 +8972,7 @@ function lm({
8972
8972
  function z(L) {
8973
8973
  if (L === void 0 && typeof window < "u") {
8974
8974
  const le = n();
8975
- le != null && le.nodeType !== 8 && (L = sl(
8975
+ le != null && le.nodeType !== 8 && (L = ul(
8976
8976
  le,
8977
8977
  t(),
8978
8978
  y.value,
@@ -9054,11 +9054,11 @@ function lm({
9054
9054
  }), c = L);
9055
9055
  }
9056
9056
  z();
9057
- const H = gd(
9057
+ const H = yd(
9058
9058
  T,
9059
9059
  u.platform.is.ios === !0 ? 120 : 35
9060
9060
  );
9061
- Kc(() => {
9061
+ Yc(() => {
9062
9062
  z();
9063
9063
  });
9064
9064
  let K = !1;
@@ -9088,16 +9088,16 @@ function lm({
9088
9088
  };
9089
9089
  }
9090
9090
  const Sh = (e) => ["add", "add-unique", "toggle"].includes(e), Yx = ".*+?^${}()|[]\\", Xx = Object.keys(hu);
9091
- function ul(e, n) {
9091
+ function ll(e, n) {
9092
9092
  if (typeof e == "function") return e;
9093
9093
  const t = e !== void 0 ? e : n;
9094
9094
  return (r) => r !== null && typeof r == "object" && t in r ? r[t] : r;
9095
9095
  }
9096
- const xd = je({
9096
+ const Cd = je({
9097
9097
  name: "QSelect",
9098
9098
  inheritAttrs: !1,
9099
9099
  props: {
9100
- ...yc,
9100
+ ...bc,
9101
9101
  ...$o,
9102
9102
  ...hu,
9103
9103
  // override of useFieldProps > modelValue
@@ -9163,7 +9163,7 @@ const xd = je({
9163
9163
  default: "default"
9164
9164
  },
9165
9165
  // override of useVirtualScrollProps > virtualScrollItemSize (no default)
9166
- virtualScrollItemSize: yc.virtualScrollItemSize.type,
9166
+ virtualScrollItemSize: bc.virtualScrollItemSize.type,
9167
9167
  onNewValue: Function,
9168
9168
  onFilter: Function
9169
9169
  },
@@ -9182,7 +9182,7 @@ const xd = je({
9182
9182
  setup(e, { slots: n, emit: t }) {
9183
9183
  const { proxy: r } = Xe(), { $q: o } = r, a = X(!1), i = X(!1), s = X(-1), u = X(""), l = X(!1), c = X(!1);
9184
9184
  let d = null, f = null, h, p, m, v = null, y, w, b, g;
9185
- const x = X(null), C = X(null), S = X(null), E = X(null), R = X(null), k = ld(e), T = Zv(te), A = _(() => Array.isArray(e.options) ? e.options.length : 0), q = _(() => e.virtualScrollItemSize === void 0 ? e.optionsDense === !0 ? 24 : 48 : e.virtualScrollItemSize), {
9185
+ const x = X(null), C = X(null), S = X(null), E = X(null), R = X(null), k = cd(e), T = Zv(te), A = _(() => Array.isArray(e.options) ? e.options.length : 0), q = _(() => e.virtualScrollItemSize === void 0 ? e.optionsDense === !0 ? 24 : 48 : e.virtualScrollItemSize), {
9186
9186
  virtualScrollSliceRange: D,
9187
9187
  virtualScrollSliceSizeComputed: O,
9188
9188
  localResetVirtualScroll: z,
@@ -9276,7 +9276,7 @@ const xd = je({
9276
9276
  });
9277
9277
  }), gt = _(() => e.dropdownIcon !== void 0 ? e.dropdownIcon : o.iconSet.arrow.dropdown), Mt = _(
9278
9278
  () => e.optionsCover === !1 && e.outlined !== !0 && e.standout !== !0 && e.borderless !== !0 && e.rounded !== !0
9279
- ), Ft = _(() => e.optionsSelectedClass !== void 0 ? e.optionsSelectedClass : e.color !== void 0 ? `text-${e.color}` : ""), se = _(() => ul(e.optionValue, "value")), J = _(() => ul(e.optionLabel, "label")), ve = _(() => ul(e.optionDisable, "disable")), Pe = _(() => V.value.map(se.value)), st = _(() => {
9279
+ ), Ft = _(() => e.optionsSelectedClass !== void 0 ? e.optionsSelectedClass : e.color !== void 0 ? `text-${e.color}` : ""), se = _(() => ll(e.optionValue, "value")), J = _(() => ll(e.optionLabel, "label")), ve = _(() => ll(e.optionDisable, "disable")), Pe = _(() => V.value.map(se.value)), st = _(() => {
9280
9280
  const U = {
9281
9281
  onInput: te,
9282
9282
  // Safari < 10.2 & UIWebView doesn't fire compositionend when
@@ -9509,7 +9509,7 @@ const xd = je({
9509
9509
  }, () => I(
9510
9510
  hn,
9511
9511
  () => I(
9512
- gc,
9512
+ yc,
9513
9513
  () => I("span", {
9514
9514
  [Ie.html === !0 ? "innerHTML" : "textContent"]: Ie.label
9515
9515
  })
@@ -9597,13 +9597,13 @@ const xd = je({
9597
9597
  separateClosePopup: !0,
9598
9598
  ...tt.value,
9599
9599
  onScrollPassive: P,
9600
- onBeforeShow: Af,
9600
+ onBeforeShow: Df,
9601
9601
  onBeforeHide: qt,
9602
9602
  onShow: Bt
9603
9603
  }, sr);
9604
9604
  }
9605
9605
  function qt(U) {
9606
- Df(U), Te();
9606
+ Mf(U), Te();
9607
9607
  }
9608
9608
  function Bt() {
9609
9609
  K();
@@ -9656,7 +9656,7 @@ const xd = je({
9656
9656
  transitionHide: e.transitionHide,
9657
9657
  transitionDuration: e.transitionDuration,
9658
9658
  noRouteDismiss: e.popupNoRouteDismiss,
9659
- onBeforeShow: Af,
9659
+ onBeforeShow: Df,
9660
9660
  onBeforeHide: be,
9661
9661
  onHide: _e,
9662
9662
  onShow: dt
@@ -9665,7 +9665,7 @@ const xd = je({
9665
9665
  }, U));
9666
9666
  }
9667
9667
  function be(U) {
9668
- Df(U), E.value !== null && E.value.__updateRefocusTarget(
9668
+ Mf(U), E.value !== null && E.value.__updateRefocusTarget(
9669
9669
  L.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")
9670
9670
  ), L.focused.value = !1;
9671
9671
  }
@@ -9710,19 +9710,19 @@ const xd = je({
9710
9710
  a.value === !0 && L.innerLoading.value === !1 && (U > Se ? z() : Hu(!0));
9711
9711
  }));
9712
9712
  }
9713
- function Tf() {
9713
+ function Af() {
9714
9714
  i.value === !1 && S.value !== null && S.value.updatePosition();
9715
9715
  }
9716
- function Af(U) {
9716
+ function Df(U) {
9717
9717
  U !== void 0 && Fn(U), t("popupShow", U), L.hasPopupOpen = !0, L.onControlFocusin(U);
9718
9718
  }
9719
- function Df(U) {
9719
+ function Mf(U) {
9720
9720
  U !== void 0 && Fn(U), t("popupHide", U), L.hasPopupOpen = !1, L.onControlFocusout(U);
9721
9721
  }
9722
- function Mf() {
9722
+ function Ff() {
9723
9723
  p = o.platform.is.mobile !== !0 && e.behavior !== "dialog" ? !1 : e.behavior !== "menu" && (e.useInput === !0 ? n["no-option"] !== void 0 || e.onFilter !== void 0 || we.value === !1 : !0), w = o.platform.is.ios === !0 && p === !0 && e.useInput === !0 ? "fade" : e.transitionShow;
9724
9724
  }
9725
- return Zp(Mf), d1(Tf), Mf(), At(() => {
9725
+ return Zp(Ff), d1(Af), Ff(), At(() => {
9726
9726
  d !== null && clearTimeout(d), f !== null && clearTimeout(f);
9727
9727
  }), Object.assign(r, {
9728
9728
  showPopup: Ze,
@@ -9734,7 +9734,7 @@ const xd = je({
9734
9734
  setOptionIndex: oe,
9735
9735
  moveOptionSelection: he,
9736
9736
  filter: $e,
9737
- updateMenuPosition: Tf,
9737
+ updateMenuPosition: Af,
9738
9738
  updateInputValue: He,
9739
9739
  isOptionSelected: Ye,
9740
9740
  getEmittingOptionValue: mt,
@@ -9865,7 +9865,7 @@ const xd = je({
9865
9865
  s.value = c.toLowerCase();
9866
9866
  });
9867
9867
  }
9868
- return (c, d) => (Y(), Ae(An(xd), {
9868
+ return (c, d) => (Y(), Ae(An(Cd), {
9869
9869
  ref_key: "select",
9870
9870
  ref: r,
9871
9871
  modelValue: a.value,
@@ -9943,9 +9943,9 @@ const xd = je({
9943
9943
  $style: eC
9944
9944
  }, kD = /* @__PURE__ */ De(Qx, [["__cssModules", tC]]), nC = '<g transform="matrix(1 0 0 -1 0 80)"><rect width="10" height="20" rx="3"><animate attributeName="height" begin="0s" dur="4.3s" values="20;45;57;80;64;32;66;45;64;23;66;13;64;56;34;34;2;23;76;79;20" calcMode="linear" repeatCount="indefinite"></animate></rect><rect x="15" width="10" height="80" rx="3"><animate attributeName="height" begin="0s" dur="2s" values="80;55;33;5;75;23;73;33;12;14;60;80" calcMode="linear" repeatCount="indefinite"></animate></rect><rect x="30" width="10" height="50" rx="3"><animate attributeName="height" begin="0s" dur="1.4s" values="50;34;78;23;56;23;34;76;80;54;21;50" calcMode="linear" repeatCount="indefinite"></animate></rect><rect x="45" width="10" height="30" rx="3"><animate attributeName="height" begin="0s" dur="2s" values="30;45;13;80;56;72;45;76;34;23;67;30" calcMode="linear" repeatCount="indefinite"></animate></rect></g>', ci = je({
9945
9945
  name: "QSpinnerAudio",
9946
- props: od,
9946
+ props: ad,
9947
9947
  setup(e) {
9948
- const { cSize: n, classes: t } = ad(e);
9948
+ const { cSize: n, classes: t } = id(e);
9949
9949
  return () => I("svg", {
9950
9950
  class: t.value,
9951
9951
  fill: "currentColor",
@@ -10027,7 +10027,7 @@ const xd = je({
10027
10027
  flat: "",
10028
10028
  icon: "close"
10029
10029
  }, null, 512), [
10030
- [wd]
10030
+ [xd]
10031
10031
  ])
10032
10032
  ])
10033
10033
  ]),
@@ -10579,7 +10579,7 @@ const yC = ["left", "center", "right", "justify"], bC = je({
10579
10579
  icon: "close",
10580
10580
  onClick: s[1] || (s[1] = (l) => r("close"))
10581
10581
  }, null, 512), [
10582
- [wd, !e.persistent]
10582
+ [xd, !e.persistent]
10583
10583
  ])
10584
10584
  ])) : We("", !0),
10585
10585
  $t(i.$slots, "default", {}, void 0, !0),
@@ -10858,7 +10858,7 @@ const yC = ["left", "center", "right", "justify"], bC = je({
10858
10858
  le.value
10859
10859
  )
10860
10860
  ), se.push(
10861
- oc(
10861
+ ac(
10862
10862
  "div",
10863
10863
  {
10864
10864
  ref: "backdrop",
@@ -10893,7 +10893,7 @@ const yC = ["left", "center", "right", "justify"], bC = je({
10893
10893
  class: "q-layout__shadow absolute-full overflow-hidden no-pointer-events"
10894
10894
  })
10895
10895
  ), se.push(
10896
- oc(
10896
+ ac(
10897
10897
  "aside",
10898
10898
  { ref: "content", class: ce.value, style: ne.value },
10899
10899
  ve,
@@ -10950,10 +10950,10 @@ const yC = ["left", "center", "right", "justify"], bC = je({
10950
10950
  onLeave: p
10951
10951
  }, n.default);
10952
10952
  }
10953
- }), wo = f1({}), MC = Object.keys(sd), FC = je({
10953
+ }), wo = f1({}), MC = Object.keys(ud), FC = je({
10954
10954
  name: "QExpansionItem",
10955
10955
  props: {
10956
- ...sd,
10956
+ ...ud,
10957
10957
  ...wi,
10958
10958
  ...xn,
10959
10959
  icon: String,
@@ -10989,7 +10989,7 @@ const yC = ["left", "center", "right", "justify"], bC = je({
10989
10989
  setup(e, { slots: n, emit: t }) {
10990
10990
  const { proxy: { $q: r } } = Xe(), o = Cn(e, r), a = X(
10991
10991
  e.modelValue !== null ? e.modelValue : e.defaultOpened
10992
- ), i = X(null), s = md(), { show: u, hide: l, toggle: c } = Ci({ showing: a });
10992
+ ), i = X(null), s = gd(), { show: u, hide: l, toggle: c } = Ci({ showing: a });
10993
10993
  let d, f;
10994
10994
  const h = _(
10995
10995
  () => `q-expansion-item q-item-type q-expansion-item--${a.value === !0 ? "expanded" : "collapsed"} q-expansion-item--${e.popup === !0 ? "popup" : "standard"}`
@@ -11085,8 +11085,8 @@ const yC = ["left", "center", "right", "justify"], bC = je({
11085
11085
  let F;
11086
11086
  return n.header !== void 0 ? F = [].concat(n.header(g.value)) : (F = [
11087
11087
  I(hn, () => [
11088
- I(gc, { lines: e.labelLines }, () => e.label || ""),
11089
- e.caption ? I(gc, { lines: e.captionLines, caption: !0 }, () => e.caption) : null
11088
+ I(yc, { lines: e.labelLines }, () => e.label || ""),
11089
+ e.caption ? I(yc, { lines: e.captionLines, caption: !0 }, () => e.caption) : null
11090
11090
  ])
11091
11091
  ], e.icon && F[e.switchToggleSide === !0 ? "push" : "unshift"](
11092
11092
  I(hn, {
@@ -11313,7 +11313,7 @@ const yC = ["left", "center", "right", "justify"], bC = je({
11313
11313
  },
11314
11314
  emits: ["logout"],
11315
11315
  setup(e, { emit: n }) {
11316
- const t = n, r = yd(), o = X(!0), a = X(!0), i = X(!1), s = _(() => r.screen.lt.lg), u = _(() => a.value ? "menu" : "close"), l = _(() => s.value ? 250 : 275), c = _(() => s.value ? 47 : 72);
11316
+ const t = n, r = bd(), o = X(!0), a = X(!0), i = X(!1), s = _(() => r.screen.lt.lg), u = _(() => a.value ? "menu" : "close"), l = _(() => s.value ? 250 : 275), c = _(() => s.value ? 47 : 72);
11317
11317
  function d(p) {
11318
11318
  !i.value && !s.value && (a.value = p);
11319
11319
  }
@@ -11462,7 +11462,7 @@ const yC = ["left", "center", "right", "justify"], bC = je({
11462
11462
  "menu-exit__label": "_menu-exit__label_zcdf1_51"
11463
11463
  }, KC = {
11464
11464
  $style: GC
11465
- }, ED = /* @__PURE__ */ De(WC, [["__cssModules", KC]]), bc = je({
11465
+ }, ED = /* @__PURE__ */ De(WC, [["__cssModules", KC]]), wc = je({
11466
11466
  name: "QToggle",
11467
11467
  props: {
11468
11468
  ..._v,
@@ -11506,7 +11506,7 @@ const yC = ["left", "center", "right", "justify"], bC = je({
11506
11506
  set: (a) => r("update:modelValue", a)
11507
11507
  });
11508
11508
  return (a, i) => (Y(), ye("div", null, [
11509
- xe(bc, {
11509
+ xe(wc, {
11510
11510
  modelValue: o.value,
11511
11511
  "onUpdate:modelValue": i[0] || (i[0] = (s) => o.value = s),
11512
11512
  disable: e.disable
@@ -11541,7 +11541,7 @@ function JC(e) {
11541
11541
  n[t] = ZC;
11542
11542
  }), n;
11543
11543
  }
11544
- function Cd() {
11544
+ function kd() {
11545
11545
  const { emit: e, proxy: n } = Xe(), t = X(null);
11546
11546
  function r() {
11547
11547
  t.value.show();
@@ -11563,8 +11563,8 @@ function Cd() {
11563
11563
  };
11564
11564
  }
11565
11565
  const cm = ["ok", "hide"];
11566
- Cd.emits = cm;
11567
- Cd.emitsObject = JC(cm);
11566
+ kd.emits = cm;
11567
+ kd.emitsObject = JC(cm);
11568
11568
  const ek = {}, tk = {
11569
11569
  width: "50",
11570
11570
  height: "50",
@@ -11606,7 +11606,7 @@ const sk = /* @__PURE__ */ De(ok, [["render", ik]]), uk = /* @__PURE__ */ Dt({
11606
11606
  type: {}
11607
11607
  },
11608
11608
  setup(e) {
11609
- const { onDialogHide: n, onDialogOK: t, dialogRef: r } = Cd();
11609
+ const { onDialogHide: n, onDialogOK: t, dialogRef: r } = kd();
11610
11610
  return (o, a) => (Y(), Ae(Wo, {
11611
11611
  ref_key: "dialogRef",
11612
11612
  ref: r,
@@ -11638,13 +11638,13 @@ const sk = /* @__PURE__ */ De(ok, [["render", ik]]), uk = /* @__PURE__ */ Dt({
11638
11638
  class: Ue(o.$style.footer)
11639
11639
  }, {
11640
11640
  default: pe(() => [
11641
- xe(fc, {
11641
+ xe(hc, {
11642
11642
  "data-test": "confirm-button",
11643
11643
  class: Ue(o.$style["footer__btn--ok"]),
11644
11644
  label: "Подтвердить",
11645
11645
  onClick: An(t)
11646
11646
  }, null, 8, ["class", "onClick"]),
11647
- xe(fc, {
11647
+ xe(hc, {
11648
11648
  "data-test": "close-button",
11649
11649
  class: Ue(o.$style["footer__btn--cancel"]),
11650
11650
  label: "Отменить",
@@ -11689,7 +11689,7 @@ const sk = /* @__PURE__ */ De(ok, [["render", ik]]), uk = /* @__PURE__ */ Dt({
11689
11689
  });
11690
11690
  return () => I("div", { class: t.value }, kt(n.default));
11691
11691
  }
11692
- }), mk = Object.keys(ud);
11692
+ }), mk = Object.keys(ld);
11693
11693
  function gk(e) {
11694
11694
  return mk.reduce((n, t) => {
11695
11695
  const r = e[t];
@@ -11699,7 +11699,7 @@ function gk(e) {
11699
11699
  const yk = je({
11700
11700
  name: "QBtnDropdown",
11701
11701
  props: {
11702
- ...ud,
11702
+ ...ld,
11703
11703
  ...pa,
11704
11704
  modelValue: Boolean,
11705
11705
  split: Boolean,
@@ -11729,7 +11729,7 @@ const yk = je({
11729
11729
  },
11730
11730
  emits: ["update:modelValue", "click", "beforeShow", "show", "beforeHide", "hide"],
11731
11731
  setup(e, { slots: n, emit: t }) {
11732
- const { proxy: r } = Xe(), o = X(e.modelValue), a = X(null), i = md(), s = _(() => {
11732
+ const { proxy: r } = Xe(), o = X(e.modelValue), a = X(null), i = gd(), s = _(() => {
11733
11733
  const g = {
11734
11734
  "aria-expanded": o.value === !0 ? "true" : "false",
11735
11735
  "aria-haspopup": "true",
@@ -11872,7 +11872,7 @@ const yk = je({
11872
11872
  }),
11873
11873
  emits: ["update:modelValue"],
11874
11874
  setup(e) {
11875
- const n = Gc(e, "modelValue");
11875
+ const n = Kc(e, "modelValue");
11876
11876
  return (t, r) => (Y(), Ae(yk, {
11877
11877
  modelValue: n.value,
11878
11878
  "onUpdate:modelValue": r[0] || (r[0] = (o) => n.value = o),
@@ -12108,9 +12108,9 @@ const yk = je({
12108
12108
  }
12109
12109
  }), Ak = '<circle cx="15" cy="15" r="15"><animate attributeName="r" from="15" to="15" begin="0s" dur="0.8s" values="15;9;15" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="fill-opacity" from="1" to="1" begin="0s" dur="0.8s" values="1;.5;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="60" cy="15" r="9" fill-opacity=".3"><animate attributeName="r" from="9" to="9" begin="0s" dur="0.8s" values="9;15;9" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="fill-opacity" from=".5" to=".5" begin="0s" dur="0.8s" values=".5;1;.5" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="105" cy="15" r="15"><animate attributeName="r" from="15" to="15" begin="0s" dur="0.8s" values="15;9;15" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="fill-opacity" from="1" to="1" begin="0s" dur="0.8s" values="1;.5;1" calcMode="linear" repeatCount="indefinite"></animate></circle>', Dk = je({
12110
12110
  name: "QSpinnerDots",
12111
- props: od,
12111
+ props: ad,
12112
12112
  setup(e) {
12113
- const { cSize: n, classes: t } = ad(e);
12113
+ const { cSize: n, classes: t } = id(e);
12114
12114
  return () => I("svg", {
12115
12115
  class: t.value,
12116
12116
  fill: "currentColor",
@@ -12232,7 +12232,7 @@ const yk = je({
12232
12232
  Wt(pt(e.label) + " ", 1),
12233
12233
  (x = e.rules) != null && x.length && e.isShowRequired ? (Y(), ye("span", Fk, "*")) : We("", !0)
12234
12234
  ], 8, Mk)) : We("", !0),
12235
- xe(An(xd), {
12235
+ xe(An(Cd), {
12236
12236
  ref_key: "select",
12237
12237
  ref: i,
12238
12238
  modelValue: l.value,
@@ -12365,7 +12365,7 @@ const yk = je({
12365
12365
  },
12366
12366
  emits: ["update:modelValue", "submit", "edit", "delete"],
12367
12367
  setup(e, { emit: n }) {
12368
- const t = e, r = n, o = yd(), a = X(), i = X({}), s = X({}), u = _(() => t.mode === "view" ? !1 : t.fields.some((w) => {
12368
+ const t = e, r = n, o = bd(), a = X(), i = X({}), s = X({}), u = _(() => t.mode === "view" ? !1 : t.fields.some((w) => {
12369
12369
  var S;
12370
12370
  const b = (S = w.rules) == null ? void 0 : S.some((E) => E("") !== !0), g = i.value[w.key], x = Ga(g), C = x == null || typeof x == "string" && x.trim() === "" || Array.isArray(x) && x.length === 0;
12371
12371
  return b && C;
@@ -12750,7 +12750,7 @@ const yk = je({
12750
12750
  )
12751
12751
  ];
12752
12752
  }
12753
- }), Ih = ["vertical", "horizontal"], ll = {
12753
+ }), Ih = ["vertical", "horizontal"], cl = {
12754
12754
  vertical: { offset: "offsetY", scroll: "scrollTop", dir: "down", dist: "y" },
12755
12755
  horizontal: { offset: "offsetX", scroll: "scrollLeft", dir: "right", dist: "x" }
12756
12756
  }, Th = {
@@ -12866,7 +12866,7 @@ const yk = je({
12866
12866
  });
12867
12867
  }), D;
12868
12868
  }
12869
- const v = gd(() => {
12869
+ const v = yd(() => {
12870
12870
  const D = m();
12871
12871
  D.ref = u, t("scroll", D);
12872
12872
  }, 0);
@@ -12875,7 +12875,7 @@ const yk = je({
12875
12875
  console.error("[QScrollArea]: wrong first param of setScrollPosition (vertical/horizontal)");
12876
12876
  return;
12877
12877
  }
12878
- (D === "vertical" ? Lf : ju)(f.value, O, z);
12878
+ (D === "vertical" ? Lf : Gu)(f.value, O, z);
12879
12879
  }
12880
12880
  function w({ height: D, width: O }) {
12881
12881
  let z = !1;
@@ -12896,13 +12896,13 @@ const yk = je({
12896
12896
  } else if (o.value !== !0)
12897
12897
  return;
12898
12898
  D.isFinal === !0 && (o.value = !1);
12899
- const F = ll[O], P = (z.size.value - i[O].value) / (i[O + "Inner"].value - z.thumbSize.value), H = D.distance[F.dist], K = d + (D.direction === F.dir ? 1 : -1) * H * P;
12899
+ const F = cl[O], P = (z.size.value - i[O].value) / (i[O + "Inner"].value - z.thumbSize.value), H = D.distance[F.dist], K = d + (D.direction === F.dir ? 1 : -1) * H * P;
12900
12900
  E(K, O);
12901
12901
  }
12902
12902
  function C(D, O) {
12903
12903
  const z = s[O];
12904
12904
  if (z.thumbHidden.value !== !0) {
12905
- const F = O === "vertical" ? e.verticalOffset[0] : e.horizontalOffset[0], P = D[ll[O].offset] - F, H = z.thumbStart.value - F;
12905
+ const F = O === "vertical" ? e.verticalOffset[0] : e.horizontalOffset[0], P = D[cl[O].offset] - F, H = z.thumbStart.value - F;
12906
12906
  if (P < H || P > H + z.thumbSize.value) {
12907
12907
  const K = P - z.thumbSize.value / 2, L = Vr(K / (i[O + "Inner"].value - z.thumbSize.value), 0, 1);
12908
12908
  E(L * Math.max(0, z.size.value - i[O].value), O);
@@ -12916,7 +12916,7 @@ const yk = je({
12916
12916
  }, e.delay), e.onScroll !== void 0 && v();
12917
12917
  }
12918
12918
  function E(D, O) {
12919
- f.value[ll[O].scroll] = D;
12919
+ f.value[cl[O].scroll] = D;
12920
12920
  }
12921
12921
  let R = null;
12922
12922
  function k() {
@@ -12929,7 +12929,7 @@ const yk = je({
12929
12929
  }
12930
12930
  let A = null;
12931
12931
  me(() => u.$q.lang.rtl, (D) => {
12932
- f.value !== null && ju(
12932
+ f.value !== null && Gu(
12933
12933
  f.value,
12934
12934
  Math.abs(s.horizontal.position.value) * (D === !0 ? -1 : 1)
12935
12935
  );
@@ -12941,7 +12941,7 @@ const yk = je({
12941
12941
  }), Na(() => {
12942
12942
  if (A === null) return;
12943
12943
  const D = f.value;
12944
- D !== null && (ju(D, A.left), Lf(D, A.top));
12944
+ D !== null && (Gu(D, A.left), Lf(D, A.top));
12945
12945
  }), At(v.cancel), Object.assign(u, {
12946
12946
  getScrollTarget: () => f.value,
12947
12947
  getScroll: m,
@@ -13048,7 +13048,7 @@ const yk = je({
13048
13048
  i = e.props.col;
13049
13049
  if (i.sortable === !0) {
13050
13050
  const c = i.align === "right" ? "unshift" : "push";
13051
- s = Xc(n.default, []), s[c](
13051
+ s = Qc(n.default, []), s[c](
13052
13052
  I(St, {
13053
13053
  class: i.__iconClass,
13054
13054
  name: o.iconSet.table.arrowUp
@@ -13098,12 +13098,12 @@ function hm(e, n) {
13098
13098
  ]);
13099
13099
  }
13100
13100
  const Gk = {
13101
- list: bd,
13101
+ list: wd,
13102
13102
  table: jk
13103
13103
  }, Kk = ["list", "table", "__qtable"], Yk = je({
13104
13104
  name: "QVirtualScroll",
13105
13105
  props: {
13106
- ...yc,
13106
+ ...bc,
13107
13107
  type: {
13108
13108
  type: String,
13109
13109
  default: "list",
@@ -13163,7 +13163,7 @@ const Gk = {
13163
13163
  );
13164
13164
  return n.before !== void 0 && (w = n.before().concat(w)), On(n.after, w);
13165
13165
  }
13166
- return Kc(() => {
13166
+ return Yc(() => {
13167
13167
  s();
13168
13168
  }), vn(() => {
13169
13169
  m();
@@ -13273,7 +13273,7 @@ function e_() {
13273
13273
  const e = Xe(), { props: n, emit: t, proxy: r } = e;
13274
13274
  let o, a;
13275
13275
  const i = X(!1);
13276
- Zc(e) === !0 && me(() => r.$route.fullPath, () => {
13276
+ Jc(e) === !0 && me(() => r.$route.fullPath, () => {
13277
13277
  n.noRouteFullscreenExit !== !0 && l();
13278
13278
  }), me(() => n.fullscreen, (c) => {
13279
13279
  i.value !== c && s();
@@ -13291,7 +13291,7 @@ function e_() {
13291
13291
  r.$el.scrollIntoView();
13292
13292
  })));
13293
13293
  }
13294
- return Kc(() => {
13294
+ return Yc(() => {
13295
13295
  o = document.createElement("span");
13296
13296
  }), vn(() => {
13297
13297
  n.fullscreen === !0 && u();
@@ -13327,7 +13327,7 @@ function r_(e, n, t, r) {
13327
13327
  const d = l === !0 ? -1 : 1, f = typeof c.field == "function" ? (h) => c.field(h) : (h) => h[c.field];
13328
13328
  return s.sort((h, p) => {
13329
13329
  let m = f(h), v = f(p);
13330
- return c.rawSort !== void 0 ? c.rawSort(m, v, h, p) * d : m == null ? -1 * d : v == null ? 1 * d : c.sort !== void 0 ? c.sort(m, v, h, p) * d : hc(m) === !0 && hc(v) === !0 ? (m - v) * d : Ds(m) === !0 && Ds(v) === !0 ? t_(m, v) * d : typeof m == "boolean" && typeof v == "boolean" ? (m - v) * d : ([m, v] = [m, v].map((y) => (y + "").toLocaleString().toLowerCase()), m < v ? -1 * d : m === v ? 0 : d);
13330
+ return c.rawSort !== void 0 ? c.rawSort(m, v, h, p) * d : m == null ? -1 * d : v == null ? 1 * d : c.sort !== void 0 ? c.sort(m, v, h, p) * d : pc(m) === !0 && pc(v) === !0 ? (m - v) * d : Ds(m) === !0 && Ds(v) === !0 ? t_(m, v) * d : typeof m == "boolean" && typeof v == "boolean" ? (m - v) * d : ([m, v] = [m, v].map((y) => (y + "").toLocaleString().toLowerCase()), m < v ? -1 * d : m === v ? 0 : d);
13331
13331
  });
13332
13332
  });
13333
13333
  function i(s) {
@@ -13574,7 +13574,7 @@ function g_(e, n, t) {
13574
13574
  name: u,
13575
13575
  label: u.toUpperCase(),
13576
13576
  field: u,
13577
- align: hc(s[u]) ? "right" : "left",
13577
+ align: pc(s[u]) ? "right" : "left",
13578
13578
  sortable: !0
13579
13579
  })) : [];
13580
13580
  }), o = _(() => {
@@ -14081,7 +14081,7 @@ const y_ = je({
14081
14081
  I("span", { class: "q-table__bottom-item" }, [
14082
14082
  e.rowsPerPageLabel || o.lang.table.recordsPerPage
14083
14083
  ]),
14084
- I(xd, {
14084
+ I(Cd, {
14085
14085
  class: "q-table__select inline q-table__bottom-item",
14086
14086
  color: e.color,
14087
14087
  modelValue: He,
@@ -14352,13 +14352,13 @@ const C_ = /* @__PURE__ */ De(b_, [["render", x_]]), k_ = {
14352
14352
  onRowClick: u
14353
14353
  }, La({
14354
14354
  "header-selection": pe((f) => [
14355
- xe(bc, {
14355
+ xe(wc, {
14356
14356
  modelValue: f.selected,
14357
14357
  "onUpdate:modelValue": (h) => f.selected = h
14358
14358
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
14359
14359
  ]),
14360
14360
  "body-selection": pe((f) => [
14361
- xe(bc, {
14361
+ xe(wc, {
14362
14362
  modelValue: f.selected,
14363
14363
  "onUpdate:modelValue": (h) => f.selected = h
14364
14364
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
@@ -14451,7 +14451,7 @@ const C_ = /* @__PURE__ */ De(b_, [["render", x_]]), k_ = {
14451
14451
  }, null, 8, ["modelValue", "onUpdate:modelValue"]),
14452
14452
  xe(Hk, { style: { height: "200px" } }, {
14453
14453
  default: pe(() => [
14454
- xe(bd, { style: { "min-width": "200px" } }, {
14454
+ xe(wd, { style: { "min-width": "200px" } }, {
14455
14455
  default: pe(() => {
14456
14456
  var v;
14457
14457
  return [
@@ -14613,7 +14613,7 @@ const C_ = /* @__PURE__ */ De(b_, [["render", x_]]), k_ = {
14613
14613
  }),
14614
14614
  emits: /* @__PURE__ */ si(["update:modelValue"], ["update:modelValue"]),
14615
14615
  setup(e, { emit: n }) {
14616
- const t = Gc(e, "modelValue");
14616
+ const t = Kc(e, "modelValue");
14617
14617
  return (r, o) => (Y(), Ae(Wo, {
14618
14618
  modelValue: t.value,
14619
14619
  "onUpdate:modelValue": o[0] || (o[0] = (a) => t.value = a)
@@ -14789,7 +14789,7 @@ const H_ = je({
14789
14789
  ...$_
14790
14790
  ],
14791
14791
  setup(e, { slots: n, emit: t, attrs: r }) {
14792
- const { proxy: o } = Xe(), a = vu(), i = X(null), s = X(!1), u = ld(e), {
14792
+ const { proxy: o } = Xe(), a = vu(), i = X(null), s = X(!1), u = cd(e), {
14793
14793
  pickFiles: l,
14794
14794
  onDragover: c,
14795
14795
  onDragleave: d,
@@ -14995,7 +14995,7 @@ function vm(e, n) {
14995
14995
  return e.apply(n, arguments);
14996
14996
  };
14997
14997
  }
14998
- const { toString: j_ } = Object.prototype, { getPrototypeOf: kd } = Object, { iterator: bu, toStringTag: mm } = Symbol, wu = /* @__PURE__ */ ((e) => (n) => {
14998
+ const { toString: j_ } = Object.prototype, { getPrototypeOf: _d } = Object, { iterator: bu, toStringTag: mm } = Symbol, wu = /* @__PURE__ */ ((e) => (n) => {
14999
14999
  const t = j_.call(n);
15000
15000
  return e[t] || (e[t] = t.slice(8, -1).toLowerCase());
15001
15001
  })(/* @__PURE__ */ Object.create(null)), pr = (e) => (e = e.toLowerCase(), (n) => wu(n) === e), xu = (e) => (n) => typeof n === e, { isArray: $a } = Array, Aa = xu("undefined");
@@ -15010,7 +15010,7 @@ function G_(e) {
15010
15010
  const K_ = xu("string"), qn = xu("function"), ym = xu("number"), Ii = (e) => e !== null && typeof e == "object", Y_ = (e) => e === !0 || e === !1, ys = (e) => {
15011
15011
  if (wu(e) !== "object")
15012
15012
  return !1;
15013
- const n = kd(e);
15013
+ const n = _d(e);
15014
15014
  return (n === null || n === Object.prototype || Object.getPrototypeOf(n) === null) && !(mm in e) && !(bu in e);
15015
15015
  }, X_ = (e) => {
15016
15016
  if (!Ii(e) || Ri(e))
@@ -15053,10 +15053,10 @@ function bm(e, n) {
15053
15053
  return null;
15054
15054
  }
15055
15055
  const Ro = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, wm = (e) => !Aa(e) && e !== Ro;
15056
- function wc() {
15056
+ function xc() {
15057
15057
  const { caseless: e, skipUndefined: n } = wm(this) && this || {}, t = {}, r = (o, a) => {
15058
15058
  const i = e && bm(t, a) || a;
15059
- ys(t[i]) && ys(o) ? t[i] = wc(t[i], o) : ys(o) ? t[i] = wc({}, o) : $a(o) ? t[i] = o.slice() : (!n || !Aa(o)) && (t[i] = o);
15059
+ ys(t[i]) && ys(o) ? t[i] = xc(t[i], o) : ys(o) ? t[i] = xc({}, o) : $a(o) ? t[i] = o.slice() : (!n || !Aa(o)) && (t[i] = o);
15060
15060
  };
15061
15061
  for (let o = 0, a = arguments.length; o < a; o++)
15062
15062
  arguments[o] && Ti(arguments[o], r);
@@ -15075,7 +15075,7 @@ const l3 = (e, n, t, { allOwnKeys: r } = {}) => (Ti(n, (o, a) => {
15075
15075
  do {
15076
15076
  for (o = Object.getOwnPropertyNames(e), a = o.length; a-- > 0; )
15077
15077
  i = o[a], (!r || r(i, e, n)) && !s[i] && (n[i] = e[i], s[i] = !0);
15078
- e = t !== !1 && kd(e);
15078
+ e = t !== !1 && _d(e);
15079
15079
  } while (e && (!t || t(e, n)) && e !== Object.prototype);
15080
15080
  return n;
15081
15081
  }, h3 = (e, n, t) => {
@@ -15091,7 +15091,7 @@ const l3 = (e, n, t, { allOwnKeys: r } = {}) => (Ti(n, (o, a) => {
15091
15091
  for (; n-- > 0; )
15092
15092
  t[n] = e[n];
15093
15093
  return t;
15094
- }, v3 = /* @__PURE__ */ ((e) => (n) => e && n instanceof e)(typeof Uint8Array < "u" && kd(Uint8Array)), m3 = (e, n) => {
15094
+ }, v3 = /* @__PURE__ */ ((e) => (n) => e && n instanceof e)(typeof Uint8Array < "u" && _d(Uint8Array)), m3 = (e, n) => {
15095
15095
  const r = (e && e[bu]).call(e);
15096
15096
  let o;
15097
15097
  for (; (o = r.next()) && !o.done; ) {
@@ -15195,7 +15195,7 @@ const E3 = (e) => {
15195
15195
  isTypedArray: v3,
15196
15196
  isFileList: e3,
15197
15197
  forEach: Ti,
15198
- merge: wc,
15198
+ merge: xc,
15199
15199
  extend: l3,
15200
15200
  trim: u3,
15201
15201
  stripBOM: c3,
@@ -15281,7 +15281,7 @@ ut.from = (e, n, t, r, o, a) => {
15281
15281
  return ut.call(i, s, u, t, r, o), e && i.cause == null && Object.defineProperty(i, "cause", { value: e, configurable: !0 }), i.name = e && e.name || "Error", a && Object.assign(i, a), i;
15282
15282
  };
15283
15283
  const D3 = null;
15284
- function xc(e) {
15284
+ function Cc(e) {
15285
15285
  return Z.isPlainObject(e) || Z.isArray(e);
15286
15286
  }
15287
15287
  function Sm(e) {
@@ -15293,7 +15293,7 @@ function Bh(e, n, t) {
15293
15293
  }).join(t ? "." : "") : n;
15294
15294
  }
15295
15295
  function M3(e) {
15296
- return Z.isArray(e) && !e.some(xc);
15296
+ return Z.isArray(e) && !e.some(Cc);
15297
15297
  }
15298
15298
  const F3 = Z.toFlatObject(Z, {}, null, function(n) {
15299
15299
  return /^is[A-Z]/.test(n);
@@ -15335,12 +15335,12 @@ function Cu(e, n, t) {
15335
15335
  );
15336
15336
  }), !1;
15337
15337
  }
15338
- return xc(p) ? !0 : (n.append(Bh(v, m, a), l(p)), !1);
15338
+ return Cc(p) ? !0 : (n.append(Bh(v, m, a), l(p)), !1);
15339
15339
  }
15340
15340
  const d = [], f = Object.assign(F3, {
15341
15341
  defaultVisitor: c,
15342
15342
  convertValue: l,
15343
- isVisitable: xc
15343
+ isVisitable: Cc
15344
15344
  });
15345
15345
  function h(p, m) {
15346
15346
  if (!Z.isUndefined(p)) {
@@ -15375,10 +15375,10 @@ function Oh(e) {
15375
15375
  return n[r];
15376
15376
  });
15377
15377
  }
15378
- function _d(e, n) {
15378
+ function Sd(e, n) {
15379
15379
  this._pairs = [], e && Cu(e, this, n);
15380
15380
  }
15381
- const Em = _d.prototype;
15381
+ const Em = Sd.prototype;
15382
15382
  Em.append = function(n, t) {
15383
15383
  this._pairs.push([n, t]);
15384
15384
  };
@@ -15402,7 +15402,7 @@ function Rm(e, n, t) {
15402
15402
  });
15403
15403
  const o = t && t.serialize;
15404
15404
  let a;
15405
- if (o ? a = o(n, t) : a = Z.isURLSearchParams(n) ? n.toString() : new _d(n, t).toString(r), a) {
15405
+ if (o ? a = o(n, t) : a = Z.isURLSearchParams(n) ? n.toString() : new Sd(n, t).toString(r), a) {
15406
15406
  const i = e.indexOf("#");
15407
15407
  i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + a;
15408
15408
  }
@@ -15466,7 +15466,7 @@ const Im = {
15466
15466
  silentJSONParsing: !0,
15467
15467
  forcedJSONParsing: !0,
15468
15468
  clarifyTimeoutError: !1
15469
- }, B3 = typeof URLSearchParams < "u" ? URLSearchParams : _d, O3 = typeof FormData < "u" ? FormData : null, N3 = typeof Blob < "u" ? Blob : null, L3 = {
15469
+ }, B3 = typeof URLSearchParams < "u" ? URLSearchParams : Sd, O3 = typeof FormData < "u" ? FormData : null, N3 = typeof Blob < "u" ? Blob : null, L3 = {
15470
15470
  isBrowser: !0,
15471
15471
  classes: {
15472
15472
  URLSearchParams: B3,
@@ -15474,13 +15474,13 @@ const Im = {
15474
15474
  Blob: N3
15475
15475
  },
15476
15476
  protocols: ["http", "https", "file", "blob", "url", "data"]
15477
- }, Sd = typeof window < "u" && typeof document < "u", Cc = typeof navigator == "object" && navigator || void 0, q3 = Sd && (!Cc || ["ReactNative", "NativeScript", "NS"].indexOf(Cc.product) < 0), V3 = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
15478
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", z3 = Sd && window.location.href || "http://localhost", $3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15477
+ }, Ed = typeof window < "u" && typeof document < "u", kc = typeof navigator == "object" && navigator || void 0, q3 = Ed && (!kc || ["ReactNative", "NativeScript", "NS"].indexOf(kc.product) < 0), V3 = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
15478
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", z3 = Ed && window.location.href || "http://localhost", $3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15479
15479
  __proto__: null,
15480
- hasBrowserEnv: Sd,
15480
+ hasBrowserEnv: Ed,
15481
15481
  hasStandardBrowserEnv: q3,
15482
15482
  hasStandardBrowserWebWorkerEnv: V3,
15483
- navigator: Cc,
15483
+ navigator: kc,
15484
15484
  origin: z3
15485
15485
  }, Symbol.toStringTag, { value: "Module" })), Rn = {
15486
15486
  ...$3,
@@ -15640,7 +15640,7 @@ function Y3(e) {
15640
15640
  return n;
15641
15641
  }
15642
15642
  const X3 = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
15643
- function cl(e, n, t, r, o) {
15643
+ function dl(e, n, t, r, o) {
15644
15644
  if (Z.isFunction(r))
15645
15645
  return r.call(this, n, t);
15646
15646
  if (o && (n = t), !!Z.isString(n)) {
@@ -15714,7 +15714,7 @@ let Vn = class {
15714
15714
  has(n, t) {
15715
15715
  if (n = Xa(n), n) {
15716
15716
  const r = Z.findKey(this, n);
15717
- return !!(r && this[r] !== void 0 && (!t || cl(this, this[r], r, t)));
15717
+ return !!(r && this[r] !== void 0 && (!t || dl(this, this[r], r, t)));
15718
15718
  }
15719
15719
  return !1;
15720
15720
  }
@@ -15724,7 +15724,7 @@ let Vn = class {
15724
15724
  function a(i) {
15725
15725
  if (i = Xa(i), i) {
15726
15726
  const s = Z.findKey(r, i);
15727
- s && (!t || cl(r, r[s], s, t)) && (delete r[s], o = !0);
15727
+ s && (!t || dl(r, r[s], s, t)) && (delete r[s], o = !0);
15728
15728
  }
15729
15729
  }
15730
15730
  return Z.isArray(n) ? n.forEach(a) : a(n), o;
@@ -15734,7 +15734,7 @@ let Vn = class {
15734
15734
  let r = t.length, o = !1;
15735
15735
  for (; r--; ) {
15736
15736
  const a = t[r];
15737
- (!n || cl(this, this[a], a, n, !0)) && (delete this[a], o = !0);
15737
+ (!n || dl(this, this[a], a, n, !0)) && (delete this[a], o = !0);
15738
15738
  }
15739
15739
  return o;
15740
15740
  }
@@ -15801,7 +15801,7 @@ Z.reduceDescriptors(Vn.prototype, ({ value: e }, n) => {
15801
15801
  };
15802
15802
  });
15803
15803
  Z.freezeMethods(Vn);
15804
- function dl(e, n) {
15804
+ function fl(e, n) {
15805
15805
  const t = this || Ai, r = n || t, o = Vn.from(r.headers);
15806
15806
  let a = r.data;
15807
15807
  return Z.forEach(e, function(s) {
@@ -16308,14 +16308,14 @@ const Fm = (e) => {
16308
16308
  return l;
16309
16309
  };
16310
16310
  Pm();
16311
- const Ed = {
16311
+ const Rd = {
16312
16312
  http: D3,
16313
16313
  xhr: sS,
16314
16314
  fetch: {
16315
16315
  get: Pm
16316
16316
  }
16317
16317
  };
16318
- Z.forEach(Ed, (e, n) => {
16318
+ Z.forEach(Rd, (e, n) => {
16319
16319
  if (e) {
16320
16320
  try {
16321
16321
  Object.defineProperty(e, "name", { value: n });
@@ -16333,7 +16333,7 @@ function mS(e, n) {
16333
16333
  for (let i = 0; i < t; i++) {
16334
16334
  r = e[i];
16335
16335
  let s;
16336
- if (o = r, !vS(r) && (o = Ed[(s = String(r)).toLowerCase()], o === void 0))
16336
+ if (o = r, !vS(r) && (o = Rd[(s = String(r)).toLowerCase()], o === void 0))
16337
16337
  throw new ut(`Unknown adapter '${s}'`);
16338
16338
  if (o && (Z.isFunction(o) || (o = o.get(n))))
16339
16339
  break;
@@ -16363,24 +16363,24 @@ const Bm = {
16363
16363
  * Exposes all known adapters
16364
16364
  * @type {Object<string, Function|Object>}
16365
16365
  */
16366
- adapters: Ed
16366
+ adapters: Rd
16367
16367
  };
16368
- function fl(e) {
16368
+ function hl(e) {
16369
16369
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
16370
16370
  throw new Wa(null, e);
16371
16371
  }
16372
16372
  function Kh(e) {
16373
- return fl(e), e.headers = Vn.from(e.headers), e.data = dl.call(
16373
+ return hl(e), e.headers = Vn.from(e.headers), e.data = fl.call(
16374
16374
  e,
16375
16375
  e.transformRequest
16376
16376
  ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Bm.getAdapter(e.adapter || Ai.adapter, e)(e).then(function(r) {
16377
- return fl(e), r.data = dl.call(
16377
+ return hl(e), r.data = fl.call(
16378
16378
  e,
16379
16379
  e.transformResponse,
16380
16380
  r
16381
16381
  ), r.headers = Vn.from(r.headers), r;
16382
16382
  }, function(r) {
16383
- return Am(r) || (fl(e), r && r.response && (r.response.data = dl.call(
16383
+ return Am(r) || (hl(e), r && r.response && (r.response.data = fl.call(
16384
16384
  e,
16385
16385
  e.transformResponse,
16386
16386
  r.response
@@ -16641,7 +16641,7 @@ function bS(e) {
16641
16641
  function wS(e) {
16642
16642
  return Z.isObject(e) && e.isAxiosError === !0;
16643
16643
  }
16644
- const kc = {
16644
+ const _c = {
16645
16645
  Continue: 100,
16646
16646
  SwitchingProtocols: 101,
16647
16647
  Processing: 102,
@@ -16712,8 +16712,8 @@ const kc = {
16712
16712
  SslHandshakeFailed: 525,
16713
16713
  InvalidSslCertificate: 526
16714
16714
  };
16715
- Object.entries(kc).forEach(([e, n]) => {
16716
- kc[n] = e;
16715
+ Object.entries(_c).forEach(([e, n]) => {
16716
+ _c[n] = e;
16717
16717
  });
16718
16718
  function Lm(e) {
16719
16719
  const n = new Bo(e), t = vm(Bo.prototype.request, n);
@@ -16739,7 +16739,7 @@ Jt.mergeConfig = Vo;
16739
16739
  Jt.AxiosHeaders = Vn;
16740
16740
  Jt.formToJSON = (e) => Tm(Z.isHTMLForm(e) ? new FormData(e) : e);
16741
16741
  Jt.getAdapter = Bm.getAdapter;
16742
- Jt.HttpStatusCode = kc;
16742
+ Jt.HttpStatusCode = _c;
16743
16743
  Jt.default = Jt;
16744
16744
  const {
16745
16745
  Axios: ND,
@@ -16761,7 +16761,8 @@ const {
16761
16761
  } = Jt;
16762
16762
  class kn {
16763
16763
  constructor() {
16764
- Ff(this, "axiosInstance");
16764
+ Uu(this, "axiosInstance");
16765
+ Uu(this, "isRefresh", !1);
16765
16766
  this.axiosInstance = Jt.create({
16766
16767
  baseURL: process.env.VUE_APP_BACKEND,
16767
16768
  headers: {
@@ -16777,9 +16778,14 @@ class kn {
16777
16778
  (n) => Promise.reject(n)
16778
16779
  ), this.axiosInstance.interceptors.response.use(
16779
16780
  (n) => n.data,
16780
- (n) => {
16781
+ async (n) => {
16781
16782
  var t, r;
16782
- return (((t = n.response) == null ? void 0 : t.status) === 401 || ((r = n.response) == null ? void 0 : r.status) === 403) && this.logout(), Promise.reject(n);
16783
+ return ((t = n.response) == null ? void 0 : t.status) === 401 || ((r = n.response) == null ? void 0 : r.status) === 403 ? this.getToken() && !this.isRefresh ? (this.isRefresh = !0, this.refresh().then((o) => {
16784
+ if (!(o != null && o.accessToken))
16785
+ return alert("logout"), console.log(o), this.logoutUser();
16786
+ if (o != null && o.accessToken)
16787
+ return console.log(o), alert("da"), !0;
16788
+ })) : this.logoutUser() : Promise.reject(n);
16783
16789
  }
16784
16790
  );
16785
16791
  }
@@ -16789,8 +16795,11 @@ class kn {
16789
16795
  removeToken() {
16790
16796
  localStorage.removeItem("token");
16791
16797
  }
16792
- logout() {
16793
- this.removeToken(), window.location.href = "/sign-in";
16798
+ refresh() {
16799
+ return this.post("/v2/auth/refresh", null);
16800
+ }
16801
+ logoutUser() {
16802
+ return this.post("/v2/logout", null), this.removeToken(), window.location.href = "/sign-in", {};
16794
16803
  }
16795
16804
  handleError(n) {
16796
16805
  n.response ? console.error("API Error:", n.response.status, n.response.data) : n.request ? console.error("No response received:", n.request) : console.error("Error during request setup:", n.message);
@@ -16850,9 +16859,9 @@ class xS extends kn {
16850
16859
  return t.append("projects[0]", n), t.append("filter[state]", "1"), await this.post(`/gantt/set-planned-date?${t.toString()}`, null);
16851
16860
  }
16852
16861
  }
16853
- let hl;
16862
+ let pl;
16854
16863
  function JD() {
16855
- return hl || (hl = new xS()), hl;
16864
+ return pl || (pl = new xS()), pl;
16856
16865
  }
16857
16866
  class CS extends kn {
16858
16867
  async fetchPieProjects(n) {
@@ -16940,9 +16949,9 @@ class CS extends kn {
16940
16949
  return await this.get("repairs/metrics/get_list_task_by_status?" + n);
16941
16950
  }
16942
16951
  }
16943
- let pl;
16952
+ let vl;
16944
16953
  function eM() {
16945
- return pl || (pl = new CS()), pl;
16954
+ return vl || (vl = new CS()), vl;
16946
16955
  }
16947
16956
  class kS extends kn {
16948
16957
  async fetchProjectById(n) {
@@ -17001,9 +17010,9 @@ class kS extends kn {
17001
17010
  return this.post(`/set/fake/projects/${n}`, t);
17002
17011
  }
17003
17012
  }
17004
- let vl;
17013
+ let ml;
17005
17014
  function tM() {
17006
- return vl || (vl = new kS()), vl;
17015
+ return ml || (ml = new kS()), ml;
17007
17016
  }
17008
17017
  class _S extends kn {
17009
17018
  fetchFilters(n) {
@@ -17072,9 +17081,9 @@ class _S extends kn {
17072
17081
  return this.get(`v3/repairs/${n}/personnel/intersection`);
17073
17082
  }
17074
17083
  }
17075
- let ml;
17084
+ let gl;
17076
17085
  function nM() {
17077
- return ml || (ml = new _S()), ml;
17086
+ return gl || (gl = new _S()), gl;
17078
17087
  }
17079
17088
  class SS extends kn {
17080
17089
  fetchTaskById(n) {
@@ -17165,9 +17174,9 @@ class SS extends kn {
17165
17174
  return this.post("/check_branch_before_close_task", { task_id: n });
17166
17175
  }
17167
17176
  }
17168
- let gl;
17177
+ let yl;
17169
17178
  function rM() {
17170
- return gl || (gl = new SS()), gl;
17179
+ return yl || (yl = new SS()), yl;
17171
17180
  }
17172
17181
  class ES extends kn {
17173
17182
  login(n, t) {
@@ -17176,12 +17185,6 @@ class ES extends kn {
17176
17185
  password: t
17177
17186
  });
17178
17187
  }
17179
- refresh(n, t) {
17180
- return this.post("/v2/auth/refresh", {
17181
- email: n,
17182
- password: t
17183
- });
17184
- }
17185
17188
  loginPhoto(n) {
17186
17189
  return this.post("/login/from_photo", { photo: n });
17187
17190
  }
@@ -17191,7 +17194,7 @@ class ES extends kn {
17191
17194
  });
17192
17195
  }
17193
17196
  logout() {
17194
- return this.post("/v2/logout", null);
17197
+ return this.logoutUser();
17195
17198
  }
17196
17199
  userInfo() {
17197
17200
  return this.get("/users/auth");
@@ -17206,9 +17209,9 @@ class ES extends kn {
17206
17209
  });
17207
17210
  }
17208
17211
  }
17209
- let yl;
17212
+ let bl;
17210
17213
  function oM() {
17211
- return yl || (yl = new ES()), yl;
17214
+ return bl || (bl = new ES()), bl;
17212
17215
  }
17213
17216
  class RS extends kn {
17214
17217
  uploadFile(n) {
@@ -17217,9 +17220,9 @@ class RS extends kn {
17217
17220
  });
17218
17221
  }
17219
17222
  }
17220
- let bl;
17223
+ let wl;
17221
17224
  function aM() {
17222
- return bl || (bl = new RS()), bl;
17225
+ return wl || (wl = new RS()), wl;
17223
17226
  }
17224
17227
  class IS extends kn {
17225
17228
  async startVideoAnalytics() {
@@ -17296,9 +17299,9 @@ class IS extends kn {
17296
17299
  return await this.post("alerts_callback_url", n);
17297
17300
  }
17298
17301
  }
17299
- let wl;
17302
+ let xl;
17300
17303
  function iM() {
17301
- return wl || (wl = new IS()), wl;
17304
+ return xl || (xl = new IS()), xl;
17302
17305
  }
17303
17306
  class TS extends kn {
17304
17307
  async editUser({ id: n, model: t }) {
@@ -17376,9 +17379,9 @@ class TS extends kn {
17376
17379
  return await this.post("users/check_user_before_archive", n);
17377
17380
  }
17378
17381
  }
17379
- let xl;
17382
+ let Cl;
17380
17383
  function sM() {
17381
- return xl || (xl = new TS()), xl;
17384
+ return Cl || (Cl = new TS()), Cl;
17382
17385
  }
17383
17386
  class AS extends kn {
17384
17387
  async fetchUserInstrumentsHistory(n, t) {
@@ -17418,9 +17421,9 @@ class AS extends kn {
17418
17421
  return await this.get("search/instruments", { params: n });
17419
17422
  }
17420
17423
  }
17421
- let Cl;
17424
+ let kl;
17422
17425
  function uM() {
17423
- return Cl || (Cl = new AS()), Cl;
17426
+ return kl || (kl = new AS()), kl;
17424
17427
  }
17425
17428
  class DS extends kn {
17426
17429
  fetchControlZones(n) {
@@ -17481,9 +17484,9 @@ class DS extends kn {
17481
17484
  return this.get("exposed_equipment_zones_history/list/export", { params: n, responseType: "blob" });
17482
17485
  }
17483
17486
  }
17484
- let kl;
17487
+ let _l;
17485
17488
  function lM() {
17486
- return kl || (kl = new DS()), kl;
17489
+ return _l || (_l = new DS()), _l;
17487
17490
  }
17488
17491
  class MS extends kn {
17489
17492
  fetchSearchUsers(n) {
@@ -17496,9 +17499,9 @@ class MS extends kn {
17496
17499
  return this.get("search/modules", { params: n });
17497
17500
  }
17498
17501
  }
17499
- let _l;
17502
+ let Sl;
17500
17503
  function cM() {
17501
- return _l || (_l = new MS()), _l;
17504
+ return Sl || (Sl = new MS()), Sl;
17502
17505
  }
17503
17506
  class FS extends kn {
17504
17507
  async detectModule(n) {
@@ -17514,9 +17517,9 @@ class FS extends kn {
17514
17517
  return this.delete(`admin/modules/${n}`);
17515
17518
  }
17516
17519
  }
17517
- let Sl;
17520
+ let El;
17518
17521
  function dM() {
17519
- return Sl || (Sl = new FS()), Sl;
17522
+ return El || (El = new FS()), El;
17520
17523
  }
17521
17524
  class PS extends kn {
17522
17525
  async uploadComment(n) {
@@ -17529,9 +17532,9 @@ class PS extends kn {
17529
17532
  return await this.put(`comments/${n}`, t);
17530
17533
  }
17531
17534
  }
17532
- let El;
17535
+ let Rl;
17533
17536
  function fM() {
17534
- return El || (El = new PS()), El;
17537
+ return Rl || (Rl = new PS()), Rl;
17535
17538
  }
17536
17539
  class BS extends kn {
17537
17540
  fetchEquipment(n) {
@@ -17547,9 +17550,9 @@ class BS extends kn {
17547
17550
  return this.delete(`repairs/equipment/${n}`);
17548
17551
  }
17549
17552
  }
17550
- let Rl;
17553
+ let Il;
17551
17554
  function hM() {
17552
- return Rl || (Rl = new BS()), Rl;
17555
+ return Il || (Il = new BS()), Il;
17553
17556
  }
17554
17557
  class OS extends kn {
17555
17558
  fetchBrigades(n) {
@@ -17568,9 +17571,9 @@ class OS extends kn {
17568
17571
  return this.delete(`/brigades/${n}`);
17569
17572
  }
17570
17573
  }
17571
- let Il;
17574
+ let Tl;
17572
17575
  function pM() {
17573
- return Il || (Il = new OS()), Il;
17576
+ return Tl || (Tl = new OS()), Tl;
17574
17577
  }
17575
17578
  class NS extends kn {
17576
17579
  fetchScheduleConfig() {
@@ -17612,9 +17615,9 @@ class NS extends kn {
17612
17615
  return this.patch(`schedule/${n}/delete_brigades`, { brigade_ids: t });
17613
17616
  }
17614
17617
  }
17615
- let Tl;
17618
+ let Al;
17616
17619
  function vM() {
17617
- return Tl || (Tl = new NS()), Tl;
17620
+ return Al || (Al = new NS()), Al;
17618
17621
  }
17619
17622
  /**
17620
17623
  * @license
@@ -17783,13 +17786,13 @@ function qS(e, n, t) {
17783
17786
  function ie() {
17784
17787
  return Vm;
17785
17788
  }
17786
- var Vm = null, Os = /* @__PURE__ */ new Map(), _c = /* @__PURE__ */ new Map();
17789
+ var Vm = null, Os = /* @__PURE__ */ new Map(), Sc = /* @__PURE__ */ new Map();
17787
17790
  function zm(e, n) {
17788
17791
  var t = Wm(e, n);
17789
17792
  return Os.get(t);
17790
17793
  }
17791
17794
  function VS(e) {
17792
- return _c.get(e);
17795
+ return Sc.get(e);
17793
17796
  }
17794
17797
  function Xh(e) {
17795
17798
  for (var n = Os.entries(), t = []; ; ) {
@@ -17807,12 +17810,12 @@ function $m(e) {
17807
17810
  }
17808
17811
  function zS(e) {
17809
17812
  var n = e.kernelName;
17810
- _c.has(n) && console.warn("Overriding the gradient for '" + n + "'"), _c.set(n, e);
17813
+ Sc.has(n) && console.warn("Overriding the gradient for '" + n + "'"), Sc.set(n, e);
17811
17814
  }
17812
17815
  function Wm(e, n) {
17813
17816
  return n + "_" + e;
17814
17817
  }
17815
- function Sc(e, n, t) {
17818
+ function Ec(e, n, t) {
17816
17819
  return Math.max(e, Math.min(n, t));
17817
17820
  }
17818
17821
  function Hm(e) {
@@ -17861,7 +17864,7 @@ function WS(e) {
17861
17864
  var n = Math.exp(2 * e);
17862
17865
  return (n - 1) / (n + 1);
17863
17866
  }
17864
- function Ec(e) {
17867
+ function Rc(e) {
17865
17868
  var n = Math.ceil(Math.sqrt(e));
17866
17869
  return [n, Math.ceil(e / n)];
17867
17870
  }
@@ -17973,7 +17976,7 @@ function KS(e) {
17973
17976
  return n += t.length;
17974
17977
  }), n;
17975
17978
  }
17976
- function Rd(e) {
17979
+ function Id(e) {
17977
17980
  return typeof e == "string" || e instanceof String;
17978
17981
  }
17979
17982
  function YS(e) {
@@ -17983,12 +17986,12 @@ function XS(e) {
17983
17986
  return typeof e == "number";
17984
17987
  }
17985
17988
  function Di(e) {
17986
- return Array.isArray(e) ? Di(e[0]) : e instanceof Float32Array ? "float32" : e instanceof Int32Array || e instanceof Uint8Array ? "int32" : XS(e) ? "float32" : Rd(e) ? "string" : YS(e) ? "bool" : "float32";
17989
+ return Array.isArray(e) ? Di(e[0]) : e instanceof Float32Array ? "float32" : e instanceof Int32Array || e instanceof Uint8Array ? "int32" : XS(e) ? "float32" : Id(e) ? "string" : YS(e) ? "bool" : "float32";
17987
17990
  }
17988
- function Rc(e) {
17991
+ function Ic(e) {
17989
17992
  return !!(e && e.constructor && e.call && e.apply);
17990
17993
  }
17991
- function Ic(e, n) {
17994
+ function Tc(e, n) {
17992
17995
  for (var t = n; t < e; ++t) if (e % t == 0) return t;
17993
17996
  return e;
17994
17997
  }
@@ -18105,7 +18108,7 @@ var JS = function() {
18105
18108
  }
18106
18109
  console.log("%c" + u + " %c" + s + " %c" + l + "D " + d + " %c" + c + " %c" + f + " %c" + i, "font-weight:bold", "color:red", "color:blue", "color: orange", "color: green", "color: steelblue");
18107
18110
  }, e;
18108
- }(), ep = 20, Qa = 3, Al = 7;
18111
+ }(), ep = 20, Qa = 3, Dl = 7;
18109
18112
  function t4(e, n, t, r) {
18110
18113
  var o = Rr(n), a = function(l, c, d, f) {
18111
18114
  var h = Be(c), p = f[f.length - 1], m = new Array(p).fill(0), v = c.length, y = d === "complex64" ? Ja(l) : l;
@@ -18156,7 +18159,7 @@ function t4(e, n, t, r) {
18156
18159
  `);
18157
18160
  }
18158
18161
  function Za(e, n, t) {
18159
- return ya(Array.isArray(e) ? parseFloat(e[0].toFixed(Al)) + " + " + parseFloat(e[1].toFixed(Al)) + "j" : Rd(e) ? "'" + e + "'" : t === "bool" ? Ym(e) : parseFloat(e.toFixed(Al)).toString(), n);
18162
+ return ya(Array.isArray(e) ? parseFloat(e[0].toFixed(Dl)) + " + " + parseFloat(e[1].toFixed(Dl)) + "j" : Id(e) ? "'" + e + "'" : t === "bool" ? Ym(e) : parseFloat(e.toFixed(Dl)).toString(), n);
18160
18163
  }
18161
18164
  function Ym(e) {
18162
18165
  return e === 0 ? "false" : "true";
@@ -18604,7 +18607,7 @@ var hi = function() {
18604
18607
  Object.defineProperty(Ht, Symbol.hasInstance, { value: function(e) {
18605
18608
  return !!e && e.dataId != null && e.shape != null && e.dtype != null;
18606
18609
  } });
18607
- var tp, Tc, Ac, Dc, Mc, Ma = function(e) {
18610
+ var tp, Ac, Dc, Mc, Fc, Ma = function(e) {
18608
18611
  function n(t, r, o, a) {
18609
18612
  var i = e.call(this, t.shape, t.dtype, t.dataId, a) || this;
18610
18613
  return i.trainable = r, i.name = o, i;
@@ -18623,14 +18626,14 @@ Object.defineProperty(Ma, Symbol.hasInstance, { value: function(e) {
18623
18626
  e.R0 = "R0", e.R1 = "R1", e.R2 = "R2", e.R3 = "R3", e.R4 = "R4", e.R5 = "R5", e.R6 = "R6";
18624
18627
  }(tp || (tp = {})), function(e) {
18625
18628
  e.float32 = "float32", e.int32 = "int32", e.bool = "int32", e.complex64 = "complex64";
18626
- }(Tc || (Tc = {})), function(e) {
18627
- e.float32 = "float32", e.int32 = "int32", e.bool = "bool", e.complex64 = "complex64";
18628
18629
  }(Ac || (Ac = {})), function(e) {
18629
- e.float32 = "float32", e.int32 = "float32", e.bool = "float32", e.complex64 = "complex64";
18630
+ e.float32 = "float32", e.int32 = "int32", e.bool = "bool", e.complex64 = "complex64";
18630
18631
  }(Dc || (Dc = {})), function(e) {
18632
+ e.float32 = "float32", e.int32 = "float32", e.bool = "float32", e.complex64 = "complex64";
18633
+ }(Mc || (Mc = {})), function(e) {
18631
18634
  e.float32 = "complex64", e.int32 = "complex64", e.bool = "complex64", e.complex64 = "complex64";
18632
- }(Mc || (Mc = {}));
18633
- var n4 = { float32: Dc, int32: Tc, bool: Ac, complex64: Mc };
18635
+ }(Fc || (Fc = {}));
18636
+ var n4 = { float32: Mc, int32: Ac, bool: Dc, complex64: Fc };
18634
18637
  function bn(e, n) {
18635
18638
  if (e === "string" || n === "string") {
18636
18639
  if (e === "string" && n === "string") return "string";
@@ -18638,7 +18641,7 @@ function bn(e, n) {
18638
18641
  }
18639
18642
  return n4[e][n];
18640
18643
  }
18641
- function Dl(e) {
18644
+ function Ml(e) {
18642
18645
  return bn(e, "int32");
18643
18646
  }
18644
18647
  function jt(e, n) {
@@ -18666,7 +18669,7 @@ function Qm(e) {
18666
18669
  }
18667
18670
  }(e, n, /* @__PURE__ */ new Set()), n;
18668
18671
  }
18669
- var Ml, np = function() {
18672
+ var Fl, np = function() {
18670
18673
  function e() {
18671
18674
  this.registeredVariables = {}, this.nextTapeNodeId = 0, this.numBytes = 0, this.numTensors = 0, this.numStringTensors = 0, this.numDataBuffers = 0, this.gradientDepth = 0, this.kernelDepth = 0, this.scopeStack = [], this.numDataMovesStack = [], this.nextScopeId = 0, this.tensorInfo = /* @__PURE__ */ new WeakMap(), this.profiling = !1, this.activeProfile = { newBytes: 0, newTensors: 0, peakBytes: 0, kernels: [], result: null };
18672
18675
  }
@@ -18876,7 +18879,7 @@ var Ml, np = function() {
18876
18879
  if (n == null) throw new Error("Values passed to engine.makeTensor() are null");
18877
18880
  r = r || "float32", o = o || this.backend;
18878
18881
  var a = n;
18879
- r === "string" && Rd(n[0]) && (a = n.map(function(c) {
18882
+ r === "string" && Id(n[0]) && (a = n.map(function(c) {
18880
18883
  return QS(c);
18881
18884
  }));
18882
18885
  var i = o.write(a, t, r), s = new Ht(t, r, i, this.nextTensorId());
@@ -19049,7 +19052,7 @@ var Ml, np = function() {
19049
19052
  });
19050
19053
  }, e.prototype.customGrad = function(n) {
19051
19054
  var t = this;
19052
- return B(Rc(n), function() {
19055
+ return B(Ic(n), function() {
19053
19056
  return "The f passed in customGrad(f) must be a function.";
19054
19057
  }), function() {
19055
19058
  for (var r, o = [], a = 0; a < arguments.length; a++) o[a] = arguments[a];
@@ -19064,7 +19067,7 @@ var Ml, np = function() {
19064
19067
  }), t.runKernelFunc(function(s, u) {
19065
19068
  return B((r = n.apply(void 0, o.concat([u]))).value instanceof Ht, function() {
19066
19069
  return "The function f passed in customGrad(f) must return an object where `obj.value` is a tensor";
19067
- }), B(Rc(r.gradFunc), function() {
19070
+ }), B(Ic(r.gradFunc), function() {
19068
19071
  return "The function f passed in customGrad(f) must return an object where `obj.gradFunc` is a function.";
19069
19072
  }), r.value;
19070
19073
  }, i, function(s, u) {
@@ -19110,7 +19113,7 @@ var Ml, np = function() {
19110
19113
  }, e.nextTensorId = 0, e.nextVariableId = 0, e;
19111
19114
  }(), j = function() {
19112
19115
  var e = function() {
19113
- if (Ml == null) {
19116
+ if (Fl == null) {
19114
19117
  var t = void 0;
19115
19118
  if (typeof window < "u") t = window;
19116
19119
  else if (typeof global < "u") t = global;
@@ -19119,9 +19122,9 @@ var Ml, np = function() {
19119
19122
  if (typeof self > "u") throw new Error("Could not find a global object");
19120
19123
  t = self;
19121
19124
  }
19122
- Ml = t;
19125
+ Fl = t;
19123
19126
  }
19124
- return Ml;
19127
+ return Fl;
19125
19128
  }();
19126
19129
  if (e._tfengine == null) {
19127
19130
  var n = new LS(e);
@@ -19156,7 +19159,7 @@ Nr.registerFlag("DEBUG", function() {
19156
19159
  }), Nr.registerFlag("IS_TEST", function() {
19157
19160
  return !1;
19158
19161
  });
19159
- var pi, Yn, Un, ko = {}, Fl = { alpha: !1, antialias: !1, premultipliedAlpha: !1, preserveDrawingBuffer: !1, depth: !1, stencil: !1, failIfMajorPerformanceCaveat: !0 };
19162
+ var pi, Yn, Un, ko = {}, Pl = { alpha: !1, antialias: !1, premultipliedAlpha: !1, preserveDrawingBuffer: !1, depth: !1, stencil: !1, failIfMajorPerformanceCaveat: !0 };
19160
19163
  function a4(e, n) {
19161
19164
  ko[e] = n;
19162
19165
  }
@@ -19170,7 +19173,7 @@ function Mr(e) {
19170
19173
  }(t);
19171
19174
  return r.addEventListener("webglcontextlost", function(o) {
19172
19175
  o.preventDefault(), delete ko[t];
19173
- }, !1), t === 1 ? r.getContext("webgl", Fl) || r.getContext("experimental-webgl", Fl) : r.getContext("webgl2", Fl);
19176
+ }, !1), t === 1 ? r.getContext("webgl", Pl) || r.getContext("experimental-webgl", Pl) : r.getContext("webgl2", Pl);
19174
19177
  }(e));
19175
19178
  var n = ko[e];
19176
19179
  return n.isContextLost() ? (delete ko[e], Mr(e)) : (n.disable(n.DEPTH_TEST), n.disable(n.STENCIL_TEST), n.disable(n.BLEND), n.disable(n.DITHER), n.disable(n.POLYGON_OFFSET_FILL), n.disable(n.SAMPLE_COVERAGE), n.enable(n.SCISSOR_TEST), n.enable(n.CULL_FACE), n.cullFace(n.BACK), ko[e]);
@@ -19180,12 +19183,12 @@ function _u(e, n) {
19180
19183
  }
19181
19184
  function oi(e) {
19182
19185
  var n = Be(e);
19183
- return Ec(Math.ceil(n / 4));
19186
+ return Rc(Math.ceil(n / 4));
19184
19187
  }
19185
19188
  function Fi(e, n) {
19186
19189
  return [Math.max(1, Math.ceil(n / 2)), Math.max(1, Math.ceil(e / 2))];
19187
19190
  }
19188
- function Id(e, n) {
19191
+ function Td(e, n) {
19189
19192
  var t, r, o, a, i, s, u, l, c, d = e;
19190
19193
  return ie().getNumber("WEBGL_VERSION") === 2 ? (t = d.R32F, r = d.R16F, o = d.RGBA16F, a = d.RGBA32F, i = d.RED, s = 4, u = 1, l = d.HALF_FLOAT, c = d.FLOAT) : (t = e.RGBA, r = e.RGBA, o = e.RGBA, a = d.RGBA, i = e.RGBA, s = 4, u = 4, l = n != null ? n.HALF_FLOAT_OES : null, c = e.FLOAT), { internalFormatFloat: t, internalFormatHalfFloat: r, internalFormatPackedHalfFloat: o, internalFormatPackedFloat: a, textureFormatFloat: i, downloadTextureFormat: e.RGBA, downloadUnpackNumChannels: s, defaultNumChannels: u, textureTypeHalfFloat: l, textureTypeFloat: c };
19191
19194
  }
@@ -19266,7 +19269,7 @@ function d4(e, n, t) {
19266
19269
  }(t, e.getShaderInfoLog(r)), new Error("Failed to compile fragment shader.");
19267
19270
  return r;
19268
19271
  }
19269
- var Pl, Bl, f4 = /ERROR: [0-9]+:([0-9]+):/g;
19272
+ var Bl, Ol, f4 = /ERROR: [0-9]+:([0-9]+):/g;
19270
19273
  function h4(e, n) {
19271
19274
  return Ur(e, n, function() {
19272
19275
  return e.createProgram();
@@ -19277,7 +19280,7 @@ function p4(e, n, t) {
19277
19280
  return e.linkProgram(t);
19278
19281
  }), e.getProgramParameter(t, e.LINK_STATUS) === !1) throw console.log(e.getProgramInfoLog(t)), new Error("Failed to link vertex and fragment shaders.");
19279
19282
  }
19280
- function Ol(e, n, t) {
19283
+ function Nl(e, n, t) {
19281
19284
  if (Ne(e, n, function() {
19282
19285
  return e.validateProgram(t);
19283
19286
  }), e.getProgramParameter(t, e.VALIDATE_STATUS) === !1) throw console.log(e.getProgramInfoLog(t)), new Error("Shader program validation failed.");
@@ -19353,7 +19356,7 @@ function k4(e, n, t, r, o, a) {
19353
19356
  return e.uniform1i(o, a);
19354
19357
  });
19355
19358
  }
19356
- function Nl(e, n, t, r) {
19359
+ function Ll(e, n, t, r) {
19357
19360
  Ne(e, n, function() {
19358
19361
  return e.bindFramebuffer(e.FRAMEBUFFER, r);
19359
19362
  }), Ne(e, n, function() {
@@ -19403,7 +19406,7 @@ function Vs(e) {
19403
19406
  if (e.length === 0) throw Error("Cannot get rows and columns of an empty shape array.");
19404
19407
  return [e.length > 1 ? e[e.length - 2] : 1, e[e.length - 1]];
19405
19408
  }
19406
- function Ll(e) {
19409
+ function ql(e) {
19407
19410
  var n = [1, 1, 1];
19408
19411
  return e.length === 0 || e.length === 1 && e[0] === 1 || (n = [qs(e)].concat(Vs(e))), n;
19409
19412
  }
@@ -19426,11 +19429,11 @@ function E4(e, n) {
19426
19429
  if (e.length === 4 && e[0] <= r && e[1] * e[2] * e[3] <= r) return [e[0], e[1] * e[2] * e[3]];
19427
19430
  if (n) {
19428
19431
  var i = qs(e), s = 2, u = 2;
19429
- return e.length && (s = (t = Vs(e))[0], u = t[1]), Ec(a = i * (s / 2) * (u / 2)).map(function(l) {
19432
+ return e.length && (s = (t = Vs(e))[0], u = t[1]), Rc(a = i * (s / 2) * (u / 2)).map(function(l) {
19430
19433
  return 2 * l;
19431
19434
  });
19432
19435
  }
19433
- return Ec(a);
19436
+ return Rc(a);
19434
19437
  }
19435
19438
  function Ji(e) {
19436
19439
  return e % 2 == 0;
@@ -19444,18 +19447,18 @@ function es(e, n) {
19444
19447
  return e[1] === n[1] && Ji(e[0]) && Ji(n[0]);
19445
19448
  }
19446
19449
  function R4(e) {
19447
- if (Pl == null) {
19450
+ if (Bl == null) {
19448
19451
  var n = Mr(e);
19449
- Pl = n.getParameter(n.MAX_TEXTURE_SIZE);
19452
+ Bl = n.getParameter(n.MAX_TEXTURE_SIZE);
19450
19453
  }
19451
- return Pl;
19454
+ return Bl;
19452
19455
  }
19453
19456
  function I4(e) {
19454
- if (Bl == null) {
19457
+ if (Ol == null) {
19455
19458
  var n = Mr(e);
19456
- Bl = n.getParameter(n.MAX_TEXTURE_IMAGE_UNITS);
19459
+ Ol = n.getParameter(n.MAX_TEXTURE_IMAGE_UNITS);
19457
19460
  }
19458
- return Math.min(16, Bl);
19461
+ return Math.min(16, Ol);
19459
19462
  }
19460
19463
  function T4(e) {
19461
19464
  if (e === 0) return 0;
@@ -19479,17 +19482,17 @@ function A4(e) {
19479
19482
  if (e === 1) {
19480
19483
  if (!ar(n, "OES_texture_float")) return !1;
19481
19484
  } else if (!ar(n, "EXT_color_buffer_float")) return !1;
19482
- return Fc(n);
19485
+ return Pc(n);
19483
19486
  }
19484
19487
  function D4(e) {
19485
19488
  if (e === 0) return !1;
19486
19489
  var n = Mr(e);
19487
19490
  if (e !== 1) {
19488
- if (ar(n, "EXT_color_buffer_float")) return Fc(n);
19491
+ if (ar(n, "EXT_color_buffer_float")) return Pc(n);
19489
19492
  if (ar(n, "EXT_color_buffer_half_float")) {
19490
19493
  var t = n.getExtension("EXT_color_buffer_half_float");
19491
19494
  return function(r, o) {
19492
- var a = Id(r, o), i = r.createTexture();
19495
+ var a = Td(r, o), i = r.createTexture();
19493
19496
  r.bindTexture(r.TEXTURE_2D, i), r.texImage2D(r.TEXTURE_2D, 0, a.internalFormatHalfFloat, 1, 1, 0, a.textureFormatFloat, a.textureTypeHalfFloat, null);
19494
19497
  var s = r.createFramebuffer();
19495
19498
  r.bindFramebuffer(r.FRAMEBUFFER, s), r.framebufferTexture2D(r.FRAMEBUFFER, r.COLOR_ATTACHMENT0, r.TEXTURE_2D, i, 0);
@@ -19499,10 +19502,10 @@ function D4(e) {
19499
19502
  }
19500
19503
  return !1;
19501
19504
  }
19502
- return !!ar(n, "OES_texture_float") && !!ar(n, "WEBGL_color_buffer_float") && Fc(n);
19505
+ return !!ar(n, "OES_texture_float") && !!ar(n, "WEBGL_color_buffer_float") && Pc(n);
19503
19506
  }
19504
- function Fc(e) {
19505
- var n = Id(e), t = e.createTexture();
19507
+ function Pc(e) {
19508
+ var n = Td(e), t = e.createTexture();
19506
19509
  e.bindTexture(e.TEXTURE_2D, t), e.texImage2D(e.TEXTURE_2D, 0, n.internalFormatFloat, 1, 1, 0, n.textureFormatFloat, n.textureTypeFloat, null);
19507
19510
  var r = e.createFramebuffer();
19508
19511
  e.bindFramebuffer(e.FRAMEBUFFER, r), e.framebufferTexture2D(e.FRAMEBUFFER, e.COLOR_ATTACHMENT0, e.TEXTURE_2D, t, 0);
@@ -19600,7 +19603,7 @@ function Fr(e, n) {
19600
19603
  return t.push(o);
19601
19604
  }), t;
19602
19605
  }
19603
- function Td(e) {
19606
+ function Ad(e) {
19604
19607
  return e.map(function(n, t) {
19605
19608
  return [t, n];
19606
19609
  }).sort(function(n, t) {
@@ -19758,7 +19761,7 @@ function uo(e, n, t) {
19758
19761
  if (r.length === 1 && n == null) throw new Error("tensor2d() requires shape to be provided when `values` are a flat/TypedArray");
19759
19762
  return mo(e, n, r, t);
19760
19763
  }
19761
- function Ad(e, n, t) {
19764
+ function Dd(e, n, t) {
19762
19765
  if (Ha(e), n != null && n.length !== 3) throw new Error("tensor3d() requires shape to have three numbers");
19763
19766
  var r = vo(e, t);
19764
19767
  if (r.length !== 3 && r.length !== 1) throw new Error("tensor3d() requires values to be number[][][] or flat/TypedArray");
@@ -19873,7 +19876,7 @@ var tg = $({ onesLike_: function(e) {
19873
19876
  var u = o.map(function(l) {
19874
19877
  return l[n];
19875
19878
  });
19876
- return Dd(s, u, n).map(function(l) {
19879
+ return Md(s, u, n).map(function(l) {
19877
19880
  return function() {
19878
19881
  return l;
19879
19882
  };
@@ -19887,7 +19890,7 @@ var tg = $({ onesLike_: function(e) {
19887
19890
  return on(e, n);
19888
19891
  } }), W4 = $({ concat4d_: function(e, n) {
19889
19892
  return on(e, n);
19890
- } }), Dd = $({ split_: function(e, n, t) {
19893
+ } }), Md = $({ split_: function(e, n, t) {
19891
19894
  t === void 0 && (t = 0);
19892
19895
  var r, o = M(e, "x", "split");
19893
19896
  return t = ln(t, o.shape)[0], typeof n == "number" ? (B(o.shape[t] % n == 0, function() {
@@ -20153,7 +20156,7 @@ var H4 = Ho(function(e) {
20153
20156
  })([], Math);
20154
20157
  });
20155
20158
  _o.alea = H4, _o.xor128 = U4, _o.xorwow = j4, _o.xorshift7 = G4, _o.xor4096 = K4, _o.tychei = Y4;
20156
- var Su = _o.alea, Md = function() {
20159
+ var Su = _o.alea, Fd = function() {
20157
20160
  function e(n, t, r, o, a) {
20158
20161
  this.mean = n, this.stdDev = t, this.dtype = r, this.nextVal = NaN, this.truncated = o, this.truncated && (this.upper = this.mean + 2 * this.stdDev, this.lower = this.mean - 2 * this.stdDev);
20159
20162
  var i = a || Math.random();
@@ -20182,7 +20185,7 @@ var Su = _o.alea, Md = function() {
20182
20185
  function e(n, t, r, o) {
20183
20186
  this.alpha = n, this.beta = 1 / t, this.dtype = r;
20184
20187
  var a = o || Math.random();
20185
- this.randu = Su(a.toString()), this.randn = new Md(0, 1, r, !1, this.randu()), this.d = n < 1 ? n + 2 / 3 : n - 1 / 3, this.c = 1 / Math.sqrt(9 * this.d);
20188
+ this.randu = Su(a.toString()), this.randn = new Fd(0, 1, r, !1, this.randu()), this.d = n < 1 ? n + 2 / 3 : n - 1 / 3, this.c = 1 / Math.sqrt(9 * this.d);
20186
20189
  }
20187
20190
  return e.prototype.nextValue = function() {
20188
20191
  for (var n, t, r, o, a, i; ; ) {
@@ -20334,7 +20337,7 @@ var ng = $({ batchToSpaceND_: function(e, n, t) {
20334
20337
  return l.multinomial(s, r, n, t);
20335
20338
  }, { logits2D: s });
20336
20339
  return i === 1 ? u.as1D() : u;
20337
- } }), Pc = $({ oneHot_: function(e, n, t, r) {
20340
+ } }), Bc = $({ oneHot_: function(e, n, t, r) {
20338
20341
  if (t === void 0 && (t = 1), r === void 0 && (r = 0), n < 2) throw new Error("Error in oneHot: depth must be >=2, but it is " + n);
20339
20342
  var o = M(e, "indices", "oneHot", "int32"), a = o.shape.concat([n]);
20340
20343
  return o = o.flatten(), j.runKernelFunc(function(i) {
@@ -20387,7 +20390,7 @@ var ng = $({ batchToSpaceND_: function(e, n, t) {
20387
20390
  return j.makeTensor(o, e, t);
20388
20391
  } }), cE = $({ randomNormal_: function(e, n, t, r, o) {
20389
20392
  if (n === void 0 && (n = 0), t === void 0 && (t = 1), r != null && r === "bool") throw new Error("Unsupported data type " + r);
20390
- for (var a = new Md(n, t, r, !1, o), i = ot(e, r), s = 0; s < i.values.length; s++) i.values[s] = a.nextValue();
20393
+ for (var a = new Fd(n, t, r, !1, o), i = ot(e, r), s = 0; s < i.values.length; s++) i.values[s] = a.nextValue();
20391
20394
  return i.toTensor();
20392
20395
  } }), dE = $({ randomGamma_: function(e, n, t, r, o) {
20393
20396
  if (t === void 0 && (t = 1), r === void 0 && (r = "float32"), t == null && (t = 1), r == null && (r = "float32"), r !== "float32" && r !== "int32") throw new Error("Unsupported data type " + r);
@@ -20475,7 +20478,7 @@ var ng = $({ batchToSpaceND_: function(e, n, t) {
20475
20478
  }, "Tile", o, r);
20476
20479
  } }), fE = $({ truncatedNormal_: function(e, n, t, r, o) {
20477
20480
  if (n === void 0 && (n = 0), t === void 0 && (t = 1), r != null && r === "bool") throw new Error("Unsupported data type " + r);
20478
- for (var a = new Md(n, t, r, !0, o), i = ot(e, r), s = 0; s < i.values.length; s++) i.values[s] = a.nextValue();
20481
+ for (var a = new Fd(n, t, r, !0, o), i = ot(e, r), s = 0; s < i.values.length; s++) i.values[s] = a.nextValue();
20479
20482
  return i.toTensor();
20480
20483
  } }), an = $({ unstack_: function(e, n) {
20481
20484
  n === void 0 && (n = 0), n = n || 0;
@@ -20570,8 +20573,8 @@ function lg(e, n) {
20570
20573
  return [s, o, u, l];
20571
20574
  }
20572
20575
  var cg = 30;
20573
- function ql(e) {
20574
- return e <= cg ? e : Ic(e, Math.floor(Math.sqrt(e)));
20576
+ function Vl(e) {
20577
+ return e <= cg ? e : Tc(e, Math.floor(Math.sqrt(e)));
20575
20578
  }
20576
20579
  function pE(e, n, t) {
20577
20580
  var r = n.rank > 1 ? n.shape[n.rank - 1] : 1, o = n.rank > 1 ? n.rank - 1 : 1, a = "Must have updates.shape = indices.shape[:batchDim] + shape[sliceDim:], got updates.shape: " + t.shape + ", indices.shape: " + n.shape + ", shape: " + e + ", sliceDim: " + r + ", and batchDim: " + o + ".";
@@ -20613,7 +20616,7 @@ function sp(e) {
20613
20616
  for (var n = [], t = 0; e > 0; ) 1 & e && n.push(t), e /= 2, t++;
20614
20617
  return n;
20615
20618
  }
20616
- function Fd(e, n, t) {
20619
+ function Pd(e, n, t) {
20617
20620
  for (var r = [], o = 0; o < e.length; o++) r[o] = Math.ceil((n[o] - e[o]) / t[o]);
20618
20621
  return r;
20619
20622
  }
@@ -20621,13 +20624,13 @@ function gE(e, n, t, r, o) {
20621
20624
  var a = n[o], i = t[o] || 1;
20622
20625
  (e & 1 << o || a == null) && (a = i > 0 ? Number.MIN_SAFE_INTEGER : Number.MAX_SAFE_INTEGER);
20623
20626
  var s = r[o];
20624
- return a < 0 && (a += s), a = Sc(0, a, s - 1);
20627
+ return a < 0 && (a += s), a = Ec(0, a, s - 1);
20625
20628
  }
20626
20629
  function yE(e, n, t, r, o) {
20627
20630
  var a = n[o], i = t[o] || 1;
20628
20631
  (e & 1 << o || a == null) && (a = i > 0 ? Number.MAX_SAFE_INTEGER : Number.MIN_SAFE_INTEGER);
20629
20632
  var s = r[o];
20630
- return a < 0 && (a += s), a = i > 0 ? Sc(0, a, s) : Sc(-1, a, s - 1);
20633
+ return a < 0 && (a += s), a = i > 0 ? Ec(0, a, s) : Ec(-1, a, s - 1);
20631
20634
  }
20632
20635
  function dg(e, n, t) {
20633
20636
  for (var r = t.length, o = 0; o < t.length; o++) if (t[o] > 1) {
@@ -20642,7 +20645,7 @@ function fg(e, n) {
20642
20645
  return t;
20643
20646
  }
20644
20647
  function bE(e, n) {
20645
- B(Rc(e), function() {
20648
+ B(Ic(e), function() {
20646
20649
  return "The f passed in variableGrads(f) must be a function";
20647
20650
  }), B(n == null || Array.isArray(n) && n.every(function(c) {
20648
20651
  return c instanceof Ma;
@@ -21060,7 +21063,7 @@ function vi(e, n, t, r, o, a, i) {
21060
21063
  }
21061
21064
  function Ks(e, n, t, r, o, a, i) {
21062
21065
  i === void 0 && (i = "NDHWC");
21063
- var s, u, l = Bc(n), c = l[0], d = l[1], f = l[2];
21066
+ var s, u, l = Oc(n), c = l[0], d = l[1], f = l[2];
21064
21067
  if (i === "NDHWC") u = "channelsLast", s = [c, d, f, e[4], e[4]];
21065
21068
  else {
21066
21069
  if (i !== "NCDHW") throw new Error("Unknown dataFormat " + i);
@@ -21112,7 +21115,7 @@ function Ys(e, n, t, r, o, a, i, s) {
21112
21115
  if (i !== "channelsFirst") throw new Error("Unknown dataFormat " + i);
21113
21116
  l = e[0], h = e[1], c = e[2], d = e[3], f = e[4];
21114
21117
  }
21115
- var p, m = n[0], v = n[1], y = n[2], w = n[4], b = Bc(t), g = b[0], x = b[1], C = b[2], S = Bc(r), E = S[0], R = S[1], k = S[2], T = wa(m, E), A = wa(v, R), q = wa(y, k), D = function(K, L, V, G, ne, ue, ce, le, we, ae, ze) {
21118
+ var p, m = n[0], v = n[1], y = n[2], w = n[4], b = Oc(t), g = b[0], x = b[1], C = b[2], S = Oc(r), E = S[0], R = S[1], k = S[2], T = wa(m, E), A = wa(v, R), q = wa(y, k), D = function(K, L, V, G, ne, ue, ce, le, we, ae, ze) {
21116
21119
  var ge, Ee, Oe, et;
21117
21120
  if (typeof K == "number") {
21118
21121
  ge = { top: K, bottom: K, left: K, right: K, front: K, back: K, type: K === 0 ? "VALID" : "NUMBER" };
@@ -21152,7 +21155,7 @@ function vg(e, n, t, r) {
21152
21155
  function Xs(e) {
21153
21156
  return typeof e == "number" ? [e, e, e] : e.length === 2 ? [e[0], e[1], 1] : e;
21154
21157
  }
21155
- function Bc(e) {
21158
+ function Oc(e) {
21156
21159
  return typeof e == "number" ? [e, e, e] : e;
21157
21160
  }
21158
21161
  function wa(e, n) {
@@ -21178,7 +21181,7 @@ function Pa(e) {
21178
21181
  function Wn(e, n) {
21179
21182
  return Pa(e) || Pa(n);
21180
21183
  }
21181
- function Pd(e) {
21184
+ function Bd(e) {
21182
21185
  if (e === "NHWC") return "channelsLast";
21183
21186
  if (e === "NCHW") return "channelsFirst";
21184
21187
  throw new Error("Unknown dataFormat " + e);
@@ -21201,7 +21204,7 @@ function mg(e, n, t) {
21201
21204
  }
21202
21205
  throw new Error("Error in Cast: failed to cast " + e.dtype + " to " + n);
21203
21206
  }
21204
- function Oc(e, n) {
21207
+ function Nc(e, n) {
21205
21208
  return j.makeTensorFromDataId(e.dataId, n, e.dtype);
21206
21209
  }
21207
21210
  function gg(e, n, t) {
@@ -21210,7 +21213,7 @@ function gg(e, n, t) {
21210
21213
  for (var a = 1; a < o.length; a++) o[a] = o[a - 1] + r;
21211
21214
  return tn(o, "float32");
21212
21215
  }
21213
- function Nc(e, n) {
21216
+ function Lc(e, n) {
21214
21217
  if (e.length !== n.length) throw new Error("Cannot merge real and imag arrays of different lengths. real:" + e.length + ", imag: " + n.length + ".");
21215
21218
  for (var t = new Float32Array(2 * e.length), r = 0; r < t.length; r += 2) t[r] = e[r / 2], t[r + 1] = n[r / 2];
21216
21219
  return t;
@@ -21240,10 +21243,10 @@ function kE(e, n, t) {
21240
21243
  function _E(e, n) {
21241
21244
  return e > n ? 1 : e < n ? -1 : 0;
21242
21245
  }
21243
- function Bd(e, n, t, r, o) {
21246
+ function Od(e, n, t, r, o) {
21244
21247
  return yg(e, n, t, r, o, 0).selectedIndices;
21245
21248
  }
21246
- function Od(e, n, t, r, o, a) {
21249
+ function Nd(e, n, t, r, o, a) {
21247
21250
  var i = yg(e, n, t, r, o, a);
21248
21251
  return i.numValidOutputs.dispose(), { selectedIndices: i.selectedIndices, selectedScores: i.selectedScores };
21249
21252
  }
@@ -21312,7 +21315,7 @@ function xg(e, n, t, r, o) {
21312
21315
  var b = n.slice();
21313
21316
  return b[b.length - 1] = r, [wn(l, b, t), wn(c, b, "int32")];
21314
21317
  }
21315
- function Nd(e, n) {
21318
+ function Ld(e, n) {
21316
21319
  for (var t = [], r = 0; r < n.length; r++) n[r] && t.push(r);
21317
21320
  var o = ot(e, "int32"), a = ot([t.length, e.length], "int32");
21318
21321
  for (r = 0; r < t.length; r++) {
@@ -21452,7 +21455,7 @@ function Io(e, n, t) {
21452
21455
  return "int " + e[a] + " = " + t + " / " + o + "; " + (a === r.length - 1 ? "int " + e[a + 1] + " = " + t + " - " + e[a] + " * " + o : "index -= " + e[a] + " * " + o) + ";";
21453
21456
  }).join("");
21454
21457
  }
21455
- function Ld(e) {
21458
+ function qd(e) {
21456
21459
  var n = Rr(e).map(function(t) {
21457
21460
  return t.toString();
21458
21461
  });
@@ -22568,7 +22571,7 @@ var BE = function(e, n, t, r) {
22568
22571
  setOutput(binaryOpComplex(areal, aimag, breal, bimag));
22569
22572
  }
22570
22573
  `;
22571
- }, Vl = "return a + b;", zl = "return a - b;", dp = "return a * b;", Sg = "return (a < 0.) ? b * a : a;", Kt = function(e, n, t) {
22574
+ }, zl = "return a + b;", $l = "return a - b;", dp = "return a * b;", Sg = "return (a < 0.) ? b * a : a;", Kt = function(e, n, t) {
22572
22575
  this.variableNames = ["A", "B"], this.outputShape = vt(n, t), this.userCode = `
22573
22576
  float binaryOperation(float a, float b) {
22574
22577
  ` + e + `
@@ -23753,7 +23756,7 @@ var nR = function(e) {
23753
23756
  this.outputShape = e;
23754
23757
  var i = "result";
23755
23758
  t && (i = "floor(result * 255. + 0.5)"), this.userCode = `
23756
- ` + Ld(e) + `
23759
+ ` + qd(e) + `
23757
23760
 
23758
23761
  void main() {
23759
23762
  ivec3 coords = getOutputCoords();
@@ -23822,7 +23825,7 @@ var nR = function(e) {
23822
23825
  `;
23823
23826
  }
23824
23827
  this.userCode = `
23825
- ` + Ld(e) + `
23828
+ ` + qd(e) + `
23826
23829
 
23827
23830
  void main() {
23828
23831
  ivec3 coords = getOutputCoords();
@@ -24063,7 +24066,7 @@ var DR = function() {
24063
24066
  if (!ar(this.gl, "EXT_color_buffer_half_float")) throw new Error("GL context does not support color renderable floats");
24064
24067
  this.colorBufferHalfFloatExtension = this.gl.getExtension("EXT_color_buffer_half_float");
24065
24068
  }
24066
- this.vertexBuffer = mR(this.gl, this.debug), this.indexBuffer = gR(this.gl, this.debug), this.framebuffer = b4(this.gl, this.debug), this.textureConfig = Id(this.gl, this.textureHalfFloatExtension);
24069
+ this.vertexBuffer = mR(this.gl, this.debug), this.indexBuffer = gR(this.gl, this.debug), this.framebuffer = b4(this.gl, this.debug), this.textureConfig = Td(this.gl, this.textureHalfFloatExtension);
24067
24070
  }
24068
24071
  return Object.defineProperty(e.prototype, "debug", { get: function() {
24069
24072
  return ie().getBool("DEBUG");
@@ -24147,7 +24150,7 @@ var DR = function() {
24147
24150
  return t.attachShader(a, o);
24148
24151
  }), Ne(t, this.debug, function() {
24149
24152
  return t.attachShader(a, r);
24150
- }), p4(t, this.debug, a), this.debug && Ol(t, this.debug, a), this.vertexAttrsAreBound || (this.setProgram(a), this.vertexAttrsAreBound = kR(t, this.debug, this.program, this.vertexBuffer)), a;
24153
+ }), p4(t, this.debug, a), this.debug && Nl(t, this.debug, a), this.vertexAttrsAreBound || (this.setProgram(a), this.vertexAttrsAreBound = kR(t, this.debug, this.program, this.vertexBuffer)), a;
24151
24154
  }, e.prototype.deleteProgram = function(n) {
24152
24155
  var t = this;
24153
24156
  this.throwIfDisposed(), n === this.program && (this.program = null), n != null && Ne(this.gl, this.debug, function() {
@@ -24155,7 +24158,7 @@ var DR = function() {
24155
24158
  });
24156
24159
  }, e.prototype.setProgram = function(n) {
24157
24160
  var t = this;
24158
- this.throwIfDisposed(), this.program = n, this.program != null && this.debug && Ol(this.gl, this.debug, this.program), Ne(this.gl, this.debug, function() {
24161
+ this.throwIfDisposed(), this.program = n, this.program != null && this.debug && Nl(this.gl, this.debug, this.program), Ne(this.gl, this.debug, function() {
24159
24162
  return t.gl.useProgram(n);
24160
24163
  });
24161
24164
  }, e.prototype.getUniformLocation = function(n, t, r) {
@@ -24180,7 +24183,7 @@ var DR = function() {
24180
24183
  }, e.prototype.setOutputPackedMatrixWriteRegion = function(n, t, r, o) {
24181
24184
  throw new Error("setOutputPackedMatrixWriteRegion not implemented.");
24182
24185
  }, e.prototype.debugValidate = function() {
24183
- this.program != null && Ol(this.gl, this.debug, this.program), Zi(this.gl);
24186
+ this.program != null && Nl(this.gl, this.debug, this.program), Zi(this.gl);
24184
24187
  }, e.prototype.executeProgram = function() {
24185
24188
  this.throwIfDisposed(), this.throwIfNoProgram();
24186
24189
  var n = this.gl;
@@ -24267,9 +24270,9 @@ var DR = function() {
24267
24270
  return r.pollItems(), r.itemsToPoll.length === 0;
24268
24271
  });
24269
24272
  }, e.prototype.bindTextureToFrameBuffer = function(n) {
24270
- this.throwIfDisposed(), Nl(this.gl, this.debug, n, this.framebuffer), this.debug && Zi(this.gl);
24273
+ this.throwIfDisposed(), Ll(this.gl, this.debug, n, this.framebuffer), this.debug && Zi(this.gl);
24271
24274
  }, e.prototype.unbindTextureToFrameBuffer = function() {
24272
- this.outputTexture != null ? (Nl(this.gl, this.debug, this.outputTexture, this.framebuffer), this.debug && Zi(this.gl)) : op(this.gl, this.debug, this.framebuffer);
24275
+ this.outputTexture != null ? (Ll(this.gl, this.debug, this.outputTexture, this.framebuffer), this.debug && Zi(this.gl)) : op(this.gl, this.debug, this.framebuffer);
24273
24276
  }, e.prototype.downloadMatrixDriver = function(n, t) {
24274
24277
  this.bindTextureToFrameBuffer(n);
24275
24278
  var r = t();
@@ -24277,7 +24280,7 @@ var DR = function() {
24277
24280
  }, e.prototype.setOutputMatrixTextureDriver = function(n, t, r) {
24278
24281
  this.throwIfDisposed();
24279
24282
  var o = this.gl;
24280
- Nl(o, this.debug, n, this.framebuffer), this.debug && Zi(o), this.outputTexture = n, Ne(o, this.debug, function() {
24283
+ Ll(o, this.debug, n, this.framebuffer), this.debug && Zi(o), this.outputTexture = n, Ne(o, this.debug, function() {
24281
24284
  return o.viewport(0, 0, t, r);
24282
24285
  }), Ne(o, this.debug, function() {
24283
24286
  return o.scissor(0, 0, t, r);
@@ -24620,7 +24623,7 @@ var MR = function(e, n, t) {
24620
24623
  setOutput(dotProd);
24621
24624
  }
24622
24625
  `;
24623
- }, $l = function(e, n, t, r, o, a, i) {
24626
+ }, Wl = function(e, n, t, r, o, a, i) {
24624
24627
  t === void 0 && (t = !1), r === void 0 && (r = !1), o === void 0 && (o = !1), a === void 0 && (a = null), i === void 0 && (i = !1), this.variableNames = ["matrixA", "matrixB"], this.packedInputs = !0, this.packedOutput = !0, this.outputShape = n;
24625
24628
  var s = t ? e[1] : e[2], u = Math.ceil(s / 2), l = t ? "i * 2, rc.y" : "rc.y, i * 2", c = r ? "rc.z, i * 2" : "i * 2, rc.z", d = t ? ["a.xxyy", "a.zzww"] : ["a.xxzz", "a.yyww"], f = r ? ["b.xzxz", "b.ywyw"] : ["b.xyxy", "b.zwzw"], h = "", p = "";
24626
24629
  a && (h = i ? `vec4 activation(vec4 a) {
@@ -24824,7 +24827,7 @@ var MR = function(e, n, t) {
24824
24827
  setOutput(result);
24825
24828
  }
24826
24829
  `;
24827
- }, Wl = function(e, n, t) {
24830
+ }, Hl = function(e, n, t) {
24828
24831
  if (this.variableNames = ["x"], n === "avg" && t) throw new Error("Cannot compute positions for average pool.");
24829
24832
  var r = e.filterWidth, o = e.strideHeight, a = e.strideWidth, i = e.dilationHeight, s = e.dilationWidth, u = e.effectiveFilterHeight, l = e.effectiveFilterWidth, c = e.padInfo.top, d = e.padInfo.left;
24830
24833
  this.outputShape = e.outShape;
@@ -24977,7 +24980,7 @@ var MR = function(e, n, t) {
24977
24980
  }
24978
24981
  `;
24979
24982
  }
24980
- }, Hl = function(e, n, t) {
24983
+ }, Ul = function(e, n, t) {
24981
24984
  if (this.variableNames = ["x"], n === "avg" && t) throw new Error("Cannot compute positions for average pool.");
24982
24985
  var r = e.filterWidth, o = e.strideDepth, a = e.strideHeight, i = e.strideWidth, s = e.dilationDepth, u = e.dilationHeight, l = e.dilationWidth, c = e.effectiveFilterDepth, d = e.effectiveFilterHeight, f = e.effectiveFilterWidth, h = e.padInfo.front, p = e.padInfo.top, m = e.padInfo.left;
24983
24986
  this.outputShape = e.outShape;
@@ -25274,7 +25277,7 @@ var MR = function(e, n, t) {
25274
25277
  return ivec3(r, c, d);
25275
25278
  }
25276
25279
 
25277
- ` + Ld(e) + `
25280
+ ` + qd(e) + `
25278
25281
 
25279
25282
  void main() {
25280
25283
  ivec3 rc = getOutputCoords();
@@ -25840,7 +25843,7 @@ var MR = function(e, n, t) {
25840
25843
  this.variableNames = ["source"], this.outputShape = n, this.rank = n.length;
25841
25844
  var t, r = Lt(this.rank), o = "uniform int start[" + this.rank + "];", a = function(i) {
25842
25845
  if (i === 1) return "sourceLoc";
25843
- if (i <= 6) return Ul.slice(0, i).map(function(s) {
25846
+ if (i <= 6) return jl.slice(0, i).map(function(s) {
25844
25847
  return "sourceLoc." + s;
25845
25848
  }).join(",");
25846
25849
  throw Error("Slicing for rank " + i + " is not yet supported");
@@ -25849,7 +25852,7 @@ var MR = function(e, n, t) {
25849
25852
  ` + r + ` sourceLoc;
25850
25853
  ` + r + ` coords = getOutputCoords();
25851
25854
  ` + n.map(function(i, s) {
25852
- return "sourceLoc." + Ul[s] + " = start[" + s + "] + coords." + Ul[s] + ";";
25855
+ return "sourceLoc." + jl[s] + " = start[" + s + "] + coords." + jl[s] + ";";
25853
25856
  }).join(`
25854
25857
  `) + `
25855
25858
  `, this.userCode = `
@@ -25867,7 +25870,7 @@ var MR = function(e, n, t) {
25867
25870
  t.startLoc == null && (t.startLoc = r.getUniformLocationNoThrow(o, "start"), t.startLoc == null) || r.gl.uniform1iv(t.startLoc, n);
25868
25871
  };
25869
25872
  }, e;
25870
- }(), Ul = ["x", "y", "z", "w", "u", "v"], t5 = function() {
25873
+ }(), jl = ["x", "y", "z", "w", "u", "v"], t5 = function() {
25871
25874
  function e(n) {
25872
25875
  this.variableNames = ["source"], this.packedInputs = !0, this.packedOutput = !0, this.outputShape = n, this.rank = n.length;
25873
25876
  var t = Lt(this.rank), r = Bn("coords", this.rank), o = Bn("sourceLoc", this.rank), a = this.rank === 1 ? "sourceLoc" : "vec2(" + o.slice(-2).join() + ")", i = "getChannel(getSource(" + o.join() + "), " + a + ")", s = `
@@ -26044,7 +26047,7 @@ var o5 = function(e, n) {
26044
26047
  setOutput(result);
26045
26048
  }
26046
26049
  `;
26047
- }, qd = 1.7580993408473768, Vd = 1.0507009873554805, lt = function(e, n) {
26050
+ }, Vd = 1.7580993408473768, zd = 1.0507009873554805, lt = function(e, n) {
26048
26051
  this.variableNames = ["A"], this.outputShape = e, this.userCode = `
26049
26052
  float unaryOperation(float x) {
26050
26053
  ` + n + `
@@ -26064,8 +26067,8 @@ var o5 = function(e, n) {
26064
26067
  `, Tg = "return (x >= 0.0) ? x : (exp(x) - 1.0);", u5 = `
26065
26068
  // Stable and Attracting Fixed Point (0, 1) for Normalized Weights.
26066
26069
  // see: https://arxiv.org/abs/1706.02515
26067
- float scaleAlpha = ` + qd + `;
26068
- float scale = ` + Vd + `;
26070
+ float scaleAlpha = ` + Vd + `;
26071
+ float scale = ` + zd + `;
26069
26072
  return (x >= 0.0) ? scale * x : scaleAlpha * (exp(x) - 1.0);
26070
26073
  `, Cp = "return -x;", kp = "return ceil(x);", _p = "return floor(x);", Sp = "return exp(x);", Ep = "return exp(x) - 1.0;", l5 = mr + `
26071
26074
  return sin(x);
@@ -26183,7 +26186,7 @@ var b5 = 600, w5 = function(e) {
26183
26186
  if (o != null) return this.convertAndCacheOnCPU(t);
26184
26187
  if (a === "string") return o;
26185
26188
  var h, p, m = this.activeTimers != null;
26186
- return m && (h = Cr()), a === "complex64" ? p = Nc(i.real.dataSync(), i.imag.dataSync()) : p = this.getValuesFromTexture(t), m && (this.downloadWaitMs += Cr() - h), this.convertAndCacheOnCPU(t, p);
26189
+ return m && (h = Cr()), a === "complex64" ? p = Lc(i.real.dataSync(), i.imag.dataSync()) : p = this.getValuesFromTexture(t), m && (this.downloadWaitMs += Cr() - h), this.convertAndCacheOnCPU(t, p);
26187
26190
  }, n.prototype.read = function(t) {
26188
26191
  return Me(this, void 0, void 0, function() {
26189
26192
  var r, o, a, i, s, u, l, c, d, f, h, p, m, v, y, w, b, g, x, C, S, E;
@@ -26202,7 +26205,7 @@ var b5 = 600, w5 = function(e) {
26202
26205
  case 2:
26203
26206
  return u !== "complex64" ? [3, 4] : [4, Promise.all([l.real.data(), l.imag.data()])];
26204
26207
  case 3:
26205
- return w = R.sent(), b = w[0], g = w[1], y = Nc(b, g), [3, 5];
26208
+ return w = R.sent(), b = w[0], g = w[1], y = Lc(b, g), [3, 5];
26206
26209
  case 4:
26207
26210
  p == null ? y = this.getValuesFromTexture(t) : (x = Be(i), y = this.gpgpu.downloadFloat32MatrixFromBuffer(p, x)), R.label = 5;
26208
26211
  case 5:
@@ -26224,7 +26227,7 @@ var b5 = 600, w5 = function(e) {
26224
26227
  var l = this.decode(t), c = this.texData.get(l.dataId), d = (r = this.gpgpu).downloadMatrixFromPackedTexture.apply(r, [c.texture].concat(oi(a))).subarray(0, u);
26225
26228
  return this.disposeData(l.dataId), d;
26226
26229
  }
26227
- var f = ie().getBool("WEBGL_PACK") && s === !0, h = f ? Ll(a) : a, p = f ? new sR(h) : new iR(h), m = this.runWebGLProgram(p, [{ shape: h, dtype: i, dataId: t }], "float32"), v = this.texData.get(m.dataId), y = this.gpgpu.downloadByteEncodedFloatMatrixFromOutputTexture(v.texture, v.texShape[0], v.texShape[1]).subarray(0, u);
26230
+ var f = ie().getBool("WEBGL_PACK") && s === !0, h = f ? ql(a) : a, p = f ? new sR(h) : new iR(h), m = this.runWebGLProgram(p, [{ shape: h, dtype: i, dataId: t }], "float32"), v = this.texData.get(m.dataId), y = this.gpgpu.downloadByteEncodedFloatMatrixFromOutputTexture(v.texture, v.texShape[0], v.texShape[1]).subarray(0, u);
26228
26231
  return this.disposeData(m.dataId), y;
26229
26232
  }, n.prototype.time = function(t) {
26230
26233
  return Me(this, void 0, void 0, function() {
@@ -26321,7 +26324,7 @@ var b5 = 600, w5 = function(e) {
26321
26324
  return this.dataRefCount.set(s.slice.origDataId, l + 1), i;
26322
26325
  }, n.prototype.stridedSlice = function(t, r, o, a) {
26323
26326
  if (this.shouldExecuteOnCPU([t])) return this.cpuBackend.stridedSlice(t, r, o, a);
26324
- var i = Fd(r, o, a);
26327
+ var i = Pd(r, o, a);
26325
26328
  if (i.some(function(u) {
26326
26329
  return u === 0;
26327
26330
  })) return wn([], i);
@@ -26371,10 +26374,10 @@ var b5 = 600, w5 = function(e) {
26371
26374
  var c = s === 1 ? t : t.as3D(l, u, 1), d = s === 1 ? 2 : 1, f = s === 1 ? r.as3D(l, 1, u) : r;
26372
26375
  return this.multiply(c, f).sum(d, !0);
26373
26376
  }
26374
- var h = bn(t.dtype, r.dtype), p = new $l(t.shape, [l, i, s], o, a);
26377
+ var h = bn(t.dtype, r.dtype), p = new Wl(t.shape, [l, i, s], o, a);
26375
26378
  return this.compileAndRun(p, [t, r], h);
26376
26379
  }, n.prototype.fusedBatchMatMul = function(t) {
26377
- 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, m = l != null, v = u ? os(u, !0) : null, y = new $l(r.shape, [f, c, d], a, i, p, v, m), w = [r, o];
26380
+ 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, m = l != null, v = u ? os(u, !0) : null, y = new Wl(r.shape, [f, c, d], a, i, p, v, m), w = [r, o];
26378
26381
  return s && w.push(s), l && w.push(l), this.compileAndRun(y, w, h);
26379
26382
  }, n.prototype.multiply = function(t, r) {
26380
26383
  if (t.dtype === "complex64") {
@@ -26441,27 +26444,27 @@ var b5 = 600, w5 = function(e) {
26441
26444
  var u = t.pad(i), l = Hs(u.shape, r, a, !1), c = Us(l.length, r.length, !1), d = js(u.shape, r, a, !1);
26442
26445
  return u.reshape(l).transpose(c).reshape(d);
26443
26446
  }, n.prototype.reduce = function(t, r, o) {
26444
- var a = t.shape[0], i = t.shape[1], s = ql(i), u = new WR({ windowSize: s, inSize: i, batchSize: a }, r), l = this.compileAndRun(u, [t], o);
26447
+ var a = t.shape[0], i = t.shape[1], s = Vl(i), u = new WR({ windowSize: s, inSize: i, batchSize: a }, r), l = this.compileAndRun(u, [t], o);
26445
26448
  return l.shape[1] === 1 ? l : this.reduce(l, r, o);
26446
26449
  }, n.prototype.argReduce = function(t, r, o) {
26447
26450
  o === void 0 && (o = null);
26448
26451
  var a = t.shape[0], i = t.shape[1];
26449
26452
  o != null && (a = o.shape[0], i = o.shape[1]);
26450
- var s = ql(i), u = new TE({ windowSize: s, inSize: i, batchSize: a }, r, o == null), l = [t];
26453
+ var s = Vl(i), u = new TE({ windowSize: s, inSize: i, batchSize: a }, r, o == null), l = [t];
26451
26454
  o != null && l.push(o);
26452
26455
  var c = this.compileAndRun(u, l, "int32");
26453
26456
  return c.shape[1] === 1 ? c : this.argReduce(t, r, c);
26454
26457
  }, n.prototype.argReducePacked = function(t, r, o) {
26455
26458
  o === void 0 && (o = null);
26456
- var a = o != null ? o.shape : t.shape, i = ql(a[a.length - 1]), s = new BE(a, i, r, o == null), u = o == null ? [t] : [t, o], l = this.compileAndRun(s, u, "int32");
26459
+ var a = o != null ? o.shape : t.shape, i = Vl(a[a.length - 1]), s = new BE(a, i, r, o == null), u = o == null ? [t] : [t, o], l = this.compileAndRun(s, u, "int32");
26457
26460
  return l.rank === t.rank ? this.argReducePacked(t, r, l) : l;
26458
26461
  }, n.prototype.sum = function(t, r) {
26459
26462
  Hn("sum", r, t.rank);
26460
- var o = _n(t.shape, r), a = o[0], i = Be(o[1]), s = t.as2D(-1, i), u = Dl(t.dtype);
26463
+ var o = _n(t.shape, r), a = o[0], i = Be(o[1]), s = t.as2D(-1, i), u = Ml(t.dtype);
26461
26464
  return this.reduce(s, "sum", u).reshape(a);
26462
26465
  }, n.prototype.prod = function(t, r) {
26463
26466
  if (this.shouldExecuteOnCPU([t])) return this.cpuBackend.prod(t, r);
26464
- var o = _n(t.shape, r), a = o[0], i = Be(o[1]), s = t.as2D(-1, i), u = Dl(t.dtype);
26467
+ var o = _n(t.shape, r), a = o[0], i = Be(o[1]), s = t.as2D(-1, i), u = Ml(t.dtype);
26465
26468
  return this.reduce(s, "prod", u).reshape(a);
26466
26469
  }, n.prototype.unsortedSegmentSum = function(t, r, o) {
26467
26470
  var a = 0, i = Fr([a], t.rank), s = t;
@@ -26469,12 +26472,12 @@ var b5 = 600, w5 = function(e) {
26469
26472
  var u = function(h, p, m) {
26470
26473
  for (var v = [], y = h.length, w = 0; w < y; w++) w !== p ? v.push(h[w]) : v.push(m);
26471
26474
  return v;
26472
- }(s.shape, a, o), l = Be([s.shape[a]]), c = s.as2D(-1, l), d = Dl(t.dtype), f = this.segOpCompute(c, "unsortedSegmentSum", r, d, o).reshape(u);
26473
- return i != null && (f = f.transpose(Td(i))), f;
26475
+ }(s.shape, a, o), l = Be([s.shape[a]]), c = s.as2D(-1, l), d = Ml(t.dtype), f = this.segOpCompute(c, "unsortedSegmentSum", r, d, o).reshape(u);
26476
+ return i != null && (f = f.transpose(Ad(i))), f;
26474
26477
  }, n.prototype.segOpCompute = function(t, r, o, a, i) {
26475
26478
  var s = t.shape[0], u = t.shape[1], l = function(f, h) {
26476
26479
  var p, m = !1;
26477
- for (f <= cg ? (p = f, m = !0) : p = Ic(f, Math.floor(Math.sqrt(f))); !m; ) p > h || p === f ? m = !0 : p = Ic(f, p + 1);
26480
+ for (f <= cg ? (p = f, m = !0) : p = Tc(f, Math.floor(Math.sqrt(f))); !m; ) p > h || p === f ? m = !0 : p = Tc(f, p + 1);
26478
26481
  return p;
26479
26482
  }(u, i), c = new ZR({ windowSize: l, inSize: u, batchSize: s, numSegments: i }), d = this.compileAndRun(c, [t, o], a);
26480
26483
  return d.shape[1] === i ? d : (o = Ws(0, i).tile([u / l]), this.segOpCompute(d, r, o, a, i));
@@ -26557,7 +26560,7 @@ var b5 = 600, w5 = function(e) {
26557
26560
  }, n.prototype.where = function(t) {
26558
26561
  zs("tf.where() in webgl locks the UI thread. Call tf.whereAsync() instead");
26559
26562
  var r = t.dataSync();
26560
- return Nd(t.shape, r);
26563
+ return Ld(t.shape, r);
26561
26564
  }, n.prototype.topk = function(t, r, o) {
26562
26565
  return xg(t.dataSync(), t.shape, t.dtype, r);
26563
26566
  }, n.prototype.min = function(t, r) {
@@ -26692,11 +26695,11 @@ return a / b;`, t.shape, r.shape);
26692
26695
  `, t.shape, r.shape);
26693
26696
  return this.compileAndRun(o, [t, r], "int32");
26694
26697
  }, n.prototype.add = function(t, r) {
26695
- if (t.dtype === "complex64" && r.dtype === "complex64") return this.complexSeparableBinaryOp(t, r, Vl);
26698
+ if (t.dtype === "complex64" && r.dtype === "complex64") return this.complexSeparableBinaryOp(t, r, zl);
26696
26699
  if (this.shouldExecuteOnCPU([t, r])) return this.cpuBackend.add(t, r);
26697
26700
  var o = bn(t.dtype, r.dtype);
26698
- if (ie().getBool("WEBGL_PACK_BINARY_OPERATIONS")) return this.packedBinaryOp(t, r, Vl, o);
26699
- var a = new Kt(Vl, t.shape, r.shape);
26701
+ if (ie().getBool("WEBGL_PACK_BINARY_OPERATIONS")) return this.packedBinaryOp(t, r, zl, o);
26702
+ var a = new Kt(zl, t.shape, r.shape);
26700
26703
  return this.compileAndRun(a, [t, r], o);
26701
26704
  }, n.prototype.packedUnaryOp = function(t, r, o) {
26702
26705
  var a = new ei(t.shape, r);
@@ -26728,11 +26731,11 @@ return a / b;`, t.shape, r.shape);
26728
26731
  }), u = ie().getBool("WEBGL_PACK") ? new IE(t[0].shape, s) : new RE(t[0].shape, s);
26729
26732
  return this.compileAndRun(u, t, i);
26730
26733
  }, n.prototype.subtract = function(t, r) {
26731
- if (t.dtype === "complex64" && r.dtype === "complex64") return this.complexSeparableBinaryOp(t, r, zl);
26734
+ if (t.dtype === "complex64" && r.dtype === "complex64") return this.complexSeparableBinaryOp(t, r, $l);
26732
26735
  if (this.shouldExecuteOnCPU([t, r])) return this.cpuBackend.subtract(t, r);
26733
26736
  var o = bn(t.dtype, r.dtype);
26734
- if (ie().getBool("WEBGL_PACK_BINARY_OPERATIONS")) return this.packedBinaryOp(t, r, zl, t.dtype);
26735
- var a = new Kt(zl, t.shape, r.shape);
26737
+ if (ie().getBool("WEBGL_PACK_BINARY_OPERATIONS")) return this.packedBinaryOp(t, r, $l, t.dtype);
26738
+ var a = new Kt($l, t.shape, r.shape);
26736
26739
  return this.compileAndRun(a, [t, r], o);
26737
26740
  }, n.prototype.pow = function(t, r) {
26738
26741
  var o = ie().getBool("WEBGL_PACK_BINARY_OPERATIONS") ? new qr(`
@@ -27016,7 +27019,7 @@ return (round(mod(b, 2.0)) != 1) ?
27016
27019
  return "batchMatMul result is expected to be packed";
27017
27020
  }), l.shape = x, E.shape = o.outShape, j.makeTensorFromDataId(S.dataId, o.outShape, S.dtype);
27018
27021
  }, n.prototype.conv2dWithIm2Row = function(t, r, o, a, i, s) {
27019
- var u = o.filterWidth, l = o.filterHeight, c = o.inChannels, d = o.outWidth, f = o.outHeight, h = o.dataFormat === "channelsLast", p = u * l * c, m = f * d, v = [p, m], y = t.squeeze([0]), w = r.reshape([1, p, -1]), b = new MR(v, y.shape, o), g = this.compileAndRun(b, [y]).reshape([1, v[0], v[1]]), x = a != null, C = s != null, S = i ? os(i, !0) : null, E = new $l(g.shape, [1, m, o.outChannels], !0, !1, x, S, C), R = [g, w];
27022
+ var u = o.filterWidth, l = o.filterHeight, c = o.inChannels, d = o.outWidth, f = o.outHeight, h = o.dataFormat === "channelsLast", p = u * l * c, m = f * d, v = [p, m], y = t.squeeze([0]), w = r.reshape([1, p, -1]), b = new MR(v, y.shape, o), g = this.compileAndRun(b, [y]).reshape([1, v[0], v[1]]), x = a != null, C = s != null, S = i ? os(i, !0) : null, E = new Wl(g.shape, [1, m, o.outChannels], !0, !1, x, S, C), R = [g, w];
27020
27023
  a && R.push(a), C && R.push(s);
27021
27024
  var k = this.compileAndRun(E, R);
27022
27025
  return h ? k.reshape([1, f, d, o.outChannels]) : k.reshape([1, o.outChannels, f, d]);
@@ -27059,13 +27062,13 @@ return (round(mod(b, 2.0)) != 1) ?
27059
27062
  var a = new YE(o);
27060
27063
  return this.compileAndRun(a, [t, r]);
27061
27064
  }, n.prototype.maxPool = function(t, r) {
27062
- var o = new Wl(r, "max", !1);
27065
+ var o = new Hl(r, "max", !1);
27063
27066
  return this.compileAndRun(o, [t]);
27064
27067
  }, n.prototype.avgPool = function(t, r) {
27065
- var o = new Wl(r, "avg", !1);
27068
+ var o = new Hl(r, "avg", !1);
27066
27069
  return this.compileAndRun(o, [t], "float32");
27067
27070
  }, n.prototype.maxPoolBackprop = function(t, r, o, a) {
27068
- var i = new Wl(a, "max", !0), s = this.compileAndRun(i, [r]), u = new OR(a), l = this.compileAndRun(u, [t, s], r.dtype);
27071
+ var i = new Hl(a, "max", !0), s = this.compileAndRun(i, [r]), u = new OR(a), l = this.compileAndRun(u, [t, s], r.dtype);
27069
27072
  return s.dispose(), l;
27070
27073
  }, n.prototype.avgPoolBackprop = function(t, r, o) {
27071
27074
  var a = new OE(o);
@@ -27080,16 +27083,16 @@ return (round(mod(b, 2.0)) != 1) ?
27080
27083
  for (s = 0; s < c.length; s++) u[r] = s, c[s] = this.slice(t, u, l).reshape(a);
27081
27084
  return c;
27082
27085
  }, n.prototype.avgPool3d = function(t, r) {
27083
- var o = new Hl(r, "avg", !1);
27086
+ var o = new Ul(r, "avg", !1);
27084
27087
  return this.compileAndRun(o, [t], "float32");
27085
27088
  }, n.prototype.avgPool3dBackprop = function(t, r, o) {
27086
27089
  var a = new NE(o);
27087
27090
  return this.compileAndRun(a, [t], r.dtype);
27088
27091
  }, n.prototype.maxPool3d = function(t, r) {
27089
- var o = new Hl(r, "max", !1);
27092
+ var o = new Ul(r, "max", !1);
27090
27093
  return this.compileAndRun(o, [t], "float32");
27091
27094
  }, n.prototype.maxPool3dBackprop = function(t, r, o, a) {
27092
- var i = new Hl(a, "max", !0), s = this.compileAndRun(i, [r]), u = new NR(a), l = this.compileAndRun(u, [t, s], r.dtype);
27095
+ var i = new Ul(a, "max", !0), s = this.compileAndRun(i, [r]), u = new NR(a), l = this.compileAndRun(u, [t, s], r.dtype);
27093
27096
  return s.dispose(), l;
27094
27097
  }, n.prototype.reshape = function(t, r) {
27095
27098
  var o = this.texData.get(t.dataId);
@@ -27097,7 +27100,7 @@ return (round(mod(b, 2.0)) != 1) ?
27097
27100
  var a = this.packedReshape(t, r);
27098
27101
  return j.makeTensorFromDataId(a.dataId, a.shape, a.dtype);
27099
27102
  }
27100
- return Oc(t, r);
27103
+ return Nc(t, r);
27101
27104
  }, n.prototype.resizeBilinear = function(t, r, o, a) {
27102
27105
  var i = ie().getBool("WEBGL_PACK_IMAGE_OPERATIONS") ? new GR(t.shape, r, o, a) : new jR(t.shape, r, o, a);
27103
27106
  return this.compileAndRun(i, [t], "float32");
@@ -27120,7 +27123,7 @@ return (round(mod(b, 2.0)) != 1) ?
27120
27123
  var r = new aR(t.size);
27121
27124
  return this.compileAndRun(r, [t]);
27122
27125
  }, n.prototype.nonMaxSuppression = function(t, r, o, a, i) {
27123
- return zs("tf.nonMaxSuppression() in webgl locks the UI thread. Call tf.nonMaxSuppressionAsync() instead"), Bd(t.dataSync(), r.dataSync(), o, a, i);
27126
+ return zs("tf.nonMaxSuppression() in webgl locks the UI thread. Call tf.nonMaxSuppressionAsync() instead"), Od(t.dataSync(), r.dataSync(), o, a, i);
27124
27127
  }, n.prototype.cropAndResize = function(t, r, o, a, i, s) {
27125
27128
  var u = new eR(t.shape, r.shape, a, i, s);
27126
27129
  return this.compileAndRun(u, [t, r, o], "float32");
@@ -27134,7 +27137,7 @@ return (round(mod(b, 2.0)) != 1) ?
27134
27137
  return bg(t, r, o);
27135
27138
  }, n.prototype.scatterND = function(t, r, o) {
27136
27139
  var a = Gs(0, t, o), i = a.sliceRank, s = a.numUpdates, u = a.sliceSize, l = a.strides, c = a.outputSize, d = [c / u, u], f = t.reshape([s, i]), h = r.reshape([s, u]);
27137
- if (c === 0) return Oc(wn([]), o);
27140
+ if (c === 0) return Nc(wn([]), o);
27138
27141
  var p = Ce(0), m = new yp(s, i, f.rank, h.rank, l, d);
27139
27142
  return this.compileAndRun(m, [h, f, p]).reshape(o);
27140
27143
  }, n.prototype.sparseToDense = function(t, r, o, a) {
@@ -27180,7 +27183,7 @@ return (round(mod(b, 2.0)) != 1) ?
27180
27183
  var o = [qs(t.shape)].concat(Vs(t.shape)), a = { dtype: t.dtype, shape: o, dataId: t.dataId }, i = [qs(r)].concat(Vs(r)), s = new HR(i, o), u = this.runWebGLProgram(s, [a], t.dtype, null, !0);
27181
27184
  return { dataId: u.dataId, shape: r, dtype: u.dtype };
27182
27185
  }, n.prototype.decode = function(t) {
27183
- var r, o = this.texData.get(t), a = o.isPacked, i = o.shape, s = o.dtype, u = Ll(i);
27186
+ var r, o = this.texData.get(t), a = o.isPacked, i = o.shape, s = o.dtype, u = ql(i);
27184
27187
  return r = a ? new rR(u) : new nR(u), { dtype: s, shape: i, dataId: this.runWebGLProgram(r, [{ shape: u, dtype: s, dataId: t }], s, null, !0).dataId };
27185
27188
  }, n.prototype.runWebGLProgram = function(t, r, o, a, i) {
27186
27189
  var s = this;
@@ -27283,7 +27286,7 @@ return (round(mod(b, 2.0)) != 1) ?
27283
27286
  f && (d = Cr());
27284
27287
  var h = o.texShape;
27285
27288
  if (h == null && (h = E4(a, c), o.texShape = h), s != null) {
27286
- var p = Ll(a), m = void 0, v = h[1], y = h[0], w = s instanceof Uint8Array;
27289
+ var p = ql(a), m = void 0, v = h[1], y = h[0], w = s instanceof Uint8Array;
27287
27290
  c ? (v = (r = Fi(h[0], h[1]))[0], y = r[1], m = new lR(p, [y, v], w)) : m = new uR(p, [y, v], w);
27288
27291
  var b = this.makeTensorInfo([y, v], i);
27289
27292
  this.texData.get(b.dataId).usage = w ? Yn.PIXELS : Yn.UPLOAD, this.gpgpu.uploadDenseMatrixToTexture(this.getTexture(b.dataId), v, y, s);
@@ -27425,7 +27428,7 @@ var x5 = $({ square_: function(e) {
27425
27428
  return yt(t);
27426
27429
  } };
27427
27430
  });
27428
- } }), zd = $({ clipByValue_: function(e, n, t) {
27431
+ } }), $d = $({ clipByValue_: function(e, n, t) {
27429
27432
  var r = M(e, "x", "clipByValue");
27430
27433
  B(n <= t, function() {
27431
27434
  return "Error in clip: min (" + n + ") must be less than or equal to max (" + t + ").";
@@ -27475,7 +27478,7 @@ var x5 = $({ square_: function(e) {
27475
27478
  return t.mul(o.square().neg().exp().mul(2 / Math.sqrt(Math.PI)));
27476
27479
  } };
27477
27480
  });
27478
- } }), Lc = $({ exp_: function(e) {
27481
+ } }), qc = $({ exp_: function(e) {
27479
27482
  var n = M(e, "x", "exp");
27480
27483
  return j.runKernelFunc(function(t, r) {
27481
27484
  var o = t.exp(n);
@@ -27839,7 +27842,7 @@ var Q5 = $({ batchNormalization2d_: function(e, n, t, r, o, a) {
27839
27842
  case 0:
27840
27843
  return [4, (n = M(e, "condition", "whereAsync", "bool")).data()];
27841
27844
  case 1:
27842
- return t = o.sent(), r = Nd(n.shape, t), e !== n && n.dispose(), [2, r];
27845
+ return t = o.sent(), r = Ld(n.shape, t), e !== n && n.dispose(), [2, r];
27843
27846
  }
27844
27847
  });
27845
27848
  });
@@ -27949,7 +27952,7 @@ var Q5 = $({ batchNormalization2d_: function(e, n, t, r, o, a) {
27949
27952
  return c.div(f.toFloat()).neg();
27950
27953
  } };
27951
27954
  }, "FloorDiv");
27952
- } }), $d = $({ maximum_: function(e, n) {
27955
+ } }), Wd = $({ maximum_: function(e, n) {
27953
27956
  var t, r = M(e, "a", "maximum"), o = M(n, "b", "maximum");
27954
27957
  return t = jt(r, o), r = t[0], o = t[1], r.dtype === "bool" && (r = r.toInt(), o = o.toInt()), vt(r.shape, o.shape), j.runKernelFunc(function(a, i) {
27955
27958
  var s = a.maximum(r, o);
@@ -28127,7 +28130,7 @@ function Ip(e) {
28127
28130
  for (var n = [], t = 0; t < e.length; ++t) for (var r = 0; r < e[t].length; ++r) n.push(e[t][r]);
28128
28131
  return n;
28129
28132
  }
28130
- var Wd = $({ gather_: function(e, n, t) {
28133
+ var Hd = $({ gather_: function(e, n, t) {
28131
28134
  t === void 0 && (t = 0);
28132
28135
  var r = M(e, "x", "gather"), o = M(n, "indices", "gather", "int32");
28133
28136
  t = ln(t, r.shape)[0];
@@ -28143,7 +28146,7 @@ var Wd = $({ gather_: function(e, n, t) {
28143
28146
  }, { x: r, indices: o }, function(i, s) {
28144
28147
  var u = s[0];
28145
28148
  return { x: function() {
28146
- var l = r.shape, c = u.size, d = l.slice(0, t), f = d.length, h = l.slice(t, l.length).slice(1), p = h.length, m = Rp(0, f), v = Rp(f + 1, f + 1 + p), y = Ip([d, [c], h]), w = i.reshape(y), b = u.reshape([c]), g = Ip([[f], m, v]), x = w.transpose(g), C = jg(x, b, r.shape[t]), S = Td(g);
28149
+ var l = r.shape, c = u.size, d = l.slice(0, t), f = d.length, h = l.slice(t, l.length).slice(1), p = h.length, m = Rp(0, f), v = Rp(f + 1, f + 1 + p), y = Ip([d, [c], h]), w = i.reshape(y), b = u.reshape([c]), g = Ip([[f], m, v]), x = w.transpose(g), C = jg(x, b, r.shape[t]), S = Ad(g);
28147
28150
  return C = C.transpose(S);
28148
28151
  }, indices: function() {
28149
28152
  return u;
@@ -28160,7 +28163,7 @@ var Wd = $({ gather_: function(e, n, t) {
28160
28163
  var s = i[0];
28161
28164
  return { $x: function() {
28162
28165
  return function(u, l) {
28163
- for (var c = $d(l, yt(l)), d = Wd(u, c), f = Ug(l, Ce(0, "int32")), h = d.rank - f.rank, p = 0; p < h; ++p) f = rr(f, p + 1);
28166
+ for (var c = Wd(l, yt(l)), d = Hd(u, c), f = Ug(l, Ce(0, "int32")), h = d.rank - f.rank, p = 0; p < h; ++p) f = rr(f, p + 1);
28164
28167
  f = Iu(f, Ua(d.shape, "bool"));
28165
28168
  var m = yt(d);
28166
28169
  return zo(f, d, m);
@@ -28178,7 +28181,7 @@ var Wd = $({ gather_: function(e, n, t) {
28178
28181
  }), Rt(s.slice(a, a + i), o.shape, "mask's shape must match the first K dimensions of tensor's shape,"), u = 1, l = a; l < a + i; l++) u *= s[l];
28179
28182
  return c = s.slice(0, a).concat([u], s.slice(a + i)), d = r.reshape(c), f = o.reshape([-1]), [4, zg(f)];
28180
28183
  case 1:
28181
- return h = v.sent(), p = h.squeeze([1]), m = Wd(d, p, a), e !== r && r.dispose(), n !== o && o.dispose(), p.dispose(), d.dispose(), f.dispose(), h.dispose(), [2, m];
28184
+ return h = v.sent(), p = h.squeeze([1]), m = Hd(d, p, a), e !== r && r.dispose(), n !== o && o.dispose(), p.dispose(), d.dispose(), f.dispose(), h.dispose(), [2, m];
28182
28185
  }
28183
28186
  });
28184
28187
  });
@@ -28203,7 +28206,7 @@ function Gg(e, n, t, r, o, a, i) {
28203
28206
  }), i != null && B(Zt(o), function() {
28204
28207
  return "Error in conv2dDerInput: pad must be an integer when using, dimRoundingMode " + i + " but got pad " + o + ".";
28205
28208
  });
28206
- var f = Pd(a), h = jo(s, t.shape, r, 1, o, i, !1, f), p = j.runKernelFunc(function(m, v) {
28209
+ var f = Bd(a), h = jo(s, t.shape, r, 1, o, i, !1, f), p = j.runKernelFunc(function(m, v) {
28207
28210
  var y = m.conv2dDerInput(u, t, h);
28208
28211
  return v([t, u]), y;
28209
28212
  }, { dy4D: u, filter: t }, function(m, v) {
@@ -28211,12 +28214,12 @@ function Gg(e, n, t, r, o, a, i) {
28211
28214
  return { dy4D: function() {
28212
28215
  return ir(m, y, r, o, a, 1, i);
28213
28216
  }, filter: function() {
28214
- return Hd(m, w, y.shape, r, o, a, i);
28217
+ return Ud(m, w, y.shape, r, o, a, i);
28215
28218
  } };
28216
28219
  });
28217
28220
  return l ? p.as3D(p.shape[1], p.shape[2], p.shape[3]) : p;
28218
28221
  }
28219
- function jl(e) {
28222
+ function Gl(e) {
28220
28223
  var n = function(a) {
28221
28224
  return typeof a == "number" ? [a, a, a] : a.length === 2 ? [a[0], a[1], 1] : a;
28222
28225
  }(e), t = n[0], r = n[1], o = n[2];
@@ -28279,7 +28282,7 @@ var AI = $({ conv1d_: function(e, n, t, r, o, a, i) {
28279
28282
  }), B(Wn(t, a), function() {
28280
28283
  return "Error in conv2D: Either strides or dilations must be 1. Got strides " + t + " and dilations '" + a + "'";
28281
28284
  });
28282
- var f = Pd(o), h = jo(l.shape, u.shape, t, a, r, i, !1, f), p = [u, l], m = j.runKernelFunc(function(v, y) {
28285
+ var f = Bd(o), h = jo(l.shape, u.shape, t, a, r, i, !1, f), p = [u, l], m = j.runKernelFunc(function(v, y) {
28283
28286
  var w = v.conv2d(l, u, h);
28284
28287
  return y([u, l]), w;
28285
28288
  }, { x: l, filter: u }, function(v, y) {
@@ -28289,7 +28292,7 @@ var AI = $({ conv1d_: function(e, n, t, r, o, a, i) {
28289
28292
  }), { x: function() {
28290
28293
  return Yg(g.shape, v, b, t, r, o);
28291
28294
  }, filter: function() {
28292
- return Hd(g, v, b.shape, t, r, o);
28295
+ return Ud(g, v, b.shape, t, r, o);
28293
28296
  } };
28294
28297
  }, "Conv2D", h, p);
28295
28298
  return c ? m.as3D(m.shape[1], m.shape[2], m.shape[3]) : m;
@@ -28303,7 +28306,7 @@ var AI = $({ conv1d_: function(e, n, t, r, o, a, i) {
28303
28306
  }), B(u.shape[4] === s.shape[3], function() {
28304
28307
  return "Error in conv3d: depth of input (" + u.shape[4] + ") must match input depth for filter " + s.shape[3] + ".";
28305
28308
  }), B(function(f, h) {
28306
- return jl(f) || jl(h);
28309
+ return Gl(f) || Gl(h);
28307
28310
  }(t, a), function() {
28308
28311
  return "Error in conv3D: Either strides or dilations must be 1. Got strides " + t + " and dilations '" + a + "'";
28309
28312
  }), B(o === "NDHWC", function() {
@@ -28313,7 +28316,7 @@ var AI = $({ conv1d_: function(e, n, t, r, o, a, i) {
28313
28316
  var p = f.conv3d(u, s, c);
28314
28317
  return h([u, s]), p;
28315
28318
  }, { x: u, $filter: s }, function(f, h) {
28316
- B(jl(a), function() {
28319
+ B(Gl(a), function() {
28317
28320
  return "Error in gradient of conv3D: dilation rates greater than 1 are not yet supported in gradients. Got dilations '" + a + "'";
28318
28321
  });
28319
28322
  var p = h[0], m = h[1];
@@ -28343,7 +28346,7 @@ var AI = $({ conv1d_: function(e, n, t, r, o, a, i) {
28343
28346
  } };
28344
28347
  });
28345
28348
  return l ? d.as4D(d.shape[1], d.shape[2], d.shape[3], d.shape[4]) : d;
28346
- } }), Hd = $({ conv2dDerFilter_: function(e, n, t, r, o, a, i) {
28349
+ } }), Ud = $({ conv2dDerFilter_: function(e, n, t, r, o, a, i) {
28347
28350
  a === void 0 && (a = "NHWC");
28348
28351
  var s = e;
28349
28352
  e.rank === 3 && (s = e.as4D(1, e.shape[0], e.shape[1], e.shape[2]));
@@ -28363,7 +28366,7 @@ var AI = $({ conv1d_: function(e, n, t, r, o, a, i) {
28363
28366
  }), i != null && B(Zt(o), function() {
28364
28367
  return "Error in conv2dDerFilter: pad must be an integer when using, dimRoundingMode " + i + " but got pad " + o + ".";
28365
28368
  });
28366
- var d = Pd(a), f = jo(s.shape, t, r, 1, o, i, !1, d);
28369
+ var d = Bd(a), f = jo(s.shape, t, r, 1, o, i, !1, d);
28367
28370
  return j.runKernelFunc(function(h) {
28368
28371
  return h.conv2dDerFilter(s, u, f);
28369
28372
  }, { x4D: s, dy4D: u });
@@ -28410,7 +28413,7 @@ var AI = $({ conv1d_: function(e, n, t, r, o, a, i) {
28410
28413
  return a.rank === 3 && (a = n.as4D(1, n.shape[0], n.shape[1], n.shape[2])), j.runKernelFunc(function(i) {
28411
28414
  return i.depthwiseConv2DDerFilter(o, a, r);
28412
28415
  }, { x4D: o, dy4D: a });
28413
- } }), Ud = $({ separableConv2d_: function(e, n, t, r, o, a, i) {
28416
+ } }), jd = $({ separableConv2d_: function(e, n, t, r, o, a, i) {
28414
28417
  a === void 0 && (a = [1, 1]), i === void 0 && (i = "NHWC");
28415
28418
  var s = M(e, "x", "separableConv2d"), u = M(n, "depthwiseFilter", "separableConv2d"), l = M(t, "pointwiseFilter", "separableConv2d"), c = s, d = !1;
28416
28419
  if (s.rank === 3 && (d = !0, c = s.as4D(1, s.shape[0], s.shape[1], s.shape[2])), i === "NCHW") throw new Error("separableConv2d currently does not support dataFormat NCHW; only NHWC is supported");
@@ -28928,7 +28931,7 @@ var jI = $({ all_: function(e, n, t) {
28928
28931
  } }), tT = $({ leakyRelu_: function(e, n) {
28929
28932
  n === void 0 && (n = 0.2);
28930
28933
  var t = M(e, "x", "leakyRelu");
28931
- return $d(Ce(n).mul(t), t);
28934
+ return Wd(Ce(n).mul(t), t);
28932
28935
  } }), o0 = $({ prelu_: function(e, n) {
28933
28936
  var t = M(e, "x", "prelu"), r = M(n, "alpha", "prelu");
28934
28937
  return j.runKernelFunc(function(o, a) {
@@ -28973,7 +28976,7 @@ var jI = $({ all_: function(e, n, t) {
28973
28976
  }, { $x: n }, function(t, r) {
28974
28977
  var o = r[0];
28975
28978
  return { $x: function() {
28976
- var a = o.greater(Ce(0)), i = Ce(qd), s = Ce(Vd), u = t.mul(s), l = t.mul(i).mul(o.toFloat().exp());
28979
+ var a = o.greater(Ce(0)), i = Ce(Vd), s = Ce(zd), u = t.mul(s), l = t.mul(i).mul(o.toFloat().exp());
28977
28980
  return zo(a, u, l);
28978
28981
  } };
28979
28982
  });
@@ -28992,7 +28995,7 @@ var jI = $({ all_: function(e, n, t) {
28992
28995
  return j.runKernelFunc(function(o) {
28993
28996
  return o.transpose(t, n);
28994
28997
  }, { x: t }, function(o) {
28995
- var a = Td(n);
28998
+ var a = Ad(n);
28996
28999
  return { x: function() {
28997
29000
  return o.transpose(a);
28998
29001
  } };
@@ -29083,7 +29086,7 @@ var jI = $({ all_: function(e, n, t) {
29083
29086
  h.forEach(function(v) {
29084
29087
  t[v] = n[v] + 1, r[v] = 1;
29085
29088
  });
29086
- var p = Fd(n, t, r), m = p.filter(function(v, y) {
29089
+ var p = Pd(n, t, r), m = p.filter(function(v, y) {
29087
29090
  return h.indexOf(y) === -1;
29088
29091
  });
29089
29092
  return r.every(function(v) {
@@ -29106,7 +29109,7 @@ var jI = $({ all_: function(e, n, t) {
29106
29109
  return vE(o, r, t), j.runKernelFunc(function(a) {
29107
29110
  return a.scatterND(r, o, t);
29108
29111
  }, { indices: r, updates: o }, null, "ScatterNd", { shape: t });
29109
- } }), jd = $({ fft_: function(e) {
29112
+ } }), Gd = $({ fft_: function(e) {
29110
29113
  B(e.dtype === "complex64", function() {
29111
29114
  return "The dtype for tf.spectral.fft() must be complex64 but got " + e.dtype + ".";
29112
29115
  });
@@ -29122,7 +29125,7 @@ var jI = $({ all_: function(e, n, t) {
29122
29125
  return j.runKernelFunc(function(o) {
29123
29126
  return o.ifft(r);
29124
29127
  }, { input: e }).reshape(e.shape);
29125
- } }), Gd = $({ rfft_: function(e, n) {
29128
+ } }), Kd = $({ rfft_: function(e, n) {
29126
29129
  B(e.dtype === "float32", function() {
29127
29130
  return "The dtype for rfft() must be real value but got " + e.dtype;
29128
29131
  });
@@ -29140,7 +29143,7 @@ var jI = $({ all_: function(e, n, t) {
29140
29143
  });
29141
29144
  s[e.shape.length - 1] = n - r, t = e.concat(Vt(s), e.shape.length - 1), r = n;
29142
29145
  } else t = e;
29143
- var u = t.zerosLike(), l = yn(t, u).as2D(o, r), c = jd(l), d = Math.floor(r / 2) + 1, f = or(c), h = _r(c), p = f.split([d, r - d], f.shape.length - 1), m = h.split([d, r - d], h.shape.length - 1), v = t.shape.slice();
29146
+ var u = t.zerosLike(), l = yn(t, u).as2D(o, r), c = Gd(l), d = Math.floor(r / 2) + 1, f = or(c), h = _r(c), p = f.split([d, r - d], f.shape.length - 1), m = h.split([d, r - d], h.shape.length - 1), v = t.shape.slice();
29144
29147
  return v[t.shape.length - 1] = d, yn(p[0], m[0]).reshape(v);
29145
29148
  } }), s0 = $({ irfft_: function(e) {
29146
29149
  var n = e.shape[e.shape.length - 1], t = e.size / n;
@@ -29150,7 +29153,7 @@ var jI = $({ all_: function(e, n, t) {
29150
29153
  }
29151
29154
  var a = [t, 2 * (n - 1)], i = or(e).as2D(t, n), s = _r(e).as2D(t, n), u = i.slice([0, 1], [t, n - 2]).reverse(1), l = s.slice([0, 1], [t, n - 2]).reverse(1).mul(Ce(-1)), c = i.concat(u, 1), d = s.concat(l, 1);
29152
29155
  return r = yn(c, d).as2D(a[0], a[1]), o = Js(r), or(o);
29153
- } }), cT = Object.freeze({ fft: jd, ifft: Js, rfft: Gd, irfft: s0 }), dT = $({ sparseToDense_: function(e, n, t, r) {
29156
+ } }), cT = Object.freeze({ fft: Gd, ifft: Js, rfft: Kd, irfft: s0 }), dT = $({ sparseToDense_: function(e, n, t, r) {
29154
29157
  r === void 0 && (r = 0);
29155
29158
  var o = M(e, "sparseIndices", "sparseToDense", "int32"), a = M(n, "sparseValues", "sparseToDense"), i = M(r, "defaultValue", "sparseToDense", a.dtype);
29156
29159
  return function(s, u, l, c) {
@@ -29199,11 +29202,11 @@ function u0(e, n, t) {
29199
29202
  }
29200
29203
  return tn(o, "float32");
29201
29204
  }
29202
- var Kd = $({ hannWindow_: function(e) {
29205
+ var Yd = $({ hannWindow_: function(e) {
29203
29206
  return u0(e, 0.5, 0.5);
29204
29207
  } }), l0 = $({ hammingWindow_: function(e) {
29205
29208
  return u0(e, 0.54, 0.46);
29206
- } }), Yd = $({ frame_: function(e, n, t, r, o) {
29209
+ } }), Xd = $({ frame_: function(e, n, t, r, o) {
29207
29210
  r === void 0 && (r = !1), o === void 0 && (o = 0);
29208
29211
  for (var a = 0, i = []; a + n <= e.size; ) i.push(Tr(e, a, n)), a += t;
29209
29212
  if (r) for (; a < e.size; ) {
@@ -29213,10 +29216,10 @@ var Kd = $({ hannWindow_: function(e) {
29213
29216
  return i.length === 0 ? uo([], [0, n]) : on(i).as2D(i.length, n);
29214
29217
  } }), c0 = $({ stft_: function(e, n, t, r, o) {
29215
29218
  var a;
29216
- o === void 0 && (o = Kd), r == null && (a = n, r = Math.floor(Math.pow(2, Math.ceil(Math.log(a) / Math.log(2)))));
29217
- for (var i = Yd(e, n, t), s = Dn(i, o(n)), u = [], l = 0; l < i.shape[0]; l++) u.push(Gd(s.slice([l, 0], [1, n]), r));
29219
+ o === void 0 && (o = Yd), r == null && (a = n, r = Math.floor(Math.pow(2, Math.ceil(Math.log(a) / Math.log(2)))));
29220
+ for (var i = Xd(e, n, t), s = Dn(i, o(n)), u = [], l = 0; l < i.shape[0]; l++) u.push(Kd(s.slice([l, 0], [1, n]), r));
29218
29221
  return on(u);
29219
- } }), vT = Object.freeze({ hannWindow: Kd, hammingWindow: l0, frame: Yd, stft: c0 }), Tn, mT = function(e, n, t) {
29222
+ } }), vT = Object.freeze({ hannWindow: Yd, hammingWindow: l0, frame: Xd, stft: c0 }), Tn, mT = function(e, n, t) {
29220
29223
  return t === void 0 && (t = 1), Me(this, void 0, void 0, function() {
29221
29224
  var r, o, a, i, s, u, l, c, d, f, h, p, m, v;
29222
29225
  return Fe(this, function(y) {
@@ -29390,7 +29393,7 @@ var ET = $({ bandPart_: function(e, n, t) {
29390
29393
  return "Gram-Schmidt: Non-unique lengths found in the input vectors: (" + e[u].shape[0] + " vs. " + t + ")";
29391
29394
  });
29392
29395
  }, o = 1; o < e.length; ++o) r(o);
29393
- } else n = !0, e = Dd(e, e.shape[0], 0).map(function(u) {
29396
+ } else n = !0, e = Md(e, e.shape[0], 0).map(function(u) {
29394
29397
  return ig(u, [0]);
29395
29398
  });
29396
29399
  B(e.length <= e[0].shape[0], function() {
@@ -29494,7 +29497,7 @@ var AT = $({ resizeBilinear_: function(e, n, t) {
29494
29497
  case 0:
29495
29498
  return a = M(e, "boxes", "nonMaxSuppressionAsync"), i = M(n, "scores", "nonMaxSuppressionAsync"), s = Mu(a, i, t, r, o), t = s.maxOutputSize, r = s.iouThreshold, o = s.scoreThreshold, [4, Promise.all([a.data(), i.data()])];
29496
29499
  case 1:
29497
- return u = f.sent(), l = u[0], c = u[1], d = Bd(l, c, t, r, o), a !== e && a.dispose(), i !== n && i.dispose(), [2, d];
29500
+ return u = f.sent(), l = u[0], c = u[1], d = Od(l, c, t, r, o), a !== e && a.dispose(), i !== n && i.dispose(), [2, d];
29498
29501
  }
29499
29502
  });
29500
29503
  });
@@ -29510,7 +29513,7 @@ var AT = $({ resizeBilinear_: function(e, n, t) {
29510
29513
  case 0:
29511
29514
  return i = M(e, "boxes", "nonMaxSuppressionAsync"), s = M(n, "scores", "nonMaxSuppressionAsync"), u = Mu(i, s, t, r, o, a), t = u.maxOutputSize, r = u.iouThreshold, o = u.scoreThreshold, a = u.softNmsSigma, [4, Promise.all([i.data(), s.data()])];
29512
29515
  case 1:
29513
- return l = h.sent(), c = l[0], d = l[1], f = Od(c, d, t, r, o, a), i !== e && i.dispose(), s !== n && s.dispose(), [2, f];
29516
+ return l = h.sent(), c = l[0], d = l[1], f = Nd(c, d, t, r, o, a), i !== e && i.dispose(), s !== n && s.dispose(), [2, f];
29514
29517
  }
29515
29518
  });
29516
29519
  });
@@ -29533,16 +29536,16 @@ var AT = $({ resizeBilinear_: function(e, n, t) {
29533
29536
  }), j.runKernelFunc(function(c, d) {
29534
29537
  return c.cropAndResize(i, s, u, r, o, a);
29535
29538
  }, { images: i, boxes: s, boxInd: u }, null, "CropAndResize", { method: o, extrapolationValue: a, cropSize: r });
29536
- } }), Xd = Object.freeze({ resizeBilinear: AT, resizeNearestNeighbor: DT, nonMaxSuppression: MT, nonMaxSuppressionAsync: FT, nonMaxSuppressionWithScore: PT, nonMaxSuppressionWithScoreAsync: BT, cropAndResize: OT }), Qd = function(e, n) {
29539
+ } }), Qd = Object.freeze({ resizeBilinear: AT, resizeNearestNeighbor: DT, nonMaxSuppression: MT, nonMaxSuppressionAsync: FT, nonMaxSuppressionWithScore: PT, nonMaxSuppressionWithScoreAsync: BT, cropAndResize: OT }), Zd = function(e, n) {
29537
29540
  return !(e > 0) || n === "linear";
29538
- }, Zd = function(e, n, t) {
29541
+ }, Jd = function(e, n, t) {
29539
29542
  if (t == null || t === "linear") return e;
29540
29543
  if (t === "relu") return e.mul(n.step());
29541
29544
  throw new Error("Gradient for activation " + t + " has not been implemented yet.");
29542
- }, Jd = function(e, n) {
29545
+ }, ef = function(e, n) {
29543
29546
  var t = n, r = sn(e.shape, n.shape);
29544
29547
  return r.length > 0 && (t = t.sum(r)), t.reshape(e.shape);
29545
- }, ef = function(e, n, t) {
29548
+ }, tf = function(e, n, t) {
29546
29549
  if (n === "linear") return e;
29547
29550
  if (n === "relu") return Ut(e);
29548
29551
  if (n === "elu") return r0(e);
@@ -29551,9 +29554,9 @@ var AT = $({ resizeBilinear_: function(e, n, t) {
29551
29554
  throw new Error("Unknown fused activation " + n + ".");
29552
29555
  }, NT = $({ fusedMatMul_: function(e) {
29553
29556
  var n, t = e.a, r = e.b, o = e.transposeA, a = o !== void 0 && o, i = e.transposeB, s = i !== void 0 && i, u = e.bias, l = e.activation, c = l === void 0 ? "linear" : l, d = e.preluActivationWeights;
29554
- if (Qd(j.state.gradientDepth, c) === !1) {
29557
+ if (Zd(j.state.gradientDepth, c) === !1) {
29555
29558
  var f = Au(t, r, a, s);
29556
- return u != null && (f = ft(f, u)), ef(f, c, d);
29559
+ return u != null && (f = ft(f, u)), tf(f, c, d);
29557
29560
  }
29558
29561
  var h = M(t, "a", "fused matMul"), p = M(r, "b", "fused matMul");
29559
29562
  n = jt(h, p), h = n[0], p = n[1];
@@ -29574,9 +29577,9 @@ var AT = $({ resizeBilinear_: function(e, n, t) {
29574
29577
  var z = D.fusedBatchMatMul({ a: k, b: T, transposeA: a, transposeB: s, bias: S, activation: c, preluActivationWeights: E });
29575
29578
  return O([k, T, z]), z;
29576
29579
  }, A, function(D, O) {
29577
- var z = O[0], F = O[1], P = O[2], H = Zd(D, P, c), K = {};
29580
+ var z = O[0], F = O[1], P = O[2], H = Jd(D, P, c), K = {};
29578
29581
  return u != null && (K = { bias: function() {
29579
- return Jd(S, H);
29582
+ return ef(S, H);
29580
29583
  } }), Object.assign(a || s ? !a && s ? { a: function() {
29581
29584
  return H.matMul(F, !1, !1);
29582
29585
  }, b: function() {
@@ -29597,9 +29600,9 @@ var AT = $({ resizeBilinear_: function(e, n, t) {
29597
29600
  }, "_FusedMatMul", { transposeA: a, transposeB: s, activation: c }, q, [!0]).reshape(R);
29598
29601
  } }), LT = $({ fusedConv2d_: function(e) {
29599
29602
  var n = e.x, t = e.filter, r = e.strides, o = e.pad, a = e.dataFormat, i = a === void 0 ? "NHWC" : a, s = e.dilations, u = s === void 0 ? [1, 1] : s, l = e.dimRoundingMode, c = e.bias, d = e.activation, f = d === void 0 ? "linear" : d, h = e.preluActivationWeights;
29600
- if (f = f || "linear", Qd(j.state.gradientDepth, f) === !1) {
29603
+ if (f = f || "linear", Zd(j.state.gradientDepth, f) === !1) {
29601
29604
  var p = ir(n, t, r, o, i, u, l);
29602
- return c != null && (p = ft(p, c)), ef(p, f, h);
29605
+ return c != null && (p = ft(p, c)), tf(p, f, h);
29603
29606
  }
29604
29607
  var m = M(n, "x", "conv2d"), v = M(t, "filter", "conv2d"), y = m, w = !1;
29605
29608
  m.rank === 3 && (w = !0, y = m.as4D(1, m.shape[0], m.shape[1], m.shape[2])), B(y.rank === 4, function() {
@@ -29623,25 +29626,25 @@ var AT = $({ resizeBilinear_: function(e, n, t) {
29623
29626
  var T = R.fusedConv2d({ input: y, filter: v, convInfo: x, bias: b, activation: f, preluActivationWeights: g });
29624
29627
  return k([v, y, T]), T;
29625
29628
  }, C, function(R, k) {
29626
- var T = k, A = T[0], q = T[1], D = T[2], O = Zd(R, D, f);
29629
+ var T = k, A = T[0], q = T[1], D = T[2], O = Jd(R, D, f);
29627
29630
  B(Pa(u), function() {
29628
29631
  return "Error in gradient of fused conv2D: dilation rates greater than 1 are not yet supported in gradients. Got dilations '" + u + "'";
29629
29632
  });
29630
29633
  var z = {};
29631
29634
  return c != null && (z = { bias: function() {
29632
- return Jd(b, O);
29635
+ return ef(b, O);
29633
29636
  } }), Object.assign({ x: function() {
29634
29637
  return Yg(q.shape, O, A, r, o);
29635
29638
  }, filter: function() {
29636
- return Hd(q, O, A.shape, r, o);
29639
+ return Ud(q, O, A.shape, r, o);
29637
29640
  } }, z);
29638
29641
  }, "FusedConv2D", { convInfo: x, activation: f }, S, [!0]);
29639
29642
  return w ? E.as3D(E.shape[1], E.shape[2], E.shape[3]) : E;
29640
29643
  } }), qT = $({ fusedDepthwiseConv2d_: function(e) {
29641
29644
  var n = e.x, t = e.filter, r = e.strides, o = e.pad, a = e.dataFormat, i = a === void 0 ? "NHWC" : a, s = e.dilations, u = s === void 0 ? [1, 1] : s, l = e.dimRoundingMode, c = e.bias, d = e.activation, f = d === void 0 ? "linear" : d, h = e.preluActivationWeights;
29642
- if (Qd(j.state.gradientDepth, f) === !1) {
29645
+ if (Zd(j.state.gradientDepth, f) === !1) {
29643
29646
  var p = Tu(n, t, r, o, i, u, l);
29644
- return c != null && (p = ft(p, c)), ef(p, f, h);
29647
+ return c != null && (p = ft(p, c)), tf(p, f, h);
29645
29648
  }
29646
29649
  var m = M(n, "x", "depthwiseConv2d"), v = M(t, "filter", "depthwiseConv2d"), y = m, w = !1;
29647
29650
  m.rank === 3 && (w = !0, y = m.as4D(1, m.shape[0], m.shape[1], m.shape[2])), B(y.rank === 4, function() {
@@ -29666,9 +29669,9 @@ var AT = $({ resizeBilinear_: function(e, n, t) {
29666
29669
  B(Pa(u), function() {
29667
29670
  return "Error in gradient of fused depthwiseConv2d: dilation rates greater than 1 are not yet supported. Got dilations '" + u + "'";
29668
29671
  });
29669
- var T = k[0], A = k[1], q = k[2], D = Zd(R, q, f), O = {};
29672
+ var T = k[0], A = k[1], q = k[2], D = Jd(R, q, f), O = {};
29670
29673
  return c != null && (O = { bias: function() {
29671
- return Jd(b, D);
29674
+ return ef(b, D);
29672
29675
  } }), Object.assign({ x: function() {
29673
29676
  return Xg(A.shape, D, T, x);
29674
29677
  }, filter: function() {
@@ -29676,7 +29679,7 @@ var AT = $({ resizeBilinear_: function(e, n, t) {
29676
29679
  } }, O);
29677
29680
  }, "FusedDepthwiseConv2D", { convInfo: x, activation: f }, S, [!0]);
29678
29681
  return w ? E.as3D(E.shape[1], E.shape[2], E.shape[3]) : E;
29679
- } }), VT = Object.freeze({ matMul: NT, conv2d: LT, depthwiseConv2d: qT }), zT = Object.freeze({ image: Xd, linalg: TT, losses: ST, spectral: cT, fused: VT, signal: vT, square: x5, squaredDifference: Fg, conv1d: AI, conv2d: ir, conv3d: DI, depthwiseConv2d: Tu, separableConv2d: Ud, conv2dTranspose: MI, conv3dTranspose: FI, op: $, batchNormalization2d: Q5, batchNormalization3d: Z5, batchNormalization4d: J5, batchNormalization: eI, batchNorm: qg, batchNorm2d: tI, batchNorm3d: nI, batchNorm4d: rI, booleanMaskAsync: TI, complex: yn, real: or, imag: _r, concat: on, concat1d: V4, concat2d: z4, concat3d: $4, concat4d: W4, split: Dd, matMul: Au, dot: PI, outerProduct: BI, reverse: Oi, reverse1d: OI, reverse2d: NI, reverse3d: LI, reverse4d: qI, maxPool: dn, avgPool: Ni, pool: VI, maxPool3d: zI, avgPool3d: $I, slice: Tr, slice1d: WI, slice2d: HI, slice3d: e0, slice4d: UI, abs: C5, acos: k5, acosh: _5, asin: S5, asinh: E5, atan: R5, atanh: I5, ceil: T5, clipByValue: zd, cos: A5, cosh: D5, erf: M5, exp: Lc, expm1: F5, floor: P5, log: B5, log1p: O5, logSigmoid: N5, neg: Qs, reciprocal: L5, round: q5, rsqrt: Pg, sigmoid: Bg, sign: V5, isNaN: z5, isInf: $5, isFinite: W5, sin: H5, sinh: U5, softplus: j5, sqrt: G5, step: K5, tan: Y5, tanh: X5, all: jI, any: GI, argMax: KI, argMin: YI, logSumExp: XI, max: Du, mean: QI, min: ZI, moments: JI, sum: n0, prod: eT, equal: Hg, equalStrict: bI, greater: wI, greaterEqual: Ug, greaterEqualStrict: xI, greaterStrict: CI, less: kI, lessEqual: _I, lessEqualStrict: SI, lessStrict: EI, notEqual: RI, notEqualStrict: II, add: ft, addN: iI, addStrict: sI, atan2: uI, div: lr, divNoNan: lI, divStrict: cI, floorDiv: $g, maximum: $d, maximumStrict: dI, minimum: Wg, minimumStrict: fI, mod: hI, modStrict: pI, mul: Dn, mulStrict: vI, pow: Zs, powStrict: mI, squaredDifferenceStrict: gI, sub: un, subStrict: yI, elu: r0, leakyRelu: tT, prelu: o0, relu: Ut, relu6: a0, selu: nT, logicalAnd: Iu, logicalNot: oI, logicalOr: Vg, logicalXor: aI, where: zo, whereAsync: zg, buffer: ot, print: Z4, batchToSpaceND: ng, broadcastTo: J4, cast: eE, clone: tE, cumsum: nE, depthToSpace: rE, expandDims: rr, eye: rg, multinomial: oE, oneHot: Pc, pad: Uo, pad1d: aE, pad2d: iE, pad3d: sE, pad4d: uE, rand: lE, randomNormal: cE, randomGamma: dE, randomUniform: og, reshape: cr, spaceToBatchND: ag, squeeze: ig, stack: Zn, tile: ba, truncatedNormal: fE, unstack: an, setdiff1dAsync: hE, fill: Ir, linspace: q4, ones: Ua, range: Ws, scalar: Ce, tensor: wn, tensor1d: tn, tensor2d: uo, tensor3d: Ad, tensor4d: Pn, tensor5d: O4, tensor6d: N4, variable: L4, zeros: Vt, onesLike: tg, zerosLike: yt, transpose: ho, softmax: jr, logSoftmax: wE, localResponseNormalization: rT, norm: i0, gather: Wd, unsortedSegmentSum: jg, basicLSTMCell: oT, multiRNNCell: aT, movingAverage: iT, stridedSlice: sT, topk: uT, scatterND: lT, fft: jd, ifft: Js, rfft: Gd, irfft: s0, sparseToDense: dT, gatherND: fT, diag: hT, dropout: pT, hannWindow: Kd, hammingWindow: l0, frame: Yd, stft: c0, inTopKAsync: mT });
29682
+ } }), VT = Object.freeze({ matMul: NT, conv2d: LT, depthwiseConv2d: qT }), zT = Object.freeze({ image: Qd, linalg: TT, losses: ST, spectral: cT, fused: VT, signal: vT, square: x5, squaredDifference: Fg, conv1d: AI, conv2d: ir, conv3d: DI, depthwiseConv2d: Tu, separableConv2d: jd, conv2dTranspose: MI, conv3dTranspose: FI, op: $, batchNormalization2d: Q5, batchNormalization3d: Z5, batchNormalization4d: J5, batchNormalization: eI, batchNorm: qg, batchNorm2d: tI, batchNorm3d: nI, batchNorm4d: rI, booleanMaskAsync: TI, complex: yn, real: or, imag: _r, concat: on, concat1d: V4, concat2d: z4, concat3d: $4, concat4d: W4, split: Md, matMul: Au, dot: PI, outerProduct: BI, reverse: Oi, reverse1d: OI, reverse2d: NI, reverse3d: LI, reverse4d: qI, maxPool: dn, avgPool: Ni, pool: VI, maxPool3d: zI, avgPool3d: $I, slice: Tr, slice1d: WI, slice2d: HI, slice3d: e0, slice4d: UI, abs: C5, acos: k5, acosh: _5, asin: S5, asinh: E5, atan: R5, atanh: I5, ceil: T5, clipByValue: $d, cos: A5, cosh: D5, erf: M5, exp: qc, expm1: F5, floor: P5, log: B5, log1p: O5, logSigmoid: N5, neg: Qs, reciprocal: L5, round: q5, rsqrt: Pg, sigmoid: Bg, sign: V5, isNaN: z5, isInf: $5, isFinite: W5, sin: H5, sinh: U5, softplus: j5, sqrt: G5, step: K5, tan: Y5, tanh: X5, all: jI, any: GI, argMax: KI, argMin: YI, logSumExp: XI, max: Du, mean: QI, min: ZI, moments: JI, sum: n0, prod: eT, equal: Hg, equalStrict: bI, greater: wI, greaterEqual: Ug, greaterEqualStrict: xI, greaterStrict: CI, less: kI, lessEqual: _I, lessEqualStrict: SI, lessStrict: EI, notEqual: RI, notEqualStrict: II, add: ft, addN: iI, addStrict: sI, atan2: uI, div: lr, divNoNan: lI, divStrict: cI, floorDiv: $g, maximum: Wd, maximumStrict: dI, minimum: Wg, minimumStrict: fI, mod: hI, modStrict: pI, mul: Dn, mulStrict: vI, pow: Zs, powStrict: mI, squaredDifferenceStrict: gI, sub: un, subStrict: yI, elu: r0, leakyRelu: tT, prelu: o0, relu: Ut, relu6: a0, selu: nT, logicalAnd: Iu, logicalNot: oI, logicalOr: Vg, logicalXor: aI, where: zo, whereAsync: zg, buffer: ot, print: Z4, batchToSpaceND: ng, broadcastTo: J4, cast: eE, clone: tE, cumsum: nE, depthToSpace: rE, expandDims: rr, eye: rg, multinomial: oE, oneHot: Bc, pad: Uo, pad1d: aE, pad2d: iE, pad3d: sE, pad4d: uE, rand: lE, randomNormal: cE, randomGamma: dE, randomUniform: og, reshape: cr, spaceToBatchND: ag, squeeze: ig, stack: Zn, tile: ba, truncatedNormal: fE, unstack: an, setdiff1dAsync: hE, fill: Ir, linspace: q4, ones: Ua, range: Ws, scalar: Ce, tensor: wn, tensor1d: tn, tensor2d: uo, tensor3d: Dd, tensor4d: Pn, tensor5d: O4, tensor6d: N4, variable: L4, zeros: Vt, onesLike: tg, zerosLike: yt, transpose: ho, softmax: jr, logSoftmax: wE, localResponseNormalization: rT, norm: i0, gather: Hd, unsortedSegmentSum: jg, basicLSTMCell: oT, multiRNNCell: aT, movingAverage: iT, stridedSlice: sT, topk: uT, scatterND: lT, fft: Gd, ifft: Js, rfft: Kd, irfft: s0, sparseToDense: dT, gatherND: fT, diag: hT, dropout: pT, hannWindow: Yd, hammingWindow: l0, frame: Xd, stft: c0, inTopKAsync: mT });
29680
29683
  function de(e, n) {
29681
29684
  Array.isArray(e) || (e = [e]), e.forEach(function(t) {
29682
29685
  t != null && B(t.dtype !== "complex64", function() {
@@ -29684,7 +29687,7 @@ function de(e, n) {
29684
29687
  });
29685
29688
  });
29686
29689
  }
29687
- function Gl(e, n, t, r) {
29690
+ function Kl(e, n, t, r) {
29688
29691
  if (t === "linear") return e.linear(n);
29689
29692
  if (t === "relu") return e.relu(n);
29690
29693
  if (t === "elu") return e.elu(n);
@@ -29716,7 +29719,7 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
29716
29719
  });
29717
29720
  }, n.prototype.readSync = function(t) {
29718
29721
  var r = this.data.get(t), o = r.dtype, a = r.complexTensors;
29719
- return o === "complex64" ? Nc(this.readSync(a.real.dataId), this.readSync(a.imag.dataId)) : this.data.get(t).values;
29722
+ return o === "complex64" ? Lc(this.readSync(a.real.dataId), this.readSync(a.imag.dataId)) : this.data.get(t).values;
29720
29723
  }, n.prototype.bufferSync = function(t) {
29721
29724
  var r = this.readSync(t.dataId), o = r;
29722
29725
  if (t.dtype === "string") try {
@@ -29765,7 +29768,7 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
29765
29768
  return s.toTensor();
29766
29769
  }, n.prototype.stridedSlice = function(t, r, o, a) {
29767
29770
  de(t, "stridedSlice");
29768
- var i = Fd(r, o, a);
29771
+ var i = Pd(r, o, a);
29769
29772
  if (i.some(function(h) {
29770
29773
  return h === 0;
29771
29774
  })) return wn([], i);
@@ -29862,7 +29865,7 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
29862
29865
  return x.toTensor();
29863
29866
  }, n.prototype.fusedBatchMatMul = function(t) {
29864
29867
  var r = t.a, o = t.b, a = t.transposeA, i = t.transposeB, s = t.bias, u = t.activation, l = t.preluActivationWeights, c = this.batchMatMul(r, o, a, i);
29865
- return s && (c = this.add(c, s)), u && (c = Gl(this, c, u, l)), c;
29868
+ return s && (c = this.add(c, s)), u && (c = Kl(this, c, u, l)), c;
29866
29869
  }, n.prototype.multiply = function(t, r) {
29867
29870
  return t.dtype === "complex64" || r.dtype === "complex64" ? this.broadcastedBinaryComplexOp(t.cast("complex64"), r.cast("complex64"), function(o, a, i, s) {
29868
29871
  return { real: o * i - a * s, imag: o * s + a * i };
@@ -29981,7 +29984,7 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
29981
29984
  }, n.prototype.where = function(t) {
29982
29985
  de([t], "where");
29983
29986
  var r = this.readSync(t.dataId);
29984
- return Nd(t.shape, r);
29987
+ return Ld(t.shape, r);
29985
29988
  }, n.prototype.topk = function(t, r, o) {
29986
29989
  return de(t, "topk"), xg(this.readSync(t.dataId), t.shape, t.dtype, r);
29987
29990
  }, n.prototype.min = function(t, r) {
@@ -30143,7 +30146,7 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
30143
30146
  return this.makeOutput(o, r.shape, "float32");
30144
30147
  }, n.prototype.selu = function(t) {
30145
30148
  de(t, "selu");
30146
- for (var r = qd, o = Vd, a = new Float32Array(t.size), i = this.readSync(t.dataId), s = 0; s < i.length; ++s) {
30149
+ for (var r = Vd, o = zd, a = new Float32Array(t.size), i = this.readSync(t.dataId), s = 0; s < i.length; ++s) {
30147
30150
  var u = i[s];
30148
30151
  a[s] = u >= 0 ? o * u : r * (Math.exp(u) - 1);
30149
30152
  }
@@ -30247,7 +30250,7 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
30247
30250
  return this.makeOutput(o, t.shape, "float32");
30248
30251
  }, n.prototype.fusedConv2d = function(t) {
30249
30252
  var r = t.input, o = t.filter, a = t.convInfo, i = t.bias, s = t.activation, u = t.preluActivationWeights, l = this.conv2d(r, o, a);
30250
- return i && (l = this.add(l, i)), s && (l = Gl(this, l, s, u)), l;
30253
+ return i && (l = this.add(l, i)), s && (l = Kl(this, l, s, u)), l;
30251
30254
  }, n.prototype.conv2d = function(t, r, o) {
30252
30255
  de([t, r], "conv2d");
30253
30256
  for (var a = o.filterHeight, i = o.filterWidth, s = o.dilationHeight, u = o.dilationWidth, l = o.padInfo.left, c = o.padInfo.top, d = o.dataFormat === "channelsLast", f = ot(o.outShape, t.dtype), h = t.strides[0], p = d ? t.strides[1] : t.strides[2], m = d ? t.strides[2] : 1, v = d ? 1 : t.strides[1], y = f.strides[0], w = d ? f.strides[1] : f.strides[2], b = d ? f.strides[2] : 1, g = d ? 1 : f.strides[1], x = this.readSync(t.dataId), C = this.readSync(r.dataId), S = f.values, E = 0; E < o.batchSize; ++E) for (var R = E * h, k = E * y, T = 0; T < o.outHeight; ++T) for (var A = k + T * w, q = T * o.strideHeight - c, D = 0; D < a; D++) {
@@ -30312,7 +30315,7 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
30312
30315
  return d.toTensor();
30313
30316
  }, n.prototype.fusedDepthwiseConv2D = function(t) {
30314
30317
  var r = t.input, o = t.filter, a = t.convInfo, i = t.bias, s = t.activation, u = t.preluActivationWeights, l = this.depthwiseConv2D(r, o, a);
30315
- return i && (l = this.add(l, i)), s && (l = Gl(this, l, s, u)), l;
30318
+ return i && (l = this.add(l, i)), s && (l = Kl(this, l, s, u)), l;
30316
30319
  }, n.prototype.depthwiseConv2D = function(t, r, o) {
30317
30320
  de([t, r], "depthwiseConv2D");
30318
30321
  for (var a = o.filterHeight, i = o.filterWidth, s = o.dilationHeight, u = o.dilationWidth, l = o.padInfo.left, c = o.padInfo.top, d = o.outChannels / o.inChannels, f = ot(o.outShape, t.dtype), h = this.readSync(t.dataId), p = this.readSync(r.dataId), m = f.values, v = 0; v < o.batchSize; ++v) for (var y = v * t.strides[0], w = v * f.strides[0], b = 0; b < o.outHeight; ++b) for (var g = w + b * f.strides[1], x = b * o.strideHeight - l, C = 0; C < a; ++C) {
@@ -30535,7 +30538,7 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
30535
30538
  }, n.prototype.cast = function(t, r) {
30536
30539
  return mg(t, r, this);
30537
30540
  }, n.prototype.reshape = function(t, r) {
30538
- return Oc(t, r);
30541
+ return Nc(t, r);
30539
30542
  }, n.prototype.avgPool = function(t, r) {
30540
30543
  return de(t, "avgPool"), this.pool(t, r, "avg").toFloat();
30541
30544
  }, n.prototype.resizeBilinear = function(t, r, o, a) {
@@ -30630,7 +30633,7 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
30630
30633
  for (var s = this.readSync(t.dataId), u = 0; u < t.size; ++u) s[u] >= 0 && s[u] < r && (i[u * r + s[u]] = o);
30631
30634
  return uo(i, [t.size, r], "int32");
30632
30635
  }, n.prototype.nonMaxSuppression = function(t, r, o, a, i) {
30633
- return de(t, "nonMaxSuppression"), Bd(this.readSync(t.dataId), this.readSync(r.dataId), o, a, i);
30636
+ return de(t, "nonMaxSuppression"), Od(this.readSync(t.dataId), this.readSync(r.dataId), o, a, i);
30634
30637
  }, n.prototype.fft = function(t) {
30635
30638
  return this.fftBatch(t, !1);
30636
30639
  }, n.prototype.ifft = function(t) {
@@ -30824,10 +30827,10 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
30824
30827
  j.registerBackend("cpu", function() {
30825
30828
  return new $T();
30826
30829
  }, 1);
30827
- for (var Kl = 0, Ap = [{ kernelName: "NonMaxSuppressionV5", backendName: "cpu", kernelFunc: function(e) {
30830
+ for (var Yl = 0, Ap = [{ kernelName: "NonMaxSuppressionV5", backendName: "cpu", kernelFunc: function(e) {
30828
30831
  var n = e.inputs, t = e.backend, r = e.attrs, o = n, a = o.boxes, i = o.scores, s = r, u = s.maxOutputSize, l = s.iouThreshold, c = s.scoreThreshold, d = s.softNmsSigma, f = t;
30829
30832
  de(a, "NonMaxSuppressionWithScore");
30830
- var h = Od(f.data.get(a.dataId).values, f.data.get(i.dataId).values, u, l, c, d);
30833
+ var h = Nd(f.data.get(a.dataId).values, f.data.get(i.dataId).values, u, l, c, d);
30831
30834
  return [h.selectedIndices, h.selectedScores];
30832
30835
  } }, { kernelName: "Square", backendName: "cpu", kernelFunc: function(e) {
30833
30836
  var n = e.inputs, t = e.backend, r = n.x, o = t;
@@ -30864,8 +30867,8 @@ for (var Kl = 0, Ap = [{ kernelName: "NonMaxSuppressionV5", backendName: "cpu",
30864
30867
  return p * p;
30865
30868
  }), c = l[0], d = l[1];
30866
30869
  return { dataId: i.write(c, d, o.dtype), shape: d, dtype: o.dtype };
30867
- } }]; Kl < Ap.length; Kl++)
30868
- $m(Ap[Kl]);
30870
+ } }]; Yl < Ap.length; Yl++)
30871
+ $m(Ap[Yl]);
30869
30872
  var oa, WT = function(e) {
30870
30873
  this.variableNames = ["A"];
30871
30874
  var n = In(), t = e[0], r = e[1];
@@ -30931,7 +30934,7 @@ var oa, WT = function(e) {
30931
30934
  }
30932
30935
  `;
30933
30936
  };
30934
- for (var Yl = 0, Dp = [{ kernelName: "FromPixels", backendName: "webgl", kernelFunc: function(e) {
30937
+ for (var Xl = 0, Dp = [{ kernelName: "FromPixels", backendName: "webgl", kernelFunc: function(e) {
30935
30938
  var n = e.inputs, t = e.backend, r = e.attrs, o = n.pixels, a = r.numChannels, i = typeof HTMLVideoElement < "u" && o instanceof HTMLVideoElement, s = typeof HTMLImageElement < "u" && o instanceof HTMLImageElement, u = i ? [o.videoWidth, o.videoHeight] : [o.width, o.height], l = u[0], c = u[1], d = [c, l], f = [c, l, a];
30936
30939
  (s || i) && (oa == null && (oa = document.createElement("canvas").getContext("2d")), oa.canvas.width = l, oa.canvas.height = c, oa.drawImage(o, 0, 0, l, c), o = oa.canvas);
30937
30940
  var h = t.makeTensorInfo(d, "int32");
@@ -30941,7 +30944,7 @@ for (var Yl = 0, Dp = [{ kernelName: "FromPixels", backendName: "webgl", kernelF
30941
30944
  } }, { kernelName: "NonMaxSuppressionV5", backendName: "webgl", kernelFunc: function(e) {
30942
30945
  var n = e.inputs, t = e.backend, r = e.attrs;
30943
30946
  zs("tf.nonMaxSuppression() in webgl locks the UI thread. Call tf.nonMaxSuppressionAsync() instead");
30944
- var o = n, a = o.boxes, i = o.scores, s = r, u = s.maxOutputSize, l = s.iouThreshold, c = s.scoreThreshold, d = s.softNmsSigma, f = t, h = Od(f.readSync(a.dataId), f.readSync(i.dataId), u, l, c, d);
30947
+ var o = n, a = o.boxes, i = o.scores, s = r, u = s.maxOutputSize, l = s.iouThreshold, c = s.scoreThreshold, d = s.softNmsSigma, f = t, h = Nd(f.readSync(a.dataId), f.readSync(i.dataId), u, l, c, d);
30945
30948
  return [h.selectedIndices, h.selectedScores];
30946
30949
  } }, { kernelName: "Square", backendName: "webgl", kernelFunc: function(e) {
30947
30950
  var n = e.inputs, t = e.backend, r = n.x, o = t, a = new lt(r.shape, "return x * x;");
@@ -30949,9 +30952,9 @@ for (var Yl = 0, Dp = [{ kernelName: "FromPixels", backendName: "webgl", kernelF
30949
30952
  } }, { kernelName: mi, backendName: "webgl", kernelFunc: function(e) {
30950
30953
  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 Kt("return (a - b) * (a - b);", o.shape, a.shape);
30951
30954
  return i.compileAndRun(s, [o, a]);
30952
- } }]; Yl < Dp.length; Yl++)
30953
- $m(Dp[Yl]);
30954
- for (var Xl = 0, Mp = [{ kernelName: "Square", gradFunc: function(e, n) {
30955
+ } }]; Xl < Dp.length; Xl++)
30956
+ $m(Dp[Xl]);
30957
+ for (var Ql = 0, Mp = [{ kernelName: "Square", gradFunc: function(e, n) {
30955
30958
  var t = n[0];
30956
30959
  return { x: function() {
30957
30960
  return e.mul(t.toFloat().mul(2));
@@ -30963,8 +30966,8 @@ for (var Xl = 0, Mp = [{ kernelName: "Square", gradFunc: function(e, n) {
30963
30966
  }, b: function() {
30964
30967
  return Dn(e, Dn(o, un(r, t)));
30965
30968
  } };
30966
- } }]; Xl < Mp.length; Xl++)
30967
- zS(Mp[Xl]);
30969
+ } }]; Ql < Mp.length; Ql++)
30970
+ zS(Mp[Ql]);
30968
30971
  var UT = function() {
30969
30972
  function e() {
30970
30973
  }
@@ -30980,14 +30983,14 @@ var UT = function() {
30980
30983
  }, e;
30981
30984
  }();
30982
30985
  ie().get("IS_BROWSER") && ie().setPlatform("browser", new UT());
30983
- var Ql, jT = function() {
30986
+ var Zl, jT = function() {
30984
30987
  return require("node-fetch");
30985
30988
  }, GT = function() {
30986
30989
  function e() {
30987
30990
  this.util = require("util"), this.textEncoder = new this.util.TextEncoder();
30988
30991
  }
30989
30992
  return e.prototype.fetch = function(n, t) {
30990
- return ie().global.fetch != null ? ie().global.fetch(n, t) : (Ql == null && (Ql = jT()), Ql(n, t));
30993
+ return ie().global.fetch != null ? ie().global.fetch(n, t) : (Zl == null && (Zl = jT()), Zl(n, t));
30991
30994
  }, e.prototype.now = function() {
30992
30995
  var n = process.hrtime();
30993
30996
  return 1e3 * n[0] + n[1] / 1e6;
@@ -30999,14 +31002,14 @@ var Ql, jT = function() {
30999
31002
  }, e;
31000
31003
  }();
31001
31004
  ie().get("IS_NODE") && ie().setPlatform("node", new GT());
31002
- var qc = { float32: 4, int32: 4, uint16: 2, uint8: 1, bool: 1 }, eu = 4;
31005
+ var Vc = { float32: 4, int32: 4, uint16: 2, uint8: 1, bool: 1 }, eu = 4;
31003
31006
  function d0(e, n) {
31004
31007
  for (var t = {}, r = 0, o = function(s) {
31005
31008
  var u = s.name, l = s.dtype, c = s.shape, d = Be(c), f = void 0;
31006
31009
  if ("quantization" in s) {
31007
31010
  var h = s.quantization;
31008
31011
  if (h.dtype !== "uint8" && h.dtype !== "uint16") throw new Error("Weight " + s.name + " has unknown quantization dtype " + h.dtype + ". Supported quantization dtypes are: 'uint8' and 'uint16'.");
31009
- var p = qc[h.dtype], m = e.slice(r, r + d * p), v = h.dtype === "uint8" ? new Uint8Array(m) : new Uint16Array(m);
31012
+ var p = Vc[h.dtype], m = e.slice(r, r + d * p), v = h.dtype === "uint8" ? new Uint8Array(m) : new Uint16Array(m);
31010
31013
  if (l === "float32") f = Float32Array.from(v, function(C) {
31011
31014
  return C * h.scale + h.min;
31012
31015
  });
@@ -31027,7 +31030,7 @@ function d0(e, n) {
31027
31030
  f.push(g), r += b;
31028
31031
  }
31029
31032
  } else {
31030
- var x = qc[l];
31033
+ var x = Vc[l];
31031
31034
  if (m = e.slice(r, r + d * x), l === "float32") f = new Float32Array(m);
31032
31035
  else if (l === "int32") f = new Int32Array(m);
31033
31036
  else {
@@ -31052,11 +31055,11 @@ function KT(e) {
31052
31055
  r.set(new Uint8Array(a.buffer), o), o += a.byteLength;
31053
31056
  }), r.buffer;
31054
31057
  }
31055
- var Vc = typeof Buffer < "u" && (typeof Blob > "u" || typeof atob > "u" || typeof btoa > "u");
31058
+ var zc = typeof Buffer < "u" && (typeof Blob > "u" || typeof atob > "u" || typeof btoa > "u");
31056
31059
  function Fp(e) {
31057
- return Vc ? Buffer.byteLength(e) : new Blob([e]).size;
31060
+ return zc ? Buffer.byteLength(e) : new Blob([e]).size;
31058
31061
  }
31059
- function tf(e) {
31062
+ function nf(e) {
31060
31063
  var n = 0;
31061
31064
  e.forEach(function(o) {
31062
31065
  n += o.byteLength;
@@ -31164,7 +31167,7 @@ function f0() {
31164
31167
  if (n == null) throw new Error("The current browser does not appear to support IndexedDB.");
31165
31168
  return n;
31166
31169
  }
31167
- function zc(e) {
31170
+ function $c(e) {
31168
31171
  var n = e.result;
31169
31172
  n.createObjectStore(To, { keyPath: "modelPath" }), n.createObjectStore(ao, { keyPath: "modelPath" });
31170
31173
  }
@@ -31191,7 +31194,7 @@ var Ca = function() {
31191
31194
  return new Promise(function(o, a) {
31192
31195
  var i = r.indexedDB.open("tensorflowjs", 1);
31193
31196
  i.onupgradeneeded = function() {
31194
- return zc(i);
31197
+ return $c(i);
31195
31198
  }, i.onsuccess = function() {
31196
31199
  var s = i.result;
31197
31200
  if (t == null) {
@@ -31247,7 +31250,7 @@ var YT = function() {
31247
31250
  return [2, new Promise(function(r, o) {
31248
31251
  var a = n.indexedDB.open("tensorflowjs", 1);
31249
31252
  a.onupgradeneeded = function() {
31250
- return zc(a);
31253
+ return $c(a);
31251
31254
  }, a.onsuccess = function() {
31252
31255
  var i = a.result, s = i.transaction(ao, "readonly"), u = s.objectStore(ao).getAll();
31253
31256
  u.onsuccess = function() {
@@ -31275,7 +31278,7 @@ var YT = function() {
31275
31278
  return n = (o = n).startsWith(Ca.URL_SCHEME) ? o.slice(Ca.URL_SCHEME.length) : o, [2, new Promise(function(a, i) {
31276
31279
  var s = t.indexedDB.open("tensorflowjs", 1);
31277
31280
  s.onupgradeneeded = function() {
31278
- return zc(s);
31281
+ return $c(s);
31279
31282
  }, s.onsuccess = function() {
31280
31283
  var u, l = s.result, c = l.transaction(ao, "readwrite"), d = c.objectStore(ao), f = d.get(n);
31281
31284
  f.onsuccess = function() {
@@ -31333,7 +31336,7 @@ var ka = function() {
31333
31336
  t = JSON.stringify(n.modelTopology), r = JSON.stringify(n.weightSpecs), o = Li(n);
31334
31337
  try {
31335
31338
  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) {
31336
- if (Vc) return Buffer.from(i).toString("base64");
31339
+ if (zc) return Buffer.from(i).toString("base64");
31337
31340
  for (var s = new Uint8Array(i), u = "", l = 0, c = s.length; l < c; l++) u += String.fromCharCode(s[l]);
31338
31341
  return btoa(u);
31339
31342
  }(n.weightData)), this.LS.setItem(this.keys.modelMetadata, JSON.stringify({ format: n.format, generatedBy: n.generatedBy, convertedBy: n.convertedBy, userDefinedMetadata: n.userDefinedMetadata })), [2, { modelArtifactsInfo: o }];
@@ -31353,7 +31356,7 @@ var ka = function() {
31353
31356
  if (t.modelTopology = r, (o = JSON.parse(this.LS.getItem(this.keys.weightSpecs))) == null) throw new Error("In local storage, the weight specs of model '" + this.modelPath + "' are missing.");
31354
31357
  if (t.weightSpecs = o, (a = this.LS.getItem(this.keys.modelMetadata)) != null && (i = JSON.parse(a), t.format = i.format, t.generatedBy = i.generatedBy, t.convertedBy = i.convertedBy, t.userDefinedMetadata = i.userDefinedMetadata), (s = this.LS.getItem(this.keys.weightData)) == null) throw new Error("In local storage, the binary weight values of model '" + this.modelPath + "' are missing.");
31355
31358
  return t.weightData = function(l) {
31356
- if (Vc) {
31359
+ if (zc) {
31357
31360
  var c = Buffer.from(l, "base64");
31358
31361
  return c.buffer.slice(c.byteOffset, c.byteOffset + c.byteLength);
31359
31362
  }
@@ -31405,7 +31408,7 @@ function Lp(e) {
31405
31408
  return setTimeout(n);
31406
31409
  }).then(e);
31407
31410
  }
31408
- var Zl = function() {
31411
+ var Jl = function() {
31409
31412
  function e(n) {
31410
31413
  if (!ie().getBool("IS_BROWSER")) throw new Error("browserDownloads() cannot proceed because the current environment is not a browser.");
31411
31414
  n.startsWith(e.URL_SCHEME) && (n = n.slice(e.URL_SCHEME.length)), n != null && n.length !== 0 || (n = n6), this.modelTopologyFileName = n + r6, this.weightDataFileName = n + o6;
@@ -31468,7 +31471,7 @@ var Zl = function() {
31468
31471
  var w = new FileReader();
31469
31472
  w.onload = function(b) {
31470
31473
  var g = b.target.result, x = p.indexOf(y);
31471
- m[x] = g, m.indexOf(null) === -1 && a({ modelTopology: c, weightSpecs: h, weightData: tf(m), format: l.format, generatedBy: l.generatedBy, convertedBy: l.convertedBy, userDefinedMetadata: l.userDefinedMetadata });
31474
+ m[x] = g, m.indexOf(null) === -1 && a({ modelTopology: c, weightSpecs: h, weightData: nf(m), format: l.format, generatedBy: l.generatedBy, convertedBy: l.convertedBy, userDefinedMetadata: l.userDefinedMetadata });
31472
31475
  }, w.onerror = function(b) {
31473
31476
  return i("Failed to weights data from file of path '" + y + "'.");
31474
31477
  }, w.readAsArrayBuffer(f[y]);
@@ -31564,7 +31567,7 @@ function Vp(e) {
31564
31567
  }) : [], u = [], t.forEach(function(v, y) {
31565
31568
  var w = 0;
31566
31569
  v.weights.forEach(function(b) {
31567
- var g = "quantization" in b ? b.quantization.dtype : b.dtype, x = qc[g] * Be(b.shape), C = function() {
31570
+ var g = "quantization" in b ? b.quantization.dtype : b.dtype, x = Vc[g] * Be(b.shape), C = function() {
31568
31571
  a[y] = !0, i[y] == null && (i[y] = []), i[y].push({ manifestEntry: b, groupOffset: w, sizeBytes: x });
31569
31572
  };
31570
31573
  o != null ? o.forEach(function(S, E) {
@@ -31603,9 +31606,9 @@ Manifest JSON has weights with names: ` + u.join(", ") + ".");
31603
31606
  };
31604
31607
  }
31605
31608
  Xn.registerSaveRouter(function(e) {
31606
- return ie().getBool("IS_BROWSER") && !Array.isArray(e) && e.startsWith(Zl.URL_SCHEME) ? function(n) {
31607
- return n === void 0 && (n = "model"), new Zl(n);
31608
- }(e.slice(Zl.URL_SCHEME.length)) : null;
31609
+ return ie().getBool("IS_BROWSER") && !Array.isArray(e) && e.startsWith(Jl.URL_SCHEME) ? function(n) {
31610
+ return n === void 0 && (n = "model"), new Jl(n);
31611
+ }(e.slice(Jl.URL_SCHEME.length)) : null;
31609
31612
  });
31610
31613
  var m0 = function() {
31611
31614
  function e(n, t) {
@@ -31674,25 +31677,25 @@ var m0 = function() {
31674
31677
  });
31675
31678
  }), [4, v0(d, { requestInit: this.requestInit, fetchFunc: this.fetch, onProgress: this.onProgress })];
31676
31679
  case 1:
31677
- return f = h.sent(), [2, [s, tf(f)]];
31680
+ return f = h.sent(), [2, [s, nf(f)]];
31678
31681
  }
31679
31682
  });
31680
31683
  });
31681
31684
  }, e.URL_SCHEME_REGEX = /^https?:\/\//, e;
31682
31685
  }();
31683
- function $c(e) {
31686
+ function Wc(e) {
31684
31687
  return e.match(m0.URL_SCHEME_REGEX) != null;
31685
31688
  }
31686
31689
  var zp = function(e, n) {
31687
31690
  return typeof fetch > "u" ? null : (Array.isArray(e) ? e.every(function(t) {
31688
- return $c(t);
31689
- }) : $c(e)) ? Wc(e, { onProgress: n }) : null;
31691
+ return Wc(t);
31692
+ }) : Wc(e)) ? Hc(e, { onProgress: n }) : null;
31690
31693
  };
31691
- function Wc(e, n) {
31694
+ function Hc(e, n) {
31692
31695
  return new m0(e, n);
31693
31696
  }
31694
31697
  Xn.registerSaveRouter(zp), Xn.registerLoadRouter(zp);
31695
- var Jl = function() {
31698
+ var ec = function() {
31696
31699
  function e(n) {
31697
31700
  this.modelArtifacts = n;
31698
31701
  }
@@ -31717,8 +31720,8 @@ var Jl = function() {
31717
31720
  }(), g0 = Object.freeze({ browserFiles: function(e) {
31718
31721
  return new a6(e);
31719
31722
  }, browserHTTPRequest: function(e, n) {
31720
- return Wc(e, n);
31721
- }, concatenateArrayBuffers: tf, decodeWeights: d0, encodeWeights: function(e, n) {
31723
+ return Hc(e, n);
31724
+ }, concatenateArrayBuffers: nf, decodeWeights: d0, encodeWeights: function(e, n) {
31722
31725
  return Me(this, void 0, void 0, function() {
31723
31726
  var t, r, o, a, i, s = this;
31724
31727
  return Fe(this, function(u) {
@@ -31758,12 +31761,12 @@ var Jl = function() {
31758
31761
  });
31759
31762
  });
31760
31763
  }, fromMemory: function(e, n, t, r) {
31761
- return arguments.length === 1 ? e.modelTopology != null || e.weightSpecs != null ? new Jl(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 Jl({ 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 Jl({ modelTopology: e, weightSpecs: n, weightData: t, trainingConfig: r }));
31764
+ return arguments.length === 1 ? e.modelTopology != null || e.weightSpecs != null ? new ec(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 ec({ 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 ec({ modelTopology: e, weightSpecs: n, weightData: t, trainingConfig: r }));
31762
31765
  }, getLoadHandlers: function(e, n) {
31763
31766
  return Xn.getLoadHandlers(e, n);
31764
31767
  }, getModelArtifactsInfoForJSON: Li, getSaveHandlers: function(e) {
31765
31768
  return Xn.getSaveHandlers(e);
31766
- }, http: Wc, isHTTPScheme: $c, loadWeights: function(e, n, t, r) {
31769
+ }, http: Hc, isHTTPScheme: Wc, loadWeights: function(e, n, t, r) {
31767
31770
  return n === void 0 && (n = ""), Me(this, void 0, void 0, function() {
31768
31771
  return Fe(this, function(o) {
31769
31772
  return [2, Vp(function(a) {
@@ -31829,7 +31832,7 @@ $({ confusionMatrix_: function(e, n, t) {
31829
31832
  }), B(t > 0 && Number.isInteger(t), function() {
31830
31833
  return "numClasses is required to be a positive integer, but got " + t;
31831
31834
  });
31832
- var a = Pc(r.asType("int32"), t), i = Pc(o.asType("int32"), t);
31835
+ var a = Bc(r.asType("int32"), t), i = Bc(o.asType("int32"), t);
31833
31836
  return a.transpose().matMul(i).asType("int32");
31834
31837
  } });
31835
31838
  var s6 = $({ fromPixels_: function(e, n) {
@@ -31854,8 +31857,8 @@ var s6 = $({ fromPixels_: function(e, n) {
31854
31857
  u = new Int32Array(f * n);
31855
31858
  for (var h = 0; h < f; h++) for (var p = 0; p < n; ++p) u[h * n + p] = s[4 * h + p];
31856
31859
  }
31857
- return Ad(u, [d, c, n], "int32");
31858
- } }), nf = Object.freeze({ toPixels: function(e, n) {
31860
+ return Dd(u, [d, c, n], "int32");
31861
+ } }), rf = Object.freeze({ toPixels: function(e, n) {
31859
31862
  return Me(this, void 0, void 0, function() {
31860
31863
  var t, r, o, a, i, s, u, l, c, d, f, h, p, m, v, y, w, b, g, x, C, S, E;
31861
31864
  return Fe(this, function(R) {
@@ -32448,15 +32451,15 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
32448
32451
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
32449
32452
  PERFORMANCE OF THIS SOFTWARE.
32450
32453
  ***************************************************************************** */
32451
- var Hc = function(e, n) {
32452
- return Hc = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, r) {
32454
+ var Uc = function(e, n) {
32455
+ return Uc = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, r) {
32453
32456
  t.__proto__ = r;
32454
32457
  } || function(t, r) {
32455
32458
  for (var o in r) r.hasOwnProperty(o) && (t[o] = r[o]);
32456
- }, Hc(e, n);
32459
+ }, Uc(e, n);
32457
32460
  };
32458
32461
  function nt(e, n) {
32459
- Hc(e, n);
32462
+ Uc(e, n);
32460
32463
  function t() {
32461
32464
  this.constructor = e;
32462
32465
  }
@@ -32620,7 +32623,7 @@ function y6(e, n) {
32620
32623
  var t = e.width, r = e.height, o = n / Math.max(r, t);
32621
32624
  return new Oo(Math.round(t * o), Math.round(r * o));
32622
32625
  }
32623
- function rf(e) {
32626
+ function of(e) {
32624
32627
  return e.reduce(function(n, t) {
32625
32628
  return n.add(t);
32626
32629
  }, new _t(0, 0)).div(new _t(e.length, e.length));
@@ -32962,7 +32965,7 @@ function x6(e, n) {
32962
32965
  return on(f, s);
32963
32966
  });
32964
32967
  }
32965
- function ec(e) {
32968
+ function tc(e) {
32966
32969
  return 1 / (1 + Math.exp(-e));
32967
32970
  }
32968
32971
  var Ou = (
@@ -33033,7 +33036,7 @@ var Ou = (
33033
33036
  }, e.prototype.alignDlib = function() {
33034
33037
  var n = this.getRefPointsForAlignment(), t = n[0], r = n[1], o = n[2], a = function(d) {
33035
33038
  return o.sub(d).magnitude();
33036
- }, i = (a(t) + a(r)) / 2, s = Math.floor(i / _6), u = rf(n), l = Math.floor(Math.max(0, u.x - C6 * s)), c = Math.floor(Math.max(0, u.y - k6 * s));
33039
+ }, i = (a(t) + a(r)) / 2, s = Math.floor(i / _6), u = of(n), l = Math.floor(Math.max(0, u.x - C6 * s)), c = Math.floor(Math.max(0, u.y - k6 * s));
33037
33040
  return new Ou(l, c, Math.min(s, this.imageWidth + l), Math.min(s, this.imageHeight + c));
33038
33041
  }, e.prototype.alignMinBbox = function(n) {
33039
33042
  var t = w6(this.positions);
@@ -33054,7 +33057,7 @@ var Ou = (
33054
33057
  return [
33055
33058
  t[0],
33056
33059
  t[1],
33057
- rf([t[3], t[4]])
33060
+ of([t[3], t[4]])
33058
33061
  ];
33059
33062
  }, n;
33060
33063
  }(Ba)
@@ -33084,7 +33087,7 @@ var Ou = (
33084
33087
  this.getLeftEye(),
33085
33088
  this.getRightEye(),
33086
33089
  this.getMouth()
33087
- ].map(rf);
33090
+ ].map(of);
33088
33091
  }, n;
33089
33092
  }(Ba)
33090
33093
  ), Up = (
@@ -33300,14 +33303,14 @@ function E6() {
33300
33303
  throw new Error("getEnv - environment is not defined, check isNodejs() and isBrowser()");
33301
33304
  return nn;
33302
33305
  }
33303
- function Uc(e) {
33306
+ function jc(e) {
33304
33307
  nn = e;
33305
33308
  }
33306
- function of() {
33307
- S0() && Uc(C0()), E0() && Uc(_0());
33309
+ function af() {
33310
+ S0() && jc(C0()), E0() && jc(_0());
33308
33311
  }
33309
33312
  function R6(e) {
33310
- if (nn || of(), !nn)
33313
+ if (nn || af(), !nn)
33311
33314
  throw new Error("monkeyPatch - environment is not defined, check isNodejs() and isBrowser()");
33312
33315
  var n = e.Canvas, t = n === void 0 ? nn.Canvas : n, r = e.Image, o = r === void 0 ? nn.Image : r;
33313
33316
  nn.Canvas = t, nn.Image = o, nn.createCanvasElement = e.createCanvasElement || function() {
@@ -33318,8 +33321,8 @@ function R6(e) {
33318
33321
  }
33319
33322
  var Mn = {
33320
33323
  getEnv: E6,
33321
- setEnv: Uc,
33322
- initialize: of,
33324
+ setEnv: jc,
33325
+ initialize: af,
33323
33326
  createBrowserEnv: C0,
33324
33327
  createFileSystem: k0,
33325
33328
  createNodejsEnv: _0,
@@ -33327,15 +33330,15 @@ var Mn = {
33327
33330
  isBrowser: S0,
33328
33331
  isNodejs: E0
33329
33332
  };
33330
- of();
33331
- function af(e) {
33333
+ af();
33334
+ function sf(e) {
33332
33335
  return !Mn.isNodejs() && typeof e == "string" ? document.getElementById(e) : e;
33333
33336
  }
33334
33337
  function Dr(e) {
33335
33338
  var n = Mn.getEnv(), t = n.Canvas, r = n.CanvasRenderingContext2D;
33336
33339
  if (e instanceof r)
33337
33340
  return e;
33338
- var o = af(e);
33341
+ var o = sf(e);
33339
33342
  if (!(o instanceof t))
33340
33343
  throw new Error("resolveContext2d - expected canvas to be of instance of Canvas");
33341
33344
  var a = o.getContext("2d");
@@ -33381,7 +33384,7 @@ var R0 = (
33381
33384
  }
33382
33385
  return { x: u, y: l };
33383
33386
  }, e.prototype.draw = function(n) {
33384
- var t = af(n), r = Dr(t), o = this.options, a = o.backgroundColor, i = o.fontColor, s = o.fontSize, u = o.fontStyle, l = o.padding;
33387
+ var t = sf(n), r = Dr(t), o = this.options, a = o.backgroundColor, i = o.fontColor, s = o.fontSize, u = o.fontStyle, l = o.padding;
33385
33388
  r.font = s + "px " + u;
33386
33389
  var c = this.measureWidth(r), d = this.measureHeight();
33387
33390
  r.fillStyle = a;
@@ -33445,7 +33448,7 @@ function M6(e) {
33445
33448
  e.addEventListener("load", r), e.addEventListener("error", o);
33446
33449
  });
33447
33450
  }
33448
- function sf(e) {
33451
+ function uf(e) {
33449
33452
  var n = Mn.getEnv(), t = n.Image, r = n.Video;
33450
33453
  return e instanceof t ? new Oo(e.naturalWidth, e.naturalHeight) : e instanceof r ? new Oo(e.videoWidth, e.videoHeight) : new Oo(e.width, e.height);
33451
33454
  }
@@ -33457,7 +33460,7 @@ function Lu(e, n) {
33457
33460
  var t = Mn.getEnv().ImageData;
33458
33461
  if (!(e instanceof t) && !I0(e))
33459
33462
  throw new Error("createCanvasFromMedia - media has not finished loading yet");
33460
- var r = sf(e), o = r.width, a = r.height, i = Nu({ width: o, height: a });
33463
+ var r = uf(e), o = r.width, a = r.height, i = Nu({ width: o, height: a });
33461
33464
  return e instanceof t ? Dr(i).putImageData(e, 0, 0) : Dr(i).drawImage(e, 0, 0, o, a), i;
33462
33465
  }
33463
33466
  function F6(e, n) {
@@ -33468,7 +33471,7 @@ function F6(e, n) {
33468
33471
  case 0:
33469
33472
  return t = Mn.getEnv().createCanvasElement(), r = e.shape.slice(co(e) ? 1 : 0), o = r[0], a = r[1], i = r[2], s = Re(function() {
33470
33473
  return e.as3D(o, a, i).toInt();
33471
- }), [4, nf.toPixels(s, t)];
33474
+ }), [4, rf.toPixels(s, t)];
33472
33475
  case 1:
33473
33476
  return u.sent(), s.dispose(), [2, t];
33474
33477
  }
@@ -33484,7 +33487,7 @@ function P6(e, n, t) {
33484
33487
  var r = Mn.getEnv(), o = r.Image, a = r.Canvas;
33485
33488
  if (!(e instanceof o || e instanceof a))
33486
33489
  throw new Error("imageToSquare - expected arg0 to be HTMLImageElement | HTMLCanvasElement");
33487
- var i = sf(e), s = n / Math.max(i.height, i.width), u = s * i.width, l = s * i.height, c = Nu({ width: n, height: n }), d = e instanceof a ? e : Lu(e), f = Math.abs(u - l) / 2, h = t && u < l ? f : 0, p = t && l < u ? f : 0;
33490
+ var i = uf(e), s = n / Math.max(i.height, i.width), u = s * i.width, l = s * i.height, c = Nu({ width: n, height: n }), d = e instanceof a ? e : Lu(e), f = Math.abs(u - l) / 2, h = t && u < l ? f : 0, p = t && l < u ? f : 0;
33488
33491
  return Dr(c).drawImage(d, h, p, u, l), c;
33489
33492
  }
33490
33493
  var nu = (
@@ -33575,10 +33578,10 @@ var nu = (
33575
33578
  var s = r.getInput(i);
33576
33579
  if (s instanceof Ht) {
33577
33580
  var u = co(s) ? s : s.expandDims();
33578
- return u = x6(u, t), (u.shape[1] !== n || u.shape[2] !== n) && (u = Xd.resizeBilinear(u, [n, n])), u.as3D(n, n, 3);
33581
+ return u = x6(u, t), (u.shape[1] !== n || u.shape[2] !== n) && (u = Qd.resizeBilinear(u, [n, n])), u.as3D(n, n, 3);
33579
33582
  }
33580
33583
  if (s instanceof Mn.getEnv().Canvas)
33581
- return nf.fromPixels(P6(s, n, t));
33584
+ return rf.fromPixels(P6(s, n, t));
33582
33585
  throw new Error("toBatchTensor - at batchIdx " + i + ", expected input to be instanceof tf.Tensor or instanceof HTMLCanvasElement, instead have " + s);
33583
33586
  }), a = Zn(o.map(function(i) {
33584
33587
  return i.toFloat();
@@ -33600,7 +33603,7 @@ function mn(e) {
33600
33603
  throw new Error("toNetInput - empty array passed as input");
33601
33604
  return t = function(a) {
33602
33605
  return Array.isArray(e) ? " at input index " + a + ":" : "";
33603
- }, r = n.map(af), r.forEach(function(a, i) {
33606
+ }, r = n.map(sf), r.forEach(function(a, i) {
33604
33607
  if (!Gp(a) && !Pu(a) && !co(a))
33605
33608
  throw typeof n[i] == "string" ? new Error("toNetInput -" + t(i) + " string passed, but could not resolve HTMLElement for element id " + n[i]) : new Error("toNetInput -" + t(i) + " expected media to be of type HTMLImageElement | HTMLVideoElement | HTMLCanvasElement | tf.Tensor3D, or to be an element id");
33606
33609
  if (co(a)) {
@@ -33647,7 +33650,7 @@ function qu(e, n) {
33647
33650
  });
33648
33651
  });
33649
33652
  }
33650
- function uf(e, n) {
33653
+ function lf(e, n) {
33651
33654
  return Le(this, void 0, void 0, function() {
33652
33655
  return qe(this, function(t) {
33653
33656
  if (!Pu(e) && !co(e))
@@ -33732,7 +33735,7 @@ function N6(e, n) {
33732
33735
  }
33733
33736
  function L6(e, n, t) {
33734
33737
  t === void 0 && (t = !1);
33735
- var r = t ? sf(n) : n, o = r.width, a = r.height;
33738
+ var r = t ? uf(n) : n, o = r.width, a = r.height;
33736
33739
  return e.width = o, e.height = a, { width: o, height: a };
33737
33740
  }
33738
33741
  var Kr = (
@@ -33888,11 +33891,11 @@ var Kr = (
33888
33891
  );
33889
33892
  function Qn(e, n, t) {
33890
33893
  return Re(function() {
33891
- var r = Ud(e, n.depthwise_filter, n.pointwise_filter, t, "same");
33894
+ var r = jd(e, n.depthwise_filter, n.pointwise_filter, t, "same");
33892
33895
  return r = ft(r, n.bias), r;
33893
33896
  });
33894
33897
  }
33895
- function tc(e, n, t) {
33898
+ function nc(e, n, t) {
33896
33899
  return t === void 0 && (t = !1), Re(function() {
33897
33900
  var r = Ut(t ? ft(ir(e, n.conv0.filters, [2, 2], "same"), n.conv0.bias) : Qn(e, n.conv0, [2, 2])), o = Qn(r, n.conv1, [1, 1]), a = Ut(ft(r, o)), i = Qn(a, n.conv2, [1, 1]);
33898
33901
  return Ut(ft(r, ft(o, i)));
@@ -33923,7 +33926,7 @@ function Vu(e, n) {
33923
33926
  return n.push({ paramPath: a + "/filters" }, { paramPath: a + "/bias" }), { filters: i, bias: s };
33924
33927
  };
33925
33928
  }
33926
- function lf(e, n) {
33929
+ function cf(e, n) {
33927
33930
  return function(t, r, o) {
33928
33931
  var a = uo(e(t * r), [t, r]), i = tn(e(r));
33929
33932
  return n.push({ paramPath: o + "/weights" }, { paramPath: o + "/bias" }), {
@@ -33941,13 +33944,13 @@ var A0 = (
33941
33944
  return e;
33942
33945
  }()
33943
33946
  );
33944
- function cf(e, n) {
33947
+ function df(e, n) {
33945
33948
  return function(t, r, o) {
33946
33949
  var a = Pn(e(9 * t), [3, 3, t, 1]), i = Pn(e(t * r), [1, 1, t, r]), s = tn(e(r));
33947
33950
  return n.push({ paramPath: o + "/depthwise_filter" }, { paramPath: o + "/pointwise_filter" }, { paramPath: o + "/bias" }), new A0(a, i, s);
33948
33951
  };
33949
33952
  }
33950
- function df(e) {
33953
+ function ff(e) {
33951
33954
  return function(n) {
33952
33955
  var t = e(n + "/depthwise_filter", 4), r = e(n + "/pointwise_filter", 4), o = e(n + "/bias", 1);
33953
33956
  return new A0(t, r, o);
@@ -33976,7 +33979,7 @@ function Xr(e) {
33976
33979
  };
33977
33980
  }
33978
33981
  function D0(e, n) {
33979
- var t = Vu(e, n), r = cf(e, n);
33982
+ var t = Vu(e, n), r = df(e, n);
33980
33983
  function o(i, s, u, l) {
33981
33984
  l === void 0 && (l = !1);
33982
33985
  var c = l ? t(i, s, 3, u + "/conv0") : r(i, s, u + "/conv0"), d = r(s, s, u + "/conv1"), f = r(s, s, u + "/conv2");
@@ -34008,7 +34011,7 @@ function M0(e) {
34008
34011
  };
34009
34012
  }
34010
34013
  function F0(e, n) {
34011
- var t = go(e, n), r = M0(t), o = df(t);
34014
+ var t = go(e, n), r = M0(t), o = ff(t);
34012
34015
  function a(s, u) {
34013
34016
  u === void 0 && (u = !1);
34014
34017
  var l = u ? r(s + "/conv0") : o(s + "/conv0"), c = o(s + "/conv1"), d = o(s + "/conv2");
@@ -34075,7 +34078,7 @@ function Sr(e, n) {
34075
34078
  });
34076
34079
  }
34077
34080
  function z6(e, n, t) {
34078
- var r = [], o = Xr(e), a = o.extractWeights, i = o.getRemainingWeights, s = lf(a, r), u = s(n, t, "fc");
34081
+ var r = [], o = Xr(e), a = o.extractWeights, i = o.getRemainingWeights, s = cf(a, r), u = s(n, t, "fc");
34079
34082
  if (i().length !== 0)
34080
34083
  throw new Error("weights remaing after extract: " + i().length);
34081
34084
  return {
@@ -34225,7 +34228,7 @@ function N0(e, n) {
34225
34228
  var t = { expressions: n };
34226
34229
  return Object.assign({}, e, t);
34227
34230
  }
34228
- function ff(e) {
34231
+ function hf(e) {
34229
34232
  return tu(e) && e.landmarks instanceof Ba && e.unshiftedLandmarks instanceof Ba && e.alignedRect instanceof er;
34230
34233
  }
34231
34234
  function zu(e, n) {
@@ -34267,14 +34270,14 @@ var U6 = (
34267
34270
  function G6(e, n) {
34268
34271
  var t = Array.isArray(n) ? n : [n];
34269
34272
  t.forEach(function(r) {
34270
- var o = r instanceof Ba ? r : ff(r) ? r.landmarks : void 0;
34273
+ var o = r instanceof Ba ? r : hf(r) ? r.landmarks : void 0;
34271
34274
  if (!o)
34272
34275
  throw new Error("drawFaceLandmarks - expected faceExpressions to be FaceLandmarks | WithFaceLandmarks<WithFaceDetection<{}>> or array thereof");
34273
34276
  new j6(o).draw(e);
34274
34277
  });
34275
34278
  }
34276
34279
  function K6(e, n) {
34277
- var t = Vu(e, n), r = cf(e, n);
34280
+ var t = Vu(e, n), r = df(e, n);
34278
34281
  function o(i, s, u) {
34279
34282
  var l = r(i, s, u + "/separable_conv0"), c = r(s, s, u + "/separable_conv1"), d = t(i, s, 1, u + "/expansion_conv");
34280
34283
  return { separable_conv0: l, separable_conv1: c, expansion_conv: d };
@@ -34311,7 +34314,7 @@ function Y6(e, n) {
34311
34314
  };
34312
34315
  }
34313
34316
  function X6(e, n) {
34314
- var t = go(e, n), r = M0(t), o = df(t);
34317
+ var t = go(e, n), r = M0(t), o = ff(t);
34315
34318
  function a(s) {
34316
34319
  var u = o(s + "/separable_conv0"), l = o(s + "/separable_conv1"), c = r(s + "/expansion_conv");
34317
34320
  return { separable_conv0: u, separable_conv1: l, expansion_conv: c };
@@ -34345,7 +34348,7 @@ function Q6(e, n) {
34345
34348
  function L0(e, n, t) {
34346
34349
  return ft(ir(e, n.filters, t, "same"), n.bias);
34347
34350
  }
34348
- function nc(e, n, t) {
34351
+ function rc(e, n, t) {
34349
34352
  t === void 0 && (t = !0);
34350
34353
  var r = t ? Ut(e) : e;
34351
34354
  return r = Qn(r, n.separable_conv0, [1, 1]), r = Qn(Ut(r), n.separable_conv1, [1, 1]), r = dn(r, [3, 3], [2, 2], "same"), r = ft(r, L0(e, n.expansion_conv, [2, 2])), r;
@@ -34368,9 +34371,9 @@ var J6 = (
34368
34371
  throw new Error("TinyXception - load model before inference");
34369
34372
  return Re(function() {
34370
34373
  var a = t.toBatchTensor(112, !0), i = [122.782, 117.001, 104.298], s = qi(a, i).div(Ce(256)), u = Ut(L0(s, o.entry_flow.conv_in, [2, 2]));
34371
- return u = nc(u, o.entry_flow.reduction_block_0, !1), u = nc(u, o.entry_flow.reduction_block_1), gi(r._numMainBlocks, 0, 1).forEach(function(l) {
34374
+ return u = rc(u, o.entry_flow.reduction_block_0, !1), u = rc(u, o.entry_flow.reduction_block_1), gi(r._numMainBlocks, 0, 1).forEach(function(l) {
34372
34375
  u = Z6(u, o.middle_flow["main_block_" + l]);
34373
- }), u = nc(u, o.exit_flow.reduction_block), u = Ut(Qn(u, o.exit_flow.separable_conv, [1, 1])), u;
34376
+ }), u = rc(u, o.exit_flow.reduction_block), u = Ut(Qn(u, o.exit_flow.separable_conv, [1, 1])), u;
34374
34377
  });
34375
34378
  }, n.prototype.forward = function(t) {
34376
34379
  return Le(this, void 0, void 0, function() {
@@ -34394,7 +34397,7 @@ var J6 = (
34394
34397
  }(Kr)
34395
34398
  );
34396
34399
  function eA(e) {
34397
- var n = [], t = Xr(e), r = t.extractWeights, o = t.getRemainingWeights, a = lf(r, n), i = a(512, 1, "fc/age"), s = a(512, 2, "fc/gender");
34400
+ var n = [], t = Xr(e), r = t.extractWeights, o = t.getRemainingWeights, a = cf(r, n), i = a(512, 1, "fc/age"), s = a(512, 2, "fc/gender");
34398
34401
  if (o().length !== 0)
34399
34402
  throw new Error("weights remaing after extract: " + o().length);
34400
34403
  return {
@@ -34660,8 +34663,8 @@ var aA = (
34660
34663
  if (!r)
34661
34664
  throw new Error("TinyFaceFeatureExtractor - load model before inference");
34662
34665
  return Re(function() {
34663
- var o = t.toBatchTensor(112, !0), a = [122.782, 117.001, 104.298], i = qi(o, a).div(Ce(255)), s = tc(i, r.dense0, !0);
34664
- return s = tc(s, r.dense1), s = tc(s, r.dense2), s = Ni(s, [14, 14], [2, 2], "valid"), s;
34666
+ var o = t.toBatchTensor(112, !0), a = [122.782, 117.001, 104.298], i = qi(o, a).div(Ce(255)), s = nc(i, r.dense0, !0);
34667
+ return s = nc(s, r.dense1), s = nc(s, r.dense2), s = Ni(s, [14, 14], [2, 2], "valid"), s;
34665
34668
  });
34666
34669
  }, n.prototype.forward = function(t) {
34667
34670
  return Le(this, void 0, void 0, function() {
@@ -34707,19 +34710,19 @@ var aA = (
34707
34710
  function sA(e, n) {
34708
34711
  return ft(Dn(e, n.weights), n.biases);
34709
34712
  }
34710
- function hf(e, n, t, r, o) {
34713
+ function pf(e, n, t, r, o) {
34711
34714
  o === void 0 && (o = "same");
34712
34715
  var a = n.conv, i = a.filters, s = a.bias, u = ir(e, i, t, o);
34713
34716
  return u = ft(u, s), u = sA(u, n.scale), r ? Ut(u) : u;
34714
34717
  }
34715
34718
  function uA(e, n) {
34716
- return hf(e, n, [1, 1], !0);
34719
+ return pf(e, n, [1, 1], !0);
34717
34720
  }
34718
34721
  function z0(e, n) {
34719
- return hf(e, n, [1, 1], !1);
34722
+ return pf(e, n, [1, 1], !1);
34720
34723
  }
34721
34724
  function $0(e, n) {
34722
- return hf(e, n, [2, 2], !0, "valid");
34725
+ return pf(e, n, [2, 2], !0, "valid");
34723
34726
  }
34724
34727
  function lA(e, n) {
34725
34728
  function t(s, u, l) {
@@ -35057,7 +35060,7 @@ function pA(e, n) {
35057
35060
  };
35058
35061
  }
35059
35062
  function vA(e) {
35060
- var n = [], t = Xr(e), r = t.extractWeights, o = t.getRemainingWeights, a = pA(r, n), i = a.extractMobilenetV1Params, s = a.extractPredictionLayerParams, u = i(), l = s(), c = Ad(r(5118 * 4), [1, 5118, 4]), d = {
35063
+ var n = [], t = Xr(e), r = t.extractWeights, o = t.getRemainingWeights, a = pA(r, n), i = a.extractMobilenetV1Params, s = a.extractPredictionLayerParams, u = i(), l = s(), c = Dd(r(5118 * 4), [1, 5118, 4]), d = {
35061
35064
  extra_dim: c
35062
35065
  };
35063
35066
  if (n.push({ paramPath: "output_layer/extra_dim" }), o().length !== 0)
@@ -35155,14 +35158,14 @@ function gA(e) {
35155
35158
  function xr(e, n, t) {
35156
35159
  return Re(function() {
35157
35160
  var r = ir(e, n.filters, t, "same");
35158
- return r = ft(r, n.batch_norm_offset), zd(r, 0, 6);
35161
+ return r = ft(r, n.batch_norm_offset), $d(r, 0, 6);
35159
35162
  });
35160
35163
  }
35161
35164
  var yA = 0.0010000000474974513;
35162
35165
  function bA(e, n, t) {
35163
35166
  return Re(function() {
35164
35167
  var r = Tu(e, n.filters, t, "same");
35165
- return r = qg(r, n.batch_norm_mean, n.batch_norm_variance, n.batch_norm_offset, n.batch_norm_scale, yA), zd(r, 0, 6);
35168
+ return r = qg(r, n.batch_norm_mean, n.batch_norm_variance, n.batch_norm_offset, n.batch_norm_scale, yA), $d(r, 0, 6);
35166
35169
  });
35167
35170
  }
35168
35171
  function wA(e) {
@@ -35240,7 +35243,7 @@ function _A(e) {
35240
35243
  };
35241
35244
  }
35242
35245
  function SA(e, n) {
35243
- var t = _A(e), r = t.sizes, o = t.centers, a = an(ho(n, [1, 0])), i = lr(Dn(Lc(lr(a[2], Ce(5))), r[0]), Ce(2)), s = ft(Dn(lr(a[0], Ce(10)), r[0]), o[0]), u = lr(Dn(Lc(lr(a[3], Ce(5))), r[1]), Ce(2)), l = ft(Dn(lr(a[1], Ce(10)), r[1]), o[1]);
35246
+ var t = _A(e), r = t.sizes, o = t.centers, a = an(ho(n, [1, 0])), i = lr(Dn(qc(lr(a[2], Ce(5))), r[0]), Ce(2)), s = ft(Dn(lr(a[0], Ce(10)), r[0]), o[0]), u = lr(Dn(qc(lr(a[3], Ce(5))), r[1]), Ce(2)), l = ft(Dn(lr(a[1], Ce(10)), r[1]), o[1]);
35244
35247
  return ho(Zn([
35245
35248
  un(s, i),
35246
35249
  un(l, u),
@@ -35427,7 +35430,7 @@ function PA(e) {
35427
35430
  if (e.meanRgb && (!Array.isArray(e.meanRgb) || e.meanRgb.length !== 3 || !e.meanRgb.every(ls)))
35428
35431
  throw new Error("config.meanRgb has to be an array of shape [number, number, number], have: " + JSON.stringify(e.meanRgb));
35429
35432
  }
35430
- function pf(e) {
35433
+ function vf(e) {
35431
35434
  return Re(function() {
35432
35435
  var n = Dn(e, Ce(0.10000000149011612));
35433
35436
  return ft(Ut(un(e, n)), n);
@@ -35436,13 +35439,13 @@ function pf(e) {
35436
35439
  function Zr(e, n) {
35437
35440
  return Re(function() {
35438
35441
  var t = Uo(e, [[0, 0], [1, 1], [1, 1], [0, 0]]);
35439
- return t = ir(t, n.conv.filters, [1, 1], "valid"), t = un(t, n.bn.sub), t = Dn(t, n.bn.truediv), t = ft(t, n.conv.bias), pf(t);
35442
+ return t = ir(t, n.conv.filters, [1, 1], "valid"), t = un(t, n.bn.sub), t = Dn(t, n.bn.truediv), t = ft(t, n.conv.bias), vf(t);
35440
35443
  });
35441
35444
  }
35442
35445
  function Jr(e, n) {
35443
35446
  return Re(function() {
35444
35447
  var t = Uo(e, [[0, 0], [1, 1], [1, 1], [0, 0]]);
35445
- return t = Ud(t, n.depthwise_filter, n.pointwise_filter, [1, 1], "valid"), t = ft(t, n.bias), pf(t);
35448
+ return t = jd(t, n.depthwise_filter, n.pointwise_filter, [1, 1], "valid"), t = ft(t, n.bias), vf(t);
35446
35449
  });
35447
35450
  }
35448
35451
  function BA(e, n) {
@@ -35455,7 +35458,7 @@ function BA(e, n) {
35455
35458
  var l = t(i, s, 3, u + "/conv"), c = r(s, u + "/bn");
35456
35459
  return { conv: l, bn: c };
35457
35460
  }
35458
- var a = cf(e, n);
35461
+ var a = df(e, n);
35459
35462
  return {
35460
35463
  extractConvParams: t,
35461
35464
  extractConvWithBatchNormParams: o,
@@ -35489,7 +35492,7 @@ function NA(e, n) {
35489
35492
  var u = o(s + "/conv"), l = r(s + "/bn");
35490
35493
  return { conv: u, bn: l };
35491
35494
  }
35492
- var i = df(t);
35495
+ var i = ff(t);
35493
35496
  return {
35494
35497
  extractConvParams: o,
35495
35498
  extractConvWithBatchNormParams: a,
@@ -35529,7 +35532,7 @@ var Yp;
35529
35532
  (function(e) {
35530
35533
  e[e.XS = 224] = "XS", e[e.SM = 320] = "SM", e[e.MD = 416] = "MD", e[e.LG = 608] = "LG";
35531
35534
  })(Yp || (Yp = {}));
35532
- var vf = (
35535
+ var mf = (
35533
35536
  /** @class */
35534
35537
  function() {
35535
35538
  function e(n) {
@@ -35583,7 +35586,7 @@ var vf = (
35583
35586
  var o = Zr(t, r.conv0);
35584
35587
  return o = dn(o, [2, 2], [2, 2], "same"), o = Zr(o, r.conv1), o = dn(o, [2, 2], [2, 2], "same"), o = Zr(o, r.conv2), o = dn(o, [2, 2], [2, 2], "same"), o = Zr(o, r.conv3), o = dn(o, [2, 2], [2, 2], "same"), o = Zr(o, r.conv4), o = dn(o, [2, 2], [2, 2], "same"), o = Zr(o, r.conv5), o = dn(o, [2, 2], [1, 1], "same"), o = Zr(o, r.conv6), o = Zr(o, r.conv7), dr(o, r.conv8, "valid", !1);
35585
35588
  }, n.prototype.runMobilenet = function(t, r) {
35586
- var o = this.config.isFirstLayerConv2d ? pf(dr(t, r.conv0, "valid", !1)) : Jr(t, r.conv0);
35589
+ var o = this.config.isFirstLayerConv2d ? vf(dr(t, r.conv0, "valid", !1)) : Jr(t, r.conv0);
35587
35590
  return o = dn(o, [2, 2], [2, 2], "same"), o = Jr(o, r.conv1), o = dn(o, [2, 2], [2, 2], "same"), o = Jr(o, r.conv2), o = dn(o, [2, 2], [2, 2], "same"), o = Jr(o, r.conv3), o = dn(o, [2, 2], [2, 2], "same"), o = Jr(o, r.conv4), o = dn(o, [2, 2], [2, 2], "same"), o = Jr(o, r.conv5), o = dn(o, [2, 2], [1, 1], "same"), o = r.conv6 ? Jr(o, r.conv6) : o, o = r.conv7 ? Jr(o, r.conv7) : o, dr(o, r.conv8, "valid", !1);
35588
35591
  }, n.prototype.forwardInput = function(t, r) {
35589
35592
  var o = this, a = this.params;
@@ -35613,7 +35616,7 @@ var vf = (
35613
35616
  return qe(this, function(b) {
35614
35617
  switch (b.label) {
35615
35618
  case 0:
35616
- return o = new vf(r), a = o.inputSize, i = o.scoreThreshold, [4, mn(t)];
35619
+ return o = new mf(r), a = o.inputSize, i = o.scoreThreshold, [4, mn(t)];
35617
35620
  case 1:
35618
35621
  return s = b.sent(), [4, this.forwardInput(s, a)];
35619
35622
  case 2:
@@ -35670,7 +35673,7 @@ var vf = (
35670
35673
  if (!(g < c)) return [3, 11];
35671
35674
  x = 0, H.label = 5;
35672
35675
  case 5:
35673
- return x < d ? (C = ec(y[b][g][x][0]), !o || C > o ? (S = (g + ec(w[b][g][x][0])) / c * u, E = (b + ec(w[b][g][x][1])) / c * l, R = Math.exp(w[b][g][x][2]) * this.config.anchors[x].x / c * u, k = Math.exp(w[b][g][x][3]) * this.config.anchors[x].y / c * l, T = S - R / 2, A = E - k / 2, q = { row: b, col: g, anchor: x }, this.withClassScores ? [4, this.extractPredictedClass(m, q)] : [3, 7]) : [3, 9]) : [3, 10];
35676
+ return x < d ? (C = tc(y[b][g][x][0]), !o || C > o ? (S = (g + tc(w[b][g][x][0])) / c * u, E = (b + tc(w[b][g][x][1])) / c * l, R = Math.exp(w[b][g][x][2]) * this.config.anchors[x].x / c * u, k = Math.exp(w[b][g][x][3]) * this.config.anchors[x].y / c * l, T = S - R / 2, A = E - k / 2, q = { row: b, col: g, anchor: x }, this.withClassScores ? [4, this.extractPredictedClass(m, q)] : [3, 7]) : [3, 9]) : [3, 10];
35674
35677
  case 6:
35675
35678
  return F = H.sent(), [3, 8];
35676
35679
  case 7:
@@ -35781,7 +35784,7 @@ var vf = (
35781
35784
  return t._name = "TinyFaceDetectorOptions", t;
35782
35785
  }
35783
35786
  return n;
35784
- }(vf)
35787
+ }(mf)
35785
35788
  ), Vi = (
35786
35789
  /** @class */
35787
35790
  function() {
@@ -35818,8 +35821,8 @@ function Wu(e, n, t, r, o) {
35818
35821
  switch (c.label) {
35819
35822
  case 0:
35820
35823
  return a = e.map(function(d) {
35821
- return ff(d) ? o(d) : d.detection;
35822
- }), s = r, s ? [3, 5] : n instanceof Ht ? [4, uf(n, a)] : [3, 2];
35824
+ return hf(d) ? o(d) : d.detection;
35825
+ }), s = r, s ? [3, 5] : n instanceof Ht ? [4, lf(n, a)] : [3, 2];
35823
35826
  case 1:
35824
35827
  return u = c.sent(), [3, 4];
35825
35828
  case 2:
@@ -35838,7 +35841,7 @@ function Wu(e, n, t, r, o) {
35838
35841
  });
35839
35842
  });
35840
35843
  }
35841
- function mf(e, n, t, r, o) {
35844
+ function gf(e, n, t, r, o) {
35842
35845
  return Le(this, void 0, void 0, function() {
35843
35846
  var a = this;
35844
35847
  return qe(this, function(i) {
@@ -35859,7 +35862,7 @@ function VA(e) {
35859
35862
  }
35860
35863
  var cs = 2, ou = 12;
35861
35864
  function zA(e, n) {
35862
- var t = Vu(e, n), r = lf(e, n);
35865
+ var t = Vu(e, n), r = cf(e, n);
35863
35866
  function o(l, c) {
35864
35867
  var d = tn(e(l));
35865
35868
  return n.push({ paramPath: c }), d;
@@ -35932,7 +35935,7 @@ function HA(e) {
35932
35935
  var n = [], t = WA(e, n), r = t.extractPNetParams, o = t.extractRNetParams, a = t.extractONetParams, i = r(), s = o(), u = a();
35933
35936
  return Yr(e, n), { params: { pnet: i, rnet: s, onet: u }, paramMappings: n };
35934
35937
  }
35935
- function jc(e, n) {
35938
+ function Gc(e, n) {
35936
35939
  var t = n[0], r = n[1];
35937
35940
  return {
35938
35941
  height: Math.floor(t * e),
@@ -35944,7 +35947,7 @@ function UA(e, n, t) {
35944
35947
  i.push(a * Math.pow(n, u)), s = s * n, u += 1;
35945
35948
  return i;
35946
35949
  }
35947
- var gf = (
35950
+ var yf = (
35948
35951
  /** @class */
35949
35952
  function(e) {
35950
35953
  nt(n, e);
@@ -35964,7 +35967,7 @@ function _a(e, n) {
35964
35967
  return ft(Ut(e), Dn(n, Qs(Ut(Qs(e)))));
35965
35968
  });
35966
35969
  }
35967
- function yf(e, n, t) {
35970
+ function bf(e, n, t) {
35968
35971
  return t === void 0 && (t = !1), Re(function() {
35969
35972
  var r = dr(e, n.conv1, "valid");
35970
35973
  return r = _a(r, n.prelu1_alpha), r = dn(r, t ? [2, 2] : [3, 3], [2, 2], "same"), r = dr(r, n.conv2, "valid"), r = _a(r, n.prelu2_alpha), r = t ? r : dn(r, [3, 3], [2, 2], "valid"), r = dr(r, n.conv3, "valid"), r = _a(r, n.prelu3_alpha), r;
@@ -35972,13 +35975,13 @@ function yf(e, n, t) {
35972
35975
  }
35973
35976
  function jA(e, n) {
35974
35977
  return Re(function() {
35975
- var t = yf(e, n, !0), r = dr(t, n.conv4_1, "valid"), o = rr(Du(r, 3), 3), a = jr(un(r, o), 3), i = dr(t, n.conv4_2, "valid");
35978
+ var t = bf(e, n, !0), r = dr(t, n.conv4_1, "valid"), o = rr(Du(r, 3), 3), a = jr(un(r, o), 3), i = dr(t, n.conv4_2, "valid");
35976
35979
  return { prob: a, regions: i };
35977
35980
  });
35978
35981
  }
35979
35982
  function GA(e, n) {
35980
35983
  return Re(function() {
35981
- var t = jc(n, e.shape.slice(1)), r = t.height, o = t.width, a = Xd.resizeBilinear(e, [r, o]), i = X0(a);
35984
+ var t = Gc(n, e.shape.slice(1)), r = t.height, o = t.width, a = Qd.resizeBilinear(e, [r, o]), i = X0(a);
35982
35985
  return ho(i, [0, 2, 1, 3]);
35983
35986
  });
35984
35987
  }
@@ -35987,7 +35990,7 @@ function KA(e, n, t, r) {
35987
35990
  for (var s = 0; s < e.shape[1]; s++)
35988
35991
  a[i][s] >= r && o.push(new _t(s, i));
35989
35992
  var u = o.map(function(l) {
35990
- var c = new Bu(Math.round((l.y * cs + 1) / t), Math.round((l.x * cs + 1) / t), Math.round((l.y * cs + ou) / t), Math.round((l.x * cs + ou) / t)), d = a[l.y][l.x], f = n.arraySync(), h = new gf(f[l.y][l.x][0], f[l.y][l.x][1], f[l.y][l.x][2], f[l.y][l.x][3]);
35993
+ var c = new Bu(Math.round((l.y * cs + 1) / t), Math.round((l.x * cs + 1) / t), Math.round((l.y * cs + ou) / t), Math.round((l.x * cs + ou) / t)), d = a[l.y][l.x], f = n.arraySync(), h = new yf(f[l.y][l.x][0], f[l.y][l.x][1], f[l.y][l.x][2], f[l.y][l.x][3]);
35991
35994
  return {
35992
35995
  cell: c,
35993
35996
  score: d,
@@ -36080,7 +36083,7 @@ function Q0(e, n, t) {
36080
36083
  }
36081
36084
  function XA(e, n) {
36082
36085
  return Re(function() {
36083
- var t = yf(e, n), r = cr(t, [t.shape[0], n.fc1.weights.shape[0]]), o = Sr(r, n.fc1), a = _a(o, n.prelu4_alpha), i = Sr(a, n.fc2_1), s = rr(Du(i, 1), 1), u = jr(un(i, s), 1), l = Sr(a, n.fc2_2), c = an(u, 1)[1];
36086
+ var t = bf(e, n), r = cr(t, [t.shape[0], n.fc1.weights.shape[0]]), o = Sr(r, n.fc1), a = _a(o, n.prelu4_alpha), i = Sr(a, n.fc2_1), s = rr(Du(i, 1), 1), u = jr(un(i, s), 1), l = Sr(a, n.fc2_2), c = an(u, 1)[1];
36084
36087
  return { scores: c, regions: l };
36085
36088
  });
36086
36089
  }
@@ -36112,7 +36115,7 @@ function QA(e, n, t, r, o) {
36112
36115
  return l[g];
36113
36116
  }), m = [], v = [], h.length > 0 && (a = Date.now(), y = yi(h, p, 0.7), o.stage2_nms = Date.now() - a, w = y.map(function(g) {
36114
36117
  var x = s[f[g]].regions.arraySync();
36115
- return new gf(x[0][0], x[0][1], x[0][2], x[0][3]);
36118
+ return new yf(x[0][0], x[0][1], x[0][2], x[0][3]);
36116
36119
  }), v = y.map(function(g) {
36117
36120
  return p[g];
36118
36121
  }), m = y.map(function(g, x) {
@@ -36129,7 +36132,7 @@ function QA(e, n, t, r, o) {
36129
36132
  }
36130
36133
  function ZA(e, n) {
36131
36134
  return Re(function() {
36132
- var t = yf(e, n);
36135
+ var t = bf(e, n);
36133
36136
  t = dn(t, [2, 2], [2, 2], "same"), t = dr(t, n.conv4, "valid"), t = _a(t, n.prelu4_alpha);
36134
36137
  var r = cr(t, [t.shape[0], n.fc1.weights.shape[0]]), o = Sr(r, n.fc1), a = _a(o, n.prelu5_alpha), i = Sr(a, n.fc2_1), s = rr(Du(i, 1), 1), u = jr(un(i, s), 1), l = Sr(a, n.fc2_2), c = Sr(a, n.fc2_3), d = an(u, 1)[1];
36135
36138
  return { scores: d, regions: l, points: c };
@@ -36159,7 +36162,7 @@ function JA(e, n, t, r, o) {
36159
36162
  return C;
36160
36163
  }), h = f.map(function(x) {
36161
36164
  var C = s[x].regions.arraySync();
36162
- return new gf(C[0][0], C[0][1], C[0][2], C[0][3]);
36165
+ return new yf(C[0][0], C[0][1], C[0][2], C[0][3]);
36163
36166
  }), p = f.map(function(x, C) {
36164
36167
  return n[x].calibrate(h[C]);
36165
36168
  }), m = f.map(function(x) {
@@ -36214,14 +36217,14 @@ var eD = (
36214
36217
  if (a = t.canvases[0], !a)
36215
36218
  throw new Error("Mtcnn - inputCanvas is not defined, note that passing tensors into Mtcnn.forwardInput is not supported yet.");
36216
36219
  return i = {}, s = Date.now(), u = Re(function() {
36217
- return VA(rr(nf.fromPixels(a)).toFloat());
36220
+ return VA(rr(rf.fromPixels(a)).toFloat());
36218
36221
  }), l = function(k) {
36219
36222
  return u.dispose(), i.total = Date.now() - s, k;
36220
36223
  }, c = u.shape.slice(1), d = c[0], f = c[1], h = new j0(r), p = h.minFaceSize, m = h.scaleFactor, v = h.maxNumScales, y = h.scoreThresholds, w = h.scaleSteps, b = (w || UA(p, m, [d, f])).filter(function(k) {
36221
- var T = jc(k, [d, f]);
36224
+ var T = Gc(k, [d, f]);
36222
36225
  return Math.min(T.width, T.height) > ou;
36223
36226
  }).slice(0, v), i.scales = b, i.pyramid = b.map(function(k) {
36224
- return jc(k, [d, f]);
36227
+ return Gc(k, [d, f]);
36225
36228
  }), g = Date.now(), [4, YA(u, b, y[0], o.pnet, i)];
36226
36229
  case 1:
36227
36230
  return x = R.sent(), i.total_stage1 = Date.now() - g, x.boxes.length ? (i.stage2_numInputBoxes = x.boxes.length, g = Date.now(), [4, QA(a, x.boxes, y[1], o.rnet, i)]) : [2, l({ results: [], stats: i })];
@@ -36347,7 +36350,7 @@ var eD = (
36347
36350
  }
36348
36351
  return n;
36349
36352
  }(Vi)
36350
- ), bf = (
36353
+ ), wf = (
36351
36354
  /** @class */
36352
36355
  function(e) {
36353
36356
  nt(n, e);
@@ -36384,10 +36387,10 @@ var eD = (
36384
36387
  });
36385
36388
  });
36386
36389
  }, n.prototype.withAgeAndGender = function() {
36387
- return new kf(this, this.input);
36390
+ return new _f(this, this.input);
36388
36391
  }, n;
36389
36392
  }(Z0)
36390
- ), wf = (
36393
+ ), xf = (
36391
36394
  /** @class */
36392
36395
  function(e) {
36393
36396
  nt(n, e);
@@ -36402,7 +36405,7 @@ var eD = (
36402
36405
  case 0:
36403
36406
  return [4, this.parentTask];
36404
36407
  case 1:
36405
- return t = o.sent(), t ? [4, mf(t, this.input, function(a) {
36408
+ return t = o.sent(), t ? [4, gf(t, this.input, function(a) {
36406
36409
  return Ln.faceExpressionNet.predictExpressions(a);
36407
36410
  }, this.extractedFaces)] : [
36408
36411
  2
@@ -36414,10 +36417,10 @@ var eD = (
36414
36417
  });
36415
36418
  });
36416
36419
  }, n.prototype.withAgeAndGender = function() {
36417
- return new _f(this, this.input);
36420
+ return new Sf(this, this.input);
36418
36421
  }, n;
36419
36422
  }(Z0)
36420
- ), xf = (
36423
+ ), Cf = (
36421
36424
  /** @class */
36422
36425
  function(e) {
36423
36426
  nt(n, e);
@@ -36425,12 +36428,12 @@ var eD = (
36425
36428
  return e !== null && e.apply(this, arguments) || this;
36426
36429
  }
36427
36430
  return n.prototype.withAgeAndGender = function() {
36428
- return new Sf(this, this.input);
36431
+ return new Ef(this, this.input);
36429
36432
  }, n.prototype.withFaceDescriptors = function() {
36430
- return new Rf(this, this.input);
36433
+ return new If(this, this.input);
36431
36434
  }, n;
36432
- }(bf)
36433
- ), Cf = (
36435
+ }(wf)
36436
+ ), kf = (
36434
36437
  /** @class */
36435
36438
  function(e) {
36436
36439
  nt(n, e);
@@ -36438,11 +36441,11 @@ var eD = (
36438
36441
  return e !== null && e.apply(this, arguments) || this;
36439
36442
  }
36440
36443
  return n.prototype.withAgeAndGender = function() {
36441
- return new Ef(this, this.input);
36444
+ return new Rf(this, this.input);
36442
36445
  }, n.prototype.withFaceDescriptor = function() {
36443
- return new If(this, this.input);
36446
+ return new Tf(this, this.input);
36444
36447
  }, n;
36445
- }(wf)
36448
+ }(xf)
36446
36449
  ), J0 = (
36447
36450
  /** @class */
36448
36451
  function(e) {
@@ -36453,7 +36456,7 @@ var eD = (
36453
36456
  }
36454
36457
  return n;
36455
36458
  }(Vi)
36456
- ), kf = (
36459
+ ), _f = (
36457
36460
  /** @class */
36458
36461
  function(e) {
36459
36462
  nt(n, e);
@@ -36491,10 +36494,10 @@ var eD = (
36491
36494
  });
36492
36495
  });
36493
36496
  }, n.prototype.withFaceExpressions = function() {
36494
- return new bf(this, this.input);
36497
+ return new wf(this, this.input);
36495
36498
  }, n;
36496
36499
  }(J0)
36497
- ), _f = (
36500
+ ), Sf = (
36498
36501
  /** @class */
36499
36502
  function(e) {
36500
36503
  nt(n, e);
@@ -36509,7 +36512,7 @@ var eD = (
36509
36512
  case 0:
36510
36513
  return [4, this.parentTask];
36511
36514
  case 1:
36512
- return t = s.sent(), t ? [4, mf(t, this.input, function(u) {
36515
+ return t = s.sent(), t ? [4, gf(t, this.input, function(u) {
36513
36516
  return Ln.ageGenderNet.predictAgeAndGender(u);
36514
36517
  }, this.extractedFaces)] : [
36515
36518
  2
@@ -36521,10 +36524,10 @@ var eD = (
36521
36524
  });
36522
36525
  });
36523
36526
  }, n.prototype.withFaceExpressions = function() {
36524
- return new wf(this, this.input);
36527
+ return new xf(this, this.input);
36525
36528
  }, n;
36526
36529
  }(J0)
36527
- ), Sf = (
36530
+ ), Ef = (
36528
36531
  /** @class */
36529
36532
  function(e) {
36530
36533
  nt(n, e);
@@ -36532,12 +36535,12 @@ var eD = (
36532
36535
  return e !== null && e.apply(this, arguments) || this;
36533
36536
  }
36534
36537
  return n.prototype.withFaceExpressions = function() {
36535
- return new xf(this, this.input);
36538
+ return new Cf(this, this.input);
36536
36539
  }, n.prototype.withFaceDescriptors = function() {
36537
- return new Rf(this, this.input);
36540
+ return new If(this, this.input);
36538
36541
  }, n;
36539
- }(kf)
36540
- ), Ef = (
36542
+ }(_f)
36543
+ ), Rf = (
36541
36544
  /** @class */
36542
36545
  function(e) {
36543
36546
  nt(n, e);
@@ -36545,11 +36548,11 @@ var eD = (
36545
36548
  return e !== null && e.apply(this, arguments) || this;
36546
36549
  }
36547
36550
  return n.prototype.withFaceExpressions = function() {
36548
- return new Cf(this, this.input);
36551
+ return new kf(this, this.input);
36549
36552
  }, n.prototype.withFaceDescriptor = function() {
36550
- return new If(this, this.input);
36553
+ return new Tf(this, this.input);
36551
36554
  }, n;
36552
- }(_f)
36555
+ }(Sf)
36553
36556
  ), e1 = (
36554
36557
  /** @class */
36555
36558
  function(e) {
@@ -36560,7 +36563,7 @@ var eD = (
36560
36563
  }
36561
36564
  return n;
36562
36565
  }(Vi)
36563
- ), Rf = (
36566
+ ), If = (
36564
36567
  /** @class */
36565
36568
  function(e) {
36566
36569
  nt(n, e);
@@ -36590,12 +36593,12 @@ var eD = (
36590
36593
  });
36591
36594
  });
36592
36595
  }, n.prototype.withFaceExpressions = function() {
36593
- return new xf(this, this.input);
36596
+ return new Cf(this, this.input);
36594
36597
  }, n.prototype.withAgeAndGender = function() {
36595
- return new Sf(this, this.input);
36598
+ return new Ef(this, this.input);
36596
36599
  }, n;
36597
36600
  }(e1)
36598
- ), If = (
36601
+ ), Tf = (
36599
36602
  /** @class */
36600
36603
  function(e) {
36601
36604
  nt(n, e);
@@ -36610,7 +36613,7 @@ var eD = (
36610
36613
  case 0:
36611
36614
  return [4, this.parentTask];
36612
36615
  case 1:
36613
- return t = o.sent(), t ? [4, mf(t, this.input, function(a) {
36616
+ return t = o.sent(), t ? [4, gf(t, this.input, function(a) {
36614
36617
  return Ln.faceRecognitionNet.computeFaceDescriptor(a);
36615
36618
  }, null, function(a) {
36616
36619
  return a.landmarks.align(null, { useDlibAlignment: !0 });
@@ -36624,9 +36627,9 @@ var eD = (
36624
36627
  });
36625
36628
  });
36626
36629
  }, n.prototype.withFaceExpressions = function() {
36627
- return new Cf(this, this.input);
36630
+ return new kf(this, this.input);
36628
36631
  }, n.prototype.withAgeAndGender = function() {
36629
- return new Ef(this, this.input);
36632
+ return new Rf(this, this.input);
36630
36633
  }, n;
36631
36634
  }(e1)
36632
36635
  ), t1 = (
@@ -36662,7 +36665,7 @@ var eD = (
36662
36665
  case 1:
36663
36666
  return t = u.sent(), r = t.map(function(l) {
36664
36667
  return l.detection;
36665
- }), this.input instanceof Ht ? [4, uf(this.input, r)] : [3, 3];
36668
+ }), this.input instanceof Ht ? [4, lf(this.input, r)] : [3, 3];
36666
36669
  case 2:
36667
36670
  return a = u.sent(), [3, 5];
36668
36671
  case 3:
@@ -36683,11 +36686,11 @@ var eD = (
36683
36686
  });
36684
36687
  });
36685
36688
  }, n.prototype.withFaceExpressions = function() {
36686
- return new xf(this, this.input);
36689
+ return new Cf(this, this.input);
36687
36690
  }, n.prototype.withAgeAndGender = function() {
36688
- return new Sf(this, this.input);
36691
+ return new Ef(this, this.input);
36689
36692
  }, n.prototype.withFaceDescriptors = function() {
36690
- return new Rf(this, this.input);
36693
+ return new If(this, this.input);
36691
36694
  }, n;
36692
36695
  }(t1)
36693
36696
  ), iD = (
@@ -36705,7 +36708,7 @@ var eD = (
36705
36708
  case 0:
36706
36709
  return [4, this.parentTask];
36707
36710
  case 1:
36708
- return t = s.sent(), t ? (r = t.detection, this.input instanceof Ht ? [4, uf(this.input, [r])] : [3, 3]) : [
36711
+ return t = s.sent(), t ? (r = t.detection, this.input instanceof Ht ? [4, lf(this.input, [r])] : [3, 3]) : [
36709
36712
  2
36710
36713
  /*return*/
36711
36714
  ];
@@ -36725,11 +36728,11 @@ var eD = (
36725
36728
  });
36726
36729
  });
36727
36730
  }, n.prototype.withFaceExpressions = function() {
36728
- return new Cf(this, this.input);
36731
+ return new kf(this, this.input);
36729
36732
  }, n.prototype.withAgeAndGender = function() {
36730
- return new Ef(this, this.input);
36733
+ return new Rf(this, this.input);
36731
36734
  }, n.prototype.withFaceDescriptor = function() {
36732
- return new If(this, this.input);
36735
+ return new Tf(this, this.input);
36733
36736
  }, n;
36734
36737
  }(t1)
36735
36738
  ), n1 = (
@@ -36766,7 +36769,7 @@ var eD = (
36766
36769
  return Ln.tinyFaceDetector.locateFaces(s, o);
36767
36770
  } : o instanceof $u ? function(s) {
36768
36771
  return Ln.ssdMobilenetv1.locateFaces(s, o);
36769
- } : o instanceof vf ? function(s) {
36772
+ } : o instanceof mf ? function(s) {
36770
36773
  return Ln.tinyYolov2.locateFaces(s, o);
36771
36774
  } : null, !a)
36772
36775
  throw new Error("detectFaces - expected options to be instance of TinyFaceDetectorOptions | SsdMobilenetv1Options | MtcnnOptions | TinyYolov2Options");
@@ -36794,9 +36797,9 @@ var eD = (
36794
36797
  }, n.prototype.withFaceLandmarks = function(t) {
36795
36798
  return t === void 0 && (t = !1), new aD(this.runAndExtendWithFaceDetections(), this.input, t);
36796
36799
  }, n.prototype.withFaceExpressions = function() {
36797
- return new bf(this.runAndExtendWithFaceDetections(), this.input);
36800
+ return new wf(this.runAndExtendWithFaceDetections(), this.input);
36798
36801
  }, n.prototype.withAgeAndGender = function() {
36799
- return new kf(this.runAndExtendWithFaceDetections(), this.input);
36802
+ return new _f(this.runAndExtendWithFaceDetections(), this.input);
36800
36803
  }, n;
36801
36804
  }(n1)
36802
36805
  ), uD = (
@@ -36838,9 +36841,9 @@ var eD = (
36838
36841
  }, n.prototype.withFaceLandmarks = function(t) {
36839
36842
  return t === void 0 && (t = !1), new iD(this.runAndExtendWithFaceDetection(), this.input, t);
36840
36843
  }, n.prototype.withFaceExpressions = function() {
36841
- return new wf(this.runAndExtendWithFaceDetection(), this.input);
36844
+ return new xf(this.runAndExtendWithFaceDetection(), this.input);
36842
36845
  }, n.prototype.withAgeAndGender = function() {
36843
- return new _f(this.runAndExtendWithFaceDetection(), this.input);
36846
+ return new Sf(this.runAndExtendWithFaceDetection(), this.input);
36844
36847
  }, n;
36845
36848
  }(n1)
36846
36849
  );
@@ -36927,7 +36930,7 @@ function r1(e, n) {
36927
36930
  return e.map(function(s) {
36928
36931
  return r1(s, { width: r, height: o });
36929
36932
  });
36930
- if (ff(e)) {
36933
+ if (hf(e)) {
36931
36934
  var a = e.detection.forSize(r, o), i = e.unshiftedLandmarks.forSize(a.box.width, a.box.height);
36932
36935
  return zu(bi(e, a), i);
36933
36936
  }
@@ -37015,9 +37018,9 @@ class dD {
37015
37018
  n = /* @__PURE__ */ new Date(), console.log(n);
37016
37019
  }
37017
37020
  }
37018
- let rc;
37021
+ let oc;
37019
37022
  function mM() {
37020
- return rc || (rc = new dD()), rc;
37023
+ return oc || (oc = new dD()), oc;
37021
37024
  }
37022
37025
  function gM(e) {
37023
37026
  const n = X(""), t = X(1), r = async (i = "", s = 1) => {
@@ -37127,7 +37130,7 @@ const wM = (e, n) => {
37127
37130
  };
37128
37131
  export {
37129
37132
  kn as ApiService,
37130
- fc as AppButton,
37133
+ hc as AppButton,
37131
37134
  pD as AppCheckbox,
37132
37135
  TD as AppConfirmDialog,
37133
37136
  vD as AppDatePicker,