sprof 0.0.215 → 0.0.217

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.
package/dist/sprof.js CHANGED
@@ -1,7 +1,7 @@
1
1
  var Xl = Object.defineProperty;
2
2
  var Yl = (t, e, i) => e in t ? Xl(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i;
3
3
  var a = (t, e, i) => Yl(t, typeof e != "symbol" ? e + "" : e, i);
4
- import { reactive as ze, ref as T, openBlock as m, createElementBlock as w, createElementVNode as f, getCurrentInstance as Jl, inject as Ql, onUnmounted as Fr, onDeactivated as Kl, onActivated as eu, onBeforeMount as ut, defineComponent as $, computed as ue, mergeProps as It, unref as p, withModifiers as De, renderSlot as P, createTextVNode as is, toDisplayString as Ie, Fragment as V, normalizeClass as ne, normalizeStyle as I, mergeModels as Ee, useModel as pt, withDirectives as Je, vModelCheckbox as tu, createVNode as R, createCommentVNode as J, vModelDynamic as iu, resolveComponent as B, isRef as _e, withKeys as nu, vModelText as Dr, watch as Ze, createBlock as U, vModelRadio as su, vShow as ns, vModelSelect as ru, useCssVars as Lr, onMounted as Xt, renderList as Oe, withCtx as X, resolveDirective as Br, nextTick as ou, Transition as Hr, onBeforeUnmount as ss, createStaticVNode as qr, onUpdated as au, useTemplateRef as lu, resolveDynamicComponent as li } from "vue";
4
+ import { reactive as ze, ref as T, openBlock as m, createElementBlock as w, createElementVNode as f, getCurrentInstance as Jl, inject as Ql, onUnmounted as Fr, onDeactivated as Kl, onActivated as eu, onBeforeMount as lt, defineComponent as $, computed as ue, mergeProps as It, unref as p, withModifiers as De, renderSlot as P, createTextVNode as is, toDisplayString as Ie, Fragment as V, normalizeClass as ne, normalizeStyle as I, mergeModels as Ee, useModel as pt, withDirectives as Je, vModelCheckbox as tu, createVNode as R, createCommentVNode as J, vModelDynamic as iu, resolveComponent as B, isRef as _e, withKeys as nu, vModelText as Dr, watch as Ze, createBlock as U, vModelRadio as su, vShow as ns, vModelSelect as ru, useCssVars as Lr, onMounted as Xt, renderList as Oe, withCtx as X, resolveDirective as Br, nextTick as ou, Transition as Hr, onBeforeUnmount as ss, createStaticVNode as qr, onUpdated as au, useTemplateRef as lu, resolveDynamicComponent as li } from "vue";
5
5
  var Ae = /* @__PURE__ */ ((t) => (t.Login = "login", t.Register = "register", t.Restore = "restore", t.Refresh = "refresh", t))(Ae || {}), xe = /* @__PURE__ */ ((t) => (t.Primary = "primary", t.Success = "success", t.Warning = "warning", t.Error = "error", t.Info = "info", t))(xe || {});
6
6
  class Rt {
7
7
  constructor(e, i, n, s) {
@@ -465,7 +465,7 @@ class wu extends Wr {
465
465
  }
466
466
  }
467
467
  const bu = new wu(), Fe = ze(bu);
468
- class st {
468
+ class nt {
469
469
  static Get(e) {
470
470
  const i = localStorage.getItem(e);
471
471
  if (i)
@@ -486,19 +486,19 @@ class Su {
486
486
  this.setAccessToken(e.accessToken), this.setRefreshToken(e.refreshToken);
487
487
  }
488
488
  getAccessToken() {
489
- return st.Get(Ye.AccessToken);
489
+ return nt.Get(Ye.AccessToken);
490
490
  }
491
491
  getRefreshToken() {
492
- return st.Get(Ye.RefreshToken);
492
+ return nt.Get(Ye.RefreshToken);
493
493
  }
494
494
  setAccessToken(e) {
495
- st.Set(Ye.AccessToken, e);
495
+ nt.Set(Ye.AccessToken, e);
496
496
  }
497
497
  setRefreshToken(e) {
498
- st.Set(Ye.RefreshToken, e);
498
+ nt.Set(Ye.RefreshToken, e);
499
499
  }
500
500
  reset() {
501
- st.Remove(Ye.AccessToken), st.Remove(Ye.RefreshToken);
501
+ nt.Remove(Ye.AccessToken), nt.Remove(Ye.RefreshToken);
502
502
  }
503
503
  actualize() {
504
504
  this.setAccessToken(this.getAccessToken()), this.setRefreshToken(this.getAccessToken());
@@ -523,13 +523,13 @@ class Cu {
523
523
  return this.user;
524
524
  }
525
525
  set(e) {
526
- this.userConstructor && (this.user = new this.userConstructor(e), st.Set(Ye.User, this.user));
526
+ this.userConstructor && (this.user = new this.userConstructor(e), nt.Set(Ye.User, this.user));
527
527
  }
528
528
  reset() {
529
- this.user = void 0, st.Remove(Ye.User);
529
+ this.user = void 0, nt.Remove(Ye.User);
530
530
  }
531
531
  actualize() {
532
- const e = st.Get(Ye.User);
532
+ const e = nt.Get(Ye.User);
533
533
  e && this.set(e);
534
534
  }
535
535
  }
@@ -673,7 +673,7 @@ var ir;
673
673
  throw new TypeError();
674
674
  if (!me(E) && !_(E) && !Ht(E))
675
675
  throw new TypeError();
676
- return Ht(E) && (E = void 0), k = tt(k), Ol(v, b, k, E);
676
+ return Ht(E) && (E = void 0), k = et(k), Ol(v, b, k, E);
677
677
  }
678
678
  }
679
679
  e("decorate", Y);
@@ -691,51 +691,51 @@ var ir;
691
691
  function H(v, b, k, E) {
692
692
  if (!me(k))
693
693
  throw new TypeError();
694
- return _(E) || (E = tt(E)), qs(v, b, k, E);
694
+ return _(E) || (E = et(E)), qs(v, b, k, E);
695
695
  }
696
696
  e("defineMetadata", H);
697
697
  function Q(v, b, k) {
698
698
  if (!me(b))
699
699
  throw new TypeError();
700
- return _(k) || (k = tt(k)), Ls(v, b, k);
700
+ return _(k) || (k = et(k)), Ls(v, b, k);
701
701
  }
702
702
  e("hasMetadata", Q);
703
703
  function Ue(v, b, k) {
704
704
  if (!me(b))
705
705
  throw new TypeError();
706
- return _(k) || (k = tt(k)), vn(v, b, k);
706
+ return _(k) || (k = et(k)), vn(v, b, k);
707
707
  }
708
708
  e("hasOwnMetadata", Ue);
709
709
  function je(v, b, k) {
710
710
  if (!me(b))
711
711
  throw new TypeError();
712
- return _(k) || (k = tt(k)), Bs(v, b, k);
712
+ return _(k) || (k = et(k)), Bs(v, b, k);
713
713
  }
714
714
  e("getMetadata", je);
715
715
  function vt(v, b, k) {
716
716
  if (!me(b))
717
717
  throw new TypeError();
718
- return _(k) || (k = tt(k)), Hs(v, b, k);
718
+ return _(k) || (k = et(k)), Hs(v, b, k);
719
719
  }
720
720
  e("getOwnMetadata", vt);
721
721
  function Bt(v, b) {
722
722
  if (!me(v))
723
723
  throw new TypeError();
724
- return _(b) || (b = tt(b)), Ns(v, b);
724
+ return _(b) || (b = et(b)), Ns(v, b);
725
725
  }
726
726
  e("getMetadataKeys", Bt);
727
727
  function Si(v, b) {
728
728
  if (!me(v))
729
729
  throw new TypeError();
730
- return _(b) || (b = tt(b)), Us(v, b);
730
+ return _(b) || (b = et(b)), Us(v, b);
731
731
  }
732
732
  e("getOwnMetadataKeys", Si);
733
733
  function Tl(v, b, k) {
734
734
  if (!me(b))
735
735
  throw new TypeError();
736
- if (_(k) || (k = tt(k)), !me(b))
736
+ if (_(k) || (k = et(k)), !me(b))
737
737
  throw new TypeError();
738
- _(k) || (k = tt(k));
738
+ _(k) || (k = et(k));
739
739
  var E = ei(
740
740
  b,
741
741
  k,
@@ -918,7 +918,7 @@ var ir;
918
918
  function Bl(v) {
919
919
  return "" + v;
920
920
  }
921
- function tt(v) {
921
+ function et(v) {
922
922
  var b = Dl(v);
923
923
  return Fl(b) ? b : Bl(b);
924
924
  }
@@ -1755,7 +1755,7 @@ class os {
1755
1755
  var yt;
1756
1756
  let $u = (yt = class {
1757
1757
  }, a(yt, "Phone", Tt), a(yt, "FileInfo", Te), a(yt, "PostAddress", Di), a(yt, "Website", os), a(yt, "Email", Et), a(yt, "Human", _r), yt);
1758
- class mt {
1758
+ class ft {
1759
1759
  static Shuffle(e) {
1760
1760
  for (let i = e.length - 1; i > 0; i--) {
1761
1761
  const n = Math.floor(Math.random() * (i + 1));
@@ -1833,12 +1833,12 @@ const Zr = class ni {
1833
1833
  return !1;
1834
1834
  if (this.type === we.Join) {
1835
1835
  const i = e.model === this.model && e.operator === this.operator && this.joinTableModel === e.joinTableModel;
1836
- return e.operator === Re.In ? i && mt.Eq(this.set, e.set) : i;
1836
+ return e.operator === Re.In ? i && ft.Eq(this.set, e.set) : i;
1837
1837
  }
1838
1838
  return e.model === this.model && e.col === this.col && e.operator === this.operator;
1839
1839
  }
1840
1840
  valueEq(e) {
1841
- return !this || !e || !this.eq(e) ? !1 : this.type === we.Boolean ? this.boolean === (e == null ? void 0 : e.boolean) : this.type === we.String ? this.value1 === (e == null ? void 0 : e.value1) : this.type === we.Join && this.set.length ? mt.Eq(this.set, e.set) : !1;
1841
+ return !this || !e || !this.eq(e) ? !1 : this.type === we.Boolean ? this.boolean === (e == null ? void 0 : e.boolean) : this.type === we.String ? this.value1 === (e == null ? void 0 : e.value1) : this.type === we.Join && this.set.length ? ft.Eq(this.set, e.set) : !1;
1842
1842
  }
1843
1843
  toUrlQuery() {
1844
1844
  const e = this.type ? `"type":"${this.type}"` : "", i = this.model ? `"model":"${this.model}"` : "", n = this.col ? `"col":"${this.col}"` : "", s = this.operator ? `"operator":"${this.operator}"` : "", r = this.value1 ? `"value1":"${this.value1}"` : "", o = this.type === we.Boolean ? `"boolean":${this.boolean}` : "", u = this.type === we.Date && this.date1 ? `"date1":"${this.date1.toISOString()}"` : "", l = this.type === we.Date && this.date2 ? `"date2":"${this.date2.toISOString()}"` : "", c = this.type === we.Number ? `"number":${this.number}` : "", d = this.type === we.Set || this.operator === Re.In ? `"set":${JSON.stringify(this.set)}` : "", h = this.type === we.Join ? `"joinTableModel":"${this.joinTableModel}"` : "";
@@ -2064,7 +2064,7 @@ const gi = (qe = class {
2064
2064
  return this.f.find((i) => e.id === i.id);
2065
2065
  }
2066
2066
  getFirstSortModel() {
2067
- return mt.GetLast(this.s);
2067
+ return ft.GetLast(this.s);
2068
2068
  }
2069
2069
  setSortModel(e) {
2070
2070
  e && (this.s[0] = e);
@@ -2101,10 +2101,10 @@ Vi([
2101
2101
  Vi([
2102
2102
  F.GetClassConstructor(Gi)
2103
2103
  ], gi.prototype, "t");
2104
- let Qe = gi;
2104
+ let mt = gi;
2105
2105
  var ii;
2106
2106
  let zu = (ii = class {
2107
- }, a(ii, "SortModel", Wi), a(ii, "FilterModel", as), a(ii, "FTSP", ze(Qe)), ii);
2107
+ }, a(ii, "SortModel", Wi), a(ii, "FilterModel", as), a(ii, "FTSP", ze(mt)), ii);
2108
2108
  function Xr(t, e) {
2109
2109
  return function() {
2110
2110
  return t.apply(e, arguments);
@@ -2113,11 +2113,11 @@ function Xr(t, e) {
2113
2113
  const { toString: Ou } = Object.prototype, { getPrototypeOf: ls } = Object, _i = /* @__PURE__ */ ((t) => (e) => {
2114
2114
  const i = Ou.call(e);
2115
2115
  return t[i] || (t[i] = i.slice(8, -1).toLowerCase());
2116
- })(/* @__PURE__ */ Object.create(null)), Ke = (t) => (t = t.toLowerCase(), (e) => _i(e) === t), Zi = (t) => (e) => typeof e === t, { isArray: Yt } = Array, di = Zi("undefined");
2116
+ })(/* @__PURE__ */ Object.create(null)), Qe = (t) => (t = t.toLowerCase(), (e) => _i(e) === t), Zi = (t) => (e) => typeof e === t, { isArray: Yt } = Array, di = Zi("undefined");
2117
2117
  function Fu(t) {
2118
2118
  return t !== null && !di(t) && t.constructor !== null && !di(t.constructor) && Ne(t.constructor.isBuffer) && t.constructor.isBuffer(t);
2119
2119
  }
2120
- const Yr = Ke("ArrayBuffer");
2120
+ const Yr = Qe("ArrayBuffer");
2121
2121
  function Du(t) {
2122
2122
  let e;
2123
2123
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Yr(t.buffer), e;
@@ -2127,11 +2127,11 @@ const Lu = Zi("string"), Ne = Zi("function"), Jr = Zi("number"), Xi = (t) => t !
2127
2127
  return !1;
2128
2128
  const e = ls(t);
2129
2129
  return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
2130
- }, Hu = Ke("Date"), qu = Ke("File"), Nu = Ke("Blob"), Uu = Ke("FileList"), ju = (t) => Xi(t) && Ne(t.pipe), Wu = (t) => {
2130
+ }, Hu = Qe("Date"), qu = Qe("File"), Nu = Qe("Blob"), Uu = Qe("FileList"), ju = (t) => Xi(t) && Ne(t.pipe), Wu = (t) => {
2131
2131
  let e;
2132
2132
  return t && (typeof FormData == "function" && t instanceof FormData || Ne(t.append) && ((e = _i(t)) === "formdata" || // detect form-data instance
2133
2133
  e === "object" && Ne(t.toString) && t.toString() === "[object FormData]"));
2134
- }, Gu = Ke("URLSearchParams"), [Vu, _u, Zu, Xu] = ["ReadableStream", "Request", "Response", "Headers"].map(Ke), Yu = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
2134
+ }, Gu = Qe("URLSearchParams"), [Vu, _u, Zu, Xu] = ["ReadableStream", "Request", "Response", "Headers"].map(Qe), Yu = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
2135
2135
  function pi(t, e, { allOwnKeys: i = !1 } = {}) {
2136
2136
  if (t === null || typeof t > "u")
2137
2137
  return;
@@ -2207,12 +2207,12 @@ const Ju = (t, e, i, { allOwnKeys: n } = {}) => (pi(e, (s, r) => {
2207
2207
  for (; (i = t.exec(e)) !== null; )
2208
2208
  n.push(i);
2209
2209
  return n;
2210
- }, oc = Ke("HTMLFormElement"), ac = (t) => t.toLowerCase().replace(
2210
+ }, oc = Qe("HTMLFormElement"), ac = (t) => t.toLowerCase().replace(
2211
2211
  /[-_\s]([a-z\d])(\w*)/g,
2212
2212
  function(i, n, s) {
2213
2213
  return n.toUpperCase() + s;
2214
2214
  }
2215
- ), sr = (({ hasOwnProperty: t }) => (e, i) => t.call(e, i))(Object.prototype), lc = Ke("RegExp"), eo = (t, e) => {
2215
+ ), sr = (({ hasOwnProperty: t }) => (e, i) => t.call(e, i))(Object.prototype), lc = Qe("RegExp"), eo = (t, e) => {
2216
2216
  const i = Object.getOwnPropertyDescriptors(t), n = {};
2217
2217
  pi(i, (s, r) => {
2218
2218
  let o;
@@ -2272,7 +2272,7 @@ const gc = (t) => {
2272
2272
  return n;
2273
2273
  };
2274
2274
  return i(t, 0);
2275
- }, pc = Ke("AsyncFunction"), vc = (t) => t && (Xi(t) || Ne(t)) && Ne(t.then) && Ne(t.catch), io = ((t, e) => t ? setImmediate : e ? ((i, n) => ($t.addEventListener("message", ({ source: s, data: r }) => {
2275
+ }, pc = Qe("AsyncFunction"), vc = (t) => t && (Xi(t) || Ne(t)) && Ne(t.then) && Ne(t.catch), io = ((t, e) => t ? setImmediate : e ? ((i, n) => ($t.addEventListener("message", ({ source: s, data: r }) => {
2276
2276
  s === $t && r === i && n.length && n.shift()();
2277
2277
  }, !1), (s) => {
2278
2278
  n.push(s), $t.postMessage(i, "*");
@@ -2312,7 +2312,7 @@ const gc = (t) => {
2312
2312
  inherits: Ku,
2313
2313
  toFlatObject: ec,
2314
2314
  kindOf: _i,
2315
- kindOfTest: Ke,
2315
+ kindOfTest: Qe,
2316
2316
  endsWith: tc,
2317
2317
  toArray: ic,
2318
2318
  forEachEntry: sc,
@@ -3488,7 +3488,7 @@ function od(t, e, i) {
3488
3488
  const Ti = {
3489
3489
  assertOptions: od,
3490
3490
  validators: Qi
3491
- }, it = Ti.validators;
3491
+ }, tt = Ti.validators;
3492
3492
  class At {
3493
3493
  constructor(e) {
3494
3494
  this.defaults = e, this.interceptors = {
@@ -3525,17 +3525,17 @@ class At {
3525
3525
  typeof e == "string" ? (i = i || {}, i.url = e) : i = e || {}, i = zt(this.defaults, i);
3526
3526
  const { transitional: n, paramsSerializer: s, headers: r } = i;
3527
3527
  n !== void 0 && Ti.assertOptions(n, {
3528
- silentJSONParsing: it.transitional(it.boolean),
3529
- forcedJSONParsing: it.transitional(it.boolean),
3530
- clarifyTimeoutError: it.transitional(it.boolean)
3528
+ silentJSONParsing: tt.transitional(tt.boolean),
3529
+ forcedJSONParsing: tt.transitional(tt.boolean),
3530
+ clarifyTimeoutError: tt.transitional(tt.boolean)
3531
3531
  }, !1), s != null && (S.isFunction(s) ? i.paramsSerializer = {
3532
3532
  serialize: s
3533
3533
  } : Ti.assertOptions(s, {
3534
- encode: it.function,
3535
- serialize: it.function
3534
+ encode: tt.function,
3535
+ serialize: tt.function
3536
3536
  }, !0)), Ti.assertOptions(i, {
3537
- baseUrl: it.spelling("baseURL"),
3538
- withXsrfToken: it.spelling("withXSRFToken")
3537
+ baseUrl: tt.spelling("baseURL"),
3538
+ withXsrfToken: tt.spelling("withXSRFToken")
3539
3539
  }, !0), i.method = (i.method || this.defaults.method || "get").toLowerCase();
3540
3540
  let o = r && S.merge(
3541
3541
  r.common,
@@ -3944,7 +3944,7 @@ const ae = class ae {
3944
3944
  return o || "file";
3945
3945
  }
3946
3946
  static getHeaders(e) {
3947
- const i = st.Get(Ye.AccessToken);
3947
+ const i = nt.Get(Ye.AccessToken);
3948
3948
  return e || (e = ae.headers), i && (e[Gn.Token] = i), e ?? ae.headers;
3949
3949
  }
3950
3950
  static returnResponse(e, i) {
@@ -4028,7 +4028,7 @@ const fs = /* @__PURE__ */ A(ud, [["render", dd]]), hd = [
4028
4028
  name: "NotFound",
4029
4029
  component: fs
4030
4030
  }
4031
- ], nt = class nt {
4031
+ ], it = class it {
4032
4032
  static Set(e) {
4033
4033
  this.router = e, this.AddRoutes(hd);
4034
4034
  }
@@ -4049,16 +4049,16 @@ const fs = /* @__PURE__ */ A(ud, [["render", dd]]), hd = [
4049
4049
  await this.Get().replace(e);
4050
4050
  }
4051
4051
  static Id() {
4052
- return nt.GetStringParam("id");
4052
+ return it.GetStringParam("id");
4053
4053
  }
4054
4054
  static Slug() {
4055
- return nt.GetStringParam("slug");
4055
+ return it.GetStringParam("slug");
4056
4056
  }
4057
4057
  static async Back() {
4058
4058
  this.Get().go(-1);
4059
4059
  }
4060
4060
  static GetQid() {
4061
- return nt.GetStringQueryParam("qid");
4061
+ return it.GetStringQueryParam("qid");
4062
4062
  }
4063
4063
  static Route() {
4064
4064
  var e;
@@ -4070,7 +4070,7 @@ const fs = /* @__PURE__ */ A(ud, [["render", dd]]), hd = [
4070
4070
  }
4071
4071
  static GetPath() {
4072
4072
  var i;
4073
- const e = (i = nt.Route()) == null ? void 0 : i.path.split("/");
4073
+ const e = (i = it.Route()) == null ? void 0 : i.path.split("/");
4074
4074
  return !e || e.length <= 0 ? "" : e[e.length - 1];
4075
4075
  }
4076
4076
  static async ToAdmin(e) {
@@ -4079,7 +4079,7 @@ const fs = /* @__PURE__ */ A(ud, [["render", dd]]), hd = [
4079
4079
  return;
4080
4080
  }
4081
4081
  let i = e;
4082
- i[0] === "/" && (i = e.substring(1)), await nt.To(`/admin/${i}`);
4082
+ i[0] === "/" && (i = e.substring(1)), await it.To(`/admin/${i}`);
4083
4083
  }
4084
4084
  static GetStringQueryParam(e) {
4085
4085
  return String(this.Route().query[e]);
@@ -4099,11 +4099,11 @@ const fs = /* @__PURE__ */ A(ud, [["render", dd]]), hd = [
4099
4099
  return this.Get().resolve(e);
4100
4100
  }
4101
4101
  };
4102
- a(nt, "router"), a(nt, "ChangeDocumentTitle", (e = "") => {
4103
- let i = nt.Route().meta.title ?? e;
4102
+ a(it, "router"), a(it, "ChangeDocumentTitle", (e = "") => {
4103
+ let i = it.Route().meta.title ?? e;
4104
4104
  i && e && (i = i + ` | ${e}`), document.title = i;
4105
4105
  });
4106
- let gt = nt;
4106
+ let gt = it;
4107
4107
  class ce {
4108
4108
  constructor(e, i) {
4109
4109
  a(this, "items", ze([]));
@@ -4132,7 +4132,7 @@ class ce {
4132
4132
  }
4133
4133
  async FTSP(e) {
4134
4134
  var o;
4135
- const n = ((e == null ? void 0 : e.ftsp) ?? Qe.Get()).clearForHTTP(), s = {
4135
+ const n = ((e == null ? void 0 : e.ftsp) ?? mt.Get()).clearForHTTP(), s = {
4136
4136
  payload: { ftsp: n },
4137
4137
  query: this.getUrl("ftsp")
4138
4138
  }, r = await he.Post(s);
@@ -4256,7 +4256,7 @@ function fd(t, e) {
4256
4256
  const md = ["#31af5e", "#ff4d3b", "#006BB5", "#f3911c"];
4257
4257
  class gd {
4258
4258
  static GetRandColor(e) {
4259
- return mt.GetRandEL(e ?? md);
4259
+ return ft.GetRandEL(e ?? md);
4260
4260
  }
4261
4261
  }
4262
4262
  function So(t, e) {
@@ -4299,7 +4299,7 @@ let pd = class {
4299
4299
  return this.timelinePxHeight * this.timelines.length;
4300
4300
  }
4301
4301
  getHoursArr() {
4302
- return mt.GenerateNumsRange(this.startHour, this.endHour);
4302
+ return ft.GenerateNumsRange(this.startHour, this.endHour);
4303
4303
  }
4304
4304
  };
4305
4305
  const Vn = (t) => t === 8 || t === 46, vd = (t) => t > 46 && t < 58, yd = (t) => t > 34 && t < 41, wd = (t) => t + ".", bd = (t, e, i) => {
@@ -4329,7 +4329,7 @@ function Cd(t) {
4329
4329
  i.length === 0 && Number(s) > 3 && (i = "3", t.preventDefault()), i.length === 1 && Number(s) > 31 && (i = "31", t.preventDefault()), s.length === 5 && Number(s.substring(3, 5)) > 12 && (i = i.substring(0, 3) + "12", t.preventDefault()), i = Sd(i, n), t.srcElement.value = i;
4330
4330
  }
4331
4331
  const xd = ["ВС", "ПН", "ВТ", "СР", "ЧТ", "ПТ", "СБ"], Md = "ru-RU";
4332
- class rt {
4332
+ class st {
4333
4333
  constructor() {
4334
4334
  a(this, "locale", "ru-RU");
4335
4335
  }
@@ -4340,7 +4340,7 @@ class rt {
4340
4340
  return i && (n.year = i.year || i.year === void 0 ? i.year : n.year, n.month = i.month || i.month === void 0 ? i.month : n.month, n.day = i.day || i.day === void 0 ? i.day : n.day, n.hour = i.hour ?? n.hour, n.minute = i.minute ?? n.minute), Intl.DateTimeFormat(Md, n).format(new Date(e));
4341
4341
  }
4342
4342
  static FormatWithTime(e) {
4343
- return rt.Format(e, {
4343
+ return st.Format(e, {
4344
4344
  month: "2-digit",
4345
4345
  day: "2-digit",
4346
4346
  year: "numeric",
@@ -4363,11 +4363,11 @@ class rt {
4363
4363
  return this.GetPeriod(n, s, e || { month: "2-digit", day: "numeric", year: void 0 });
4364
4364
  }
4365
4365
  static GetDurationInDay(e, i) {
4366
- const n = /* @__PURE__ */ new Date(), s = /* @__PURE__ */ new Date(), r = rt.SplitHourTime(e), o = rt.SplitHourTime(i);
4366
+ const n = /* @__PURE__ */ new Date(), s = /* @__PURE__ */ new Date(), r = st.SplitHourTime(e), o = st.SplitHourTime(i);
4367
4367
  return n.setHours(r[0], r[1], 0, 0), s.setHours(o[0], o[1], 0, 0), (s.getTime() - n.getTime()) / 1e3 / 60;
4368
4368
  }
4369
4369
  static HourTimeinMunutes(e) {
4370
- const i = rt.SplitHourTime(e);
4370
+ const i = st.SplitHourTime(e);
4371
4371
  return i[0] * 60 + i[1];
4372
4372
  }
4373
4373
  static SplitHourTime(e) {
@@ -4375,7 +4375,7 @@ class rt {
4375
4375
  return [Number(i[0]), Number(i[1])];
4376
4376
  }
4377
4377
  static AddMinutesToHM(e, i) {
4378
- const n = /* @__PURE__ */ new Date(), s = rt.SplitHourTime(e);
4378
+ const n = /* @__PURE__ */ new Date(), s = st.SplitHourTime(e);
4379
4379
  n.setHours(s[0], s[1], 0, 0);
4380
4380
  const r = new Date(n.getTime() + i * 6e4), o = r.getHours(), u = r.getMinutes();
4381
4381
  return `${o}:${u}`;
@@ -4397,7 +4397,7 @@ class rt {
4397
4397
  const n = [new Date(e)];
4398
4398
  let s = e;
4399
4399
  for (; s <= i; )
4400
- s = rt.AddDays(s, 1), n.push(s);
4400
+ s = st.AddDays(s, 1), n.push(s);
4401
4401
  return n;
4402
4402
  }
4403
4403
  static AddDays(e, i) {
@@ -4557,7 +4557,7 @@ function Ed() {
4557
4557
  };
4558
4558
  }
4559
4559
  const Td = (() => {
4560
- const t = (r, o) => ut(async () => {
4560
+ const t = (r, o) => lt(async () => {
4561
4561
  N.F.FTSP.Get().reset(), Pt.Set(o == null ? void 0 : o.sortsLib), await r();
4562
4562
  }), { saveButtonClick: e, showConfirmModal: i } = Ed(), n = (r) => Ad((o, u, l) => {
4563
4563
  i((r || s)(), l);
@@ -4701,7 +4701,7 @@ class Fd {
4701
4701
  return this.timelinePxHeight * this.timelines.length;
4702
4702
  }
4703
4703
  getHoursArr() {
4704
- return mt.GenerateNumsRange(this.startHour, this.endHour);
4704
+ return ft.GenerateNumsRange(this.startHour, this.endHour);
4705
4705
  }
4706
4706
  timeIsFree(e, i, n, s) {
4707
4707
  return s.filter((r) => r.id !== n).every(
@@ -4804,8 +4804,8 @@ class Ud {
4804
4804
  }
4805
4805
  var ee;
4806
4806
  let jd = (ee = class {
4807
- }, a(ee, "Arrays", mt), a(ee, "Axios", ri), a(ee, "BaseStore", ce), // static Phone = Phone;
4808
- a(ee, "Cache", Ki), a(ee, "Classes", F), a(ee, "CarouselSwipe", fd), a(ee, "Color", gd), a(ee, "CreateSortModels", So), a(ee, "Cursor", pd), a(ee, "DateMask", Cd), a(ee, "Dates", rt), a(ee, "Dragger", kd), a(ee, "Extension", Co), a(ee, "Favourite", Id), // static FTSP = FTSP;
4807
+ }, a(ee, "Arrays", ft), a(ee, "Axios", ri), a(ee, "BaseStore", ce), // static Phone = Phone;
4808
+ a(ee, "Cache", Ki), a(ee, "Classes", F), a(ee, "CarouselSwipe", fd), a(ee, "Color", gd), a(ee, "CreateSortModels", So), a(ee, "Cursor", pd), a(ee, "DateMask", Cd), a(ee, "Dates", st), a(ee, "Dragger", kd), a(ee, "Extension", Co), a(ee, "Favourite", Id), // static FTSP = FTSP;
4809
4809
  a(ee, "Hooks", Td), a(ee, "HttpClient", he), a(ee, "Id", ve), a(ee, "MakeCarousel", xo), a(ee, "Period", Ln), a(ee, "PhoneService", _n), a(ee, "Rating", zd), a(ee, "Router", gt), a(ee, "RouterGuard", Od), a(ee, "Scheduler", Fd), a(ee, "Scroll", Ld), // static Sizes = Sizes;
4810
4810
  a(ee, "Sorter", Bd), a(ee, "Static", rs), // static Statuses = Statuses;
4811
4811
  a(ee, "Strings", se), a(ee, "Time", te), a(ee, "Timer", ci), a(ee, "Token", hi), a(ee, "Menus", ms), // static useConfirmLeavePage = useConfirmLeavePage();
@@ -5322,7 +5322,7 @@ class xh extends Wr {
5322
5322
  this.resolve = void 0, this.reject = void 0, super.hide();
5323
5323
  }
5324
5324
  }
5325
- const dt = new xh();
5325
+ const ct = new xh();
5326
5326
  class Mh extends jr {
5327
5327
  Show() {
5328
5328
  super.show();
@@ -5334,7 +5334,7 @@ class Mh extends jr {
5334
5334
  const kh = new Mh();
5335
5335
  class bt {
5336
5336
  }
5337
- a(bt, "Admin", Ch), a(bt, "Dialog", dt), a(bt, "Loading", kh), a(bt, "Notify", ze(Fe)), a(bt, "Btn", Rt), a(bt, "Input", Nr);
5337
+ a(bt, "Admin", Ch), a(bt, "Dialog", ct), a(bt, "Loading", kh), a(bt, "Notify", ze(Fe)), a(bt, "Btn", Rt), a(bt, "Input", Nr);
5338
5338
  class N {
5339
5339
  }
5340
5340
  a(N, "Auth", ze(Ce)), a(N, "UI", ze(bt)), a(N, "Paginator", ze(Mo)), /**
@@ -6978,10 +6978,10 @@ const Pn = /* @__PURE__ */ new WeakMap(), vm = (t, e) => {
6978
6978
  }),
6979
6979
  emits: /* @__PURE__ */ Ee(["update:modelValue", "change", "beforeChange"], ["update:modelValue"]),
6980
6980
  setup(t, { emit: e }) {
6981
- const i = e, n = pt(t, "modelValue"), s = rt.Format(n.value), r = T(s), o = (l) => {
6981
+ const i = e, n = pt(t, "modelValue"), s = st.Format(n.value), r = T(s), o = (l) => {
6982
6982
  if (!u(l))
6983
6983
  return;
6984
- const c = rt.FromRuStr(l);
6984
+ const c = st.FromRuStr(l);
6985
6985
  n.value = c, i("beforeChange", c), i("change", c);
6986
6986
  }, u = (l) => l.length != 10 ? (r.value = s, Fe.Error("Неверный формат даты"), !1) : Number(r.value.slice(0, 2)) > 31 ? (r.value = s, Fe.Error("Неверный день месяца"), !1) : Number(r.value.slice(3, 5)) > 12 ? (r.value = s, Fe.Error("Неверный месяц"), !1) : Number(r.value.slice(6, 10)) > 2100 ? (r.value = s, Fe.Error("Неверный год"), !1) : !0;
6987
6987
  return (l, c) => {
@@ -7732,7 +7732,10 @@ const cv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7732
7732
  }, Symbol.toStringTag, { value: "Module" })), tg = {
7733
7733
  key: 0,
7734
7734
  class: "mainblock"
7735
- }, ig = { class: "mainblock-right" }, ng = { class: "title" }, sg = { class: "body" }, rg = /* @__PURE__ */ $({
7735
+ }, ig = { class: "mainblock-right" }, ng = {
7736
+ key: 0,
7737
+ class: "title"
7738
+ }, sg = { class: "body" }, rg = /* @__PURE__ */ $({
7736
7739
  __name: "AdaptiveContainer",
7737
7740
  props: {
7738
7741
  menuWidth: {
@@ -7750,7 +7753,7 @@ const cv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7750
7753
  const e = t, i = T(!1), n = T(!0), s = T(window.matchMedia("(max-width: 1330px)").matches), r = () => {
7751
7754
  n.value = !n.value;
7752
7755
  };
7753
- return ut(async () => {
7756
+ return lt(async () => {
7754
7757
  window.addEventListener("resize", () => {
7755
7758
  switch (e.mobileWidth) {
7756
7759
  case "1330px":
@@ -7790,7 +7793,7 @@ const cv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7790
7793
  ], 4)
7791
7794
  ], 4),
7792
7795
  f("div", ig, [
7793
- f("div", ng, [
7796
+ o.$slots.title ? (m(), w("div", ng, [
7794
7797
  f("div", {
7795
7798
  class: "icon",
7796
7799
  style: I({
@@ -7801,7 +7804,7 @@ const cv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7801
7804
  P(o.$slots, "icon", {}, void 0, !0)
7802
7805
  ], 4),
7803
7806
  P(o.$slots, "title", {}, void 0, !0)
7804
- ]),
7807
+ ])) : J("", !0),
7805
7808
  f("div", sg, [
7806
7809
  P(o.$slots, "body", {}, void 0, !0)
7807
7810
  ])
@@ -7809,7 +7812,7 @@ const cv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7809
7812
  ])) : J("", !0)
7810
7813
  ], 64));
7811
7814
  }
7812
- }), ua = /* @__PURE__ */ A(rg, [["__scopeId", "data-v-df55a859"]]), og = { class: "mainblock-right" }, ag = { class: "body" }, lg = /* @__PURE__ */ $({
7815
+ }), ua = /* @__PURE__ */ A(rg, [["__scopeId", "data-v-48495c0d"]]), og = { class: "mainblock-right" }, ag = { class: "body" }, lg = /* @__PURE__ */ $({
7813
7816
  __name: "AdaptiveContainerHorizontal",
7814
7817
  props: {
7815
7818
  menuWidth: {
@@ -7837,7 +7840,7 @@ const cv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7837
7840
  const e = t, i = T(!1), n = T(!0), s = T(window.matchMedia("(max-width: 1330px)").matches), r = () => {
7838
7841
  n.value = !n.value;
7839
7842
  };
7840
- return ut(async () => {
7843
+ return lt(async () => {
7841
7844
  window.addEventListener("resize", () => {
7842
7845
  switch (e.mobileWidth) {
7843
7846
  case "1330px":
@@ -7966,7 +7969,7 @@ const cv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7966
7969
  ], 2));
7967
7970
  }
7968
7971
  }), Rs = /* @__PURE__ */ A(ug, [["__scopeId", "data-v-a3c4743c"]]);
7969
- var ht = /* @__PURE__ */ ((t) => (t.None = "None", t.Next = "Next", t.Prev = "Prev", t))(ht || {});
7972
+ var dt = /* @__PURE__ */ ((t) => (t.None = "None", t.Next = "Next", t.Prev = "Prev", t))(dt || {});
7970
7973
  const cg = { class: "container" }, dg = { class: "slide-box" }, hg = { class: "image" }, fg = { class: "image-box" }, mg = ["id", "src", "alt"], gg = { class: "link-number" }, pg = ["id", "onClick"], vg = /* @__PURE__ */ $({
7971
7974
  __name: "CarouselImages",
7972
7975
  props: {
@@ -8001,17 +8004,17 @@ const cg = { class: "container" }, dg = { class: "slide-box" }, hg = { class: "i
8001
8004
  Lr((y) => ({
8002
8005
  "582c9d05": i
8003
8006
  }));
8004
- const e = t, i = `${e.animationTime}ms`, n = T(e.startActiveGroupIndex), s = T(ht.None), r = T(xo(e.events, e.quantity)), o = ue(() => r.value[n.value]);
8007
+ const e = t, i = `${e.animationTime}ms`, n = T(e.startActiveGroupIndex), s = T(dt.None), r = T(xo(e.events, e.quantity)), o = ue(() => r.value[n.value]);
8005
8008
  Xt(() => {
8006
8009
  });
8007
8010
  const u = () => n.value = n.value + 1 < r.value.length ? n.value + 1 : 0, l = () => n.value = n.value - 1 < 0 ? r.value.length - 1 : n.value - 1, c = (y) => {
8008
- s.value = y, setTimeout(() => s.value = ht.None, e.animationTime);
8011
+ s.value = y, setTimeout(() => s.value = dt.None, e.animationTime);
8009
8012
  }, d = (y) => {
8010
- y != n.value && (c(y < n.value ? ht.Prev : ht.Next), setTimeout(() => n.value = y, e.animationTime / 2));
8013
+ y != n.value && (c(y < n.value ? dt.Prev : dt.Next), setTimeout(() => n.value = y, e.animationTime / 2));
8011
8014
  }, h = () => {
8012
- c(ht.Next), setTimeout(u, e.animationTime / 2);
8015
+ c(dt.Next), setTimeout(u, e.animationTime / 2);
8013
8016
  }, g = () => {
8014
- c(ht.Prev), setTimeout(l, e.animationTime / 2);
8017
+ c(dt.Prev), setTimeout(l, e.animationTime / 2);
8015
8018
  };
8016
8019
  return (y, x) => (m(), w("div", {
8017
8020
  class: "field",
@@ -8028,8 +8031,8 @@ const cg = { class: "container" }, dg = { class: "slide-box" }, hg = { class: "i
8028
8031
  (m(!0), w(V, null, Oe(p(o), (C, M) => (m(), w("div", {
8029
8032
  key: M,
8030
8033
  class: ne({
8031
- animationnext: p(s) === p(ht).Next,
8032
- animationprev: p(s) === p(ht).Prev
8034
+ animationnext: p(s) === p(dt).Next,
8035
+ animationprev: p(s) === p(dt).Prev
8033
8036
  })
8034
8037
  }, [
8035
8038
  f("div", hg, [
@@ -8213,7 +8216,7 @@ const ma = /* @__PURE__ */ A(bg, [["render", Cg], ["__scopeId", "data-v-d28c6f33
8213
8216
  emits: ["load"],
8214
8217
  setup(t, { emit: e }) {
8215
8218
  const i = t, n = T(!1), s = e, r = () => {
8216
- i.model.setBoolean(n.value), n.value ? Qe.Get().setF(i.model) : Qe.Get().removeF(i.model), s("load");
8219
+ i.model.setBoolean(n.value), n.value ? N.F.FTSP.Get().setF(i.model) : N.F.FTSP.Get().removeF(i.model), s("load");
8217
8220
  };
8218
8221
  return (o, u) => {
8219
8222
  const l = B("PCheckBox");
@@ -8226,7 +8229,7 @@ const ma = /* @__PURE__ */ A(bg, [["render", Cg], ["__scopeId", "data-v-d28c6f33
8226
8229
  }, null, 8, ["modelValue", "label"]);
8227
8230
  };
8228
8231
  }
8229
- }), pa = /* @__PURE__ */ A(Ig, [["__scopeId", "data-v-2b95a799"]]), Rg = /* @__PURE__ */ $({
8232
+ }), pa = /* @__PURE__ */ A(Ig, [["__scopeId", "data-v-72984c94"]]), Rg = /* @__PURE__ */ $({
8230
8233
  __name: "FiltersButtonsSelect",
8231
8234
  props: {
8232
8235
  models: {
@@ -8242,7 +8245,7 @@ const ma = /* @__PURE__ */ A(bg, [["render", Cg], ["__scopeId", "data-v-d28c6f33
8242
8245
  emits: ["load"],
8243
8246
  setup(t, { emit: e }) {
8244
8247
  const i = e, n = T(void 0), s = async (o) => {
8245
- Qe.Get().replaceF(o, n.value), n.value = o, Qe.Get().p.drop();
8248
+ mt.Get().replaceF(o, n.value), n.value = o, mt.Get().p.drop();
8246
8249
  }, r = async (o) => {
8247
8250
  await s(o), i("load");
8248
8251
  };
@@ -8307,7 +8310,7 @@ const ma = /* @__PURE__ */ A(bg, [["render", Cg], ["__scopeId", "data-v-d28c6f33
8307
8310
  },
8308
8311
  emits: ["load"],
8309
8312
  setup(t, { emit: e }) {
8310
- const i = e, n = Qe.Get(), s = T(void 0), r = async (u) => {
8313
+ const i = e, n = mt.Get(), s = T(void 0), r = async (u) => {
8311
8314
  n.replaceF(u, s.value), s.value = u;
8312
8315
  }, o = async (u) => {
8313
8316
  u ? await r(s.value) : await r(void 0), i("load");
@@ -8335,7 +8338,7 @@ const ma = /* @__PURE__ */ A(bg, [["render", Cg], ["__scopeId", "data-v-d28c6f33
8335
8338
  }), ya = /* @__PURE__ */ A(Ag, [["__scopeId", "data-v-ae66df57"]]), Pg = /* @__PURE__ */ $({
8336
8339
  __name: "FTSPPanel",
8337
8340
  setup(t) {
8338
- return ut(async () => {
8341
+ return lt(async () => {
8339
8342
  }), (e, i) => (m(), w("div"));
8340
8343
  }
8341
8344
  }), wa = /* @__PURE__ */ A(Pg, [["__scopeId", "data-v-e280d85b"]]), Eg = /* @__PURE__ */ $({
@@ -8819,7 +8822,7 @@ const ma = /* @__PURE__ */ A(bg, [["render", Cg], ["__scopeId", "data-v-d28c6f33
8819
8822
  __name: "PDialog",
8820
8823
  setup(t) {
8821
8824
  const e = ue(() => {
8822
- switch (dt.GetType()) {
8825
+ switch (ct.GetType()) {
8823
8826
  case "info":
8824
8827
  return "message primary";
8825
8828
  case "success":
@@ -8836,26 +8839,26 @@ const ma = /* @__PURE__ */ A(bg, [["render", Cg], ["__scopeId", "data-v-d28c6f33
8836
8839
  const s = B("MessageBody"), r = B("PButton");
8837
8840
  return m(), U(Hr, { name: "fade" }, {
8838
8841
  default: X(() => [
8839
- p(dt).IsVisible() ? (m(), w("div", {
8842
+ p(ct).IsVisible() ? (m(), w("div", {
8840
8843
  key: 0,
8841
8844
  class: ne(p(e))
8842
8845
  }, [
8843
8846
  R(s, {
8844
- title: p(dt).GetTitle(),
8845
- text: p(dt).GetText()
8847
+ title: p(ct).GetTitle(),
8848
+ text: p(ct).GetText()
8846
8849
  }, null, 8, ["title", "text"]),
8847
8850
  f("div", _g, [
8848
8851
  R(r, {
8849
8852
  type: "primary",
8850
- text: p(dt).GetConfirmButtonText(),
8853
+ text: p(ct).GetConfirmButtonText(),
8851
8854
  margin: "10px 0 0 0",
8852
- onClick: n[0] || (n[0] = (o) => p(dt).Submit())
8855
+ onClick: n[0] || (n[0] = (o) => p(ct).Submit())
8853
8856
  }, null, 8, ["text"]),
8854
8857
  R(r, {
8855
8858
  type: "warning",
8856
- text: p(dt).GetCancelButtonText(),
8859
+ text: p(ct).GetCancelButtonText(),
8857
8860
  margin: "10px 0 0 0",
8858
- onClick: n[1] || (n[1] = (o) => p(dt).Cancel())
8861
+ onClick: n[1] || (n[1] = (o) => p(ct).Cancel())
8859
8862
  }, null, 8, ["text"])
8860
8863
  ])
8861
8864
  ], 2)) : J("", !0)
@@ -8926,16 +8929,16 @@ const Ia = /* @__PURE__ */ A(Yg, [["render", Jg], ["__scopeId", "data-v-0f1f2f84
8926
8929
  if (g !== r.curPage && (g < 1 && (g = 1), g > r.pagesCount() && (g = r.pagesCount()), !i.showConfirm))
8927
8930
  return await c(g);
8928
8931
  }, c = async (g, y) => {
8929
- r.setCurPage(g), Qe.Get().p.offset = (g - 1) * r.limit, await i.store.FTSP(), h();
8932
+ r.setCurPage(g), mt.Get().p.offset = (g - 1) * r.limit, await i.store.FTSP(), h();
8930
8933
  }, d = ue(() => {
8931
8934
  const g = r.pagesCount();
8932
- return g < 8 ? mt.GenerateNumsRange(2, g - 1).filter((y) => y < g && y > 1) : mt.GenerateNumsRange(r.curPage - 2, r.curPage + 3).filter((y) => y < g && y > 1);
8935
+ return g < 8 ? ft.GenerateNumsRange(2, g - 1).filter((y) => y < g && y > 1) : ft.GenerateNumsRange(r.curPage - 2, r.curPage + 3).filter((y) => y < g && y > 1);
8933
8936
  }), h = () => {
8934
8937
  const g = document.querySelector(".el-table__body-wrapper"), y = document.querySelector("#list");
8935
8938
  g ? g.scrollTo({ top: 0 }) : y && y.scrollTo({ top: 0 });
8936
8939
  };
8937
8940
  return ss(() => {
8938
- Qe.Get().p.drop();
8941
+ mt.Get().p.drop();
8939
8942
  }), (g, y) => {
8940
8943
  const x = B("ArrowLeft"), C = B("PButton"), M = B("DoubleArrowLeft"), D = B("EllipsisSvg"), Y = B("DoubleArrowRight"), W = B("ArrowRight");
8941
8944
  return m(), w("div", Qg, [
@@ -9259,7 +9262,7 @@ const Ia = /* @__PURE__ */ A(Yg, [["render", Jg], ["__scopeId", "data-v-0f1f2f84
9259
9262
  const i = t, n = e, s = T(!1), r = T(window.matchMedia("(max-width: 768px)").matches), o = (l) => {
9260
9263
  n("toggle", l);
9261
9264
  }, u = T(!1);
9262
- return ut(async () => {
9265
+ return lt(async () => {
9263
9266
  window.addEventListener("resize", () => {
9264
9267
  switch (i.mobileWidth) {
9265
9268
  case "1330px":
@@ -9381,7 +9384,7 @@ const Ia = /* @__PURE__ */ A(Yg, [["render", Jg], ["__scopeId", "data-v-0f1f2f84
9381
9384
  emits: ["load"],
9382
9385
  setup(t, { emit: e }) {
9383
9386
  const i = T(!1), n = e, s = T();
9384
- ut(() => {
9387
+ lt(() => {
9385
9388
  i.value = !0, s.value = Pt.GetDefault();
9386
9389
  });
9387
9390
  const r = async (u) => {
@@ -9424,11 +9427,11 @@ const Ia = /* @__PURE__ */ A(Yg, [["render", Jg], ["__scopeId", "data-v-0f1f2f84
9424
9427
  emits: ["load"],
9425
9428
  setup(t, { emit: e }) {
9426
9429
  const i = e, n = T();
9427
- ut(() => {
9430
+ lt(() => {
9428
9431
  n.value = Pt.GetDefault();
9429
9432
  });
9430
9433
  const s = async (o) => {
9431
- o || (n.value = Pt.GetDefault()), Qe.Get().setSortModel(n.value), Qe.Get().p.drop(), i("load");
9434
+ o || (n.value = Pt.GetDefault()), mt.Get().setSortModel(n.value), mt.Get().p.drop(), i("load");
9432
9435
  }, r = async (o) => {
9433
9436
  await s(o);
9434
9437
  };
@@ -10280,7 +10283,7 @@ const el = /* @__PURE__ */ A(V1, [["render", _1]]), Z1 = $({
10280
10283
  };
10281
10284
  return au(() => {
10282
10285
  t.activeId && t.activeId !== t.tabId && (i.value = !0);
10283
- }), ut(() => {
10286
+ }), lt(() => {
10284
10287
  t.activeId && t.activeId !== t.tabId && (i.value = !1);
10285
10288
  }), {
10286
10289
  collapsed: i,
@@ -10967,7 +10970,7 @@ const fv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10967
10970
  };
10968
10971
  Xt(() => window.addEventListener("resize", u)), Fr(() => window.removeEventListener("resize", u));
10969
10972
  const l = ue(() => `calc(100% - ${o.value}px + 1px)`);
10970
- ut(() => {
10973
+ lt(() => {
10971
10974
  i.menus.Select();
10972
10975
  });
10973
10976
  const c = (d) => {
@@ -11245,7 +11248,7 @@ var Ir, kp, ki, pe = (Ir = function(t) {
11245
11248
  return function() {
11246
11249
  throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs");
11247
11250
  }(e == null && ki.path);
11248
- } }, ki.exports), ki.exports), et = function(t) {
11251
+ } }, ki.exports), ki.exports), Ke = function(t) {
11249
11252
  return function(e, i) {
11250
11253
  if (!e) return t;
11251
11254
  var n;
@@ -11410,7 +11413,7 @@ zs.render = function(t, e, i, n, s, r) {
11410
11413
  return r.onMouseLeave && r.onMouseLeave.apply(r, arguments);
11411
11414
  }) }, [P(t.$slots, "default")], 34);
11412
11415
  };
11413
- var Tn = et("vue-handler-wrapper"), vl = { name: "HandlerWrapper", components: { DraggableElement: zs }, props: { horizontalPosition: { type: String }, verticalPosition: { type: String }, disabled: { type: Boolean, default: !1 } }, computed: { classes: function() {
11416
+ var Tn = Ke("vue-handler-wrapper"), vl = { name: "HandlerWrapper", components: { DraggableElement: zs }, props: { horizontalPosition: { type: String }, verticalPosition: { type: String }, disabled: { type: Boolean, default: !1 } }, computed: { classes: function() {
11414
11417
  var t;
11415
11418
  if (this.horizontalPosition || this.verticalPosition) {
11416
11419
  var e, i = fl(this.horizontalPosition, this.verticalPosition);
@@ -11432,7 +11435,7 @@ vl.render = function(t, e, i, n, s, r) {
11432
11435
  return [P(t.$slots, "default")];
11433
11436
  }), _: 3 }, 8, ["class"])], 2);
11434
11437
  };
11435
- var $p = et("vue-line-wrapper"), yl = { name: "LineWrapper", components: { DraggableElement: zs }, props: { position: { type: String, required: !0 }, disabled: { type: Boolean, default: !1 } }, computed: { classname: function() {
11438
+ var $p = Ke("vue-line-wrapper"), yl = { name: "LineWrapper", components: { DraggableElement: zs }, props: { position: { type: String, required: !0 }, disabled: { type: Boolean, default: !1 } }, computed: { classname: function() {
11436
11439
  var t;
11437
11440
  return $p((Ge(t = {}, this.position, !0), Ge(t, "disabled", this.disabled), t));
11438
11441
  } }, emits: ["leave", "enter", "drag", "drag-end"] };
@@ -11450,13 +11453,13 @@ yl.render = function(t, e, i, n, s, r) {
11450
11453
  return [P(t.$slots, "default")];
11451
11454
  }), _: 3 }, 8, ["class"]);
11452
11455
  };
11453
- var at = ["left", "right", "top", "bottom"], Ap = ["left", "right"], Pp = ["top", "bottom"], Ep = ["left", "top"], Tp = ["fill-area", "fit-area", "stencil", "none"], Ar = { left: 0, top: 0, width: 0, height: 0 };
11456
+ var ot = ["left", "right", "top", "bottom"], Ap = ["left", "right"], Pp = ["top", "bottom"], Ep = ["left", "top"], Tp = ["fill-area", "fit-area", "stencil", "none"], Ar = { left: 0, top: 0, width: 0, height: 0 };
11454
11457
  function Pr(t, e, i) {
11455
11458
  return !(i = i || ["width", "height", "left", "top"]).some(function(n) {
11456
11459
  return t[n] !== e[n];
11457
11460
  });
11458
11461
  }
11459
- function lt(t) {
11462
+ function at(t) {
11460
11463
  return { left: t.left, top: t.top, right: t.left + t.width, bottom: t.top + t.height };
11461
11464
  }
11462
11465
  function Vt(t, e) {
@@ -11467,12 +11470,12 @@ function Me(t) {
11467
11470
  }
11468
11471
  function fi(t, e) {
11469
11472
  var i = { left: 0, top: 0, right: 0, bottom: 0 };
11470
- return at.forEach(function(n) {
11471
- var s = e[n], r = lt(t)[n];
11473
+ return ot.forEach(function(n) {
11474
+ var s = e[n], r = at(t)[n];
11472
11475
  i[n] = s !== void 0 && r !== void 0 ? n === "left" || n === "top" ? Math.max(0, s - r) : Math.max(0, r - s) : 0;
11473
11476
  }), i;
11474
11477
  }
11475
- function ot(t, e) {
11478
+ function rt(t, e) {
11476
11479
  return { left: t.left - e.left, top: t.top - e.top, width: t.width + e.left + e.right, height: t.height + e.top + e.bottom };
11477
11480
  }
11478
11481
  function mn(t) {
@@ -11535,7 +11538,7 @@ function zp(t, e) {
11535
11538
  function Sl(t, e, i) {
11536
11539
  i === void 0 && (i = !0);
11537
11540
  var n = {};
11538
- return at.forEach(function(s) {
11541
+ return ot.forEach(function(s) {
11539
11542
  var r = t[s], o = e[s];
11540
11543
  r !== void 0 && o !== void 0 ? n[s] = s === "left" || s === "top" ? i ? Math.max(r, o) : Math.min(r, o) : i ? Math.min(r, o) : Math.max(r, o) : o !== void 0 ? n[s] = o : r !== void 0 && (n[s] = r);
11541
11544
  }), n;
@@ -11550,7 +11553,7 @@ function Er(t) {
11550
11553
  function Tr(t, e) {
11551
11554
  return Math.pow(t.width - e.width, 2) + Math.pow(t.height - e.height, 2);
11552
11555
  }
11553
- function ft(t) {
11556
+ function ht(t) {
11554
11557
  var e = t.width, i = t.height, n = t.sizeRestrictions, s = { minimum: t.aspectRatio && t.aspectRatio.minimum || 0, maximum: t.aspectRatio && t.aspectRatio.maximum || 1 / 0 }, r = { width: Math.max(n.minWidth, Math.min(n.maxWidth, e)), height: Math.max(n.minHeight, Math.min(n.maxHeight, i)) };
11555
11558
  function o(c, d) {
11556
11559
  return d === void 0 && (d = !1), c.reduce(function(h, g) {
@@ -11575,7 +11578,7 @@ function Op(t) {
11575
11578
  return (Array.isArray(i) ? i : [i]).forEach(function(d) {
11576
11579
  var h = {};
11577
11580
  be((h = typeof d == "function" ? d({ coordinates: c, imageSize: n, visibleArea: u }) : d).width) && be(h.height) || (c = function(g, y) {
11578
- var x = j(j(j({}, g), ft({ width: y.width, height: y.height, sizeRestrictions: s, aspectRatio: o })), { left: 0, top: 0 });
11581
+ var x = j(j(j({}, g), ht({ width: y.width, height: y.height, sizeRestrictions: s, aspectRatio: o })), { left: 0, top: 0 });
11579
11582
  return l(x, { left: g.left, top: g.top });
11580
11583
  }(c, j(j({}, c), h))), be(h.left) && be(h.top) || (c = l(c, j(j({}, c), h)));
11581
11584
  }), c;
@@ -11587,9 +11590,9 @@ function Fp(t) {
11587
11590
  var r = t.stencilSize, o = t.sizeRestrictions, u = t.positionRestrictions;
11588
11591
  t.stencilReference;
11589
11592
  var l, c, d, h = j({}, n), g = j({}, s), y = j({}, r);
11590
- l = oe(y), c = oe(h), d === void 0 && (d = 1e-3), (l === 0 || c === 0 ? Math.abs(c - l) < d : Math.abs(c / l) < 1 + d && Math.abs(c / l) > 1 - d) || (h = j(j({}, h), ft({ sizeRestrictions: o, width: h.width, height: h.height, aspectRatio: { minimum: oe(y), maximum: oe(y) } })));
11593
+ l = oe(y), c = oe(h), d === void 0 && (d = 1e-3), (l === 0 || c === 0 ? Math.abs(c - l) < d : Math.abs(c / l) < 1 + d && Math.abs(c / l) > 1 - d) || (h = j(j({}, h), ht({ sizeRestrictions: o, width: h.width, height: h.height, aspectRatio: { minimum: oe(y), maximum: oe(y) } })));
11591
11594
  var x = gn(g = Ve(g, h.width * i.width / (g.width * y.width)), e({ visibleArea: g, type: "resize" }));
11592
- return x !== 1 && (g = Ve(g, x), h = Ve(h, x)), g = ke(g = Be(g, Vt(Me(h), Me(g))), e({ visibleArea: g, type: "move" })), { coordinates: h = ke(h, pn(lt(g), u)), visibleArea: g };
11595
+ return x !== 1 && (g = Ve(g, x), h = Ve(h, x)), g = ke(g = Be(g, Vt(Me(h), Me(g))), e({ visibleArea: g, type: "move" })), { coordinates: h = ke(h, pn(at(g), u)), visibleArea: g };
11593
11596
  }
11594
11597
  function Dp(t) {
11595
11598
  var e = t.event, i = t.getAreaRestrictions, n = t.boundaries, s = t.coordinates, r = t.visibleArea;
@@ -11601,7 +11604,7 @@ function Dp(t) {
11601
11604
  var c = { width: 0, height: 0 };
11602
11605
  l.width, n.width, oe(n) > oe(u) ? (c.height = 0.8 * n.height, c.width = c.height * oe(u)) : (c.width = 0.8 * n.width, c.height = c.width * oe(u));
11603
11606
  var d = gn(l = Ve(l, u.width * n.width / (l.width * c.width)), i({ visibleArea: l, type: "resize" }));
11604
- l = Ve(l, d), d !== 1 && (c.height /= d, c.width /= d), l = ke(l = Be(l, Vt(Me(u), Me(l))), i({ visibleArea: l, type: "move" })), u = ke(u, pn(lt(l), o));
11607
+ l = Ve(l, d), d !== 1 && (c.height /= d, c.width /= d), l = ke(l = Be(l, Vt(Me(u), Me(l))), i({ visibleArea: l, type: "move" })), u = ke(u, pn(at(l), o));
11605
11608
  }
11606
11609
  return { coordinates: u, visibleArea: l };
11607
11610
  }
@@ -11609,7 +11612,7 @@ function Lp(t) {
11609
11612
  var e = t.event, i = t.coordinates, n = t.visibleArea, s = t.getAreaRestrictions, r = j({}, n), o = j({}, i);
11610
11613
  if (e.type === "setCoordinates") {
11611
11614
  var u = Math.max(0, o.width - r.width), l = Math.max(0, o.height - r.height);
11612
- u > l ? r = Ve(r, Math.min(o.width / r.width, _t(r, s({ visibleArea: r, type: "resize" })))) : l > u && (r = Ve(r, Math.min(o.height / r.height, _t(r, s({ visibleArea: r, type: "resize" }))))), r = ke(r = Be(r, mn(Zt(o, lt(r)))), s({ visibleArea: r, type: "move" }));
11615
+ u > l ? r = Ve(r, Math.min(o.width / r.width, _t(r, s({ visibleArea: r, type: "resize" })))) : l > u && (r = Ve(r, Math.min(o.height / r.height, _t(r, s({ visibleArea: r, type: "resize" }))))), r = ke(r = Be(r, mn(Zt(o, at(r)))), s({ visibleArea: r, type: "move" }));
11613
11616
  }
11614
11617
  return { visibleArea: r, coordinates: o };
11615
11618
  }
@@ -11619,23 +11622,23 @@ function Bp(t) {
11619
11622
  }
11620
11623
  function Hp(t) {
11621
11624
  var e = t.imageSize, i = t.visibleArea, n = t.aspectRatio, s = t.sizeRestrictions, r = i || e, o = Math.min(n.maximum || 1 / 0, Math.max(n.minimum || 0, oe(r))), u = r.width < r.height ? { width: 0.8 * r.width, height: 0.8 * r.width / o } : { height: 0.8 * r.height, width: 0.8 * r.height * o };
11622
- return ft(j(j({}, u), { aspectRatio: n, sizeRestrictions: s }));
11625
+ return ht(j(j({}, u), { aspectRatio: n, sizeRestrictions: s }));
11623
11626
  }
11624
11627
  function qp(t) {
11625
11628
  var e, i, n = t.imageSize, s = t.visibleArea, r = t.boundaries, o = t.aspectRatio, u = t.sizeRestrictions, l = t.stencilSize, c = s || n;
11626
- return oe(c) > oe(r) ? i = (e = l.height * c.height / r.height) * oe(l) : e = (i = l.width * c.width / r.width) / oe(l), ft({ width: i, height: e, aspectRatio: o, sizeRestrictions: u });
11629
+ return oe(c) > oe(r) ? i = (e = l.height * c.height / r.height) * oe(l) : e = (i = l.width * c.width / r.width) / oe(l), ht({ width: i, height: e, aspectRatio: o, sizeRestrictions: u });
11627
11630
  }
11628
11631
  function Np(t) {
11629
11632
  var e = t.getAreaRestrictions, i = t.coordinates, n = t.imageSize, s = oe(t.boundaries);
11630
11633
  if (i) {
11631
- var r = { height: Math.max(i.height, n.height), width: Math.max(i.width, n.width) }, o = wl({ width: oe(r) > s ? r.width : r.height * s, height: oe(r) > s ? r.width / s : r.height }, Kn(e())), u = { left: i.left + i.width / 2 - o.width / 2, top: i.top + i.height / 2 - o.height / 2, width: o.width, height: o.height }, l = fi(i, lt(j({ left: 0, top: 0 }, n))), c = {};
11634
+ var r = { height: Math.max(i.height, n.height), width: Math.max(i.width, n.width) }, o = wl({ width: oe(r) > s ? r.width : r.height * s, height: oe(r) > s ? r.width / s : r.height }, Kn(e())), u = { left: i.left + i.width / 2 - o.width / 2, top: i.top + i.height / 2 - o.height / 2, width: o.width, height: o.height }, l = fi(i, at(j({ left: 0, top: 0 }, n))), c = {};
11632
11635
  return !l.left && !l.right && u.width <= n.width && (c.left = 0, c.right = n.width), !l.top && !l.bottom && u.height <= n.height && (c.top = 0, c.bottom = n.height), ke(u, c);
11633
11636
  }
11634
11637
  var d = oe(n);
11635
11638
  return o = { height: d > s ? n.height : n.width / s, width: d > s ? n.height * s : n.width }, { left: n.width / 2 - o.width / 2, top: n.height / 2 - o.height / 2, width: o.width, height: o.height };
11636
11639
  }
11637
11640
  function Ri(t, e) {
11638
- return Sl(t, lt(e));
11641
+ return Sl(t, at(e));
11639
11642
  }
11640
11643
  function Up(t) {
11641
11644
  var e = t.event, i = t.coordinates, n = t.visibleArea, s = t.sizeRestrictions, r = t.getAreaRestrictions, o = t.positionRestrictions, u = t.adjustStencil, l = e.scale, c = e.move, d = j({}, n), h = j({}, i), g = 1, y = 1, x = l.factor && Math.abs(l.factor - 1) > 1e-3;
@@ -11643,11 +11646,11 @@ function Up(t) {
11643
11646
  var C = { stencil: { minimum: Math.max(s.minWidth ? s.minWidth / h.width : 0, s.minHeight ? s.minHeight / h.height : 0), maximum: Math.min(s.maxWidth ? s.maxWidth / h.width : 1 / 0, s.maxHeight ? s.maxHeight / h.height : 1 / 0, _t(h, o)) }, area: { maximum: _t(d, r({ visibleArea: d, type: "resize" })) } };
11644
11647
  l.factor && x && (l.factor < 1 ? (y = Math.max(l.factor, C.stencil.minimum)) > 1 && (y = 1) : l.factor > 1 && (y = Math.min(l.factor, Math.min(C.area.maximum, C.stencil.maximum))) < 1 && (y = 1)), y && (d = Ve(d, y, l.center));
11645
11648
  var M = i.left - n.left, D = n.width + n.left - (i.width + i.left), Y = i.top - n.top, W = n.height + n.top - (i.height + i.top);
11646
- return d = ke(d = Be(d, Zt(d, { left: o.left !== void 0 ? o.left - M * y : void 0, top: o.top !== void 0 ? o.top - Y * y : void 0, bottom: o.bottom !== void 0 ? o.bottom + W * y : void 0, right: o.right !== void 0 ? o.right + D * y : void 0 })), r({ visibleArea: d, type: "move" })), h.width = h.width * y, h.height = h.height * y, h.left = d.left + M * y, h.top = d.top + Y * y, h = ke(h, pn(lt(d), o)), l.factor && x && u && (l.factor > 1 ? g = Math.min(C.area.maximum, l.factor) / y : l.factor < 1 && (g = Math.max(h.height / d.height, h.width / d.width, l.factor / y)), g !== 1 && (d = Be(d = ke(d = Ve(d, g, l.factor > 1 ? l.center : Me(h)), r({ visibleArea: d, type: "move" })), mn(Zt(h, lt(d)))))), { coordinates: h, visibleArea: d };
11649
+ return d = ke(d = Be(d, Zt(d, { left: o.left !== void 0 ? o.left - M * y : void 0, top: o.top !== void 0 ? o.top - Y * y : void 0, bottom: o.bottom !== void 0 ? o.bottom + W * y : void 0, right: o.right !== void 0 ? o.right + D * y : void 0 })), r({ visibleArea: d, type: "move" })), h.width = h.width * y, h.height = h.height * y, h.left = d.left + M * y, h.top = d.top + Y * y, h = ke(h, pn(at(d), o)), l.factor && x && u && (l.factor > 1 ? g = Math.min(C.area.maximum, l.factor) / y : l.factor < 1 && (g = Math.max(h.height / d.height, h.width / d.width, l.factor / y)), g !== 1 && (d = Be(d = ke(d = Ve(d, g, l.factor > 1 ? l.center : Me(h)), r({ visibleArea: d, type: "move" })), mn(Zt(h, at(d)))))), { coordinates: h, visibleArea: d };
11647
11650
  }
11648
11651
  function jp(t) {
11649
11652
  var e = t.aspectRatio, i = t.getAreaRestrictions, n = t.coordinates, s = t.visibleArea, r = t.sizeRestrictions, o = t.positionRestrictions, u = t.imageSize, l = t.previousImageSize, c = t.angle, d = j({}, n), h = j({}, s), g = Ct(Me(j({ left: 0, top: 0 }, l)), c);
11650
- return (d = j(j({}, ft({ sizeRestrictions: r, aspectRatio: e, width: d.width, height: d.height })), Ct(Me(d), c))).left -= g.left - u.width / 2 + d.width / 2, d.top -= g.top - u.height / 2 + d.height / 2, h = Ve(h, gn(h, i({ visibleArea: h, type: "resize" }))), { coordinates: d = ke(d, o), visibleArea: h = ke(h = Be(h, Vt(Me(d), Me(n))), i({ visibleArea: h, type: "move" })) };
11653
+ return (d = j(j({}, ht({ sizeRestrictions: r, aspectRatio: e, width: d.width, height: d.height })), Ct(Me(d), c))).left -= g.left - u.width / 2 + d.width / 2, d.top -= g.top - u.height / 2 + d.height / 2, h = Ve(h, gn(h, i({ visibleArea: h, type: "resize" }))), { coordinates: d = ke(d, o), visibleArea: h = ke(h = Be(h, Vt(Me(d), Me(n))), i({ visibleArea: h, type: "move" })) };
11651
11654
  }
11652
11655
  function Wp(t) {
11653
11656
  var e = t.flip, i = t.previousFlip, n = t.rotate, s = t.getAreaRestrictions, r = t.coordinates, o = t.visibleArea, u = t.imageSize, l = j({}, r), c = j({}, o), d = i.horizontal !== e.horizontal, h = i.vertical !== e.vertical;
@@ -11658,27 +11661,27 @@ function Wp(t) {
11658
11661
  return { coordinates: l, visibleArea: c };
11659
11662
  }
11660
11663
  function zr(t) {
11661
- var e = t.directions, i = t.coordinates, n = t.positionRestrictions, s = n === void 0 ? {} : n, r = t.sizeRestrictions, o = t.preserveRatio, u = t.compensate, l = j({}, e), c = ot(i, l).width, d = ot(i, l).height;
11664
+ var e = t.directions, i = t.coordinates, n = t.positionRestrictions, s = n === void 0 ? {} : n, r = t.sizeRestrictions, o = t.preserveRatio, u = t.compensate, l = j({}, e), c = rt(i, l).width, d = rt(i, l).height;
11662
11665
  c < 0 && (l.left < 0 && l.right < 0 ? (l.left = -(i.width - r.minWidth) / (l.left / l.right), l.right = -(i.width - r.minWidth) / (l.right / l.left)) : l.left < 0 ? l.left = -(i.width - r.minWidth) : l.right < 0 && (l.right = -(i.width - r.minWidth))), d < 0 && (l.top < 0 && l.bottom < 0 ? (l.top = -(i.height - r.minHeight) / (l.top / l.bottom), l.bottom = -(i.height - r.minHeight) / (l.bottom / l.top)) : l.top < 0 ? l.top = -(i.height - r.minHeight) : l.bottom < 0 && (l.bottom = -(i.height - r.minHeight)));
11663
- var h = fi(ot(i, l), s);
11664
- u && (h.left && h.left > 0 && h.right === 0 ? (l.right += h.left, l.left -= h.left) : h.right && h.right > 0 && h.left === 0 && (l.left += h.right, l.right -= h.right), h.top && h.top > 0 && h.bottom === 0 ? (l.bottom += h.top, l.top -= h.top) : h.bottom && h.bottom > 0 && h.top === 0 && (l.top += h.bottom, l.bottom -= h.bottom), h = fi(ot(i, l), s));
11666
+ var h = fi(rt(i, l), s);
11667
+ u && (h.left && h.left > 0 && h.right === 0 ? (l.right += h.left, l.left -= h.left) : h.right && h.right > 0 && h.left === 0 && (l.left += h.right, l.right -= h.right), h.top && h.top > 0 && h.bottom === 0 ? (l.bottom += h.top, l.top -= h.top) : h.bottom && h.bottom > 0 && h.top === 0 && (l.top += h.bottom, l.bottom -= h.bottom), h = fi(rt(i, l), s));
11665
11668
  var g = { width: 1 / 0, height: 1 / 0, left: 1 / 0, right: 1 / 0, top: 1 / 0, bottom: 1 / 0 };
11666
- if (at.forEach(function(C) {
11669
+ if (ot.forEach(function(C) {
11667
11670
  var M = h[C];
11668
11671
  M && l[C] && (g[C] = Math.max(0, 1 - M / l[C]));
11669
11672
  }), o) {
11670
- var y = Math.min.apply(null, at.map(function(C) {
11673
+ var y = Math.min.apply(null, ot.map(function(C) {
11671
11674
  return g[C];
11672
11675
  }));
11673
- y !== 1 / 0 && at.forEach(function(C) {
11676
+ y !== 1 / 0 && ot.forEach(function(C) {
11674
11677
  l[C] *= y;
11675
11678
  });
11676
- } else at.forEach(function(C) {
11679
+ } else ot.forEach(function(C) {
11677
11680
  g[C] !== 1 / 0 && (l[C] *= g[C]);
11678
11681
  });
11679
- if (c = ot(i, l).width, d = ot(i, l).height, l.right + l.left && (c > r.maxWidth ? g.width = (r.maxWidth - i.width) / (l.right + l.left) : c < r.minWidth && (g.width = (r.minWidth - i.width) / (l.right + l.left))), l.bottom + l.top && (d > r.maxHeight ? g.height = (r.maxHeight - i.height) / (l.bottom + l.top) : d < r.minHeight && (g.height = (r.minHeight - i.height) / (l.bottom + l.top))), o) {
11682
+ if (c = rt(i, l).width, d = rt(i, l).height, l.right + l.left && (c > r.maxWidth ? g.width = (r.maxWidth - i.width) / (l.right + l.left) : c < r.minWidth && (g.width = (r.minWidth - i.width) / (l.right + l.left))), l.bottom + l.top && (d > r.maxHeight ? g.height = (r.maxHeight - i.height) / (l.bottom + l.top) : d < r.minHeight && (g.height = (r.minHeight - i.height) / (l.bottom + l.top))), o) {
11680
11683
  var x = Math.min(g.width, g.height);
11681
- x !== 1 / 0 && at.forEach(function(C) {
11684
+ x !== 1 / 0 && ot.forEach(function(C) {
11682
11685
  l[C] *= x;
11683
11686
  });
11684
11687
  } else g.width !== 1 / 0 && Ap.forEach(function(C) {
@@ -11691,7 +11694,7 @@ function zr(t) {
11691
11694
  function $i(t, e, i) {
11692
11695
  return e == 0 && i == 0 ? t / 2 : e == 0 ? 0 : i == 0 ? t : t * Math.abs(e / (e + i));
11693
11696
  }
11694
- var Gp = et("vue-simple-handler"), Vp = et("vue-simple-handler-wrapper"), Os = { name: "SimpleHandler", components: { HandlerWrapper: vl }, props: { defaultClass: { type: String }, hoverClass: { type: String }, wrapperClass: { type: String }, horizontalPosition: { type: String }, verticalPosition: { type: String }, disabled: { type: Boolean, default: !1 } }, data: function() {
11697
+ var Gp = Ke("vue-simple-handler"), Vp = Ke("vue-simple-handler-wrapper"), Os = { name: "SimpleHandler", components: { HandlerWrapper: vl }, props: { defaultClass: { type: String }, hoverClass: { type: String }, wrapperClass: { type: String }, horizontalPosition: { type: String }, verticalPosition: { type: String }, disabled: { type: Boolean, default: !1 } }, data: function() {
11695
11698
  return { hover: !1 };
11696
11699
  }, computed: { classes: function() {
11697
11700
  var t, e = (Ge(t = {}, this.horizontalPosition, !!this.horizontalPosition), Ge(t, this.verticalPosition, !!this.verticalPosition), Ge(t, "".concat(this.horizontalPosition, "-").concat(this.verticalPosition), !!(this.verticalPosition && this.horizontalPosition)), Ge(t, "hover", this.hover), t);
@@ -11711,7 +11714,7 @@ Os.render = function(t, e, i, n, s, r) {
11711
11714
  return [R("div", { class: r.classes.default }, null, 2)];
11712
11715
  }), _: 1 }, 8, ["class", "vertical-position", "horizontal-position", "disabled", "onDrag", "onDragEnd", "onEnter", "onLeave"]);
11713
11716
  };
11714
- var _p = et("vue-simple-line"), Zp = et("vue-simple-line-wrapper"), Fs = { name: "SimpleLine", components: { LineWrapper: yl }, props: { defaultClass: { type: String }, hoverClass: { type: String }, wrapperClass: { type: String }, position: { type: String }, disabled: { type: Boolean, default: !1 } }, data: function() {
11717
+ var _p = Ke("vue-simple-line"), Zp = Ke("vue-simple-line-wrapper"), Fs = { name: "SimpleLine", components: { LineWrapper: yl }, props: { defaultClass: { type: String }, hoverClass: { type: String }, wrapperClass: { type: String }, position: { type: String }, disabled: { type: Boolean, default: !1 } }, data: function() {
11715
11718
  return { hover: !1 };
11716
11719
  }, computed: { classes: function() {
11717
11720
  return { root: pe(_p(Ge({}, this.position, !0)), this.defaultClass, this.hover && this.hoverClass), wrapper: pe(Zp(Ge({}, this.position, !0)), this.wrapperClass) };
@@ -11730,7 +11733,7 @@ Fs.render = function(t, e, i, n, s, r) {
11730
11733
  return [R("div", { class: r.classes.root }, null, 2)];
11731
11734
  }), _: 1 }, 8, ["class", "position", "disabled", "onDrag", "onDragEnd", "onEnter", "onLeave"]);
11732
11735
  };
11733
- var On = et("vue-bounding-box"), Xp = ["east", "west", null], Yp = ["south", "north", null], Cl = { name: "BoundingBox", props: { width: { type: Number }, height: { type: Number }, transitions: { type: Object }, handlers: { type: Object, default: function() {
11736
+ var On = Ke("vue-bounding-box"), Xp = ["east", "west", null], Yp = ["south", "north", null], Cl = { name: "BoundingBox", props: { width: { type: Number }, height: { type: Number }, transitions: { type: Object }, handlers: { type: Object, default: function() {
11734
11737
  return { eastNorth: !0, north: !0, westNorth: !0, west: !0, westSouth: !0, south: !0, eastSouth: !0, east: !0 };
11735
11738
  } }, handlersComponent: { type: [Object, String], default: function() {
11736
11739
  return Os;
@@ -11806,7 +11809,7 @@ Cl.render = function(t, e, i, n, s, r) {
11806
11809
  }) }, null, 8, ["default-class", "hover-class", "wrapper-class", "horizontal-position", "vertical-position", "disabled", "onDrag"]))], 6);
11807
11810
  }), 128))], 6);
11808
11811
  };
11809
- var Jp = et("vue-draggable-area"), xl = { name: "DraggableArea", props: { movable: { type: Boolean, default: !0 }, activationDistance: { type: Number, default: 20 } }, computed: { classnames: function() {
11812
+ var Jp = Ke("vue-draggable-area"), xl = { name: "DraggableArea", props: { movable: { type: Boolean, default: !0 }, activationDistance: { type: Number, default: 20 } }, computed: { classnames: function() {
11810
11813
  return { default: Jp() };
11811
11814
  } }, beforeMount: function() {
11812
11815
  window.addEventListener("mouseup", this.onMouseUp, { passive: !1 }), window.addEventListener("mousemove", this.onMouseMove, { passive: !1 }), window.addEventListener("touchmove", this.onTouchMove, { passive: !1 }), window.addEventListener("touchend", this.onTouchEnd, { passive: !1 });
@@ -12008,7 +12011,7 @@ ts.render = function(t, e, i, n, s, r) {
12008
12011
  return [P(t.$slots, "default")];
12009
12012
  }), _: 3 }, 8, ["touch-move", "touch-resize", "mouse-move", "wheel-resize"]);
12010
12013
  };
12011
- var Ai = et("vue-preview"), Il = { props: { coordinates: { type: Object }, transitions: { type: Object }, image: { type: Object, default: function() {
12014
+ var Ai = Ke("vue-preview"), Il = { props: { coordinates: { type: Object }, transitions: { type: Object }, image: { type: Object, default: function() {
12012
12015
  return {};
12013
12016
  } }, imageClass: { type: String }, width: { type: Number }, height: { type: Number }, fill: { type: Boolean } }, data: function() {
12014
12017
  return { calculatedImageSize: { width: 0, height: 0 }, calculatedSize: { width: 0, height: 0 } };
@@ -12059,7 +12062,7 @@ Rl.render = function(t, e, i, n, s, r) {
12059
12062
  var o = B("preview");
12060
12063
  return m(), U(o, It(t.$attrs, { fill: !0 }), null, 16);
12061
12064
  };
12062
- var Dn = et("vue-rectangle-stencil"), $l = { name: "RectangleStencil", components: { StencilPreview: Rl, BoundingBox: Cl, DraggableArea: xl }, props: { image: { type: Object }, coordinates: { type: Object }, stencilCoordinates: { type: Object }, handlers: { type: Object }, handlersComponent: { type: [Object, String], default: function() {
12065
+ var Dn = Ke("vue-rectangle-stencil"), $l = { name: "RectangleStencil", components: { StencilPreview: Rl, BoundingBox: Cl, DraggableArea: xl }, props: { image: { type: Object }, coordinates: { type: Object }, stencilCoordinates: { type: Object }, handlers: { type: Object }, handlersComponent: { type: [Object, String], default: function() {
12063
12066
  return Os;
12064
12067
  } }, lines: { type: Object }, linesComponent: { type: [Object, String], default: function() {
12065
12068
  return Fs;
@@ -12097,7 +12100,7 @@ $l.render = function(t, e, i, n, s, r) {
12097
12100
  }), _: 1 }, 8, ["movable", "onMove", "onMoveEnd"])];
12098
12101
  }), _: 1 }, 8, ["width", "height", "transitions", "class", "handlers", "handlers-component", "handlers-classes", "handlers-wrappers-classes", "lines", "lines-component", "lines-classes", "lines-wrappers-classes", "resizable", "onResize", "onResizeEnd"])], 6);
12099
12102
  };
12100
- var e0 = ["transitions"], ct = et("vue-advanced-cropper"), Al = { name: "Cropper", components: { BackgroundWrapper: ts }, props: { src: { type: String, default: null }, stencilComponent: { type: [Object, String], default: function() {
12103
+ var e0 = ["transitions"], ut = Ke("vue-advanced-cropper"), Al = { name: "Cropper", components: { BackgroundWrapper: ts }, props: { src: { type: String, default: null }, stencilComponent: { type: [Object, String], default: function() {
12101
12104
  return $l;
12102
12105
  } }, backgroundWrapperComponent: { type: [Object, String], default: function() {
12103
12106
  return ts;
@@ -12109,10 +12112,10 @@ var e0 = ["transitions"], ct = et("vue-advanced-cropper"), Al = { name: "Cropper
12109
12112
  return !(typeof t == "string" && t !== "fill" && t !== "fit");
12110
12113
  } }, priority: { type: String, default: "coordinates" }, stencilSize: { type: [Object, Function] }, resizeImage: { type: [Boolean, Object], default: !0 }, moveImage: { type: [Boolean, Object], default: !0 }, autoZoomAlgorithm: { type: Function }, resizeAlgorithm: { type: Function, default: function(t) {
12111
12114
  var e = t.event, i = t.coordinates, n = t.aspectRatio, s = t.positionRestrictions, r = t.sizeRestrictions, o = j(j({}, i), { right: i.left + i.width, bottom: i.top + i.height }), u = e.params || {}, l = j({}, e.directions), c = u.allowedDirections || { left: !0, right: !0, bottom: !0, top: !0 };
12112
- r.widthFrozen && (l.left = 0, l.right = 0), r.heightFrozen && (l.top = 0, l.bottom = 0), at.forEach(function(H) {
12115
+ r.widthFrozen && (l.left = 0, l.right = 0), r.heightFrozen && (l.top = 0, l.bottom = 0), ot.forEach(function(H) {
12113
12116
  c[H] || (l[H] = 0);
12114
12117
  });
12115
- var d = ot(o, l = zr({ coordinates: o, directions: l, sizeRestrictions: r, positionRestrictions: s })).width, h = ot(o, l).height, g = u.preserveRatio ? oe(o) : zn(d / h, n);
12118
+ var d = rt(o, l = zr({ coordinates: o, directions: l, sizeRestrictions: r, positionRestrictions: s })).width, h = rt(o, l).height, g = u.preserveRatio ? oe(o) : zn(d / h, n);
12116
12119
  if (g) {
12117
12120
  var y = u.respectDirection;
12118
12121
  if (y || (y = o.width >= o.height || g === 1 ? "width" : "height"), y === "width") {
@@ -12130,19 +12133,19 @@ var e0 = ["transitions"], ct = et("vue-advanced-cropper"), Al = { name: "Cropper
12130
12133
  }
12131
12134
  l = zr({ directions: l, coordinates: o, sizeRestrictions: r, positionRestrictions: s, preserveRatio: !0, compensate: u.compensate });
12132
12135
  }
12133
- return d = ot(o, l).width, h = ot(o, l).height, (g = u.preserveRatio ? oe(o) : zn(d / h, n)) && Math.abs(g - d / h) > 1e-3 && at.forEach(function(H) {
12136
+ return d = rt(o, l).width, h = rt(o, l).height, (g = u.preserveRatio ? oe(o) : zn(d / h, n)) && Math.abs(g - d / h) > 1e-3 && ot.forEach(function(H) {
12134
12137
  c[H] || (l[H] = 0);
12135
12138
  }), es({ event: new Ts({ left: -l.left, top: -l.top }), coordinates: { width: i.width + l.right + l.left, height: i.height + l.top + l.bottom, left: i.left, top: i.top }, positionRestrictions: s });
12136
12139
  } }, moveAlgorithm: { type: Function, default: es }, initStretcher: { type: Function, default: function(t) {
12137
12140
  var e = t.stretcher, i = t.imageSize, n = oe(i);
12138
12141
  e.style.width = i.width + "px", e.style.height = e.clientWidth / n + "px", e.style.width = e.clientWidth + "px";
12139
12142
  } }, fitCoordinates: { type: Function, default: function(t) {
12140
- var e = t.visibleArea, i = t.coordinates, n = t.aspectRatio, s = t.sizeRestrictions, r = t.positionRestrictions, o = j(j({}, i), ft({ width: i.width, height: i.height, aspectRatio: n, sizeRestrictions: { maxWidth: e.width, maxHeight: e.height, minHeight: Math.min(e.height, s.minHeight), minWidth: Math.min(e.width, s.minWidth) } }));
12141
- return o = ke(o = Be(o, Vt(Me(i), Me(o))), pn(lt(e), r));
12143
+ var e = t.visibleArea, i = t.coordinates, n = t.aspectRatio, s = t.sizeRestrictions, r = t.positionRestrictions, o = j(j({}, i), ht({ width: i.width, height: i.height, aspectRatio: n, sizeRestrictions: { maxWidth: e.width, maxHeight: e.height, minHeight: Math.min(e.height, s.minHeight), minWidth: Math.min(e.width, s.minWidth) } }));
12144
+ return o = ke(o = Be(o, Vt(Me(i), Me(o))), pn(at(e), r));
12142
12145
  } }, fitVisibleArea: { type: Function, default: function(t) {
12143
12146
  var e = t.visibleArea, i = t.boundaries, n = t.getAreaRestrictions, s = t.coordinates, r = j({}, e);
12144
12147
  r.height = r.width / oe(i), r.top += (e.height - r.height) / 2, (s.height - r.height > 0 || s.width - r.width > 0) && (r = Ve(r, Math.max(s.height / r.height, s.width / r.width)));
12145
- var o = mn(Zt(s, lt(r = Ve(r, gn(r, n({ visibleArea: r, type: "resize" }))))));
12148
+ var o = mn(Zt(s, at(r = Ve(r, gn(r, n({ visibleArea: r, type: "resize" }))))));
12146
12149
  return r.width < s.width && (o.left = 0), r.height < s.height && (o.top = 0), r = ke(r = Be(r, o), n({ visibleArea: r, type: "move" }));
12147
12150
  } }, areaRestrictionsAlgorithm: { type: Function, default: function(t) {
12148
12151
  var e = t.visibleArea, i = t.boundaries, n = t.imageSize, s = t.imageRestriction, r = t.type, o = {};
@@ -12192,7 +12195,7 @@ var e0 = ["transitions"], ct = et("vue-advanced-cropper"), Al = { name: "Cropper
12192
12195
  }, positionRestrictions: function() {
12193
12196
  return this.positionRestrictionsAlgorithm({ imageSize: this.imageSize, imageRestriction: this.imageRestriction });
12194
12197
  }, classes: function() {
12195
- return { cropper: ct(), image: pe(ct("image"), this.imageClass), stencil: ct("stencil"), boundaries: pe(ct("boundaries"), this.boundariesClass), stretcher: pe(ct("stretcher")), background: pe(ct("background"), this.backgroundClass), foreground: pe(ct("foreground"), this.foregroundClass), imageWrapper: pe(ct("image-wrapper")), cropperWrapper: pe(ct("cropper-wrapper")) };
12198
+ return { cropper: ut(), image: pe(ut("image"), this.imageClass), stencil: ut("stencil"), boundaries: pe(ut("boundaries"), this.boundariesClass), stretcher: pe(ut("stretcher")), background: pe(ut("background"), this.backgroundClass), foreground: pe(ut("foreground"), this.foregroundClass), imageWrapper: pe(ut("image-wrapper")), cropperWrapper: pe(ut("cropper-wrapper")) };
12196
12199
  }, stencilCoordinates: function() {
12197
12200
  if (this.initialized) {
12198
12201
  var t = this.coordinates, e = t.width, i = t.height, n = t.left, s = t.top;
@@ -12288,7 +12291,7 @@ var e0 = ["transitions"], ct = et("vue-advanced-cropper"), Al = { name: "Cropper
12288
12291
  if (i.type === "manipulateImage") return j(j({}, i), { move: { left: i.move && i.move.left ? s * i.move.left : 0, top: i.move && i.move.top ? s * i.move.top : 0 }, scale: { factor: i.scale && i.scale.factor ? i.scale.factor : 1, center: i.scale && i.scale.center ? { left: i.scale.center.left * s + n.left, top: i.scale.center.top * s + n.top } : null } });
12289
12292
  if (i.type === "resize") {
12290
12293
  var r = j(j({}, i), { directions: j({}, i.directions) });
12291
- return at.forEach(function(u) {
12294
+ return ot.forEach(function(u) {
12292
12295
  r.directions[u] *= s;
12293
12296
  }), r;
12294
12297
  }
@@ -12312,7 +12315,7 @@ var e0 = ["transitions"], ct = et("vue-advanced-cropper"), Al = { name: "Cropper
12312
12315
  return c = l, !Number.isNaN(parseFloat(c)) && isFinite(c);
12313
12316
  var c;
12314
12317
  });
12315
- }, r = ft({ sizeRestrictions: { minWidth: s([n.width, n.minWidth]) || 0, minHeight: s([n.height, n.minHeight]) || 0, maxWidth: s([n.width, n.maxWidth]) || 1 / 0, maxHeight: s([n.height, n.maxHeight]) || 1 / 0 }, width: this.coordinates.width, height: this.coordinates.height, aspectRatio: { minimum: this.coordinates.width / this.coordinates.height, maximum: this.coordinates.width / this.coordinates.height } });
12318
+ }, r = ht({ sizeRestrictions: { minWidth: s([n.width, n.minWidth]) || 0, minHeight: s([n.height, n.minHeight]) || 0, maxWidth: s([n.width, n.maxWidth]) || 1 / 0, maxHeight: s([n.height, n.maxHeight]) || 1 / 0 }, width: this.coordinates.width, height: this.coordinates.height, aspectRatio: { minimum: this.coordinates.width / this.coordinates.height, maximum: this.coordinates.width / this.coordinates.height } });
12316
12319
  if (n.maxArea && r.width * r.height > n.maxArea) {
12317
12320
  var o = Math.sqrt(n.maxArea / (r.width * r.height));
12318
12321
  r = { width: Math.round(o * r.width), height: Math.round(o * r.height) };
@@ -12500,7 +12503,7 @@ var e0 = ["transitions"], ct = et("vue-advanced-cropper"), Al = { name: "Cropper
12500
12503
  }
12501
12504
  return { minimum: e, maximum: i };
12502
12505
  }, getStencilSize: function() {
12503
- if (this.stencilSize) return t = { currentStencilSize: { width: this.stencilCoordinates.width, height: this.stencilCoordinates.height }, stencilSize: this.stencilSize, boundaries: this.boundaries, coefficient: this.coefficient, coordinates: this.coordinates, aspectRatio: this.getAspectRatio(!0) }, e = t.boundaries, i = t.stencilSize, n = t.aspectRatio, zn(oe(s = qt(i) ? i({ boundaries: e, aspectRatio: n }) : i), n) && (s = ft({ sizeRestrictions: { maxWidth: e.width, maxHeight: e.height, minWidth: 0, minHeight: 0 }, width: s.width, height: s.height, aspectRatio: { minimum: n.minimum, maximum: n.maximum } })), (s.width > e.width || s.height > e.height) && (s = ft({ sizeRestrictions: { maxWidth: e.width, maxHeight: e.height, minWidth: 0, minHeight: 0 }, width: s.width, height: s.height, aspectRatio: { minimum: oe(s), maximum: oe(s) } })), s;
12506
+ if (this.stencilSize) return t = { currentStencilSize: { width: this.stencilCoordinates.width, height: this.stencilCoordinates.height }, stencilSize: this.stencilSize, boundaries: this.boundaries, coefficient: this.coefficient, coordinates: this.coordinates, aspectRatio: this.getAspectRatio(!0) }, e = t.boundaries, i = t.stencilSize, n = t.aspectRatio, zn(oe(s = qt(i) ? i({ boundaries: e, aspectRatio: n }) : i), n) && (s = ht({ sizeRestrictions: { maxWidth: e.width, maxHeight: e.height, minWidth: 0, minHeight: 0 }, width: s.width, height: s.height, aspectRatio: { minimum: n.minimum, maximum: n.maximum } })), (s.width > e.width || s.height > e.height) && (s = ht({ sizeRestrictions: { maxWidth: e.width, maxHeight: e.height, minWidth: 0, minHeight: 0 }, width: s.width, height: s.height, aspectRatio: { minimum: oe(s), maximum: oe(s) } })), s;
12504
12507
  var t, e, i, n, s;
12505
12508
  }, getPublicProperties: function() {
12506
12509
  return { coefficient: this.coefficient, visibleArea: this.visibleArea, coordinates: this.coordinates, boundaries: this.boundaries, sizeRestrictions: this.sizeRestrictions, positionRestrictions: this.positionRestrictions, aspectRatio: this.getAspectRatio(), imageRestriction: this.imageRestriction };
@@ -12831,7 +12834,7 @@ const s0 = { class: "background-container" }, r0 = { class: "dialog-footer" }, o
12831
12834
  () => {
12832
12835
  r.fileInfo.fileSystemPath && (u.value = r.fileInfo, u.value.url = r.fileInfo.getFileUrl());
12833
12836
  }
12834
- ), ut(() => {
12837
+ ), lt(() => {
12835
12838
  r.fileInfo.fileSystemPath && (u.value = r.fileInfo, u.value.url = r.fileInfo.getFileUrl());
12836
12839
  });
12837
12840
  let C = null;