sprof 0.0.255 → 0.0.271

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.
@@ -11,6 +11,7 @@ export default class FilterModel {
11
11
  constructor(i?: FilterModel);
12
12
  static Create(model: ClassNameGetter): FilterModel;
13
13
  addWhere(field: string, op: Operators): Where;
14
+ removeWhere(where: Where): void;
14
15
  addJoin(model: ClassNameGetter): Join;
15
16
  findJoin(join: Join): Join | undefined;
16
17
  findWhere(where: Where): Where | undefined;
@@ -5,6 +5,7 @@ export default class FilterModelCondition {
5
5
  operator: Operators;
6
6
  value: ValueType;
7
7
  constructor(i?: FilterModelCondition);
8
+ setValue(value: ValueType): void;
8
9
  static Create(field: string, op: Operators): FilterModelCondition;
9
10
  eq(f: FilterModelCondition): boolean;
10
11
  isUnary(): boolean;
package/dist/sprof.js CHANGED
@@ -1,7 +1,7 @@
1
1
  var eu = Object.defineProperty;
2
2
  var tu = (t, e, i) => e in t ? eu(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i;
3
3
  var a = (t, e, i) => tu(t, typeof e != "symbol" ? e + "" : e, i);
4
- import { reactive as ze, ref as E, openBlock as m, createElementBlock as y, createElementVNode as f, getCurrentInstance as iu, inject as nu, onUnmounted as Br, onDeactivated as su, onActivated as ru, onBeforeMount as ut, defineComponent as R, computed as ue, mergeProps as It, unref as p, withModifiers as Le, renderSlot as P, createTextVNode as Wi, toDisplayString as Re, Fragment as V, normalizeClass as ne, normalizeStyle as k, mergeModels as Ee, useModel as vt, withDirectives as Ye, vModelCheckbox as ou, createVNode as A, createCommentVNode as X, vModelDynamic as au, resolveComponent as q, isRef as Ze, withKeys as lu, vModelText as Hr, watch as Ue, createBlock as U, vModelRadio as uu, vShow as os, vModelSelect as cu, useCssVars as qr, onMounted as Xt, renderList as Oe, withCtx as J, resolveDirective as Nr, nextTick as du, Transition as Ur, onBeforeUnmount as as, createStaticVNode as Wr, onUpdated as hu, useTemplateRef as fu, resolveDynamicComponent as ui } from "vue";
4
+ import { reactive as ze, ref as E, openBlock as m, createElementBlock as y, createElementVNode as f, getCurrentInstance as iu, inject as nu, onUnmounted as Br, onDeactivated as su, onActivated as ru, onBeforeMount as ut, defineComponent as R, computed as ue, mergeProps as It, unref as p, withModifiers as De, renderSlot as P, createTextVNode as Wi, toDisplayString as Re, Fragment as V, normalizeClass as ne, normalizeStyle as k, mergeModels as Ee, useModel as vt, withDirectives as Ye, vModelCheckbox as ou, createVNode as A, createCommentVNode as X, vModelDynamic as au, resolveComponent as q, isRef as Ze, withKeys as lu, vModelText as Hr, watch as Ue, createBlock as U, vModelRadio as uu, vShow as os, vModelSelect as cu, useCssVars as qr, onMounted as Xt, renderList as Oe, withCtx as J, resolveDirective as Nr, nextTick as du, Transition as Ur, onBeforeUnmount as as, createStaticVNode as Wr, onUpdated as hu, useTemplateRef as fu, resolveDynamicComponent as ui } from "vue";
5
5
  var Ae = /* @__PURE__ */ ((t) => (t.Login = "login", t.Register = "register", t.Restore = "restore", t.Refresh = "refresh", t))(Ae || {}), Me = /* @__PURE__ */ ((t) => (t.Primary = "primary", t.Success = "success", t.Warning = "warning", t.Error = "error", t.Info = "info", t))(Me || {});
6
6
  class Rt {
7
7
  constructor(e, i, n, s) {
@@ -464,7 +464,7 @@ class Mu extends _r {
464
464
  super.showMessage(i, n);
465
465
  }
466
466
  }
467
- const ku = new Mu(), Fe = ze(ku);
467
+ const ku = new Mu(), Le = ze(ku);
468
468
  class nt {
469
469
  static Get(e) {
470
470
  const i = localStorage.getItem(e);
@@ -563,7 +563,7 @@ class $u {
563
563
  }
564
564
  Logout() {
565
565
  if (this.preventLogout) {
566
- Fe.Warning("В текущий момент Вы не можете выйти из системы");
566
+ Le.Warning("В текущий момент Вы не можете выйти из системы");
567
567
  return;
568
568
  }
569
569
  this.user.reset(), this.tokens.reset(), this.isAuth = !1;
@@ -1787,6 +1787,9 @@ class _i {
1787
1787
  a(this, "value", "");
1788
1788
  O.BuildClass(this, e);
1789
1789
  }
1790
+ setValue(e) {
1791
+ this.value = e;
1792
+ }
1790
1793
  static Create(e, i) {
1791
1794
  return new _i({ operator: i, field: e });
1792
1795
  }
@@ -1848,6 +1851,10 @@ let Yr = class Qr {
1848
1851
  const s = _i.Create(e, i);
1849
1852
  return this.wheres.push(s), s;
1850
1853
  }
1854
+ removeWhere(e) {
1855
+ const i = this.wheres.findIndex((n) => n.eq(e));
1856
+ i > -1 && this.wheres.splice(i, 1);
1857
+ }
1851
1858
  addJoin(e) {
1852
1859
  const i = this.findJoin({ model: e.GetClassName() });
1853
1860
  if (i)
@@ -2143,8 +2150,8 @@ var Du = Object.defineProperty, pi = (t, e, i, n) => {
2143
2150
  for (var s = void 0, r = t.length - 1, o; r >= 0; r--)
2144
2151
  (o = t[r]) && (s = o(e, i, s) || s);
2145
2152
  return s && Du(e, i, s), s;
2146
- }, qe;
2147
- const Yt = (qe = class {
2153
+ }, Fe;
2154
+ const Yt = (Fe = class {
2148
2155
  constructor(e) {
2149
2156
  a(this, "id");
2150
2157
  a(this, "f", []);
@@ -2155,15 +2162,15 @@ const Yt = (qe = class {
2155
2162
  O.BuildClass(this, e);
2156
2163
  }
2157
2164
  static Get() {
2158
- return this.instance || (this.instance = new qe()), this.instance;
2165
+ return this.instance || (this.instance = new Fe()), this.instance;
2159
2166
  }
2160
2167
  createFrom(e) {
2161
- const i = new qe(JSON.parse(e));
2168
+ const i = new Fe(JSON.parse(e));
2162
2169
  this.f = i.f;
2163
2170
  }
2164
2171
  clearForHTTP() {
2165
- const e = new qe(this);
2166
- return e.f = this.f.map((i) => qe.EmptyEntiries(i)), e.s = this.s.map((i) => qe.EmptyEntiries(i)), e.p = qe.EmptyEntiries(this.p), e.t = qe.EmptyEntiries(this.t), e;
2172
+ const e = new Fe(this);
2173
+ return e.f = this.f.map((i) => Fe.EmptyEntiries(i)), e.f2 = this.f2.map((i) => Fe.EmptyEntiries(i)), e.s = this.s.map((i) => Fe.EmptyEntiries(i)), e.p = Fe.EmptyEntiries(this.p), e.t = Fe.EmptyEntiries(this.t), e;
2167
2174
  }
2168
2175
  static EmptyEntiries(e) {
2169
2176
  if (!e)
@@ -2202,7 +2209,7 @@ const Yt = (qe = class {
2202
2209
  resetF() {
2203
2210
  this.f = [];
2204
2211
  }
2205
- }, a(qe, "instance"), qe);
2212
+ }, a(Fe, "instance"), Fe);
2206
2213
  pi([
2207
2214
  O.GetClassConstructor(ds)
2208
2215
  ], Yt.prototype, "f");
@@ -2887,7 +2894,7 @@ function Gc(t, e) {
2887
2894
  });
2888
2895
  });
2889
2896
  }
2890
- class De {
2897
+ class Be {
2891
2898
  constructor(e) {
2892
2899
  e && this.set(e);
2893
2900
  }
@@ -3005,8 +3012,8 @@ class De {
3005
3012
  return S.isArray(e) ? e.forEach(r) : r(e), this;
3006
3013
  }
3007
3014
  }
3008
- De.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
3009
- S.reduceDescriptors(De.prototype, ({ value: t }, e) => {
3015
+ Be.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
3016
+ S.reduceDescriptors(Be.prototype, ({ value: t }, e) => {
3010
3017
  let i = e[0].toUpperCase() + e.slice(1);
3011
3018
  return {
3012
3019
  get: () => t,
@@ -3015,9 +3022,9 @@ S.reduceDescriptors(De.prototype, ({ value: t }, e) => {
3015
3022
  }
3016
3023
  };
3017
3024
  });
3018
- S.freezeMethods(De);
3025
+ S.freezeMethods(Be);
3019
3026
  function En(t, e) {
3020
- const i = this || yi, n = e || i, s = De.from(n.headers);
3027
+ const i = this || yi, n = e || i, s = Be.from(n.headers);
3021
3028
  let r = n.data;
3022
3029
  return S.forEach(t, function(u) {
3023
3030
  r = u.call(i, r, s.normalize(), e ? e.status : void 0);
@@ -3139,7 +3146,7 @@ function Qc(t, e) {
3139
3146
  function yo(t, e) {
3140
3147
  return t && !Yc(e) ? Qc(t, e) : e;
3141
3148
  }
3142
- const gr = (t) => t instanceof De ? { ...t } : t;
3149
+ const gr = (t) => t instanceof Be ? { ...t } : t;
3143
3150
  function zt(t, e) {
3144
3151
  e = e || {};
3145
3152
  const i = {};
@@ -3207,7 +3214,7 @@ function zt(t, e) {
3207
3214
  const wo = (t) => {
3208
3215
  const e = zt({}, t);
3209
3216
  let { data: i, withXSRFToken: n, xsrfHeaderName: s, xsrfCookieName: r, headers: o, auth: u } = e;
3210
- e.headers = o = De.from(o), e.url = fo(yo(e.baseURL, e.url), t.params, t.paramsSerializer), u && o.set(
3217
+ e.headers = o = Be.from(o), e.url = fo(yo(e.baseURL, e.url), t.params, t.paramsSerializer), u && o.set(
3211
3218
  "Authorization",
3212
3219
  "Basic " + btoa((u.username || "") + ":" + (u.password ? unescape(encodeURIComponent(u.password)) : ""))
3213
3220
  );
@@ -3229,7 +3236,7 @@ const wo = (t) => {
3229
3236
  return new Promise(function(i, n) {
3230
3237
  const s = wo(t);
3231
3238
  let r = s.data;
3232
- const o = De.from(s.headers).normalize();
3239
+ const o = Be.from(s.headers).normalize();
3233
3240
  let { responseType: u, onUploadProgress: l, onDownloadProgress: c } = s, d, h, g, w, x;
3234
3241
  function C() {
3235
3242
  w && w(), x && x(), s.cancelToken && s.cancelToken.unsubscribe(d), s.signal && s.signal.removeEventListener("abort", d);
@@ -3239,7 +3246,7 @@ const wo = (t) => {
3239
3246
  function L() {
3240
3247
  if (!M)
3241
3248
  return;
3242
- const j = De.from(
3249
+ const j = Be.from(
3243
3250
  "getAllResponseHeaders" in M && M.getAllResponseHeaders()
3244
3251
  ), Q = {
3245
3252
  data: !u || u === "text" || u === "json" ? M.responseText : M.response,
@@ -3475,7 +3482,7 @@ const ad = async (t) => {
3475
3482
  return !j && C && C(), await new Promise((Q, We) => {
3476
3483
  vo(Q, We, {
3477
3484
  data: B,
3478
- headers: De.from(Y.headers),
3485
+ headers: Be.from(Y.headers),
3479
3486
  status: Y.status,
3480
3487
  statusText: Y.statusText,
3481
3488
  config: t,
@@ -3540,7 +3547,7 @@ function Tn(t) {
3540
3547
  throw new Kt(null, t);
3541
3548
  }
3542
3549
  function wr(t) {
3543
- return Tn(t), t.headers = De.from(t.headers), t.data = En.call(
3550
+ return Tn(t), t.headers = Be.from(t.headers), t.data = En.call(
3544
3551
  t,
3545
3552
  t.transformRequest
3546
3553
  ), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), Co.getAdapter(t.adapter || yi.adapter)(t).then(function(n) {
@@ -3548,13 +3555,13 @@ function wr(t) {
3548
3555
  t,
3549
3556
  t.transformResponse,
3550
3557
  n
3551
- ), n.headers = De.from(n.headers), n;
3558
+ ), n.headers = Be.from(n.headers), n;
3552
3559
  }, function(n) {
3553
3560
  return po(n) || (Tn(t), n && n.response && (n.response.data = En.call(
3554
3561
  t,
3555
3562
  t.transformResponse,
3556
3563
  n.response
3557
- ), n.response.headers = De.from(n.response.headers))), Promise.reject(n);
3564
+ ), n.response.headers = Be.from(n.response.headers))), Promise.reject(n);
3558
3565
  });
3559
3566
  }
3560
3567
  const xo = "1.7.9", tn = {};
@@ -3663,7 +3670,7 @@ class At {
3663
3670
  (x) => {
3664
3671
  delete r[x];
3665
3672
  }
3666
- ), i.headers = De.concat(o, r);
3673
+ ), i.headers = Be.concat(o, r);
3667
3674
  const u = [];
3668
3675
  let l = !0;
3669
3676
  this.interceptors.request.forEach(function(C) {
@@ -3900,7 +3907,7 @@ me.all = function(e) {
3900
3907
  me.spread = hd;
3901
3908
  me.isAxiosError = fd;
3902
3909
  me.mergeConfig = zt;
3903
- me.AxiosHeaders = De;
3910
+ me.AxiosHeaders = Be;
3904
3911
  me.formToJSON = (t) => go(S.isHTMLForm(t) ? new FormData(t) : t);
3905
3912
  me.getAdapter = Co.getAdapter;
3906
3913
  me.HttpStatusCode = Zn;
@@ -3969,14 +3976,14 @@ class ps {
3969
3976
  return n._retry = !0, i.defaults.headers.common.token = fi.getAccessToken(), e.config.headers.token = fi.getAccessToken(), e.config.baseURL = void 0, i.request(n);
3970
3977
  if (e.response.status >= 500) {
3971
3978
  if (e.response.data === "неверный логин или пароль") {
3972
- Fe.Error("Неверный логин или пароль");
3979
+ Le.Error("Неверный логин или пароль");
3973
3980
  return;
3974
3981
  }
3975
- Fe.Error("Ошибка на сервере, попробуйте позже");
3982
+ Le.Error("Ошибка на сервере, попробуйте позже");
3976
3983
  }
3977
3984
  if (e.response.status >= 400 && e.response.status < 500) {
3978
3985
  const s = new ps(e.response.data).getErr();
3979
- s && Fe.Error(s);
3986
+ s && Le.Error(s);
3980
3987
  }
3981
3988
  return Promise.reject(e);
3982
3989
  }
@@ -5325,9 +5332,9 @@ let wh = class extends de {
5325
5332
  }
5326
5333
  };
5327
5334
  const bh = new wh();
5328
- var He;
5329
- let Do = (He = class {
5330
- }, a(He, "Auth", Yd), a(He, "Contacts", eh), a(He, "Emails", ih), a(He, "FileInfos", new de(Te, "file-infos")), a(He, "FTSPPresets", sh), a(He, "Humans", oh), a(He, "Phones", lh), a(He, "Schemas", fh), a(He, "UserAccounts", yh), a(He, "ValueTypes", bh), a(He, "Search", Qn), He);
5335
+ var qe;
5336
+ let Do = (qe = class {
5337
+ }, a(qe, "Auth", Yd), a(qe, "Contacts", eh), a(qe, "Emails", ih), a(qe, "FileInfos", new de(Te, "file-infos")), a(qe, "FTSPPresets", sh), a(qe, "Humans", oh), a(qe, "Phones", lh), a(qe, "Schemas", fh), a(qe, "UserAccounts", yh), a(qe, "ValueTypes", bh), a(qe, "Search", Qn), qe);
5331
5338
  var bs = /* @__PURE__ */ ((t) => (t.XS = "xs", t.S = "s", t.M = "m", t.L = "l", t.XL = "xl", t))(bs || {}), wt;
5332
5339
  let Sh = (wt = class {
5333
5340
  }, a(wt, "Orders", Ge), a(wt, "Sizes", bs), a(wt, "Statuses", Me), a(wt, "DataTypes", be), a(wt, "ValueTypes", $e), a(wt, "Operators", ce), wt);
@@ -5440,7 +5447,7 @@ class Ah extends Vr {
5440
5447
  const Ph = new Ah();
5441
5448
  class bt {
5442
5449
  }
5443
- a(bt, "Admin", Rh), a(bt, "Dialog", ht), a(bt, "Loading", Ph), a(bt, "Notify", ze(Fe)), a(bt, "Btn", Rt), a(bt, "Input", jr);
5450
+ a(bt, "Admin", Rh), a(bt, "Dialog", ht), a(bt, "Loading", Ph), a(bt, "Notify", ze(Le)), a(bt, "Btn", Rt), a(bt, "Input", jr);
5444
5451
  class N {
5445
5452
  }
5446
5453
  a(N, "Auth", ze(xe)), a(N, "UI", ze(bt)), a(N, "Paginator", ze(Ao)), /**
@@ -6641,7 +6648,7 @@ const im = "p-button", nm = /* @__PURE__ */ R({
6641
6648
  fontSize: t.fontSize
6642
6649
  },
6643
6650
  class: p(l),
6644
- onClick: Le(s, ["prevent"])
6651
+ onClick: De(s, ["prevent"])
6645
6652
  }), [
6646
6653
  P(c.$slots, "default", {}, void 0, !0),
6647
6654
  Wi(" " + Re(t.text), 1)
@@ -7090,7 +7097,7 @@ const On = /* @__PURE__ */ new WeakMap(), Cm = (t, e) => {
7090
7097
  return;
7091
7098
  const c = st.FromRuStr(l);
7092
7099
  n.value = c, i("beforeChange", c), i("change", c);
7093
- }, 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;
7100
+ }, u = (l) => l.length != 10 ? (r.value = s, Le.Error("Неверный формат даты"), !1) : Number(r.value.slice(0, 2)) > 31 ? (r.value = s, Le.Error("Неверный день месяца"), !1) : Number(r.value.slice(3, 5)) > 12 ? (r.value = s, Le.Error("Неверный месяц"), !1) : Number(r.value.slice(6, 10)) > 2100 ? (r.value = s, Le.Error("Неверный год"), !1) : !0;
7094
7101
  return (l, c) => {
7095
7102
  const d = q("PInput");
7096
7103
  return m(), y("div", {
@@ -7108,7 +7115,7 @@ const On = /* @__PURE__ */ new WeakMap(), Cm = (t, e) => {
7108
7115
  margin: t.margin,
7109
7116
  label: t.label,
7110
7117
  onBlur: o,
7111
- onKeydown: lu(Le((h) => {
7118
+ onKeydown: lu(De((h) => {
7112
7119
  }, ["prevent"]), ["enter"])
7113
7120
  }, null, 8, ["modelValue", "placeholder", "margin", "label", "onKeydown"])
7114
7121
  ], 4);
@@ -7246,7 +7253,7 @@ const On = /* @__PURE__ */ new WeakMap(), Cm = (t, e) => {
7246
7253
  disabled: t.disabled,
7247
7254
  style: { color: t.disabled ? "#828587" : t.color, background: t.disabled ? "var(--input-readonly-background)" : "" },
7248
7255
  onBlur: x,
7249
- onInput: Le(w, ["stop"])
7256
+ onInput: De(w, ["stop"])
7250
7257
  }), null, 16, Om), [
7251
7258
  [
7252
7259
  Hr,
@@ -7924,8 +7931,8 @@ const On = /* @__PURE__ */ new WeakMap(), Cm = (t, e) => {
7924
7931
  key: 0,
7925
7932
  class: "blur",
7926
7933
  onClick: [
7927
- u[0] || (u[0] = Le((l) => s.value = !0, ["prevent"])),
7928
- u[1] || (u[1] = Le(() => {
7934
+ u[0] || (u[0] = De((l) => s.value = !0, ["prevent"])),
7935
+ u[1] || (u[1] = De(() => {
7929
7936
  }, ["stop"]))
7930
7937
  ]
7931
7938
  })),
@@ -7935,7 +7942,7 @@ const On = /* @__PURE__ */ new WeakMap(), Cm = (t, e) => {
7935
7942
  marginTop: p(s) ? "0" : `calc(${t.sliderOffHeight} - ${t.sliderOnHeight})`,
7936
7943
  height: t.sliderOnHeight
7937
7944
  }),
7938
- onClick: u[3] || (u[3] = Le(() => {
7945
+ onClick: u[3] || (u[3] = De(() => {
7939
7946
  }, ["stop"]))
7940
7947
  }, [
7941
7948
  f("div", og, [
@@ -8328,7 +8335,7 @@ const yg = { class: "container" }, wg = { class: "slide-box" }, bg = { class: "i
8328
8335
  f("div", yg, [
8329
8336
  (m(), y("svg", {
8330
8337
  class: "icon-arrow",
8331
- onClick: x[0] || (x[0] = Le((C) => g(), ["stop"]))
8338
+ onClick: x[0] || (x[0] = De((C) => g(), ["stop"]))
8332
8339
  }, x[3] || (x[3] = [
8333
8340
  f("use", { "xlink:href": "#arrow-prev" }, null, -1)
8334
8341
  ]))),
@@ -8355,7 +8362,7 @@ const yg = { class: "container" }, wg = { class: "slide-box" }, bg = { class: "i
8355
8362
  ]),
8356
8363
  (m(), y("svg", {
8357
8364
  class: "icon-arrow",
8358
- onClick: x[2] || (x[2] = Le((C) => h(), ["stop"]))
8365
+ onClick: x[2] || (x[2] = De((C) => h(), ["stop"]))
8359
8366
  }, x[4] || (x[4] = [
8360
8367
  f("use", { "xlink:href": "#arrow-next" }, null, -1)
8361
8368
  ])))
@@ -8372,7 +8379,7 @@ const yg = { class: "container" }, wg = { class: "slide-box" }, bg = { class: "i
8372
8379
  key: M,
8373
8380
  class: "number",
8374
8381
  style: k({ background: M.toString() === p(n).toString() ? "#9D9D9D" : "" }),
8375
- onClick: Le((L) => d(M), ["stop"])
8382
+ onClick: De((L) => d(M), ["stop"])
8376
8383
  }, Re(M + 1), 13, Mg))), 128))
8377
8384
  ]),
8378
8385
  _: 1
@@ -8845,7 +8852,7 @@ const ba = /* @__PURE__ */ $($g, [["render", Pg], ["__scopeId", "data-v-d28c6f33
8845
8852
  f("div", {
8846
8853
  class: "base-box",
8847
8854
  style: k(p(h)),
8848
- onClick: Q[2] || (Q[2] = Le((Ci) => d(), ["prevent", "stop"]))
8855
+ onClick: Q[2] || (Q[2] = De((Ci) => d(), ["prevent", "stop"]))
8849
8856
  }, [
8850
8857
  f("div", {
8851
8858
  class: ne(["body", p(s)]),
@@ -9971,8 +9978,8 @@ const Ua = /* @__PURE__ */ $(z1, [["render", F1], ["__scopeId", "data-v-5023d414
9971
9978
  key: 0,
9972
9979
  class: "blur",
9973
9980
  onClick: [
9974
- u[0] || (u[0] = Le((l) => s.value = !0, ["prevent"])),
9975
- u[1] || (u[1] = Le(() => {
9981
+ u[0] || (u[0] = De((l) => s.value = !0, ["prevent"])),
9982
+ u[1] || (u[1] = De(() => {
9976
9983
  }, ["stop"]))
9977
9984
  ]
9978
9985
  })),
@@ -9982,7 +9989,7 @@ const Ua = /* @__PURE__ */ $(z1, [["render", F1], ["__scopeId", "data-v-5023d414
9982
9989
  marginTop: p(s) ? `calc(${t.sliderOffHeight} - ${t.sliderOnHeight})` : "0",
9983
9990
  height: t.sliderOnHeight
9984
9991
  }),
9985
- onClick: u[3] || (u[3] = Le(() => {
9992
+ onClick: u[3] || (u[3] = De(() => {
9986
9993
  }, ["stop"]))
9987
9994
  }, [
9988
9995
  f("div", D1, [
@@ -10965,7 +10972,7 @@ const ol = /* @__PURE__ */ $(ep, [["render", np], ["__scopeId", "data-v-c2e31ebb
10965
10972
  __name: "PNotify",
10966
10973
  setup(t) {
10967
10974
  const e = ue(() => {
10968
- switch (Fe.GetType()) {
10975
+ switch (Le.GetType()) {
10969
10976
  case "info":
10970
10977
  return "message info";
10971
10978
  case "success":
@@ -10980,13 +10987,13 @@ const ol = /* @__PURE__ */ $(ep, [["render", np], ["__scopeId", "data-v-c2e31ebb
10980
10987
  });
10981
10988
  return (i, n) => (m(), U(Ur, { name: "fade" }, {
10982
10989
  default: J(() => [
10983
- p(Fe).IsVisible() ? (m(), y("div", {
10990
+ p(Le).IsVisible() ? (m(), y("div", {
10984
10991
  key: 0,
10985
10992
  class: ne(p(e))
10986
10993
  }, [
10987
10994
  A(Es, {
10988
- title: p(Fe).GetTitle(),
10989
- text: p(Fe).GetText()
10995
+ title: p(Le).GetTitle(),
10996
+ text: p(Le).GetText()
10990
10997
  }, null, 8, ["title", "text"])
10991
10998
  ], 2)) : X("", !0)
10992
10999
  ]),
@@ -11338,7 +11345,7 @@ const wv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11338
11345
  const d = c.files[0];
11339
11346
  if (d) {
11340
11347
  if (!l(d.name)) {
11341
- Fe.Error(`Загруженный файл должен быть в одном из форматов: ${i.formats.join(", ")}`);
11348
+ Le.Error(`Загруженный файл должен быть в одном из форматов: ${i.formats.join(", ")}`);
11342
11349
  return;
11343
11350
  }
11344
11351
  i.fileInfo.setFile(d), i.fileInfo.url = URL.createObjectURL(d), n("upload", i.fileInfo);
@@ -11770,7 +11777,7 @@ function rt(t, e) {
11770
11777
  function yn(t) {
11771
11778
  return { left: -t.left, top: -t.top };
11772
11779
  }
11773
- function Be(t, e) {
11780
+ function He(t, e) {
11774
11781
  return W(W({}, t), { left: t.left + e.left, top: t.top + e.top });
11775
11782
  }
11776
11783
  function _e(t, e, i, n) {
@@ -11816,7 +11823,7 @@ function wn(t, e) {
11816
11823
  function Ie(t, e, i) {
11817
11824
  i === void 0 && (i = !1);
11818
11825
  var n = Jt(t, e);
11819
- return Be(t, i ? yn(n) : n);
11826
+ return He(t, i ? yn(n) : n);
11820
11827
  }
11821
11828
  function ns(t) {
11822
11829
  return { width: t.right !== void 0 && t.left !== void 0 ? t.right - t.left : 1 / 0, height: t.bottom !== void 0 && t.top !== void 0 ? t.bottom - t.top : 1 / 0 };
@@ -11857,8 +11864,8 @@ function mt(t) {
11857
11864
  return l && { width: l.width, height: l.height };
11858
11865
  }
11859
11866
  function ss(t) {
11860
- var e = t.event, i = t.coordinates, n = t.positionRestrictions, s = n === void 0 ? {} : n, r = Be(i, e.directions);
11861
- return Be(r, Jt(r, s));
11867
+ var e = t.event, i = t.coordinates, n = t.positionRestrictions, s = n === void 0 ? {} : n, r = He(i, e.directions);
11868
+ return He(r, Jt(r, s));
11862
11869
  }
11863
11870
  function qp(t) {
11864
11871
  var e = t.coordinates, i = t.transform, n = t.imageSize, s = t.sizeRestrictions, r = t.positionRestrictions, o = t.aspectRatio, u = t.visibleArea, l = function(d, h) {
@@ -11881,7 +11888,7 @@ function Np(t) {
11881
11888
  var l, c, d, h = W({}, n), g = W({}, s), w = W({}, r);
11882
11889
  l = oe(w), 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 = W(W({}, h), mt({ sizeRestrictions: o, width: h.width, height: h.height, aspectRatio: { minimum: oe(w), maximum: oe(w) } })));
11883
11890
  var x = wn(g = _e(g, h.width * i.width / (g.width * w.width)), e({ visibleArea: g, type: "resize" }));
11884
- return x !== 1 && (g = _e(g, x), h = _e(h, x)), g = Ie(g = Be(g, _t(ke(h), ke(g))), e({ visibleArea: g, type: "move" })), { coordinates: h = Ie(h, bn(lt(g), u)), visibleArea: g };
11891
+ return x !== 1 && (g = _e(g, x), h = _e(h, x)), g = Ie(g = He(g, _t(ke(h), ke(g))), e({ visibleArea: g, type: "move" })), { coordinates: h = Ie(h, bn(lt(g), u)), visibleArea: g };
11885
11892
  }
11886
11893
  function Up(t) {
11887
11894
  var e = t.event, i = t.getAreaRestrictions, n = t.boundaries, s = t.coordinates, r = t.visibleArea;
@@ -11893,7 +11900,7 @@ function Up(t) {
11893
11900
  var c = { width: 0, height: 0 };
11894
11901
  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));
11895
11902
  var d = wn(l = _e(l, u.width * n.width / (l.width * c.width)), i({ visibleArea: l, type: "resize" }));
11896
- l = _e(l, d), d !== 1 && (c.height /= d, c.width /= d), l = Ie(l = Be(l, _t(ke(u), ke(l))), i({ visibleArea: l, type: "move" })), u = Ie(u, bn(lt(l), o));
11903
+ l = _e(l, d), d !== 1 && (c.height /= d, c.width /= d), l = Ie(l = He(l, _t(ke(u), ke(l))), i({ visibleArea: l, type: "move" })), u = Ie(u, bn(lt(l), o));
11897
11904
  }
11898
11905
  return { coordinates: u, visibleArea: l };
11899
11906
  }
@@ -11901,7 +11908,7 @@ function Wp(t) {
11901
11908
  var e = t.event, i = t.coordinates, n = t.visibleArea, s = t.getAreaRestrictions, r = W({}, n), o = W({}, i);
11902
11909
  if (e.type === "setCoordinates") {
11903
11910
  var u = Math.max(0, o.width - r.width), l = Math.max(0, o.height - r.height);
11904
- u > l ? r = _e(r, Math.min(o.width / r.width, Zt(r, s({ visibleArea: r, type: "resize" })))) : l > u && (r = _e(r, Math.min(o.height / r.height, Zt(r, s({ visibleArea: r, type: "resize" }))))), r = Ie(r = Be(r, yn(Jt(o, lt(r)))), s({ visibleArea: r, type: "move" }));
11911
+ u > l ? r = _e(r, Math.min(o.width / r.width, Zt(r, s({ visibleArea: r, type: "resize" })))) : l > u && (r = _e(r, Math.min(o.height / r.height, Zt(r, s({ visibleArea: r, type: "resize" }))))), r = Ie(r = He(r, yn(Jt(o, lt(r)))), s({ visibleArea: r, type: "move" }));
11905
11912
  }
11906
11913
  return { visibleArea: r, coordinates: o };
11907
11914
  }
@@ -11931,21 +11938,21 @@ function $i(t, e) {
11931
11938
  }
11932
11939
  function Zp(t) {
11933
11940
  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 = W({}, n), h = W({}, i), g = 1, w = 1, x = l.factor && Math.abs(l.factor - 1) > 1e-3;
11934
- d = Be(d, { left: c.left || 0, top: c.top || 0 });
11941
+ d = He(d, { left: c.left || 0, top: c.top || 0 });
11935
11942
  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, Zt(h, o)) }, area: { maximum: Zt(d, r({ visibleArea: d, type: "resize" })) } };
11936
11943
  l.factor && x && (l.factor < 1 ? (w = Math.max(l.factor, C.stencil.minimum)) > 1 && (w = 1) : l.factor > 1 && (w = Math.min(l.factor, Math.min(C.area.maximum, C.stencil.maximum))) < 1 && (w = 1)), w && (d = _e(d, w, l.center));
11937
11944
  var M = i.left - n.left, L = n.width + n.left - (i.width + i.left), Y = i.top - n.top, j = n.height + n.top - (i.height + i.top);
11938
- return d = Ie(d = Be(d, Jt(d, { left: o.left !== void 0 ? o.left - M * w : void 0, top: o.top !== void 0 ? o.top - Y * w : void 0, bottom: o.bottom !== void 0 ? o.bottom + j * w : void 0, right: o.right !== void 0 ? o.right + L * w : void 0 })), r({ visibleArea: d, type: "move" })), h.width = h.width * w, h.height = h.height * w, h.left = d.left + M * w, h.top = d.top + Y * w, h = Ie(h, bn(lt(d), o)), l.factor && x && u && (l.factor > 1 ? g = Math.min(C.area.maximum, l.factor) / w : l.factor < 1 && (g = Math.max(h.height / d.height, h.width / d.width, l.factor / w)), g !== 1 && (d = Be(d = Ie(d = _e(d, g, l.factor > 1 ? l.center : ke(h)), r({ visibleArea: d, type: "move" })), yn(Jt(h, lt(d)))))), { coordinates: h, visibleArea: d };
11945
+ return d = Ie(d = He(d, Jt(d, { left: o.left !== void 0 ? o.left - M * w : void 0, top: o.top !== void 0 ? o.top - Y * w : void 0, bottom: o.bottom !== void 0 ? o.bottom + j * w : void 0, right: o.right !== void 0 ? o.right + L * w : void 0 })), r({ visibleArea: d, type: "move" })), h.width = h.width * w, h.height = h.height * w, h.left = d.left + M * w, h.top = d.top + Y * w, h = Ie(h, bn(lt(d), o)), l.factor && x && u && (l.factor > 1 ? g = Math.min(C.area.maximum, l.factor) / w : l.factor < 1 && (g = Math.max(h.height / d.height, h.width / d.width, l.factor / w)), g !== 1 && (d = He(d = Ie(d = _e(d, g, l.factor > 1 ? l.center : ke(h)), r({ visibleArea: d, type: "move" })), yn(Jt(h, lt(d)))))), { coordinates: h, visibleArea: d };
11939
11946
  }
11940
11947
  function Jp(t) {
11941
11948
  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 = W({}, n), h = W({}, s), g = Ct(ke(W({ left: 0, top: 0 }, l)), c);
11942
- return (d = W(W({}, mt({ sizeRestrictions: r, aspectRatio: e, width: d.width, height: d.height })), Ct(ke(d), c))).left -= g.left - u.width / 2 + d.width / 2, d.top -= g.top - u.height / 2 + d.height / 2, h = _e(h, wn(h, i({ visibleArea: h, type: "resize" }))), { coordinates: d = Ie(d, o), visibleArea: h = Ie(h = Be(h, _t(ke(d), ke(n))), i({ visibleArea: h, type: "move" })) };
11949
+ return (d = W(W({}, mt({ sizeRestrictions: r, aspectRatio: e, width: d.width, height: d.height })), Ct(ke(d), c))).left -= g.left - u.width / 2 + d.width / 2, d.top -= g.top - u.height / 2 + d.height / 2, h = _e(h, wn(h, i({ visibleArea: h, type: "resize" }))), { coordinates: d = Ie(d, o), visibleArea: h = Ie(h = He(h, _t(ke(d), ke(n))), i({ visibleArea: h, type: "move" })) };
11943
11950
  }
11944
11951
  function Xp(t) {
11945
11952
  var e = t.flip, i = t.previousFlip, n = t.rotate, s = t.getAreaRestrictions, r = t.coordinates, o = t.visibleArea, u = t.imageSize, l = W({}, r), c = W({}, o), d = i.horizontal !== e.horizontal, h = i.vertical !== e.vertical;
11946
11953
  if (d || h) {
11947
11954
  var g = Ct({ left: u.width / 2, top: u.height / 2 }, -n), w = Ct(ke(l), -n), x = Ct({ left: d ? g.left - (w.left - g.left) : w.left, top: h ? g.top - (w.top - g.top) : w.top }, n);
11948
- l = Be(l, _t(x, ke(l))), w = Ct(ke(c), -n), c = Ie(c = Be(c, _t(x = Ct({ left: d ? g.left - (w.left - g.left) : w.left, top: h ? g.top - (w.top - g.top) : w.top }, n), ke(c))), s({ visibleArea: c, type: "move" }));
11955
+ l = He(l, _t(x, ke(l))), w = Ct(ke(c), -n), c = Ie(c = He(c, _t(x = Ct({ left: d ? g.left - (w.left - g.left) : w.left, top: h ? g.top - (w.top - g.top) : w.top }, n), ke(c))), s({ visibleArea: c, type: "move" }));
11949
11956
  }
11950
11957
  return { coordinates: l, visibleArea: c };
11951
11958
  }
@@ -12430,12 +12437,12 @@ var o0 = ["transitions"], ct = Ke("vue-advanced-cropper"), Ol = { name: "Cropper
12430
12437
  e.style.width = i.width + "px", e.style.height = e.clientWidth / n + "px", e.style.width = e.clientWidth + "px";
12431
12438
  } }, fitCoordinates: { type: Function, default: function(t) {
12432
12439
  var e = t.visibleArea, i = t.coordinates, n = t.aspectRatio, s = t.sizeRestrictions, r = t.positionRestrictions, o = W(W({}, i), mt({ 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) } }));
12433
- return o = Ie(o = Be(o, _t(ke(i), ke(o))), bn(lt(e), r));
12440
+ return o = Ie(o = He(o, _t(ke(i), ke(o))), bn(lt(e), r));
12434
12441
  } }, fitVisibleArea: { type: Function, default: function(t) {
12435
12442
  var e = t.visibleArea, i = t.boundaries, n = t.getAreaRestrictions, s = t.coordinates, r = W({}, e);
12436
12443
  r.height = r.width / oe(i), r.top += (e.height - r.height) / 2, (s.height - r.height > 0 || s.width - r.width > 0) && (r = _e(r, Math.max(s.height / r.height, s.width / r.width)));
12437
12444
  var o = yn(Jt(s, lt(r = _e(r, wn(r, n({ visibleArea: r, type: "resize" }))))));
12438
- return r.width < s.width && (o.left = 0), r.height < s.height && (o.top = 0), r = Ie(r = Be(r, o), n({ visibleArea: r, type: "move" }));
12445
+ return r.width < s.width && (o.left = 0), r.height < s.height && (o.top = 0), r = Ie(r = He(r, o), n({ visibleArea: r, type: "move" }));
12439
12446
  } }, areaRestrictionsAlgorithm: { type: Function, default: function(t) {
12440
12447
  var e = t.visibleArea, i = t.boundaries, n = t.imageSize, s = t.imageRestriction, r = t.type, o = {};
12441
12448
  return s === "fill-area" ? o = { left: 0, top: 0, right: n.width, bottom: n.height } : s === "fit-area" && (oe(i) > oe(n) ? (o = { top: 0, bottom: n.height }, e && r === "move" && (e.width > n.width ? (o.left = -(e.width - n.width) / 2, o.right = n.width - o.left) : (o.left = 0, o.right = n.width))) : (o = { left: 0, right: n.width }, e && r === "move" && (e.height > n.height ? (o.top = -(e.height - n.height) / 2, o.bottom = n.height - o.top) : (o.top = 0, o.bottom = n.height)))), o;
@@ -12817,7 +12824,7 @@ var o0 = ["transitions"], ct = Ke("vue-advanced-cropper"), Ol = { name: "Cropper
12817
12824
  } }, emits: ["change", "error", "ready"] }, a0 = { key: 0, ref: "canvas", style: { display: "none" } }, l0 = { key: 1, ref: "sourceCanvas", style: { display: "none" } };
12818
12825
  Ol.render = function(t, e, i, n, s, r) {
12819
12826
  return m(), U("div", { ref: "cropper", class: r.classes.cropper }, [A("div", { ref: "stretcher", class: r.classes.stretcher }, null, 2), A("div", { class: r.classes.boundaries, style: r.boundariesStyle }, [(m(), U(ui(i.backgroundWrapperComponent), { class: r.classes.cropperWrapper, "wheel-resize": r.settings.resizeImage.wheel, "touch-resize": r.settings.resizeImage.touch, "touch-move": r.settings.moveImage.touch, "mouse-move": r.settings.moveImage.mouse, onMove: r.onManipulateImage, onResize: r.onManipulateImage }, { default: J(function() {
12820
- return [A("div", { class: r.classes.background, style: r.boundariesStyle }, null, 6), A("div", { class: r.classes.imageWrapper }, [A("img", { ref: "image", crossorigin: s.imageAttributes.crossOrigin, src: s.imageAttributes.src, class: r.classes.image, style: r.imageStyle, onMousedown: e[1] || (e[1] = Le(function() {
12827
+ return [A("div", { class: r.classes.background, style: r.boundariesStyle }, null, 6), A("div", { class: r.classes.imageWrapper }, [A("img", { ref: "image", crossorigin: s.imageAttributes.crossOrigin, src: s.imageAttributes.src, class: r.classes.image, style: r.imageStyle, onMousedown: e[1] || (e[1] = De(function() {
12821
12828
  }, ["prevent"])) }, null, 46, ["crossorigin", "src"])], 2), A("div", { class: r.classes.foreground, style: r.boundariesStyle }, null, 6), Ye((m(), U(ui(i.stencilComponent), It({ ref: "stencil", image: r.image, coordinates: s.coordinates, "stencil-coordinates": r.stencilCoordinates, transitions: r.transitionsOptions }, i.stencilProps, { onResize: r.onResize, onResizeEnd: r.onResizeEnd, onMove: r.onMove, onMoveEnd: r.onMoveEnd }), null, 16, ["image", "coordinates", "stencil-coordinates", "transitions", "onResize", "onResizeEnd", "onMove", "onMoveEnd"])), [[os, s.imageLoaded]]), i.canvas ? (m(), U("canvas", a0, null, 512)) : X("", !0), i.canvas ? (m(), U("canvas", l0, null, 512)) : X("", !0)];
12822
12829
  }), _: 1 }, 8, ["class", "wheel-resize", "touch-resize", "touch-move", "mouse-move", "onMove", "onResize"]))], 6)], 2);
12823
12830
  };
@@ -1,4 +1,4 @@
1
- (function(j,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],i):(j=typeof globalThis<"u"?globalThis:j||self,i(j.sprof={},j.Vue))})(this,function(j,i){"use strict";var sg=Object.defineProperty;var og=(j,i,Ie)=>i in j?sg(j,i,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):j[i]=Ie;var l=(j,i,Ie)=>og(j,typeof i!="symbol"?i+"":i,Ie);var Xe,Se,Rt,D,ke,tt;var Ie=typeof document<"u"?document.currentScript:null,ce=(t=>(t.Login="login",t.Register="register",t.Restore="restore",t.Refresh="refresh",t))(ce||{}),de=(t=>(t.Primary="primary",t.Success="success",t.Warning="warning",t.Error="error",t.Info="info",t))(de||{});class it{constructor(e,n,r,s){l(this,"text","Сохранить");l(this,"type",de.Success);l(this,"condition",!0);l(this,"action");l(this,"id","button");l(this,"disabled",!1);this.text=e,this.type=r,this.action=n,s!==void 0&&(this.condition=s)}static Primary(e,n,r){return new it(e,n,de.Primary,r)}static Success(e,n,r){return new it(e,n,de.Success,r)}static Warning(e,n,r){return new it(e,n,de.Warning,r)}static Error(e,n,r){return new it(e,n,de.Error,r)}}class Jt extends it{constructor(){super();l(this,"id","auth-button");l(this,"chunk",ce.Login);l(this,"text","");l(this,"isSubmit",!1);l(this,"isLink",!0)}GetChunk(){return this.chunk}}let Yn=class extends Jt{constructor(){super(...arguments);l(this,"id","auth-button-login");l(this,"text","Войти");l(this,"isSubmit",!1);l(this,"chunk",ce.Login)}};class fr extends Jt{constructor(){super(...arguments);l(this,"id","auth-button-refresh");l(this,"text","Обновить пароль");l(this,"isSubmit",!1);l(this,"chunk",ce.Refresh)}}class Qn extends Jt{constructor(){super(...arguments);l(this,"id","auth-button-register");l(this,"text","Зарегистрироваться");l(this,"isSubmit",!1);l(this,"chunk",ce.Register)}}class Yt extends Jt{constructor(){super(...arguments);l(this,"id","auth-button-restore");l(this,"text","Забыли пароль?");l(this,"isSubmit",!1);l(this,"chunk",ce.Restore)}}class mr{constructor(){l(this,"value","");l(this,"label","");l(this,"placeholder","");l(this,"validator")}Validate(){return this.validator?(this.validator.errors=[],this.validator.validate(this.value),this.validator.errors):[]}Reset(){this.value=""}}var qe=(t=>(t.Email="field-auth-email",t.Password="field-auth-password",t.PasswordRepeat="field-auth-password-repeat",t))(qe||{});class Qt extends mr{constructor(){super(...arguments);l(this,"method");l(this,"id","field-auth");l(this,"name","")}get IsPassword(){return this.id===qe.Password||this.id===qe.PasswordRepeat}}var mt=(t=>(t.Login="login",t.Email="email",t.Phone="phone",t.VK="vk",t.ESIA="esia",t))(mt||{});const sl=/\S+@\S+\.\S+/;class pr{constructor(){l(this,"errors",[])}validate(e){return(e===""||!e)&&this.errors.push("Введите email"),sl.test(e)||this.errors.push("Некорректный email"),this.errors}}class ol extends Qt{constructor(){super(...arguments);l(this,"id",qe.Email);l(this,"label","Email");l(this,"name","email");l(this,"placeholder","Введите email");l(this,"validator",new pr);l(this,"method",mt.Email)}}const Kt=new ol;class al{constructor(){l(this,"errors",[]);l(this,"length",3)}validate(e){return e===""||!e?(this.errors.push("Введите пароль"),this.errors):(e.length<this.length&&this.errors.push("Пароль должен быть длиннее 3 символов"),this.errors)}}class ll extends Qt{constructor(){super(...arguments);l(this,"label","Пароль");l(this,"validator",new al);l(this,"name","password");l(this,"placeholder","Введите пароль");l(this,"id",qe.Password)}}const en=new ll;class cl extends Qt{constructor(){super(...arguments);l(this,"label","Повторите пароль");l(this,"id",qe.PasswordRepeat)}}const gr=new cl,yr={allowRestore:!1,[ce.Login]:{methods:[mt.Email],title:"Вход в систему",action:"login",buttons:[new Yn,new Qn,new Yt],fields:[Kt,en],errorMessage:"Неверно указан email или пароль",successMessage:"Вы успешно вошли в систему"},[ce.Register]:{methods:[],title:"Регистрация",action:"register",buttons:[new Qn,new Yn,new Yt],fields:[Kt,en,gr],errorMessage:"Неверно указан email или пароль",successMessage:"Вы успешно зарегистрировались в системе, войдите под своим паролем"},[ce.Restore]:{title:"Восстановление пароля",methods:[],action:"restorePassword",successMessage:"Ссылка для восстановления пароля отправлена на Вашу почту",errorMessage:"Неверно указан email",buttons:[new Yt],fields:[Kt]},[ce.Refresh]:{methods:[],title:"Создание нового пароля",action:"passwordChange",successMessage:"Воспользуйтесь новым паролем для входа",errorMessage:"Неверно указан email",buttons:[new fr],fields:[en]}};class dl{constructor(){l(this,"block",!1);l(this,"settings",yr);l(this,"chunk",ce.Login);l(this,"selectedMethod",mt.Email)}async Block(e){this.block=!0,await e(),this.block=!1}get IsBlock(){return this.block}GetValues(){const e=this.GetFields(),n=new Map;return e.forEach(r=>{r.value&&n.set(r.name,r.value)}),Object.fromEntries(n)}Validate(){if(this.IsRegister){const e=this.GetField(qe.Password),n=this.GetField(qe.PasswordRepeat);if((e==null?void 0:e.value)!==(n==null?void 0:n.value))return["Пароли не совпадают"]}return this.GetFields().map(e=>e.Validate()).flat()}GetFields(){return this.GetCurSet().fields.filter(e=>!e.method||e.method===this.selectedMethod)}GetMethods(){return this.GetCurSet().methods}Chunk(){return this.chunk}get Settings(){return this.settings}GetCurSet(){return this.settings[this.chunk]}get IsLogin(){return this.chunk===ce.Login}get IsRegister(){return this.chunk===ce.Register}get IsRestore(){return this.chunk===ce.Restore}get IsRefresh(){return this.chunk===ce.Refresh}SetChunk(e){this.chunk=e}GetTitle(){return this.GetCurSet().title}GetButtons(){const e=this.GetCurSet().buttons;return e.forEach(n=>{n.isSubmit=!1}),e[0].isSubmit=!0,e}GetSuccessMessage(){return this.GetCurSet().successMessage}GetErrorMessage(){return this.GetCurSet().errorMessage}GetAction(){return this.GetCurSet().action}ResetFields(){this.GetCurSet().fields.forEach(e=>e.Reset())}Reset(){this.SetChunk(ce.Login),this.ResetFields()}GetField(e){return this.GetFields().find(n=>n.id===e)}}class ul{constructor(){l(this,"visible",!1);l(this,"closable",!1)}get Closable(){return this.closable}get Visible(){return this.visible}Close(){this.visible=!1}Open(e){e&&(this.closable=!0),this.visible=!0}}class wr{constructor(){l(this,"visible",!1)}hide(){this.visible=!1}show(){this.hide(),this.visible=!0}IsVisible(){return this.visible}}class br extends wr{constructor(){super(...arguments);l(this,"type",de.Success);l(this,"text","");l(this,"title","")}showMessage(n,r){this.hide(),this.type=r,typeof n=="string"?this.text=n:(this.text=n.text,this.title=n.title??""),super.show()}GetText(){return this.text}GetTitle(){return this.title}GetType(){return this.type}Info(n){this.showMessage(n,de.Info)}Success(n){this.showMessage(n,de.Success)}Error(n){this.showMessage(n,de.Error)}Warning(n){this.showMessage(n,de.Warning)}FormMessage(n){let r="<strong>Проверьте правильность введенных данных:</strong><ul>";for(const s of Object.keys(n))n[s][0]&&n[s][0].message&&(r+=`<li>${n[s][0].message}</li>`);return r+="</ul>",r}}class Kn{static Get(e,n,r="-"){return!e||!n?"":`${e}${r}${n}`}static In(e,n,r){return e>=n&&e<=r}static Intersects(e,n,r,s){return e===r||n===s||e>r&&e<s||n>r&&n<s||n>s&&e<r}}const Cr=1e3,Sr=60*Cr,ei=60*Sr;var At=(t=>(t.FiveMinutes="5",t.HourQuarter="15",t.HourHalf="30",t.Hour="60",t))(At||{});const tn={5:["00","05","10","15","20","25","30","35","40","45","50","55"],15:["00","15","30","45"],30:["00","30"],60:["00"]};class O{static S(e){return Cr*e}static M(e){return Sr*e}static H(e){return ei*e}static D(e){return ei*e}static W(e){return ei*e}static NormalizeTime(e){return String(e).padStart(2,"0")}static HMtoM(e){const n=O.SplitHM(e);return n.length>1?O.HtoM(n[0])+n[1]:O.HtoM(n[0])}static HtoM(e){return Number(e)*60}static SplitHM(e){if(!e)return[];const n=e.split(":");return[Number(n[0]),Number(n[1])]}static HmsToHm(e){const n=O.SplitHM(e);return O.ConcatHM(n[0],n[1])}static AddMtoHM(e,n){const r=new Date,s=O.SplitHM(e);r.setHours(s[0],s[1],0,0);const o=new Date(r.getTime()+n*6e4),a=o.getHours(),d=o.getMinutes();return O.ConcatHM(a,d)}static ConcatHM(e,n){return`${e}:${O.NormalizeTime(n)}`}static DiffM(e,n){return O.Gt(n,e)?O.HMtoM(n)-O.HMtoM(e):O.HMtoM(e)-O.HMtoM(n)}static GetPeriod(e,n){return Kn.Get(e,n)}static Gt(e,n){return O.HMtoM(e)>O.HMtoM(n)}static GtOrEq(e,n){return O.Gt(e,n)||O.Eq(e,n)}static Eq(e,n){return O.HMtoM(e)===O.HMtoM(n)}static PeriodInPeriod(e,n,r,s){return O.HMtoM(e)>=O.HMtoM(r)&&O.HMtoM(n)<=O.HMtoM(s)}static PeriodsIntersects(e,n,r,s){return Kn.Intersects(O.HMtoM(e),O.HMtoM(n),O.HMtoM(r),O.HMtoM(s))}}class zt{static Wait(e,n){return new Promise(r=>setTimeout(()=>r(n),e))}static WaitS(e,n){return zt.Wait(O.S(e),n)}static WaitM(e,n){return zt.Wait(O.M(e),n)}}class hl extends br{constructor(){super(...arguments);l(this,"duration",O.S(3));l(this,"instance")}showMessage(n,r){super.showMessage(n,r),this.visible=!0,typeof n!="string"&&(this.duration=n.duration??this.duration),zt.Wait(this.GetDuration()).then(()=>super.hide())}GetDuration(){return this.duration}Dev(){const n="В режиме разработки",r=de.Warning;super.showMessage(n,r)}Save(){const n="Изменения успешно сохранены",r=de.Success;super.showMessage(n,r)}}const fl=new hl,ye=i.reactive(fl);class ze{static Get(e){const n=localStorage.getItem(e);if(n)return JSON.parse(n)}static Set(e,n){n&&localStorage.setItem(e,JSON.stringify(n))}static Remove(e){localStorage.removeItem(e)}}var Re=(t=>(t.User="user",t.AccessToken="accessToken",t.RefreshToken="refreshToken",t))(Re||{});class ml{set(e){this.setAccessToken(e.accessToken),this.setRefreshToken(e.refreshToken)}getAccessToken(){return ze.Get(Re.AccessToken)}getRefreshToken(){return ze.Get(Re.RefreshToken)}setAccessToken(e){ze.Set(Re.AccessToken,e)}setRefreshToken(e){ze.Set(Re.RefreshToken,e)}reset(){ze.Remove(Re.AccessToken),ze.Remove(Re.RefreshToken)}actualize(){this.setAccessToken(this.getAccessToken()),this.setRefreshToken(this.getAccessToken())}}class pl{constructor(){l(this,"user");l(this,"userConstructor")}AssignTo(e){e.user=this.get()}setUserConstructor(e){this.userConstructor=e}get(){if(!this.userConstructor){console.warn("No userConstructor was set");return}return this.user}set(e){this.userConstructor&&(this.user=new this.userConstructor(e),ze.Set(Re.User,this.user))}reset(){this.user=void 0,ze.Remove(Re.User)}actualize(){const e=ze.Get(Re.User);e&&this.set(e)}}class gl{constructor(){l(this,"isAuth",!1);l(this,"user",new pl);l(this,"tokens",new ml);l(this,"preventLogout",!1)}DeprecateLogout(){this.preventLogout=!0}AllowLogout(){this.preventLogout=!1}get IsAuth(){return this.isAuth}get User(){return this.user.get()}SetUserConstructor(e){this.user.setUserConstructor(e)}SetUser(e){this.user.set(e)}SetState(e){this.SetUser(e.user),this.tokens.set(e.tokens),this.isAuth=!0}Logout(){if(this.preventLogout){ye.Warning("В текущий момент Вы не можете выйти из системы");return}this.user.reset(),this.tokens.reset(),this.isAuth=!1}Actualize(){if(this.user.actualize(),this.tokens.actualize(),this.tokens.getAccessToken()){this.isAuth=!0;return}this.Logout()}}const It=class It{constructor(){l(this,"form",i.reactive(new dl));l(this,"status",i.reactive(new gl));l(this,"modal",i.reactive(new ul));if(It.instance)return It.instance;It.instance=this,Object.freeze(this)}get Form(){return this.form}get Status(){return this.status}get Modal(){return this.modal}};l(It,"instance");let ti=It;const se=new ti;var kr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};/*! *****************************************************************************
1
+ (function(j,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],i):(j=typeof globalThis<"u"?globalThis:j||self,i(j.sprof={},j.Vue))})(this,function(j,i){"use strict";var sg=Object.defineProperty;var og=(j,i,Ie)=>i in j?sg(j,i,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):j[i]=Ie;var l=(j,i,Ie)=>og(j,typeof i!="symbol"?i+"":i,Ie);var Xe,Ce,Rt,D,ke,tt;var Ie=typeof document<"u"?document.currentScript:null,ce=(t=>(t.Login="login",t.Register="register",t.Restore="restore",t.Refresh="refresh",t))(ce||{}),de=(t=>(t.Primary="primary",t.Success="success",t.Warning="warning",t.Error="error",t.Info="info",t))(de||{});class it{constructor(e,n,r,s){l(this,"text","Сохранить");l(this,"type",de.Success);l(this,"condition",!0);l(this,"action");l(this,"id","button");l(this,"disabled",!1);this.text=e,this.type=r,this.action=n,s!==void 0&&(this.condition=s)}static Primary(e,n,r){return new it(e,n,de.Primary,r)}static Success(e,n,r){return new it(e,n,de.Success,r)}static Warning(e,n,r){return new it(e,n,de.Warning,r)}static Error(e,n,r){return new it(e,n,de.Error,r)}}class Jt extends it{constructor(){super();l(this,"id","auth-button");l(this,"chunk",ce.Login);l(this,"text","");l(this,"isSubmit",!1);l(this,"isLink",!0)}GetChunk(){return this.chunk}}let Yn=class extends Jt{constructor(){super(...arguments);l(this,"id","auth-button-login");l(this,"text","Войти");l(this,"isSubmit",!1);l(this,"chunk",ce.Login)}};class fr extends Jt{constructor(){super(...arguments);l(this,"id","auth-button-refresh");l(this,"text","Обновить пароль");l(this,"isSubmit",!1);l(this,"chunk",ce.Refresh)}}class Qn extends Jt{constructor(){super(...arguments);l(this,"id","auth-button-register");l(this,"text","Зарегистрироваться");l(this,"isSubmit",!1);l(this,"chunk",ce.Register)}}class Yt extends Jt{constructor(){super(...arguments);l(this,"id","auth-button-restore");l(this,"text","Забыли пароль?");l(this,"isSubmit",!1);l(this,"chunk",ce.Restore)}}class mr{constructor(){l(this,"value","");l(this,"label","");l(this,"placeholder","");l(this,"validator")}Validate(){return this.validator?(this.validator.errors=[],this.validator.validate(this.value),this.validator.errors):[]}Reset(){this.value=""}}var qe=(t=>(t.Email="field-auth-email",t.Password="field-auth-password",t.PasswordRepeat="field-auth-password-repeat",t))(qe||{});class Qt extends mr{constructor(){super(...arguments);l(this,"method");l(this,"id","field-auth");l(this,"name","")}get IsPassword(){return this.id===qe.Password||this.id===qe.PasswordRepeat}}var mt=(t=>(t.Login="login",t.Email="email",t.Phone="phone",t.VK="vk",t.ESIA="esia",t))(mt||{});const sl=/\S+@\S+\.\S+/;class pr{constructor(){l(this,"errors",[])}validate(e){return(e===""||!e)&&this.errors.push("Введите email"),sl.test(e)||this.errors.push("Некорректный email"),this.errors}}class ol extends Qt{constructor(){super(...arguments);l(this,"id",qe.Email);l(this,"label","Email");l(this,"name","email");l(this,"placeholder","Введите email");l(this,"validator",new pr);l(this,"method",mt.Email)}}const Kt=new ol;class al{constructor(){l(this,"errors",[]);l(this,"length",3)}validate(e){return e===""||!e?(this.errors.push("Введите пароль"),this.errors):(e.length<this.length&&this.errors.push("Пароль должен быть длиннее 3 символов"),this.errors)}}class ll extends Qt{constructor(){super(...arguments);l(this,"label","Пароль");l(this,"validator",new al);l(this,"name","password");l(this,"placeholder","Введите пароль");l(this,"id",qe.Password)}}const en=new ll;class cl extends Qt{constructor(){super(...arguments);l(this,"label","Повторите пароль");l(this,"id",qe.PasswordRepeat)}}const gr=new cl,yr={allowRestore:!1,[ce.Login]:{methods:[mt.Email],title:"Вход в систему",action:"login",buttons:[new Yn,new Qn,new Yt],fields:[Kt,en],errorMessage:"Неверно указан email или пароль",successMessage:"Вы успешно вошли в систему"},[ce.Register]:{methods:[],title:"Регистрация",action:"register",buttons:[new Qn,new Yn,new Yt],fields:[Kt,en,gr],errorMessage:"Неверно указан email или пароль",successMessage:"Вы успешно зарегистрировались в системе, войдите под своим паролем"},[ce.Restore]:{title:"Восстановление пароля",methods:[],action:"restorePassword",successMessage:"Ссылка для восстановления пароля отправлена на Вашу почту",errorMessage:"Неверно указан email",buttons:[new Yt],fields:[Kt]},[ce.Refresh]:{methods:[],title:"Создание нового пароля",action:"passwordChange",successMessage:"Воспользуйтесь новым паролем для входа",errorMessage:"Неверно указан email",buttons:[new fr],fields:[en]}};class dl{constructor(){l(this,"block",!1);l(this,"settings",yr);l(this,"chunk",ce.Login);l(this,"selectedMethod",mt.Email)}async Block(e){this.block=!0,await e(),this.block=!1}get IsBlock(){return this.block}GetValues(){const e=this.GetFields(),n=new Map;return e.forEach(r=>{r.value&&n.set(r.name,r.value)}),Object.fromEntries(n)}Validate(){if(this.IsRegister){const e=this.GetField(qe.Password),n=this.GetField(qe.PasswordRepeat);if((e==null?void 0:e.value)!==(n==null?void 0:n.value))return["Пароли не совпадают"]}return this.GetFields().map(e=>e.Validate()).flat()}GetFields(){return this.GetCurSet().fields.filter(e=>!e.method||e.method===this.selectedMethod)}GetMethods(){return this.GetCurSet().methods}Chunk(){return this.chunk}get Settings(){return this.settings}GetCurSet(){return this.settings[this.chunk]}get IsLogin(){return this.chunk===ce.Login}get IsRegister(){return this.chunk===ce.Register}get IsRestore(){return this.chunk===ce.Restore}get IsRefresh(){return this.chunk===ce.Refresh}SetChunk(e){this.chunk=e}GetTitle(){return this.GetCurSet().title}GetButtons(){const e=this.GetCurSet().buttons;return e.forEach(n=>{n.isSubmit=!1}),e[0].isSubmit=!0,e}GetSuccessMessage(){return this.GetCurSet().successMessage}GetErrorMessage(){return this.GetCurSet().errorMessage}GetAction(){return this.GetCurSet().action}ResetFields(){this.GetCurSet().fields.forEach(e=>e.Reset())}Reset(){this.SetChunk(ce.Login),this.ResetFields()}GetField(e){return this.GetFields().find(n=>n.id===e)}}class ul{constructor(){l(this,"visible",!1);l(this,"closable",!1)}get Closable(){return this.closable}get Visible(){return this.visible}Close(){this.visible=!1}Open(e){e&&(this.closable=!0),this.visible=!0}}class wr{constructor(){l(this,"visible",!1)}hide(){this.visible=!1}show(){this.hide(),this.visible=!0}IsVisible(){return this.visible}}class br extends wr{constructor(){super(...arguments);l(this,"type",de.Success);l(this,"text","");l(this,"title","")}showMessage(n,r){this.hide(),this.type=r,typeof n=="string"?this.text=n:(this.text=n.text,this.title=n.title??""),super.show()}GetText(){return this.text}GetTitle(){return this.title}GetType(){return this.type}Info(n){this.showMessage(n,de.Info)}Success(n){this.showMessage(n,de.Success)}Error(n){this.showMessage(n,de.Error)}Warning(n){this.showMessage(n,de.Warning)}FormMessage(n){let r="<strong>Проверьте правильность введенных данных:</strong><ul>";for(const s of Object.keys(n))n[s][0]&&n[s][0].message&&(r+=`<li>${n[s][0].message}</li>`);return r+="</ul>",r}}class Kn{static Get(e,n,r="-"){return!e||!n?"":`${e}${r}${n}`}static In(e,n,r){return e>=n&&e<=r}static Intersects(e,n,r,s){return e===r||n===s||e>r&&e<s||n>r&&n<s||n>s&&e<r}}const Cr=1e3,Sr=60*Cr,ei=60*Sr;var At=(t=>(t.FiveMinutes="5",t.HourQuarter="15",t.HourHalf="30",t.Hour="60",t))(At||{});const tn={5:["00","05","10","15","20","25","30","35","40","45","50","55"],15:["00","15","30","45"],30:["00","30"],60:["00"]};class O{static S(e){return Cr*e}static M(e){return Sr*e}static H(e){return ei*e}static D(e){return ei*e}static W(e){return ei*e}static NormalizeTime(e){return String(e).padStart(2,"0")}static HMtoM(e){const n=O.SplitHM(e);return n.length>1?O.HtoM(n[0])+n[1]:O.HtoM(n[0])}static HtoM(e){return Number(e)*60}static SplitHM(e){if(!e)return[];const n=e.split(":");return[Number(n[0]),Number(n[1])]}static HmsToHm(e){const n=O.SplitHM(e);return O.ConcatHM(n[0],n[1])}static AddMtoHM(e,n){const r=new Date,s=O.SplitHM(e);r.setHours(s[0],s[1],0,0);const o=new Date(r.getTime()+n*6e4),a=o.getHours(),d=o.getMinutes();return O.ConcatHM(a,d)}static ConcatHM(e,n){return`${e}:${O.NormalizeTime(n)}`}static DiffM(e,n){return O.Gt(n,e)?O.HMtoM(n)-O.HMtoM(e):O.HMtoM(e)-O.HMtoM(n)}static GetPeriod(e,n){return Kn.Get(e,n)}static Gt(e,n){return O.HMtoM(e)>O.HMtoM(n)}static GtOrEq(e,n){return O.Gt(e,n)||O.Eq(e,n)}static Eq(e,n){return O.HMtoM(e)===O.HMtoM(n)}static PeriodInPeriod(e,n,r,s){return O.HMtoM(e)>=O.HMtoM(r)&&O.HMtoM(n)<=O.HMtoM(s)}static PeriodsIntersects(e,n,r,s){return Kn.Intersects(O.HMtoM(e),O.HMtoM(n),O.HMtoM(r),O.HMtoM(s))}}class zt{static Wait(e,n){return new Promise(r=>setTimeout(()=>r(n),e))}static WaitS(e,n){return zt.Wait(O.S(e),n)}static WaitM(e,n){return zt.Wait(O.M(e),n)}}class hl extends br{constructor(){super(...arguments);l(this,"duration",O.S(3));l(this,"instance")}showMessage(n,r){super.showMessage(n,r),this.visible=!0,typeof n!="string"&&(this.duration=n.duration??this.duration),zt.Wait(this.GetDuration()).then(()=>super.hide())}GetDuration(){return this.duration}Dev(){const n="В режиме разработки",r=de.Warning;super.showMessage(n,r)}Save(){const n="Изменения успешно сохранены",r=de.Success;super.showMessage(n,r)}}const fl=new hl,ye=i.reactive(fl);class ze{static Get(e){const n=localStorage.getItem(e);if(n)return JSON.parse(n)}static Set(e,n){n&&localStorage.setItem(e,JSON.stringify(n))}static Remove(e){localStorage.removeItem(e)}}var Re=(t=>(t.User="user",t.AccessToken="accessToken",t.RefreshToken="refreshToken",t))(Re||{});class ml{set(e){this.setAccessToken(e.accessToken),this.setRefreshToken(e.refreshToken)}getAccessToken(){return ze.Get(Re.AccessToken)}getRefreshToken(){return ze.Get(Re.RefreshToken)}setAccessToken(e){ze.Set(Re.AccessToken,e)}setRefreshToken(e){ze.Set(Re.RefreshToken,e)}reset(){ze.Remove(Re.AccessToken),ze.Remove(Re.RefreshToken)}actualize(){this.setAccessToken(this.getAccessToken()),this.setRefreshToken(this.getAccessToken())}}class pl{constructor(){l(this,"user");l(this,"userConstructor")}AssignTo(e){e.user=this.get()}setUserConstructor(e){this.userConstructor=e}get(){if(!this.userConstructor){console.warn("No userConstructor was set");return}return this.user}set(e){this.userConstructor&&(this.user=new this.userConstructor(e),ze.Set(Re.User,this.user))}reset(){this.user=void 0,ze.Remove(Re.User)}actualize(){const e=ze.Get(Re.User);e&&this.set(e)}}class gl{constructor(){l(this,"isAuth",!1);l(this,"user",new pl);l(this,"tokens",new ml);l(this,"preventLogout",!1)}DeprecateLogout(){this.preventLogout=!0}AllowLogout(){this.preventLogout=!1}get IsAuth(){return this.isAuth}get User(){return this.user.get()}SetUserConstructor(e){this.user.setUserConstructor(e)}SetUser(e){this.user.set(e)}SetState(e){this.SetUser(e.user),this.tokens.set(e.tokens),this.isAuth=!0}Logout(){if(this.preventLogout){ye.Warning("В текущий момент Вы не можете выйти из системы");return}this.user.reset(),this.tokens.reset(),this.isAuth=!1}Actualize(){if(this.user.actualize(),this.tokens.actualize(),this.tokens.getAccessToken()){this.isAuth=!0;return}this.Logout()}}const It=class It{constructor(){l(this,"form",i.reactive(new dl));l(this,"status",i.reactive(new gl));l(this,"modal",i.reactive(new ul));if(It.instance)return It.instance;It.instance=this,Object.freeze(this)}get Form(){return this.form}get Status(){return this.status}get Modal(){return this.modal}};l(It,"instance");let ti=It;const se=new ti;var kr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};/*! *****************************************************************************
2
2
  Copyright (C) Microsoft. All rights reserved.
3
3
  Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4
4
  this file except in compliance with the License. You may obtain a copy of the
@@ -11,7 +11,7 @@
11
11
 
12
12
  See the Apache Version 2.0 License for specific language governing permissions
13
13
  and limitations under the License.
14
- ***************************************************************************** */var Er;(function(t){(function(e){var n=typeof globalThis=="object"?globalThis:typeof kr=="object"?kr:typeof self=="object"?self:typeof this=="object"?this:d(),r=s(t);typeof n.Reflect<"u"&&(r=s(n.Reflect,r)),e(r,n),typeof n.Reflect>"u"&&(n.Reflect=t);function s(c,u){return function(h,f){Object.defineProperty(c,h,{configurable:!0,writable:!0,value:f}),u&&u(h,f)}}function o(){try{return Function("return this;")()}catch{}}function a(){try{return(0,eval)("(function() { return this; })()")}catch{}}function d(){return o()||a()}})(function(e,n){var r=Object.prototype.hasOwnProperty,s=typeof Symbol=="function",o=s&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",a=s&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",d=typeof Object.create=="function",c={__proto__:[]}instanceof Array,u=!d&&!c,h={create:d?function(){return ur(Object.create(null))}:c?function(){return ur({__proto__:null})}:function(){return ur({})},has:u?function(p,y){return r.call(p,y)}:function(p,y){return y in p},get:u?function(p,y){return r.call(p,y)?p[y]:void 0}:function(p,y){return p[y]}},f=Object.getPrototypeOf(Function),m=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:eg(),g=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:tg(),C=typeof WeakMap=="function"?WeakMap:ng(),b=s?Symbol.for("@reflect-metadata:registry"):void 0,S=Yp(),I=Qp(S);function L(p,y,k,x){if(T(k)){if(!Ga(p))throw new TypeError;if(!_a(y))throw new TypeError;return Up(p,y)}else{if(!Ga(p))throw new TypeError;if(!ie(y))throw new TypeError;if(!ie(x)&&!T(x)&&!Nt(x))throw new TypeError;return Nt(x)&&(x=void 0),k=He(k),jp(p,y,k,x)}}e("decorate",L);function P(p,y){function k(x,V){if(!ie(x))throw new TypeError;if(!T(V)&&!Xp(V))throw new TypeError;Ha(p,y,x,V)}return k}e("metadata",P);function v(p,y,k,x){if(!ie(k))throw new TypeError;return T(x)||(x=He(x)),Ha(p,y,k,x)}e("defineMetadata",v);function H(p,y,k){if(!ie(y))throw new TypeError;return T(k)||(k=He(k)),Oa(p,y,k)}e("hasMetadata",H);function Be(p,y,k){if(!ie(y))throw new TypeError;return T(k)||(k=He(k)),lr(p,y,k)}e("hasOwnMetadata",Be);function $e(p,y,k){if(!ie(y))throw new TypeError;return T(k)||(k=He(k)),Da(p,y,k)}e("getMetadata",$e);function nt(p,y,k){if(!ie(y))throw new TypeError;return T(k)||(k=He(k)),La(p,y,k)}e("getOwnMetadata",nt);function vt(p,y){if(!ie(p))throw new TypeError;return T(y)||(y=He(y)),qa(p,y)}e("getMetadataKeys",vt);function Zn(p,y){if(!ie(p))throw new TypeError;return T(y)||(y=He(y)),Ua(p,y)}e("getOwnMetadataKeys",Zn);function qp(p,y,k){if(!ie(y))throw new TypeError;if(T(k)||(k=He(k)),!ie(y))throw new TypeError;T(k)||(k=He(k));var x=Zt(y,k,!1);return T(x)?!1:x.OrdinaryDeleteMetadata(p,y,k)}e("deleteMetadata",qp);function Up(p,y){for(var k=p.length-1;k>=0;--k){var x=p[k],V=x(y);if(!T(V)&&!Nt(V)){if(!_a(V))throw new TypeError;y=V}}return y}function jp(p,y,k,x){for(var V=p.length-1;V>=0;--V){var le=p[V],re=le(y,k,x);if(!T(re)&&!Nt(re)){if(!ie(re))throw new TypeError;x=re}}return x}function Oa(p,y,k){var x=lr(p,y,k);if(x)return!0;var V=dr(y);return Nt(V)?!1:Oa(p,V,k)}function lr(p,y,k){var x=Zt(y,k,!1);return T(x)?!1:Wa(x.OrdinaryHasOwnMetadata(p,y,k))}function Da(p,y,k){var x=lr(p,y,k);if(x)return La(p,y,k);var V=dr(y);if(!Nt(V))return Da(p,V,k)}function La(p,y,k){var x=Zt(y,k,!1);if(!T(x))return x.OrdinaryGetOwnMetadata(p,y,k)}function Ha(p,y,k,x){var V=Zt(k,x,!0);V.OrdinaryDefineOwnMetadata(p,y,k,x)}function qa(p,y){var k=Ua(p,y),x=dr(p);if(x===null)return k;var V=qa(x,y);if(V.length<=0)return k;if(k.length<=0)return V;for(var le=new g,re=[],q=0,M=k;q<M.length;q++){var $=M[q],R=le.has($);R||(le.add($),re.push($))}for(var N=0,U=V;N<U.length;N++){var $=U[N],R=le.has($);R||(le.add($),re.push($))}return re}function Ua(p,y){var k=Zt(p,y,!1);return k?k.OrdinaryOwnMetadataKeys(p,y):[]}function ja(p){if(p===null)return 1;switch(typeof p){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return p===null?1:6;default:return 6}}function T(p){return p===void 0}function Nt(p){return p===null}function Wp(p){return typeof p=="symbol"}function ie(p){return typeof p=="object"?p!==null:typeof p=="function"}function Gp(p,y){switch(ja(p)){case 0:return p;case 1:return p;case 2:return p;case 3:return p;case 4:return p;case 5:return p}var k="string",x=Za(p,o);if(x!==void 0){var V=x.call(p,k);if(ie(V))throw new TypeError;return V}return _p(p)}function _p(p,y){var k,x;{var V=p.toString;if(Xn(V)){var x=V.call(p);if(!ie(x))return x}var k=p.valueOf;if(Xn(k)){var x=k.call(p);if(!ie(x))return x}}throw new TypeError}function Wa(p){return!!p}function Zp(p){return""+p}function He(p){var y=Gp(p);return Wp(y)?y:Zp(y)}function Ga(p){return Array.isArray?Array.isArray(p):p instanceof Object?p instanceof Array:Object.prototype.toString.call(p)==="[object Array]"}function Xn(p){return typeof p=="function"}function _a(p){return typeof p=="function"}function Xp(p){switch(ja(p)){case 3:return!0;case 4:return!0;default:return!1}}function cr(p,y){return p===y||p!==p&&y!==y}function Za(p,y){var k=p[y];if(k!=null){if(!Xn(k))throw new TypeError;return k}}function Xa(p){var y=Za(p,a);if(!Xn(y))throw new TypeError;var k=y.call(p);if(!ie(k))throw new TypeError;return k}function Ja(p){return p.value}function Ya(p){var y=p.next();return y.done?!1:y}function Qa(p){var y=p.return;y&&y.call(p)}function dr(p){var y=Object.getPrototypeOf(p);if(typeof p!="function"||p===f||y!==f)return y;var k=p.prototype,x=k&&Object.getPrototypeOf(k);if(x==null||x===Object.prototype)return y;var V=x.constructor;return typeof V!="function"||V===p?y:V}function Jp(){var p;!T(b)&&typeof n.Reflect<"u"&&!(b in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(p=Kp(n.Reflect));var y,k,x,V=new C,le={registerProvider:re,getProvider:M,setProvider:R};return le;function re(N){if(!Object.isExtensible(le))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case p===N:break;case T(y):y=N;break;case y===N:break;case T(k):k=N;break;case k===N:break;default:x===void 0&&(x=new g),x.add(N);break}}function q(N,U){if(!T(y)){if(y.isProviderFor(N,U))return y;if(!T(k)){if(k.isProviderFor(N,U))return y;if(!T(x))for(var X=Xa(x);;){var K=Ya(X);if(!K)return;var Ae=Ja(K);if(Ae.isProviderFor(N,U))return Qa(X),Ae}}}if(!T(p)&&p.isProviderFor(N,U))return p}function M(N,U){var X=V.get(N),K;return T(X)||(K=X.get(U)),T(K)&&(K=q(N,U),T(K)||(T(X)&&(X=new m,V.set(N,X)),X.set(U,K))),K}function $(N){if(T(N))throw new TypeError;return y===N||k===N||!T(x)&&x.has(N)}function R(N,U,X){if(!$(X))throw new Error("Metadata provider not registered.");var K=M(N,U);if(K!==X){if(!T(K))return!1;var Ae=V.get(N);T(Ae)&&(Ae=new m,V.set(N,Ae)),Ae.set(U,X)}return!0}}function Yp(){var p;return!T(b)&&ie(n.Reflect)&&Object.isExtensible(n.Reflect)&&(p=n.Reflect[b]),T(p)&&(p=Jp()),!T(b)&&ie(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,b,{enumerable:!1,configurable:!1,writable:!1,value:p}),p}function Qp(p){var y=new C,k={isProviderFor:function($,R){var N=y.get($);return T(N)?!1:N.has(R)},OrdinaryDefineOwnMetadata:re,OrdinaryHasOwnMetadata:V,OrdinaryGetOwnMetadata:le,OrdinaryOwnMetadataKeys:q,OrdinaryDeleteMetadata:M};return S.registerProvider(k),k;function x($,R,N){var U=y.get($),X=!1;if(T(U)){if(!N)return;U=new m,y.set($,U),X=!0}var K=U.get(R);if(T(K)){if(!N)return;if(K=new m,U.set(R,K),!p.setProvider($,R,k))throw U.delete(R),X&&y.delete($),new Error("Wrong provider for target.")}return K}function V($,R,N){var U=x(R,N,!1);return T(U)?!1:Wa(U.has($))}function le($,R,N){var U=x(R,N,!1);if(!T(U))return U.get($)}function re($,R,N,U){var X=x(N,U,!0);X.set($,R)}function q($,R){var N=[],U=x($,R,!1);if(T(U))return N;for(var X=U.keys(),K=Xa(X),Ae=0;;){var Ka=Ya(K);if(!Ka)return N.length=Ae,N;var ig=Ja(Ka);try{N[Ae]=ig}catch(rg){try{Qa(K)}finally{throw rg}}Ae++}}function M($,R,N){var U=x(R,N,!1);if(T(U)||!U.delete($))return!1;if(U.size===0){var X=y.get(R);T(X)||(X.delete(N),X.size===0&&y.delete(X))}return!0}}function Kp(p){var y=p.defineMetadata,k=p.hasOwnMetadata,x=p.getOwnMetadata,V=p.getOwnMetadataKeys,le=p.deleteMetadata,re=new C,q={isProviderFor:function(M,$){var R=re.get(M);return!T(R)&&R.has($)?!0:V(M,$).length?(T(R)&&(R=new g,re.set(M,R)),R.add($),!0):!1},OrdinaryDefineOwnMetadata:y,OrdinaryHasOwnMetadata:k,OrdinaryGetOwnMetadata:x,OrdinaryOwnMetadataKeys:V,OrdinaryDeleteMetadata:le};return q}function Zt(p,y,k){var x=S.getProvider(p,y);if(!T(x))return x;if(k){if(S.setProvider(p,y,I))return I;throw new Error("Illegal state.")}}function eg(){var p={},y=[],k=function(){function q(M,$,R){this._index=0,this._keys=M,this._values=$,this._selector=R}return q.prototype["@@iterator"]=function(){return this},q.prototype[a]=function(){return this},q.prototype.next=function(){var M=this._index;if(M>=0&&M<this._keys.length){var $=this._selector(this._keys[M],this._values[M]);return M+1>=this._keys.length?(this._index=-1,this._keys=y,this._values=y):this._index++,{value:$,done:!1}}return{value:void 0,done:!0}},q.prototype.throw=function(M){throw this._index>=0&&(this._index=-1,this._keys=y,this._values=y),M},q.prototype.return=function(M){return this._index>=0&&(this._index=-1,this._keys=y,this._values=y),{value:M,done:!0}},q}(),x=function(){function q(){this._keys=[],this._values=[],this._cacheKey=p,this._cacheIndex=-2}return Object.defineProperty(q.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),q.prototype.has=function(M){return this._find(M,!1)>=0},q.prototype.get=function(M){var $=this._find(M,!1);return $>=0?this._values[$]:void 0},q.prototype.set=function(M,$){var R=this._find(M,!0);return this._values[R]=$,this},q.prototype.delete=function(M){var $=this._find(M,!1);if($>=0){for(var R=this._keys.length,N=$+1;N<R;N++)this._keys[N-1]=this._keys[N],this._values[N-1]=this._values[N];return this._keys.length--,this._values.length--,cr(M,this._cacheKey)&&(this._cacheKey=p,this._cacheIndex=-2),!0}return!1},q.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=p,this._cacheIndex=-2},q.prototype.keys=function(){return new k(this._keys,this._values,V)},q.prototype.values=function(){return new k(this._keys,this._values,le)},q.prototype.entries=function(){return new k(this._keys,this._values,re)},q.prototype["@@iterator"]=function(){return this.entries()},q.prototype[a]=function(){return this.entries()},q.prototype._find=function(M,$){if(!cr(this._cacheKey,M)){this._cacheIndex=-1;for(var R=0;R<this._keys.length;R++)if(cr(this._keys[R],M)){this._cacheIndex=R;break}}return this._cacheIndex<0&&$&&(this._cacheIndex=this._keys.length,this._keys.push(M),this._values.push(void 0)),this._cacheIndex},q}();return x;function V(q,M){return q}function le(q,M){return M}function re(q,M){return[q,M]}}function tg(){var p=function(){function y(){this._map=new m}return Object.defineProperty(y.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),y.prototype.has=function(k){return this._map.has(k)},y.prototype.add=function(k){return this._map.set(k,k),this},y.prototype.delete=function(k){return this._map.delete(k)},y.prototype.clear=function(){this._map.clear()},y.prototype.keys=function(){return this._map.keys()},y.prototype.values=function(){return this._map.keys()},y.prototype.entries=function(){return this._map.entries()},y.prototype["@@iterator"]=function(){return this.keys()},y.prototype[a]=function(){return this.keys()},y}();return p}function ng(){var p=16,y=h.create(),k=x();return function(){function M(){this._key=x()}return M.prototype.has=function($){var R=V($,!1);return R!==void 0?h.has(R,this._key):!1},M.prototype.get=function($){var R=V($,!1);return R!==void 0?h.get(R,this._key):void 0},M.prototype.set=function($,R){var N=V($,!0);return N[this._key]=R,this},M.prototype.delete=function($){var R=V($,!1);return R!==void 0?delete R[this._key]:!1},M.prototype.clear=function(){this._key=x()},M}();function x(){var M;do M="@@WeakMap@@"+q();while(h.has(y,M));return y[M]=!0,M}function V(M,$){if(!r.call(M,k)){if(!$)return;Object.defineProperty(M,k,{value:h.create()})}return M[k]}function le(M,$){for(var R=0;R<$;++R)M[R]=Math.random()*255|0;return M}function re(M){if(typeof Uint8Array=="function"){var $=new Uint8Array(M);return typeof crypto<"u"?crypto.getRandomValues($):typeof msCrypto<"u"?msCrypto.getRandomValues($):le($,M),$}return le(new Array(M),M)}function q(){var M=re(p);M[6]=M[6]&79|64,M[8]=M[8]&191|128;for(var $="",R=0;R<p;++R){var N=M[R];(R===4||R===6||R===8)&&($+="-"),N<16&&($+="0"),$+=N.toString(16).toLowerCase()}return $}}function ur(p){return p.__=void 0,delete p.__,p}})})(Er||(Er={}));let nn;const yl=new Uint8Array(16);function wl(){if(!nn&&(nn=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!nn))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return nn(yl)}const ue=[];for(let t=0;t<256;++t)ue.push((t+256).toString(16).slice(1));function bl(t,e=0){return ue[t[e+0]]+ue[t[e+1]]+ue[t[e+2]]+ue[t[e+3]]+"-"+ue[t[e+4]]+ue[t[e+5]]+"-"+ue[t[e+6]]+ue[t[e+7]]+"-"+ue[t[e+8]]+ue[t[e+9]]+"-"+ue[t[e+10]]+ue[t[e+11]]+ue[t[e+12]]+ue[t[e+13]]+ue[t[e+14]]+ue[t[e+15]]}const xr={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Je(t,e,n){if(xr.randomUUID&&!t)return xr.randomUUID();t=t||{};const r=t.random||(t.rng||wl)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,bl(r)}class te{static UUID(){return Je()}static GUID(){const e=function(){return((1+Math.random())*65536|0).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}}class W{static Capitalize(e){return e?e[0].toUpperCase()+e.slice(1):""}static ToCamelCase(e){const n=new RegExp(["[А-Я][а-я][A-Z][a-z]+","[А-Я]+(?=[А-Я][а-я])","[A-Z]+(?=[A-Z][a-z])","[А-Я]+","[A-Z]+","[а-я]+","[a-z]+","[0-9]+"].join("|"),"g");return e.match(n).map((s,o)=>o===0?s.toLowerCase():W.Capitalize(s.toLowerCase())).join("")}static ToKebabCase(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}static GetStringBetweenChars(e,n,r){return e.substring(e.indexOf(n)+2,e.lastIndexOf(r))}static Translit(e,n){const r={q:"й",w:"ц",e:"у",r:"к",t:"е",y:"н",u:"г",i:"ш",o:"щ",p:"з","[":"х","]":"ъ",a:"ф",s:"ы",d:"в",f:"а",g:"п",h:"р",j:"о",k:"л",l:"д",";":"ж","'":"э",z:"я",x:"ч",c:"с",v:"м",b:"и",n:"т",m:"ь",",":"б",".":"ю","/":"."};return n&&/[а-яА-Я]/g.test(e)?e.replace(/[А-я/,.;'\][]/g,s=>{if(s===s.toLowerCase()){const a=Object.keys(r).find(d=>r[d]===s);return a||""}const o=Object.keys(r).find(a=>r[a]===s.toLowerCase());return o?o.toUpperCase():""}):e.replace(/[A-z/,.;'\][]/g,s=>s===s.toLowerCase()?r[s]:r[s.toLowerCase()].toUpperCase())}static RemoveEmoji(e){const n=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;return e.replace(n,"")}static CanBeTranslited(e){return/^[~`!@#$%^&*()_+=[\]\\{}|;':",.\/<>?a-zA-Z0-9-]+$/.test(e)}static StringsEquals(e,n){const r=e.toLowerCase().replaceAll(/\s/g,""),s=n.toLowerCase().replaceAll(/\s/g,""),o=W.Translit(r),a=W.Translit(s);return r.includes(s)||o.includes(s)||r.includes(a)}static SearchIn(e,n){return W.StringsEquals(e,n)}static SearchInFields(e,n){let r=!1;for(let s=0;s<n.length;s++)if(W.SearchIn(n[s],e)){r=!0;break}return r}static FormatToPercentage(e){return`${e}%`}static ApplyClassToSubStr(e,n,r){const s=r??"highlight-text",o=new RegExp(W.GetVariants(n).join("|"),"gi");return e.replace(o,`<span class="${s}">$&</span>`)}static GetVariants(e){const n=W.Translit(e);return[e,W.Capitalize(e),e.toLowerCase(),e.toUpperCase(),n,W.Capitalize(n),n.toLowerCase(),n.toUpperCase()]}static ContainsNum(e){return/\d/.test(e)}static JoinSnake(...e){return e.join("_")}static GetDynamicCountName(e,n){const r=[2,0,1,1,1,2];return e.length+" "+n[e.length%100>4&&e.length%100<20?2:r[e.length%10<5?e.length%10:5]]}static TrimText(e){return typeof e=="string"?e.trim():e}}const et=class et{static BuildClass(e,n){n&&Object.keys(n).forEach(r=>{const s=n[r];if(this.isPrimitive(s))e[r]instanceof Date?e[r]=new Date(s):e[r]=s;else if(s!=null&&!Array.isArray(s))if(e[r]&&e[r].constructor)e[r]=new e[r].constructor(s);else{const o=Reflect.getMetadata(r,e);o&&(e[r]=new o[r](s))}if(Array.isArray(s)){if(s.length===0)return;const o=Reflect.getMetadata(r,e);o&&(e[r]=s.map(a=>new o[r](a)))}})}static isPrimitive(e){return e!==null&&typeof e<"u"&&e!==Object(e)}static RemoveFromClassByIndex(e,n,r){et.RemoveFromClass(e,n,r)}static RemoveFromClassById(e,n,r){if(!e)return;const s=n.findIndex(o=>o.id===e);et.RemoveFromClass(s,n,r)}static RemoveFromClass(e,n,r){if(e<0)return;const s=n[e].id;s&&r&&r.push(s),n.splice(e,1)}static GetPropertyName(e){const n=new e;return new Proxy(n,{get(r,s){return s}})}static InitClassInstance(e,n){const r=e.constructor(n);return et.BuildClass(r),r.id=te.UUID(),r}static ExistsWithId(e,n){return e.some(r=>r.id===n)}static DeepMap(e){return n=>Array.isArray(n)?n.map(et.DeepMap(e)):Object(n)===n?Object.fromEntries(Object.entries(n).map(([r,s])=>[r,et.DeepMap(e)(s)])):e(n)}static DeepTrim(e){return this.DeepMap(W.TrimText)(e)}};l(et,"GetClassConstructor",e=>(n,r)=>{const s=Reflect.getMetadata(`property:${r}`,n)||{};s[r]=e,Reflect.defineMetadata(r,s,n)});let B=et;class rt{constructor(e){l(this,"id");l(this,"address");l(this,"description");l(this,"contactId");B.BuildClass(this,e)}static Create(){const e=new rt;return e.id=te.UUID(),e}}class ni{static Setup(e){this.staticUrl=e}static get StaticUrl(){return this.staticUrl}}l(ni,"staticUrl","");class me{constructor(e){l(this,"name","");l(this,"url","");l(this,"src","");l(this,"raw");l(this,"blob");l(this,"file");l(this,"type","");l(this,"id");l(this,"originalName","");l(this,"fileSystemPath","");l(this,"itemId");l(this,"itemOneId");l(this,"description","");l(this,"order",0);B.BuildClass(this,e)}getFileUrl(){const e=this.url?this.url:`${ni.StaticUrl}/${this.fileSystemPath}`;return new URL(e,typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Ie&&Ie.tagName.toUpperCase()==="SCRIPT"&&Ie.src||new URL("sprof.umd.cjs",document.baseURI).href)}getFileListObject(){return{name:this.originalName,url:this.url}}static CreatePreviewFile(e,n){const r=new me;return r.id=n??te.UUID(),r.originalName=e.name,r.file=e.blob,r.fileSystemPath=te.UUID(),r}setFile(e){this.id||(this.id=te.UUID()),this.originalName=e.name,this.file=e,this.fileSystemPath=te.UUID(),this.url=e.src}clearFile(){this.url="",this.file=void 0,this.fileSystemPath="",this.originalName=""}errorImg(e,n){if(e.target){let r="";return n&&(r=`@/assets/img/${n}`),new URL(r,typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Ie&&Ie.tagName.toUpperCase()==="SCRIPT"&&Ie.src||new URL("sprof.umd.cjs",document.baseURI).href)}}getFileInfos(){return[this]}isPdf(){return this.getExtension(this.originalName)===""}getExtension(e){const n=e.split(".");return n[n.length-1]}}class Mr{constructor(e){l(this,"id");l(this,"name","");l(this,"surname","");l(this,"patronymic","");l(this,"isMale",!0);l(this,"dateBirth",new Date);l(this,"contactId");l(this,"slug","");l(this,"postIndex","");l(this,"address","");l(this,"editNameMode",!1);B.BuildClass(this,e)}setEditNameMode(e){this.editNameMode=e}getFullName(){return!this.surname.length&&!this.name.length&&!this.patronymic.length?"":`${this.surname} ${this.name} ${this.patronymic}`}getInitialsName(){return`${this.name.slice(0,1)}.${this.patronymic.slice(0,1)}. ${this.surname}`}getGender(e){return e?this.isMale?"Мужской":"Женский":this.isMale?"М":"Ж"}capitalizeName(){this.name=W.Capitalize(this.name),this.surname=W.Capitalize(this.surname),this.patronymic=W.Capitalize(this.patronymic)}trimName(){this.name=this.name.trim(),this.surname=this.surname.trim(),this.patronymic=this.patronymic.trim()}sanitizeName(){this.trimName(),this.capitalizeName()}setFullName(e){this.surname=e.surname,this.name=e.name,this.patronymic=e.patronymic}}class st{constructor(e){l(this,"id");l(this,"number");l(this,"description");l(this,"contactId");B.BuildClass(this,e)}static Create(){const e=new st;return e.id=te.UUID(),e}}class rn{constructor(e){l(this,"id");l(this,"address");l(this,"description");B.BuildClass(this,e)}}class ii{constructor(e){l(this,"id");l(this,"address");l(this,"description");B.BuildClass(this,e)}}class sn{constructor(e){l(this,"id");l(this,"login","");l(this,"email","");l(this,"password","");B.BuildClass(this,e)}static Create(){const e=new sn;return e.id=te.UUID(),e}}let Cl=(Xe=class{},l(Xe,"Phone",st),l(Xe,"FileInfo",me),l(Xe,"Website",ii),l(Xe,"Email",rt),l(Xe,"Human",Mr),l(Xe,"PostAddress",rn),l(Xe,"UserAccount",sn),Xe);var J=(t=>(t.Eq="=",t.Ne="!=",t.Gt=">",t.Lt="<",t.Btw="between",t.In="in",t.Like="like",t.Null="is null",t.NotNull="is not null",t))(J||{});class on{constructor(e){l(this,"field","");l(this,"operator",J.Eq);l(this,"value","");B.BuildClass(this,e)}static Create(e,n){return new on({operator:n,field:e})}eq(e){return this.field===e.field&&this.operator===e.operator}isUnary(){return this.operator===J.Eq||this.operator===J.Gt||this.operator===J.Lt}isBetween(){return this.operator===J.Btw}isSet(){return this.operator===J.In}}class ri{constructor(e){l(this,"model","");l(this,"field","");l(this,"value","");l(this,"wheres",[]);B.BuildClass(this,e)}static Create(e){const n=new ri;return n.model=e.GetClassName(),n}eq(e){return e.model===this.model&&e.field===this.field}addWhere(e,n){const r=this.findWhere({field:e,operator:n});if(r)return r;const s=on.Create(e,n);return this.wheres.push(s),s}findWhere(e){return this.wheres.find(n=>n.eq(e))}}let Br=class el{constructor(e){l(this,"id");l(this,"model","");l(this,"wheres",[]);l(this,"joins",[]);B.BuildClass(this,e)}static Create(e){const n=new el;return n.model=e.GetClassName(),n}addWhere(e,n){const r=this.findWhere({field:e,operator:n});if(r)return r;const s=on.Create(e,n);return this.wheres.push(s),s}addJoin(e){const n=this.findJoin({model:e.GetClassName()});if(n)return n;const r=ri.Create(e);return this.joins.push(r),r}findJoin(e){return this.joins.find(n=>n.eq(e))}findWhere(e){return this.wheres.find(n=>n.eq(e))}toRef(){return i.ref(this)}};class Ue{static Shuffle(e){for(let n=e.length-1;n>0;n--){const r=Math.floor(Math.random()*(n+1));[e[n],e[r]]=[e[r],e[n]]}}static GenerateNumsRange(e,n,r=1){return Array.from({length:(n-e)/r+1},(s,o)=>e+o*r)}static GetLast(e){return e[e.length-1]}static GetFirst(e){return e[0]}static GetRandEL(e){return e[Math.floor(Math.random()*e.length)]}static Sort(e){e.forEach((n,r)=>n.order=r)}static Refill(e,n){e.splice(0,e.length),e.push(...n)}static Eq(e,n){return e.length===n.length&&(e==null?void 0:e.every((r,s)=>e[s]==n[s]))}static SwipeById(e,n,r){const s=e.findIndex(a=>n.id===a.id),o=e.findIndex(a=>r.id===a.id);s||o||([e[s],e[o]]=[e[o],e[s]])}static Swap(e,n,r){if(n<0||n>=e.length||r<0||r>=e.length)return;const s=e[n];e[n]=e[r],e[r]=s}static MoveUp(e,n){e[n].order=n-1,e[n-1]&&(e[n-1].order=n),[e[n],e[n-1]]=[e[n-1],e[n]]}static MoveDown(e,n){e[n].order=n+1,e[n+1]&&(e[n+1].order=n),[e[n],e[n+1]]=[e[n+1],e[n]]}}var oe=(t=>(t.Date="date",t.String="string",t.Boolean="boolean",t.Number="number",t.Set="set",t.Join="join",t.ArrayString="arrayString",t.ArrayNumber="arrayNumber",t))(oe||{}),Sl=Object.defineProperty,kl=(t,e,n,r)=>{for(var s=void 0,o=t.length-1,a;o>=0;o--)(a=t[o])&&(s=a(e,n,s)||s);return s&&Sl(e,n,s),s};const $r=class Xt{constructor(e){l(this,"id");l(this,"model","");l(this,"label","");l(this,"col","");l(this,"operator",J.Eq);l(this,"date1");l(this,"date2");l(this,"value1","");l(this,"boolean",!1);l(this,"number",0);l(this,"type",oe.String);l(this,"set",[]);l(this,"isSet",!1);l(this,"joinTable","");l(this,"joinTableModel","");l(this,"joinTableFk","");l(this,"joinTablePk","");l(this,"joinTableId","");l(this,"joinTableIdCol","");B.BuildClass(this,e)}eq(e){if(!e)return!1;if(this.type===oe.Join){const n=e.model===this.model&&e.operator===this.operator&&this.joinTableModel===e.joinTableModel;return e.operator===J.In?n&&Ue.Eq(this.set,e.set):n}return e.model===this.model&&e.col===this.col&&e.operator===this.operator}valueEq(e){return!this||!e||!this.eq(e)?!1:this.type===oe.Boolean?this.boolean===(e==null?void 0:e.boolean):this.type===oe.String?this.value1===(e==null?void 0:e.value1):this.type===oe.Join&&this.set.length?Ue.Eq(this.set,e.set):!1}toUrlQuery(){const e=this.type?`"type":"${this.type}"`:"",n=this.model?`"model":"${this.model}"`:"",r=this.col?`"col":"${this.col}"`:"",s=this.operator?`"operator":"${this.operator}"`:"",o=this.value1?`"value1":"${this.value1}"`:"",a=this.type===oe.Boolean?`"boolean":${this.boolean}`:"",d=this.type===oe.Date&&this.date1?`"date1":"${this.date1.toISOString()}"`:"",c=this.type===oe.Date&&this.date2?`"date2":"${this.date2.toISOString()}"`:"",u=this.type===oe.Number?`"number":${this.number}`:"",h=this.type===oe.Set||this.operator===J.In?`"set":${JSON.stringify(this.set)}`:"",f=this.type===oe.Join?`"joinTableModel":"${this.joinTableModel}"`:"";return[e,n,r,s,o,a,d,c,u,h,f].filter(m=>m!=="").toString()}fromUrlQuery(e){this.model=e.get("model")??"",this.col=e.get("col")??"",this.label=e.get("label")??"",this.operator=e.get("operator")??"",this.value1=e.get("value1")??"",this.type=e.get("type")??"",this.boolean=!!(e.get("boolean")??""),this.joinTableModel=e.get("joinTableModel")??"",this.joinTableId=e.get("joinTableId")??"",this.joinTableFk=e.get("joinTableFk")??"",this.joinTableIdCol=e.get("joinTableIdCol")??"",this.joinTablePk=e.get("joinTablePk")??""}isUnaryFilter(){return this.operator===J.Eq||this.operator===J.Gt||this.operator===J.Lt}isBetweenFilter(){return this.operator===J.Btw}isSetFilter(){return this.operator===J.In}static Create(e,n,r){const s=new Xt;return s.model=e.GetClassName(),s.col=n??"",s.type=r,s.type===oe.Number&&(s.value1="0"),s.type===oe.String&&(s.value1=""),s.type===oe.Boolean&&(s.value1="false",s.operator=J.Eq),s}static CreateFilterModelWithJoin(e,n,r,s,o,a,d,c){const u=new Xt;return u.id=Je(),u.joinTable=r,u.joinTablePk=s,u.joinTableFk=o,u.col=n,u.type=a,d&&(u.joinTableId=d),c&&(u.joinTableIdCol=c),u}static CreateFilterModelWithJoinV2(e,n,r,s,o,a,d){const c=new Xt;return c.model=e,c.joinTableModel=r,c.joinTablePk=s,c.joinTableFk=o,c.col=n,c.type=oe.Join,a&&(c.joinTableId=a),d&&(c.joinTableIdCol=d),c}static OnlyIfSecondModelExists(e,n){const r=new Xt;return r.id=Je(),r.model=W.ToCamelCase(e.GetClassName()),r.joinTableModel=W.ToCamelCase(n.GetClassName()),r.type=oe.Join,r}addToSet(...e){e.forEach(n=>{if(this.set.indexOf(n)===-1){this.set.push(n);return}this.set=this.set.filter(r=>r!==n)})}pushToSet(...e){e.forEach(n=>{this.set.indexOf(n)===-1&&this.set.push(n)})}replaceSet(...e){this.set=e}setBoolean(e){this.boolean=e}toRef(){return i.ref(this)}setDate1(e){this.date1=e}setDate2(e){this.date2=e}dropDates(){this.setDate1(),this.setDate2()}setDatesRange(e,n){if(!e&&!n){this.dropDates();return}if(!n){this.setDate1(e),this.operator=J.Eq;return}this.setDate2(n),this.operator=J.Btw}};kl([B.GetClassConstructor(String)],$r.prototype,"set");let si=$r;class El{constructor(){l(this,"operation",J.Lt);l(this,"column","");l(this,"value");l(this,"initial",!0);l(this,"tableName","");l(this,"version","");l(this,"model","")}toUrlQuery(){const e=this.operation?`"operation":"${this.operation}"`:"",n=this.column?`"column":"${this.column}"`:"",r=this.value&&typeof this.value.toISOString=="function"?this.value.toISOString():this.value,s=r?`"value":"${r}"`:"",o=this.model?`"model":"${this.model}"`:"",a=`"initial":${this.initial}`;return[e,n,s,o,a].filter(d=>d!=="").toString()}fromUrlQuery(e){e.cursvalue&&(this.value=e.cursvalue),e.curscolumn&&(this.column=String(e.curscolumn)),e.cursinitial!==void 0&&(this.initial=!!e.cursinitial),e.curstableName&&(this.tableName=String(e.curstableName)),e.cursoperation&&(this.operation=e.cursoperation)}}class an{constructor(e){l(this,"offset",0);l(this,"limit",25);l(this,"cursor",new El);l(this,"cursorMode",!1);l(this,"append",!1);l(this,"allLoaded",!1);l(this,"version","");B.BuildClass(this,e)}setLoadMore(e,n,r){this.cursor.value=e,this.cursor.initial=!1,this.cursor.operation=J.Gt,this.cursor.column=n,this.cursor.tableName=r,this.cursorMode=!0}setLoadMoreV2(e,n,r){this.cursor.value=e,this.cursor.initial=!1,this.cursor.operation=J.Gt,this.cursor.column=n,this.cursor.model=r,this.cursorMode=!0,this.version="v2"}setOffset(e){this.offset=e}toUrlQuery(){const e=`"offset":${this.offset}`,n=`"limit":${this.limit}`,r=`"cursorMode":${this.cursorMode}`,s=`"append":${this.append}`,o=`"allLoaded":${this.allLoaded}`,a=`"cursor":{${this.cursor.toUrlQuery()}}`;return[e,n,r,s,o,a].toString()}fromUrlQuery(){const e=window.location.search,n=e.substring(e.indexOf("p=")+2,e.lastIndexOf("|")),r=new URLSearchParams(decodeURIComponent(n));this.offset=Number(r.get("offset")),this.limit=Number(r.get("col"))}setAllLoaded(e){this.allLoaded=!(e>=this.limit)}resetAllLoaded(){this.allLoaded=!1}getPageNum(){return this.offset/this.limit+1}drop(){this.offset=0,this.limit=25,B.BuildClass(this)}}var Ee=(t=>(t.Asc="asc",t.Desc="desc",t))(Ee||{});class ln{constructor(e){l(this,"model","");l(this,"col","");l(this,"order");l(this,"label","");l(this,"default",!1);l(this,"selected",!1);B.BuildClass(this,e)}static Create(e,n,r=Ee.Asc,s,o){const a=new ln;return a.model=e.GetClassName(),a.col=n??"",a.order=r??Ee.Asc,a.label=s??"",a.default=o??!1,a}isAsc(){return this.order===Ee.Asc}isDesc(){return this.order===Ee.Desc}eq(e){return e.model===this.model&&e.col===this.col&&e.order===this.order}toUrlQuery(){const e=this.model?`"model":"${this.model}"`:"",n=this.col?`"col":"${this.col}"`:"",r=this.order?`"order":"${this.order}"`:"";return[e,n,r].toString()}async fromUrlQuery(){const e=window.location.search,n=e.substring(e.indexOf("s=")+2,e.indexOf("|")),r=new URLSearchParams(decodeURIComponent(n));this.model=r.get("model")??"",this.col=r.get("col")??"",this.label=r.get("label")??"",this.default=!!r.get("default"),this.order=r.get("order")??""}asc(){this.order=Ee.Asc}desc(){this.order=Ee.Desc}}class cn{constructor(){l(this,"model","");l(this,"cols",[]);l(this,"models",[])}static Create(e,n){const r=new cn;return r.model=e.GetClassName(),r.cols=n,r}}var xl=Object.defineProperty,Pt=(t,e,n,r)=>{for(var s=void 0,o=t.length-1,a;o>=0;o--)(a=t[o])&&(s=a(e,n,s)||s);return s&&xl(e,n,s),s};const pt=(Se=class{constructor(e){l(this,"id");l(this,"f",[]);l(this,"f2",[]);l(this,"s",[]);l(this,"p",new an);l(this,"t",new cn);B.BuildClass(this,e)}static Get(){return this.instance||(this.instance=new Se),this.instance}createFrom(e){const n=new Se(JSON.parse(e));this.f=n.f}clearForHTTP(){const e=new Se(this);return e.f=this.f.map(n=>Se.EmptyEntiries(n)),e.s=this.s.map(n=>Se.EmptyEntiries(n)),e.p=Se.EmptyEntiries(this.p),e.t=Se.EmptyEntiries(this.t),e}static EmptyEntiries(e){if(!e)return;const r=Object.entries(e).filter(([s,o])=>s!=="label"&&o!==""&&o!==null);return Object.fromEntries(r)}findFilterModel(e){return this.f.find(n=>e.id===n.id)}getFirstSortModel(){return Ue.GetLast(this.s)}setSortModel(e){e&&(this.s[0]=e)}setS(e){this.s[0]=e}setF(e){this.f.push(e)}setF2(e){this.f2.push(e)}replaceF(e,n){this.removeF(n),e&&this.setF(e)}removeF(e){const n=this.f.findIndex(r=>r.eq(e));B.RemoveFromClassByIndex(n,this.f)}reset(){this.f=[],this.s=[],this.p=new an}resetF(){this.f=[]}},l(Se,"instance"),Se);Pt([B.GetClassConstructor(si)],pt.prototype,"f"),Pt([B.GetClassConstructor(Br)],pt.prototype,"f2"),Pt([B.GetClassConstructor(ln)],pt.prototype,"s"),Pt([B.GetClassConstructor(an)],pt.prototype,"p"),Pt([B.GetClassConstructor(cn)],pt.prototype,"t");let je=pt,Ml=(Rt=class{},l(Rt,"SortModel",ln),l(Rt,"FilterModel",si),l(Rt,"FilterModelV2",Br),l(Rt,"FTSP",i.reactive(je)),Rt);function Ir(t,e){return function(){return t.apply(e,arguments)}}const{toString:Bl}=Object.prototype,{getPrototypeOf:oi}=Object,dn=(t=>e=>{const n=Bl.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ve=t=>(t=t.toLowerCase(),e=>dn(e)===t),un=t=>e=>typeof e===t,{isArray:gt}=Array,Vt=un("undefined");function $l(t){return t!==null&&!Vt(t)&&t.constructor!==null&&!Vt(t.constructor)&&Ce(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Rr=ve("ArrayBuffer");function Il(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Rr(t.buffer),e}const Rl=un("string"),Ce=un("function"),vr=un("number"),hn=t=>t!==null&&typeof t=="object",vl=t=>t===!0||t===!1,fn=t=>{if(dn(t)!=="object")return!1;const e=oi(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Nl=ve("Date"),Al=ve("File"),zl=ve("Blob"),Pl=ve("FileList"),Vl=t=>hn(t)&&Ce(t.pipe),Tl=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Ce(t.append)&&((e=dn(t))==="formdata"||e==="object"&&Ce(t.toString)&&t.toString()==="[object FormData]"))},Fl=ve("URLSearchParams"),[Ol,Dl,Ll,Hl]=["ReadableStream","Request","Response","Headers"].map(ve),ql=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Tt(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,s;if(typeof t!="object"&&(t=[t]),gt(t))for(r=0,s=t.length;r<s;r++)e.call(null,t[r],r,t);else{const o=n?Object.getOwnPropertyNames(t):Object.keys(t),a=o.length;let d;for(r=0;r<a;r++)d=o[r],e.call(null,t[d],d,t)}}function Nr(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,s;for(;r-- >0;)if(s=n[r],e===s.toLowerCase())return s;return null}const ot=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ar=t=>!Vt(t)&&t!==ot;function ai(){const{caseless:t}=Ar(this)&&this||{},e={},n=(r,s)=>{const o=t&&Nr(e,s)||s;fn(e[o])&&fn(r)?e[o]=ai(e[o],r):fn(r)?e[o]=ai({},r):gt(r)?e[o]=r.slice():e[o]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&Tt(arguments[r],n);return e}const Ul=(t,e,n,{allOwnKeys:r}={})=>(Tt(e,(s,o)=>{n&&Ce(s)?t[o]=Ir(s,n):t[o]=s},{allOwnKeys:r}),t),jl=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Wl=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},Gl=(t,e,n,r)=>{let s,o,a;const d={};if(e=e||{},t==null)return e;do{for(s=Object.getOwnPropertyNames(t),o=s.length;o-- >0;)a=s[o],(!r||r(a,t,e))&&!d[a]&&(e[a]=t[a],d[a]=!0);t=n!==!1&&oi(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},_l=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},Zl=t=>{if(!t)return null;if(gt(t))return t;let e=t.length;if(!vr(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},Xl=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&oi(Uint8Array)),Jl=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let s;for(;(s=r.next())&&!s.done;){const o=s.value;e.call(t,o[0],o[1])}},Yl=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},Ql=ve("HTMLFormElement"),Kl=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),zr=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),ec=ve("RegExp"),Pr=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};Tt(n,(s,o)=>{let a;(a=e(s,o,t))!==!1&&(r[o]=a||s)}),Object.defineProperties(t,r)},tc=t=>{Pr(t,(e,n)=>{if(Ce(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(Ce(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},nc=(t,e)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return gt(t)?r(t):r(String(t).split(e)),n},ic=()=>{},rc=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,li="abcdefghijklmnopqrstuvwxyz",Vr="0123456789",Tr={DIGIT:Vr,ALPHA:li,ALPHA_DIGIT:li+li.toUpperCase()+Vr},sc=(t=16,e=Tr.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function oc(t){return!!(t&&Ce(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const ac=t=>{const e=new Array(10),n=(r,s)=>{if(hn(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[s]=r;const o=gt(r)?[]:{};return Tt(r,(a,d)=>{const c=n(a,s+1);!Vt(c)&&(o[d]=c)}),e[s]=void 0,o}}return r};return n(t,0)},lc=ve("AsyncFunction"),cc=t=>t&&(hn(t)||Ce(t))&&Ce(t.then)&&Ce(t.catch),Fr=((t,e)=>t?setImmediate:e?((n,r)=>(ot.addEventListener("message",({source:s,data:o})=>{s===ot&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),ot.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ce(ot.postMessage)),dc=typeof queueMicrotask<"u"?queueMicrotask.bind(ot):typeof process<"u"&&process.nextTick||Fr,w={isArray:gt,isArrayBuffer:Rr,isBuffer:$l,isFormData:Tl,isArrayBufferView:Il,isString:Rl,isNumber:vr,isBoolean:vl,isObject:hn,isPlainObject:fn,isReadableStream:Ol,isRequest:Dl,isResponse:Ll,isHeaders:Hl,isUndefined:Vt,isDate:Nl,isFile:Al,isBlob:zl,isRegExp:ec,isFunction:Ce,isStream:Vl,isURLSearchParams:Fl,isTypedArray:Xl,isFileList:Pl,forEach:Tt,merge:ai,extend:Ul,trim:ql,stripBOM:jl,inherits:Wl,toFlatObject:Gl,kindOf:dn,kindOfTest:ve,endsWith:_l,toArray:Zl,forEachEntry:Jl,matchAll:Yl,isHTMLForm:Ql,hasOwnProperty:zr,hasOwnProp:zr,reduceDescriptors:Pr,freezeMethods:tc,toObjectSet:nc,toCamelCase:Kl,noop:ic,toFiniteNumber:rc,findKey:Nr,global:ot,isContextDefined:Ar,ALPHABET:Tr,generateString:sc,isSpecCompliantForm:oc,toJSONObject:ac,isAsyncFn:lc,isThenable:cc,setImmediate:Fr,asap:dc};function F(t,e,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}w.inherits(F,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:w.toJSONObject(this.config),code:this.code,status:this.status}}});const Or=F.prototype,Dr={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{Dr[t]={value:t}}),Object.defineProperties(F,Dr),Object.defineProperty(Or,"isAxiosError",{value:!0}),F.from=(t,e,n,r,s,o)=>{const a=Object.create(Or);return w.toFlatObject(t,a,function(c){return c!==Error.prototype},d=>d!=="isAxiosError"),F.call(a,t.message,e,n,r,s),a.cause=t,a.name=t.name,o&&Object.assign(a,o),a};const uc=null;function ci(t){return w.isPlainObject(t)||w.isArray(t)}function Lr(t){return w.endsWith(t,"[]")?t.slice(0,-2):t}function Hr(t,e,n){return t?t.concat(e).map(function(s,o){return s=Lr(s),!n&&o?"["+s+"]":s}).join(n?".":""):e}function hc(t){return w.isArray(t)&&!t.some(ci)}const fc=w.toFlatObject(w,{},null,function(e){return/^is[A-Z]/.test(e)});function mn(t,e,n){if(!w.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=w.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,S){return!w.isUndefined(S[b])});const r=n.metaTokens,s=n.visitor||h,o=n.dots,a=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&w.isSpecCompliantForm(e);if(!w.isFunction(s))throw new TypeError("visitor must be a function");function u(C){if(C===null)return"";if(w.isDate(C))return C.toISOString();if(!c&&w.isBlob(C))throw new F("Blob is not supported. Use a Buffer instead.");return w.isArrayBuffer(C)||w.isTypedArray(C)?c&&typeof Blob=="function"?new Blob([C]):Buffer.from(C):C}function h(C,b,S){let I=C;if(C&&!S&&typeof C=="object"){if(w.endsWith(b,"{}"))b=r?b:b.slice(0,-2),C=JSON.stringify(C);else if(w.isArray(C)&&hc(C)||(w.isFileList(C)||w.endsWith(b,"[]"))&&(I=w.toArray(C)))return b=Lr(b),I.forEach(function(P,v){!(w.isUndefined(P)||P===null)&&e.append(a===!0?Hr([b],v,o):a===null?b:b+"[]",u(P))}),!1}return ci(C)?!0:(e.append(Hr(S,b,o),u(C)),!1)}const f=[],m=Object.assign(fc,{defaultVisitor:h,convertValue:u,isVisitable:ci});function g(C,b){if(!w.isUndefined(C)){if(f.indexOf(C)!==-1)throw Error("Circular reference detected in "+b.join("."));f.push(C),w.forEach(C,function(I,L){(!(w.isUndefined(I)||I===null)&&s.call(e,I,w.isString(L)?L.trim():L,b,m))===!0&&g(I,b?b.concat(L):[L])}),f.pop()}}if(!w.isObject(t))throw new TypeError("data must be an object");return g(t),e}function qr(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function di(t,e){this._pairs=[],t&&mn(t,this,e)}const Ur=di.prototype;Ur.append=function(e,n){this._pairs.push([e,n])},Ur.toString=function(e){const n=e?function(r){return e.call(this,r,qr)}:qr;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function mc(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function jr(t,e,n){if(!e)return t;const r=n&&n.encode||mc;w.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let o;if(s?o=s(e,n):o=w.isURLSearchParams(e)?e.toString():new di(e,n).toString(r),o){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class Wr{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){w.forEach(this.handlers,function(r){r!==null&&e(r)})}}const Gr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},pc={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:di,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},ui=typeof window<"u"&&typeof document<"u",hi=typeof navigator=="object"&&navigator||void 0,gc=ui&&(!hi||["ReactNative","NativeScript","NS"].indexOf(hi.product)<0),yc=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",wc=ui&&window.location.href||"http://localhost",pe={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ui,hasStandardBrowserEnv:gc,hasStandardBrowserWebWorkerEnv:yc,navigator:hi,origin:wc},Symbol.toStringTag,{value:"Module"})),...pc};function bc(t,e){return mn(t,new pe.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return pe.isNode&&w.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function Cc(t){return w.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Sc(t){const e={},n=Object.keys(t);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],e[o]=t[o];return e}function _r(t){function e(n,r,s,o){let a=n[o++];if(a==="__proto__")return!0;const d=Number.isFinite(+a),c=o>=n.length;return a=!a&&w.isArray(s)?s.length:a,c?(w.hasOwnProp(s,a)?s[a]=[s[a],r]:s[a]=r,!d):((!s[a]||!w.isObject(s[a]))&&(s[a]=[]),e(n,r,s[a],o)&&w.isArray(s[a])&&(s[a]=Sc(s[a])),!d)}if(w.isFormData(t)&&w.isFunction(t.entries)){const n={};return w.forEachEntry(t,(r,s)=>{e(Cc(r),s,n,0)}),n}return null}function kc(t,e,n){if(w.isString(t))try{return(e||JSON.parse)(t),w.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(t)}const Ft={transitional:Gr,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=w.isObject(e);if(o&&w.isHTMLForm(e)&&(e=new FormData(e)),w.isFormData(e))return s?JSON.stringify(_r(e)):e;if(w.isArrayBuffer(e)||w.isBuffer(e)||w.isStream(e)||w.isFile(e)||w.isBlob(e)||w.isReadableStream(e))return e;if(w.isArrayBufferView(e))return e.buffer;if(w.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let d;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return bc(e,this.formSerializer).toString();if((d=w.isFileList(e))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return mn(d?{"files[]":e}:e,c&&new c,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),kc(e)):e}],transformResponse:[function(e){const n=this.transitional||Ft.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(w.isResponse(e)||w.isReadableStream(e))return e;if(e&&w.isString(e)&&(r&&!this.responseType||s)){const a=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(d){if(a)throw d.name==="SyntaxError"?F.from(d,F.ERR_BAD_RESPONSE,this,null,this.response):d}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:pe.classes.FormData,Blob:pe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};w.forEach(["delete","get","head","post","put","patch"],t=>{Ft.headers[t]={}});const Ec=w.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),xc=t=>{const e={};let n,r,s;return t&&t.split(`
14
+ ***************************************************************************** */var Er;(function(t){(function(e){var n=typeof globalThis=="object"?globalThis:typeof kr=="object"?kr:typeof self=="object"?self:typeof this=="object"?this:d(),r=s(t);typeof n.Reflect<"u"&&(r=s(n.Reflect,r)),e(r,n),typeof n.Reflect>"u"&&(n.Reflect=t);function s(c,u){return function(h,f){Object.defineProperty(c,h,{configurable:!0,writable:!0,value:f}),u&&u(h,f)}}function o(){try{return Function("return this;")()}catch{}}function a(){try{return(0,eval)("(function() { return this; })()")}catch{}}function d(){return o()||a()}})(function(e,n){var r=Object.prototype.hasOwnProperty,s=typeof Symbol=="function",o=s&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",a=s&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",d=typeof Object.create=="function",c={__proto__:[]}instanceof Array,u=!d&&!c,h={create:d?function(){return ur(Object.create(null))}:c?function(){return ur({__proto__:null})}:function(){return ur({})},has:u?function(p,y){return r.call(p,y)}:function(p,y){return y in p},get:u?function(p,y){return r.call(p,y)?p[y]:void 0}:function(p,y){return p[y]}},f=Object.getPrototypeOf(Function),m=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:eg(),g=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:tg(),C=typeof WeakMap=="function"?WeakMap:ng(),b=s?Symbol.for("@reflect-metadata:registry"):void 0,S=Yp(),I=Qp(S);function L(p,y,k,x){if(T(k)){if(!Ga(p))throw new TypeError;if(!_a(y))throw new TypeError;return Up(p,y)}else{if(!Ga(p))throw new TypeError;if(!ie(y))throw new TypeError;if(!ie(x)&&!T(x)&&!Nt(x))throw new TypeError;return Nt(x)&&(x=void 0),k=He(k),jp(p,y,k,x)}}e("decorate",L);function P(p,y){function k(x,V){if(!ie(x))throw new TypeError;if(!T(V)&&!Xp(V))throw new TypeError;Ha(p,y,x,V)}return k}e("metadata",P);function v(p,y,k,x){if(!ie(k))throw new TypeError;return T(x)||(x=He(x)),Ha(p,y,k,x)}e("defineMetadata",v);function H(p,y,k){if(!ie(y))throw new TypeError;return T(k)||(k=He(k)),Oa(p,y,k)}e("hasMetadata",H);function Be(p,y,k){if(!ie(y))throw new TypeError;return T(k)||(k=He(k)),lr(p,y,k)}e("hasOwnMetadata",Be);function $e(p,y,k){if(!ie(y))throw new TypeError;return T(k)||(k=He(k)),Da(p,y,k)}e("getMetadata",$e);function nt(p,y,k){if(!ie(y))throw new TypeError;return T(k)||(k=He(k)),La(p,y,k)}e("getOwnMetadata",nt);function vt(p,y){if(!ie(p))throw new TypeError;return T(y)||(y=He(y)),qa(p,y)}e("getMetadataKeys",vt);function Zn(p,y){if(!ie(p))throw new TypeError;return T(y)||(y=He(y)),Ua(p,y)}e("getOwnMetadataKeys",Zn);function qp(p,y,k){if(!ie(y))throw new TypeError;if(T(k)||(k=He(k)),!ie(y))throw new TypeError;T(k)||(k=He(k));var x=Zt(y,k,!1);return T(x)?!1:x.OrdinaryDeleteMetadata(p,y,k)}e("deleteMetadata",qp);function Up(p,y){for(var k=p.length-1;k>=0;--k){var x=p[k],V=x(y);if(!T(V)&&!Nt(V)){if(!_a(V))throw new TypeError;y=V}}return y}function jp(p,y,k,x){for(var V=p.length-1;V>=0;--V){var le=p[V],re=le(y,k,x);if(!T(re)&&!Nt(re)){if(!ie(re))throw new TypeError;x=re}}return x}function Oa(p,y,k){var x=lr(p,y,k);if(x)return!0;var V=dr(y);return Nt(V)?!1:Oa(p,V,k)}function lr(p,y,k){var x=Zt(y,k,!1);return T(x)?!1:Wa(x.OrdinaryHasOwnMetadata(p,y,k))}function Da(p,y,k){var x=lr(p,y,k);if(x)return La(p,y,k);var V=dr(y);if(!Nt(V))return Da(p,V,k)}function La(p,y,k){var x=Zt(y,k,!1);if(!T(x))return x.OrdinaryGetOwnMetadata(p,y,k)}function Ha(p,y,k,x){var V=Zt(k,x,!0);V.OrdinaryDefineOwnMetadata(p,y,k,x)}function qa(p,y){var k=Ua(p,y),x=dr(p);if(x===null)return k;var V=qa(x,y);if(V.length<=0)return k;if(k.length<=0)return V;for(var le=new g,re=[],q=0,M=k;q<M.length;q++){var $=M[q],R=le.has($);R||(le.add($),re.push($))}for(var N=0,U=V;N<U.length;N++){var $=U[N],R=le.has($);R||(le.add($),re.push($))}return re}function Ua(p,y){var k=Zt(p,y,!1);return k?k.OrdinaryOwnMetadataKeys(p,y):[]}function ja(p){if(p===null)return 1;switch(typeof p){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return p===null?1:6;default:return 6}}function T(p){return p===void 0}function Nt(p){return p===null}function Wp(p){return typeof p=="symbol"}function ie(p){return typeof p=="object"?p!==null:typeof p=="function"}function Gp(p,y){switch(ja(p)){case 0:return p;case 1:return p;case 2:return p;case 3:return p;case 4:return p;case 5:return p}var k="string",x=Za(p,o);if(x!==void 0){var V=x.call(p,k);if(ie(V))throw new TypeError;return V}return _p(p)}function _p(p,y){var k,x;{var V=p.toString;if(Xn(V)){var x=V.call(p);if(!ie(x))return x}var k=p.valueOf;if(Xn(k)){var x=k.call(p);if(!ie(x))return x}}throw new TypeError}function Wa(p){return!!p}function Zp(p){return""+p}function He(p){var y=Gp(p);return Wp(y)?y:Zp(y)}function Ga(p){return Array.isArray?Array.isArray(p):p instanceof Object?p instanceof Array:Object.prototype.toString.call(p)==="[object Array]"}function Xn(p){return typeof p=="function"}function _a(p){return typeof p=="function"}function Xp(p){switch(ja(p)){case 3:return!0;case 4:return!0;default:return!1}}function cr(p,y){return p===y||p!==p&&y!==y}function Za(p,y){var k=p[y];if(k!=null){if(!Xn(k))throw new TypeError;return k}}function Xa(p){var y=Za(p,a);if(!Xn(y))throw new TypeError;var k=y.call(p);if(!ie(k))throw new TypeError;return k}function Ja(p){return p.value}function Ya(p){var y=p.next();return y.done?!1:y}function Qa(p){var y=p.return;y&&y.call(p)}function dr(p){var y=Object.getPrototypeOf(p);if(typeof p!="function"||p===f||y!==f)return y;var k=p.prototype,x=k&&Object.getPrototypeOf(k);if(x==null||x===Object.prototype)return y;var V=x.constructor;return typeof V!="function"||V===p?y:V}function Jp(){var p;!T(b)&&typeof n.Reflect<"u"&&!(b in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(p=Kp(n.Reflect));var y,k,x,V=new C,le={registerProvider:re,getProvider:M,setProvider:R};return le;function re(N){if(!Object.isExtensible(le))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case p===N:break;case T(y):y=N;break;case y===N:break;case T(k):k=N;break;case k===N:break;default:x===void 0&&(x=new g),x.add(N);break}}function q(N,U){if(!T(y)){if(y.isProviderFor(N,U))return y;if(!T(k)){if(k.isProviderFor(N,U))return y;if(!T(x))for(var X=Xa(x);;){var K=Ya(X);if(!K)return;var Ae=Ja(K);if(Ae.isProviderFor(N,U))return Qa(X),Ae}}}if(!T(p)&&p.isProviderFor(N,U))return p}function M(N,U){var X=V.get(N),K;return T(X)||(K=X.get(U)),T(K)&&(K=q(N,U),T(K)||(T(X)&&(X=new m,V.set(N,X)),X.set(U,K))),K}function $(N){if(T(N))throw new TypeError;return y===N||k===N||!T(x)&&x.has(N)}function R(N,U,X){if(!$(X))throw new Error("Metadata provider not registered.");var K=M(N,U);if(K!==X){if(!T(K))return!1;var Ae=V.get(N);T(Ae)&&(Ae=new m,V.set(N,Ae)),Ae.set(U,X)}return!0}}function Yp(){var p;return!T(b)&&ie(n.Reflect)&&Object.isExtensible(n.Reflect)&&(p=n.Reflect[b]),T(p)&&(p=Jp()),!T(b)&&ie(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,b,{enumerable:!1,configurable:!1,writable:!1,value:p}),p}function Qp(p){var y=new C,k={isProviderFor:function($,R){var N=y.get($);return T(N)?!1:N.has(R)},OrdinaryDefineOwnMetadata:re,OrdinaryHasOwnMetadata:V,OrdinaryGetOwnMetadata:le,OrdinaryOwnMetadataKeys:q,OrdinaryDeleteMetadata:M};return S.registerProvider(k),k;function x($,R,N){var U=y.get($),X=!1;if(T(U)){if(!N)return;U=new m,y.set($,U),X=!0}var K=U.get(R);if(T(K)){if(!N)return;if(K=new m,U.set(R,K),!p.setProvider($,R,k))throw U.delete(R),X&&y.delete($),new Error("Wrong provider for target.")}return K}function V($,R,N){var U=x(R,N,!1);return T(U)?!1:Wa(U.has($))}function le($,R,N){var U=x(R,N,!1);if(!T(U))return U.get($)}function re($,R,N,U){var X=x(N,U,!0);X.set($,R)}function q($,R){var N=[],U=x($,R,!1);if(T(U))return N;for(var X=U.keys(),K=Xa(X),Ae=0;;){var Ka=Ya(K);if(!Ka)return N.length=Ae,N;var ig=Ja(Ka);try{N[Ae]=ig}catch(rg){try{Qa(K)}finally{throw rg}}Ae++}}function M($,R,N){var U=x(R,N,!1);if(T(U)||!U.delete($))return!1;if(U.size===0){var X=y.get(R);T(X)||(X.delete(N),X.size===0&&y.delete(X))}return!0}}function Kp(p){var y=p.defineMetadata,k=p.hasOwnMetadata,x=p.getOwnMetadata,V=p.getOwnMetadataKeys,le=p.deleteMetadata,re=new C,q={isProviderFor:function(M,$){var R=re.get(M);return!T(R)&&R.has($)?!0:V(M,$).length?(T(R)&&(R=new g,re.set(M,R)),R.add($),!0):!1},OrdinaryDefineOwnMetadata:y,OrdinaryHasOwnMetadata:k,OrdinaryGetOwnMetadata:x,OrdinaryOwnMetadataKeys:V,OrdinaryDeleteMetadata:le};return q}function Zt(p,y,k){var x=S.getProvider(p,y);if(!T(x))return x;if(k){if(S.setProvider(p,y,I))return I;throw new Error("Illegal state.")}}function eg(){var p={},y=[],k=function(){function q(M,$,R){this._index=0,this._keys=M,this._values=$,this._selector=R}return q.prototype["@@iterator"]=function(){return this},q.prototype[a]=function(){return this},q.prototype.next=function(){var M=this._index;if(M>=0&&M<this._keys.length){var $=this._selector(this._keys[M],this._values[M]);return M+1>=this._keys.length?(this._index=-1,this._keys=y,this._values=y):this._index++,{value:$,done:!1}}return{value:void 0,done:!0}},q.prototype.throw=function(M){throw this._index>=0&&(this._index=-1,this._keys=y,this._values=y),M},q.prototype.return=function(M){return this._index>=0&&(this._index=-1,this._keys=y,this._values=y),{value:M,done:!0}},q}(),x=function(){function q(){this._keys=[],this._values=[],this._cacheKey=p,this._cacheIndex=-2}return Object.defineProperty(q.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),q.prototype.has=function(M){return this._find(M,!1)>=0},q.prototype.get=function(M){var $=this._find(M,!1);return $>=0?this._values[$]:void 0},q.prototype.set=function(M,$){var R=this._find(M,!0);return this._values[R]=$,this},q.prototype.delete=function(M){var $=this._find(M,!1);if($>=0){for(var R=this._keys.length,N=$+1;N<R;N++)this._keys[N-1]=this._keys[N],this._values[N-1]=this._values[N];return this._keys.length--,this._values.length--,cr(M,this._cacheKey)&&(this._cacheKey=p,this._cacheIndex=-2),!0}return!1},q.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=p,this._cacheIndex=-2},q.prototype.keys=function(){return new k(this._keys,this._values,V)},q.prototype.values=function(){return new k(this._keys,this._values,le)},q.prototype.entries=function(){return new k(this._keys,this._values,re)},q.prototype["@@iterator"]=function(){return this.entries()},q.prototype[a]=function(){return this.entries()},q.prototype._find=function(M,$){if(!cr(this._cacheKey,M)){this._cacheIndex=-1;for(var R=0;R<this._keys.length;R++)if(cr(this._keys[R],M)){this._cacheIndex=R;break}}return this._cacheIndex<0&&$&&(this._cacheIndex=this._keys.length,this._keys.push(M),this._values.push(void 0)),this._cacheIndex},q}();return x;function V(q,M){return q}function le(q,M){return M}function re(q,M){return[q,M]}}function tg(){var p=function(){function y(){this._map=new m}return Object.defineProperty(y.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),y.prototype.has=function(k){return this._map.has(k)},y.prototype.add=function(k){return this._map.set(k,k),this},y.prototype.delete=function(k){return this._map.delete(k)},y.prototype.clear=function(){this._map.clear()},y.prototype.keys=function(){return this._map.keys()},y.prototype.values=function(){return this._map.keys()},y.prototype.entries=function(){return this._map.entries()},y.prototype["@@iterator"]=function(){return this.keys()},y.prototype[a]=function(){return this.keys()},y}();return p}function ng(){var p=16,y=h.create(),k=x();return function(){function M(){this._key=x()}return M.prototype.has=function($){var R=V($,!1);return R!==void 0?h.has(R,this._key):!1},M.prototype.get=function($){var R=V($,!1);return R!==void 0?h.get(R,this._key):void 0},M.prototype.set=function($,R){var N=V($,!0);return N[this._key]=R,this},M.prototype.delete=function($){var R=V($,!1);return R!==void 0?delete R[this._key]:!1},M.prototype.clear=function(){this._key=x()},M}();function x(){var M;do M="@@WeakMap@@"+q();while(h.has(y,M));return y[M]=!0,M}function V(M,$){if(!r.call(M,k)){if(!$)return;Object.defineProperty(M,k,{value:h.create()})}return M[k]}function le(M,$){for(var R=0;R<$;++R)M[R]=Math.random()*255|0;return M}function re(M){if(typeof Uint8Array=="function"){var $=new Uint8Array(M);return typeof crypto<"u"?crypto.getRandomValues($):typeof msCrypto<"u"?msCrypto.getRandomValues($):le($,M),$}return le(new Array(M),M)}function q(){var M=re(p);M[6]=M[6]&79|64,M[8]=M[8]&191|128;for(var $="",R=0;R<p;++R){var N=M[R];(R===4||R===6||R===8)&&($+="-"),N<16&&($+="0"),$+=N.toString(16).toLowerCase()}return $}}function ur(p){return p.__=void 0,delete p.__,p}})})(Er||(Er={}));let nn;const yl=new Uint8Array(16);function wl(){if(!nn&&(nn=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!nn))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return nn(yl)}const ue=[];for(let t=0;t<256;++t)ue.push((t+256).toString(16).slice(1));function bl(t,e=0){return ue[t[e+0]]+ue[t[e+1]]+ue[t[e+2]]+ue[t[e+3]]+"-"+ue[t[e+4]]+ue[t[e+5]]+"-"+ue[t[e+6]]+ue[t[e+7]]+"-"+ue[t[e+8]]+ue[t[e+9]]+"-"+ue[t[e+10]]+ue[t[e+11]]+ue[t[e+12]]+ue[t[e+13]]+ue[t[e+14]]+ue[t[e+15]]}const xr={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Je(t,e,n){if(xr.randomUUID&&!t)return xr.randomUUID();t=t||{};const r=t.random||(t.rng||wl)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,bl(r)}class te{static UUID(){return Je()}static GUID(){const e=function(){return((1+Math.random())*65536|0).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}}class W{static Capitalize(e){return e?e[0].toUpperCase()+e.slice(1):""}static ToCamelCase(e){const n=new RegExp(["[А-Я][а-я][A-Z][a-z]+","[А-Я]+(?=[А-Я][а-я])","[A-Z]+(?=[A-Z][a-z])","[А-Я]+","[A-Z]+","[а-я]+","[a-z]+","[0-9]+"].join("|"),"g");return e.match(n).map((s,o)=>o===0?s.toLowerCase():W.Capitalize(s.toLowerCase())).join("")}static ToKebabCase(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}static GetStringBetweenChars(e,n,r){return e.substring(e.indexOf(n)+2,e.lastIndexOf(r))}static Translit(e,n){const r={q:"й",w:"ц",e:"у",r:"к",t:"е",y:"н",u:"г",i:"ш",o:"щ",p:"з","[":"х","]":"ъ",a:"ф",s:"ы",d:"в",f:"а",g:"п",h:"р",j:"о",k:"л",l:"д",";":"ж","'":"э",z:"я",x:"ч",c:"с",v:"м",b:"и",n:"т",m:"ь",",":"б",".":"ю","/":"."};return n&&/[а-яА-Я]/g.test(e)?e.replace(/[А-я/,.;'\][]/g,s=>{if(s===s.toLowerCase()){const a=Object.keys(r).find(d=>r[d]===s);return a||""}const o=Object.keys(r).find(a=>r[a]===s.toLowerCase());return o?o.toUpperCase():""}):e.replace(/[A-z/,.;'\][]/g,s=>s===s.toLowerCase()?r[s]:r[s.toLowerCase()].toUpperCase())}static RemoveEmoji(e){const n=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;return e.replace(n,"")}static CanBeTranslited(e){return/^[~`!@#$%^&*()_+=[\]\\{}|;':",.\/<>?a-zA-Z0-9-]+$/.test(e)}static StringsEquals(e,n){const r=e.toLowerCase().replaceAll(/\s/g,""),s=n.toLowerCase().replaceAll(/\s/g,""),o=W.Translit(r),a=W.Translit(s);return r.includes(s)||o.includes(s)||r.includes(a)}static SearchIn(e,n){return W.StringsEquals(e,n)}static SearchInFields(e,n){let r=!1;for(let s=0;s<n.length;s++)if(W.SearchIn(n[s],e)){r=!0;break}return r}static FormatToPercentage(e){return`${e}%`}static ApplyClassToSubStr(e,n,r){const s=r??"highlight-text",o=new RegExp(W.GetVariants(n).join("|"),"gi");return e.replace(o,`<span class="${s}">$&</span>`)}static GetVariants(e){const n=W.Translit(e);return[e,W.Capitalize(e),e.toLowerCase(),e.toUpperCase(),n,W.Capitalize(n),n.toLowerCase(),n.toUpperCase()]}static ContainsNum(e){return/\d/.test(e)}static JoinSnake(...e){return e.join("_")}static GetDynamicCountName(e,n){const r=[2,0,1,1,1,2];return e.length+" "+n[e.length%100>4&&e.length%100<20?2:r[e.length%10<5?e.length%10:5]]}static TrimText(e){return typeof e=="string"?e.trim():e}}const et=class et{static BuildClass(e,n){n&&Object.keys(n).forEach(r=>{const s=n[r];if(this.isPrimitive(s))e[r]instanceof Date?e[r]=new Date(s):e[r]=s;else if(s!=null&&!Array.isArray(s))if(e[r]&&e[r].constructor)e[r]=new e[r].constructor(s);else{const o=Reflect.getMetadata(r,e);o&&(e[r]=new o[r](s))}if(Array.isArray(s)){if(s.length===0)return;const o=Reflect.getMetadata(r,e);o&&(e[r]=s.map(a=>new o[r](a)))}})}static isPrimitive(e){return e!==null&&typeof e<"u"&&e!==Object(e)}static RemoveFromClassByIndex(e,n,r){et.RemoveFromClass(e,n,r)}static RemoveFromClassById(e,n,r){if(!e)return;const s=n.findIndex(o=>o.id===e);et.RemoveFromClass(s,n,r)}static RemoveFromClass(e,n,r){if(e<0)return;const s=n[e].id;s&&r&&r.push(s),n.splice(e,1)}static GetPropertyName(e){const n=new e;return new Proxy(n,{get(r,s){return s}})}static InitClassInstance(e,n){const r=e.constructor(n);return et.BuildClass(r),r.id=te.UUID(),r}static ExistsWithId(e,n){return e.some(r=>r.id===n)}static DeepMap(e){return n=>Array.isArray(n)?n.map(et.DeepMap(e)):Object(n)===n?Object.fromEntries(Object.entries(n).map(([r,s])=>[r,et.DeepMap(e)(s)])):e(n)}static DeepTrim(e){return this.DeepMap(W.TrimText)(e)}};l(et,"GetClassConstructor",e=>(n,r)=>{const s=Reflect.getMetadata(`property:${r}`,n)||{};s[r]=e,Reflect.defineMetadata(r,s,n)});let B=et;class rt{constructor(e){l(this,"id");l(this,"address");l(this,"description");l(this,"contactId");B.BuildClass(this,e)}static Create(){const e=new rt;return e.id=te.UUID(),e}}class ni{static Setup(e){this.staticUrl=e}static get StaticUrl(){return this.staticUrl}}l(ni,"staticUrl","");class me{constructor(e){l(this,"name","");l(this,"url","");l(this,"src","");l(this,"raw");l(this,"blob");l(this,"file");l(this,"type","");l(this,"id");l(this,"originalName","");l(this,"fileSystemPath","");l(this,"itemId");l(this,"itemOneId");l(this,"description","");l(this,"order",0);B.BuildClass(this,e)}getFileUrl(){const e=this.url?this.url:`${ni.StaticUrl}/${this.fileSystemPath}`;return new URL(e,typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Ie&&Ie.tagName.toUpperCase()==="SCRIPT"&&Ie.src||new URL("sprof.umd.cjs",document.baseURI).href)}getFileListObject(){return{name:this.originalName,url:this.url}}static CreatePreviewFile(e,n){const r=new me;return r.id=n??te.UUID(),r.originalName=e.name,r.file=e.blob,r.fileSystemPath=te.UUID(),r}setFile(e){this.id||(this.id=te.UUID()),this.originalName=e.name,this.file=e,this.fileSystemPath=te.UUID(),this.url=e.src}clearFile(){this.url="",this.file=void 0,this.fileSystemPath="",this.originalName=""}errorImg(e,n){if(e.target){let r="";return n&&(r=`@/assets/img/${n}`),new URL(r,typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Ie&&Ie.tagName.toUpperCase()==="SCRIPT"&&Ie.src||new URL("sprof.umd.cjs",document.baseURI).href)}}getFileInfos(){return[this]}isPdf(){return this.getExtension(this.originalName)===""}getExtension(e){const n=e.split(".");return n[n.length-1]}}class Mr{constructor(e){l(this,"id");l(this,"name","");l(this,"surname","");l(this,"patronymic","");l(this,"isMale",!0);l(this,"dateBirth",new Date);l(this,"contactId");l(this,"slug","");l(this,"postIndex","");l(this,"address","");l(this,"editNameMode",!1);B.BuildClass(this,e)}setEditNameMode(e){this.editNameMode=e}getFullName(){return!this.surname.length&&!this.name.length&&!this.patronymic.length?"":`${this.surname} ${this.name} ${this.patronymic}`}getInitialsName(){return`${this.name.slice(0,1)}.${this.patronymic.slice(0,1)}. ${this.surname}`}getGender(e){return e?this.isMale?"Мужской":"Женский":this.isMale?"М":"Ж"}capitalizeName(){this.name=W.Capitalize(this.name),this.surname=W.Capitalize(this.surname),this.patronymic=W.Capitalize(this.patronymic)}trimName(){this.name=this.name.trim(),this.surname=this.surname.trim(),this.patronymic=this.patronymic.trim()}sanitizeName(){this.trimName(),this.capitalizeName()}setFullName(e){this.surname=e.surname,this.name=e.name,this.patronymic=e.patronymic}}class st{constructor(e){l(this,"id");l(this,"number");l(this,"description");l(this,"contactId");B.BuildClass(this,e)}static Create(){const e=new st;return e.id=te.UUID(),e}}class rn{constructor(e){l(this,"id");l(this,"address");l(this,"description");B.BuildClass(this,e)}}class ii{constructor(e){l(this,"id");l(this,"address");l(this,"description");B.BuildClass(this,e)}}class sn{constructor(e){l(this,"id");l(this,"login","");l(this,"email","");l(this,"password","");B.BuildClass(this,e)}static Create(){const e=new sn;return e.id=te.UUID(),e}}let Cl=(Xe=class{},l(Xe,"Phone",st),l(Xe,"FileInfo",me),l(Xe,"Website",ii),l(Xe,"Email",rt),l(Xe,"Human",Mr),l(Xe,"PostAddress",rn),l(Xe,"UserAccount",sn),Xe);var J=(t=>(t.Eq="=",t.Ne="!=",t.Gt=">",t.Lt="<",t.Btw="between",t.In="in",t.Like="like",t.Null="is null",t.NotNull="is not null",t))(J||{});class on{constructor(e){l(this,"field","");l(this,"operator",J.Eq);l(this,"value","");B.BuildClass(this,e)}setValue(e){this.value=e}static Create(e,n){return new on({operator:n,field:e})}eq(e){return this.field===e.field&&this.operator===e.operator}isUnary(){return this.operator===J.Eq||this.operator===J.Gt||this.operator===J.Lt}isBetween(){return this.operator===J.Btw}isSet(){return this.operator===J.In}}class ri{constructor(e){l(this,"model","");l(this,"field","");l(this,"value","");l(this,"wheres",[]);B.BuildClass(this,e)}static Create(e){const n=new ri;return n.model=e.GetClassName(),n}eq(e){return e.model===this.model&&e.field===this.field}addWhere(e,n){const r=this.findWhere({field:e,operator:n});if(r)return r;const s=on.Create(e,n);return this.wheres.push(s),s}findWhere(e){return this.wheres.find(n=>n.eq(e))}}let Br=class el{constructor(e){l(this,"id");l(this,"model","");l(this,"wheres",[]);l(this,"joins",[]);B.BuildClass(this,e)}static Create(e){const n=new el;return n.model=e.GetClassName(),n}addWhere(e,n){const r=this.findWhere({field:e,operator:n});if(r)return r;const s=on.Create(e,n);return this.wheres.push(s),s}removeWhere(e){const n=this.wheres.findIndex(r=>r.eq(e));n>-1&&this.wheres.splice(n,1)}addJoin(e){const n=this.findJoin({model:e.GetClassName()});if(n)return n;const r=ri.Create(e);return this.joins.push(r),r}findJoin(e){return this.joins.find(n=>n.eq(e))}findWhere(e){return this.wheres.find(n=>n.eq(e))}toRef(){return i.ref(this)}};class Ue{static Shuffle(e){for(let n=e.length-1;n>0;n--){const r=Math.floor(Math.random()*(n+1));[e[n],e[r]]=[e[r],e[n]]}}static GenerateNumsRange(e,n,r=1){return Array.from({length:(n-e)/r+1},(s,o)=>e+o*r)}static GetLast(e){return e[e.length-1]}static GetFirst(e){return e[0]}static GetRandEL(e){return e[Math.floor(Math.random()*e.length)]}static Sort(e){e.forEach((n,r)=>n.order=r)}static Refill(e,n){e.splice(0,e.length),e.push(...n)}static Eq(e,n){return e.length===n.length&&(e==null?void 0:e.every((r,s)=>e[s]==n[s]))}static SwipeById(e,n,r){const s=e.findIndex(a=>n.id===a.id),o=e.findIndex(a=>r.id===a.id);s||o||([e[s],e[o]]=[e[o],e[s]])}static Swap(e,n,r){if(n<0||n>=e.length||r<0||r>=e.length)return;const s=e[n];e[n]=e[r],e[r]=s}static MoveUp(e,n){e[n].order=n-1,e[n-1]&&(e[n-1].order=n),[e[n],e[n-1]]=[e[n-1],e[n]]}static MoveDown(e,n){e[n].order=n+1,e[n+1]&&(e[n+1].order=n),[e[n],e[n+1]]=[e[n+1],e[n]]}}var oe=(t=>(t.Date="date",t.String="string",t.Boolean="boolean",t.Number="number",t.Set="set",t.Join="join",t.ArrayString="arrayString",t.ArrayNumber="arrayNumber",t))(oe||{}),Sl=Object.defineProperty,kl=(t,e,n,r)=>{for(var s=void 0,o=t.length-1,a;o>=0;o--)(a=t[o])&&(s=a(e,n,s)||s);return s&&Sl(e,n,s),s};const $r=class Xt{constructor(e){l(this,"id");l(this,"model","");l(this,"label","");l(this,"col","");l(this,"operator",J.Eq);l(this,"date1");l(this,"date2");l(this,"value1","");l(this,"boolean",!1);l(this,"number",0);l(this,"type",oe.String);l(this,"set",[]);l(this,"isSet",!1);l(this,"joinTable","");l(this,"joinTableModel","");l(this,"joinTableFk","");l(this,"joinTablePk","");l(this,"joinTableId","");l(this,"joinTableIdCol","");B.BuildClass(this,e)}eq(e){if(!e)return!1;if(this.type===oe.Join){const n=e.model===this.model&&e.operator===this.operator&&this.joinTableModel===e.joinTableModel;return e.operator===J.In?n&&Ue.Eq(this.set,e.set):n}return e.model===this.model&&e.col===this.col&&e.operator===this.operator}valueEq(e){return!this||!e||!this.eq(e)?!1:this.type===oe.Boolean?this.boolean===(e==null?void 0:e.boolean):this.type===oe.String?this.value1===(e==null?void 0:e.value1):this.type===oe.Join&&this.set.length?Ue.Eq(this.set,e.set):!1}toUrlQuery(){const e=this.type?`"type":"${this.type}"`:"",n=this.model?`"model":"${this.model}"`:"",r=this.col?`"col":"${this.col}"`:"",s=this.operator?`"operator":"${this.operator}"`:"",o=this.value1?`"value1":"${this.value1}"`:"",a=this.type===oe.Boolean?`"boolean":${this.boolean}`:"",d=this.type===oe.Date&&this.date1?`"date1":"${this.date1.toISOString()}"`:"",c=this.type===oe.Date&&this.date2?`"date2":"${this.date2.toISOString()}"`:"",u=this.type===oe.Number?`"number":${this.number}`:"",h=this.type===oe.Set||this.operator===J.In?`"set":${JSON.stringify(this.set)}`:"",f=this.type===oe.Join?`"joinTableModel":"${this.joinTableModel}"`:"";return[e,n,r,s,o,a,d,c,u,h,f].filter(m=>m!=="").toString()}fromUrlQuery(e){this.model=e.get("model")??"",this.col=e.get("col")??"",this.label=e.get("label")??"",this.operator=e.get("operator")??"",this.value1=e.get("value1")??"",this.type=e.get("type")??"",this.boolean=!!(e.get("boolean")??""),this.joinTableModel=e.get("joinTableModel")??"",this.joinTableId=e.get("joinTableId")??"",this.joinTableFk=e.get("joinTableFk")??"",this.joinTableIdCol=e.get("joinTableIdCol")??"",this.joinTablePk=e.get("joinTablePk")??""}isUnaryFilter(){return this.operator===J.Eq||this.operator===J.Gt||this.operator===J.Lt}isBetweenFilter(){return this.operator===J.Btw}isSetFilter(){return this.operator===J.In}static Create(e,n,r){const s=new Xt;return s.model=e.GetClassName(),s.col=n??"",s.type=r,s.type===oe.Number&&(s.value1="0"),s.type===oe.String&&(s.value1=""),s.type===oe.Boolean&&(s.value1="false",s.operator=J.Eq),s}static CreateFilterModelWithJoin(e,n,r,s,o,a,d,c){const u=new Xt;return u.id=Je(),u.joinTable=r,u.joinTablePk=s,u.joinTableFk=o,u.col=n,u.type=a,d&&(u.joinTableId=d),c&&(u.joinTableIdCol=c),u}static CreateFilterModelWithJoinV2(e,n,r,s,o,a,d){const c=new Xt;return c.model=e,c.joinTableModel=r,c.joinTablePk=s,c.joinTableFk=o,c.col=n,c.type=oe.Join,a&&(c.joinTableId=a),d&&(c.joinTableIdCol=d),c}static OnlyIfSecondModelExists(e,n){const r=new Xt;return r.id=Je(),r.model=W.ToCamelCase(e.GetClassName()),r.joinTableModel=W.ToCamelCase(n.GetClassName()),r.type=oe.Join,r}addToSet(...e){e.forEach(n=>{if(this.set.indexOf(n)===-1){this.set.push(n);return}this.set=this.set.filter(r=>r!==n)})}pushToSet(...e){e.forEach(n=>{this.set.indexOf(n)===-1&&this.set.push(n)})}replaceSet(...e){this.set=e}setBoolean(e){this.boolean=e}toRef(){return i.ref(this)}setDate1(e){this.date1=e}setDate2(e){this.date2=e}dropDates(){this.setDate1(),this.setDate2()}setDatesRange(e,n){if(!e&&!n){this.dropDates();return}if(!n){this.setDate1(e),this.operator=J.Eq;return}this.setDate2(n),this.operator=J.Btw}};kl([B.GetClassConstructor(String)],$r.prototype,"set");let si=$r;class El{constructor(){l(this,"operation",J.Lt);l(this,"column","");l(this,"value");l(this,"initial",!0);l(this,"tableName","");l(this,"version","");l(this,"model","")}toUrlQuery(){const e=this.operation?`"operation":"${this.operation}"`:"",n=this.column?`"column":"${this.column}"`:"",r=this.value&&typeof this.value.toISOString=="function"?this.value.toISOString():this.value,s=r?`"value":"${r}"`:"",o=this.model?`"model":"${this.model}"`:"",a=`"initial":${this.initial}`;return[e,n,s,o,a].filter(d=>d!=="").toString()}fromUrlQuery(e){e.cursvalue&&(this.value=e.cursvalue),e.curscolumn&&(this.column=String(e.curscolumn)),e.cursinitial!==void 0&&(this.initial=!!e.cursinitial),e.curstableName&&(this.tableName=String(e.curstableName)),e.cursoperation&&(this.operation=e.cursoperation)}}class an{constructor(e){l(this,"offset",0);l(this,"limit",25);l(this,"cursor",new El);l(this,"cursorMode",!1);l(this,"append",!1);l(this,"allLoaded",!1);l(this,"version","");B.BuildClass(this,e)}setLoadMore(e,n,r){this.cursor.value=e,this.cursor.initial=!1,this.cursor.operation=J.Gt,this.cursor.column=n,this.cursor.tableName=r,this.cursorMode=!0}setLoadMoreV2(e,n,r){this.cursor.value=e,this.cursor.initial=!1,this.cursor.operation=J.Gt,this.cursor.column=n,this.cursor.model=r,this.cursorMode=!0,this.version="v2"}setOffset(e){this.offset=e}toUrlQuery(){const e=`"offset":${this.offset}`,n=`"limit":${this.limit}`,r=`"cursorMode":${this.cursorMode}`,s=`"append":${this.append}`,o=`"allLoaded":${this.allLoaded}`,a=`"cursor":{${this.cursor.toUrlQuery()}}`;return[e,n,r,s,o,a].toString()}fromUrlQuery(){const e=window.location.search,n=e.substring(e.indexOf("p=")+2,e.lastIndexOf("|")),r=new URLSearchParams(decodeURIComponent(n));this.offset=Number(r.get("offset")),this.limit=Number(r.get("col"))}setAllLoaded(e){this.allLoaded=!(e>=this.limit)}resetAllLoaded(){this.allLoaded=!1}getPageNum(){return this.offset/this.limit+1}drop(){this.offset=0,this.limit=25,B.BuildClass(this)}}var Ee=(t=>(t.Asc="asc",t.Desc="desc",t))(Ee||{});class ln{constructor(e){l(this,"model","");l(this,"col","");l(this,"order");l(this,"label","");l(this,"default",!1);l(this,"selected",!1);B.BuildClass(this,e)}static Create(e,n,r=Ee.Asc,s,o){const a=new ln;return a.model=e.GetClassName(),a.col=n??"",a.order=r??Ee.Asc,a.label=s??"",a.default=o??!1,a}isAsc(){return this.order===Ee.Asc}isDesc(){return this.order===Ee.Desc}eq(e){return e.model===this.model&&e.col===this.col&&e.order===this.order}toUrlQuery(){const e=this.model?`"model":"${this.model}"`:"",n=this.col?`"col":"${this.col}"`:"",r=this.order?`"order":"${this.order}"`:"";return[e,n,r].toString()}async fromUrlQuery(){const e=window.location.search,n=e.substring(e.indexOf("s=")+2,e.indexOf("|")),r=new URLSearchParams(decodeURIComponent(n));this.model=r.get("model")??"",this.col=r.get("col")??"",this.label=r.get("label")??"",this.default=!!r.get("default"),this.order=r.get("order")??""}asc(){this.order=Ee.Asc}desc(){this.order=Ee.Desc}}class cn{constructor(){l(this,"model","");l(this,"cols",[]);l(this,"models",[])}static Create(e,n){const r=new cn;return r.model=e.GetClassName(),r.cols=n,r}}var xl=Object.defineProperty,Pt=(t,e,n,r)=>{for(var s=void 0,o=t.length-1,a;o>=0;o--)(a=t[o])&&(s=a(e,n,s)||s);return s&&xl(e,n,s),s};const pt=(Ce=class{constructor(e){l(this,"id");l(this,"f",[]);l(this,"f2",[]);l(this,"s",[]);l(this,"p",new an);l(this,"t",new cn);B.BuildClass(this,e)}static Get(){return this.instance||(this.instance=new Ce),this.instance}createFrom(e){const n=new Ce(JSON.parse(e));this.f=n.f}clearForHTTP(){const e=new Ce(this);return e.f=this.f.map(n=>Ce.EmptyEntiries(n)),e.f2=this.f2.map(n=>Ce.EmptyEntiries(n)),e.s=this.s.map(n=>Ce.EmptyEntiries(n)),e.p=Ce.EmptyEntiries(this.p),e.t=Ce.EmptyEntiries(this.t),e}static EmptyEntiries(e){if(!e)return;const r=Object.entries(e).filter(([s,o])=>s!=="label"&&o!==""&&o!==null);return Object.fromEntries(r)}findFilterModel(e){return this.f.find(n=>e.id===n.id)}getFirstSortModel(){return Ue.GetLast(this.s)}setSortModel(e){e&&(this.s[0]=e)}setS(e){this.s[0]=e}setF(e){this.f.push(e)}setF2(e){this.f2.push(e)}replaceF(e,n){this.removeF(n),e&&this.setF(e)}removeF(e){const n=this.f.findIndex(r=>r.eq(e));B.RemoveFromClassByIndex(n,this.f)}reset(){this.f=[],this.s=[],this.p=new an}resetF(){this.f=[]}},l(Ce,"instance"),Ce);Pt([B.GetClassConstructor(si)],pt.prototype,"f"),Pt([B.GetClassConstructor(Br)],pt.prototype,"f2"),Pt([B.GetClassConstructor(ln)],pt.prototype,"s"),Pt([B.GetClassConstructor(an)],pt.prototype,"p"),Pt([B.GetClassConstructor(cn)],pt.prototype,"t");let je=pt,Ml=(Rt=class{},l(Rt,"SortModel",ln),l(Rt,"FilterModel",si),l(Rt,"FilterModelV2",Br),l(Rt,"FTSP",i.reactive(je)),Rt);function Ir(t,e){return function(){return t.apply(e,arguments)}}const{toString:Bl}=Object.prototype,{getPrototypeOf:oi}=Object,dn=(t=>e=>{const n=Bl.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ve=t=>(t=t.toLowerCase(),e=>dn(e)===t),un=t=>e=>typeof e===t,{isArray:gt}=Array,Vt=un("undefined");function $l(t){return t!==null&&!Vt(t)&&t.constructor!==null&&!Vt(t.constructor)&&Se(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Rr=ve("ArrayBuffer");function Il(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Rr(t.buffer),e}const Rl=un("string"),Se=un("function"),vr=un("number"),hn=t=>t!==null&&typeof t=="object",vl=t=>t===!0||t===!1,fn=t=>{if(dn(t)!=="object")return!1;const e=oi(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Nl=ve("Date"),Al=ve("File"),zl=ve("Blob"),Pl=ve("FileList"),Vl=t=>hn(t)&&Se(t.pipe),Tl=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Se(t.append)&&((e=dn(t))==="formdata"||e==="object"&&Se(t.toString)&&t.toString()==="[object FormData]"))},Fl=ve("URLSearchParams"),[Ol,Dl,Ll,Hl]=["ReadableStream","Request","Response","Headers"].map(ve),ql=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Tt(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,s;if(typeof t!="object"&&(t=[t]),gt(t))for(r=0,s=t.length;r<s;r++)e.call(null,t[r],r,t);else{const o=n?Object.getOwnPropertyNames(t):Object.keys(t),a=o.length;let d;for(r=0;r<a;r++)d=o[r],e.call(null,t[d],d,t)}}function Nr(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,s;for(;r-- >0;)if(s=n[r],e===s.toLowerCase())return s;return null}const ot=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ar=t=>!Vt(t)&&t!==ot;function ai(){const{caseless:t}=Ar(this)&&this||{},e={},n=(r,s)=>{const o=t&&Nr(e,s)||s;fn(e[o])&&fn(r)?e[o]=ai(e[o],r):fn(r)?e[o]=ai({},r):gt(r)?e[o]=r.slice():e[o]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&Tt(arguments[r],n);return e}const Ul=(t,e,n,{allOwnKeys:r}={})=>(Tt(e,(s,o)=>{n&&Se(s)?t[o]=Ir(s,n):t[o]=s},{allOwnKeys:r}),t),jl=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Wl=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},Gl=(t,e,n,r)=>{let s,o,a;const d={};if(e=e||{},t==null)return e;do{for(s=Object.getOwnPropertyNames(t),o=s.length;o-- >0;)a=s[o],(!r||r(a,t,e))&&!d[a]&&(e[a]=t[a],d[a]=!0);t=n!==!1&&oi(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},_l=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},Zl=t=>{if(!t)return null;if(gt(t))return t;let e=t.length;if(!vr(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},Xl=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&oi(Uint8Array)),Jl=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let s;for(;(s=r.next())&&!s.done;){const o=s.value;e.call(t,o[0],o[1])}},Yl=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},Ql=ve("HTMLFormElement"),Kl=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),zr=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),ec=ve("RegExp"),Pr=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};Tt(n,(s,o)=>{let a;(a=e(s,o,t))!==!1&&(r[o]=a||s)}),Object.defineProperties(t,r)},tc=t=>{Pr(t,(e,n)=>{if(Se(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(Se(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},nc=(t,e)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return gt(t)?r(t):r(String(t).split(e)),n},ic=()=>{},rc=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,li="abcdefghijklmnopqrstuvwxyz",Vr="0123456789",Tr={DIGIT:Vr,ALPHA:li,ALPHA_DIGIT:li+li.toUpperCase()+Vr},sc=(t=16,e=Tr.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function oc(t){return!!(t&&Se(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const ac=t=>{const e=new Array(10),n=(r,s)=>{if(hn(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[s]=r;const o=gt(r)?[]:{};return Tt(r,(a,d)=>{const c=n(a,s+1);!Vt(c)&&(o[d]=c)}),e[s]=void 0,o}}return r};return n(t,0)},lc=ve("AsyncFunction"),cc=t=>t&&(hn(t)||Se(t))&&Se(t.then)&&Se(t.catch),Fr=((t,e)=>t?setImmediate:e?((n,r)=>(ot.addEventListener("message",({source:s,data:o})=>{s===ot&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),ot.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Se(ot.postMessage)),dc=typeof queueMicrotask<"u"?queueMicrotask.bind(ot):typeof process<"u"&&process.nextTick||Fr,w={isArray:gt,isArrayBuffer:Rr,isBuffer:$l,isFormData:Tl,isArrayBufferView:Il,isString:Rl,isNumber:vr,isBoolean:vl,isObject:hn,isPlainObject:fn,isReadableStream:Ol,isRequest:Dl,isResponse:Ll,isHeaders:Hl,isUndefined:Vt,isDate:Nl,isFile:Al,isBlob:zl,isRegExp:ec,isFunction:Se,isStream:Vl,isURLSearchParams:Fl,isTypedArray:Xl,isFileList:Pl,forEach:Tt,merge:ai,extend:Ul,trim:ql,stripBOM:jl,inherits:Wl,toFlatObject:Gl,kindOf:dn,kindOfTest:ve,endsWith:_l,toArray:Zl,forEachEntry:Jl,matchAll:Yl,isHTMLForm:Ql,hasOwnProperty:zr,hasOwnProp:zr,reduceDescriptors:Pr,freezeMethods:tc,toObjectSet:nc,toCamelCase:Kl,noop:ic,toFiniteNumber:rc,findKey:Nr,global:ot,isContextDefined:Ar,ALPHABET:Tr,generateString:sc,isSpecCompliantForm:oc,toJSONObject:ac,isAsyncFn:lc,isThenable:cc,setImmediate:Fr,asap:dc};function F(t,e,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}w.inherits(F,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:w.toJSONObject(this.config),code:this.code,status:this.status}}});const Or=F.prototype,Dr={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{Dr[t]={value:t}}),Object.defineProperties(F,Dr),Object.defineProperty(Or,"isAxiosError",{value:!0}),F.from=(t,e,n,r,s,o)=>{const a=Object.create(Or);return w.toFlatObject(t,a,function(c){return c!==Error.prototype},d=>d!=="isAxiosError"),F.call(a,t.message,e,n,r,s),a.cause=t,a.name=t.name,o&&Object.assign(a,o),a};const uc=null;function ci(t){return w.isPlainObject(t)||w.isArray(t)}function Lr(t){return w.endsWith(t,"[]")?t.slice(0,-2):t}function Hr(t,e,n){return t?t.concat(e).map(function(s,o){return s=Lr(s),!n&&o?"["+s+"]":s}).join(n?".":""):e}function hc(t){return w.isArray(t)&&!t.some(ci)}const fc=w.toFlatObject(w,{},null,function(e){return/^is[A-Z]/.test(e)});function mn(t,e,n){if(!w.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=w.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,S){return!w.isUndefined(S[b])});const r=n.metaTokens,s=n.visitor||h,o=n.dots,a=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&w.isSpecCompliantForm(e);if(!w.isFunction(s))throw new TypeError("visitor must be a function");function u(C){if(C===null)return"";if(w.isDate(C))return C.toISOString();if(!c&&w.isBlob(C))throw new F("Blob is not supported. Use a Buffer instead.");return w.isArrayBuffer(C)||w.isTypedArray(C)?c&&typeof Blob=="function"?new Blob([C]):Buffer.from(C):C}function h(C,b,S){let I=C;if(C&&!S&&typeof C=="object"){if(w.endsWith(b,"{}"))b=r?b:b.slice(0,-2),C=JSON.stringify(C);else if(w.isArray(C)&&hc(C)||(w.isFileList(C)||w.endsWith(b,"[]"))&&(I=w.toArray(C)))return b=Lr(b),I.forEach(function(P,v){!(w.isUndefined(P)||P===null)&&e.append(a===!0?Hr([b],v,o):a===null?b:b+"[]",u(P))}),!1}return ci(C)?!0:(e.append(Hr(S,b,o),u(C)),!1)}const f=[],m=Object.assign(fc,{defaultVisitor:h,convertValue:u,isVisitable:ci});function g(C,b){if(!w.isUndefined(C)){if(f.indexOf(C)!==-1)throw Error("Circular reference detected in "+b.join("."));f.push(C),w.forEach(C,function(I,L){(!(w.isUndefined(I)||I===null)&&s.call(e,I,w.isString(L)?L.trim():L,b,m))===!0&&g(I,b?b.concat(L):[L])}),f.pop()}}if(!w.isObject(t))throw new TypeError("data must be an object");return g(t),e}function qr(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function di(t,e){this._pairs=[],t&&mn(t,this,e)}const Ur=di.prototype;Ur.append=function(e,n){this._pairs.push([e,n])},Ur.toString=function(e){const n=e?function(r){return e.call(this,r,qr)}:qr;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function mc(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function jr(t,e,n){if(!e)return t;const r=n&&n.encode||mc;w.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let o;if(s?o=s(e,n):o=w.isURLSearchParams(e)?e.toString():new di(e,n).toString(r),o){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class Wr{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){w.forEach(this.handlers,function(r){r!==null&&e(r)})}}const Gr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},pc={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:di,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},ui=typeof window<"u"&&typeof document<"u",hi=typeof navigator=="object"&&navigator||void 0,gc=ui&&(!hi||["ReactNative","NativeScript","NS"].indexOf(hi.product)<0),yc=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",wc=ui&&window.location.href||"http://localhost",pe={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ui,hasStandardBrowserEnv:gc,hasStandardBrowserWebWorkerEnv:yc,navigator:hi,origin:wc},Symbol.toStringTag,{value:"Module"})),...pc};function bc(t,e){return mn(t,new pe.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return pe.isNode&&w.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function Cc(t){return w.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Sc(t){const e={},n=Object.keys(t);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],e[o]=t[o];return e}function _r(t){function e(n,r,s,o){let a=n[o++];if(a==="__proto__")return!0;const d=Number.isFinite(+a),c=o>=n.length;return a=!a&&w.isArray(s)?s.length:a,c?(w.hasOwnProp(s,a)?s[a]=[s[a],r]:s[a]=r,!d):((!s[a]||!w.isObject(s[a]))&&(s[a]=[]),e(n,r,s[a],o)&&w.isArray(s[a])&&(s[a]=Sc(s[a])),!d)}if(w.isFormData(t)&&w.isFunction(t.entries)){const n={};return w.forEachEntry(t,(r,s)=>{e(Cc(r),s,n,0)}),n}return null}function kc(t,e,n){if(w.isString(t))try{return(e||JSON.parse)(t),w.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(t)}const Ft={transitional:Gr,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=w.isObject(e);if(o&&w.isHTMLForm(e)&&(e=new FormData(e)),w.isFormData(e))return s?JSON.stringify(_r(e)):e;if(w.isArrayBuffer(e)||w.isBuffer(e)||w.isStream(e)||w.isFile(e)||w.isBlob(e)||w.isReadableStream(e))return e;if(w.isArrayBufferView(e))return e.buffer;if(w.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let d;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return bc(e,this.formSerializer).toString();if((d=w.isFileList(e))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return mn(d?{"files[]":e}:e,c&&new c,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),kc(e)):e}],transformResponse:[function(e){const n=this.transitional||Ft.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(w.isResponse(e)||w.isReadableStream(e))return e;if(e&&w.isString(e)&&(r&&!this.responseType||s)){const a=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(d){if(a)throw d.name==="SyntaxError"?F.from(d,F.ERR_BAD_RESPONSE,this,null,this.response):d}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:pe.classes.FormData,Blob:pe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};w.forEach(["delete","get","head","post","put","patch"],t=>{Ft.headers[t]={}});const Ec=w.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),xc=t=>{const e={};let n,r,s;return t&&t.split(`
15
15
  `).forEach(function(a){s=a.indexOf(":"),n=a.substring(0,s).trim().toLowerCase(),r=a.substring(s+1).trim(),!(!n||e[n]&&Ec[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},Zr=Symbol("internals");function Ot(t){return t&&String(t).trim().toLowerCase()}function pn(t){return t===!1||t==null?t:w.isArray(t)?t.map(pn):String(t)}function Mc(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const Bc=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function fi(t,e,n,r,s){if(w.isFunction(r))return r.call(this,e,n);if(s&&(e=n),!!w.isString(e)){if(w.isString(r))return e.indexOf(r)!==-1;if(w.isRegExp(r))return r.test(e)}}function $c(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function Ic(t,e){const n=w.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(s,o,a){return this[r].call(this,e,s,o,a)},configurable:!0})})}class we{constructor(e){e&&this.set(e)}set(e,n,r){const s=this;function o(d,c,u){const h=Ot(c);if(!h)throw new Error("header name must be a non-empty string");const f=w.findKey(s,h);(!f||s[f]===void 0||u===!0||u===void 0&&s[f]!==!1)&&(s[f||c]=pn(d))}const a=(d,c)=>w.forEach(d,(u,h)=>o(u,h,c));if(w.isPlainObject(e)||e instanceof this.constructor)a(e,n);else if(w.isString(e)&&(e=e.trim())&&!Bc(e))a(xc(e),n);else if(w.isHeaders(e))for(const[d,c]of e.entries())o(c,d,r);else e!=null&&o(n,e,r);return this}get(e,n){if(e=Ot(e),e){const r=w.findKey(this,e);if(r){const s=this[r];if(!n)return s;if(n===!0)return Mc(s);if(w.isFunction(n))return n.call(this,s,r);if(w.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=Ot(e),e){const r=w.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||fi(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let s=!1;function o(a){if(a=Ot(a),a){const d=w.findKey(r,a);d&&(!n||fi(r,r[d],d,n))&&(delete r[d],s=!0)}}return w.isArray(e)?e.forEach(o):o(e),s}clear(e){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!e||fi(this,this[o],o,e,!0))&&(delete this[o],s=!0)}return s}normalize(e){const n=this,r={};return w.forEach(this,(s,o)=>{const a=w.findKey(r,o);if(a){n[a]=pn(s),delete n[o];return}const d=e?$c(o):String(o).trim();d!==o&&delete n[o],n[d]=pn(s),r[d]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return w.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=e&&w.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
16
16
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(s=>r.set(s)),r}static accessor(e){const r=(this[Zr]=this[Zr]={accessors:{}}).accessors,s=this.prototype;function o(a){const d=Ot(a);r[d]||(Ic(s,a),r[d]=!0)}return w.isArray(e)?e.forEach(o):o(e),this}}we.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),w.reduceDescriptors(we.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}}),w.freezeMethods(we);function mi(t,e){const n=this||Ft,r=e||n,s=we.from(r.headers);let o=r.data;return w.forEach(t,function(d){o=d.call(n,o,s.normalize(),e?e.status:void 0)}),s.normalize(),o}function Xr(t){return!!(t&&t.__CANCEL__)}function yt(t,e,n){F.call(this,t??"canceled",F.ERR_CANCELED,e,n),this.name="CanceledError"}w.inherits(yt,F,{__CANCEL__:!0});function Jr(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new F("Request failed with status code "+n.status,[F.ERR_BAD_REQUEST,F.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Rc(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function vc(t,e){t=t||10;const n=new Array(t),r=new Array(t);let s=0,o=0,a;return e=e!==void 0?e:1e3,function(c){const u=Date.now(),h=r[o];a||(a=u),n[s]=c,r[s]=u;let f=o,m=0;for(;f!==s;)m+=n[f++],f=f%t;if(s=(s+1)%t,s===o&&(o=(o+1)%t),u-a<e)return;const g=h&&u-h;return g?Math.round(m*1e3/g):void 0}}function Nc(t,e){let n=0,r=1e3/e,s,o;const a=(u,h=Date.now())=>{n=h,s=null,o&&(clearTimeout(o),o=null),t.apply(null,u)};return[(...u)=>{const h=Date.now(),f=h-n;f>=r?a(u,h):(s=u,o||(o=setTimeout(()=>{o=null,a(s)},r-f)))},()=>s&&a(s)]}const gn=(t,e,n=3)=>{let r=0;const s=vc(50,250);return Nc(o=>{const a=o.loaded,d=o.lengthComputable?o.total:void 0,c=a-r,u=s(c),h=a<=d;r=a;const f={loaded:a,total:d,progress:d?a/d:void 0,bytes:c,rate:u||void 0,estimated:u&&d&&h?(d-a)/u:void 0,event:o,lengthComputable:d!=null,[e?"download":"upload"]:!0};t(f)},n)},Yr=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},Qr=t=>(...e)=>w.asap(()=>t(...e)),Ac=pe.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,pe.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(pe.origin),pe.navigator&&/(msie|trident)/i.test(pe.navigator.userAgent)):()=>!0,zc=pe.hasStandardBrowserEnv?{write(t,e,n,r,s,o){const a=[t+"="+encodeURIComponent(e)];w.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),w.isString(r)&&a.push("path="+r),w.isString(s)&&a.push("domain="+s),o===!0&&a.push("secure"),document.cookie=a.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Pc(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Vc(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Kr(t,e){return t&&!Pc(e)?Vc(t,e):e}const es=t=>t instanceof we?{...t}:t;function at(t,e){e=e||{};const n={};function r(u,h,f,m){return w.isPlainObject(u)&&w.isPlainObject(h)?w.merge.call({caseless:m},u,h):w.isPlainObject(h)?w.merge({},h):w.isArray(h)?h.slice():h}function s(u,h,f,m){if(w.isUndefined(h)){if(!w.isUndefined(u))return r(void 0,u,f,m)}else return r(u,h,f,m)}function o(u,h){if(!w.isUndefined(h))return r(void 0,h)}function a(u,h){if(w.isUndefined(h)){if(!w.isUndefined(u))return r(void 0,u)}else return r(void 0,h)}function d(u,h,f){if(f in e)return r(u,h);if(f in t)return r(void 0,u)}const c={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:d,headers:(u,h,f)=>s(es(u),es(h),f,!0)};return w.forEach(Object.keys(Object.assign({},t,e)),function(h){const f=c[h]||s,m=f(t[h],e[h],h);w.isUndefined(m)&&f!==d||(n[h]=m)}),n}const ts=t=>{const e=at({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:o,headers:a,auth:d}=e;e.headers=a=we.from(a),e.url=jr(Kr(e.baseURL,e.url),t.params,t.paramsSerializer),d&&a.set("Authorization","Basic "+btoa((d.username||"")+":"+(d.password?unescape(encodeURIComponent(d.password)):"")));let c;if(w.isFormData(n)){if(pe.hasStandardBrowserEnv||pe.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((c=a.getContentType())!==!1){const[u,...h]=c?c.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...h].join("; "))}}if(pe.hasStandardBrowserEnv&&(r&&w.isFunction(r)&&(r=r(e)),r||r!==!1&&Ac(e.url))){const u=s&&o&&zc.read(o);u&&a.set(s,u)}return e},Tc=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,r){const s=ts(t);let o=s.data;const a=we.from(s.headers).normalize();let{responseType:d,onUploadProgress:c,onDownloadProgress:u}=s,h,f,m,g,C;function b(){g&&g(),C&&C(),s.cancelToken&&s.cancelToken.unsubscribe(h),s.signal&&s.signal.removeEventListener("abort",h)}let S=new XMLHttpRequest;S.open(s.method.toUpperCase(),s.url,!0),S.timeout=s.timeout;function I(){if(!S)return;const P=we.from("getAllResponseHeaders"in S&&S.getAllResponseHeaders()),H={data:!d||d==="text"||d==="json"?S.responseText:S.response,status:S.status,statusText:S.statusText,headers:P,config:t,request:S};Jr(function($e){n($e),b()},function($e){r($e),b()},H),S=null}"onloadend"in S?S.onloadend=I:S.onreadystatechange=function(){!S||S.readyState!==4||S.status===0&&!(S.responseURL&&S.responseURL.indexOf("file:")===0)||setTimeout(I)},S.onabort=function(){S&&(r(new F("Request aborted",F.ECONNABORTED,t,S)),S=null)},S.onerror=function(){r(new F("Network Error",F.ERR_NETWORK,t,S)),S=null},S.ontimeout=function(){let v=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const H=s.transitional||Gr;s.timeoutErrorMessage&&(v=s.timeoutErrorMessage),r(new F(v,H.clarifyTimeoutError?F.ETIMEDOUT:F.ECONNABORTED,t,S)),S=null},o===void 0&&a.setContentType(null),"setRequestHeader"in S&&w.forEach(a.toJSON(),function(v,H){S.setRequestHeader(H,v)}),w.isUndefined(s.withCredentials)||(S.withCredentials=!!s.withCredentials),d&&d!=="json"&&(S.responseType=s.responseType),u&&([m,C]=gn(u,!0),S.addEventListener("progress",m)),c&&S.upload&&([f,g]=gn(c),S.upload.addEventListener("progress",f),S.upload.addEventListener("loadend",g)),(s.cancelToken||s.signal)&&(h=P=>{S&&(r(!P||P.type?new yt(null,t,S):P),S.abort(),S=null)},s.cancelToken&&s.cancelToken.subscribe(h),s.signal&&(s.signal.aborted?h():s.signal.addEventListener("abort",h)));const L=Rc(s.url);if(L&&pe.protocols.indexOf(L)===-1){r(new F("Unsupported protocol "+L+":",F.ERR_BAD_REQUEST,t));return}S.send(o||null)})},Fc=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,s;const o=function(u){if(!s){s=!0,d();const h=u instanceof Error?u:this.reason;r.abort(h instanceof F?h:new yt(h instanceof Error?h.message:h))}};let a=e&&setTimeout(()=>{a=null,o(new F(`timeout ${e} of ms exceeded`,F.ETIMEDOUT))},e);const d=()=>{t&&(a&&clearTimeout(a),a=null,t.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),t=null)};t.forEach(u=>u.addEventListener("abort",o));const{signal:c}=r;return c.unsubscribe=()=>w.asap(d),c}},Oc=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,s;for(;r<n;)s=r+e,yield t.slice(r,s),r=s},Dc=async function*(t,e){for await(const n of Lc(t))yield*Oc(n,e)},Lc=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:r}=await e.read();if(n)break;yield r}}finally{await e.cancel()}},ns=(t,e,n,r)=>{const s=Dc(t,e);let o=0,a,d=c=>{a||(a=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:u,value:h}=await s.next();if(u){d(),c.close();return}let f=h.byteLength;if(n){let m=o+=f;n(m)}c.enqueue(new Uint8Array(h))}catch(u){throw d(u),u}},cancel(c){return d(c),s.return()}},{highWaterMark:2})},yn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",is=yn&&typeof ReadableStream=="function",Hc=yn&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),rs=(t,...e)=>{try{return!!t(...e)}catch{return!1}},qc=is&&rs(()=>{let t=!1;const e=new Request(pe.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),ss=64*1024,pi=is&&rs(()=>w.isReadableStream(new Response("").body)),wn={stream:pi&&(t=>t.body)};yn&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!wn[e]&&(wn[e]=w.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new F(`Response type '${e}' is not supported`,F.ERR_NOT_SUPPORT,r)})})})(new Response);const Uc=async t=>{if(t==null)return 0;if(w.isBlob(t))return t.size;if(w.isSpecCompliantForm(t))return(await new Request(pe.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(w.isArrayBufferView(t)||w.isArrayBuffer(t))return t.byteLength;if(w.isURLSearchParams(t)&&(t=t+""),w.isString(t))return(await Hc(t)).byteLength},jc=async(t,e)=>{const n=w.toFiniteNumber(t.getContentLength());return n??Uc(e)},gi={http:uc,xhr:Tc,fetch:yn&&(async t=>{let{url:e,method:n,data:r,signal:s,cancelToken:o,timeout:a,onDownloadProgress:d,onUploadProgress:c,responseType:u,headers:h,withCredentials:f="same-origin",fetchOptions:m}=ts(t);u=u?(u+"").toLowerCase():"text";let g=Fc([s,o&&o.toAbortSignal()],a),C;const b=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let S;try{if(c&&qc&&n!=="get"&&n!=="head"&&(S=await jc(h,r))!==0){let H=new Request(e,{method:"POST",body:r,duplex:"half"}),Be;if(w.isFormData(r)&&(Be=H.headers.get("content-type"))&&h.setContentType(Be),H.body){const[$e,nt]=Yr(S,gn(Qr(c)));r=ns(H.body,ss,$e,nt)}}w.isString(f)||(f=f?"include":"omit");const I="credentials"in Request.prototype;C=new Request(e,{...m,signal:g,method:n.toUpperCase(),headers:h.normalize().toJSON(),body:r,duplex:"half",credentials:I?f:void 0});let L=await fetch(C);const P=pi&&(u==="stream"||u==="response");if(pi&&(d||P&&b)){const H={};["status","statusText","headers"].forEach(vt=>{H[vt]=L[vt]});const Be=w.toFiniteNumber(L.headers.get("content-length")),[$e,nt]=d&&Yr(Be,gn(Qr(d),!0))||[];L=new Response(ns(L.body,ss,$e,()=>{nt&&nt(),b&&b()}),H)}u=u||"text";let v=await wn[w.findKey(wn,u)||"text"](L,t);return!P&&b&&b(),await new Promise((H,Be)=>{Jr(H,Be,{data:v,headers:we.from(L.headers),status:L.status,statusText:L.statusText,config:t,request:C})})}catch(I){throw b&&b(),I&&I.name==="TypeError"&&/fetch/i.test(I.message)?Object.assign(new F("Network Error",F.ERR_NETWORK,t,C),{cause:I.cause||I}):F.from(I,I&&I.code,t,C)}})};w.forEach(gi,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const os=t=>`- ${t}`,Wc=t=>w.isFunction(t)||t===null||t===!1,as={getAdapter:t=>{t=w.isArray(t)?t:[t];const{length:e}=t;let n,r;const s={};for(let o=0;o<e;o++){n=t[o];let a;if(r=n,!Wc(n)&&(r=gi[(a=String(n)).toLowerCase()],r===void 0))throw new F(`Unknown adapter '${a}'`);if(r)break;s[a||"#"+o]=r}if(!r){const o=Object.entries(s).map(([d,c])=>`adapter ${d} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=e?o.length>1?`since :
17
17
  `+o.map(os).join(`
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "sprof",
3
3
  "description": "components for the designer and uikit",
4
4
  "author": "Stanislav Lushnikov, Daniil Gaivoronskiy",
5
- "version": "0.0.255",
5
+ "version": "0.0.271",
6
6
  "private": false,
7
7
  "type": "module",
8
8
  "main": "./dist/sprof.umd.cjs",