shared-ritm 1.2.131 → 1.2.132

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,8 +1,8 @@
1
1
  var U0 = Object.defineProperty;
2
2
  var G0 = (e, n, t) => n in e ? U0(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
3
  var Sf = (e, n, t) => G0(e, typeof n != "symbol" ? n + "" : n, t);
4
- import { markRaw as Lp, defineComponent as Ft, reactive as ia, h as T, withDirectives as Qn, computed as k, ref as Q, getCurrentInstance as Qe, nextTick as Ct, watch as me, onMounted as vn, onBeforeUnmount as Tt, onUnmounted as qp, Teleport as K0, onDeactivated as ho, unref as dr, Transition as jn, useCssVars as Ta, createBlock as Ae, openBlock as X, mergeProps as ds, withCtx as ve, renderSlot as tn, createCommentVNode as Xe, createTextVNode as $t, toDisplayString as mt, toRaw as eo, normalizeClass as He, createElementBlock as ye, createVNode as Se, createElementVNode as fe, onBeforeUpdate as Vp, inject as co, onActivated as Aa, mergeModels as Kl, useModel as zp, createSlots as Da, provide as Qs, normalizeStyle as To, getCurrentScope as X0, onScopeDispose as Y0, createStaticVNode as fr, resolveDynamicComponent as Q0, Fragment as Ar, renderList as Wr, vShow as $p, onBeforeMount as Vc, onUpdated as Z0, useSlots as zc, shallowReactive as J0, resolveComponent as e1, withModifiers as Zs, normalizeProps as Ef, toHandlers as t1 } from "vue";
5
- function nr(e, n, t, r) {
4
+ import { markRaw as Lp, defineComponent as Ft, reactive as ia, h as T, withDirectives as Zn, computed as k, ref as Q, getCurrentInstance as Qe, nextTick as Ct, watch as me, onMounted as vn, onBeforeUnmount as Tt, onUnmounted as qp, Teleport as K0, onDeactivated as ho, unref as Yn, Transition as jn, useCssVars as Ta, createBlock as Ae, openBlock as X, mergeProps as ds, withCtx as ve, renderSlot as Qt, createCommentVNode as Xe, createTextVNode as $t, toDisplayString as mt, toRaw as eo, normalizeClass as He, createElementBlock as ye, createVNode as Se, createElementVNode as fe, onBeforeUpdate as Vp, inject as co, onActivated as Aa, mergeModels as Kl, useModel as zp, createSlots as Da, provide as Qs, normalizeStyle as To, getCurrentScope as X0, onScopeDispose as Y0, createStaticVNode as fr, resolveDynamicComponent as Q0, Fragment as Ar, renderList as Wr, vShow as $p, onBeforeMount as Vc, onUpdated as Z0, useSlots as zc, shallowReactive as J0, resolveComponent as e1, withModifiers as Zs, normalizeProps as Ef, toHandlers as t1 } from "vue";
5
+ function rr(e, n, t, r) {
6
6
  return Object.defineProperty(e, n, {
7
7
  get: t,
8
8
  set: r,
@@ -11,7 +11,7 @@ function nr(e, n, t, r) {
11
11
  }
12
12
  function n1(e, n) {
13
13
  for (const t in n)
14
- nr(e, t, n[t]);
14
+ rr(e, t, n[t]);
15
15
  return e;
16
16
  }
17
17
  function Ke(e) {
@@ -23,7 +23,7 @@ function $c(e) {
23
23
  const r1 = (e, n) => {
24
24
  const t = ia(e);
25
25
  for (const r in e)
26
- nr(
26
+ rr(
27
27
  n,
28
28
  r,
29
29
  () => t[r],
@@ -53,7 +53,7 @@ function o1(e, n) {
53
53
  function Xl(e, n, t, r, o, a) {
54
54
  n.key = r + o;
55
55
  const i = T(e, n, t);
56
- return o === !0 ? Qn(i, a()) : i;
56
+ return o === !0 ? Zn(i, a()) : i;
57
57
  }
58
58
  const a1 = ["top", "middle", "bottom"], Wp = Ke({
59
59
  name: "QBadge",
@@ -180,7 +180,7 @@ const Rf = navigator.userAgent || navigator.vendor || window.opera, l1 = {
180
180
  };
181
181
  {
182
182
  let e;
183
- nr(hn.has, "webStorage", () => {
183
+ rr(hn.has, "webStorage", () => {
184
184
  if (e !== void 0)
185
185
  return e;
186
186
  try {
@@ -577,7 +577,7 @@ function Uc(e, n, t, r) {
577
577
  }
578
578
  return qp(() => {
579
579
  c(!0);
580
- }), e.proxy.__qPortal = !0, nr(e.proxy, "contentEl", () => n.value), {
580
+ }), e.proxy.__qPortal = !0, rr(e.proxy, "contentEl", () => n.value), {
581
581
  showPortal: l,
582
582
  hidePortal: c,
583
583
  portalIsActive: o,
@@ -662,7 +662,7 @@ function C1(e) {
662
662
  } catch {
663
663
  return;
664
664
  }
665
- const n = dr(e);
665
+ const n = Yn(e);
666
666
  if (n)
667
667
  return n.$el || n;
668
668
  }
@@ -1644,7 +1644,7 @@ function U1(e) {
1644
1644
  isActionable: c
1645
1645
  };
1646
1646
  }
1647
- const { passiveCapture: er } = Yt;
1647
+ const { passiveCapture: tr } = Yt;
1648
1648
  let Go = null, Ko = null, Xo = null;
1649
1649
  const Et = Ke({
1650
1650
  name: "QBtn",
@@ -1716,24 +1716,24 @@ const Et = Ke({
1716
1716
  D.qAvoidFocus !== !0 && f.value.focus();
1717
1717
  const V = () => {
1718
1718
  var L;
1719
- document.removeEventListener("keydown", Pt, !0), document.removeEventListener("keyup", V, er), (L = f.value) == null || L.removeEventListener("blur", V, er);
1719
+ document.removeEventListener("keydown", Pt, !0), document.removeEventListener("keyup", V, tr), (L = f.value) == null || L.removeEventListener("blur", V, tr);
1720
1720
  };
1721
- document.addEventListener("keydown", Pt, !0), document.addEventListener("keyup", V, er), f.value.addEventListener("blur", V, er);
1721
+ document.addEventListener("keydown", Pt, !0), document.addEventListener("keyup", V, tr), f.value.addEventListener("blur", V, tr);
1722
1722
  }
1723
1723
  }
1724
1724
  c(D);
1725
1725
  }
1726
1726
  }
1727
1727
  function R(D) {
1728
- f.value !== null && (t("keydown", D), Hr(D, [13, 32]) === !0 && Ko !== f.value && (Ko !== null && I(), D.defaultPrevented !== !0 && (D.qAvoidFocus !== !0 && f.value.focus(), Ko = f.value, f.value.classList.add("q-btn--active"), document.addEventListener("keyup", M, !0), f.value.addEventListener("blur", M, er)), Pt(D)));
1728
+ f.value !== null && (t("keydown", D), Hr(D, [13, 32]) === !0 && Ko !== f.value && (Ko !== null && I(), D.defaultPrevented !== !0 && (D.qAvoidFocus !== !0 && f.value.focus(), Ko = f.value, f.value.classList.add("q-btn--active"), document.addEventListener("keyup", M, !0), f.value.addEventListener("blur", M, tr)), Pt(D)));
1729
1729
  }
1730
1730
  function _(D) {
1731
- f.value !== null && (t("touchstart", D), D.defaultPrevented !== !0 && (Go !== f.value && (Go !== null && I(), Go = f.value, p = D.target, p.addEventListener("touchcancel", M, er), p.addEventListener("touchend", M, er)), m = !0, v !== null && clearTimeout(v), v = setTimeout(() => {
1731
+ f.value !== null && (t("touchstart", D), D.defaultPrevented !== !0 && (Go !== f.value && (Go !== null && I(), Go = f.value, p = D.target, p.addEventListener("touchcancel", M, tr), p.addEventListener("touchend", M, tr)), m = !0, v !== null && clearTimeout(v), v = setTimeout(() => {
1732
1732
  v = null, m = !1;
1733
1733
  }, 200)));
1734
1734
  }
1735
1735
  function S(D) {
1736
- f.value !== null && (D.qSkipRipple = m === !0, t("mousedown", D), D.defaultPrevented !== !0 && Xo !== f.value && (Xo !== null && I(), Xo = f.value, f.value.classList.add("q-btn--active"), document.addEventListener("mouseup", M, er)));
1736
+ f.value !== null && (D.qSkipRipple = m === !0, t("mousedown", D), D.defaultPrevented !== !0 && Xo !== f.value && (Xo !== null && I(), Xo = f.value, f.value.classList.add("q-btn--active"), document.addEventListener("mouseup", M, tr)));
1737
1737
  }
1738
1738
  function M(D) {
1739
1739
  if (f.value !== null && !((D == null ? void 0 : D.type) === "blur" && document.activeElement === f.value)) {
@@ -1750,7 +1750,7 @@ const Et = Ke({
1750
1750
  function I(D) {
1751
1751
  var V, L;
1752
1752
  const B = h.value;
1753
- D !== !0 && (Go === f.value || Xo === f.value) && B !== null && B !== document.activeElement && (B.setAttribute("tabindex", -1), B.focus()), Go === f.value && (p !== null && (p.removeEventListener("touchcancel", M, er), p.removeEventListener("touchend", M, er)), Go = p = null), Xo === f.value && (document.removeEventListener("mouseup", M, er), Xo = null), Ko === f.value && (document.removeEventListener("keyup", M, !0), (V = f.value) == null || V.removeEventListener("blur", M, er), Ko = null), (L = f.value) == null || L.classList.remove("q-btn--active");
1753
+ D !== !0 && (Go === f.value || Xo === f.value) && B !== null && B !== document.activeElement && (B.setAttribute("tabindex", -1), B.focus()), Go === f.value && (p !== null && (p.removeEventListener("touchcancel", M, tr), p.removeEventListener("touchend", M, tr)), Go = p = null), Xo === f.value && (document.removeEventListener("mouseup", M, tr), Xo = null), Ko === f.value && (document.removeEventListener("keyup", M, !0), (V = f.value) == null || V.removeEventListener("blur", M, tr), Ko = null), (L = f.value) == null || L.classList.remove("q-btn--active");
1754
1754
  }
1755
1755
  function $(D) {
1756
1756
  Pt(D), D.qSkipRipple = !0;
@@ -1806,7 +1806,7 @@ const Et = Ke({
1806
1806
  class: "absolute-full flex flex-center"
1807
1807
  }, n.loading !== void 0 ? n.loading() : [T(Jc)])
1808
1808
  ] : null)
1809
- ), Qn(
1809
+ ), Zn(
1810
1810
  T(
1811
1811
  l.value,
1812
1812
  C.value,
@@ -1898,7 +1898,7 @@ const Et = Ke({
1898
1898
  onClick: o
1899
1899
  }), {
1900
1900
  default: ve(() => [
1901
- tn(s.$slots, "default"),
1901
+ Qt(s.$slots, "default"),
1902
1902
  s.badge ? (X(), Ae(Wp, {
1903
1903
  key: 0,
1904
1904
  style: { padding: "6px", top: "-10px", right: "-10px", "font-size": "12px" },
@@ -3226,8 +3226,8 @@ const Rv = Ke({
3226
3226
  }), tt.value[ct.value] !== void 0 && tt.value[ct.value].forEach((Te) => {
3227
3227
  if (Te.from !== void 0) {
3228
3228
  const Ze = _e + Te.from - 1, bt = _e + (Te.to || oe.value) - 1;
3229
- for (let Jn = Ze; Jn <= bt; Jn++)
3230
- Object.assign(F[Jn], {
3229
+ for (let er = Ze; er <= bt; er++)
3230
+ Object.assign(F[er], {
3231
3231
  range: Te.range,
3232
3232
  unelevated: !0,
3233
3233
  color: $.value,
@@ -3405,8 +3405,8 @@ const Rv = Ke({
3405
3405
  }
3406
3406
  function Ut(F, W, ne) {
3407
3407
  if (ge.value !== null && F <= ge.value.year && ((W < ge.value.month || F < ge.value.year) && (W = ge.value.month), F = ge.value.year), Ee.value !== null && F >= Ee.value.year && ((W > Ee.value.month || F > Ee.value.year) && (W = Ee.value.month), F = Ee.value.year), ne !== void 0) {
3408
- const { hour: _e, minute: dt, second: Te, millisecond: Ze, timezoneOffset: bt, timeHash: Jn } = ne;
3409
- Object.assign(g.value, { hour: _e, minute: dt, second: Te, millisecond: Ze, timezoneOffset: bt, timeHash: Jn });
3408
+ const { hour: _e, minute: dt, second: Te, millisecond: Ze, timezoneOffset: bt, timeHash: er } = ne;
3409
+ Object.assign(g.value, { hour: _e, minute: dt, second: Te, millisecond: Ze, timezoneOffset: bt, timeHash: er });
3410
3410
  }
3411
3411
  const be = F + "/" + wt(W) + "/01";
3412
3412
  be !== g.value.dateHash && (E.value = g.value.dateHash < be == (o.lang.rtl !== !0) ? "left" : "right", F !== g.value.year && (R.value = E.value), Ct(() => {
@@ -3428,7 +3428,7 @@ const Rv = Ke({
3428
3428
  W.year = g.value.year, W.month = g.value.month;
3429
3429
  const ne = e.calendar !== "persian" ? new Date(W.year, W.month, 0).getDate() : os(W.year, W.month);
3430
3430
  W.day = Math.min(Math.max(1, W.day), ne);
3431
- const be = ir(W), { details: _e } = jo("", W);
3431
+ const be = sr(W), { details: _e } = jo("", W);
3432
3432
  pe(be), t("update:modelValue", be, F, _e);
3433
3433
  });
3434
3434
  }
@@ -3445,7 +3445,7 @@ const Rv = Ke({
3445
3445
  details: Mt(W)
3446
3446
  };
3447
3447
  }
3448
- function ir(F, W, ne) {
3448
+ function sr(F, W, ne) {
3449
3449
  return F.from !== void 0 ? { from: G.value(F.from, W, ne), to: G.value(F.to, W, ne) } : G.value(F, W, ne);
3450
3450
  }
3451
3451
  function go(F) {
@@ -3453,20 +3453,20 @@ const Rv = Ke({
3453
3453
  if (e.multiple === !0)
3454
3454
  if (F.from !== void 0) {
3455
3455
  const ne = Nr(F.from), be = Nr(F.to), _e = L.value.filter((Te) => Te.dateHash < ne || Te.dateHash > be), dt = q.value.filter(({ from: Te, to: Ze }) => Ze.dateHash < ne || Te.dateHash > be);
3456
- W = _e.concat(dt).concat(F).map((Te) => ir(Te));
3456
+ W = _e.concat(dt).concat(F).map((Te) => sr(Te));
3457
3457
  } else {
3458
3458
  const ne = V.value.slice();
3459
- ne.push(ir(F)), W = ne;
3459
+ ne.push(sr(F)), W = ne;
3460
3460
  }
3461
3461
  else
3462
- W = ir(F);
3462
+ W = sr(F);
3463
3463
  Fr(W, "add", F);
3464
3464
  }
3465
3465
  function ee(F) {
3466
3466
  if (e.noUnset === !0) return;
3467
3467
  let W = null;
3468
3468
  if (e.multiple === !0 && Array.isArray(e.modelValue) === !0) {
3469
- const ne = ir(F);
3469
+ const ne = sr(F);
3470
3470
  F.from !== void 0 ? W = e.modelValue.filter(
3471
3471
  (be) => be.from !== void 0 ? be.from !== ne.from && be.to !== ne.to : !0
3472
3472
  ) : W = e.modelValue.filter((be) => be !== ne), W.length === 0 && (W = null);
@@ -3474,7 +3474,7 @@ const Rv = Ke({
3474
3474
  Fr(W, "remove", F);
3475
3475
  }
3476
3476
  function Ce(F, W, ne) {
3477
- const be = L.value.concat(q.value).map((dt) => ir(dt, F, W)).filter((dt) => dt.from !== void 0 ? dt.from.dateHash !== null && dt.to.dateHash !== null : dt.dateHash !== null), _e = (e.multiple === !0 ? be : be[0]) || null;
3477
+ const be = L.value.concat(q.value).map((dt) => sr(dt, F, W)).filter((dt) => dt.from !== void 0 ? dt.from.dateHash !== null && dt.to.dateHash !== null : dt.dateHash !== null), _e = (e.multiple === !0 ? be : be[0]) || null;
3478
3478
  pe(_e), t("update:modelValue", _e, ne);
3479
3479
  }
3480
3480
  function We() {
@@ -4316,7 +4316,7 @@ const by = {
4316
4316
  toggle(m) {
4317
4317
  s.value.toggle(m);
4318
4318
  }
4319
- }), nr(o, "currentComponent", () => ({
4319
+ }), rr(o, "currentComponent", () => ({
4320
4320
  type: d.value,
4321
4321
  ref: s.value
4322
4322
  })), () => {
@@ -5010,7 +5010,7 @@ const Iy = Ke({
5010
5010
  ref: p,
5011
5011
  class: "q-time__container-child fit overflow-hidden"
5012
5012
  }, [
5013
- Qn(
5013
+ Zn(
5014
5014
  T("div", {
5015
5015
  class: "q-time__clock cursor-pointer non-selectable",
5016
5016
  onClick: tt,
@@ -5236,7 +5236,7 @@ function Oy(e, n) {
5236
5236
  const v = ad(m, 0);
5237
5237
  return Tt(() => {
5238
5238
  u == null || u(), v.cancel();
5239
- }), Object.assign(r, { resetValidation: p, validate: m }), nr(r, "hasError", () => d.value), {
5239
+ }), Object.assign(r, { resetValidation: p, validate: m }), rr(r, "hasError", () => d.value), {
5240
5240
  isDirtyModel: i,
5241
5241
  hasRules: l,
5242
5242
  hasError: d,
@@ -5564,7 +5564,7 @@ const lh = {
5564
5564
  Lv.forEach((e) => {
5565
5565
  Cs[e].regex = new RegExp(Cs[e].pattern);
5566
5566
  });
5567
- const Ly = new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|([" + Lv.join("") + "])|(.)", "g"), ch = /[.*+?^${}()|[\]\\]/g, Jt = "", qy = {
5567
+ const Ly = new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|([" + Lv.join("") + "])|(.)", "g"), ch = /[.*+?^${}()|[\]\\]/g, en = "", qy = {
5568
5568
  mask: String,
5569
5569
  reverseFillMask: Boolean,
5570
5570
  fillMask: [Boolean, String],
@@ -5599,10 +5599,10 @@ function Vy(e, n, t, r) {
5599
5599
  if (_ < o.length)
5600
5600
  return o.slice(-_);
5601
5601
  let S = "", M = o;
5602
- const I = M.indexOf(Jt);
5602
+ const I = M.indexOf(en);
5603
5603
  if (I !== -1) {
5604
5604
  for (let $ = _ - M.length; $ > 0; $--)
5605
- S += Jt;
5605
+ S += en;
5606
5606
  M = M.slice(0, I) + S + M.slice(I);
5607
5607
  }
5608
5608
  return M;
@@ -5641,7 +5641,7 @@ function Vy(e, n, t, r) {
5641
5641
  se = se.slice(de.shift().length), Y.push(...de);
5642
5642
  }
5643
5643
  return Y.length !== 0 ? Y.join("") : O;
5644
- }, o = D.map((O) => typeof O == "string" ? O : Jt).join(""), a = o.split(Jt).join(S);
5644
+ }, o = D.map((O) => typeof O == "string" ? O : en).join(""), a = o.split(en).join(S);
5645
5645
  }
5646
5646
  function v(_, S, M) {
5647
5647
  const I = r.value, $ = I.selectionEnd, D = I.value.length - $, B = E(_);
@@ -5657,7 +5657,7 @@ function Vy(e, n, t, r) {
5657
5657
  const G = I.selectionEnd;
5658
5658
  let O = $ - 1;
5659
5659
  for (let N = u; N <= O && N < G; N++)
5660
- o[N] !== Jt && O++;
5660
+ o[N] !== en && O++;
5661
5661
  b.right(I, O);
5662
5662
  return;
5663
5663
  }
@@ -5675,7 +5675,7 @@ function Vy(e, n, t, r) {
5675
5675
  I.setSelectionRange(G, G, "backward");
5676
5676
  }
5677
5677
  else if (q === !0) {
5678
- const G = Math.max(0, o.indexOf(Jt), Math.min(V.length, $) - 1);
5678
+ const G = Math.max(0, o.indexOf(en), Math.min(V.length, $) - 1);
5679
5679
  b.right(I, G);
5680
5680
  } else {
5681
5681
  const G = $ - 1;
@@ -5687,18 +5687,18 @@ function Vy(e, n, t, r) {
5687
5687
  }
5688
5688
  function y(_, S, M) {
5689
5689
  const I = x(E(_.value));
5690
- S = Math.max(0, o.indexOf(Jt), Math.min(I.length, S)), u = S, _.setSelectionRange(S, M, "forward");
5690
+ S = Math.max(0, o.indexOf(en), Math.min(I.length, S)), u = S, _.setSelectionRange(S, M, "forward");
5691
5691
  }
5692
5692
  const b = {
5693
5693
  left(_, S) {
5694
- const M = o.slice(S - 1).indexOf(Jt) === -1;
5694
+ const M = o.slice(S - 1).indexOf(en) === -1;
5695
5695
  let I = Math.max(0, S - 1);
5696
5696
  for (; I >= 0; I--)
5697
- if (o[I] === Jt) {
5697
+ if (o[I] === en) {
5698
5698
  S = I, M === !0 && S++;
5699
5699
  break;
5700
5700
  }
5701
- if (I < 0 && o[S] !== void 0 && o[S] !== Jt)
5701
+ if (I < 0 && o[S] !== void 0 && o[S] !== en)
5702
5702
  return b.right(_, 0);
5703
5703
  S >= 0 && _.setSelectionRange(S, S, "backward");
5704
5704
  },
@@ -5706,11 +5706,11 @@ function Vy(e, n, t, r) {
5706
5706
  const M = _.value.length;
5707
5707
  let I = Math.min(M, S + 1);
5708
5708
  for (; I <= M; I++)
5709
- if (o[I] === Jt) {
5709
+ if (o[I] === en) {
5710
5710
  S = I;
5711
5711
  break;
5712
- } else o[I - 1] === Jt && (S = I);
5713
- if (I > M && o[S - 1] !== void 0 && o[S - 1] !== Jt)
5712
+ } else o[I - 1] === en && (S = I);
5713
+ if (I > M && o[S - 1] !== void 0 && o[S - 1] !== en)
5714
5714
  return b.left(_, M);
5715
5715
  _.setSelectionRange(S, S, "forward");
5716
5716
  },
@@ -5718,24 +5718,24 @@ function Vy(e, n, t, r) {
5718
5718
  const M = p(_.value.length);
5719
5719
  let I = Math.max(0, S - 1);
5720
5720
  for (; I >= 0; I--)
5721
- if (M[I - 1] === Jt) {
5721
+ if (M[I - 1] === en) {
5722
5722
  S = I;
5723
5723
  break;
5724
- } else if (M[I] === Jt && (S = I, I === 0))
5724
+ } else if (M[I] === en && (S = I, I === 0))
5725
5725
  break;
5726
- if (I < 0 && M[S] !== void 0 && M[S] !== Jt)
5726
+ if (I < 0 && M[S] !== void 0 && M[S] !== en)
5727
5727
  return b.rightReverse(_, 0);
5728
5728
  S >= 0 && _.setSelectionRange(S, S, "backward");
5729
5729
  },
5730
5730
  rightReverse(_, S) {
5731
- const M = _.value.length, I = p(M), $ = I.slice(0, S + 1).indexOf(Jt) === -1;
5731
+ const M = _.value.length, I = p(M), $ = I.slice(0, S + 1).indexOf(en) === -1;
5732
5732
  let D = Math.min(M, S + 1);
5733
5733
  for (; D <= M; D++)
5734
- if (I[D - 1] === Jt) {
5734
+ if (I[D - 1] === en) {
5735
5735
  S = D, S > 0 && $ === !0 && S--;
5736
5736
  break;
5737
5737
  }
5738
- if (D > M && I[S - 1] !== void 0 && I[S - 1] !== Jt)
5738
+ if (D > M && I[S - 1] !== void 0 && I[S - 1] !== en)
5739
5739
  return b.leftReverse(_, M);
5740
5740
  _.setSelectionRange(S, S, "forward");
5741
5741
  }
@@ -5774,7 +5774,7 @@ function Vy(e, n, t, r) {
5774
5774
  return I;
5775
5775
  }
5776
5776
  function C(_) {
5777
- const S = i, M = o.indexOf(Jt);
5777
+ const S = i, M = o.indexOf(en);
5778
5778
  let I = _.length - 1, $ = "";
5779
5779
  for (let D = S.length - 1; D >= 0 && I !== -1; D--) {
5780
5780
  const B = S[D];
@@ -6032,7 +6032,7 @@ const Oa = Ke({
6032
6032
  select: I,
6033
6033
  getNativeElement: () => d.value
6034
6034
  // deprecated
6035
- }), nr(r, "nativeEl", () => d.value), O;
6035
+ }), rr(r, "nativeEl", () => d.value), O;
6036
6036
  }
6037
6037
  });
6038
6038
  function as(e, n) {
@@ -6165,7 +6165,7 @@ const Uy = { class: "app-input-new" }, Gy = {
6165
6165
  append: ve(() => {
6166
6166
  var f;
6167
6167
  return [
6168
- tn(c.$slots, "append", {}, void 0, !0),
6168
+ Qt(c.$slots, "append", {}, void 0, !0),
6169
6169
  c.type === "password" ? (X(), Ae(St, {
6170
6170
  key: 0,
6171
6171
  name: a.value ? "visibility" : "visibility_off",
@@ -6186,7 +6186,7 @@ const Uy = { class: "app-input-new" }, Gy = {
6186
6186
  label: "UUID",
6187
6187
  size: "sm",
6188
6188
  class: "q-ml-sm uuid-btn",
6189
- onClick: d[2] || (d[2] = (h) => i.value = dr(Vv)())
6189
+ onClick: d[2] || (d[2] = (h) => i.value = Yn(Vv)())
6190
6190
  })) : Xe("", !0),
6191
6191
  c.copyable ? (X(), Ae(St, {
6192
6192
  key: 3,
@@ -6199,7 +6199,7 @@ const Uy = { class: "app-input-new" }, Gy = {
6199
6199
  ];
6200
6200
  }),
6201
6201
  default: ve(() => [
6202
- tn(c.$slots, "default", {}, void 0, !0)
6202
+ Qt(c.$slots, "default", {}, void 0, !0)
6203
6203
  ]),
6204
6204
  _: 3
6205
6205
  }, 8, ["modelValue", "type", "rules", "placeholder", "disable", "readonly", "class", "error", "autocomplete"])
@@ -6900,8 +6900,8 @@ const Wv = typeof ResizeObserver < "u", fh = Wv === !0 ? {} : {
6900
6900
  backdrop: !0
6901
6901
  }, null, 8, ["loading"])
6902
6902
  ], 2)) : Xe("", !0),
6903
- tn(a.$slots, "drawer"),
6904
- tn(a.$slots, "header", {
6903
+ Qt(a.$slots, "drawer"),
6904
+ Qt(a.$slots, "header", {
6905
6905
  style: To(r.value)
6906
6906
  }),
6907
6907
  Se(ab, {
@@ -6909,13 +6909,13 @@ const Wv = typeof ResizeObserver < "u", fh = Wv === !0 ? {} : {
6909
6909
  onWheel: t
6910
6910
  }, {
6911
6911
  default: ve(() => [
6912
- tn(a.$slots, "content", {
6912
+ Qt(a.$slots, "content", {
6913
6913
  style: To(r.value)
6914
6914
  })
6915
6915
  ]),
6916
6916
  _: 3
6917
6917
  }, 8, ["class"]),
6918
- tn(a.$slots, "footer")
6918
+ Qt(a.$slots, "footer")
6919
6919
  ]),
6920
6920
  _: 3
6921
6921
  }, 8, ["class"]));
@@ -7189,7 +7189,7 @@ function bb(e) {
7189
7189
  return X0() ? (Y0(e), !0) : !1;
7190
7190
  }
7191
7191
  function Hv(e) {
7192
- return typeof e == "function" ? e() : dr(e);
7192
+ return typeof e == "function" ? e() : Yn(e);
7193
7193
  }
7194
7194
  const jv = typeof window < "u" && typeof document < "u";
7195
7195
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
@@ -8208,7 +8208,7 @@ const Gw = /* @__PURE__ */ Fe(Hw, [["render", Uw]]), Kw = /* @__PURE__ */ Ft({
8208
8208
  class: He(d.$style["settings-menu__list"])
8209
8209
  }, {
8210
8210
  default: ve(() => [
8211
- Qn((X(), Ae(On, {
8211
+ Zn((X(), Ae(On, {
8212
8212
  class: He(d.$style["settings-menu__item"]),
8213
8213
  clickable: "",
8214
8214
  onClick: (m) => c(p)
@@ -8293,7 +8293,7 @@ const Gw = /* @__PURE__ */ Fe(Hw, [["render", Uw]]), Kw = /* @__PURE__ */ Ft({
8293
8293
  function fx(e, n) {
8294
8294
  return X(), Ae(cx, { class: "page-container" }, {
8295
8295
  default: ve(() => [
8296
- tn(e.$slots, "default", {}, void 0, !0)
8296
+ Qt(e.$slots, "default", {}, void 0, !0)
8297
8297
  ]),
8298
8298
  _: 3
8299
8299
  });
@@ -8480,7 +8480,7 @@ let ai = !1;
8480
8480
  height: "1px"
8481
8481
  }), document.body.appendChild(e), e.appendChild(n), e.scrollLeft = -1e3, ai = e.scrollLeft >= 0, e.remove();
8482
8482
  }
8483
- const sr = 1e3, vx = [
8483
+ const ur = 1e3, vx = [
8484
8484
  "start",
8485
8485
  "center",
8486
8486
  "end",
@@ -8528,9 +8528,9 @@ function vh(e, n, t, r) {
8528
8528
  function Wa(e, n, t, r) {
8529
8529
  if (t >= r)
8530
8530
  return 0;
8531
- const o = n.length, a = Math.floor(t / sr), i = Math.floor((r - 1) / sr) + 1;
8531
+ const o = n.length, a = Math.floor(t / ur), i = Math.floor((r - 1) / ur) + 1;
8532
8532
  let s = e.slice(a, i).reduce(da, 0);
8533
- return t % sr !== 0 && (s -= n.slice(a * sr, t).reduce(da, 0)), r % sr !== 0 && r !== o && (s -= n.slice(r, i * sr).reduce(da, 0)), s;
8533
+ return t % ur !== 0 && (s -= n.slice(a * ur, t).reduce(da, 0)), r % ur !== 0 && r !== o && (s -= n.slice(r, i * ur).reduce(da, 0)), s;
8534
8534
  }
8535
8535
  const Kv = {
8536
8536
  virtualScrollSliceSize: {
@@ -8641,7 +8641,7 @@ function Yv({
8641
8641
  de -= p.value, se = g.value.from, xe = de;
8642
8642
  else
8643
8643
  for (let oe = 0; de >= f[oe] && se < Y; oe++)
8644
- de -= f[oe], se += sr;
8644
+ de -= f[oe], se += ur;
8645
8645
  for (; de > 0 && se < Y; )
8646
8646
  de -= h[se], de > -N.scrollViewSize ? (se++, xe = de) : xe = h[se] + de;
8647
8647
  I(
@@ -8699,7 +8699,7 @@ function Yv({
8699
8699
  for (let oe = 0; oe < ae; ) {
8700
8700
  for (de = le(Y[oe]), oe++; oe < ae && Y[oe].classList.contains("q-virtual-scroll--with-prev") === !0; )
8701
8701
  de += le(Y[oe]), oe++;
8702
- xe = de - h[se], xe !== 0 && (h[se] += xe, f[Math.floor(se / sr)] += xe), se++;
8702
+ xe = de - h[se], xe !== 0 && (h[se] += xe, f[Math.floor(se / ur)] += xe), se++;
8703
8703
  }
8704
8704
  }
8705
8705
  }
@@ -8714,12 +8714,12 @@ function Yv({
8714
8714
  h.length = e.value;
8715
8715
  for (let se = e.value - 1; se >= ae; se--)
8716
8716
  h[se] = Y;
8717
- const le = Math.floor((e.value - 1) / sr);
8717
+ const le = Math.floor((e.value - 1) / ur);
8718
8718
  f = [];
8719
8719
  for (let se = 0; se <= le; se++) {
8720
8720
  let de = 0;
8721
- const xe = Math.min((se + 1) * sr, e.value);
8722
- for (let oe = se * sr; oe < xe; oe++)
8721
+ const xe = Math.min((se + 1) * ur, e.value);
8722
+ for (let oe = se * ur; oe < xe; oe++)
8723
8723
  de += h[oe];
8724
8724
  f.push(de);
8725
8725
  }
@@ -9053,8 +9053,8 @@ const hd = Ke({
9053
9053
  return H.onCompositionstart = H.onCompositionupdate = H.onCompositionend = M, H;
9054
9054
  });
9055
9055
  me(N, (H) => {
9056
- h = H, e.useInput === !0 && e.fillInput === !0 && e.multiple !== !0 && O.innerLoading.value !== !0 && (i.value !== !0 && a.value !== !0 || le.value !== !0) && (m !== !0 && Jn(), (i.value === !0 || a.value === !0) && $e(""));
9057
- }, { immediate: !0 }), me(() => e.fillInput, Jn), me(a, Pu), me(I, j0);
9056
+ h = H, e.useInput === !0 && e.fillInput === !0 && e.multiple !== !0 && O.innerLoading.value !== !0 && (i.value !== !0 && a.value !== !0 || le.value !== !0) && (m !== !0 && er(), (i.value === !0 || a.value === !0) && $e(""));
9057
+ }, { immediate: !0 }), me(() => e.fillInput, er), me(a, Pu), me(I, j0);
9058
9058
  function vt(H) {
9059
9059
  return e.emitValue === !0 ? ue.value(H) : H;
9060
9060
  }
@@ -9147,7 +9147,7 @@ const hd = Ke({
9147
9147
  e.useInput === !0 && C.value !== null && (H === void 0 || C.value === H.target && H.target.value === oe.value) && C.value.select();
9148
9148
  }
9149
9149
  function ln(H) {
9150
- Hr(H, 27) === !0 && a.value === !0 && (Mn(H), bt(), Jn()), t("keyup", H);
9150
+ Hr(H, 27) === !0 && a.value === !0 && (Mn(H), bt(), er()), t("keyup", H);
9151
9151
  }
9152
9152
  function it(H) {
9153
9153
  const { value: ke } = H.target;
@@ -9155,7 +9155,7 @@ const hd = Ke({
9155
9155
  ln(H);
9156
9156
  return;
9157
9157
  }
9158
- if (H.target.value = "", d !== null && (clearTimeout(d), d = null), f !== null && (clearTimeout(f), f = null), Jn(), typeof ke == "string" && ke.length !== 0) {
9158
+ if (H.target.value = "", d !== null && (clearTimeout(d), d = null), f !== null && (clearTimeout(f), f = null), er(), typeof ke == "string" && ke.length !== 0) {
9159
9159
  const Ie = ke.toLocaleLowerCase(), ht = (Kt) => {
9160
9160
  const Nt = e.options.find((Xt) => String(Kt.value(Xt)).toLocaleLowerCase() === Ie);
9161
9161
  return Nt === void 0 ? !1 : (N.value.indexOf(Nt) === -1 ? It(Nt) : bt(), !0);
@@ -9258,7 +9258,7 @@ const hd = Ke({
9258
9258
  })
9259
9259
  ];
9260
9260
  }
9261
- function ir() {
9261
+ function sr() {
9262
9262
  if (xe.value === !0)
9263
9263
  return n["no-option"] !== void 0 ? n["no-option"]({ inputValue: u.value }) : void 0;
9264
9264
  const H = n.option !== void 0 ? n.option : (Ie) => T(On, {
@@ -9358,7 +9358,7 @@ const hd = Ke({
9358
9358
  onBeforeShow: Cf,
9359
9359
  onBeforeHide: qt,
9360
9360
  onShow: Bt
9361
- }, ir);
9361
+ }, sr);
9362
9362
  }
9363
9363
  function qt(H) {
9364
9364
  _f(H), Te();
@@ -9405,7 +9405,7 @@ const hd = Ke({
9405
9405
  ...tt.value,
9406
9406
  onClick: Dn,
9407
9407
  onScrollPassive: q
9408
- }, ir())
9408
+ }, sr())
9409
9409
  ), T(Ba, {
9410
9410
  ref: R,
9411
9411
  modelValue: i.value,
@@ -9428,7 +9428,7 @@ const hd = Ke({
9428
9428
  ), O.focused.value = !1;
9429
9429
  }
9430
9430
  function _e(H) {
9431
- bt(), O.focused.value === !1 && t("blur", H), Jn();
9431
+ bt(), O.focused.value === !1 && t("blur", H), er();
9432
9432
  }
9433
9433
  function dt() {
9434
9434
  const H = document.activeElement;
@@ -9445,7 +9445,7 @@ const hd = Ke({
9445
9445
  function bt() {
9446
9446
  i.value = !1, Te();
9447
9447
  }
9448
- function Jn() {
9448
+ function er() {
9449
9449
  e.useInput === !0 && We(
9450
9450
  e.multiple !== !0 && e.fillInput === !0 && N.value.length !== 0 && Z.value(N.value[0]) || "",
9451
9451
  !0,
@@ -9522,7 +9522,7 @@ const hd = Ke({
9522
9522
  },
9523
9523
  onFocusout(H) {
9524
9524
  O.onControlFocusout(H, () => {
9525
- Jn(), Te();
9525
+ er(), Te();
9526
9526
  });
9527
9527
  },
9528
9528
  onClick(H) {
@@ -9622,7 +9622,7 @@ const hd = Ke({
9622
9622
  s.value = c.toLowerCase();
9623
9623
  });
9624
9624
  }
9625
- return (c, d) => (X(), Ae(dr(hd), {
9625
+ return (c, d) => (X(), Ae(Yn(hd), {
9626
9626
  ref_key: "select",
9627
9627
  ref: r,
9628
9628
  modelValue: a.value,
@@ -9778,7 +9778,7 @@ const hd = Ke({
9778
9778
  fe("div", Ex, [
9779
9779
  fe("h2", null, mt(a.title), 1),
9780
9780
  fe("div", Rx, [
9781
- Qn(Se(Et, {
9781
+ Zn(Se(Et, {
9782
9782
  dense: "",
9783
9783
  flat: "",
9784
9784
  icon: "close"
@@ -9795,7 +9795,7 @@ const hd = Ke({
9795
9795
  thickness: 3,
9796
9796
  color: "primary"
9797
9797
  })) : Xe("", !0)
9798
- ])) : tn(a.$slots, "default", { key: 1 }, void 0, !0)
9798
+ ])) : Qt(a.$slots, "default", { key: 1 }, void 0, !0)
9799
9799
  ])
9800
9800
  ]),
9801
9801
  _: 3
@@ -9811,7 +9811,7 @@ const hd = Ke({
9811
9811
  color: "primary"
9812
9812
  })) : Xe("", !0)
9813
9813
  ])
9814
- ])) : tn(a.$slots, "default", { key: 1 }, void 0, !0)
9814
+ ])) : Qt(a.$slots, "default", { key: 1 }, void 0, !0)
9815
9815
  ], 64)) : Xe("", !0)
9816
9816
  ]),
9817
9817
  _: 3
@@ -9916,7 +9916,7 @@ function Nx(e, n, t, r) {
9916
9916
  onKeydown: m,
9917
9917
  ...g
9918
9918
  };
9919
- return Qn(
9919
+ return Zn(
9920
9920
  T(w, x, v()),
9921
9921
  [[bi, l.value]]
9922
9922
  );
@@ -10262,7 +10262,7 @@ const Vx = ["left", "center", "right", "justify"], zx = Ke({
10262
10262
  r("update:tabId", s);
10263
10263
  }
10264
10264
  });
10265
- return (i, s) => (X(), Ae(dr(Ba), {
10265
+ return (i, s) => (X(), Ae(Yn(Ba), {
10266
10266
  "model-value": i.modelValue,
10267
10267
  position: "right",
10268
10268
  class: He(i.$style["sheet-dialog"]),
@@ -10329,7 +10329,7 @@ const Vx = ["left", "center", "right", "justify"], zx = Ke({
10329
10329
  class: "ellipsis",
10330
10330
  title: i.title
10331
10331
  }, mt(i.title), 9, Ux),
10332
- Qn(Se(Et, {
10332
+ Zn(Se(Et, {
10333
10333
  dense: "",
10334
10334
  flat: "",
10335
10335
  icon: "close",
@@ -10338,9 +10338,9 @@ const Vx = ["left", "center", "right", "justify"], zx = Ke({
10338
10338
  [dd, !i.persistent]
10339
10339
  ])
10340
10340
  ])) : Xe("", !0),
10341
- tn(i.$slots, "default", {}, void 0, !0),
10342
- "actions" in dr(o) ? (X(), ye("div", Gx, [
10343
- tn(i.$slots, "actions", {}, void 0, !0)
10341
+ Qt(i.$slots, "default", {}, void 0, !0),
10342
+ "actions" in Yn(o) ? (X(), ye("div", Gx, [
10343
+ Qt(i.$slots, "actions", {}, void 0, !0)
10344
10344
  ])) : Xe("", !0)
10345
10345
  ])
10346
10346
  ], 4))
@@ -10354,7 +10354,7 @@ const Vx = ["left", "center", "right", "justify"], zx = Ke({
10354
10354
  tab: Xx
10355
10355
  }, Qx = {
10356
10356
  $style: Yx
10357
- }, VA = /* @__PURE__ */ Fe(Kx, [["__cssModules", Qx], ["__scopeId", "data-v-63306fe5"]]), gh = 150, Zx = Ke({
10357
+ }, VA = /* @__PURE__ */ Fe(Kx, [["__cssModules", Qx], ["__scopeId", "data-v-2ee4bdf1"]]), gh = 150, Zx = Ke({
10358
10358
  name: "QDrawer",
10359
10359
  inheritAttrs: !1,
10360
10360
  props: {
@@ -10605,7 +10605,7 @@ const Vx = ["left", "center", "right", "justify"], zx = Ke({
10605
10605
  }), () => {
10606
10606
  const ue = [];
10607
10607
  p.value === !0 && (e.noSwipeOpen === !1 && ue.push(
10608
- Qn(
10608
+ Zn(
10609
10609
  T("div", {
10610
10610
  key: "open",
10611
10611
  class: `q-drawer__opener fixed-${e.side}`,
@@ -10869,7 +10869,7 @@ const Vx = ["left", "center", "right", "justify"], zx = Ke({
10869
10869
  )), T(On, L, $);
10870
10870
  }
10871
10871
  function B() {
10872
- return Qn(
10872
+ return Zn(
10873
10873
  T("div", {
10874
10874
  key: "e-content",
10875
10875
  class: "q-expansion-item__content relative-position",
@@ -10976,7 +10976,7 @@ const Vx = ["left", "center", "right", "justify"], zx = Ke({
10976
10976
  }, null, 8, ["item", "main", "is-route-active"]))), 128))
10977
10977
  ]),
10978
10978
  _: 1
10979
- }, 8, ["model-value", "class", "data-test"])) : a.item.name !== "sign-out" ? Qn((X(), Ae(On, {
10979
+ }, 8, ["model-value", "class", "data-test"])) : a.item.name !== "sign-out" ? Zn((X(), Ae(On, {
10980
10980
  key: 1,
10981
10981
  class: He(a.$style["menu-item"]),
10982
10982
  active: a.isRouteActive(a.item),
@@ -11175,7 +11175,7 @@ const Vx = ["left", "center", "right", "justify"], zx = Ke({
11175
11175
  minify: a.value,
11176
11176
  "is-route-active": p.isRouteActive
11177
11177
  }, null, 8, ["main", "menu-items", "minify", "is-route-active"]),
11178
- Qn((X(), Ae(On, {
11178
+ Zn((X(), Ae(On, {
11179
11179
  class: He(p.$style["menu-exit"]),
11180
11180
  clickable: "",
11181
11181
  onClick: m[2] || (m[2] = (v) => h())
@@ -11274,7 +11274,7 @@ const Vx = ["left", "center", "right", "justify"], zx = Ke({
11274
11274
  }), gC = {}, yC = { class: "app-wrapper" };
11275
11275
  function bC(e, n) {
11276
11276
  return X(), ye("div", yC, [
11277
- tn(e.$slots, "default", {}, void 0, !0)
11277
+ Qt(e.$slots, "default", {}, void 0, !0)
11278
11278
  ]);
11279
11279
  }
11280
11280
  const WA = /* @__PURE__ */ Fe(gC, [["render", bC], ["__scopeId", "data-v-f769f373"]]), Ss = Ke({
@@ -11399,12 +11399,12 @@ const TC = /* @__PURE__ */ Fe(EC, [["render", IC]]), AC = /* @__PURE__ */ Ft({
11399
11399
  Se(rc, {
11400
11400
  class: He(o.$style["footer__btn--ok"]),
11401
11401
  label: "Подтвердить",
11402
- onClick: dr(t)
11402
+ onClick: Yn(t)
11403
11403
  }, null, 8, ["class", "onClick"]),
11404
11404
  Se(rc, {
11405
11405
  class: He(o.$style["footer__btn--cancel"]),
11406
11406
  label: "Отменить",
11407
- onClick: dr(n)
11407
+ onClick: Yn(n)
11408
11408
  }, null, 8, ["class", "onClick"])
11409
11409
  ]),
11410
11410
  _: 1
@@ -11636,12 +11636,12 @@ const VC = Ke({
11636
11636
  "content-style": { width: t.width || "200px", minWidth: t.height || "200px" }
11637
11637
  }, {
11638
11638
  label: ve(() => [
11639
- tn(t.$slots, "label", {}, () => [
11639
+ Qt(t.$slots, "label", {}, () => [
11640
11640
  $t(mt(t.label), 1)
11641
11641
  ], !0)
11642
11642
  ]),
11643
11643
  default: ve(() => [
11644
- tn(t.$slots, "content", {}, void 0, !0)
11644
+ Qt(t.$slots, "content", {}, void 0, !0)
11645
11645
  ]),
11646
11646
  _: 3
11647
11647
  }, 8, ["modelValue", "color", "content-style"]));
@@ -11924,7 +11924,7 @@ const VC = Ke({
11924
11924
  u.value = y, i.value = "", r("update:modelValue", y), r("clear");
11925
11925
  }
11926
11926
  const d = k(() => {
11927
- const y = t.optionLabel || "label", b = t.options.filter((w) => {
11927
+ const y = t.optionLabel || "label", b = "option" in o ? t.options : t.options.filter((w) => {
11928
11928
  const g = w[y];
11929
11929
  return typeof g == "string" && g.toLowerCase().includes(i.value);
11930
11930
  });
@@ -11986,7 +11986,7 @@ const VC = Ke({
11986
11986
  multiple: y.multiple,
11987
11987
  "popup-content-class": "custom-select-menu",
11988
11988
  "hide-selected": !y.showChip && !y.simple,
11989
- placeholder: y.placeholder,
11989
+ placeholder: l.value ? y.placeholder : null,
11990
11990
  loading: y.loading,
11991
11991
  "option-value": y.optionValue || "value",
11992
11992
  "option-label": y.optionLabel || "label",
@@ -12043,9 +12043,9 @@ const VC = Ke({
12043
12043
  })
12044
12044
  ]),
12045
12045
  _: 1
12046
- })) : "option" in dr(o) ? (X(), Ae(On, Ef(ds({ key: 1 }, g.itemProps)), {
12046
+ })) : "option" in Yn(o) ? (X(), Ae(On, Ef(ds({ key: 1 }, g.itemProps)), {
12047
12047
  default: ve(() => [
12048
- tn(y.$slots, "option", {
12048
+ Qt(y.$slots, "option", {
12049
12049
  opt: g.opt
12050
12050
  }, void 0, !0)
12051
12051
  ]),
@@ -12064,11 +12064,14 @@ const VC = Ke({
12064
12064
  ]),
12065
12065
  _: 2
12066
12066
  }, [
12067
- y.multiple || y.showChip ? {
12067
+ y.multiple || y.showChip || "selected" in Yn(o) ? {
12068
12068
  name: "selected-item",
12069
12069
  fn: ve((g) => [
12070
- g.opt ? (X(), Ae(fd, {
12070
+ "selected" in Yn(o) && g.opt ? Qt(y.$slots, "selected", {
12071
12071
  key: 0,
12072
+ opt: g.opt
12073
+ }, void 0, !0) : g.opt ? (X(), Ae(fd, {
12074
+ key: 1,
12072
12075
  removable: "",
12073
12076
  tabindex: g.tabindex,
12074
12077
  style: To({ backgroundColor: y.chipColor }),
@@ -12088,7 +12091,7 @@ const VC = Ke({
12088
12091
  ], 64);
12089
12092
  };
12090
12093
  }
12091
- }), a_ = /* @__PURE__ */ Fe(o_, [["__scopeId", "data-v-50f72b8a"]]), i_ = { class: "modal-title" }, s_ = {
12094
+ }), a_ = /* @__PURE__ */ Fe(o_, [["__scopeId", "data-v-de1e6d9d"]]), i_ = { class: "modal-title" }, s_ = {
12092
12095
  key: 0,
12093
12096
  class: "field-label"
12094
12097
  }, u_ = {
@@ -12462,7 +12465,7 @@ const VC = Ke({
12462
12465
  "aria-hidden": "true",
12463
12466
  onMousedown: e.store.onHorizontalMousedown
12464
12467
  }),
12465
- Qn(
12468
+ Zn(
12466
12469
  T("div", {
12467
12470
  ref: e.store.scroll.vertical.ref,
12468
12471
  class: e.store.scroll.vertical.thumbClass.value,
@@ -12471,7 +12474,7 @@ const VC = Ke({
12471
12474
  }),
12472
12475
  e.store.thumbVertDir
12473
12476
  ),
12474
- Qn(
12477
+ Zn(
12475
12478
  T("div", {
12476
12479
  ref: e.store.scroll.horizontal.ref,
12477
12480
  class: e.store.scroll.horizontal.thumbClass.value,
@@ -13612,11 +13615,11 @@ const z_ = Ke({
13612
13615
  }
13613
13616
  function je(ee) {
13614
13617
  return It(ee), ee.cols = ee.cols.map(
13615
- (Ce) => nr({ ...Ce }, "value", () => re(Ce, ee.row))
13618
+ (Ce) => rr({ ...Ce }, "value", () => re(Ce, ee.row))
13616
13619
  ), ee;
13617
13620
  }
13618
13621
  function Ue(ee) {
13619
- return It(ee), nr(ee, "value", () => re(ee.col, ee.row)), ee;
13622
+ return It(ee), rr(ee, "value", () => re(ee.col, ee.row)), ee;
13620
13623
  }
13621
13624
  function xt(ee) {
13622
13625
  return It(ee), ee;
@@ -13630,14 +13633,14 @@ const z_ = Ke({
13630
13633
  color: e.color,
13631
13634
  dark: a.value,
13632
13635
  dense: e.dense
13633
- }), M.value === !0 && nr(
13636
+ }), M.value === !0 && rr(
13634
13637
  ee,
13635
13638
  "selected",
13636
13639
  () => L(ee.key),
13637
13640
  (Ce, We) => {
13638
13641
  U([ee.key], [ee.row], Ce, We);
13639
13642
  }
13640
- ), nr(
13643
+ ), rr(
13641
13644
  ee,
13642
13645
  "expand",
13643
13646
  () => x(ee.key),
@@ -13744,7 +13747,7 @@ const z_ = Ke({
13744
13747
  color: e.color,
13745
13748
  dark: a.value,
13746
13749
  dense: e.dense
13747
- }), $.value === !0 && nr(
13750
+ }), $.value === !0 && rr(
13748
13751
  ee,
13749
13752
  "selected",
13750
13753
  () => Ge.value,
@@ -13881,7 +13884,7 @@ const z_ = Ke({
13881
13884
  T("div", { class: "q-table__control" }, Ce)
13882
13885
  ), ee;
13883
13886
  }
13884
- function ir() {
13887
+ function sr() {
13885
13888
  const ee = e.gridHeader === !0 ? [
13886
13889
  T("table", { class: "q-table" }, [
13887
13890
  at()
@@ -13970,7 +13973,7 @@ const z_ = Ke({
13970
13973
  computedRowsNumber: () => Oe.value
13971
13974
  }), () => {
13972
13975
  const ee = [Ve()], Ce = { ref: l, class: p.value };
13973
- return e.grid === !0 ? ee.push(ir()) : Object.assign(Ce, {
13976
+ return e.grid === !0 ? ee.push(sr()) : Object.assign(Ce, {
13974
13977
  class: [Ce.class, e.cardClass],
13975
13978
  style: e.cardStyle
13976
13979
  }), ee.push(
@@ -14125,7 +14128,7 @@ const j_ = /* @__PURE__ */ Fe($_, [["render", H_]]), U_ = {
14125
14128
  }, 1032, ["color"])) : f.col.html ? (X(), ye("span", {
14126
14129
  key: 1,
14127
14130
  innerHTML: f.value
14128
- }, null, 8, Z_)) : s(f.col.name) ? tn(c.$slots, f.col.name, {
14131
+ }, null, 8, Z_)) : s(f.col.name) ? Qt(c.$slots, f.col.name, {
14129
14132
  key: 2,
14130
14133
  cellProps: f,
14131
14134
  class: He({ fixed__btns: f.col.name === "fixed" })
@@ -14280,13 +14283,13 @@ const j_ = /* @__PURE__ */ Fe($_, [["render", H_]]), U_ = {
14280
14283
  placeholder: "Введите наименование",
14281
14284
  onSearch: t.onSearch
14282
14285
  }, null, 8, ["model-value", "onSearch"])),
14283
- s.value ? tn(u.$slots, "actions", { key: 1 }, void 0, !0) : Xe("", !0)
14286
+ s.value ? Qt(u.$slots, "actions", { key: 1 }, void 0, !0) : Xe("", !0)
14284
14287
  ])) : Xe("", !0),
14285
14288
  fe("div", rk, [
14286
14289
  Se(tk, ds(t.tableProps, {
14287
14290
  "selected-rows": t.selectedRows,
14288
14291
  "no-hover": u.noHover,
14289
- slots: dr(o),
14292
+ slots: Yn(o),
14290
14293
  "hide-pagination": u.hidePagination
14291
14294
  }, t1(t.tableEvents), {
14292
14295
  "onUpdate:selectedRows": l[0] || (l[0] = (c) => r("update:selectedRows", c))
@@ -14294,7 +14297,7 @@ const j_ = /* @__PURE__ */ Fe($_, [["render", H_]]), U_ = {
14294
14297
  Wr(i.value, (c) => ({
14295
14298
  name: c,
14296
14299
  fn: ve(({ cellProps: d }) => [
14297
- tn(u.$slots, c, {
14300
+ Qt(u.$slots, c, {
14298
14301
  row: d.row
14299
14302
  }, void 0, !0)
14300
14303
  ])
@@ -14315,7 +14318,7 @@ const j_ = /* @__PURE__ */ Fe($_, [["render", H_]]), U_ = {
14315
14318
  "total-pages": t.totalPages,
14316
14319
  onPageChange: t.onPageChange
14317
14320
  }, null, 8, ["model-value", "total-pages", "onPageChange"])) : Xe("", !0),
14318
- "modal" in dr(o) ? tn(u.$slots, "modal", { key: 2 }, void 0, !0) : Xe("", !0)
14321
+ "modal" in Yn(o) ? Qt(u.$slots, "modal", { key: 2 }, void 0, !0) : Xe("", !0)
14319
14322
  ], 2));
14320
14323
  }
14321
14324
  }), GA = /* @__PURE__ */ Fe(ak, [["__scopeId", "data-v-1b7ee59f"]]);
@@ -15982,26 +15985,26 @@ function Sm(e) {
15982
15985
  return Sm(Lo(e, o));
15983
15986
  }, t;
15984
15987
  }
15985
- const Zt = Sm(_i);
15986
- Zt.Axios = Fo;
15987
- Zt.CanceledError = La;
15988
- Zt.CancelToken = P3;
15989
- Zt.isCancel = mm;
15990
- Zt.VERSION = _m;
15991
- Zt.toFormData = cu;
15992
- Zt.AxiosError = ut;
15993
- Zt.Cancel = Zt.CanceledError;
15994
- Zt.all = function(n) {
15988
+ const Jt = Sm(_i);
15989
+ Jt.Axios = Fo;
15990
+ Jt.CanceledError = La;
15991
+ Jt.CancelToken = P3;
15992
+ Jt.isCancel = mm;
15993
+ Jt.VERSION = _m;
15994
+ Jt.toFormData = cu;
15995
+ Jt.AxiosError = ut;
15996
+ Jt.Cancel = Jt.CanceledError;
15997
+ Jt.all = function(n) {
15995
15998
  return Promise.all(n);
15996
15999
  };
15997
- Zt.spread = F3;
15998
- Zt.isAxiosError = B3;
15999
- Zt.mergeConfig = Lo;
16000
- Zt.AxiosHeaders = qn;
16001
- Zt.formToJSON = (e) => vm(te.isHTMLForm(e) ? new FormData(e) : e);
16002
- Zt.getAdapter = Cm.getAdapter;
16003
- Zt.HttpStatusCode = mc;
16004
- Zt.default = Zt;
16000
+ Jt.spread = F3;
16001
+ Jt.isAxiosError = B3;
16002
+ Jt.mergeConfig = Lo;
16003
+ Jt.AxiosHeaders = qn;
16004
+ Jt.formToJSON = (e) => vm(te.isHTMLForm(e) ? new FormData(e) : e);
16005
+ Jt.getAdapter = Cm.getAdapter;
16006
+ Jt.HttpStatusCode = mc;
16007
+ Jt.default = Jt;
16005
16008
  const {
16006
16009
  Axios: YA,
16007
16010
  AxiosError: QA,
@@ -16019,11 +16022,11 @@ const {
16019
16022
  formToJSON: lD,
16020
16023
  getAdapter: cD,
16021
16024
  mergeConfig: dD
16022
- } = Zt;
16025
+ } = Jt;
16023
16026
  class _n {
16024
16027
  constructor() {
16025
16028
  Sf(this, "axiosInstance");
16026
- this.axiosInstance = Zt.create({
16029
+ this.axiosInstance = Jt.create({
16027
16030
  baseURL: process.env.VUE_APP_BACKEND,
16028
16031
  headers: {
16029
16032
  "Content-Type": "application/json",
@@ -16680,6 +16683,15 @@ class U3 extends _n {
16680
16683
  fetchInstrumentTypeList(n) {
16681
16684
  return this.get("search/instrument_types", { params: n });
16682
16685
  }
16686
+ fetchInstrumentCategoryList(n = {}) {
16687
+ return this.get("instrument_category/list", { params: n });
16688
+ }
16689
+ createInstrumentType(n) {
16690
+ return this.post("admin/instruments", n);
16691
+ }
16692
+ editInstrumentType(n, t) {
16693
+ return this.put(`admin/instruments/${n}`, t);
16694
+ }
16683
16695
  deleteInstrumentType(n) {
16684
16696
  return this.delete(`admin/instruments/${n}`);
16685
16697
  }
@@ -17034,7 +17046,7 @@ function pn(e, n) {
17034
17046
  for (var t = 0; t < e.length; t++) if (e[t] !== n[t]) return !1;
17035
17047
  return !0;
17036
17048
  }
17037
- function Qt(e) {
17049
+ function Zt(e) {
17038
17050
  return e % 1 == 0;
17039
17051
  }
17040
17052
  function oS(e) {
@@ -17090,7 +17102,7 @@ function un(e, n) {
17090
17102
  }), function() {
17091
17103
  return "All values in axis param must be in range [-" + t + ", " + t + ") but got axis " + e;
17092
17104
  }), P(e.every(function(r) {
17093
- return Qt(r);
17105
+ return Zt(r);
17094
17106
  }), function() {
17095
17107
  return "All values in axis param must be integers but got axis " + e;
17096
17108
  }), e.map(function(r) {
@@ -18643,9 +18655,9 @@ function WS(e) {
18643
18655
  function HS(e) {
18644
18656
  if (e === 0) return 0;
18645
18657
  var n = Dr(e);
18646
- return or(n, "EXT_disjoint_timer_query_webgl2") && e === 2 ? 2 : or(n, "EXT_disjoint_timer_query") ? 1 : 0;
18658
+ return ar(n, "EXT_disjoint_timer_query_webgl2") && e === 2 ? 2 : ar(n, "EXT_disjoint_timer_query") ? 1 : 0;
18647
18659
  }
18648
- function or(e, n) {
18660
+ function ar(e, n) {
18649
18661
  return e.getExtension(n) != null;
18650
18662
  }
18651
18663
  function Gh(e) {
@@ -18660,16 +18672,16 @@ function jS(e) {
18660
18672
  if (e === 0) return !1;
18661
18673
  var n = Dr(e);
18662
18674
  if (e === 1) {
18663
- if (!or(n, "OES_texture_float")) return !1;
18664
- } else if (!or(n, "EXT_color_buffer_float")) return !1;
18675
+ if (!ar(n, "OES_texture_float")) return !1;
18676
+ } else if (!ar(n, "EXT_color_buffer_float")) return !1;
18665
18677
  return Ec(n);
18666
18678
  }
18667
18679
  function US(e) {
18668
18680
  if (e === 0) return !1;
18669
18681
  var n = Dr(e);
18670
18682
  if (e !== 1) {
18671
- if (or(n, "EXT_color_buffer_float")) return Ec(n);
18672
- if (or(n, "EXT_color_buffer_half_float")) {
18683
+ if (ar(n, "EXT_color_buffer_float")) return Ec(n);
18684
+ if (ar(n, "EXT_color_buffer_half_float")) {
18673
18685
  var t = n.getExtension("EXT_color_buffer_half_float");
18674
18686
  return function(r, o) {
18675
18687
  var a = wd(r, o), i = r.createTexture();
@@ -18682,7 +18694,7 @@ function US(e) {
18682
18694
  }
18683
18695
  return !1;
18684
18696
  }
18685
- return !!or(n, "OES_texture_float") && !!or(n, "WEBGL_color_buffer_float") && Ec(n);
18697
+ return !!ar(n, "OES_texture_float") && !!ar(n, "WEBGL_color_buffer_float") && Ec(n);
18686
18698
  }
18687
18699
  function Ec(e) {
18688
18700
  var n = wd(e), t = e.createTexture();
@@ -18891,7 +18903,7 @@ var yn = z({ complex_: function(e, n) {
18891
18903
  return Rt(t.shape, r.shape, "real and imag shapes, " + t.shape + " and " + r.shape + ", must match in call to tf.complex()."), j.runKernelFunc(function(o) {
18892
18904
  return o.complex(t, r);
18893
18905
  }, { $real: t, $imag: r });
18894
- } }), rr = z({ real_: function(e) {
18906
+ } }), or = z({ real_: function(e) {
18895
18907
  var n = A(e, "input", "real");
18896
18908
  return j.runKernelFunc(function(t) {
18897
18909
  return t.real(n);
@@ -18928,7 +18940,7 @@ function we(e, n) {
18928
18940
  if (n === "string" && kr(e) && !(e instanceof Uint8Array)) throw new Error("When making a scalar from encoded string, the value must be `Uint8Array`.");
18929
18941
  return vo(e, [], [], n);
18930
18942
  }
18931
- function en(e, n) {
18943
+ function tn(e, n) {
18932
18944
  qa(e);
18933
18945
  var t = po(e, n);
18934
18946
  if (t.length !== 1) throw new Error("tensor1d() requires values to be a flat/TypedArray");
@@ -19005,12 +19017,12 @@ function Bs(e, n, t, r) {
19005
19017
  var o = Si(Math.abs(Math.ceil((n - e) / t)), r);
19006
19018
  n < e && t === 1 && (t = -1), o[0] = e;
19007
19019
  for (var a = 1; a < o.length; a++) o[a] = o[a - 1] + t;
19008
- return en(o, r);
19020
+ return tn(o, r);
19009
19021
  }
19010
19022
  var $m = z({ onesLike_: function(e) {
19011
19023
  var n = A(e, "x", "onesLike");
19012
19024
  if (n.dtype === "complex64") {
19013
- var t = $m(rr(n)), r = yt(Cr(n));
19025
+ var t = $m(or(n)), r = yt(Cr(n));
19014
19026
  return yn(t, r);
19015
19027
  }
19016
19028
  return j.runKernelFunc(function(o) {
@@ -19488,7 +19500,7 @@ var Wm = z({ batchToSpaceND_: function(e, n, t) {
19488
19500
  }), j.runKernelFunc(function(s) {
19489
19501
  return s.depthToSpace(r, n, t);
19490
19502
  }, { $x: r });
19491
- } }), tr = z({ expandDims_: function(e, n) {
19503
+ } }), nr = z({ expandDims_: function(e, n) {
19492
19504
  n === void 0 && (n = 0);
19493
19505
  var t = A(e, "x", "expandDims", null);
19494
19506
  P(n <= t.rank, function() {
@@ -19497,15 +19509,15 @@ var Wm = z({ batchToSpaceND_: function(e, n, t) {
19497
19509
  var r = t.shape.slice();
19498
19510
  return n < 0 && (P(-(t.rank + 1) <= n, function() {
19499
19511
  return "Axis must be in the interval [" + -(t.rank + 1) + ", " + t.rank + "]";
19500
- }), n = t.rank + n + 1), r.splice(n, 0, 1), lr(t, r);
19512
+ }), n = t.rank + n + 1), r.splice(n, 0, 1), cr(t, r);
19501
19513
  } }), Hm = z({ eye_: function(e, n, t, r) {
19502
19514
  r === void 0 && (r = "float32"), n == null && (n = e);
19503
19515
  for (var o = ot([e, n], r), a = e <= n ? e : n, i = 0; i < a; ++i) o.set(1, i, i);
19504
19516
  var s = o.toTensor().as2D(e, n);
19505
19517
  if (t == null) return s;
19506
- if (t.length === 1) return ha(tr(s, 0), [t[0], 1, 1]);
19507
- if (t.length === 2) return ha(tr(tr(s, 0), 0), [t[0], t[1], 1, 1]);
19508
- if (t.length === 3) return ha(tr(tr(tr(s, 0), 0), 0), [t[0], t[1], t[2], 1, 1]);
19518
+ if (t.length === 1) return ha(nr(s, 0), [t[0], 1, 1]);
19519
+ if (t.length === 2) return ha(nr(nr(s, 0), 0), [t[0], t[1], 1, 1]);
19520
+ if (t.length === 3) return ha(nr(nr(nr(s, 0), 0), 0), [t[0], t[1], t[2], 1, 1]);
19509
19521
  throw new Error("eye() currently supports only 1D and 2D batchShapes, but received " + t.length + "D.");
19510
19522
  } }), b4 = z({ multinomial_: function(e, n, t, r) {
19511
19523
  r === void 0 && (r = !1);
@@ -19580,7 +19592,7 @@ var Wm = z({ batchToSpaceND_: function(e, n, t) {
19580
19592
  n === void 0 && (n = 0), t === void 0 && (t = 1), r === void 0 && (r = "float32");
19581
19593
  for (var a = ot(e, r), i = new f4(n, t, null, o), s = 0; s < a.values.length; s++) a.values[s] = i.nextValue();
19582
19594
  return a.toTensor();
19583
- } }), lr = z({ reshape_: function(e, n) {
19595
+ } }), cr = z({ reshape_: function(e, n) {
19584
19596
  var t = A(e, "x", "reshape", null);
19585
19597
  n = aS(n, t.size), P(t.size === Be(n), function() {
19586
19598
  return "new shape and old shape must have the same number of elements.";
@@ -19612,8 +19624,8 @@ var Wm = z({ batchToSpaceND_: function(e, n, t) {
19612
19624
  });
19613
19625
  } }), Gm = z({ squeeze_: function(e, n) {
19614
19626
  var t = A(e, "x", "squeeze");
19615
- return lr(t, ko(t.shape, n).newShape);
19616
- } }), Yn = z({ stack_: function(e, n) {
19627
+ return cr(t, ko(t.shape, n).newShape);
19628
+ } }), Qn = z({ stack_: function(e, n) {
19617
19629
  n === void 0 && (n = 0);
19618
19630
  var t = Fs(e, "tensors", "stack");
19619
19631
  if (P(t.length >= 1, function() {
@@ -19671,7 +19683,7 @@ var Wm = z({ batchToSpaceND_: function(e, n, t) {
19671
19683
  return o.unstack(t, n);
19672
19684
  }, { x: t }, function(o) {
19673
19685
  return { x: function() {
19674
- return Yn(o, n);
19686
+ return Qn(o, n);
19675
19687
  } };
19676
19688
  }, "Unpack", r);
19677
19689
  } }), I4 = function(e, n) {
@@ -20266,11 +20278,11 @@ function $o(e, n, t, r, o, a, i, s) {
20266
20278
  var le = function(ge, Ee, Oe, et, tt) {
20267
20279
  et == null && (et = ng(ge, Ee, Oe));
20268
20280
  var Ye = ge[0], ct = ge[1], gt = ti((Ye - Ee + 2 * et) / Oe + 1, tt);
20269
- P(Qt(gt), function() {
20281
+ P(Zt(gt), function() {
20270
20282
  return "The output # of rows (" + gt + ") must be an integer. Change the stride and/or zero pad parameters";
20271
20283
  });
20272
20284
  var At = ti((ct - Ee + 2 * et) / Oe + 1, tt);
20273
- return P(Qt(At), function() {
20285
+ return P(Zt(At), function() {
20274
20286
  return "The output # of columns (" + At + ") must be an integer. Change the stride and/or zero pad parameters";
20275
20287
  }), [gt, At];
20276
20288
  }([B, V], U, L, D, O);
@@ -20302,15 +20314,15 @@ function zs(e, n, t, r, o, a, i, s) {
20302
20314
  var tt = function(Pe, st, vt, je, Ue, xt) {
20303
20315
  Ue == null && (Ue = ng(Pe, st, je));
20304
20316
  var It = Pe[0], re = Pe[1], he = Pe[2], Ve = ti((It - st + 2 * Ue) / je + 1, xt);
20305
- P(Qt(Ve), function() {
20317
+ P(Zt(Ve), function() {
20306
20318
  return "The output # of depths (" + Ve + ") must be an integer. Change the stride and/or zero pad parameters";
20307
20319
  });
20308
20320
  var Ge = ti((re - st + 2 * Ue) / je + 1, xt);
20309
- P(Qt(Ge), function() {
20321
+ P(Zt(Ge), function() {
20310
20322
  return "The output # of rows (" + Ge + ") must be an integer. Change the stride and/or zero pad parameters";
20311
20323
  });
20312
20324
  var at = ti((he - st + 2 * Ue) / je + 1, xt);
20313
- return P(Qt(at), function() {
20325
+ return P(Zt(at), function() {
20314
20326
  return "The output # of columns (" + at + ") must be an integer. Change the stride and/or zero pad parameters";
20315
20327
  }), [Ve, Ge, at, vt];
20316
20328
  }([O, N, Y, 1], de, 1, ae, G, ze);
@@ -20391,7 +20403,7 @@ function og(e, n, t) {
20391
20403
  var r = (n - e) / (t - 1), o = Si(t, "float32");
20392
20404
  o[0] = e;
20393
20405
  for (var a = 1; a < o.length; a++) o[a] = o[a - 1] + r;
20394
- return en(o, "float32");
20406
+ return tn(o, "float32");
20395
20407
  }
20396
20408
  function Ac(e, n) {
20397
20409
  if (e.length !== n.length) throw new Error("Cannot merge real and imag arrays of different lengths. real:" + e.length + ", imag: " + n.length + ".");
@@ -20450,7 +20462,7 @@ function ag(e, n, t, r, o, a, i, s) {
20450
20462
  f.suppressBeginIndex = c.length, v || (f.score === h ? (c.push(p), d.push(f.score)) : f.score > o && L4(u, f, Qh));
20451
20463
  }
20452
20464
  var w = c.length;
20453
- return s && (c.fill(0, w), d.fill(0, w)), { selectedIndices: en(c, "int32"), selectedScores: en(d, "float32"), numValidOutputs: we(w, "int32") };
20465
+ return s && (c.fill(0, w), d.fill(0, w)), { selectedIndices: tn(c, "int32"), selectedScores: tn(d, "float32"), numValidOutputs: we(w, "int32") };
20454
20466
  }
20455
20467
  function V4(e, n, t) {
20456
20468
  var r = e.subarray(4 * n, 4 * n + 4), o = e.subarray(4 * t, 4 * t + 4), a = Math.min(r[0], r[2]), i = Math.min(r[1], r[3]), s = Math.max(r[0], r[2]), u = Math.max(r[1], r[3]), l = Math.min(o[0], o[2]), c = Math.min(o[1], o[3]), d = Math.max(o[0], o[2]), f = Math.max(o[1], o[3]), h = (s - a) * (u - i), p = (d - l) * (f - c);
@@ -23237,13 +23249,13 @@ var UE = function() {
23237
23249
  n != null ? (this.gl = n, wS(t, n)) : this.gl = Dr(t);
23238
23250
  var r = "WEBGL_color_buffer_float";
23239
23251
  if (ie().getNumber("WEBGL_VERSION") === 1) {
23240
- if (this.textureFloatExtension = $i(this.gl, this.debug, "OES_texture_float"), or(this.gl, "OES_texture_half_float")) this.textureHalfFloatExtension = $i(this.gl, this.debug, "OES_texture_half_float");
23252
+ if (this.textureFloatExtension = $i(this.gl, this.debug, "OES_texture_float"), ar(this.gl, "OES_texture_half_float")) this.textureHalfFloatExtension = $i(this.gl, this.debug, "OES_texture_half_float");
23241
23253
  else if (ie().get("WEBGL_FORCE_F16_TEXTURES")) throw new Error("GL context does not support half float textures, yet the environment flag WEBGL_FORCE_F16_TEXTURES is set to true.");
23242
- if (this.colorBufferFloatExtension = this.gl.getExtension(r), or(this.gl, "EXT_color_buffer_half_float")) this.colorBufferHalfFloatExtension = $i(this.gl, this.debug, "EXT_color_buffer_half_float");
23254
+ if (this.colorBufferFloatExtension = this.gl.getExtension(r), ar(this.gl, "EXT_color_buffer_half_float")) this.colorBufferHalfFloatExtension = $i(this.gl, this.debug, "EXT_color_buffer_half_float");
23243
23255
  else if (ie().get("WEBGL_FORCE_F16_TEXTURES")) throw new Error("GL context does not support color renderable half floats, yet the environment flag WEBGL_FORCE_F16_TEXTURES is set to true.");
23244
- } else if (r = "EXT_color_buffer_float", or(this.gl, r)) this.colorBufferFloatExtension = this.gl.getExtension(r);
23256
+ } else if (r = "EXT_color_buffer_float", ar(this.gl, r)) this.colorBufferFloatExtension = this.gl.getExtension(r);
23245
23257
  else {
23246
- if (!or(this.gl, "EXT_color_buffer_half_float")) throw new Error("GL context does not support color renderable floats");
23258
+ if (!ar(this.gl, "EXT_color_buffer_half_float")) throw new Error("GL context does not support color renderable floats");
23247
23259
  this.colorBufferHalfFloatExtension = this.gl.getExtension("EXT_color_buffer_half_float");
23248
23260
  }
23249
23261
  this.vertexBuffer = DE(this.gl, this.debug), this.indexBuffer = ME(this.gl, this.debug), this.framebuffer = FS(this.gl, this.debug), this.textureConfig = wd(this.gl, this.textureHalfFloatExtension);
@@ -25516,7 +25528,7 @@ var FR = 600, BR = function(e) {
25516
25528
  }, n.prototype.concat = function(t, r) {
25517
25529
  if (t[0].dtype === "complex64") {
25518
25530
  var o = t.map(function(h) {
25519
- return rr(h);
25531
+ return or(h);
25520
25532
  }), a = t.map(function(h) {
25521
25533
  return Cr(h);
25522
25534
  });
@@ -27086,7 +27098,7 @@ var f5 = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
27086
27098
  return f.length > 0 && (d = d.sum(f)), d.reshape(l.shape);
27087
27099
  } };
27088
27100
  });
27089
- } }), ur = z({ div_: function(e, n) {
27101
+ } }), lr = z({ div_: function(e, n) {
27090
27102
  var t, r = A(e, "a", "div"), o = A(n, "b", "div");
27091
27103
  if (t = jt(r, o), r = t[0], o = t[1], r.dtype === "int32" && o.dtype === "int32") return Tg(r, o);
27092
27104
  var a = pt(r.shape, o.shape);
@@ -27108,7 +27120,7 @@ var f5 = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
27108
27120
  } }), k5 = z({ divNoNan_: function(e, n) {
27109
27121
  var t, r = A(e, "a", "div"), o = A(n, "b", "div");
27110
27122
  r = (t = jt(r, o))[0], o = t[1];
27111
- var a = ur(r, o), i = yt(a), s = o.equal(i);
27123
+ var a = lr(r, o), i = yt(a), s = o.equal(i);
27112
27124
  return qo(s, i, a);
27113
27125
  } }), S5 = z({ divStrict_: function(e, n) {
27114
27126
  var t = A(e, "a", "div"), r = A(n, "b", "div");
@@ -27334,7 +27346,7 @@ var Bd = z({ gather_: function(e, n, t) {
27334
27346
  }, "Gather", { axis: t }).reshape(a.outputShape);
27335
27347
  } }), Pg = z({ unsortedSegmentSum_: function(e, n, t) {
27336
27348
  var r = A(e, "x", "unsortedSegmentSum"), o = A(n, "segmentIds", "unsortedSegmentSum", "int32");
27337
- return P(Qt(t), function() {
27349
+ return P(Zt(t), function() {
27338
27350
  return "numSegments must be of dtype int";
27339
27351
  }), j.runKernelFunc(function(a, i) {
27340
27352
  var s = a.unsortedSegmentSum(r, o, t);
@@ -27343,7 +27355,7 @@ var Bd = z({ gather_: function(e, n, t) {
27343
27355
  var s = i[0];
27344
27356
  return { $x: function() {
27345
27357
  return function(u, l) {
27346
- for (var c = Fd(l, yt(l)), d = Bd(u, c), f = Mg(l, we(0, "int32")), h = d.rank - f.rank, p = 0; p < h; ++p) f = tr(f, p + 1);
27358
+ for (var c = Fd(l, yt(l)), d = Bd(u, c), f = Mg(l, we(0, "int32")), h = d.rank - f.rank, p = 0; p < h; ++p) f = nr(f, p + 1);
27347
27359
  f = gu(f, Va(d.shape, "bool"));
27348
27360
  var m = yt(d);
27349
27361
  return qo(f, d, m);
@@ -27383,7 +27395,7 @@ function Fg(e, n, t, r, o, a, i) {
27383
27395
  return "Error in conv2dDerInput: depth of input (" + c + ") must match input depth for filter " + t.shape[2] + ".";
27384
27396
  }), P(d === t.shape[3], function() {
27385
27397
  return "Error in conv2dDerInput: depth of output (" + d + ") must match output depth for filter " + t.shape[3] + ".";
27386
- }), i != null && P(Qt(o), function() {
27398
+ }), i != null && P(Zt(o), function() {
27387
27399
  return "Error in conv2dDerInput: pad must be an integer when using, dimRoundingMode " + i + " but got pad " + o + ".";
27388
27400
  });
27389
27401
  var f = Ed(a), h = $o(s, t.shape, r, 1, o, i, !1, f), p = j.runKernelFunc(function(m, v) {
@@ -27392,7 +27404,7 @@ function Fg(e, n, t, r, o, a, i) {
27392
27404
  }, { dy4D: u, filter: t }, function(m, v) {
27393
27405
  var y = v[0], b = v[1];
27394
27406
  return { dy4D: function() {
27395
- return ar(m, y, r, o, a, 1, i);
27407
+ return ir(m, y, r, o, a, 1, i);
27396
27408
  }, filter: function() {
27397
27409
  return Od(m, b, y.shape, r, o, a, i);
27398
27410
  } };
@@ -27435,7 +27447,7 @@ var j5 = z({ conv1d_: function(e, n, t, r, o, a, i) {
27435
27447
  return "Error in conv1d: input must be rank 3, but got rank " + l.rank + ".";
27436
27448
  }), P(u.rank === 3, function() {
27437
27449
  return "Error in conv1d: filter must be rank 3, but got rank " + u.rank + ".";
27438
- }), i != null && P(Qt(r), function() {
27450
+ }), i != null && P(Zt(r), function() {
27439
27451
  return "Error in conv1d: pad must be an integer when using, dimRoundingMode " + i + " but got pad " + r + ".";
27440
27452
  }), P(l.shape[2] === u.shape[1], function() {
27441
27453
  return "Error in conv1d: depth of input (" + l.shape[2] + ") must match input depth for filter " + u.shape[1] + ".";
@@ -27444,16 +27456,16 @@ var j5 = z({ conv1d_: function(e, n, t, r, o, a, i) {
27444
27456
  }), P(o === "NWC", function() {
27445
27457
  return "Error in conv1d: got dataFormat of " + o + " but only NWC is currently supported.";
27446
27458
  });
27447
- var d = u.as4D(1, u.shape[0], u.shape[1], u.shape[2]), f = l.as4D(l.shape[0], 1, l.shape[1], l.shape[2]), h = ar(f, d, [1, t], r, "NHWC", [1, a], i);
27459
+ var d = u.as4D(1, u.shape[0], u.shape[1], u.shape[2]), f = l.as4D(l.shape[0], 1, l.shape[1], l.shape[2]), h = ir(f, d, [1, t], r, "NHWC", [1, a], i);
27448
27460
  return c ? h.as2D(h.shape[2], h.shape[3]) : h.as3D(h.shape[0], h.shape[2], h.shape[3]);
27449
- } }), ar = z({ conv2d_: function(e, n, t, r, o, a, i) {
27461
+ } }), ir = z({ conv2d_: function(e, n, t, r, o, a, i) {
27450
27462
  o === void 0 && (o = "NHWC"), a === void 0 && (a = [1, 1]);
27451
27463
  var s = A(e, "x", "conv2d"), u = A(n, "filter", "conv2d"), l = s, c = !1;
27452
27464
  s.rank === 3 && (c = !0, l = s.as4D(1, s.shape[0], s.shape[1], s.shape[2])), P(l.rank === 4, function() {
27453
27465
  return "Error in conv2d: input must be rank 4, but got rank " + l.rank + ".";
27454
27466
  }), P(u.rank === 4, function() {
27455
27467
  return "Error in conv2d: filter must be rank 4, but got rank " + u.rank + ".";
27456
- }), i != null && P(Qt(r), function() {
27468
+ }), i != null && P(Zt(r), function() {
27457
27469
  return "Error in conv2d: pad must be an integer when using, dimRoundingMode " + i + " but got pad " + r + ".";
27458
27470
  });
27459
27471
  var d = o === "NHWC" ? l.shape[3] : l.shape[1];
@@ -27543,7 +27555,7 @@ var j5 = z({ conv1d_: function(e, n, t, r, o, a, i) {
27543
27555
  return "Error in conv2dDerFilter: depth of input " + l + ") must match input depth in filter (" + t[2] + ".";
27544
27556
  }), P(c === t[3], function() {
27545
27557
  return "Error in conv2dDerFilter: depth of dy (" + c + ") must match output depth for filter (" + t[3] + ").";
27546
- }), i != null && P(Qt(o), function() {
27558
+ }), i != null && P(Zt(o), function() {
27547
27559
  return "Error in conv2dDerFilter: pad must be an integer when using, dimRoundingMode " + i + " but got pad " + o + ".";
27548
27560
  });
27549
27561
  var d = Ed(a), f = $o(s.shape, t, r, 1, o, i, !1, d);
@@ -27561,7 +27573,7 @@ var j5 = z({ conv1d_: function(e, n, t, r, o, a, i) {
27561
27573
  return "Error in depthwiseConv2d: number of input channels (" + l.shape[3] + ") must match the inChannels dimension in filter " + u.shape[2] + ".";
27562
27574
  }), a == null && (a = [1, 1]), P($n(t, a), function() {
27563
27575
  return "Error in depthwiseConv2d: Either strides or dilations must be 1. Got strides " + t + " and dilations '" + a + "'";
27564
- }), i != null && P(Qt(r), function() {
27576
+ }), i != null && P(Zt(r), function() {
27565
27577
  return "Error in depthwiseConv2d: pad must be an integer when using, dimRoundingMode " + i + " but got pad " + r + ".";
27566
27578
  });
27567
27579
  var d = $o(l.shape, u.shape, t, a, r, i, !0), f = [l, u], h = j.runKernelFunc(function(p, m) {
@@ -27612,7 +27624,7 @@ var j5 = z({ conv1d_: function(e, n, t, r, o, a, i) {
27612
27624
  P(l.shape[2] === f * h, function() {
27613
27625
  return "Error in separableConv2d: the third dimension of pointwise filter must be " + f * h + ", but got " + l.shape[2] + ".";
27614
27626
  });
27615
- var p = yu(c, u, r, o, i, a), m = ar(p, l, 1, "valid", i);
27627
+ var p = yu(c, u, r, o, i, a), m = ir(p, l, 1, "valid", i);
27616
27628
  return d ? m.as3D(m.shape[1], m.shape[2], m.shape[3]) : m;
27617
27629
  } }), G5 = z({ conv2dTranspose_: function(e, n, t, r, o, a) {
27618
27630
  return Fg(t, A(e, "x", "conv2dTranspose"), A(n, "filter", "conv2dTranspose"), r, o, "NHWC", a);
@@ -27707,7 +27719,7 @@ function qg(e, n, t, r, o, a) {
27707
27719
  return "Error in maxPool: input must be rank 4 but got rank " + s.rank + ".";
27708
27720
  }), P($n(t, r), function() {
27709
27721
  return "Error in maxPool: Either strides or dilations must be 1. Got strides " + t + " and dilations '" + r + "'";
27710
- }), a != null && P(Qt(o), function() {
27722
+ }), a != null && P(Zt(o), function() {
27711
27723
  return "Error in maxPool: pad must be an integer when using, dimRoundingMode " + a + " but got pad " + o + ".";
27712
27724
  });
27713
27725
  var l = ci(s.shape, n, t, r, o, a);
@@ -27746,7 +27758,7 @@ function Vg(e, n, t, r, o, a) {
27746
27758
  var s = i, u = !1;
27747
27759
  i.rank === 3 && (u = !0, s = i.as4D(1, i.shape[0], i.shape[1], i.shape[2])), P(s.rank === 4, function() {
27748
27760
  return "Error in avgPool: x must be rank 4 but got rank " + s.rank + ".";
27749
- }), a != null && P(Qt(o), function() {
27761
+ }), a != null && P(Zt(o), function() {
27750
27762
  return "Error in avgPool: pad must be an integer when using, dimRoundingMode " + a + " but got pad " + o + ".";
27751
27763
  });
27752
27764
  var l = ci(s.shape, n, t, r, o, a);
@@ -27832,7 +27844,7 @@ var cn = z({ maxPool_: function(e, n, t, r, o) {
27832
27844
  return "Error in maxPool3d: Only NDHWC is currently supported, but got dataFormat of " + a;
27833
27845
  }), P($n(t, i), function() {
27834
27846
  return "Error in maxPool3d: Either strides or dilations must be 1. Got strides " + t + " and dilations '" + i + "'";
27835
- }), o != null && P(Qt(r), function() {
27847
+ }), o != null && P(Zt(r), function() {
27836
27848
  return "Error in maxPool3d: pad must be an integer when using, dimRoundingMode " + o + " but got pad " + r + ".";
27837
27849
  });
27838
27850
  var c = Vs(u.shape, n, t, i, r, o, a), d = j.runKernelFunc(function(f, h) {
@@ -27851,7 +27863,7 @@ var cn = z({ maxPool_: function(e, n, t, r, o) {
27851
27863
  return "Error in maxPool3dBackprop: output must be rank 5 but got rank " + $.rank + ".";
27852
27864
  }), x == null && (x = [1, 1, 1]), P($n(g, x), function() {
27853
27865
  return "Error in maxPool3dBackprop: Either strides or dilations must be 1. Got strides " + g + " and dilations '" + x + "'";
27854
- }), E != null && P(Qt(C), function() {
27866
+ }), E != null && P(Zt(C), function() {
27855
27867
  return "Error in maxPool3dBackprop: pad must be an integer when using, dimRoundingMode " + E + " but got pad " + C + ".";
27856
27868
  });
27857
27869
  var B = Vs(I.shape, w, g, x, C, E), V = j.runKernelFunc(function(L) {
@@ -27871,7 +27883,7 @@ var cn = z({ maxPool_: function(e, n, t, r, o) {
27871
27883
  return "Error in avgPool3d: Only NDHWC is currently supported, but got dataFormat of " + a;
27872
27884
  }), P($n(t, i), function() {
27873
27885
  return "Error in avgPool3d: Either strides or dilations must be 1. Got strides " + t + " and dilations '" + i + "'";
27874
- }), o != null && P(Qt(r), function() {
27886
+ }), o != null && P(Zt(r), function() {
27875
27887
  return "Error in avgPool3d: pad must be an integer when using, dimRoundingMode " + o + " but got pad " + r + ".";
27876
27888
  });
27877
27889
  var c = Vs(u.shape, n, t, i, r, o, a), d = j.runKernelFunc(function(f) {
@@ -27886,7 +27898,7 @@ var cn = z({ maxPool_: function(e, n, t, r, o) {
27886
27898
  return "Error in avgPool3dBackprop: input must be rank 5 but got rank " + E.rank + ".";
27887
27899
  }), y == null && (y = [1, 1, 1]), P($n(v, y), function() {
27888
27900
  return "Error in avgPool3dBackprop: Either strides or dilations must be 1. Got strides " + v + " and dilations '" + y + "'";
27889
- }), w != null && P(Qt(b), function() {
27901
+ }), w != null && P(Zt(b), function() {
27890
27902
  return "Error in maxPool3dBackprop: pad must be an integer when using, dimRoundingMode " + w + " but got pad " + b + ".";
27891
27903
  });
27892
27904
  var _ = Vs(E.shape, m, v, y, b, w), S = j.runKernelFunc(function(M) {
@@ -28186,7 +28198,7 @@ var sI = z({ all_: function(e, n, t) {
28186
28198
  P(a.rank === 4 || a.rank === 3, function() {
28187
28199
  return `Error in localResponseNormalization: x must be rank 3 or 4 but got
28188
28200
  rank ` + a.rank + ".";
28189
- }), P(Qt(n), function() {
28201
+ }), P(Zt(n), function() {
28190
28202
  return "Error in localResponseNormalization: depthRadius must be an integer but got depthRadius " + n + ".";
28191
28203
  });
28192
28204
  var i = a, s = !1;
@@ -28323,16 +28335,16 @@ var sI = z({ all_: function(e, n, t) {
28323
28335
  });
28324
28336
  s[e.shape.length - 1] = n - r, t = e.concat(Vt(s), e.shape.length - 1), r = n;
28325
28337
  } else t = e;
28326
- var u = t.zerosLike(), l = yn(t, u).as2D(o, r), c = Ld(l), d = Math.floor(r / 2) + 1, f = rr(c), h = Cr(c), p = f.split([d, r - d], f.shape.length - 1), m = h.split([d, r - d], h.shape.length - 1), v = t.shape.slice();
28338
+ var u = t.zerosLike(), l = yn(t, u).as2D(o, r), c = Ld(l), d = Math.floor(r / 2) + 1, f = or(c), h = Cr(c), p = f.split([d, r - d], f.shape.length - 1), m = h.split([d, r - d], h.shape.length - 1), v = t.shape.slice();
28327
28339
  return v[t.shape.length - 1] = d, yn(p[0], m[0]).reshape(v);
28328
28340
  } }), Kg = z({ irfft_: function(e) {
28329
28341
  var n = e.shape[e.shape.length - 1], t = e.size / n;
28330
28342
  if (n <= 2) {
28331
28343
  var r = e.as2D(t, n), o = js(r);
28332
- return rr(o);
28344
+ return or(o);
28333
28345
  }
28334
- var a = [t, 2 * (n - 1)], i = rr(e).as2D(t, n), s = Cr(e).as2D(t, n), u = i.slice([0, 1], [t, n - 2]).reverse(1), l = s.slice([0, 1], [t, n - 2]).reverse(1).mul(we(-1)), c = i.concat(u, 1), d = s.concat(l, 1);
28335
- return r = yn(c, d).as2D(a[0], a[1]), o = js(r), rr(o);
28346
+ var a = [t, 2 * (n - 1)], i = or(e).as2D(t, n), s = Cr(e).as2D(t, n), u = i.slice([0, 1], [t, n - 2]).reverse(1), l = s.slice([0, 1], [t, n - 2]).reverse(1).mul(we(-1)), c = i.concat(u, 1), d = s.concat(l, 1);
28347
+ return r = yn(c, d).as2D(a[0], a[1]), o = js(r), or(o);
28336
28348
  } }), SI = Object.freeze({ fft: Ld, ifft: js, rfft: qd, irfft: Kg }), EI = z({ sparseToDense_: function(e, n, t, r) {
28337
28349
  r === void 0 && (r = 0);
28338
28350
  var o = A(e, "sparseIndices", "sparseToDense", "int32"), a = A(n, "sparseValues", "sparseToDense"), i = A(r, "defaultValue", "sparseToDense", a.dtype);
@@ -28380,7 +28392,7 @@ function Xg(e, n, t) {
28380
28392
  var i = 2 * Math.PI * a / (e + r - 1);
28381
28393
  o[a] = n - t * Math.cos(i);
28382
28394
  }
28383
- return en(o, "float32");
28395
+ return tn(o, "float32");
28384
28396
  }
28385
28397
  var Vd = z({ hannWindow_: function(e) {
28386
28398
  return Xg(e, 0.5, 0.5);
@@ -28559,7 +28571,7 @@ var zI = z({ bandPart_: function(e, n, t) {
28559
28571
  if (!(t <= s)) throw new Error("bandPart(): numUpper (" + t + ") must not be greater than the number of columns (" + s + ").");
28560
28572
  n < 0 && (n = i), t < 0 && (t = s);
28561
28573
  var u = Bs(0, i, 1, "int32").reshape([-1, 1]), l = Bs(0, s, 1, "int32"), c = sn(u, l), d = gu(c.lessEqual(we(+n, "int32")), c.greaterEqual(we(-t, "int32"))), f = Vt([i, s], r.dtype);
28562
- return Yn(on(r.reshape([-1, i, s])).map(function(h) {
28574
+ return Qn(on(r.reshape([-1, i, s])).map(function(h) {
28563
28575
  return qo(d, h, f);
28564
28576
  })).reshape(o);
28565
28577
  } }), $I = z({ gramSchmidt_: function(e) {
@@ -28590,7 +28602,7 @@ var zI = z({ bandPart_: function(e, n, t) {
28590
28602
  }));
28591
28603
  };
28592
28604
  for (o = 0; o < e.length; ++o) s(o);
28593
- return n ? Yn(a, 0) : a;
28605
+ return n ? Qn(a, 0) : a;
28594
28606
  } }), WI = z({ qr_: function(e, n) {
28595
28607
  if (n === void 0 && (n = !1), e.rank < 2) throw new Error("qr() requires input tensor to have a rank >= 2, but got rank " + e.rank);
28596
28608
  if (e.rank === 2) return gp(e, n);
@@ -28600,7 +28612,7 @@ var zI = z({ bandPart_: function(e, n, t) {
28600
28612
  return r.forEach(function(i) {
28601
28613
  var s = gp(i, n), u = s[0], l = s[1];
28602
28614
  o.push(u), a.push(l);
28603
- }), [Yn(o, 0).reshape(e.shape), Yn(a, 0).reshape(e.shape)];
28615
+ }), [Qn(o, 0).reshape(e.shape), Qn(a, 0).reshape(e.shape)];
28604
28616
  } }), HI = Object.freeze({ bandPart: zI, gramSchmidt: $I, qr: WI });
28605
28617
  function xu(e, n, t, r, o, a) {
28606
28618
  r == null && (r = 0.5), o == null && (o = Number.NEGATIVE_INFINITY), a == null && (a = 0);
@@ -28781,7 +28793,7 @@ var jI = z({ resizeBilinear_: function(e, n, t) {
28781
28793
  } }), JI = z({ fusedConv2d_: function(e) {
28782
28794
  var n = e.x, t = e.filter, r = e.strides, o = e.pad, a = e.dataFormat, i = a === void 0 ? "NHWC" : a, s = e.dilations, u = s === void 0 ? [1, 1] : s, l = e.dimRoundingMode, c = e.bias, d = e.activation, f = d === void 0 ? "linear" : d, h = e.preluActivationWeights;
28783
28795
  if (f = f || "linear", Wd(j.state.gradientDepth, f) === !1) {
28784
- var p = ar(n, t, r, o, i, u, l);
28796
+ var p = ir(n, t, r, o, i, u, l);
28785
28797
  return c != null && (p = ft(p, c)), Ud(p, f, h);
28786
28798
  }
28787
28799
  var m = A(n, "x", "conv2d"), v = A(t, "filter", "conv2d"), y = m, b = !1;
@@ -28789,7 +28801,7 @@ var jI = z({ resizeBilinear_: function(e, n, t) {
28789
28801
  return "Error in fused conv2d: input must be rank 4, but got rank " + y.rank + ".";
28790
28802
  }), P(v.rank === 4, function() {
28791
28803
  return "Error in fused conv2d: filter must be rank 4, but got rank " + v.rank + ".";
28792
- }), l != null && P(Qt(o), function() {
28804
+ }), l != null && P(Zt(o), function() {
28793
28805
  return "Error in fused conv2d: pad must be an integer when using, dimRoundingMode " + l + " but got pad " + o + ".";
28794
28806
  }), P(y.shape[3] === v.shape[2], function() {
28795
28807
  return "Error in conv2d: depth of input (" + y.shape[3] + ") must match input depth for filter " + v.shape[2] + ".";
@@ -28835,7 +28847,7 @@ var jI = z({ resizeBilinear_: function(e, n, t) {
28835
28847
  return "Error in fused depthwiseConv2d: number of input channels (" + y.shape[3] + ") must match the inChannels dimension in filter " + v.shape[2] + ".";
28836
28848
  }), u == null && (u = [1, 1]), P($n(r, u), function() {
28837
28849
  return "Error in fused depthwiseConv2d: Either strides or dilations must be 1. Got strides " + r + " and dilations '" + u + "'";
28838
- }), l != null && P(Qt(o), function() {
28850
+ }), l != null && P(Zt(o), function() {
28839
28851
  return "Error in fused depthwiseConv2d: pad must be an integer when using dimRoundingMode " + l + " but got pad " + o + ".";
28840
28852
  });
28841
28853
  var w, g, x = $o(y.shape, v.shape, r, u, o, l, !0);
@@ -28859,7 +28871,7 @@ var jI = z({ resizeBilinear_: function(e, n, t) {
28859
28871
  } }, B);
28860
28872
  }, "FusedDepthwiseConv2D", { convInfo: x, activation: f }, E, [!0]);
28861
28873
  return b ? R.as3D(R.shape[1], R.shape[2], R.shape[3]) : R;
28862
- } }), tT = Object.freeze({ matMul: ZI, conv2d: JI, depthwiseConv2d: eT }), nT = Object.freeze({ image: $d, linalg: HI, losses: VI, spectral: SI, fused: tT, signal: AI, square: OR, squaredDifference: wg, conv1d: j5, conv2d: ar, conv3d: U5, depthwiseConv2d: yu, separableConv2d: Nd, conv2dTranspose: G5, conv3dTranspose: K5, op: z, batchNormalization2d: f5, batchNormalization3d: h5, batchNormalization4d: p5, batchNormalization: v5, batchNorm: Eg, batchNorm2d: m5, batchNorm3d: g5, batchNorm4d: y5, booleanMaskAsync: H5, complex: yn, real: rr, imag: Cr, concat: rn, concat1d: t4, concat2d: n4, concat3d: r4, concat4d: o4, split: _d, matMul: bu, dot: X5, outerProduct: Y5, reverse: Ti, reverse1d: Q5, reverse2d: Z5, reverse3d: J5, reverse4d: eI, maxPool: cn, avgPool: Ai, pool: tI, maxPool3d: nI, avgPool3d: rI, slice: Rr, slice1d: oI, slice2d: aI, slice3d: zg, slice4d: iI, abs: NR, acos: LR, acosh: qR, asin: VR, asinh: zR, atan: $R, atanh: WR, ceil: HR, clipByValue: Pd, cos: jR, cosh: UR, erf: GR, exp: Dc, expm1: KR, floor: XR, log: YR, log1p: QR, logSigmoid: ZR, neg: Ws, reciprocal: JR, round: e5, rsqrt: xg, sigmoid: Cg, sign: t5, isNaN: n5, isInf: r5, isFinite: o5, sin: a5, sinh: i5, softplus: s5, sqrt: u5, step: l5, tan: c5, tanh: d5, all: sI, any: uI, argMax: lI, argMin: cI, logSumExp: dI, max: wu, mean: fI, min: hI, moments: pI, sum: Wg, prod: vI, equal: Dg, equalStrict: F5, greater: B5, greaterEqual: Mg, greaterEqualStrict: O5, greaterStrict: N5, less: L5, lessEqual: q5, lessEqualStrict: V5, lessStrict: z5, notEqual: $5, notEqualStrict: W5, add: ft, addN: x5, addStrict: C5, atan2: _5, div: ur, divNoNan: k5, divStrict: S5, floorDiv: Tg, maximum: Fd, maximumStrict: E5, minimum: Ag, minimumStrict: R5, mod: I5, modStrict: T5, mul: Tn, mulStrict: A5, pow: Hs, powStrict: D5, squaredDifferenceStrict: M5, sub: sn, subStrict: P5, elu: Hg, leakyRelu: mI, prelu: jg, relu: Ht, relu6: Ug, selu: gI, logicalAnd: gu, logicalNot: b5, logicalOr: Rg, logicalXor: w5, where: qo, whereAsync: Ig, buffer: ot, print: h4, batchToSpaceND: Wm, broadcastTo: p4, cast: v4, clone: m4, cumsum: g4, depthToSpace: y4, expandDims: tr, eye: Hm, multinomial: b4, oneHot: Rc, pad: zo, pad1d: w4, pad2d: x4, pad3d: C4, pad4d: _4, rand: k4, randomNormal: S4, randomGamma: E4, randomUniform: jm, reshape: lr, spaceToBatchND: Um, squeeze: Gm, stack: Yn, tile: ha, truncatedNormal: R4, unstack: on, setdiff1dAsync: I4, fill: Er, linspace: e4, ones: Va, range: Bs, scalar: we, tensor: wn, tensor1d: en, tensor2d: so, tensor3d: Cd, tensor4d: Pn, tensor5d: QS, tensor6d: ZS, variable: JS, zeros: Vt, onesLike: $m, zerosLike: yt, transpose: fo, softmax: Ur, logSoftmax: B4, localResponseNormalization: yI, norm: Gg, gather: Bd, unsortedSegmentSum: Pg, basicLSTMCell: bI, multiRNNCell: wI, movingAverage: xI, stridedSlice: CI, topk: _I, scatterND: kI, fft: Ld, ifft: js, rfft: qd, irfft: Kg, sparseToDense: EI, gatherND: RI, diag: II, dropout: TI, hannWindow: Vd, hammingWindow: Yg, frame: zd, stft: Qg, inTopKAsync: DI });
28874
+ } }), tT = Object.freeze({ matMul: ZI, conv2d: JI, depthwiseConv2d: eT }), nT = Object.freeze({ image: $d, linalg: HI, losses: VI, spectral: SI, fused: tT, signal: AI, square: OR, squaredDifference: wg, conv1d: j5, conv2d: ir, conv3d: U5, depthwiseConv2d: yu, separableConv2d: Nd, conv2dTranspose: G5, conv3dTranspose: K5, op: z, batchNormalization2d: f5, batchNormalization3d: h5, batchNormalization4d: p5, batchNormalization: v5, batchNorm: Eg, batchNorm2d: m5, batchNorm3d: g5, batchNorm4d: y5, booleanMaskAsync: H5, complex: yn, real: or, imag: Cr, concat: rn, concat1d: t4, concat2d: n4, concat3d: r4, concat4d: o4, split: _d, matMul: bu, dot: X5, outerProduct: Y5, reverse: Ti, reverse1d: Q5, reverse2d: Z5, reverse3d: J5, reverse4d: eI, maxPool: cn, avgPool: Ai, pool: tI, maxPool3d: nI, avgPool3d: rI, slice: Rr, slice1d: oI, slice2d: aI, slice3d: zg, slice4d: iI, abs: NR, acos: LR, acosh: qR, asin: VR, asinh: zR, atan: $R, atanh: WR, ceil: HR, clipByValue: Pd, cos: jR, cosh: UR, erf: GR, exp: Dc, expm1: KR, floor: XR, log: YR, log1p: QR, logSigmoid: ZR, neg: Ws, reciprocal: JR, round: e5, rsqrt: xg, sigmoid: Cg, sign: t5, isNaN: n5, isInf: r5, isFinite: o5, sin: a5, sinh: i5, softplus: s5, sqrt: u5, step: l5, tan: c5, tanh: d5, all: sI, any: uI, argMax: lI, argMin: cI, logSumExp: dI, max: wu, mean: fI, min: hI, moments: pI, sum: Wg, prod: vI, equal: Dg, equalStrict: F5, greater: B5, greaterEqual: Mg, greaterEqualStrict: O5, greaterStrict: N5, less: L5, lessEqual: q5, lessEqualStrict: V5, lessStrict: z5, notEqual: $5, notEqualStrict: W5, add: ft, addN: x5, addStrict: C5, atan2: _5, div: lr, divNoNan: k5, divStrict: S5, floorDiv: Tg, maximum: Fd, maximumStrict: E5, minimum: Ag, minimumStrict: R5, mod: I5, modStrict: T5, mul: Tn, mulStrict: A5, pow: Hs, powStrict: D5, squaredDifferenceStrict: M5, sub: sn, subStrict: P5, elu: Hg, leakyRelu: mI, prelu: jg, relu: Ht, relu6: Ug, selu: gI, logicalAnd: gu, logicalNot: b5, logicalOr: Rg, logicalXor: w5, where: qo, whereAsync: Ig, buffer: ot, print: h4, batchToSpaceND: Wm, broadcastTo: p4, cast: v4, clone: m4, cumsum: g4, depthToSpace: y4, expandDims: nr, eye: Hm, multinomial: b4, oneHot: Rc, pad: zo, pad1d: w4, pad2d: x4, pad3d: C4, pad4d: _4, rand: k4, randomNormal: S4, randomGamma: E4, randomUniform: jm, reshape: cr, spaceToBatchND: Um, squeeze: Gm, stack: Qn, tile: ha, truncatedNormal: R4, unstack: on, setdiff1dAsync: I4, fill: Er, linspace: e4, ones: Va, range: Bs, scalar: we, tensor: wn, tensor1d: tn, tensor2d: so, tensor3d: Cd, tensor4d: Pn, tensor5d: QS, tensor6d: ZS, variable: JS, zeros: Vt, onesLike: $m, zerosLike: yt, transpose: fo, softmax: Ur, logSoftmax: B4, localResponseNormalization: yI, norm: Gg, gather: Bd, unsortedSegmentSum: Pg, basicLSTMCell: bI, multiRNNCell: wI, movingAverage: xI, stridedSlice: CI, topk: _I, scatterND: kI, fft: Ld, ifft: js, rfft: qd, irfft: Kg, sparseToDense: EI, gatherND: RI, diag: II, dropout: TI, hannWindow: Vd, hammingWindow: Yg, frame: zd, stft: Qg, inTopKAsync: DI });
28863
28875
  function ce(e, n) {
28864
28876
  Array.isArray(e) || (e = [e]), e.forEach(function(t) {
28865
28877
  t != null && P(t.dtype !== "complex64", function() {
@@ -28980,7 +28992,7 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
28980
28992
  var o = this;
28981
28993
  if (t[0].dtype === "complex64") {
28982
28994
  var a = t.map(function(h) {
28983
- return rr(h);
28995
+ return or(h);
28984
28996
  }), i = t.map(function(h) {
28985
28997
  return Cr(h);
28986
28998
  });
@@ -29081,7 +29093,7 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
29081
29093
  var u = we(s, "int32"), l = Dg(u, r).asType("float32").mul(t).sum(0);
29082
29094
  a.push(l);
29083
29095
  }
29084
- return Yn(a);
29096
+ return Qn(a);
29085
29097
  }, n.prototype.argMin = function(t, r) {
29086
29098
  ce(t, "argMin");
29087
29099
  var o = [r];
@@ -29819,7 +29831,7 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
29819
29831
  }, n.prototype.ifft = function(t) {
29820
29832
  return this.fftBatch(t, !0);
29821
29833
  }, n.prototype.fftBatch = function(t, r) {
29822
- for (var o = t.shape[0], a = t.shape[1], i = ot(t.shape, "float32"), s = ot(t.shape, "float32"), u = rr(t).as2D(o, a), l = Cr(t).as2D(o, a), c = 0; c < o; c++) for (var d = u.slice([c, 0], [1, a]), f = l.slice([c, 0], [1, a]), h = yn(d, f), p = this.readSync(this.fftImpl(h, r).dataId), m = 0; m < a; m++) {
29834
+ for (var o = t.shape[0], a = t.shape[1], i = ot(t.shape, "float32"), s = ot(t.shape, "float32"), u = or(t).as2D(o, a), l = Cr(t).as2D(o, a), c = 0; c < o; c++) for (var d = u.slice([c, 0], [1, a]), f = l.slice([c, 0], [1, a]), h = yn(d, f), p = this.readSync(this.fftImpl(h, r).dataId), m = 0; m < a; m++) {
29823
29835
  var v = Yh(p, m);
29824
29836
  i.values[c * a + m] = v.real, s.values[c * a + m] = v.imag;
29825
29837
  }
@@ -29828,7 +29840,7 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
29828
29840
  var o = t.as1D(), a = o.size;
29829
29841
  if (this.isExponentOf2(a)) {
29830
29842
  var i = this.fftRadix2(o, a, r).as2D(t.shape[0], t.shape[1]);
29831
- return r && (i = yn(rr(i).div(we(a)), Cr(i).div(we(a)))), i;
29843
+ return r && (i = yn(or(i).div(we(a)), Cr(i).div(we(a)))), i;
29832
29844
  }
29833
29845
  var s = this.readSync(t.dataId), u = function(l) {
29834
29846
  for (var c = new Float32Array(l.length / 2), d = new Float32Array(l.length / 2), f = 0; f < l.length; f += 2) c[f / 2] = l[f], d[f / 2] = l[f + 1];
@@ -29853,7 +29865,7 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
29853
29865
  w[x] = Math.cos(C), g[x] = Math.sin(C);
29854
29866
  }
29855
29867
  return { real: w, imag: g };
29856
- }(r, o), f = yn(d.real, d.imag).mul(c), h = u.add(f), p = u.sub(f), m = rr(h).concat(rr(p)), v = Cr(h).concat(Cr(p));
29868
+ }(r, o), f = yn(d.real, d.imag).mul(c), h = u.add(f), p = u.sub(f), m = or(h).concat(or(p)), v = Cr(h).concat(Cr(p));
29857
29869
  return yn(m, v).as1D();
29858
29870
  }, n.prototype.fourierTransformByMatmul = function(t, r, o) {
29859
29871
  for (var a = new Float32Array(2 * r), i = 0; i < r; i++) {
@@ -31367,7 +31379,7 @@ var IT = function(e) {
31367
31379
  return a.name;
31368
31380
  }) : Object.keys(t);
31369
31381
  Re(function() {
31370
- var a = sn(1, r.accBeta1), i = ur(-r.learningRate, r.iteration.mul(r.decay).add(1));
31382
+ var a = sn(1, r.accBeta1), i = lr(-r.learningRate, r.iteration.mul(r.decay).add(1));
31371
31383
  o.forEach(function(s, u) {
31372
31384
  var l = j.registeredVariables[s];
31373
31385
  r.accumulatedFirstMoment[u] == null && (r.accumulatedFirstMoment[u] = { originalName: s + "/m", variable: yt(l).variable(!1) }), r.accumulatedWeightedInfNorm[u] == null && (r.accumulatedWeightedInfNorm[u] = { originalName: s + "/v", variable: yt(l).variable(!1) });
@@ -32063,7 +32075,7 @@ var kt = (
32063
32075
  return new e(this.score, this.classScore, this.className, this.relativeBox, { width: n, height: t });
32064
32076
  }, e;
32065
32077
  }()
32066
- ), Zn = (
32078
+ ), Jn = (
32067
32079
  /** @class */
32068
32080
  function(e) {
32069
32081
  nt(n, e);
@@ -32208,7 +32220,7 @@ var Su = (
32208
32220
  return this.shiftBy(n.x, n.y);
32209
32221
  }, e.prototype.align = function(n, t) {
32210
32222
  if (t === void 0 && (t = {}), n) {
32211
- var r = n instanceof Zn ? n.box.floor() : new Ir(n);
32223
+ var r = n instanceof Jn ? n.box.floor() : new Ir(n);
32212
32224
  return this.shiftBy(r.x, r.y).align(null, t);
32213
32225
  }
32214
32226
  var o = Object.assign({}, { useDlibAlignment: !1, minBoxPadding: 0.2 }, t), a = o.useDlibAlignment, i = o.minBoxPadding;
@@ -32374,7 +32386,7 @@ var Su = (
32374
32386
  }), n;
32375
32387
  })(Fp);
32376
32388
  function Gs(e) {
32377
- return e.detection instanceof Zn;
32389
+ return e.detection instanceof Jn;
32378
32390
  }
32379
32391
  function pi(e, n) {
32380
32392
  var t = { detection: n };
@@ -32607,7 +32619,7 @@ var p0 = (
32607
32619
  function UT(e, n) {
32608
32620
  var t = Array.isArray(n) ? n : [n];
32609
32621
  t.forEach(function(r) {
32610
- var o = r instanceof Zn ? r.score : Gs(r) ? r.detection.score : void 0, a = r instanceof Zn ? r.box : Gs(r) ? r.detection.box : new Ir(r), i = o ? "" + i0(o) : void 0;
32622
+ var o = r instanceof Jn ? r.score : Gs(r) ? r.detection.score : void 0, a = r instanceof Jn ? r.box : Gs(r) ? r.detection.box : new Ir(r), i = o ? "" + i0(o) : void 0;
32611
32623
  new jT(a, { label: i }).draw(e);
32612
32624
  });
32613
32625
  }
@@ -32763,7 +32775,7 @@ var Ks = (
32763
32775
  if (s instanceof An.getEnv().Canvas)
32764
32776
  return Kd.fromPixels(XT(s, n, t));
32765
32777
  throw new Error("toBatchTensor - at batchIdx " + i + ", expected input to be instanceof tf.Tensor or instanceof HTMLCanvasElement, instead have " + s);
32766
- }), a = Yn(o.map(function(i) {
32778
+ }), a = Qn(o.map(function(i) {
32767
32779
  return i.toFloat();
32768
32780
  })).as4D(r.batchSize, n, n, 3);
32769
32781
  return a;
@@ -32819,7 +32831,7 @@ function Iu(e, n) {
32819
32831
  r = i, l.label = 5;
32820
32832
  case 5:
32821
32833
  return s = Tr(r), u = n.map(function(c) {
32822
- return c instanceof Zn ? c.forSize(r.width, r.height).box.floor() : c;
32834
+ return c instanceof Jn ? c.forSize(r.width, r.height).box.floor() : c;
32823
32835
  }).map(function(c) {
32824
32836
  return c.clipAtImageBorders(r.width, r.height);
32825
32837
  }), [2, u.map(function(c) {
@@ -32839,7 +32851,7 @@ function Jd(e, n) {
32839
32851
  throw new Error("extractFaceTensors - batchSize > 1 not supported");
32840
32852
  return [2, Re(function() {
32841
32853
  var r = e.shape.slice(lo(e) ? 1 : 0), o = r[0], a = r[1], i = r[2], s = n.map(function(l) {
32842
- return l instanceof Zn ? l.forSize(a, o).box : l;
32854
+ return l instanceof Jn ? l.forSize(a, o).box : l;
32843
32855
  }).map(function(l) {
32844
32856
  return l.clipAtImageBorders(a, o);
32845
32857
  }), u = s.map(function(l) {
@@ -33077,19 +33089,19 @@ function Xn(e, n, t) {
33077
33089
  }
33078
33090
  function jl(e, n, t) {
33079
33091
  return t === void 0 && (t = !1), Re(function() {
33080
- var r = Ht(t ? ft(ar(e, n.conv0.filters, [2, 2], "same"), n.conv0.bias) : Xn(e, n.conv0, [2, 2])), o = Xn(r, n.conv1, [1, 1]), a = Ht(ft(r, o)), i = Xn(a, n.conv2, [1, 1]);
33092
+ var r = Ht(t ? ft(ir(e, n.conv0.filters, [2, 2], "same"), n.conv0.bias) : Xn(e, n.conv0, [2, 2])), o = Xn(r, n.conv1, [1, 1]), a = Ht(ft(r, o)), i = Xn(a, n.conv2, [1, 1]);
33081
33093
  return Ht(ft(r, ft(o, i)));
33082
33094
  });
33083
33095
  }
33084
33096
  function Zi(e, n, t, r) {
33085
33097
  return t === void 0 && (t = !1), r === void 0 && (r = !0), Re(function() {
33086
- var o = Ht(t ? ft(ar(e, n.conv0.filters, r ? [2, 2] : [1, 1], "same"), n.conv0.bias) : Xn(e, n.conv0, r ? [2, 2] : [1, 1])), a = Xn(o, n.conv1, [1, 1]), i = Ht(ft(o, a)), s = Xn(i, n.conv2, [1, 1]), u = Ht(ft(o, ft(a, s))), l = Xn(u, n.conv3, [1, 1]);
33098
+ var o = Ht(t ? ft(ir(e, n.conv0.filters, r ? [2, 2] : [1, 1], "same"), n.conv0.bias) : Xn(e, n.conv0, r ? [2, 2] : [1, 1])), a = Xn(o, n.conv1, [1, 1]), i = Ht(ft(o, a)), s = Xn(i, n.conv2, [1, 1]), u = Ht(ft(o, ft(a, s))), l = Xn(u, n.conv3, [1, 1]);
33087
33099
  return Ht(ft(o, ft(a, ft(s, l))));
33088
33100
  });
33089
33101
  }
33090
- function cr(e, n, t, r) {
33102
+ function dr(e, n, t, r) {
33091
33103
  return t === void 0 && (t = "same"), r === void 0 && (r = !1), Re(function() {
33092
- var o = ft(ar(e, n.filters, [1, 1], t), n.bias);
33104
+ var o = ft(ir(e, n.filters, [1, 1], t), n.bias);
33093
33105
  return r ? Ht(o) : o;
33094
33106
  });
33095
33107
  }
@@ -33102,13 +33114,13 @@ function Xr(e, n) {
33102
33114
  }
33103
33115
  function Tu(e, n) {
33104
33116
  return function(t, r, o, a) {
33105
- var i = Pn(e(t * r * o * o), [o, o, t, r]), s = en(e(r));
33117
+ var i = Pn(e(t * r * o * o), [o, o, t, r]), s = tn(e(r));
33106
33118
  return n.push({ paramPath: a + "/filters" }, { paramPath: a + "/bias" }), { filters: i, bias: s };
33107
33119
  };
33108
33120
  }
33109
33121
  function ef(e, n) {
33110
33122
  return function(t, r, o) {
33111
- var a = so(e(t * r), [t, r]), i = en(e(r));
33123
+ var a = so(e(t * r), [t, r]), i = tn(e(r));
33112
33124
  return n.push({ paramPath: o + "/weights" }, { paramPath: o + "/bias" }), {
33113
33125
  weights: a,
33114
33126
  bias: i
@@ -33126,7 +33138,7 @@ var g0 = (
33126
33138
  );
33127
33139
  function tf(e, n) {
33128
33140
  return function(t, r, o) {
33129
- var a = Pn(e(9 * t), [3, 3, t, 1]), i = Pn(e(t * r), [1, 1, t, r]), s = en(e(r));
33141
+ var a = Pn(e(9 * t), [3, 3, t, 1]), i = Pn(e(t * r), [1, 1, t, r]), s = tn(e(r));
33130
33142
  return n.push({ paramPath: o + "/depthwise_filter" }, { paramPath: o + "/pointwise_filter" }, { paramPath: o + "/bias" }), new g0(a, i, s);
33131
33143
  };
33132
33144
  }
@@ -33409,10 +33421,10 @@ function k0(e, n) {
33409
33421
  return Object.assign({}, e, t);
33410
33422
  }
33411
33423
  function rf(e) {
33412
- return Gs(e) && e.landmarks instanceof Ia && e.unshiftedLandmarks instanceof Ia && e.alignedRect instanceof Zn;
33424
+ return Gs(e) && e.landmarks instanceof Ia && e.unshiftedLandmarks instanceof Ia && e.alignedRect instanceof Jn;
33413
33425
  }
33414
33426
  function Au(e, n) {
33415
- var t = e.detection.box, r = n.shiftBy(t.x, t.y), o = r.align(), a = e.detection.imageDims, i = new Zn(e.detection.score, o.rescale(a.reverse()), a), s = {
33427
+ var t = e.detection.box, r = n.shiftBy(t.x, t.y), o = r.align(), a = e.detection.imageDims, i = new Jn(e.detection.score, o.rescale(a.reverse()), a), s = {
33416
33428
  landmarks: r,
33417
33429
  unshiftedLandmarks: n,
33418
33430
  alignedRect: i
@@ -33526,7 +33538,7 @@ function f6(e, n) {
33526
33538
  return Xr(e, t), { params: { entry_flow: d, middle_flow: f, exit_flow: m }, paramMappings: t };
33527
33539
  }
33528
33540
  function S0(e, n, t) {
33529
- return ft(ar(e, n.filters, t, "same"), n.bias);
33541
+ return ft(ir(e, n.filters, t, "same"), n.bias);
33530
33542
  }
33531
33543
  function Ul(e, n, t) {
33532
33544
  t === void 0 && (t = !0);
@@ -33714,7 +33726,7 @@ var g6 = (
33714
33726
  }), i = a.length;
33715
33727
  return Re(function() {
33716
33728
  var s = function(f, h) {
33717
- return Yn([
33729
+ return Qn([
33718
33730
  Er([68], f),
33719
33731
  Er([68], h)
33720
33732
  ], 1).as2D(1, 136).as1D();
@@ -33729,9 +33741,9 @@ var g6 = (
33729
33741
  return u(f, function(h, p) {
33730
33742
  return p < h;
33731
33743
  });
33732
- }, d = t.mul(Er([i, 136], r)).sub(Yn(Array.from(Array(i), function(f, h) {
33744
+ }, d = t.mul(Er([i, 136], r)).sub(Qn(Array.from(Array(i), function(f, h) {
33733
33745
  return s(l(h), c(h));
33734
- }))).div(Yn(Array.from(Array(i), function(f, h) {
33746
+ }))).div(Qn(Array.from(Array(i), function(f, h) {
33735
33747
  return s(a[h].width, a[h].height);
33736
33748
  })));
33737
33749
  return d;
@@ -33892,7 +33904,7 @@ function C6(e, n) {
33892
33904
  }
33893
33905
  function of(e, n, t, r, o) {
33894
33906
  o === void 0 && (o = "same");
33895
- var a = n.conv, i = a.filters, s = a.bias, u = ar(e, i, t, o);
33907
+ var a = n.conv, i = a.filters, s = a.bias, u = ir(e, i, t, o);
33896
33908
  return u = ft(u, s), u = C6(u, n.scale), r ? Ht(u) : u;
33897
33909
  }
33898
33910
  function _6(e, n) {
@@ -33914,11 +33926,11 @@ function k6(e, n) {
33914
33926
  });
33915
33927
  }
33916
33928
  function r(s, u, l, c) {
33917
- var d = t(s, u, l), f = en(e(u));
33929
+ var d = t(s, u, l), f = tn(e(u));
33918
33930
  return n.push({ paramPath: c + "/filters" }, { paramPath: c + "/bias" }), { filters: d, bias: f };
33919
33931
  }
33920
33932
  function o(s, u) {
33921
- var l = en(e(s)), c = en(e(s));
33933
+ var l = tn(e(s)), c = tn(e(s));
33922
33934
  return n.push({ paramPath: u + "/weights" }, { paramPath: u + "/biases" }), {
33923
33935
  weights: l,
33924
33936
  biases: c
@@ -34154,7 +34166,7 @@ var P0 = (
34154
34166
  );
34155
34167
  function T6(e, n) {
34156
34168
  function t(u, l) {
34157
- var c = Pn(e(9 * u), [3, 3, u, 1]), d = en(e(u)), f = en(e(u)), h = en(e(u)), p = en(e(u));
34169
+ var c = Pn(e(9 * u), [3, 3, u, 1]), d = tn(e(u)), f = tn(e(u)), h = tn(e(u)), p = tn(e(u));
34158
34170
  return n.push({ paramPath: l + "/filters" }, { paramPath: l + "/batch_norm_scale" }, { paramPath: l + "/batch_norm_offset" }, { paramPath: l + "/batch_norm_mean" }, { paramPath: l + "/batch_norm_variance" }), {
34159
34171
  filters: c,
34160
34172
  batch_norm_scale: d,
@@ -34164,7 +34176,7 @@ function T6(e, n) {
34164
34176
  };
34165
34177
  }
34166
34178
  function r(u, l, c, d, f) {
34167
- var h = Pn(e(u * l * c * c), [c, c, u, l]), p = en(e(l));
34179
+ var h = Pn(e(u * l * c * c), [c, c, u, l]), p = tn(e(l));
34168
34180
  return n.push({ paramPath: d + "/filters" }, { paramPath: d + "/" + (f ? "batch_norm_offset" : "bias") }), { filters: h, bias: p };
34169
34181
  }
34170
34182
  function o(u, l, c, d) {
@@ -34337,7 +34349,7 @@ function M6(e) {
34337
34349
  }
34338
34350
  function br(e, n, t) {
34339
34351
  return Re(function() {
34340
- var r = ar(e, n.filters, t, "same");
34352
+ var r = ir(e, n.filters, t, "same");
34341
34353
  return r = ft(r, n.batch_norm_offset), Pd(r, 0, 6);
34342
34354
  });
34343
34355
  }
@@ -34414,8 +34426,8 @@ function q6(e) {
34414
34426
  sn(n[2], n[0]),
34415
34427
  sn(n[3], n[1])
34416
34428
  ], r = [
34417
- ft(n[0], ur(t[0], we(2))),
34418
- ft(n[1], ur(t[1], we(2)))
34429
+ ft(n[0], lr(t[0], we(2))),
34430
+ ft(n[1], lr(t[1], we(2)))
34419
34431
  ];
34420
34432
  return {
34421
34433
  sizes: t,
@@ -34423,8 +34435,8 @@ function q6(e) {
34423
34435
  };
34424
34436
  }
34425
34437
  function V6(e, n) {
34426
- var t = q6(e), r = t.sizes, o = t.centers, a = on(fo(n, [1, 0])), i = ur(Tn(Dc(ur(a[2], we(5))), r[0]), we(2)), s = ft(Tn(ur(a[0], we(10)), r[0]), o[0]), u = ur(Tn(Dc(ur(a[3], we(5))), r[1]), we(2)), l = ft(Tn(ur(a[1], we(10)), r[1]), o[1]);
34427
- return fo(Yn([
34438
+ var t = q6(e), r = t.sizes, o = t.centers, a = on(fo(n, [1, 0])), i = lr(Tn(Dc(lr(a[2], we(5))), r[0]), we(2)), s = ft(Tn(lr(a[0], we(10)), r[0]), o[0]), u = lr(Tn(Dc(lr(a[3], we(5))), r[1]), we(2)), l = ft(Tn(lr(a[1], we(10)), r[1]), o[1]);
34439
+ return fo(Qn([
34428
34440
  sn(s, i),
34429
34441
  sn(l, u),
34430
34442
  ft(s, i),
@@ -34433,10 +34445,10 @@ function V6(e, n) {
34433
34445
  }
34434
34446
  function z6(e, n, t) {
34435
34447
  return Re(function() {
34436
- var r = e.shape[0], o = V6(lr(ha(t.extra_dim, [r, 1, 1]), [-1, 4]), lr(e, [-1, 4]));
34437
- o = lr(o, [r, o.shape[0] / r, 4]);
34448
+ var r = e.shape[0], o = V6(cr(ha(t.extra_dim, [r, 1, 1]), [-1, 4]), cr(e, [-1, 4]));
34449
+ o = cr(o, [r, o.shape[0] / r, 4]);
34438
34450
  var a = Cg(Rr(n, [0, 0, 1], [-1, -1, -1])), i = Rr(a, [0, 0, 0], [-1, -1, 1]);
34439
- i = lr(i, [r, i.shape[1]]);
34451
+ i = cr(i, [r, i.shape[1]]);
34440
34452
  var s = on(o), u = on(i);
34441
34453
  return {
34442
34454
  boxes: s,
@@ -34446,7 +34458,7 @@ function z6(e, n, t) {
34446
34458
  }
34447
34459
  function ta(e, n) {
34448
34460
  return Re(function() {
34449
- var t = e.shape[0], r = lr(cr(e, n.box_encoding_predictor), [t, -1, 1, 4]), o = lr(cr(e, n.class_predictor), [t, -1, 3]);
34461
+ var t = e.shape[0], r = cr(dr(e, n.box_encoding_predictor), [t, -1, 1, 4]), o = cr(dr(e, n.class_predictor), [t, -1, 3]);
34450
34462
  return {
34451
34463
  boxPredictionEncoding: r,
34452
34464
  classPrediction: o
@@ -34551,7 +34563,7 @@ var Du = (
34551
34563
  ].map(function(L) {
34552
34564
  return L * x;
34553
34565
  }), B = D[0], V = D[1];
34554
- return new Zn(p[S], new Su(B, I, V - B, $ - I), {
34566
+ return new Jn(p[S], new Su(B, I, V - B, $ - I), {
34555
34567
  height: s.getInputHeight(0),
34556
34568
  width: s.getInputWidth(0)
34557
34569
  });
@@ -34619,7 +34631,7 @@ function af(e) {
34619
34631
  function Zr(e, n) {
34620
34632
  return Re(function() {
34621
34633
  var t = zo(e, [[0, 0], [1, 1], [1, 1], [0, 0]]);
34622
- return t = ar(t, n.conv.filters, [1, 1], "valid"), t = sn(t, n.bn.sub), t = Tn(t, n.bn.truediv), t = ft(t, n.conv.bias), af(t);
34634
+ return t = ir(t, n.conv.filters, [1, 1], "valid"), t = sn(t, n.bn.sub), t = Tn(t, n.bn.truediv), t = ft(t, n.conv.bias), af(t);
34623
34635
  });
34624
34636
  }
34625
34637
  function Jr(e, n) {
@@ -34631,7 +34643,7 @@ function Jr(e, n) {
34631
34643
  function Y6(e, n) {
34632
34644
  var t = Tu(e, n);
34633
34645
  function r(i, s) {
34634
- var u = en(e(i)), l = en(e(i));
34646
+ var u = tn(e(i)), l = tn(e(i));
34635
34647
  return n.push({ paramPath: s + "/sub" }, { paramPath: s + "/truediv" }), { sub: u, truediv: l };
34636
34648
  }
34637
34649
  function o(i, s, u) {
@@ -34764,10 +34776,10 @@ var sf = (
34764
34776
  configurable: !0
34765
34777
  }), n.prototype.runTinyYolov2 = function(t, r) {
34766
34778
  var o = Zr(t, r.conv0);
34767
- return o = cn(o, [2, 2], [2, 2], "same"), o = Zr(o, r.conv1), o = cn(o, [2, 2], [2, 2], "same"), o = Zr(o, r.conv2), o = cn(o, [2, 2], [2, 2], "same"), o = Zr(o, r.conv3), o = cn(o, [2, 2], [2, 2], "same"), o = Zr(o, r.conv4), o = cn(o, [2, 2], [2, 2], "same"), o = Zr(o, r.conv5), o = cn(o, [2, 2], [1, 1], "same"), o = Zr(o, r.conv6), o = Zr(o, r.conv7), cr(o, r.conv8, "valid", !1);
34779
+ return o = cn(o, [2, 2], [2, 2], "same"), o = Zr(o, r.conv1), o = cn(o, [2, 2], [2, 2], "same"), o = Zr(o, r.conv2), o = cn(o, [2, 2], [2, 2], "same"), o = Zr(o, r.conv3), o = cn(o, [2, 2], [2, 2], "same"), o = Zr(o, r.conv4), o = cn(o, [2, 2], [2, 2], "same"), o = Zr(o, r.conv5), o = cn(o, [2, 2], [1, 1], "same"), o = Zr(o, r.conv6), o = Zr(o, r.conv7), dr(o, r.conv8, "valid", !1);
34768
34780
  }, n.prototype.runMobilenet = function(t, r) {
34769
- var o = this.config.isFirstLayerConv2d ? af(cr(t, r.conv0, "valid", !1)) : Jr(t, r.conv0);
34770
- return o = cn(o, [2, 2], [2, 2], "same"), o = Jr(o, r.conv1), o = cn(o, [2, 2], [2, 2], "same"), o = Jr(o, r.conv2), o = cn(o, [2, 2], [2, 2], "same"), o = Jr(o, r.conv3), o = cn(o, [2, 2], [2, 2], "same"), o = Jr(o, r.conv4), o = cn(o, [2, 2], [2, 2], "same"), o = Jr(o, r.conv5), o = cn(o, [2, 2], [1, 1], "same"), o = r.conv6 ? Jr(o, r.conv6) : o, o = r.conv7 ? Jr(o, r.conv7) : o, cr(o, r.conv8, "valid", !1);
34781
+ var o = this.config.isFirstLayerConv2d ? af(dr(t, r.conv0, "valid", !1)) : Jr(t, r.conv0);
34782
+ return o = cn(o, [2, 2], [2, 2], "same"), o = Jr(o, r.conv1), o = cn(o, [2, 2], [2, 2], "same"), o = Jr(o, r.conv2), o = cn(o, [2, 2], [2, 2], "same"), o = Jr(o, r.conv3), o = cn(o, [2, 2], [2, 2], "same"), o = Jr(o, r.conv4), o = cn(o, [2, 2], [2, 2], "same"), o = Jr(o, r.conv5), o = cn(o, [2, 2], [1, 1], "same"), o = r.conv6 ? Jr(o, r.conv6) : o, o = r.conv7 ? Jr(o, r.conv7) : o, dr(o, r.conv8, "valid", !1);
34771
34783
  }, n.prototype.forwardInput = function(t, r) {
34772
34784
  var o = this, a = this.params;
34773
34785
  if (!a)
@@ -34944,7 +34956,7 @@ var sf = (
34944
34956
  return [4, this.detect(t, r)];
34945
34957
  case 1:
34946
34958
  return o = a.sent(), [2, o.map(function(i) {
34947
- return new Zn(i.score, i.relativeBox, { width: i.imageWidth, height: i.imageHeight });
34959
+ return new Jn(i.score, i.relativeBox, { width: i.imageWidth, height: i.imageHeight });
34948
34960
  })];
34949
34961
  }
34950
34962
  });
@@ -35037,14 +35049,14 @@ function uf(e, n, t, r, o) {
35037
35049
  }
35038
35050
  function tA(e) {
35039
35051
  return Re(function() {
35040
- return Yn(on(e, 3).reverse(), 3);
35052
+ return Qn(on(e, 3).reverse(), 3);
35041
35053
  });
35042
35054
  }
35043
35055
  var ts = 2, Ys = 12;
35044
35056
  function nA(e, n) {
35045
35057
  var t = Tu(e, n), r = ef(e, n);
35046
35058
  function o(l, c) {
35047
- var d = en(e(l));
35059
+ var d = tn(e(l));
35048
35060
  return n.push({ paramPath: c }), d;
35049
35061
  }
35050
35062
  function a(l, c, d) {
@@ -35149,13 +35161,13 @@ function ya(e, n) {
35149
35161
  }
35150
35162
  function cf(e, n, t) {
35151
35163
  return t === void 0 && (t = !1), Re(function() {
35152
- var r = cr(e, n.conv1, "valid");
35153
- return r = ya(r, n.prelu1_alpha), r = cn(r, t ? [2, 2] : [3, 3], [2, 2], "same"), r = cr(r, n.conv2, "valid"), r = ya(r, n.prelu2_alpha), r = t ? r : cn(r, [3, 3], [2, 2], "valid"), r = cr(r, n.conv3, "valid"), r = ya(r, n.prelu3_alpha), r;
35164
+ var r = dr(e, n.conv1, "valid");
35165
+ return r = ya(r, n.prelu1_alpha), r = cn(r, t ? [2, 2] : [3, 3], [2, 2], "same"), r = dr(r, n.conv2, "valid"), r = ya(r, n.prelu2_alpha), r = t ? r : cn(r, [3, 3], [2, 2], "valid"), r = dr(r, n.conv3, "valid"), r = ya(r, n.prelu3_alpha), r;
35154
35166
  });
35155
35167
  }
35156
35168
  function sA(e, n) {
35157
35169
  return Re(function() {
35158
- var t = cf(e, n, !0), r = cr(t, n.conv4_1, "valid"), o = tr(wu(r, 3), 3), a = Ur(sn(r, o), 3), i = cr(t, n.conv4_2, "valid");
35170
+ var t = cf(e, n, !0), r = dr(t, n.conv4_1, "valid"), o = nr(wu(r, 3), 3), a = Ur(sn(r, o), 3), i = dr(t, n.conv4_2, "valid");
35159
35171
  return { prob: a, regions: i };
35160
35172
  });
35161
35173
  }
@@ -35263,7 +35275,7 @@ function L0(e, n, t) {
35263
35275
  }
35264
35276
  function dA(e, n) {
35265
35277
  return Re(function() {
35266
- var t = cf(e, n), r = lr(t, [t.shape[0], n.fc1.weights.shape[0]]), o = _r(r, n.fc1), a = ya(o, n.prelu4_alpha), i = _r(a, n.fc2_1), s = tr(wu(i, 1), 1), u = Ur(sn(i, s), 1), l = _r(a, n.fc2_2), c = on(u, 1)[1];
35278
+ var t = cf(e, n), r = cr(t, [t.shape[0], n.fc1.weights.shape[0]]), o = _r(r, n.fc1), a = ya(o, n.prelu4_alpha), i = _r(a, n.fc2_1), s = nr(wu(i, 1), 1), u = Ur(sn(i, s), 1), l = _r(a, n.fc2_2), c = on(u, 1)[1];
35267
35279
  return { scores: c, regions: l };
35268
35280
  });
35269
35281
  }
@@ -35313,8 +35325,8 @@ function fA(e, n, t, r, o) {
35313
35325
  function hA(e, n) {
35314
35326
  return Re(function() {
35315
35327
  var t = cf(e, n);
35316
- t = cn(t, [2, 2], [2, 2], "same"), t = cr(t, n.conv4, "valid"), t = ya(t, n.prelu4_alpha);
35317
- var r = lr(t, [t.shape[0], n.fc1.weights.shape[0]]), o = _r(r, n.fc1), a = ya(o, n.prelu5_alpha), i = _r(a, n.fc2_1), s = tr(wu(i, 1), 1), u = Ur(sn(i, s), 1), l = _r(a, n.fc2_2), c = _r(a, n.fc2_3), d = on(u, 1)[1];
35328
+ t = cn(t, [2, 2], [2, 2], "same"), t = dr(t, n.conv4, "valid"), t = ya(t, n.prelu4_alpha);
35329
+ var r = cr(t, [t.shape[0], n.fc1.weights.shape[0]]), o = _r(r, n.fc1), a = ya(o, n.prelu5_alpha), i = _r(a, n.fc2_1), s = nr(wu(i, 1), 1), u = Ur(sn(i, s), 1), l = _r(a, n.fc2_2), c = _r(a, n.fc2_3), d = on(u, 1)[1];
35318
35330
  return { scores: d, regions: l, points: c };
35319
35331
  });
35320
35332
  }
@@ -35397,7 +35409,7 @@ var vA = (
35397
35409
  if (a = t.canvases[0], !a)
35398
35410
  throw new Error("Mtcnn - inputCanvas is not defined, note that passing tensors into Mtcnn.forwardInput is not supported yet.");
35399
35411
  return i = {}, s = Date.now(), u = Re(function() {
35400
- return tA(tr(Kd.fromPixels(a)).toFloat());
35412
+ return tA(nr(Kd.fromPixels(a)).toFloat());
35401
35413
  }), l = function(S) {
35402
35414
  return u.dispose(), i.total = Date.now() - s, S;
35403
35415
  }, c = u.shape.slice(1), d = c[0], f = c[1], h = new P0(r), p = h.minFaceSize, m = h.scaleFactor, v = h.maxNumScales, y = h.scoreThresholds, b = h.scaleSteps, w = (b || iA(p, m, [d, f])).filter(function(S) {
@@ -35412,7 +35424,7 @@ var vA = (
35412
35424
  return C = _.sent(), i.total_stage2 = Date.now() - g, C.boxes.length ? (i.stage3_numInputBoxes = C.boxes.length, g = Date.now(), [4, pA(a, C.boxes, y[2], o.onet, i)]) : [2, l({ results: [], stats: i })];
35413
35425
  case 3:
35414
35426
  return E = _.sent(), i.total_stage3 = Date.now() - g, R = E.boxes.map(function(S, M) {
35415
- return Au(pi({}, new Zn(E.scores[M], new Su(S.left / f, S.top / d, S.width / f, S.height / d), {
35427
+ return Au(pi({}, new Jn(E.scores[M], new Su(S.left / f, S.top / d, S.width / f, S.height / d), {
35416
35428
  height: d,
35417
35429
  width: f
35418
35430
  })), new VT(E.points[M].map(function(I) {
@@ -35499,7 +35511,7 @@ var vA = (
35499
35511
  return [4, this.detect(t, r)];
35500
35512
  case 1:
35501
35513
  return o = a.sent(), [2, o.map(function(i) {
35502
- return new Zn(i.score, i.relativeBox, { width: i.imageWidth, height: i.imageHeight });
35514
+ return new Jn(i.score, i.relativeBox, { width: i.imageWidth, height: i.imageHeight });
35503
35515
  })];
35504
35516
  }
35505
35517
  });
@@ -36114,7 +36126,7 @@ function H0(e, n) {
36114
36126
  var a = e.detection.forSize(r, o), i = e.unshiftedLandmarks.forSize(a.box.width, a.box.height);
36115
36127
  return Au(pi(e, a), i);
36116
36128
  }
36117
- return Gs(e) ? pi(e, e.detection.forSize(r, o)) : e instanceof Ia || e instanceof Zn ? e.forSize(r, o) : e;
36129
+ return Gs(e) ? pi(e, e.detection.forSize(r, o)) : e instanceof Ia || e instanceof Jn ? e.forSize(r, o) : e;
36118
36130
  }
36119
36131
  class EA {
36120
36132
  // async getFaceSnapshot(inputImage: any, box: any) {