shared-ritm 1.3.52 → 1.3.54

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 ja = (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 ks, 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 ui, useModel as Kc, createSlots as La, provide as iu, 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 su, shallowReactive as f1, resolveComponent as h1, withModifiers as Ao, normalizeProps as Pf, toHandlers as p1 } from "vue";
3
+ var zi = (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 ks, 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 iu, 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 su, 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,
@@ -422,19 +422,19 @@ function Jc(e) {
422
422
  function cu(e) {
423
423
  return e.isUnmounted === !0 || e.isDeactivated === !0;
424
424
  }
425
- const xi = {
425
+ const wi = {
426
426
  modelValue: {
427
427
  type: Boolean,
428
428
  default: null
429
429
  },
430
430
  "onUpdate:modelValue": [Function, Array]
431
- }, Ci = [
431
+ }, xi = [
432
432
  "beforeShow",
433
433
  "show",
434
434
  "beforeHide",
435
435
  "hide"
436
436
  ];
437
- function ki({
437
+ function Ci({
438
438
  showing: e,
439
439
  canShow: n,
440
440
  // optional
@@ -483,18 +483,18 @@ function ki({
483
483
  const y = { show: f, hide: p, toggle: d };
484
484
  return Object.assign(l, y), y;
485
485
  }
486
- let Eo = [], li = [];
486
+ let Eo = [], ui = [];
487
487
  function av(e) {
488
- li = li.filter((n) => n !== e);
488
+ ui = ui.filter((n) => n !== e);
489
489
  }
490
490
  function S1(e) {
491
- av(e), li.push(e);
491
+ av(e), ui.push(e);
492
492
  }
493
493
  function Of(e) {
494
- av(e), li.length === 0 && Eo.length !== 0 && (Eo[Eo.length - 1](), Eo = []);
494
+ av(e), ui.length === 0 && Eo.length !== 0 && (Eo[Eo.length - 1](), Eo = []);
495
495
  }
496
- function _i(e) {
497
- li.length === 7 ? e() : Eo.push(e);
496
+ function ki(e) {
497
+ ui.length === 7 ? e() : Eo.push(e);
498
498
  }
499
499
  function E1(e) {
500
500
  Eo = Eo.filter((n) => n !== e);
@@ -960,7 +960,7 @@ const As = je({
960
960
  inheritAttrs: !1,
961
961
  props: {
962
962
  ...nv,
963
- ...xi,
963
+ ...wi,
964
964
  ...pa,
965
965
  maxHeight: {
966
966
  type: String,
@@ -1005,11 +1005,11 @@ const As = je({
1005
1005
  persistent: Boolean
1006
1006
  },
1007
1007
  emits: [
1008
- ...Ci
1008
+ ...xi
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 = _(() => Ts(e.anchor, s.lang.rtl)), d = _(() => Ts(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 } = ki({
1012
+ const i = Xe(), { proxy: { $q: s } } = i, u = X(null), l = X(!1), c = _(() => Ts(e.anchor, s.lang.rtl)), d = _(() => Ts(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,
@@ -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 Si = Xc(
1347
+ const _i = Xc(
1348
1348
  {
1349
1349
  name: "ripple",
1350
1350
  beforeMount(e, n) {
@@ -1813,7 +1813,7 @@ const Et = je({
1813
1813
  O
1814
1814
  ),
1815
1815
  [[
1816
- Si,
1816
+ _i,
1817
1817
  w.value,
1818
1818
  void 0,
1819
1819
  b.value
@@ -2122,7 +2122,7 @@ const cy = () => I("div", {
2122
2122
  d: "M4,14H20V10H4"
2123
2123
  })
2124
2124
  ])
2125
- ]), oi = je({
2125
+ ]), ri = je({
2126
2126
  name: "QCheckbox",
2127
2127
  props: _v,
2128
2128
  emits: Sv,
@@ -2157,7 +2157,7 @@ const cy = () => I("div", {
2157
2157
  get: () => t.modelValue,
2158
2158
  set: (a) => r("update:modelValue", a)
2159
2159
  });
2160
- return (a, i) => (Y(), Ae(oi, {
2160
+ return (a, i) => (Y(), Ae(ri, {
2161
2161
  modelValue: o.value,
2162
2162
  "onUpdate:modelValue": i[0] || (i[0] = (s) => o.value = s),
2163
2163
  class: Ue(a.$style["app-checkbox"])
@@ -4039,7 +4039,7 @@ function Lv(e, n, t) {
4039
4039
  }
4040
4040
  };
4041
4041
  }
4042
- let Ga = 0, el, tl, ni, nl = !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
  }
@@ -4061,7 +4061,7 @@ function Hi(e) {
4061
4061
  nl !== !0 && (nl = !0, requestAnimationFrame(() => {
4062
4062
  nl = !1;
4063
4063
  const { height: n } = e.target, { clientHeight: t, scrollTop: r } = document.scrollingElement;
4064
- (ni === void 0 || n !== window.innerHeight) && (ni = t - n, document.scrollingElement.scrollTop = r), r > ni && (document.scrollingElement.scrollTop -= Math.ceil((r - ni) / 8));
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
  }));
4066
4066
  }
4067
4067
  function sh(e) {
@@ -4070,18 +4070,18 @@ function sh(e) {
4070
4070
  const { overflowY: r, overflowX: o } = window.getComputedStyle(n);
4071
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", Hi, Qt.passiveCapture), window.visualViewport.addEventListener("scroll", Hi, 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", Hi, Qt.passiveCapture), window.visualViewport.removeEventListener("scroll", Hi, 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), ni = 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", Hi, Qt.passiveCapture), window.visualViewport.removeEventListener("scroll", Hi, 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";
4077
4077
  if (e === !0) {
4078
- if (Ga++, bo !== null) {
4078
+ if (ja++, bo !== null) {
4079
4079
  clearTimeout(bo), bo = null;
4080
4080
  return;
4081
4081
  }
4082
- if (Ga > 1) return;
4082
+ if (ja > 1) return;
4083
4083
  } else {
4084
- if (Ga === 0 || (Ga--, Ga > 0)) return;
4084
+ if (ja === 0 || (ja--, ja > 0)) return;
4085
4085
  if (n = "remove", rn.is.ios === !0 && rn.is.nativeMobile === !0) {
4086
4086
  bo !== null && clearTimeout(bo), bo = setTimeout(() => {
4087
4087
  sh(n), bo = null;
@@ -4148,7 +4148,7 @@ const Zy = {
4148
4148
  name: "QDialog",
4149
4149
  inheritAttrs: !1,
4150
4150
  props: {
4151
- ...xi,
4151
+ ...wi,
4152
4152
  ...pa,
4153
4153
  transitionShow: String,
4154
4154
  // override useTransitionProps
@@ -4176,7 +4176,7 @@ const Zy = {
4176
4176
  }
4177
4177
  },
4178
4178
  emits: [
4179
- ...Ci,
4179
+ ...xi,
4180
4180
  "shake",
4181
4181
  "click",
4182
4182
  "escapeKey"
@@ -4195,7 +4195,7 @@ const Zy = {
4195
4195
  a,
4196
4196
  G,
4197
4197
  "dialog"
4198
- ), { hide: E } = ki({
4198
+ ), { hide: E } = Ci({
4199
4199
  showing: i,
4200
4200
  hideOnRouteChange: f,
4201
4201
  handleShow: q,
@@ -4236,7 +4236,7 @@ const Zy = {
4236
4236
  }, e.transitionDuration);
4237
4237
  }
4238
4238
  function O(ne) {
4239
- _i(() => {
4239
+ ki(() => {
4240
4240
  let ue = a.value;
4241
4241
  if (ue !== null) {
4242
4242
  if (ne !== void 0) {
@@ -4316,12 +4316,12 @@ const Zy = {
4316
4316
  }
4317
4317
  return S;
4318
4318
  }
4319
- }), Ei = je({
4319
+ }), Si = je({
4320
4320
  name: "QMenu",
4321
4321
  inheritAttrs: !1,
4322
4322
  props: {
4323
4323
  ...rv,
4324
- ...xi,
4324
+ ...wi,
4325
4325
  ...xn,
4326
4326
  ...pa,
4327
4327
  persistent: Boolean,
@@ -4358,7 +4358,7 @@ const Zy = {
4358
4358
  }
4359
4359
  },
4360
4360
  emits: [
4361
- ...Ci,
4361
+ ...xi,
4362
4362
  "click",
4363
4363
  "escapeKey"
4364
4364
  ],
@@ -4366,7 +4366,7 @@ 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 } = td(e), { localScrollTarget: g, changeScrollEvent: x, unconfigureScrollTarget: C } = ov(e, G), { anchorEl: S, canShow: E } = Zc({ showing: f }), { hide: R } = ki({
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,
@@ -4395,7 +4395,7 @@ const Zy = {
4395
4395
  ae === !0 ? (zv(ce), cv(q)) : (Fs(ce), Rs(q));
4396
4396
  });
4397
4397
  function H() {
4398
- _i(() => {
4398
+ ki(() => {
4399
4399
  let ae = d.value;
4400
4400
  ae && ae.contains(document.activeElement) !== !0 && (ae = ae.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]") || ae.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]") || ae.querySelector("[autofocus], [data-autofocus]") || ae, ae.focus({ preventScroll: !0 }));
4401
4401
  });
@@ -4524,7 +4524,7 @@ const Zy = {
4524
4524
  onHide: p
4525
4525
  };
4526
4526
  let v;
4527
- return d.value === "dialog" ? v = Wo : (v = Ei, Object.assign(m, {
4527
+ return d.value === "dialog" ? v = Wo : (v = Si, Object.assign(m, {
4528
4528
  target: e.target,
4529
4529
  contextMenu: e.contextMenu,
4530
4530
  noParentEvent: !0,
@@ -5313,7 +5313,7 @@ function cb() {
5313
5313
  }
5314
5314
  return Zp(r), r(), t;
5315
5315
  }
5316
- const db = "_q_", Ri = "_q_l_", Uv = "_q_pc_", jv = "_q_fo_", Gv = "_q_tabs_";
5316
+ const db = "_q_", Ei = "_q_l_", Uv = "_q_pc_", jv = "_q_fo_", Gv = "_q_tabs_";
5317
5317
  function fn() {
5318
5318
  }
5319
5319
  function fb({ validate: e, resetValidation: n, requiresQForm: t }) {
@@ -5573,7 +5573,7 @@ function gu(e) {
5573
5573
  H && (P === null || P.id !== e.targetUid.value) && (H.hasAttribute("tabindex") === !0 || (H = H.querySelector("[tabindex]")), H !== P && (H == null || H.focus({ preventScroll: !0 })));
5574
5574
  }
5575
5575
  function S() {
5576
- _i(C);
5576
+ ki(C);
5577
5577
  }
5578
5578
  function E() {
5579
5579
  E1(C);
@@ -6146,7 +6146,7 @@ const za = je({
6146
6146
  e.autogrow === !0 && Ct(F);
6147
6147
  });
6148
6148
  function T() {
6149
- _i(() => {
6149
+ ki(() => {
6150
6150
  const V = document.activeElement;
6151
6151
  d.value !== null && d.value !== V && (V === null || V.id !== C.targetUid.value) && d.value.focus({ preventScroll: !0 });
6152
6152
  });
@@ -6261,7 +6261,7 @@ const za = je({
6261
6261
  function gs(e, n) {
6262
6262
  return Array.isArray(e) && Array.isArray(n) ? e.length !== n.length ? !1 : e.every((t, r) => gs(t, n[r])) : typeof e == "object" && typeof n == "object" ? JSON.stringify(e) === JSON.stringify(n) : e === n;
6263
6263
  }
6264
- function Ka(e) {
6264
+ function Ga(e) {
6265
6265
  return Array.isArray(e) ? e.map((n) => typeof n == "object" && n !== null ? n.value ?? n : n) : typeof e == "object" && e !== null ? e.value ?? e : e;
6266
6266
  }
6267
6267
  function Jv() {
@@ -6430,7 +6430,7 @@ const _b = { class: "app-input-new" }, Sb = {
6430
6430
  }
6431
6431
  }), Ib = /* @__PURE__ */ De(Rb, [["__scopeId", "data-v-731721d0"]]), Tb = { class: "datepicker" }, Ab = /* @__PURE__ */ Dt({
6432
6432
  __name: "AppDatepicker",
6433
- props: /* @__PURE__ */ ui({
6433
+ props: /* @__PURE__ */ si({
6434
6434
  label: { default: "" },
6435
6435
  modelValue: { default: void 0 },
6436
6436
  rules: { default: () => [] },
@@ -6444,7 +6444,7 @@ const _b = { class: "app-input-new" }, Sb = {
6444
6444
  modelValue: {},
6445
6445
  modelModifiers: {}
6446
6446
  }),
6447
- emits: /* @__PURE__ */ ui(["update:modelValue"], ["update:modelValue"]),
6447
+ emits: /* @__PURE__ */ si(["update:modelValue"], ["update:modelValue"]),
6448
6448
  setup(e) {
6449
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);
@@ -6801,7 +6801,7 @@ const _b = { class: "app-input-new" }, Sb = {
6801
6801
  }, bD = /* @__PURE__ */ De(Pb, [["__cssModules", Ob]]), Nb = je({
6802
6802
  name: "QPageContainer",
6803
6803
  setup(e, { slots: n }) {
6804
- const { proxy: { $q: t } } = Xe(), r = fo(Ri, fn);
6804
+ const { proxy: { $q: t } } = Xe(), r = fo(Ei, fn);
6805
6805
  if (r === fn)
6806
6806
  return console.error("QPageContainer needs to be child of QLayout"), fn;
6807
6807
  iu(Uv, !0);
@@ -7032,7 +7032,7 @@ const nm = typeof ResizeObserver < "u", xh = nm === !0 ? {} : {
7032
7032
  b[g][x] = C;
7033
7033
  }
7034
7034
  };
7035
- if (iu(Ri, b), hs() > 0) {
7035
+ if (iu(Ei, b), hs() > 0) {
7036
7036
  let g = function() {
7037
7037
  S = null, E.classList.remove("hide-scrollbar");
7038
7038
  }, x = function() {
@@ -7322,7 +7322,7 @@ const nm = typeof ResizeObserver < "u", xh = nm === !0 ? {} : {
7322
7322
  },
7323
7323
  emits: ["reveal", "focusin"],
7324
7324
  setup(e, { slots: n, emit: t }) {
7325
- const { proxy: { $q: r } } = Xe(), o = fo(Ri, fn);
7325
+ const { proxy: { $q: r } } = Xe(), o = fo(Ei, fn);
7326
7326
  if (o === fn)
7327
7327
  return console.error("QHeader needs to be child of QLayout"), fn;
7328
7328
  const a = X(parseInt(e.heightHint, 10)), i = X(!0), s = _(
@@ -7441,7 +7441,7 @@ function t2() {
7441
7441
  var e, n;
7442
7442
  return om && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((n = window == null ? void 0 : window.navigator) == null ? void 0 : n.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
7443
7443
  }
7444
- function ri(e) {
7444
+ function ni(e) {
7445
7445
  var n;
7446
7446
  const t = rm(e);
7447
7447
  return (n = t == null ? void 0 : t.$el) != null ? n : t;
@@ -7455,7 +7455,7 @@ function sl(...e) {
7455
7455
  const a = [], i = () => {
7456
7456
  a.forEach((c) => c()), a.length = 0;
7457
7457
  }, s = (c, d, f, h) => (c.addEventListener(d, f, h), () => c.removeEventListener(d, f, h)), u = me(
7458
- () => [ri(n), rm(o)],
7458
+ () => [ni(n), rm(o)],
7459
7459
  ([c, d]) => {
7460
7460
  if (i(), !c)
7461
7461
  return;
@@ -7481,12 +7481,12 @@ function n2(e, n, t = {}) {
7481
7481
  if (typeof h == "string")
7482
7482
  return Array.from(r.document.querySelectorAll(h)).some((p) => p === f.target || f.composedPath().includes(p));
7483
7483
  {
7484
- const p = ri(h);
7484
+ const p = ni(h);
7485
7485
  return p && (f.target === p || f.composedPath().includes(p));
7486
7486
  }
7487
7487
  }), c = [
7488
7488
  sl(r, "click", (f) => {
7489
- const h = ri(e);
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) {
7492
7492
  s = !0;
@@ -7496,13 +7496,13 @@ function n2(e, n, t = {}) {
7496
7496
  }
7497
7497
  }, { passive: !0, capture: a }),
7498
7498
  sl(r, "pointerdown", (f) => {
7499
- const h = ri(e);
7499
+ const h = ni(e);
7500
7500
  s = !u(f) && !!(h && !f.composedPath().includes(h));
7501
7501
  }, { passive: !0 }),
7502
7502
  i && sl(r, "blur", (f) => {
7503
7503
  setTimeout(() => {
7504
7504
  var h;
7505
- const p = ri(e);
7505
+ const p = ni(e);
7506
7506
  ((h = r.document.activeElement) == null ? void 0 : h.tagName) === "IFRAME" && !(p != null && p.contains(r.document.activeElement)) && n(f);
7507
7507
  }, 0);
7508
7508
  })
@@ -8439,7 +8439,7 @@ const Sx = /* @__PURE__ */ De(Cx, [["render", _x]]), Ex = /* @__PURE__ */ Dt({
8439
8439
  size: "28px",
8440
8440
  name: "setting-icon"
8441
8441
  }),
8442
- xe(Ei, {
8442
+ xe(Si, {
8443
8443
  "max-height": "160px",
8444
8444
  offset: [-18, 4],
8445
8445
  class: Ue(d.$style["settings-menu"])
@@ -8509,7 +8509,7 @@ const Sx = /* @__PURE__ */ De(Cx, [["render", _x]]), Ex = /* @__PURE__ */ Dt({
8509
8509
  styleFn: Function
8510
8510
  },
8511
8511
  setup(e, { slots: n }) {
8512
- const { proxy: { $q: t } } = Xe(), r = fo(Ri, fn);
8512
+ const { proxy: { $q: t } } = Xe(), r = fo(Ei, fn);
8513
8513
  if (r === fn)
8514
8514
  return console.error("QPage needs to be a deep child of QLayout"), fn;
8515
8515
  if (fo(Uv, fn) === fn)
@@ -8650,7 +8650,7 @@ const CD = /* @__PURE__ */ De(Wx, [["render", Hx], ["__scopeId", "data-v-51e4160
8650
8650
  m(),
8651
8651
  "ripple",
8652
8652
  e.ripple !== !1 && e.disable !== !0,
8653
- () => [[Si, e.ripple]]
8653
+ () => [[_i, e.ripple]]
8654
8654
  );
8655
8655
  };
8656
8656
  }
@@ -8708,7 +8708,7 @@ const CD = /* @__PURE__ */ De(Wx, [["render", Hx], ["__scopeId", "data-v-51e4160
8708
8708
  }, kt(n.default));
8709
8709
  }
8710
8710
  });
8711
- let ci = !1;
8711
+ let li = !1;
8712
8712
  {
8713
8713
  const e = document.createElement("div");
8714
8714
  e.setAttribute("dir", "rtl"), Object.assign(e.style, {
@@ -8720,7 +8720,7 @@ let ci = !1;
8720
8720
  Object.assign(n.style, {
8721
8721
  width: "1000px",
8722
8722
  height: "1px"
8723
- }), document.body.appendChild(e), e.appendChild(n), e.scrollLeft = -1e3, ci = e.scrollLeft >= 0, e.remove();
8723
+ }), document.body.appendChild(e), e.appendChild(n), e.scrollLeft = -1e3, li = e.scrollLeft >= 0, e.remove();
8724
8724
  }
8725
8725
  const ur = 1e3, Gx = [
8726
8726
  "start",
@@ -8752,7 +8752,7 @@ function ul(e, n, t, r, o, a, i, s) {
8752
8752
  offsetStart: -i,
8753
8753
  offsetEnd: -s
8754
8754
  };
8755
- if (o === !0 ? (e === window ? (c.scrollStart = window.pageXOffset || window.scrollX || document.body.scrollLeft || 0, c.scrollViewSize += document.documentElement.clientWidth) : (c.scrollStart = u.scrollLeft, c.scrollViewSize += u.clientWidth), c.scrollMaxSize = u.scrollWidth, a === !0 && (c.scrollStart = (ci === !0 ? c.scrollMaxSize - c.scrollViewSize : 0) - c.scrollStart)) : (e === window ? (c.scrollStart = window.pageYOffset || window.scrollY || document.body.scrollTop || 0, c.scrollViewSize += document.documentElement.clientHeight) : (c.scrollStart = u.scrollTop, c.scrollViewSize += u.clientHeight), c.scrollMaxSize = u.scrollHeight), t !== null)
8755
+ if (o === !0 ? (e === window ? (c.scrollStart = window.pageXOffset || window.scrollX || document.body.scrollLeft || 0, c.scrollViewSize += document.documentElement.clientWidth) : (c.scrollStart = u.scrollLeft, c.scrollViewSize += u.clientWidth), c.scrollMaxSize = u.scrollWidth, a === !0 && (c.scrollStart = (li === !0 ? c.scrollMaxSize - c.scrollViewSize : 0) - c.scrollStart)) : (e === window ? (c.scrollStart = window.pageYOffset || window.scrollY || document.body.scrollTop || 0, c.scrollViewSize += document.documentElement.clientHeight) : (c.scrollStart = u.scrollTop, c.scrollViewSize += u.clientHeight), c.scrollMaxSize = u.scrollHeight), t !== null)
8756
8756
  for (let d = t.previousElementSibling; d !== null; d = d.previousElementSibling)
8757
8757
  d.classList.contains("q-virtual-scroll--skip") === !1 && (c.offsetStart += d[l]);
8758
8758
  if (r !== null)
@@ -8765,9 +8765,9 @@ function ul(e, n, t, r, o, a, i, s) {
8765
8765
  return c;
8766
8766
  }
8767
8767
  function _h(e, n, t, r) {
8768
- n === "end" && (n = (e === window ? document.body : e)[t === !0 ? "scrollWidth" : "scrollHeight"]), e === window ? t === !0 ? (r === !0 && (n = (ci === !0 ? document.body.scrollWidth - document.documentElement.clientWidth : 0) - n), window.scrollTo(n, window.pageYOffset || window.scrollY || document.body.scrollTop || 0)) : window.scrollTo(window.pageXOffset || window.scrollX || document.body.scrollLeft || 0, n) : t === !0 ? (r === !0 && (n = (ci === !0 ? e.scrollWidth - e.offsetWidth : 0) - n), e.scrollLeft = n) : e.scrollTop = n;
8768
+ n === "end" && (n = (e === window ? document.body : e)[t === !0 ? "scrollWidth" : "scrollHeight"]), e === window ? t === !0 ? (r === !0 && (n = (li === !0 ? document.body.scrollWidth - document.documentElement.clientWidth : 0) - n), window.scrollTo(n, window.pageYOffset || window.scrollY || document.body.scrollTop || 0)) : window.scrollTo(window.pageXOffset || window.scrollX || document.body.scrollLeft || 0, n) : t === !0 ? (r === !0 && (n = (li === !0 ? e.scrollWidth - e.offsetWidth : 0) - n), e.scrollLeft = n) : e.scrollTop = n;
8769
8769
  }
8770
- function Ya(e, n, t, r) {
8770
+ function Ka(e, n, t, r) {
8771
8771
  if (t >= r)
8772
8772
  return 0;
8773
8773
  const o = n.length, a = Math.floor(t / ur), i = Math.floor((r - 1) / ur) + 1;
@@ -8909,8 +8909,8 @@ function lm({
8909
8909
  const et = le !== void 0 ? h.slice(ae, G).reduce(ga, 0) : 0;
8910
8910
  if (ge === !0) {
8911
8911
  const tt = ze >= g.value.from && ae <= g.value.to ? g.value.to : ze;
8912
- g.value = { from: ae, to: tt }, p.value = Ya(f, h, 0, ae), m.value = Ya(f, h, ze, e.value), requestAnimationFrame(() => {
8913
- g.value.to !== ze && l === V.scrollStart && (g.value = { from: g.value.from, to: ze }, m.value = Ya(f, h, ze, e.value));
8912
+ g.value = { from: ae, to: tt }, p.value = Ka(f, h, 0, ae), m.value = Ka(f, h, ze, e.value), requestAnimationFrame(() => {
8913
+ g.value.to !== ze && l === V.scrollStart && (g.value = { from: g.value.from, to: ze }, m.value = Ka(f, h, ze, e.value));
8914
8914
  });
8915
8915
  }
8916
8916
  requestAnimationFrame(() => {
@@ -8965,7 +8965,7 @@ function lm({
8965
8965
  le += h[ae];
8966
8966
  f.push(le);
8967
8967
  }
8968
- c = -1, l = void 0, p.value = Ya(f, h, 0, g.value.from), m.value = Ya(f, h, g.value.to, e.value), L >= 0 ? (q(g.value.from), Ct(() => {
8968
+ c = -1, l = void 0, p.value = Ka(f, h, 0, g.value.from), m.value = Ka(f, h, g.value.to, e.value), L >= 0 ? (q(g.value.from), Ct(() => {
8969
8969
  k(L);
8970
8970
  })) : H();
8971
8971
  }
@@ -9575,7 +9575,7 @@ const Cd = je({
9575
9575
  );
9576
9576
  }
9577
9577
  function rt() {
9578
- return I(Ei, {
9578
+ return I(Si, {
9579
9579
  ref: S,
9580
9580
  class: le.value,
9581
9581
  style: e.popupContentStyle,
@@ -9941,7 +9941,7 @@ const Cd = je({
9941
9941
  "q-item__label": "_q-item__label_n46gp_46"
9942
9942
  }, tC = {
9943
9943
  $style: eC
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>', di = je({
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
9946
  props: ad,
9947
9947
  setup(e) {
@@ -10032,7 +10032,7 @@ const Cd = je({
10032
10032
  ])
10033
10033
  ]),
10034
10034
  e.loading ? (Y(), ye("div", iC, [
10035
- e.loading ? (Y(), Ae(di, {
10035
+ e.loading ? (Y(), Ae(ci, {
10036
10036
  key: 0,
10037
10037
  class: "loader-spinner",
10038
10038
  size: "md",
@@ -10047,7 +10047,7 @@ const Cd = je({
10047
10047
  e.type === "custom" ? (Y(), ye(hr, { key: 1 }, [
10048
10048
  e.loading ? (Y(), ye("div", sC, [
10049
10049
  fe("div", uC, [
10050
- e.loading ? (Y(), Ae(di, {
10050
+ e.loading ? (Y(), Ae(ci, {
10051
10051
  key: 0,
10052
10052
  class: "loader-spinner",
10053
10053
  size: "md",
@@ -10162,7 +10162,7 @@ function vC(e, n, t, r) {
10162
10162
  };
10163
10163
  return Jn(
10164
10164
  I(b, x, v()),
10165
- [[Si, l.value]]
10165
+ [[_i, l.value]]
10166
10166
  );
10167
10167
  }
10168
10168
  return { renderTab: w, $tabs: o };
@@ -10237,7 +10237,7 @@ const yC = ["left", "center", "right", "justify"], bC = je({
10237
10237
  () => `q-tabs row no-wrap items-center q-tabs--${m.value === !0 ? "" : "not-"}scrollable q-tabs--${e.vertical === !0 ? "vertical" : "horizontal"} q-tabs__arrows--${e.outsideArrows === !0 ? "outside" : "inside"} q-tabs--mobile-with${e.mobileArrows === !0 ? "" : "out"}-arrows` + (e.dense === !0 ? " q-tabs--dense" : "") + (e.shrink === !0 ? " col-shrink" : "") + (e.stretch === !0 ? " self-stretch" : "")
10238
10238
  ), q = _(
10239
10239
  () => "q-tabs__content scroll--mobile row no-wrap items-center self-stretch hide-scrollbar relative-position " + T.value + (e.contentClass !== void 0 ? ` ${e.contentClass}` : "")
10240
- ), D = _(() => e.vertical === !0 ? { container: "height", content: "offsetHeight", scroll: "scrollHeight" } : { container: "width", content: "offsetWidth", scroll: "scrollWidth" }), O = _(() => e.vertical !== !0 && o.lang.rtl === !0), z = _(() => ci === !1 && O.value === !0);
10240
+ ), D = _(() => e.vertical === !0 ? { container: "height", content: "offsetHeight", scroll: "scrollHeight" } : { container: "width", content: "offsetWidth", scroll: "scrollWidth" }), O = _(() => e.vertical !== !0 && o.lang.rtl === !0), z = _(() => li === !1 && O.value === !0);
10241
10241
  me(O, V), me(() => e.modelValue, (J) => {
10242
10242
  F({ name: J, setCurrent: !0, skipEmit: !0 });
10243
10243
  }), me(() => e.outsideArrows, P);
@@ -10525,7 +10525,7 @@ const yC = ["left", "center", "right", "justify"], bC = je({
10525
10525
  style: so({ width: e.width })
10526
10526
  }, [
10527
10527
  fe("div", wC, [
10528
- e.loading ? (Y(), Ae(di, {
10528
+ e.loading ? (Y(), Ae(ci, {
10529
10529
  key: 0,
10530
10530
  class: "loader-spinner",
10531
10531
  size: "md",
@@ -10602,7 +10602,7 @@ const yC = ["left", "center", "right", "justify"], bC = je({
10602
10602
  name: "QDrawer",
10603
10603
  inheritAttrs: !1,
10604
10604
  props: {
10605
- ...xi,
10605
+ ...wi,
10606
10606
  ...xn,
10607
10607
  side: {
10608
10608
  type: String,
@@ -10639,12 +10639,12 @@ const yC = ["left", "center", "right", "justify"], bC = je({
10639
10639
  noSwipeBackdrop: Boolean
10640
10640
  },
10641
10641
  emits: [
10642
- ...Ci,
10642
+ ...xi,
10643
10643
  "onLayout",
10644
10644
  "miniState"
10645
10645
  ],
10646
10646
  setup(e, { slots: n, emit: t, attrs: r }) {
10647
- const o = Xe(), { proxy: { $q: a } } = o, i = Cn(e, a), { preventBodyScroll: s } = qv(), { registerTimeout: u, removeTimeout: l } = Ea(), c = fo(Ri, fn);
10647
+ const o = Xe(), { proxy: { $q: a } } = o, i = Cn(e, a), { preventBodyScroll: s } = qv(), { registerTimeout: u, removeTimeout: l } = Ea(), c = fo(Ei, fn);
10648
10648
  if (c === fn)
10649
10649
  return console.error("QDrawer needs to be child of QLayout"), fn;
10650
10650
  let d, f = null, h;
@@ -10672,7 +10672,7 @@ const yC = ["left", "center", "right", "justify"], bC = je({
10672
10672
  t("hide", se);
10673
10673
  }, Eh) : l();
10674
10674
  }
10675
- const { show: x, hide: C } = ki({
10675
+ const { show: x, hide: C } = Ci({
10676
10676
  showing: y,
10677
10677
  hideOnRouteChange: w,
10678
10678
  handleShow: b,
@@ -10954,7 +10954,7 @@ const yC = ["left", "center", "right", "justify"], bC = je({
10954
10954
  name: "QExpansionItem",
10955
10955
  props: {
10956
10956
  ...ud,
10957
- ...xi,
10957
+ ...wi,
10958
10958
  ...xn,
10959
10959
  icon: String,
10960
10960
  label: String,
@@ -10981,7 +10981,7 @@ const yC = ["left", "center", "right", "justify"], bC = je({
10981
10981
  headerClass: [Array, String, Object]
10982
10982
  },
10983
10983
  emits: [
10984
- ...Ci,
10984
+ ...xi,
10985
10985
  "click",
10986
10986
  "afterShow",
10987
10987
  "afterHide"
@@ -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 = gd(), { show: u, hide: l, toggle: c } = ki({ 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"}`
@@ -11268,7 +11268,7 @@ const yC = ["left", "center", "right", "justify"], bC = je({
11268
11268
  ]),
11269
11269
  _: 1
11270
11270
  }, 8, ["class", "active", "to", "data-test"])), [
11271
- [Si]
11271
+ [_i]
11272
11272
  ]) : We("", !0);
11273
11273
  };
11274
11274
  }
@@ -11445,7 +11445,7 @@ const yC = ["left", "center", "right", "justify"], bC = je({
11445
11445
  ]),
11446
11446
  _: 1
11447
11447
  }, 8, ["class"])), [
11448
- [Si]
11448
+ [_i]
11449
11449
  ])
11450
11450
  ]),
11451
11451
  _: 1
@@ -11519,7 +11519,7 @@ function QC(e, n) {
11519
11519
  $t(e.$slots, "default", {}, void 0, !0)
11520
11520
  ]);
11521
11521
  }
11522
- const ID = /* @__PURE__ */ De(YC, [["render", QC], ["__scopeId", "data-v-aef16077"]]), fi = je({
11522
+ const ID = /* @__PURE__ */ De(YC, [["render", QC], ["__scopeId", "data-v-aef16077"]]), di = je({
11523
11523
  name: "QCardSection",
11524
11524
  props: {
11525
11525
  tag: {
@@ -11620,7 +11620,7 @@ const sk = /* @__PURE__ */ De(ok, [["render", ik]]), uk = /* @__PURE__ */ Dt({
11620
11620
  class: Ue(o.$style.modal)
11621
11621
  }, {
11622
11622
  default: pe(() => [
11623
- xe(fi, {
11623
+ xe(di, {
11624
11624
  class: Ue(o.$style.modal__content)
11625
11625
  }, {
11626
11626
  default: pe(() => [
@@ -11634,7 +11634,7 @@ const sk = /* @__PURE__ */ De(ok, [["render", ik]]), uk = /* @__PURE__ */ Dt({
11634
11634
  ]),
11635
11635
  _: 1
11636
11636
  }, 8, ["class"]),
11637
- xe(fi, {
11637
+ xe(di, {
11638
11638
  class: Ue(o.$style.footer)
11639
11639
  }, {
11640
11640
  default: pe(() => [
@@ -11788,7 +11788,7 @@ const yk = je({
11788
11788
  })
11789
11789
  ];
11790
11790
  return e.disableDropdown !== !0 && g.push(
11791
- I(Ei, {
11791
+ I(Si, {
11792
11792
  ref: a,
11793
11793
  id: i.value,
11794
11794
  class: e.contentClass,
@@ -11861,7 +11861,7 @@ const yk = je({
11861
11861
  }
11862
11862
  }), bk = /* @__PURE__ */ Dt({
11863
11863
  __name: "AppDropdown",
11864
- props: /* @__PURE__ */ ui({
11864
+ props: /* @__PURE__ */ si({
11865
11865
  label: {},
11866
11866
  color: {},
11867
11867
  width: {},
@@ -12058,7 +12058,7 @@ const yk = je({
12058
12058
  });
12059
12059
  }
12060
12060
  function d() {
12061
- _i(() => {
12061
+ ki(() => {
12062
12062
  if (o.value === null) return;
12063
12063
  const h = o.value.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]") || o.value.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]") || o.value.querySelector("[autofocus], [data-autofocus]") || Array.prototype.find.call(o.value.querySelectorAll("[tabindex]"), (p) => p.tabIndex !== -1);
12064
12064
  h == null || h.focus({ preventScroll: !0 });
@@ -12367,11 +12367,11 @@ const yk = je({
12367
12367
  setup(e, { emit: n }) {
12368
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
- const b = (S = w.rules) == null ? void 0 : S.some((E) => E("") !== !0), g = i.value[w.key], x = Ka(g), C = x == null || typeof x == "string" && x.trim() === "" || Array.isArray(x) && x.length === 0;
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;
12372
12372
  }) ? !0 : !t.fields.some((w) => {
12373
12373
  var C;
12374
- const b = w.key, g = Ka(i.value[b]), x = Ka((C = t.initialData) == null ? void 0 : C[b]);
12374
+ const b = w.key, g = Ga(i.value[b]), x = Ga((C = t.initialData) == null ? void 0 : C[b]);
12375
12375
  return !gs(g, x);
12376
12376
  }));
12377
12377
  function l(v) {
@@ -12399,7 +12399,7 @@ const yk = je({
12399
12399
  if (!y) return;
12400
12400
  const w = {};
12401
12401
  for (const g of t.fields) {
12402
- const x = g.key, C = i.value[x], S = (b = t.initialData) == null ? void 0 : b[x], E = g.type === "select" ? Ka(C) : C, R = g.type === "select" ? Ka(S) : S;
12402
+ const x = g.key, C = i.value[x], S = (b = t.initialData) == null ? void 0 : b[x], E = g.type === "select" ? Ga(C) : C, R = g.type === "select" ? Ga(S) : S;
12403
12403
  gs(E, R) || (w[x] = E);
12404
12404
  }
12405
12405
  r("submit", w);
@@ -12433,13 +12433,13 @@ const yk = je({
12433
12433
  default: pe(() => [
12434
12434
  xe(bu, { style: { "min-width": "700px" } }, {
12435
12435
  default: pe(() => [
12436
- xe(fi, null, {
12436
+ xe(di, null, {
12437
12437
  default: pe(() => [
12438
12438
  fe("div", Nk, pt(e.title), 1)
12439
12439
  ]),
12440
12440
  _: 1
12441
12441
  }),
12442
- xe(fi, null, {
12442
+ xe(di, null, {
12443
12443
  default: pe(() => [
12444
12444
  xe(Tk, {
12445
12445
  ref_key: "formRef",
@@ -13264,7 +13264,7 @@ const Qk = je({
13264
13264
  };
13265
13265
  }
13266
13266
  });
13267
- let Xa = 0;
13267
+ let Ya = 0;
13268
13268
  const Zk = {
13269
13269
  fullscreen: Boolean,
13270
13270
  noRouteFullscreenExit: Boolean
@@ -13284,10 +13284,10 @@ function e_() {
13284
13284
  i.value === !0 ? l() : u();
13285
13285
  }
13286
13286
  function u() {
13287
- i.value !== !0 && (i.value = !0, a = r.$el.parentNode, a.replaceChild(o, r.$el), document.body.appendChild(r.$el), Xa++, Xa === 1 && document.body.classList.add("q-body--fullscreen-mixin"));
13287
+ i.value !== !0 && (i.value = !0, a = r.$el.parentNode, a.replaceChild(o, r.$el), document.body.appendChild(r.$el), Ya++, Ya === 1 && document.body.classList.add("q-body--fullscreen-mixin"));
13288
13288
  }
13289
13289
  function l() {
13290
- i.value === !0 && (a.replaceChild(r.$el, o), i.value = !1, Xa = Math.max(0, Xa - 1), Xa === 0 && (document.body.classList.remove("q-body--fullscreen-mixin"), r.$el.scrollIntoView !== void 0 && setTimeout(() => {
13290
+ i.value === !0 && (a.replaceChild(r.$el, o), i.value = !1, Ya = Math.max(0, Ya - 1), Ya === 0 && (document.body.classList.remove("q-body--fullscreen-mixin"), r.$el.scrollIntoView !== void 0 && setTimeout(() => {
13291
13291
  r.$el.scrollIntoView();
13292
13292
  })));
13293
13293
  }
@@ -13844,7 +13844,7 @@ const y_ = je({
13844
13844
  });
13845
13845
  if (T.value === !0) {
13846
13846
  const W = n["body-selection"], re = W !== void 0 ? W(xt({ key: $e, row: te, pageIndex: He })) : [
13847
- I(oi, {
13847
+ I(ri, {
13848
13848
  modelValue: rt,
13849
13849
  color: e.color,
13850
13850
  dark: a.value,
@@ -13985,7 +13985,7 @@ const y_ = je({
13985
13985
  );
13986
13986
  else if (q.value === !0) {
13987
13987
  const $e = n["header-selection"], rt = $e !== void 0 ? $e(it({})) : [
13988
- I(oi, {
13988
+ I(ri, {
13989
13989
  color: e.color,
13990
13990
  modelValue: Ye.value,
13991
13991
  dark: a.value,
@@ -14167,7 +14167,7 @@ const y_ = je({
14167
14167
  );
14168
14168
  if (T.value === !0) {
14169
14169
  const rt = n["body-selection"], qt = rt !== void 0 ? rt(ke) : [
14170
- I(oi, {
14170
+ I(ri, {
14171
14171
  modelValue: ke.selected,
14172
14172
  color: e.color,
14173
14173
  dark: a.value,
@@ -14430,7 +14430,7 @@ const C_ = /* @__PURE__ */ De(b_, [["render", x_]]), k_ = {
14430
14430
  fe("span", null, pt(f.label), 1),
14431
14431
  ["multi", "single"].includes(f.filterType) && ((p = e.columnFilters.value[f.name]) != null && p.length) ? (Y(), ye("div", S_, " - " + pt(f.filterType === "multi" ? (m = e.columnFilters.value[f.name]) == null ? void 0 : m.length : 1), 1)) : We("", !0)
14432
14432
  ], 8, __)) : (Y(), ye("div", E_, pt(f.label), 1)),
14433
- f.filterType ? (Y(), Ae(Ei, {
14433
+ f.filterType ? (Y(), Ae(Si, {
14434
14434
  key: 2,
14435
14435
  "model-value": e.filterMenus.value[f.name],
14436
14436
  fit: "",
@@ -14464,7 +14464,7 @@ const C_ = /* @__PURE__ */ De(b_, [["render", x_]]), k_ = {
14464
14464
  default: pe(() => {
14465
14465
  var w;
14466
14466
  return [
14467
- f.filterType === "multi" ? (Y(), Ae(oi, {
14467
+ f.filterType === "multi" ? (Y(), Ae(ri, {
14468
14468
  key: 0,
14469
14469
  dense: "",
14470
14470
  "model-value": Array.isArray(e.columnFilters.value[f.name]) && ((w = e.columnFilters.value[f.name]) == null ? void 0 : w.includes(y.name)),
@@ -14576,7 +14576,7 @@ const C_ = /* @__PURE__ */ De(b_, [["render", x_]]), k_ = {
14576
14576
  }))
14577
14577
  ]), 1040, ["selected-rows", "no-hover", "slots", "hide-pagination"]),
14578
14578
  t.loading ? (Y(), ye("div", O_, [
14579
- xe(di, {
14579
+ xe(ci, {
14580
14580
  class: "loader-spinner",
14581
14581
  size: "md",
14582
14582
  thickness: 3,
@@ -14601,7 +14601,7 @@ const C_ = /* @__PURE__ */ De(b_, [["render", x_]]), k_ = {
14601
14601
  class: "loader-overlay"
14602
14602
  }, V_ = /* @__PURE__ */ Dt({
14603
14603
  __name: "index",
14604
- props: /* @__PURE__ */ ui({
14604
+ props: /* @__PURE__ */ si({
14605
14605
  modelValue: { type: Boolean },
14606
14606
  title: {},
14607
14607
  width: {},
@@ -14611,7 +14611,7 @@ const C_ = /* @__PURE__ */ De(b_, [["render", x_]]), k_ = {
14611
14611
  modelValue: { type: Boolean },
14612
14612
  modelModifiers: {}
14613
14613
  }),
14614
- emits: /* @__PURE__ */ ui(["update:modelValue"], ["update:modelValue"]),
14614
+ emits: /* @__PURE__ */ si(["update:modelValue"], ["update:modelValue"]),
14615
14615
  setup(e, { emit: n }) {
14616
14616
  const t = Kc(e, "modelValue");
14617
14617
  return (r, o) => (Y(), Ae(Wo, {
@@ -14624,12 +14624,12 @@ const C_ = /* @__PURE__ */ De(b_, [["render", x_]]), k_ = {
14624
14624
  style: so({ width: e.width, "max-width": e.width || "unset", maxHeight: e.maxHeight || "600px" })
14625
14625
  }, {
14626
14626
  default: pe(() => [
14627
- xe(fi, { class: "section" }, {
14627
+ xe(di, { class: "section" }, {
14628
14628
  default: pe(() => [
14629
14629
  e.title ? (Y(), ye("div", L_, pt(e.title), 1)) : We("", !0),
14630
14630
  $t(r.$slots, "default", {}, void 0, !0),
14631
14631
  e.loading ? (Y(), ye("div", q_, [
14632
- xe(di, {
14632
+ xe(ci, {
14633
14633
  class: "loader-spinner",
14634
14634
  size: "md",
14635
14635
  thickness: 3,
@@ -14999,7 +14999,7 @@ const { toString: j_ } = Object.prototype, { getPrototypeOf: _d } = Object, { it
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) => xu(n) === e), Cu = (e) => (n) => typeof n === e, { isArray: $a } = Array, Aa = Cu("undefined");
15002
- function Ii(e) {
15002
+ function Ri(e) {
15003
15003
  return e !== null && !Aa(e) && e.constructor !== null && !Aa(e.constructor) && qn(e.constructor.isBuffer) && e.constructor.isBuffer(e);
15004
15004
  }
15005
15005
  const gm = pr("ArrayBuffer");
@@ -15007,25 +15007,25 @@ function G_(e) {
15007
15007
  let n;
15008
15008
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? n = ArrayBuffer.isView(e) : n = e && e.buffer && gm(e.buffer), n;
15009
15009
  }
15010
- const K_ = Cu("string"), qn = Cu("function"), ym = Cu("number"), Ti = (e) => e !== null && typeof e == "object", Y_ = (e) => e === !0 || e === !1, bs = (e) => {
15010
+ const K_ = Cu("string"), qn = Cu("function"), ym = Cu("number"), Ii = (e) => e !== null && typeof e == "object", Y_ = (e) => e === !0 || e === !1, bs = (e) => {
15011
15011
  if (xu(e) !== "object")
15012
15012
  return !1;
15013
15013
  const n = _d(e);
15014
15014
  return (n === null || n === Object.prototype || Object.getPrototypeOf(n) === null) && !(mm in e) && !(wu in e);
15015
15015
  }, X_ = (e) => {
15016
- if (!Ti(e) || Ii(e))
15016
+ if (!Ii(e) || Ri(e))
15017
15017
  return !1;
15018
15018
  try {
15019
15019
  return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
15020
15020
  } catch {
15021
15021
  return !1;
15022
15022
  }
15023
- }, Q_ = pr("Date"), Z_ = pr("File"), J_ = pr("Blob"), e3 = pr("FileList"), t3 = (e) => Ti(e) && qn(e.pipe), n3 = (e) => {
15023
+ }, Q_ = pr("Date"), Z_ = pr("File"), J_ = pr("Blob"), e3 = pr("FileList"), t3 = (e) => Ii(e) && qn(e.pipe), n3 = (e) => {
15024
15024
  let n;
15025
15025
  return e && (typeof FormData == "function" && e instanceof FormData || qn(e.append) && ((n = xu(e)) === "formdata" || // detect form-data instance
15026
15026
  n === "object" && qn(e.toString) && e.toString() === "[object FormData]"));
15027
15027
  }, r3 = pr("URLSearchParams"), [o3, a3, i3, s3] = ["ReadableStream", "Request", "Response", "Headers"].map(pr), u3 = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
15028
- function Ai(e, n, { allOwnKeys: t = !1 } = {}) {
15028
+ function Ti(e, n, { allOwnKeys: t = !1 } = {}) {
15029
15029
  if (e === null || typeof e > "u")
15030
15030
  return;
15031
15031
  let r, o;
@@ -15033,7 +15033,7 @@ function Ai(e, n, { allOwnKeys: t = !1 } = {}) {
15033
15033
  for (r = 0, o = e.length; r < o; r++)
15034
15034
  n.call(null, e[r], r, e);
15035
15035
  else {
15036
- if (Ii(e))
15036
+ if (Ri(e))
15037
15037
  return;
15038
15038
  const a = t ? Object.getOwnPropertyNames(e) : Object.keys(e), i = a.length;
15039
15039
  let s;
@@ -15042,7 +15042,7 @@ function Ai(e, n, { allOwnKeys: t = !1 } = {}) {
15042
15042
  }
15043
15043
  }
15044
15044
  function bm(e, n) {
15045
- if (Ii(e))
15045
+ if (Ri(e))
15046
15046
  return null;
15047
15047
  n = n.toLowerCase();
15048
15048
  const t = Object.keys(e);
@@ -15059,10 +15059,10 @@ function xc() {
15059
15059
  bs(t[i]) && bs(o) ? t[i] = xc(t[i], o) : bs(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
- arguments[o] && Ai(arguments[o], r);
15062
+ arguments[o] && Ti(arguments[o], r);
15063
15063
  return t;
15064
15064
  }
15065
- const l3 = (e, n, t, { allOwnKeys: r } = {}) => (Ai(n, (o, a) => {
15065
+ const l3 = (e, n, t, { allOwnKeys: r } = {}) => (Ti(n, (o, a) => {
15066
15066
  t && qn(o) ? e[a] = vm(o, t) : e[a] = o;
15067
15067
  }, { allOwnKeys: r }), e), c3 = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), d3 = (e, n, t, r) => {
15068
15068
  e.prototype = Object.create(n.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
@@ -15111,7 +15111,7 @@ const l3 = (e, n, t, { allOwnKeys: r } = {}) => (Ai(n, (o, a) => {
15111
15111
  }
15112
15112
  ), Ph = (({ hasOwnProperty: e }) => (n, t) => e.call(n, t))(Object.prototype), w3 = pr("RegExp"), xm = (e, n) => {
15113
15113
  const t = Object.getOwnPropertyDescriptors(e), r = {};
15114
- Ai(t, (o, a) => {
15114
+ Ti(t, (o, a) => {
15115
15115
  let i;
15116
15116
  (i = n(o, a, e)) !== !1 && (r[a] = i || o);
15117
15117
  }), Object.defineProperties(e, r);
@@ -15144,15 +15144,15 @@ function S3(e) {
15144
15144
  }
15145
15145
  const E3 = (e) => {
15146
15146
  const n = new Array(10), t = (r, o) => {
15147
- if (Ti(r)) {
15147
+ if (Ii(r)) {
15148
15148
  if (n.indexOf(r) >= 0)
15149
15149
  return;
15150
- if (Ii(r))
15150
+ if (Ri(r))
15151
15151
  return r;
15152
15152
  if (!("toJSON" in r)) {
15153
15153
  n[o] = r;
15154
15154
  const a = $a(r) ? [] : {};
15155
- return Ai(r, (i, s) => {
15155
+ return Ti(r, (i, s) => {
15156
15156
  const u = t(i, o + 1);
15157
15157
  !Aa(u) && (a[s] = u);
15158
15158
  }), n[o] = void 0, a;
@@ -15161,7 +15161,7 @@ const E3 = (e) => {
15161
15161
  return r;
15162
15162
  };
15163
15163
  return t(e, 0);
15164
- }, R3 = pr("AsyncFunction"), I3 = (e) => e && (Ti(e) || qn(e)) && qn(e.then) && qn(e.catch), Cm = ((e, n) => e ? setImmediate : n ? ((t, r) => (Ro.addEventListener("message", ({ source: o, data: a }) => {
15164
+ }, R3 = pr("AsyncFunction"), I3 = (e) => e && (Ii(e) || qn(e)) && qn(e.then) && qn(e.catch), Cm = ((e, n) => e ? setImmediate : n ? ((t, r) => (Ro.addEventListener("message", ({ source: o, data: a }) => {
15165
15165
  o === Ro && a === t && r.length && r.shift()();
15166
15166
  }, !1), (o) => {
15167
15167
  r.push(o), Ro.postMessage(t, "*");
@@ -15171,13 +15171,13 @@ const E3 = (e) => {
15171
15171
  ), T3 = typeof queueMicrotask < "u" ? queueMicrotask.bind(Ro) : typeof process < "u" && process.nextTick || Cm, A3 = (e) => e != null && qn(e[wu]), Z = {
15172
15172
  isArray: $a,
15173
15173
  isArrayBuffer: gm,
15174
- isBuffer: Ii,
15174
+ isBuffer: Ri,
15175
15175
  isFormData: n3,
15176
15176
  isArrayBufferView: G_,
15177
15177
  isString: K_,
15178
15178
  isNumber: ym,
15179
15179
  isBoolean: Y_,
15180
- isObject: Ti,
15180
+ isObject: Ii,
15181
15181
  isPlainObject: bs,
15182
15182
  isEmptyObject: X_,
15183
15183
  isReadableStream: o3,
@@ -15194,7 +15194,7 @@ const E3 = (e) => {
15194
15194
  isURLSearchParams: r3,
15195
15195
  isTypedArray: v3,
15196
15196
  isFileList: e3,
15197
- forEach: Ai,
15197
+ forEach: Ti,
15198
15198
  merge: xc,
15199
15199
  extend: l3,
15200
15200
  trim: u3,
@@ -15531,7 +15531,7 @@ function j3(e, n, t) {
15531
15531
  }
15532
15532
  return (t || JSON.stringify)(e);
15533
15533
  }
15534
- const Di = {
15534
+ const Ai = {
15535
15535
  transitional: Im,
15536
15536
  adapter: ["xhr", "http", "fetch"],
15537
15537
  transformRequest: [function(n, t) {
@@ -15560,7 +15560,7 @@ const Di = {
15560
15560
  return a || o ? (t.setContentType("application/json", !1), j3(n)) : n;
15561
15561
  }],
15562
15562
  transformResponse: [function(n) {
15563
- const t = this.transitional || Di.transitional, r = t && t.forcedJSONParsing, o = this.responseType === "json";
15563
+ const t = this.transitional || Ai.transitional, r = t && t.forcedJSONParsing, o = this.responseType === "json";
15564
15564
  if (Z.isResponse(n) || Z.isReadableStream(n))
15565
15565
  return n;
15566
15566
  if (n && Z.isString(n) && (r && !this.responseType || o)) {
@@ -15598,7 +15598,7 @@ const Di = {
15598
15598
  }
15599
15599
  };
15600
15600
  Z.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
15601
- Di.headers[e] = {};
15601
+ Ai.headers[e] = {};
15602
15602
  });
15603
15603
  const G3 = Z.toObjectSet([
15604
15604
  "age",
@@ -15626,7 +15626,7 @@ const G3 = Z.toObjectSet([
15626
15626
  o = i.indexOf(":"), t = i.substring(0, o).trim().toLowerCase(), r = i.substring(o + 1).trim(), !(!t || n[t] && G3[t]) && (t === "set-cookie" ? n[t] ? n[t].push(r) : n[t] = [r] : n[t] = n[t] ? n[t] + ", " + r : r);
15627
15627
  }), n;
15628
15628
  }, Lh = Symbol("internals");
15629
- function Qa(e) {
15629
+ function Xa(e) {
15630
15630
  return e && String(e).trim().toLowerCase();
15631
15631
  }
15632
15632
  function ws(e) {
@@ -15671,7 +15671,7 @@ let Vn = class {
15671
15671
  set(n, t, r) {
15672
15672
  const o = this;
15673
15673
  function a(s, u, l) {
15674
- const c = Qa(u);
15674
+ const c = Xa(u);
15675
15675
  if (!c)
15676
15676
  throw new Error("header name must be a non-empty string");
15677
15677
  const d = Z.findKey(o, c);
@@ -15695,7 +15695,7 @@ let Vn = class {
15695
15695
  return this;
15696
15696
  }
15697
15697
  get(n, t) {
15698
- if (n = Qa(n), n) {
15698
+ if (n = Xa(n), n) {
15699
15699
  const r = Z.findKey(this, n);
15700
15700
  if (r) {
15701
15701
  const o = this[r];
@@ -15712,7 +15712,7 @@ let Vn = class {
15712
15712
  }
15713
15713
  }
15714
15714
  has(n, t) {
15715
- if (n = Qa(n), n) {
15715
+ if (n = Xa(n), n) {
15716
15716
  const r = Z.findKey(this, n);
15717
15717
  return !!(r && this[r] !== void 0 && (!t || dl(this, this[r], r, t)));
15718
15718
  }
@@ -15722,7 +15722,7 @@ let Vn = class {
15722
15722
  const r = this;
15723
15723
  let o = !1;
15724
15724
  function a(i) {
15725
- if (i = Qa(i), i) {
15725
+ if (i = Xa(i), i) {
15726
15726
  const s = Z.findKey(r, i);
15727
15727
  s && (!t || dl(r, r[s], s, t)) && (delete r[s], o = !0);
15728
15728
  }
@@ -15784,7 +15784,7 @@ let Vn = class {
15784
15784
  accessors: {}
15785
15785
  }).accessors, o = this.prototype;
15786
15786
  function a(i) {
15787
- const s = Qa(i);
15787
+ const s = Xa(i);
15788
15788
  r[s] || (Z3(o, i), r[s] = !0);
15789
15789
  }
15790
15790
  return Z.isArray(n) ? n.forEach(a) : a(n), this;
@@ -15802,7 +15802,7 @@ Z.reduceDescriptors(Vn.prototype, ({ value: e }, n) => {
15802
15802
  });
15803
15803
  Z.freezeMethods(Vn);
15804
15804
  function fl(e, n) {
15805
- const t = this || Di, r = n || t, o = Vn.from(r.headers);
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) {
15808
15808
  a = s.call(t, a, o.normalize(), n ? n.status : void 0);
@@ -16373,7 +16373,7 @@ function Kh(e) {
16373
16373
  return hl(e), e.headers = Vn.from(e.headers), e.data = fl.call(
16374
16374
  e,
16375
16375
  e.transformRequest
16376
- ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Bm.getAdapter(e.adapter || Di.adapter, e)(e).then(function(r) {
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
16377
  return hl(e), r.data = fl.call(
16378
16378
  e,
16379
16379
  e.transformResponse,
@@ -16721,7 +16721,7 @@ function Lm(e) {
16721
16721
  return Lm(Vo(e, o));
16722
16722
  }, t;
16723
16723
  }
16724
- const Jt = Lm(Di);
16724
+ const Jt = Lm(Ai);
16725
16725
  Jt.Axios = Bo;
16726
16726
  Jt.CanceledError = Wa;
16727
16727
  Jt.CancelToken = yS;
@@ -16761,11 +16761,10 @@ const {
16761
16761
  } = Jt;
16762
16762
  class kn {
16763
16763
  constructor() {
16764
- ja(this, "axiosInstance");
16765
- ja(this, "access_token", null);
16766
- ja(this, "isRefreshing", !1);
16767
- ja(this, "refreshSubscribers", []);
16768
- this.access_token = this.getAccessToken(), this.axiosInstance = Jt.create({
16764
+ zi(this, "axiosInstance");
16765
+ zi(this, "isRefreshing", !1);
16766
+ zi(this, "refreshSubscribers", []);
16767
+ this.axiosInstance = Jt.create({
16769
16768
  baseURL: process.env.VUE_APP_BACKEND,
16770
16769
  headers: {
16771
16770
  "Content-Type": "application/json",
@@ -16773,14 +16772,14 @@ class kn {
16773
16772
  },
16774
16773
  withCredentials: !0
16775
16774
  }), this.axiosInstance.interceptors.request.use(
16776
- (n) => (this.access_token && n.headers && (n.headers.Authorization = `Bearer ${this.access_token}`), n),
16775
+ (n) => (n.headers.Authorization = `Bearer ${this.getAccessToken()}`, n),
16777
16776
  (n) => Promise.reject(n)
16778
16777
  ), this.axiosInstance.interceptors.response.use(
16779
16778
  (n) => n.data,
16780
16779
  async (n) => {
16781
16780
  var r;
16782
16781
  const t = n.config;
16783
- if (((r = n.response) == null ? void 0 : r.status) !== 401 || t._retry)
16782
+ if (((r = n.response) == null ? void 0 : r.status) !== 401 || t.url === "/v2/auth/refresh" || t._retry)
16784
16783
  return Promise.reject(n);
16785
16784
  if (t._retry = !0, this.isRefreshing)
16786
16785
  return new Promise((o) => {
@@ -16789,9 +16788,9 @@ class kn {
16789
16788
  this.isRefreshing = !0;
16790
16789
  try {
16791
16790
  const a = (await this.refresh()).accessToken;
16792
- return console.log(a), a ? (this.setAccessToken(a), this.onRefreshed(a), this.isRefreshing = !1, t.headers.Authorization = `Bearer ${a}`, this.axiosInstance(t)) : (this.logoutUser(), Promise.reject(n));
16791
+ return a ? (this.setAccessToken(a), this.onRefreshed(a), this.isRefreshing = !1, this.axiosInstance(t)) : (this.logoutUser(), Promise.reject(n));
16793
16792
  } catch (o) {
16794
- return this.isRefreshing = !1, this.logoutUser(), Promise.reject(o);
16793
+ return this.logoutUser(), Promise.reject(o);
16795
16794
  }
16796
16795
  }
16797
16796
  );
@@ -16815,7 +16814,7 @@ class kn {
16815
16814
  this.refreshSubscribers.forEach((t) => t(n)), this.refreshSubscribers = [];
16816
16815
  }
16817
16816
  logoutUser() {
16818
- this.post("/v2/logout", {}), this.removeToken(), window.location.href = "/sign-in";
16817
+ this.isRefreshing = !1, this.post("/v2/logout", {}), this.removeToken(), window.location.href = "/sign-in";
16819
16818
  }
16820
16819
  handleError(n) {
16821
16820
  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);
@@ -17951,7 +17950,7 @@ function So(e, n) {
17951
17950
  }
17952
17951
  return { newShape: t, keptDims: r };
17953
17952
  }
17954
- function hi(e, n) {
17953
+ function fi(e, n) {
17955
17954
  var t = null;
17956
17955
  if (e == null || e === "float32") t = new Float32Array(n);
17957
17956
  else if (e === "int32") t = new Int32Array(n);
@@ -18009,8 +18008,8 @@ function YS(e) {
18009
18008
  function XS(e) {
18010
18009
  return typeof e == "number";
18011
18010
  }
18012
- function Mi(e) {
18013
- return Array.isArray(e) ? Mi(e[0]) : e instanceof Float32Array ? "float32" : e instanceof Int32Array || e instanceof Uint8Array ? "int32" : XS(e) ? "float32" : Id(e) ? "string" : YS(e) ? "bool" : "float32";
18011
+ function Di(e) {
18012
+ 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";
18014
18013
  }
18015
18014
  function Ic(e) {
18016
18015
  return !!(e && e.constructor && e.call && e.apply);
@@ -18061,10 +18060,10 @@ function Zh(e, n) {
18061
18060
  }(0, e, n);
18062
18061
  }
18063
18062
  function Gm(e, n) {
18064
- for (var t = Fi(e, n), r = 0; r < t.length; r++) t[r] = 1;
18063
+ for (var t = Mi(e, n), r = 0; r < t.length; r++) t[r] = 1;
18065
18064
  return t;
18066
18065
  }
18067
- function Fi(e, n) {
18066
+ function Mi(e, n) {
18068
18067
  if (n == null || n === "float32" || n === "complex64") return new Float32Array(e);
18069
18068
  if (n === "int32") return new Int32Array(e);
18070
18069
  if (n === "bool") return new Uint8Array(e);
@@ -18132,37 +18131,37 @@ var JS = function() {
18132
18131
  }
18133
18132
  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");
18134
18133
  }, e;
18135
- }(), ep = 20, Za = 3, Dl = 7;
18134
+ }(), ep = 20, Qa = 3, Dl = 7;
18136
18135
  function t4(e, n, t, r) {
18137
18136
  var o = Rr(n), a = function(l, c, d, f) {
18138
- var h = Be(c), p = f[f.length - 1], m = new Array(p).fill(0), v = c.length, y = d === "complex64" ? ei(l) : l;
18139
- if (v > 1) for (var w = 0; w < h / p; w++) for (var b = w * p, g = 0; g < p; g++) m[g] = Math.max(m[g], Ja(y[b + g], 0, d).length);
18137
+ var h = Be(c), p = f[f.length - 1], m = new Array(p).fill(0), v = c.length, y = d === "complex64" ? Ja(l) : l;
18138
+ if (v > 1) for (var w = 0; w < h / p; w++) for (var b = w * p, g = 0; g < p; g++) m[g] = Math.max(m[g], Za(y[b + g], 0, d).length);
18140
18139
  return m;
18141
18140
  }(e, n, t, o), i = n.length, s = function l(c, d, f, h, p, m) {
18142
18141
  m === void 0 && (m = !0);
18143
18142
  var v = f === "complex64" ? 2 : 1, y = d[0], w = d.length;
18144
18143
  if (w === 0)
18145
- return f === "complex64" ? [Ja(ei(c)[0], 0, f)] : f === "bool" ? [Ym(c[0])] : [c[0].toString()];
18144
+ return f === "complex64" ? [Za(Ja(c)[0], 0, f)] : f === "bool" ? [Ym(c[0])] : [c[0].toString()];
18146
18145
  if (w === 1) {
18147
18146
  if (y > ep) {
18148
- var b = Za * v, g = Array.from(c.slice(0, b)), x = Array.from(c.slice((y - Za) * v, y * v));
18149
- return f === "complex64" && (g = ei(g), x = ei(x)), ["[" + g.map(function(O, z) {
18150
- return Ja(O, p[z], f);
18147
+ var b = Qa * v, g = Array.from(c.slice(0, b)), x = Array.from(c.slice((y - Qa) * v, y * v));
18148
+ return f === "complex64" && (g = Ja(g), x = Ja(x)), ["[" + g.map(function(O, z) {
18149
+ return Za(O, p[z], f);
18151
18150
  }).join(", ") + ", ..., " + x.map(function(O, z) {
18152
- return Ja(O, p[y - Za + z], f);
18151
+ return Za(O, p[y - Qa + z], f);
18153
18152
  }).join(", ") + "]"];
18154
18153
  }
18155
- return ["[" + (f === "complex64" ? ei(c) : Array.from(c)).map(function(O, z) {
18156
- return Ja(O, p[z], f);
18154
+ return ["[" + (f === "complex64" ? Ja(c) : Array.from(c)).map(function(O, z) {
18155
+ return Za(O, p[z], f);
18157
18156
  }).join(", ") + "]"];
18158
18157
  }
18159
18158
  var C = d.slice(1), S = h.slice(1), E = h[0] * v, R = [];
18160
18159
  if (y > ep) {
18161
- for (var k = 0; k < Za; k++) {
18160
+ for (var k = 0; k < Qa; k++) {
18162
18161
  var T = (A = k * E) + E;
18163
18162
  R.push.apply(R, l(c.slice(A, T), C, f, S, p, !1));
18164
18163
  }
18165
- for (R.push("..."), k = y - Za; k < y; k++)
18164
+ for (R.push("..."), k = y - Qa; k < y; k++)
18166
18165
  T = (A = k * E) + E, R.push.apply(R, l(c.slice(A, T), C, f, S, p, k === y - 1));
18167
18166
  } else for (k = 0; k < y; k++) {
18168
18167
  var A;
@@ -18182,17 +18181,17 @@ function t4(e, n, t, r) {
18182
18181
  `)), u.join(`
18183
18182
  `);
18184
18183
  }
18185
- function Ja(e, n, t) {
18184
+ function Za(e, n, t) {
18186
18185
  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);
18187
18186
  }
18188
18187
  function Ym(e) {
18189
18188
  return e === 0 ? "false" : "true";
18190
18189
  }
18191
- function ei(e) {
18190
+ function Ja(e) {
18192
18191
  for (var n = [], t = 0; t < e.length; t += 2) n.push([e[t], e[t + 1]]);
18193
18192
  return n;
18194
18193
  }
18195
- var pi = function() {
18194
+ var hi = function() {
18196
18195
  function e(n, t, r) {
18197
18196
  var o = this;
18198
18197
  if (this.dtype = t, this.shape = n.slice(), this.size = Be(n), r != null) {
@@ -18960,7 +18959,7 @@ var Fl, np = function() {
18960
18959
  u != null && (o = u.gradFunc), o != null && (s.gradient = function(l) {
18961
18960
  return l = l.map(function(c, d) {
18962
18961
  if (c == null) {
18963
- var f = r[d], h = Fi(f.size, f.dtype);
18962
+ var f = r[d], h = Mi(f.size, f.dtype);
18964
18963
  return i.makeTensor(h, f.shape, f.dtype);
18965
18964
  }
18966
18965
  return c;
@@ -19183,7 +19182,7 @@ Nr.registerFlag("DEBUG", function() {
19183
19182
  }), Nr.registerFlag("IS_TEST", function() {
19184
19183
  return !1;
19185
19184
  });
19186
- var vi, Yn, Un, ko = {}, Pl = { alpha: !1, antialias: !1, premultipliedAlpha: !1, preserveDrawingBuffer: !1, depth: !1, stencil: !1, failIfMajorPerformanceCaveat: !0 };
19185
+ var pi, Yn, Un, ko = {}, Pl = { alpha: !1, antialias: !1, premultipliedAlpha: !1, preserveDrawingBuffer: !1, depth: !1, stencil: !1, failIfMajorPerformanceCaveat: !0 };
19187
19186
  function a4(e, n) {
19188
19187
  ko[e] = n;
19189
19188
  }
@@ -19205,11 +19204,11 @@ function Mr(e) {
19205
19204
  function Su(e, n) {
19206
19205
  return [n, e];
19207
19206
  }
19208
- function ai(e) {
19207
+ function oi(e) {
19209
19208
  var n = Be(e);
19210
19209
  return Rc(Math.ceil(n / 4));
19211
19210
  }
19212
- function Pi(e, n) {
19211
+ function Fi(e, n) {
19213
19212
  return [Math.max(1, Math.ceil(n / 2)), Math.max(1, Math.ceil(e / 2))];
19214
19213
  }
19215
19214
  function Td(e, n) {
@@ -19225,7 +19224,7 @@ function Ne(e, n, t) {
19225
19224
  }
19226
19225
  (function(e) {
19227
19226
  e[e.DENSE = 0] = "DENSE", e[e.SHARED_BATCH = 1] = "SHARED_BATCH";
19228
- })(vi || (vi = {})), function(e) {
19227
+ })(pi || (pi = {})), function(e) {
19229
19228
  e[e.RENDER = 0] = "RENDER", e[e.UPLOAD = 1] = "UPLOAD", e[e.PIXELS = 2] = "PIXELS", e[e.DOWNLOAD = 3] = "DOWNLOAD";
19230
19229
  }(Yn || (Yn = {})), function(e) {
19231
19230
  e[e.UNPACKED_FLOAT16 = 0] = "UNPACKED_FLOAT16", e[e.UNPACKED_FLOAT32 = 1] = "UNPACKED_FLOAT32", e[e.PACKED_4X1_UNSIGNED_BYTE = 2] = "PACKED_4X1_UNSIGNED_BYTE", e[e.PACKED_2X2_FLOAT32 = 3] = "PACKED_2X2_FLOAT32", e[e.PACKED_2X2_FLOAT16 = 4] = "PACKED_2X2_FLOAT16";
@@ -19580,7 +19579,7 @@ function ip(e, n, t, r) {
19580
19579
  }
19581
19580
  function M(e, n, t, r) {
19582
19581
  if (r === void 0 && (r = "numeric"), e instanceof Ht) return ip(r, e.dtype, n, t), e;
19583
- var o = Mi(e);
19582
+ var o = Di(e);
19584
19583
  if (o !== "string" && ["bool", "int32", "float32"].indexOf(r) >= 0 && (o = r), ip(r, o, n, t), e == null || !Er(e) && !Array.isArray(e) && typeof e != "number" && typeof e != "boolean" && typeof e != "string") {
19585
19584
  var a = e == null ? "null" : e.constructor.name;
19586
19585
  throw new Error("Argument '" + n + "' passed to '" + t + "' must be a Tensor or TensorLike, but got '" + a + "'");
@@ -19750,7 +19749,7 @@ function wn(e, n, t) {
19750
19749
  return mo(e, n, vo(e, t), t);
19751
19750
  }
19752
19751
  function mo(e, n, t, r) {
19753
- if (r == null && (r = Mi(e)), r === "complex64") throw new Error("Cannot construct a complex64 tensor directly. Please use tf.complex(real, imag).");
19752
+ if (r == null && (r = Di(e)), r === "complex64") throw new Error("Cannot construct a complex64 tensor directly. Please use tf.complex(real, imag).");
19754
19753
  if (!Er(e) && !Array.isArray(e) && typeof e != "number" && typeof e != "boolean" && typeof e != "string") throw new Error("values passed to tensor(values) must be a number/boolean/string or an array of numbers/booleans/strings, or a TypedArray");
19755
19754
  if (n != null) {
19756
19755
  Km(n);
@@ -19829,7 +19828,7 @@ function Vt(e, n) {
19829
19828
  var t = Vt(e, "float32"), r = Vt(e, "float32");
19830
19829
  return yn(t, r);
19831
19830
  }
19832
- var o = Fi(Be(e), n);
19831
+ var o = Mi(Be(e), n);
19833
19832
  return j.makeTensor(o, e, n);
19834
19833
  }
19835
19834
  function Ir(e, n, t) {
@@ -19846,7 +19845,7 @@ function q4(e, n, t) {
19846
19845
  function Hs(e, n, t, r) {
19847
19846
  if (t === void 0 && (t = 1), r === void 0 && (r = "float32"), t === 0) throw new Error("Cannot have a step of zero");
19848
19847
  if (e === n || e < n && t < 0 || n < e && t > 1) return Vt([0], r);
19849
- var o = Fi(Math.abs(Math.ceil((n - e) / t)), r);
19848
+ var o = Mi(Math.abs(Math.ceil((n - e) / t)), r);
19850
19849
  n < e && t === 1 && (t = -1), o[0] = e;
19851
19850
  for (var a = 1; a < o.length; a++) o[a] = o[a - 1] + t;
19852
19851
  return tn(o, r);
@@ -20237,7 +20236,7 @@ var Eu = _o.alea, Fd = function() {
20237
20236
  }, e;
20238
20237
  }();
20239
20238
  function ot(e, n, t) {
20240
- return n === void 0 && (n = "float32"), n = n || "float32", Km(e), new pi(e, n, t);
20239
+ return n === void 0 && (n = "float32"), n = n || "float32", Km(e), new hi(e, n, t);
20241
20240
  }
20242
20241
  function Z4(e, n) {
20243
20242
  n === void 0 && (n = !1), console.log(e.toString(n));
@@ -20535,7 +20534,7 @@ var ng = $({ batchToSpaceND_: function(e, n, t) {
20535
20534
  return o = f.sent(), [4, r.data()];
20536
20535
  case 2:
20537
20536
  for (a = f.sent(), i = new Set(a), s = 0, c = 0; c < o.length; c++) i.has(o[c]) || s++;
20538
- for (u = new pi([s], t.dtype), l = new pi([s], "int32"), c = 0, d = 0; c < o.length; c++) i.has(o[c]) || (u.values[d] = o[c], l.values[d] = c, d++);
20537
+ for (u = new hi([s], t.dtype), l = new hi([s], "int32"), c = 0, d = 0; c < o.length; c++) i.has(o[c]) || (u.values[d] = o[c], l.values[d] = c, d++);
20539
20538
  return [2, [u.toTensor(), l.toTensor()]];
20540
20539
  }
20541
20540
  });
@@ -21075,7 +21074,7 @@ function vt(e, n) {
21075
21074
  }
21076
21075
  return t;
21077
21076
  }
21078
- function mi(e, n, t, r, o, a, i) {
21077
+ function vi(e, n, t, r, o, a, i) {
21079
21078
  i === void 0 && (i = "channelsLast");
21080
21079
  var s, u = Qs(n), l = u[0], c = u[1];
21081
21080
  if (i === "channelsLast") s = [l, c, e[3], e[3]];
@@ -21109,11 +21108,11 @@ function jo(e, n, t, r, o, a, i, s) {
21109
21108
  V = { top: D, bottom: D, left: D, right: D, type: D === 0 ? "VALID" : "NUMBER" };
21110
21109
  var ue = function(ge, Ee, Oe, et, tt) {
21111
21110
  et == null && (et = vg(ge, Ee, Oe));
21112
- var Qe = ge[0], ct = ge[1], gt = ii((Qe - Ee + 2 * et) / Oe + 1, tt);
21111
+ var Qe = ge[0], ct = ge[1], gt = ai((Qe - Ee + 2 * et) / Oe + 1, tt);
21113
21112
  B(Zt(gt), function() {
21114
21113
  return "The output # of rows (" + gt + ") must be an integer. Change the stride and/or zero pad parameters";
21115
21114
  });
21116
- var Mt = ii((ct - Ee + 2 * et) / Oe + 1, tt);
21115
+ var Mt = ai((ct - Ee + 2 * et) / Oe + 1, tt);
21117
21116
  return B(Zt(Mt), function() {
21118
21117
  return "The output # of columns (" + Mt + ") must be an integer. Change the stride and/or zero pad parameters";
21119
21118
  }), [gt, Mt];
@@ -21145,15 +21144,15 @@ function Xs(e, n, t, r, o, a, i, s) {
21145
21144
  ge = { top: K, bottom: K, left: K, right: K, front: K, back: K, type: K === 0 ? "VALID" : "NUMBER" };
21146
21145
  var tt = function(Pe, st, mt, Ge, Ke, xt) {
21147
21146
  Ke == null && (Ke = vg(Pe, st, Ge));
21148
- var It = Pe[0], oe = Pe[1], he = Pe[2], Ve = ii((It - st + 2 * Ke) / Ge + 1, xt);
21147
+ var It = Pe[0], oe = Pe[1], he = Pe[2], Ve = ai((It - st + 2 * Ke) / Ge + 1, xt);
21149
21148
  B(Zt(Ve), function() {
21150
21149
  return "The output # of depths (" + Ve + ") must be an integer. Change the stride and/or zero pad parameters";
21151
21150
  });
21152
- var Ye = ii((oe - st + 2 * Ke) / Ge + 1, xt);
21151
+ var Ye = ai((oe - st + 2 * Ke) / Ge + 1, xt);
21153
21152
  B(Zt(Ye), function() {
21154
21153
  return "The output # of rows (" + Ye + ") must be an integer. Change the stride and/or zero pad parameters";
21155
21154
  });
21156
- var at = ii((he - st + 2 * Ke) / Ge + 1, xt);
21155
+ var at = ai((he - st + 2 * Ke) / Ge + 1, xt);
21157
21156
  return B(Zt(at), function() {
21158
21157
  return "The output # of columns (" + at + ") must be an integer. Change the stride and/or zero pad parameters";
21159
21158
  }), [Ve, Ye, at, mt];
@@ -21185,7 +21184,7 @@ function Oc(e) {
21185
21184
  function wa(e, n) {
21186
21185
  return n <= 1 ? e : e + (e - 1) * (n - 1);
21187
21186
  }
21188
- function ii(e, n) {
21187
+ function ai(e, n) {
21189
21188
  if (!n) return e;
21190
21189
  switch (n) {
21191
21190
  case "round":
@@ -21232,7 +21231,7 @@ function Nc(e, n) {
21232
21231
  return j.makeTensorFromDataId(e.dataId, n, e.dtype);
21233
21232
  }
21234
21233
  function gg(e, n, t) {
21235
- var r = (n - e) / (t - 1), o = Fi(t, "float32");
21234
+ var r = (n - e) / (t - 1), o = Mi(t, "float32");
21236
21235
  o[0] = e;
21237
21236
  for (var a = 1; a < o.length; a++) o[a] = o[a - 1] + r;
21238
21237
  return tn(o, "float32");
@@ -21328,7 +21327,7 @@ function wg(e, n) {
21328
21327
  return o.toTensor();
21329
21328
  }
21330
21329
  function xg(e, n, t, r, o) {
21331
- for (var a = n[n.length - 1], i = [e.length / a, a], s = i[0], u = i[1], l = hi(t, s * r), c = hi("int32", s * r), d = 0; d < s; d++) {
21330
+ for (var a = n[n.length - 1], i = [e.length / a, a], s = i[0], u = i[1], l = fi(t, s * r), c = fi("int32", s * r), d = 0; d < s; d++) {
21332
21331
  for (var f = d * u, h = e.subarray(f, f + u), p = [], m = 0; m < h.length; m++) p.push({ value: h[m], index: m });
21333
21332
  p.sort(function(g, x) {
21334
21333
  return x.value - g.value;
@@ -23660,8 +23659,8 @@ function vp(e, n) {
23660
23659
  throw Error("Cumulative sum for rank " + e + " is not yet supported");
23661
23660
  }
23662
23661
  var nR = function(e) {
23663
- this.variableNames = ["A"], this.packedInputs = !1, this.packedOutput = !0, this.outPackingScheme = vi.DENSE;
23664
- var n = ai(e), t = In();
23662
+ this.variableNames = ["A"], this.packedInputs = !1, this.packedOutput = !0, this.outPackingScheme = pi.DENSE;
23663
+ var n = oi(e), t = In();
23665
23664
  this.outputShape = e, this.userCode = `
23666
23665
  ivec3 outCoordsFromFlatIndex(int index) {
23667
23666
  ` + Io(["r", "c", "d"], e) + `
@@ -23685,8 +23684,8 @@ var nR = function(e) {
23685
23684
  }
23686
23685
  `;
23687
23686
  }, rR = function(e) {
23688
- this.variableNames = ["A"], this.packedInputs = !0, this.packedOutput = !0, this.outPackingScheme = vi.DENSE;
23689
- var n = ai(e), t = In();
23687
+ this.variableNames = ["A"], this.packedInputs = !0, this.packedOutput = !0, this.outPackingScheme = pi.DENSE;
23688
+ var n = oi(e), t = In();
23690
23689
  this.outputShape = e, this.userCode = `
23691
23690
  ivec3 outCoordsFromFlatIndex(int index) {
23692
23691
  ` + Io(["r", "c", "d"], e) + `
@@ -23972,7 +23971,7 @@ function mR(e, n) {
23972
23971
  function gR(e, n) {
23973
23972
  return m4(e, n, new Uint16Array([0, 1, 2, 2, 1, 3]));
23974
23973
  }
23975
- function Bi(e, n, t, r, o, a, i) {
23974
+ function Pi(e, n, t, r, o, a, i) {
23976
23975
  y4(t, r);
23977
23976
  var s = g4(e, n), u = e.TEXTURE_2D;
23978
23977
  return Ne(e, n, function() {
@@ -23993,23 +23992,23 @@ function Bi(e, n, t, r, o, a, i) {
23993
23992
  }
23994
23993
  function yR(e, n, t, r, o) {
23995
23994
  var a = Su(t, r);
23996
- return Bi(e, n, a[0], a[1], o.internalFormatFloat, o.textureFormatFloat, e.FLOAT);
23995
+ return Pi(e, n, a[0], a[1], o.internalFormatFloat, o.textureFormatFloat, e.FLOAT);
23997
23996
  }
23998
23997
  function bR(e, n, t, r, o) {
23999
23998
  var a = Su(t, r);
24000
- return Bi(e, n, a[0], a[1], o.internalFormatHalfFloat, o.textureFormatFloat, o.textureTypeHalfFloat);
23999
+ return Pi(e, n, a[0], a[1], o.internalFormatHalfFloat, o.textureFormatFloat, o.textureTypeHalfFloat);
24001
24000
  }
24002
24001
  function wR(e, n, t, r, o) {
24003
24002
  var a = Su(t, r);
24004
- return Bi(e, n, a[0], a[1], e.RGBA, e.RGBA, e.UNSIGNED_BYTE);
24003
+ return Pi(e, n, a[0], a[1], e.RGBA, e.RGBA, e.UNSIGNED_BYTE);
24005
24004
  }
24006
24005
  function xR(e, n, t, r, o) {
24007
- var a = Pi(t, r);
24008
- return Bi(e, n, a[0], a[1], o.internalFormatPackedFloat, e.RGBA, e.FLOAT);
24006
+ var a = Fi(t, r);
24007
+ return Pi(e, n, a[0], a[1], o.internalFormatPackedFloat, e.RGBA, e.FLOAT);
24009
24008
  }
24010
24009
  function CR(e, n, t, r, o) {
24011
- var a = Pi(t, r);
24012
- return Bi(e, n, a[0], a[1], o.internalFormatPackedHalfFloat, e.RGBA, o.textureTypeHalfFloat);
24010
+ var a = Fi(t, r);
24011
+ return Pi(e, n, a[0], a[1], o.internalFormatPackedHalfFloat, e.RGBA, o.textureTypeHalfFloat);
24013
24012
  }
24014
24013
  function kR(e, n, t, r) {
24015
24014
  return Ne(e, n, function() {
@@ -24063,7 +24062,7 @@ function IR(e, n, t, r, o) {
24063
24062
  }
24064
24063
  function TR(e, n, t, r, o, a, i, s) {
24065
24064
  var u = e, l = new Float32Array(function(c, d) {
24066
- var f = Pi(c, d);
24065
+ var f = Fi(c, d);
24067
24066
  return f[0] * f[1] * 4;
24068
24067
  }(a, i));
24069
24068
  return u.bindBuffer(u.PIXEL_PACK_BUFFER, n), u.getBufferSubData(u.PIXEL_PACK_BUFFER, 0, l), u.bindBuffer(u.PIXEL_PACK_BUFFER, null), l;
@@ -24200,7 +24199,7 @@ var DR = function() {
24200
24199
  this.setOutputMatrixTextureDriver(n, r, t);
24201
24200
  }, e.prototype.setOutputPackedMatrixTexture = function(n, t, r) {
24202
24201
  this.throwIfDisposed();
24203
- var o = Pi(t, r), a = o[0], i = o[1];
24202
+ var o = Fi(t, r), a = o[0], i = o[1];
24204
24203
  this.setOutputMatrixTextureDriver(n, a, i);
24205
24204
  }, e.prototype.setOutputMatrixWriteRegion = function(n, t, r, o) {
24206
24205
  this.setOutputMatrixWriteRegionDriver(r, n, o, t);
@@ -26143,7 +26142,7 @@ var o5 = function(e, n) {
26143
26142
  result.a = (x.a >= 0.0) ? x.a : (exp(x.a) - 1.0);
26144
26143
 
26145
26144
  return result;
26146
- `, ti = function(e, n) {
26145
+ `, ei = function(e, n) {
26147
26146
  this.variableNames = ["A"], this.packedInputs = !0, this.packedOutput = !0, this.outputShape = e, this.userCode = `
26148
26147
  vec4 unaryOperation(vec4 x) {
26149
26148
  ` + n + `
@@ -26203,7 +26202,7 @@ var b5 = 600, w5 = function(e) {
26203
26202
  var r = this.texData.get(t), o = r.values, a = r.dtype, i = r.complexTensors, s = r.slice, u = r.shape, l = r.isPacked;
26204
26203
  if (s != null) {
26205
26204
  var c = void 0;
26206
- c = l ? new ti(u, rs) : new lt(u, rs);
26205
+ c = l ? new ei(u, rs) : new lt(u, rs);
26207
26206
  var d = this.runWebGLProgram(c, [{ dataId: t, shape: u, dtype: a }], a), f = this.readSync(d.dataId);
26208
26207
  return this.disposeData(d.dataId), f;
26209
26208
  }
@@ -26220,10 +26219,10 @@ var b5 = 600, w5 = function(e) {
26220
26219
  if (this.pendingRead.has(t)) return r = this.pendingRead.get(t), [2, new Promise(function(k) {
26221
26220
  return r.push(k);
26222
26221
  })];
26223
- if (o = this.texData.get(t), a = o.values, i = o.shape, s = o.slice, u = o.dtype, l = o.complexTensors, c = o.isPacked, s != null) return d = void 0, d = c ? new ti(i, rs) : new lt(i, rs), f = this.runWebGLProgram(d, [{ dataId: t, shape: i, dtype: u }], u), h = this.read(f.dataId), this.disposeData(f.dataId), [2, h];
26222
+ if (o = this.texData.get(t), a = o.values, i = o.shape, s = o.slice, u = o.dtype, l = o.complexTensors, c = o.isPacked, s != null) return d = void 0, d = c ? new ei(i, rs) : new lt(i, rs), f = this.runWebGLProgram(d, [{ dataId: t, shape: i, dtype: u }], u), h = this.read(f.dataId), this.disposeData(f.dataId), [2, h];
26224
26223
  if (a != null) return [2, this.convertAndCacheOnCPU(t)];
26225
26224
  if (!ie().getBool("WEBGL_DOWNLOAD_FLOAT_ENABLED") && ie().getNumber("WEBGL_VERSION") === 2) throw new Error("tensor.data() with WEBGL_DOWNLOAD_FLOAT_ENABLED=false and WEBGL_VERSION=2 not yet supported.");
26226
- return p = null, u !== "complex64" && ie().get("WEBGL_BUFFER_SUPPORTED") && (m = this.decode(t), v = this.texData.get(m.dataId), p = (E = this.gpgpu).createBufferFromTexture.apply(E, [v.texture].concat(ai(i)))), this.pendingRead.set(t, []), u === "complex64" ? [3, 2] : [4, this.gpgpu.createAndWaitForFence()];
26225
+ return p = null, u !== "complex64" && ie().get("WEBGL_BUFFER_SUPPORTED") && (m = this.decode(t), v = this.texData.get(m.dataId), p = (E = this.gpgpu).createBufferFromTexture.apply(E, [v.texture].concat(oi(i)))), this.pendingRead.set(t, []), u === "complex64" ? [3, 2] : [4, this.gpgpu.createAndWaitForFence()];
26227
26226
  case 1:
26228
26227
  R.sent(), R.label = 2;
26229
26228
  case 2:
@@ -26248,7 +26247,7 @@ var b5 = 600, w5 = function(e) {
26248
26247
  }, n.prototype.getValuesFromTexture = function(t) {
26249
26248
  var r, o = this.texData.get(t), a = o.shape, i = o.dtype, s = o.isPacked, u = Be(a);
26250
26249
  if (ie().getBool("WEBGL_DOWNLOAD_FLOAT_ENABLED")) {
26251
- var l = this.decode(t), c = this.texData.get(l.dataId), d = (r = this.gpgpu).downloadMatrixFromPackedTexture.apply(r, [c.texture].concat(ai(a))).subarray(0, u);
26250
+ 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);
26252
26251
  return this.disposeData(l.dataId), d;
26253
26252
  }
26254
26253
  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);
@@ -26726,7 +26725,7 @@ return a / b;`, t.shape, r.shape);
26726
26725
  var a = new Kt(zl, t.shape, r.shape);
26727
26726
  return this.compileAndRun(a, [t, r], o);
26728
26727
  }, n.prototype.packedUnaryOp = function(t, r, o) {
26729
- var a = new ti(t.shape, r);
26728
+ var a = new ei(t.shape, r);
26730
26729
  return this.compileAndRun(a, [t], o);
26731
26730
  }, n.prototype.packedBinaryOp = function(t, r, o, a, i) {
26732
26731
  i === void 0 && (i = !1);
@@ -26880,10 +26879,10 @@ return (round(mod(b, 2.0)) != 1) ?
26880
26879
  return this.compileAndRun(r, [t]);
26881
26880
  }, n.prototype.relu = function(t) {
26882
26881
  var r;
26883
- return r = ie().getBool("WEBGL_PACK") ? new ti(t.shape, Ag) : new lt(t.shape, Rg), this.compileAndRun(r, [t]);
26882
+ return r = ie().getBool("WEBGL_PACK") ? new ei(t.shape, Ag) : new lt(t.shape, Rg), this.compileAndRun(r, [t]);
26884
26883
  }, n.prototype.relu6 = function(t) {
26885
26884
  var r;
26886
- return r = ie().getBool("WEBGL_PACK") ? new ti(t.shape, Dg) : new lt(t.shape, Ig), this.compileAndRun(r, [t]);
26885
+ return r = ie().getBool("WEBGL_PACK") ? new ei(t.shape, Dg) : new lt(t.shape, Ig), this.compileAndRun(r, [t]);
26887
26886
  }, n.prototype.prelu = function(t, r) {
26888
26887
  var o = ie().getBool("WEBGL_PACK_BINARY_OPERATIONS") ? new qr(Eg, t.shape, r.shape) : new Kt(Sg, t.shape, r.shape);
26889
26888
  return this.compileAndRun(o, [t, r]);
@@ -27178,7 +27177,7 @@ return (round(mod(b, 2.0)) != 1) ?
27178
27177
  var o = r.shape, a = o[o.length - 1], i = lg(t, r), s = i[0], u = i[1], l = i[2], c = i[3], d = r.reshape([u, a]), f = t.reshape([t.size / l, l]), h = new pR(a, c, [u, l]);
27179
27178
  return this.compileAndRun(h, [f, d]).reshape(s);
27180
27179
  }, n.prototype.fill = function(t, r, o) {
27181
- if ((o = o || Mi(r)) === "string") {
27180
+ if ((o = o || Di(r)) === "string") {
27182
27181
  var a = Ls(o, Be(t));
27183
27182
  return a.fill(r), j.makeTensor(a, t, o, this);
27184
27183
  }
@@ -27213,13 +27212,13 @@ return (round(mod(b, 2.0)) != 1) ?
27213
27212
  var s = this;
27214
27213
  i === void 0 && (i = !1);
27215
27214
  var u = this.makeTensorInfo(t.outputShape, o), l = this.texData.get(u.dataId);
27216
- if (t.packedOutput && (l.isPacked = !0), t.outPackingScheme === vi.DENSE) {
27217
- var c = ai(t.outputShape);
27215
+ if (t.packedOutput && (l.isPacked = !0), t.outPackingScheme === pi.DENSE) {
27216
+ var c = oi(t.outputShape);
27218
27217
  l.texShape = c.map(function(b) {
27219
27218
  return 2 * b;
27220
27219
  });
27221
27220
  }
27222
- if (t.outTexUsage != null && (l.usage = t.outTexUsage), Be(u.shape) === 0) return l.values = hi(u.dtype, 0), u;
27221
+ if (t.outTexUsage != null && (l.usage = t.outTexUsage), Be(u.shape) === 0) return l.values = fi(u.dtype, 0), u;
27223
27222
  var d = [], f = r.map(function(b) {
27224
27223
  if (b.dtype === "complex64") throw new Error("GPGPUProgram does not support complex64 input. For complex64 dtypes, please separate the program into real and imaginary parts.");
27225
27224
  var g = s.texData.get(b.dataId);
@@ -27311,7 +27310,7 @@ return (round(mod(b, 2.0)) != 1) ?
27311
27310
  var h = o.texShape;
27312
27311
  if (h == null && (h = E4(a, c), o.texShape = h), s != null) {
27313
27312
  var p = ql(a), m = void 0, v = h[1], y = h[0], w = s instanceof Uint8Array;
27314
- c ? (v = (r = Pi(h[0], h[1]))[0], y = r[1], m = new lR(p, [y, v], w)) : m = new uR(p, [y, v], w);
27313
+ 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);
27315
27314
  var b = this.makeTensorInfo([y, v], i);
27316
27315
  this.texData.get(b.dataId).usage = w ? Yn.PIXELS : Yn.UPLOAD, this.gpgpu.uploadDenseMatrixToTexture(this.getTexture(b.dataId), v, y, s);
27317
27316
  var g = this.runWebGLProgram(m, [b], i, null, !0), x = this.texData.get(g.dataId);
@@ -27349,7 +27348,7 @@ var x5 = $({ square_: function(e) {
27349
27348
  return j.runKernelFunc(function(r, o) {
27350
27349
  return o([n]), r.square(n);
27351
27350
  }, { x: n }, null, "Square", {}, t, []);
27352
- } }), gi = "SquaredDifference", Fg = $({ squaredDifference_: function(e, n) {
27351
+ } }), mi = "SquaredDifference", Fg = $({ squaredDifference_: function(e, n) {
27353
27352
  var t, r = M(e, "a", "squaredDifference"), o = M(n, "b", "squaredDifference");
27354
27353
  t = jt(r, o), r = t[0], o = t[1], vt(r.shape, o.shape);
27355
27354
  var a = { a: r, b: o }, i = [r, o];
@@ -27363,7 +27362,7 @@ var x5 = $({ square_: function(e) {
27363
27362
  }, b: function() {
27364
27363
  return s.mul(c.sub(l).mul(d));
27365
27364
  } };
27366
- }, gi, {}, i, []);
27365
+ }, mi, {}, i, []);
27367
27366
  } }), C5 = $({ abs_: function(e) {
27368
27367
  var n = M(e, "x", "abs");
27369
27368
  return n.dtype === "complex64" ? j.runKernelFunc(function(t) {
@@ -27741,7 +27740,7 @@ function Og(e, n, t, r, o, a) {
27741
27740
  return "Error in batchNorm2D: scale must be rank 2 or rank 1 but got rank " + i.rank + ".";
27742
27741
  }), s != null && B(s.rank === 2 || s.rank === 1, function() {
27743
27742
  return "Error in batchNorm2D: offset must be rank 2 or rank 1 but got rank " + s.rank + ".";
27744
- }), Oi(u, l, c, s, i, a);
27743
+ }), Bi(u, l, c, s, i, a);
27745
27744
  }
27746
27745
  function Ng(e, n, t, r, o, a) {
27747
27746
  var i, s, u = M(e, "x", "batchNorm"), l = M(n, "mean", "batchNorm"), c = M(t, "variance", "batchNorm");
@@ -27755,7 +27754,7 @@ function Ng(e, n, t, r, o, a) {
27755
27754
  return "Error in batchNorm3D: scale must be rank 3 or rank 1 but got rank " + i.rank + ".";
27756
27755
  }), s != null && B(s.rank === 3 || s.rank === 1, function() {
27757
27756
  return "Error in batchNorm3D: offset must be rank 3 or rank 1 but got rank " + s.rank + ".";
27758
- }), Oi(u, l, c, s, i, a);
27757
+ }), Bi(u, l, c, s, i, a);
27759
27758
  }
27760
27759
  function Lg(e, n, t, r, o, a) {
27761
27760
  var i, s, u = M(e, "x", "batchNorm"), l = M(n, "mean", "batchNorm"), c = M(t, "variance", "batchNorm");
@@ -27769,9 +27768,9 @@ function Lg(e, n, t, r, o, a) {
27769
27768
  return "Error in batchNorm4D: scale must be rank 4 or rank 1 but got rank " + i.rank + ".";
27770
27769
  }), s != null && B(s.rank === 4 || s.rank === 1, function() {
27771
27770
  return "Error in batchNorm4D: offset must be rank 4 or rank 1 but got rank " + s.rank + ".";
27772
- }), Oi(u, l, c, s, i, a);
27771
+ }), Bi(u, l, c, s, i, a);
27773
27772
  }
27774
- function Oi(e, n, t, r, o, a) {
27773
+ function Bi(e, n, t, r, o, a) {
27775
27774
  a == null && (a = 1e-3);
27776
27775
  var i, s, u, l = M(e, "x", "batchNorm"), c = M(n, "mean", "batchNorm"), d = M(t, "variance", "batchNorm");
27777
27776
  o != null && (i = M(o, "scale", "batchNorm")), r != null && (s = M(r, "offset", "batchNorm")), B(c.rank === d.rank, function() {
@@ -27822,8 +27821,8 @@ var Q5 = $({ batchNormalization2d_: function(e, n, t, r, o, a) {
27822
27821
  } }), J5 = $({ batchNormalization4d_: function(e, n, t, r, o, a) {
27823
27822
  return r === void 0 && (r = 1e-3), Iu(), Lg(e, n, t, a, o, r);
27824
27823
  } }), eI = $({ batchNormalization_: function(e, n, t, r, o, a) {
27825
- return r === void 0 && (r = 1e-3), Iu(), Oi(e, n, t, a, o, r);
27826
- } }), qg = $({ batchNorm_: Oi }), tI = $({ batchNorm2d_: Og }), nI = $({ batchNorm3d_: Ng }), rI = $({ batchNorm4d_: Lg }), Tu = $({ logicalAnd_: function(e, n) {
27824
+ return r === void 0 && (r = 1e-3), Iu(), Bi(e, n, t, a, o, r);
27825
+ } }), qg = $({ batchNorm_: Bi }), tI = $({ batchNorm2d_: Og }), nI = $({ batchNorm3d_: Ng }), rI = $({ batchNorm4d_: Lg }), Tu = $({ logicalAnd_: function(e, n) {
27827
27826
  var t = M(e, "a", "logicalAnd", "bool"), r = M(n, "b", "logicalAnd", "bool");
27828
27827
  return vt(t.shape, r.shape), j.runKernelFunc(function(o) {
27829
27828
  return o.logicalAnd(t, r);
@@ -28513,7 +28512,7 @@ var AI = $({ conv1d_: function(e, n, t, r, o, a, i) {
28513
28512
  return B(t.rank === 1 && r.rank === 1, function() {
28514
28513
  return "Error in outerProduct: inputs must be rank 1, but got ranks " + t.rank + " and " + r.rank + ".";
28515
28514
  }), t.as2D(-1, 1).matMul(r.as2D(1, -1));
28516
- } }), Ni = $({ reverse_: function(e, n) {
28515
+ } }), Oi = $({ reverse_: function(e, n) {
28517
28516
  var t = M(e, "x", "reverse");
28518
28517
  if (t.rank === 0) return t.clone();
28519
28518
  var r = ln(n, t.shape);
@@ -28528,22 +28527,22 @@ var AI = $({ conv1d_: function(e, n, t, r, o, a, i) {
28528
28527
  var n = M(e, "x", "reverse");
28529
28528
  return B(n.rank === 1, function() {
28530
28529
  return "Error in reverse1D: x must be rank 1 but got rank " + n.rank + ".";
28531
- }), Ni(n, 0);
28530
+ }), Oi(n, 0);
28532
28531
  } }), NI = $({ reverse2d_: function(e, n) {
28533
28532
  var t = M(e, "x", "reverse");
28534
28533
  return B(t.rank === 2, function() {
28535
28534
  return "Error in reverse2D: x must be rank 2 but got rank " + t.rank + ".";
28536
- }), Ni(t, n);
28535
+ }), Oi(t, n);
28537
28536
  } }), LI = $({ reverse3d_: function(e, n) {
28538
28537
  var t = M(e, "x", "reverse");
28539
28538
  return B(t.rank === 3, function() {
28540
28539
  return "Error in reverse3D: x must be rank 3 but got rank " + t.rank + ".";
28541
- }), Ni(t, n);
28540
+ }), Oi(t, n);
28542
28541
  } }), qI = $({ reverse4d_: function(e, n) {
28543
28542
  var t = M(e, "x", "reverse");
28544
28543
  return B(t.rank === 4, function() {
28545
28544
  return "Error in reverse4D: x must be rank 4 but got rank " + t.rank + ".";
28546
- }), Ni(t, n);
28545
+ }), Oi(t, n);
28547
28546
  } });
28548
28547
  function Zg(e, n, t, r, o, a) {
28549
28548
  var i = M(e, "x", "maxPool"), s = i, u = !1;
@@ -28554,7 +28553,7 @@ function Zg(e, n, t, r, o, a) {
28554
28553
  }), a != null && B(Zt(o), function() {
28555
28554
  return "Error in maxPool: pad must be an integer when using, dimRoundingMode " + a + " but got pad " + o + ".";
28556
28555
  });
28557
- var l = mi(s.shape, n, t, r, o, a);
28556
+ var l = vi(s.shape, n, t, r, o, a);
28558
28557
  if (l.filterWidth === 1 && l.filterHeight === 1 && pn(l.inShape, l.outShape)) return i.clone();
28559
28558
  var c = [s], d = j.runKernelFunc(function(f, h) {
28560
28559
  var p = f.maxPool(s, l);
@@ -28573,7 +28572,7 @@ function Zg(e, n, t, r, o, a) {
28573
28572
  }), B(R.rank === 4, function() {
28574
28573
  return "Error in maxPoolBackprop: input must be rank 4 but got rank " + R.rank + ".";
28575
28574
  });
28576
- var T = mi(R.shape, b, g, x, C, S);
28575
+ var T = vi(R.shape, b, g, x, C, S);
28577
28576
  return j.runKernelFunc(function(A) {
28578
28577
  return A.maxPoolBackprop(E, R, k, T);
28579
28578
  }, { $dy: E, $input: R });
@@ -28593,7 +28592,7 @@ function Jg(e, n, t, r, o, a) {
28593
28592
  }), a != null && B(Zt(o), function() {
28594
28593
  return "Error in avgPool: pad must be an integer when using, dimRoundingMode " + a + " but got pad " + o + ".";
28595
28594
  });
28596
- var l = mi(s.shape, n, t, r, o, a);
28595
+ var l = vi(s.shape, n, t, r, o, a);
28597
28596
  if (l.filterWidth === 1 && l.filterHeight === 1 && pn(l.inShape, l.outShape)) return i.clone();
28598
28597
  var c = j.runKernelFunc(function(d) {
28599
28598
  return d.avgPool(s, l);
@@ -28612,7 +28611,7 @@ function Jg(e, n, t, r, o, a) {
28612
28611
  }), B(g.rank === 4, function() {
28613
28612
  return "Error in avgPoolBackprop: input must be rank 4 but got rank " + g.rank + ".";
28614
28613
  });
28615
- var S = mi(g.shape, p, m, v, y), E = j.runKernelFunc(function(R) {
28614
+ var S = vi(g.shape, p, m, v, y), E = j.runKernelFunc(function(R) {
28616
28615
  return R.avgPoolBackprop(x, g, S);
28617
28616
  }, { dy4D: x, input4D: g });
28618
28617
  return C ? E.as3D(E.shape[1], E.shape[2], E.shape[3]) : E;
@@ -28623,7 +28622,7 @@ function Jg(e, n, t, r, o, a) {
28623
28622
  }
28624
28623
  var dn = $({ maxPool_: function(e, n, t, r, o) {
28625
28624
  return Zg(e, n, t, 1, r, o);
28626
- } }), Li = $({ avgPool_: function(e, n, t, r, o) {
28625
+ } }), Ni = $({ avgPool_: function(e, n, t, r, o) {
28627
28626
  return Jg(e, n, t, 1, r, o);
28628
28627
  } }), VI = $({ pool_: function(e, n, t, r, o, a) {
28629
28628
  o == null && (o = [1, 1]), a == null && (a = 1), r === 0 && (r = "valid");
@@ -28631,7 +28630,7 @@ var dn = $({ maxPool_: function(e, n, t, r, o) {
28631
28630
  i.rank === 3 && (u = !0, s = i.as4D(1, i.shape[0], i.shape[1], i.shape[2])), B(Wn(a, o), function() {
28632
28631
  return "Error in pool: Either strides or dilations must be 1. Got strides " + a + " and dilations '" + o + "'";
28633
28632
  });
28634
- var l, c = mi(s.shape, n, a, o, r), d = [c.dilationHeight, c.dilationWidth];
28633
+ var l, c = vi(s.shape, n, a, o, r), d = [c.dilationHeight, c.dilationWidth];
28635
28634
  l = r === "same" ? function(g, x) {
28636
28635
  var C = g.map(function(R, k) {
28637
28636
  return R + (R - 1) * (x[k] - 1);
@@ -29259,7 +29258,7 @@ var Yd = $({ hannWindow_: function(e) {
29259
29258
  case 1:
29260
29259
  return i = y.sent(), [4, o.data()];
29261
29260
  case 2:
29262
- for (s = y.sent(), u = [i.length / a, a], c = u[1], d = hi("bool", l = u[0]), f = 0; f < l; f++) {
29261
+ for (s = y.sent(), u = [i.length / a, a], c = u[1], d = fi("bool", l = u[0]), f = 0; f < l; f++) {
29263
29262
  for (h = f * c, p = i.subarray(h, h + c), m = [], v = 0; v < p.length; v++) m.push({ value: p[v], index: v });
29264
29263
  for (m.sort(function(w, b) {
29265
29264
  return b.value - w.value;
@@ -29703,7 +29702,7 @@ var AT = $({ resizeBilinear_: function(e, n, t) {
29703
29702
  } }, O);
29704
29703
  }, "FusedDepthwiseConv2D", { convInfo: x, activation: f }, S, [!0]);
29705
29704
  return w ? E.as3D(E.shape[1], E.shape[2], E.shape[3]) : E;
29706
- } }), 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: Au, 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: Du, dot: PI, outerProduct: BI, reverse: Ni, reverse1d: OI, reverse2d: NI, reverse3d: LI, reverse4d: qI, maxPool: dn, avgPool: Li, 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: Zs, 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: Mu, 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: Js, powStrict: mI, squaredDifferenceStrict: gI, sub: un, subStrict: yI, elu: r0, leakyRelu: tT, prelu: o0, relu: Ut, relu6: a0, selu: nT, logicalAnd: Tu, 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: Hs, 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: eu, rfft: Kd, irfft: s0, sparseToDense: dT, gatherND: fT, diag: hT, dropout: pT, hannWindow: Yd, hammingWindow: l0, frame: Xd, stft: c0, inTopKAsync: mT });
29705
+ } }), 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: Au, 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: Du, 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: Zs, 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: Mu, 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: Js, powStrict: mI, squaredDifferenceStrict: gI, sub: un, subStrict: yI, elu: r0, leakyRelu: tT, prelu: o0, relu: Ut, relu6: a0, selu: nT, logicalAnd: Tu, 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: Hs, 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: eu, rfft: Kd, irfft: s0, sparseToDense: dT, gatherND: fT, diag: hT, dropout: pT, hannWindow: Yd, hammingWindow: l0, frame: Xd, stft: c0, inTopKAsync: mT });
29707
29706
  function de(e, n) {
29708
29707
  Array.isArray(e) || (e = [e]), e.forEach(function(t) {
29709
29708
  t != null && B(t.dtype !== "complex64", function() {
@@ -30809,7 +30808,7 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
30809
30808
  }, n.prototype.gatherND = function(t, r) {
30810
30809
  var o = r.shape, a = o[o.length - 1], i = lg(t, r), s = i[0], u = i[1], l = i[2], c = i[3];
30811
30810
  if (u === 0) return wn([], s, t.dtype);
30812
- for (var d = new pi([u, l], t.dtype), f = this.readSync(r.dataId), h = this.readSync(t.dataId), p = 0; p < u; p++) {
30811
+ for (var d = new hi([u, l], t.dtype), f = this.readSync(r.dataId), h = this.readSync(t.dataId), p = 0; p < u; p++) {
30813
30812
  for (var m = [], v = 0, y = 0; y < a; y++) {
30814
30813
  var w = f[p * a + y];
30815
30814
  v += w * c[y], m.push(w);
@@ -30822,7 +30821,7 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
30822
30821
  var a = Ks(0, t, o), i = a.sliceRank, s = a.numUpdates, u = a.sliceSize, l = a.strides, c = a.outputSize, d = Ce(0);
30823
30822
  return this.scatter(t, r, o, c, u, s, i, l, d, !0);
30824
30823
  }, n.prototype.fill = function(t, r, o) {
30825
- var a = Ls(o = o || Mi(r), Be(t));
30824
+ var a = Ls(o = o || Di(r), Be(t));
30826
30825
  return a.fill(r), j.makeTensor(a, t, o, this);
30827
30826
  }, n.prototype.onesLike = function(t) {
30828
30827
  if (t.dtype === "string") throw new Error("onesLike is not supported for string tensors");
@@ -30835,7 +30834,7 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
30835
30834
  }, n.prototype.scatter = function(t, r, o, a, i, s, u, l, c, d) {
30836
30835
  var f = [a / i, i], h = this.readSync(t.dataId), p = this.readSync(r.dataId);
30837
30836
  if (a === 0) return wn([], o, r.dtype);
30838
- var m = new pi(f, r.dtype);
30837
+ var m = new hi(f, r.dtype);
30839
30838
  m.values.fill(this.readSync(c.dataId)[0]);
30840
30839
  for (var v = 0; v < s; v++) {
30841
30840
  for (var y = [], w = 0, b = 0; b < u; b++) {
@@ -30864,11 +30863,11 @@ for (var Yl = 0, Ap = [{ kernelName: "NonMaxSuppressionV5", backendName: "cpu",
30864
30863
  i[s] = u * u;
30865
30864
  }
30866
30865
  return { dataId: o.write(i, r.shape, r.dtype), shape: r.shape, dtype: r.dtype };
30867
- } }, { kernelName: gi, backendName: "cpu", kernelFunc: function(e) {
30866
+ } }, { kernelName: mi, backendName: "cpu", kernelFunc: function(e) {
30868
30867
  var n = e.inputs, t = e.backend, r = n, o = r.a, a = r.b, i = t;
30869
- de([o, a], gi);
30868
+ de([o, a], mi);
30870
30869
  var s = i.data.get(o.dataId).values, u = i.data.get(a.dataId).values, l = function(f, h, p, m, v, y) {
30871
- var w = vt(f, h), b = w.length, g = Rr(w), x = hi(v, Be(w)), C = f.length, S = h.length, E = Rr(f), R = Rr(h), k = oo(f, w), T = oo(h, w);
30870
+ var w = vt(f, h), b = w.length, g = Rr(w), x = fi(v, Be(w)), C = f.length, S = h.length, E = Rr(f), R = Rr(h), k = oo(f, w), T = oo(h, w);
30872
30871
  if (k.length + T.length === 0) for (var A = 0; A < x.length; ++A) x[A] = y(p[A % p.length], m[A % m.length]);
30873
30872
  else {
30874
30873
  var q = function(D) {
@@ -30973,7 +30972,7 @@ for (var Xl = 0, Dp = [{ kernelName: "FromPixels", backendName: "webgl", kernelF
30973
30972
  } }, { kernelName: "Square", backendName: "webgl", kernelFunc: function(e) {
30974
30973
  var n = e.inputs, t = e.backend, r = n.x, o = t, a = new lt(r.shape, "return x * x;");
30975
30974
  return o.runWebGLProgram(a, [r], r.dtype);
30976
- } }, { kernelName: gi, backendName: "webgl", kernelFunc: function(e) {
30975
+ } }, { kernelName: mi, backendName: "webgl", kernelFunc: function(e) {
30977
30976
  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);
30978
30977
  return i.compileAndRun(s, [o, a]);
30979
30978
  } }]; Xl < Dp.length; Xl++)
@@ -30983,7 +30982,7 @@ for (var Ql = 0, Mp = [{ kernelName: "Square", gradFunc: function(e, n) {
30983
30982
  return { x: function() {
30984
30983
  return e.mul(t.toFloat().mul(2));
30985
30984
  } };
30986
- } }, { kernelName: gi, gradFunc: function(e, n) {
30985
+ } }, { kernelName: mi, gradFunc: function(e, n) {
30987
30986
  var t = n[0], r = n[1], o = Ce(2);
30988
30987
  return { a: function() {
30989
30988
  return Dn(e, Dn(o, un(t, r)));
@@ -31098,7 +31097,7 @@ function Pp(e) {
31098
31097
  var n = e.split("/");
31099
31098
  return n[n.length - 1];
31100
31099
  }
31101
- function qi(e) {
31100
+ function Li(e) {
31102
31101
  if (e.modelTopology instanceof ArrayBuffer) throw new Error("Expected JSON model topology, received ArrayBuffer.");
31103
31102
  return { dateSaved: /* @__PURE__ */ new Date(), modelTopologyType: "JSON", modelTopologyBytes: e.modelTopology == null ? 0 : Fp(JSON.stringify(e.modelTopology)), weightSpecsBytes: e.weightSpecs == null ? 0 : Fp(JSON.stringify(e.weightSpecs)), weightDataBytes: e.weightData == null ? 0 : e.weightData.byteLength };
31104
31103
  }
@@ -31232,7 +31231,7 @@ var Ca = function() {
31232
31231
  return s.close();
31233
31232
  };
31234
31233
  } else {
31235
- var c, d = qi(t), f = s.transaction(ao, "readwrite"), h = f.objectStore(ao), p = h.put({ modelPath: r.modelPath, modelArtifactsInfo: d });
31234
+ var c, d = Li(t), f = s.transaction(ao, "readwrite"), h = f.objectStore(ao), p = h.put({ modelPath: r.modelPath, modelArtifactsInfo: d });
31236
31235
  p.onsuccess = function() {
31237
31236
  var m = (c = s.transaction(To, "readwrite")).objectStore(To).put({ modelPath: r.modelPath, modelArtifacts: t, modelArtifactsInfo: d });
31238
31237
  m.onsuccess = function() {
@@ -31357,7 +31356,7 @@ var ka = function() {
31357
31356
  var t, r, o;
31358
31357
  return Fe(this, function(a) {
31359
31358
  if (n.modelTopology instanceof ArrayBuffer) throw new Error("BrowserLocalStorage.save() does not support saving model topology in binary formats yet.");
31360
- t = JSON.stringify(n.modelTopology), r = JSON.stringify(n.weightSpecs), o = qi(n);
31359
+ t = JSON.stringify(n.modelTopology), r = JSON.stringify(n.weightSpecs), o = Li(n);
31361
31360
  try {
31362
31361
  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) {
31363
31362
  if (zc) return Buffer.from(i).toString("base64");
@@ -31457,7 +31456,7 @@ var Jl = function() {
31457
31456
  case 3:
31458
31457
  u.sent(), u.label = 4;
31459
31458
  case 4:
31460
- return [2, { modelArtifactsInfo: qi(n) }];
31459
+ return [2, { modelArtifactsInfo: Li(n) }];
31461
31460
  }
31462
31461
  });
31463
31462
  });
@@ -31654,7 +31653,7 @@ var m0 = function() {
31654
31653
  if (n.modelTopology instanceof ArrayBuffer) throw new Error("BrowserHTTPRequest.save() does not support saving model topology in binary formats yet.");
31655
31654
  return (t = Object.assign({ method: this.DEFAULT_METHOD }, this.requestInit)).body = new FormData(), r = [{ paths: ["./model.weights.bin"], weights: n.weightSpecs }], o = { modelTopology: n.modelTopology, format: n.format, generatedBy: n.generatedBy, convertedBy: n.convertedBy, userDefinedMetadata: n.userDefinedMetadata, weightsManifest: r }, t.body.append("model.json", new Blob([JSON.stringify(o)], { type: "application/json" }), "model.json"), n.weightData != null && t.body.append("model.weights.bin", new Blob([n.weightData], { type: "application/octet-stream" }), "model.weights.bin"), [4, this.fetch(this.path, t)];
31656
31655
  case 1:
31657
- if ((a = i.sent()).ok) return [2, { modelArtifactsInfo: qi(n), responses: [a] }];
31656
+ if ((a = i.sent()).ok) return [2, { modelArtifactsInfo: Li(n), responses: [a] }];
31658
31657
  throw new Error("BrowserHTTPRequest.save() failed due to HTTP response status " + a.status + ".");
31659
31658
  }
31660
31659
  });
@@ -31788,7 +31787,7 @@ var ec = function() {
31788
31787
  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 }));
31789
31788
  }, getLoadHandlers: function(e, n) {
31790
31789
  return Xn.getLoadHandlers(e, n);
31791
- }, getModelArtifactsInfoForJSON: qi, getSaveHandlers: function(e) {
31790
+ }, getModelArtifactsInfoForJSON: Li, getSaveHandlers: function(e) {
31792
31791
  return Xn.getSaveHandlers(e);
31793
31792
  }, http: Hc, isHTTPScheme: Wc, loadWeights: function(e, n, t, r) {
31794
31793
  return n === void 0 && (n = ""), Me(this, void 0, void 0, function() {
@@ -32585,7 +32584,7 @@ function qe(e, n) {
32585
32584
  return { value: l[0] ? l[1] : void 0, done: !0 };
32586
32585
  }
32587
32586
  }
32588
- function si() {
32587
+ function ii() {
32589
32588
  for (var e = 0, n = 0, t = arguments.length; n < t; n++) e += arguments[n].length;
32590
32589
  for (var r = Array(e), o = 0, n = 0; n < t; n++)
32591
32590
  for (var a = arguments[n], i = 0, s = a.length; i < s; i++, o++)
@@ -32652,7 +32651,7 @@ function of(e) {
32652
32651
  return n.add(t);
32653
32652
  }, new _t(0, 0)).div(new _t(e.length, e.length));
32654
32653
  }
32655
- function yi(e, n, t) {
32654
+ function gi(e, n, t) {
32656
32655
  return Array(e).fill(0).map(function(r, o) {
32657
32656
  return n + o * t;
32658
32657
  });
@@ -32941,7 +32940,7 @@ function wA(e) {
32941
32940
  }, 0);
32942
32941
  return new Ou(r, o, a, i);
32943
32942
  }
32944
- function bi(e, n, t, r) {
32943
+ function yi(e, n, t, r) {
32945
32944
  r === void 0 && (r = !0);
32946
32945
  for (var o = n.map(function(s, u) {
32947
32946
  return { score: s, boxIndex: u };
@@ -32963,9 +32962,9 @@ function bi(e, n, t, r) {
32963
32962
  i();
32964
32963
  return a;
32965
32964
  }
32966
- function Vi(e, n) {
32965
+ function qi(e, n) {
32967
32966
  return Re(function() {
32968
- var t = n[0], r = n[1], o = n[2], a = Ir(si(e.shape.slice(0, 3), [1]), t), i = Ir(si(e.shape.slice(0, 3), [1]), r), s = Ir(si(e.shape.slice(0, 3), [1]), o), u = on([a, i, s], 3);
32967
+ var t = n[0], r = n[1], o = n[2], a = Ir(ii(e.shape.slice(0, 3), [1]), t), i = Ir(ii(e.shape.slice(0, 3), [1]), r), s = Ir(ii(e.shape.slice(0, 3), [1]), o), u = on([a, i, s], 3);
32969
32968
  return un(e, u);
32970
32969
  });
32971
32970
  }
@@ -33220,7 +33219,7 @@ var Nu = (
33220
33219
  function nu(e) {
33221
33220
  return e.detection instanceof er;
33222
33221
  }
33223
- function wi(e, n) {
33222
+ function bi(e, n) {
33224
33223
  var t = { detection: n };
33225
33224
  return Object.assign({}, e, t);
33226
33225
  }
@@ -33576,7 +33575,7 @@ var ru = (
33576
33575
  }), Object.defineProperty(e.prototype, "reshapedInputDimensions", {
33577
33576
  get: function() {
33578
33577
  var n = this;
33579
- return yi(this.batchSize, 0, 1).map(function(t, r) {
33578
+ return gi(this.batchSize, 0, 1).map(function(t, r) {
33580
33579
  return n.getReshapedInputDimensions(r);
33581
33580
  });
33582
33581
  },
@@ -33598,7 +33597,7 @@ var ru = (
33598
33597
  }, e.prototype.toBatchTensor = function(n, t) {
33599
33598
  var r = this;
33600
33599
  return t === void 0 && (t = !0), this._inputSize = n, Re(function() {
33601
- var o = yi(r.batchSize, 0, 1).map(function(i) {
33600
+ var o = gi(r.batchSize, 0, 1).map(function(i) {
33602
33601
  var s = r.getInput(i);
33603
33602
  if (s instanceof Ht) {
33604
33603
  var u = co(s) ? s : s.expandDims();
@@ -34072,8 +34071,8 @@ var P0 = (
34072
34071
  if (!r)
34073
34072
  throw new Error("FaceFeatureExtractor - load model before inference");
34074
34073
  return Re(function() {
34075
- var o = t.toBatchTensor(112, !0), a = [122.782, 117.001, 104.298], i = Vi(o, a).div(Ce(255)), s = us(i, r.dense0, !0);
34076
- return s = us(s, r.dense1), s = us(s, r.dense2), s = us(s, r.dense3), s = Li(s, [7, 7], [2, 2], "valid"), s;
34074
+ var o = t.toBatchTensor(112, !0), a = [122.782, 117.001, 104.298], i = qi(o, a).div(Ce(255)), s = us(i, r.dense0, !0);
34075
+ return s = us(s, r.dense1), s = us(s, r.dense2), s = us(s, r.dense3), s = Ni(s, [7, 7], [2, 2], "valid"), s;
34077
34076
  });
34078
34077
  }, n.prototype.forward = function(t) {
34079
34078
  return Le(this, void 0, void 0, function() {
@@ -34323,7 +34322,7 @@ function YA(e, n) {
34323
34322
  reduction_block_0: f,
34324
34323
  reduction_block_1: h
34325
34324
  }, m = {};
34326
- yi(n, 0, 1).forEach(function(b) {
34325
+ gi(n, 0, 1).forEach(function(b) {
34327
34326
  m["main_block_" + b] = c(128, "middle_flow/main_block_" + b);
34328
34327
  });
34329
34328
  var v = l(128, 256, "exit_flow/reduction_block"), y = u(256, 512, "exit_flow/separable_conv"), w = {
@@ -34360,7 +34359,7 @@ function QA(e, n) {
34360
34359
  reduction_block_0: l,
34361
34360
  reduction_block_1: c
34362
34361
  }, f = {};
34363
- yi(n, 0, 1).forEach(function(v) {
34362
+ gi(n, 0, 1).forEach(function(v) {
34364
34363
  f["main_block_" + v] = s("middle_flow/main_block_" + v);
34365
34364
  });
34366
34365
  var h = i("exit_flow/reduction_block"), p = a("exit_flow/separable_conv"), m = {
@@ -34394,8 +34393,8 @@ var JA = (
34394
34393
  if (!o)
34395
34394
  throw new Error("TinyXception - load model before inference");
34396
34395
  return Re(function() {
34397
- var a = t.toBatchTensor(112, !0), i = [122.782, 117.001, 104.298], s = Vi(a, i).div(Ce(256)), u = Ut(L0(s, o.entry_flow.conv_in, [2, 2]));
34398
- return u = rc(u, o.entry_flow.reduction_block_0, !1), u = rc(u, o.entry_flow.reduction_block_1), yi(r._numMainBlocks, 0, 1).forEach(function(l) {
34396
+ 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]));
34397
+ 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) {
34399
34398
  u = ZA(u, o.middle_flow["main_block_" + l]);
34400
34399
  }), u = rc(u, o.exit_flow.reduction_block), u = Ut(Qn(u, o.exit_flow.separable_conv, [1, 1])), u;
34401
34400
  });
@@ -34467,7 +34466,7 @@ var n6 = (
34467
34466
  if (!o)
34468
34467
  throw new Error(this._name + " - load model before inference");
34469
34468
  return Re(function() {
34470
- var a = t instanceof ru ? r.faceFeatureExtractor.forwardInput(t) : t, i = Li(a, [7, 7], [2, 2], "valid").as2D(a.shape[0], -1), s = Sr(i, o.fc.age).as1D(), u = Sr(i, o.fc.gender);
34469
+ var a = t instanceof ru ? r.faceFeatureExtractor.forwardInput(t) : t, i = Ni(a, [7, 7], [2, 2], "valid").as2D(a.shape[0], -1), s = Sr(i, o.fc.age).as1D(), u = Sr(i, o.fc.gender);
34471
34470
  return { age: s, gender: u };
34472
34471
  });
34473
34472
  }, n.prototype.forwardInput = function(t) {
@@ -34687,8 +34686,8 @@ var a6 = (
34687
34686
  if (!r)
34688
34687
  throw new Error("TinyFaceFeatureExtractor - load model before inference");
34689
34688
  return Re(function() {
34690
- var o = t.toBatchTensor(112, !0), a = [122.782, 117.001, 104.298], i = Vi(o, a).div(Ce(255)), s = nc(i, r.dense0, !0);
34691
- return s = nc(s, r.dense1), s = nc(s, r.dense2), s = Li(s, [14, 14], [2, 2], "valid"), s;
34689
+ 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);
34690
+ return s = nc(s, r.dense1), s = nc(s, r.dense2), s = Ni(s, [14, 14], [2, 2], "valid"), s;
34692
34691
  });
34693
34692
  }, n.prototype.forward = function(t) {
34694
34693
  return Le(this, void 0, void 0, function() {
@@ -34860,13 +34859,13 @@ function br(e, n) {
34860
34859
  function ls(e, n) {
34861
34860
  var t = $0(e, n.conv1);
34862
34861
  t = z0(t, n.conv2);
34863
- var r = Li(e, 2, 2, "valid"), o = Vt(r.shape), a = r.shape[3] !== t.shape[3], i = r.shape[1] !== t.shape[1] || r.shape[2] !== t.shape[2];
34862
+ var r = Ni(e, 2, 2, "valid"), o = Vt(r.shape), a = r.shape[3] !== t.shape[3], i = r.shape[1] !== t.shape[1] || r.shape[2] !== t.shape[2];
34864
34863
  if (i) {
34865
- var s = si(t.shape);
34864
+ var s = ii(t.shape);
34866
34865
  s[1] = 1;
34867
34866
  var u = Vt(s);
34868
34867
  t = on([t, u], 1);
34869
- var l = si(t.shape);
34868
+ var l = ii(t.shape);
34870
34869
  l[2] = 1;
34871
34870
  var c = Vt(l);
34872
34871
  t = on([t, c], 2);
@@ -34885,7 +34884,7 @@ var h6 = (
34885
34884
  if (!r)
34886
34885
  throw new Error("FaceRecognitionNet - load model before inference");
34887
34886
  return Re(function() {
34888
- var o = t.toBatchTensor(150, !0).toFloat(), a = [122.782, 117.001, 104.298], i = Vi(o, a).div(Ce(256)), s = $0(i, r.conv32_down);
34887
+ var o = t.toBatchTensor(150, !0).toFloat(), a = [122.782, 117.001, 104.298], i = qi(o, a).div(Ce(256)), s = $0(i, r.conv32_down);
34889
34888
  s = dn(s, 3, 2, "valid"), s = br(s, r.conv32_1), s = br(s, r.conv32_2), s = br(s, r.conv32_3), s = ls(s, r.conv64_down), s = br(s, r.conv64_1), s = br(s, r.conv64_2), s = br(s, r.conv64_3), s = ls(s, r.conv128_down), s = br(s, r.conv128_1), s = br(s, r.conv128_2), s = ls(s, r.conv256_down), s = br(s, r.conv256_1), s = br(s, r.conv256_2), s = ls(s, r.conv256_down_out);
34890
34889
  var u = s.mean([1, 2]), l = Du(u, r.fc);
34891
34890
  return l;
@@ -35618,7 +35617,7 @@ var mf = (
35618
35617
  throw new Error("TinyYolov2 - load model before inference");
35619
35618
  return Re(function() {
35620
35619
  var i = t.toBatchTensor(r, !1).toFloat();
35621
- return i = o.config.meanRgb ? Vi(i, o.config.meanRgb) : i, i = i.div(Ce(256)), o.config.withSeparableConvs ? o.runMobilenet(i, a) : o.runTinyYolov2(i, a);
35620
+ return i = o.config.meanRgb ? qi(i, o.config.meanRgb) : i, i = i.div(Ce(256)), o.config.withSeparableConvs ? o.runMobilenet(i, a) : o.runTinyYolov2(i, a);
35622
35621
  });
35623
35622
  }, n.prototype.forward = function(t, r) {
35624
35623
  return Le(this, void 0, void 0, function() {
@@ -35659,7 +35658,7 @@ var mf = (
35659
35658
  return g.classScore;
35660
35659
  }), m = d.map(function(g) {
35661
35660
  return w.config.classes[g.label];
35662
- }), v = bi(f.map(function(g) {
35661
+ }), v = yi(f.map(function(g) {
35663
35662
  return g.rescale(a);
35664
35663
  }), h, this.config.iouThreshold, !0), y = v.map(function(g) {
35665
35664
  return new w0(h[g], p[g], m[g], f[g], c);
@@ -35809,7 +35808,7 @@ var mf = (
35809
35808
  }
35810
35809
  return n;
35811
35810
  }(mf)
35812
- ), zi = (
35811
+ ), Vi = (
35813
35812
  /** @class */
35814
35813
  function() {
35815
35814
  function e() {
@@ -36041,7 +36040,7 @@ function Y6(e, n, t, r, o) {
36041
36040
  var h = f.scoresTensor, p = f.regionsTensor, m = f.scale, v = f.statsForScale, y = K6(h, p, m, t);
36042
36041
  if (h.dispose(), p.dispose(), !y.length)
36043
36042
  return o.stage1.push(v), [];
36044
- var w = Date.now(), b = bi(y.map(function(g) {
36043
+ var w = Date.now(), b = yi(y.map(function(g) {
36045
36044
  return g.cell;
36046
36045
  }), y.map(function(g) {
36047
36046
  return g.score;
@@ -36053,7 +36052,7 @@ function Y6(e, n, t, r, o) {
36053
36052
  return f.concat(h);
36054
36053
  }, []), u = [], l = [];
36055
36054
  if (s.length > 0) {
36056
- var c = Date.now(), d = bi(s.map(function(f) {
36055
+ var c = Date.now(), d = yi(s.map(function(f) {
36057
36056
  return f.cell;
36058
36057
  }), s.map(function(f) {
36059
36058
  return f.score;
@@ -36137,7 +36136,7 @@ function Q6(e, n, t, r, o) {
36137
36136
  return n[g];
36138
36137
  }), p = f.map(function(g) {
36139
36138
  return l[g];
36140
- }), m = [], v = [], h.length > 0 && (a = Date.now(), y = bi(h, p, 0.7), o.stage2_nms = Date.now() - a, w = y.map(function(g) {
36139
+ }), 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) {
36141
36140
  var x = s[f[g]].regions.arraySync();
36142
36141
  return new yf(x[0][0], x[0][1], x[0][2], x[0][3]);
36143
36142
  }), v = y.map(function(g) {
@@ -36191,7 +36190,7 @@ function J6(e, n, t, r, o) {
36191
36190
  return n[x].calibrate(h[C]);
36192
36191
  }), m = f.map(function(x) {
36193
36192
  return l[x];
36194
- }), v = [], y = [], w = [], p.length > 0 && (a = Date.now(), b = bi(p, m, 0.7, !1), o.stage3_nms = Date.now() - a, v = b.map(function(x) {
36193
+ }), v = [], y = [], w = [], p.length > 0 && (a = Date.now(), b = yi(p, m, 0.7, !1), o.stage3_nms = Date.now() - a, v = b.map(function(x) {
36195
36194
  return p[x];
36196
36195
  }), y = b.map(function(x) {
36197
36196
  return m[x];
@@ -36256,7 +36255,7 @@ var eD = (
36256
36255
  return C = R.sent(), i.total_stage2 = Date.now() - g, C.boxes.length ? (i.stage3_numInputBoxes = C.boxes.length, g = Date.now(), [4, J6(a, C.boxes, y[2], o.onet, i)]) : [2, l({ results: [], stats: i })];
36257
36256
  case 3:
36258
36257
  return S = R.sent(), i.total_stage3 = Date.now() - g, E = S.boxes.map(function(k, T) {
36259
- return $u(wi({}, new er(S.scores[T], new Nu(k.left / f, k.top / d, k.width / f, k.height / d), {
36258
+ return $u(bi({}, new er(S.scores[T], new Nu(k.left / f, k.top / d, k.width / f, k.height / d), {
36260
36259
  height: d,
36261
36260
  width: f
36262
36261
  })), new SA(S.points[T].map(function(A) {
@@ -36373,7 +36372,7 @@ var eD = (
36373
36372
  return a.parentTask = t, a.input = r, a.extractedFaces = o, a;
36374
36373
  }
36375
36374
  return n;
36376
- }(zi)
36375
+ }(Vi)
36377
36376
  ), wf = (
36378
36377
  /** @class */
36379
36378
  function(e) {
@@ -36479,7 +36478,7 @@ var eD = (
36479
36478
  return a.parentTask = t, a.input = r, a.extractedFaces = o, a;
36480
36479
  }
36481
36480
  return n;
36482
- }(zi)
36481
+ }(Vi)
36483
36482
  ), _f = (
36484
36483
  /** @class */
36485
36484
  function(e) {
@@ -36586,7 +36585,7 @@ var eD = (
36586
36585
  return o.parentTask = t, o.input = r, o;
36587
36586
  }
36588
36587
  return n;
36589
- }(zi)
36588
+ }(Vi)
36590
36589
  ), If = (
36591
36590
  /** @class */
36592
36591
  function(e) {
@@ -36671,7 +36670,7 @@ var eD = (
36671
36670
  enumerable: !0,
36672
36671
  configurable: !0
36673
36672
  }), n;
36674
- }(zi)
36673
+ }(Vi)
36675
36674
  ), aD = (
36676
36675
  /** @class */
36677
36676
  function(e) {
@@ -36769,7 +36768,7 @@ var eD = (
36769
36768
  return o.input = t, o.options = r, o;
36770
36769
  }
36771
36770
  return n;
36772
- }(zi)
36771
+ }(Vi)
36773
36772
  ), sD = (
36774
36773
  /** @class */
36775
36774
  function(e) {
@@ -36812,7 +36811,7 @@ var eD = (
36812
36811
  return [4, this.run()];
36813
36812
  case 1:
36814
36813
  return o = a.sent(), [2, r(o.map(function(i) {
36815
- return wi({}, i);
36814
+ return bi({}, i);
36816
36815
  }))];
36817
36816
  }
36818
36817
  });
@@ -36857,7 +36856,7 @@ var eD = (
36857
36856
  case 0:
36858
36857
  return [4, this.run()];
36859
36858
  case 1:
36860
- return o = a.sent(), [2, r(o ? wi({}, o) : void 0)];
36859
+ return o = a.sent(), [2, r(o ? bi({}, o) : void 0)];
36861
36860
  }
36862
36861
  });
36863
36862
  });
@@ -36956,9 +36955,9 @@ function r1(e, n) {
36956
36955
  });
36957
36956
  if (hf(e)) {
36958
36957
  var a = e.detection.forSize(r, o), i = e.unshiftedLandmarks.forSize(a.box.width, a.box.height);
36959
- return $u(wi(e, a), i);
36958
+ return $u(bi(e, a), i);
36960
36959
  }
36961
- return nu(e) ? wi(e, e.detection.forSize(r, o)) : e instanceof Ba || e instanceof er ? e.forSize(r, o) : e;
36960
+ return nu(e) ? bi(e, e.detection.forSize(r, o)) : e instanceof Ba || e instanceof er ? e.forSize(r, o) : e;
36962
36961
  }
36963
36962
  class dD {
36964
36963
  // async getFaceSnapshot(inputImage: any, box: any) {
@@ -37183,7 +37182,7 @@ export {
37183
37182
  ID as AppWrapper,
37184
37183
  mD as base64ToBlob,
37185
37184
  gs as isEqual,
37186
- Ka as normalizeValue,
37185
+ Ga as normalizeValue,
37187
37186
  em as notificationSettings,
37188
37187
  wM as saveBlobAsFile,
37189
37188
  oM as useAuthService,