@sensetence/vue-quintable
Version:
<img alt="vue-quintable" src="https://sensetence.com/vue-quintable-demo/vue-table.png" width="265" height="222">
6 lines • 121 kB
JavaScript
(function(k,S){typeof exports=="object"&&typeof module!="undefined"?S(exports,require("floating-vue"),require("@fortawesome/fontawesome-svg-core"),require("@fortawesome/vue-fontawesome"),require("@fortawesome/free-solid-svg-icons"),require("vue"),require("vue-select"),require("fuzzy.js"),require("uuid")):typeof define=="function"&&define.amd?define(["exports","floating-vue","@fortawesome/fontawesome-svg-core","@fortawesome/vue-fontawesome","@fortawesome/free-solid-svg-icons","vue","vue-select","fuzzy.js","uuid"],S):(k=typeof globalThis!="undefined"?globalThis:k||self,S(k.vueQuintable={},k.FloatingVue,k.fontawesomeSvgCore,k.vueFontawesome,k.freeSolidSvgIcons,k.Vue,k.VueSelect,k.fuzzy,k.uuid))})(this,(function(k,S,x,A,E,n,_,N,P){"use strict";var wi=Object.defineProperty,bi=Object.defineProperties;var yi=Object.getOwnPropertyDescriptors;var Gt=Object.getOwnPropertySymbols;var ki=Object.prototype.hasOwnProperty,Si=Object.prototype.propertyIsEnumerable;var v=(k,S)=>(S=Symbol[k])?S:Symbol.for("Symbol."+k),Ci=k=>{throw TypeError(k)};var Jt=(k,S,x)=>S in k?wi(k,S,{enumerable:!0,configurable:!0,writable:!0,value:x}):k[S]=x,oe=(k,S)=>{for(var x in S||(S={}))ki.call(S,x)&&Jt(k,x,S[x]);if(Gt)for(var x of Gt(S))Si.call(S,x)&&Jt(k,x,S[x]);return k},Kt=(k,S)=>bi(k,yi(S));var W=(k,S,x)=>new Promise((A,E)=>{var n=P=>{try{N(x.next(P))}catch(L){E(L)}},_=P=>{try{N(x.throw(P))}catch(L){E(L)}},N=P=>P.done?A(P.value):Promise.resolve(P.value).then(n,_);N((x=x.apply(k,S)).next())}),X=function(k,S){this[0]=k,this[1]=S},Ie=(k,S,x)=>{var A=(_,N,P,L)=>{try{var Z=x[_](N),le=(N=Z.value)instanceof X,Fe=Z.done;Promise.resolve(le?N[0]:N).then(H=>le?A(_==="return"?_:"next",N[1]?{done:H.done,value:H.value}:H,P,L):P({value:H,done:Fe})).catch(H=>A("throw",H,P,L))}catch(H){L(H)}},E=_=>n[_]=N=>new Promise((P,L)=>A(_,N,P,L)),n={};return x=x.apply(k,S),n[v("asyncIterator")]=()=>n,E("next"),E("throw"),E("return"),n},Ge=k=>{var S=k[v("asyncIterator")],x=!1,A,E={};return S==null?(S=k[v("iterator")](),A=n=>E[n]=_=>S[n](_)):(S=S.call(k),A=n=>E[n]=_=>{if(x){if(x=!1,n==="throw")throw _;return _}return x=!0,{done:!1,value:new X(new Promise(N=>{var P=S[n](_);P instanceof Object||Ci("Object expected"),N(P)}),1)}}),E[v("iterator")]=()=>E,A("next"),"throw"in S?A("throw"):E.throw=n=>{throw n},"return"in S&&A("return"),E},Qt=(k,S,x)=>(S=k[v("asyncIterator")])?S.call(k):(k=k[v("iterator")](),S={},x=(A,E)=>(E=k[A])&&(S[A]=n=>new Promise((_,N,P)=>(n=E.call(k,n),P=n.done,Promise.resolve(n.value).then(L=>_({value:L,done:P}),N)))),x("next"),x("return"),S);x.library.add(E.faChevronUp,E.faChevronDown,E.faInfoCircle,E.faAngleDoubleLeft,E.faAngleDoubleRight,E.faAngleLeft,E.faAngleRight,E.faArrowsAlt,E.faExpand,E.faSort,E.faSortAmountDown,E.faSortAmountDownAlt,E.faSortAmountUp,E.faSortAmountUpAlt,E.faTimes,E.faCheck,E.faSquare,E.faCircleNotch,E.faPlus,E.faCaretUp);function L(e){e.component("QuintableFontAwesomeIcon",A.FontAwesomeIcon)}const Z=(e,t)=>{const r=e.__vccOpts||e;for(const[i,o]of t)r[i]=o;return r},le={name:"PrettyCheckbox",props:{type:{type:String,default:null},name:{type:String,default:null},value:{type:[String,Number,Object,Array,Boolean],default:null},modelValue:{type:[String,Number,Object,Array,Boolean],default:void 0},trueValue:{type:[String,Number,Object,Array,Boolean],default:!0},falseValue:{type:[String,Number,Object,Array,Boolean],default:!1},checked:{type:[String,Boolean],default:!1},disabled:{type:[String,Boolean],default:!1},required:{type:[String,Boolean],default:!1},indeterminate:{type:[String,Boolean],default:!1},color:{type:String,default:null},offColor:{type:String,default:null},hoverColor:{type:String,default:null},indeterminateColor:{type:String,default:null},toggle:{type:[String,Boolean],default:!1},hover:{type:[String,Boolean],default:!1},focus:{type:[String,Boolean],default:!1}},emits:["update:modelValue","change","update:indeterminate"],data(){return{m_checked:!1,default_mode:!1}},computed:{shouldBeChecked(){return this.modelValue!==void 0?this.modelValue instanceof Array?this.modelValue.includes(this.value):this._trueValue?this.modelValue===this.trueValue:typeof this.modelValue=="string"?!0:!!this.modelValue:this.m_checked},_disabled(){return typeof this.disabled=="string"?!0:!!this.disabled},_required(){return typeof this.required=="string"?!0:!!this.required},_indeterminate(){return typeof this.indeterminate=="string"?!0:!!this.indeterminate},_trueValue(){return typeof this.trueValue=="string"?this.trueValue:!!this.trueValue},_falseValue(){return typeof this.falseValue=="string"?this.falseValue:!!this.falseValue},_toggle(){return typeof this.toggle=="string"?!0:!!this.toggle},_hover(){return typeof this.hover=="string"?!0:!!this.hover},_focus(){return typeof this.focus=="string"?!0:!!this.focus},classes(){return{pretty:!0,"p-default":this.default_mode,"p-toggle":this._toggle,"p-has-hover":this._hover,"p-has-focus":this._focus,"p-has-indeterminate":this._indeterminate}},onClasses(){let e={state:!0,"p-on":this._toggle};return this.color&&(e[`p-${this.color}`]=!0),e},offClasses(){let e={state:!0,"p-off":!0};return this.offColor&&(e[`p-${this.offColor}`]=!0),e},hoverClasses(){let e={state:!0,"p-is-hover":!0};return this.hoverColor&&(e[`p-${this.hoverColor}`]=!0),e},indeterminateClasses(){let e={state:!0,"p-is-indeterminate":!0};return this.indeterminateColor&&(e[`p-${this.indeterminateColor}`]=!0),e}},watch:{checked(e){this.m_checked=typeof e=="string"?!0:!!e},indeterminate(e){this.$refs.input&&(this.$refs.input.indeterminate=e)}},created(){this.m_checked=typeof this.checked=="string"?!0:!!this.checked},mounted(){(!this.$el.className||this.$el.className==="pretty")&&(this.default_mode=!0),this._indeterminate&&this.$refs.input&&(this.$refs.input.indeterminate=!0),this.$el.setAttribute("p-checkbox","")},methods:{updateInput(e){this.$emit("update:indeterminate",!1);let t=e.target.checked;if(this.m_checked=t,this.modelValue instanceof Array){let r=[...this.modelValue];t?r.push(this.value):r.splice(r.indexOf(this.value),1),this.$emit("update:modelValue",r),this.$emit("change",r)}else{const r=t?this._trueValue?this.trueValue:!0:this._falseValue?this.falseValue:!1;this.$emit("update:modelValue",r),this.$emit("change",r)}}}},Fe=["name","value","checked","disabled","required"];function H(e,t,r,i,o,s){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(s.classes)},[n.createElementVNode("input",{ref:"input",type:"checkbox",name:r.name,value:r.value,checked:s.shouldBeChecked,disabled:s._disabled,required:s._required,onChange:t[0]||(t[0]=(...l)=>s.updateInput&&s.updateInput(...l))},null,40,Fe),n.createElementVNode("div",{class:n.normalizeClass(s.onClasses)},[n.renderSlot(e.$slots,"extra",{},void 0,!0),n.createElementVNode("label",null,[n.renderSlot(e.$slots,"default",{},void 0,!0)])],2),s._toggle?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(s.offClasses)},[n.renderSlot(e.$slots,"off-extra",{},void 0,!0),n.renderSlot(e.$slots,"off-label",{},void 0,!0)],2)):n.createCommentVNode("",!0),s._hover?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(s.hoverClasses)},[n.renderSlot(e.$slots,"hover-extra",{},void 0,!0),n.renderSlot(e.$slots,"hover-label",{},void 0,!0)],2)):n.createCommentVNode("",!0),s._indeterminate?(n.openBlock(),n.createElementBlock("div",{key:2,class:n.normalizeClass(s.indeterminateClasses)},[n.renderSlot(e.$slots,"indeterminate-extra",{},void 0,!0),n.renderSlot(e.$slots,"indeterminate-label",{},void 0,!0)],2)):n.createCommentVNode("",!0)],2)}const Xt=Z(le,[["render",H],["__scopeId","data-v-bc7c5ce1"]]),Zt={name:"PrettyRadio",props:{name:{type:String,default:void 0},value:{type:[String,Number,Boolean,Object,Array],default:void 0},modelValue:{type:[String,Number,Boolean,Object,Array],default:void 0},checked:{type:[Boolean,String],default:void 0},disabled:{type:[Boolean,String],default:void 0},required:{type:[Boolean,String],default:void 0},color:{type:String,default:void 0},offColor:{type:String,default:void 0},hoverColor:{type:String,default:void 0},toggle:{type:[Boolean,String],default:void 0},hover:{type:[Boolean,String],default:void 0},focus:{type:[Boolean,String],default:void 0}},emits:["update:model-value","change"],data(){return{m_checked:void 0,default_mode:!1}},computed:{shouldBeChecked(){return this.modelValue!==void 0?this.modelValue===this.value:this.m_checked===void 0?typeof this.checked=="string"?!0:!!this.checked:this.m_checked},_disabled(){return typeof this.disabled=="string"?!0:!!this.disabled},_required(){return typeof this.required=="string"?!0:!!this.required},_toggle(){return typeof this.toggle=="string"?!0:!!this.toggle},_hover(){return typeof this.hover=="string"?!0:!!this.hover},_focus(){return typeof this.focus=="string"?!0:!!this.focus},classes(){return{pretty:!0,"p-default":this.default_mode,"p-round":this.default_mode,"p-toggle":this._toggle,"p-has-hover":this._hover,"p-has-focus":this._focus}},onClasses(){let e={state:!0,"p-on":this._toggle};return this.color&&(e[`p-${this.color}`]=!0),e},offClasses(){let e={state:!0,"p-off":!0};return this.offColor&&(e[`p-${this.offColor}`]=!0),e},hoverClasses(){let e={state:!0,"p-is-hover":!0};return this.hoverColor&&(e[`p-${this.hoverColor}`]=!0),e}},watch:{checked(e){this.m_checked=e}},mounted(){(!this.$el.className||this.$el.className==="pretty")&&(this.default_mode=!0),this.m_checked===void 0&&this.checked!==void 0&&(this.m_checked=typeof this.checked=="string"?!0:!!this.checked),this.$el.setAttribute("p-radio","")},methods:{updateInput(){console.log("radio changed",this.value),this.$emit("update:model-value",this.value),this.$emit("change",this.value)}}},Yt=["name","value","checked","disabled","required"];function $t(e,t,r,i,o,s){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(s.classes)},[n.createElementVNode("input",{ref:"input",type:"radio",name:r.name,value:r.value,checked:s.shouldBeChecked,disabled:s._disabled,required:s._required,onChange:t[0]||(t[0]=(...l)=>s.updateInput&&s.updateInput(...l))},null,40,Yt),n.createElementVNode("div",{class:n.normalizeClass(s.onClasses)},[n.renderSlot(e.$slots,"extra"),n.createElementVNode("label",null,[n.renderSlot(e.$slots,"default")])],2),s._toggle?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(s.offClasses)},[n.renderSlot(e.$slots,"off-extra"),n.renderSlot(e.$slots,"off-label")],2)):n.createCommentVNode("",!0),s._hover?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(s.hoverClasses)},[n.renderSlot(e.$slots,"hover-extra"),n.renderSlot(e.$slots,"hover-label")],2)):n.createCommentVNode("",!0)],2)}const vt=Z(Zt,[["render",$t]]);function en(e){e.component("QuintablePCheck",Xt),e.component("QuintablePRadio",vt),e.component("QuintableVSelect",_)}function tn(e){e.use(S,{themes:{tooltip:{$extend:"dropdown",triggers:["hover","focus"],delay:{show:200,hide:200},popperOptions:{modifiers:[{name:"offset",options:{offset:[0,6]}}]},contentClass:"quintable-tooltip"}}})}function Je(e,t){return function(){return e.apply(t,arguments)}}const{toString:nn}=Object.prototype,{getPrototypeOf:Re}=Object,{iterator:ae,toStringTag:Ke}=Symbol,ce=(e=>t=>{const r=nn.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),D=e=>(e=e.toLowerCase(),t=>ce(t)===e),de=e=>t=>typeof t===e,{isArray:Y}=Array,ee=de("undefined");function sn(e){return e!==null&&!ee(e)&&e.constructor!==null&&!ee(e.constructor)&&q(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Qe=D("ArrayBuffer");function rn(e){let t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Qe(e.buffer),t}const on=de("string"),q=de("function"),We=de("number"),he=e=>e!==null&&typeof e=="object",ln=e=>e===!0||e===!1,fe=e=>{if(ce(e)!=="object")return!1;const t=Re(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Ke in e)&&!(ae in e)},an=D("Date"),cn=D("File"),dn=D("Blob"),hn=D("FileList"),fn=e=>he(e)&&q(e.pipe),un=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||q(e.append)&&((t=ce(e))==="formdata"||t==="object"&&q(e.toString)&&e.toString()==="[object FormData]"))},mn=D("URLSearchParams"),[pn,gn,wn,bn]=["ReadableStream","Request","Response","Headers"].map(D),yn=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function te(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e=="undefined")return;let i,o;if(typeof e!="object"&&(e=[e]),Y(e))for(i=0,o=e.length;i<o;i++)t.call(null,e[i],i,e);else{const s=r?Object.getOwnPropertyNames(e):Object.keys(e),l=s.length;let d;for(i=0;i<l;i++)d=s[i],t.call(null,e[d],d,e)}}function Xe(e,t){t=t.toLowerCase();const r=Object.keys(e);let i=r.length,o;for(;i-- >0;)if(o=r[i],t===o.toLowerCase())return o;return null}const G=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global,Ze=e=>!ee(e)&&e!==G;function Ee(){const{caseless:e}=Ze(this)&&this||{},t={},r=(i,o)=>{const s=e&&Xe(t,o)||o;fe(t[s])&&fe(i)?t[s]=Ee(t[s],i):fe(i)?t[s]=Ee({},i):Y(i)?t[s]=i.slice():t[s]=i};for(let i=0,o=arguments.length;i<o;i++)arguments[i]&&te(arguments[i],r);return t}const kn=(e,t,r,{allOwnKeys:i}={})=>(te(t,(o,s)=>{r&&q(o)?e[s]=Je(o,r):e[s]=o},{allOwnKeys:i}),e),Sn=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Cn=(e,t,r,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Fn=(e,t,r,i)=>{let o,s,l;const d={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)l=o[s],(!i||i(l,e,t))&&!d[l]&&(t[l]=e[l],d[l]=!0);e=r!==!1&&Re(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Rn=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const i=e.indexOf(t,r);return i!==-1&&i===r},En=e=>{if(!e)return null;if(Y(e))return e;let t=e.length;if(!We(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Bn=(e=>t=>e&&t instanceof e)(typeof Uint8Array!="undefined"&&Re(Uint8Array)),xn=(e,t)=>{const i=(e&&e[ae]).call(e);let o;for(;(o=i.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},Pn=(e,t)=>{let r;const i=[];for(;(r=e.exec(t))!==null;)i.push(r);return i},On=D("HTMLFormElement"),_n=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,i,o){return i.toUpperCase()+o}),Ye=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Nn=D("RegExp"),$e=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),i={};te(r,(o,s)=>{let l;(l=t(o,s,e))!==!1&&(i[s]=l||o)}),Object.defineProperties(e,i)},Vn=e=>{$e(e,(t,r)=>{if(q(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const i=e[r];if(q(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},An=(e,t)=>{const r={},i=o=>{o.forEach(s=>{r[s]=!0})};return Y(e)?i(e):i(String(e).split(t)),r},Tn=()=>{},qn=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function jn(e){return!!(e&&q(e.append)&&e[Ke]==="FormData"&&e[ae])}const Ln=e=>{const t=new Array(10),r=(i,o)=>{if(he(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[o]=i;const s=Y(i)?[]:{};return te(i,(l,d)=>{const m=r(l,o+1);!ee(m)&&(s[d]=m)}),t[o]=void 0,s}}return i};return r(e,0)},Un=D("AsyncFunction"),Dn=e=>e&&(he(e)||q(e))&&q(e.then)&&q(e.catch),ve=((e,t)=>e?setImmediate:t?((r,i)=>(G.addEventListener("message",({source:o,data:s})=>{o===G&&s===r&&i.length&&i.shift()()},!1),o=>{i.push(o),G.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",q(G.postMessage)),Mn=typeof queueMicrotask!="undefined"?queueMicrotask.bind(G):typeof process!="undefined"&&process.nextTick||ve,h={isArray:Y,isArrayBuffer:Qe,isBuffer:sn,isFormData:un,isArrayBufferView:rn,isString:on,isNumber:We,isBoolean:ln,isObject:he,isPlainObject:fe,isReadableStream:pn,isRequest:gn,isResponse:wn,isHeaders:bn,isUndefined:ee,isDate:an,isFile:cn,isBlob:dn,isRegExp:Nn,isFunction:q,isStream:fn,isURLSearchParams:mn,isTypedArray:Bn,isFileList:hn,forEach:te,merge:Ee,extend:kn,trim:yn,stripBOM:Sn,inherits:Cn,toFlatObject:Fn,kindOf:ce,kindOfTest:D,endsWith:Rn,toArray:En,forEachEntry:xn,matchAll:Pn,isHTMLForm:On,hasOwnProperty:Ye,hasOwnProp:Ye,reduceDescriptors:$e,freezeMethods:Vn,toObjectSet:An,toCamelCase:_n,noop:Tn,toFiniteNumber:qn,findKey:Xe,global:G,isContextDefined:Ze,isSpecCompliantForm:jn,toJSONObject:Ln,isAsyncFn:Un,isThenable:Dn,setImmediate:ve,asap:Mn,isIterable:e=>e!=null&&q(e[ae])};function F(e,t,r,i,o){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),r&&(this.config=r),i&&(this.request=i),o&&(this.response=o,this.status=o.status?o.status:null)}h.inherits(F,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:h.toJSONObject(this.config),code:this.code,status:this.status}}});const et=F.prototype,tt={};["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=>{tt[e]={value:e}}),Object.defineProperties(F,tt),Object.defineProperty(et,"isAxiosError",{value:!0}),F.from=(e,t,r,i,o,s)=>{const l=Object.create(et);return h.toFlatObject(e,l,function(m){return m!==Error.prototype},d=>d!=="isAxiosError"),F.call(l,e.message,t,r,i,o),l.cause=e,l.name=e.name,s&&Object.assign(l,s),l};const Hn=null;function Be(e){return h.isPlainObject(e)||h.isArray(e)}function nt(e){return h.endsWith(e,"[]")?e.slice(0,-2):e}function st(e,t,r){return e?e.concat(t).map(function(o,s){return o=nt(o),!r&&s?"["+o+"]":o}).join(r?".":""):t}function zn(e){return h.isArray(e)&&!e.some(Be)}const In=h.toFlatObject(h,{},null,function(t){return/^is[A-Z]/.test(t)});function ue(e,t,r){if(!h.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=h.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,p){return!h.isUndefined(p[w])});const i=r.metaTokens,o=r.visitor||a,s=r.dots,l=r.indexes,m=(r.Blob||typeof Blob!="undefined"&&Blob)&&h.isSpecCompliantForm(t);if(!h.isFunction(o))throw new TypeError("visitor must be a function");function f(g){if(g===null)return"";if(h.isDate(g))return g.toISOString();if(!m&&h.isBlob(g))throw new F("Blob is not supported. Use a Buffer instead.");return h.isArrayBuffer(g)||h.isTypedArray(g)?m&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function a(g,w,p){let B=g;if(g&&!p&&typeof g=="object"){if(h.endsWith(w,"{}"))w=i?w:w.slice(0,-2),g=JSON.stringify(g);else if(h.isArray(g)&&zn(g)||(h.isFileList(g)||h.endsWith(w,"[]"))&&(B=h.toArray(g)))return w=nt(w),B.forEach(function(R,U){!(h.isUndefined(R)||R===null)&&t.append(l===!0?st([w],U,s):l===null?w:w+"[]",f(R))}),!1}return Be(g)?!0:(t.append(st(p,w,s),f(g)),!1)}const c=[],u=Object.assign(In,{defaultVisitor:a,convertValue:f,isVisitable:Be});function b(g,w){if(!h.isUndefined(g)){if(c.indexOf(g)!==-1)throw Error("Circular reference detected in "+w.join("."));c.push(g),h.forEach(g,function(B,C){(!(h.isUndefined(B)||B===null)&&o.call(t,B,h.isString(C)?C.trim():C,w,u))===!0&&b(B,w?w.concat(C):[C])}),c.pop()}}if(!h.isObject(e))throw new TypeError("data must be an object");return b(e),t}function rt(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function xe(e,t){this._pairs=[],e&&ue(e,this,t)}const it=xe.prototype;it.append=function(t,r){this._pairs.push([t,r])},it.toString=function(t){const r=t?function(i){return t.call(this,i,rt)}:rt;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function Gn(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ot(e,t,r){if(!t)return e;const i=r&&r.encode||Gn;h.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let s;if(o?s=o(t,r):s=h.isURLSearchParams(t)?t.toString():new xe(t,r).toString(i),s){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class lt{constructor(){this.handlers=[]}use(t,r,i){return this.handlers.push({fulfilled:t,rejected:r,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){h.forEach(this.handlers,function(i){i!==null&&t(i)})}}const at={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Jn={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams!="undefined"?URLSearchParams:xe,FormData:typeof FormData!="undefined"?FormData:null,Blob:typeof Blob!="undefined"?Blob:null},protocols:["http","https","file","blob","url","data"]},Pe=typeof window!="undefined"&&typeof document!="undefined",Oe=typeof navigator=="object"&&navigator||void 0,Kn=Pe&&(!Oe||["ReactNative","NativeScript","NS"].indexOf(Oe.product)<0),Qn=typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Wn=Pe&&window.location.href||"http://localhost",T=oe(oe({},Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Pe,hasStandardBrowserEnv:Kn,hasStandardBrowserWebWorkerEnv:Qn,navigator:Oe,origin:Wn},Symbol.toStringTag,{value:"Module"}))),Jn);function Xn(e,t){return ue(e,new T.classes.URLSearchParams,Object.assign({visitor:function(r,i,o,s){return T.isNode&&h.isBuffer(r)?(this.append(i,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function Zn(e){return h.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Yn(e){const t={},r=Object.keys(e);let i;const o=r.length;let s;for(i=0;i<o;i++)s=r[i],t[s]=e[s];return t}function ct(e){function t(r,i,o,s){let l=r[s++];if(l==="__proto__")return!0;const d=Number.isFinite(+l),m=s>=r.length;return l=!l&&h.isArray(o)?o.length:l,m?(h.hasOwnProp(o,l)?o[l]=[o[l],i]:o[l]=i,!d):((!o[l]||!h.isObject(o[l]))&&(o[l]=[]),t(r,i,o[l],s)&&h.isArray(o[l])&&(o[l]=Yn(o[l])),!d)}if(h.isFormData(e)&&h.isFunction(e.entries)){const r={};return h.forEachEntry(e,(i,o)=>{t(Zn(i),o,r,0)}),r}return null}function $n(e,t,r){if(h.isString(e))try{return(t||JSON.parse)(e),h.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(r||JSON.stringify)(e)}const ne={transitional:at,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const i=r.getContentType()||"",o=i.indexOf("application/json")>-1,s=h.isObject(t);if(s&&h.isHTMLForm(t)&&(t=new FormData(t)),h.isFormData(t))return o?JSON.stringify(ct(t)):t;if(h.isArrayBuffer(t)||h.isBuffer(t)||h.isStream(t)||h.isFile(t)||h.isBlob(t)||h.isReadableStream(t))return t;if(h.isArrayBufferView(t))return t.buffer;if(h.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let d;if(s){if(i.indexOf("application/x-www-form-urlencoded")>-1)return Xn(t,this.formSerializer).toString();if((d=h.isFileList(t))||i.indexOf("multipart/form-data")>-1){const m=this.env&&this.env.FormData;return ue(d?{"files[]":t}:t,m&&new m,this.formSerializer)}}return s||o?(r.setContentType("application/json",!1),$n(t)):t}],transformResponse:[function(t){const r=this.transitional||ne.transitional,i=r&&r.forcedJSONParsing,o=this.responseType==="json";if(h.isResponse(t)||h.isReadableStream(t))return t;if(t&&h.isString(t)&&(i&&!this.responseType||o)){const l=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(d){if(l)throw d.name==="SyntaxError"?F.from(d,F.ERR_BAD_RESPONSE,this,null,this.response):d}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:T.classes.FormData,Blob:T.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};h.forEach(["delete","get","head","post","put","patch"],e=>{ne.headers[e]={}});const vn=h.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"]),es=e=>{const t={};let r,i,o;return e&&e.split(`
`).forEach(function(l){o=l.indexOf(":"),r=l.substring(0,o).trim().toLowerCase(),i=l.substring(o+1).trim(),!(!r||t[r]&&vn[r])&&(r==="set-cookie"?t[r]?t[r].push(i):t[r]=[i]:t[r]=t[r]?t[r]+", "+i:i)}),t},dt=Symbol("internals");function se(e){return e&&String(e).trim().toLowerCase()}function me(e){return e===!1||e==null?e:h.isArray(e)?e.map(me):String(e)}function ts(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=r.exec(e);)t[i[1]]=i[2];return t}const ns=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function _e(e,t,r,i,o){if(h.isFunction(i))return i.call(this,t,r);if(o&&(t=r),!!h.isString(t)){if(h.isString(i))return t.indexOf(i)!==-1;if(h.isRegExp(i))return i.test(t)}}function ss(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,i)=>r.toUpperCase()+i)}function rs(e,t){const r=h.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+r,{value:function(o,s,l){return this[i].call(this,t,o,s,l)},configurable:!0})})}let j=class{constructor(t){t&&this.set(t)}set(t,r,i){const o=this;function s(d,m,f){const a=se(m);if(!a)throw new Error("header name must be a non-empty string");const c=h.findKey(o,a);(!c||o[c]===void 0||f===!0||f===void 0&&o[c]!==!1)&&(o[c||m]=me(d))}const l=(d,m)=>h.forEach(d,(f,a)=>s(f,a,m));if(h.isPlainObject(t)||t instanceof this.constructor)l(t,r);else if(h.isString(t)&&(t=t.trim())&&!ns(t))l(es(t),r);else if(h.isObject(t)&&h.isIterable(t)){let d={},m,f;for(const a of t){if(!h.isArray(a))throw TypeError("Object iterator must return a key-value pair");d[f=a[0]]=(m=d[f])?h.isArray(m)?[...m,a[1]]:[m,a[1]]:a[1]}l(d,r)}else t!=null&&s(r,t,i);return this}get(t,r){if(t=se(t),t){const i=h.findKey(this,t);if(i){const o=this[i];if(!r)return o;if(r===!0)return ts(o);if(h.isFunction(r))return r.call(this,o,i);if(h.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=se(t),t){const i=h.findKey(this,t);return!!(i&&this[i]!==void 0&&(!r||_e(this,this[i],i,r)))}return!1}delete(t,r){const i=this;let o=!1;function s(l){if(l=se(l),l){const d=h.findKey(i,l);d&&(!r||_e(i,i[d],d,r))&&(delete i[d],o=!0)}}return h.isArray(t)?t.forEach(s):s(t),o}clear(t){const r=Object.keys(this);let i=r.length,o=!1;for(;i--;){const s=r[i];(!t||_e(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const r=this,i={};return h.forEach(this,(o,s)=>{const l=h.findKey(i,s);if(l){r[l]=me(o),delete r[s];return}const d=t?ss(s):String(s).trim();d!==s&&delete r[s],r[d]=me(o),i[d]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return h.forEach(this,(i,o)=>{i!=null&&i!==!1&&(r[o]=t&&h.isArray(i)?i.join(", "):i)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const i=new this(t);return r.forEach(o=>i.set(o)),i}static accessor(t){const i=(this[dt]=this[dt]={accessors:{}}).accessors,o=this.prototype;function s(l){const d=se(l);i[d]||(rs(o,l),i[d]=!0)}return h.isArray(t)?t.forEach(s):s(t),this}};j.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),h.reduceDescriptors(j.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(i){this[r]=i}}}),h.freezeMethods(j);function Ne(e,t){const r=this||ne,i=t||r,o=j.from(i.headers);let s=i.data;return h.forEach(e,function(d){s=d.call(r,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function ht(e){return!!(e&&e.__CANCEL__)}function $(e,t,r){F.call(this,e==null?"canceled":e,F.ERR_CANCELED,t,r),this.name="CanceledError"}h.inherits($,F,{__CANCEL__:!0});function ft(e,t,r){const i=r.config.validateStatus;!r.status||!i||i(r.status)?e(r):t(new F("Request failed with status code "+r.status,[F.ERR_BAD_REQUEST,F.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function is(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function os(e,t){e=e||10;const r=new Array(e),i=new Array(e);let o=0,s=0,l;return t=t!==void 0?t:1e3,function(m){const f=Date.now(),a=i[s];l||(l=f),r[o]=m,i[o]=f;let c=s,u=0;for(;c!==o;)u+=r[c++],c=c%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),f-l<t)return;const b=a&&f-a;return b?Math.round(u*1e3/b):void 0}}function ls(e,t){let r=0,i=1e3/t,o,s;const l=(f,a=Date.now())=>{r=a,o=null,s&&(clearTimeout(s),s=null),e.apply(null,f)};return[(...f)=>{const a=Date.now(),c=a-r;c>=i?l(f,a):(o=f,s||(s=setTimeout(()=>{s=null,l(o)},i-c)))},()=>o&&l(o)]}const pe=(e,t,r=3)=>{let i=0;const o=os(50,250);return ls(s=>{const l=s.loaded,d=s.lengthComputable?s.total:void 0,m=l-i,f=o(m),a=l<=d;i=l;const c={loaded:l,total:d,progress:d?l/d:void 0,bytes:m,rate:f||void 0,estimated:f&&d&&a?(d-l)/f:void 0,event:s,lengthComputable:d!=null,[t?"download":"upload"]:!0};e(c)},r)},ut=(e,t)=>{const r=e!=null;return[i=>t[0]({lengthComputable:r,total:e,loaded:i}),t[1]]},mt=e=>(...t)=>h.asap(()=>e(...t)),as=T.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,T.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(T.origin),T.navigator&&/(msie|trident)/i.test(T.navigator.userAgent)):()=>!0,cs=T.hasStandardBrowserEnv?{write(e,t,r,i,o,s){const l=[e+"="+encodeURIComponent(t)];h.isNumber(r)&&l.push("expires="+new Date(r).toGMTString()),h.isString(i)&&l.push("path="+i),h.isString(o)&&l.push("domain="+o),s===!0&&l.push("secure"),document.cookie=l.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function ds(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function hs(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function pt(e,t,r){let i=!ds(t);return e&&(i||r==!1)?hs(e,t):t}const gt=e=>e instanceof j?oe({},e):e;function J(e,t){t=t||{};const r={};function i(f,a,c,u){return h.isPlainObject(f)&&h.isPlainObject(a)?h.merge.call({caseless:u},f,a):h.isPlainObject(a)?h.merge({},a):h.isArray(a)?a.slice():a}function o(f,a,c,u){if(h.isUndefined(a)){if(!h.isUndefined(f))return i(void 0,f,c,u)}else return i(f,a,c,u)}function s(f,a){if(!h.isUndefined(a))return i(void 0,a)}function l(f,a){if(h.isUndefined(a)){if(!h.isUndefined(f))return i(void 0,f)}else return i(void 0,a)}function d(f,a,c){if(c in t)return i(f,a);if(c in e)return i(void 0,f)}const m={url:s,method:s,data:s,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:d,headers:(f,a,c)=>o(gt(f),gt(a),c,!0)};return h.forEach(Object.keys(Object.assign({},e,t)),function(a){const c=m[a]||o,u=c(e[a],t[a],a);h.isUndefined(u)&&c!==d||(r[a]=u)}),r}const wt=e=>{const t=J({},e);let{data:r,withXSRFToken:i,xsrfHeaderName:o,xsrfCookieName:s,headers:l,auth:d}=t;t.headers=l=j.from(l),t.url=ot(pt(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),d&&l.set("Authorization","Basic "+btoa((d.username||"")+":"+(d.password?unescape(encodeURIComponent(d.password)):"")));let m;if(h.isFormData(r)){if(T.hasStandardBrowserEnv||T.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if((m=l.getContentType())!==!1){const[f,...a]=m?m.split(";").map(c=>c.trim()).filter(Boolean):[];l.setContentType([f||"multipart/form-data",...a].join("; "))}}if(T.hasStandardBrowserEnv&&(i&&h.isFunction(i)&&(i=i(t)),i||i!==!1&&as(t.url))){const f=o&&s&&cs.read(s);f&&l.set(o,f)}return t},fs=typeof XMLHttpRequest!="undefined"&&function(e){return new Promise(function(r,i){const o=wt(e);let s=o.data;const l=j.from(o.headers).normalize();let{responseType:d,onUploadProgress:m,onDownloadProgress:f}=o,a,c,u,b,g;function w(){b&&b(),g&&g(),o.cancelToken&&o.cancelToken.unsubscribe(a),o.signal&&o.signal.removeEventListener("abort",a)}let p=new XMLHttpRequest;p.open(o.method.toUpperCase(),o.url,!0),p.timeout=o.timeout;function B(){if(!p)return;const R=j.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),V={data:!d||d==="text"||d==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:R,config:e,request:p};ft(function(I){r(I),w()},function(I){i(I),w()},V),p=null}"onloadend"in p?p.onloadend=B:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(B)},p.onabort=function(){p&&(i(new F("Request aborted",F.ECONNABORTED,e,p)),p=null)},p.onerror=function(){i(new F("Network Error",F.ERR_NETWORK,e,p)),p=null},p.ontimeout=function(){let U=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const V=o.transitional||at;o.timeoutErrorMessage&&(U=o.timeoutErrorMessage),i(new F(U,V.clarifyTimeoutError?F.ETIMEDOUT:F.ECONNABORTED,e,p)),p=null},s===void 0&&l.setContentType(null),"setRequestHeader"in p&&h.forEach(l.toJSON(),function(U,V){p.setRequestHeader(V,U)}),h.isUndefined(o.withCredentials)||(p.withCredentials=!!o.withCredentials),d&&d!=="json"&&(p.responseType=o.responseType),f&&([u,g]=pe(f,!0),p.addEventListener("progress",u)),m&&p.upload&&([c,b]=pe(m),p.upload.addEventListener("progress",c),p.upload.addEventListener("loadend",b)),(o.cancelToken||o.signal)&&(a=R=>{p&&(i(!R||R.type?new $(null,e,p):R),p.abort(),p=null)},o.cancelToken&&o.cancelToken.subscribe(a),o.signal&&(o.signal.aborted?a():o.signal.addEventListener("abort",a)));const C=is(o.url);if(C&&T.protocols.indexOf(C)===-1){i(new F("Unsupported protocol "+C+":",F.ERR_BAD_REQUEST,e));return}p.send(s||null)})},us=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let i=new AbortController,o;const s=function(f){if(!o){o=!0,d();const a=f instanceof Error?f:this.reason;i.abort(a instanceof F?a:new $(a instanceof Error?a.message:a))}};let l=t&&setTimeout(()=>{l=null,s(new F(`timeout ${t} of ms exceeded`,F.ETIMEDOUT))},t);const d=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(s):f.removeEventListener("abort",s)}),e=null)};e.forEach(f=>f.addEventListener("abort",s));const{signal:m}=i;return m.unsubscribe=()=>h.asap(d),m}},ms=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let i=0,o;for(;i<r;)o=i+t,yield e.slice(i,o),i=o},ps=function(e,t){return Ie(this,null,function*(){try{for(var r=Qt(gs(e)),i,o,s;i=!(o=yield new X(r.next())).done;i=!1){const l=o.value;yield*Ge(ms(l,t))}}catch(o){s=[o]}finally{try{i&&(o=r.return)&&(yield new X(o.call(r)))}finally{if(s)throw s[0]}}})},gs=function(e){return Ie(this,null,function*(){if(e[Symbol.asyncIterator]){yield*Ge(e);return}const t=e.getReader();try{for(;;){const{done:r,value:i}=yield new X(t.read());if(r)break;yield i}}finally{yield new X(t.cancel())}})},bt=(e,t,r,i)=>{const o=ps(e,t);let s=0,l,d=f=>{l||(l=!0,i&&i(f))};return new ReadableStream({pull(f){return W(this,null,function*(){try{const{done:a,value:c}=yield o.next();if(a){d(),f.close();return}let u=c.byteLength;if(r){let b=s+=u;r(b)}f.enqueue(new Uint8Array(c))}catch(a){throw d(a),a}})},cancel(f){return d(f),o.return()}},{highWaterMark:2})},ge=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",yt=ge&&typeof ReadableStream=="function",ws=ge&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):e=>W(null,null,function*(){return new Uint8Array(yield new Response(e).arrayBuffer())})),kt=(e,...t)=>{try{return!!e(...t)}catch(r){return!1}},bs=yt&&kt(()=>{let e=!1;const t=new Request(T.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),St=64*1024,Ve=yt&&kt(()=>h.isReadableStream(new Response("").body)),we={stream:Ve&&(e=>e.body)};ge&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!we[t]&&(we[t]=h.isFunction(e[t])?r=>r[t]():(r,i)=>{throw new F(`Response type '${t}' is not supported`,F.ERR_NOT_SUPPORT,i)})})})(new Response);const ys=e=>W(null,null,function*(){if(e==null)return 0;if(h.isBlob(e))return e.size;if(h.isSpecCompliantForm(e))return(yield new Request(T.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(h.isArrayBufferView(e)||h.isArrayBuffer(e))return e.byteLength;if(h.isURLSearchParams(e)&&(e=e+""),h.isString(e))return(yield ws(e)).byteLength}),ks=(e,t)=>W(null,null,function*(){const r=h.toFiniteNumber(e.getContentLength());return r==null?ys(t):r}),Ae={http:Hn,xhr:fs,fetch:ge&&(e=>W(null,null,function*(){let{url:t,method:r,data:i,signal:o,cancelToken:s,timeout:l,onDownloadProgress:d,onUploadProgress:m,responseType:f,headers:a,withCredentials:c="same-origin",fetchOptions:u}=wt(e);f=f?(f+"").toLowerCase():"text";let b=us([o,s&&s.toAbortSignal()],l),g;const w=b&&b.unsubscribe&&(()=>{b.unsubscribe()});let p;try{if(m&&bs&&r!=="get"&&r!=="head"&&(p=yield ks(a,i))!==0){let V=new Request(t,{method:"POST",body:i,duplex:"half"}),M;if(h.isFormData(i)&&(M=V.headers.get("content-type"))&&a.setContentType(M),V.body){const[I,Q]=ut(p,pe(mt(m)));i=bt(V.body,St,I,Q)}}h.isString(c)||(c=c?"include":"omit");const B="credentials"in Request.prototype;g=new Request(t,Kt(oe({},u),{signal:b,method:r.toUpperCase(),headers:a.normalize().toJSON(),body:i,duplex:"half",credentials:B?c:void 0}));let C=yield fetch(g);const R=Ve&&(f==="stream"||f==="response");if(Ve&&(d||R&&w)){const V={};["status","statusText","headers"].forEach(re=>{V[re]=C[re]});const M=h.toFiniteNumber(C.headers.get("content-length")),[I,Q]=d&&ut(M,pe(mt(d),!0))||[];C=new Response(bt(C.body,St,I,()=>{Q&&Q(),w&&w()}),V)}f=f||"text";let U=yield we[h.findKey(we,f)||"text"](C,e);return!R&&w&&w(),yield new Promise((V,M)=>{ft(V,M,{data:U,headers:j.from(C.headers),status:C.status,statusText:C.statusText,config:e,request:g})})}catch(B){throw w&&w(),B&&B.name==="TypeError"&&/Load failed|fetch/i.test(B.message)?Object.assign(new F("Network Error",F.ERR_NETWORK,e,g),{cause:B.cause||B}):F.from(B,B&&B.code,e,g)}}))};h.forEach(Ae,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(r){}Object.defineProperty(e,"adapterName",{value:t})}});const Ct=e=>`- ${e}`,Ss=e=>h.isFunction(e)||e===null||e===!1,Ft={getAdapter:e=>{e=h.isArray(e)?e:[e];const{length:t}=e;let r,i;const o={};for(let s=0;s<t;s++){r=e[s];let l;if(i=r,!Ss(r)&&(i=Ae[(l=String(r)).toLowerCase()],i===void 0))throw new F(`Unknown adapter '${l}'`);if(i)break;o[l||"#"+s]=i}if(!i){const s=Object.entries(o).map(([d,m])=>`adapter ${d} `+(m===!1?"is not supported by the environment":"is not available in the build"));let l=t?s.length>1?`since :
`+s.map(Ct).join(`
`):" "+Ct(s[0]):"as no adapter specified";throw new F("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return i},adapters:Ae};function Te(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new $(null,e)}function Rt(e){return Te(e),e.headers=j.from(e.headers),e.data=Ne.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ft.getAdapter(e.adapter||ne.adapter)(e).then(function(i){return Te(e),i.data=Ne.call(e,e.transformResponse,i),i.headers=j.from(i.headers),i},function(i){return ht(i)||(Te(e),i&&i.response&&(i.response.data=Ne.call(e,e.transformResponse,i.response),i.response.headers=j.from(i.response.headers))),Promise.reject(i)})}const Et="1.9.0",be={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{be[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});const Bt={};be.transitional=function(t,r,i){function o(s,l){return"[Axios v"+Et+"] Transitional option '"+s+"'"+l+(i?". "+i:"")}return(s,l,d)=>{if(t===!1)throw new F(o(l," has been removed"+(r?" in "+r:"")),F.ERR_DEPRECATED);return r&&!Bt[l]&&(Bt[l]=!0,console.warn(o(l," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(s,l,d):!0}},be.spelling=function(t){return(r,i)=>(console.warn(`${i} is likely a misspelling of ${t}`),!0)};function Cs(e,t,r){if(typeof e!="object")throw new F("options must be an object",F.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let o=i.length;for(;o-- >0;){const s=i[o],l=t[s];if(l){const d=e[s],m=d===void 0||l(d,s,e);if(m!==!0)throw new F("option "+s+" must be "+m,F.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new F("Unknown option "+s,F.ERR_BAD_OPTION)}}const ye={assertOptions:Cs,validators:be},z=ye.validators;let K=class{constructor(t){this.defaults=t||{},this.interceptors={request:new lt,response:new lt}}request(t,r){return W(this,null,function*(){try{return yield this._request(t,r)}catch(i){if(i instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const s=o.stack?o.stack.replace(/^.+\n/,""):"";try{i.stack?s&&!String(i.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(i.stack+=`
`+s):i.stack=s}catch(l){}}throw i}})}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=J(this.defaults,r);const{transitional:i,paramsSerializer:o,headers:s}=r;i!==void 0&&ye.assertOptions(i,{silentJSONParsing:z.transitional(z.boolean),forcedJSONParsing:z.transitional(z.boolean),clarifyTimeoutError:z.transitional(z.boolean)},!1),o!=null&&(h.isFunction(o)?r.paramsSerializer={serialize:o}:ye.assertOptions(o,{encode:z.function,serialize:z.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),ye.assertOptions(r,{baseUrl:z.spelling("baseURL"),withXsrfToken:z.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let l=s&&h.merge(s.common,s[r.method]);s&&h.forEach(["delete","get","head","post","put","patch","common"],g=>{delete s[g]}),r.headers=j.concat(l,s);const d=[];let m=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(r)===!1||(m=m&&w.synchronous,d.unshift(w.fulfilled,w.rejected))});const f=[];this.interceptors.response.forEach(function(w){f.push(w.fulfilled,w.rejected)});let a,c=0,u;if(!m){const g=[Rt.bind(this),void 0];for(g.unshift.apply(g,d),g.push.apply(g,f),u=g.length,a=Promise.resolve(r);c<u;)a=a.then(g[c++],g[c++]);return a}u=d.length;let b=r;for(c=0;c<u;){const g=d[c++],w=d[c++];try{b=g(b)}catch(p){w.call(this,p);break}}try{a=Rt.call(this,b)}catch(g){return Promise.reject(g)}for(c=0,u=f.length;c<u;)a=a.then(f[c++],f[c++]);return a}getUri(t){t=J(this.defaults,t);const r=pt(t.baseURL,t.url,t.allowAbsoluteUrls);return ot(r,t.params,t.paramsSerializer)}};h.forEach(["delete","get","head","options"],function(t){K.prototype[t]=function(r,i){return this.request(J(i||{},{method:t,url:r,data:(i||{}).data}))}}),h.forEach(["post","put","patch"],function(t){function r(i){return function(s,l,d){return this.request(J(d||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:s,data:l}))}}K.prototype[t]=r(),K.prototype[t+"Form"]=r(!0)});let Fs=class Wt{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(s){r=s});const i=this;this.promise.then(o=>{if(!i._listeners)return;let s=i._listeners.length;for(;s-- >0;)i._listeners[s](o);i._listeners=null}),this.promise.then=o=>{let s;const l=new Promise(d=>{i.subscribe(d),s=d}).then(o);return l.cancel=function(){i.unsubscribe(s)},l},t(function(s,l,d){i.reason||(i.reason=new $(s,l,d),r(i.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 r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=i=>{t.abort(i)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Wt(function(o){t=o}),cancel:t}}};function Rs(e){return function(r){return e.apply(null,r)}}function Es(e){return h.isObject(e)&&e.isAxiosError===!0}const qe={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(qe).forEach(([e,t])=>{qe[t]=e});function xt(e){const t=new K(e),r=Je(K.prototype.request,t);return h.extend(r,K.prototype,t,{allOwnKeys:!0}),h.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return xt(J(e,o))},r}const O=xt(ne);O.Axios=K,O.CanceledError=$,O.CancelToken=Fs,O.isCancel=ht,O.VERSION=Et,O.toFormData=ue,O.AxiosError=F,O.Cancel=O.CanceledError,O.all=function(t){return Promise.all(t)},O.spread=Rs,O.isAxiosError=Es,O.mergeConfig=J,O.AxiosHeaders=j,O.formToJSON=e=>ct(h.isHTMLForm(e)?new FormData(e):e),O.getAdapter=Ft.getAdapter,O.HttpStatusCode=qe,O.default=O;const{Axios:_i,AxiosError:Ni,CanceledError:Vi,isCancel:Ai,CancelToken:Ti,VERSION:qi,all:ji,Cancel:Li,isAxiosError:Ui,spread:Di,toFormData:Mi,AxiosHeaders:Hi,HttpStatusCode:zi,formToJSON:Ii,getAdapter:Gi,mergeConfig:Ji}=O,Bs={name:"VueQuintable",props:{rows:{type:Array,default(){return[]}},config:{type:Object,default(){return{}}},dynamicConfig:{type:Boolean,default:!1},value:{type:Array,default(){return[]}},selectedRows:{type:Array,default(){return[]}},preSelectedRows:{type:Array,default(){return[]}},loading:{type:Boolean,default:!1},filters:{type:Object,default(){return{}}},filterGroups:{type:Array,default(){return[]}},verbose:{type:Boolean,default:!1},nested:{type:Boolean,default:!1},tableClasses:{type:String,default:""},sortOrder:{type:Array,default(){return[]}},updated:{type:[Boolean,Object,Date],default:!1},axios:{type:Function,default:null},identifier:{type:String,default:null},initialSearchTerm:{type:String,default:null}},emits:["update:filters","filtered:rows","change:breakpoints","hover:row","update:search","update:rows-per-page","input","update:selected-rows","dennis","update:page","active:row","component:event","auxclick:row","expand:row","click:row","click:cell","auxclick:cell","update:sort","ajax:rows","ajax:error"],data(){return{rowsUpdatedKey:Date.now(),indexesUpdatedKey:Date.now(),generatedUpdatedKey:Date.now(),hoveredRow:null,allSelectedCustom:null,selected:{},openRows:{},sortedIndexes:{},currentSortIndexes:{},query:"",currentPage:1,paginationOptions:[1,2,3,4,5,6,7,8,9,10,15,20,25,30,50,100],fetching:!1,ajaxRows:[],ajaxPages:0,ajaxAll:0,customRowsPerPage:null,customMultiSort:null,customPageSort:null,hiddenBreakpoints:[],initBreakpoints:!0,breakpointTimeout:null,cancelSource:null,lastQuery:"",pageOffset:0,uuid:P.v4(),loaderHeight:0,defaultOperator:"equal",queryAjaxTimeout:null,lastSearchQueryUpdated:null,operatorFunctions:{equal:(e,t)=>t===e,greater:(e,t)=>t>e,less:(e,t)=>t<e,greaterEqual:(e,t)=>t>=e,lessEqual:(e,t)=>t<=e,contains:(e,t)=>!Array.isArray(t)&&typeof t!="string"?!1:t.indexOf(e)!==-1,notContains:(e,t)=>!Array.isArray(t)&&typeof t!="string"?!1:t.indexOf(e)===-1,startsWith:(e,t)=>typeof t!="string"?!1:t.indexOf(e)===0,endsWitch:(e,t)=>typeof t!="string"?!1:t.indexOf(e,this.length-e.length)!==-1,matches(e,t){return!(e instanceof RegExp)||typeof t!="string"?!1:e.test(t)}},storedState:{},activeRow:null}},computed:{DEBUG(){return this.verbose},axiosFinal(){return this.axios?this.axios:this.$globalVueQuintableaxios?this.$globalVueQuintableaxios:O},configFinal(){if(!this.config)return{};let e=!1;if(this.config.pagination===!0)e=25;else if(this.config.pagination){let y=0;for(;this.paginationOptions[y]<=this.config.pagination&&y<this.paginationOptions.length;)y++;e=this.paginationOptions[Math.min(y-1,this.paginationOptions.length-1)]}let t="of";this.config.numberOfVisibleRowsFillerWord&&(t=this.config.numberOfVisibleRowsFillerWord);let r=!1;this.config.select&&(r=!0);let i=250;this.config.ajaxRequestDelay&&(i=this.config.ajaxRequestDelay);let o="bg-muted";this.config.hoverClass===!1?o="":this.config.hoverClass&&this.config.hoverClass!==!0&&(o=this.config.hoverClass);let s="bg-muted";this.config.activeClass===!1?s="":this.config.activeClass&&this.config.activeClass!==!0&&(s=this.config.activeClass);let l=!1;this.config.multiSort&&(l=!0);let d=!1;this.config.pageSort&&(d=!0);let m=!1;this.config.multiSortSelect&&(m=!0);let f=!1;this.config.pageSortSelect&&(f=!0);let a=!1;this.config.ajaxUrl&