@opengis/admin
Version:
This project Softpro Admin
9 lines • 1.76 MB
JavaScript
(function(a,Jc){typeof exports=="object"&&typeof module<"u"?module.exports=Jc(require("vue"),require("vuedraggable")):typeof define=="function"&&define.amd?define(["vue","vuedraggable"],Jc):(a=typeof globalThis<"u"?globalThis:a||self,a.admin=Jc(a.Vue,a.draggable))})(this,function(a,Jc){"use strict";function t_(t,e){return function(){return t.apply(e,arguments)}}const{toString:SE}=Object.prototype,{getPrototypeOf:zf}=Object,{iterator:Zu,toStringTag:n_}=Symbol,Yu=(t=>e=>{const n=SE.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ds=t=>(t=t.toLowerCase(),e=>Yu(e)===t),Xu=t=>e=>typeof e===t,{isArray:kl}=Array,El=Xu("undefined");function Qc(t){return t!==null&&!El(t)&&t.constructor!==null&&!El(t.constructor)&&mi(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const r_=ds("ArrayBuffer");function TE(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&r_(t.buffer),e}const AE=Xu("string"),mi=Xu("function"),i_=Xu("number"),ed=t=>t!==null&&typeof t=="object",DE=t=>t===!0||t===!1,Ku=t=>{if(Yu(t)!=="object")return!1;const e=zf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(n_ in t)&&!(Zu in t)},ME=t=>{if(!ed(t)||Qc(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},IE=ds("Date"),PE=ds("File"),RE=ds("Blob"),NE=ds("FileList"),BE=t=>ed(t)&&mi(t.pipe),VE=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||mi(t.append)&&((e=Yu(t))==="formdata"||e==="object"&&mi(t.toString)&&t.toString()==="[object FormData]"))},zE=ds("URLSearchParams"),[OE,LE,FE,$E]=["ReadableStream","Request","Response","Headers"].map(ds),jE=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function td(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,o;if(typeof t!="object"&&(t=[t]),kl(t))for(r=0,o=t.length;r<o;r++)e.call(null,t[r],r,t);else{if(Qc(t))return;const d=n?Object.getOwnPropertyNames(t):Object.keys(t),h=d.length;let c;for(r=0;r<h;r++)c=d[r],e.call(null,t[c],c,t)}}function s_(t,e){if(Qc(t))return null;e=e.toLowerCase();const n=Object.keys(t);let r=n.length,o;for(;r-- >0;)if(o=n[r],e===o.toLowerCase())return o;return null}const Ca=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,o_=t=>!El(t)&&t!==Ca;function Of(){const{caseless:t,skipUndefined:e}=o_(this)&&this||{},n={},r=(o,d)=>{const h=t&&s_(n,d)||d;Ku(n[h])&&Ku(o)?n[h]=Of(n[h],o):Ku(o)?n[h]=Of({},o):kl(o)?n[h]=o.slice():(!e||!El(o))&&(n[h]=o)};for(let o=0,d=arguments.length;o<d;o++)arguments[o]&&td(arguments[o],r);return n}const UE=(t,e,n,{allOwnKeys:r}={})=>(td(e,(o,d)=>{n&&mi(o)?t[d]=t_(o,n):t[d]=o},{allOwnKeys:r}),t),HE=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),WE=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},qE=(t,e,n,r)=>{let o,d,h;const c={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),d=o.length;d-- >0;)h=o[d],(!r||r(h,t,e))&&!c[h]&&(e[h]=t[h],c[h]=!0);t=n!==!1&&zf(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},GE=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},ZE=t=>{if(!t)return null;if(kl(t))return t;let e=t.length;if(!i_(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},YE=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&zf(Uint8Array)),XE=(t,e)=>{const r=(t&&t[Zu]).call(t);let o;for(;(o=r.next())&&!o.done;){const d=o.value;e.call(t,d[0],d[1])}},KE=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},JE=ds("HTMLFormElement"),QE=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),a_=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),eC=ds("RegExp"),l_=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};td(n,(o,d)=>{let h;(h=e(o,d,t))!==!1&&(r[d]=h||o)}),Object.defineProperties(t,r)},tC=t=>{l_(t,(e,n)=>{if(mi(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(mi(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},nC=(t,e)=>{const n={},r=o=>{o.forEach(d=>{n[d]=!0})};return kl(t)?r(t):r(String(t).split(e)),n},rC=()=>{},iC=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function sC(t){return!!(t&&mi(t.append)&&t[n_]==="FormData"&&t[Zu])}const oC=t=>{const e=new Array(10),n=(r,o)=>{if(ed(r)){if(e.indexOf(r)>=0)return;if(Qc(r))return r;if(!("toJSON"in r)){e[o]=r;const d=kl(r)?[]:{};return td(r,(h,c)=>{const b=n(h,o+1);!El(b)&&(d[c]=b)}),e[o]=void 0,d}}return r};return n(t,0)},aC=ds("AsyncFunction"),lC=t=>t&&(ed(t)||mi(t))&&mi(t.then)&&mi(t.catch),c_=((t,e)=>t?setImmediate:e?((n,r)=>(Ca.addEventListener("message",({source:o,data:d})=>{o===Ca&&d===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Ca.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",mi(Ca.postMessage)),cC=typeof queueMicrotask<"u"?queueMicrotask.bind(Ca):typeof process<"u"&&process.nextTick||c_,Ie={isArray:kl,isArrayBuffer:r_,isBuffer:Qc,isFormData:VE,isArrayBufferView:TE,isString:AE,isNumber:i_,isBoolean:DE,isObject:ed,isPlainObject:Ku,isEmptyObject:ME,isReadableStream:OE,isRequest:LE,isResponse:FE,isHeaders:$E,isUndefined:El,isDate:IE,isFile:PE,isBlob:RE,isRegExp:eC,isFunction:mi,isStream:BE,isURLSearchParams:zE,isTypedArray:YE,isFileList:NE,forEach:td,merge:Of,extend:UE,trim:jE,stripBOM:HE,inherits:WE,toFlatObject:qE,kindOf:Yu,kindOfTest:ds,endsWith:GE,toArray:ZE,forEachEntry:XE,matchAll:KE,isHTMLForm:JE,hasOwnProperty:a_,hasOwnProp:a_,reduceDescriptors:l_,freezeMethods:tC,toObjectSet:nC,toCamelCase:QE,noop:rC,toFiniteNumber:iC,findKey:s_,global:Ca,isContextDefined:o_,isSpecCompliantForm:sC,toJSONObject:oC,isAsyncFn:aC,isThenable:lC,setImmediate:c_,asap:cC,isIterable:t=>t!=null&&mi(t[Zu])};function Gt(t,e,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}Ie.inherits(Gt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ie.toJSONObject(this.config),code:this.code,status:this.status}}});const d_=Gt.prototype,u_={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{u_[t]={value:t}}),Object.defineProperties(Gt,u_),Object.defineProperty(d_,"isAxiosError",{value:!0}),Gt.from=(t,e,n,r,o,d)=>{const h=Object.create(d_);Ie.toFlatObject(t,h,function(E){return E!==Error.prototype},k=>k!=="isAxiosError");const c=t&&t.message?t.message:"Error",b=e==null&&t?t.code:e;return Gt.call(h,c,b,n,r,o),t&&h.cause==null&&Object.defineProperty(h,"cause",{value:t,configurable:!0}),h.name=t&&t.name||"Error",d&&Object.assign(h,d),h};const dC=null;function Lf(t){return Ie.isPlainObject(t)||Ie.isArray(t)}function h_(t){return Ie.endsWith(t,"[]")?t.slice(0,-2):t}function p_(t,e,n){return t?t.concat(e).map(function(o,d){return o=h_(o),!n&&d?"["+o+"]":o}).join(n?".":""):e}function uC(t){return Ie.isArray(t)&&!t.some(Lf)}const hC=Ie.toFlatObject(Ie,{},null,function(e){return/^is[A-Z]/.test(e)});function Ju(t,e,n){if(!Ie.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=Ie.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function($,F){return!Ie.isUndefined(F[$])});const r=n.metaTokens,o=n.visitor||E,d=n.dots,h=n.indexes,b=(n.Blob||typeof Blob<"u"&&Blob)&&Ie.isSpecCompliantForm(e);if(!Ie.isFunction(o))throw new TypeError("visitor must be a function");function k(N){if(N===null)return"";if(Ie.isDate(N))return N.toISOString();if(Ie.isBoolean(N))return N.toString();if(!b&&Ie.isBlob(N))throw new Gt("Blob is not supported. Use a Buffer instead.");return Ie.isArrayBuffer(N)||Ie.isTypedArray(N)?b&&typeof Blob=="function"?new Blob([N]):Buffer.from(N):N}function E(N,$,F){let q=N;if(N&&!F&&typeof N=="object"){if(Ie.endsWith($,"{}"))$=r?$:$.slice(0,-2),N=JSON.stringify(N);else if(Ie.isArray(N)&&uC(N)||(Ie.isFileList(N)||Ie.endsWith($,"[]"))&&(q=Ie.toArray(N)))return $=h_($),q.forEach(function(Q,me){!(Ie.isUndefined(Q)||Q===null)&&e.append(h===!0?p_([$],me,d):h===null?$:$+"[]",k(Q))}),!1}return Lf(N)?!0:(e.append(p_(F,$,d),k(N)),!1)}const C=[],T=Object.assign(hC,{defaultVisitor:E,convertValue:k,isVisitable:Lf});function I(N,$){if(!Ie.isUndefined(N)){if(C.indexOf(N)!==-1)throw Error("Circular reference detected in "+$.join("."));C.push(N),Ie.forEach(N,function(q,J){(!(Ie.isUndefined(q)||q===null)&&o.call(e,q,Ie.isString(J)?J.trim():J,$,T))===!0&&I(q,$?$.concat(J):[J])}),C.pop()}}if(!Ie.isObject(t))throw new TypeError("data must be an object");return I(t),e}function f_(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function Ff(t,e){this._pairs=[],t&&Ju(t,this,e)}const m_=Ff.prototype;m_.append=function(e,n){this._pairs.push([e,n])},m_.toString=function(e){const n=e?function(r){return e.call(this,r,f_)}:f_;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function pC(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function g_(t,e,n){if(!e)return t;const r=n&&n.encode||pC;Ie.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let d;if(o?d=o(e,n):d=Ie.isURLSearchParams(e)?e.toString():new Ff(e,n).toString(r),d){const h=t.indexOf("#");h!==-1&&(t=t.slice(0,h)),t+=(t.indexOf("?")===-1?"?":"&")+d}return t}class y_{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Ie.forEach(this.handlers,function(r){r!==null&&e(r)})}}const __={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},fC={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Ff,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},$f=typeof window<"u"&&typeof document<"u",jf=typeof navigator=="object"&&navigator||void 0,mC=$f&&(!jf||["ReactNative","NativeScript","NS"].indexOf(jf.product)<0),gC=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",yC=$f&&window.location.href||"http://localhost",$r={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:$f,hasStandardBrowserEnv:mC,hasStandardBrowserWebWorkerEnv:gC,navigator:jf,origin:yC},Symbol.toStringTag,{value:"Module"})),...fC};function _C(t,e){return Ju(t,new $r.classes.URLSearchParams,{visitor:function(n,r,o,d){return $r.isNode&&Ie.isBuffer(n)?(this.append(r,n.toString("base64")),!1):d.defaultVisitor.apply(this,arguments)},...e})}function bC(t){return Ie.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function xC(t){const e={},n=Object.keys(t);let r;const o=n.length;let d;for(r=0;r<o;r++)d=n[r],e[d]=t[d];return e}function b_(t){function e(n,r,o,d){let h=n[d++];if(h==="__proto__")return!0;const c=Number.isFinite(+h),b=d>=n.length;return h=!h&&Ie.isArray(o)?o.length:h,b?(Ie.hasOwnProp(o,h)?o[h]=[o[h],r]:o[h]=r,!c):((!o[h]||!Ie.isObject(o[h]))&&(o[h]=[]),e(n,r,o[h],d)&&Ie.isArray(o[h])&&(o[h]=xC(o[h])),!c)}if(Ie.isFormData(t)&&Ie.isFunction(t.entries)){const n={};return Ie.forEachEntry(t,(r,o)=>{e(bC(r),o,n,0)}),n}return null}function vC(t,e,n){if(Ie.isString(t))try{return(e||JSON.parse)(t),Ie.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const nd={transitional:__,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,d=Ie.isObject(e);if(d&&Ie.isHTMLForm(e)&&(e=new FormData(e)),Ie.isFormData(e))return o?JSON.stringify(b_(e)):e;if(Ie.isArrayBuffer(e)||Ie.isBuffer(e)||Ie.isStream(e)||Ie.isFile(e)||Ie.isBlob(e)||Ie.isReadableStream(e))return e;if(Ie.isArrayBufferView(e))return e.buffer;if(Ie.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let c;if(d){if(r.indexOf("application/x-www-form-urlencoded")>-1)return _C(e,this.formSerializer).toString();if((c=Ie.isFileList(e))||r.indexOf("multipart/form-data")>-1){const b=this.env&&this.env.FormData;return Ju(c?{"files[]":e}:e,b&&new b,this.formSerializer)}}return d||o?(n.setContentType("application/json",!1),vC(e)):e}],transformResponse:[function(e){const n=this.transitional||nd.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(Ie.isResponse(e)||Ie.isReadableStream(e))return e;if(e&&Ie.isString(e)&&(r&&!this.responseType||o)){const h=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(e,this.parseReviver)}catch(c){if(h)throw c.name==="SyntaxError"?Gt.from(c,Gt.ERR_BAD_RESPONSE,this,null,this.response):c}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:$r.classes.FormData,Blob:$r.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ie.forEach(["delete","get","head","post","put","patch"],t=>{nd.headers[t]={}});const wC=Ie.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"]),kC=t=>{const e={};let n,r,o;return t&&t.split(`
`).forEach(function(h){o=h.indexOf(":"),n=h.substring(0,o).trim().toLowerCase(),r=h.substring(o+1).trim(),!(!n||e[n]&&wC[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},x_=Symbol("internals");function rd(t){return t&&String(t).trim().toLowerCase()}function Qu(t){return t===!1||t==null?t:Ie.isArray(t)?t.map(Qu):String(t)}function EC(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const CC=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Uf(t,e,n,r,o){if(Ie.isFunction(r))return r.call(this,e,n);if(o&&(e=n),!!Ie.isString(e)){if(Ie.isString(r))return e.indexOf(r)!==-1;if(Ie.isRegExp(r))return r.test(e)}}function SC(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function TC(t,e){const n=Ie.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(o,d,h){return this[r].call(this,e,o,d,h)},configurable:!0})})}let gi=class{constructor(e){e&&this.set(e)}set(e,n,r){const o=this;function d(c,b,k){const E=rd(b);if(!E)throw new Error("header name must be a non-empty string");const C=Ie.findKey(o,E);(!C||o[C]===void 0||k===!0||k===void 0&&o[C]!==!1)&&(o[C||b]=Qu(c))}const h=(c,b)=>Ie.forEach(c,(k,E)=>d(k,E,b));if(Ie.isPlainObject(e)||e instanceof this.constructor)h(e,n);else if(Ie.isString(e)&&(e=e.trim())&&!CC(e))h(kC(e),n);else if(Ie.isObject(e)&&Ie.isIterable(e)){let c={},b,k;for(const E of e){if(!Ie.isArray(E))throw TypeError("Object iterator must return a key-value pair");c[k=E[0]]=(b=c[k])?Ie.isArray(b)?[...b,E[1]]:[b,E[1]]:E[1]}h(c,n)}else e!=null&&d(n,e,r);return this}get(e,n){if(e=rd(e),e){const r=Ie.findKey(this,e);if(r){const o=this[r];if(!n)return o;if(n===!0)return EC(o);if(Ie.isFunction(n))return n.call(this,o,r);if(Ie.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=rd(e),e){const r=Ie.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||Uf(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let o=!1;function d(h){if(h=rd(h),h){const c=Ie.findKey(r,h);c&&(!n||Uf(r,r[c],c,n))&&(delete r[c],o=!0)}}return Ie.isArray(e)?e.forEach(d):d(e),o}clear(e){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const d=n[r];(!e||Uf(this,this[d],d,e,!0))&&(delete this[d],o=!0)}return o}normalize(e){const n=this,r={};return Ie.forEach(this,(o,d)=>{const h=Ie.findKey(r,d);if(h){n[h]=Qu(o),delete n[d];return}const c=e?SC(d):String(d).trim();c!==d&&delete n[d],n[c]=Qu(o),r[c]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return Ie.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=e&&Ie.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
`)}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,...n){const r=new this(e);return n.forEach(o=>r.set(o)),r}static accessor(e){const r=(this[x_]=this[x_]={accessors:{}}).accessors,o=this.prototype;function d(h){const c=rd(h);r[c]||(TC(o,h),r[c]=!0)}return Ie.isArray(e)?e.forEach(d):d(e),this}};gi.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ie.reduceDescriptors(gi.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}}),Ie.freezeMethods(gi);function Hf(t,e){const n=this||nd,r=e||n,o=gi.from(r.headers);let d=r.data;return Ie.forEach(t,function(c){d=c.call(n,d,o.normalize(),e?e.status:void 0)}),o.normalize(),d}function v_(t){return!!(t&&t.__CANCEL__)}function Cl(t,e,n){Gt.call(this,t??"canceled",Gt.ERR_CANCELED,e,n),this.name="CanceledError"}Ie.inherits(Cl,Gt,{__CANCEL__:!0});function w_(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new Gt("Request failed with status code "+n.status,[Gt.ERR_BAD_REQUEST,Gt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function AC(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function DC(t,e){t=t||10;const n=new Array(t),r=new Array(t);let o=0,d=0,h;return e=e!==void 0?e:1e3,function(b){const k=Date.now(),E=r[d];h||(h=k),n[o]=b,r[o]=k;let C=d,T=0;for(;C!==o;)T+=n[C++],C=C%t;if(o=(o+1)%t,o===d&&(d=(d+1)%t),k-h<e)return;const I=E&&k-E;return I?Math.round(T*1e3/I):void 0}}function MC(t,e){let n=0,r=1e3/e,o,d;const h=(k,E=Date.now())=>{n=E,o=null,d&&(clearTimeout(d),d=null),t(...k)};return[(...k)=>{const E=Date.now(),C=E-n;C>=r?h(k,E):(o=k,d||(d=setTimeout(()=>{d=null,h(o)},r-C)))},()=>o&&h(o)]}const eh=(t,e,n=3)=>{let r=0;const o=DC(50,250);return MC(d=>{const h=d.loaded,c=d.lengthComputable?d.total:void 0,b=h-r,k=o(b),E=h<=c;r=h;const C={loaded:h,total:c,progress:c?h/c:void 0,bytes:b,rate:k||void 0,estimated:k&&c&&E?(c-h)/k:void 0,event:d,lengthComputable:c!=null,[e?"download":"upload"]:!0};t(C)},n)},k_=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},E_=t=>(...e)=>Ie.asap(()=>t(...e)),IC=$r.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,$r.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL($r.origin),$r.navigator&&/(msie|trident)/i.test($r.navigator.userAgent)):()=>!0,PC=$r.hasStandardBrowserEnv?{write(t,e,n,r,o,d,h){if(typeof document>"u")return;const c=[`${t}=${encodeURIComponent(e)}`];Ie.isNumber(n)&&c.push(`expires=${new Date(n).toUTCString()}`),Ie.isString(r)&&c.push(`path=${r}`),Ie.isString(o)&&c.push(`domain=${o}`),d===!0&&c.push("secure"),Ie.isString(h)&&c.push(`SameSite=${h}`),document.cookie=c.join("; ")},read(t){if(typeof document>"u")return null;const e=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function RC(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function NC(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function C_(t,e,n){let r=!RC(e);return t&&(r||n==!1)?NC(t,e):e}const S_=t=>t instanceof gi?{...t}:t;function Sa(t,e){e=e||{};const n={};function r(k,E,C,T){return Ie.isPlainObject(k)&&Ie.isPlainObject(E)?Ie.merge.call({caseless:T},k,E):Ie.isPlainObject(E)?Ie.merge({},E):Ie.isArray(E)?E.slice():E}function o(k,E,C,T){if(Ie.isUndefined(E)){if(!Ie.isUndefined(k))return r(void 0,k,C,T)}else return r(k,E,C,T)}function d(k,E){if(!Ie.isUndefined(E))return r(void 0,E)}function h(k,E){if(Ie.isUndefined(E)){if(!Ie.isUndefined(k))return r(void 0,k)}else return r(void 0,E)}function c(k,E,C){if(C in e)return r(k,E);if(C in t)return r(void 0,k)}const b={url:d,method:d,data:d,baseURL:h,transformRequest:h,transformResponse:h,paramsSerializer:h,timeout:h,timeoutMessage:h,withCredentials:h,withXSRFToken:h,adapter:h,responseType:h,xsrfCookieName:h,xsrfHeaderName:h,onUploadProgress:h,onDownloadProgress:h,decompress:h,maxContentLength:h,maxBodyLength:h,beforeRedirect:h,transport:h,httpAgent:h,httpsAgent:h,cancelToken:h,socketPath:h,responseEncoding:h,validateStatus:c,headers:(k,E,C)=>o(S_(k),S_(E),C,!0)};return Ie.forEach(Object.keys({...t,...e}),function(E){const C=b[E]||o,T=C(t[E],e[E],E);Ie.isUndefined(T)&&C!==c||(n[E]=T)}),n}const T_=t=>{const e=Sa({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:d,headers:h,auth:c}=e;if(e.headers=h=gi.from(h),e.url=g_(C_(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),c&&h.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),Ie.isFormData(n)){if($r.hasStandardBrowserEnv||$r.hasStandardBrowserWebWorkerEnv)h.setContentType(void 0);else if(Ie.isFunction(n.getHeaders)){const b=n.getHeaders(),k=["content-type","content-length"];Object.entries(b).forEach(([E,C])=>{k.includes(E.toLowerCase())&&h.set(E,C)})}}if($r.hasStandardBrowserEnv&&(r&&Ie.isFunction(r)&&(r=r(e)),r||r!==!1&&IC(e.url))){const b=o&&d&&PC.read(d);b&&h.set(o,b)}return e},BC=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,r){const o=T_(t);let d=o.data;const h=gi.from(o.headers).normalize();let{responseType:c,onUploadProgress:b,onDownloadProgress:k}=o,E,C,T,I,N;function $(){I&&I(),N&&N(),o.cancelToken&&o.cancelToken.unsubscribe(E),o.signal&&o.signal.removeEventListener("abort",E)}let F=new XMLHttpRequest;F.open(o.method.toUpperCase(),o.url,!0),F.timeout=o.timeout;function q(){if(!F)return;const Q=gi.from("getAllResponseHeaders"in F&&F.getAllResponseHeaders()),Ee={data:!c||c==="text"||c==="json"?F.responseText:F.response,status:F.status,statusText:F.statusText,headers:Q,config:t,request:F};w_(function(we){n(we),$()},function(we){r(we),$()},Ee),F=null}"onloadend"in F?F.onloadend=q:F.onreadystatechange=function(){!F||F.readyState!==4||F.status===0&&!(F.responseURL&&F.responseURL.indexOf("file:")===0)||setTimeout(q)},F.onabort=function(){F&&(r(new Gt("Request aborted",Gt.ECONNABORTED,t,F)),F=null)},F.onerror=function(me){const Ee=me&&me.message?me.message:"Network Error",Ve=new Gt(Ee,Gt.ERR_NETWORK,t,F);Ve.event=me||null,r(Ve),F=null},F.ontimeout=function(){let me=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const Ee=o.transitional||__;o.timeoutErrorMessage&&(me=o.timeoutErrorMessage),r(new Gt(me,Ee.clarifyTimeoutError?Gt.ETIMEDOUT:Gt.ECONNABORTED,t,F)),F=null},d===void 0&&h.setContentType(null),"setRequestHeader"in F&&Ie.forEach(h.toJSON(),function(me,Ee){F.setRequestHeader(Ee,me)}),Ie.isUndefined(o.withCredentials)||(F.withCredentials=!!o.withCredentials),c&&c!=="json"&&(F.responseType=o.responseType),k&&([T,N]=eh(k,!0),F.addEventListener("progress",T)),b&&F.upload&&([C,I]=eh(b),F.upload.addEventListener("progress",C),F.upload.addEventListener("loadend",I)),(o.cancelToken||o.signal)&&(E=Q=>{F&&(r(!Q||Q.type?new Cl(null,t,F):Q),F.abort(),F=null)},o.cancelToken&&o.cancelToken.subscribe(E),o.signal&&(o.signal.aborted?E():o.signal.addEventListener("abort",E)));const J=AC(o.url);if(J&&$r.protocols.indexOf(J)===-1){r(new Gt("Unsupported protocol "+J+":",Gt.ERR_BAD_REQUEST,t));return}F.send(d||null)})},VC=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,o;const d=function(k){if(!o){o=!0,c();const E=k instanceof Error?k:this.reason;r.abort(E instanceof Gt?E:new Cl(E instanceof Error?E.message:E))}};let h=e&&setTimeout(()=>{h=null,d(new Gt(`timeout ${e} of ms exceeded`,Gt.ETIMEDOUT))},e);const c=()=>{t&&(h&&clearTimeout(h),h=null,t.forEach(k=>{k.unsubscribe?k.unsubscribe(d):k.removeEventListener("abort",d)}),t=null)};t.forEach(k=>k.addEventListener("abort",d));const{signal:b}=r;return b.unsubscribe=()=>Ie.asap(c),b}},zC=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,o;for(;r<n;)o=r+e,yield t.slice(r,o),r=o},OC=async function*(t,e){for await(const n of LC(t))yield*zC(n,e)},LC=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:r}=await e.read();if(n)break;yield r}}finally{await e.cancel()}},A_=(t,e,n,r)=>{const o=OC(t,e);let d=0,h,c=b=>{h||(h=!0,r&&r(b))};return new ReadableStream({async pull(b){try{const{done:k,value:E}=await o.next();if(k){c(),b.close();return}let C=E.byteLength;if(n){let T=d+=C;n(T)}b.enqueue(new Uint8Array(E))}catch(k){throw c(k),k}},cancel(b){return c(b),o.return()}},{highWaterMark:2})},D_=64*1024,{isFunction:th}=Ie,FC=(({Request:t,Response:e})=>({Request:t,Response:e}))(Ie.global),{ReadableStream:M_,TextEncoder:I_}=Ie.global,P_=(t,...e)=>{try{return!!t(...e)}catch{return!1}},$C=t=>{t=Ie.merge.call({skipUndefined:!0},FC,t);const{fetch:e,Request:n,Response:r}=t,o=e?th(e):typeof fetch=="function",d=th(n),h=th(r);if(!o)return!1;const c=o&&th(M_),b=o&&(typeof I_=="function"?(N=>$=>N.encode($))(new I_):async N=>new Uint8Array(await new n(N).arrayBuffer())),k=d&&c&&P_(()=>{let N=!1;const $=new n($r.origin,{body:new M_,method:"POST",get duplex(){return N=!0,"half"}}).headers.has("Content-Type");return N&&!$}),E=h&&c&&P_(()=>Ie.isReadableStream(new r("").body)),C={stream:E&&(N=>N.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(N=>{!C[N]&&(C[N]=($,F)=>{let q=$&&$[N];if(q)return q.call($);throw new Gt(`Response type '${N}' is not supported`,Gt.ERR_NOT_SUPPORT,F)})});const T=async N=>{if(N==null)return 0;if(Ie.isBlob(N))return N.size;if(Ie.isSpecCompliantForm(N))return(await new n($r.origin,{method:"POST",body:N}).arrayBuffer()).byteLength;if(Ie.isArrayBufferView(N)||Ie.isArrayBuffer(N))return N.byteLength;if(Ie.isURLSearchParams(N)&&(N=N+""),Ie.isString(N))return(await b(N)).byteLength},I=async(N,$)=>{const F=Ie.toFiniteNumber(N.getContentLength());return F??T($)};return async N=>{let{url:$,method:F,data:q,signal:J,cancelToken:Q,timeout:me,onDownloadProgress:Ee,onUploadProgress:Ve,responseType:we,headers:Re,withCredentials:Ne="same-origin",fetchOptions:Ue}=T_(N),Xe=e||fetch;we=we?(we+"").toLowerCase():"text";let He=VC([J,Q&&Q.toAbortSignal()],me),tt=null;const ce=He&&He.unsubscribe&&(()=>{He.unsubscribe()});let $t;try{if(Ve&&k&&F!=="get"&&F!=="head"&&($t=await I(Re,q))!==0){let Wt=new n($,{method:"POST",body:q,duplex:"half"}),en;if(Ie.isFormData(q)&&(en=Wt.headers.get("content-type"))&&Re.setContentType(en),Wt.body){const[mn,gn]=k_($t,eh(E_(Ve)));q=A_(Wt.body,D_,mn,gn)}}Ie.isString(Ne)||(Ne=Ne?"include":"omit");const ut=d&&"credentials"in n.prototype,Ft={...Ue,signal:He,method:F.toUpperCase(),headers:Re.normalize().toJSON(),body:q,duplex:"half",credentials:ut?Ne:void 0};tt=d&&new n($,Ft);let Ut=await(d?Xe(tt,Ue):Xe($,Ft));const cn=E&&(we==="stream"||we==="response");if(E&&(Ee||cn&&ce)){const Wt={};["status","statusText","headers"].forEach(yn=>{Wt[yn]=Ut[yn]});const en=Ie.toFiniteNumber(Ut.headers.get("content-length")),[mn,gn]=Ee&&k_(en,eh(E_(Ee),!0))||[];Ut=new r(A_(Ut.body,D_,mn,()=>{gn&&gn(),ce&&ce()}),Wt)}we=we||"text";let dn=await C[Ie.findKey(C,we)||"text"](Ut,N);return!cn&&ce&&ce(),await new Promise((Wt,en)=>{w_(Wt,en,{data:dn,headers:gi.from(Ut.headers),status:Ut.status,statusText:Ut.statusText,config:N,request:tt})})}catch(ut){throw ce&&ce(),ut&&ut.name==="TypeError"&&/Load failed|fetch/i.test(ut.message)?Object.assign(new Gt("Network Error",Gt.ERR_NETWORK,N,tt),{cause:ut.cause||ut}):Gt.from(ut,ut&&ut.code,N,tt)}}},jC=new Map,R_=t=>{let e=t&&t.env||{};const{fetch:n,Request:r,Response:o}=e,d=[r,o,n];let h=d.length,c=h,b,k,E=jC;for(;c--;)b=d[c],k=E.get(b),k===void 0&&E.set(b,k=c?new Map:$C(e)),E=k;return k};R_();const Wf={http:dC,xhr:BC,fetch:{get:R_}};Ie.forEach(Wf,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const N_=t=>`- ${t}`,UC=t=>Ie.isFunction(t)||t===null||t===!1;function HC(t,e){t=Ie.isArray(t)?t:[t];const{length:n}=t;let r,o;const d={};for(let h=0;h<n;h++){r=t[h];let c;if(o=r,!UC(r)&&(o=Wf[(c=String(r)).toLowerCase()],o===void 0))throw new Gt(`Unknown adapter '${c}'`);if(o&&(Ie.isFunction(o)||(o=o.get(e))))break;d[c||"#"+h]=o}if(!o){const h=Object.entries(d).map(([b,k])=>`adapter ${b} `+(k===!1?"is not supported by the environment":"is not available in the build"));let c=n?h.length>1?`since :
`+h.map(N_).join(`
`):" "+N_(h[0]):"as no adapter specified";throw new Gt("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return o}const B_={getAdapter:HC,adapters:Wf};function qf(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Cl(null,t)}function V_(t){return qf(t),t.headers=gi.from(t.headers),t.data=Hf.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),B_.getAdapter(t.adapter||nd.adapter,t)(t).then(function(r){return qf(t),r.data=Hf.call(t,t.transformResponse,r),r.headers=gi.from(r.headers),r},function(r){return v_(r)||(qf(t),r&&r.response&&(r.response.data=Hf.call(t,t.transformResponse,r.response),r.response.headers=gi.from(r.response.headers))),Promise.reject(r)})}const z_="1.13.2",nh={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{nh[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const O_={};nh.transitional=function(e,n,r){function o(d,h){return"[Axios v"+z_+"] Transitional option '"+d+"'"+h+(r?". "+r:"")}return(d,h,c)=>{if(e===!1)throw new Gt(o(h," has been removed"+(n?" in "+n:"")),Gt.ERR_DEPRECATED);return n&&!O_[h]&&(O_[h]=!0,console.warn(o(h," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(d,h,c):!0}},nh.spelling=function(e){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function WC(t,e,n){if(typeof t!="object")throw new Gt("options must be an object",Gt.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let o=r.length;for(;o-- >0;){const d=r[o],h=e[d];if(h){const c=t[d],b=c===void 0||h(c,d,t);if(b!==!0)throw new Gt("option "+d+" must be "+b,Gt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Gt("Unknown option "+d,Gt.ERR_BAD_OPTION)}}const rh={assertOptions:WC,validators:nh},Cs=rh.validators;let Ta=class{constructor(e){this.defaults=e||{},this.interceptors={request:new y_,response:new y_}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const d=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?d&&!String(r.stack).endsWith(d.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+d):r.stack=d}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=Sa(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:d}=n;r!==void 0&&rh.assertOptions(r,{silentJSONParsing:Cs.transitional(Cs.boolean),forcedJSONParsing:Cs.transitional(Cs.boolean),clarifyTimeoutError:Cs.transitional(Cs.boolean)},!1),o!=null&&(Ie.isFunction(o)?n.paramsSerializer={serialize:o}:rh.assertOptions(o,{encode:Cs.function,serialize:Cs.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),rh.assertOptions(n,{baseUrl:Cs.spelling("baseURL"),withXsrfToken:Cs.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let h=d&&Ie.merge(d.common,d[n.method]);d&&Ie.forEach(["delete","get","head","post","put","patch","common"],N=>{delete d[N]}),n.headers=gi.concat(h,d);const c=[];let b=!0;this.interceptors.request.forEach(function($){typeof $.runWhen=="function"&&$.runWhen(n)===!1||(b=b&&$.synchronous,c.unshift($.fulfilled,$.rejected))});const k=[];this.interceptors.response.forEach(function($){k.push($.fulfilled,$.rejected)});let E,C=0,T;if(!b){const N=[V_.bind(this),void 0];for(N.unshift(...c),N.push(...k),T=N.length,E=Promise.resolve(n);C<T;)E=E.then(N[C++],N[C++]);return E}T=c.length;let I=n;for(;C<T;){const N=c[C++],$=c[C++];try{I=N(I)}catch(F){$.call(this,F);break}}try{E=V_.call(this,I)}catch(N){return Promise.reject(N)}for(C=0,T=k.length;C<T;)E=E.then(k[C++],k[C++]);return E}getUri(e){e=Sa(this.defaults,e);const n=C_(e.baseURL,e.url,e.allowAbsoluteUrls);return g_(n,e.params,e.paramsSerializer)}};Ie.forEach(["delete","get","head","options"],function(e){Ta.prototype[e]=function(n,r){return this.request(Sa(r||{},{method:e,url:n,data:(r||{}).data}))}}),Ie.forEach(["post","put","patch"],function(e){function n(r){return function(d,h,c){return this.request(Sa(c||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:d,data:h}))}}Ta.prototype[e]=n(),Ta.prototype[e+"Form"]=n(!0)});let qC=class kE{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(d){n=d});const r=this;this.promise.then(o=>{if(!r._listeners)return;let d=r._listeners.length;for(;d-- >0;)r._listeners[d](o);r._listeners=null}),this.promise.then=o=>{let d;const h=new Promise(c=>{r.subscribe(c),d=c}).then(o);return h.cancel=function(){r.unsubscribe(d)},h},e(function(d,h,c){r.reason||(r.reason=new Cl(d,h,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new kE(function(o){e=o}),cancel:e}}};function GC(t){return function(n){return t.apply(null,n)}}function ZC(t){return Ie.isObject(t)&&t.isAxiosError===!0}const Gf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Gf).forEach(([t,e])=>{Gf[e]=t});function L_(t){const e=new Ta(t),n=t_(Ta.prototype.request,e);return Ie.extend(n,Ta.prototype,e,{allOwnKeys:!0}),Ie.extend(n,e,null,{allOwnKeys:!0}),n.create=function(o){return L_(Sa(t,o))},n}const Oe=L_(nd);Oe.Axios=Ta,Oe.CanceledError=Cl,Oe.CancelToken=qC,Oe.isCancel=v_,Oe.VERSION=z_,Oe.toFormData=Ju,Oe.AxiosError=Gt,Oe.Cancel=Oe.CanceledError,Oe.all=function(e){return Promise.all(e)},Oe.spread=GC,Oe.isAxiosError=ZC,Oe.mergeConfig=Sa,Oe.AxiosHeaders=gi,Oe.formToJSON=t=>b_(Ie.isHTMLForm(t)?new FormData(t):t),Oe.getAdapter=B_.getAdapter,Oe.HttpStatusCode=Gf,Oe.default=Oe;const{Axios:zX,AxiosError:OX,CanceledError:LX,isCancel:FX,CancelToken:$X,VERSION:jX,all:UX,Cancel:HX,isAxiosError:WX,spread:qX,toFormData:GX,AxiosHeaders:ZX,HttpStatusCode:YX,formToJSON:XX,getAdapter:KX,mergeConfig:JX}=Oe,et=a.ref({}),YC=()=>{const t=new CustomEvent("reloadTablePage");window.dispatchEvent(t)},ih=()=>{const t=new CustomEvent("reloadCardPage");window.dispatchEvent(t)},XC={class:"p-[10px]"},KC={class:"flex justify-end p-[20px] gap-[10px] border-t w-full"},JC=["onClick"],QC=["disabled"],eS={__name:"vs-plugin-form",props:{handleClose:Function},setup(t){var C;const{$notify:e=()=>1}=(C=a.getCurrentInstance())==null?void 0:C.proxy,n=a.ref(!1),r=a.ref(null),o=a.ref(!1),d=a.ref({}),h=a.ref(),c=a.ref({}),b=T=>{n.value=!1,r.value=null,d.value={},c.value={};const I=new CustomEvent("closeFormPlugin");I.message=T,window.dispatchEvent(I)},k=async()=>{var T,I,N,$,F,q,J,Q,me,Ee,Ve;try{if(((T=c.value)==null?void 0:T.method)!=="POST"){const Re=await Oe.get(`${((I=c.value)==null?void 0:I.api)||"/api/table/"}${((N=c.value)==null?void 0:N.token)||(($=c.value)==null?void 0:$.id)||""}`);d.value=Re.data}(F=c.value)!=null&&F.init&&(d.value=(q=c.value)==null?void 0:q.init);const{data:we}=await Oe.get(`/api/template/form/${((J=c.value)==null?void 0:J.token)||((Q=c.value)==null?void 0:Q.form)}`);if(we!=null&&we.obj&&(d.value={...d.value,...we.obj}),(me=c.value)!=null&&me.obj){const Re=(Ve=(Ee=c.value)==null?void 0:Ee.obj)==null?void 0:Ve.split("#"),Ne=Re==null?void 0:Re.reduce((Ue,Xe)=>{const[He,tt]=Xe==null?void 0:Xe.split("=");return Ue[He]=tt,Ue},{});d.value={...d.value,...Ne}}r.value=(we==null?void 0:we.schema)||we}catch(we){console.error("Error fetching form scheme:",we)}finally{n.value=!0}},E=async()=>{var T,I,N,$,F,q,J;if(!o.value){o.value=!0;try{await h.value.doValidation();const{data:Q}=await Oe({method:((T=c.value)==null?void 0:T.method)||"PUT",url:`${((I=c.value)==null?void 0:I.api)||"/api/table/"}${((N=c.value)==null?void 0:N.token)||(($=c.value)==null?void 0:$.id)||""}`,data:d.value});ih(),YC(),b(Q),e({title:"Успішно!",type:"success",message:"Операція виконана успішно"})}catch(Q){e({title:"Помилка!",type:"error",message:Q.message==="validation error"?"Перевірте правильність полів.":((q=(F=Q==null?void 0:Q.response)==null?void 0:F.data)==null?void 0:q.error)||((J=Q==null?void 0:Q.response)==null?void 0:J.data)||"Сталася помилка"})}finally{o.value=!1}}};return a.onMounted(()=>{window.addEventListener("openFormPlugin",({options:T})=>{c.value=T,n.value=!0,k()})}),(T,I)=>{var F;const N=a.resolveComponent("VsForm"),$=a.resolveComponent("VsDialog");return r.value?(a.openBlock(),a.createBlock($,{key:0,title:((F=c.value)==null?void 0:F.title)||"Редагувати",visible:n.value,"onUpdate:visible":I[1]||(I[1]=q=>n.value=q),onOnClose:b},{footer:a.withCtx(({handleClose:q})=>[a.createElementVNode("div",KC,[a.createElementVNode("button",{style:{border:"1px solid #000"},onClick:J=>q(),class:"py-2 px-3 inline-flex items-center gap-x-2 text-sm whitespace-nowrap text-black border-gray-200 rounded-lg !border-gray-200 hover:bg-gray-100 duration-300"}," Скасувати ",8,JC),a.createElementVNode("button",{disabled:o.value,onClick:E,class:"py-2 px-3 inline-flex items-center gap-x-2 text-[14px] font-[400] whitespace-nowrap text-white bg-blue-500 rounded-lg !border-gray-200 hover:bg-blue-700"}," Зберегти ",8,QC)])]),default:a.withCtx(()=>[a.createElementVNode("div",XC,[a.createVNode(N,{ref_key:"form",ref:h,scheme:r.value,modelValue:d.value,"onUpdate:modelValue":I[0]||(I[0]=q=>d.value=q),class:"p-0"},null,8,["scheme","modelValue"])])]),_:1},8,["title","visible"])):a.createCommentVNode("",!0)}}},tS={__name:"admin",setup(t){var n,r;document.title=((n=et.value)==null?void 0:n.titlePrefix)||""+((r=et.value)==null?void 0:r.title)||"",e(et.value.favicon);function e(o){let d=document.querySelector("link[rel~='icon']");d||(d=document.createElement("link"),d.rel="icon",document.getElementsByTagName("head")[0].appendChild(d)),d.href=o}return(o,d)=>{const h=a.resolveComponent("router-view");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createVNode(h),a.createVNode(eS)],64)}}};function nS(){return F_().__VUE_DEVTOOLS_GLOBAL_HOOK__}function F_(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const rS=typeof Proxy=="function",iS="devtools-plugin:setup",sS="plugin:settings:set";let Sl,Zf;function oS(){var t;return Sl!==void 0||(typeof window<"u"&&window.performance?(Sl=!0,Zf=window.performance):typeof globalThis<"u"&&(!((t=globalThis.perf_hooks)===null||t===void 0)&&t.performance)?(Sl=!0,Zf=globalThis.perf_hooks.performance):Sl=!1),Sl}function aS(){return oS()?Zf.now():Date.now()}class lS{constructor(e,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=n;const r={};if(e.settings)for(const h in e.settings){const c=e.settings[h];r[h]=c.defaultValue}const o=`__vue-devtools-plugin-settings__${e.id}`;let d=Object.assign({},r);try{const h=localStorage.getItem(o),c=JSON.parse(h);Object.assign(d,c)}catch{}this.fallbacks={getSettings(){return d},setSettings(h){try{localStorage.setItem(o,JSON.stringify(h))}catch{}d=h},now(){return aS()}},n&&n.on(sS,(h,c)=>{h===this.plugin.id&&this.fallbacks.setSettings(c)}),this.proxiedOn=new Proxy({},{get:(h,c)=>this.target?this.target.on[c]:(...b)=>{this.onQueue.push({method:c,args:b})}}),this.proxiedTarget=new Proxy({},{get:(h,c)=>this.target?this.target[c]:c==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(c)?(...b)=>(this.targetQueue.push({method:c,args:b,resolve:()=>{}}),this.fallbacks[c](...b)):(...b)=>new Promise(k=>{this.targetQueue.push({method:c,args:b,resolve:k})})})}async setRealTarget(e){this.target=e;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function cS(t,e){const n=t,r=F_(),o=nS(),d=rS&&n.enableEarlyProxy;if(o&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!d))o.emit(iS,t,e);else{const h=d?new lS(n,o):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:e,proxy:h}),h&&e(h.proxiedTarget)}}var jr={};const Gs=typeof document<"u";function $_(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function dS(t){return t.__esModule||t[Symbol.toStringTag]==="Module"||t.default&&$_(t.default)}const xn=Object.assign;function Yf(t,e){const n={};for(const r in e){const o=e[r];n[r]=Mi(o)?o.map(t):t(o)}return n}const id=()=>{},Mi=Array.isArray;function j_(t,e){const n={};for(const r in t)n[r]=r in e?e[r]:t[r];return n}function Kt(t){const e=Array.from(arguments).slice(1);console.warn.apply(console,["[Vue Router warn]: "+t].concat(e))}const U_=/#/g,uS=/&/g,hS=/\//g,pS=/=/g,fS=/\?/g,H_=/\+/g,mS=/%5B/g,gS=/%5D/g,W_=/%5E/g,yS=/%60/g,q_=/%7B/g,_S=/%7C/g,G_=/%7D/g,bS=/%20/g;function Xf(t){return t==null?"":encodeURI(""+t).replace(_S,"|").replace(mS,"[").replace(gS,"]")}function xS(t){return Xf(t).replace(q_,"{").replace(G_,"}").replace(W_,"^")}function Kf(t){return Xf(t).replace(H_,"%2B").replace(bS,"+").replace(U_,"%23").replace(uS,"%26").replace(yS,"`").replace(q_,"{").replace(G_,"}").replace(W_,"^")}function vS(t){return Kf(t).replace(pS,"%3D")}function wS(t){return Xf(t).replace(U_,"%23").replace(fS,"%3F")}function kS(t){return wS(t).replace(hS,"%2F")}function Tl(t){if(t==null)return null;try{return decodeURIComponent(""+t)}catch{jr.NODE_ENV!=="production"&&Kt(`Error decoding "${t}". Using original value`)}return""+t}const ES=/\/$/,CS=t=>t.replace(ES,"");function Jf(t,e,n="/"){let r,o={},d="",h="";const c=e.indexOf("#");let b=e.indexOf("?");return b=c>=0&&b>c?-1:b,b>=0&&(r=e.slice(0,b),d=e.slice(b,c>0?c:e.length),o=t(d.slice(1))),c>=0&&(r=r||e.slice(0,c),h=e.slice(c,e.length)),r=AS(r??e,n),{fullPath:r+d+h,path:r,query:o,hash:Tl(h)}}function SS(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function Z_(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function Y_(t,e,n){const r=e.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&Mo(e.matched[r],n.matched[o])&&X_(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function Mo(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function X_(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(!TS(t[n],e[n]))return!1;return!0}function TS(t,e){return Mi(t)?K_(t,e):Mi(e)?K_(e,t):t===e}function K_(t,e){return Mi(e)?t.length===e.length&&t.every((n,r)=>n===e[r]):t.length===1&&t[0]===e}function AS(t,e){if(t.startsWith("/"))return t;if(jr.NODE_ENV!=="production"&&!e.startsWith("/"))return Kt(`Cannot resolve a relative location without an absolute path. Trying to resolve "${t}" from "${e}". It should look like "/${e}".`),t;if(!t)return e;const n=e.split("/"),r=t.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let d=n.length-1,h,c;for(h=0;h<r.length;h++)if(c=r[h],c!==".")if(c==="..")d>1&&d--;else break;return n.slice(0,d).join("/")+"/"+r.slice(h).join("/")}const Io={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Qf=function(t){return t.pop="pop",t.push="push",t}({}),em=function(t){return t.back="back",t.forward="forward",t.unknown="",t}({});function DS(t){if(!t)if(Gs){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),CS(t)}const MS=/^[^#]+#/;function IS(t,e){return t.replace(MS,"#")+e}function PS(t,e){const n=document.documentElement.getBoundingClientRect(),r=t.getBoundingClientRect();return{behavior:e.behavior,left:r.left-n.left-(e.left||0),top:r.top-n.top-(e.top||0)}}const sh=()=>({left:window.scrollX,top:window.scrollY});function RS(t){let e;if("el"in t){const n=t.el,r=typeof n=="string"&&n.startsWith("#");if(jr.NODE_ENV!=="production"&&typeof t.el=="string"&&(!r||!document.getElementById(t.el.slice(1))))try{const d=document.querySelector(t.el);if(r&&d){Kt(`The selector "${t.el}" should be passed as "el: document.querySelector('${t.el}')" because it starts with "#".`);return}}catch{Kt(`The selector "${t.el}" is invalid. If you are using an id selector, make sure to escape it. You can find more information about escaping characters in selectors at https://mathiasbynens.be/notes/css-escapes or use CSS.escape (https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape).`);return}const o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o){jr.NODE_ENV!=="production"&&Kt(`Couldn't find element using selector "${t.el}" returned by scrollBehavior.`);return}e=PS(o,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function J_(t,e){return(history.state?history.state.position-e:-1)+t}const tm=new Map;function NS(t,e){tm.set(t,e)}function BS(t){const e=tm.get(t);return tm.delete(t),e}function oh(t){return typeof t=="string"||t&&typeof t=="object"}function Q_(t){return typeof t=="string"||typeof t=="symbol"}let or=function(t){return t[t.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",t[t.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",t[t.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",t[t.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",t[t.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",t}({});const nm=Symbol(jr.NODE_ENV!=="production"?"navigation failure":""),VS={[or.MATCHER_NOT_FOUND]({location:t,currentLocation:e}){return`No match for
${JSON.stringify(t)}${e?`
while being at
`+JSON.stringify(e):""}`},[or.NAVIGATION_GUARD_REDIRECT]({from:t,to:e}){return`Redirected from "${t.fullPath}" to "${OS(e)}" via a navigation guard.`},[or.NAVIGATION_ABORTED]({from:t,to:e}){return`Navigation aborted from "${t.fullPath}" to "${e.fullPath}" via a navigation guard.`},[or.NAVIGATION_CANCELLED]({from:t,to:e}){return`Navigation cancelled from "${t.fullPath}" to "${e.fullPath}" with a new navigation.`},[or.NAVIGATION_DUPLICATED]({from:t,to:e}){return`Avoided redundant navigation to current location: "${t.fullPath}".`}};function Al(t,e){return jr.NODE_ENV!=="production"?xn(new Error(VS[t](e)),{type:t,[nm]:!0},e):xn(new Error,{type:t,[nm]:!0},e)}function Zs(t,e){return t instanceof Error&&nm in t&&(e==null||!!(t.type&e))}const zS=["params","query","hash"];function OS(t){if(typeof t=="string")return t;if(t.path!=null)return t.path;const e={};for(const n of zS)n in t&&(e[n]=t[n]);return JSON.stringify(e,null,2)}function LS(t){const e={};if(t===""||t==="?")return e;const n=(t[0]==="?"?t.slice(1):t).split("&");for(let r=0;r<n.length;++r){const o=n[r].replace(H_," "),d=o.indexOf("="),h=Tl(d<0?o:o.slice(0,d)),c=d<0?null:Tl(o.slice(d+1));if(h in e){let b=e[h];Mi(b)||(b=e[h]=[b]),b.push(c)}else e[h]=c}return e}function eb(t){let e="";for(let n in t){const r=t[n];if(n=vS(n),r==null){r!==void 0&&(e+=(e.length?"&":"")+n);continue}(Mi(r)?r.map(o=>o&&Kf(o)):[r&&Kf(r)]).forEach(o=>{o!==void 0&&(e+=(e.length?"&":"")+n,o!=null&&(e+="="+o))})}return e}function FS(t){const e={};for(const n in t){const r=t[n];r!==void 0&&(e[n]=Mi(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return e}const $S=Symbol(jr.NODE_ENV!=="p