UNPKG

@opengis/admin

Version:

This project Softpro Admin

13 lines (11 loc) 2.12 MB
(function(d,nh){typeof exports=="object"&&typeof module<"u"?module.exports=nh(require("vue"),require("vuedraggable")):typeof define=="function"&&define.amd?define(["vue","vuedraggable"],nh):(d=typeof globalThis<"u"?globalThis:d||self,d.admin=nh(d.Vue,d.draggable))})(this,function(d,nh){"use strict";function aw(t,e){return function(){return t.apply(e,arguments)}}const{toString:EN}=Object.prototype,{getPrototypeOf:f0}=Object,{iterator:Pp,toStringTag:lw}=Symbol,Np=(t=>e=>{const n=EN.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),to=t=>(t=t.toLowerCase(),e=>Np(e)===t),Rp=t=>e=>typeof e===t,{isArray:od}=Array,rh=Rp("undefined");function SN(t){return t!==null&&!rh(t)&&t.constructor!==null&&!rh(t.constructor)&&Yi(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const cw=to("ArrayBuffer");function CN(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&cw(t.buffer),e}const TN=Rp("string"),Yi=Rp("function"),dw=Rp("number"),Op=t=>t!==null&&typeof t=="object",AN=t=>t===!0||t===!1,Bp=t=>{if(Np(t)!=="object")return!1;const e=f0(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(lw in t)&&!(Pp in t)},MN=to("Date"),DN=to("File"),IN=to("Blob"),PN=to("FileList"),NN=t=>Op(t)&&Yi(t.pipe),RN=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Yi(t.append)&&((e=Np(t))==="formdata"||e==="object"&&Yi(t.toString)&&t.toString()==="[object FormData]"))},ON=to("URLSearchParams"),[BN,VN,zN,LN]=["ReadableStream","Request","Response","Headers"].map(to),FN=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ih(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,i;if(typeof t!="object"&&(t=[t]),od(t))for(r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else{const s=n?Object.getOwnPropertyNames(t):Object.keys(t),a=s.length;let o;for(r=0;r<a;r++)o=s[r],e.call(null,t[o],o,t)}}function uw(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,i;for(;r-- >0;)if(i=n[r],e===i.toLowerCase())return i;return null}const ql=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,hw=t=>!rh(t)&&t!==ql;function p0(){const{caseless:t}=hw(this)&&this||{},e={},n=(r,i)=>{const s=t&&uw(e,i)||i;Bp(e[s])&&Bp(r)?e[s]=p0(e[s],r):Bp(r)?e[s]=p0({},r):od(r)?e[s]=r.slice():e[s]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&ih(arguments[r],n);return e}const $N=(t,e,n,{allOwnKeys:r}={})=>(ih(e,(i,s)=>{n&&Yi(i)?t[s]=aw(i,n):t[s]=i},{allOwnKeys:r}),t),jN=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),HN=(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)},UN=(t,e,n,r)=>{let i,s,a;const o={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),s=i.length;s-- >0;)a=i[s],(!r||r(a,t,e))&&!o[a]&&(e[a]=t[a],o[a]=!0);t=n!==!1&&f0(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},WN=(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},qN=t=>{if(!t)return null;if(od(t))return t;let e=t.length;if(!dw(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},GN=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&f0(Uint8Array)),YN=(t,e)=>{const r=(t&&t[Pp]).call(t);let i;for(;(i=r.next())&&!i.done;){const s=i.value;e.call(t,s[0],s[1])}},ZN=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},XN=to("HTMLFormElement"),KN=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),fw=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),JN=to("RegExp"),pw=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};ih(n,(i,s)=>{let a;(a=e(i,s,t))!==!1&&(r[s]=a||i)}),Object.defineProperties(t,r)},QN=t=>{pw(t,(e,n)=>{if(Yi(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(Yi(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+"'")})}})},eR=(t,e)=>{const n={},r=i=>{i.forEach(s=>{n[s]=!0})};return od(t)?r(t):r(String(t).split(e)),n},tR=()=>{},nR=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function rR(t){return!!(t&&Yi(t.append)&&t[lw]==="FormData"&&t[Pp])}const iR=t=>{const e=new Array(10),n=(r,i)=>{if(Op(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[i]=r;const s=od(r)?[]:{};return ih(r,(a,o)=>{const p=n(a,i+1);!rh(p)&&(s[o]=p)}),e[i]=void 0,s}}return r};return n(t,0)},sR=to("AsyncFunction"),oR=t=>t&&(Op(t)||Yi(t))&&Yi(t.then)&&Yi(t.catch),mw=((t,e)=>t?setImmediate:e?((n,r)=>(ql.addEventListener("message",({source:i,data:s})=>{i===ql&&s===n&&r.length&&r.shift()()},!1),i=>{r.push(i),ql.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Yi(ql.postMessage)),aR=typeof queueMicrotask<"u"?queueMicrotask.bind(ql):typeof process<"u"&&process.nextTick||mw,Be={isArray:od,isArrayBuffer:cw,isBuffer:SN,isFormData:RN,isArrayBufferView:CN,isString:TN,isNumber:dw,isBoolean:AN,isObject:Op,isPlainObject:Bp,isReadableStream:BN,isRequest:VN,isResponse:zN,isHeaders:LN,isUndefined:rh,isDate:MN,isFile:DN,isBlob:IN,isRegExp:JN,isFunction:Yi,isStream:NN,isURLSearchParams:ON,isTypedArray:GN,isFileList:PN,forEach:ih,merge:p0,extend:$N,trim:FN,stripBOM:jN,inherits:HN,toFlatObject:UN,kindOf:Np,kindOfTest:to,endsWith:WN,toArray:qN,forEachEntry:YN,matchAll:ZN,isHTMLForm:XN,hasOwnProperty:fw,hasOwnProp:fw,reduceDescriptors:pw,freezeMethods:QN,toObjectSet:eR,toCamelCase:KN,noop:tR,toFiniteNumber:nR,findKey:uw,global:ql,isContextDefined:hw,isSpecCompliantForm:rR,toJSONObject:iR,isAsyncFn:sR,isThenable:oR,setImmediate:mw,asap:aR,isIterable:t=>t!=null&&Yi(t[Pp])};function on(t,e,n,r,i){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),i&&(this.response=i,this.status=i.status?i.status:null)}Be.inherits(on,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:Be.toJSONObject(this.config),code:this.code,status:this.status}}});const gw=on.prototype,yw={};["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=>{yw[t]={value:t}}),Object.defineProperties(on,yw),Object.defineProperty(gw,"isAxiosError",{value:!0}),on.from=(t,e,n,r,i,s)=>{const a=Object.create(gw);return Be.toFlatObject(t,a,function(p){return p!==Error.prototype},o=>o!=="isAxiosError"),on.call(a,t.message,e,n,r,i),a.cause=t,a.name=t.name,s&&Object.assign(a,s),a};const lR=null;function m0(t){return Be.isPlainObject(t)||Be.isArray(t)}function bw(t){return Be.endsWith(t,"[]")?t.slice(0,-2):t}function _w(t,e,n){return t?t.concat(e).map(function(i,s){return i=bw(i),!n&&s?"["+i+"]":i}).join(n?".":""):e}function cR(t){return Be.isArray(t)&&!t.some(m0)}const dR=Be.toFlatObject(Be,{},null,function(e){return/^is[A-Z]/.test(e)});function Vp(t,e,n){if(!Be.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=Be.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(N,R){return!Be.isUndefined(R[N])});const r=n.metaTokens,i=n.visitor||y,s=n.dots,a=n.indexes,p=(n.Blob||typeof Blob<"u"&&Blob)&&Be.isSpecCompliantForm(e);if(!Be.isFunction(i))throw new TypeError("visitor must be a function");function g(M){if(M===null)return"";if(Be.isDate(M))return M.toISOString();if(Be.isBoolean(M))return M.toString();if(!p&&Be.isBlob(M))throw new on("Blob is not supported. Use a Buffer instead.");return Be.isArrayBuffer(M)||Be.isTypedArray(M)?p&&typeof Blob=="function"?new Blob([M]):Buffer.from(M):M}function y(M,N,R){let L=M;if(M&&!R&&typeof M=="object"){if(Be.endsWith(N,"{}"))N=r?N:N.slice(0,-2),M=JSON.stringify(M);else if(Be.isArray(M)&&cR(M)||(Be.isFileList(M)||Be.endsWith(N,"[]"))&&(L=Be.toArray(M)))return N=bw(N),L.forEach(function(Z,G){!(Be.isUndefined(Z)||Z===null)&&e.append(a===!0?_w([N],G,s):a===null?N:N+"[]",g(Z))}),!1}return m0(M)?!0:(e.append(_w(R,N,s),g(M)),!1)}const v=[],w=Object.assign(dR,{defaultVisitor:y,convertValue:g,isVisitable:m0});function T(M,N){if(!Be.isUndefined(M)){if(v.indexOf(M)!==-1)throw Error("Circular reference detected in "+N.join("."));v.push(M),Be.forEach(M,function(L,q){(!(Be.isUndefined(L)||L===null)&&i.call(e,L,Be.isString(q)?q.trim():q,N,w))===!0&&T(L,N?N.concat(q):[q])}),v.pop()}}if(!Be.isObject(t))throw new TypeError("data must be an object");return T(t),e}function xw(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function g0(t,e){this._pairs=[],t&&Vp(t,this,e)}const vw=g0.prototype;vw.append=function(e,n){this._pairs.push([e,n])},vw.toString=function(e){const n=e?function(r){return e.call(this,r,xw)}:xw;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function uR(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ww(t,e,n){if(!e)return t;const r=n&&n.encode||uR;Be.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let s;if(i?s=i(e,n):s=Be.isURLSearchParams(e)?e.toString():new g0(e,n).toString(r),s){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}class kw{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){Be.forEach(this.handlers,function(r){r!==null&&e(r)})}}const Ew={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},hR={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:g0,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},y0=typeof window<"u"&&typeof document<"u",b0=typeof navigator=="object"&&navigator||void 0,fR=y0&&(!b0||["ReactNative","NativeScript","NS"].indexOf(b0.product)<0),pR=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",mR=y0&&window.location.href||"http://localhost",gi={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:y0,hasStandardBrowserEnv:fR,hasStandardBrowserWebWorkerEnv:pR,navigator:b0,origin:mR},Symbol.toStringTag,{value:"Module"})),...hR};function gR(t,e){return Vp(t,new gi.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,s){return gi.isNode&&Be.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function yR(t){return Be.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function bR(t){const e={},n=Object.keys(t);let r;const i=n.length;let s;for(r=0;r<i;r++)s=n[r],e[s]=t[s];return e}function Sw(t){function e(n,r,i,s){let a=n[s++];if(a==="__proto__")return!0;const o=Number.isFinite(+a),p=s>=n.length;return a=!a&&Be.isArray(i)?i.length:a,p?(Be.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!o):((!i[a]||!Be.isObject(i[a]))&&(i[a]=[]),e(n,r,i[a],s)&&Be.isArray(i[a])&&(i[a]=bR(i[a])),!o)}if(Be.isFormData(t)&&Be.isFunction(t.entries)){const n={};return Be.forEachEntry(t,(r,i)=>{e(yR(r),i,n,0)}),n}return null}function _R(t,e,n){if(Be.isString(t))try{return(e||JSON.parse)(t),Be.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const sh={transitional:Ew,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,s=Be.isObject(e);if(s&&Be.isHTMLForm(e)&&(e=new FormData(e)),Be.isFormData(e))return i?JSON.stringify(Sw(e)):e;if(Be.isArrayBuffer(e)||Be.isBuffer(e)||Be.isStream(e)||Be.isFile(e)||Be.isBlob(e)||Be.isReadableStream(e))return e;if(Be.isArrayBufferView(e))return e.buffer;if(Be.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return gR(e,this.formSerializer).toString();if((o=Be.isFileList(e))||r.indexOf("multipart/form-data")>-1){const p=this.env&&this.env.FormData;return Vp(o?{"files[]":e}:e,p&&new p,this.formSerializer)}}return s||i?(n.setContentType("application/json",!1),_R(e)):e}],transformResponse:[function(e){const n=this.transitional||sh.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(Be.isResponse(e)||Be.isReadableStream(e))return e;if(e&&Be.isString(e)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(o){if(a)throw o.name==="SyntaxError"?on.from(o,on.ERR_BAD_RESPONSE,this,null,this.response):o}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:gi.classes.FormData,Blob:gi.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Be.forEach(["delete","get","head","post","put","patch"],t=>{sh.headers[t]={}});const xR=Be.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"]),vR=t=>{const e={};let n,r,i;return t&&t.split(` `).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||e[n]&&xR[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},Cw=Symbol("internals");function oh(t){return t&&String(t).trim().toLowerCase()}function zp(t){return t===!1||t==null?t:Be.isArray(t)?t.map(zp):String(t)}function wR(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 kR=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function _0(t,e,n,r,i){if(Be.isFunction(r))return r.call(this,e,n);if(i&&(e=n),!!Be.isString(e)){if(Be.isString(r))return e.indexOf(r)!==-1;if(Be.isRegExp(r))return r.test(e)}}function ER(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function SR(t,e){const n=Be.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(i,s,a){return this[r].call(this,e,i,s,a)},configurable:!0})})}let Zi=class{constructor(e){e&&this.set(e)}set(e,n,r){const i=this;function s(o,p,g){const y=oh(p);if(!y)throw new Error("header name must be a non-empty string");const v=Be.findKey(i,y);(!v||i[v]===void 0||g===!0||g===void 0&&i[v]!==!1)&&(i[v||p]=zp(o))}const a=(o,p)=>Be.forEach(o,(g,y)=>s(g,y,p));if(Be.isPlainObject(e)||e instanceof this.constructor)a(e,n);else if(Be.isString(e)&&(e=e.trim())&&!kR(e))a(vR(e),n);else if(Be.isObject(e)&&Be.isIterable(e)){let o={},p,g;for(const y of e){if(!Be.isArray(y))throw TypeError("Object iterator must return a key-value pair");o[g=y[0]]=(p=o[g])?Be.isArray(p)?[...p,y[1]]:[p,y[1]]:y[1]}a(o,n)}else e!=null&&s(n,e,r);return this}get(e,n){if(e=oh(e),e){const r=Be.findKey(this,e);if(r){const i=this[r];if(!n)return i;if(n===!0)return wR(i);if(Be.isFunction(n))return n.call(this,i,r);if(Be.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=oh(e),e){const r=Be.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||_0(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let i=!1;function s(a){if(a=oh(a),a){const o=Be.findKey(r,a);o&&(!n||_0(r,r[o],o,n))&&(delete r[o],i=!0)}}return Be.isArray(e)?e.forEach(s):s(e),i}clear(e){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const s=n[r];(!e||_0(this,this[s],s,e,!0))&&(delete this[s],i=!0)}return i}normalize(e){const n=this,r={};return Be.forEach(this,(i,s)=>{const a=Be.findKey(r,s);if(a){n[a]=zp(i),delete n[s];return}const o=e?ER(s):String(s).trim();o!==s&&delete n[s],n[o]=zp(i),r[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return Be.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=e&&Be.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(i=>r.set(i)),r}static accessor(e){const r=(this[Cw]=this[Cw]={accessors:{}}).accessors,i=this.prototype;function s(a){const o=oh(a);r[o]||(SR(i,a),r[o]=!0)}return Be.isArray(e)?e.forEach(s):s(e),this}};Zi.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Be.reduceDescriptors(Zi.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}}),Be.freezeMethods(Zi);function x0(t,e){const n=this||sh,r=e||n,i=Zi.from(r.headers);let s=r.data;return Be.forEach(t,function(o){s=o.call(n,s,i.normalize(),e?e.status:void 0)}),i.normalize(),s}function Tw(t){return!!(t&&t.__CANCEL__)}function ad(t,e,n){on.call(this,t??"canceled",on.ERR_CANCELED,e,n),this.name="CanceledError"}Be.inherits(ad,on,{__CANCEL__:!0});function Aw(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new on("Request failed with status code "+n.status,[on.ERR_BAD_REQUEST,on.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function CR(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function TR(t,e){t=t||10;const n=new Array(t),r=new Array(t);let i=0,s=0,a;return e=e!==void 0?e:1e3,function(p){const g=Date.now(),y=r[s];a||(a=g),n[i]=p,r[i]=g;let v=s,w=0;for(;v!==i;)w+=n[v++],v=v%t;if(i=(i+1)%t,i===s&&(s=(s+1)%t),g-a<e)return;const T=y&&g-y;return T?Math.round(w*1e3/T):void 0}}function AR(t,e){let n=0,r=1e3/e,i,s;const a=(g,y=Date.now())=>{n=y,i=null,s&&(clearTimeout(s),s=null),t.apply(null,g)};return[(...g)=>{const y=Date.now(),v=y-n;v>=r?a(g,y):(i=g,s||(s=setTimeout(()=>{s=null,a(i)},r-v)))},()=>i&&a(i)]}const Lp=(t,e,n=3)=>{let r=0;const i=TR(50,250);return AR(s=>{const a=s.loaded,o=s.lengthComputable?s.total:void 0,p=a-r,g=i(p),y=a<=o;r=a;const v={loaded:a,total:o,progress:o?a/o:void 0,bytes:p,rate:g||void 0,estimated:g&&o&&y?(o-a)/g:void 0,event:s,lengthComputable:o!=null,[e?"download":"upload"]:!0};t(v)},n)},Mw=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},Dw=t=>(...e)=>Be.asap(()=>t(...e)),MR=gi.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,gi.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(gi.origin),gi.navigator&&/(msie|trident)/i.test(gi.navigator.userAgent)):()=>!0,DR=gi.hasStandardBrowserEnv?{write(t,e,n,r,i,s){const a=[t+"="+encodeURIComponent(e)];Be.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Be.isString(r)&&a.push("path="+r),Be.isString(i)&&a.push("domain="+i),s===!0&&a.push("secure"),document.cookie=a.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function IR(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function PR(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Iw(t,e,n){let r=!IR(e);return t&&(r||n==!1)?PR(t,e):e}const Pw=t=>t instanceof Zi?{...t}:t;function Gl(t,e){e=e||{};const n={};function r(g,y,v,w){return Be.isPlainObject(g)&&Be.isPlainObject(y)?Be.merge.call({caseless:w},g,y):Be.isPlainObject(y)?Be.merge({},y):Be.isArray(y)?y.slice():y}function i(g,y,v,w){if(Be.isUndefined(y)){if(!Be.isUndefined(g))return r(void 0,g,v,w)}else return r(g,y,v,w)}function s(g,y){if(!Be.isUndefined(y))return r(void 0,y)}function a(g,y){if(Be.isUndefined(y)){if(!Be.isUndefined(g))return r(void 0,g)}else return r(void 0,y)}function o(g,y,v){if(v in e)return r(g,y);if(v in t)return r(void 0,g)}const p={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,responseEncoding:a,validateStatus:o,headers:(g,y,v)=>i(Pw(g),Pw(y),v,!0)};return Be.forEach(Object.keys(Object.assign({},t,e)),function(y){const v=p[y]||i,w=v(t[y],e[y],y);Be.isUndefined(w)&&v!==o||(n[y]=w)}),n}const Nw=t=>{const e=Gl({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:s,headers:a,auth:o}=e;e.headers=a=Zi.from(a),e.url=ww(Iw(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),o&&a.set("Authorization","Basic "+btoa((o.username||"")+":"+(o.password?unescape(encodeURIComponent(o.password)):"")));let p;if(Be.isFormData(n)){if(gi.hasStandardBrowserEnv||gi.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((p=a.getContentType())!==!1){const[g,...y]=p?p.split(";").map(v=>v.trim()).filter(Boolean):[];a.setContentType([g||"multipart/form-data",...y].join("; "))}}if(gi.hasStandardBrowserEnv&&(r&&Be.isFunction(r)&&(r=r(e)),r||r!==!1&&MR(e.url))){const g=i&&s&&DR.read(s);g&&a.set(i,g)}return e},NR=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,r){const i=Nw(t);let s=i.data;const a=Zi.from(i.headers).normalize();let{responseType:o,onUploadProgress:p,onDownloadProgress:g}=i,y,v,w,T,M;function N(){T&&T(),M&&M(),i.cancelToken&&i.cancelToken.unsubscribe(y),i.signal&&i.signal.removeEventListener("abort",y)}let R=new XMLHttpRequest;R.open(i.method.toUpperCase(),i.url,!0),R.timeout=i.timeout;function L(){if(!R)return;const Z=Zi.from("getAllResponseHeaders"in R&&R.getAllResponseHeaders()),ue={data:!o||o==="text"||o==="json"?R.responseText:R.response,status:R.status,statusText:R.statusText,headers:Z,config:t,request:R};Aw(function(ye){n(ye),N()},function(ye){r(ye),N()},ue),R=null}"onloadend"in R?R.onloadend=L:R.onreadystatechange=function(){!R||R.readyState!==4||R.status===0&&!(R.responseURL&&R.responseURL.indexOf("file:")===0)||setTimeout(L)},R.onabort=function(){R&&(r(new on("Request aborted",on.ECONNABORTED,t,R)),R=null)},R.onerror=function(){r(new on("Network Error",on.ERR_NETWORK,t,R)),R=null},R.ontimeout=function(){let G=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const ue=i.transitional||Ew;i.timeoutErrorMessage&&(G=i.timeoutErrorMessage),r(new on(G,ue.clarifyTimeoutError?on.ETIMEDOUT:on.ECONNABORTED,t,R)),R=null},s===void 0&&a.setContentType(null),"setRequestHeader"in R&&Be.forEach(a.toJSON(),function(G,ue){R.setRequestHeader(ue,G)}),Be.isUndefined(i.withCredentials)||(R.withCredentials=!!i.withCredentials),o&&o!=="json"&&(R.responseType=i.responseType),g&&([w,M]=Lp(g,!0),R.addEventListener("progress",w)),p&&R.upload&&([v,T]=Lp(p),R.upload.addEventListener("progress",v),R.upload.addEventListener("loadend",T)),(i.cancelToken||i.signal)&&(y=Z=>{R&&(r(!Z||Z.type?new ad(null,t,R):Z),R.abort(),R=null)},i.cancelToken&&i.cancelToken.subscribe(y),i.signal&&(i.signal.aborted?y():i.signal.addEventListener("abort",y)));const q=CR(i.url);if(q&&gi.protocols.indexOf(q)===-1){r(new on("Unsupported protocol "+q+":",on.ERR_BAD_REQUEST,t));return}R.send(s||null)})},RR=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,i;const s=function(g){if(!i){i=!0,o();const y=g instanceof Error?g:this.reason;r.abort(y instanceof on?y:new ad(y instanceof Error?y.message:y))}};let a=e&&setTimeout(()=>{a=null,s(new on(`timeout ${e} of ms exceeded`,on.ETIMEDOUT))},e);const o=()=>{t&&(a&&clearTimeout(a),a=null,t.forEach(g=>{g.unsubscribe?g.unsubscribe(s):g.removeEventListener("abort",s)}),t=null)};t.forEach(g=>g.addEventListener("abort",s));const{signal:p}=r;return p.unsubscribe=()=>Be.asap(o),p}},OR=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,i;for(;r<n;)i=r+e,yield t.slice(r,i),r=i},BR=async function*(t,e){for await(const n of VR(t))yield*OR(n,e)},VR=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()}},Rw=(t,e,n,r)=>{const i=BR(t,e);let s=0,a,o=p=>{a||(a=!0,r&&r(p))};return new ReadableStream({async pull(p){try{const{done:g,value:y}=await i.next();if(g){o(),p.close();return}let v=y.byteLength;if(n){let w=s+=v;n(w)}p.enqueue(new Uint8Array(y))}catch(g){throw o(g),g}},cancel(p){return o(p),i.return()}},{highWaterMark:2})},Fp=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Ow=Fp&&typeof ReadableStream=="function",zR=Fp&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),Bw=(t,...e)=>{try{return!!t(...e)}catch{return!1}},LR=Ow&&Bw(()=>{let t=!1;const e=new Request(gi.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),Vw=64*1024,v0=Ow&&Bw(()=>Be.isReadableStream(new Response("").body)),$p={stream:v0&&(t=>t.body)};Fp&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!$p[e]&&($p[e]=Be.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new on(`Response type '${e}' is not supported`,on.ERR_NOT_SUPPORT,r)})})})(new Response);const FR=async t=>{if(t==null)return 0;if(Be.isBlob(t))return t.size;if(Be.isSpecCompliantForm(t))return(await new Request(gi.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(Be.isArrayBufferView(t)||Be.isArrayBuffer(t))return t.byteLength;if(Be.isURLSearchParams(t)&&(t=t+""),Be.isString(t))return(await zR(t)).byteLength},$R=async(t,e)=>{const n=Be.toFiniteNumber(t.getContentLength());return n??FR(e)},w0={http:lR,xhr:NR,fetch:Fp&&(async t=>{let{url:e,method:n,data:r,signal:i,cancelToken:s,timeout:a,onDownloadProgress:o,onUploadProgress:p,responseType:g,headers:y,withCredentials:v="same-origin",fetchOptions:w}=Nw(t);g=g?(g+"").toLowerCase():"text";let T=RR([i,s&&s.toAbortSignal()],a),M;const N=T&&T.unsubscribe&&(()=>{T.unsubscribe()});let R;try{if(p&&LR&&n!=="get"&&n!=="head"&&(R=await $R(y,r))!==0){let ue=new Request(e,{method:"POST",body:r,duplex:"half"}),pe;if(Be.isFormData(r)&&(pe=ue.headers.get("content-type"))&&y.setContentType(pe),ue.body){const[ye,ve]=Mw(R,Lp(Dw(p)));r=Rw(ue.body,Vw,ye,ve)}}Be.isString(v)||(v=v?"include":"omit");const L="credentials"in Request.prototype;M=new Request(e,{...w,signal:T,method:n.toUpperCase(),headers:y.normalize().toJSON(),body:r,duplex:"half",credentials:L?v:void 0});let q=await fetch(M,w);const Z=v0&&(g==="stream"||g==="response");if(v0&&(o||Z&&N)){const ue={};["status","statusText","headers"].forEach(Ce=>{ue[Ce]=q[Ce]});const pe=Be.toFiniteNumber(q.headers.get("content-length")),[ye,ve]=o&&Mw(pe,Lp(Dw(o),!0))||[];q=new Response(Rw(q.body,Vw,ye,()=>{ve&&ve(),N&&N()}),ue)}g=g||"text";let G=await $p[Be.findKey($p,g)||"text"](q,t);return!Z&&N&&N(),await new Promise((ue,pe)=>{Aw(ue,pe,{data:G,headers:Zi.from(q.headers),status:q.status,statusText:q.statusText,config:t,request:M})})}catch(L){throw N&&N(),L&&L.name==="TypeError"&&/Load failed|fetch/i.test(L.message)?Object.assign(new on("Network Error",on.ERR_NETWORK,t,M),{cause:L.cause||L}):on.from(L,L&&L.code,t,M)}})};Be.forEach(w0,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const zw=t=>`- ${t}`,jR=t=>Be.isFunction(t)||t===null||t===!1,Lw={getAdapter:t=>{t=Be.isArray(t)?t:[t];const{length:e}=t;let n,r;const i={};for(let s=0;s<e;s++){n=t[s];let a;if(r=n,!jR(n)&&(r=w0[(a=String(n)).toLowerCase()],r===void 0))throw new on(`Unknown adapter '${a}'`);if(r)break;i[a||"#"+s]=r}if(!r){const s=Object.entries(i).map(([o,p])=>`adapter ${o} `+(p===!1?"is not supported by the environment":"is not available in the build"));let a=e?s.length>1?`since : `+s.map(zw).join(` `):" "+zw(s[0]):"as no adapter specified";throw new on("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:w0};function k0(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ad(null,t)}function Fw(t){return k0(t),t.headers=Zi.from(t.headers),t.data=x0.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Lw.getAdapter(t.adapter||sh.adapter)(t).then(function(r){return k0(t),r.data=x0.call(t,t.transformResponse,r),r.headers=Zi.from(r.headers),r},function(r){return Tw(r)||(k0(t),r&&r.response&&(r.response.data=x0.call(t,t.transformResponse,r.response),r.response.headers=Zi.from(r.response.headers))),Promise.reject(r)})}const $w="1.10.0",jp={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{jp[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const jw={};jp.transitional=function(e,n,r){function i(s,a){return"[Axios v"+$w+"] Transitional option '"+s+"'"+a+(r?". "+r:"")}return(s,a,o)=>{if(e===!1)throw new on(i(a," has been removed"+(n?" in "+n:"")),on.ERR_DEPRECATED);return n&&!jw[a]&&(jw[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(s,a,o):!0}},jp.spelling=function(e){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function HR(t,e,n){if(typeof t!="object")throw new on("options must be an object",on.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let i=r.length;for(;i-- >0;){const s=r[i],a=e[s];if(a){const o=t[s],p=o===void 0||a(o,s,t);if(p!==!0)throw new on("option "+s+" must be "+p,on.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new on("Unknown option "+s,on.ERR_BAD_OPTION)}}const Hp={assertOptions:HR,validators:jp},yo=Hp.validators;let Yl=class{constructor(e){this.defaults=e||{},this.interceptors={request:new kw,response:new kw}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const s=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=` `+s):r.stack=s}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=Gl(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:s}=n;r!==void 0&&Hp.assertOptions(r,{silentJSONParsing:yo.transitional(yo.boolean),forcedJSONParsing:yo.transitional(yo.boolean),clarifyTimeoutError:yo.transitional(yo.boolean)},!1),i!=null&&(Be.isFunction(i)?n.paramsSerializer={serialize:i}:Hp.assertOptions(i,{encode:yo.function,serialize:yo.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Hp.assertOptions(n,{baseUrl:yo.spelling("baseURL"),withXsrfToken:yo.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=s&&Be.merge(s.common,s[n.method]);s&&Be.forEach(["delete","get","head","post","put","patch","common"],M=>{delete s[M]}),n.headers=Zi.concat(a,s);const o=[];let p=!0;this.interceptors.request.forEach(function(N){typeof N.runWhen=="function"&&N.runWhen(n)===!1||(p=p&&N.synchronous,o.unshift(N.fulfilled,N.rejected))});const g=[];this.interceptors.response.forEach(function(N){g.push(N.fulfilled,N.rejected)});let y,v=0,w;if(!p){const M=[Fw.bind(this),void 0];for(M.unshift.apply(M,o),M.push.apply(M,g),w=M.length,y=Promise.resolve(n);v<w;)y=y.then(M[v++],M[v++]);return y}w=o.length;let T=n;for(v=0;v<w;){const M=o[v++],N=o[v++];try{T=M(T)}catch(R){N.call(this,R);break}}try{y=Fw.call(this,T)}catch(M){return Promise.reject(M)}for(v=0,w=g.length;v<w;)y=y.then(g[v++],g[v++]);return y}getUri(e){e=Gl(this.defaults,e);const n=Iw(e.baseURL,e.url,e.allowAbsoluteUrls);return ww(n,e.params,e.paramsSerializer)}};Be.forEach(["delete","get","head","options"],function(e){Yl.prototype[e]=function(n,r){return this.request(Gl(r||{},{method:e,url:n,data:(r||{}).data}))}}),Be.forEach(["post","put","patch"],function(e){function n(r){return function(s,a,o){return this.request(Gl(o||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))}}Yl.prototype[e]=n(),Yl.prototype[e+"Form"]=n(!0)});let UR=class xN{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(i=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](i);r._listeners=null}),this.promise.then=i=>{let s;const a=new Promise(o=>{r.subscribe(o),s=o}).then(i);return a.cancel=function(){r.unsubscribe(s)},a},e(function(s,a,o){r.reason||(r.reason=new ad(s,a,o),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 xN(function(i){e=i}),cancel:e}}};function WR(t){return function(n){return t.apply(null,n)}}function qR(t){return Be.isObject(t)&&t.isAxiosError===!0}const E0={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};Object.entries(E0).forEach(([t,e])=>{E0[e]=t});function Hw(t){const e=new Yl(t),n=aw(Yl.prototype.request,e);return Be.extend(n,Yl.prototype,e,{allOwnKeys:!0}),Be.extend(n,e,null,{allOwnKeys:!0}),n.create=function(i){return Hw(Gl(t,i))},n}const Ue=Hw(sh);Ue.Axios=Yl,Ue.CanceledError=ad,Ue.CancelToken=UR,Ue.isCancel=Tw,Ue.VERSION=$w,Ue.toFormData=Vp,Ue.AxiosError=on,Ue.Cancel=Ue.CanceledError,Ue.all=function(e){return Promise.all(e)},Ue.spread=WR,Ue.isAxiosError=qR,Ue.mergeConfig=Gl,Ue.AxiosHeaders=Zi,Ue.formToJSON=t=>Sw(Be.isHTMLForm(t)?new FormData(t):t),Ue.getAdapter=Lw.getAdapter,Ue.HttpStatusCode=E0,Ue.default=Ue;const{Axios:jfe,AxiosError:Hfe,CanceledError:Ufe,isCancel:Wfe,CancelToken:qfe,VERSION:Gfe,all:Yfe,Cancel:Zfe,isAxiosError:Xfe,spread:Kfe,toFormData:Jfe,AxiosHeaders:Qfe,HttpStatusCode:epe,formToJSON:tpe,getAdapter:npe,mergeConfig:rpe}=Ue,lt=d.ref({}),GR=()=>{const t=new CustomEvent("reloadTablePage");window.dispatchEvent(t)},Up=()=>{const t=new CustomEvent("reloadCardPage");window.dispatchEvent(t)},YR={class:"p-[10px]"},ZR={class:"flex justify-end p-[20px] gap-[10px] border-t w-full"},XR=["onClick"],KR=["disabled"],JR={__name:"vs-plugin-form",props:{handleClose:Function},setup(t){var v;const{$notify:e=()=>1}=(v=d.getCurrentInstance())==null?void 0:v.proxy,n=d.ref(!1),r=d.ref(null),i=d.ref(!1),s=d.ref({}),a=d.ref(),o=d.ref({}),p=w=>{n.value=!1,r.value=null,s.value={},o.value={};const T=new CustomEvent("closeFormPlugin");T.message=w,window.dispatchEvent(T)},g=async()=>{var w,T,M,N,R,L,q,Z,G,ue,pe;try{if(((w=o.value)==null?void 0:w.method)!=="POST"){const ve=await Ue.get(`${((T=o.value)==null?void 0:T.api)||"/api/table/"}${((M=o.value)==null?void 0:M.token)||((N=o.value)==null?void 0:N.id)||""}`);s.value=ve.data}(R=o.value)!=null&&R.init&&(s.value=(L=o.value)==null?void 0:L.init);const{data:ye}=await Ue.get(`/api/template/form/${((q=o.value)==null?void 0:q.token)||((Z=o.value)==null?void 0:Z.form)}`);if(ye!=null&&ye.obj&&(s.value={...s.value,...ye.obj}),(G=o.value)!=null&&G.obj){const ve=(pe=(ue=o.value)==null?void 0:ue.obj)==null?void 0:pe.split("#"),Ce=ve==null?void 0:ve.reduce((Pe,Fe)=>{const[He,qe]=Fe==null?void 0:Fe.split("=");return Pe[He]=qe,Pe},{});s.value={...s.value,...Ce}}r.value=(ye==null?void 0:ye.schema)||ye}catch(ye){console.error("Error fetching form scheme:",ye)}finally{n.value=!0}},y=async()=>{var w,T,M,N,R;if(!i.value){i.value=!0;try{await a.value.doValidation();const{data:L}=await Ue({method:((w=o.value)==null?void 0:w.method)||"PUT",url:`${((T=o.value)==null?void 0:T.api)||"/api/table/"}${((M=o.value)==null?void 0:M.token)||((N=o.value)==null?void 0:N.id)||""}`,data:s.value});Up(),GR(),p(L),e({title:"Успішно!",type:"success",message:"Операція виконана успішно"})}catch(L){e({title:"Помилка!",type:"error",message:L.message==="validation error"?"Перевірте правильність полів.":((R=L==null?void 0:L.response)==null?void 0:R.data)||"Сталася помилка"})}finally{i.value=!1}}};return d.onMounted(()=>{window.addEventListener("openFormPlugin",({options:w})=>{o.value=w,n.value=!0,g()})}),(w,T)=>{var R;const M=d.resolveComponent("VsForm"),N=d.resolveComponent("VsDialog");return r.value?(d.openBlock(),d.createBlock(N,{key:0,title:((R=o.value)==null?void 0:R.title)||"Редагувати",visible:n.value,"onUpdate:visible":T[1]||(T[1]=L=>n.value=L),onOnClose:p},{footer:d.withCtx(({handleClose:L})=>[d.createElementVNode("div",ZR,[d.createElementVNode("button",{style:{border:"1px solid #000"},onClick:q=>L(),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,XR),d.createElementVNode("button",{disabled:i.value,onClick:y,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,KR)])]),default:d.withCtx(()=>[d.createElementVNode("div",YR,[d.createVNode(M,{ref_key:"form",ref:a,scheme:r.value,modelValue:s.value,"onUpdate:modelValue":T[0]||(T[0]=L=>s.value=L),class:"p-0"},null,8,["scheme","modelValue"])])]),_:1},8,["title","visible"])):d.createCommentVNode("",!0)}}},QR={__name:"admin",setup(t){var n,r;document.title=((n=lt.value)==null?void 0:n.titlePrefix)||""+((r=lt.value)==null?void 0:r.title)||"",e(lt.value.favicon);function e(i){let s=document.querySelector("link[rel~='icon']");s||(s=document.createElement("link"),s.rel="icon",document.getElementsByTagName("head")[0].appendChild(s)),s.href=i}return(i,s)=>{const a=d.resolveComponent("router-view");return d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createVNode(a),d.createVNode(JR)],64)}}};function eO(){return Uw().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Uw(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const tO=typeof Proxy=="function",nO="devtools-plugin:setup",rO="plugin:settings:set";let ld,S0;function iO(){var t;return ld!==void 0||(typeof window<"u"&&window.performance?(ld=!0,S0=window.performance):typeof globalThis<"u"&&(!((t=globalThis.perf_hooks)===null||t===void 0)&&t.performance)?(ld=!0,S0=globalThis.perf_hooks.performance):ld=!1),ld}function sO(){return iO()?S0.now():Date.now()}class oO{constructor(e,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=n;const r={};if(e.settings)for(const a in e.settings){const o=e.settings[a];r[a]=o.defaultValue}const i=`__vue-devtools-plugin-settings__${e.id}`;let s=Object.assign({},r);try{const a=localStorage.getItem(i),o=JSON.parse(a);Object.assign(s,o)}catch{}this.fallbacks={getSettings(){return s},setSettings(a){try{localStorage.setItem(i,JSON.stringify(a))}catch{}s=a},now(){return sO()}},n&&n.on(rO,(a,o)=>{a===this.plugin.id&&this.fallbacks.setSettings(o)}),this.proxiedOn=new Proxy({},{get:(a,o)=>this.target?this.target.on[o]:(...p)=>{this.onQueue.push({method:o,args:p})}}),this.proxiedTarget=new Proxy({},{get:(a,o)=>this.target?this.target[o]:o==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(o)?(...p)=>(this.targetQueue.push({method:o,args:p,resolve:()=>{}}),this.fallbacks[o](...p)):(...p)=>new Promise(g=>{this.targetQueue.push({method:o,args:p,resolve:g})})})}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 aO(t,e){const n=t,r=Uw(),i=eO(),s=tO&&n.enableEarlyProxy;if(i&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!s))i.emit(nO,t,e);else{const a=s?new oO(n,i):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:e,proxy:a}),a&&e(a.proxiedTarget)}}var Qt={};const Uo=typeof document<"u";function Ww(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function lO(t){return t.__esModule||t[Symbol.toStringTag]==="Module"||t.default&&Ww(t.default)}const Nn=Object.assign;function C0(t,e){const n={};for(const r in e){const i=e[r];n[r]=fs(i)?i.map(t):t(i)}return n}const ah=()=>{},fs=Array.isArray;function mn(t){const e=Array.from(arguments).slice(1);console.warn.apply(console,["[Vue Router warn]: "+t].concat(e))}const qw=/#/g,cO=/&/g,dO=/\//g,uO=/=/g,hO=/\?/g,Gw=/\+/g,fO=/%5B/g,pO=/%5D/g,Yw=/%5E/g,mO=/%60/g,Zw=/%7B/g,gO=/%7C/g,Xw=/%7D/g,yO=/%20/g;function T0(t){return encodeURI(""+t).replace(gO,"|").replace(fO,"[").replace(pO,"]")}function bO(t){return T0(t).replace(Zw,"{").replace(Xw,"}").replace(Yw,"^")}function A0(t){return T0(t).replace(Gw,"%2B").replace(yO,"+").replace(qw,"%23").replace(cO,"%26").replace(mO,"`").replace(Zw,"{").replace(Xw,"}").replace(Yw,"^")}function _O(t){return A0(t).replace(uO,"%3D")}function xO(t){return T0(t).replace(qw,"%23").replace(hO,"%3F")}function vO(t){return t==null?"":xO(t).replace(dO,"%2F")}function cd(t){try{return decodeURIComponent(""+t)}catch{Qt.NODE_ENV!=="production"&&mn(`Error decoding "${t}". Using original value`)}return""+t}const wO=/\/$/,kO=t=>t.replace(wO,"");function M0(t,e,n="/"){let r,i={},s="",a="";const o=e.indexOf("#");let p=e.indexOf("?");return o<p&&o>=0&&(p=-1),p>-1&&(r=e.slice(0,p),s=e.slice(p+1,o>-1?o:e.length),i=t(s)),o>-1&&(r=r||e.slice(0,o),a=e.slice(o,e.length)),r=CO(r??e,n),{fullPath:r+(s&&"?")+s+a,path:r,query:i,hash:cd(a)}}function EO(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function Kw(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function Jw(t,e,n){const r=e.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&Oa(e.matched[r],n.matched[i])&&Qw(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function Oa(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function Qw(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(!SO(t[n],e[n]))return!1;return!0}function SO(t,e){return fs(t)?ek(t,e):fs(e)?ek(e,t):t===e}function ek(t,e){return fs(e)?t.length===e.length&&t.every((n,r)=>n===e[r]):t.length===1&&t[0]===e}function CO(t,e){if(t.startsWith("/"))return t;if(Qt.NODE_ENV!=="production"&&!e.startsWith("/"))return mn(`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("/"),i=r[r.length-1];(i===".."||i===".")&&r.push("");let s=n.length-1,a,o;for(a=0;a<r.length;a++)if(o=r[a],o!==".")if(o==="..")s>1&&s--;else break;return n.slice(0,s).join("/")+"/"+r.slice(a).join("/")}const Ba={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var lh;(function(t){t.pop="pop",t.push="push"})(lh||(lh={}));var ch;(function(t){t.back="back",t.forward="forward",t.unknown=""})(ch||(ch={}));function TO(t){if(!t)if(Uo){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),kO(t)}const AO=/^[^#]+#/;function MO(t,e){return t.replace(AO,"#")+e}function DO(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 Wp=()=>({left:window.scrollX,top:window.scrollY});function IO(t){let e;if("el"in t){const n=t.el,r=typeof n=="string"&&n.startsWith("#");if(Qt.NODE_ENV!=="production"&&typeof t.el=="string"&&(!r||!document.getElementById(t.el.slice(1))))try{const s=document.querySelector(t.el);if(r&&s){mn(`The selector "${t.el}" should be passed as "el: document.querySelector('${t.el}')" because it starts with "#".`);return}}catch{mn(`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 i=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i){Qt.NODE_ENV!=="production"&&mn(`Couldn't find element using selector "${t.el}" returned by scrollBehavior.`);return}e=DO(i,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 tk(t,e){return(history.state?history.state.position-e:-1)+t}const D0=new Map;function PO(t,e){D0.set(t,e)}function NO(t){const e=D0.get(t);return D0.delete(t),e}let RO=()=>location.protocol+"//"+location.host;function nk(t,e){const{pathname:n,search:r,hash:i}=e,s=t.indexOf("#");if(s>-1){let o=i.includes(t.slice(s))?t.slice(s).length:1,p=i.slice(o);return p[0]!=="/"&&(p="/"+p),Kw(p,"")}return Kw(n,t)+r+i}function OO(t,e,n,r){let i=[],s=[],a=null;const o=({state:w})=>{const T=nk(t,location),M=n.value,N=e.value;let R=0;if(w){if(n.value=T,e.value=w,a&&a===M){a=null;return}R=N?w.position-N.position:0}else r(T);i.forEach(L=>{L(n.value,M,{delta:R,type:lh.pop,direction:R?R>0?ch.forward:ch.back:ch.unknown})})};function p(){a=n.value}function g(w){i.push(w);const T=()=>{const M=i.indexOf(w);M>-1&&i.splice(M,1)};return s.push(T),T}function y(){const{history:w}=window;w.state&&w.replaceState(Nn({},w.state,{scroll:Wp()}),"")}function v(){for(const w of s)w();s=[],window.removeEventListener("popstate",o),window.removeEventListener("beforeunload",y)}return window.addEventListener("popstate",o),window.addEventListener("beforeunload",y,{passive:!0}),{pauseListeners:p,listen:g,destroy:v}}function rk(t,e,n,r=!1,i=!1){return{back:t,current:e,forward:n,replaced:r,position:window.history.length,scroll:i?Wp():null}}function BO(t){const{history:e,location:n}=window,r={value:nk(t,n)},i={value:e.state};i.value||s(r.value,{back:null,current:r.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function s(p,g,y){const v=t.indexOf("#"),w=v>-1?(n.host&&document.querySelector("base")?t:t.slice(v))+p:RO()+t+p;try{e[y?"replaceState":"pushState"](g,"",w),i.value=g}catch(T){Qt.NODE_ENV!=="production"?mn("Error with push/replace State",T):console.error(T),n[y?"replace":"assign"](w)}}function a(p,g){const y=Nn({},e.state,rk(i.value.back,p,i.value.forward,!0),g,{position:i.value.position});s(p,y,!0),r.value=p}function o(p,g){const y=Nn({},i.value,e.state,{forward:p,scroll:Wp()});Qt.NODE_ENV!=="production"&&!e.state&&mn(`history.state seems to have been manually replaced without preserving the necessary values. Make sure to preserve existing history state if you are manually calling history.replaceState: history.replaceState(history.state, '', url) You can find more information at https://router.vuejs.org/guide/migration/#Usage-of-history-state`),s(y.current,y,!0);const v=Nn({},rk(r.value,p,null),{position:y.position+1},g);s(p,v,!1),r.value=p}return{location:r,state:i,push:o,replace:a}}function VO(t){t=TO(t);const e=BO(t),n=OO(t,e.state,e.location,e.replace);function r(s,a=!0){a||n.pauseListeners(),history.go(s)}const i=Nn({location:"",base:t,go:r,createHref:MO.bind(null,t)},e,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>e.state.value}),i}function qp(t){return typeof t=="string"||t&&typeof t=="object"}function ik(t){return typeof t=="string"||typeof t=="symbol"}const I0=Symbol(Qt.NODE_ENV!=="production"?"navigation failure":"");var sk;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(sk||(sk={}));const zO={1({location:t,currentLocation:e}){return`No match for ${JSON.stringify(t)}${e?` while being at `+JSON.stringify(e):""}`},2({from:t,to:e}){return`Redirected from "${t.fullPath}" to "${FO(e)}" via a navigation guard.`},4({from:t,to:e}){return`Navigation aborted from "${t.fullPath}" to "${e.fullPath}" via a navigation guard.`},8({from:t,to:e}){return`Navigation cancelled from "${t.fullPath}" to "${e.fullPath}" with a new navigation.`},16({from:t,t