dld-vue-ui 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dld-vue-ui.js +678 -571
- package/dist/dld-vue-ui.umd.cjs +3 -3
- package/dist/packages/index.d.ts +2 -1
- package/dist/packages/method/DvAxios.d.ts +4 -1
- package/dist/packages/method/List.d.ts +117 -0
- package/package.json +8 -3
package/dist/dld-vue-ui.umd.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
(function(w,S){typeof exports=="object"&&typeof module<"u"?S(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],S):(w=typeof globalThis<"u"?globalThis:w||self,S(w["dld-vue-ui"]={},w.Vue))})(this,function(w,S){"use strict";const Ue=S.defineComponent({__name:"index",props:{name:{type:String,required:!1,default:"\u9ED8\u8BA4\u6309\u94AE"}},setup(e){const t=e;return(n,s)=>(S.openBlock(),S.createElementBlock("button",null,S.toDisplayString(t.name),1))}}),v=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},ie=v(Ue,[["__file","D:/vscode/electron/dld-vue-ui/src/packages/component/Button/index.vue"]]),oe=v(S.defineComponent({__name:"index",props:{title:{type:String,required:!1,default:"\u9ED8\u8BA4\u5B57\u6BB5"}},setup(e){const t=e;return(n,s)=>(S.openBlock(),S.createElementBlock("p",null,S.toDisplayString(t.title),1))}}),[["__file","D:/vscode/electron/dld-vue-ui/src/packages/component/P/index.vue"]]);function ae(e,t){return function(){return e.apply(t,arguments)}}const{toString:ce}=Object.prototype,{getPrototypeOf:K}=Object,W=(e=>t=>{const n=ce.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),b=e=>(e=e.toLowerCase(),t=>W(t)===e),F=e=>t=>typeof t===e,{isArray:A}=Array,C=F("undefined");function Le(e){return e!==null&&!C(e)&&e.constructor!==null&&!C(e.constructor)&&_(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ue=b("ArrayBuffer");function je(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ue(e.buffer),t}const qe=F("string"),_=F("function"),le=F("number"),X=e=>e!==null&&typeof e=="object",$e=e=>e===!0||e===!1,U=e=>{if(W(e)!=="object")return!1;const t=K(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Ie=b("Date"),He=b("File"),Je=b("Blob"),Ve=b("FileList"),Ke=e=>X(e)&&_(e.pipe),We=e=>{const t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||ce.call(e)===t||_(e.toString)&&e.toString()===t)},Xe=b("URLSearchParams"),Qe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function T(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,r;if(typeof e!="object"&&(e=[e]),A(e))for(s=0,r=e.length;s<r;s++)t.call(null,e[s],s,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let c;for(s=0;s<o;s++)c=i[s],t.call(null,e[c],c,e)}}function de(e,t){t=t.toLowerCase();const n=Object.keys(e);let s=n.length,r;for(;s-- >0;)if(r=n[s],t===r.toLowerCase())return r;return null}const he=typeof self>"u"?typeof global>"u"?globalThis:global:self,pe=e=>!C(e)&&e!==he;function Q(){const{caseless:e}=pe(this)&&this||{},t={},n=(s,r)=>{const i=e&&de(t,r)||r;U(t[i])&&U(s)?t[i]=Q(t[i],s):U(s)?t[i]=Q({},s):A(s)?t[i]=s.slice():t[i]=s};for(let s=0,r=arguments.length;s<r;s++)arguments[s]&&T(arguments[s],n);return t}const Ye=(e,t,n,{allOwnKeys:s}={})=>(T(t,(r,i)=>{n&&_(r)?e[i]=ae(r,n):e[i]=r},{allOwnKeys:s}),e),Ze=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ge=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},et=(e,t,n,s)=>{let r,i,o;const c={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),i=r.length;i-- >0;)o=r[i],(!s||s(o,e,t))&&!c[o]&&(t[o]=e[o],c[o]=!0);e=n!==!1&&K(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},tt=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},nt=e=>{if(!e)return null;if(A(e))return e;let t=e.length;if(!le(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},st=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&K(Uint8Array)),rt=(e,t)=>{const s=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=s.next())&&!r.done;){const i=r.value;t.call(e,i[0],i[1])}},it=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},ot=b("HTMLFormElement"),at=e=>e.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,function(n,s,r){return s.toUpperCase()+r}),fe=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ct=b("RegExp"),me=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};T(n,(r,i)=>{t(r,i,e)!==!1&&(s[i]=r)}),Object.defineProperties(e,s)},a={isArray:A,isArrayBuffer:ue,isBuffer:Le,isFormData:We,isArrayBufferView:je,isString:qe,isNumber:le,isBoolean:$e,isObject:X,isPlainObject:U,isUndefined:C,isDate:Ie,isFile:He,isBlob:Je,isRegExp:ct,isFunction:_,isStream:Ke,isURLSearchParams:Xe,isTypedArray:st,isFileList:Ve,forEach:T,merge:Q,extend:Ye,trim:Qe,stripBOM:Ze,inherits:Ge,toFlatObject:et,kindOf:W,kindOfTest:b,endsWith:tt,toArray:nt,forEachEntry:rt,matchAll:it,isHTMLForm:ot,hasOwnProperty:fe,hasOwnProp:fe,reduceDescriptors:me,freezeMethods:e=>{me(e,(t,n)=>{if(_(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(!!_(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},toObjectSet:(e,t)=>{const n={},s=r=>{r.forEach(i=>{n[i]=!0})};return A(e)?s(e):s(String(e).split(t)),n},toCamelCase:at,noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:de,global:he,isContextDefined:pe,toJSONObject:e=>{const t=new Array(10),n=(s,r)=>{if(X(s)){if(t.indexOf(s)>=0)return;if(!("toJSON"in s)){t[r]=s;const i=A(s)?[]:{};return T(s,(o,c)=>{const l=n(o,r+1);!C(l)&&(i[c]=l)}),t[r]=void 0,i}}return s};return n(e,0)}};function m(e,t,n,s,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),r&&(this.response=r)}a.inherits(m,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:a.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Se=m.prototype,ye={};["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(e=>{ye[e]={value:e}}),Object.defineProperties(m,ye),Object.defineProperty(Se,"isAxiosError",{value:!0}),m.from=(e,t,n,s,r,i)=>{const o=Object.create(Se);return a.toFlatObject(e,o,function(l){return l!==Error.prototype},c=>c!=="isAxiosError"),m.call(o,e.message,t,n,s,r),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};var ut=typeof self=="object"?self.FormData:window.FormData;const lt=ut;function Y(e){return a.isPlainObject(e)||a.isArray(e)}function Ee(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function xe(e,t,n){return e?e.concat(t).map(function(r,i){return r=Ee(r),!n&&i?"["+r+"]":r}).join(n?".":""):t}function dt(e){return a.isArray(e)&&!e.some(Y)}const ht=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function pt(e){return e&&a.isFunction(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator]}function L(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new(lt||FormData),n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,g){return!a.isUndefined(g[f])});const s=n.metaTokens,r=n.visitor||d,i=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&pt(t);if(!a.isFunction(r))throw new TypeError("visitor must be a function");function u(h){if(h===null)return"";if(a.isDate(h))return h.toISOString();if(!l&&a.isBlob(h))throw new m("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(h)||a.isTypedArray(h)?l&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function d(h,f,g){let P=h;if(h&&!g&&typeof h=="object"){if(a.endsWith(f,"{}"))f=s?f:f.slice(0,-2),h=JSON.stringify(h);else if(a.isArray(h)&&dt(h)||a.isFileList(h)||a.endsWith(f,"[]")&&(P=a.toArray(h)))return f=Ee(f),P.forEach(function(V,Yt){!(a.isUndefined(V)||V===null)&&t.append(o===!0?xe([f],Yt,i):o===null?f:f+"[]",u(V))}),!1}return Y(h)?!0:(t.append(xe(g,f,i),u(h)),!1)}const p=[],E=Object.assign(ht,{defaultVisitor:d,convertValue:u,isVisitable:Y});function y(h,f){if(!a.isUndefined(h)){if(p.indexOf(h)!==-1)throw Error("Circular reference detected in "+f.join("."));p.push(h),a.forEach(h,function(P,N){(!(a.isUndefined(P)||P===null)&&r.call(t,P,a.isString(N)?N.trim():N,f,E))===!0&&y(P,f?f.concat(N):[N])}),p.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return y(e),t}function we(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function Z(e,t){this._pairs=[],e&&L(e,this,t)}const Pe=Z.prototype;Pe.append=function(t,n){this._pairs.push([t,n])},Pe.toString=function(t){const n=t?function(s){return t.call(this,s,we)}:we;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function ft(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function be(e,t,n){if(!t)return e;const s=n&&n.encode||ft,r=n&&n.serialize;let i;if(r?i=r(t,n):i=a.isURLSearchParams(t)?t.toString():new Z(t,n).toString(s),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class mt{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(s){s!==null&&t(s)})}}const ze=mt,Oe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},St=typeof URLSearchParams<"u"?URLSearchParams:Z,yt=FormData,Et=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),z={isBrowser:!0,classes:{URLSearchParams:St,FormData:yt,Blob},isStandardBrowserEnv:Et,protocols:["http","https","file","blob","url","data"]};function xt(e,t){return L(e,new z.classes.URLSearchParams,Object.assign({visitor:function(n,s,r,i){return z.isNode&&a.isBuffer(n)?(this.append(s,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function wt(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Pt(e){const t={},n=Object.keys(e);let s;const r=n.length;let i;for(s=0;s<r;s++)i=n[s],t[i]=e[i];return t}function ge(e){function t(n,s,r,i){let o=n[i++];const c=Number.isFinite(+o),l=i>=n.length;return o=!o&&a.isArray(r)?r.length:o,l?(a.hasOwnProp(r,o)?r[o]=[r[o],s]:r[o]=s,!c):((!r[o]||!a.isObject(r[o]))&&(r[o]=[]),t(n,s,r[o],i)&&a.isArray(r[o])&&(r[o]=Pt(r[o])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(s,r)=>{t(wt(s),r,n,0)}),n}return null}const bt={"Content-Type":void 0};function zt(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const j={transitional:Oe,adapter:["xhr","http"],transformRequest:[function(t,n){const s=n.getContentType()||"",r=s.indexOf("application/json")>-1,i=a.isObject(t);if(i&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return r&&r?JSON.stringify(ge(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(i){if(s.indexOf("application/x-www-form-urlencoded")>-1)return xt(t,this.formSerializer).toString();if((c=a.isFileList(t))||s.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return L(c?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||r?(n.setContentType("application/json",!1),zt(t)):t}],transformResponse:[function(t){const n=this.transitional||j.transitional,s=n&&n.forcedJSONParsing,r=this.responseType==="json";if(t&&a.isString(t)&&(s&&!this.responseType||r)){const o=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(c){if(o)throw c.name==="SyntaxError"?m.from(c,m.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:z.classes.FormData,Blob:z.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};a.forEach(["delete","get","head"],function(t){j.headers[t]={}}),a.forEach(["post","put","patch"],function(t){j.headers[t]=a.merge(bt)});const G=j,Ot=a.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"]),gt=e=>{const t={};let n,s,r;return e&&e.split(`
|
|
2
|
-
`).forEach(function(o){
|
|
3
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(r=>s.set(r)),s}static accessor(t){const s=(this[Re]=this[Re]={accessors:{}}).accessors,r=this.prototype;function i(o){const c=D(o);s[c]||(Nt(r,o),s[c]=!0)}return a.isArray(t)?t.forEach(i):i(t),this}}$.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]),a.freezeMethods($.prototype),a.freezeMethods($);const O=$;function ee(e,t){const n=this||G,s=t||n,r=O.from(s.headers);let i=s.data;return a.forEach(e,function(c){i=c.call(n,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function Ae(e){return!!(e&&e.__CANCEL__)}function B(e,t,n){m.call(this,e==null?"canceled":e,m.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits(B,m,{__CANCEL__:!0});const Ct=null;function Tt(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new m("Request failed with status code "+n.status,[m.ERR_BAD_REQUEST,m.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Dt=z.isStandardBrowserEnv?function(){return{write:function(n,s,r,i,o,c){const l=[];l.push(n+"="+encodeURIComponent(s)),a.isNumber(r)&&l.push("expires="+new Date(r).toGMTString()),a.isString(i)&&l.push("path="+i),a.isString(o)&&l.push("domain="+o),c===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const s=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return s?decodeURIComponent(s[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Bt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Mt(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Ne(e,t){return e&&!Bt(t)?Mt(e,t):t}const kt=z.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let s;function r(i){let o=i;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return s=r(window.location.href),function(o){const c=a.isString(o)?r(o):o;return c.protocol===s.protocol&&c.host===s.host}}():function(){return function(){return!0}}();function vt(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Ft(e,t){e=e||10;const n=new Array(e),s=new Array(e);let r=0,i=0,o;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),d=s[i];o||(o=u),n[r]=l,s[r]=u;let p=i,E=0;for(;p!==r;)E+=n[p++],p=p%e;if(r=(r+1)%e,r===i&&(i=(i+1)%e),u-o<t)return;const y=d&&u-d;return y?Math.round(E*1e3/y):void 0}}function Ce(e,t){let n=0;const s=Ft(50,250);return r=>{const i=r.loaded,o=r.lengthComputable?r.total:void 0,c=i-n,l=s(c),u=i<=o;n=i;const d={loaded:i,total:o,progress:o?i/o:void 0,bytes:c,rate:l||void 0,estimated:l&&o&&u?(o-i)/l:void 0,event:r};d[t?"download":"upload"]=!0,e(d)}}const I={http:Ct,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,s){let r=e.data;const i=O.from(e.headers).normalize(),o=e.responseType;let c;function l(){e.cancelToken&&e.cancelToken.unsubscribe(c),e.signal&&e.signal.removeEventListener("abort",c)}a.isFormData(r)&&z.isStandardBrowserEnv&&i.setContentType(!1);let u=new XMLHttpRequest;if(e.auth){const y=e.auth.username||"",h=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(y+":"+h))}const d=Ne(e.baseURL,e.url);u.open(e.method.toUpperCase(),be(d,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function p(){if(!u)return;const y=O.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),f={data:!o||o==="text"||o==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:y,config:e,request:u};Tt(function(P){n(P),l()},function(P){s(P),l()},f),u=null}if("onloadend"in u?u.onloadend=p:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(p)},u.onabort=function(){!u||(s(new m("Request aborted",m.ECONNABORTED,e,u)),u=null)},u.onerror=function(){s(new m("Network Error",m.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let h=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const f=e.transitional||Oe;e.timeoutErrorMessage&&(h=e.timeoutErrorMessage),s(new m(h,f.clarifyTimeoutError?m.ETIMEDOUT:m.ECONNABORTED,e,u)),u=null},z.isStandardBrowserEnv){const y=(e.withCredentials||kt(d))&&e.xsrfCookieName&&Dt.read(e.xsrfCookieName);y&&i.set(e.xsrfHeaderName,y)}r===void 0&&i.setContentType(null),"setRequestHeader"in u&&a.forEach(i.toJSON(),function(h,f){u.setRequestHeader(f,h)}),a.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),o&&o!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",Ce(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",Ce(e.onUploadProgress)),(e.cancelToken||e.signal)&&(c=y=>{!u||(s(!y||y.type?new B(null,e,u):y),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(c),e.signal&&(e.signal.aborted?c():e.signal.addEventListener("abort",c)));const E=vt(d);if(E&&z.protocols.indexOf(E)===-1){s(new m("Unsupported protocol "+E+":",m.ERR_BAD_REQUEST,e));return}u.send(r||null)})}};a.forEach(I,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ut={getAdapter:e=>{e=a.isArray(e)?e:[e];const{length:t}=e;let n,s;for(let r=0;r<t&&(n=e[r],!(s=a.isString(n)?I[n.toLowerCase()]:n));r++);if(!s)throw s===!1?new m(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(a.hasOwnProp(I,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!a.isFunction(s))throw new TypeError("adapter is not a function");return s},adapters:I};function te(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new B}function Te(e){return te(e),e.headers=O.from(e.headers),e.data=ee.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ut.getAdapter(e.adapter||G.adapter)(e).then(function(s){return te(e),s.data=ee.call(e,e.transformResponse,s),s.headers=O.from(s.headers),s},function(s){return Ae(s)||(te(e),s&&s.response&&(s.response.data=ee.call(e,e.transformResponse,s.response),s.response.headers=O.from(s.response.headers))),Promise.reject(s)})}const De=e=>e instanceof O?e.toJSON():e;function M(e,t){t=t||{};const n={};function s(u,d,p){return a.isPlainObject(u)&&a.isPlainObject(d)?a.merge.call({caseless:p},u,d):a.isPlainObject(d)?a.merge({},d):a.isArray(d)?d.slice():d}function r(u,d,p){if(a.isUndefined(d)){if(!a.isUndefined(u))return s(void 0,u,p)}else return s(u,d,p)}function i(u,d){if(!a.isUndefined(d))return s(void 0,d)}function o(u,d){if(a.isUndefined(d)){if(!a.isUndefined(u))return s(void 0,u)}else return s(void 0,d)}function c(u,d,p){if(p in t)return s(u,d);if(p in e)return s(void 0,u)}const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:c,headers:(u,d)=>r(De(u),De(d),!0)};return a.forEach(Object.keys(e).concat(Object.keys(t)),function(d){const p=l[d]||r,E=p(e[d],t[d],d);a.isUndefined(E)&&p!==c||(n[d]=E)}),n}const Be="1.2.0",ne={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ne[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const Me={};ne.transitional=function(t,n,s){function r(i,o){return"[Axios v"+Be+"] Transitional option '"+i+"'"+o+(s?". "+s:"")}return(i,o,c)=>{if(t===!1)throw new m(r(o," has been removed"+(n?" in "+n:"")),m.ERR_DEPRECATED);return n&&!Me[o]&&(Me[o]=!0,console.warn(r(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,c):!0}};function Lt(e,t,n){if(typeof e!="object")throw new m("options must be an object",m.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let r=s.length;for(;r-- >0;){const i=s[r],o=t[i];if(o){const c=e[i],l=c===void 0||o(c,i,e);if(l!==!0)throw new m("option "+i+" must be "+l,m.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new m("Unknown option "+i,m.ERR_BAD_OPTION)}}const se={assertOptions:Lt,validators:ne},R=se.validators;class H{constructor(t){this.defaults=t,this.interceptors={request:new ze,response:new ze}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=M(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:i}=n;s!==void 0&&se.assertOptions(s,{silentJSONParsing:R.transitional(R.boolean),forcedJSONParsing:R.transitional(R.boolean),clarifyTimeoutError:R.transitional(R.boolean)},!1),r!==void 0&&se.assertOptions(r,{encode:R.function,serialize:R.function},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o;o=i&&a.merge(i.common,i[n.method]),o&&a.forEach(["delete","get","head","post","put","patch","common"],h=>{delete i[h]}),n.headers=O.concat(o,i);const c=[];let l=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(n)===!1||(l=l&&f.synchronous,c.unshift(f.fulfilled,f.rejected))});const u=[];this.interceptors.response.forEach(function(f){u.push(f.fulfilled,f.rejected)});let d,p=0,E;if(!l){const h=[Te.bind(this),void 0];for(h.unshift.apply(h,c),h.push.apply(h,u),E=h.length,d=Promise.resolve(n);p<E;)d=d.then(h[p++],h[p++]);return d}E=c.length;let y=n;for(p=0;p<E;){const h=c[p++],f=c[p++];try{y=h(y)}catch(g){f.call(this,g);break}}try{d=Te.call(this,y)}catch(h){return Promise.reject(h)}for(p=0,E=u.length;p<E;)d=d.then(u[p++],u[p++]);return d}getUri(t){t=M(this.defaults,t);const n=Ne(t.baseURL,t.url);return be(n,t.params,t.paramsSerializer)}}a.forEach(["delete","get","head","options"],function(t){H.prototype[t]=function(n,s){return this.request(M(s||{},{method:t,url:n,data:(s||{}).data}))}}),a.forEach(["post","put","patch"],function(t){function n(s){return function(i,o,c){return this.request(M(c||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}H.prototype[t]=n(),H.prototype[t+"Form"]=n(!0)});const J=H;class re{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const s=this;this.promise.then(r=>{if(!s._listeners)return;let i=s._listeners.length;for(;i-- >0;)s._listeners[i](r);s._listeners=null}),this.promise.then=r=>{let i;const o=new Promise(c=>{s.subscribe(c),i=c}).then(r);return o.cancel=function(){s.unsubscribe(i)},o},t(function(i,o,c){s.reason||(s.reason=new B(i,o,c),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new re(function(r){t=r}),cancel:t}}}const jt=re;function qt(e){return function(n){return e.apply(null,n)}}function $t(e){return a.isObject(e)&&e.isAxiosError===!0}function ke(e){const t=new J(e),n=ae(J.prototype.request,t);return a.extend(n,J.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return ke(M(e,r))},n}const x=ke(G);x.Axios=J,x.CanceledError=B,x.CancelToken=jt,x.isCancel=Ae,x.VERSION=Be,x.toFormData=L,x.AxiosError=m,x.Cancel=x.CanceledError,x.all=function(t){return Promise.all(t)},x.spread=qt,x.isAxiosError=$t,x.AxiosHeaders=O,x.formToJSON=e=>ge(a.isHTMLForm(e)?new FormData(e):e),x.default=x;const k=x;class It{constructor(t,n){k.defaults.baseURL=t,k.defaults.timeout=n}Request(t,n,s="get"){return k({method:s,url:t,data:n})}RequestIntercept(t){k.interceptors.request.use(n=>t(n))}ResponseIntercept(t){k.interceptors.response.use(n=>t(n))}}const Ht={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((e,t)=>(e[t.id]=t)&&e,{})}},methods:{updatePaneComponents(){this.panes.forEach(e=>{e.update&&e.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[e.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(e,t){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=t},onMouseMove(e){this.touch.mouseDown&&(e.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(e)),this.$emit("resize",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(e,t){"ontouchstart"in window&&(e.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===t?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(e,t),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=t,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[t])},onSplitterDblClick(e,t){let n=0;this.panes=this.panes.map((s,r)=>(s.size=r===t?s.max:s.min,r!==t&&(n+=s.min),s)),this.panes[t].size-=n,this.$emit("pane-maximize",this.panes[t]),this.$emit("resized",this.panes.map(s=>({min:s.min,max:s.max,size:s.size})))},onPaneClick(e,t){this.$emit("pane-click",this.indexedPanes[t])},getCurrentMouseDrag(e){const t=this.container.getBoundingClientRect(),{clientX:n,clientY:s}="ontouchstart"in window&&e.touches?e.touches[0]:e;return{x:n-t.left,y:s-t.top}},getCurrentDragPercentage(e){e=e[this.horizontal?"y":"x"];const t=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(e=t-e),e*100/t},calculatePanesSize(e){const t=this.touch.activeSplitter;let n={prevPanesSize:this.sumPrevPanesSize(t),nextPanesSize:this.sumNextPanesSize(t),prevReachedMinPanes:0,nextReachedMinPanes:0};const s=0+(this.pushOtherPanes?0:n.prevPanesSize),r=100-(this.pushOtherPanes?0:n.nextPanesSize),i=Math.max(Math.min(this.getCurrentDragPercentage(e),r),s);let o=[t,t+1],c=this.panes[o[0]]||null,l=this.panes[o[1]]||null;const u=c.max<100&&i>=c.max+n.prevPanesSize,d=l.max<100&&i<=100-(l.max+this.sumNextPanesSize(t+1));if(u||d){u?(c.size=c.max,l.size=Math.max(100-c.max-n.prevPanesSize-n.nextPanesSize,0)):(c.size=Math.max(100-l.max-n.prevPanesSize-this.sumNextPanesSize(t+1),0),l.size=l.max);return}if(this.pushOtherPanes){const p=this.doPushOtherPanes(n,i);if(!p)return;({sums:n,panesToResize:o}=p),c=this.panes[o[0]]||null,l=this.panes[o[1]]||null}c!==null&&(c.size=Math.min(Math.max(i-n.prevPanesSize-n.prevReachedMinPanes,c.min),c.max)),l!==null&&(l.size=Math.min(Math.max(100-i-n.nextPanesSize-n.nextReachedMinPanes,l.min),l.max))},doPushOtherPanes(e,t){const n=this.touch.activeSplitter,s=[n,n+1];return t<e.prevPanesSize+this.panes[s[0]].min&&(s[0]=this.findPrevExpandedPane(n).index,e.prevReachedMinPanes=0,s[0]<n&&this.panes.forEach((r,i)=>{i>s[0]&&i<=n&&(r.size=r.min,e.prevReachedMinPanes+=r.min)}),e.prevPanesSize=this.sumPrevPanesSize(s[0]),s[0]===void 0)?(e.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((r,i)=>{i>0&&i<=n&&(r.size=r.min,e.prevReachedMinPanes+=r.min)}),this.panes[s[1]].size=100-e.prevReachedMinPanes-this.panes[0].min-e.prevPanesSize-e.nextPanesSize,null):t>100-e.nextPanesSize-this.panes[s[1]].min&&(s[1]=this.findNextExpandedPane(n).index,e.nextReachedMinPanes=0,s[1]>n+1&&this.panes.forEach((r,i)=>{i>n&&i<s[1]&&(r.size=r.min,e.nextReachedMinPanes+=r.min)}),e.nextPanesSize=this.sumNextPanesSize(s[1]-1),s[1]===void 0)?(e.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach((r,i)=>{i<this.panesCount-1&&i>=n+1&&(r.size=r.min,e.nextReachedMinPanes+=r.min)}),this.panes[s[0]].size=100-e.prevPanesSize-e.nextReachedMinPanes-this.panes[this.panesCount-1].min-e.nextPanesSize,null):{sums:e,panesToResize:s}},sumPrevPanesSize(e){return this.panes.reduce((t,n,s)=>t+(s<e?n.size:0),0)},sumNextPanesSize(e){return this.panes.reduce((t,n,s)=>t+(s>e+1?n.size:0),0)},findPrevExpandedPane(e){return[...this.panes].reverse().find(t=>t.index<e&&t.size>t.min)||{}},findNextExpandedPane(e){return this.panes.find(t=>t.index>e+1&&t.size>t.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(e=>{const t=e.classList.contains("splitpanes__pane"),n=e.classList.contains("splitpanes__splitter");!t&&!n&&(e.parentNode.removeChild(e),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},addSplitter(e,t,n=!1){const s=e-1,r=document.createElement("div");r.classList.add("splitpanes__splitter"),n||(r.onmousedown=i=>this.onMouseDown(i,s),typeof window<"u"&&"ontouchstart"in window&&(r.ontouchstart=i=>this.onMouseDown(i,s)),r.onclick=i=>this.onSplitterClick(i,s+1)),this.dblClickSplitter&&(r.ondblclick=i=>this.onSplitterDblClick(i,s+1)),t.parentNode.insertBefore(r,t)},removeSplitter(e){e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.parentNode.removeChild(e)},redoSplitters(){const e=Array.from(this.container.children);e.forEach(n=>{n.className.includes("splitpanes__splitter")&&this.removeSplitter(n)});let t=0;e.forEach(n=>{n.className.includes("splitpanes__pane")&&(!t&&this.firstSplitter?this.addSplitter(t,n,!0):t&&this.addSplitter(t,n),t++)})},requestUpdate({target:e,...t}){const n=this.indexedPanes[e._.uid];Object.entries(t).forEach(([s,r])=>n[s]=r)},onPaneAdd(e){let t=-1;Array.from(e.$el.parentNode.children).some(r=>(r.className.includes("splitpanes__pane")&&t++,r===e.$el));const n=parseFloat(e.minSize),s=parseFloat(e.maxSize);this.panes.splice(t,0,{id:e._.uid,index:t,min:isNaN(n)?0:n,max:isNaN(s)?100:s,size:e.size===null?null:parseFloat(e.size),givenSize:e.size,update:e.update}),this.panes.forEach((r,i)=>r.index=i),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[t]}),this.$emit("pane-add",{index:t,panes:this.panes.map(r=>({min:r.min,max:r.max,size:r.size}))})})},onPaneRemove(e){const t=this.panes.findIndex(s=>s.id===e._.uid),n=this.panes.splice(t,1)[0];this.panes.forEach((s,r)=>s.index=r),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...n,index:t}}),this.$emit("pane-remove",{removed:n,panes:this.panes.map(s=>({min:s.min,max:s.max,size:s.size}))})})},resetPaneSizes(e={}){!e.addedPane&&!e.removedPane?this.initialPanesSizing():this.panes.some(t=>t.givenSize!==null||t.min||t.max<100)?this.equalizeAfterAddOrRemove(e):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size})))},equalize(){const e=100/this.panesCount;let t=0;const n=[],s=[];this.panes.forEach(r=>{r.size=Math.max(Math.min(e,r.max),r.min),t-=r.size,r.size>=r.max&&n.push(r.id),r.size<=r.min&&s.push(r.id)}),t>.1&&this.readjustSizes(t,n,s)},initialPanesSizing(){let e=100;const t=[],n=[];let s=0;this.panes.forEach(i=>{e-=i.size,i.size!==null&&s++,i.size>=i.max&&t.push(i.id),i.size<=i.min&&n.push(i.id)});let r=100;e>.1&&(this.panes.forEach(i=>{i.size===null&&(i.size=Math.max(Math.min(e/(this.panesCount-s),i.max),i.min)),r-=i.size}),r>.1&&this.readjustSizes(e,t,n))},equalizeAfterAddOrRemove({addedPane:e,removedPane:t}={}){let n=100/this.panesCount,s=0;const r=[],i=[];e&&e.givenSize!==null&&(n=(100-e.givenSize)/(this.panesCount-1)),this.panes.forEach(o=>{s-=o.size,o.size>=o.max&&r.push(o.id),o.size<=o.min&&i.push(o.id)}),!(Math.abs(s)<.1)&&(this.panes.forEach(o=>{e&&e.givenSize!==null&&e.id===o.id||(o.size=Math.max(Math.min(n,o.max),o.min)),s-=o.size,o.size>=o.max&&r.push(o.id),o.size<=o.min&&i.push(o.id)}),s>.1&&this.readjustSizes(s,r,i))},readjustSizes(e,t,n){let s;e>0?s=e/(this.panesCount-t.length):s=e/(this.panesCount-n.length),this.panes.forEach((r,i)=>{if(e>0&&!t.includes(r.id)){const o=Math.max(Math.min(r.size+s,r.max),r.min),c=o-r.size;e-=c,r.size=o}else if(!n.includes(r.id)){const o=Math.max(Math.min(r.size+s,r.max),r.min),c=o-r.size;e-=c,r.size=o}r.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[r.id].size}%`})}),Math.abs(e)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(e){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((t,n)=>{t.ondblclick=e?s=>this.onSplitterDblClick(s,n):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return S.h("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},Jt=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},Vt={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(e){this.style=e}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(e){this.requestUpdate({target:this,size:e})},minSizeNumber(e){this.requestUpdate({target:this,min:e})},maxSizeNumber(e){this.requestUpdate({target:this,max:e})}}};function Kt(e,t,n,s,r,i){return S.openBlock(),S.createElementBlock("div",{class:"splitpanes__pane",onClick:t[0]||(t[0]=o=>i.onPaneClick(o,e._.uid)),style:S.normalizeStyle(e.style)},[S.renderSlot(e.$slots,"default")],4)}const Wt=Jt(Vt,[["render",Kt]]),an="",Xt=S.defineComponent({__name:"index",props:{styles:{type:Object,required:!1,default:()=>({width:"100%",height:"100%"})},horizontal:{type:Boolean,required:!1,default:!1},title:{type:String,required:!1}},setup(e){return(t,n)=>(S.openBlock(),S.createBlock(S.unref(Ht),{horizontal:e.horizontal,style:S.normalizeStyle(e.styles),class:"splitpanes"},{default:S.withCtx(()=>[S.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3},8,["horizontal","style"]))}}),cn="",ve=v(Xt,[["__scopeId","data-v-a9f55ace"],["__file","D:/vscode/electron/dld-vue-ui/src/packages/component/SplitPanes/index.vue"]]),Fe=v(S.defineComponent({__name:"pane",props:{styles:{type:Object,required:!0,default:()=>({background:"#ececec"})}},setup(e){return(t,n)=>(S.openBlock(),S.createBlock(S.unref(Wt),{style:S.normalizeStyle(e.styles)},{default:S.withCtx(()=>[S.renderSlot(t.$slots,"default")]),_:3},8,["style"]))}}),[["__file","D:/vscode/electron/dld-vue-ui/src/packages/component/SplitPanes/pane.vue"]]),Qt={install:e=>{e.component("DVButton",ie),e.component("DVP",oe),e.component("SplitPanes",ve),e.component("Pane",Fe)}};w.DVButton=ie,w.DVP=oe,w.DvAxios=It,w.Pane=Fe,w.SplitPanes=ve,w.default=Qt,Object.defineProperties(w,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
1
|
+
(function(w,S){typeof exports=="object"&&typeof module<"u"?S(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],S):(w=typeof globalThis<"u"?globalThis:w||self,S(w["dld-vue-ui"]={},w.Vue))})(this,function(w,S){"use strict";const Le=S.defineComponent({__name:"index",props:{name:{type:String,required:!1,default:"\u9ED8\u8BA4\u6309\u94AE"}},setup(e){const t=e;return(n,s)=>(S.openBlock(),S.createElementBlock("button",null,S.toDisplayString(t.name),1))}}),F=(e,t)=>{const n=e.__vccOpts||e;for(const[s,i]of t)n[s]=i;return n},oe=F(Le,[["__file","D:/vscode/electron/dld-vue-ui/src/packages/component/Button/index.vue"]]),ae=F(S.defineComponent({__name:"index",props:{title:{type:String,required:!1,default:"\u9ED8\u8BA4\u5B57\u6BB5"}},setup(e){const t=e;return(n,s)=>(S.openBlock(),S.createElementBlock("p",null,S.toDisplayString(t.title),1))}}),[["__file","D:/vscode/electron/dld-vue-ui/src/packages/component/P/index.vue"]]);function ce(e,t){return function(){return e.apply(t,arguments)}}const{toString:ue}=Object.prototype,{getPrototypeOf:W}=Object,X=(e=>t=>{const n=ue.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),P=e=>(e=e.toLowerCase(),t=>X(t)===e),U=e=>t=>typeof t===e,{isArray:C}=Array,T=U("undefined");function je(e){return e!==null&&!T(e)&&e.constructor!==null&&!T(e.constructor)&&_(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const le=P("ArrayBuffer");function $e(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&le(e.buffer),t}const qe=U("string"),_=U("function"),de=U("number"),G=e=>e!==null&&typeof e=="object",Ie=e=>e===!0||e===!1,L=e=>{if(X(e)!=="object")return!1;const t=W(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},He=P("Date"),Ve=P("File"),Je=P("Blob"),Ke=P("FileList"),We=e=>G(e)&&_(e.pipe),Xe=e=>{const t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||ue.call(e)===t||_(e.toString)&&e.toString()===t)},Ge=P("URLSearchParams"),Qe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function D(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,i;if(typeof e!="object"&&(e=[e]),C(e))for(s=0,i=e.length;s<i;s++)t.call(null,e[s],s,e);else{const r=n?Object.getOwnPropertyNames(e):Object.keys(e),o=r.length;let c;for(s=0;s<o;s++)c=r[s],t.call(null,e[c],c,e)}}function he(e,t){t=t.toLowerCase();const n=Object.keys(e);let s=n.length,i;for(;s-- >0;)if(i=n[s],t===i.toLowerCase())return i;return null}const fe=typeof self>"u"?typeof global>"u"?globalThis:global:self,pe=e=>!T(e)&&e!==fe;function Q(){const{caseless:e}=pe(this)&&this||{},t={},n=(s,i)=>{const r=e&&he(t,i)||i;L(t[r])&&L(s)?t[r]=Q(t[r],s):L(s)?t[r]=Q({},s):C(s)?t[r]=s.slice():t[r]=s};for(let s=0,i=arguments.length;s<i;s++)arguments[s]&&D(arguments[s],n);return t}const Ye=(e,t,n,{allOwnKeys:s}={})=>(D(t,(i,r)=>{n&&_(i)?e[r]=ce(i,n):e[r]=i},{allOwnKeys:s}),e),Ze=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),et=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},tt=(e,t,n,s)=>{let i,r,o;const c={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),r=i.length;r-- >0;)o=i[r],(!s||s(o,e,t))&&!c[o]&&(t[o]=e[o],c[o]=!0);e=n!==!1&&W(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},nt=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},st=e=>{if(!e)return null;if(C(e))return e;let t=e.length;if(!de(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},it=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&W(Uint8Array)),rt=(e,t)=>{const s=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=s.next())&&!i.done;){const r=i.value;t.call(e,r[0],r[1])}},ot=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},at=P("HTMLFormElement"),ct=e=>e.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,function(n,s,i){return s.toUpperCase()+i}),me=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ut=P("RegExp"),Se=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};D(n,(i,r)=>{t(i,r,e)!==!1&&(s[r]=i)}),Object.defineProperties(e,s)},a={isArray:C,isArrayBuffer:le,isBuffer:je,isFormData:Xe,isArrayBufferView:$e,isString:qe,isNumber:de,isBoolean:Ie,isObject:G,isPlainObject:L,isUndefined:T,isDate:He,isFile:Ve,isBlob:Je,isRegExp:ut,isFunction:_,isStream:We,isURLSearchParams:Ge,isTypedArray:it,isFileList:Ke,forEach:D,merge:Q,extend:Ye,trim:Qe,stripBOM:Ze,inherits:et,toFlatObject:tt,kindOf:X,kindOfTest:P,endsWith:nt,toArray:st,forEachEntry:rt,matchAll:ot,isHTMLForm:at,hasOwnProperty:me,hasOwnProp:me,reduceDescriptors:Se,freezeMethods:e=>{Se(e,(t,n)=>{if(_(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(!!_(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},toObjectSet:(e,t)=>{const n={},s=i=>{i.forEach(r=>{n[r]=!0})};return C(e)?s(e):s(String(e).split(t)),n},toCamelCase:ct,noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:he,global:fe,isContextDefined:pe,toJSONObject:e=>{const t=new Array(10),n=(s,i)=>{if(G(s)){if(t.indexOf(s)>=0)return;if(!("toJSON"in s)){t[i]=s;const r=C(s)?[]:{};return D(s,(o,c)=>{const l=n(o,i+1);!T(l)&&(r[c]=l)}),t[i]=void 0,r}}return s};return n(e,0)}};function m(e,t,n,s,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),i&&(this.response=i)}a.inherits(m,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:a.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ye=m.prototype,Ee={};["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(e=>{Ee[e]={value:e}}),Object.defineProperties(m,Ee),Object.defineProperty(ye,"isAxiosError",{value:!0}),m.from=(e,t,n,s,i,r)=>{const o=Object.create(ye);return a.toFlatObject(e,o,function(l){return l!==Error.prototype},c=>c!=="isAxiosError"),m.call(o,e.message,t,n,s,i),o.cause=e,o.name=e.name,r&&Object.assign(o,r),o};var lt=typeof self=="object"?self.FormData:window.FormData;const dt=lt;function Y(e){return a.isPlainObject(e)||a.isArray(e)}function xe(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function we(e,t,n){return e?e.concat(t).map(function(i,r){return i=xe(i),!n&&r?"["+i+"]":i}).join(n?".":""):t}function ht(e){return a.isArray(e)&&!e.some(Y)}const ft=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function pt(e){return e&&a.isFunction(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator]}function j(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new(dt||FormData),n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,O){return!a.isUndefined(O[p])});const s=n.metaTokens,i=n.visitor||d,r=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&pt(t);if(!a.isFunction(i))throw new TypeError("visitor must be a function");function u(h){if(h===null)return"";if(a.isDate(h))return h.toISOString();if(!l&&a.isBlob(h))throw new m("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(h)||a.isTypedArray(h)?l&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function d(h,p,O){let b=h;if(h&&!O&&typeof h=="object"){if(a.endsWith(p,"{}"))p=s?p:p.slice(0,-2),h=JSON.stringify(h);else if(a.isArray(h)&&ht(h)||a.isFileList(h)||a.endsWith(p,"[]")&&(b=a.toArray(h)))return p=xe(p),b.forEach(function(K,Yt){!(a.isUndefined(K)||K===null)&&t.append(o===!0?we([p],Yt,r):o===null?p:p+"[]",u(K))}),!1}return Y(h)?!0:(t.append(we(O,p,r),u(h)),!1)}const f=[],E=Object.assign(ft,{defaultVisitor:d,convertValue:u,isVisitable:Y});function y(h,p){if(!a.isUndefined(h)){if(f.indexOf(h)!==-1)throw Error("Circular reference detected in "+p.join("."));f.push(h),a.forEach(h,function(b,N){(!(a.isUndefined(b)||b===null)&&i.call(t,b,a.isString(N)?N.trim():N,p,E))===!0&&y(b,p?p.concat(N):[N])}),f.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return y(e),t}function be(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function Z(e,t){this._pairs=[],e&&j(e,this,t)}const Pe=Z.prototype;Pe.append=function(t,n){this._pairs.push([t,n])},Pe.toString=function(t){const n=t?function(s){return t.call(this,s,be)}:be;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function mt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ze(e,t,n){if(!t)return e;const s=n&&n.encode||mt,i=n&&n.serialize;let r;if(i?r=i(t,n):r=a.isURLSearchParams(t)?t.toString():new Z(t,n).toString(s),r){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e}class St{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(s){s!==null&&t(s)})}}const ge=St,Oe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},yt=typeof URLSearchParams<"u"?URLSearchParams:Z,Et=FormData,xt=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),z={isBrowser:!0,classes:{URLSearchParams:yt,FormData:Et,Blob},isStandardBrowserEnv:xt,protocols:["http","https","file","blob","url","data"]};function wt(e,t){return j(e,new z.classes.URLSearchParams,Object.assign({visitor:function(n,s,i,r){return z.isNode&&a.isBuffer(n)?(this.append(s,n.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}function bt(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Pt(e){const t={},n=Object.keys(e);let s;const i=n.length;let r;for(s=0;s<i;s++)r=n[s],t[r]=e[r];return t}function Re(e){function t(n,s,i,r){let o=n[r++];const c=Number.isFinite(+o),l=r>=n.length;return o=!o&&a.isArray(i)?i.length:o,l?(a.hasOwnProp(i,o)?i[o]=[i[o],s]:i[o]=s,!c):((!i[o]||!a.isObject(i[o]))&&(i[o]=[]),t(n,s,i[o],r)&&a.isArray(i[o])&&(i[o]=Pt(i[o])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(s,i)=>{t(bt(s),i,n,0)}),n}return null}const zt={"Content-Type":void 0};function gt(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const $={transitional:Oe,adapter:["xhr","http"],transformRequest:[function(t,n){const s=n.getContentType()||"",i=s.indexOf("application/json")>-1,r=a.isObject(t);if(r&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return i&&i?JSON.stringify(Re(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(r){if(s.indexOf("application/x-www-form-urlencoded")>-1)return wt(t,this.formSerializer).toString();if((c=a.isFileList(t))||s.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return j(c?{"files[]":t}:t,l&&new l,this.formSerializer)}}return r||i?(n.setContentType("application/json",!1),gt(t)):t}],transformResponse:[function(t){const n=this.transitional||$.transitional,s=n&&n.forcedJSONParsing,i=this.responseType==="json";if(t&&a.isString(t)&&(s&&!this.responseType||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(c){if(o)throw c.name==="SyntaxError"?m.from(c,m.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:z.classes.FormData,Blob:z.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};a.forEach(["delete","get","head"],function(t){$.headers[t]={}}),a.forEach(["post","put","patch"],function(t){$.headers[t]=a.merge(zt)});const ee=$,Ot=a.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"]),Rt=e=>{const t={};let n,s,i;return e&&e.split(`
|
|
2
|
+
`).forEach(function(o){i=o.indexOf(":"),n=o.substring(0,i).trim().toLowerCase(),s=o.substring(i+1).trim(),!(!n||t[n]&&Ot[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},Ae=Symbol("internals");function v(e){return e&&String(e).trim().toLowerCase()}function q(e){return e===!1||e==null?e:a.isArray(e)?e.map(q):String(e)}function At(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}function _t(e){return/^[-_a-zA-Z]+$/.test(e.trim())}function _e(e,t,n,s){if(a.isFunction(s))return s.call(this,t,n);if(!!a.isString(t)){if(a.isString(s))return t.indexOf(s)!==-1;if(a.isRegExp(s))return s.test(t)}}function Ct(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function Nt(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(i,r,o){return this[s].call(this,t,i,r,o)},configurable:!0})})}class I{constructor(t){t&&this.set(t)}set(t,n,s){const i=this;function r(c,l,u){const d=v(l);if(!d)throw new Error("header name must be a non-empty string");const f=a.findKey(i,d);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||l]=q(c))}const o=(c,l)=>a.forEach(c,(u,d)=>r(u,d,l));return a.isPlainObject(t)||t instanceof this.constructor?o(t,n):a.isString(t)&&(t=t.trim())&&!_t(t)?o(Rt(t),n):t!=null&&r(n,t,s),this}get(t,n){if(t=v(t),t){const s=a.findKey(this,t);if(s){const i=this[s];if(!n)return i;if(n===!0)return At(i);if(a.isFunction(n))return n.call(this,i,s);if(a.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=v(t),t){const s=a.findKey(this,t);return!!(s&&(!n||_e(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let i=!1;function r(o){if(o=v(o),o){const c=a.findKey(s,o);c&&(!n||_e(s,s[c],c,n))&&(delete s[c],i=!0)}}return a.isArray(t)?t.forEach(r):r(t),i}clear(){return Object.keys(this).forEach(this.delete.bind(this))}normalize(t){const n=this,s={};return a.forEach(this,(i,r)=>{const o=a.findKey(s,r);if(o){n[o]=q(i),delete n[r];return}const c=t?Ct(r):String(r).trim();c!==r&&delete n[r],n[c]=q(i),s[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(s,i)=>{s!=null&&s!==!1&&(n[i]=t&&a.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
3
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(i=>s.set(i)),s}static accessor(t){const s=(this[Ae]=this[Ae]={accessors:{}}).accessors,i=this.prototype;function r(o){const c=v(o);s[c]||(Nt(i,o),s[c]=!0)}return a.isArray(t)?t.forEach(r):r(t),this}}I.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]),a.freezeMethods(I.prototype),a.freezeMethods(I);const g=I;function te(e,t){const n=this||ee,s=t||n,i=g.from(s.headers);let r=s.data;return a.forEach(e,function(c){r=c.call(n,r,i.normalize(),t?t.status:void 0)}),i.normalize(),r}function Ce(e){return!!(e&&e.__CANCEL__)}function k(e,t,n){m.call(this,e==null?"canceled":e,m.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits(k,m,{__CANCEL__:!0});const Tt=null;function Dt(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new m("Request failed with status code "+n.status,[m.ERR_BAD_REQUEST,m.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const vt=z.isStandardBrowserEnv?function(){return{write:function(n,s,i,r,o,c){const l=[];l.push(n+"="+encodeURIComponent(s)),a.isNumber(i)&&l.push("expires="+new Date(i).toGMTString()),a.isString(r)&&l.push("path="+r),a.isString(o)&&l.push("domain="+o),c===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const s=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return s?decodeURIComponent(s[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function kt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Bt(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Ne(e,t){return e&&!kt(t)?Bt(e,t):t}const Mt=z.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let s;function i(r){let o=r;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return s=i(window.location.href),function(o){const c=a.isString(o)?i(o):o;return c.protocol===s.protocol&&c.host===s.host}}():function(){return function(){return!0}}();function Ft(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Ut(e,t){e=e||10;const n=new Array(e),s=new Array(e);let i=0,r=0,o;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),d=s[r];o||(o=u),n[i]=l,s[i]=u;let f=r,E=0;for(;f!==i;)E+=n[f++],f=f%e;if(i=(i+1)%e,i===r&&(r=(r+1)%e),u-o<t)return;const y=d&&u-d;return y?Math.round(E*1e3/y):void 0}}function Te(e,t){let n=0;const s=Ut(50,250);return i=>{const r=i.loaded,o=i.lengthComputable?i.total:void 0,c=r-n,l=s(c),u=r<=o;n=r;const d={loaded:r,total:o,progress:o?r/o:void 0,bytes:c,rate:l||void 0,estimated:l&&o&&u?(o-r)/l:void 0,event:i};d[t?"download":"upload"]=!0,e(d)}}const H={http:Tt,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,s){let i=e.data;const r=g.from(e.headers).normalize(),o=e.responseType;let c;function l(){e.cancelToken&&e.cancelToken.unsubscribe(c),e.signal&&e.signal.removeEventListener("abort",c)}a.isFormData(i)&&z.isStandardBrowserEnv&&r.setContentType(!1);let u=new XMLHttpRequest;if(e.auth){const y=e.auth.username||"",h=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";r.set("Authorization","Basic "+btoa(y+":"+h))}const d=Ne(e.baseURL,e.url);u.open(e.method.toUpperCase(),ze(d,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function f(){if(!u)return;const y=g.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),p={data:!o||o==="text"||o==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:y,config:e,request:u};Dt(function(b){n(b),l()},function(b){s(b),l()},p),u=null}if("onloadend"in u?u.onloadend=f:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(f)},u.onabort=function(){!u||(s(new m("Request aborted",m.ECONNABORTED,e,u)),u=null)},u.onerror=function(){s(new m("Network Error",m.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let h=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const p=e.transitional||Oe;e.timeoutErrorMessage&&(h=e.timeoutErrorMessage),s(new m(h,p.clarifyTimeoutError?m.ETIMEDOUT:m.ECONNABORTED,e,u)),u=null},z.isStandardBrowserEnv){const y=(e.withCredentials||Mt(d))&&e.xsrfCookieName&&vt.read(e.xsrfCookieName);y&&r.set(e.xsrfHeaderName,y)}i===void 0&&r.setContentType(null),"setRequestHeader"in u&&a.forEach(r.toJSON(),function(h,p){u.setRequestHeader(p,h)}),a.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),o&&o!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",Te(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",Te(e.onUploadProgress)),(e.cancelToken||e.signal)&&(c=y=>{!u||(s(!y||y.type?new k(null,e,u):y),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(c),e.signal&&(e.signal.aborted?c():e.signal.addEventListener("abort",c)));const E=Ft(d);if(E&&z.protocols.indexOf(E)===-1){s(new m("Unsupported protocol "+E+":",m.ERR_BAD_REQUEST,e));return}u.send(i||null)})}};a.forEach(H,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Lt={getAdapter:e=>{e=a.isArray(e)?e:[e];const{length:t}=e;let n,s;for(let i=0;i<t&&(n=e[i],!(s=a.isString(n)?H[n.toLowerCase()]:n));i++);if(!s)throw s===!1?new m(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(a.hasOwnProp(H,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!a.isFunction(s))throw new TypeError("adapter is not a function");return s},adapters:H};function ne(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new k}function De(e){return ne(e),e.headers=g.from(e.headers),e.data=te.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Lt.getAdapter(e.adapter||ee.adapter)(e).then(function(s){return ne(e),s.data=te.call(e,e.transformResponse,s),s.headers=g.from(s.headers),s},function(s){return Ce(s)||(ne(e),s&&s.response&&(s.response.data=te.call(e,e.transformResponse,s.response),s.response.headers=g.from(s.response.headers))),Promise.reject(s)})}const ve=e=>e instanceof g?e.toJSON():e;function B(e,t){t=t||{};const n={};function s(u,d,f){return a.isPlainObject(u)&&a.isPlainObject(d)?a.merge.call({caseless:f},u,d):a.isPlainObject(d)?a.merge({},d):a.isArray(d)?d.slice():d}function i(u,d,f){if(a.isUndefined(d)){if(!a.isUndefined(u))return s(void 0,u,f)}else return s(u,d,f)}function r(u,d){if(!a.isUndefined(d))return s(void 0,d)}function o(u,d){if(a.isUndefined(d)){if(!a.isUndefined(u))return s(void 0,u)}else return s(void 0,d)}function c(u,d,f){if(f in t)return s(u,d);if(f in e)return s(void 0,u)}const l={url:r,method:r,data:r,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:c,headers:(u,d)=>i(ve(u),ve(d),!0)};return a.forEach(Object.keys(e).concat(Object.keys(t)),function(d){const f=l[d]||i,E=f(e[d],t[d],d);a.isUndefined(E)&&f!==c||(n[d]=E)}),n}const ke="1.2.0",se={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{se[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const Be={};se.transitional=function(t,n,s){function i(r,o){return"[Axios v"+ke+"] Transitional option '"+r+"'"+o+(s?". "+s:"")}return(r,o,c)=>{if(t===!1)throw new m(i(o," has been removed"+(n?" in "+n:"")),m.ERR_DEPRECATED);return n&&!Be[o]&&(Be[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(r,o,c):!0}};function jt(e,t,n){if(typeof e!="object")throw new m("options must be an object",m.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let i=s.length;for(;i-- >0;){const r=s[i],o=t[r];if(o){const c=e[r],l=c===void 0||o(c,r,e);if(l!==!0)throw new m("option "+r+" must be "+l,m.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new m("Unknown option "+r,m.ERR_BAD_OPTION)}}const ie={assertOptions:jt,validators:se},R=ie.validators;class V{constructor(t){this.defaults=t,this.interceptors={request:new ge,response:new ge}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=B(this.defaults,n);const{transitional:s,paramsSerializer:i,headers:r}=n;s!==void 0&&ie.assertOptions(s,{silentJSONParsing:R.transitional(R.boolean),forcedJSONParsing:R.transitional(R.boolean),clarifyTimeoutError:R.transitional(R.boolean)},!1),i!==void 0&&ie.assertOptions(i,{encode:R.function,serialize:R.function},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o;o=r&&a.merge(r.common,r[n.method]),o&&a.forEach(["delete","get","head","post","put","patch","common"],h=>{delete r[h]}),n.headers=g.concat(o,r);const c=[];let l=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(l=l&&p.synchronous,c.unshift(p.fulfilled,p.rejected))});const u=[];this.interceptors.response.forEach(function(p){u.push(p.fulfilled,p.rejected)});let d,f=0,E;if(!l){const h=[De.bind(this),void 0];for(h.unshift.apply(h,c),h.push.apply(h,u),E=h.length,d=Promise.resolve(n);f<E;)d=d.then(h[f++],h[f++]);return d}E=c.length;let y=n;for(f=0;f<E;){const h=c[f++],p=c[f++];try{y=h(y)}catch(O){p.call(this,O);break}}try{d=De.call(this,y)}catch(h){return Promise.reject(h)}for(f=0,E=u.length;f<E;)d=d.then(u[f++],u[f++]);return d}getUri(t){t=B(this.defaults,t);const n=Ne(t.baseURL,t.url);return ze(n,t.params,t.paramsSerializer)}}a.forEach(["delete","get","head","options"],function(t){V.prototype[t]=function(n,s){return this.request(B(s||{},{method:t,url:n,data:(s||{}).data}))}}),a.forEach(["post","put","patch"],function(t){function n(s){return function(r,o,c){return this.request(B(c||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:r,data:o}))}}V.prototype[t]=n(),V.prototype[t+"Form"]=n(!0)});const J=V;class re{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(r){n=r});const s=this;this.promise.then(i=>{if(!s._listeners)return;let r=s._listeners.length;for(;r-- >0;)s._listeners[r](i);s._listeners=null}),this.promise.then=i=>{let r;const o=new Promise(c=>{s.subscribe(c),r=c}).then(i);return o.cancel=function(){s.unsubscribe(r)},o},t(function(r,o,c){s.reason||(s.reason=new k(r,o,c),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new re(function(i){t=i}),cancel:t}}}const $t=re;function qt(e){return function(n){return e.apply(null,n)}}function It(e){return a.isObject(e)&&e.isAxiosError===!0}function Me(e){const t=new J(e),n=ce(J.prototype.request,t);return a.extend(n,J.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Me(B(e,i))},n}const x=Me(ee);x.Axios=J,x.CanceledError=k,x.CancelToken=$t,x.isCancel=Ce,x.VERSION=ke,x.toFormData=j,x.AxiosError=m,x.Cancel=x.CanceledError,x.all=function(t){return Promise.all(t)},x.spread=qt,x.isAxiosError=It,x.AxiosHeaders=g,x.formToJSON=e=>Re(a.isHTMLForm(e)?new FormData(e):e),x.default=x;const M=x;class Ht{constructor(t,n){M.defaults.baseURL=t,M.defaults.timeout=n}Request(t,n,s="get",i){if(i){for(const r in i)t+=`${r}=${i[r]}&`;t=t.slice(0,t.length-1)}return M({method:s,url:t,data:n})}RequestIntercept(t){M.interceptors.request.use(n=>t(n))}ResponseIntercept(t){M.interceptors.response.use(n=>t(n))}}class A extends Array{constructor(...t){t.length>0?super(...t):super()}Any(t){for(let n=0;n<this.Count;n++)if(t(this[n]))return!0;return!1}Exist(t){for(let n=0;n<this.Count;n++)if(JSON.stringify(t)===JSON.stringify(this[n]))return!0;return!1}Where(t){let n=[];if(t===void 0)return this.Values;for(let s=0;s<this.Count;s++)t(this[s])&&n.push(this[s]);return new A(...n)}First(t){let n=null;if(t!==void 0){for(let s=0;s<this.Count;s++)if(t(this[s])){n=this[s];break}}else this.Count!==0&&(n=this[0]);return n}Index(t){let n=[];for(let s=0;s<this.Count;s++)t(this[s])&&n.push(s);return n}Distinct(){let t=new A;for(let n=0;n<this.Count;n++)if(!t.Any(s=>JSON.stringify(s)===JSON.stringify(this[n]))){t.push(this[n]);continue}return t}Add(...t){return this.push(...t),this.Values}AddFirst(...t){return this.unshift(...t),this.Values}AddIndex(t,...n){return this.splice(t,0,...n),this.Values}RemoveLast(){return this.pop(),this.Values}GetRemoveLast(){return this.Count>0?this.pop():null}RemoveFirst(){return this.shift(),this.Values}GetRemoveFirst(){return this.Count>0?this.shift():null}RemoveIndex(t,n=1){return this.splice(t,n),this.Values}GetRemoveIndex(t,n=1){let s=this.splice(t,n);return new A(...s)}Select(t){let n=[];for(let s=0;s<this.Count;s++){n[s]={};for(let i=0;i<t(this[s]).length;i++)n[s][t(this[s])[i]]=this[s][t(this[s])[i]]}return new A(...n)}Skip(t=0){return new A(...this.slice(t))}Take(t=1){return this.slice(0,t)}get Count(){return this.length}get Values(){return new A(...this)}}const Vt={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((e,t)=>(e[t.id]=t)&&e,{})}},methods:{updatePaneComponents(){this.panes.forEach(e=>{e.update&&e.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[e.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(e,t){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=t},onMouseMove(e){this.touch.mouseDown&&(e.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(e)),this.$emit("resize",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(e,t){"ontouchstart"in window&&(e.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===t?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(e,t),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=t,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[t])},onSplitterDblClick(e,t){let n=0;this.panes=this.panes.map((s,i)=>(s.size=i===t?s.max:s.min,i!==t&&(n+=s.min),s)),this.panes[t].size-=n,this.$emit("pane-maximize",this.panes[t]),this.$emit("resized",this.panes.map(s=>({min:s.min,max:s.max,size:s.size})))},onPaneClick(e,t){this.$emit("pane-click",this.indexedPanes[t])},getCurrentMouseDrag(e){const t=this.container.getBoundingClientRect(),{clientX:n,clientY:s}="ontouchstart"in window&&e.touches?e.touches[0]:e;return{x:n-t.left,y:s-t.top}},getCurrentDragPercentage(e){e=e[this.horizontal?"y":"x"];const t=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(e=t-e),e*100/t},calculatePanesSize(e){const t=this.touch.activeSplitter;let n={prevPanesSize:this.sumPrevPanesSize(t),nextPanesSize:this.sumNextPanesSize(t),prevReachedMinPanes:0,nextReachedMinPanes:0};const s=0+(this.pushOtherPanes?0:n.prevPanesSize),i=100-(this.pushOtherPanes?0:n.nextPanesSize),r=Math.max(Math.min(this.getCurrentDragPercentage(e),i),s);let o=[t,t+1],c=this.panes[o[0]]||null,l=this.panes[o[1]]||null;const u=c.max<100&&r>=c.max+n.prevPanesSize,d=l.max<100&&r<=100-(l.max+this.sumNextPanesSize(t+1));if(u||d){u?(c.size=c.max,l.size=Math.max(100-c.max-n.prevPanesSize-n.nextPanesSize,0)):(c.size=Math.max(100-l.max-n.prevPanesSize-this.sumNextPanesSize(t+1),0),l.size=l.max);return}if(this.pushOtherPanes){const f=this.doPushOtherPanes(n,r);if(!f)return;({sums:n,panesToResize:o}=f),c=this.panes[o[0]]||null,l=this.panes[o[1]]||null}c!==null&&(c.size=Math.min(Math.max(r-n.prevPanesSize-n.prevReachedMinPanes,c.min),c.max)),l!==null&&(l.size=Math.min(Math.max(100-r-n.nextPanesSize-n.nextReachedMinPanes,l.min),l.max))},doPushOtherPanes(e,t){const n=this.touch.activeSplitter,s=[n,n+1];return t<e.prevPanesSize+this.panes[s[0]].min&&(s[0]=this.findPrevExpandedPane(n).index,e.prevReachedMinPanes=0,s[0]<n&&this.panes.forEach((i,r)=>{r>s[0]&&r<=n&&(i.size=i.min,e.prevReachedMinPanes+=i.min)}),e.prevPanesSize=this.sumPrevPanesSize(s[0]),s[0]===void 0)?(e.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((i,r)=>{r>0&&r<=n&&(i.size=i.min,e.prevReachedMinPanes+=i.min)}),this.panes[s[1]].size=100-e.prevReachedMinPanes-this.panes[0].min-e.prevPanesSize-e.nextPanesSize,null):t>100-e.nextPanesSize-this.panes[s[1]].min&&(s[1]=this.findNextExpandedPane(n).index,e.nextReachedMinPanes=0,s[1]>n+1&&this.panes.forEach((i,r)=>{r>n&&r<s[1]&&(i.size=i.min,e.nextReachedMinPanes+=i.min)}),e.nextPanesSize=this.sumNextPanesSize(s[1]-1),s[1]===void 0)?(e.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach((i,r)=>{r<this.panesCount-1&&r>=n+1&&(i.size=i.min,e.nextReachedMinPanes+=i.min)}),this.panes[s[0]].size=100-e.prevPanesSize-e.nextReachedMinPanes-this.panes[this.panesCount-1].min-e.nextPanesSize,null):{sums:e,panesToResize:s}},sumPrevPanesSize(e){return this.panes.reduce((t,n,s)=>t+(s<e?n.size:0),0)},sumNextPanesSize(e){return this.panes.reduce((t,n,s)=>t+(s>e+1?n.size:0),0)},findPrevExpandedPane(e){return[...this.panes].reverse().find(t=>t.index<e&&t.size>t.min)||{}},findNextExpandedPane(e){return this.panes.find(t=>t.index>e+1&&t.size>t.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(e=>{const t=e.classList.contains("splitpanes__pane"),n=e.classList.contains("splitpanes__splitter");!t&&!n&&(e.parentNode.removeChild(e),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},addSplitter(e,t,n=!1){const s=e-1,i=document.createElement("div");i.classList.add("splitpanes__splitter"),n||(i.onmousedown=r=>this.onMouseDown(r,s),typeof window<"u"&&"ontouchstart"in window&&(i.ontouchstart=r=>this.onMouseDown(r,s)),i.onclick=r=>this.onSplitterClick(r,s+1)),this.dblClickSplitter&&(i.ondblclick=r=>this.onSplitterDblClick(r,s+1)),t.parentNode.insertBefore(i,t)},removeSplitter(e){e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.parentNode.removeChild(e)},redoSplitters(){const e=Array.from(this.container.children);e.forEach(n=>{n.className.includes("splitpanes__splitter")&&this.removeSplitter(n)});let t=0;e.forEach(n=>{n.className.includes("splitpanes__pane")&&(!t&&this.firstSplitter?this.addSplitter(t,n,!0):t&&this.addSplitter(t,n),t++)})},requestUpdate({target:e,...t}){const n=this.indexedPanes[e._.uid];Object.entries(t).forEach(([s,i])=>n[s]=i)},onPaneAdd(e){let t=-1;Array.from(e.$el.parentNode.children).some(i=>(i.className.includes("splitpanes__pane")&&t++,i===e.$el));const n=parseFloat(e.minSize),s=parseFloat(e.maxSize);this.panes.splice(t,0,{id:e._.uid,index:t,min:isNaN(n)?0:n,max:isNaN(s)?100:s,size:e.size===null?null:parseFloat(e.size),givenSize:e.size,update:e.update}),this.panes.forEach((i,r)=>i.index=r),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[t]}),this.$emit("pane-add",{index:t,panes:this.panes.map(i=>({min:i.min,max:i.max,size:i.size}))})})},onPaneRemove(e){const t=this.panes.findIndex(s=>s.id===e._.uid),n=this.panes.splice(t,1)[0];this.panes.forEach((s,i)=>s.index=i),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...n,index:t}}),this.$emit("pane-remove",{removed:n,panes:this.panes.map(s=>({min:s.min,max:s.max,size:s.size}))})})},resetPaneSizes(e={}){!e.addedPane&&!e.removedPane?this.initialPanesSizing():this.panes.some(t=>t.givenSize!==null||t.min||t.max<100)?this.equalizeAfterAddOrRemove(e):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size})))},equalize(){const e=100/this.panesCount;let t=0;const n=[],s=[];this.panes.forEach(i=>{i.size=Math.max(Math.min(e,i.max),i.min),t-=i.size,i.size>=i.max&&n.push(i.id),i.size<=i.min&&s.push(i.id)}),t>.1&&this.readjustSizes(t,n,s)},initialPanesSizing(){let e=100;const t=[],n=[];let s=0;this.panes.forEach(r=>{e-=r.size,r.size!==null&&s++,r.size>=r.max&&t.push(r.id),r.size<=r.min&&n.push(r.id)});let i=100;e>.1&&(this.panes.forEach(r=>{r.size===null&&(r.size=Math.max(Math.min(e/(this.panesCount-s),r.max),r.min)),i-=r.size}),i>.1&&this.readjustSizes(e,t,n))},equalizeAfterAddOrRemove({addedPane:e,removedPane:t}={}){let n=100/this.panesCount,s=0;const i=[],r=[];e&&e.givenSize!==null&&(n=(100-e.givenSize)/(this.panesCount-1)),this.panes.forEach(o=>{s-=o.size,o.size>=o.max&&i.push(o.id),o.size<=o.min&&r.push(o.id)}),!(Math.abs(s)<.1)&&(this.panes.forEach(o=>{e&&e.givenSize!==null&&e.id===o.id||(o.size=Math.max(Math.min(n,o.max),o.min)),s-=o.size,o.size>=o.max&&i.push(o.id),o.size<=o.min&&r.push(o.id)}),s>.1&&this.readjustSizes(s,i,r))},readjustSizes(e,t,n){let s;e>0?s=e/(this.panesCount-t.length):s=e/(this.panesCount-n.length),this.panes.forEach((i,r)=>{if(e>0&&!t.includes(i.id)){const o=Math.max(Math.min(i.size+s,i.max),i.min),c=o-i.size;e-=c,i.size=o}else if(!n.includes(i.id)){const o=Math.max(Math.min(i.size+s,i.max),i.min),c=o-i.size;e-=c,i.size=o}i.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[i.id].size}%`})}),Math.abs(e)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(e){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((t,n)=>{t.ondblclick=e?s=>this.onSplitterDblClick(s,n):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return S.h("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},Jt=(e,t)=>{const n=e.__vccOpts||e;for(const[s,i]of t)n[s]=i;return n},Kt={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(e){this.style=e}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(e){this.requestUpdate({target:this,size:e})},minSizeNumber(e){this.requestUpdate({target:this,min:e})},maxSizeNumber(e){this.requestUpdate({target:this,max:e})}}};function Wt(e,t,n,s,i,r){return S.openBlock(),S.createElementBlock("div",{class:"splitpanes__pane",onClick:t[0]||(t[0]=o=>r.onPaneClick(o,e._.uid)),style:S.normalizeStyle(e.style)},[S.renderSlot(e.$slots,"default")],4)}const Xt=Jt(Kt,[["render",Wt]]),cn="",Gt=S.defineComponent({__name:"index",props:{styles:{type:Object,required:!1,default:()=>({width:"100%",height:"100%"})},horizontal:{type:Boolean,required:!1,default:!1},title:{type:String,required:!1}},setup(e){return(t,n)=>(S.openBlock(),S.createBlock(S.unref(Vt),{horizontal:e.horizontal,style:S.normalizeStyle(e.styles),class:"splitpanes"},{default:S.withCtx(()=>[S.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3},8,["horizontal","style"]))}}),un="",Fe=F(Gt,[["__scopeId","data-v-a9f55ace"],["__file","D:/vscode/electron/dld-vue-ui/src/packages/component/SplitPanes/index.vue"]]),Ue=F(S.defineComponent({__name:"pane",props:{styles:{type:Object,required:!0,default:()=>({background:"#ececec"})}},setup(e){return(t,n)=>(S.openBlock(),S.createBlock(S.unref(Xt),{style:S.normalizeStyle(e.styles)},{default:S.withCtx(()=>[S.renderSlot(t.$slots,"default")]),_:3},8,["style"]))}}),[["__file","D:/vscode/electron/dld-vue-ui/src/packages/component/SplitPanes/pane.vue"]]),Qt={install:e=>{e.component("DVButton",oe),e.component("DVP",ae),e.component("SplitPanes",Fe),e.component("Pane",Ue)}};w.DVButton=oe,w.DVP=ae,w.DvAxios=Ht,w.List=A,w.Pane=Ue,w.SplitPanes=Fe,w.default=Qt,Object.defineProperties(w,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/dist/packages/index.d.ts
CHANGED
|
@@ -2,9 +2,10 @@ import { App } from "vue";
|
|
|
2
2
|
import DVButton from "./component/Button";
|
|
3
3
|
import DVP from './component/P';
|
|
4
4
|
import DvAxios from "./method/DvAxios";
|
|
5
|
+
import List from "./method/List";
|
|
5
6
|
import { SplitPanes, Pane } from './component/SplitPanes';
|
|
6
7
|
export { DVButton, DVP, SplitPanes, Pane };
|
|
7
|
-
export { DvAxios };
|
|
8
|
+
export { DvAxios, List };
|
|
8
9
|
declare const _default: {
|
|
9
10
|
install: (app: App) => void;
|
|
10
11
|
};
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
2
2
|
declare type methodType = 'get' | 'post' | 'put' | 'delete';
|
|
3
|
+
interface QS {
|
|
4
|
+
[name: string]: string | number;
|
|
5
|
+
}
|
|
3
6
|
declare class DvAxios {
|
|
4
7
|
/**
|
|
5
8
|
* axios配置初始化
|
|
@@ -14,7 +17,7 @@ declare class DvAxios {
|
|
|
14
17
|
* @param method 请求方式
|
|
15
18
|
* @returns
|
|
16
19
|
*/
|
|
17
|
-
Request<T1, T2>(url: string, data?: T1, method?: methodType): Promise<AxiosResponse<T2>>;
|
|
20
|
+
Request<T1, T2>(url: string, data?: T1, method?: methodType, queryString?: QS): Promise<AxiosResponse<T2>>;
|
|
18
21
|
/**
|
|
19
22
|
* 请求前配置处理
|
|
20
23
|
* @param requestCallBack 配置处理
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
export default class List<T> extends Array<T> {
|
|
2
|
+
constructor(...list: T[]);
|
|
3
|
+
/**
|
|
4
|
+
* 判断是否存在符合条件的元素
|
|
5
|
+
* @param func 筛选条件
|
|
6
|
+
* @returns
|
|
7
|
+
*/
|
|
8
|
+
Any(func: (el: T) => boolean): boolean;
|
|
9
|
+
/**
|
|
10
|
+
* 元素是否已存在
|
|
11
|
+
* @param item 查找元素
|
|
12
|
+
* @returns
|
|
13
|
+
*/
|
|
14
|
+
Exist(item: T): boolean;
|
|
15
|
+
/**
|
|
16
|
+
* 获取符合条件的元素
|
|
17
|
+
* @param func 筛选条件
|
|
18
|
+
* @returns
|
|
19
|
+
*/
|
|
20
|
+
Where(func?: (el: T) => boolean): List<T>;
|
|
21
|
+
/**
|
|
22
|
+
* 获取符合条件的第一个元素
|
|
23
|
+
* @param func 筛选条件
|
|
24
|
+
* @returns
|
|
25
|
+
*/
|
|
26
|
+
First(func?: (el: T) => boolean): T | null;
|
|
27
|
+
/**
|
|
28
|
+
* 获取满足条件的下标
|
|
29
|
+
* @param func 筛选条件
|
|
30
|
+
* @returns
|
|
31
|
+
*/
|
|
32
|
+
Index(func: (el: T) => boolean): number[];
|
|
33
|
+
/**
|
|
34
|
+
* List去重
|
|
35
|
+
* @returns
|
|
36
|
+
*/
|
|
37
|
+
Distinct(): List<T>;
|
|
38
|
+
/**
|
|
39
|
+
* 向List末尾添加新元素
|
|
40
|
+
* @param items 新元素
|
|
41
|
+
* @returns
|
|
42
|
+
*/
|
|
43
|
+
Add(...items: T[]): List<T>;
|
|
44
|
+
/**
|
|
45
|
+
* 向List头部添加新元素
|
|
46
|
+
* @param items 新元素
|
|
47
|
+
* @returns
|
|
48
|
+
*/
|
|
49
|
+
AddFirst(...items: T[]): List<T>;
|
|
50
|
+
/**
|
|
51
|
+
* 从指定下标添加元素
|
|
52
|
+
* @param index 开始下标
|
|
53
|
+
* @param items 新元素
|
|
54
|
+
* @returns
|
|
55
|
+
*/
|
|
56
|
+
AddIndex(index: number, ...items: T[]): List<T>;
|
|
57
|
+
/**
|
|
58
|
+
* 移除最后一个元素
|
|
59
|
+
* @returns
|
|
60
|
+
*/
|
|
61
|
+
RemoveLast(): List<T>;
|
|
62
|
+
/**
|
|
63
|
+
* 移除并返回最后一个元素
|
|
64
|
+
* @returns
|
|
65
|
+
*/
|
|
66
|
+
GetRemoveLast(): T | null;
|
|
67
|
+
/**
|
|
68
|
+
* 移除第一个元素
|
|
69
|
+
* @returns
|
|
70
|
+
*/
|
|
71
|
+
RemoveFirst(): List<T>;
|
|
72
|
+
/**
|
|
73
|
+
* 移除并返回第一个元素
|
|
74
|
+
* @returns
|
|
75
|
+
*/
|
|
76
|
+
GetRemoveFirst(): T | null;
|
|
77
|
+
/**
|
|
78
|
+
* 移除指定下标的n个元素
|
|
79
|
+
* @param index 开始下标
|
|
80
|
+
* @param num 移除元素数量
|
|
81
|
+
* @returns
|
|
82
|
+
*/
|
|
83
|
+
RemoveIndex(index: number, num?: number): List<T>;
|
|
84
|
+
/**
|
|
85
|
+
* 移除并返回指定指定下标的n个元素
|
|
86
|
+
* @param index 开始下标
|
|
87
|
+
* @param num 移除元素数量
|
|
88
|
+
* @returns
|
|
89
|
+
*/
|
|
90
|
+
GetRemoveIndex(index: number, num?: number): List<T>;
|
|
91
|
+
/**
|
|
92
|
+
* 根据Key筛选List内元素的字段
|
|
93
|
+
* @param func Key数组
|
|
94
|
+
* @returns
|
|
95
|
+
*/
|
|
96
|
+
Select<K extends keyof T>(func: (el: T) => K[]): List<T>;
|
|
97
|
+
/**
|
|
98
|
+
* 跳过n个元素
|
|
99
|
+
* @param num 跳过元素个数
|
|
100
|
+
* @returns
|
|
101
|
+
*/
|
|
102
|
+
Skip(num?: number): List<T>;
|
|
103
|
+
/**
|
|
104
|
+
* 取出n个元素
|
|
105
|
+
* @param num 取出元素个数
|
|
106
|
+
* @returns
|
|
107
|
+
*/
|
|
108
|
+
Take(num?: number): T[];
|
|
109
|
+
/**
|
|
110
|
+
* 获取list长度
|
|
111
|
+
*/
|
|
112
|
+
get Count(): number;
|
|
113
|
+
/**
|
|
114
|
+
* List集合
|
|
115
|
+
*/
|
|
116
|
+
get Values(): List<T>;
|
|
117
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dld-vue-ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.5",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/dld-vue-ui.umd.js",
|
|
7
7
|
"module": "./dist/dld-vue-ui.js",
|
|
@@ -24,20 +24,25 @@
|
|
|
24
24
|
"dist"
|
|
25
25
|
],
|
|
26
26
|
"scripts": {
|
|
27
|
-
"dev": "vite --mode
|
|
28
|
-
"build": "vue-tsc --noEmit && vite build --mode
|
|
27
|
+
"dev": "vite --mode development",
|
|
28
|
+
"build": "vue-tsc --noEmit && vite build --mode production",
|
|
29
29
|
"pub": "vue-tsc --noEmit && vite build --mode publish",
|
|
30
30
|
"preview": "vite preview"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
+
"@element-plus/icons-vue": "^2.0.10",
|
|
33
34
|
"vue": "^3.2.41",
|
|
34
35
|
"vue-router": "^4.1.6"
|
|
35
36
|
},
|
|
36
37
|
"devDependencies": {
|
|
38
|
+
"@highlightjs/vue-plugin": "^2.1.0",
|
|
37
39
|
"@types/node": "^18.11.10",
|
|
38
40
|
"@types/splitpanes": "^2.2.1",
|
|
39
41
|
"@vitejs/plugin-vue": "^3.2.0",
|
|
40
42
|
"axios": "^1.2.0",
|
|
43
|
+
"element-plus": "^2.2.26",
|
|
44
|
+
"guid-typescript": "^1.0.9",
|
|
45
|
+
"highlight.js": "^11.7.0",
|
|
41
46
|
"sass": "^1.56.1",
|
|
42
47
|
"splitpanes": "^3.1.5",
|
|
43
48
|
"terser": "^5.16.1",
|