@sensetence/vue-quintable
Version:
<img alt="vue-quintable" src="https://sensetence.com/vue-quintable-demo/vue-table.png" width="265" height="222">
6 lines • 120 kB
JavaScript
"use strict";var Dt=Object.defineProperty,Mt=Object.defineProperties;var Ht=Object.getOwnPropertyDescriptors;var We=Object.getOwnPropertySymbols;var zt=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable;var M=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Gt=e=>{throw TypeError(e)};var Xe=(e,t,r)=>t in e?Dt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,J=(e,t)=>{for(var r in t||(t={}))zt.call(t,r)&&Xe(e,r,t[r]);if(We)for(var r of We(t))It.call(t,r)&&Xe(e,r,t[r]);return e},Ze=(e,t)=>Mt(e,Ht(t));var q=(e,t,r)=>new Promise((i,o)=>{var s=m=>{try{u(r.next(m))}catch(d){o(d)}},l=m=>{try{u(r.throw(m))}catch(d){o(d)}},u=m=>m.done?i(m.value):Promise.resolve(m.value).then(s,l);u((r=r.apply(e,t)).next())}),L=function(e,t){this[0]=e,this[1]=t},ye=(e,t,r)=>{var i=(l,u,m,d)=>{try{var a=r[l](u),c=(u=a.value)instanceof L,f=a.done;Promise.resolve(c?u[0]:u).then(p=>c?i(l==="return"?l:"next",u[1]?{done:p.done,value:p.value}:p,m,d):m({value:p,done:f})).catch(p=>i("throw",p,m,d))}catch(p){d(p)}},o=l=>s[l]=u=>new Promise((m,d)=>i(l,u,m,d)),s={};return r=r.apply(e,t),s[M("asyncIterator")]=()=>s,o("next"),o("throw"),o("return"),s},ke=e=>{var t=e[M("asyncIterator")],r=!1,i,o={};return t==null?(t=e[M("iterator")](),i=s=>o[s]=l=>t[s](l)):(t=t.call(e),i=s=>o[s]=l=>{if(r){if(r=!1,s==="throw")throw l;return l}return r=!0,{done:!1,value:new L(new Promise(u=>{var m=t[s](l);m instanceof Object||Gt("Object expected"),u(m)}),1)}}),o[M("iterator")]=()=>o,i("next"),"throw"in t?i("throw"):o.throw=s=>{throw s},"return"in t&&i("return"),o},Ye=(e,t,r)=>(t=e[M("asyncIterator")])?t.call(e):(e=e[M("iterator")](),t={},r=(i,o)=>(o=e[i])&&(t[i]=s=>new Promise((l,u,m)=>(s=o.call(e,s),m=s.done,Promise.resolve(s.value).then(d=>l({value:d,done:m}),u)))),r("next"),r("return"),t);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const ft=require("floating-vue"),Jt=require("@fortawesome/fontawesome-svg-core"),Kt=require("@fortawesome/vue-fontawesome"),E=require("@fortawesome/free-solid-svg-icons"),n=require("vue"),Qt=require("vue-select"),$e=require("fuzzy.js"),Wt=require("uuid");Jt.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 Xt(e){e.component("QuintableFontAwesomeIcon",Kt.FontAwesomeIcon)}const Oe=(e,t)=>{const r=e.__vccOpts||e;for(const[i,o]of t)r[i]=o;return r},Zt={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)}}}},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:"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,Yt),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 en=Oe(Zt,[["render",$t],["__scopeId","data-v-bc7c5ce1"]]),tn={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)}}},nn=["name","value","checked","disabled","required"];function sn(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,nn),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 rn=Oe(tn,[["render",sn]]);function on(e){e.component("QuintablePCheck",en),e.component("QuintablePRadio",rn),e.component("QuintableVSelect",Qt)}function ln(e){e.use(ft,{themes:{tooltip:{$extend:"dropdown",triggers:["hover","focus"],delay:{show:200,hide:200},popperOptions:{modifiers:[{name:"offset",options:{offset:[0,6]}}]},contentClass:"quintable-tooltip"}}})}function mt(e,t){return function(){return e.apply(t,arguments)}}const{toString:an}=Object.prototype,{getPrototypeOf:_e}=Object,{iterator:ie,toStringTag:gt}=Symbol,oe=(e=>t=>{const r=an.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),N=e=>(e=e.toLowerCase(),t=>oe(t)===e),le=e=>t=>typeof t===e,{isArray:H}=Array,Q=le("undefined");function cn(e){return e!==null&&!Q(e)&&e.constructor!==null&&!Q(e.constructor)&&v(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const pt=N("ArrayBuffer");function un(e){let t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&pt(e.buffer),t}const dn=le("string"),v=le("function"),wt=le("number"),ae=e=>e!==null&&typeof e=="object",hn=e=>e===!0||e===!1,ee=e=>{if(oe(e)!=="object")return!1;const t=_e(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(gt in e)&&!(ie in e)},fn=N("Date"),mn=N("File"),gn=N("Blob"),pn=N("FileList"),wn=e=>ae(e)&&v(e.pipe),bn=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||v(e.append)&&((t=oe(e))==="formdata"||t==="object"&&v(e.toString)&&e.toString()==="[object FormData]"))},yn=N("URLSearchParams"),[kn,Sn,Cn,Fn]=["ReadableStream","Request","Response","Headers"].map(N),Rn=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function W(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e=="undefined")return;let i,o;if(typeof e!="object"&&(e=[e]),H(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 u;for(i=0;i<l;i++)u=s[i],t.call(null,e[u],u,e)}}function bt(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 j=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global,yt=e=>!Q(e)&&e!==j;function Re(){const{caseless:e}=yt(this)&&this||{},t={},r=(i,o)=>{const s=e&&bt(t,o)||o;ee(t[s])&&ee(i)?t[s]=Re(t[s],i):ee(i)?t[s]=Re({},i):H(i)?t[s]=i.slice():t[s]=i};for(let i=0,o=arguments.length;i<o;i++)arguments[i]&&W(arguments[i],r);return t}const En=(e,t,r,{allOwnKeys:i}={})=>(W(t,(o,s)=>{r&&v(o)?e[s]=mt(o,r):e[s]=o},{allOwnKeys:i}),e),Bn=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),xn=(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)},vn=(e,t,r,i)=>{let o,s,l;const u={};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))&&!u[l]&&(t[l]=e[l],u[l]=!0);e=r!==!1&&_e(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Pn=(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},On=e=>{if(!e)return null;if(H(e))return e;let t=e.length;if(!wt(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},_n=(e=>t=>e&&t instanceof e)(typeof Uint8Array!="undefined"&&_e(Uint8Array)),Nn=(e,t)=>{const i=(e&&e[ie]).call(e);let o;for(;(o=i.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},Vn=(e,t)=>{let r;const i=[];for(;(r=e.exec(t))!==null;)i.push(r);return i},An=N("HTMLFormElement"),Tn=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,i,o){return i.toUpperCase()+o}),et=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),qn=N("RegExp"),kt=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),i={};W(r,(o,s)=>{let l;(l=t(o,s,e))!==!1&&(i[s]=l||o)}),Object.defineProperties(e,i)},Ln=e=>{kt(e,(t,r)=>{if(v(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const i=e[r];if(v(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+"'")})}})},jn=(e,t)=>{const r={},i=o=>{o.forEach(s=>{r[s]=!0})};return H(e)?i(e):i(String(e).split(t)),r},Un=()=>{},Dn=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Mn(e){return!!(e&&v(e.append)&&e[gt]==="FormData"&&e[ie])}const Hn=e=>{const t=new Array(10),r=(i,o)=>{if(ae(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[o]=i;const s=H(i)?[]:{};return W(i,(l,u)=>{const m=r(l,o+1);!Q(m)&&(s[u]=m)}),t[o]=void 0,s}}return i};return r(e,0)},zn=N("AsyncFunction"),In=e=>e&&(ae(e)||v(e))&&v(e.then)&&v(e.catch),St=((e,t)=>e?setImmediate:t?((r,i)=>(j.addEventListener("message",({source:o,data:s})=>{o===j&&s===r&&i.length&&i.shift()()},!1),o=>{i.push(o),j.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",v(j.postMessage)),Gn=typeof queueMicrotask!="undefined"?queueMicrotask.bind(j):typeof process!="undefined"&&process.nextTick||St,Jn=e=>e!=null&&v(e[ie]),h={isArray:H,isArrayBuffer:pt,isBuffer:cn,isFormData:bn,isArrayBufferView:un,isString:dn,isNumber:wt,isBoolean:hn,isObject:ae,isPlainObject:ee,isReadableStream:kn,isRequest:Sn,isResponse:Cn,isHeaders:Fn,isUndefined:Q,isDate:fn,isFile:mn,isBlob:gn,isRegExp:qn,isFunction:v,isStream:wn,isURLSearchParams:yn,isTypedArray:_n,isFileList:pn,forEach:W,merge:Re,extend:En,trim:Rn,stripBOM:Bn,inherits:xn,toFlatObject:vn,kindOf:oe,kindOfTest:N,endsWith:Pn,toArray:On,forEachEntry:Nn,matchAll:Vn,isHTMLForm:An,hasOwnProperty:et,hasOwnProp:et,reduceDescriptors:kt,freezeMethods:Ln,toObjectSet:jn,toCamelCase:Tn,noop:Un,toFiniteNumber:Dn,findKey:bt,global:j,isContextDefined:yt,isSpecCompliantForm:Mn,toJSONObject:Hn,isAsyncFn:zn,isThenable:In,setImmediate:St,asap:Gn,isIterable:Jn};function S(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(S,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 Ct=S.prototype,Ft={};["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=>{Ft[e]={value:e}});Object.defineProperties(S,Ft);Object.defineProperty(Ct,"isAxiosError",{value:!0});S.from=(e,t,r,i,o,s)=>{const l=Object.create(Ct);return h.toFlatObject(e,l,function(m){return m!==Error.prototype},u=>u!=="isAxiosError"),S.call(l,e.message,t,r,i,o),l.cause=e,l.name=e.name,s&&Object.assign(l,s),l};const Kn=null;function Ee(e){return h.isPlainObject(e)||h.isArray(e)}function Rt(e){return h.endsWith(e,"[]")?e.slice(0,-2):e}function tt(e,t,r){return e?e.concat(t).map(function(o,s){return o=Rt(o),!r&&s?"["+o+"]":o}).join(r?".":""):t}function Qn(e){return h.isArray(e)&&!e.some(Ee)}const Wn=h.toFlatObject(h,{},null,function(t){return/^is[A-Z]/.test(t)});function ce(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(b,g){return!h.isUndefined(g[b])});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 d(w){if(w===null)return"";if(h.isDate(w))return w.toISOString();if(!m&&h.isBlob(w))throw new S("Blob is not supported. Use a Buffer instead.");return h.isArrayBuffer(w)||h.isTypedArray(w)?m&&typeof Blob=="function"?new Blob([w]):Buffer.from(w):w}function a(w,b,g){let F=w;if(w&&!g&&typeof w=="object"){if(h.endsWith(b,"{}"))b=i?b:b.slice(0,-2),w=JSON.stringify(w);else if(h.isArray(w)&&Qn(w)||(h.isFileList(w)||h.endsWith(b,"[]"))&&(F=h.toArray(w)))return b=Rt(b),F.forEach(function(C,O){!(h.isUndefined(C)||C===null)&&t.append(l===!0?tt([b],O,s):l===null?b:b+"[]",d(C))}),!1}return Ee(w)?!0:(t.append(tt(g,b,s),d(w)),!1)}const c=[],f=Object.assign(Wn,{defaultVisitor:a,convertValue:d,isVisitable:Ee});function p(w,b){if(!h.isUndefined(w)){if(c.indexOf(w)!==-1)throw Error("Circular reference detected in "+b.join("."));c.push(w),h.forEach(w,function(F,k){(!(h.isUndefined(F)||F===null)&&o.call(t,F,h.isString(k)?k.trim():k,b,f))===!0&&p(F,b?b.concat(k):[k])}),c.pop()}}if(!h.isObject(e))throw new TypeError("data must be an object");return p(e),t}function nt(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function Ne(e,t){this._pairs=[],e&&ce(e,this,t)}const Et=Ne.prototype;Et.append=function(t,r){this._pairs.push([t,r])};Et.toString=function(t){const r=t?function(i){return t.call(this,i,nt)}:nt;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function Xn(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Bt(e,t,r){if(!t)return e;const i=r&&r.encode||Xn;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 Ne(t,r).toString(i),s){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class st{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 xt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Zn=typeof URLSearchParams!="undefined"?URLSearchParams:Ne,Yn=typeof FormData!="undefined"?FormData:null,$n=typeof Blob!="undefined"?Blob:null,es={isBrowser:!0,classes:{URLSearchParams:Zn,FormData:Yn,Blob:$n},protocols:["http","https","file","blob","url","data"]},Ve=typeof window!="undefined"&&typeof document!="undefined",Be=typeof navigator=="object"&&navigator||void 0,ts=Ve&&(!Be||["ReactNative","NativeScript","NS"].indexOf(Be.product)<0),ns=typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ss=Ve&&window.location.href||"http://localhost",rs=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ve,hasStandardBrowserEnv:ts,hasStandardBrowserWebWorkerEnv:ns,navigator:Be,origin:ss},Symbol.toStringTag,{value:"Module"})),x=J(J({},rs),es);function is(e,t){return ce(e,new x.classes.URLSearchParams,Object.assign({visitor:function(r,i,o,s){return x.isNode&&h.isBuffer(r)?(this.append(i,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function os(e){return h.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function ls(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 vt(e){function t(r,i,o,s){let l=r[s++];if(l==="__proto__")return!0;const u=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,!u):((!o[l]||!h.isObject(o[l]))&&(o[l]=[]),t(r,i,o[l],s)&&h.isArray(o[l])&&(o[l]=ls(o[l])),!u)}if(h.isFormData(e)&&h.isFunction(e.entries)){const r={};return h.forEachEntry(e,(i,o)=>{t(os(i),o,r,0)}),r}return null}function as(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 X={transitional:xt,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(vt(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 u;if(s){if(i.indexOf("application/x-www-form-urlencoded")>-1)return is(t,this.formSerializer).toString();if((u=h.isFileList(t))||i.indexOf("multipart/form-data")>-1){const m=this.env&&this.env.FormData;return ce(u?{"files[]":t}:t,m&&new m,this.formSerializer)}}return s||o?(r.setContentType("application/json",!1),as(t)):t}],transformResponse:[function(t){const r=this.transitional||X.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(u){if(l)throw u.name==="SyntaxError"?S.from(u,S.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:x.classes.FormData,Blob:x.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=>{X.headers[e]={}});const cs=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"]),us=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]&&cs[r])&&(r==="set-cookie"?t[r]?t[r].push(i):t[r]=[i]:t[r]=t[r]?t[r]+", "+i:i)}),t},rt=Symbol("internals");function K(e){return e&&String(e).trim().toLowerCase()}function te(e){return e===!1||e==null?e:h.isArray(e)?e.map(te):String(e)}function ds(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 hs=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Se(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 fs(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,i)=>r.toUpperCase()+i)}function ms(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 P=class{constructor(t){t&&this.set(t)}set(t,r,i){const o=this;function s(u,m,d){const a=K(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||d===!0||d===void 0&&o[c]!==!1)&&(o[c||m]=te(u))}const l=(u,m)=>h.forEach(u,(d,a)=>s(d,a,m));if(h.isPlainObject(t)||t instanceof this.constructor)l(t,r);else if(h.isString(t)&&(t=t.trim())&&!hs(t))l(us(t),r);else if(h.isObject(t)&&h.isIterable(t)){let u={},m,d;for(const a of t){if(!h.isArray(a))throw TypeError("Object iterator must return a key-value pair");u[d=a[0]]=(m=u[d])?h.isArray(m)?[...m,a[1]]:[m,a[1]]:a[1]}l(u,r)}else t!=null&&s(r,t,i);return this}get(t,r){if(t=K(t),t){const i=h.findKey(this,t);if(i){const o=this[i];if(!r)return o;if(r===!0)return ds(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=K(t),t){const i=h.findKey(this,t);return!!(i&&this[i]!==void 0&&(!r||Se(this,this[i],i,r)))}return!1}delete(t,r){const i=this;let o=!1;function s(l){if(l=K(l),l){const u=h.findKey(i,l);u&&(!r||Se(i,i[u],u,r))&&(delete i[u],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||Se(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]=te(o),delete r[s];return}const u=t?fs(s):String(s).trim();u!==s&&delete r[s],r[u]=te(o),i[u]=!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[rt]=this[rt]={accessors:{}}).accessors,o=this.prototype;function s(l){const u=K(l);i[u]||(ms(o,l),i[u]=!0)}return h.isArray(t)?t.forEach(s):s(t),this}};P.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);h.reduceDescriptors(P.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(i){this[r]=i}}});h.freezeMethods(P);function Ce(e,t){const r=this||X,i=t||r,o=P.from(i.headers);let s=i.data;return h.forEach(e,function(u){s=u.call(r,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function Pt(e){return!!(e&&e.__CANCEL__)}function z(e,t,r){S.call(this,e==null?"canceled":e,S.ERR_CANCELED,t,r),this.name="CanceledError"}h.inherits(z,S,{__CANCEL__:!0});function Ot(e,t,r){const i=r.config.validateStatus;!r.status||!i||i(r.status)?e(r):t(new S("Request failed with status code "+r.status,[S.ERR_BAD_REQUEST,S.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function gs(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ps(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 d=Date.now(),a=i[s];l||(l=d),r[o]=m,i[o]=d;let c=s,f=0;for(;c!==o;)f+=r[c++],c=c%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),d-l<t)return;const p=a&&d-a;return p?Math.round(f*1e3/p):void 0}}function ws(e,t){let r=0,i=1e3/t,o,s;const l=(d,a=Date.now())=>{r=a,o=null,s&&(clearTimeout(s),s=null),e.apply(null,d)};return[(...d)=>{const a=Date.now(),c=a-r;c>=i?l(d,a):(o=d,s||(s=setTimeout(()=>{s=null,l(o)},i-c)))},()=>o&&l(o)]}const se=(e,t,r=3)=>{let i=0;const o=ps(50,250);return ws(s=>{const l=s.loaded,u=s.lengthComputable?s.total:void 0,m=l-i,d=o(m),a=l<=u;i=l;const c={loaded:l,total:u,progress:u?l/u:void 0,bytes:m,rate:d||void 0,estimated:d&&u&&a?(u-l)/d:void 0,event:s,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(c)},r)},it=(e,t)=>{const r=e!=null;return[i=>t[0]({lengthComputable:r,total:e,loaded:i}),t[1]]},ot=e=>(...t)=>h.asap(()=>e(...t)),bs=x.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,x.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(x.origin),x.navigator&&/(msie|trident)/i.test(x.navigator.userAgent)):()=>!0,ys=x.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 ks(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Ss(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function _t(e,t,r){let i=!ks(t);return e&&(i||r==!1)?Ss(e,t):t}const lt=e=>e instanceof P?J({},e):e;function D(e,t){t=t||{};const r={};function i(d,a,c,f){return h.isPlainObject(d)&&h.isPlainObject(a)?h.merge.call({caseless:f},d,a):h.isPlainObject(a)?h.merge({},a):h.isArray(a)?a.slice():a}function o(d,a,c,f){if(h.isUndefined(a)){if(!h.isUndefined(d))return i(void 0,d,c,f)}else return i(d,a,c,f)}function s(d,a){if(!h.isUndefined(a))return i(void 0,a)}function l(d,a){if(h.isUndefined(a)){if(!h.isUndefined(d))return i(void 0,d)}else return i(void 0,a)}function u(d,a,c){if(c in t)return i(d,a);if(c in e)return i(void 0,d)}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:u,headers:(d,a,c)=>o(lt(d),lt(a),c,!0)};return h.forEach(Object.keys(Object.assign({},e,t)),function(a){const c=m[a]||o,f=c(e[a],t[a],a);h.isUndefined(f)&&c!==u||(r[a]=f)}),r}const Nt=e=>{const t=D({},e);let{data:r,withXSRFToken:i,xsrfHeaderName:o,xsrfCookieName:s,headers:l,auth:u}=t;t.headers=l=P.from(l),t.url=Bt(_t(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),u&&l.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")));let m;if(h.isFormData(r)){if(x.hasStandardBrowserEnv||x.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if((m=l.getContentType())!==!1){const[d,...a]=m?m.split(";").map(c=>c.trim()).filter(Boolean):[];l.setContentType([d||"multipart/form-data",...a].join("; "))}}if(x.hasStandardBrowserEnv&&(i&&h.isFunction(i)&&(i=i(t)),i||i!==!1&&bs(t.url))){const d=o&&s&&ys.read(s);d&&l.set(o,d)}return t},Cs=typeof XMLHttpRequest!="undefined",Fs=Cs&&function(e){return new Promise(function(r,i){const o=Nt(e);let s=o.data;const l=P.from(o.headers).normalize();let{responseType:u,onUploadProgress:m,onDownloadProgress:d}=o,a,c,f,p,w;function b(){p&&p(),w&&w(),o.cancelToken&&o.cancelToken.unsubscribe(a),o.signal&&o.signal.removeEventListener("abort",a)}let g=new XMLHttpRequest;g.open(o.method.toUpperCase(),o.url,!0),g.timeout=o.timeout;function F(){if(!g)return;const C=P.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),B={data:!u||u==="text"||u==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:C,config:e,request:g};Ot(function(V){r(V),b()},function(V){i(V),b()},B),g=null}"onloadend"in g?g.onloadend=F:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(F)},g.onabort=function(){g&&(i(new S("Request aborted",S.ECONNABORTED,e,g)),g=null)},g.onerror=function(){i(new S("Network Error",S.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let O=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const B=o.transitional||xt;o.timeoutErrorMessage&&(O=o.timeoutErrorMessage),i(new S(O,B.clarifyTimeoutError?S.ETIMEDOUT:S.ECONNABORTED,e,g)),g=null},s===void 0&&l.setContentType(null),"setRequestHeader"in g&&h.forEach(l.toJSON(),function(O,B){g.setRequestHeader(B,O)}),h.isUndefined(o.withCredentials)||(g.withCredentials=!!o.withCredentials),u&&u!=="json"&&(g.responseType=o.responseType),d&&([f,w]=se(d,!0),g.addEventListener("progress",f)),m&&g.upload&&([c,p]=se(m),g.upload.addEventListener("progress",c),g.upload.addEventListener("loadend",p)),(o.cancelToken||o.signal)&&(a=C=>{g&&(i(!C||C.type?new z(null,e,g):C),g.abort(),g=null)},o.cancelToken&&o.cancelToken.subscribe(a),o.signal&&(o.signal.aborted?a():o.signal.addEventListener("abort",a)));const k=gs(o.url);if(k&&x.protocols.indexOf(k)===-1){i(new S("Unsupported protocol "+k+":",S.ERR_BAD_REQUEST,e));return}g.send(s||null)})},Rs=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let i=new AbortController,o;const s=function(d){if(!o){o=!0,u();const a=d instanceof Error?d:this.reason;i.abort(a instanceof S?a:new z(a instanceof Error?a.message:a))}};let l=t&&setTimeout(()=>{l=null,s(new S(`timeout ${t} of ms exceeded`,S.ETIMEDOUT))},t);const u=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(s):d.removeEventListener("abort",s)}),e=null)};e.forEach(d=>d.addEventListener("abort",s));const{signal:m}=i;return m.unsubscribe=()=>h.asap(u),m}},Es=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},Bs=function(e,t){return ye(this,null,function*(){try{for(var r=Ye(xs(e)),i,o,s;i=!(o=yield new L(r.next())).done;i=!1){const l=o.value;yield*ke(Es(l,t))}}catch(o){s=[o]}finally{try{i&&(o=r.return)&&(yield new L(o.call(r)))}finally{if(s)throw s[0]}}})},xs=function(e){return ye(this,null,function*(){if(e[Symbol.asyncIterator]){yield*ke(e);return}const t=e.getReader();try{for(;;){const{done:r,value:i}=yield new L(t.read());if(r)break;yield i}}finally{yield new L(t.cancel())}})},at=(e,t,r,i)=>{const o=Bs(e,t);let s=0,l,u=d=>{l||(l=!0,i&&i(d))};return new ReadableStream({pull(d){return q(this,null,function*(){try{const{done:a,value:c}=yield o.next();if(a){u(),d.close();return}let f=c.byteLength;if(r){let p=s+=f;r(p)}d.enqueue(new Uint8Array(c))}catch(a){throw u(a),a}})},cancel(d){return u(d),o.return()}},{highWaterMark:2})},ue=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Vt=ue&&typeof ReadableStream=="function",vs=ue&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):e=>q(null,null,function*(){return new Uint8Array(yield new Response(e).arrayBuffer())})),At=(e,...t)=>{try{return!!e(...t)}catch(r){return!1}},Ps=Vt&&At(()=>{let e=!1;const t=new Request(x.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),ct=64*1024,xe=Vt&&At(()=>h.isReadableStream(new Response("").body)),re={stream:xe&&(e=>e.body)};ue&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!re[t]&&(re[t]=h.isFunction(e[t])?r=>r[t]():(r,i)=>{throw new S(`Response type '${t}' is not supported`,S.ERR_NOT_SUPPORT,i)})})})(new Response);const Os=e=>q(null,null,function*(){if(e==null)return 0;if(h.isBlob(e))return e.size;if(h.isSpecCompliantForm(e))return(yield new Request(x.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 vs(e)).byteLength}),_s=(e,t)=>q(null,null,function*(){const r=h.toFiniteNumber(e.getContentLength());return r==null?Os(t):r}),Ns=ue&&(e=>q(null,null,function*(){let{url:t,method:r,data:i,signal:o,cancelToken:s,timeout:l,onDownloadProgress:u,onUploadProgress:m,responseType:d,headers:a,withCredentials:c="same-origin",fetchOptions:f}=Nt(e);d=d?(d+"").toLowerCase():"text";let p=Rs([o,s&&s.toAbortSignal()],l),w;const b=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let g;try{if(m&&Ps&&r!=="get"&&r!=="head"&&(g=yield _s(a,i))!==0){let B=new Request(t,{method:"POST",body:i,duplex:"half"}),_;if(h.isFormData(i)&&(_=B.headers.get("content-type"))&&a.setContentType(_),B.body){const[V,T]=it(g,se(ot(m)));i=at(B.body,ct,V,T)}}h.isString(c)||(c=c?"include":"omit");const F="credentials"in Request.prototype;w=new Request(t,Ze(J({},f),{signal:p,method:r.toUpperCase(),headers:a.normalize().toJSON(),body:i,duplex:"half",credentials:F?c:void 0}));let k=yield fetch(w);const C=xe&&(d==="stream"||d==="response");if(xe&&(u||C&&b)){const B={};["status","statusText","headers"].forEach(I=>{B[I]=k[I]});const _=h.toFiniteNumber(k.headers.get("content-length")),[V,T]=u&&it(_,se(ot(u),!0))||[];k=new Response(at(k.body,ct,V,()=>{T&&T(),b&&b()}),B)}d=d||"text";let O=yield re[h.findKey(re,d)||"text"](k,e);return!C&&b&&b(),yield new Promise((B,_)=>{Ot(B,_,{data:O,headers:P.from(k.headers),status:k.status,statusText:k.statusText,config:e,request:w})})}catch(F){throw b&&b(),F&&F.name==="TypeError"&&/Load failed|fetch/i.test(F.message)?Object.assign(new S("Network Error",S.ERR_NETWORK,e,w),{cause:F.cause||F}):S.from(F,F&&F.code,e,w)}})),ve={http:Kn,xhr:Fs,fetch:Ns};h.forEach(ve,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(r){}Object.defineProperty(e,"adapterName",{value:t})}});const ut=e=>`- ${e}`,Vs=e=>h.isFunction(e)||e===null||e===!1,Tt={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,!Vs(r)&&(i=ve[(l=String(r)).toLowerCase()],i===void 0))throw new S(`Unknown adapter '${l}'`);if(i)break;o[l||"#"+s]=i}if(!i){const s=Object.entries(o).map(([u,m])=>`adapter ${u} `+(m===!1?"is not supported by the environment":"is not available in the build"));let l=t?s.length>1?`since :
`+s.map(ut).join(`
`):" "+ut(s[0]):"as no adapter specified";throw new S("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return i},adapters:ve};function Fe(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new z(null,e)}function dt(e){return Fe(e),e.headers=P.from(e.headers),e.data=Ce.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Tt.getAdapter(e.adapter||X.adapter)(e).then(function(i){return Fe(e),i.data=Ce.call(e,e.transformResponse,i),i.headers=P.from(i.headers),i},function(i){return Pt(i)||(Fe(e),i&&i.response&&(i.response.data=Ce.call(e,e.transformResponse,i.response),i.response.headers=P.from(i.response.headers))),Promise.reject(i)})}const qt="1.9.0",de={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{de[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});const ht={};de.transitional=function(t,r,i){function o(s,l){return"[Axios v"+qt+"] Transitional option '"+s+"'"+l+(i?". "+i:"")}return(s,l,u)=>{if(t===!1)throw new S(o(l," has been removed"+(r?" in "+r:"")),S.ERR_DEPRECATED);return r&&!ht[l]&&(ht[l]=!0,console.warn(o(l," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(s,l,u):!0}};de.spelling=function(t){return(r,i)=>(console.warn(`${i} is likely a misspelling of ${t}`),!0)};function As(e,t,r){if(typeof e!="object")throw new S("options must be an object",S.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 u=e[s],m=u===void 0||l(u,s,e);if(m!==!0)throw new S("option "+s+" must be "+m,S.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new S("Unknown option "+s,S.ERR_BAD_OPTION)}}const ne={assertOptions:As,validators:de},A=ne.validators;let U=class{constructor(t){this.defaults=t||{},this.interceptors={request:new st,response:new st}}request(t,r){return q(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=D(this.defaults,r);const{transitional:i,paramsSerializer:o,headers:s}=r;i!==void 0&&ne.assertOptions(i,{silentJSONParsing:A.transitional(A.boolean),forcedJSONParsing:A.transitional(A.boolean),clarifyTimeoutError:A.transitional(A.boolean)},!1),o!=null&&(h.isFunction(o)?r.paramsSerializer={serialize:o}:ne.assertOptions(o,{encode:A.function,serialize:A.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),ne.assertOptions(r,{baseUrl:A.spelling("baseURL"),withXsrfToken:A.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"],w=>{delete s[w]}),r.headers=P.concat(l,s);const u=[];let m=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(r)===!1||(m=m&&b.synchronous,u.unshift(b.fulfilled,b.rejected))});const d=[];this.interceptors.response.forEach(function(b){d.push(b.fulfilled,b.rejected)});let a,c=0,f;if(!m){const w=[dt.bind(this),void 0];for(w.unshift.apply(w,u),w.push.apply(w,d),f=w.length,a=Promise.resolve(r);c<f;)a=a.then(w[c++],w[c++]);return a}f=u.length;let p=r;for(c=0;c<f;){const w=u[c++],b=u[c++];try{p=w(p)}catch(g){b.call(this,g);break}}try{a=dt.call(this,p)}catch(w){return Promise.reject(w)}for(c=0,f=d.length;c<f;)a=a.then(d[c++],d[c++]);return a}getUri(t){t=D(this.defaults,t);const r=_t(t.baseURL,t.url,t.allowAbsoluteUrls);return Bt(r,t.params,t.paramsSerializer)}};h.forEach(["delete","get","head","options"],function(t){U.prototype[t]=function(r,i){return this.request(D(i||{},{method:t,url:r,data:(i||{}).data}))}});h.forEach(["post","put","patch"],function(t){function r(i){return function(s,l,u){return this.request(D(u||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:s,data:l}))}}U.prototype[t]=r(),U.prototype[t+"Form"]=r(!0)});let Ts=class Lt{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(u=>{i.subscribe(u),s=u}).then(o);return l.cancel=function(){i.unsubscribe(s)},l},t(function(s,l,u){i.reason||(i.reason=new z(s,l,u),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 Lt(function(o){t=o}),cancel:t}}};function qs(e){return function(r){return e.apply(null,r)}}function Ls(e){return h.isObject(e)&&e.isAxiosError===!0}const Pe={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(Pe).forEach(([e,t])=>{Pe[t]=e});function jt(e){const t=new U(e),r=mt(U.prototype.request,t);return h.extend(r,U.prototype,t,{allOwnKeys:!0}),h.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return jt(D(e,o))},r}const R=jt(X);R.Axios=U;R.CanceledError=z;R.CancelToken=Ts;R.isCancel=Pt;R.VERSION=qt;R.toFormData=ce;R.AxiosError=S;R.Cancel=R.CanceledError;R.all=function(t){return Promise.all(t)};R.spread=qs;R.isAxiosError=Ls;R.mergeConfig=D;R.AxiosHeaders=P;R.formToJSON=e=>vt(h.isHTMLForm(e)?new FormData(e):e);R.getAdapter=Tt.getAdapter;R.HttpStatusCode=Pe;R.default=R;const{Axios:Ni,AxiosError:Vi,CanceledError:Ai,isCancel:Ti,CancelToken:qi,VERSION:Li,all:ji,Cancel:Ui,isAxiosError:Di,spread:Mi,toFormData:Hi,AxiosHeaders:zi,HttpStatusCode:Ii,formToJSON:Gi,getAdapter:Ji,mergeConfig:Ki}=R,js={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:Wt.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:R},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 u=!1;this.config.pageSort&&(u=!0);let m=!1;this.config.multiSortSelect&&(m=!0);let d=!1;this.config.pageSortSelect&&(d=!0);let a=!1;this.config.ajaxUrl&&(a=this.config.ajaxUrl);let c="post";["pre","post"].includes(this.config.selectPosition)&&(c=this.config.selectPosition);let f=!1;this.config.expandedAll&&(f=!0);let p=!1;this.config.useFuzzySearch&&(p=!0);let w=!1;this.config.prettySelect&&(w=!0);let b=!1;this.config.rowsSelect&&(b=!0);let g=!1;this.config.keepSelect&&(g=!0);let F=!1;this.config.disallowAllOption&&(F