sprof 0.2.17 → 0.2.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as d, resolveComponent as m, openBlock as i, createElementBlock as C, Fragment as P, createVNode as l, unref as o, ref as u, createBlock as E, withCtx as k, createCommentVNode as v } from "vue";
2
- import { _ as f, P as w } from "./index-DN5Lq9Ib.js";
2
+ import { _ as f, P as w } from "./index-C9y_jQis.js";
3
3
  import "quasar";
4
4
  import "vuedraggable";
5
5
  const B = /* @__PURE__ */ d({
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -1628,7 +1628,8 @@ const gi = class gi {
1628
1628
  if (!e)
1629
1629
  return;
1630
1630
  const s = i.findIndex((o) => o.id === e);
1631
- gi.RemoveFromClass(s, i, n);
1631
+ if (!(s < 0))
1632
+ return gi.RemoveFromClass(s, i, n), e;
1632
1633
  }
1633
1634
  static RemoveFromClass(e, i, n) {
1634
1635
  if (e < 0)
@@ -1948,7 +1949,7 @@ class di {
1948
1949
  }
1949
1950
  static SwipeById(e, i, n) {
1950
1951
  const s = e.findIndex((r) => i.id === r.id), o = e.findIndex((r) => n.id === r.id);
1951
- s || o || ([e[s], e[o]] = [e[o], e[s]]);
1952
+ s < 0 || o < 0 || ([e[s], e[o]] = [e[o], e[s]]);
1952
1953
  }
1953
1954
  static Swap(e, i, n) {
1954
1955
  if (i < 0 || i >= e.length || n < 0 || n >= e.length)
@@ -6460,7 +6461,7 @@ class cr {
6460
6461
  const Em = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6461
6462
  __proto__: null,
6462
6463
  Extract: cr
6463
- }, Symbol.toStringTag, { value: "Module" })), Om = () => import("./ExtractsList-DkhnDpSu.js"), Dm = [
6464
+ }, Symbol.toStringTag, { value: "Module" })), Om = () => import("./ExtractsList-DgW_psut.js"), Dm = [
6464
6465
  {
6465
6466
  path: "/admin/extracts",
6466
6467
  name: "ExtractsList",
package/dist/sprof.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A as e, a as t, b as l, c as i, d as u, e as o, f as d, g as P, E as h, L as n, h as S, i as r, j as g, k as c, l as p, m as A, n as F, o as T, p as B, q as D, r as f, P as m, s as L, t as b, u as C, v as I, w as E, x as R, y as k, z as w, B as x, C as M, D as O, F as y, S as G, G as H, H as N, I as j, J as q, K as v, M as z, N as J, T as K, O as Q, Q as U } from "./index-DN5Lq9Ib.js";
1
+ import { A as e, a as t, b as l, c as i, d as u, e as o, f as d, g as P, E as h, L as n, h as S, i as r, j as g, k as c, l as p, m as A, n as F, o as T, p as B, q as D, r as f, P as m, s as L, t as b, u as C, v as I, w as E, x as R, y as k, z as w, B as x, C as M, D as O, F as y, S as G, G as H, H as N, I as j, J as q, K as v, M as z, N as J, T as K, O as Q, Q as U } from "./index-C9y_jQis.js";
2
2
  export {
3
3
  e as AuthButtonLogin,
4
4
  t as AuthButtonRefresh,
@@ -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 Wr;(function(n){(function(e){var i=typeof globalThis=="object"?globalThis:typeof qr=="object"?qr:typeof self=="object"?self:typeof this=="object"?this:d(),o=r(n);typeof i.Reflect<"u"&&(o=r(i.Reflect,o)),e(o,i),typeof i.Reflect>"u"&&(i.Reflect=n);function r(c,u){return function(f,h){Object.defineProperty(c,f,{configurable:!0,writable:!0,value:h}),u&&u(f,h)}}function s(){try{return Function("return this;")()}catch{}}function a(){try{return(0,eval)("(function() { return this; })()")}catch{}}function d(){return s()||a()}})(function(e,i){var o=Object.prototype.hasOwnProperty,r=typeof Symbol=="function",s=r&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",a=r&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",d=typeof Object.create=="function",c={__proto__:[]}instanceof Array,u=!d&&!c,f={create:d?function(){return hi(Object.create(null))}:c?function(){return hi({__proto__:null})}:function(){return hi({})},has:u?function(x,$){return o.call(x,$)}:function(x,$){return $ in x},get:u?function(x,$){return o.call(x,$)?x[$]:void 0}:function(x,$){return x[$]}},h=Object.getPrototypeOf(Function),m=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Un(),w=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Vr(),y=typeof WeakMap=="function"?WeakMap:Ir(),C=r?Symbol.for("@reflect-metadata:registry"):void 0,B=fo(),E=Nr(B);function N(x,$,V,z){if(W(V)){if(!Lt(x))throw new TypeError;if(!hn($))throw new TypeError;return ke(x,$)}else{if(!Lt(x))throw new TypeError;if(!ge($))throw new TypeError;if(!ge(z)&&!W(z)&&!He(z))throw new TypeError;return He(z)&&(z=void 0),V=Ze(V),fn(x,$,V,z)}}e("decorate",N);function k(x,$){function V(z,Y){if(!ge(z))throw new TypeError;if(!W(Y)&&!be(Y))throw new TypeError;mt(x,$,z,Y)}return V}e("metadata",k);function R(x,$,V,z){if(!ge(V))throw new TypeError;return W(z)||(z=Ze(z)),mt(x,$,V,z)}e("defineMetadata",R);function v(x,$,V){if(!ge($))throw new TypeError;return W(V)||(V=Ze(V)),Xe(x,$,V)}e("hasMetadata",v);function Z(x,$,V){if(!ge($))throw new TypeError;return W(V)||(V=Ze(V)),Nt(x,$,V)}e("hasOwnMetadata",Z);function K(x,$,V){if(!ge($))throw new TypeError;return W(V)||(V=Ze(V)),Mt(x,$,V)}e("getMetadata",K);function fe(x,$,V){if(!ge($))throw new TypeError;return W(V)||(V=Ze(V)),Ot(x,$,V)}e("getOwnMetadata",fe);function ht(x,$){if(!ge(x))throw new TypeError;return W($)||($=Ze($)),wt(x,$)}e("getMetadataKeys",ht);function Ye(x,$){if(!ge(x))throw new TypeError;return W($)||($=Ze($)),nt(x,$)}e("getOwnMetadataKeys",Ye);function Ae(x,$,V){if(!ge($))throw new TypeError;if(W(V)||(V=Ze(V)),!ge($))throw new TypeError;W(V)||(V=Ze(V));var z=pn($,V,!1);return W(z)?!1:z.OrdinaryDeleteMetadata(x,$,V)}e("deleteMetadata",Ae);function ke(x,$){for(var V=x.length-1;V>=0;--V){var z=x[V],Y=z($);if(!W(Y)&&!He(Y)){if(!hn(Y))throw new TypeError;$=Y}}return $}function fn(x,$,V,z){for(var Y=x.length-1;Y>=0;--Y){var Ee=x[Y],Be=Ee($,V,z);if(!W(Be)&&!He(Be)){if(!ge(Be))throw new TypeError;z=Be}}return z}function Xe(x,$,V){var z=Nt(x,$,V);if(z)return!0;var Y=bt($);return He(Y)?!1:Xe(x,Y,V)}function Nt(x,$,V){var z=pn($,V,!1);return W(z)?!1:Ge(z.OrdinaryHasOwnMetadata(x,$,V))}function Mt(x,$,V){var z=Nt(x,$,V);if(z)return Ot(x,$,V);var Y=bt($);if(!He(Y))return Mt(x,Y,V)}function Ot(x,$,V){var z=pn($,V,!1);if(!W(z))return z.OrdinaryGetOwnMetadata(x,$,V)}function mt(x,$,V,z){var Y=pn(V,z,!0);Y.OrdinaryDefineOwnMetadata(x,$,V,z)}function wt(x,$){var V=nt(x,$),z=bt(x);if(z===null)return V;var Y=wt(z,$);if(Y.length<=0)return V;if(V.length<=0)return Y;for(var Ee=new w,Be=[],ne=0,F=V;ne<F.length;ne++){var O=F[ne],L=Ee.has(O);L||(Ee.add(O),Be.push(O))}for(var U=0,te=Y;U<te.length;U++){var O=te[U],L=Ee.has(O);L||(Ee.add(O),Be.push(O))}return Be}function nt(x,$){var V=pn(x,$,!1);return V?V.OrdinaryOwnMetadataKeys(x,$):[]}function we(x){if(x===null)return 1;switch(typeof x){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return x===null?1:6;default:return 6}}function W(x){return x===void 0}function He(x){return x===null}function Vt(x){return typeof x=="symbol"}function ge(x){return typeof x=="object"?x!==null:typeof x=="function"}function se(x,$){switch(we(x)){case 0:return x;case 1:return x;case 2:return x;case 3:return x;case 4:return x;case 5:return x}var V="string",z=ee(x,s);if(z!==void 0){var Y=z.call(x,V);if(ge(Y))throw new TypeError;return Y}return We(x)}function We(x,$){var V,z;{var Y=x.toString;if(Ve(Y)){var z=Y.call(x);if(!ge(z))return z}var V=x.valueOf;if(Ve(V)){var z=V.call(x);if(!ge(z))return z}}throw new TypeError}function Ge(x){return!!x}function Hn(x){return""+x}function Ze(x){var $=se(x);return Vt($)?$:Hn($)}function Lt(x){return Array.isArray?Array.isArray(x):x instanceof Object?x instanceof Array:Object.prototype.toString.call(x)==="[object Array]"}function Ve(x){return typeof x=="function"}function hn(x){return typeof x=="function"}function be(x){switch(we(x)){case 3:return!0;case 4:return!0;default:return!1}}function Je(x,$){return x===$||x!==x&&$!==$}function ee(x,$){var V=x[$];if(V!=null){if(!Ve(V))throw new TypeError;return V}}function Ie(x){var $=ee(x,a);if(!Ve($))throw new TypeError;var V=$.call(x);if(!ge(V))throw new TypeError;return V}function rt(x){return x.value}function st(x){var $=x.next();return $.done?!1:$}function mn(x){var $=x.return;$&&$.call(x)}function bt(x){var $=Object.getPrototypeOf(x);if(typeof x!="function"||x===h||$!==h)return $;var V=x.prototype,z=V&&Object.getPrototypeOf(V);if(z==null||z===Object.prototype)return $;var Y=z.constructor;return typeof Y!="function"||Y===x?$:Y}function It(){var x;!W(C)&&typeof i.Reflect<"u"&&!(C in i.Reflect)&&typeof i.Reflect.defineMetadata=="function"&&(x=Mr(i.Reflect));var $,V,z,Y=new y,Ee={registerProvider:Be,getProvider:F,setProvider:L};return Ee;function Be(U){if(!Object.isExtensible(Ee))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case x===U:break;case W($):$=U;break;case $===U:break;case W(V):V=U;break;case V===U:break;default:z===void 0&&(z=new w),z.add(U);break}}function ne(U,te){if(!W($)){if($.isProviderFor(U,te))return $;if(!W(V)){if(V.isProviderFor(U,te))return $;if(!W(z))for(var he=Ie(z);;){var ye=st(he);if(!ye)return;var at=rt(ye);if(at.isProviderFor(U,te))return mn(he),at}}}if(!W(x)&&x.isProviderFor(U,te))return x}function F(U,te){var he=Y.get(U),ye;return W(he)||(ye=he.get(te)),W(ye)&&(ye=ne(U,te),W(ye)||(W(he)&&(he=new m,Y.set(U,he)),he.set(te,ye))),ye}function O(U){if(W(U))throw new TypeError;return $===U||V===U||!W(z)&&z.has(U)}function L(U,te,he){if(!O(he))throw new Error("Metadata provider not registered.");var ye=F(U,te);if(ye!==he){if(!W(ye))return!1;var at=Y.get(U);W(at)&&(at=new m,Y.set(U,at)),at.set(te,he)}return!0}}function fo(){var x;return!W(C)&&ge(i.Reflect)&&Object.isExtensible(i.Reflect)&&(x=i.Reflect[C]),W(x)&&(x=It()),!W(C)&&ge(i.Reflect)&&Object.isExtensible(i.Reflect)&&Object.defineProperty(i.Reflect,C,{enumerable:!1,configurable:!1,writable:!1,value:x}),x}function Nr(x){var $=new y,V={isProviderFor:function(O,L){var U=$.get(O);return W(U)?!1:U.has(L)},OrdinaryDefineOwnMetadata:Be,OrdinaryHasOwnMetadata:Y,OrdinaryGetOwnMetadata:Ee,OrdinaryOwnMetadataKeys:ne,OrdinaryDeleteMetadata:F};return B.registerProvider(V),V;function z(O,L,U){var te=$.get(O),he=!1;if(W(te)){if(!U)return;te=new m,$.set(O,te),he=!0}var ye=te.get(L);if(W(ye)){if(!U)return;if(ye=new m,te.set(L,ye),!x.setProvider(O,L,V))throw te.delete(L),he&&$.delete(O),new Error("Wrong provider for target.")}return ye}function Y(O,L,U){var te=z(L,U,!1);return W(te)?!1:Ge(te.has(O))}function Ee(O,L,U){var te=z(L,U,!1);if(!W(te))return te.get(O)}function Be(O,L,U,te){var he=z(U,te,!0);he.set(O,L)}function ne(O,L){var U=[],te=z(O,L,!1);if(W(te))return U;for(var he=te.keys(),ye=Ie(he),at=0;;){var ho=st(ye);if(!ho)return U.length=at,U;var pt=rt(ho);try{U[at]=pt}catch(Tr){try{mn(ye)}finally{throw Tr}}at++}}function F(O,L,U){var te=z(L,U,!1);if(W(te)||!te.delete(O))return!1;if(te.size===0){var he=$.get(L);W(he)||(he.delete(U),he.size===0&&$.delete(he))}return!0}}function Mr(x){var $=x.defineMetadata,V=x.hasOwnMetadata,z=x.getOwnMetadata,Y=x.getOwnMetadataKeys,Ee=x.deleteMetadata,Be=new y,ne={isProviderFor:function(F,O){var L=Be.get(F);return!W(L)&&L.has(O)?!0:Y(F,O).length?(W(L)&&(L=new w,Be.set(F,L)),L.add(O),!0):!1},OrdinaryDefineOwnMetadata:$,OrdinaryHasOwnMetadata:V,OrdinaryGetOwnMetadata:z,OrdinaryOwnMetadataKeys:Y,OrdinaryDeleteMetadata:Ee};return ne}function pn(x,$,V){var z=B.getProvider(x,$);if(!W(z))return z;if(V){if(B.setProvider(x,$,E))return E;throw new Error("Illegal state.")}}function Un(){var x={},$=[],V=function(){function ne(F,O,L){this._index=0,this._keys=F,this._values=O,this._selector=L}return ne.prototype["@@iterator"]=function(){return this},ne.prototype[a]=function(){return this},ne.prototype.next=function(){var F=this._index;if(F>=0&&F<this._keys.length){var O=this._selector(this._keys[F],this._values[F]);return F+1>=this._keys.length?(this._index=-1,this._keys=$,this._values=$):this._index++,{value:O,done:!1}}return{value:void 0,done:!0}},ne.prototype.throw=function(F){throw this._index>=0&&(this._index=-1,this._keys=$,this._values=$),F},ne.prototype.return=function(F){return this._index>=0&&(this._index=-1,this._keys=$,this._values=$),{value:F,done:!0}},ne}(),z=function(){function ne(){this._keys=[],this._values=[],this._cacheKey=x,this._cacheIndex=-2}return Object.defineProperty(ne.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),ne.prototype.has=function(F){return this._find(F,!1)>=0},ne.prototype.get=function(F){var O=this._find(F,!1);return O>=0?this._values[O]:void 0},ne.prototype.set=function(F,O){var L=this._find(F,!0);return this._values[L]=O,this},ne.prototype.delete=function(F){var O=this._find(F,!1);if(O>=0){for(var L=this._keys.length,U=O+1;U<L;U++)this._keys[U-1]=this._keys[U],this._values[U-1]=this._values[U];return this._keys.length--,this._values.length--,Je(F,this._cacheKey)&&(this._cacheKey=x,this._cacheIndex=-2),!0}return!1},ne.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=x,this._cacheIndex=-2},ne.prototype.keys=function(){return new V(this._keys,this._values,Y)},ne.prototype.values=function(){return new V(this._keys,this._values,Ee)},ne.prototype.entries=function(){return new V(this._keys,this._values,Be)},ne.prototype["@@iterator"]=function(){return this.entries()},ne.prototype[a]=function(){return this.entries()},ne.prototype._find=function(F,O){if(!Je(this._cacheKey,F)){this._cacheIndex=-1;for(var L=0;L<this._keys.length;L++)if(Je(this._keys[L],F)){this._cacheIndex=L;break}}return this._cacheIndex<0&&O&&(this._cacheIndex=this._keys.length,this._keys.push(F),this._values.push(void 0)),this._cacheIndex},ne}();return z;function Y(ne,F){return ne}function Ee(ne,F){return F}function Be(ne,F){return[ne,F]}}function Vr(){var x=function(){function $(){this._map=new m}return Object.defineProperty($.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),$.prototype.has=function(V){return this._map.has(V)},$.prototype.add=function(V){return this._map.set(V,V),this},$.prototype.delete=function(V){return this._map.delete(V)},$.prototype.clear=function(){this._map.clear()},$.prototype.keys=function(){return this._map.keys()},$.prototype.values=function(){return this._map.keys()},$.prototype.entries=function(){return this._map.entries()},$.prototype["@@iterator"]=function(){return this.keys()},$.prototype[a]=function(){return this.keys()},$}();return x}function Ir(){var x=16,$=f.create(),V=z();return function(){function F(){this._key=z()}return F.prototype.has=function(O){var L=Y(O,!1);return L!==void 0?f.has(L,this._key):!1},F.prototype.get=function(O){var L=Y(O,!1);return L!==void 0?f.get(L,this._key):void 0},F.prototype.set=function(O,L){var U=Y(O,!0);return U[this._key]=L,this},F.prototype.delete=function(O){var L=Y(O,!1);return L!==void 0?delete L[this._key]:!1},F.prototype.clear=function(){this._key=z()},F}();function z(){var F;do F="@@WeakMap@@"+ne();while(f.has($,F));return $[F]=!0,F}function Y(F,O){if(!o.call(F,V)){if(!O)return;Object.defineProperty(F,V,{value:f.create()})}return F[V]}function Ee(F,O){for(var L=0;L<O;++L)F[L]=Math.random()*255|0;return F}function Be(F){if(typeof Uint8Array=="function"){var O=new Uint8Array(F);return typeof crypto<"u"?crypto.getRandomValues(O):typeof msCrypto<"u"?msCrypto.getRandomValues(O):Ee(O,F),O}return Ee(new Array(F),F)}function ne(){var F=Be(x);F[6]=F[6]&79|64,F[8]=F[8]&191|128;for(var O="",L=0;L<x;++L){var U=F[L];(L===4||L===6||L===8)&&(O+="-"),U<16&&(O+="0"),O+=U.toString(16).toLowerCase()}return O}}function hi(x){return x.__=void 0,delete x.__,x}})})(Wr||(Wr={}));const ve=[];for(let n=0;n<256;++n)ve.push((n+256).toString(16).slice(1));function oc(n,e=0){return(ve[n[e+0]]+ve[n[e+1]]+ve[n[e+2]]+ve[n[e+3]]+"-"+ve[n[e+4]]+ve[n[e+5]]+"-"+ve[n[e+6]]+ve[n[e+7]]+"-"+ve[n[e+8]]+ve[n[e+9]]+"-"+ve[n[e+10]]+ve[n[e+11]]+ve[n[e+12]]+ve[n[e+13]]+ve[n[e+14]]+ve[n[e+15]]).toLowerCase()}const rc=new Uint8Array(16);function sc(){return crypto.getRandomValues(rc)}function Ht(n,e,i){return crypto.randomUUID?crypto.randomUUID():ac(n)}function ac(n,e,i){var r;n=n||{};const o=n.random??((r=n.rng)==null?void 0:r.call(n))??sc();if(o.length<16)throw new Error("Random bytes length must be >= 16");return o[6]=o[6]&15|64,o[8]=o[8]&63|128,oc(o)}class Fe{static UUID(){return Ht()}static GUID(){const e=function(){return((1+Math.random())*65536|0).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}}function lc(n){var e=[];if(n.length===0)return"";if(typeof n[0]!="string")throw new TypeError("Url must be a string. Received "+n[0]);if(n[0].match(/^[^/:]+:\/*$/)&&n.length>1){var i=n.shift();n[0]=i+n[0]}n[0].match(/^file:\/\/\//)?n[0]=n[0].replace(/^([^/:]+):\/*/,"$1:///"):n[0]=n[0].replace(/^([^/:]+):\/*/,"$1://");for(var o=0;o<n.length;o++){var r=n[o];if(typeof r!="string")throw new TypeError("Url must be a string. Received "+r);r!==""&&(o>0&&(r=r.replace(/^[\/]+/,"")),o<n.length-1?r=r.replace(/[\/]+$/,""):r=r.replace(/[\/]+$/,"/"),e.push(r))}var s=e.join("/");s=s.replace(/\/(\?|&|#[^!])/g,"$1");var a=s.split("?");return s=a.shift()+(a.length>0?"?":"")+a.join("&"),s}function So(){var n;return typeof arguments[0]=="object"?n=arguments[0]:n=[].slice.call(arguments),lc(n)}class re{static Capitalize(e){return e?e[0].toUpperCase()+e.slice(1):""}static BuildSafeUrl(e,i,o){try{const r=new URL(e);return i&&(r.port=i.toString()),So(r.toString(),o)}catch{throw new Error(`Invalid host URL: ${e}`)}}static ToCamelCase(e){const i=new RegExp(["[А-Я][а-я][A-Z][a-z]+","[А-Я]+(?=[А-Я][а-я])","[A-Z]+(?=[A-Z][a-z])","[А-Я]+","[A-Z]+","[а-я]+","[a-z]+","[0-9]+"].join("|"),"g");return e.match(i).map((r,s)=>s===0?r.toLowerCase():re.Capitalize(r.toLowerCase())).join("")}static ToKebabCase(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}static GetStringBetweenChars(e,i,o){return e.substring(e.indexOf(i)+2,e.lastIndexOf(o))}static Translit(e,i){const o={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 i&&/[а-яА-Я]/g.test(e)?e.replace(/[А-я/,.;'\][]/g,r=>{if(r===r.toLowerCase()){const a=Object.keys(o).find(d=>o[d]===r);return a||""}const s=Object.keys(o).find(a=>o[a]===r.toLowerCase());return s?s.toUpperCase():""}):e.replace(/[A-z/,.;'\][]/g,r=>r===r.toLowerCase()?o[r]:o[r.toLowerCase()].toUpperCase())}static RemoveEmoji(e){const i=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;return e.replace(i,"")}static CanBeTranslited(e){return/^[~`!@#$%^&*()_+=[\]\\{}|;':",.\/<>?a-zA-Z0-9-]+$/.test(e)}static StringsEquals(e,i){const o=e.toLowerCase().replaceAll(/\s/g,""),r=i.toLowerCase().replaceAll(/\s/g,""),s=re.Translit(o),a=re.Translit(r);return o.includes(r)||s.includes(r)||o.includes(a)}static SearchIn(e,i){return re.StringsEquals(e,i)}static SearchInFields(e,i){let o=!1;for(let r=0;r<i.length;r++)if(re.SearchIn(i[r],e)){o=!0;break}return o}static FormatToPercentage(e){return`${e}%`}static ApplyClassToSubStr(e,i,o){const r=o??"highlight-text",s=new RegExp(re.GetVariants(i).join("|"),"gi");return e.replace(s,`<span class="${r}">$&</span>`)}static GetVariants(e){const i=re.Translit(e);return[e,re.Capitalize(e),e.toLowerCase(),e.toUpperCase(),i,re.Capitalize(i),i.toLowerCase(),i.toUpperCase()]}static ContainsNum(e){return/\d/.test(e)}static JoinSnake(...e){return e.join("_")}static GetDynamicCountName(e,i){const o=[2,0,1,1,1,2];return e.length+" "+i[e.length%100>4&&e.length%100<20?2:o[e.length%10<5?e.length%10:5]]}static TrimText(e){return typeof e=="string"?e.trim():e}}const Qt=class Qt{static BuildClass(e,i){i&&Object.keys(i).forEach(o=>{const r=i[o];if(this.isPrimitive(r))e[o]instanceof Date?e[o]=new Date(r):e[o]=r;else if(r!=null&&!Array.isArray(r))if(e[o]&&e[o].constructor)e[o]=new e[o].constructor(r);else{const s=Reflect.getMetadata(o,e);s&&(e[o]=new s[o](r))}if(Array.isArray(r)){if(r.length===0)return;const s=Reflect.getMetadata(o,e);r.length!==0&&!s&&(e[o]=r),s&&(e[o]=r.map(a=>new s[o](a)))}})}static isPrimitive(e){return e!==null&&typeof e<"u"&&e!==Object(e)}static RemoveFromClassByIndex(e,i,o){Qt.RemoveFromClass(e,i,o)}static RemoveFromClassById(e,i,o){if(!e)return;const r=i.findIndex(s=>s.id===e);Qt.RemoveFromClass(r,i,o)}static RemoveFromClass(e,i,o){if(e<0)return;const r=i[e].id;r&&o&&o.push(r),i.splice(e,1)}static GetPropertyName(e){const i=new e;return new Proxy(i,{get(o,r){return r}})}static InitClassInstance(e,i){const o=e.constructor(i);return Qt.BuildClass(o),o.id=Fe.UUID(),o}static ExistsWithId(e,i){return e.some(o=>o.id===i)}static DeepMap(e){return i=>Array.isArray(i)?i.map(Qt.DeepMap(e)):Object(i)===i?Object.fromEntries(Object.entries(i).map(([o,r])=>[o,Qt.DeepMap(e)(r)])):e(i)}static DeepTrim(e){return this.DeepMap(re.TrimText)(e)}};l(Qt,"GetClassConstructor",e=>(i,o)=>{const r=Reflect.getMetadata(`property:${o}`,i)||{};r[o]=e,Reflect.defineMetadata(o,r,i)});let _=Qt;class Zt{constructor(e){l(this,"id");l(this,"address");l(this,"description");l(this,"contactId");_.BuildClass(this,e)}static Create(){const e=new Zt;return e.id=Fe.UUID(),e}}class Co{static Setup(e="http://localhost",i="9000",o="api"){this.staticUrl=re.BuildSafeUrl(e,i,o),this.staticUrl=So(this.staticUrl,"static")}static get StaticUrl(){return this.staticUrl}}l(Co,"staticUrl","");class Qe{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);_.BuildClass(this,e)}getFileUrl(){const e=this.url?this.url:`${Co.StaticUrl}/${this.fileSystemPath}`;return new URL(e,typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:yn&&yn.tagName.toUpperCase()==="SCRIPT"&&yn.src||new URL("sprof.umd.cjs",document.baseURI).href)}getFileListObject(){return{name:this.originalName,url:this.url}}static CreatePreviewFile(e,i){const o=new Qe;return o.id=i??Fe.UUID(),o.originalName=e.name,o.file=e.blob,o.fileSystemPath=Fe.UUID(),o}setFile(e){this.id||(this.id=Fe.UUID()),this.originalName=e.name,this.file=e,this.fileSystemPath=Fe.UUID(),this.url=e.src}clearFile(){this.url="",this.file=void 0,this.fileSystemPath="",this.originalName=""}errorImg(e,i){if(e.target){let o="";return i&&(o=`@/assets/img/${i}`),new URL(o,typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:yn&&yn.tagName.toUpperCase()==="SCRIPT"&&yn.src||new URL("sprof.umd.cjs",document.baseURI).href)}}getFileInfos(){return[this]}isPdf(){return this.getExtension(this.originalName)===""}getExtension(e){const i=e.split(".");return i[i.length-1]}}class Gr{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);_.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=re.Capitalize(this.name),this.surname=re.Capitalize(this.surname),this.patronymic=re.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 Jt{constructor(e){l(this,"id");l(this,"number");l(this,"description");l(this,"contactId");_.BuildClass(this,e)}static Create(){const e=new Jt;return e.id=Fe.UUID(),e}}class xi{constructor(e){l(this,"id");l(this,"address");l(this,"description");_.BuildClass(this,e)}}class Ei{constructor(e){l(this,"id");l(this,"login","");l(this,"email","");l(this,"password","");_.BuildClass(this,e)}static Create(){const e=new Ei;return e.id=Fe.UUID(),e}}class ko{constructor(e){l(this,"id");l(this,"address");l(this,"description");_.BuildClass(this,e)}}let cc=(_t=class{},l(_t,"Phone",Jt),l(_t,"FileInfo",Qe),l(_t,"Website",ko),l(_t,"Email",Zt),l(_t,"Human",Gr),l(_t,"PostAddress",xi),l(_t,"UserAccount",Ei),_t);var Se=(n=>(n.Eq="=",n.Ne="!=",n.Gt=">",n.Lt="<",n.Btw="between",n.In="in",n.Like="like",n.Null="is null",n.NotNull="is not null",n))(Se||{});class Bi{constructor(e){l(this,"field","");l(this,"operator",Se.Eq);l(this,"value","");_.BuildClass(this,e)}setValue(e){this.value=e}static Create(e,i){return new Bi({operator:i,field:e})}eq(e){return this.field===e.field&&this.operator===e.operator}isUnary(){return this.operator===Se.Eq||this.operator===Se.Gt||this.operator===Se.Lt}isBetween(){return this.operator===Se.Btw}isSet(){return this.operator===Se.In}}class xo{constructor(e){l(this,"model","");l(this,"field","");l(this,"value","");l(this,"wheres",[]);_.BuildClass(this,e)}static Create(e){const i=new xo;return i.model=e.GetClassName(),i}eq(e){return e.model===this.model&&e.field===this.field}addWhere(e,i){const o=this.findWhere({field:e,operator:i});if(o)return o;const r=Bi.Create(e,i);return this.wheres.push(r),r}findWhere(e){return this.wheres.find(i=>i.eq(e))}}let Qr=class Rl{constructor(e){l(this,"id");l(this,"model","");l(this,"wheres",[]);l(this,"joins",[]);_.BuildClass(this,e)}static Create(e){const i=new Rl;return i.model=e.GetClassName(),i}addWhere(e,i){const o=this.findWhere({field:e,operator:i});if(o)return o;const r=Bi.Create(e,i);return this.wheres.push(r),r}removeWhere(e){const i=this.wheres.findIndex(o=>o.eq(e));i>-1&&this.wheres.splice(i,1)}addJoin(e){const i=this.findJoin({model:e.GetClassName()});if(i)return i;const o=xo.Create(e);return this.joins.push(o),o}findJoin(e){return this.joins.find(i=>i.eq(e))}findWhere(e){return this.wheres.find(i=>i.eq(e))}toRef(){return t.ref(this)}};class Pt{static Shuffle(e){for(let i=e.length-1;i>0;i--){const o=Math.floor(Math.random()*(i+1));[e[i],e[o]]=[e[o],e[i]]}}static GenerateNumsRange(e,i,o=1){return Array.from({length:(i-e)/o+1},(r,s)=>e+s*o)}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((i,o)=>i.order=o)}static Refill(e,i){e.splice(0,e.length),e.push(...i)}static Eq(e,i){return e.length===i.length&&(e==null?void 0:e.every((o,r)=>e[r]==i[r]))}static SwipeById(e,i,o){const r=e.findIndex(a=>i.id===a.id),s=e.findIndex(a=>o.id===a.id);r||s||([e[r],e[s]]=[e[s],e[r]])}static Swap(e,i,o){if(i<0||i>=e.length||o<0||o>=e.length)return;const r=e[i];e[i]=e[o],e[o]=r}static MoveUp(e,i){e[i].order=i-1,e[i-1]&&(e[i-1].order=i),[e[i],e[i-1]]=[e[i-1],e[i]]}static MoveDown(e,i){e[i].order=i+1,e[i+1]&&(e[i+1].order=i),[e[i],e[i+1]]=[e[i+1],e[i]]}}var Pe=(n=>(n.Date="date",n.String="string",n.Boolean="boolean",n.Number="number",n.Set="set",n.Join="join",n.ArrayString="arrayString",n.ArrayNumber="arrayNumber",n))(Pe||{}),dc=Object.defineProperty,uc=(n,e,i,o)=>{for(var r=void 0,s=n.length-1,a;s>=0;s--)(a=n[s])&&(r=a(e,i,r)||r);return r&&dc(e,i,r),r};const Yr=class gi{constructor(e){l(this,"id");l(this,"model","");l(this,"label","");l(this,"col","");l(this,"operator",Se.Eq);l(this,"date1");l(this,"date2");l(this,"value1","");l(this,"boolean",!1);l(this,"number",0);l(this,"type",Pe.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","");_.BuildClass(this,e)}eq(e){if(!e)return!1;if(this.type===Pe.Join){const i=e.model===this.model&&e.operator===this.operator&&this.joinTableModel===e.joinTableModel;return e.operator===Se.In?i&&Pt.Eq(this.set,e.set):i}return e.model===this.model&&e.col===this.col&&e.operator===this.operator}valueEq(e){return!this||!e||!this.eq(e)?!1:this.type===Pe.Boolean?this.boolean===(e==null?void 0:e.boolean):this.type===Pe.String?this.value1===(e==null?void 0:e.value1):this.type===Pe.Join&&this.set.length?Pt.Eq(this.set,e.set):!1}toUrlQuery(){const e=this.type?`"type":"${this.type}"`:"",i=this.model?`"model":"${this.model}"`:"",o=this.col?`"col":"${this.col}"`:"",r=this.operator?`"operator":"${this.operator}"`:"",s=this.value1?`"value1":"${this.value1}"`:"",a=this.type===Pe.Boolean?`"boolean":${this.boolean}`:"",d=this.type===Pe.Date&&this.date1?`"date1":"${this.date1.toISOString()}"`:"",c=this.type===Pe.Date&&this.date2?`"date2":"${this.date2.toISOString()}"`:"",u=this.type===Pe.Number?`"number":${this.number}`:"",f=this.type===Pe.Set||this.operator===Se.In?`"set":${JSON.stringify(this.set)}`:"",h=this.type===Pe.Join?`"joinTableModel":"${this.joinTableModel}"`:"";return[e,i,o,r,s,a,d,c,u,f,h].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===Se.Eq||this.operator===Se.Gt||this.operator===Se.Lt}isBetweenFilter(){return this.operator===Se.Btw}isSetFilter(){return this.operator===Se.In}static Create(e,i,o){const r=new gi;return r.model=e.GetClassName(),r.col=i??"",r.type=o,r.type===Pe.Number&&(r.value1="0"),r.type===Pe.String&&(r.value1=""),r.type===Pe.Boolean&&(r.value1="false",r.operator=Se.Eq),r}static CreateFilterModelWithJoin(e,i,o,r,s,a,d,c){const u=new gi;return u.id=Ht(),u.joinTable=o,u.joinTablePk=r,u.joinTableFk=s,u.col=i,u.type=a,d&&(u.joinTableId=d),c&&(u.joinTableIdCol=c),u}static CreateFilterModelWithJoinV2(e,i,o,r,s,a,d){const c=new gi;return c.model=e,c.joinTableModel=o,c.joinTablePk=r,c.joinTableFk=s,c.col=i,c.type=Pe.Join,a&&(c.joinTableId=a),d&&(c.joinTableIdCol=d),c}static OnlyIfSecondModelExists(e,i){const o=new gi;return o.id=Ht(),o.model=re.ToCamelCase(e.GetClassName()),o.joinTableModel=re.ToCamelCase(i.GetClassName()),o.type=Pe.Join,o}addToSet(...e){e.forEach(i=>{if(this.set.indexOf(i)===-1){this.set.push(i);return}this.set=this.set.filter(o=>o!==i)})}pushToSet(...e){e.forEach(i=>{this.set.indexOf(i)===-1&&this.set.push(i)})}replaceSet(...e){this.set=e}setBoolean(e){this.boolean=e}toRef(){return t.ref(this)}setDate1(e){this.date1=e}setDate2(e){this.date2=e}dropDates(){this.setDate1(),this.setDate2()}setDatesRange(e,i){if(!e&&!i){this.dropDates();return}if(!i){this.setDate1(e),this.operator=Se.Eq;return}this.setDate2(i),this.operator=Se.Btw}};uc([_.GetClassConstructor(String)],Yr.prototype,"set");let Eo=Yr;class fc{constructor(){l(this,"operation",Se.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}"`:"",i=this.column?`"column":"${this.column}"`:"",o=this.value&&typeof this.value.toISOString=="function"?this.value.toISOString():this.value,r=o?`"value":"${o}"`:"",s=this.model?`"model":"${this.model}"`:"",a=`"initial":${this.initial}`;return[e,i,r,s,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 $i{constructor(e){l(this,"page",0);l(this,"rowsPerPage",25);l(this,"rowsNumber",0);l(this,"cursor",new fc);l(this,"cursorMode",!1);l(this,"append",!1);l(this,"allLoaded",!1);l(this,"version","");_.BuildClass(this,e)}setLoadMore(e,i,o){this.cursor.value=e,this.cursor.initial=!1,this.cursor.operation=Se.Gt,this.cursor.column=i,this.cursor.tableName=o,this.cursorMode=!0}setLoadMoreV2(e,i,o){this.cursor.value=e,this.cursor.initial=!1,this.cursor.operation=Se.Gt,this.cursor.column=i,this.cursor.model=o,this.cursorMode=!0,this.version="v2"}setOffset(e){this.page=e}toUrlQuery(){const e=`"offset":${this.offset}`,i=`"limit":${this.limit}`,o=`"cursorMode":${this.cursorMode}`,r=`"append":${this.append}`,s=`"allLoaded":${this.allLoaded}`,a=`"cursor":{${this.cursor.toUrlQuery()}}`;return[e,i,o,r,s,a].toString()}fromUrlQuery(){const e=window.location.search,i=e.substring(e.indexOf("p=")+2,e.lastIndexOf("|")),o=new URLSearchParams(decodeURIComponent(i));this.page=Number(o.get("offset")),this.rowsPerPage=Number(o.get("col"))}setAllLoaded(e){this.allLoaded=!(e>=this.rowsPerPage)}resetAllLoaded(){this.allLoaded=!1}getPageNum(){return this.page/this.rowsPerPage+1}drop(){this.page=0,this.rowsPerPage=25,_.BuildClass(this)}}var ct=(n=>(n.Asc="asc",n.Desc="desc",n))(ct||{});class Ni{constructor(e){l(this,"model","");l(this,"col","");l(this,"order");l(this,"label","");l(this,"default",!1);l(this,"selected",!1);_.BuildClass(this,e)}static Create(e,i,o=ct.Asc,r,s){const a=new Ni;return a.model=e.GetClassName(),a.col=i??"",a.order=o??ct.Asc,a.label=r??"",a.default=s??!1,a}isAsc(){return this.order===ct.Asc}isDesc(){return this.order===ct.Desc}eq(e){return e.model===this.model&&e.col===this.col&&e.order===this.order}toUrlQuery(){const e=this.model?`"model":"${this.model}"`:"",i=this.col?`"col":"${this.col}"`:"",o=this.order?`"order":"${this.order}"`:"";return[e,i,o].toString()}async fromUrlQuery(){const e=window.location.search,i=e.substring(e.indexOf("s=")+2,e.indexOf("|")),o=new URLSearchParams(decodeURIComponent(i));this.model=o.get("model")??"",this.col=o.get("col")??"",this.label=o.get("label")??"",this.default=!!o.get("default"),this.order=o.get("order")??""}asc(){this.order=ct.Asc}desc(){this.order=ct.Desc}}class Mi{constructor(){l(this,"model","");l(this,"cols",[]);l(this,"models",[])}static Create(e,i){const o=new Mi;return o.model=e.GetClassName(),o.cols=i,o}}var hc=Object.defineProperty,qn=(n,e,i,o)=>{for(var r=void 0,s=n.length-1,a;s>=0;s--)(a=n[s])&&(r=a(e,i,r)||r);return r&&hc(e,i,r),r};const Cn=(tt=class{constructor(e){l(this,"id");l(this,"f",[]);l(this,"f2",[]);l(this,"s",[]);l(this,"p",new $i);l(this,"t",new Mi);_.BuildClass(this,e)}static Get(){return this.instance||(this.instance=new tt),this.instance}createFrom(e){const i=new tt(JSON.parse(e));this.f=i.f}clearForHTTP(){const e=new tt(this);return e.f=this.f.map(i=>tt.EmptyEntiries(i)),e.f2=this.f2.map(i=>tt.EmptyEntiries(i)),e.s=this.s.map(i=>tt.EmptyEntiries(i)),e.p=tt.EmptyEntiries(this.p),e.t=tt.EmptyEntiries(this.t),e}static EmptyEntiries(e){if(!e)return;const o=Object.entries(e).filter(([r,s])=>r!=="label"&&s!==""&&s!==null);return Object.fromEntries(o)}findFilterModel(e){return this.f.find(i=>e.id===i.id)}getFirstSortModel(){return Pt.GetLast(this.s)}setSortModel(e){e&&(this.s[0]=e)}setS(e){this.s[0]=e}setF(e){this.f.push(e)}setF2(e){this.f2.push(e)}replaceF(e,i){this.removeF(i),e&&this.setF(e)}removeF(e){const i=this.f.findIndex(o=>o.eq(e));_.RemoveFromClassByIndex(i,this.f)}reset(){this.f=[],this.s=[],this.p=new $i}resetF(){this.f=[]}},l(tt,"instance"),tt);qn([_.GetClassConstructor(Eo)],Cn.prototype,"f"),qn([_.GetClassConstructor(Qr)],Cn.prototype,"f2"),qn([_.GetClassConstructor(Ni)],Cn.prototype,"s"),qn([_.GetClassConstructor($i)],Cn.prototype,"p"),qn([_.GetClassConstructor(Mi)],Cn.prototype,"t");let Rt=Cn,mc=(Ln=class{},l(Ln,"SortModel",Ni),l(Ln,"FilterModel",Eo),l(Ln,"FilterModelV2",Qr),l(Ln,"FTSP",Rt),Ln);function Xr(n,e){return function(){return n.apply(e,arguments)}}const{toString:pc}=Object.prototype,{getPrototypeOf:kn}=Object,{iterator:Wn,toStringTag:Zr}=Symbol,Vi=(({hasOwnProperty:n})=>(e,i)=>n.call(e,i))(Object.prototype),Gn=(n,e)=>{let i=n;const o=[];for(;i!=null&&i!==Object.prototype;){if(o.indexOf(i)!==-1)return!1;if(o.push(i),Vi(i,e))return!0;i=kn(i)}return!1},gc=(n,e)=>n!=null&&Gn(n,e)?n[e]:void 0,Bo=(n=>e=>{const i=pc.call(e);return n[i]||(n[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),gt=n=>(n=n.toLowerCase(),e=>Bo(e)===n),Ii=n=>e=>typeof e===n,{isArray:Kt}=Array,xn=Ii("undefined");function En(n){return n!==null&&!xn(n)&&n.constructor!==null&&!xn(n.constructor)&&Ke(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Jr=gt("ArrayBuffer");function yc(n){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(n):e=n&&n.buffer&&Jr(n.buffer),e}const wc=Ii("string"),Ke=Ii("function"),Kr=Ii("number"),Bn=n=>n!==null&&typeof n=="object",bc=n=>n===!0||n===!1,Ti=n=>{if(!Bn(n))return!1;const e=kn(n);return(e===null||e===Object.prototype||kn(e)===null)&&!Gn(n,Zr)&&!Gn(n,Wn)},Sc=n=>{if(!Bn(n)||En(n))return!1;try{return Object.keys(n).length===0&&Object.getPrototypeOf(n)===Object.prototype}catch{return!1}},Cc=gt("Date"),kc=gt("File"),xc=n=>!!(n&&typeof n.uri<"u"),Ec=n=>n&&typeof n.getParts<"u",Bc=gt("Blob"),$c=gt("FileList"),Nc=n=>Bn(n)&&Ke(n.pipe);function Mc(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const es=Mc(),ts=typeof es.FormData<"u"?es.FormData:void 0,Vc=n=>{if(!n)return!1;if(ts&&n instanceof ts)return!0;const e=kn(n);if(!e||e===Object.prototype||!Ke(n.append))return!1;const i=Bo(n);return i==="formdata"||i==="object"&&Ke(n.toString)&&n.toString()==="[object FormData]"},Ic=gt("URLSearchParams"),[Tc,Pc,Rc,Ac]=["ReadableStream","Request","Response","Headers"].map(gt),zc=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Qn(n,e,{allOwnKeys:i=!1}={}){if(n===null||typeof n>"u")return;let o,r;if(typeof n!="object"&&(n=[n]),Kt(n))for(o=0,r=n.length;o<r;o++)e.call(null,n[o],o,n);else{if(En(n))return;const s=i?Object.getOwnPropertyNames(n):Object.keys(n),a=s.length;let d;for(o=0;o<a;o++)d=s[o],e.call(null,n[d],d,n)}}function ns(n,e){if(En(n))return null;e=e.toLowerCase();const i=Object.keys(n);let o=i.length,r;for(;o-- >0;)if(r=i[o],e===r.toLowerCase())return r;return null}const en=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,is=n=>!xn(n)&&n!==en;function $o(...n){const{caseless:e,skipUndefined:i}=is(this)&&this||{},o={},r=(s,a)=>{if(a==="__proto__"||a==="constructor"||a==="prototype")return;const d=e&&typeof a=="string"&&ns(o,a)||a,c=Vi(o,d)?o[d]:void 0;Ti(c)&&Ti(s)?o[d]=$o(c,s):Ti(s)?o[d]=$o({},s):Kt(s)?o[d]=s.slice():(!i||!xn(s))&&(o[d]=s)};for(let s=0,a=n.length;s<a;s++){const d=n[s];if(!d||En(d)||(Qn(d,r),typeof d!="object"||Kt(d)))continue;const c=Object.getOwnPropertySymbols(d);for(let u=0;u<c.length;u++){const f=c[u];Gc.call(d,f)&&r(d[f],f)}}return o}const Dc=(n,e,i,{allOwnKeys:o}={})=>(Qn(e,(r,s)=>{i&&Ke(r)?Object.defineProperty(n,s,{__proto__:null,value:Xr(r,i),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(n,s,{__proto__:null,value:r,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:o}),n),vc=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),Fc=(n,e,i,o)=>{n.prototype=Object.create(e.prototype,o),Object.defineProperty(n.prototype,"constructor",{__proto__:null,value:n,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(n,"super",{__proto__:null,value:e.prototype}),i&&Object.assign(n.prototype,i)},_c=(n,e,i,o)=>{let r,s,a;const d={};if(e=e||{},n==null)return e;do{for(r=Object.getOwnPropertyNames(n),s=r.length;s-- >0;)a=r[s],(!o||o(a,n,e))&&!d[a]&&(e[a]=n[a],d[a]=!0);n=i!==!1&&kn(n)}while(n&&(!i||i(n,e))&&n!==Object.prototype);return e},Oc=(n,e,i)=>{n=String(n),(i===void 0||i>n.length)&&(i=n.length),i-=e.length;const o=n.indexOf(e,i);return o!==-1&&o===i},Lc=n=>{if(!n)return null;if(Kt(n))return n;let e=n.length;if(!Kr(e))return null;const i=new Array(e);for(;e-- >0;)i[e]=n[e];return i},Hc=(n=>e=>n&&e instanceof n)(typeof Uint8Array<"u"&&kn(Uint8Array)),Uc=(n,e)=>{const o=(n&&n[Wn]).call(n);let r;for(;(r=o.next())&&!r.done;){const s=r.value;e.call(n,s[0],s[1])}},jc=(n,e)=>{let i;const o=[];for(;(i=n.exec(e))!==null;)o.push(i);return o},qc=gt("HTMLFormElement"),Wc=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,o,r){return o.toUpperCase()+r}),{propertyIsEnumerable:Gc}=Object.prototype,Qc=gt("RegExp"),os=(n,e)=>{const i=Object.getOwnPropertyDescriptors(n),o={};Qn(i,(r,s)=>{let a;(a=e(r,s,n))!==!1&&(o[s]=a||r)}),Object.defineProperties(n,o)},Yc=n=>{os(n,(e,i)=>{if(Ke(n)&&["arguments","caller","callee"].includes(i))return!1;const o=n[i];if(Ke(o)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},Xc=(n,e)=>{const i={},o=r=>{r.forEach(s=>{i[s]=!0})};return Kt(n)?o(n):o(String(n).split(e)),i},Zc=()=>{},Jc=(n,e)=>n!=null&&Number.isFinite(n=+n)?n:e;function Kc(n){return!!(n&&Ke(n.append)&&n[Zr]==="FormData"&&n[Wn])}const ed=n=>{const e=new WeakSet,i=o=>{if(Bn(o)){if(e.has(o))return;if(En(o))return o;if(!("toJSON"in o)){e.add(o);const r=Kt(o)?[]:{};return Qn(o,(s,a)=>{const d=i(s);!xn(d)&&(r[a]=d)}),e.delete(o),r}}return o};return i(n)},td=gt("AsyncFunction"),nd=n=>n&&(Bn(n)||Ke(n))&&Ke(n.then)&&Ke(n.catch),rs=((n,e)=>n?setImmediate:e?((i,o)=>(en.addEventListener("message",({source:r,data:s})=>{r===en&&s===i&&o.length&&o.shift()()},!1),r=>{o.push(r),en.postMessage(i,"*")}))(`axios@${Math.random()}`,[]):i=>setTimeout(i))(typeof setImmediate=="function",Ke(en.postMessage)),id=typeof queueMicrotask<"u"?queueMicrotask.bind(en):typeof process<"u"&&process.nextTick||rs,ss=n=>n!=null&&Ke(n[Wn]),b={isArray:Kt,isArrayBuffer:Jr,isBuffer:En,isFormData:Vc,isArrayBufferView:yc,isString:wc,isNumber:Kr,isBoolean:bc,isObject:Bn,isPlainObject:Ti,isEmptyObject:Sc,isReadableStream:Tc,isRequest:Pc,isResponse:Rc,isHeaders:Ac,isUndefined:xn,isDate:Cc,isFile:kc,isReactNativeBlob:xc,isReactNative:Ec,isBlob:Bc,isRegExp:Qc,isFunction:Ke,isStream:Nc,isURLSearchParams:Ic,isTypedArray:Hc,isFileList:$c,forEach:Qn,merge:$o,extend:Dc,trim:zc,stripBOM:vc,inherits:Fc,toFlatObject:_c,kindOf:Bo,kindOfTest:gt,endsWith:Oc,toArray:Lc,forEachEntry:Uc,matchAll:jc,isHTMLForm:qc,hasOwnProperty:Vi,hasOwnProp:Vi,hasOwnInPrototypeChain:Gn,getSafeProp:gc,reduceDescriptors:os,freezeMethods:Yc,toObjectSet:Xc,toCamelCase:Wc,noop:Zc,toFiniteNumber:Jc,findKey:ns,global:en,isContextDefined:is,isSpecCompliantForm:Kc,toJSONObject:ed,isAsyncFn:td,isThenable:nd,setImmediate:rs,asap:id,isIterable:ss,isSafeIterable:n=>n!=null&&Gn(n,Wn)&&ss(n)},od=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"]),rd=n=>{const e={};let i,o,r;return n&&n.split(`
14
+ ***************************************************************************** */var Wr;(function(n){(function(e){var i=typeof globalThis=="object"?globalThis:typeof qr=="object"?qr:typeof self=="object"?self:typeof this=="object"?this:d(),o=r(n);typeof i.Reflect<"u"&&(o=r(i.Reflect,o)),e(o,i),typeof i.Reflect>"u"&&(i.Reflect=n);function r(c,u){return function(f,h){Object.defineProperty(c,f,{configurable:!0,writable:!0,value:h}),u&&u(f,h)}}function s(){try{return Function("return this;")()}catch{}}function a(){try{return(0,eval)("(function() { return this; })()")}catch{}}function d(){return s()||a()}})(function(e,i){var o=Object.prototype.hasOwnProperty,r=typeof Symbol=="function",s=r&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",a=r&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",d=typeof Object.create=="function",c={__proto__:[]}instanceof Array,u=!d&&!c,f={create:d?function(){return hi(Object.create(null))}:c?function(){return hi({__proto__:null})}:function(){return hi({})},has:u?function(x,$){return o.call(x,$)}:function(x,$){return $ in x},get:u?function(x,$){return o.call(x,$)?x[$]:void 0}:function(x,$){return x[$]}},h=Object.getPrototypeOf(Function),m=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Un(),w=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Vr(),y=typeof WeakMap=="function"?WeakMap:Ir(),C=r?Symbol.for("@reflect-metadata:registry"):void 0,B=fo(),E=Nr(B);function N(x,$,V,z){if(W(V)){if(!Lt(x))throw new TypeError;if(!hn($))throw new TypeError;return ke(x,$)}else{if(!Lt(x))throw new TypeError;if(!ge($))throw new TypeError;if(!ge(z)&&!W(z)&&!He(z))throw new TypeError;return He(z)&&(z=void 0),V=Ze(V),fn(x,$,V,z)}}e("decorate",N);function k(x,$){function V(z,Y){if(!ge(z))throw new TypeError;if(!W(Y)&&!be(Y))throw new TypeError;mt(x,$,z,Y)}return V}e("metadata",k);function R(x,$,V,z){if(!ge(V))throw new TypeError;return W(z)||(z=Ze(z)),mt(x,$,V,z)}e("defineMetadata",R);function v(x,$,V){if(!ge($))throw new TypeError;return W(V)||(V=Ze(V)),Xe(x,$,V)}e("hasMetadata",v);function Z(x,$,V){if(!ge($))throw new TypeError;return W(V)||(V=Ze(V)),Nt(x,$,V)}e("hasOwnMetadata",Z);function K(x,$,V){if(!ge($))throw new TypeError;return W(V)||(V=Ze(V)),Mt(x,$,V)}e("getMetadata",K);function fe(x,$,V){if(!ge($))throw new TypeError;return W(V)||(V=Ze(V)),Ot(x,$,V)}e("getOwnMetadata",fe);function ht(x,$){if(!ge(x))throw new TypeError;return W($)||($=Ze($)),wt(x,$)}e("getMetadataKeys",ht);function Ye(x,$){if(!ge(x))throw new TypeError;return W($)||($=Ze($)),nt(x,$)}e("getOwnMetadataKeys",Ye);function Ae(x,$,V){if(!ge($))throw new TypeError;if(W(V)||(V=Ze(V)),!ge($))throw new TypeError;W(V)||(V=Ze(V));var z=pn($,V,!1);return W(z)?!1:z.OrdinaryDeleteMetadata(x,$,V)}e("deleteMetadata",Ae);function ke(x,$){for(var V=x.length-1;V>=0;--V){var z=x[V],Y=z($);if(!W(Y)&&!He(Y)){if(!hn(Y))throw new TypeError;$=Y}}return $}function fn(x,$,V,z){for(var Y=x.length-1;Y>=0;--Y){var Ee=x[Y],Be=Ee($,V,z);if(!W(Be)&&!He(Be)){if(!ge(Be))throw new TypeError;z=Be}}return z}function Xe(x,$,V){var z=Nt(x,$,V);if(z)return!0;var Y=bt($);return He(Y)?!1:Xe(x,Y,V)}function Nt(x,$,V){var z=pn($,V,!1);return W(z)?!1:Ge(z.OrdinaryHasOwnMetadata(x,$,V))}function Mt(x,$,V){var z=Nt(x,$,V);if(z)return Ot(x,$,V);var Y=bt($);if(!He(Y))return Mt(x,Y,V)}function Ot(x,$,V){var z=pn($,V,!1);if(!W(z))return z.OrdinaryGetOwnMetadata(x,$,V)}function mt(x,$,V,z){var Y=pn(V,z,!0);Y.OrdinaryDefineOwnMetadata(x,$,V,z)}function wt(x,$){var V=nt(x,$),z=bt(x);if(z===null)return V;var Y=wt(z,$);if(Y.length<=0)return V;if(V.length<=0)return Y;for(var Ee=new w,Be=[],ne=0,F=V;ne<F.length;ne++){var O=F[ne],L=Ee.has(O);L||(Ee.add(O),Be.push(O))}for(var U=0,te=Y;U<te.length;U++){var O=te[U],L=Ee.has(O);L||(Ee.add(O),Be.push(O))}return Be}function nt(x,$){var V=pn(x,$,!1);return V?V.OrdinaryOwnMetadataKeys(x,$):[]}function we(x){if(x===null)return 1;switch(typeof x){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return x===null?1:6;default:return 6}}function W(x){return x===void 0}function He(x){return x===null}function Vt(x){return typeof x=="symbol"}function ge(x){return typeof x=="object"?x!==null:typeof x=="function"}function se(x,$){switch(we(x)){case 0:return x;case 1:return x;case 2:return x;case 3:return x;case 4:return x;case 5:return x}var V="string",z=ee(x,s);if(z!==void 0){var Y=z.call(x,V);if(ge(Y))throw new TypeError;return Y}return We(x)}function We(x,$){var V,z;{var Y=x.toString;if(Ve(Y)){var z=Y.call(x);if(!ge(z))return z}var V=x.valueOf;if(Ve(V)){var z=V.call(x);if(!ge(z))return z}}throw new TypeError}function Ge(x){return!!x}function Hn(x){return""+x}function Ze(x){var $=se(x);return Vt($)?$:Hn($)}function Lt(x){return Array.isArray?Array.isArray(x):x instanceof Object?x instanceof Array:Object.prototype.toString.call(x)==="[object Array]"}function Ve(x){return typeof x=="function"}function hn(x){return typeof x=="function"}function be(x){switch(we(x)){case 3:return!0;case 4:return!0;default:return!1}}function Je(x,$){return x===$||x!==x&&$!==$}function ee(x,$){var V=x[$];if(V!=null){if(!Ve(V))throw new TypeError;return V}}function Ie(x){var $=ee(x,a);if(!Ve($))throw new TypeError;var V=$.call(x);if(!ge(V))throw new TypeError;return V}function rt(x){return x.value}function st(x){var $=x.next();return $.done?!1:$}function mn(x){var $=x.return;$&&$.call(x)}function bt(x){var $=Object.getPrototypeOf(x);if(typeof x!="function"||x===h||$!==h)return $;var V=x.prototype,z=V&&Object.getPrototypeOf(V);if(z==null||z===Object.prototype)return $;var Y=z.constructor;return typeof Y!="function"||Y===x?$:Y}function It(){var x;!W(C)&&typeof i.Reflect<"u"&&!(C in i.Reflect)&&typeof i.Reflect.defineMetadata=="function"&&(x=Mr(i.Reflect));var $,V,z,Y=new y,Ee={registerProvider:Be,getProvider:F,setProvider:L};return Ee;function Be(U){if(!Object.isExtensible(Ee))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case x===U:break;case W($):$=U;break;case $===U:break;case W(V):V=U;break;case V===U:break;default:z===void 0&&(z=new w),z.add(U);break}}function ne(U,te){if(!W($)){if($.isProviderFor(U,te))return $;if(!W(V)){if(V.isProviderFor(U,te))return $;if(!W(z))for(var he=Ie(z);;){var ye=st(he);if(!ye)return;var at=rt(ye);if(at.isProviderFor(U,te))return mn(he),at}}}if(!W(x)&&x.isProviderFor(U,te))return x}function F(U,te){var he=Y.get(U),ye;return W(he)||(ye=he.get(te)),W(ye)&&(ye=ne(U,te),W(ye)||(W(he)&&(he=new m,Y.set(U,he)),he.set(te,ye))),ye}function O(U){if(W(U))throw new TypeError;return $===U||V===U||!W(z)&&z.has(U)}function L(U,te,he){if(!O(he))throw new Error("Metadata provider not registered.");var ye=F(U,te);if(ye!==he){if(!W(ye))return!1;var at=Y.get(U);W(at)&&(at=new m,Y.set(U,at)),at.set(te,he)}return!0}}function fo(){var x;return!W(C)&&ge(i.Reflect)&&Object.isExtensible(i.Reflect)&&(x=i.Reflect[C]),W(x)&&(x=It()),!W(C)&&ge(i.Reflect)&&Object.isExtensible(i.Reflect)&&Object.defineProperty(i.Reflect,C,{enumerable:!1,configurable:!1,writable:!1,value:x}),x}function Nr(x){var $=new y,V={isProviderFor:function(O,L){var U=$.get(O);return W(U)?!1:U.has(L)},OrdinaryDefineOwnMetadata:Be,OrdinaryHasOwnMetadata:Y,OrdinaryGetOwnMetadata:Ee,OrdinaryOwnMetadataKeys:ne,OrdinaryDeleteMetadata:F};return B.registerProvider(V),V;function z(O,L,U){var te=$.get(O),he=!1;if(W(te)){if(!U)return;te=new m,$.set(O,te),he=!0}var ye=te.get(L);if(W(ye)){if(!U)return;if(ye=new m,te.set(L,ye),!x.setProvider(O,L,V))throw te.delete(L),he&&$.delete(O),new Error("Wrong provider for target.")}return ye}function Y(O,L,U){var te=z(L,U,!1);return W(te)?!1:Ge(te.has(O))}function Ee(O,L,U){var te=z(L,U,!1);if(!W(te))return te.get(O)}function Be(O,L,U,te){var he=z(U,te,!0);he.set(O,L)}function ne(O,L){var U=[],te=z(O,L,!1);if(W(te))return U;for(var he=te.keys(),ye=Ie(he),at=0;;){var ho=st(ye);if(!ho)return U.length=at,U;var pt=rt(ho);try{U[at]=pt}catch(Tr){try{mn(ye)}finally{throw Tr}}at++}}function F(O,L,U){var te=z(L,U,!1);if(W(te)||!te.delete(O))return!1;if(te.size===0){var he=$.get(L);W(he)||(he.delete(U),he.size===0&&$.delete(he))}return!0}}function Mr(x){var $=x.defineMetadata,V=x.hasOwnMetadata,z=x.getOwnMetadata,Y=x.getOwnMetadataKeys,Ee=x.deleteMetadata,Be=new y,ne={isProviderFor:function(F,O){var L=Be.get(F);return!W(L)&&L.has(O)?!0:Y(F,O).length?(W(L)&&(L=new w,Be.set(F,L)),L.add(O),!0):!1},OrdinaryDefineOwnMetadata:$,OrdinaryHasOwnMetadata:V,OrdinaryGetOwnMetadata:z,OrdinaryOwnMetadataKeys:Y,OrdinaryDeleteMetadata:Ee};return ne}function pn(x,$,V){var z=B.getProvider(x,$);if(!W(z))return z;if(V){if(B.setProvider(x,$,E))return E;throw new Error("Illegal state.")}}function Un(){var x={},$=[],V=function(){function ne(F,O,L){this._index=0,this._keys=F,this._values=O,this._selector=L}return ne.prototype["@@iterator"]=function(){return this},ne.prototype[a]=function(){return this},ne.prototype.next=function(){var F=this._index;if(F>=0&&F<this._keys.length){var O=this._selector(this._keys[F],this._values[F]);return F+1>=this._keys.length?(this._index=-1,this._keys=$,this._values=$):this._index++,{value:O,done:!1}}return{value:void 0,done:!0}},ne.prototype.throw=function(F){throw this._index>=0&&(this._index=-1,this._keys=$,this._values=$),F},ne.prototype.return=function(F){return this._index>=0&&(this._index=-1,this._keys=$,this._values=$),{value:F,done:!0}},ne}(),z=function(){function ne(){this._keys=[],this._values=[],this._cacheKey=x,this._cacheIndex=-2}return Object.defineProperty(ne.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),ne.prototype.has=function(F){return this._find(F,!1)>=0},ne.prototype.get=function(F){var O=this._find(F,!1);return O>=0?this._values[O]:void 0},ne.prototype.set=function(F,O){var L=this._find(F,!0);return this._values[L]=O,this},ne.prototype.delete=function(F){var O=this._find(F,!1);if(O>=0){for(var L=this._keys.length,U=O+1;U<L;U++)this._keys[U-1]=this._keys[U],this._values[U-1]=this._values[U];return this._keys.length--,this._values.length--,Je(F,this._cacheKey)&&(this._cacheKey=x,this._cacheIndex=-2),!0}return!1},ne.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=x,this._cacheIndex=-2},ne.prototype.keys=function(){return new V(this._keys,this._values,Y)},ne.prototype.values=function(){return new V(this._keys,this._values,Ee)},ne.prototype.entries=function(){return new V(this._keys,this._values,Be)},ne.prototype["@@iterator"]=function(){return this.entries()},ne.prototype[a]=function(){return this.entries()},ne.prototype._find=function(F,O){if(!Je(this._cacheKey,F)){this._cacheIndex=-1;for(var L=0;L<this._keys.length;L++)if(Je(this._keys[L],F)){this._cacheIndex=L;break}}return this._cacheIndex<0&&O&&(this._cacheIndex=this._keys.length,this._keys.push(F),this._values.push(void 0)),this._cacheIndex},ne}();return z;function Y(ne,F){return ne}function Ee(ne,F){return F}function Be(ne,F){return[ne,F]}}function Vr(){var x=function(){function $(){this._map=new m}return Object.defineProperty($.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),$.prototype.has=function(V){return this._map.has(V)},$.prototype.add=function(V){return this._map.set(V,V),this},$.prototype.delete=function(V){return this._map.delete(V)},$.prototype.clear=function(){this._map.clear()},$.prototype.keys=function(){return this._map.keys()},$.prototype.values=function(){return this._map.keys()},$.prototype.entries=function(){return this._map.entries()},$.prototype["@@iterator"]=function(){return this.keys()},$.prototype[a]=function(){return this.keys()},$}();return x}function Ir(){var x=16,$=f.create(),V=z();return function(){function F(){this._key=z()}return F.prototype.has=function(O){var L=Y(O,!1);return L!==void 0?f.has(L,this._key):!1},F.prototype.get=function(O){var L=Y(O,!1);return L!==void 0?f.get(L,this._key):void 0},F.prototype.set=function(O,L){var U=Y(O,!0);return U[this._key]=L,this},F.prototype.delete=function(O){var L=Y(O,!1);return L!==void 0?delete L[this._key]:!1},F.prototype.clear=function(){this._key=z()},F}();function z(){var F;do F="@@WeakMap@@"+ne();while(f.has($,F));return $[F]=!0,F}function Y(F,O){if(!o.call(F,V)){if(!O)return;Object.defineProperty(F,V,{value:f.create()})}return F[V]}function Ee(F,O){for(var L=0;L<O;++L)F[L]=Math.random()*255|0;return F}function Be(F){if(typeof Uint8Array=="function"){var O=new Uint8Array(F);return typeof crypto<"u"?crypto.getRandomValues(O):typeof msCrypto<"u"?msCrypto.getRandomValues(O):Ee(O,F),O}return Ee(new Array(F),F)}function ne(){var F=Be(x);F[6]=F[6]&79|64,F[8]=F[8]&191|128;for(var O="",L=0;L<x;++L){var U=F[L];(L===4||L===6||L===8)&&(O+="-"),U<16&&(O+="0"),O+=U.toString(16).toLowerCase()}return O}}function hi(x){return x.__=void 0,delete x.__,x}})})(Wr||(Wr={}));const ve=[];for(let n=0;n<256;++n)ve.push((n+256).toString(16).slice(1));function oc(n,e=0){return(ve[n[e+0]]+ve[n[e+1]]+ve[n[e+2]]+ve[n[e+3]]+"-"+ve[n[e+4]]+ve[n[e+5]]+"-"+ve[n[e+6]]+ve[n[e+7]]+"-"+ve[n[e+8]]+ve[n[e+9]]+"-"+ve[n[e+10]]+ve[n[e+11]]+ve[n[e+12]]+ve[n[e+13]]+ve[n[e+14]]+ve[n[e+15]]).toLowerCase()}const rc=new Uint8Array(16);function sc(){return crypto.getRandomValues(rc)}function Ht(n,e,i){return crypto.randomUUID?crypto.randomUUID():ac(n)}function ac(n,e,i){var r;n=n||{};const o=n.random??((r=n.rng)==null?void 0:r.call(n))??sc();if(o.length<16)throw new Error("Random bytes length must be >= 16");return o[6]=o[6]&15|64,o[8]=o[8]&63|128,oc(o)}class Fe{static UUID(){return Ht()}static GUID(){const e=function(){return((1+Math.random())*65536|0).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}}function lc(n){var e=[];if(n.length===0)return"";if(typeof n[0]!="string")throw new TypeError("Url must be a string. Received "+n[0]);if(n[0].match(/^[^/:]+:\/*$/)&&n.length>1){var i=n.shift();n[0]=i+n[0]}n[0].match(/^file:\/\/\//)?n[0]=n[0].replace(/^([^/:]+):\/*/,"$1:///"):n[0]=n[0].replace(/^([^/:]+):\/*/,"$1://");for(var o=0;o<n.length;o++){var r=n[o];if(typeof r!="string")throw new TypeError("Url must be a string. Received "+r);r!==""&&(o>0&&(r=r.replace(/^[\/]+/,"")),o<n.length-1?r=r.replace(/[\/]+$/,""):r=r.replace(/[\/]+$/,"/"),e.push(r))}var s=e.join("/");s=s.replace(/\/(\?|&|#[^!])/g,"$1");var a=s.split("?");return s=a.shift()+(a.length>0?"?":"")+a.join("&"),s}function So(){var n;return typeof arguments[0]=="object"?n=arguments[0]:n=[].slice.call(arguments),lc(n)}class re{static Capitalize(e){return e?e[0].toUpperCase()+e.slice(1):""}static BuildSafeUrl(e,i,o){try{const r=new URL(e);return i&&(r.port=i.toString()),So(r.toString(),o)}catch{throw new Error(`Invalid host URL: ${e}`)}}static ToCamelCase(e){const i=new RegExp(["[А-Я][а-я][A-Z][a-z]+","[А-Я]+(?=[А-Я][а-я])","[A-Z]+(?=[A-Z][a-z])","[А-Я]+","[A-Z]+","[а-я]+","[a-z]+","[0-9]+"].join("|"),"g");return e.match(i).map((r,s)=>s===0?r.toLowerCase():re.Capitalize(r.toLowerCase())).join("")}static ToKebabCase(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}static GetStringBetweenChars(e,i,o){return e.substring(e.indexOf(i)+2,e.lastIndexOf(o))}static Translit(e,i){const o={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 i&&/[а-яА-Я]/g.test(e)?e.replace(/[А-я/,.;'\][]/g,r=>{if(r===r.toLowerCase()){const a=Object.keys(o).find(d=>o[d]===r);return a||""}const s=Object.keys(o).find(a=>o[a]===r.toLowerCase());return s?s.toUpperCase():""}):e.replace(/[A-z/,.;'\][]/g,r=>r===r.toLowerCase()?o[r]:o[r.toLowerCase()].toUpperCase())}static RemoveEmoji(e){const i=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;return e.replace(i,"")}static CanBeTranslited(e){return/^[~`!@#$%^&*()_+=[\]\\{}|;':",.\/<>?a-zA-Z0-9-]+$/.test(e)}static StringsEquals(e,i){const o=e.toLowerCase().replaceAll(/\s/g,""),r=i.toLowerCase().replaceAll(/\s/g,""),s=re.Translit(o),a=re.Translit(r);return o.includes(r)||s.includes(r)||o.includes(a)}static SearchIn(e,i){return re.StringsEquals(e,i)}static SearchInFields(e,i){let o=!1;for(let r=0;r<i.length;r++)if(re.SearchIn(i[r],e)){o=!0;break}return o}static FormatToPercentage(e){return`${e}%`}static ApplyClassToSubStr(e,i,o){const r=o??"highlight-text",s=new RegExp(re.GetVariants(i).join("|"),"gi");return e.replace(s,`<span class="${r}">$&</span>`)}static GetVariants(e){const i=re.Translit(e);return[e,re.Capitalize(e),e.toLowerCase(),e.toUpperCase(),i,re.Capitalize(i),i.toLowerCase(),i.toUpperCase()]}static ContainsNum(e){return/\d/.test(e)}static JoinSnake(...e){return e.join("_")}static GetDynamicCountName(e,i){const o=[2,0,1,1,1,2];return e.length+" "+i[e.length%100>4&&e.length%100<20?2:o[e.length%10<5?e.length%10:5]]}static TrimText(e){return typeof e=="string"?e.trim():e}}const Qt=class Qt{static BuildClass(e,i){i&&Object.keys(i).forEach(o=>{const r=i[o];if(this.isPrimitive(r))e[o]instanceof Date?e[o]=new Date(r):e[o]=r;else if(r!=null&&!Array.isArray(r))if(e[o]&&e[o].constructor)e[o]=new e[o].constructor(r);else{const s=Reflect.getMetadata(o,e);s&&(e[o]=new s[o](r))}if(Array.isArray(r)){if(r.length===0)return;const s=Reflect.getMetadata(o,e);r.length!==0&&!s&&(e[o]=r),s&&(e[o]=r.map(a=>new s[o](a)))}})}static isPrimitive(e){return e!==null&&typeof e<"u"&&e!==Object(e)}static RemoveFromClassByIndex(e,i,o){Qt.RemoveFromClass(e,i,o)}static RemoveFromClassById(e,i,o){if(!e)return;const r=i.findIndex(s=>s.id===e);if(!(r<0))return Qt.RemoveFromClass(r,i,o),e}static RemoveFromClass(e,i,o){if(e<0)return;const r=i[e].id;r&&o&&o.push(r),i.splice(e,1)}static GetPropertyName(e){const i=new e;return new Proxy(i,{get(o,r){return r}})}static InitClassInstance(e,i){const o=e.constructor(i);return Qt.BuildClass(o),o.id=Fe.UUID(),o}static ExistsWithId(e,i){return e.some(o=>o.id===i)}static DeepMap(e){return i=>Array.isArray(i)?i.map(Qt.DeepMap(e)):Object(i)===i?Object.fromEntries(Object.entries(i).map(([o,r])=>[o,Qt.DeepMap(e)(r)])):e(i)}static DeepTrim(e){return this.DeepMap(re.TrimText)(e)}};l(Qt,"GetClassConstructor",e=>(i,o)=>{const r=Reflect.getMetadata(`property:${o}`,i)||{};r[o]=e,Reflect.defineMetadata(o,r,i)});let _=Qt;class Zt{constructor(e){l(this,"id");l(this,"address");l(this,"description");l(this,"contactId");_.BuildClass(this,e)}static Create(){const e=new Zt;return e.id=Fe.UUID(),e}}class Co{static Setup(e="http://localhost",i="9000",o="api"){this.staticUrl=re.BuildSafeUrl(e,i,o),this.staticUrl=So(this.staticUrl,"static")}static get StaticUrl(){return this.staticUrl}}l(Co,"staticUrl","");class Qe{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);_.BuildClass(this,e)}getFileUrl(){const e=this.url?this.url:`${Co.StaticUrl}/${this.fileSystemPath}`;return new URL(e,typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:yn&&yn.tagName.toUpperCase()==="SCRIPT"&&yn.src||new URL("sprof.umd.cjs",document.baseURI).href)}getFileListObject(){return{name:this.originalName,url:this.url}}static CreatePreviewFile(e,i){const o=new Qe;return o.id=i??Fe.UUID(),o.originalName=e.name,o.file=e.blob,o.fileSystemPath=Fe.UUID(),o}setFile(e){this.id||(this.id=Fe.UUID()),this.originalName=e.name,this.file=e,this.fileSystemPath=Fe.UUID(),this.url=e.src}clearFile(){this.url="",this.file=void 0,this.fileSystemPath="",this.originalName=""}errorImg(e,i){if(e.target){let o="";return i&&(o=`@/assets/img/${i}`),new URL(o,typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:yn&&yn.tagName.toUpperCase()==="SCRIPT"&&yn.src||new URL("sprof.umd.cjs",document.baseURI).href)}}getFileInfos(){return[this]}isPdf(){return this.getExtension(this.originalName)===""}getExtension(e){const i=e.split(".");return i[i.length-1]}}class Gr{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);_.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=re.Capitalize(this.name),this.surname=re.Capitalize(this.surname),this.patronymic=re.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 Jt{constructor(e){l(this,"id");l(this,"number");l(this,"description");l(this,"contactId");_.BuildClass(this,e)}static Create(){const e=new Jt;return e.id=Fe.UUID(),e}}class xi{constructor(e){l(this,"id");l(this,"address");l(this,"description");_.BuildClass(this,e)}}class Ei{constructor(e){l(this,"id");l(this,"login","");l(this,"email","");l(this,"password","");_.BuildClass(this,e)}static Create(){const e=new Ei;return e.id=Fe.UUID(),e}}class ko{constructor(e){l(this,"id");l(this,"address");l(this,"description");_.BuildClass(this,e)}}let cc=(_t=class{},l(_t,"Phone",Jt),l(_t,"FileInfo",Qe),l(_t,"Website",ko),l(_t,"Email",Zt),l(_t,"Human",Gr),l(_t,"PostAddress",xi),l(_t,"UserAccount",Ei),_t);var Se=(n=>(n.Eq="=",n.Ne="!=",n.Gt=">",n.Lt="<",n.Btw="between",n.In="in",n.Like="like",n.Null="is null",n.NotNull="is not null",n))(Se||{});class Bi{constructor(e){l(this,"field","");l(this,"operator",Se.Eq);l(this,"value","");_.BuildClass(this,e)}setValue(e){this.value=e}static Create(e,i){return new Bi({operator:i,field:e})}eq(e){return this.field===e.field&&this.operator===e.operator}isUnary(){return this.operator===Se.Eq||this.operator===Se.Gt||this.operator===Se.Lt}isBetween(){return this.operator===Se.Btw}isSet(){return this.operator===Se.In}}class xo{constructor(e){l(this,"model","");l(this,"field","");l(this,"value","");l(this,"wheres",[]);_.BuildClass(this,e)}static Create(e){const i=new xo;return i.model=e.GetClassName(),i}eq(e){return e.model===this.model&&e.field===this.field}addWhere(e,i){const o=this.findWhere({field:e,operator:i});if(o)return o;const r=Bi.Create(e,i);return this.wheres.push(r),r}findWhere(e){return this.wheres.find(i=>i.eq(e))}}let Qr=class Rl{constructor(e){l(this,"id");l(this,"model","");l(this,"wheres",[]);l(this,"joins",[]);_.BuildClass(this,e)}static Create(e){const i=new Rl;return i.model=e.GetClassName(),i}addWhere(e,i){const o=this.findWhere({field:e,operator:i});if(o)return o;const r=Bi.Create(e,i);return this.wheres.push(r),r}removeWhere(e){const i=this.wheres.findIndex(o=>o.eq(e));i>-1&&this.wheres.splice(i,1)}addJoin(e){const i=this.findJoin({model:e.GetClassName()});if(i)return i;const o=xo.Create(e);return this.joins.push(o),o}findJoin(e){return this.joins.find(i=>i.eq(e))}findWhere(e){return this.wheres.find(i=>i.eq(e))}toRef(){return t.ref(this)}};class Pt{static Shuffle(e){for(let i=e.length-1;i>0;i--){const o=Math.floor(Math.random()*(i+1));[e[i],e[o]]=[e[o],e[i]]}}static GenerateNumsRange(e,i,o=1){return Array.from({length:(i-e)/o+1},(r,s)=>e+s*o)}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((i,o)=>i.order=o)}static Refill(e,i){e.splice(0,e.length),e.push(...i)}static Eq(e,i){return e.length===i.length&&(e==null?void 0:e.every((o,r)=>e[r]==i[r]))}static SwipeById(e,i,o){const r=e.findIndex(a=>i.id===a.id),s=e.findIndex(a=>o.id===a.id);r<0||s<0||([e[r],e[s]]=[e[s],e[r]])}static Swap(e,i,o){if(i<0||i>=e.length||o<0||o>=e.length)return;const r=e[i];e[i]=e[o],e[o]=r}static MoveUp(e,i){e[i].order=i-1,e[i-1]&&(e[i-1].order=i),[e[i],e[i-1]]=[e[i-1],e[i]]}static MoveDown(e,i){e[i].order=i+1,e[i+1]&&(e[i+1].order=i),[e[i],e[i+1]]=[e[i+1],e[i]]}}var Pe=(n=>(n.Date="date",n.String="string",n.Boolean="boolean",n.Number="number",n.Set="set",n.Join="join",n.ArrayString="arrayString",n.ArrayNumber="arrayNumber",n))(Pe||{}),dc=Object.defineProperty,uc=(n,e,i,o)=>{for(var r=void 0,s=n.length-1,a;s>=0;s--)(a=n[s])&&(r=a(e,i,r)||r);return r&&dc(e,i,r),r};const Yr=class gi{constructor(e){l(this,"id");l(this,"model","");l(this,"label","");l(this,"col","");l(this,"operator",Se.Eq);l(this,"date1");l(this,"date2");l(this,"value1","");l(this,"boolean",!1);l(this,"number",0);l(this,"type",Pe.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","");_.BuildClass(this,e)}eq(e){if(!e)return!1;if(this.type===Pe.Join){const i=e.model===this.model&&e.operator===this.operator&&this.joinTableModel===e.joinTableModel;return e.operator===Se.In?i&&Pt.Eq(this.set,e.set):i}return e.model===this.model&&e.col===this.col&&e.operator===this.operator}valueEq(e){return!this||!e||!this.eq(e)?!1:this.type===Pe.Boolean?this.boolean===(e==null?void 0:e.boolean):this.type===Pe.String?this.value1===(e==null?void 0:e.value1):this.type===Pe.Join&&this.set.length?Pt.Eq(this.set,e.set):!1}toUrlQuery(){const e=this.type?`"type":"${this.type}"`:"",i=this.model?`"model":"${this.model}"`:"",o=this.col?`"col":"${this.col}"`:"",r=this.operator?`"operator":"${this.operator}"`:"",s=this.value1?`"value1":"${this.value1}"`:"",a=this.type===Pe.Boolean?`"boolean":${this.boolean}`:"",d=this.type===Pe.Date&&this.date1?`"date1":"${this.date1.toISOString()}"`:"",c=this.type===Pe.Date&&this.date2?`"date2":"${this.date2.toISOString()}"`:"",u=this.type===Pe.Number?`"number":${this.number}`:"",f=this.type===Pe.Set||this.operator===Se.In?`"set":${JSON.stringify(this.set)}`:"",h=this.type===Pe.Join?`"joinTableModel":"${this.joinTableModel}"`:"";return[e,i,o,r,s,a,d,c,u,f,h].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===Se.Eq||this.operator===Se.Gt||this.operator===Se.Lt}isBetweenFilter(){return this.operator===Se.Btw}isSetFilter(){return this.operator===Se.In}static Create(e,i,o){const r=new gi;return r.model=e.GetClassName(),r.col=i??"",r.type=o,r.type===Pe.Number&&(r.value1="0"),r.type===Pe.String&&(r.value1=""),r.type===Pe.Boolean&&(r.value1="false",r.operator=Se.Eq),r}static CreateFilterModelWithJoin(e,i,o,r,s,a,d,c){const u=new gi;return u.id=Ht(),u.joinTable=o,u.joinTablePk=r,u.joinTableFk=s,u.col=i,u.type=a,d&&(u.joinTableId=d),c&&(u.joinTableIdCol=c),u}static CreateFilterModelWithJoinV2(e,i,o,r,s,a,d){const c=new gi;return c.model=e,c.joinTableModel=o,c.joinTablePk=r,c.joinTableFk=s,c.col=i,c.type=Pe.Join,a&&(c.joinTableId=a),d&&(c.joinTableIdCol=d),c}static OnlyIfSecondModelExists(e,i){const o=new gi;return o.id=Ht(),o.model=re.ToCamelCase(e.GetClassName()),o.joinTableModel=re.ToCamelCase(i.GetClassName()),o.type=Pe.Join,o}addToSet(...e){e.forEach(i=>{if(this.set.indexOf(i)===-1){this.set.push(i);return}this.set=this.set.filter(o=>o!==i)})}pushToSet(...e){e.forEach(i=>{this.set.indexOf(i)===-1&&this.set.push(i)})}replaceSet(...e){this.set=e}setBoolean(e){this.boolean=e}toRef(){return t.ref(this)}setDate1(e){this.date1=e}setDate2(e){this.date2=e}dropDates(){this.setDate1(),this.setDate2()}setDatesRange(e,i){if(!e&&!i){this.dropDates();return}if(!i){this.setDate1(e),this.operator=Se.Eq;return}this.setDate2(i),this.operator=Se.Btw}};uc([_.GetClassConstructor(String)],Yr.prototype,"set");let Eo=Yr;class fc{constructor(){l(this,"operation",Se.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}"`:"",i=this.column?`"column":"${this.column}"`:"",o=this.value&&typeof this.value.toISOString=="function"?this.value.toISOString():this.value,r=o?`"value":"${o}"`:"",s=this.model?`"model":"${this.model}"`:"",a=`"initial":${this.initial}`;return[e,i,r,s,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 $i{constructor(e){l(this,"page",0);l(this,"rowsPerPage",25);l(this,"rowsNumber",0);l(this,"cursor",new fc);l(this,"cursorMode",!1);l(this,"append",!1);l(this,"allLoaded",!1);l(this,"version","");_.BuildClass(this,e)}setLoadMore(e,i,o){this.cursor.value=e,this.cursor.initial=!1,this.cursor.operation=Se.Gt,this.cursor.column=i,this.cursor.tableName=o,this.cursorMode=!0}setLoadMoreV2(e,i,o){this.cursor.value=e,this.cursor.initial=!1,this.cursor.operation=Se.Gt,this.cursor.column=i,this.cursor.model=o,this.cursorMode=!0,this.version="v2"}setOffset(e){this.page=e}toUrlQuery(){const e=`"offset":${this.offset}`,i=`"limit":${this.limit}`,o=`"cursorMode":${this.cursorMode}`,r=`"append":${this.append}`,s=`"allLoaded":${this.allLoaded}`,a=`"cursor":{${this.cursor.toUrlQuery()}}`;return[e,i,o,r,s,a].toString()}fromUrlQuery(){const e=window.location.search,i=e.substring(e.indexOf("p=")+2,e.lastIndexOf("|")),o=new URLSearchParams(decodeURIComponent(i));this.page=Number(o.get("offset")),this.rowsPerPage=Number(o.get("col"))}setAllLoaded(e){this.allLoaded=!(e>=this.rowsPerPage)}resetAllLoaded(){this.allLoaded=!1}getPageNum(){return this.page/this.rowsPerPage+1}drop(){this.page=0,this.rowsPerPage=25,_.BuildClass(this)}}var ct=(n=>(n.Asc="asc",n.Desc="desc",n))(ct||{});class Ni{constructor(e){l(this,"model","");l(this,"col","");l(this,"order");l(this,"label","");l(this,"default",!1);l(this,"selected",!1);_.BuildClass(this,e)}static Create(e,i,o=ct.Asc,r,s){const a=new Ni;return a.model=e.GetClassName(),a.col=i??"",a.order=o??ct.Asc,a.label=r??"",a.default=s??!1,a}isAsc(){return this.order===ct.Asc}isDesc(){return this.order===ct.Desc}eq(e){return e.model===this.model&&e.col===this.col&&e.order===this.order}toUrlQuery(){const e=this.model?`"model":"${this.model}"`:"",i=this.col?`"col":"${this.col}"`:"",o=this.order?`"order":"${this.order}"`:"";return[e,i,o].toString()}async fromUrlQuery(){const e=window.location.search,i=e.substring(e.indexOf("s=")+2,e.indexOf("|")),o=new URLSearchParams(decodeURIComponent(i));this.model=o.get("model")??"",this.col=o.get("col")??"",this.label=o.get("label")??"",this.default=!!o.get("default"),this.order=o.get("order")??""}asc(){this.order=ct.Asc}desc(){this.order=ct.Desc}}class Mi{constructor(){l(this,"model","");l(this,"cols",[]);l(this,"models",[])}static Create(e,i){const o=new Mi;return o.model=e.GetClassName(),o.cols=i,o}}var hc=Object.defineProperty,qn=(n,e,i,o)=>{for(var r=void 0,s=n.length-1,a;s>=0;s--)(a=n[s])&&(r=a(e,i,r)||r);return r&&hc(e,i,r),r};const Cn=(tt=class{constructor(e){l(this,"id");l(this,"f",[]);l(this,"f2",[]);l(this,"s",[]);l(this,"p",new $i);l(this,"t",new Mi);_.BuildClass(this,e)}static Get(){return this.instance||(this.instance=new tt),this.instance}createFrom(e){const i=new tt(JSON.parse(e));this.f=i.f}clearForHTTP(){const e=new tt(this);return e.f=this.f.map(i=>tt.EmptyEntiries(i)),e.f2=this.f2.map(i=>tt.EmptyEntiries(i)),e.s=this.s.map(i=>tt.EmptyEntiries(i)),e.p=tt.EmptyEntiries(this.p),e.t=tt.EmptyEntiries(this.t),e}static EmptyEntiries(e){if(!e)return;const o=Object.entries(e).filter(([r,s])=>r!=="label"&&s!==""&&s!==null);return Object.fromEntries(o)}findFilterModel(e){return this.f.find(i=>e.id===i.id)}getFirstSortModel(){return Pt.GetLast(this.s)}setSortModel(e){e&&(this.s[0]=e)}setS(e){this.s[0]=e}setF(e){this.f.push(e)}setF2(e){this.f2.push(e)}replaceF(e,i){this.removeF(i),e&&this.setF(e)}removeF(e){const i=this.f.findIndex(o=>o.eq(e));_.RemoveFromClassByIndex(i,this.f)}reset(){this.f=[],this.s=[],this.p=new $i}resetF(){this.f=[]}},l(tt,"instance"),tt);qn([_.GetClassConstructor(Eo)],Cn.prototype,"f"),qn([_.GetClassConstructor(Qr)],Cn.prototype,"f2"),qn([_.GetClassConstructor(Ni)],Cn.prototype,"s"),qn([_.GetClassConstructor($i)],Cn.prototype,"p"),qn([_.GetClassConstructor(Mi)],Cn.prototype,"t");let Rt=Cn,mc=(Ln=class{},l(Ln,"SortModel",Ni),l(Ln,"FilterModel",Eo),l(Ln,"FilterModelV2",Qr),l(Ln,"FTSP",Rt),Ln);function Xr(n,e){return function(){return n.apply(e,arguments)}}const{toString:pc}=Object.prototype,{getPrototypeOf:kn}=Object,{iterator:Wn,toStringTag:Zr}=Symbol,Vi=(({hasOwnProperty:n})=>(e,i)=>n.call(e,i))(Object.prototype),Gn=(n,e)=>{let i=n;const o=[];for(;i!=null&&i!==Object.prototype;){if(o.indexOf(i)!==-1)return!1;if(o.push(i),Vi(i,e))return!0;i=kn(i)}return!1},gc=(n,e)=>n!=null&&Gn(n,e)?n[e]:void 0,Bo=(n=>e=>{const i=pc.call(e);return n[i]||(n[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),gt=n=>(n=n.toLowerCase(),e=>Bo(e)===n),Ii=n=>e=>typeof e===n,{isArray:Kt}=Array,xn=Ii("undefined");function En(n){return n!==null&&!xn(n)&&n.constructor!==null&&!xn(n.constructor)&&Ke(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Jr=gt("ArrayBuffer");function yc(n){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(n):e=n&&n.buffer&&Jr(n.buffer),e}const wc=Ii("string"),Ke=Ii("function"),Kr=Ii("number"),Bn=n=>n!==null&&typeof n=="object",bc=n=>n===!0||n===!1,Ti=n=>{if(!Bn(n))return!1;const e=kn(n);return(e===null||e===Object.prototype||kn(e)===null)&&!Gn(n,Zr)&&!Gn(n,Wn)},Sc=n=>{if(!Bn(n)||En(n))return!1;try{return Object.keys(n).length===0&&Object.getPrototypeOf(n)===Object.prototype}catch{return!1}},Cc=gt("Date"),kc=gt("File"),xc=n=>!!(n&&typeof n.uri<"u"),Ec=n=>n&&typeof n.getParts<"u",Bc=gt("Blob"),$c=gt("FileList"),Nc=n=>Bn(n)&&Ke(n.pipe);function Mc(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const es=Mc(),ts=typeof es.FormData<"u"?es.FormData:void 0,Vc=n=>{if(!n)return!1;if(ts&&n instanceof ts)return!0;const e=kn(n);if(!e||e===Object.prototype||!Ke(n.append))return!1;const i=Bo(n);return i==="formdata"||i==="object"&&Ke(n.toString)&&n.toString()==="[object FormData]"},Ic=gt("URLSearchParams"),[Tc,Pc,Rc,Ac]=["ReadableStream","Request","Response","Headers"].map(gt),zc=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Qn(n,e,{allOwnKeys:i=!1}={}){if(n===null||typeof n>"u")return;let o,r;if(typeof n!="object"&&(n=[n]),Kt(n))for(o=0,r=n.length;o<r;o++)e.call(null,n[o],o,n);else{if(En(n))return;const s=i?Object.getOwnPropertyNames(n):Object.keys(n),a=s.length;let d;for(o=0;o<a;o++)d=s[o],e.call(null,n[d],d,n)}}function ns(n,e){if(En(n))return null;e=e.toLowerCase();const i=Object.keys(n);let o=i.length,r;for(;o-- >0;)if(r=i[o],e===r.toLowerCase())return r;return null}const en=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,is=n=>!xn(n)&&n!==en;function $o(...n){const{caseless:e,skipUndefined:i}=is(this)&&this||{},o={},r=(s,a)=>{if(a==="__proto__"||a==="constructor"||a==="prototype")return;const d=e&&typeof a=="string"&&ns(o,a)||a,c=Vi(o,d)?o[d]:void 0;Ti(c)&&Ti(s)?o[d]=$o(c,s):Ti(s)?o[d]=$o({},s):Kt(s)?o[d]=s.slice():(!i||!xn(s))&&(o[d]=s)};for(let s=0,a=n.length;s<a;s++){const d=n[s];if(!d||En(d)||(Qn(d,r),typeof d!="object"||Kt(d)))continue;const c=Object.getOwnPropertySymbols(d);for(let u=0;u<c.length;u++){const f=c[u];Gc.call(d,f)&&r(d[f],f)}}return o}const Dc=(n,e,i,{allOwnKeys:o}={})=>(Qn(e,(r,s)=>{i&&Ke(r)?Object.defineProperty(n,s,{__proto__:null,value:Xr(r,i),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(n,s,{__proto__:null,value:r,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:o}),n),vc=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),Fc=(n,e,i,o)=>{n.prototype=Object.create(e.prototype,o),Object.defineProperty(n.prototype,"constructor",{__proto__:null,value:n,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(n,"super",{__proto__:null,value:e.prototype}),i&&Object.assign(n.prototype,i)},_c=(n,e,i,o)=>{let r,s,a;const d={};if(e=e||{},n==null)return e;do{for(r=Object.getOwnPropertyNames(n),s=r.length;s-- >0;)a=r[s],(!o||o(a,n,e))&&!d[a]&&(e[a]=n[a],d[a]=!0);n=i!==!1&&kn(n)}while(n&&(!i||i(n,e))&&n!==Object.prototype);return e},Oc=(n,e,i)=>{n=String(n),(i===void 0||i>n.length)&&(i=n.length),i-=e.length;const o=n.indexOf(e,i);return o!==-1&&o===i},Lc=n=>{if(!n)return null;if(Kt(n))return n;let e=n.length;if(!Kr(e))return null;const i=new Array(e);for(;e-- >0;)i[e]=n[e];return i},Hc=(n=>e=>n&&e instanceof n)(typeof Uint8Array<"u"&&kn(Uint8Array)),Uc=(n,e)=>{const o=(n&&n[Wn]).call(n);let r;for(;(r=o.next())&&!r.done;){const s=r.value;e.call(n,s[0],s[1])}},jc=(n,e)=>{let i;const o=[];for(;(i=n.exec(e))!==null;)o.push(i);return o},qc=gt("HTMLFormElement"),Wc=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,o,r){return o.toUpperCase()+r}),{propertyIsEnumerable:Gc}=Object.prototype,Qc=gt("RegExp"),os=(n,e)=>{const i=Object.getOwnPropertyDescriptors(n),o={};Qn(i,(r,s)=>{let a;(a=e(r,s,n))!==!1&&(o[s]=a||r)}),Object.defineProperties(n,o)},Yc=n=>{os(n,(e,i)=>{if(Ke(n)&&["arguments","caller","callee"].includes(i))return!1;const o=n[i];if(Ke(o)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},Xc=(n,e)=>{const i={},o=r=>{r.forEach(s=>{i[s]=!0})};return Kt(n)?o(n):o(String(n).split(e)),i},Zc=()=>{},Jc=(n,e)=>n!=null&&Number.isFinite(n=+n)?n:e;function Kc(n){return!!(n&&Ke(n.append)&&n[Zr]==="FormData"&&n[Wn])}const ed=n=>{const e=new WeakSet,i=o=>{if(Bn(o)){if(e.has(o))return;if(En(o))return o;if(!("toJSON"in o)){e.add(o);const r=Kt(o)?[]:{};return Qn(o,(s,a)=>{const d=i(s);!xn(d)&&(r[a]=d)}),e.delete(o),r}}return o};return i(n)},td=gt("AsyncFunction"),nd=n=>n&&(Bn(n)||Ke(n))&&Ke(n.then)&&Ke(n.catch),rs=((n,e)=>n?setImmediate:e?((i,o)=>(en.addEventListener("message",({source:r,data:s})=>{r===en&&s===i&&o.length&&o.shift()()},!1),r=>{o.push(r),en.postMessage(i,"*")}))(`axios@${Math.random()}`,[]):i=>setTimeout(i))(typeof setImmediate=="function",Ke(en.postMessage)),id=typeof queueMicrotask<"u"?queueMicrotask.bind(en):typeof process<"u"&&process.nextTick||rs,ss=n=>n!=null&&Ke(n[Wn]),b={isArray:Kt,isArrayBuffer:Jr,isBuffer:En,isFormData:Vc,isArrayBufferView:yc,isString:wc,isNumber:Kr,isBoolean:bc,isObject:Bn,isPlainObject:Ti,isEmptyObject:Sc,isReadableStream:Tc,isRequest:Pc,isResponse:Rc,isHeaders:Ac,isUndefined:xn,isDate:Cc,isFile:kc,isReactNativeBlob:xc,isReactNative:Ec,isBlob:Bc,isRegExp:Qc,isFunction:Ke,isStream:Nc,isURLSearchParams:Ic,isTypedArray:Hc,isFileList:$c,forEach:Qn,merge:$o,extend:Dc,trim:zc,stripBOM:vc,inherits:Fc,toFlatObject:_c,kindOf:Bo,kindOfTest:gt,endsWith:Oc,toArray:Lc,forEachEntry:Uc,matchAll:jc,isHTMLForm:qc,hasOwnProperty:Vi,hasOwnProp:Vi,hasOwnInPrototypeChain:Gn,getSafeProp:gc,reduceDescriptors:os,freezeMethods:Yc,toObjectSet:Xc,toCamelCase:Wc,noop:Zc,toFiniteNumber:Jc,findKey:ns,global:en,isContextDefined:is,isSpecCompliantForm:Kc,toJSONObject:ed,isAsyncFn:td,isThenable:nd,setImmediate:rs,asap:id,isIterable:ss,isSafeIterable:n=>n!=null&&Gn(n,Wn)&&ss(n)},od=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"]),rd=n=>{const e={};let i,o,r;return n&&n.split(`
15
15
  `).forEach(function(a){r=a.indexOf(":"),i=a.substring(0,r).trim().toLowerCase(),o=a.substring(r+1).trim(),!(!i||e[i]&&od[i])&&(i==="set-cookie"?e[i]?e[i].push(o):e[i]=[o]:e[i]=e[i]?e[i]+", "+o:o)}),e};function sd(n){let e=0,i=n.length;for(;e<i;){const o=n.charCodeAt(e);if(o!==9&&o!==32)break;e+=1}for(;i>e;){const o=n.charCodeAt(i-1);if(o!==9&&o!==32)break;i-=1}return e===0&&i===n.length?n:n.slice(e,i)}const ad=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),ld=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function No(n,e){return b.isArray(n)?n.map(i=>No(i,e)):sd(String(n).replace(e,""))}const cd=n=>No(n,ad),dd=n=>No(n,ld);function as(n){const e=Object.create(null);return b.forEach(n.toJSON(),(i,o)=>{e[o]=dd(i)}),e}const ls=Symbol("internals");function Yn(n){return n&&String(n).trim().toLowerCase()}function Pi(n){return n===!1||n==null?n:b.isArray(n)?n.map(Pi):cd(String(n))}function ud(n){const e=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=i.exec(n);)e[o[1]]=o[2];return e}const fd=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function Mo(n,e,i,o,r){if(b.isFunction(o))return o.call(this,e,i);if(r&&(e=i),!!b.isString(e)){if(b.isString(o))return e.indexOf(o)!==-1;if(b.isRegExp(o))return o.test(e)}}function hd(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,i,o)=>i.toUpperCase()+o)}function md(n,e){const i=b.toCamelCase(" "+e);["get","set","has"].forEach(o=>{Object.defineProperty(n,o+i,{__proto__:null,value:function(r,s,a){return this[o].call(this,e,r,s,a)},configurable:!0})})}let Ue=class{constructor(e){e&&this.set(e)}set(e,i,o){const r=this;function s(d,c,u){const f=Yn(c);if(!f)return;const h=b.findKey(r,f);(!h||r[h]===void 0||u===!0||u===void 0&&r[h]!==!1)&&(r[h||c]=Pi(d))}const a=(d,c)=>b.forEach(d,(u,f)=>s(u,f,c));if(b.isPlainObject(e)||e instanceof this.constructor)a(e,i);else if(b.isString(e)&&(e=e.trim())&&!fd(e))a(rd(e),i);else if(b.isObject(e)&&b.isSafeIterable(e)){let d=Object.create(null),c,u;for(const f of e){if(!b.isArray(f))throw new TypeError("Object iterator must return a key-value pair");u=f[0],b.hasOwnProp(d,u)?(c=d[u],d[u]=b.isArray(c)?[...c,f[1]]:[c,f[1]]):d[u]=f[1]}a(d,i)}else e!=null&&s(i,e,o);return this}get(e,i){if(e=Yn(e),e){const o=b.findKey(this,e);if(o){const r=this[o];if(!i)return r;if(i===!0)return ud(r);if(b.isFunction(i))return i.call(this,r,o);if(b.isRegExp(i))return i.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,i){if(e=Yn(e),e){const o=b.findKey(this,e);return!!(o&&this[o]!==void 0&&(!i||Mo(this,this[o],o,i)))}return!1}delete(e,i){const o=this;let r=!1;function s(a){if(a=Yn(a),a){const d=b.findKey(o,a);d&&(!i||Mo(o,o[d],d,i))&&(delete o[d],r=!0)}}return b.isArray(e)?e.forEach(s):s(e),r}clear(e){const i=Object.keys(this);let o=i.length,r=!1;for(;o--;){const s=i[o];(!e||Mo(this,this[s],s,e,!0))&&(delete this[s],r=!0)}return r}normalize(e){const i=this,o={};return b.forEach(this,(r,s)=>{const a=b.findKey(o,s);if(a){i[a]=Pi(r),delete i[s];return}const d=e?hd(s):String(s).trim();d!==s&&delete i[s],i[d]=Pi(r),o[d]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const i=Object.create(null);return b.forEach(this,(o,r)=>{o!=null&&o!==!1&&(i[r]=e&&b.isArray(o)?o.join(", "):o)}),i}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,i])=>e+": "+i).join(`
16
16
  `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...i){const o=new this(e);return i.forEach(r=>o.set(r)),o}static accessor(e){const o=(this[ls]=this[ls]={accessors:{}}).accessors,r=this.prototype;function s(a){const d=Yn(a);o[d]||(md(r,a),o[d]=!0)}return b.isArray(e)?e.forEach(s):s(e),this}};Ue.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),b.reduceDescriptors(Ue.prototype,({value:n},e)=>{let i=e[0].toUpperCase()+e.slice(1);return{get:()=>n,set(o){this[i]=o}}}),b.freezeMethods(Ue);const pd="[REDACTED ****]";function gd(n){if(b.hasOwnProp(n,"toJSON"))return!0;let e=Object.getPrototypeOf(n);for(;e&&e!==Object.prototype;){if(b.hasOwnProp(e,"toJSON"))return!0;e=Object.getPrototypeOf(e)}return!1}function yd(n,e){const i=new Set(e.map(s=>String(s).toLowerCase())),o=[],r=s=>{if(s===null||typeof s!="object"||b.isBuffer(s))return s;if(o.indexOf(s)!==-1)return;s instanceof Ue&&(s=s.toJSON()),o.push(s);let a;if(b.isArray(s))a=[],s.forEach((d,c)=>{const u=r(d);b.isUndefined(u)||(a[c]=u)});else{if(!b.isPlainObject(s)&&gd(s))return o.pop(),s;a=Object.create(null);for(const[d,c]of Object.entries(s)){const u=i.has(d.toLowerCase())?pd:r(c);b.isUndefined(u)||(a[d]=u)}}return o.pop(),a};return r(n)}let D=class Al extends Error{static from(e,i,o,r,s,a){const d=new Al(e.message,i||e.code,o,r,s);return Object.defineProperty(d,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),d.name=e.name,e.status!=null&&d.status==null&&(d.status=e.status),a&&Object.assign(d,a),d}constructor(e,i,o,r,s){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,i&&(this.code=i),o&&(this.config=o),r&&(this.request=r),s&&(this.response=s,this.status=s.status)}toJSON(){const e=this.config,i=e&&b.hasOwnProp(e,"redact")?e.redact:void 0,o=b.isArray(i)&&i.length>0?yd(e,i):b.toJSONObject(e);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:o,code:this.code,status:this.status}}};D.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",D.ERR_BAD_OPTION="ERR_BAD_OPTION",D.ECONNABORTED="ECONNABORTED",D.ETIMEDOUT="ETIMEDOUT",D.ECONNREFUSED="ECONNREFUSED",D.ERR_NETWORK="ERR_NETWORK",D.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",D.ERR_DEPRECATED="ERR_DEPRECATED",D.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",D.ERR_BAD_REQUEST="ERR_BAD_REQUEST",D.ERR_CANCELED="ERR_CANCELED",D.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",D.ERR_INVALID_URL="ERR_INVALID_URL",D.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const wd=null,cs=100;function Vo(n){return b.isPlainObject(n)||b.isArray(n)}function ds(n){return b.endsWith(n,"[]")?n.slice(0,-2):n}function Io(n,e,i){return n?n.concat(e).map(function(r,s){return r=ds(r),!i&&s?"["+r+"]":r}).join(i?".":""):e}function bd(n){return b.isArray(n)&&!n.some(Vo)}const Sd=b.toFlatObject(b,{},null,function(e){return/^is[A-Z]/.test(e)});function Ri(n,e,i){if(!b.isObject(n))throw new TypeError("target must be an object");e=e||new FormData,i=b.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(N,k){return!b.isUndefined(k[N])});const o=i.metaTokens,r=i.visitor||y,s=i.dots,a=i.indexes,d=i.Blob||typeof Blob<"u"&&Blob,c=i.maxDepth===void 0?cs:i.maxDepth,u=d&&b.isSpecCompliantForm(e),f=[];if(!b.isFunction(r))throw new TypeError("visitor must be a function");function h(E){if(E===null)return"";if(b.isDate(E))return E.toISOString();if(b.isBoolean(E))return E.toString();if(!u&&b.isBlob(E))throw new D("Blob is not supported. Use a Buffer instead.");if(b.isArrayBuffer(E)||b.isTypedArray(E)){if(u&&typeof d=="function")return new d([E]);if(typeof Buffer<"u")return Buffer.from(E);throw new D("Blob is not supported. Use a Buffer instead.",D.ERR_NOT_SUPPORT)}return E}function m(E){if(E>c)throw new D("Object is too deeply nested ("+E+" levels). Max depth: "+c,D.ERR_FORM_DATA_DEPTH_EXCEEDED)}function w(E,N){if(c===1/0)return JSON.stringify(E);const k=[];return JSON.stringify(E,function(v,Z){if(!b.isObject(Z))return Z;for(;k.length&&k[k.length-1]!==this;)k.pop();return k.push(Z),m(N+k.length-1),Z})}function y(E,N,k){let R=E;if(b.isReactNative(e)&&b.isReactNativeBlob(E))return e.append(Io(k,N,s),h(E)),!1;if(E&&!k&&typeof E=="object"){if(b.endsWith(N,"{}"))N=o?N:N.slice(0,-2),E=w(E,1);else if(b.isArray(E)&&bd(E)||(b.isFileList(E)||b.endsWith(N,"[]"))&&(R=b.toArray(E)))return N=ds(N),R.forEach(function(Z,K){!(b.isUndefined(Z)||Z===null)&&e.append(a===!0?Io([N],K,s):a===null?N:N+"[]",h(Z))}),!1}return Vo(E)?!0:(e.append(Io(k,N,s),h(E)),!1)}const C=Object.assign(Sd,{defaultVisitor:y,convertValue:h,isVisitable:Vo});function B(E,N,k=0){if(!b.isUndefined(E)){if(m(k),f.indexOf(E)!==-1)throw new Error("Circular reference detected in "+N.join("."));f.push(E),b.forEach(E,function(v,Z){(!(b.isUndefined(v)||v===null)&&r.call(e,v,b.isString(Z)?Z.trim():Z,N,C))===!0&&B(v,N?N.concat(Z):[Z],k+1)}),f.pop()}}if(!b.isObject(n))throw new TypeError("data must be an object");return B(n),e}function us(n){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(n).replace(/[!'()~]|%20/g,function(o){return e[o]})}function To(n,e){this._pairs=[],n&&Ri(n,this,e)}const fs=To.prototype;fs.append=function(e,i){this._pairs.push([e,i])},fs.toString=function(e){const i=e?o=>e.call(this,o,us):us;return this._pairs.map(function(r){return i(r[0])+"="+i(r[1])},"").join("&")};function Cd(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function hs(n,e,i){if(!e)return n;n=n||"";const o=b.isFunction(i)?{serialize:i}:i,r=b.getSafeProp(o,"encode")||Cd,s=b.getSafeProp(o,"serialize");let a;if(s?a=s(e,o):a=b.isURLSearchParams(e)?e.toString():new To(e,o).toString(r),a){const d=n.indexOf("#");d!==-1&&(n=n.slice(0,d)),n+=(n.indexOf("?")===-1?"?":"&")+a}return n}class ms{constructor(){this.handlers=[]}use(e,i,o){return this.handlers.push({fulfilled:e,rejected:i,synchronous:o?o.synchronous:!1,runWhen:o?o.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(o){o!==null&&e(o)})}}const Po={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},kd={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:To,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Ro=typeof window<"u"&&typeof document<"u",Ao=typeof navigator=="object"&&navigator||void 0,xd=Ro&&(!Ao||["ReactNative","NativeScript","NS"].indexOf(Ao.product)<0),Ed=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Bd=Ro&&window.location.href||"http://localhost",_e={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ro,hasStandardBrowserEnv:xd,hasStandardBrowserWebWorkerEnv:Ed,navigator:Ao,origin:Bd},Symbol.toStringTag,{value:"Module"})),...kd};function $d(n,e){return Ri(n,new _e.classes.URLSearchParams,{visitor:function(i,o,r,s){return _e.isNode&&b.isBuffer(i)?(this.append(o,i.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...e})}const ps=cs;function gs(n){if(n>ps)throw new D("FormData field is too deeply nested ("+n+" levels). Max depth: "+ps,D.ERR_FORM_DATA_DEPTH_EXCEEDED)}function Nd(n){const e=[],i=/\w+|\[(\w*)]/g;let o;for(;(o=i.exec(n))!==null;)gs(e.length),e.push(o[0]==="[]"?"":o[1]||o[0]);return e}function Md(n){const e={},i=Object.keys(n);let o;const r=i.length;let s;for(o=0;o<r;o++)s=i[o],e[s]=n[s];return e}function ys(n){function e(i,o,r,s){gs(s);let a=i[s++];if(a==="__proto__")return!0;const d=Number.isFinite(+a),c=s>=i.length;return a=!a&&b.isArray(r)?r.length:a,c?(b.hasOwnProp(r,a)?r[a]=b.isArray(r[a])?r[a].concat(o):[r[a],o]:r[a]=o,!d):((!b.hasOwnProp(r,a)||!b.isObject(r[a]))&&(r[a]=[]),e(i,o,r[a],s)&&b.isArray(r[a])&&(r[a]=Md(r[a])),!d)}if(b.isFormData(n)&&b.isFunction(n.entries)){const i={};return b.forEachEntry(n,(o,r)=>{e(Nd(o),r,i,0)}),i}return null}const $n=(n,e)=>n!=null&&b.hasOwnProp(n,e)?n[e]:void 0;function Vd(n,e,i){if(b.isString(n))try{return(e||JSON.parse)(n),b.trim(n)}catch(o){if(o.name!=="SyntaxError")throw o}return(i||JSON.stringify)(n)}const Xn={transitional:Po,adapter:["xhr","http","fetch"],transformRequest:[function(e,i){const o=i.getContentType()||"",r=o.indexOf("application/json")>-1,s=b.isObject(e);if(s&&b.isHTMLForm(e)&&(e=new FormData(e)),b.isFormData(e))return r?JSON.stringify(ys(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 i.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let d;if(s){const c=$n(this,"formSerializer");if(o.indexOf("application/x-www-form-urlencoded")>-1)return $d(e,c).toString();if((d=b.isFileList(e))||o.indexOf("multipart/form-data")>-1){const u=$n(this,"env"),f=u&&u.FormData;return Ri(d?{"files[]":e}:e,f&&new f,c)}}return s||r?(i.setContentType("application/json",!1),Vd(e)):e}],transformResponse:[function(e){const i=$n(this,"transitional")||Xn.transitional,o=i&&i.forcedJSONParsing,r=$n(this,"responseType"),s=r==="json";if(b.isResponse(e)||b.isReadableStream(e))return e;if(e&&b.isString(e)&&(o&&!r||s)){const d=!(i&&i.silentJSONParsing)&&s;try{return JSON.parse(e,$n(this,"parseReviver"))}catch(c){if(d)throw c.name==="SyntaxError"?D.from(c,D.ERR_BAD_RESPONSE,this,null,$n(this,"response")):c}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:_e.classes.FormData,Blob:_e.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","query"],n=>{Xn.headers[n]={}});function zo(n,e){const i=this||Xn,o=e||i,r=Ue.from(o.headers);let s=o.data;return b.forEach(n,function(d){s=d.call(i,s,r.normalize(),e?e.status:void 0)}),r.normalize(),s}function ws(n){return!!(n&&n.__CANCEL__)}let Zn=class extends D{constructor(e,i,o){super(e??"canceled",D.ERR_CANCELED,i,o),this.name="CanceledError",this.__CANCEL__=!0}};function bs(n,e,i){const o=i.config.validateStatus;!i.status||!o||o(i.status)?n(i):e(new D("Request failed with status code "+i.status,i.status>=400&&i.status<500?D.ERR_BAD_REQUEST:D.ERR_BAD_RESPONSE,i.config,i.request,i))}function Id(n){const e=/^([-+\w]{1,25}):(?:\/\/)?/.exec(n);return e&&e[1]||""}function Td(n,e){n=n||10;const i=new Array(n),o=new Array(n);let r=0,s=0,a;return e=e!==void 0?e:1e3,function(c){const u=Date.now(),f=o[s];a||(a=u),i[r]=c,o[r]=u;let h=s,m=0;for(;h!==r;)m+=i[h++],h=h%n;if(r=(r+1)%n,r===s&&(s=(s+1)%n),u-a<e)return;const w=f&&u-f;return w?Math.round(m*1e3/w):void 0}}function Pd(n,e){let i=0,o=1e3/e,r,s;const a=(u,f=Date.now())=>{i=f,r=null,s&&(clearTimeout(s),s=null),n(...u)};return[(...u)=>{const f=Date.now(),h=f-i;h>=o?a(u,f):(r=u,s||(s=setTimeout(()=>{s=null,a(r)},o-h)))},()=>r&&a(r)]}const Ai=(n,e,i=3)=>{let o=0;const r=Td(50,250);return Pd(s=>{if(!s||typeof s.loaded!="number")return;const a=s.loaded,d=s.lengthComputable?s.total:void 0,c=d!=null?Math.min(a,d):a,u=Math.max(0,c-o),f=r(u);o=Math.max(o,c);const h={loaded:c,total:d,progress:d?c/d:void 0,bytes:u,rate:f||void 0,estimated:f&&d?(d-c)/f:void 0,event:s,lengthComputable:d!=null,[e?"download":"upload"]:!0};n(h)},i)},Ss=(n,e)=>{const i=n!=null;return[o=>e[0]({lengthComputable:i,total:n,loaded:o}),e[1]]},Cs=n=>(...e)=>b.asap(()=>n(...e)),Rd=_e.hasStandardBrowserEnv?((n,e)=>i=>(i=new URL(i,_e.origin),n.protocol===i.protocol&&n.host===i.host&&(e||n.port===i.port)))(new URL(_e.origin),_e.navigator&&/(msie|trident)/i.test(_e.navigator.userAgent)):()=>!0,Ad=_e.hasStandardBrowserEnv?{write(n,e,i,o,r,s,a){if(typeof document>"u")return;const d=[`${n}=${encodeURIComponent(e)}`];b.isNumber(i)&&d.push(`expires=${new Date(i).toUTCString()}`),b.isString(o)&&d.push(`path=${o}`),b.isString(r)&&d.push(`domain=${r}`),s===!0&&d.push("secure"),b.isString(a)&&d.push(`SameSite=${a}`),document.cookie=d.join("; ")},read(n){if(typeof document>"u")return null;const e=document.cookie.split(";");for(let i=0;i<e.length;i++){const o=e[i].replace(/^\s+/,""),r=o.indexOf("=");if(r!==-1&&o.slice(0,r)===n)try{return decodeURIComponent(o.slice(r+1))}catch{return o.slice(r+1)}}return null},remove(n){this.write(n,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function zd(n){return typeof n!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function Dd(n,e){return e?n.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):n}const vd=/^https?:(?!\/\/)/i,Fd=/[\t\n\r]/g;function _d(n){let e=0;for(;e<n.length&&n.charCodeAt(e)<=32;)e++;return n.slice(e)}function Od(n){return _d(n).replace(Fd,"")}function ks(n,e){if(typeof n=="string"&&vd.test(Od(n)))throw new D('Invalid URL: missing "//" after protocol',D.ERR_INVALID_URL,e)}function xs(n,e,i,o){ks(e,o);let r=!zd(e);return n&&(r||i===!1)?(ks(n,o),Dd(n,e)):e}const Es=n=>n instanceof Ue?{...n}:n;function tn(n,e){n=n||{},e=e||{};const i=Object.create(null);Object.defineProperty(i,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function o(f,h,m,w){return b.isPlainObject(f)&&b.isPlainObject(h)?b.merge.call({caseless:w},f,h):b.isPlainObject(h)?b.merge({},h):b.isArray(h)?h.slice():h}function r(f,h,m,w){if(b.isUndefined(h)){if(!b.isUndefined(f))return o(void 0,f,m,w)}else return o(f,h,m,w)}function s(f,h){if(!b.isUndefined(h))return o(void 0,h)}function a(f,h){if(b.isUndefined(h)){if(!b.isUndefined(f))return o(void 0,f)}else return o(void 0,h)}function d(f){const h=b.hasOwnProp(e,"transitional")?e.transitional:void 0;if(!b.isUndefined(h))if(b.isPlainObject(h)){if(b.hasOwnProp(h,f))return h[f]}else return;const m=b.hasOwnProp(n,"transitional")?n.transitional:void 0;if(b.isPlainObject(m)&&b.hasOwnProp(m,f))return m[f]}function c(f,h,m){if(b.hasOwnProp(e,m))return o(f,h);if(b.hasOwnProp(n,m))return o(void 0,f)}const u={url:s,method:s,data:s,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,allowedSocketPaths:a,responseEncoding:a,validateStatus:c,headers:(f,h,m)=>r(Es(f),Es(h),m,!0)};return b.forEach(Object.keys({...n,...e}),function(h){if(h==="__proto__"||h==="constructor"||h==="prototype")return;const m=b.hasOwnProp(u,h)?u[h]:r,w=b.hasOwnProp(n,h)?n[h]:void 0,y=b.hasOwnProp(e,h)?e[h]:void 0,C=m(w,y,h);b.isUndefined(C)&&m!==c||(i[h]=C)}),b.hasOwnProp(e,"validateStatus")&&b.isUndefined(e.validateStatus)&&d("validateStatusUndefinedResolves")===!1&&(b.hasOwnProp(n,"validateStatus")?i.validateStatus=o(void 0,n.validateStatus):delete i.validateStatus),i}const Ld=["content-type","content-length"];function Hd(n,e,i){if(i!=="content-only"){n.set(e);return}Object.entries(e||{}).forEach(([o,r])=>{Ld.includes(o.toLowerCase())&&n.set(o,r)})}const Ud=n=>encodeURIComponent(n).replace(/%([0-9A-F]{2})/gi,(e,i)=>String.fromCharCode(parseInt(i,16)));function Bs(n){const e=tn({},n),i=m=>b.hasOwnProp(e,m)?e[m]:void 0,o=i("data");let r=i("withXSRFToken");const s=i("xsrfHeaderName"),a=i("xsrfCookieName");let d=i("headers");const c=i("auth"),u=i("baseURL"),f=i("allowAbsoluteUrls"),h=i("url");if(e.headers=d=Ue.from(d),e.url=hs(xs(u,h,f,e),i("params"),i("paramsSerializer")),c){const m=b.getSafeProp(c,"username")||"",w=b.getSafeProp(c,"password")||"";try{d.set("Authorization","Basic "+btoa(m+":"+(w?Ud(w):"")))}catch(y){throw D.from(y,D.ERR_BAD_OPTION_VALUE,n)}}if(b.isFormData(o)&&(_e.hasStandardBrowserEnv||_e.hasStandardBrowserWebWorkerEnv||b.isReactNative(o)?d.setContentType(void 0):b.isFunction(o.getHeaders)&&Hd(d,o.getHeaders(),i("formDataHeaderPolicy"))),_e.hasStandardBrowserEnv&&(b.isFunction(r)&&(r=r(e)),r===!0||r==null&&Rd(e.url))){const w=s&&a&&Ad.read(a);w&&d.set(s,w)}return e}const jd=typeof XMLHttpRequest<"u"&&function(n){return new Promise(function(i,o){const r=Bs(n);let s=r.data;const a=Ue.from(r.headers).normalize();let{responseType:d,onUploadProgress:c,onDownloadProgress:u}=r,f,h,m,w,y;function C(){w&&w(),y&&y(),r.cancelToken&&r.cancelToken.unsubscribe(f),r.signal&&r.signal.removeEventListener("abort",f)}let B=new XMLHttpRequest;B.open(r.method.toUpperCase(),r.url,!0),B.timeout=r.timeout;function E(){if(!B)return;const k=Ue.from("getAllResponseHeaders"in B&&B.getAllResponseHeaders()),v={data:!d||d==="text"||d==="json"?B.responseText:B.response,status:B.status,statusText:B.statusText,headers:k,config:n,request:B};bs(function(K){i(K),C()},function(K){o(K),C()},v),B=null}"onloadend"in B?B.onloadend=E:B.onreadystatechange=function(){!B||B.readyState!==4||B.status===0&&!(B.responseURL&&B.responseURL.startsWith("file:"))||setTimeout(E)},B.onabort=function(){B&&(o(new D("Request aborted",D.ECONNABORTED,n,B)),C(),B=null)},B.onerror=function(R){const v=R&&R.message?R.message:"Network Error",Z=new D(v,D.ERR_NETWORK,n,B);Z.event=R||null,o(Z),C(),B=null},B.ontimeout=function(){let R=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const v=r.transitional||Po;r.timeoutErrorMessage&&(R=r.timeoutErrorMessage),o(new D(R,v.clarifyTimeoutError?D.ETIMEDOUT:D.ECONNABORTED,n,B)),C(),B=null},s===void 0&&a.setContentType(null),"setRequestHeader"in B&&b.forEach(as(a),function(R,v){B.setRequestHeader(v,R)}),b.isUndefined(r.withCredentials)||(B.withCredentials=!!r.withCredentials),d&&d!=="json"&&(B.responseType=r.responseType),u&&([m,y]=Ai(u,!0),B.addEventListener("progress",m)),c&&B.upload&&([h,w]=Ai(c),B.upload.addEventListener("progress",h),B.upload.addEventListener("loadend",w)),(r.cancelToken||r.signal)&&(f=k=>{B&&(o(!k||k.type?new Zn(null,n,B):k),B.abort(),C(),B=null)},r.cancelToken&&r.cancelToken.subscribe(f),r.signal&&(r.signal.aborted?f():r.signal.addEventListener("abort",f)));const N=Id(r.url);if(N&&!_e.protocols.includes(N)){o(new D("Unsupported protocol "+N+":",D.ERR_BAD_REQUEST,n)),C();return}B.send(s||null)})},qd=(n,e)=>{if(n=n?n.filter(Boolean):[],!e&&!n.length)return;const i=new AbortController;let o=!1;const r=function(c){if(!o){o=!0,a();const u=c instanceof Error?c:this.reason;i.abort(u instanceof D?u:new Zn(u instanceof Error?u.message:u))}};let s=e&&setTimeout(()=>{s=null,r(new D(`timeout of ${e}ms exceeded`,D.ETIMEDOUT))},e);const a=()=>{n&&(s&&clearTimeout(s),s=null,n.forEach(c=>{c.unsubscribe?c.unsubscribe(r):c.removeEventListener("abort",r)}),n=null)};n.forEach(c=>c.addEventListener("abort",r,{once:!0}));const{signal:d}=i;return d.unsubscribe=()=>b.asap(a),d},Wd=function*(n,e){let i=n.byteLength;if(i<e){yield n;return}let o=0,r;for(;o<i;)r=o+e,yield n.slice(o,r),o=r},Gd=async function*(n,e){for await(const i of Qd(n))yield*Wd(i,e)},Qd=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const e=n.getReader();try{for(;;){const{done:i,value:o}=await e.read();if(i)break;yield o}}finally{await e.cancel()}},$s=(n,e,i,o)=>{const r=Gd(n,e);let s=0,a,d=c=>{a||(a=!0,o&&o(c))};return new ReadableStream({async pull(c){try{const{done:u,value:f}=await r.next();if(u){d(),c.close();return}let h=f.byteLength;if(i){let m=s+=h;i(m)}c.enqueue(new Uint8Array(f))}catch(u){throw d(u),u}},cancel(c){return d(c),r.return()}},{highWaterMark:2})},zi=n=>n>=48&&n<=57||n>=65&&n<=70||n>=97&&n<=102,Yd=(n,e,i)=>e+2<i&&zi(n.charCodeAt(e+1))&&zi(n.charCodeAt(e+2));function Xd(n){if(!n||typeof n!="string"||!n.startsWith("data:"))return 0;const e=n.indexOf(",");if(e<0)return 0;const i=n.slice(5,e),o=n.slice(e+1);if(/;base64/i.test(i)){let a=o.length;const d=o.length;for(let w=0;w<d;w++)if(o.charCodeAt(w)===37&&w+2<d){const y=o.charCodeAt(w+1),C=o.charCodeAt(w+2);zi(y)&&zi(C)&&(a-=2,w+=2)}let c=0,u=d-1;const f=w=>w>=2&&o.charCodeAt(w-2)===37&&o.charCodeAt(w-1)===51&&(o.charCodeAt(w)===68||o.charCodeAt(w)===100);u>=0&&(o.charCodeAt(u)===61?(c++,u--):f(u)&&(c++,u-=3)),c===1&&u>=0&&(o.charCodeAt(u)===61||f(u))&&c++;const m=Math.floor(a/4)*3-(c||0);return m>0?m:0}let s=0;for(let a=0,d=o.length;a<d;a++){const c=o.charCodeAt(a);if(c===37&&Yd(o,a,d))s+=1,a+=2;else if(c<128)s+=1;else if(c<2048)s+=2;else if(c>=55296&&c<=56319&&a+1<d){const u=o.charCodeAt(a+1);u>=56320&&u<=57343?(s+=4,a++):s+=3}else s+=3}return s}const Do="1.18.1",Ns=64*1024,{isFunction:Di}=b,Zd=n=>encodeURIComponent(n).replace(/%([0-9A-F]{2})/gi,(e,i)=>String.fromCharCode(parseInt(i,16))),Ms=n=>{if(!b.isString(n))return n;try{return decodeURIComponent(n)}catch{return n}},Vs=(n,...e)=>{try{return!!n(...e)}catch{return!1}},Jd=n=>{const e=n.indexOf("://");let i=n;return e!==-1&&(i=i.slice(e+3)),i.includes("@")||i.includes(":")},Kd=n=>{const e=b.global!==void 0&&b.global!==null?b.global:globalThis,{ReadableStream:i,TextEncoder:o}=e;n=b.merge.call({skipUndefined:!0},{Request:e.Request,Response:e.Response},n);const{fetch:r,Request:s,Response:a}=n,d=r?Di(r):typeof fetch=="function",c=Di(s),u=Di(a);if(!d)return!1;const f=d&&Di(i),h=d&&(typeof o=="function"?(E=>N=>E.encode(N))(new o):async E=>new Uint8Array(await new s(E).arrayBuffer())),m=c&&f&&Vs(()=>{let E=!1;const N=new s(_e.origin,{body:new i,method:"POST",get duplex(){return E=!0,"half"}}),k=N.headers.has("Content-Type");return N.body!=null&&N.body.cancel(),E&&!k}),w=u&&f&&Vs(()=>b.isReadableStream(new a("").body)),y={stream:w&&(E=>E.body)};d&&["text","arrayBuffer","blob","formData","stream"].forEach(E=>{!y[E]&&(y[E]=(N,k)=>{let R=N&&N[E];if(R)return R.call(N);throw new D(`Response type '${E}' is not supported`,D.ERR_NOT_SUPPORT,k)})});const C=async E=>{if(E==null)return 0;if(b.isBlob(E))return E.size;if(b.isSpecCompliantForm(E))return(await new s(_e.origin,{method:"POST",body:E}).arrayBuffer()).byteLength;if(b.isArrayBufferView(E)||b.isArrayBuffer(E))return E.byteLength;if(b.isURLSearchParams(E)&&(E=E+""),b.isString(E))return(await h(E)).byteLength},B=async(E,N)=>{const k=b.toFiniteNumber(E.getContentLength());return k??C(N)};return async E=>{let{url:N,method:k,data:R,signal:v,cancelToken:Z,timeout:K,onDownloadProgress:fe,onUploadProgress:ht,responseType:Ye,headers:Ae,withCredentials:ke="same-origin",fetchOptions:fn,maxContentLength:Xe,maxBodyLength:Nt}=Bs(E);const Mt=b.isNumber(Xe)&&Xe>-1,Ot=b.isNumber(Nt)&&Nt>-1,mt=se=>b.hasOwnProp(E,se)?E[se]:void 0;let wt=r||fetch;Ye=Ye?(Ye+"").toLowerCase():"text";let nt=qd([v,Z&&Z.toAbortSignal()],K),we=null;const W=nt&&nt.unsubscribe&&(()=>{nt.unsubscribe()});let He,Vt=null;const ge=()=>new D("Request body larger than maxBodyLength limit",D.ERR_BAD_REQUEST,E,we);try{let se;const We=mt("auth");if(We){const ee=b.getSafeProp(We,"username")||"",Ie=b.getSafeProp(We,"password")||"";se={username:ee,password:Ie}}if(Jd(N)){const ee=new URL(N,_e.origin);if(!se&&(ee.username||ee.password)){const Ie=Ms(ee.username),rt=Ms(ee.password);se={username:Ie,password:rt}}(ee.username||ee.password)&&(ee.username="",ee.password="",N=ee.href)}if(se&&(Ae.delete("authorization"),Ae.set("Authorization","Basic "+btoa(Zd((se.username||"")+":"+(se.password||""))))),Mt&&typeof N=="string"&&N.startsWith("data:")&&Xd(N)>Xe)throw new D("maxContentLength size of "+Xe+" exceeded",D.ERR_BAD_RESPONSE,E,we);if(Ot&&k!=="get"&&k!=="head"){const ee=await C(R);if(typeof ee=="number"&&isFinite(ee)&&(He=ee,ee>Nt))throw ge()}const Ge=Ot&&(b.isReadableStream(R)||b.isStream(R)),Hn=(ee,Ie,rt)=>$s(ee,Ns,st=>{if(Ot&&st>Nt)throw Vt=ge();Ie&&Ie(st)},rt);if(m&&k!=="get"&&k!=="head"&&(ht||Ge)){if(He=He??await B(Ae,R),He!==0||Ge){let ee=new s(N,{method:"POST",body:R,duplex:"half"}),Ie;if(b.isFormData(R)&&(Ie=ee.headers.get("content-type"))&&Ae.setContentType(Ie),ee.body){const[rt,st]=ht&&Ss(He,Ai(Cs(ht)))||[];R=Hn(ee.body,rt,st)}}}else if(Ge&&!c&&f&&k!=="get"&&k!=="head")R=Hn(R);else if(Ge&&c&&!m&&k!=="get"&&k!=="head")throw new D("Stream request bodies are not supported by the current fetch implementation",D.ERR_NOT_SUPPORT,E,we);b.isString(ke)||(ke=ke?"include":"omit");const Ze=c&&"credentials"in s.prototype;if(b.isFormData(R)){const ee=Ae.getContentType();ee&&/^multipart\/form-data/i.test(ee)&&!/boundary=/i.test(ee)&&Ae.delete("content-type")}Ae.set("User-Agent","axios/"+Do,!1);const Lt={...fn,signal:nt,method:k.toUpperCase(),headers:as(Ae.normalize()),body:R,duplex:"half",credentials:Ze?ke:void 0};we=c&&new s(N,Lt);let Ve=await(c?wt(we,fn):wt(N,Lt));const hn=Ue.from(Ve.headers);if(Mt){const ee=b.toFiniteNumber(hn.getContentLength());if(ee!=null&&ee>Xe)throw new D("maxContentLength size of "+Xe+" exceeded",D.ERR_BAD_RESPONSE,E,we)}const be=w&&(Ye==="stream"||Ye==="response");if(w&&Ve.body&&(fe||Mt||be&&W)){const ee={};["status","statusText","headers"].forEach(It=>{ee[It]=Ve[It]});const Ie=b.toFiniteNumber(hn.getContentLength()),[rt,st]=fe&&Ss(Ie,Ai(Cs(fe),!0))||[];let mn=0;const bt=It=>{if(Mt&&(mn=It,mn>Xe))throw new D("maxContentLength size of "+Xe+" exceeded",D.ERR_BAD_RESPONSE,E,we);rt&&rt(It)};Ve=new a($s(Ve.body,Ns,bt,()=>{st&&st(),W&&W()}),ee)}Ye=Ye||"text";let Je=await y[b.findKey(y,Ye)||"text"](Ve,E);if(Mt&&!w&&!be){let ee;if(Je!=null&&(typeof Je.byteLength=="number"?ee=Je.byteLength:typeof Je.size=="number"?ee=Je.size:typeof Je=="string"&&(ee=typeof o=="function"?new o().encode(Je).byteLength:Je.length)),typeof ee=="number"&&ee>Xe)throw new D("maxContentLength size of "+Xe+" exceeded",D.ERR_BAD_RESPONSE,E,we)}return!be&&W&&W(),await new Promise((ee,Ie)=>{bs(ee,Ie,{data:Je,headers:Ue.from(Ve.headers),status:Ve.status,statusText:Ve.statusText,config:E,request:we})})}catch(se){if(W&&W(),nt&&nt.aborted&&nt.reason instanceof D){const We=nt.reason;throw We.config=E,we&&(We.request=we),se!==We&&Object.defineProperty(We,"cause",{__proto__:null,value:se,writable:!0,enumerable:!1,configurable:!0}),We}if(Vt)throw we&&!Vt.request&&(Vt.request=we),Vt;if(se instanceof D)throw we&&!se.request&&(se.request=we),se;if(se&&se.name==="TypeError"&&/Load failed|fetch/i.test(se.message)){const We=new D("Network Error",D.ERR_NETWORK,E,we,se&&se.response);throw Object.defineProperty(We,"cause",{__proto__:null,value:se.cause||se,writable:!0,enumerable:!1,configurable:!0}),We}throw D.from(se,se&&se.code,E,we,se&&se.response)}}},eu=new Map,Is=n=>{let e=n&&n.env||{};const{fetch:i,Request:o,Response:r}=e,s=[o,r,i];let a=s.length,d=a,c,u,f=eu;for(;d--;)c=s[d],u=f.get(c),u===void 0&&f.set(c,u=d?new Map:Kd(e)),f=u;return u};Is();const vo={http:wd,xhr:jd,fetch:{get:Is}};b.forEach(vo,(n,e)=>{if(n){try{Object.defineProperty(n,"name",{__proto__:null,value:e})}catch{}Object.defineProperty(n,"adapterName",{__proto__:null,value:e})}});const Ts=n=>`- ${n}`,tu=n=>b.isFunction(n)||n===null||n===!1;function nu(n,e){n=b.isArray(n)?n:[n];const{length:i}=n;let o,r;const s={};for(let a=0;a<i;a++){o=n[a];let d;if(r=o,!tu(o)&&(r=vo[(d=String(o)).toLowerCase()],r===void 0))throw new D(`Unknown adapter '${d}'`);if(r&&(b.isFunction(r)||(r=r.get(e))))break;s[d||"#"+a]=r}if(!r){const a=Object.entries(s).map(([c,u])=>`adapter ${c} `+(u===!1?"is not supported by the environment":"is not available in the build"));let d=i?a.length>1?`since :
17
17
  `+a.map(Ts).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.2.17",
5
+ "version": "0.2.18",
6
6
  "private": false,
7
7
  "type": "module",
8
8
  "main": "./dist/sprof.umd.cjs",
@@ -34,6 +34,7 @@
34
34
  "lint:check": "eslint src",
35
35
  "test": "vitest --run",
36
36
  "check:dist": "node scripts/check-dist.mjs",
37
+ "usage": "node scripts/usage-report.mjs",
37
38
  "prepublishOnly": "npm run lint && npm run test && npm run build",
38
39
  "lint:fix": "eslint --ext .vue --ext .ts src --fix",
39
40
  "storybook": "storybook dev -p 6006",