sprof 0.0.192 → 0.0.194

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/sprof.js CHANGED
@@ -1,7 +1,7 @@
1
1
  var _l = Object.defineProperty;
2
2
  var Zl = (t, e, i) => e in t ? _l(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i;
3
3
  var a = (t, e, i) => Zl(t, typeof e != "symbol" ? e + "" : e, i);
4
- import { reactive as Oe, ref as T, openBlock as g, createElementBlock as w, createElementVNode as f, getCurrentInstance as Xl, inject as Yl, onUnmounted as Tr, onDeactivated as Jl, onActivated as Ql, onBeforeMount as ot, defineComponent as $, computed as he, mergeProps as Mt, unref as p, withModifiers as Fe, renderSlot as P, createTextVNode as es, toDisplayString as xe, Fragment as G, normalizeClass as ie, normalizeStyle as I, mergeModels as Ae, useModel as mt, withDirectives as Xe, vModelCheckbox as Kl, createVNode as R, createCommentVNode as J, vModelDynamic as eu, resolveComponent as L, isRef as Ve, withKeys as tu, vModelText as zr, watch as Ye, createBlock as N, vModelRadio as iu, vShow as ts, vModelSelect as nu, useCssVars as Or, onMounted as Zt, renderList as Ee, withCtx as X, resolveDirective as Fr, nextTick as su, Transition as Dr, onBeforeUnmount as is, createStaticVNode as Lr, onUpdated as ru, useTemplateRef as ou, resolveDynamicComponent as ai } from "vue";
4
+ import { reactive as Ee, ref as T, openBlock as g, createElementBlock as w, createElementVNode as f, getCurrentInstance as Xl, inject as Yl, onUnmounted as Tr, onDeactivated as Jl, onActivated as Ql, onBeforeMount as ot, defineComponent as $, computed as he, mergeProps as Mt, unref as p, withModifiers as Fe, renderSlot as P, createTextVNode as es, toDisplayString as xe, Fragment as G, normalizeClass as ie, normalizeStyle as I, mergeModels as Ae, useModel as mt, withDirectives as Xe, vModelCheckbox as Kl, createVNode as R, createCommentVNode as J, vModelDynamic as eu, resolveComponent as L, isRef as Ve, withKeys as tu, vModelText as zr, watch as Ye, createBlock as N, vModelRadio as iu, vShow as ts, vModelSelect as nu, useCssVars as Or, onMounted as Zt, renderList as Te, withCtx as X, resolveDirective as Fr, nextTick as su, Transition as Dr, onBeforeUnmount as is, createStaticVNode as Lr, onUpdated as ru, useTemplateRef as ou, resolveDynamicComponent as ai } from "vue";
5
5
  var Re = /* @__PURE__ */ ((t) => (t.Login = "login", t.Register = "register", t.Restore = "restore", t.Refresh = "refresh", t))(Re || {}), Pe = /* @__PURE__ */ ((t) => (t.Primary = "primary", t.Success = "success", t.Warning = "warning", t.Error = "error", t.Info = "info", t))(Pe || {});
6
6
  class It {
7
7
  constructor(e, i, n, s) {
@@ -464,7 +464,7 @@ class vu extends Nr {
464
464
  super.showMessage(i, n);
465
465
  }
466
466
  }
467
- const yu = new vu(), ze = Oe(yu);
467
+ const yu = new vu(), Oe = Ee(yu);
468
468
  class it {
469
469
  static Get(e) {
470
470
  const i = localStorage.getItem(e);
@@ -563,7 +563,7 @@ class Su {
563
563
  }
564
564
  Logout() {
565
565
  if (this.preventLogout) {
566
- ze.Warning("В текущий момент Вы не можете выйти из системы");
566
+ Oe.Warning("В текущий момент Вы не можете выйти из системы");
567
567
  return;
568
568
  }
569
569
  this.user.reset(), this.tokens.reset(), this.isAuth = !1;
@@ -578,9 +578,9 @@ class Su {
578
578
  }
579
579
  const Ut = class Ut {
580
580
  constructor() {
581
- a(this, "form", Oe(new gu()));
582
- a(this, "status", Oe(new Su()));
583
- a(this, "modal", Oe(new pu()));
581
+ a(this, "form", Ee(new gu()));
582
+ a(this, "status", Ee(new Su()));
583
+ a(this, "modal", Ee(new pu()));
584
584
  if (Ut.instance)
585
585
  return Ut.instance;
586
586
  Ut.instance = this, Object.freeze(this);
@@ -1631,7 +1631,7 @@ class ns {
1631
1631
  }
1632
1632
  }
1633
1633
  a(ns, "staticUrl", "");
1634
- class Te {
1634
+ class ze {
1635
1635
  constructor(e) {
1636
1636
  a(this, "name", "");
1637
1637
  a(this, "url", "");
@@ -1657,7 +1657,7 @@ class Te {
1657
1657
  return { name: this.originalName, url: this.url };
1658
1658
  }
1659
1659
  static CreatePreviewFile(e, i) {
1660
- const n = new Te();
1660
+ const n = new ze();
1661
1661
  return n.id = i ?? Me.UUID(), n.originalName = e.name, n.file = e.blob, n.fileSystemPath = Me.UUID(), n;
1662
1662
  }
1663
1663
  setFile(e) {
@@ -1754,7 +1754,7 @@ class ss {
1754
1754
  }
1755
1755
  var pt;
1756
1756
  let Iu = (pt = class {
1757
- }, a(pt, "Phone", Et), a(pt, "FileInfo", Te), a(pt, "PostAddress", Di), a(pt, "Website", ss), a(pt, "Email", Pt), a(pt, "Human", Wr), pt);
1757
+ }, a(pt, "Phone", Et), a(pt, "FileInfo", ze), a(pt, "PostAddress", Di), a(pt, "Website", ss), a(pt, "Email", Pt), a(pt, "Human", Wr), pt);
1758
1758
  class ft {
1759
1759
  static Shuffle(e) {
1760
1760
  for (let i = e.length - 1; i > 0; i--) {
@@ -2104,7 +2104,7 @@ Vi([
2104
2104
  let ci = gi;
2105
2105
  var ti;
2106
2106
  let Eu = (ti = class {
2107
- }, a(ti, "SortModel", Wi), a(ti, "FilterModel", rs), a(ti, "FTSP", ci), ti);
2107
+ }, a(ti, "SortModel", Wi), a(ti, "FilterModel", rs), a(ti, "FTSP", Ee(ci)), ti);
2108
2108
  function Vr(t, e) {
2109
2109
  return function() {
2110
2110
  return t.apply(e, arguments);
@@ -3852,14 +3852,14 @@ class cs {
3852
3852
  return n._retry = !0, i.defaults.headers.common.token = hi.getAccessToken(), e.config.headers.token = hi.getAccessToken(), e.config.baseURL = void 0, i.request(n);
3853
3853
  if (e.response.status >= 500) {
3854
3854
  if (e.response.data === "неверный логин или пароль") {
3855
- ze.Error("Неверный логин или пароль");
3855
+ Oe.Error("Неверный логин или пароль");
3856
3856
  return;
3857
3857
  }
3858
- ze.Error("Ошибка на сервере, попробуйте позже");
3858
+ Oe.Error("Ошибка на сервере, попробуйте позже");
3859
3859
  }
3860
3860
  if (e.response.status >= 400 && e.response.status < 500) {
3861
3861
  const s = new cs(e.response.data).getErr();
3862
- s && ze.Error(s);
3862
+ s && Oe.Error(s);
3863
3863
  }
3864
3864
  return Promise.reject(e);
3865
3865
  }
@@ -4106,12 +4106,12 @@ a(tt, "router"), a(tt, "ChangeDocumentTitle", (e = "") => {
4106
4106
  let xt = tt;
4107
4107
  class ue {
4108
4108
  constructor(e, i) {
4109
- a(this, "items", Oe([]));
4109
+ a(this, "items", Ee([]));
4110
4110
  a(this, "item");
4111
4111
  a(this, "count", T(0));
4112
4112
  a(this, "classConstructor");
4113
4113
  a(this, "url", "");
4114
- this.classConstructor = e, this.item = Oe(new this.classConstructor()), this.url = i;
4114
+ this.classConstructor = e, this.item = Ee(new this.classConstructor()), this.url = i;
4115
4115
  }
4116
4116
  Set(e) {
4117
4117
  Object.assign(this.item, new this.classConstructor(e));
@@ -4953,7 +4953,7 @@ let Xd = class extends ue {
4953
4953
  const Yd = new Xd();
4954
4954
  let Jd = class extends ue {
4955
4955
  constructor() {
4956
- super(Te, "file-infos");
4956
+ super(ze, "file-infos");
4957
4957
  }
4958
4958
  };
4959
4959
  const Qd = new Jd();
@@ -5100,8 +5100,8 @@ class $n {
5100
5100
  let hh = class {
5101
5101
  constructor() {
5102
5102
  a(this, "isSearchDrawerOpen", T(!1));
5103
- a(this, "searchModel", Oe(new $n()));
5104
- a(this, "searchGroups", Oe([]));
5103
+ a(this, "searchModel", Ee(new $n()));
5104
+ a(this, "searchGroups", Ee([]));
5105
5105
  a(this, "count", 0);
5106
5106
  }
5107
5107
  async Search(e) {
@@ -5276,8 +5276,8 @@ class Sh {
5276
5276
  const Ch = new Sh();
5277
5277
  class xh {
5278
5278
  constructor() {
5279
- a(this, "Menu", Oe(Ch));
5280
- a(this, "Head", Oe(bh));
5279
+ a(this, "Menu", Ee(Ch));
5280
+ a(this, "Head", Ee(bh));
5281
5281
  }
5282
5282
  }
5283
5283
  const Mh = new xh();
@@ -5331,10 +5331,10 @@ class Ih extends qr {
5331
5331
  const Rh = new Ih();
5332
5332
  class kt {
5333
5333
  }
5334
- a(kt, "Admin", Mh), a(kt, "Dialog", lt), a(kt, "Loading", Rh), a(kt, "Notify", Oe(ze)), a(kt, "Btn", It), a(kt, "Input", Br);
5334
+ a(kt, "Admin", Mh), a(kt, "Dialog", lt), a(kt, "Loading", Rh), a(kt, "Notify", Ee(Oe)), a(kt, "Btn", It), a(kt, "Input", Br);
5335
5335
  class z {
5336
5336
  }
5337
- a(z, "Auth", Oe(dt)), a(z, "UI", Oe(kt)), a(z, "Paginator", Oe(jd)), /**
5337
+ a(z, "Auth", Ee(dt)), a(z, "UI", Ee(kt)), a(z, "Paginator", Ee(jd)), /**
5338
5338
  * Stores
5339
5339
  */
5340
5340
  a(z, "S", vh), /**
@@ -5355,7 +5355,7 @@ class Ao {
5355
5355
  a(this, "id");
5356
5356
  a(this, "num", "");
5357
5357
  a(this, "fileInfoId");
5358
- a(this, "fileInfo", new Te());
5358
+ a(this, "fileInfo", new ze());
5359
5359
  z.H.Classes.BuildClass(this, e);
5360
5360
  }
5361
5361
  }
@@ -5400,7 +5400,7 @@ class Po {
5400
5400
  a(this, "id");
5401
5401
  a(this, "num", "");
5402
5402
  a(this, "fileInfoId");
5403
- a(this, "fileInfo", new Te());
5403
+ a(this, "fileInfo", new ze());
5404
5404
  z.H.Classes.BuildClass(this, e);
5405
5405
  }
5406
5406
  }
@@ -5625,7 +5625,7 @@ class ys {
5625
5625
  a(this, "answerId");
5626
5626
  a(this, "comment", "");
5627
5627
  a(this, "fileInfoId");
5628
- a(this, "fileInfo", new Te());
5628
+ a(this, "fileInfo", new ze());
5629
5629
  z.H.Classes.BuildClass(this, e);
5630
5630
  }
5631
5631
  }
@@ -5657,7 +5657,7 @@ const ws = class _n {
5657
5657
  a(this, "valueOther");
5658
5658
  a(this, "valueNumber");
5659
5659
  a(this, "valueDate");
5660
- a(this, "fileInfo", new Te());
5660
+ a(this, "fileInfo", new ze());
5661
5661
  a(this, "fileInfoId");
5662
5662
  a(this, "order", 0);
5663
5663
  a(this, "selectedAnswerVariants", []);
@@ -6017,7 +6017,7 @@ class sn {
6017
6017
  a(this, "order", 0);
6018
6018
  a(this, "menuId");
6019
6019
  a(this, "iconId");
6020
- a(this, "icon", new Te());
6020
+ a(this, "icon", new ze());
6021
6021
  a(this, "iconName", "");
6022
6022
  a(this, "svgCode", "");
6023
6023
  B.BuildClass(this, e);
@@ -6047,7 +6047,7 @@ class bs {
6047
6047
  a(this, "subMenus", []);
6048
6048
  a(this, "subMenusForDelete", []);
6049
6049
  a(this, "iconId");
6050
- a(this, "icon", new Te());
6050
+ a(this, "icon", new ze());
6051
6051
  B.BuildClass(this, e);
6052
6052
  }
6053
6053
  withoutChildren() {
@@ -6139,7 +6139,7 @@ class xf {
6139
6139
  class Ss {
6140
6140
  constructor(e) {
6141
6141
  a(this, "id");
6142
- a(this, "document", new Te());
6142
+ a(this, "document", new ze());
6143
6143
  a(this, "documentId");
6144
6144
  a(this, "pageId");
6145
6145
  B.BuildClass(this, e);
@@ -6161,7 +6161,7 @@ class on {
6161
6161
  }
6162
6162
  }
6163
6163
  kf([
6164
- B.GetClassConstructor(Te)
6164
+ B.GetClassConstructor(ze)
6165
6165
  ], on.prototype, "fileInfo");
6166
6166
  class an {
6167
6167
  constructor(e) {
@@ -6170,7 +6170,7 @@ class an {
6170
6170
  a(this, "order", 0);
6171
6171
  a(this, "downloadToFile", !1);
6172
6172
  a(this, "pageSectionId");
6173
- a(this, "scan", new Te());
6173
+ a(this, "scan", new ze());
6174
6174
  a(this, "scanId");
6175
6175
  B.BuildClass(this, e);
6176
6176
  }
@@ -6978,7 +6978,7 @@ const An = /* @__PURE__ */ new WeakMap(), wm = (t, e) => {
6978
6978
  return;
6979
6979
  const c = ct.FromRuStr(l);
6980
6980
  n.value = c, i("beforeChange", c), i("change", c);
6981
- }, u = (l) => l.length != 10 ? (r.value = s, ze.Error("Неверный формат даты"), !1) : Number(r.value.slice(0, 2)) > 31 ? (r.value = s, ze.Error("Неверный день месяца"), !1) : Number(r.value.slice(3, 5)) > 12 ? (r.value = s, ze.Error("Неверный месяц"), !1) : Number(r.value.slice(6, 10)) > 2100 ? (r.value = s, ze.Error("Неверный год"), !1) : !0;
6981
+ }, u = (l) => l.length != 10 ? (r.value = s, Oe.Error("Неверный формат даты"), !1) : Number(r.value.slice(0, 2)) > 31 ? (r.value = s, Oe.Error("Неверный день месяца"), !1) : Number(r.value.slice(3, 5)) > 12 ? (r.value = s, Oe.Error("Неверный месяц"), !1) : Number(r.value.slice(6, 10)) > 2100 ? (r.value = s, Oe.Error("Неверный год"), !1) : !0;
6982
6982
  return (l, c) => {
6983
6983
  const d = L("PInput");
6984
6984
  return g(), w("div", {
@@ -8016,7 +8016,7 @@ const hg = { class: "container" }, fg = { class: "slide-box" }, mg = { class: "l
8016
8016
  f("use", { "xlink:href": "#arrow-prev" }, null, -1)
8017
8017
  ]))),
8018
8018
  f("div", fg, [
8019
- (g(!0), w(G, null, Ee(p(o), (M, S) => (g(), w("div", {
8019
+ (g(!0), w(G, null, Te(p(o), (M, S) => (g(), w("div", {
8020
8020
  key: S,
8021
8021
  class: ie({
8022
8022
  animationnext: p(s) === p(ut).Next,
@@ -8042,7 +8042,7 @@ const hg = { class: "container" }, fg = { class: "slide-box" }, mg = { class: "l
8042
8042
  margin: "0"
8043
8043
  }, {
8044
8044
  default: X(() => [
8045
- (g(!0), w(G, null, Ee(p(r), (M, S) => (g(), w("div", {
8045
+ (g(!0), w(G, null, Te(p(r), (M, S) => (g(), w("div", {
8046
8046
  id: S.toString(),
8047
8047
  key: S,
8048
8048
  class: "number",
@@ -8256,7 +8256,7 @@ const ca = /* @__PURE__ */ A(wg, [["render", Sg], ["__scopeId", "data-v-d28c6f33
8256
8256
  margin: "0px"
8257
8257
  }, {
8258
8258
  default: X(() => [
8259
- (g(!0), w(G, null, Ee(t.models, (m, y) => (g(), N(c, {
8259
+ (g(!0), w(G, null, Te(t.models, (m, y) => (g(), N(c, {
8260
8260
  key: y,
8261
8261
  color: "blue",
8262
8262
  height: "auto",
@@ -8305,7 +8305,7 @@ const ca = /* @__PURE__ */ A(wg, [["render", Sg], ["__scopeId", "data-v-d28c6f33
8305
8305
  onChange: o
8306
8306
  }, {
8307
8307
  default: X(() => [
8308
- (g(!0), w(G, null, Ee(t.models, (d, h) => (g(), w("option", {
8308
+ (g(!0), w(G, null, Te(t.models, (d, h) => (g(), w("option", {
8309
8309
  key: h,
8310
8310
  value: d,
8311
8311
  label: d.label
@@ -8620,7 +8620,7 @@ const ca = /* @__PURE__ */ A(wg, [["render", Sg], ["__scopeId", "data-v-d28c6f33
8620
8620
  "with-open-window": !0
8621
8621
  }, {
8622
8622
  "open-inside-content": X(() => [
8623
- (g(!0), w(G, null, Ee(t.list, (d) => (g(), N(l, {
8623
+ (g(!0), w(G, null, Te(t.list, (d) => (g(), N(l, {
8624
8624
  key: d,
8625
8625
  type: "admin",
8626
8626
  color: "blue",
@@ -8748,7 +8748,7 @@ const ca = /* @__PURE__ */ A(wg, [["render", Sg], ["__scopeId", "data-v-d28c6f33
8748
8748
  }, 8, ["modelValue"]),
8749
8749
  p(s) ? (g(), w("div", Ug, [
8750
8750
  f("ul", jg, [
8751
- (g(!0), w(G, null, Ee(p(r), (y) => (g(), w("li", {
8751
+ (g(!0), w(G, null, Te(p(r), (y) => (g(), w("li", {
8752
8752
  key: y.value,
8753
8753
  onClick: (x) => l(y)
8754
8754
  }, xe(y.label), 9, Wg))), 128))
@@ -8923,7 +8923,7 @@ const xa = /* @__PURE__ */ A(Xg, [["render", Yg], ["__scopeId", "data-v-0f1f2f84
8923
8923
  _: 1
8924
8924
  })
8925
8925
  ], 32)) : J("", !0),
8926
- (g(!0), w(G, null, Ee(p(d), (j) => (g(), w("li", { key: j }, [
8926
+ (g(!0), w(G, null, Te(p(d), (j) => (g(), w("li", { key: j }, [
8927
8927
  R(M, {
8928
8928
  skin: "pag",
8929
8929
  type: n(j === p(r).curPage),
@@ -9307,7 +9307,7 @@ const xa = /* @__PURE__ */ A(Xg, [["render", Yg], ["__scopeId", "data-v-0f1f2f84
9307
9307
  onChange: s
9308
9308
  }, {
9309
9309
  default: X(() => [
9310
- (g(), w(G, null, Ee(i, (c, d) => f("option", {
9310
+ (g(), w(G, null, Te(i, (c, d) => f("option", {
9311
9311
  key: c,
9312
9312
  label: c,
9313
9313
  value: d
@@ -9351,7 +9351,7 @@ const xa = /* @__PURE__ */ A(Xg, [["render", Yg], ["__scopeId", "data-v-0f1f2f84
9351
9351
  onClear: l[1] || (l[1] = (h) => o())
9352
9352
  }, {
9353
9353
  default: X(() => [
9354
- (g(!0), w(G, null, Ee(p(At).Get(), (h, m) => (g(), w("option", {
9354
+ (g(!0), w(G, null, Te(p(At).Get(), (h, m) => (g(), w("option", {
9355
9355
  key: m,
9356
9356
  label: h.label,
9357
9357
  value: h
@@ -9392,7 +9392,7 @@ const xa = /* @__PURE__ */ A(Xg, [["render", Yg], ["__scopeId", "data-v-0f1f2f84
9392
9392
  onChange: r
9393
9393
  }, {
9394
9394
  default: X(() => [
9395
- (g(!0), w(G, null, Ee(p(At).Get(), (d, h) => (g(), w("option", {
9395
+ (g(!0), w(G, null, Te(p(At).Get(), (d, h) => (g(), w("option", {
9396
9396
  key: h,
9397
9397
  label: d.label,
9398
9398
  value: d
@@ -10659,7 +10659,7 @@ const Ka = /* @__PURE__ */ A(Z1, [["render", J1], ["__scopeId", "data-v-0ea9a95f
10659
10659
  __name: "PNotify",
10660
10660
  setup(t) {
10661
10661
  const e = he(() => {
10662
- switch (ze.GetType()) {
10662
+ switch (Oe.GetType()) {
10663
10663
  case "info":
10664
10664
  return "message info";
10665
10665
  case "success":
@@ -10674,13 +10674,13 @@ const Ka = /* @__PURE__ */ A(Z1, [["render", J1], ["__scopeId", "data-v-0ea9a95f
10674
10674
  });
10675
10675
  return (i, n) => (g(), N(Dr, { name: "fade" }, {
10676
10676
  default: X(() => [
10677
- p(ze).IsVisible() ? (g(), w("div", {
10677
+ p(Oe).IsVisible() ? (g(), w("div", {
10678
10678
  key: 0,
10679
10679
  class: ie(p(e))
10680
10680
  }, [
10681
10681
  R(Rs, {
10682
- title: p(ze).GetTitle(),
10683
- text: p(ze).GetText()
10682
+ title: p(Oe).GetTitle(),
10683
+ text: p(Oe).GetText()
10684
10684
  }, null, 8, ["title", "text"])
10685
10685
  ], 2)) : J("", !0)
10686
10686
  ]),
@@ -10754,7 +10754,7 @@ const mv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10754
10754
  string: ("PF" in u ? u.PF : p(z)).Auth.Form.GetTitle(),
10755
10755
  "font-size": "18px"
10756
10756
  }, null, 8, ["string"]),
10757
- (g(!0), w(G, null, Ee(("PF" in u ? u.PF : p(z)).Auth.Form.GetFields(), (c) => (g(), N(xs, {
10757
+ (g(!0), w(G, null, Te(("PF" in u ? u.PF : p(z)).Auth.Form.GetFields(), (c) => (g(), N(xs, {
10758
10758
  id: c.id,
10759
10759
  key: c.id,
10760
10760
  ref_for: !0,
@@ -10767,7 +10767,7 @@ const mv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10767
10767
  margin: "10px 0 0 0"
10768
10768
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "type", "placeholder"]))), 128)),
10769
10769
  f("div", dp, [
10770
- (g(!0), w(G, null, Ee(p(n), (c, d) => (g(), N(cn, {
10770
+ (g(!0), w(G, null, Te(p(n), (c, d) => (g(), N(cn, {
10771
10771
  id: c.id,
10772
10772
  key: c.GetChunk(),
10773
10773
  disabled: ("PF" in u ? u.PF : p(z)).Auth.Form.IsBlock,
@@ -10974,7 +10974,7 @@ const mv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10974
10974
  gridTemplateColumns: `repeat(auto-fit, minmax(${t.minMenuItemWidth}, 1fr))`
10975
10975
  })
10976
10976
  }, [
10977
- (g(!0), w(G, null, Ee(t.menus.items, (m, y) => (g(), w("div", { key: y }, [
10977
+ (g(!0), w(G, null, Te(t.menus.items, (m, y) => (g(), w("div", { key: y }, [
10978
10978
  f("div", {
10979
10979
  class: ie({ "selected-tab": y === t.menus.idx, tab: y !== t.menus.idx }),
10980
10980
  style: I({
@@ -11007,7 +11007,7 @@ const mv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11007
11007
  fileInfo: {
11008
11008
  type: Object,
11009
11009
  required: !1,
11010
- default: new Te()
11010
+ default: new ze()
11011
11011
  },
11012
11012
  formats: {
11013
11013
  type: Array,
@@ -11031,7 +11031,7 @@ const mv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11031
11031
  const d = c.files[0];
11032
11032
  if (d) {
11033
11033
  if (!l(d.name)) {
11034
- ze.Error("Загруженный файл должен быть в формате pdf, jpg или jpeg");
11034
+ Oe.Error("Загруженный файл должен быть в формате pdf, jpg или jpeg");
11035
11035
  return;
11036
11036
  }
11037
11037
  i.fileInfo.setFile(d), n("upload", i.fileInfo);
@@ -11777,13 +11777,13 @@ var zn = Qe("vue-bounding-box"), Xp = ["east", "west", null], Yp = ["south", "no
11777
11777
  e === "west" ? u.left -= r : e === "east" && (u.right += r), i === "north" ? u.top -= o : i === "south" && (u.bottom += o), !i && e ? n = "width" : i && !e && (n = "height"), this.resizable && this.$emit("resize", new Ip(u, { allowedDirections: { left: e === "west" || !e, right: e === "east" || !e, bottom: i === "south" || !i, top: i === "north" || !i }, preserveAspectRatio: t.nativeEvent && t.nativeEvent.shiftKey, respectDirection: n }));
11778
11778
  } }, emits: ["resize", "resize-end"] };
11779
11779
  bl.render = function(t, e, i, n, s, r) {
11780
- return g(), N("div", { ref: "box", class: r.classes.root, style: r.style }, [P(t.$slots, "default"), R("div", null, [(g(!0), N(G, null, Ee(r.lineNodes, function(o) {
11780
+ return g(), N("div", { ref: "box", class: r.classes.root, style: r.style }, [P(t.$slots, "default"), R("div", null, [(g(!0), N(G, null, Te(r.lineNodes, function(o) {
11781
11781
  return g(), N(ai(o.component), { key: o.name, "default-class": o.class, "hover-class": o.hoverClass, "wrapper-class": o.wrapperClass, position: o.name, disabled: o.disabled, onDrag: function(u) {
11782
11782
  return r.onHandlerDrag(u, o.horizontalDirection, o.verticalDirection);
11783
11783
  }, onDragEnd: e[1] || (e[1] = function(u) {
11784
11784
  return r.onEnd();
11785
11785
  }) }, null, 8, ["default-class", "hover-class", "wrapper-class", "position", "disabled", "onDrag"]);
11786
- }), 128))]), (g(!0), N(G, null, Ee(r.handlerNodes, function(o) {
11786
+ }), 128))]), (g(!0), N(G, null, Te(r.handlerNodes, function(o) {
11787
11787
  return g(), N("div", { key: o.name, style: o.wrapperStyle, class: o.wrapperClass }, [(g(), N(ai(o.component), { "default-class": o.class, "hover-class": o.hoverClass, "wrapper-class": o.wrapperClass, "horizontal-position": o.horizontalDirection, "vertical-position": o.verticalDirection, disabled: o.disabled, onDrag: function(u) {
11788
11788
  return r.onHandlerDrag(u, o.horizontalDirection, o.verticalDirection);
11789
11789
  }, onDragEnd: e[2] || (e[2] = function(u) {
@@ -12780,7 +12780,7 @@ const s0 = { class: "background-container" }, r0 = { class: "dialog-footer" }, o
12780
12780
  default: !0
12781
12781
  },
12782
12782
  fileInfo: {
12783
- type: Te,
12783
+ type: ze,
12784
12784
  required: !0
12785
12785
  },
12786
12786
  height: {
@@ -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 yr;(function(t){(function(e){var n=typeof globalThis=="object"?globalThis:typeof gr=="object"?gr: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 sr(Object.create(null))}:c?function(){return sr({__proto__:null})}:function(){return sr({})},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:Yp(),g=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Jp(),C=typeof WeakMap=="function"?WeakMap:Qp(),S=s?Symbol.for("@reflect-metadata:registry"):void 0,w=Gp(),$=Zp(w);function F(p,y,k,x){if(V(k)){if(!La(p))throw new TypeError;if(!Ha(y))throw new TypeError;return Dp(p,y)}else{if(!La(p))throw new TypeError;if(!te(y))throw new TypeError;if(!te(x)&&!V(x)&&!It(x))throw new TypeError;return It(x)&&(x=void 0),k=De(k),Lp(p,y,k,x)}}e("decorate",F);function O(p,y){function k(x,z){if(!te(x))throw new TypeError;if(!V(z)&&!jp(z))throw new TypeError;Va(p,y,x,z)}return k}e("metadata",O);function P(p,y,k,x){if(!te(k))throw new TypeError;return V(x)||(x=De(x)),Va(p,y,k,x)}e("defineMetadata",P);function G(p,y,k){if(!te(y))throw new TypeError;return V(k)||(k=De(k)),Na(p,y,k)}e("hasMetadata",G);function Me(p,y,k){if(!te(y))throw new TypeError;return V(k)||(k=De(k)),nr(p,y,k)}e("hasOwnMetadata",Me);function Be(p,y,k){if(!te(y))throw new TypeError;return V(k)||(k=De(k)),Pa(p,y,k)}e("getMetadata",Be);function et(p,y,k){if(!te(y))throw new TypeError;return V(k)||(k=De(k)),za(p,y,k)}e("getOwnMetadata",et);function $t(p,y){if(!te(p))throw new TypeError;return V(y)||(y=De(y)),Ta(p,y)}e("getMetadataKeys",$t);function _n(p,y){if(!te(p))throw new TypeError;return V(y)||(y=De(y)),Fa(p,y)}e("getOwnMetadataKeys",_n);function Op(p,y,k){if(!te(y))throw new TypeError;if(V(k)||(k=De(k)),!te(y))throw new TypeError;V(k)||(k=De(k));var x=Gt(y,k,!1);return V(x)?!1:x.OrdinaryDeleteMetadata(p,y,k)}e("deleteMetadata",Op);function Dp(p,y){for(var k=p.length-1;k>=0;--k){var x=p[k],z=x(y);if(!V(z)&&!It(z)){if(!Ha(z))throw new TypeError;y=z}}return y}function Lp(p,y,k,x){for(var z=p.length-1;z>=0;--z){var se=p[z],ne=se(y,k,x);if(!V(ne)&&!It(ne)){if(!te(ne))throw new TypeError;x=ne}}return x}function Na(p,y,k){var x=nr(p,y,k);if(x)return!0;var z=rr(y);return It(z)?!1:Na(p,z,k)}function nr(p,y,k){var x=Gt(y,k,!1);return V(x)?!1:Da(x.OrdinaryHasOwnMetadata(p,y,k))}function Pa(p,y,k){var x=nr(p,y,k);if(x)return za(p,y,k);var z=rr(y);if(!It(z))return Pa(p,z,k)}function za(p,y,k){var x=Gt(y,k,!1);if(!V(x))return x.OrdinaryGetOwnMetadata(p,y,k)}function Va(p,y,k,x){var z=Gt(k,x,!0);z.OrdinaryDefineOwnMetadata(p,y,k,x)}function Ta(p,y){var k=Fa(p,y),x=rr(p);if(x===null)return k;var z=Ta(x,y);if(z.length<=0)return k;if(k.length<=0)return z;for(var se=new g,ne=[],H=0,B=k;H<B.length;H++){var R=B[H],v=se.has(R);v||(se.add(R),ne.push(R))}for(var A=0,q=z;A<q.length;A++){var R=q[A],v=se.has(R);v||(se.add(R),ne.push(R))}return ne}function Fa(p,y){var k=Gt(p,y,!1);return k?k.OrdinaryOwnMetadataKeys(p,y):[]}function Oa(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 V(p){return p===void 0}function It(p){return p===null}function Hp(p){return typeof p=="symbol"}function te(p){return typeof p=="object"?p!==null:typeof p=="function"}function qp(p,y){switch(Oa(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=qa(p,o);if(x!==void 0){var z=x.call(p,k);if(te(z))throw new TypeError;return z}return Up(p)}function Up(p,y){var k,x;{var z=p.toString;if(jn(z)){var x=z.call(p);if(!te(x))return x}var k=p.valueOf;if(jn(k)){var x=k.call(p);if(!te(x))return x}}throw new TypeError}function Da(p){return!!p}function _p(p){return""+p}function De(p){var y=qp(p);return Hp(y)?y:_p(y)}function La(p){return Array.isArray?Array.isArray(p):p instanceof Object?p instanceof Array:Object.prototype.toString.call(p)==="[object Array]"}function jn(p){return typeof p=="function"}function Ha(p){return typeof p=="function"}function jp(p){switch(Oa(p)){case 3:return!0;case 4:return!0;default:return!1}}function ir(p,y){return p===y||p!==p&&y!==y}function qa(p,y){var k=p[y];if(k!=null){if(!jn(k))throw new TypeError;return k}}function Ua(p){var y=qa(p,a);if(!jn(y))throw new TypeError;var k=y.call(p);if(!te(k))throw new TypeError;return k}function _a(p){return p.value}function ja(p){var y=p.next();return y.done?!1:y}function Wa(p){var y=p.return;y&&y.call(p)}function rr(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 z=x.constructor;return typeof z!="function"||z===p?y:z}function Wp(){var p;!V(S)&&typeof n.Reflect<"u"&&!(S in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(p=Xp(n.Reflect));var y,k,x,z=new C,se={registerProvider:ne,getProvider:B,setProvider:v};return se;function ne(A){if(!Object.isExtensible(se))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case p===A:break;case V(y):y=A;break;case y===A:break;case V(k):k=A;break;case k===A:break;default:x===void 0&&(x=new g),x.add(A);break}}function H(A,q){if(!V(y)){if(y.isProviderFor(A,q))return y;if(!V(k)){if(k.isProviderFor(A,q))return y;if(!V(x))for(var X=Ua(x);;){var Q=ja(X);if(!Q)return;var Ae=_a(Q);if(Ae.isProviderFor(A,q))return Wa(X),Ae}}}if(!V(p)&&p.isProviderFor(A,q))return p}function B(A,q){var X=z.get(A),Q;return V(X)||(Q=X.get(q)),V(Q)&&(Q=H(A,q),V(Q)||(V(X)&&(X=new m,z.set(A,X)),X.set(q,Q))),Q}function R(A){if(V(A))throw new TypeError;return y===A||k===A||!V(x)&&x.has(A)}function v(A,q,X){if(!R(X))throw new Error("Metadata provider not registered.");var Q=B(A,q);if(Q!==X){if(!V(Q))return!1;var Ae=z.get(A);V(Ae)&&(Ae=new m,z.set(A,Ae)),Ae.set(q,X)}return!0}}function Gp(){var p;return!V(S)&&te(n.Reflect)&&Object.isExtensible(n.Reflect)&&(p=n.Reflect[S]),V(p)&&(p=Wp()),!V(S)&&te(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,S,{enumerable:!1,configurable:!1,writable:!1,value:p}),p}function Zp(p){var y=new C,k={isProviderFor:function(R,v){var A=y.get(R);return V(A)?!1:A.has(v)},OrdinaryDefineOwnMetadata:ne,OrdinaryHasOwnMetadata:z,OrdinaryGetOwnMetadata:se,OrdinaryOwnMetadataKeys:H,OrdinaryDeleteMetadata:B};return w.registerProvider(k),k;function x(R,v,A){var q=y.get(R),X=!1;if(V(q)){if(!A)return;q=new m,y.set(R,q),X=!0}var Q=q.get(v);if(V(Q)){if(!A)return;if(Q=new m,q.set(v,Q),!p.setProvider(R,v,k))throw q.delete(v),X&&y.delete(R),new Error("Wrong provider for target.")}return Q}function z(R,v,A){var q=x(v,A,!1);return V(q)?!1:Da(q.has(R))}function se(R,v,A){var q=x(v,A,!1);if(!V(q))return q.get(R)}function ne(R,v,A,q){var X=x(A,q,!0);X.set(R,v)}function H(R,v){var A=[],q=x(R,v,!1);if(V(q))return A;for(var X=q.keys(),Q=Ua(X),Ae=0;;){var Ga=ja(Q);if(!Ga)return A.length=Ae,A;var Kp=_a(Ga);try{A[Ae]=Kp}catch(eg){try{Wa(Q)}finally{throw eg}}Ae++}}function B(R,v,A){var q=x(v,A,!1);if(V(q)||!q.delete(R))return!1;if(q.size===0){var X=y.get(v);V(X)||(X.delete(A),X.size===0&&y.delete(X))}return!0}}function Xp(p){var y=p.defineMetadata,k=p.hasOwnMetadata,x=p.getOwnMetadata,z=p.getOwnMetadataKeys,se=p.deleteMetadata,ne=new C,H={isProviderFor:function(B,R){var v=ne.get(B);return!V(v)&&v.has(R)?!0:z(B,R).length?(V(v)&&(v=new g,ne.set(B,v)),v.add(R),!0):!1},OrdinaryDefineOwnMetadata:y,OrdinaryHasOwnMetadata:k,OrdinaryGetOwnMetadata:x,OrdinaryOwnMetadataKeys:z,OrdinaryDeleteMetadata:se};return H}function Gt(p,y,k){var x=w.getProvider(p,y);if(!V(x))return x;if(k){if(w.setProvider(p,y,$))return $;throw new Error("Illegal state.")}}function Yp(){var p={},y=[],k=function(){function H(B,R,v){this._index=0,this._keys=B,this._values=R,this._selector=v}return H.prototype["@@iterator"]=function(){return this},H.prototype[a]=function(){return this},H.prototype.next=function(){var B=this._index;if(B>=0&&B<this._keys.length){var R=this._selector(this._keys[B],this._values[B]);return B+1>=this._keys.length?(this._index=-1,this._keys=y,this._values=y):this._index++,{value:R,done:!1}}return{value:void 0,done:!0}},H.prototype.throw=function(B){throw this._index>=0&&(this._index=-1,this._keys=y,this._values=y),B},H.prototype.return=function(B){return this._index>=0&&(this._index=-1,this._keys=y,this._values=y),{value:B,done:!0}},H}(),x=function(){function H(){this._keys=[],this._values=[],this._cacheKey=p,this._cacheIndex=-2}return Object.defineProperty(H.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),H.prototype.has=function(B){return this._find(B,!1)>=0},H.prototype.get=function(B){var R=this._find(B,!1);return R>=0?this._values[R]:void 0},H.prototype.set=function(B,R){var v=this._find(B,!0);return this._values[v]=R,this},H.prototype.delete=function(B){var R=this._find(B,!1);if(R>=0){for(var v=this._keys.length,A=R+1;A<v;A++)this._keys[A-1]=this._keys[A],this._values[A-1]=this._values[A];return this._keys.length--,this._values.length--,ir(B,this._cacheKey)&&(this._cacheKey=p,this._cacheIndex=-2),!0}return!1},H.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=p,this._cacheIndex=-2},H.prototype.keys=function(){return new k(this._keys,this._values,z)},H.prototype.values=function(){return new k(this._keys,this._values,se)},H.prototype.entries=function(){return new k(this._keys,this._values,ne)},H.prototype["@@iterator"]=function(){return this.entries()},H.prototype[a]=function(){return this.entries()},H.prototype._find=function(B,R){if(!ir(this._cacheKey,B)){this._cacheIndex=-1;for(var v=0;v<this._keys.length;v++)if(ir(this._keys[v],B)){this._cacheIndex=v;break}}return this._cacheIndex<0&&R&&(this._cacheIndex=this._keys.length,this._keys.push(B),this._values.push(void 0)),this._cacheIndex},H}();return x;function z(H,B){return H}function se(H,B){return B}function ne(H,B){return[H,B]}}function Jp(){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 Qp(){var p=16,y=h.create(),k=x();return function(){function B(){this._key=x()}return B.prototype.has=function(R){var v=z(R,!1);return v!==void 0?h.has(v,this._key):!1},B.prototype.get=function(R){var v=z(R,!1);return v!==void 0?h.get(v,this._key):void 0},B.prototype.set=function(R,v){var A=z(R,!0);return A[this._key]=v,this},B.prototype.delete=function(R){var v=z(R,!1);return v!==void 0?delete v[this._key]:!1},B.prototype.clear=function(){this._key=x()},B}();function x(){var B;do B="@@WeakMap@@"+H();while(h.has(y,B));return y[B]=!0,B}function z(B,R){if(!r.call(B,k)){if(!R)return;Object.defineProperty(B,k,{value:h.create()})}return B[k]}function se(B,R){for(var v=0;v<R;++v)B[v]=Math.random()*255|0;return B}function ne(B){if(typeof Uint8Array=="function"){var R=new Uint8Array(B);return typeof crypto<"u"?crypto.getRandomValues(R):typeof msCrypto<"u"?msCrypto.getRandomValues(R):se(R,B),R}return se(new Array(B),B)}function H(){var B=ne(p);B[6]=B[6]&79|64,B[8]=B[8]&191|128;for(var R="",v=0;v<p;++v){var A=B[v];(v===4||v===6||v===8)&&(R+="-"),A<16&&(R+="0"),R+=A.toString(16).toLowerCase()}return R}}function sr(p){return p.__=void 0,delete p.__,p}})})(yr||(yr={}));let tn;const dl=new Uint8Array(16);function ul(){if(!tn&&(tn=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!tn))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return tn(dl)}const ae=[];for(let t=0;t<256;++t)ae.push((t+256).toString(16).slice(1));function hl(t,e=0){return ae[t[e+0]]+ae[t[e+1]]+ae[t[e+2]]+ae[t[e+3]]+"-"+ae[t[e+4]]+ae[t[e+5]]+"-"+ae[t[e+6]]+ae[t[e+7]]+"-"+ae[t[e+8]]+ae[t[e+9]]+"-"+ae[t[e+10]]+ae[t[e+11]]+ae[t[e+12]]+ae[t[e+13]]+ae[t[e+14]]+ae[t[e+15]]}const wr={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Ge(t,e,n){if(wr.randomUUID&&!t)return wr.randomUUID();t=t||{};const r=t.random||(t.rng||ul)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,hl(r)}class le{static UUID(){return Ge()}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 _{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():_.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=_.Translit(r),a=_.Translit(s);return r.includes(s)||o.includes(s)||r.includes(a)}static SearchIn(e,n){return _.StringsEquals(e,n)}static FormatToPercentage(e){return`${e}%`}static WrapSubStr(e,n){const r=new RegExp(_.GetVariants(n).join("|"),"gi");return e.replace(r,`<span class="search-text">${n}</span>`)}static GetVariants(e){const n=_.Translit(e);return[e,_.Capitalize(e),e.toLowerCase(),e.toUpperCase(),n,_.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 Je=class Je{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)){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){Je.RemoveFromClass(e,n,r)}static RemoveFromClassById(e,n,r){if(!e)return;const s=n.findIndex(o=>o.id===e);Je.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 Je.BuildClass(r),r.id=le.UUID(),r}static ExistsWithId(e,n){return e.some(r=>r.id===n)}static DeepMap(e){return n=>Array.isArray(n)?n.map(Je.DeepMap(e)):Object(n)===n?Object.fromEntries(Object.entries(n).map(([r,s])=>[r,Je.DeepMap(e)(s)])):e(n)}static DeepTrim(e){return this.DeepMap(_.TrimText)(e)}};l(Je,"GetClassConstructor",e=>(n,r)=>{const s=Reflect.getMetadata(`property:${r}`,n)||{};s[r]=e,Reflect.defineMetadata(r,s,n)});let I=Je;class nt{constructor(e){l(this,"id");l(this,"address");l(this,"description");l(this,"contactId");I.BuildClass(this,e)}static Create(){const e=new nt;return e.id=le.UUID(),e}}class Qn{static Setup(e){this.staticUrl=e}static get StaticUrl(){return this.staticUrl}}l(Qn,"staticUrl","");class pe{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);I.BuildClass(this,e)}getFileUrl(){const e=this.url?this.url:`${Qn.StaticUrl}/${this.fileSystemPath}`;return new URL(e,typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:$e&&$e.tagName.toUpperCase()==="SCRIPT"&&$e.src||new URL("sprof.umd.cjs",document.baseURI).href)}getFileListObject(){return{name:this.originalName,url:this.url}}static CreatePreviewFile(e,n){const r=new pe;return r.id=n??le.UUID(),r.originalName=e.name,r.file=e.blob,r.fileSystemPath=le.UUID(),r}setFile(e){this.id||(this.id=M.H.Id.UUID()),this.originalName=e.name,this.file=e.blob,this.fileSystemPath=M.H.Id.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:$e&&$e.tagName.toUpperCase()==="SCRIPT"&&$e.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 br{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);I.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=_.Capitalize(this.name),this.surname=_.Capitalize(this.surname),this.patronymic=_.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 it{constructor(e){l(this,"id");l(this,"number");l(this,"description");l(this,"contactId");I.BuildClass(this,e)}static Create(){const e=new it;return e.id=le.UUID(),e}}class nn{constructor(e){l(this,"id");l(this,"address");l(this,"description");I.BuildClass(this,e)}}class Kn{constructor(e){l(this,"id");l(this,"address");l(this,"description");I.BuildClass(this,e)}}let fl=(Qe=class{},l(Qe,"Phone",it),l(Qe,"FileInfo",pe),l(Qe,"PostAddress",nn),l(Qe,"Website",Kn),l(Qe,"Email",nt),l(Qe,"Human",br),Qe);class He{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 ie=(t=>(t.Date="date",t.String="string",t.Boolean="boolean",t.Number="number",t.Set="set",t.Join="join",t))(ie||{}),ue=(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))(ue||{}),ml=Object.defineProperty,pl=(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&&ml(e,n,s),s};const Cr=class Zt{constructor(e){l(this,"id");l(this,"model","");l(this,"label","");l(this,"col","");l(this,"operator",ue.Eq);l(this,"date1");l(this,"date2");l(this,"value1","");l(this,"boolean",!1);l(this,"number",0);l(this,"type",ie.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","");I.BuildClass(this,e)}eq(e){if(!e)return!1;if(this.type===ie.Join){const n=e.model===this.model&&e.operator===this.operator&&this.joinTableModel===e.joinTableModel;return e.operator===ue.In?n&&He.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===ie.Boolean?this.boolean===(e==null?void 0:e.boolean):this.type===ie.String?this.value1===(e==null?void 0:e.value1):this.type===ie.Join&&this.set.length?He.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===ie.Boolean?`"boolean":${this.boolean}`:"",d=this.type===ie.Date&&this.date1?`"date1":"${this.date1.toISOString()}"`:"",c=this.type===ie.Date&&this.date2?`"date2":"${this.date2.toISOString()}"`:"",u=this.type===ie.Number?`"number":${this.number}`:"",h=this.type===ie.Set||this.operator===ue.In?`"set":${JSON.stringify(this.set)}`:"",f=this.type===ie.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===ue.Eq||this.operator===ue.Gt||this.operator===ue.Lt}isBetweenFilter(){return this.operator===ue.Btw}isSetFilter(){return this.operator===ue.In}static Create(e,n,r){const s=new Zt;return s.model=e.GetClassName(),s.col=n??"",s.type=r,s.type===ie.Number&&(s.value1="0"),s.type===ie.String&&(s.value1=""),s.type===ie.Boolean&&(s.value1="false",s.operator=ue.Eq),s}static CreateFilterModelWithJoin(e,n,r,s,o,a,d,c){const u=new Zt;return u.id=Ge(),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 Zt;return c.model=e,c.joinTableModel=r,c.joinTablePk=s,c.joinTableFk=o,c.col=n,c.type=ie.Join,a&&(c.joinTableId=a),d&&(c.joinTableIdCol=d),c}static OnlyIfSecondModelExists(e,n){const r=new Zt;return r.id=Ge(),r.model=_.ToCamelCase(e.GetClassName()),r.joinTableModel=_.ToCamelCase(n.GetClassName()),r.type=ie.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=ue.Eq;return}this.setDate2(n),this.operator=ue.Btw}};pl([I.GetClassConstructor(String)],Cr.prototype,"set");let ei=Cr;class gl{constructor(){l(this,"operation",ue.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 rn{constructor(e){l(this,"offset",0);l(this,"limit",25);l(this,"cursor",new gl);l(this,"cursorMode",!1);l(this,"append",!1);l(this,"allLoaded",!1);l(this,"version","");I.BuildClass(this,e)}setLoadMore(e,n,r){this.cursor.value=e,this.cursor.initial=!1,this.cursor.operation=ue.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=ue.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,I.BuildClass(this)}}var ke=(t=>(t.Asc="asc",t.Desc="desc",t))(ke||{});class sn{constructor(e){l(this,"model","");l(this,"col","");l(this,"order");l(this,"label","");l(this,"default",!1);l(this,"selected",!1);I.BuildClass(this,e)}static Create(e,n,r=ke.Asc,s,o){const a=new sn;return a.model=e.GetClassName(),a.col=n??"",a.order=r??ke.Asc,a.label=s??"",a.default=o??!1,a}isAsc(){return this.order===ke.Asc}isDesc(){return this.order===ke.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=ke.Asc}desc(){this.order=ke.Desc}}class on{constructor(){l(this,"model","");l(this,"cols",[]);l(this,"models",[])}static Create(e,n){const r=new on;return r.model=e.GetClassName(),r.cols=n,r}}var yl=Object.defineProperty,an=(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&&yl(e,n,s),s};const At=(Ce=class{constructor(e){l(this,"id");l(this,"f",[]);l(this,"s",[]);l(this,"p",new rn);l(this,"t",new on);I.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.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 He.GetLast(this.s)}setSortModel(e){e&&(this.s[0]=e)}setS(e){this.s[0]=e}setF(e){this.f.push(e)}replaceF(e,n){this.removeF(n),e&&this.setF(e)}removeF(e){const n=this.f.findIndex(r=>r.eq(e));I.RemoveFromClassByIndex(n,this.f)}reset(){this.f=[],this.s=[],this.p=new rn}resetF(){this.f=[]}},l(Ce,"instance"),Ce);an([I.GetClassConstructor(ei)],At.prototype,"f"),an([I.GetClassConstructor(sn)],At.prototype,"s"),an([I.GetClassConstructor(rn)],At.prototype,"p"),an([I.GetClassConstructor(on)],At.prototype,"t");let Nt=At,wl=(Wt=class{},l(Wt,"SortModel",sn),l(Wt,"FilterModel",ei),l(Wt,"FTSP",Nt),Wt);function Sr(t,e){return function(){return t.apply(e,arguments)}}const{toString:bl}=Object.prototype,{getPrototypeOf:ti}=Object,ln=(t=>e=>{const n=bl.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Re=t=>(t=t.toLowerCase(),e=>ln(e)===t),cn=t=>e=>typeof e===t,{isArray:mt}=Array,Pt=cn("undefined");function Cl(t){return t!==null&&!Pt(t)&&t.constructor!==null&&!Pt(t.constructor)&&be(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const kr=Re("ArrayBuffer");function Sl(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&kr(t.buffer),e}const kl=cn("string"),be=cn("function"),Er=cn("number"),dn=t=>t!==null&&typeof t=="object",El=t=>t===!0||t===!1,un=t=>{if(ln(t)!=="object")return!1;const e=ti(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},xl=Re("Date"),Ml=Re("File"),Bl=Re("Blob"),$l=Re("FileList"),Il=t=>dn(t)&&be(t.pipe),Rl=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||be(t.append)&&((e=ln(t))==="formdata"||e==="object"&&be(t.toString)&&t.toString()==="[object FormData]"))},vl=Re("URLSearchParams"),[Al,Nl,Pl,zl]=["ReadableStream","Request","Response","Headers"].map(Re),Vl=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function zt(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,s;if(typeof t!="object"&&(t=[t]),mt(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 xr(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 rt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Mr=t=>!Pt(t)&&t!==rt;function ni(){const{caseless:t}=Mr(this)&&this||{},e={},n=(r,s)=>{const o=t&&xr(e,s)||s;un(e[o])&&un(r)?e[o]=ni(e[o],r):un(r)?e[o]=ni({},r):mt(r)?e[o]=r.slice():e[o]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&zt(arguments[r],n);return e}const Tl=(t,e,n,{allOwnKeys:r}={})=>(zt(e,(s,o)=>{n&&be(s)?t[o]=Sr(s,n):t[o]=s},{allOwnKeys:r}),t),Fl=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Ol=(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)},Dl=(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&&ti(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},Ll=(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},Hl=t=>{if(!t)return null;if(mt(t))return t;let e=t.length;if(!Er(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},ql=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&ti(Uint8Array)),Ul=(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])}},_l=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},jl=Re("HTMLFormElement"),Wl=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Br=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Gl=Re("RegExp"),$r=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};zt(n,(s,o)=>{let a;(a=e(s,o,t))!==!1&&(r[o]=a||s)}),Object.defineProperties(t,r)},Zl=t=>{$r(t,(e,n)=>{if(be(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(be(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+"'")})}})},Xl=(t,e)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return mt(t)?r(t):r(String(t).split(e)),n},Yl=()=>{},Jl=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,ii="abcdefghijklmnopqrstuvwxyz",Ir="0123456789",Rr={DIGIT:Ir,ALPHA:ii,ALPHA_DIGIT:ii+ii.toUpperCase()+Ir},Ql=(t=16,e=Rr.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function Kl(t){return!!(t&&be(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const ec=t=>{const e=new Array(10),n=(r,s)=>{if(dn(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[s]=r;const o=mt(r)?[]:{};return zt(r,(a,d)=>{const c=n(a,s+1);!Pt(c)&&(o[d]=c)}),e[s]=void 0,o}}return r};return n(t,0)},tc=Re("AsyncFunction"),nc=t=>t&&(dn(t)||be(t))&&be(t.then)&&be(t.catch),vr=((t,e)=>t?setImmediate:e?((n,r)=>(rt.addEventListener("message",({source:s,data:o})=>{s===rt&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),rt.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",be(rt.postMessage)),ic=typeof queueMicrotask<"u"?queueMicrotask.bind(rt):typeof process<"u"&&process.nextTick||vr,b={isArray:mt,isArrayBuffer:kr,isBuffer:Cl,isFormData:Rl,isArrayBufferView:Sl,isString:kl,isNumber:Er,isBoolean:El,isObject:dn,isPlainObject:un,isReadableStream:Al,isRequest:Nl,isResponse:Pl,isHeaders:zl,isUndefined:Pt,isDate:xl,isFile:Ml,isBlob:Bl,isRegExp:Gl,isFunction:be,isStream:Il,isURLSearchParams:vl,isTypedArray:ql,isFileList:$l,forEach:zt,merge:ni,extend:Tl,trim:Vl,stripBOM:Fl,inherits:Ol,toFlatObject:Dl,kindOf:ln,kindOfTest:Re,endsWith:Ll,toArray:Hl,forEachEntry:Ul,matchAll:_l,isHTMLForm:jl,hasOwnProperty:Br,hasOwnProp:Br,reduceDescriptors:$r,freezeMethods:Zl,toObjectSet:Xl,toCamelCase:Wl,noop:Yl,toFiniteNumber:Jl,findKey:xr,global:rt,isContextDefined:Mr,ALPHABET:Rr,generateString:Ql,isSpecCompliantForm:Kl,toJSONObject:ec,isAsyncFn:tc,isThenable:nc,setImmediate:vr,asap:ic};function T(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)}b.inherits(T,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:b.toJSONObject(this.config),code:this.code,status:this.status}}});const Ar=T.prototype,Nr={};["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=>{Nr[t]={value:t}}),Object.defineProperties(T,Nr),Object.defineProperty(Ar,"isAxiosError",{value:!0}),T.from=(t,e,n,r,s,o)=>{const a=Object.create(Ar);return b.toFlatObject(t,a,function(c){return c!==Error.prototype},d=>d!=="isAxiosError"),T.call(a,t.message,e,n,r,s),a.cause=t,a.name=t.name,o&&Object.assign(a,o),a};const rc=null;function ri(t){return b.isPlainObject(t)||b.isArray(t)}function Pr(t){return b.endsWith(t,"[]")?t.slice(0,-2):t}function zr(t,e,n){return t?t.concat(e).map(function(s,o){return s=Pr(s),!n&&o?"["+s+"]":s}).join(n?".":""):e}function sc(t){return b.isArray(t)&&!t.some(ri)}const oc=b.toFlatObject(b,{},null,function(e){return/^is[A-Z]/.test(e)});function hn(t,e,n){if(!b.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=b.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,w){return!b.isUndefined(w[S])});const r=n.metaTokens,s=n.visitor||h,o=n.dots,a=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&b.isSpecCompliantForm(e);if(!b.isFunction(s))throw new TypeError("visitor must be a function");function u(C){if(C===null)return"";if(b.isDate(C))return C.toISOString();if(!c&&b.isBlob(C))throw new T("Blob is not supported. Use a Buffer instead.");return b.isArrayBuffer(C)||b.isTypedArray(C)?c&&typeof Blob=="function"?new Blob([C]):Buffer.from(C):C}function h(C,S,w){let $=C;if(C&&!w&&typeof C=="object"){if(b.endsWith(S,"{}"))S=r?S:S.slice(0,-2),C=JSON.stringify(C);else if(b.isArray(C)&&sc(C)||(b.isFileList(C)||b.endsWith(S,"[]"))&&($=b.toArray(C)))return S=Pr(S),$.forEach(function(O,P){!(b.isUndefined(O)||O===null)&&e.append(a===!0?zr([S],P,o):a===null?S:S+"[]",u(O))}),!1}return ri(C)?!0:(e.append(zr(w,S,o),u(C)),!1)}const f=[],m=Object.assign(oc,{defaultVisitor:h,convertValue:u,isVisitable:ri});function g(C,S){if(!b.isUndefined(C)){if(f.indexOf(C)!==-1)throw Error("Circular reference detected in "+S.join("."));f.push(C),b.forEach(C,function($,F){(!(b.isUndefined($)||$===null)&&s.call(e,$,b.isString(F)?F.trim():F,S,m))===!0&&g($,S?S.concat(F):[F])}),f.pop()}}if(!b.isObject(t))throw new TypeError("data must be an object");return g(t),e}function Vr(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function si(t,e){this._pairs=[],t&&hn(t,this,e)}const Tr=si.prototype;Tr.append=function(e,n){this._pairs.push([e,n])},Tr.toString=function(e){const n=e?function(r){return e.call(this,r,Vr)}:Vr;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function ac(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Fr(t,e,n){if(!e)return t;const r=n&&n.encode||ac;b.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let o;if(s?o=s(e,n):o=b.isURLSearchParams(e)?e.toString():new si(e,n).toString(r),o){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class Or{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){b.forEach(this.handlers,function(r){r!==null&&e(r)})}}const Dr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},lc={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:si,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},oi=typeof window<"u"&&typeof document<"u",ai=typeof navigator=="object"&&navigator||void 0,cc=oi&&(!ai||["ReactNative","NativeScript","NS"].indexOf(ai.product)<0),dc=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",uc=oi&&window.location.href||"http://localhost",he={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:oi,hasStandardBrowserEnv:cc,hasStandardBrowserWebWorkerEnv:dc,navigator:ai,origin:uc},Symbol.toStringTag,{value:"Module"})),...lc};function hc(t,e){return hn(t,new he.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return he.isNode&&b.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function fc(t){return b.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function mc(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 Lr(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&&b.isArray(s)?s.length:a,c?(b.hasOwnProp(s,a)?s[a]=[s[a],r]:s[a]=r,!d):((!s[a]||!b.isObject(s[a]))&&(s[a]=[]),e(n,r,s[a],o)&&b.isArray(s[a])&&(s[a]=mc(s[a])),!d)}if(b.isFormData(t)&&b.isFunction(t.entries)){const n={};return b.forEachEntry(t,(r,s)=>{e(fc(r),s,n,0)}),n}return null}function pc(t,e,n){if(b.isString(t))try{return(e||JSON.parse)(t),b.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(t)}const Vt={transitional:Dr,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=b.isObject(e);if(o&&b.isHTMLForm(e)&&(e=new FormData(e)),b.isFormData(e))return s?JSON.stringify(Lr(e)):e;if(b.isArrayBuffer(e)||b.isBuffer(e)||b.isStream(e)||b.isFile(e)||b.isBlob(e)||b.isReadableStream(e))return e;if(b.isArrayBufferView(e))return e.buffer;if(b.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 hc(e,this.formSerializer).toString();if((d=b.isFileList(e))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return hn(d?{"files[]":e}:e,c&&new c,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),pc(e)):e}],transformResponse:[function(e){const n=this.transitional||Vt.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(b.isResponse(e)||b.isReadableStream(e))return e;if(e&&b.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"?T.from(d,T.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:he.classes.FormData,Blob:he.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};b.forEach(["delete","get","head","post","put","patch"],t=>{Vt.headers[t]={}});const gc=b.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"]),yc=t=>{const e={};let n,r,s;return t&&t.split(`
14
+ ***************************************************************************** */var yr;(function(t){(function(e){var n=typeof globalThis=="object"?globalThis:typeof gr=="object"?gr: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 sr(Object.create(null))}:c?function(){return sr({__proto__:null})}:function(){return sr({})},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:Yp(),g=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Jp(),C=typeof WeakMap=="function"?WeakMap:Qp(),S=s?Symbol.for("@reflect-metadata:registry"):void 0,w=Gp(),$=Zp(w);function F(p,y,k,x){if(V(k)){if(!La(p))throw new TypeError;if(!Ha(y))throw new TypeError;return Dp(p,y)}else{if(!La(p))throw new TypeError;if(!te(y))throw new TypeError;if(!te(x)&&!V(x)&&!It(x))throw new TypeError;return It(x)&&(x=void 0),k=De(k),Lp(p,y,k,x)}}e("decorate",F);function O(p,y){function k(x,z){if(!te(x))throw new TypeError;if(!V(z)&&!jp(z))throw new TypeError;Va(p,y,x,z)}return k}e("metadata",O);function P(p,y,k,x){if(!te(k))throw new TypeError;return V(x)||(x=De(x)),Va(p,y,k,x)}e("defineMetadata",P);function G(p,y,k){if(!te(y))throw new TypeError;return V(k)||(k=De(k)),Na(p,y,k)}e("hasMetadata",G);function Me(p,y,k){if(!te(y))throw new TypeError;return V(k)||(k=De(k)),nr(p,y,k)}e("hasOwnMetadata",Me);function Be(p,y,k){if(!te(y))throw new TypeError;return V(k)||(k=De(k)),Pa(p,y,k)}e("getMetadata",Be);function et(p,y,k){if(!te(y))throw new TypeError;return V(k)||(k=De(k)),za(p,y,k)}e("getOwnMetadata",et);function $t(p,y){if(!te(p))throw new TypeError;return V(y)||(y=De(y)),Ta(p,y)}e("getMetadataKeys",$t);function _n(p,y){if(!te(p))throw new TypeError;return V(y)||(y=De(y)),Fa(p,y)}e("getOwnMetadataKeys",_n);function Op(p,y,k){if(!te(y))throw new TypeError;if(V(k)||(k=De(k)),!te(y))throw new TypeError;V(k)||(k=De(k));var x=Gt(y,k,!1);return V(x)?!1:x.OrdinaryDeleteMetadata(p,y,k)}e("deleteMetadata",Op);function Dp(p,y){for(var k=p.length-1;k>=0;--k){var x=p[k],z=x(y);if(!V(z)&&!It(z)){if(!Ha(z))throw new TypeError;y=z}}return y}function Lp(p,y,k,x){for(var z=p.length-1;z>=0;--z){var se=p[z],ne=se(y,k,x);if(!V(ne)&&!It(ne)){if(!te(ne))throw new TypeError;x=ne}}return x}function Na(p,y,k){var x=nr(p,y,k);if(x)return!0;var z=rr(y);return It(z)?!1:Na(p,z,k)}function nr(p,y,k){var x=Gt(y,k,!1);return V(x)?!1:Da(x.OrdinaryHasOwnMetadata(p,y,k))}function Pa(p,y,k){var x=nr(p,y,k);if(x)return za(p,y,k);var z=rr(y);if(!It(z))return Pa(p,z,k)}function za(p,y,k){var x=Gt(y,k,!1);if(!V(x))return x.OrdinaryGetOwnMetadata(p,y,k)}function Va(p,y,k,x){var z=Gt(k,x,!0);z.OrdinaryDefineOwnMetadata(p,y,k,x)}function Ta(p,y){var k=Fa(p,y),x=rr(p);if(x===null)return k;var z=Ta(x,y);if(z.length<=0)return k;if(k.length<=0)return z;for(var se=new g,ne=[],H=0,B=k;H<B.length;H++){var R=B[H],v=se.has(R);v||(se.add(R),ne.push(R))}for(var A=0,q=z;A<q.length;A++){var R=q[A],v=se.has(R);v||(se.add(R),ne.push(R))}return ne}function Fa(p,y){var k=Gt(p,y,!1);return k?k.OrdinaryOwnMetadataKeys(p,y):[]}function Oa(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 V(p){return p===void 0}function It(p){return p===null}function Hp(p){return typeof p=="symbol"}function te(p){return typeof p=="object"?p!==null:typeof p=="function"}function qp(p,y){switch(Oa(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=qa(p,o);if(x!==void 0){var z=x.call(p,k);if(te(z))throw new TypeError;return z}return Up(p)}function Up(p,y){var k,x;{var z=p.toString;if(jn(z)){var x=z.call(p);if(!te(x))return x}var k=p.valueOf;if(jn(k)){var x=k.call(p);if(!te(x))return x}}throw new TypeError}function Da(p){return!!p}function _p(p){return""+p}function De(p){var y=qp(p);return Hp(y)?y:_p(y)}function La(p){return Array.isArray?Array.isArray(p):p instanceof Object?p instanceof Array:Object.prototype.toString.call(p)==="[object Array]"}function jn(p){return typeof p=="function"}function Ha(p){return typeof p=="function"}function jp(p){switch(Oa(p)){case 3:return!0;case 4:return!0;default:return!1}}function ir(p,y){return p===y||p!==p&&y!==y}function qa(p,y){var k=p[y];if(k!=null){if(!jn(k))throw new TypeError;return k}}function Ua(p){var y=qa(p,a);if(!jn(y))throw new TypeError;var k=y.call(p);if(!te(k))throw new TypeError;return k}function _a(p){return p.value}function ja(p){var y=p.next();return y.done?!1:y}function Wa(p){var y=p.return;y&&y.call(p)}function rr(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 z=x.constructor;return typeof z!="function"||z===p?y:z}function Wp(){var p;!V(S)&&typeof n.Reflect<"u"&&!(S in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(p=Xp(n.Reflect));var y,k,x,z=new C,se={registerProvider:ne,getProvider:B,setProvider:v};return se;function ne(A){if(!Object.isExtensible(se))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case p===A:break;case V(y):y=A;break;case y===A:break;case V(k):k=A;break;case k===A:break;default:x===void 0&&(x=new g),x.add(A);break}}function H(A,q){if(!V(y)){if(y.isProviderFor(A,q))return y;if(!V(k)){if(k.isProviderFor(A,q))return y;if(!V(x))for(var X=Ua(x);;){var Q=ja(X);if(!Q)return;var Ae=_a(Q);if(Ae.isProviderFor(A,q))return Wa(X),Ae}}}if(!V(p)&&p.isProviderFor(A,q))return p}function B(A,q){var X=z.get(A),Q;return V(X)||(Q=X.get(q)),V(Q)&&(Q=H(A,q),V(Q)||(V(X)&&(X=new m,z.set(A,X)),X.set(q,Q))),Q}function R(A){if(V(A))throw new TypeError;return y===A||k===A||!V(x)&&x.has(A)}function v(A,q,X){if(!R(X))throw new Error("Metadata provider not registered.");var Q=B(A,q);if(Q!==X){if(!V(Q))return!1;var Ae=z.get(A);V(Ae)&&(Ae=new m,z.set(A,Ae)),Ae.set(q,X)}return!0}}function Gp(){var p;return!V(S)&&te(n.Reflect)&&Object.isExtensible(n.Reflect)&&(p=n.Reflect[S]),V(p)&&(p=Wp()),!V(S)&&te(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,S,{enumerable:!1,configurable:!1,writable:!1,value:p}),p}function Zp(p){var y=new C,k={isProviderFor:function(R,v){var A=y.get(R);return V(A)?!1:A.has(v)},OrdinaryDefineOwnMetadata:ne,OrdinaryHasOwnMetadata:z,OrdinaryGetOwnMetadata:se,OrdinaryOwnMetadataKeys:H,OrdinaryDeleteMetadata:B};return w.registerProvider(k),k;function x(R,v,A){var q=y.get(R),X=!1;if(V(q)){if(!A)return;q=new m,y.set(R,q),X=!0}var Q=q.get(v);if(V(Q)){if(!A)return;if(Q=new m,q.set(v,Q),!p.setProvider(R,v,k))throw q.delete(v),X&&y.delete(R),new Error("Wrong provider for target.")}return Q}function z(R,v,A){var q=x(v,A,!1);return V(q)?!1:Da(q.has(R))}function se(R,v,A){var q=x(v,A,!1);if(!V(q))return q.get(R)}function ne(R,v,A,q){var X=x(A,q,!0);X.set(R,v)}function H(R,v){var A=[],q=x(R,v,!1);if(V(q))return A;for(var X=q.keys(),Q=Ua(X),Ae=0;;){var Ga=ja(Q);if(!Ga)return A.length=Ae,A;var Kp=_a(Ga);try{A[Ae]=Kp}catch(eg){try{Wa(Q)}finally{throw eg}}Ae++}}function B(R,v,A){var q=x(v,A,!1);if(V(q)||!q.delete(R))return!1;if(q.size===0){var X=y.get(v);V(X)||(X.delete(A),X.size===0&&y.delete(X))}return!0}}function Xp(p){var y=p.defineMetadata,k=p.hasOwnMetadata,x=p.getOwnMetadata,z=p.getOwnMetadataKeys,se=p.deleteMetadata,ne=new C,H={isProviderFor:function(B,R){var v=ne.get(B);return!V(v)&&v.has(R)?!0:z(B,R).length?(V(v)&&(v=new g,ne.set(B,v)),v.add(R),!0):!1},OrdinaryDefineOwnMetadata:y,OrdinaryHasOwnMetadata:k,OrdinaryGetOwnMetadata:x,OrdinaryOwnMetadataKeys:z,OrdinaryDeleteMetadata:se};return H}function Gt(p,y,k){var x=w.getProvider(p,y);if(!V(x))return x;if(k){if(w.setProvider(p,y,$))return $;throw new Error("Illegal state.")}}function Yp(){var p={},y=[],k=function(){function H(B,R,v){this._index=0,this._keys=B,this._values=R,this._selector=v}return H.prototype["@@iterator"]=function(){return this},H.prototype[a]=function(){return this},H.prototype.next=function(){var B=this._index;if(B>=0&&B<this._keys.length){var R=this._selector(this._keys[B],this._values[B]);return B+1>=this._keys.length?(this._index=-1,this._keys=y,this._values=y):this._index++,{value:R,done:!1}}return{value:void 0,done:!0}},H.prototype.throw=function(B){throw this._index>=0&&(this._index=-1,this._keys=y,this._values=y),B},H.prototype.return=function(B){return this._index>=0&&(this._index=-1,this._keys=y,this._values=y),{value:B,done:!0}},H}(),x=function(){function H(){this._keys=[],this._values=[],this._cacheKey=p,this._cacheIndex=-2}return Object.defineProperty(H.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),H.prototype.has=function(B){return this._find(B,!1)>=0},H.prototype.get=function(B){var R=this._find(B,!1);return R>=0?this._values[R]:void 0},H.prototype.set=function(B,R){var v=this._find(B,!0);return this._values[v]=R,this},H.prototype.delete=function(B){var R=this._find(B,!1);if(R>=0){for(var v=this._keys.length,A=R+1;A<v;A++)this._keys[A-1]=this._keys[A],this._values[A-1]=this._values[A];return this._keys.length--,this._values.length--,ir(B,this._cacheKey)&&(this._cacheKey=p,this._cacheIndex=-2),!0}return!1},H.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=p,this._cacheIndex=-2},H.prototype.keys=function(){return new k(this._keys,this._values,z)},H.prototype.values=function(){return new k(this._keys,this._values,se)},H.prototype.entries=function(){return new k(this._keys,this._values,ne)},H.prototype["@@iterator"]=function(){return this.entries()},H.prototype[a]=function(){return this.entries()},H.prototype._find=function(B,R){if(!ir(this._cacheKey,B)){this._cacheIndex=-1;for(var v=0;v<this._keys.length;v++)if(ir(this._keys[v],B)){this._cacheIndex=v;break}}return this._cacheIndex<0&&R&&(this._cacheIndex=this._keys.length,this._keys.push(B),this._values.push(void 0)),this._cacheIndex},H}();return x;function z(H,B){return H}function se(H,B){return B}function ne(H,B){return[H,B]}}function Jp(){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 Qp(){var p=16,y=h.create(),k=x();return function(){function B(){this._key=x()}return B.prototype.has=function(R){var v=z(R,!1);return v!==void 0?h.has(v,this._key):!1},B.prototype.get=function(R){var v=z(R,!1);return v!==void 0?h.get(v,this._key):void 0},B.prototype.set=function(R,v){var A=z(R,!0);return A[this._key]=v,this},B.prototype.delete=function(R){var v=z(R,!1);return v!==void 0?delete v[this._key]:!1},B.prototype.clear=function(){this._key=x()},B}();function x(){var B;do B="@@WeakMap@@"+H();while(h.has(y,B));return y[B]=!0,B}function z(B,R){if(!r.call(B,k)){if(!R)return;Object.defineProperty(B,k,{value:h.create()})}return B[k]}function se(B,R){for(var v=0;v<R;++v)B[v]=Math.random()*255|0;return B}function ne(B){if(typeof Uint8Array=="function"){var R=new Uint8Array(B);return typeof crypto<"u"?crypto.getRandomValues(R):typeof msCrypto<"u"?msCrypto.getRandomValues(R):se(R,B),R}return se(new Array(B),B)}function H(){var B=ne(p);B[6]=B[6]&79|64,B[8]=B[8]&191|128;for(var R="",v=0;v<p;++v){var A=B[v];(v===4||v===6||v===8)&&(R+="-"),A<16&&(R+="0"),R+=A.toString(16).toLowerCase()}return R}}function sr(p){return p.__=void 0,delete p.__,p}})})(yr||(yr={}));let tn;const dl=new Uint8Array(16);function ul(){if(!tn&&(tn=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!tn))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return tn(dl)}const ae=[];for(let t=0;t<256;++t)ae.push((t+256).toString(16).slice(1));function hl(t,e=0){return ae[t[e+0]]+ae[t[e+1]]+ae[t[e+2]]+ae[t[e+3]]+"-"+ae[t[e+4]]+ae[t[e+5]]+"-"+ae[t[e+6]]+ae[t[e+7]]+"-"+ae[t[e+8]]+ae[t[e+9]]+"-"+ae[t[e+10]]+ae[t[e+11]]+ae[t[e+12]]+ae[t[e+13]]+ae[t[e+14]]+ae[t[e+15]]}const wr={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Ge(t,e,n){if(wr.randomUUID&&!t)return wr.randomUUID();t=t||{};const r=t.random||(t.rng||ul)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,hl(r)}class le{static UUID(){return Ge()}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 _{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():_.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=_.Translit(r),a=_.Translit(s);return r.includes(s)||o.includes(s)||r.includes(a)}static SearchIn(e,n){return _.StringsEquals(e,n)}static FormatToPercentage(e){return`${e}%`}static WrapSubStr(e,n){const r=new RegExp(_.GetVariants(n).join("|"),"gi");return e.replace(r,`<span class="search-text">${n}</span>`)}static GetVariants(e){const n=_.Translit(e);return[e,_.Capitalize(e),e.toLowerCase(),e.toUpperCase(),n,_.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 Je=class Je{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)){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){Je.RemoveFromClass(e,n,r)}static RemoveFromClassById(e,n,r){if(!e)return;const s=n.findIndex(o=>o.id===e);Je.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 Je.BuildClass(r),r.id=le.UUID(),r}static ExistsWithId(e,n){return e.some(r=>r.id===n)}static DeepMap(e){return n=>Array.isArray(n)?n.map(Je.DeepMap(e)):Object(n)===n?Object.fromEntries(Object.entries(n).map(([r,s])=>[r,Je.DeepMap(e)(s)])):e(n)}static DeepTrim(e){return this.DeepMap(_.TrimText)(e)}};l(Je,"GetClassConstructor",e=>(n,r)=>{const s=Reflect.getMetadata(`property:${r}`,n)||{};s[r]=e,Reflect.defineMetadata(r,s,n)});let I=Je;class nt{constructor(e){l(this,"id");l(this,"address");l(this,"description");l(this,"contactId");I.BuildClass(this,e)}static Create(){const e=new nt;return e.id=le.UUID(),e}}class Qn{static Setup(e){this.staticUrl=e}static get StaticUrl(){return this.staticUrl}}l(Qn,"staticUrl","");class pe{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);I.BuildClass(this,e)}getFileUrl(){const e=this.url?this.url:`${Qn.StaticUrl}/${this.fileSystemPath}`;return new URL(e,typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:$e&&$e.tagName.toUpperCase()==="SCRIPT"&&$e.src||new URL("sprof.umd.cjs",document.baseURI).href)}getFileListObject(){return{name:this.originalName,url:this.url}}static CreatePreviewFile(e,n){const r=new pe;return r.id=n??le.UUID(),r.originalName=e.name,r.file=e.blob,r.fileSystemPath=le.UUID(),r}setFile(e){this.id||(this.id=M.H.Id.UUID()),this.originalName=e.name,this.file=e.blob,this.fileSystemPath=M.H.Id.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:$e&&$e.tagName.toUpperCase()==="SCRIPT"&&$e.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 br{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);I.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=_.Capitalize(this.name),this.surname=_.Capitalize(this.surname),this.patronymic=_.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 it{constructor(e){l(this,"id");l(this,"number");l(this,"description");l(this,"contactId");I.BuildClass(this,e)}static Create(){const e=new it;return e.id=le.UUID(),e}}class nn{constructor(e){l(this,"id");l(this,"address");l(this,"description");I.BuildClass(this,e)}}class Kn{constructor(e){l(this,"id");l(this,"address");l(this,"description");I.BuildClass(this,e)}}let fl=(Qe=class{},l(Qe,"Phone",it),l(Qe,"FileInfo",pe),l(Qe,"PostAddress",nn),l(Qe,"Website",Kn),l(Qe,"Email",nt),l(Qe,"Human",br),Qe);class He{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 ie=(t=>(t.Date="date",t.String="string",t.Boolean="boolean",t.Number="number",t.Set="set",t.Join="join",t))(ie||{}),ue=(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))(ue||{}),ml=Object.defineProperty,pl=(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&&ml(e,n,s),s};const Cr=class Zt{constructor(e){l(this,"id");l(this,"model","");l(this,"label","");l(this,"col","");l(this,"operator",ue.Eq);l(this,"date1");l(this,"date2");l(this,"value1","");l(this,"boolean",!1);l(this,"number",0);l(this,"type",ie.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","");I.BuildClass(this,e)}eq(e){if(!e)return!1;if(this.type===ie.Join){const n=e.model===this.model&&e.operator===this.operator&&this.joinTableModel===e.joinTableModel;return e.operator===ue.In?n&&He.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===ie.Boolean?this.boolean===(e==null?void 0:e.boolean):this.type===ie.String?this.value1===(e==null?void 0:e.value1):this.type===ie.Join&&this.set.length?He.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===ie.Boolean?`"boolean":${this.boolean}`:"",d=this.type===ie.Date&&this.date1?`"date1":"${this.date1.toISOString()}"`:"",c=this.type===ie.Date&&this.date2?`"date2":"${this.date2.toISOString()}"`:"",u=this.type===ie.Number?`"number":${this.number}`:"",h=this.type===ie.Set||this.operator===ue.In?`"set":${JSON.stringify(this.set)}`:"",f=this.type===ie.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===ue.Eq||this.operator===ue.Gt||this.operator===ue.Lt}isBetweenFilter(){return this.operator===ue.Btw}isSetFilter(){return this.operator===ue.In}static Create(e,n,r){const s=new Zt;return s.model=e.GetClassName(),s.col=n??"",s.type=r,s.type===ie.Number&&(s.value1="0"),s.type===ie.String&&(s.value1=""),s.type===ie.Boolean&&(s.value1="false",s.operator=ue.Eq),s}static CreateFilterModelWithJoin(e,n,r,s,o,a,d,c){const u=new Zt;return u.id=Ge(),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 Zt;return c.model=e,c.joinTableModel=r,c.joinTablePk=s,c.joinTableFk=o,c.col=n,c.type=ie.Join,a&&(c.joinTableId=a),d&&(c.joinTableIdCol=d),c}static OnlyIfSecondModelExists(e,n){const r=new Zt;return r.id=Ge(),r.model=_.ToCamelCase(e.GetClassName()),r.joinTableModel=_.ToCamelCase(n.GetClassName()),r.type=ie.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=ue.Eq;return}this.setDate2(n),this.operator=ue.Btw}};pl([I.GetClassConstructor(String)],Cr.prototype,"set");let ei=Cr;class gl{constructor(){l(this,"operation",ue.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 rn{constructor(e){l(this,"offset",0);l(this,"limit",25);l(this,"cursor",new gl);l(this,"cursorMode",!1);l(this,"append",!1);l(this,"allLoaded",!1);l(this,"version","");I.BuildClass(this,e)}setLoadMore(e,n,r){this.cursor.value=e,this.cursor.initial=!1,this.cursor.operation=ue.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=ue.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,I.BuildClass(this)}}var ke=(t=>(t.Asc="asc",t.Desc="desc",t))(ke||{});class sn{constructor(e){l(this,"model","");l(this,"col","");l(this,"order");l(this,"label","");l(this,"default",!1);l(this,"selected",!1);I.BuildClass(this,e)}static Create(e,n,r=ke.Asc,s,o){const a=new sn;return a.model=e.GetClassName(),a.col=n??"",a.order=r??ke.Asc,a.label=s??"",a.default=o??!1,a}isAsc(){return this.order===ke.Asc}isDesc(){return this.order===ke.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=ke.Asc}desc(){this.order=ke.Desc}}class on{constructor(){l(this,"model","");l(this,"cols",[]);l(this,"models",[])}static Create(e,n){const r=new on;return r.model=e.GetClassName(),r.cols=n,r}}var yl=Object.defineProperty,an=(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&&yl(e,n,s),s};const At=(Ce=class{constructor(e){l(this,"id");l(this,"f",[]);l(this,"s",[]);l(this,"p",new rn);l(this,"t",new on);I.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.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 He.GetLast(this.s)}setSortModel(e){e&&(this.s[0]=e)}setS(e){this.s[0]=e}setF(e){this.f.push(e)}replaceF(e,n){this.removeF(n),e&&this.setF(e)}removeF(e){const n=this.f.findIndex(r=>r.eq(e));I.RemoveFromClassByIndex(n,this.f)}reset(){this.f=[],this.s=[],this.p=new rn}resetF(){this.f=[]}},l(Ce,"instance"),Ce);an([I.GetClassConstructor(ei)],At.prototype,"f"),an([I.GetClassConstructor(sn)],At.prototype,"s"),an([I.GetClassConstructor(rn)],At.prototype,"p"),an([I.GetClassConstructor(on)],At.prototype,"t");let Nt=At,wl=(Wt=class{},l(Wt,"SortModel",sn),l(Wt,"FilterModel",ei),l(Wt,"FTSP",i.reactive(Nt)),Wt);function Sr(t,e){return function(){return t.apply(e,arguments)}}const{toString:bl}=Object.prototype,{getPrototypeOf:ti}=Object,ln=(t=>e=>{const n=bl.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Re=t=>(t=t.toLowerCase(),e=>ln(e)===t),cn=t=>e=>typeof e===t,{isArray:mt}=Array,Pt=cn("undefined");function Cl(t){return t!==null&&!Pt(t)&&t.constructor!==null&&!Pt(t.constructor)&&be(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const kr=Re("ArrayBuffer");function Sl(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&kr(t.buffer),e}const kl=cn("string"),be=cn("function"),Er=cn("number"),dn=t=>t!==null&&typeof t=="object",El=t=>t===!0||t===!1,un=t=>{if(ln(t)!=="object")return!1;const e=ti(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},xl=Re("Date"),Ml=Re("File"),Bl=Re("Blob"),$l=Re("FileList"),Il=t=>dn(t)&&be(t.pipe),Rl=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||be(t.append)&&((e=ln(t))==="formdata"||e==="object"&&be(t.toString)&&t.toString()==="[object FormData]"))},vl=Re("URLSearchParams"),[Al,Nl,Pl,zl]=["ReadableStream","Request","Response","Headers"].map(Re),Vl=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function zt(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,s;if(typeof t!="object"&&(t=[t]),mt(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 xr(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 rt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Mr=t=>!Pt(t)&&t!==rt;function ni(){const{caseless:t}=Mr(this)&&this||{},e={},n=(r,s)=>{const o=t&&xr(e,s)||s;un(e[o])&&un(r)?e[o]=ni(e[o],r):un(r)?e[o]=ni({},r):mt(r)?e[o]=r.slice():e[o]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&zt(arguments[r],n);return e}const Tl=(t,e,n,{allOwnKeys:r}={})=>(zt(e,(s,o)=>{n&&be(s)?t[o]=Sr(s,n):t[o]=s},{allOwnKeys:r}),t),Fl=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Ol=(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)},Dl=(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&&ti(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},Ll=(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},Hl=t=>{if(!t)return null;if(mt(t))return t;let e=t.length;if(!Er(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},ql=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&ti(Uint8Array)),Ul=(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])}},_l=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},jl=Re("HTMLFormElement"),Wl=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Br=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Gl=Re("RegExp"),$r=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};zt(n,(s,o)=>{let a;(a=e(s,o,t))!==!1&&(r[o]=a||s)}),Object.defineProperties(t,r)},Zl=t=>{$r(t,(e,n)=>{if(be(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(be(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+"'")})}})},Xl=(t,e)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return mt(t)?r(t):r(String(t).split(e)),n},Yl=()=>{},Jl=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,ii="abcdefghijklmnopqrstuvwxyz",Ir="0123456789",Rr={DIGIT:Ir,ALPHA:ii,ALPHA_DIGIT:ii+ii.toUpperCase()+Ir},Ql=(t=16,e=Rr.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function Kl(t){return!!(t&&be(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const ec=t=>{const e=new Array(10),n=(r,s)=>{if(dn(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[s]=r;const o=mt(r)?[]:{};return zt(r,(a,d)=>{const c=n(a,s+1);!Pt(c)&&(o[d]=c)}),e[s]=void 0,o}}return r};return n(t,0)},tc=Re("AsyncFunction"),nc=t=>t&&(dn(t)||be(t))&&be(t.then)&&be(t.catch),vr=((t,e)=>t?setImmediate:e?((n,r)=>(rt.addEventListener("message",({source:s,data:o})=>{s===rt&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),rt.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",be(rt.postMessage)),ic=typeof queueMicrotask<"u"?queueMicrotask.bind(rt):typeof process<"u"&&process.nextTick||vr,b={isArray:mt,isArrayBuffer:kr,isBuffer:Cl,isFormData:Rl,isArrayBufferView:Sl,isString:kl,isNumber:Er,isBoolean:El,isObject:dn,isPlainObject:un,isReadableStream:Al,isRequest:Nl,isResponse:Pl,isHeaders:zl,isUndefined:Pt,isDate:xl,isFile:Ml,isBlob:Bl,isRegExp:Gl,isFunction:be,isStream:Il,isURLSearchParams:vl,isTypedArray:ql,isFileList:$l,forEach:zt,merge:ni,extend:Tl,trim:Vl,stripBOM:Fl,inherits:Ol,toFlatObject:Dl,kindOf:ln,kindOfTest:Re,endsWith:Ll,toArray:Hl,forEachEntry:Ul,matchAll:_l,isHTMLForm:jl,hasOwnProperty:Br,hasOwnProp:Br,reduceDescriptors:$r,freezeMethods:Zl,toObjectSet:Xl,toCamelCase:Wl,noop:Yl,toFiniteNumber:Jl,findKey:xr,global:rt,isContextDefined:Mr,ALPHABET:Rr,generateString:Ql,isSpecCompliantForm:Kl,toJSONObject:ec,isAsyncFn:tc,isThenable:nc,setImmediate:vr,asap:ic};function T(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)}b.inherits(T,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:b.toJSONObject(this.config),code:this.code,status:this.status}}});const Ar=T.prototype,Nr={};["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=>{Nr[t]={value:t}}),Object.defineProperties(T,Nr),Object.defineProperty(Ar,"isAxiosError",{value:!0}),T.from=(t,e,n,r,s,o)=>{const a=Object.create(Ar);return b.toFlatObject(t,a,function(c){return c!==Error.prototype},d=>d!=="isAxiosError"),T.call(a,t.message,e,n,r,s),a.cause=t,a.name=t.name,o&&Object.assign(a,o),a};const rc=null;function ri(t){return b.isPlainObject(t)||b.isArray(t)}function Pr(t){return b.endsWith(t,"[]")?t.slice(0,-2):t}function zr(t,e,n){return t?t.concat(e).map(function(s,o){return s=Pr(s),!n&&o?"["+s+"]":s}).join(n?".":""):e}function sc(t){return b.isArray(t)&&!t.some(ri)}const oc=b.toFlatObject(b,{},null,function(e){return/^is[A-Z]/.test(e)});function hn(t,e,n){if(!b.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=b.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,w){return!b.isUndefined(w[S])});const r=n.metaTokens,s=n.visitor||h,o=n.dots,a=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&b.isSpecCompliantForm(e);if(!b.isFunction(s))throw new TypeError("visitor must be a function");function u(C){if(C===null)return"";if(b.isDate(C))return C.toISOString();if(!c&&b.isBlob(C))throw new T("Blob is not supported. Use a Buffer instead.");return b.isArrayBuffer(C)||b.isTypedArray(C)?c&&typeof Blob=="function"?new Blob([C]):Buffer.from(C):C}function h(C,S,w){let $=C;if(C&&!w&&typeof C=="object"){if(b.endsWith(S,"{}"))S=r?S:S.slice(0,-2),C=JSON.stringify(C);else if(b.isArray(C)&&sc(C)||(b.isFileList(C)||b.endsWith(S,"[]"))&&($=b.toArray(C)))return S=Pr(S),$.forEach(function(O,P){!(b.isUndefined(O)||O===null)&&e.append(a===!0?zr([S],P,o):a===null?S:S+"[]",u(O))}),!1}return ri(C)?!0:(e.append(zr(w,S,o),u(C)),!1)}const f=[],m=Object.assign(oc,{defaultVisitor:h,convertValue:u,isVisitable:ri});function g(C,S){if(!b.isUndefined(C)){if(f.indexOf(C)!==-1)throw Error("Circular reference detected in "+S.join("."));f.push(C),b.forEach(C,function($,F){(!(b.isUndefined($)||$===null)&&s.call(e,$,b.isString(F)?F.trim():F,S,m))===!0&&g($,S?S.concat(F):[F])}),f.pop()}}if(!b.isObject(t))throw new TypeError("data must be an object");return g(t),e}function Vr(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function si(t,e){this._pairs=[],t&&hn(t,this,e)}const Tr=si.prototype;Tr.append=function(e,n){this._pairs.push([e,n])},Tr.toString=function(e){const n=e?function(r){return e.call(this,r,Vr)}:Vr;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function ac(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Fr(t,e,n){if(!e)return t;const r=n&&n.encode||ac;b.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let o;if(s?o=s(e,n):o=b.isURLSearchParams(e)?e.toString():new si(e,n).toString(r),o){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class Or{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){b.forEach(this.handlers,function(r){r!==null&&e(r)})}}const Dr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},lc={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:si,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},oi=typeof window<"u"&&typeof document<"u",ai=typeof navigator=="object"&&navigator||void 0,cc=oi&&(!ai||["ReactNative","NativeScript","NS"].indexOf(ai.product)<0),dc=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",uc=oi&&window.location.href||"http://localhost",he={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:oi,hasStandardBrowserEnv:cc,hasStandardBrowserWebWorkerEnv:dc,navigator:ai,origin:uc},Symbol.toStringTag,{value:"Module"})),...lc};function hc(t,e){return hn(t,new he.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return he.isNode&&b.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function fc(t){return b.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function mc(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 Lr(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&&b.isArray(s)?s.length:a,c?(b.hasOwnProp(s,a)?s[a]=[s[a],r]:s[a]=r,!d):((!s[a]||!b.isObject(s[a]))&&(s[a]=[]),e(n,r,s[a],o)&&b.isArray(s[a])&&(s[a]=mc(s[a])),!d)}if(b.isFormData(t)&&b.isFunction(t.entries)){const n={};return b.forEachEntry(t,(r,s)=>{e(fc(r),s,n,0)}),n}return null}function pc(t,e,n){if(b.isString(t))try{return(e||JSON.parse)(t),b.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(t)}const Vt={transitional:Dr,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=b.isObject(e);if(o&&b.isHTMLForm(e)&&(e=new FormData(e)),b.isFormData(e))return s?JSON.stringify(Lr(e)):e;if(b.isArrayBuffer(e)||b.isBuffer(e)||b.isStream(e)||b.isFile(e)||b.isBlob(e)||b.isReadableStream(e))return e;if(b.isArrayBufferView(e))return e.buffer;if(b.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 hc(e,this.formSerializer).toString();if((d=b.isFileList(e))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return hn(d?{"files[]":e}:e,c&&new c,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),pc(e)):e}],transformResponse:[function(e){const n=this.transitional||Vt.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(b.isResponse(e)||b.isReadableStream(e))return e;if(e&&b.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"?T.from(d,T.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:he.classes.FormData,Blob:he.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};b.forEach(["delete","get","head","post","put","patch"],t=>{Vt.headers[t]={}});const gc=b.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"]),yc=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]&&gc[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},Hr=Symbol("internals");function Tt(t){return t&&String(t).trim().toLowerCase()}function fn(t){return t===!1||t==null?t:b.isArray(t)?t.map(fn):String(t)}function wc(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 li(t,e,n,r,s){if(b.isFunction(r))return r.call(this,e,n);if(s&&(e=n),!!b.isString(e)){if(b.isString(r))return e.indexOf(r)!==-1;if(b.isRegExp(r))return r.test(e)}}function Cc(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function Sc(t,e){const n=b.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 ye{constructor(e){e&&this.set(e)}set(e,n,r){const s=this;function o(d,c,u){const h=Tt(c);if(!h)throw new Error("header name must be a non-empty string");const f=b.findKey(s,h);(!f||s[f]===void 0||u===!0||u===void 0&&s[f]!==!1)&&(s[f||c]=fn(d))}const a=(d,c)=>b.forEach(d,(u,h)=>o(u,h,c));if(b.isPlainObject(e)||e instanceof this.constructor)a(e,n);else if(b.isString(e)&&(e=e.trim())&&!bc(e))a(yc(e),n);else if(b.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=Tt(e),e){const r=b.findKey(this,e);if(r){const s=this[r];if(!n)return s;if(n===!0)return wc(s);if(b.isFunction(n))return n.call(this,s,r);if(b.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=Tt(e),e){const r=b.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||li(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let s=!1;function o(a){if(a=Tt(a),a){const d=b.findKey(r,a);d&&(!n||li(r,r[d],d,n))&&(delete r[d],s=!0)}}return b.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||li(this,this[o],o,e,!0))&&(delete this[o],s=!0)}return s}normalize(e){const n=this,r={};return b.forEach(this,(s,o)=>{const a=b.findKey(r,o);if(a){n[a]=fn(s),delete n[o];return}const d=e?Cc(o):String(o).trim();d!==o&&delete n[o],n[d]=fn(s),r[d]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return b.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=e&&b.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[Hr]=this[Hr]={accessors:{}}).accessors,s=this.prototype;function o(a){const d=Tt(a);r[d]||(Sc(s,a),r[d]=!0)}return b.isArray(e)?e.forEach(o):o(e),this}}ye.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),b.reduceDescriptors(ye.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}}),b.freezeMethods(ye);function ci(t,e){const n=this||Vt,r=e||n,s=ye.from(r.headers);let o=r.data;return b.forEach(t,function(d){o=d.call(n,o,s.normalize(),e?e.status:void 0)}),s.normalize(),o}function qr(t){return!!(t&&t.__CANCEL__)}function pt(t,e,n){T.call(this,t??"canceled",T.ERR_CANCELED,e,n),this.name="CanceledError"}b.inherits(pt,T,{__CANCEL__:!0});function Ur(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new T("Request failed with status code "+n.status,[T.ERR_BAD_REQUEST,T.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function kc(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Ec(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 xc(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 mn=(t,e,n=3)=>{let r=0;const s=Ec(50,250);return xc(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)},_r=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},jr=t=>(...e)=>b.asap(()=>t(...e)),Mc=he.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,he.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(he.origin),he.navigator&&/(msie|trident)/i.test(he.navigator.userAgent)):()=>!0,Bc=he.hasStandardBrowserEnv?{write(t,e,n,r,s,o){const a=[t+"="+encodeURIComponent(e)];b.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),b.isString(r)&&a.push("path="+r),b.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 $c(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Ic(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Wr(t,e){return t&&!$c(e)?Ic(t,e):e}const Gr=t=>t instanceof ye?{...t}:t;function st(t,e){e=e||{};const n={};function r(u,h,f,m){return b.isPlainObject(u)&&b.isPlainObject(h)?b.merge.call({caseless:m},u,h):b.isPlainObject(h)?b.merge({},h):b.isArray(h)?h.slice():h}function s(u,h,f,m){if(b.isUndefined(h)){if(!b.isUndefined(u))return r(void 0,u,f,m)}else return r(u,h,f,m)}function o(u,h){if(!b.isUndefined(h))return r(void 0,h)}function a(u,h){if(b.isUndefined(h)){if(!b.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(Gr(u),Gr(h),f,!0)};return b.forEach(Object.keys(Object.assign({},t,e)),function(h){const f=c[h]||s,m=f(t[h],e[h],h);b.isUndefined(m)&&f!==d||(n[h]=m)}),n}const Zr=t=>{const e=st({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:o,headers:a,auth:d}=e;e.headers=a=ye.from(a),e.url=Fr(Wr(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(b.isFormData(n)){if(he.hasStandardBrowserEnv||he.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(he.hasStandardBrowserEnv&&(r&&b.isFunction(r)&&(r=r(e)),r||r!==!1&&Mc(e.url))){const u=s&&o&&Bc.read(o);u&&a.set(s,u)}return e},Rc=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,r){const s=Zr(t);let o=s.data;const a=ye.from(s.headers).normalize();let{responseType:d,onUploadProgress:c,onDownloadProgress:u}=s,h,f,m,g,C;function S(){g&&g(),C&&C(),s.cancelToken&&s.cancelToken.unsubscribe(h),s.signal&&s.signal.removeEventListener("abort",h)}let w=new XMLHttpRequest;w.open(s.method.toUpperCase(),s.url,!0),w.timeout=s.timeout;function $(){if(!w)return;const O=ye.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),G={data:!d||d==="text"||d==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:O,config:t,request:w};Ur(function(Be){n(Be),S()},function(Be){r(Be),S()},G),w=null}"onloadend"in w?w.onloadend=$:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout($)},w.onabort=function(){w&&(r(new T("Request aborted",T.ECONNABORTED,t,w)),w=null)},w.onerror=function(){r(new T("Network Error",T.ERR_NETWORK,t,w)),w=null},w.ontimeout=function(){let P=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const G=s.transitional||Dr;s.timeoutErrorMessage&&(P=s.timeoutErrorMessage),r(new T(P,G.clarifyTimeoutError?T.ETIMEDOUT:T.ECONNABORTED,t,w)),w=null},o===void 0&&a.setContentType(null),"setRequestHeader"in w&&b.forEach(a.toJSON(),function(P,G){w.setRequestHeader(G,P)}),b.isUndefined(s.withCredentials)||(w.withCredentials=!!s.withCredentials),d&&d!=="json"&&(w.responseType=s.responseType),u&&([m,C]=mn(u,!0),w.addEventListener("progress",m)),c&&w.upload&&([f,g]=mn(c),w.upload.addEventListener("progress",f),w.upload.addEventListener("loadend",g)),(s.cancelToken||s.signal)&&(h=O=>{w&&(r(!O||O.type?new pt(null,t,w):O),w.abort(),w=null)},s.cancelToken&&s.cancelToken.subscribe(h),s.signal&&(s.signal.aborted?h():s.signal.addEventListener("abort",h)));const F=kc(s.url);if(F&&he.protocols.indexOf(F)===-1){r(new T("Unsupported protocol "+F+":",T.ERR_BAD_REQUEST,t));return}w.send(o||null)})},vc=(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 T?h:new pt(h instanceof Error?h.message:h))}};let a=e&&setTimeout(()=>{a=null,o(new T(`timeout ${e} of ms exceeded`,T.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=()=>b.asap(d),c}},Ac=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},Nc=async function*(t,e){for await(const n of Pc(t))yield*Ac(n,e)},Pc=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()}},Xr=(t,e,n,r)=>{const s=Nc(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})},pn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Yr=pn&&typeof ReadableStream=="function",zc=pn&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),Jr=(t,...e)=>{try{return!!t(...e)}catch{return!1}},Vc=Yr&&Jr(()=>{let t=!1;const e=new Request(he.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),Qr=64*1024,di=Yr&&Jr(()=>b.isReadableStream(new Response("").body)),gn={stream:di&&(t=>t.body)};pn&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!gn[e]&&(gn[e]=b.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new T(`Response type '${e}' is not supported`,T.ERR_NOT_SUPPORT,r)})})})(new Response);const Tc=async t=>{if(t==null)return 0;if(b.isBlob(t))return t.size;if(b.isSpecCompliantForm(t))return(await new Request(he.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(b.isArrayBufferView(t)||b.isArrayBuffer(t))return t.byteLength;if(b.isURLSearchParams(t)&&(t=t+""),b.isString(t))return(await zc(t)).byteLength},Fc=async(t,e)=>{const n=b.toFiniteNumber(t.getContentLength());return n??Tc(e)},ui={http:rc,xhr:Rc,fetch:pn&&(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}=Zr(t);u=u?(u+"").toLowerCase():"text";let g=vc([s,o&&o.toAbortSignal()],a),C;const S=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let w;try{if(c&&Vc&&n!=="get"&&n!=="head"&&(w=await Fc(h,r))!==0){let G=new Request(e,{method:"POST",body:r,duplex:"half"}),Me;if(b.isFormData(r)&&(Me=G.headers.get("content-type"))&&h.setContentType(Me),G.body){const[Be,et]=_r(w,mn(jr(c)));r=Xr(G.body,Qr,Be,et)}}b.isString(f)||(f=f?"include":"omit");const $="credentials"in Request.prototype;C=new Request(e,{...m,signal:g,method:n.toUpperCase(),headers:h.normalize().toJSON(),body:r,duplex:"half",credentials:$?f:void 0});let F=await fetch(C);const O=di&&(u==="stream"||u==="response");if(di&&(d||O&&S)){const G={};["status","statusText","headers"].forEach($t=>{G[$t]=F[$t]});const Me=b.toFiniteNumber(F.headers.get("content-length")),[Be,et]=d&&_r(Me,mn(jr(d),!0))||[];F=new Response(Xr(F.body,Qr,Be,()=>{et&&et(),S&&S()}),G)}u=u||"text";let P=await gn[b.findKey(gn,u)||"text"](F,t);return!O&&S&&S(),await new Promise((G,Me)=>{Ur(G,Me,{data:P,headers:ye.from(F.headers),status:F.status,statusText:F.statusText,config:t,request:C})})}catch($){throw S&&S(),$&&$.name==="TypeError"&&/fetch/i.test($.message)?Object.assign(new T("Network Error",T.ERR_NETWORK,t,C),{cause:$.cause||$}):T.from($,$&&$.code,t,C)}})};b.forEach(ui,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Kr=t=>`- ${t}`,Oc=t=>b.isFunction(t)||t===null||t===!1,es={getAdapter:t=>{t=b.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,!Oc(n)&&(r=ui[(a=String(n)).toLowerCase()],r===void 0))throw new T(`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(Kr).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.192",
5
+ "version": "0.0.194",
6
6
  "private": false,
7
7
  "type": "module",
8
8
  "main": "./dist/sprof.umd.cjs",