@sabrenski/spire-ui-vue 0.2.3 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,81 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("vue");var ya=typeof global=="object"&&global&&global.Object===Object&&global,Hs=typeof self=="object"&&self&&self.Object===Object&&self,Me=ya||Hs||Function("return this")(),De=Me.Symbol,ma=Object.prototype,Ws=ma.hasOwnProperty,zs=ma.toString,Rt=De?De.toStringTag:void 0;function Gs(e){var t=Ws.call(e,Rt),r=e[Rt];try{e[Rt]=void 0;var n=!0}catch{}var o=zs.call(e);return n&&(t?e[Rt]=r:delete e[Rt]),o}var Ks=Object.prototype,Vs=Ks.toString;function Js(e){return Vs.call(e)}var Xs="[object Null]",Qs="[object Undefined]",Ao=De?De.toStringTag:void 0;function St(e){return e==null?e===void 0?Qs:Xs:Ao&&Ao in Object(e)?Gs(e):Js(e)}function Qe(e){return e!=null&&typeof e=="object"}var Ys="[object Symbol]";function Vn(e){return typeof e=="symbol"||Qe(e)&&St(e)==Ys}function Zs(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var ke=Array.isArray,To=De?De.prototype:void 0,Oo=To?To.toString:void 0;function ga(e){if(typeof e=="string")return e;if(ke(e))return Zs(e,ga)+"";if(Vn(e))return Oo?Oo.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function gt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var el="[object AsyncFunction]",tl="[object Function]",rl="[object GeneratorFunction]",nl="[object Proxy]";function va(e){if(!gt(e))return!1;var t=St(e);return t==tl||t==rl||t==el||t==nl}var Cr=Me["__core-js_shared__"],Ro=(function(){var e=/[^.]+$/.exec(Cr&&Cr.keys&&Cr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function ol(e){return!!Ro&&Ro in e}var il=Function.prototype,al=il.toString;function st(e){if(e!=null){try{return al.call(e)}catch{}try{return e+""}catch{}}return""}var sl=/[\\^$.*+?()[\]{}|]/g,ll=/^\[object .+?Constructor\]$/,cl=Function.prototype,ul=Object.prototype,fl=cl.toString,dl=ul.hasOwnProperty,pl=RegExp("^"+fl.call(dl).replace(sl,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function hl(e){if(!gt(e)||ol(e))return!1;var t=va(e)?pl:ll;return t.test(st(e))}function yl(e,t){return e?.[t]}function lt(e,t){var r=yl(e,t);return hl(r)?r:void 0}var In=lt(Me,"WeakMap"),Co=Object.create,ml=(function(){function e(){}return function(t){if(!gt(t))return{};if(Co)return Co(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}})(),xo=(function(){try{var e=lt(Object,"defineProperty");return e({},"",{}),e}catch{}})();function gl(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var vl=9007199254740991,bl=/^(?:0|[1-9]\d*)$/;function Jn(e,t){var r=typeof e;return t=t??vl,!!t&&(r=="number"||r!="symbol"&&bl.test(e))&&e>-1&&e%1==0&&e<t}function wl(e,t,r){t=="__proto__"&&xo?xo(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Xn(e,t){return e===t||e!==e&&t!==t}var Sl=Object.prototype,Pl=Sl.hasOwnProperty;function ba(e,t,r){var n=e[t];(!(Pl.call(e,t)&&Xn(n,r))||r===void 0&&!(t in e))&&wl(e,t,r)}var El=9007199254740991;function Qn(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=El}function Al(e){return e!=null&&Qn(e.length)&&!va(e)}var Tl=Object.prototype;function wa(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Tl;return e===r}function Ol(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Rl="[object Arguments]";function _o(e){return Qe(e)&&St(e)==Rl}var Sa=Object.prototype,Cl=Sa.hasOwnProperty,xl=Sa.propertyIsEnumerable,Pa=_o((function(){return arguments})())?_o:function(e){return Qe(e)&&Cl.call(e,"callee")&&!xl.call(e,"callee")};function _l(){return!1}var Ea=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Fo=Ea&&typeof module=="object"&&module&&!module.nodeType&&module,Fl=Fo&&Fo.exports===Ea,$o=Fl?Me.Buffer:void 0,$l=$o?$o.isBuffer:void 0,nr=$l||_l,Il="[object Arguments]",ql="[object Array]",Nl="[object Boolean]",Dl="[object Date]",Ml="[object Error]",Ll="[object Function]",Bl="[object Map]",Ul="[object Number]",jl="[object Object]",kl="[object RegExp]",Hl="[object Set]",Wl="[object String]",zl="[object WeakMap]",Gl="[object ArrayBuffer]",Kl="[object DataView]",Vl="[object Float32Array]",Jl="[object Float64Array]",Xl="[object Int8Array]",Ql="[object Int16Array]",Yl="[object Int32Array]",Zl="[object Uint8Array]",ec="[object Uint8ClampedArray]",tc="[object Uint16Array]",rc="[object Uint32Array]",G={};G[Vl]=G[Jl]=G[Xl]=G[Ql]=G[Yl]=G[Zl]=G[ec]=G[tc]=G[rc]=!0;G[Il]=G[ql]=G[Gl]=G[Nl]=G[Kl]=G[Dl]=G[Ml]=G[Ll]=G[Bl]=G[Ul]=G[jl]=G[kl]=G[Hl]=G[Wl]=G[zl]=!1;function nc(e){return Qe(e)&&Qn(e.length)&&!!G[St(e)]}function Yn(e){return function(t){return e(t)}}var Aa=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ft=Aa&&typeof module=="object"&&module&&!module.nodeType&&module,oc=Ft&&Ft.exports===Aa,xr=oc&&ya.process,vt=(function(){try{var e=Ft&&Ft.require&&Ft.require("util").types;return e||xr&&xr.binding&&xr.binding("util")}catch{}})(),Io=vt&&vt.isTypedArray,Ta=Io?Yn(Io):nc,ic=Object.prototype,ac=ic.hasOwnProperty;function sc(e,t){var r=ke(e),n=!r&&Pa(e),o=!r&&!n&&nr(e),i=!r&&!n&&!o&&Ta(e),a=r||n||o||i,s=a?Ol(e.length,String):[],u=s.length;for(var f in e)ac.call(e,f)&&!(a&&(f=="length"||o&&(f=="offset"||f=="parent")||i&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||Jn(f,u)))&&s.push(f);return s}function Oa(e,t){return function(r){return e(t(r))}}var lc=Oa(Object.keys,Object),cc=Object.prototype,uc=cc.hasOwnProperty;function fc(e){if(!wa(e))return lc(e);var t=[];for(var r in Object(e))uc.call(e,r)&&r!="constructor"&&t.push(r);return t}function dc(e){return Al(e)?sc(e):fc(e)}var pc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,hc=/^\w*$/;function yc(e,t){if(ke(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Vn(e)?!0:hc.test(e)||!pc.test(e)||t!=null&&e in Object(t)}var It=lt(Object,"create");function mc(){this.__data__=It?It(null):{},this.size=0}function gc(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var vc="__lodash_hash_undefined__",bc=Object.prototype,wc=bc.hasOwnProperty;function Sc(e){var t=this.__data__;if(It){var r=t[e];return r===vc?void 0:r}return wc.call(t,e)?t[e]:void 0}var Pc=Object.prototype,Ec=Pc.hasOwnProperty;function Ac(e){var t=this.__data__;return It?t[e]!==void 0:Ec.call(t,e)}var Tc="__lodash_hash_undefined__";function Oc(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=It&&t===void 0?Tc:t,this}function ot(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ot.prototype.clear=mc;ot.prototype.delete=gc;ot.prototype.get=Sc;ot.prototype.has=Ac;ot.prototype.set=Oc;function Rc(){this.__data__=[],this.size=0}function cr(e,t){for(var r=e.length;r--;)if(Xn(e[r][0],t))return r;return-1}var Cc=Array.prototype,xc=Cc.splice;function _c(e){var t=this.__data__,r=cr(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():xc.call(t,r,1),--this.size,!0}function Fc(e){var t=this.__data__,r=cr(t,e);return r<0?void 0:t[r][1]}function $c(e){return cr(this.__data__,e)>-1}function Ic(e,t){var r=this.__data__,n=cr(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function He(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}He.prototype.clear=Rc;He.prototype.delete=_c;He.prototype.get=Fc;He.prototype.has=$c;He.prototype.set=Ic;var qt=lt(Me,"Map");function qc(){this.size=0,this.__data__={hash:new ot,map:new(qt||He),string:new ot}}function Nc(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ur(e,t){var r=e.__data__;return Nc(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Dc(e){var t=ur(this,e).delete(e);return this.size-=t?1:0,t}function Mc(e){return ur(this,e).get(e)}function Lc(e){return ur(this,e).has(e)}function Bc(e,t){var r=ur(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function We(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}We.prototype.clear=qc;We.prototype.delete=Dc;We.prototype.get=Mc;We.prototype.has=Lc;We.prototype.set=Bc;var Uc="Expected a function";function Zn(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Uc);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(Zn.Cache||We),r}Zn.Cache=We;var jc=500;function kc(e){var t=Zn(e,function(n){return r.size===jc&&r.clear(),n}),r=t.cache;return t}var Hc=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Wc=/\\(\\)?/g,zc=kc(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Hc,function(r,n,o,i){t.push(o?i.replace(Wc,"$1"):n||r)}),t});function Ra(e){return e==null?"":ga(e)}function eo(e,t){return ke(e)?e:yc(e,t)?[e]:zc(Ra(e))}function to(e){if(typeof e=="string"||Vn(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Gc(e,t){t=eo(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[to(t[r++])];return r&&r==n?e:void 0}function Ue(e,t,r){var n=e==null?void 0:Gc(e,t);return n===void 0?r:n}function Kc(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}var Vc=Oa(Object.getPrototypeOf,Object);function Jc(e){return function(t){return e?.[t]}}function Xc(){this.__data__=new He,this.size=0}function Qc(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Yc(e){return this.__data__.get(e)}function Zc(e){return this.__data__.has(e)}var eu=200;function tu(e,t){var r=this.__data__;if(r instanceof He){var n=r.__data__;if(!qt||n.length<eu-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new We(n)}return r.set(e,t),this.size=r.size,this}function je(e){var t=this.__data__=new He(e);this.size=t.size}je.prototype.clear=Xc;je.prototype.delete=Qc;je.prototype.get=Yc;je.prototype.has=Zc;je.prototype.set=tu;var Ca=typeof exports=="object"&&exports&&!exports.nodeType&&exports,qo=Ca&&typeof module=="object"&&module&&!module.nodeType&&module,ru=qo&&qo.exports===Ca,No=ru?Me.Buffer:void 0;No&&No.allocUnsafe;function nu(e,t){return e.slice()}function ou(e,t){for(var r=-1,n=e==null?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i}function iu(){return[]}var au=Object.prototype,su=au.propertyIsEnumerable,Do=Object.getOwnPropertySymbols,lu=Do?function(e){return e==null?[]:(e=Object(e),ou(Do(e),function(t){return su.call(e,t)}))}:iu;function cu(e,t,r){var n=t(e);return ke(e)?n:Kc(n,r(e))}function qn(e){return cu(e,dc,lu)}var Nn=lt(Me,"DataView"),Dn=lt(Me,"Promise"),Mn=lt(Me,"Set"),Mo="[object Map]",uu="[object Object]",Lo="[object Promise]",Bo="[object Set]",Uo="[object WeakMap]",jo="[object DataView]",fu=st(Nn),du=st(qt),pu=st(Dn),hu=st(Mn),yu=st(In),xe=St;(Nn&&xe(new Nn(new ArrayBuffer(1)))!=jo||qt&&xe(new qt)!=Mo||Dn&&xe(Dn.resolve())!=Lo||Mn&&xe(new Mn)!=Bo||In&&xe(new In)!=Uo)&&(xe=function(e){var t=St(e),r=t==uu?e.constructor:void 0,n=r?st(r):"";if(n)switch(n){case fu:return jo;case du:return Mo;case pu:return Lo;case hu:return Bo;case yu:return Uo}return t});var mu=Object.prototype,gu=mu.hasOwnProperty;function vu(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&gu.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var or=Me.Uint8Array;function ro(e){var t=new e.constructor(e.byteLength);return new or(t).set(new or(e)),t}function bu(e,t){var r=ro(e.buffer);return new e.constructor(r,e.byteOffset,e.byteLength)}var wu=/\w*$/;function Su(e){var t=new e.constructor(e.source,wu.exec(e));return t.lastIndex=e.lastIndex,t}var ko=De?De.prototype:void 0,Ho=ko?ko.valueOf:void 0;function Pu(e){return Ho?Object(Ho.call(e)):{}}function Eu(e,t){var r=ro(e.buffer);return new e.constructor(r,e.byteOffset,e.length)}var Au="[object Boolean]",Tu="[object Date]",Ou="[object Map]",Ru="[object Number]",Cu="[object RegExp]",xu="[object Set]",_u="[object String]",Fu="[object Symbol]",$u="[object ArrayBuffer]",Iu="[object DataView]",qu="[object Float32Array]",Nu="[object Float64Array]",Du="[object Int8Array]",Mu="[object Int16Array]",Lu="[object Int32Array]",Bu="[object Uint8Array]",Uu="[object Uint8ClampedArray]",ju="[object Uint16Array]",ku="[object Uint32Array]";function Hu(e,t,r){var n=e.constructor;switch(t){case $u:return ro(e);case Au:case Tu:return new n(+e);case Iu:return bu(e);case qu:case Nu:case Du:case Mu:case Lu:case Bu:case Uu:case ju:case ku:return Eu(e);case Ou:return new n;case Ru:case _u:return new n(e);case Cu:return Su(e);case xu:return new n;case Fu:return Pu(e)}}function Wu(e){return typeof e.constructor=="function"&&!wa(e)?ml(Vc(e)):{}}var zu="[object Map]";function Gu(e){return Qe(e)&&xe(e)==zu}var Wo=vt&&vt.isMap,Ku=Wo?Yn(Wo):Gu,Vu="[object Set]";function Ju(e){return Qe(e)&&xe(e)==Vu}var zo=vt&&vt.isSet,Xu=zo?Yn(zo):Ju,xa="[object Arguments]",Qu="[object Array]",Yu="[object Boolean]",Zu="[object Date]",ef="[object Error]",_a="[object Function]",tf="[object GeneratorFunction]",rf="[object Map]",nf="[object Number]",Fa="[object Object]",of="[object RegExp]",af="[object Set]",sf="[object String]",lf="[object Symbol]",cf="[object WeakMap]",uf="[object ArrayBuffer]",ff="[object DataView]",df="[object Float32Array]",pf="[object Float64Array]",hf="[object Int8Array]",yf="[object Int16Array]",mf="[object Int32Array]",gf="[object Uint8Array]",vf="[object Uint8ClampedArray]",bf="[object Uint16Array]",wf="[object Uint32Array]",H={};H[xa]=H[Qu]=H[uf]=H[ff]=H[Yu]=H[Zu]=H[df]=H[pf]=H[hf]=H[yf]=H[mf]=H[rf]=H[nf]=H[Fa]=H[of]=H[af]=H[sf]=H[lf]=H[gf]=H[vf]=H[bf]=H[wf]=!0;H[ef]=H[_a]=H[cf]=!1;function Jt(e,t,r,n,o,i){var a;if(a!==void 0)return a;if(!gt(e))return e;var s=ke(e);if(s)a=vu(e);else{var u=xe(e),f=u==_a||u==tf;if(nr(e))return nu(e);if(u==Fa||u==xa||f&&!o)a=f?{}:Wu(e);else{if(!H[u])return o?e:{};a=Hu(e,u)}}i||(i=new je);var c=i.get(e);if(c)return c;i.set(e,a),Xu(e)?e.forEach(function(g){a.add(Jt(g,t,r,g,e,i))}):Ku(e)&&e.forEach(function(g,d){a.set(d,Jt(g,t,r,d,e,i))});var l=qn,m=s?void 0:l(e);return gl(m||e,function(g,d){m&&(d=g,g=e[d]),ba(a,d,Jt(g,t,r,d,e,i))}),a}var Sf=1,Pf=4;function ce(e){return Jt(e,Sf|Pf)}var Ef="__lodash_hash_undefined__";function Af(e){return this.__data__.set(e,Ef),this}function Tf(e){return this.__data__.has(e)}function ir(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new We;++t<r;)this.add(e[t])}ir.prototype.add=ir.prototype.push=Af;ir.prototype.has=Tf;function Of(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function Rf(e,t){return e.has(t)}var Cf=1,xf=2;function $a(e,t,r,n,o,i){var a=r&Cf,s=e.length,u=t.length;if(s!=u&&!(a&&u>s))return!1;var f=i.get(e),c=i.get(t);if(f&&c)return f==t&&c==e;var l=-1,m=!0,g=r&xf?new ir:void 0;for(i.set(e,t),i.set(t,e);++l<s;){var d=e[l],v=t[l];if(n)var p=a?n(v,d,l,t,e,i):n(d,v,l,e,t,i);if(p!==void 0){if(p)continue;m=!1;break}if(g){if(!Of(t,function(y,h){if(!Rf(g,h)&&(d===y||o(d,y,r,n,i)))return g.push(h)})){m=!1;break}}else if(!(d===v||o(d,v,r,n,i))){m=!1;break}}return i.delete(e),i.delete(t),m}function _f(e){var t=-1,r=Array(e.size);return e.forEach(function(n,o){r[++t]=[o,n]}),r}function Ff(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var $f=1,If=2,qf="[object Boolean]",Nf="[object Date]",Df="[object Error]",Mf="[object Map]",Lf="[object Number]",Bf="[object RegExp]",Uf="[object Set]",jf="[object String]",kf="[object Symbol]",Hf="[object ArrayBuffer]",Wf="[object DataView]",Go=De?De.prototype:void 0,_r=Go?Go.valueOf:void 0;function zf(e,t,r,n,o,i,a){switch(r){case Wf:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Hf:return!(e.byteLength!=t.byteLength||!i(new or(e),new or(t)));case qf:case Nf:case Lf:return Xn(+e,+t);case Df:return e.name==t.name&&e.message==t.message;case Bf:case jf:return e==t+"";case Mf:var s=_f;case Uf:var u=n&$f;if(s||(s=Ff),e.size!=t.size&&!u)return!1;var f=a.get(e);if(f)return f==t;n|=If,a.set(e,t);var c=$a(s(e),s(t),n,o,i,a);return a.delete(e),c;case kf:if(_r)return _r.call(e)==_r.call(t)}return!1}var Gf=1,Kf=Object.prototype,Vf=Kf.hasOwnProperty;function Jf(e,t,r,n,o,i){var a=r&Gf,s=qn(e),u=s.length,f=qn(t),c=f.length;if(u!=c&&!a)return!1;for(var l=u;l--;){var m=s[l];if(!(a?m in t:Vf.call(t,m)))return!1}var g=i.get(e),d=i.get(t);if(g&&d)return g==t&&d==e;var v=!0;i.set(e,t),i.set(t,e);for(var p=a;++l<u;){m=s[l];var y=e[m],h=t[m];if(n)var P=a?n(h,y,m,t,e,i):n(y,h,m,e,t,i);if(!(P===void 0?y===h||o(y,h,r,n,i):P)){v=!1;break}p||(p=m=="constructor")}if(v&&!p){var E=e.constructor,O=t.constructor;E!=O&&"constructor"in e&&"constructor"in t&&!(typeof E=="function"&&E instanceof E&&typeof O=="function"&&O instanceof O)&&(v=!1)}return i.delete(e),i.delete(t),v}var Xf=1,Ko="[object Arguments]",Vo="[object Array]",Wt="[object Object]",Qf=Object.prototype,Jo=Qf.hasOwnProperty;function Yf(e,t,r,n,o,i){var a=ke(e),s=ke(t),u=a?Vo:xe(e),f=s?Vo:xe(t);u=u==Ko?Wt:u,f=f==Ko?Wt:f;var c=u==Wt,l=f==Wt,m=u==f;if(m&&nr(e)){if(!nr(t))return!1;a=!0,c=!1}if(m&&!c)return i||(i=new je),a||Ta(e)?$a(e,t,r,n,o,i):zf(e,t,u,r,n,o,i);if(!(r&Xf)){var g=c&&Jo.call(e,"__wrapped__"),d=l&&Jo.call(t,"__wrapped__");if(g||d){var v=g?e.value():e,p=d?t.value():t;return i||(i=new je),o(v,p,r,n,i)}}return m?(i||(i=new je),Jf(e,t,r,n,o,i)):!1}function Ia(e,t,r,n,o){return e===t?!0:e==null||t==null||!Qe(e)&&!Qe(t)?e!==e&&t!==t:Yf(e,t,r,n,Ia,o)}function Zf(e,t,r){t=eo(t,e);for(var n=-1,o=t.length,i=!1;++n<o;){var a=to(t[n]);if(!(i=e!=null&&r(e,a)))break;e=e[a]}return i||++n!=o?i:(o=e==null?0:e.length,!!o&&Qn(o)&&Jn(a,o)&&(ke(e)||Pa(e)))}var ed={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},td=Jc(ed),qa=/[&<>"']/g,rd=RegExp(qa.source);function nd(e){return e=Ra(e),e&&rd.test(e)?e.replace(qa,td):e}var od=Object.prototype,id=od.hasOwnProperty;function ad(e,t){return e!=null&&id.call(e,t)}function Na(e,t){return e!=null&&Zf(e,t,ad)}function Nt(e,t){return Ia(e,t)}function sd(e,t,r,n){if(!gt(e))return e;t=eo(t,e);for(var o=-1,i=t.length,a=i-1,s=e;s!=null&&++o<i;){var u=to(t[o]),f=r;if(u==="__proto__"||u==="constructor"||u==="prototype")return e;if(o!=a){var c=s[u];f=void 0,f===void 0&&(f=gt(c)?c:Jn(t[o+1])?[]:{})}ba(s,u,f),s=s[u]}return e}function _e(e,t,r){return e==null?e:sd(e,t,r)}var Xo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ld(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){var o=!1;try{o=this instanceof n}catch{}return o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var Fr,Qo;function Pt(){return Qo||(Qo=1,Fr=TypeError),Fr}const cd={},ud=Object.freeze(Object.defineProperty({__proto__:null,default:cd},Symbol.toStringTag,{value:"Module"})),fd=ld(ud);var $r,Yo;function fr(){if(Yo)return $r;Yo=1;var e=typeof Map=="function"&&Map.prototype,t=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,r=e&&t&&typeof t.get=="function"?t.get:null,n=e&&Map.prototype.forEach,o=typeof Set=="function"&&Set.prototype,i=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,a=o&&i&&typeof i.get=="function"?i.get:null,s=o&&Set.prototype.forEach,u=typeof WeakMap=="function"&&WeakMap.prototype,f=u?WeakMap.prototype.has:null,c=typeof WeakSet=="function"&&WeakSet.prototype,l=c?WeakSet.prototype.has:null,m=typeof WeakRef=="function"&&WeakRef.prototype,g=m?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,v=Object.prototype.toString,p=Function.prototype.toString,y=String.prototype.match,h=String.prototype.slice,P=String.prototype.replace,E=String.prototype.toUpperCase,O=String.prototype.toLowerCase,A=RegExp.prototype.test,T=Array.prototype.concat,C=Array.prototype.join,I=Array.prototype.slice,F=Math.floor,M=typeof BigInt=="function"?BigInt.prototype.valueOf:null,x=Object.getOwnPropertySymbols,W=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,U=typeof Symbol=="function"&&typeof Symbol.iterator=="object",te=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===U||!0)?Symbol.toStringTag:null,X=Object.prototype.propertyIsEnumerable,ve=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(b){return b.__proto__}:null);function $(b,S){if(b===1/0||b===-1/0||b!==b||b&&b>-1e3&&b<1e3||A.call(/e/,S))return S;var B=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof b=="number"){var k=b<0?-F(-b):F(b);if(k!==b){var z=String(k),N=h.call(S,z.length+1);return P.call(z,B,"$&_")+"."+P.call(P.call(N,/([0-9]{3})/g,"$&_"),/_$/,"")}}return P.call(S,B,"$&_")}var re=fd,Oe=re.custom,ne=oe(Oe)?Oe:null,le={__proto__:null,double:'"',single:"'"},be={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};$r=function b(S,B,k,z){var N=B||{};if(fe(N,"quoteStyle")&&!fe(le,N.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(fe(N,"maxStringLength")&&(typeof N.maxStringLength=="number"?N.maxStringLength<0&&N.maxStringLength!==1/0:N.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Ve=fe(N,"customInspect")?N.customInspect:!0;if(typeof Ve!="boolean"&&Ve!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(fe(N,"indent")&&N.indent!==null&&N.indent!==" "&&!(parseInt(N.indent,10)===N.indent&&N.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(fe(N,"numericSeparator")&&typeof N.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Ze=N.numericSeparator;if(typeof S>"u")return"undefined";if(S===null)return"null";if(typeof S=="boolean")return S?"true":"false";if(typeof S=="string")return ho(S,N);if(typeof S=="number"){if(S===0)return 1/0/S>0?"0":"-0";var ye=String(S);return Ze?$(S,ye):ye}if(typeof S=="bigint"){var Je=String(S)+"n";return Ze?$(S,Je):Je}var Sr=typeof N.depth>"u"?5:N.depth;if(typeof k>"u"&&(k=0),k>=Sr&&Sr>0&&typeof S=="object")return ze(S)?"[Array]":"[Object]";var pt=Us(N,k);if(typeof z>"u")z=[];else if(Ke(z,S)>=0)return"[Circular]";function Ce(ht,Ht,ks){if(Ht&&(z=I.call(z),z.push(Ht)),ks){var Eo={depth:N.depth};return fe(N,"quoteStyle")&&(Eo.quoteStyle=N.quoteStyle),b(ht,Eo,k+1,z)}return b(ht,N,k+1,z)}if(typeof S=="function"&&!ee(S)){var mo=ct(S),go=jt(S,Ce);return"[Function"+(mo?": "+mo:" (anonymous)")+"]"+(go.length>0?" { "+C.call(go,", ")+" }":"")}if(oe(S)){var vo=U?P.call(String(S),/^(Symbol\(.*\))_[^)]*$/,"$1"):W.call(S);return typeof S=="object"&&!U?Tt(vo):vo}if(Ms(S)){for(var Ot="<"+O.call(String(S.nodeName)),Pr=S.attributes||[],kt=0;kt<Pr.length;kt++)Ot+=" "+Pr[kt].name+"="+he(we(Pr[kt].value),"double",N);return Ot+=">",S.childNodes&&S.childNodes.length&&(Ot+="..."),Ot+="</"+O.call(String(S.nodeName))+">",Ot}if(ze(S)){if(S.length===0)return"[]";var Er=jt(S,Ce);return pt&&!Bs(Er)?"["+wr(Er,pt)+"]":"[ "+C.call(Er,", ")+" ]"}if(L(S)){var Ar=jt(S,Ce);return!("cause"in Error.prototype)&&"cause"in S&&!X.call(S,"cause")?"{ ["+String(S)+"] "+C.call(T.call("[cause]: "+Ce(S.cause),Ar),", ")+" }":Ar.length===0?"["+String(S)+"]":"{ ["+String(S)+"] "+C.call(Ar,", ")+" }"}if(typeof S=="object"&&Ve){if(ne&&typeof S[ne]=="function"&&re)return re(S,{depth:Sr-k});if(Ve!=="symbol"&&typeof S.inspect=="function")return S.inspect()}if(Re(S)){var bo=[];return n&&n.call(S,function(ht,Ht){bo.push(Ce(Ht,S,!0)+" => "+Ce(ht,S))}),yo("Map",r.call(S),bo,pt)}if(dt(S)){var wo=[];return s&&s.call(S,function(ht){wo.push(Ce(ht,S))}),yo("Set",a.call(S),wo,pt)}if(ut(S))return br("WeakMap");if(Ds(S))return br("WeakSet");if(ft(S))return br("WeakRef");if(j(S))return Tt(Ce(Number(S)));if(Pe(S))return Tt(Ce(M.call(S)));if(Q(S))return Tt(d.call(S));if(J(S))return Tt(Ce(String(S)));if(typeof window<"u"&&S===window)return"{ [object Window] }";if(typeof globalThis<"u"&&S===globalThis||typeof Xo<"u"&&S===Xo)return"{ [object globalThis] }";if(!Ge(S)&&!ee(S)){var Tr=jt(S,Ce),So=ve?ve(S)===Object.prototype:S instanceof Object||S.constructor===Object,Or=S instanceof Object?"":"null prototype",Po=!So&&te&&Object(S)===S&&te in S?h.call(Ee(S),8,-1):Or?"Object":"",js=So||typeof S.constructor!="function"?"":S.constructor.name?S.constructor.name+" ":"",Rr=js+(Po||Or?"["+C.call(T.call([],Po||[],Or||[]),": ")+"] ":"");return Tr.length===0?Rr+"{}":pt?Rr+"{"+wr(Tr,pt)+"}":Rr+"{ "+C.call(Tr,", ")+" }"}return String(S)};function he(b,S,B){var k=B.quoteStyle||S,z=le[k];return z+b+z}function we(b){return P.call(String(b),/"/g,"&quot;")}function Se(b){return!te||!(typeof b=="object"&&(te in b||typeof b[te]<"u"))}function ze(b){return Ee(b)==="[object Array]"&&Se(b)}function Ge(b){return Ee(b)==="[object Date]"&&Se(b)}function ee(b){return Ee(b)==="[object RegExp]"&&Se(b)}function L(b){return Ee(b)==="[object Error]"&&Se(b)}function J(b){return Ee(b)==="[object String]"&&Se(b)}function j(b){return Ee(b)==="[object Number]"&&Se(b)}function Q(b){return Ee(b)==="[object Boolean]"&&Se(b)}function oe(b){if(U)return b&&typeof b=="object"&&b instanceof Symbol;if(typeof b=="symbol")return!0;if(!b||typeof b!="object"||!W)return!1;try{return W.call(b),!0}catch{}return!1}function Pe(b){if(!b||typeof b!="object"||!M)return!1;try{return M.call(b),!0}catch{}return!1}var ie=Object.prototype.hasOwnProperty||function(b){return b in this};function fe(b,S){return ie.call(b,S)}function Ee(b){return v.call(b)}function ct(b){if(b.name)return b.name;var S=y.call(p.call(b),/^function\s*([\w$]+)/);return S?S[1]:null}function Ke(b,S){if(b.indexOf)return b.indexOf(S);for(var B=0,k=b.length;B<k;B++)if(b[B]===S)return B;return-1}function Re(b){if(!r||!b||typeof b!="object")return!1;try{r.call(b);try{a.call(b)}catch{return!0}return b instanceof Map}catch{}return!1}function ut(b){if(!f||!b||typeof b!="object")return!1;try{f.call(b,f);try{l.call(b,l)}catch{return!0}return b instanceof WeakMap}catch{}return!1}function ft(b){if(!g||!b||typeof b!="object")return!1;try{return g.call(b),!0}catch{}return!1}function dt(b){if(!a||!b||typeof b!="object")return!1;try{a.call(b);try{r.call(b)}catch{return!0}return b instanceof Set}catch{}return!1}function Ds(b){if(!l||!b||typeof b!="object")return!1;try{l.call(b,l);try{f.call(b,f)}catch{return!0}return b instanceof WeakSet}catch{}return!1}function Ms(b){return!b||typeof b!="object"?!1:typeof HTMLElement<"u"&&b instanceof HTMLElement?!0:typeof b.nodeName=="string"&&typeof b.getAttribute=="function"}function ho(b,S){if(b.length>S.maxStringLength){var B=b.length-S.maxStringLength,k="... "+B+" more character"+(B>1?"s":"");return ho(h.call(b,0,S.maxStringLength),S)+k}var z=be[S.quoteStyle||"single"];z.lastIndex=0;var N=P.call(P.call(b,z,"\\$1"),/[\x00-\x1f]/g,Ls);return he(N,"single",S)}function Ls(b){var S=b.charCodeAt(0),B={8:"b",9:"t",10:"n",12:"f",13:"r"}[S];return B?"\\"+B:"\\x"+(S<16?"0":"")+E.call(S.toString(16))}function Tt(b){return"Object("+b+")"}function br(b){return b+" { ? }"}function yo(b,S,B,k){var z=k?wr(B,k):C.call(B,", ");return b+" ("+S+") {"+z+"}"}function Bs(b){for(var S=0;S<b.length;S++)if(Ke(b[S],`
2
- `)>=0)return!1;return!0}function Us(b,S){var B;if(b.indent===" ")B=" ";else if(typeof b.indent=="number"&&b.indent>0)B=C.call(Array(b.indent+1)," ");else return null;return{base:B,prev:C.call(Array(S+1),B)}}function wr(b,S){if(b.length===0)return"";var B=`
3
- `+S.prev+S.base;return B+C.call(b,","+B)+`
4
- `+S.prev}function jt(b,S){var B=ze(b),k=[];if(B){k.length=b.length;for(var z=0;z<b.length;z++)k[z]=fe(b,z)?S(b[z],b):""}var N=typeof x=="function"?x(b):[],Ve;if(U){Ve={};for(var Ze=0;Ze<N.length;Ze++)Ve["$"+N[Ze]]=N[Ze]}for(var ye in b)fe(b,ye)&&(B&&String(Number(ye))===ye&&ye<b.length||U&&Ve["$"+ye]instanceof Symbol||(A.call(/[^\w$]/,ye)?k.push(S(ye,b)+": "+S(b[ye],b)):k.push(ye+": "+S(b[ye],b))));if(typeof x=="function")for(var Je=0;Je<N.length;Je++)X.call(b,N[Je])&&k.push("["+S(N[Je])+"]: "+S(b[N[Je]],b));return k}return $r}var Ir,Zo;function dd(){if(Zo)return Ir;Zo=1;var e=fr(),t=Pt(),r=function(s,u,f){for(var c=s,l;(l=c.next)!=null;c=l)if(l.key===u)return c.next=l.next,f||(l.next=s.next,s.next=l),l},n=function(s,u){if(s){var f=r(s,u);return f&&f.value}},o=function(s,u,f){var c=r(s,u);c?c.value=f:s.next={key:u,next:s.next,value:f}},i=function(s,u){return s?!!r(s,u):!1},a=function(s,u){if(s)return r(s,u,!0)};return Ir=function(){var u,f={assert:function(c){if(!f.has(c))throw new t("Side channel does not contain "+e(c))},delete:function(c){var l=u&&u.next,m=a(u,c);return m&&l&&l===m&&(u=void 0),!!m},get:function(c){return n(u,c)},has:function(c){return i(u,c)},set:function(c,l){u||(u={next:void 0}),o(u,c,l)}};return f},Ir}var qr,ei;function Da(){return ei||(ei=1,qr=Object),qr}var Nr,ti;function pd(){return ti||(ti=1,Nr=Error),Nr}var Dr,ri;function hd(){return ri||(ri=1,Dr=EvalError),Dr}var Mr,ni;function yd(){return ni||(ni=1,Mr=RangeError),Mr}var Lr,oi;function md(){return oi||(oi=1,Lr=ReferenceError),Lr}var Br,ii;function gd(){return ii||(ii=1,Br=SyntaxError),Br}var Ur,ai;function vd(){return ai||(ai=1,Ur=URIError),Ur}var jr,si;function bd(){return si||(si=1,jr=Math.abs),jr}var kr,li;function wd(){return li||(li=1,kr=Math.floor),kr}var Hr,ci;function Sd(){return ci||(ci=1,Hr=Math.max),Hr}var Wr,ui;function Pd(){return ui||(ui=1,Wr=Math.min),Wr}var zr,fi;function Ed(){return fi||(fi=1,zr=Math.pow),zr}var Gr,di;function Ad(){return di||(di=1,Gr=Math.round),Gr}var Kr,pi;function Td(){return pi||(pi=1,Kr=Number.isNaN||function(t){return t!==t}),Kr}var Vr,hi;function Od(){if(hi)return Vr;hi=1;var e=Td();return Vr=function(r){return e(r)||r===0?r:r<0?-1:1},Vr}var Jr,yi;function Rd(){return yi||(yi=1,Jr=Object.getOwnPropertyDescriptor),Jr}var Xr,mi;function Ma(){if(mi)return Xr;mi=1;var e=Rd();if(e)try{e([],"length")}catch{e=null}return Xr=e,Xr}var Qr,gi;function Cd(){if(gi)return Qr;gi=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return Qr=e,Qr}var Yr,vi;function xd(){return vi||(vi=1,Yr=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;t[r]=o;for(var i in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(t,r);if(s.value!==o||s.enumerable!==!0)return!1}return!0}),Yr}var Zr,bi;function _d(){if(bi)return Zr;bi=1;var e=typeof Symbol<"u"&&Symbol,t=xd();return Zr=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},Zr}var en,wi;function La(){return wi||(wi=1,en=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),en}var tn,Si;function Ba(){if(Si)return tn;Si=1;var e=Da();return tn=e.getPrototypeOf||null,tn}var rn,Pi;function Fd(){if(Pi)return rn;Pi=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,n="[object Function]",o=function(u,f){for(var c=[],l=0;l<u.length;l+=1)c[l]=u[l];for(var m=0;m<f.length;m+=1)c[m+u.length]=f[m];return c},i=function(u,f){for(var c=[],l=f,m=0;l<u.length;l+=1,m+=1)c[m]=u[l];return c},a=function(s,u){for(var f="",c=0;c<s.length;c+=1)f+=s[c],c+1<s.length&&(f+=u);return f};return rn=function(u){var f=this;if(typeof f!="function"||t.apply(f)!==n)throw new TypeError(e+f);for(var c=i(arguments,1),l,m=function(){if(this instanceof l){var y=f.apply(this,o(c,arguments));return Object(y)===y?y:this}return f.apply(u,o(c,arguments))},g=r(0,f.length-c.length),d=[],v=0;v<g;v++)d[v]="$"+v;if(l=Function("binder","return function ("+a(d,",")+"){ return binder.apply(this,arguments); }")(m),f.prototype){var p=function(){};p.prototype=f.prototype,l.prototype=new p,p.prototype=null}return l},rn}var nn,Ei;function dr(){if(Ei)return nn;Ei=1;var e=Fd();return nn=Function.prototype.bind||e,nn}var on,Ai;function no(){return Ai||(Ai=1,on=Function.prototype.call),on}var an,Ti;function Ua(){return Ti||(Ti=1,an=Function.prototype.apply),an}var sn,Oi;function $d(){return Oi||(Oi=1,sn=typeof Reflect<"u"&&Reflect&&Reflect.apply),sn}var ln,Ri;function Id(){if(Ri)return ln;Ri=1;var e=dr(),t=Ua(),r=no(),n=$d();return ln=n||e.call(r,t),ln}var cn,Ci;function ja(){if(Ci)return cn;Ci=1;var e=dr(),t=Pt(),r=no(),n=Id();return cn=function(i){if(i.length<1||typeof i[0]!="function")throw new t("a function is required");return n(e,r,i)},cn}var un,xi;function qd(){if(xi)return un;xi=1;var e=ja(),t=Ma(),r;try{r=[].__proto__===Array.prototype}catch(a){if(!a||typeof a!="object"||!("code"in a)||a.code!=="ERR_PROTO_ACCESS")throw a}var n=!!r&&t&&t(Object.prototype,"__proto__"),o=Object,i=o.getPrototypeOf;return un=n&&typeof n.get=="function"?e([n.get]):typeof i=="function"?function(s){return i(s==null?s:o(s))}:!1,un}var fn,_i;function Nd(){if(_i)return fn;_i=1;var e=La(),t=Ba(),r=qd();return fn=e?function(o){return e(o)}:t?function(o){if(!o||typeof o!="object"&&typeof o!="function")throw new TypeError("getProto: not an object");return t(o)}:r?function(o){return r(o)}:null,fn}var dn,Fi;function Dd(){if(Fi)return dn;Fi=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=dr();return dn=r.call(e,t),dn}var pn,$i;function oo(){if($i)return pn;$i=1;var e,t=Da(),r=pd(),n=hd(),o=yd(),i=md(),a=gd(),s=Pt(),u=vd(),f=bd(),c=wd(),l=Sd(),m=Pd(),g=Ed(),d=Ad(),v=Od(),p=Function,y=function(ee){try{return p('"use strict"; return ('+ee+").constructor;")()}catch{}},h=Ma(),P=Cd(),E=function(){throw new s},O=h?(function(){try{return arguments.callee,E}catch{try{return h(arguments,"callee").get}catch{return E}}})():E,A=_d()(),T=Nd(),C=Ba(),I=La(),F=Ua(),M=no(),x={},W=typeof Uint8Array>"u"||!T?e:T(Uint8Array),U={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":A&&T?T([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":x,"%AsyncGenerator%":x,"%AsyncGeneratorFunction%":x,"%AsyncIteratorPrototype%":x,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":n,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":p,"%GeneratorFunction%":x,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":A&&T?T(T([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!A||!T?e:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":h,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":o,"%ReferenceError%":i,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!A||!T?e:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":A&&T?T(""[Symbol.iterator]()):e,"%Symbol%":A?Symbol:e,"%SyntaxError%":a,"%ThrowTypeError%":O,"%TypedArray%":W,"%TypeError%":s,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":M,"%Function.prototype.apply%":F,"%Object.defineProperty%":P,"%Object.getPrototypeOf%":C,"%Math.abs%":f,"%Math.floor%":c,"%Math.max%":l,"%Math.min%":m,"%Math.pow%":g,"%Math.round%":d,"%Math.sign%":v,"%Reflect.getPrototypeOf%":I};if(T)try{null.error}catch(ee){var te=T(T(ee));U["%Error.prototype%"]=te}var X=function ee(L){var J;if(L==="%AsyncFunction%")J=y("async function () {}");else if(L==="%GeneratorFunction%")J=y("function* () {}");else if(L==="%AsyncGeneratorFunction%")J=y("async function* () {}");else if(L==="%AsyncGenerator%"){var j=ee("%AsyncGeneratorFunction%");j&&(J=j.prototype)}else if(L==="%AsyncIteratorPrototype%"){var Q=ee("%AsyncGenerator%");Q&&T&&(J=T(Q.prototype))}return U[L]=J,J},ve={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},$=dr(),re=Dd(),Oe=$.call(M,Array.prototype.concat),ne=$.call(F,Array.prototype.splice),le=$.call(M,String.prototype.replace),be=$.call(M,String.prototype.slice),he=$.call(M,RegExp.prototype.exec),we=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Se=/\\(\\)?/g,ze=function(L){var J=be(L,0,1),j=be(L,-1);if(J==="%"&&j!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if(j==="%"&&J!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var Q=[];return le(L,we,function(oe,Pe,ie,fe){Q[Q.length]=ie?le(fe,Se,"$1"):Pe||oe}),Q},Ge=function(L,J){var j=L,Q;if(re(ve,j)&&(Q=ve[j],j="%"+Q[0]+"%"),re(U,j)){var oe=U[j];if(oe===x&&(oe=X(j)),typeof oe>"u"&&!J)throw new s("intrinsic "+L+" exists, but is not available. Please file an issue!");return{alias:Q,name:j,value:oe}}throw new a("intrinsic "+L+" does not exist!")};return pn=function(L,J){if(typeof L!="string"||L.length===0)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof J!="boolean")throw new s('"allowMissing" argument must be a boolean');if(he(/^%?[^%]*%?$/,L)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var j=ze(L),Q=j.length>0?j[0]:"",oe=Ge("%"+Q+"%",J),Pe=oe.name,ie=oe.value,fe=!1,Ee=oe.alias;Ee&&(Q=Ee[0],ne(j,Oe([0,1],Ee)));for(var ct=1,Ke=!0;ct<j.length;ct+=1){var Re=j[ct],ut=be(Re,0,1),ft=be(Re,-1);if((ut==='"'||ut==="'"||ut==="`"||ft==='"'||ft==="'"||ft==="`")&&ut!==ft)throw new a("property names with quotes must have matching quotes");if((Re==="constructor"||!Ke)&&(fe=!0),Q+="."+Re,Pe="%"+Q+"%",re(U,Pe))ie=U[Pe];else if(ie!=null){if(!(Re in ie)){if(!J)throw new s("base intrinsic for "+L+" exists, but the property is not available.");return}if(h&&ct+1>=j.length){var dt=h(ie,Re);Ke=!!dt,Ke&&"get"in dt&&!("originalValue"in dt.get)?ie=dt.get:ie=ie[Re]}else Ke=re(ie,Re),ie=ie[Re];Ke&&!fe&&(U[Pe]=ie)}}return ie},pn}var hn,Ii;function ka(){if(Ii)return hn;Ii=1;var e=oo(),t=ja(),r=t([e("%String.prototype.indexOf%")]);return hn=function(o,i){var a=e(o,!!i);return typeof a=="function"&&r(o,".prototype.")>-1?t([a]):a},hn}var yn,qi;function Ha(){if(qi)return yn;qi=1;var e=oo(),t=ka(),r=fr(),n=Pt(),o=e("%Map%",!0),i=t("Map.prototype.get",!0),a=t("Map.prototype.set",!0),s=t("Map.prototype.has",!0),u=t("Map.prototype.delete",!0),f=t("Map.prototype.size",!0);return yn=!!o&&function(){var l,m={assert:function(g){if(!m.has(g))throw new n("Side channel does not contain "+r(g))},delete:function(g){if(l){var d=u(l,g);return f(l)===0&&(l=void 0),d}return!1},get:function(g){if(l)return i(l,g)},has:function(g){return l?s(l,g):!1},set:function(g,d){l||(l=new o),a(l,g,d)}};return m},yn}var mn,Ni;function Md(){if(Ni)return mn;Ni=1;var e=oo(),t=ka(),r=fr(),n=Ha(),o=Pt(),i=e("%WeakMap%",!0),a=t("WeakMap.prototype.get",!0),s=t("WeakMap.prototype.set",!0),u=t("WeakMap.prototype.has",!0),f=t("WeakMap.prototype.delete",!0);return mn=i?function(){var l,m,g={assert:function(d){if(!g.has(d))throw new o("Side channel does not contain "+r(d))},delete:function(d){if(i&&d&&(typeof d=="object"||typeof d=="function")){if(l)return f(l,d)}else if(n&&m)return m.delete(d);return!1},get:function(d){return i&&d&&(typeof d=="object"||typeof d=="function")&&l?a(l,d):m&&m.get(d)},has:function(d){return i&&d&&(typeof d=="object"||typeof d=="function")&&l?u(l,d):!!m&&m.has(d)},set:function(d,v){i&&d&&(typeof d=="object"||typeof d=="function")?(l||(l=new i),s(l,d,v)):n&&(m||(m=n()),m.set(d,v))}};return g}:n,mn}var gn,Di;function Ld(){if(Di)return gn;Di=1;var e=Pt(),t=fr(),r=dd(),n=Ha(),o=Md(),i=o||n||r;return gn=function(){var s,u={assert:function(f){if(!u.has(f))throw new e("Side channel does not contain "+t(f))},delete:function(f){return!!s&&s.delete(f)},get:function(f){return s&&s.get(f)},has:function(f){return!!s&&s.has(f)},set:function(f,c){s||(s=i()),s.set(f,c)}};return u},gn}var vn,Mi;function io(){if(Mi)return vn;Mi=1;var e=String.prototype.replace,t=/%20/g,r={RFC1738:"RFC1738",RFC3986:"RFC3986"};return vn={default:r.RFC3986,formatters:{RFC1738:function(n){return e.call(n,t,"+")},RFC3986:function(n){return String(n)}},RFC1738:r.RFC1738,RFC3986:r.RFC3986},vn}var bn,Li;function Wa(){if(Li)return bn;Li=1;var e=io(),t=Object.prototype.hasOwnProperty,r=Array.isArray,n=(function(){for(var p=[],y=0;y<256;++y)p.push("%"+((y<16?"0":"")+y.toString(16)).toUpperCase());return p})(),o=function(y){for(;y.length>1;){var h=y.pop(),P=h.obj[h.prop];if(r(P)){for(var E=[],O=0;O<P.length;++O)typeof P[O]<"u"&&E.push(P[O]);h.obj[h.prop]=E}}},i=function(y,h){for(var P=h&&h.plainObjects?{__proto__:null}:{},E=0;E<y.length;++E)typeof y[E]<"u"&&(P[E]=y[E]);return P},a=function p(y,h,P){if(!h)return y;if(typeof h!="object"&&typeof h!="function"){if(r(y))y.push(h);else if(y&&typeof y=="object")(P&&(P.plainObjects||P.allowPrototypes)||!t.call(Object.prototype,h))&&(y[h]=!0);else return[y,h];return y}if(!y||typeof y!="object")return[y].concat(h);var E=y;return r(y)&&!r(h)&&(E=i(y,P)),r(y)&&r(h)?(h.forEach(function(O,A){if(t.call(y,A)){var T=y[A];T&&typeof T=="object"&&O&&typeof O=="object"?y[A]=p(T,O,P):y.push(O)}else y[A]=O}),y):Object.keys(h).reduce(function(O,A){var T=h[A];return t.call(O,A)?O[A]=p(O[A],T,P):O[A]=T,O},E)},s=function(y,h){return Object.keys(h).reduce(function(P,E){return P[E]=h[E],P},y)},u=function(p,y,h){var P=p.replace(/\+/g," ");if(h==="iso-8859-1")return P.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(P)}catch{return P}},f=1024,c=function(y,h,P,E,O){if(y.length===0)return y;var A=y;if(typeof y=="symbol"?A=Symbol.prototype.toString.call(y):typeof y!="string"&&(A=String(y)),P==="iso-8859-1")return escape(A).replace(/%u[0-9a-f]{4}/gi,function(W){return"%26%23"+parseInt(W.slice(2),16)+"%3B"});for(var T="",C=0;C<A.length;C+=f){for(var I=A.length>=f?A.slice(C,C+f):A,F=[],M=0;M<I.length;++M){var x=I.charCodeAt(M);if(x===45||x===46||x===95||x===126||x>=48&&x<=57||x>=65&&x<=90||x>=97&&x<=122||O===e.RFC1738&&(x===40||x===41)){F[F.length]=I.charAt(M);continue}if(x<128){F[F.length]=n[x];continue}if(x<2048){F[F.length]=n[192|x>>6]+n[128|x&63];continue}if(x<55296||x>=57344){F[F.length]=n[224|x>>12]+n[128|x>>6&63]+n[128|x&63];continue}M+=1,x=65536+((x&1023)<<10|I.charCodeAt(M)&1023),F[F.length]=n[240|x>>18]+n[128|x>>12&63]+n[128|x>>6&63]+n[128|x&63]}T+=F.join("")}return T},l=function(y){for(var h=[{obj:{o:y},prop:"o"}],P=[],E=0;E<h.length;++E)for(var O=h[E],A=O.obj[O.prop],T=Object.keys(A),C=0;C<T.length;++C){var I=T[C],F=A[I];typeof F=="object"&&F!==null&&P.indexOf(F)===-1&&(h.push({obj:A,prop:I}),P.push(F))}return o(h),y},m=function(y){return Object.prototype.toString.call(y)==="[object RegExp]"},g=function(y){return!y||typeof y!="object"?!1:!!(y.constructor&&y.constructor.isBuffer&&y.constructor.isBuffer(y))},d=function(y,h){return[].concat(y,h)},v=function(y,h){if(r(y)){for(var P=[],E=0;E<y.length;E+=1)P.push(h(y[E]));return P}return h(y)};return bn={arrayToObject:i,assign:s,combine:d,compact:l,decode:u,encode:c,isBuffer:g,isRegExp:m,maybeMap:v,merge:a},bn}var wn,Bi;function Bd(){if(Bi)return wn;Bi=1;var e=Ld(),t=Wa(),r=io(),n=Object.prototype.hasOwnProperty,o={brackets:function(p){return p+"[]"},comma:"comma",indices:function(p,y){return p+"["+y+"]"},repeat:function(p){return p}},i=Array.isArray,a=Array.prototype.push,s=function(v,p){a.apply(v,i(p)?p:[p])},u=Date.prototype.toISOString,f=r.default,c={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:t.encode,encodeValuesOnly:!1,filter:void 0,format:f,formatter:r.formatters[f],indices:!1,serializeDate:function(p){return u.call(p)},skipNulls:!1,strictNullHandling:!1},l=function(p){return typeof p=="string"||typeof p=="number"||typeof p=="boolean"||typeof p=="symbol"||typeof p=="bigint"},m={},g=function v(p,y,h,P,E,O,A,T,C,I,F,M,x,W,U,te,X,ve){for(var $=p,re=ve,Oe=0,ne=!1;(re=re.get(m))!==void 0&&!ne;){var le=re.get(p);if(Oe+=1,typeof le<"u"){if(le===Oe)throw new RangeError("Cyclic object value");ne=!0}typeof re.get(m)>"u"&&(Oe=0)}if(typeof I=="function"?$=I(y,$):$ instanceof Date?$=x($):h==="comma"&&i($)&&($=t.maybeMap($,function(Pe){return Pe instanceof Date?x(Pe):Pe})),$===null){if(O)return C&&!te?C(y,c.encoder,X,"key",W):y;$=""}if(l($)||t.isBuffer($)){if(C){var be=te?y:C(y,c.encoder,X,"key",W);return[U(be)+"="+U(C($,c.encoder,X,"value",W))]}return[U(y)+"="+U(String($))]}var he=[];if(typeof $>"u")return he;var we;if(h==="comma"&&i($))te&&C&&($=t.maybeMap($,C)),we=[{value:$.length>0?$.join(",")||null:void 0}];else if(i(I))we=I;else{var Se=Object.keys($);we=F?Se.sort(F):Se}var ze=T?String(y).replace(/\./g,"%2E"):String(y),Ge=P&&i($)&&$.length===1?ze+"[]":ze;if(E&&i($)&&$.length===0)return Ge+"[]";for(var ee=0;ee<we.length;++ee){var L=we[ee],J=typeof L=="object"&&L&&typeof L.value<"u"?L.value:$[L];if(!(A&&J===null)){var j=M&&T?String(L).replace(/\./g,"%2E"):String(L),Q=i($)?typeof h=="function"?h(Ge,j):Ge:Ge+(M?"."+j:"["+j+"]");ve.set(p,Oe);var oe=e();oe.set(m,ve),s(he,v(J,Q,h,P,E,O,A,T,h==="comma"&&te&&i($)?null:C,I,F,M,x,W,U,te,X,oe))}}return he},d=function(p){if(!p)return c;if(typeof p.allowEmptyArrays<"u"&&typeof p.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof p.encodeDotInKeys<"u"&&typeof p.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(p.encoder!==null&&typeof p.encoder<"u"&&typeof p.encoder!="function")throw new TypeError("Encoder has to be a function.");var y=p.charset||c.charset;if(typeof p.charset<"u"&&p.charset!=="utf-8"&&p.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var h=r.default;if(typeof p.format<"u"){if(!n.call(r.formatters,p.format))throw new TypeError("Unknown format option provided.");h=p.format}var P=r.formatters[h],E=c.filter;(typeof p.filter=="function"||i(p.filter))&&(E=p.filter);var O;if(p.arrayFormat in o?O=p.arrayFormat:"indices"in p?O=p.indices?"indices":"repeat":O=c.arrayFormat,"commaRoundTrip"in p&&typeof p.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var A=typeof p.allowDots>"u"?p.encodeDotInKeys===!0?!0:c.allowDots:!!p.allowDots;return{addQueryPrefix:typeof p.addQueryPrefix=="boolean"?p.addQueryPrefix:c.addQueryPrefix,allowDots:A,allowEmptyArrays:typeof p.allowEmptyArrays=="boolean"?!!p.allowEmptyArrays:c.allowEmptyArrays,arrayFormat:O,charset:y,charsetSentinel:typeof p.charsetSentinel=="boolean"?p.charsetSentinel:c.charsetSentinel,commaRoundTrip:!!p.commaRoundTrip,delimiter:typeof p.delimiter>"u"?c.delimiter:p.delimiter,encode:typeof p.encode=="boolean"?p.encode:c.encode,encodeDotInKeys:typeof p.encodeDotInKeys=="boolean"?p.encodeDotInKeys:c.encodeDotInKeys,encoder:typeof p.encoder=="function"?p.encoder:c.encoder,encodeValuesOnly:typeof p.encodeValuesOnly=="boolean"?p.encodeValuesOnly:c.encodeValuesOnly,filter:E,format:h,formatter:P,serializeDate:typeof p.serializeDate=="function"?p.serializeDate:c.serializeDate,skipNulls:typeof p.skipNulls=="boolean"?p.skipNulls:c.skipNulls,sort:typeof p.sort=="function"?p.sort:null,strictNullHandling:typeof p.strictNullHandling=="boolean"?p.strictNullHandling:c.strictNullHandling}};return wn=function(v,p){var y=v,h=d(p),P,E;typeof h.filter=="function"?(E=h.filter,y=E("",y)):i(h.filter)&&(E=h.filter,P=E);var O=[];if(typeof y!="object"||y===null)return"";var A=o[h.arrayFormat],T=A==="comma"&&h.commaRoundTrip;P||(P=Object.keys(y)),h.sort&&P.sort(h.sort);for(var C=e(),I=0;I<P.length;++I){var F=P[I],M=y[F];h.skipNulls&&M===null||s(O,g(M,F,A,T,h.allowEmptyArrays,h.strictNullHandling,h.skipNulls,h.encodeDotInKeys,h.encode?h.encoder:null,h.filter,h.sort,h.allowDots,h.serializeDate,h.format,h.formatter,h.encodeValuesOnly,h.charset,C))}var x=O.join(h.delimiter),W=h.addQueryPrefix===!0?"?":"";return h.charsetSentinel&&(h.charset==="iso-8859-1"?W+="utf8=%26%2310003%3B&":W+="utf8=%E2%9C%93&"),x.length>0?W+x:""},wn}var Sn,Ui;function Ud(){if(Ui)return Sn;Ui=1;var e=Wa(),t=Object.prototype.hasOwnProperty,r=Array.isArray,n={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:e.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},o=function(m){return m.replace(/&#(\d+);/g,function(g,d){return String.fromCharCode(parseInt(d,10))})},i=function(m,g,d){if(m&&typeof m=="string"&&g.comma&&m.indexOf(",")>-1)return m.split(",");if(g.throwOnLimitExceeded&&d>=g.arrayLimit)throw new RangeError("Array limit exceeded. Only "+g.arrayLimit+" element"+(g.arrayLimit===1?"":"s")+" allowed in an array.");return m},a="utf8=%26%2310003%3B",s="utf8=%E2%9C%93",u=function(g,d){var v={__proto__:null},p=d.ignoreQueryPrefix?g.replace(/^\?/,""):g;p=p.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var y=d.parameterLimit===1/0?void 0:d.parameterLimit,h=p.split(d.delimiter,d.throwOnLimitExceeded?y+1:y);if(d.throwOnLimitExceeded&&h.length>y)throw new RangeError("Parameter limit exceeded. Only "+y+" parameter"+(y===1?"":"s")+" allowed.");var P=-1,E,O=d.charset;if(d.charsetSentinel)for(E=0;E<h.length;++E)h[E].indexOf("utf8=")===0&&(h[E]===s?O="utf-8":h[E]===a&&(O="iso-8859-1"),P=E,E=h.length);for(E=0;E<h.length;++E)if(E!==P){var A=h[E],T=A.indexOf("]="),C=T===-1?A.indexOf("="):T+1,I,F;C===-1?(I=d.decoder(A,n.decoder,O,"key"),F=d.strictNullHandling?null:""):(I=d.decoder(A.slice(0,C),n.decoder,O,"key"),F=e.maybeMap(i(A.slice(C+1),d,r(v[I])?v[I].length:0),function(x){return d.decoder(x,n.decoder,O,"value")})),F&&d.interpretNumericEntities&&O==="iso-8859-1"&&(F=o(String(F))),A.indexOf("[]=")>-1&&(F=r(F)?[F]:F);var M=t.call(v,I);M&&d.duplicates==="combine"?v[I]=e.combine(v[I],F):(!M||d.duplicates==="last")&&(v[I]=F)}return v},f=function(m,g,d,v){var p=0;if(m.length>0&&m[m.length-1]==="[]"){var y=m.slice(0,-1).join("");p=Array.isArray(g)&&g[y]?g[y].length:0}for(var h=v?g:i(g,d,p),P=m.length-1;P>=0;--P){var E,O=m[P];if(O==="[]"&&d.parseArrays)E=d.allowEmptyArrays&&(h===""||d.strictNullHandling&&h===null)?[]:e.combine([],h);else{E=d.plainObjects?{__proto__:null}:{};var A=O.charAt(0)==="["&&O.charAt(O.length-1)==="]"?O.slice(1,-1):O,T=d.decodeDotInKeys?A.replace(/%2E/g,"."):A,C=parseInt(T,10);!d.parseArrays&&T===""?E={0:h}:!isNaN(C)&&O!==T&&String(C)===T&&C>=0&&d.parseArrays&&C<=d.arrayLimit?(E=[],E[C]=h):T!=="__proto__"&&(E[T]=h)}h=E}return h},c=function(g,d,v,p){if(g){var y=v.allowDots?g.replace(/\.([^.[]+)/g,"[$1]"):g,h=/(\[[^[\]]*])/,P=/(\[[^[\]]*])/g,E=v.depth>0&&h.exec(y),O=E?y.slice(0,E.index):y,A=[];if(O){if(!v.plainObjects&&t.call(Object.prototype,O)&&!v.allowPrototypes)return;A.push(O)}for(var T=0;v.depth>0&&(E=P.exec(y))!==null&&T<v.depth;){if(T+=1,!v.plainObjects&&t.call(Object.prototype,E[1].slice(1,-1))&&!v.allowPrototypes)return;A.push(E[1])}if(E){if(v.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+v.depth+" and strictDepth is true");A.push("["+y.slice(E.index)+"]")}return f(A,d,v,p)}},l=function(g){if(!g)return n;if(typeof g.allowEmptyArrays<"u"&&typeof g.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof g.decodeDotInKeys<"u"&&typeof g.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(g.decoder!==null&&typeof g.decoder<"u"&&typeof g.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof g.charset<"u"&&g.charset!=="utf-8"&&g.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof g.throwOnLimitExceeded<"u"&&typeof g.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var d=typeof g.charset>"u"?n.charset:g.charset,v=typeof g.duplicates>"u"?n.duplicates:g.duplicates;if(v!=="combine"&&v!=="first"&&v!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var p=typeof g.allowDots>"u"?g.decodeDotInKeys===!0?!0:n.allowDots:!!g.allowDots;return{allowDots:p,allowEmptyArrays:typeof g.allowEmptyArrays=="boolean"?!!g.allowEmptyArrays:n.allowEmptyArrays,allowPrototypes:typeof g.allowPrototypes=="boolean"?g.allowPrototypes:n.allowPrototypes,allowSparse:typeof g.allowSparse=="boolean"?g.allowSparse:n.allowSparse,arrayLimit:typeof g.arrayLimit=="number"?g.arrayLimit:n.arrayLimit,charset:d,charsetSentinel:typeof g.charsetSentinel=="boolean"?g.charsetSentinel:n.charsetSentinel,comma:typeof g.comma=="boolean"?g.comma:n.comma,decodeDotInKeys:typeof g.decodeDotInKeys=="boolean"?g.decodeDotInKeys:n.decodeDotInKeys,decoder:typeof g.decoder=="function"?g.decoder:n.decoder,delimiter:typeof g.delimiter=="string"||e.isRegExp(g.delimiter)?g.delimiter:n.delimiter,depth:typeof g.depth=="number"||g.depth===!1?+g.depth:n.depth,duplicates:v,ignoreQueryPrefix:g.ignoreQueryPrefix===!0,interpretNumericEntities:typeof g.interpretNumericEntities=="boolean"?g.interpretNumericEntities:n.interpretNumericEntities,parameterLimit:typeof g.parameterLimit=="number"?g.parameterLimit:n.parameterLimit,parseArrays:g.parseArrays!==!1,plainObjects:typeof g.plainObjects=="boolean"?g.plainObjects:n.plainObjects,strictDepth:typeof g.strictDepth=="boolean"?!!g.strictDepth:n.strictDepth,strictNullHandling:typeof g.strictNullHandling=="boolean"?g.strictNullHandling:n.strictNullHandling,throwOnLimitExceeded:typeof g.throwOnLimitExceeded=="boolean"?g.throwOnLimitExceeded:!1}};return Sn=function(m,g){var d=l(g);if(m===""||m===null||typeof m>"u")return d.plainObjects?{__proto__:null}:{};for(var v=typeof m=="string"?u(m,d):m,p=d.plainObjects?{__proto__:null}:{},y=Object.keys(v),h=0;h<y.length;++h){var P=y[h],E=c(P,v[P],d,typeof m=="string");p=e.merge(p,E,d)}return d.allowSparse===!0?p:e.compact(p)},Sn}var Pn,ji;function jd(){if(ji)return Pn;ji=1;var e=Bd(),t=Ud(),r=io();return Pn={formats:r,parse:t,stringify:e},Pn}var ki=jd();function za(e,t){return function(){return e.apply(t,arguments)}}const{toString:kd}=Object.prototype,{getPrototypeOf:ao}=Object,{iterator:pr,toStringTag:Ga}=Symbol,hr=(e=>t=>{const r=kd.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),$e=e=>(e=e.toLowerCase(),t=>hr(t)===e),yr=e=>t=>typeof t===e,{isArray:Et}=Array,bt=yr("undefined");function Mt(e){return e!==null&&!bt(e)&&e.constructor!==null&&!bt(e.constructor)&&de(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ka=$e("ArrayBuffer");function Hd(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ka(e.buffer),t}const Wd=yr("string"),de=yr("function"),Va=yr("number"),Lt=e=>e!==null&&typeof e=="object",zd=e=>e===!0||e===!1,Xt=e=>{if(hr(e)!=="object")return!1;const t=ao(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Ga in e)&&!(pr in e)},Gd=e=>{if(!Lt(e)||Mt(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Kd=$e("Date"),Vd=$e("File"),Jd=$e("Blob"),Xd=$e("FileList"),Qd=e=>Lt(e)&&de(e.pipe),Yd=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||de(e.append)&&((t=hr(e))==="formdata"||t==="object"&&de(e.toString)&&e.toString()==="[object FormData]"))},Zd=$e("URLSearchParams"),[ep,tp,rp,np]=["ReadableStream","Request","Response","Headers"].map($e),op=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Bt(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),Et(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{if(Mt(e))return;const i=r?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let s;for(n=0;n<a;n++)s=i[n],t.call(null,e[s],s,e)}}function Ja(e,t){if(Mt(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const et=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Xa=e=>!bt(e)&&e!==et;function Ln(){const{caseless:e,skipUndefined:t}=Xa(this)&&this||{},r={},n=(o,i)=>{const a=e&&Ja(r,i)||i;Xt(r[a])&&Xt(o)?r[a]=Ln(r[a],o):Xt(o)?r[a]=Ln({},o):Et(o)?r[a]=o.slice():(!t||!bt(o))&&(r[a]=o)};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&Bt(arguments[o],n);return r}const ip=(e,t,r,{allOwnKeys:n}={})=>(Bt(t,(o,i)=>{r&&de(o)?e[i]=za(o,r):e[i]=o},{allOwnKeys:n}),e),ap=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),sp=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},lp=(e,t,r,n)=>{let o,i,a;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!n||n(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=r!==!1&&ao(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},cp=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},up=e=>{if(!e)return null;if(Et(e))return e;let t=e.length;if(!Va(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},fp=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ao(Uint8Array)),dp=(e,t)=>{const n=(e&&e[pr]).call(e);let o;for(;(o=n.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},pp=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},hp=$e("HTMLFormElement"),yp=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),Hi=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),mp=$e("RegExp"),Qa=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Bt(r,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(n[i]=a||o)}),Object.defineProperties(e,n)},gp=e=>{Qa(e,(t,r)=>{if(de(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(de(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},vp=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return Et(e)?n(e):n(String(e).split(t)),r},bp=()=>{},wp=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Sp(e){return!!(e&&de(e.append)&&e[Ga]==="FormData"&&e[pr])}const Pp=e=>{const t=new Array(10),r=(n,o)=>{if(Lt(n)){if(t.indexOf(n)>=0)return;if(Mt(n))return n;if(!("toJSON"in n)){t[o]=n;const i=Et(n)?[]:{};return Bt(n,(a,s)=>{const u=r(a,o+1);!bt(u)&&(i[s]=u)}),t[o]=void 0,i}}return n};return r(e,0)},Ep=$e("AsyncFunction"),Ap=e=>e&&(Lt(e)||de(e))&&de(e.then)&&de(e.catch),Ya=((e,t)=>e?setImmediate:t?((r,n)=>(et.addEventListener("message",({source:o,data:i})=>{o===et&&i===r&&n.length&&n.shift()()},!1),o=>{n.push(o),et.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",de(et.postMessage)),Tp=typeof queueMicrotask<"u"?queueMicrotask.bind(et):typeof process<"u"&&process.nextTick||Ya,Op=e=>e!=null&&de(e[pr]),w={isArray:Et,isArrayBuffer:Ka,isBuffer:Mt,isFormData:Yd,isArrayBufferView:Hd,isString:Wd,isNumber:Va,isBoolean:zd,isObject:Lt,isPlainObject:Xt,isEmptyObject:Gd,isReadableStream:ep,isRequest:tp,isResponse:rp,isHeaders:np,isUndefined:bt,isDate:Kd,isFile:Vd,isBlob:Jd,isRegExp:mp,isFunction:de,isStream:Qd,isURLSearchParams:Zd,isTypedArray:fp,isFileList:Xd,forEach:Bt,merge:Ln,extend:ip,trim:op,stripBOM:ap,inherits:sp,toFlatObject:lp,kindOf:hr,kindOfTest:$e,endsWith:cp,toArray:up,forEachEntry:dp,matchAll:pp,isHTMLForm:hp,hasOwnProperty:Hi,hasOwnProp:Hi,reduceDescriptors:Qa,freezeMethods:gp,toObjectSet:vp,toCamelCase:yp,noop:bp,toFiniteNumber:wp,findKey:Ja,global:et,isContextDefined:Xa,isSpecCompliantForm:Sp,toJSONObject:Pp,isAsyncFn:Ep,isThenable:Ap,setImmediate:Ya,asap:Tp,isIterable:Op};function q(e,t,r,n,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),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}w.inherits(q,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:w.toJSONObject(this.config),code:this.code,status:this.status}}});const Za=q.prototype,es={};["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=>{es[e]={value:e}});Object.defineProperties(q,es);Object.defineProperty(Za,"isAxiosError",{value:!0});q.from=(e,t,r,n,o,i)=>{const a=Object.create(Za);w.toFlatObject(e,a,function(c){return c!==Error.prototype},f=>f!=="isAxiosError");const s=e&&e.message?e.message:"Error",u=t==null&&e?e.code:t;return q.call(a,s,u,r,n,o),e&&a.cause==null&&Object.defineProperty(a,"cause",{value:e,configurable:!0}),a.name=e&&e.name||"Error",i&&Object.assign(a,i),a};const Rp=null;function Bn(e){return w.isPlainObject(e)||w.isArray(e)}function ts(e){return w.endsWith(e,"[]")?e.slice(0,-2):e}function Wi(e,t,r){return e?e.concat(t).map(function(o,i){return o=ts(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function Cp(e){return w.isArray(e)&&!e.some(Bn)}const xp=w.toFlatObject(w,{},null,function(t){return/^is[A-Z]/.test(t)});function mr(e,t,r){if(!w.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=w.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,p){return!w.isUndefined(p[v])});const n=r.metaTokens,o=r.visitor||c,i=r.dots,a=r.indexes,u=(r.Blob||typeof Blob<"u"&&Blob)&&w.isSpecCompliantForm(t);if(!w.isFunction(o))throw new TypeError("visitor must be a function");function f(d){if(d===null)return"";if(w.isDate(d))return d.toISOString();if(w.isBoolean(d))return d.toString();if(!u&&w.isBlob(d))throw new q("Blob is not supported. Use a Buffer instead.");return w.isArrayBuffer(d)||w.isTypedArray(d)?u&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function c(d,v,p){let y=d;if(d&&!p&&typeof d=="object"){if(w.endsWith(v,"{}"))v=n?v:v.slice(0,-2),d=JSON.stringify(d);else if(w.isArray(d)&&Cp(d)||(w.isFileList(d)||w.endsWith(v,"[]"))&&(y=w.toArray(d)))return v=ts(v),y.forEach(function(P,E){!(w.isUndefined(P)||P===null)&&t.append(a===!0?Wi([v],E,i):a===null?v:v+"[]",f(P))}),!1}return Bn(d)?!0:(t.append(Wi(p,v,i),f(d)),!1)}const l=[],m=Object.assign(xp,{defaultVisitor:c,convertValue:f,isVisitable:Bn});function g(d,v){if(!w.isUndefined(d)){if(l.indexOf(d)!==-1)throw Error("Circular reference detected in "+v.join("."));l.push(d),w.forEach(d,function(y,h){(!(w.isUndefined(y)||y===null)&&o.call(t,y,w.isString(h)?h.trim():h,v,m))===!0&&g(y,v?v.concat(h):[h])}),l.pop()}}if(!w.isObject(e))throw new TypeError("data must be an object");return g(e),t}function zi(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function so(e,t){this._pairs=[],e&&mr(e,this,t)}const rs=so.prototype;rs.append=function(t,r){this._pairs.push([t,r])};rs.toString=function(t){const r=t?function(n){return t.call(this,n,zi)}:zi;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function _p(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function ns(e,t,r){if(!t)return e;const n=r&&r.encode||_p;w.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(o?i=o(t,r):i=w.isURLSearchParams(t)?t.toString():new so(t,r).toString(n),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Gi{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){w.forEach(this.handlers,function(n){n!==null&&t(n)})}}const os={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Fp=typeof URLSearchParams<"u"?URLSearchParams:so,$p=typeof FormData<"u"?FormData:null,Ip=typeof Blob<"u"?Blob:null,qp={isBrowser:!0,classes:{URLSearchParams:Fp,FormData:$p,Blob:Ip},protocols:["http","https","file","blob","url","data"]},lo=typeof window<"u"&&typeof document<"u",Un=typeof navigator=="object"&&navigator||void 0,Np=lo&&(!Un||["ReactNative","NativeScript","NS"].indexOf(Un.product)<0),Dp=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Mp=lo&&window.location.href||"http://localhost",Lp=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:lo,hasStandardBrowserEnv:Np,hasStandardBrowserWebWorkerEnv:Dp,navigator:Un,origin:Mp},Symbol.toStringTag,{value:"Module"})),se={...Lp,...qp};function Bp(e,t){return mr(e,new se.classes.URLSearchParams,{visitor:function(r,n,o,i){return se.isNode&&w.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function Up(e){return w.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function jp(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}function is(e){function t(r,n,o,i){let a=r[i++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),u=i>=r.length;return a=!a&&w.isArray(o)?o.length:a,u?(w.hasOwnProp(o,a)?o[a]=[o[a],n]:o[a]=n,!s):((!o[a]||!w.isObject(o[a]))&&(o[a]=[]),t(r,n,o[a],i)&&w.isArray(o[a])&&(o[a]=jp(o[a])),!s)}if(w.isFormData(e)&&w.isFunction(e.entries)){const r={};return w.forEachEntry(e,(n,o)=>{t(Up(n),o,r,0)}),r}return null}function kp(e,t,r){if(w.isString(e))try{return(t||JSON.parse)(e),w.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const Ut={transitional:os,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=w.isObject(t);if(i&&w.isHTMLForm(t)&&(t=new FormData(t)),w.isFormData(t))return o?JSON.stringify(is(t)):t;if(w.isArrayBuffer(t)||w.isBuffer(t)||w.isStream(t)||w.isFile(t)||w.isBlob(t)||w.isReadableStream(t))return t;if(w.isArrayBufferView(t))return t.buffer;if(w.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Bp(t,this.formSerializer).toString();if((s=w.isFileList(t))||n.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return mr(s?{"files[]":t}:t,u&&new u,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),kp(t)):t}],transformResponse:[function(t){const r=this.transitional||Ut.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(w.isResponse(t)||w.isReadableStream(t))return t;if(t&&w.isString(t)&&(n&&!this.responseType||o)){const a=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(s){if(a)throw s.name==="SyntaxError"?q.from(s,q.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:se.classes.FormData,Blob:se.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};w.forEach(["delete","get","head","post","put","patch"],e=>{Ut.headers[e]={}});const Hp=w.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"]),Wp=e=>{const t={};let r,n,o;return e&&e.split(`
5
- `).forEach(function(a){o=a.indexOf(":"),r=a.substring(0,o).trim().toLowerCase(),n=a.substring(o+1).trim(),!(!r||t[r]&&Hp[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Ki=Symbol("internals");function Ct(e){return e&&String(e).trim().toLowerCase()}function Qt(e){return e===!1||e==null?e:w.isArray(e)?e.map(Qt):String(e)}function zp(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const Gp=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function En(e,t,r,n,o){if(w.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!w.isString(t)){if(w.isString(n))return t.indexOf(n)!==-1;if(w.isRegExp(n))return n.test(t)}}function Kp(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Vp(e,t){const r=w.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,i,a){return this[n].call(this,t,o,i,a)},configurable:!0})})}let pe=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function i(s,u,f){const c=Ct(u);if(!c)throw new Error("header name must be a non-empty string");const l=w.findKey(o,c);(!l||o[l]===void 0||f===!0||f===void 0&&o[l]!==!1)&&(o[l||u]=Qt(s))}const a=(s,u)=>w.forEach(s,(f,c)=>i(f,c,u));if(w.isPlainObject(t)||t instanceof this.constructor)a(t,r);else if(w.isString(t)&&(t=t.trim())&&!Gp(t))a(Wp(t),r);else if(w.isObject(t)&&w.isIterable(t)){let s={},u,f;for(const c of t){if(!w.isArray(c))throw TypeError("Object iterator must return a key-value pair");s[f=c[0]]=(u=s[f])?w.isArray(u)?[...u,c[1]]:[u,c[1]]:c[1]}a(s,r)}else t!=null&&i(r,t,n);return this}get(t,r){if(t=Ct(t),t){const n=w.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return zp(o);if(w.isFunction(r))return r.call(this,o,n);if(w.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Ct(t),t){const n=w.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||En(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function i(a){if(a=Ct(a),a){const s=w.findKey(n,a);s&&(!r||En(n,n[s],s,r))&&(delete n[s],o=!0)}}return w.isArray(t)?t.forEach(i):i(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const i=r[n];(!t||En(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const r=this,n={};return w.forEach(this,(o,i)=>{const a=w.findKey(n,i);if(a){r[a]=Qt(o),delete r[i];return}const s=t?Kp(i):String(i).trim();s!==i&&delete r[i],r[s]=Qt(o),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return w.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&w.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
6
- `)}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 n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[Ki]=this[Ki]={accessors:{}}).accessors,o=this.prototype;function i(a){const s=Ct(a);n[s]||(Vp(o,a),n[s]=!0)}return w.isArray(t)?t.forEach(i):i(t),this}};pe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);w.reduceDescriptors(pe.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});w.freezeMethods(pe);function An(e,t){const r=this||Ut,n=t||r,o=pe.from(n.headers);let i=n.data;return w.forEach(e,function(s){i=s.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function as(e){return!!(e&&e.__CANCEL__)}function At(e,t,r){q.call(this,e??"canceled",q.ERR_CANCELED,t,r),this.name="CanceledError"}w.inherits(At,q,{__CANCEL__:!0});function ss(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new q("Request failed with status code "+r.status,[q.ERR_BAD_REQUEST,q.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Jp(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Xp(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(u){const f=Date.now(),c=n[i];a||(a=f),r[o]=u,n[o]=f;let l=i,m=0;for(;l!==o;)m+=r[l++],l=l%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),f-a<t)return;const g=c&&f-c;return g?Math.round(m*1e3/g):void 0}}function Qp(e,t){let r=0,n=1e3/t,o,i;const a=(f,c=Date.now())=>{r=c,o=null,i&&(clearTimeout(i),i=null),e(...f)};return[(...f)=>{const c=Date.now(),l=c-r;l>=n?a(f,c):(o=f,i||(i=setTimeout(()=>{i=null,a(o)},n-l)))},()=>o&&a(o)]}const ar=(e,t,r=3)=>{let n=0;const o=Xp(50,250);return Qp(i=>{const a=i.loaded,s=i.lengthComputable?i.total:void 0,u=a-n,f=o(u),c=a<=s;n=a;const l={loaded:a,total:s,progress:s?a/s:void 0,bytes:u,rate:f||void 0,estimated:f&&s&&c?(s-a)/f:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(l)},r)},Vi=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Ji=e=>(...t)=>w.asap(()=>e(...t)),Yp=se.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,se.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(se.origin),se.navigator&&/(msie|trident)/i.test(se.navigator.userAgent)):()=>!0,Zp=se.hasStandardBrowserEnv?{write(e,t,r,n,o,i,a){if(typeof document>"u")return;const s=[`${e}=${encodeURIComponent(t)}`];w.isNumber(r)&&s.push(`expires=${new Date(r).toUTCString()}`),w.isString(n)&&s.push(`path=${n}`),w.isString(o)&&s.push(`domain=${o}`),i===!0&&s.push("secure"),w.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function eh(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function th(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ls(e,t,r){let n=!eh(t);return e&&(n||r==!1)?th(e,t):t}const Xi=e=>e instanceof pe?{...e}:e;function it(e,t){t=t||{};const r={};function n(f,c,l,m){return w.isPlainObject(f)&&w.isPlainObject(c)?w.merge.call({caseless:m},f,c):w.isPlainObject(c)?w.merge({},c):w.isArray(c)?c.slice():c}function o(f,c,l,m){if(w.isUndefined(c)){if(!w.isUndefined(f))return n(void 0,f,l,m)}else return n(f,c,l,m)}function i(f,c){if(!w.isUndefined(c))return n(void 0,c)}function a(f,c){if(w.isUndefined(c)){if(!w.isUndefined(f))return n(void 0,f)}else return n(void 0,c)}function s(f,c,l){if(l in t)return n(f,c);if(l in e)return n(void 0,f)}const u={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(f,c,l)=>o(Xi(f),Xi(c),l,!0)};return w.forEach(Object.keys({...e,...t}),function(c){const l=u[c]||o,m=l(e[c],t[c],c);w.isUndefined(m)&&l!==s||(r[c]=m)}),r}const cs=e=>{const t=it({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=t;if(t.headers=a=pe.from(a),t.url=ns(ls(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),w.isFormData(r)){if(se.hasStandardBrowserEnv||se.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(w.isFunction(r.getHeaders)){const u=r.getHeaders(),f=["content-type","content-length"];Object.entries(u).forEach(([c,l])=>{f.includes(c.toLowerCase())&&a.set(c,l)})}}if(se.hasStandardBrowserEnv&&(n&&w.isFunction(n)&&(n=n(t)),n||n!==!1&&Yp(t.url))){const u=o&&i&&Zp.read(i);u&&a.set(o,u)}return t},rh=typeof XMLHttpRequest<"u",nh=rh&&function(e){return new Promise(function(r,n){const o=cs(e);let i=o.data;const a=pe.from(o.headers).normalize();let{responseType:s,onUploadProgress:u,onDownloadProgress:f}=o,c,l,m,g,d;function v(){g&&g(),d&&d(),o.cancelToken&&o.cancelToken.unsubscribe(c),o.signal&&o.signal.removeEventListener("abort",c)}let p=new XMLHttpRequest;p.open(o.method.toUpperCase(),o.url,!0),p.timeout=o.timeout;function y(){if(!p)return;const P=pe.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),O={data:!s||s==="text"||s==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:P,config:e,request:p};ss(function(T){r(T),v()},function(T){n(T),v()},O),p=null}"onloadend"in p?p.onloadend=y:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(y)},p.onabort=function(){p&&(n(new q("Request aborted",q.ECONNABORTED,e,p)),p=null)},p.onerror=function(E){const O=E&&E.message?E.message:"Network Error",A=new q(O,q.ERR_NETWORK,e,p);A.event=E||null,n(A),p=null},p.ontimeout=function(){let E=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const O=o.transitional||os;o.timeoutErrorMessage&&(E=o.timeoutErrorMessage),n(new q(E,O.clarifyTimeoutError?q.ETIMEDOUT:q.ECONNABORTED,e,p)),p=null},i===void 0&&a.setContentType(null),"setRequestHeader"in p&&w.forEach(a.toJSON(),function(E,O){p.setRequestHeader(O,E)}),w.isUndefined(o.withCredentials)||(p.withCredentials=!!o.withCredentials),s&&s!=="json"&&(p.responseType=o.responseType),f&&([m,d]=ar(f,!0),p.addEventListener("progress",m)),u&&p.upload&&([l,g]=ar(u),p.upload.addEventListener("progress",l),p.upload.addEventListener("loadend",g)),(o.cancelToken||o.signal)&&(c=P=>{p&&(n(!P||P.type?new At(null,e,p):P),p.abort(),p=null)},o.cancelToken&&o.cancelToken.subscribe(c),o.signal&&(o.signal.aborted?c():o.signal.addEventListener("abort",c)));const h=Jp(o.url);if(h&&se.protocols.indexOf(h)===-1){n(new q("Unsupported protocol "+h+":",q.ERR_BAD_REQUEST,e));return}p.send(i||null)})},oh=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,o;const i=function(f){if(!o){o=!0,s();const c=f instanceof Error?f:this.reason;n.abort(c instanceof q?c:new At(c instanceof Error?c.message:c))}};let a=t&&setTimeout(()=>{a=null,i(new q(`timeout ${t} of ms exceeded`,q.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(i):f.removeEventListener("abort",i)}),e=null)};e.forEach(f=>f.addEventListener("abort",i));const{signal:u}=n;return u.unsubscribe=()=>w.asap(s),u}},ih=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},ah=async function*(e,t){for await(const r of sh(e))yield*ih(r,t)},sh=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},Qi=(e,t,r,n)=>{const o=ah(e,t);let i=0,a,s=u=>{a||(a=!0,n&&n(u))};return new ReadableStream({async pull(u){try{const{done:f,value:c}=await o.next();if(f){s(),u.close();return}let l=c.byteLength;if(r){let m=i+=l;r(m)}u.enqueue(new Uint8Array(c))}catch(f){throw s(f),f}},cancel(u){return s(u),o.return()}},{highWaterMark:2})},Yi=64*1024,{isFunction:zt}=w,lh=(({Request:e,Response:t})=>({Request:e,Response:t}))(w.global),{ReadableStream:Zi,TextEncoder:ea}=w.global,ta=(e,...t)=>{try{return!!e(...t)}catch{return!1}},ch=e=>{e=w.merge.call({skipUndefined:!0},lh,e);const{fetch:t,Request:r,Response:n}=e,o=t?zt(t):typeof fetch=="function",i=zt(r),a=zt(n);if(!o)return!1;const s=o&&zt(Zi),u=o&&(typeof ea=="function"?(d=>v=>d.encode(v))(new ea):async d=>new Uint8Array(await new r(d).arrayBuffer())),f=i&&s&&ta(()=>{let d=!1;const v=new r(se.origin,{body:new Zi,method:"POST",get duplex(){return d=!0,"half"}}).headers.has("Content-Type");return d&&!v}),c=a&&s&&ta(()=>w.isReadableStream(new n("").body)),l={stream:c&&(d=>d.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(d=>{!l[d]&&(l[d]=(v,p)=>{let y=v&&v[d];if(y)return y.call(v);throw new q(`Response type '${d}' is not supported`,q.ERR_NOT_SUPPORT,p)})});const m=async d=>{if(d==null)return 0;if(w.isBlob(d))return d.size;if(w.isSpecCompliantForm(d))return(await new r(se.origin,{method:"POST",body:d}).arrayBuffer()).byteLength;if(w.isArrayBufferView(d)||w.isArrayBuffer(d))return d.byteLength;if(w.isURLSearchParams(d)&&(d=d+""),w.isString(d))return(await u(d)).byteLength},g=async(d,v)=>{const p=w.toFiniteNumber(d.getContentLength());return p??m(v)};return async d=>{let{url:v,method:p,data:y,signal:h,cancelToken:P,timeout:E,onDownloadProgress:O,onUploadProgress:A,responseType:T,headers:C,withCredentials:I="same-origin",fetchOptions:F}=cs(d),M=t||fetch;T=T?(T+"").toLowerCase():"text";let x=oh([h,P&&P.toAbortSignal()],E),W=null;const U=x&&x.unsubscribe&&(()=>{x.unsubscribe()});let te;try{if(A&&f&&p!=="get"&&p!=="head"&&(te=await g(C,y))!==0){let ne=new r(v,{method:"POST",body:y,duplex:"half"}),le;if(w.isFormData(y)&&(le=ne.headers.get("content-type"))&&C.setContentType(le),ne.body){const[be,he]=Vi(te,ar(Ji(A)));y=Qi(ne.body,Yi,be,he)}}w.isString(I)||(I=I?"include":"omit");const X=i&&"credentials"in r.prototype,ve={...F,signal:x,method:p.toUpperCase(),headers:C.normalize().toJSON(),body:y,duplex:"half",credentials:X?I:void 0};W=i&&new r(v,ve);let $=await(i?M(W,F):M(v,ve));const re=c&&(T==="stream"||T==="response");if(c&&(O||re&&U)){const ne={};["status","statusText","headers"].forEach(we=>{ne[we]=$[we]});const le=w.toFiniteNumber($.headers.get("content-length")),[be,he]=O&&Vi(le,ar(Ji(O),!0))||[];$=new n(Qi($.body,Yi,be,()=>{he&&he(),U&&U()}),ne)}T=T||"text";let Oe=await l[w.findKey(l,T)||"text"]($,d);return!re&&U&&U(),await new Promise((ne,le)=>{ss(ne,le,{data:Oe,headers:pe.from($.headers),status:$.status,statusText:$.statusText,config:d,request:W})})}catch(X){throw U&&U(),X&&X.name==="TypeError"&&/Load failed|fetch/i.test(X.message)?Object.assign(new q("Network Error",q.ERR_NETWORK,d,W),{cause:X.cause||X}):q.from(X,X&&X.code,d,W)}}},uh=new Map,us=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:o}=t,i=[n,o,r];let a=i.length,s=a,u,f,c=uh;for(;s--;)u=i[s],f=c.get(u),f===void 0&&c.set(u,f=s?new Map:ch(t)),c=f;return f};us();const co={http:Rp,xhr:nh,fetch:{get:us}};w.forEach(co,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const ra=e=>`- ${e}`,fh=e=>w.isFunction(e)||e===null||e===!1;function dh(e,t){e=w.isArray(e)?e:[e];const{length:r}=e;let n,o;const i={};for(let a=0;a<r;a++){n=e[a];let s;if(o=n,!fh(n)&&(o=co[(s=String(n)).toLowerCase()],o===void 0))throw new q(`Unknown adapter '${s}'`);if(o&&(w.isFunction(o)||(o=o.get(t))))break;i[s||"#"+a]=o}if(!o){const a=Object.entries(i).map(([u,f])=>`adapter ${u} `+(f===!1?"is not supported by the environment":"is not available in the build"));let s=r?a.length>1?`since :
7
- `+a.map(ra).join(`
8
- `):" "+ra(a[0]):"as no adapter specified";throw new q("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return o}const fs={getAdapter:dh,adapters:co};function Tn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new At(null,e)}function na(e){return Tn(e),e.headers=pe.from(e.headers),e.data=An.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),fs.getAdapter(e.adapter||Ut.adapter,e)(e).then(function(n){return Tn(e),n.data=An.call(e,e.transformResponse,n),n.headers=pe.from(n.headers),n},function(n){return as(n)||(Tn(e),n&&n.response&&(n.response.data=An.call(e,e.transformResponse,n.response),n.response.headers=pe.from(n.response.headers))),Promise.reject(n)})}const ds="1.13.2",gr={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{gr[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const oa={};gr.transitional=function(t,r,n){function o(i,a){return"[Axios v"+ds+"] Transitional option '"+i+"'"+a+(n?". "+n:"")}return(i,a,s)=>{if(t===!1)throw new q(o(a," has been removed"+(r?" in "+r:"")),q.ERR_DEPRECATED);return r&&!oa[a]&&(oa[a]=!0,console.warn(o(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,a,s):!0}};gr.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function ph(e,t,r){if(typeof e!="object")throw new q("options must be an object",q.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],a=t[i];if(a){const s=e[i],u=s===void 0||a(s,i,e);if(u!==!0)throw new q("option "+i+" must be "+u,q.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new q("Unknown option "+i,q.ERR_BAD_OPTION)}}const Yt={assertOptions:ph,validators:gr},Ie=Yt.validators;let rt=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Gi,response:new Gi}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
9
- `+i):n.stack=i}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=it(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&Yt.assertOptions(n,{silentJSONParsing:Ie.transitional(Ie.boolean),forcedJSONParsing:Ie.transitional(Ie.boolean),clarifyTimeoutError:Ie.transitional(Ie.boolean)},!1),o!=null&&(w.isFunction(o)?r.paramsSerializer={serialize:o}:Yt.assertOptions(o,{encode:Ie.function,serialize:Ie.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Yt.assertOptions(r,{baseUrl:Ie.spelling("baseURL"),withXsrfToken:Ie.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=i&&w.merge(i.common,i[r.method]);i&&w.forEach(["delete","get","head","post","put","patch","common"],d=>{delete i[d]}),r.headers=pe.concat(a,i);const s=[];let u=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(r)===!1||(u=u&&v.synchronous,s.unshift(v.fulfilled,v.rejected))});const f=[];this.interceptors.response.forEach(function(v){f.push(v.fulfilled,v.rejected)});let c,l=0,m;if(!u){const d=[na.bind(this),void 0];for(d.unshift(...s),d.push(...f),m=d.length,c=Promise.resolve(r);l<m;)c=c.then(d[l++],d[l++]);return c}m=s.length;let g=r;for(;l<m;){const d=s[l++],v=s[l++];try{g=d(g)}catch(p){v.call(this,p);break}}try{c=na.call(this,g)}catch(d){return Promise.reject(d)}for(l=0,m=f.length;l<m;)c=c.then(f[l++],f[l++]);return c}getUri(t){t=it(this.defaults,t);const r=ls(t.baseURL,t.url,t.allowAbsoluteUrls);return ns(r,t.params,t.paramsSerializer)}};w.forEach(["delete","get","head","options"],function(t){rt.prototype[t]=function(r,n){return this.request(it(n||{},{method:t,url:r,data:(n||{}).data}))}});w.forEach(["post","put","patch"],function(t){function r(n){return function(i,a,s){return this.request(it(s||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}rt.prototype[t]=r(),rt.prototype[t+"Form"]=r(!0)});let hh=class ps{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(o=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(s=>{n.subscribe(s),i=s}).then(o);return a.cancel=function(){n.unsubscribe(i)},a},t(function(i,a,s){n.reason||(n.reason=new At(i,a,s),r(n.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=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new ps(function(o){t=o}),cancel:t}}};function yh(e){return function(r){return e.apply(null,r)}}function mh(e){return w.isObject(e)&&e.isAxiosError===!0}const jn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(jn).forEach(([e,t])=>{jn[t]=e});function hs(e){const t=new rt(e),r=za(rt.prototype.request,t);return w.extend(r,rt.prototype,t,{allOwnKeys:!0}),w.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return hs(it(e,o))},r}const V=hs(Ut);V.Axios=rt;V.CanceledError=At;V.CancelToken=hh;V.isCancel=as;V.VERSION=ds;V.toFormData=mr;V.AxiosError=q;V.Cancel=V.CanceledError;V.all=function(t){return Promise.all(t)};V.spread=yh;V.isAxiosError=mh;V.mergeConfig=it;V.AxiosHeaders=pe;V.formToJSON=e=>is(w.isHTMLForm(e)?new FormData(e):e);V.getAdapter=fs.getAdapter;V.HttpStatusCode=jn;V.default=V;const{Axios:Ry,AxiosError:Cy,CanceledError:xy,isCancel:_y,CancelToken:Fy,VERSION:$y,all:Iy,Cancel:qy,isAxiosError:Ny,spread:Dy,toFormData:My,AxiosHeaders:Ly,HttpStatusCode:By,formToJSON:Uy,getAdapter:jy,mergeConfig:ky}=V;var gh=class{constructor(e){this.config={},this.defaults=e}extend(e){return e&&(this.defaults={...this.defaults,...e}),this}replace(e){this.config=e}get(e){return Na(this.config,e)?Ue(this.config,e):Ue(this.defaults,e)}set(e,t){typeof e=="string"?_e(this.config,e,t):Object.entries(e).forEach(([r,n])=>{_e(this.config,r,n)})}},at=new gh({form:{recentlySuccessfulDuration:2e3,forceIndicesArrayFormatInFormData:!0},future:{preserveEqualProps:!1,useDataInertiaHeadAttribute:!1,useDialogForErrorModal:!1},prefetch:{cacheFor:3e4,hoverDelay:75}});function Dt(e,t){let r;return function(...n){clearTimeout(r),r=setTimeout(()=>e.apply(this,n),t)}}function Te(e,t){return document.dispatchEvent(new CustomEvent(`inertia:${e}`,t))}var ia=e=>Te("before",{cancelable:!0,detail:{visit:e}}),vh=e=>Te("error",{detail:{errors:e}}),bh=e=>Te("exception",{cancelable:!0,detail:{exception:e}}),wh=e=>Te("finish",{detail:{visit:e}}),Sh=e=>Te("invalid",{cancelable:!0,detail:{response:e}}),Ph=e=>Te("beforeUpdate",{detail:{page:e}}),$t=e=>Te("navigate",{detail:{page:e}}),Eh=e=>Te("progress",{detail:{progress:e}}),Ah=e=>Te("start",{detail:{visit:e}}),Th=e=>Te("success",{detail:{page:e}}),Oh=(e,t)=>Te("prefetched",{detail:{fetchedAt:Date.now(),response:e.data,visit:t}}),Rh=e=>Te("prefetching",{detail:{visit:e}}),ue=class{static set(e,t){typeof window<"u"&&window.sessionStorage.setItem(e,JSON.stringify(t))}static get(e){if(typeof window<"u")return JSON.parse(window.sessionStorage.getItem(e)||"null")}static merge(e,t){const r=this.get(e);r===null?this.set(e,t):this.set(e,{...r,...t})}static remove(e){typeof window<"u"&&window.sessionStorage.removeItem(e)}static removeNested(e,t){const r=this.get(e);r!==null&&(delete r[t],this.set(e,r))}static exists(e){try{return this.get(e)!==null}catch{return!1}}static clear(){typeof window<"u"&&window.sessionStorage.clear()}};ue.locationVisitKey="inertiaLocationVisit";var Ch=async e=>{if(typeof window>"u")throw new Error("Unable to encrypt history");const t=ys(),r=await ms(),n=await qh(r);if(!n)throw new Error("Unable to encrypt history");return await _h(t,n,e)},wt={key:"historyKey",iv:"historyIv"},xh=async e=>{const t=ys(),r=await ms();if(!r)throw new Error("Unable to decrypt history");return await Fh(t,r,e)},_h=async(e,t,r)=>{if(typeof window>"u")throw new Error("Unable to encrypt history");if(typeof window.crypto.subtle>"u")return console.warn("Encryption is not supported in this environment. SSL is required."),Promise.resolve(r);const n=new TextEncoder,o=JSON.stringify(r),i=new Uint8Array(o.length*3),a=n.encodeInto(o,i);return window.crypto.subtle.encrypt({name:"AES-GCM",iv:e},t,i.subarray(0,a.written))},Fh=async(e,t,r)=>{if(typeof window.crypto.subtle>"u")return console.warn("Decryption is not supported in this environment. SSL is required."),Promise.resolve(r);const n=await window.crypto.subtle.decrypt({name:"AES-GCM",iv:e},t,r);return JSON.parse(new TextDecoder().decode(n))},ys=()=>{const e=ue.get(wt.iv);if(e)return new Uint8Array(e);const t=window.crypto.getRandomValues(new Uint8Array(12));return ue.set(wt.iv,Array.from(t)),t},$h=async()=>typeof window.crypto.subtle>"u"?(console.warn("Encryption is not supported in this environment. SSL is required."),Promise.resolve(null)):window.crypto.subtle.generateKey({name:"AES-GCM",length:256},!0,["encrypt","decrypt"]),Ih=async e=>{if(typeof window.crypto.subtle>"u")return console.warn("Encryption is not supported in this environment. SSL is required."),Promise.resolve();const t=await window.crypto.subtle.exportKey("raw",e);ue.set(wt.key,Array.from(new Uint8Array(t)))},qh=async e=>{if(e)return e;const t=await $h();return t?(await Ih(t),t):null},ms=async()=>{const e=ue.get(wt.key);return e?await window.crypto.subtle.importKey("raw",new Uint8Array(e),{name:"AES-GCM",length:256},!0,["encrypt","decrypt"]):null},ge=class{static save(){D.saveScrollPositions(Array.from(this.regions()).map(e=>({top:e.scrollTop,left:e.scrollLeft})))}static regions(){return document.querySelectorAll("[scroll-region]")}static reset(){(typeof window<"u"?window.location.hash:null)||window.scrollTo(0,0),this.regions().forEach(t=>{typeof t.scrollTo=="function"?t.scrollTo(0,0):(t.scrollTop=0,t.scrollLeft=0)}),this.save(),this.scrollToAnchor()}static scrollToAnchor(){const e=typeof window<"u"?window.location.hash:null;e&&setTimeout(()=>{const t=document.getElementById(e.slice(1));t?t.scrollIntoView():window.scrollTo(0,0)})}static restore(e){typeof window>"u"||window.requestAnimationFrame(()=>{this.restoreDocument(),this.restoreScrollRegions(e)})}static restoreScrollRegions(e){typeof window>"u"||this.regions().forEach((t,r)=>{const n=e[r];n&&(typeof t.scrollTo=="function"?t.scrollTo(n.left,n.top):(t.scrollTop=n.top,t.scrollLeft=n.left))})}static restoreDocument(){const e=D.getDocumentScrollPosition();window.scrollTo(e.left,e.top)}static onScroll(e){const t=e.target;typeof t.hasAttribute=="function"&&t.hasAttribute("scroll-region")&&this.save()}static onWindowScroll(){D.saveDocumentScrollPosition({top:window.scrollY,left:window.scrollX})}},uo=e=>typeof File<"u"&&e instanceof File||e instanceof Blob||typeof FileList<"u"&&e instanceof FileList&&e.length>0;function kn(e){return uo(e)||e instanceof FormData&&Array.from(e.values()).some(t=>kn(t))||typeof e=="object"&&e!==null&&Object.values(e).some(t=>kn(t))}var Hn=e=>e instanceof FormData;function gs(e,t=new FormData,r=null,n="brackets"){e=e||{};for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&bs(t,vs(r,o,"indices"),e[o],n);return t}function vs(e,t,r){return e?r==="brackets"?`${e}[]`:`${e}[${t}]`:t}function bs(e,t,r,n){if(Array.isArray(r))return Array.from(r.keys()).forEach(o=>bs(e,vs(t,o.toString(),n),r[o],n));if(r instanceof Date)return e.append(t,r.toISOString());if(r instanceof File)return e.append(t,r,r.name);if(r instanceof Blob)return e.append(t,r);if(typeof r=="boolean")return e.append(t,r?"1":"0");if(typeof r=="string")return e.append(t,r);if(typeof r=="number")return e.append(t,`${r}`);if(r==null)return e.append(t,"");gs(r,e,t,n)}function Fe(e){return new URL(e.toString(),typeof window>"u"?void 0:window.location.toString())}var Nh=(e,t,r,n,o)=>{let i=typeof e=="string"?Fe(e):e;if((kn(t)||n)&&!Hn(t)&&(at.get("form.forceIndicesArrayFormatInFormData")&&(o="indices"),t=gs(t,new FormData,null,o)),Hn(t))return[i,t];const[a,s]=fo(r,i,t,o);return[Fe(a),s]};function fo(e,t,r,n="brackets"){const o=e==="get"&&!Hn(r)&&Object.keys(r).length>0,i=ws(t.toString()),a=i||t.toString().startsWith("/")||t.toString()==="",s=!a&&!t.toString().startsWith("#")&&!t.toString().startsWith("?"),u=/^[.]{1,2}([/]|$)/.test(t.toString()),f=t.toString().includes("?")||o,c=t.toString().includes("#"),l=new URL(t.toString(),typeof window>"u"?"http://localhost":window.location.toString());if(o){const m={ignoreQueryPrefix:!0,parseArrays:!1};l.search=ki.stringify({...ki.parse(l.search,m),...r},{encodeValuesOnly:!0,arrayFormat:n})}return[[i?`${l.protocol}//${l.host}`:"",a?l.pathname:"",s?l.pathname.substring(u?0:1):"",f?l.search:"",c?l.hash:""].join(""),o?{}:r]}function sr(e){return e=new URL(e.href),e.hash="",e}var aa=(e,t)=>{e.hash&&!t.hash&&sr(e).href===t.href&&(t.hash=e.hash)},Wn=(e,t)=>sr(e).href===sr(t).href;function nt(e){return e!==null&&typeof e=="object"&&e!==void 0&&"url"in e&&"method"in e}function ws(e){return/^[a-z][a-z0-9+.-]*:\/\//i.test(e)}function Dh(e,t){const r=typeof e=="string"?Fe(e):e;return t?`${r.protocol}//${r.host}${r.pathname}${r.search}${r.hash}`:`${r.pathname}${r.search}${r.hash}`}var Mh=class{constructor(){this.componentId={},this.listeners=[],this.isFirstPageLoad=!0,this.cleared=!1,this.pendingDeferredProps=null}init({initialPage:e,swapComponent:t,resolveComponent:r}){return this.page=e,this.swapComponent=t,this.resolveComponent=r,this}set(e,{replace:t=!1,preserveScroll:r=!1,preserveState:n=!1,viewTransition:o=!1}={}){Object.keys(e.deferredProps||{}).length&&(this.pendingDeferredProps={deferredProps:e.deferredProps,component:e.component,url:e.url}),this.componentId={};const i=this.componentId;return e.clearHistory&&D.clear(),this.resolve(e.component).then(a=>{if(i!==this.componentId)return;e.rememberedState??(e.rememberedState={});const s=typeof window>"u",u=s?new URL(e.url):window.location,f=!s&&r?D.getScrollRegions():[];return t=t||Wn(Fe(e.url),u),new Promise(c=>{t?D.replaceState(e,()=>c(null)):D.pushState(e,()=>c(null))}).then(()=>{const c=!this.isTheSame(e);return!c&&Object.keys(e.props.errors||{}).length>0&&(o=!1),this.page=e,this.cleared=!1,c&&this.fireEventsFor("newComponent"),this.isFirstPageLoad&&this.fireEventsFor("firstLoad"),this.isFirstPageLoad=!1,this.swap({component:a,page:e,preserveState:n,viewTransition:o}).then(()=>{r?window.requestAnimationFrame(()=>ge.restoreScrollRegions(f)):ge.reset(),this.pendingDeferredProps&&this.pendingDeferredProps.component===e.component&&this.pendingDeferredProps.url===e.url&&tt.fireInternalEvent("loadDeferredProps",this.pendingDeferredProps.deferredProps),this.pendingDeferredProps=null,t||$t(e)})})})}setQuietly(e,{preserveState:t=!1}={}){return this.resolve(e.component).then(r=>(this.page=e,this.cleared=!1,D.setCurrent(e),this.swap({component:r,page:e,preserveState:t,viewTransition:!1})))}clear(){this.cleared=!0}isCleared(){return this.cleared}get(){return this.page}merge(e){this.page={...this.page,...e}}setUrlHash(e){this.page.url.includes(e)||(this.page.url+=e)}remember(e){this.page.rememberedState=e}swap({component:e,page:t,preserveState:r,viewTransition:n}){const o=()=>this.swapComponent({component:e,page:t,preserveState:r});if(!n||!document?.startViewTransition)return o();const i=typeof n=="boolean"?()=>null:n;return new Promise(a=>{const s=document.startViewTransition(()=>o().then(a));i(s)})}resolve(e){return Promise.resolve(this.resolveComponent(e))}isTheSame(e){return this.page.component===e.component}on(e,t){return this.listeners.push({event:e,callback:t}),()=>{this.listeners=this.listeners.filter(r=>r.event!==e&&r.callback!==t)}}fireEventsFor(e){this.listeners.filter(t=>t.event===e).forEach(t=>t.callback())}},_=new Mh,po=class{constructor(){this.items=[],this.processingPromise=null}add(e){return this.items.push(e),this.process()}process(){return this.processingPromise??(this.processingPromise=this.processNext().finally(()=>{this.processingPromise=null})),this.processingPromise}processNext(){const e=this.items.shift();return e?Promise.resolve(e()).then(()=>this.processNext()):Promise.resolve()}},_t=typeof window>"u",xt=new po,sa=!_t&&/CriOS/.test(window.navigator.userAgent),Lh=class{constructor(){this.rememberedState="rememberedState",this.scrollRegions="scrollRegions",this.preserveUrl=!1,this.current={},this.initialState=null}remember(e,t){this.replaceState({..._.get(),rememberedState:{..._.get()?.rememberedState??{},[t]:e}})}restore(e){if(!_t)return this.current[this.rememberedState]?.[e]!==void 0?this.current[this.rememberedState]?.[e]:this.initialState?.[this.rememberedState]?.[e]}pushState(e,t=null){if(!_t){if(this.preserveUrl){t&&t();return}this.current=e,xt.add(()=>this.getPageData(e).then(r=>{const n=()=>this.doPushState({page:r},e.url).then(()=>t?.());return sa?new Promise(o=>{setTimeout(()=>n().then(o))}):n()}))}}clonePageProps(e){try{return structuredClone(e.props),e}catch{return{...e,props:ce(e.props)}}}getPageData(e){const t=this.clonePageProps(e);return new Promise(r=>e.encryptHistory?Ch(t).then(r):r(t))}processQueue(){return xt.process()}decrypt(e=null){if(_t)return Promise.resolve(e??_.get());const t=e??window.history.state?.page;return this.decryptPageData(t).then(r=>{if(!r)throw new Error("Unable to decrypt history");return this.initialState===null?this.initialState=r??void 0:this.current=r??{},r})}decryptPageData(e){return e instanceof ArrayBuffer?xh(e):Promise.resolve(e)}saveScrollPositions(e){xt.add(()=>Promise.resolve().then(()=>{if(window.history.state?.page&&!Nt(this.getScrollRegions(),e))return this.doReplaceState({page:window.history.state.page,scrollRegions:e})}))}saveDocumentScrollPosition(e){xt.add(()=>Promise.resolve().then(()=>{if(window.history.state?.page&&!Nt(this.getDocumentScrollPosition(),e))return this.doReplaceState({page:window.history.state.page,documentScrollPosition:e})}))}getScrollRegions(){return window.history.state?.scrollRegions||[]}getDocumentScrollPosition(){return window.history.state?.documentScrollPosition||{top:0,left:0}}replaceState(e,t=null){if(_.merge(e),!_t){if(this.preserveUrl){t&&t();return}this.current=e,xt.add(()=>this.getPageData(e).then(r=>{const n=()=>this.doReplaceState({page:r},e.url).then(()=>t?.());return sa?new Promise(o=>{setTimeout(()=>n().then(o))}):n()}))}}doReplaceState(e,t){return Promise.resolve().then(()=>window.history.replaceState({...e,scrollRegions:e.scrollRegions??window.history.state?.scrollRegions,documentScrollPosition:e.documentScrollPosition??window.history.state?.documentScrollPosition},"",t))}doPushState(e,t){return Promise.resolve().then(()=>window.history.pushState(e,"",t))}getState(e,t){return this.current?.[e]??t}deleteState(e){this.current[e]!==void 0&&(delete this.current[e],this.replaceState(this.current))}clearInitialState(e){this.initialState&&this.initialState[e]!==void 0&&delete this.initialState[e]}hasAnyState(){return!!this.getAllState()}clear(){ue.remove(wt.key),ue.remove(wt.iv)}setCurrent(e){this.current=e}isValidState(e){return!!e.page}getAllState(){return this.current}};typeof window<"u"&&window.history.scrollRestoration&&(window.history.scrollRestoration="manual");var D=new Lh,Bh=class{constructor(){this.internalListeners=[]}init(){typeof window<"u"&&(window.addEventListener("popstate",this.handlePopstateEvent.bind(this)),window.addEventListener("scroll",Dt(ge.onWindowScroll.bind(ge),100),!0)),typeof document<"u"&&document.addEventListener("scroll",Dt(ge.onScroll.bind(ge),100),!0)}onGlobalEvent(e,t){const r=(n=>{const o=t(n);n.cancelable&&!n.defaultPrevented&&o===!1&&n.preventDefault()});return this.registerListener(`inertia:${e}`,r)}on(e,t){return this.internalListeners.push({event:e,listener:t}),()=>{this.internalListeners=this.internalListeners.filter(r=>r.listener!==t)}}onMissingHistoryItem(){_.clear(),this.fireInternalEvent("missingHistoryItem")}fireInternalEvent(e,...t){this.internalListeners.filter(r=>r.event===e).forEach(r=>r.listener(...t))}registerListener(e,t){return document.addEventListener(e,t),()=>document.removeEventListener(e,t)}handlePopstateEvent(e){const t=e.state||null;if(t===null){const r=Fe(_.get().url);r.hash=window.location.hash,D.replaceState({..._.get(),url:r.href}),ge.reset();return}if(!D.isValidState(t))return this.onMissingHistoryItem();D.decrypt(t.page).then(r=>{if(_.get().version!==r.version){this.onMissingHistoryItem();return}K.cancelAll(),_.setQuietly(r,{preserveState:!1}).then(()=>{ge.restore(D.getScrollRegions()),$t(_.get())})}).catch(()=>{this.onMissingHistoryItem()})}},tt=new Bh,Uh=class{constructor(){this.type=this.resolveType()}resolveType(){return typeof window>"u"?"navigate":window.performance&&window.performance.getEntriesByType&&window.performance.getEntriesByType("navigation").length>0?window.performance.getEntriesByType("navigation")[0].type:"navigate"}get(){return this.type}isBackForward(){return this.type==="back_forward"}isReload(){return this.type==="reload"}},On=new Uh,jh=class{static handle(){this.clearRememberedStateOnReload(),[this.handleBackForward,this.handleLocation,this.handleDefault].find(t=>t.bind(this)())}static clearRememberedStateOnReload(){On.isReload()&&(D.deleteState(D.rememberedState),D.clearInitialState(D.rememberedState))}static handleBackForward(){if(!On.isBackForward()||!D.hasAnyState())return!1;const e=D.getScrollRegions();return D.decrypt().then(t=>{_.set(t,{preserveScroll:!0,preserveState:!0}).then(()=>{ge.restore(e),$t(_.get())})}).catch(()=>{tt.onMissingHistoryItem()}),!0}static handleLocation(){if(!ue.exists(ue.locationVisitKey))return!1;const e=ue.get(ue.locationVisitKey)||{};return ue.remove(ue.locationVisitKey),typeof window<"u"&&_.setUrlHash(window.location.hash),D.decrypt(_.get()).then(()=>{const t=D.getState(D.rememberedState,{}),r=D.getScrollRegions();_.remember(t),_.set(_.get(),{preserveScroll:e.preserveScroll,preserveState:!0}).then(()=>{e.preserveScroll&&ge.restore(r),$t(_.get())})}).catch(()=>{tt.onMissingHistoryItem()}),!0}static handleDefault(){typeof window<"u"&&_.setUrlHash(window.location.hash),_.set(_.get(),{preserveScroll:!0,preserveState:!0}).then(()=>{On.isReload()?ge.restore(D.getScrollRegions()):ge.scrollToAnchor(),$t(_.get())})}},kh=class{constructor(e,t,r){this.id=null,this.throttle=!1,this.keepAlive=!1,this.cbCount=0,this.keepAlive=r.keepAlive??!1,this.cb=t,this.interval=e,(r.autoStart??!0)&&this.start()}stop(){this.id&&clearInterval(this.id)}start(){typeof window>"u"||(this.stop(),this.id=window.setInterval(()=>{(!this.throttle||this.cbCount%10===0)&&this.cb(),this.throttle&&this.cbCount++},this.interval))}isInBackground(e){this.throttle=this.keepAlive?!1:e,this.throttle&&(this.cbCount=0)}},Hh=class{constructor(){this.polls=[],this.setupVisibilityListener()}add(e,t,r){const n=new kh(e,t,r);return this.polls.push(n),{stop:()=>n.stop(),start:()=>n.start()}}clear(){this.polls.forEach(e=>e.stop()),this.polls=[]}setupVisibilityListener(){typeof document>"u"||document.addEventListener("visibilitychange",()=>{this.polls.forEach(e=>e.isInBackground(document.hidden))},!1)}},Wh=new Hh,Ss=(e,t,r)=>{if(e===t)return!0;for(const n in e)if(!r.includes(n)&&e[n]!==t[n]&&!zh(e[n],t[n]))return!1;for(const n in t)if(!r.includes(n)&&!(n in e))return!1;return!0},zh=(e,t)=>{switch(typeof e){case"object":return Ss(e,t,[]);case"function":return e.toString()===t.toString();default:return e===t}},Gh={ms:1,s:1e3,m:1e3*60,h:1e3*60*60,d:1e3*60*60*24},la=e=>{if(typeof e=="number")return e;for(const[t,r]of Object.entries(Gh))if(e.endsWith(t))return parseFloat(e)*r;return parseInt(e)},Kh=class{constructor(){this.cached=[],this.inFlightRequests=[],this.removalTimers=[],this.currentUseId=null}add(e,t,{cacheFor:r,cacheTags:n}){if(this.findInFlight(e))return Promise.resolve();const i=this.findCached(e);if(!e.fresh&&i&&i.staleTimestamp>Date.now())return Promise.resolve();const[a,s]=this.extractStaleValues(r),u=new Promise((f,c)=>{t({...e,onCancel:()=>{this.remove(e),e.onCancel(),c()},onError:l=>{this.remove(e),e.onError(l),c()},onPrefetching(l){e.onPrefetching(l)},onPrefetched(l,m){e.onPrefetched(l,m)},onPrefetchResponse(l){f(l)},onPrefetchError(l){Be.removeFromInFlight(e),c(l)}})}).then(f=>(this.remove(e),this.cached.push({params:{...e},staleTimestamp:Date.now()+a,response:u,singleUse:s===0,timestamp:Date.now(),inFlight:!1,tags:Array.isArray(n)?n:[n]}),this.scheduleForRemoval(e,s),this.removeFromInFlight(e),f.handlePrefetch(),f));return this.inFlightRequests.push({params:{...e},response:u,staleTimestamp:null,inFlight:!0}),u}removeAll(){this.cached=[],this.removalTimers.forEach(e=>{clearTimeout(e.timer)}),this.removalTimers=[]}removeByTags(e){this.cached=this.cached.filter(t=>!t.tags.some(r=>e.includes(r)))}remove(e){this.cached=this.cached.filter(t=>!this.paramsAreEqual(t.params,e)),this.clearTimer(e)}removeFromInFlight(e){this.inFlightRequests=this.inFlightRequests.filter(t=>!this.paramsAreEqual(t.params,e))}extractStaleValues(e){const[t,r]=this.cacheForToStaleAndExpires(e);return[la(t),la(r)]}cacheForToStaleAndExpires(e){if(!Array.isArray(e))return[e,e];switch(e.length){case 0:return[0,0];case 1:return[e[0],e[0]];default:return[e[0],e[1]]}}clearTimer(e){const t=this.removalTimers.find(r=>this.paramsAreEqual(r.params,e));t&&(clearTimeout(t.timer),this.removalTimers=this.removalTimers.filter(r=>r!==t))}scheduleForRemoval(e,t){if(!(typeof window>"u")&&(this.clearTimer(e),t>0)){const r=window.setTimeout(()=>this.remove(e),t);this.removalTimers.push({params:e,timer:r})}}get(e){return this.findCached(e)||this.findInFlight(e)}use(e,t){const r=`${t.url.pathname}-${Date.now()}-${Math.random().toString(36).substring(7)}`;return this.currentUseId=r,e.response.then(n=>{if(this.currentUseId===r)return n.mergeParams({...t,onPrefetched:()=>{}}),this.removeSingleUseItems(t),n.handle()})}removeSingleUseItems(e){this.cached=this.cached.filter(t=>this.paramsAreEqual(t.params,e)?!t.singleUse:!0)}findCached(e){return this.cached.find(t=>this.paramsAreEqual(t.params,e))||null}findInFlight(e){return this.inFlightRequests.find(t=>this.paramsAreEqual(t.params,e))||null}withoutPurposePrefetchHeader(e){const t=ce(e);return t.headers.Purpose==="prefetch"&&delete t.headers.Purpose,t}paramsAreEqual(e,t){return Ss(this.withoutPurposePrefetchHeader(e),this.withoutPurposePrefetchHeader(t),["showProgress","replace","prefetch","preserveScroll","preserveState","onBefore","onBeforeUpdate","onStart","onProgress","onFinish","onCancel","onSuccess","onError","onPrefetched","onCancelToken","onPrefetching","async","viewTransition"])}},Be=new Kh,zn=class Zt{constructor(t){if(this.callbacks=[],!t.prefetch)this.params=t;else{const r={onBefore:this.wrapCallback(t,"onBefore"),onBeforeUpdate:this.wrapCallback(t,"onBeforeUpdate"),onStart:this.wrapCallback(t,"onStart"),onProgress:this.wrapCallback(t,"onProgress"),onFinish:this.wrapCallback(t,"onFinish"),onCancel:this.wrapCallback(t,"onCancel"),onSuccess:this.wrapCallback(t,"onSuccess"),onError:this.wrapCallback(t,"onError"),onCancelToken:this.wrapCallback(t,"onCancelToken"),onPrefetched:this.wrapCallback(t,"onPrefetched"),onPrefetching:this.wrapCallback(t,"onPrefetching")};this.params={...t,...r,onPrefetchResponse:t.onPrefetchResponse||(()=>{}),onPrefetchError:t.onPrefetchError||(()=>{})}}}static create(t){return new Zt(t)}data(){return this.params.method==="get"?null:this.params.data}queryParams(){return this.params.method==="get"?this.params.data:{}}isPartial(){return this.params.only.length>0||this.params.except.length>0||this.params.reset.length>0}onCancelToken(t){this.params.onCancelToken({cancel:t})}markAsFinished(){this.params.completed=!0,this.params.cancelled=!1,this.params.interrupted=!1}markAsCancelled({cancelled:t=!0,interrupted:r=!1}){this.params.onCancel(),this.params.completed=!1,this.params.cancelled=t,this.params.interrupted=r}wasCancelledAtAll(){return this.params.cancelled||this.params.interrupted}onFinish(){this.params.onFinish(this.params)}onStart(){this.params.onStart(this.params)}onPrefetching(){this.params.onPrefetching(this.params)}onPrefetchResponse(t){this.params.onPrefetchResponse&&this.params.onPrefetchResponse(t)}onPrefetchError(t){this.params.onPrefetchError&&this.params.onPrefetchError(t)}all(){return this.params}headers(){const t={...this.params.headers};this.isPartial()&&(t["X-Inertia-Partial-Component"]=_.get().component);const r=this.params.only.concat(this.params.reset);return r.length>0&&(t["X-Inertia-Partial-Data"]=r.join(",")),this.params.except.length>0&&(t["X-Inertia-Partial-Except"]=this.params.except.join(",")),this.params.reset.length>0&&(t["X-Inertia-Reset"]=this.params.reset.join(",")),this.params.errorBag&&this.params.errorBag.length>0&&(t["X-Inertia-Error-Bag"]=this.params.errorBag),t}setPreserveOptions(t){this.params.preserveScroll=Zt.resolvePreserveOption(this.params.preserveScroll,t),this.params.preserveState=Zt.resolvePreserveOption(this.params.preserveState,t)}runCallbacks(){this.callbacks.forEach(({name:t,args:r})=>{this.params[t](...r)})}merge(t){this.params={...this.params,...t}}wrapCallback(t,r){return(...n)=>{this.recordCallback(r,n),t[r](...n)}}recordCallback(t,r){this.callbacks.push({name:t,args:r})}static resolvePreserveOption(t,r){return typeof t=="function"?t(r):t==="errors"?Object.keys(r.props.errors||{}).length>0:t}},Ps={modal:null,listener:null,createIframeAndPage(e){typeof e=="object"&&(e=`All Inertia requests must receive a valid Inertia response, however a plain JSON response was received.<hr>${JSON.stringify(e)}`);const t=document.createElement("html");t.innerHTML=e,t.querySelectorAll("a").forEach(n=>n.setAttribute("target","_top"));const r=document.createElement("iframe");return r.style.backgroundColor="white",r.style.borderRadius="5px",r.style.width="100%",r.style.height="100%",{iframe:r,page:t}},show(e){const{iframe:t,page:r}=this.createIframeAndPage(e);if(this.modal=document.createElement("div"),this.modal.style.position="fixed",this.modal.style.width="100vw",this.modal.style.height="100vh",this.modal.style.padding="50px",this.modal.style.boxSizing="border-box",this.modal.style.backgroundColor="rgba(0, 0, 0, .6)",this.modal.style.zIndex=2e5,this.modal.addEventListener("click",()=>this.hide()),this.modal.appendChild(t),document.body.prepend(this.modal),document.body.style.overflow="hidden",!t.contentWindow)throw new Error("iframe not yet ready.");t.contentWindow.document.open(),t.contentWindow.document.write(r.outerHTML),t.contentWindow.document.close(),this.listener=this.hideOnEscape.bind(this),document.addEventListener("keydown",this.listener)},hide(){this.modal.outerHTML="",this.modal=null,document.body.style.overflow="visible",document.removeEventListener("keydown",this.listener)},hideOnEscape(e){e.keyCode===27&&this.hide()}},Vh={show(e){const{iframe:t,page:r}=Ps.createIframeAndPage(e);t.style.boxSizing="border-box",t.style.display="block";const n=document.createElement("dialog");n.id="inertia-error-dialog",Object.assign(n.style,{width:"calc(100vw - 100px)",height:"calc(100vh - 100px)",padding:"0",margin:"auto",border:"none",backgroundColor:"transparent"});const o=document.createElement("style");if(o.textContent=`
10
- dialog#inertia-error-dialog::backdrop {
11
- background-color: rgba(0, 0, 0, 0.6);
12
- }
13
-
14
- dialog#inertia-error-dialog:focus {
15
- outline: none;
16
- }
17
- `,document.head.appendChild(o),n.addEventListener("click",i=>{i.target===n&&n.close()}),n.addEventListener("close",()=>{o.remove(),n.remove()}),n.appendChild(t),document.body.prepend(n),n.showModal(),n.focus(),!t.contentWindow)throw new Error("iframe not yet ready.");t.contentWindow.document.open(),t.contentWindow.document.write(r.outerHTML),t.contentWindow.document.close()}},Jh=new po,ca=class Es{constructor(t,r,n){this.requestParams=t,this.response=r,this.originatingPage=n,this.wasPrefetched=!1}static create(t,r,n){return new Es(t,r,n)}async handlePrefetch(){Wn(this.requestParams.all().url,window.location)&&this.handle()}async handle(){return Jh.add(()=>this.process())}async process(){if(this.requestParams.all().prefetch)return this.wasPrefetched=!0,this.requestParams.all().prefetch=!1,this.requestParams.all().onPrefetched(this.response,this.requestParams.all()),Oh(this.response,this.requestParams.all()),Promise.resolve();if(this.requestParams.runCallbacks(),!this.isInertiaResponse())return this.handleNonInertiaResponse();await D.processQueue(),D.preserveUrl=this.requestParams.all().preserveUrl,await this.setPage();const t=_.get().props.errors||{};if(Object.keys(t).length>0){const r=this.getScopedErrors(t);return vh(r),this.requestParams.all().onError(r)}K.flushByCacheTags(this.requestParams.all().invalidateCacheTags||[]),this.wasPrefetched||K.flush(_.get().url),Th(_.get()),await this.requestParams.all().onSuccess(_.get()),D.preserveUrl=!1}mergeParams(t){this.requestParams.merge(t)}async handleNonInertiaResponse(){if(this.isLocationVisit()){const r=Fe(this.getHeader("x-inertia-location"));return aa(this.requestParams.all().url,r),this.locationVisit(r)}const t={...this.response,data:this.getDataFromResponse(this.response.data)};if(Sh(t))return at.get("future.useDialogForErrorModal")?Vh.show(t.data):Ps.show(t.data)}isInertiaResponse(){return this.hasHeader("x-inertia")}hasStatus(t){return this.response.status===t}getHeader(t){return this.response.headers[t]}hasHeader(t){return this.getHeader(t)!==void 0}isLocationVisit(){return this.hasStatus(409)&&this.hasHeader("x-inertia-location")}locationVisit(t){try{if(ue.set(ue.locationVisitKey,{preserveScroll:this.requestParams.all().preserveScroll===!0}),typeof window>"u")return;Wn(window.location,t)?window.location.reload():window.location.href=t.href}catch{return!1}}async setPage(){const t=this.getDataFromResponse(this.response.data);return this.shouldSetPage(t)?(this.mergeProps(t),this.preserveEqualProps(t),await this.setRememberedState(t),this.requestParams.setPreserveOptions(t),t.url=D.preserveUrl?_.get().url:this.pageUrl(t),this.requestParams.all().onBeforeUpdate(t),Ph(t),_.set(t,{replace:this.requestParams.all().replace,preserveScroll:this.requestParams.all().preserveScroll,preserveState:this.requestParams.all().preserveState,viewTransition:this.requestParams.all().viewTransition})):Promise.resolve()}getDataFromResponse(t){if(typeof t!="string")return t;try{return JSON.parse(t)}catch{return t}}shouldSetPage(t){if(!this.requestParams.all().async||this.originatingPage.component!==t.component)return!0;if(this.originatingPage.component!==_.get().component)return!1;const r=Fe(this.originatingPage.url),n=Fe(_.get().url);return r.origin===n.origin&&r.pathname===n.pathname}pageUrl(t){const r=Fe(t.url);return aa(this.requestParams.all().url,r),r.pathname+r.search+r.hash}preserveEqualProps(t){if(t.component!==_.get().component||at.get("future.preserveEqualProps")!==!0)return;const r=_.get().props;Object.entries(t.props).forEach(([n,o])=>{Nt(o,r[n])&&(t.props[n]=r[n])})}mergeProps(t){if(!this.requestParams.isPartial()||t.component!==_.get().component)return;const r=t.mergeProps||[],n=t.prependProps||[],o=t.deepMergeProps||[],i=t.matchPropsOn||[],a=(s,u)=>{const f=Ue(_.get().props,s),c=Ue(t.props,s);if(Array.isArray(c)){const l=this.mergeOrMatchItems(f||[],c,s,i,u);_e(t.props,s,l)}else if(typeof c=="object"&&c!==null){const l={...f||{},...c};_e(t.props,s,l)}};r.forEach(s=>a(s,!0)),n.forEach(s=>a(s,!1)),o.forEach(s=>{const u=_.get().props[s],f=t.props[s],c=(l,m,g)=>Array.isArray(m)?this.mergeOrMatchItems(l,m,g,i):typeof m=="object"&&m!==null?Object.keys(m).reduce((d,v)=>(d[v]=c(l?l[v]:void 0,m[v],`${g}.${v}`),d),{...l}):m;t.props[s]=c(u,f,s)}),t.props={..._.get().props,...t.props},_.get().scrollProps&&(t.scrollProps={..._.get().scrollProps||{},...t.scrollProps||{}})}mergeOrMatchItems(t,r,n,o,i=!0){const a=Array.isArray(t)?t:[],s=o.find(c=>c.split(".").slice(0,-1).join(".")===n);if(!s)return i?[...a,...r]:[...r,...a];const u=s.split(".").pop()||"",f=new Map;return r.forEach(c=>{this.hasUniqueProperty(c,u)&&f.set(c[u],c)}),i?this.appendWithMatching(a,r,f,u):this.prependWithMatching(a,r,f,u)}appendWithMatching(t,r,n,o){const i=t.map(s=>this.hasUniqueProperty(s,o)&&n.has(s[o])?n.get(s[o]):s),a=r.filter(s=>this.hasUniqueProperty(s,o)?!t.some(u=>this.hasUniqueProperty(u,o)&&u[o]===s[o]):!0);return[...i,...a]}prependWithMatching(t,r,n,o){const i=t.filter(a=>this.hasUniqueProperty(a,o)?!n.has(a[o]):!0);return[...r,...i]}hasUniqueProperty(t,r){return t&&typeof t=="object"&&r in t}async setRememberedState(t){const r=await D.getState(D.rememberedState,{});this.requestParams.all().preserveState&&r&&t.component===_.get().component&&(t.rememberedState=r)}getScopedErrors(t){return this.requestParams.all().errorBag?t[this.requestParams.all().errorBag||""]||{}:t}},ua=class As{constructor(t,r){this.page=r,this.requestHasFinished=!1,this.requestParams=zn.create(t),this.cancelToken=new AbortController}static create(t,r){return new As(t,r)}async send(){this.requestParams.onCancelToken(()=>this.cancel({cancelled:!0})),Ah(this.requestParams.all()),this.requestParams.onStart(),this.requestParams.all().prefetch&&(this.requestParams.onPrefetching(),Rh(this.requestParams.all()));const t=this.requestParams.all().prefetch;return V({method:this.requestParams.all().method,url:sr(this.requestParams.all().url).href,data:this.requestParams.data(),params:this.requestParams.queryParams(),signal:this.cancelToken.signal,headers:this.getHeaders(),onUploadProgress:this.onProgress.bind(this),responseType:"text"}).then(r=>(this.response=ca.create(this.requestParams,r,this.page),this.response.handle())).catch(r=>r?.response?(this.response=ca.create(this.requestParams,r.response,this.page),this.response.handle()):Promise.reject(r)).catch(r=>{if(!V.isCancel(r)&&bh(r))return t&&this.requestParams.onPrefetchError(r),Promise.reject(r)}).finally(()=>{this.finish(),t&&this.response&&this.requestParams.onPrefetchResponse(this.response)})}finish(){this.requestParams.wasCancelledAtAll()||(this.requestParams.markAsFinished(),this.fireFinishEvents())}fireFinishEvents(){this.requestHasFinished||(this.requestHasFinished=!0,wh(this.requestParams.all()),this.requestParams.onFinish())}cancel({cancelled:t=!1,interrupted:r=!1}){this.requestHasFinished||(this.cancelToken.abort(),this.requestParams.markAsCancelled({cancelled:t,interrupted:r}),this.fireFinishEvents())}onProgress(t){this.requestParams.data()instanceof FormData&&(t.percentage=t.progress?Math.round(t.progress*100):0,Eh(t),this.requestParams.all().onProgress(t))}getHeaders(){const t={...this.requestParams.headers(),Accept:"text/html, application/xhtml+xml","X-Requested-With":"XMLHttpRequest","X-Inertia":!0};return _.get().version&&(t["X-Inertia-Version"]=_.get().version),t}},fa=class{constructor({maxConcurrent:e,interruptible:t}){this.requests=[],this.maxConcurrent=e,this.interruptible=t}send(e){this.requests.push(e),e.send().then(()=>{this.requests=this.requests.filter(t=>t!==e)})}interruptInFlight(){this.cancel({interrupted:!0},!1)}cancelInFlight(){this.cancel({cancelled:!0},!0)}cancel({cancelled:e=!1,interrupted:t=!1}={},r){if(!this.shouldCancel(r))return;this.requests.shift()?.cancel({interrupted:t,cancelled:e})}shouldCancel(e){return e?!0:this.interruptible&&this.requests.length>=this.maxConcurrent}},Xh=class{constructor(){this.syncRequestStream=new fa({maxConcurrent:1,interruptible:!0}),this.asyncRequestStream=new fa({maxConcurrent:1/0,interruptible:!1})}init({initialPage:e,resolveComponent:t,swapComponent:r}){_.init({initialPage:e,resolveComponent:t,swapComponent:r}),jh.handle(),tt.init(),tt.on("missingHistoryItem",()=>{typeof window<"u"&&this.visit(window.location.href,{preserveState:!0,preserveScroll:!0,replace:!0})}),tt.on("loadDeferredProps",n=>{this.loadDeferredProps(n)})}get(e,t={},r={}){return this.visit(e,{...r,method:"get",data:t})}post(e,t={},r={}){return this.visit(e,{preserveState:!0,...r,method:"post",data:t})}put(e,t={},r={}){return this.visit(e,{preserveState:!0,...r,method:"put",data:t})}patch(e,t={},r={}){return this.visit(e,{preserveState:!0,...r,method:"patch",data:t})}delete(e,t={}){return this.visit(e,{preserveState:!0,...t,method:"delete"})}reload(e={}){if(!(typeof window>"u"))return this.visit(window.location.href,{...e,preserveScroll:!0,preserveState:!0,async:!0,headers:{...e.headers||{},"Cache-Control":"no-cache"}})}remember(e,t="default"){D.remember(e,t)}restore(e="default"){return D.restore(e)}on(e,t){return typeof window>"u"?()=>{}:tt.onGlobalEvent(e,t)}cancel(){this.syncRequestStream.cancelInFlight()}cancelAll(){this.asyncRequestStream.cancelInFlight(),this.syncRequestStream.cancelInFlight()}poll(e,t={},r={}){return Wh.add(e,()=>this.reload(t),{autoStart:r.autoStart??!0,keepAlive:r.keepAlive??!1})}visit(e,t={}){const r=this.getPendingVisit(e,{...t,showProgress:t.showProgress??!t.async}),n=this.getVisitEvents(t);if(n.onBefore(r)===!1||!ia(r))return;const o=r.async?this.asyncRequestStream:this.syncRequestStream;o.interruptInFlight(),!_.isCleared()&&!r.preserveUrl&&ge.save();const i={...r,...n},a=Be.get(i);a?(mt.reveal(a.inFlight),Be.use(a,i)):(mt.reveal(!0),o.send(ua.create(i,_.get())))}getCached(e,t={}){return Be.findCached(this.getPrefetchParams(e,t))}flush(e,t={}){Be.remove(this.getPrefetchParams(e,t))}flushAll(){Be.removeAll()}flushByCacheTags(e){Be.removeByTags(Array.isArray(e)?e:[e])}getPrefetching(e,t={}){return Be.findInFlight(this.getPrefetchParams(e,t))}prefetch(e,t={},r={}){if((t.method??(nt(e)?e.method:"get"))!=="get")throw new Error("Prefetch requests must use the GET method");const o=this.getPendingVisit(e,{...t,async:!0,showProgress:!1,prefetch:!0,viewTransition:!1}),i=o.url.origin+o.url.pathname+o.url.search,a=window.location.origin+window.location.pathname+window.location.search;if(i===a)return;const s=this.getVisitEvents(t);if(s.onBefore(o)===!1||!ia(o))return;mt.hide(),this.asyncRequestStream.interruptInFlight();const u={...o,...s};new Promise(c=>{const l=()=>{_.get()?c():setTimeout(l,50)};l()}).then(()=>{Be.add(u,c=>{this.asyncRequestStream.send(ua.create(c,_.get()))},{cacheFor:at.get("prefetch.cacheFor"),cacheTags:[],...r})})}clearHistory(){D.clear()}decryptHistory(){return D.decrypt()}resolveComponent(e){return _.resolve(e)}replace(e){this.clientVisit(e,{replace:!0})}replaceProp(e,t,r){this.replace({preserveScroll:!0,preserveState:!0,props(n){const o=typeof t=="function"?t(Ue(n,e),n):t;return _e(ce(n),e,o)},...r||{}})}appendToProp(e,t,r){this.replaceProp(e,(n,o)=>{const i=typeof t=="function"?t(n,o):t;return Array.isArray(n)||(n=n!==void 0?[n]:[]),[...n,i]},r)}prependToProp(e,t,r){this.replaceProp(e,(n,o)=>{const i=typeof t=="function"?t(n,o):t;return Array.isArray(n)||(n=n!==void 0?[n]:[]),[i,...n]},r)}push(e){this.clientVisit(e)}clientVisit(e,{replace:t=!1}={}){const r=_.get(),n=typeof e.props=="function"?e.props(r.props):e.props??r.props,{viewTransition:o,onError:i,onFinish:a,onSuccess:s,...u}=e,f={...r,...u,props:n},c=zn.resolvePreserveOption(e.preserveScroll??!1,f),l=zn.resolvePreserveOption(e.preserveState??!1,f);_.set(f,{replace:t,preserveScroll:c,preserveState:l,viewTransition:o}).then(()=>{const m=_.get().props.errors||{};if(Object.keys(m).length===0)return s?.(_.get());const g=e.errorBag?m[e.errorBag||""]||{}:m;return i?.(g)}).finally(()=>a?.(e))}getPrefetchParams(e,t){return{...this.getPendingVisit(e,{...t,async:!0,showProgress:!1,prefetch:!0,viewTransition:!1}),...this.getVisitEvents(t)}}getPendingVisit(e,t,r={}){if(nt(e)){const f=e;e=f.url,t.method=t.method??f.method}const n=at.get("visitOptions"),o=n?n(e.toString(),ce(t))||{}:{},i={method:"get",data:{},replace:!1,preserveScroll:!1,preserveState:!1,only:[],except:[],headers:{},errorBag:"",forceFormData:!1,queryStringArrayFormat:"brackets",async:!1,showProgress:!0,fresh:!1,reset:[],preserveUrl:!1,prefetch:!1,invalidateCacheTags:[],viewTransition:!1,...t,...o},[a,s]=Nh(e,i.data,i.method,i.forceFormData,i.queryStringArrayFormat),u={cancelled:!1,completed:!1,interrupted:!1,...i,...r,url:a,data:s};return u.prefetch&&(u.headers.Purpose="prefetch"),u}getVisitEvents(e){return{onCancelToken:e.onCancelToken||(()=>{}),onBefore:e.onBefore||(()=>{}),onBeforeUpdate:e.onBeforeUpdate||(()=>{}),onStart:e.onStart||(()=>{}),onProgress:e.onProgress||(()=>{}),onFinish:e.onFinish||(()=>{}),onCancel:e.onCancel||(()=>{}),onSuccess:e.onSuccess||(()=>{}),onError:e.onError||(()=>{}),onPrefetched:e.onPrefetched||(()=>{}),onPrefetching:e.onPrefetching||(()=>{})}}loadDeferredProps(e){e&&Object.entries(e).forEach(([t,r])=>{this.reload({only:r})})}},Rn=e=>{if(e.offsetParent===null)return!1;const t=e.getBoundingClientRect(),r=t.top<window.innerHeight&&t.bottom>=0,n=t.left<window.innerWidth&&t.right>=0;return r&&n},Qh=e=>{const t=i=>{const a=window.getComputedStyle(i);return["scroll","overlay"].includes(a.overflowY)?!0:a.overflowY!=="auto"?!1:["visible","clip"].includes(a.overflowX)?!0:n(a.maxHeight,i.style.height)},r=i=>{const a=window.getComputedStyle(i);return["scroll","overlay"].includes(a.overflowX)?!0:a.overflowX!=="auto"?!1:["visible","clip"].includes(a.overflowY)?!0:n(a.maxWidth,i.style.width)},n=(i,a)=>!!(i&&i!=="none"&&i!=="0px"||a&&a!=="auto"&&a!=="0");let o=e?.parentElement;for(;o;){const i=t(o)||r(o);if(window.getComputedStyle(o).display!=="contents"&&i)return o;o=o.parentElement}return null},Ts=(e,t)=>{if(!t)return e.filter(i=>Rn(i));const r=e.indexOf(t),n=[],o=[];for(let i=r;i>=0;i--){const a=e[i];if(Rn(a))n.push(a);else break}for(let i=r+1;i<e.length;i++){const a=e[i];if(Rn(a))o.push(a);else break}return[...n.reverse(),...o]},Gn=(e,t=1)=>{window.requestAnimationFrame(()=>{t>1?Gn(e,t-1):e()})};function Yh(e){if(!e.includes("."))return e;const t=r=>r.startsWith("[")&&r.endsWith("]")?r:r.split(".").reduce((n,o,i)=>i===0?o:`${n}[${o}]`);return e.replace(/\\\./g,"__ESCAPED_DOT__").split(/(\[[^\]]*\])/).filter(Boolean).map(t).join("").replace(/__ESCAPED_DOT__/g,".")}function Zh(e){const t=[],r=/([^\[\]]+)|\[(\d*)\]/g;let n;for(;(n=r.exec(e))!==null;)n[1]!==void 0?t.push(n[1]):n[2]!==void 0&&t.push(n[2]===""?"":Number(n[2]));return t}function ey(e,t,r){let n=e;for(let o=0;o<t.length-1;o++)t[o]in n||(n[t[o]]={}),n=n[t[o]];n[t[t.length-1]]=r}function ty(e){const t=Object.keys(e),r=t.filter(n=>/^\d+$/.test(n)).map(Number).sort((n,o)=>n-o);return t.length===r.length&&r.length>0&&r[0]===0&&r.every((n,o)=>n===o)}function er(e){if(Array.isArray(e))return e.map(er);if(typeof e!="object"||e===null||uo(e))return e;if(ty(e)){const r=[];for(let n=0;n<Object.keys(e).length;n++)r[n]=er(e[n]);return r}const t={};for(const r in e)t[r]=er(e[r]);return t}function da(e){const t={};for(const[r,n]of e.entries()){if(n instanceof File&&n.size===0&&n.name==="")continue;const o=Zh(Yh(r));if(o[o.length-1]===""){const i=o.slice(0,-1),a=Ue(t,i);if(Array.isArray(a))a.push(n);else if(a&&typeof a=="object"&&!uo(a)){const s=Object.keys(a).filter(u=>/^\d+$/.test(u)).map(Number).sort((u,f)=>u-f);_e(t,i,s.length>0?[...s.map(u=>a[u]),n]:[n])}else _e(t,i,[n]);continue}ey(t,o.map(String),n)}return er(t)}var Cn={preferredAttribute(){return at.get("future.useDataInertiaHeadAttribute")?"data-inertia":"inertia"},buildDOMElement(e){const t=document.createElement("template");t.innerHTML=e;const r=t.content.firstChild;if(!e.startsWith("<script "))return r;const n=document.createElement("script");return n.innerHTML=r.innerHTML,r.getAttributeNames().forEach(o=>{n.setAttribute(o,r.getAttribute(o)||"")}),n},isInertiaManagedElement(e){return e.nodeType===Node.ELEMENT_NODE&&e.getAttribute(this.preferredAttribute())!==null},findMatchingElementIndex(e,t){const r=this.preferredAttribute(),n=e.getAttribute(r);return n!==null?t.findIndex(o=>o.getAttribute(r)===n):-1},update:Dt(function(e){const t=e.map(n=>this.buildDOMElement(n));Array.from(document.head.childNodes).filter(n=>this.isInertiaManagedElement(n)).forEach(n=>{const o=this.findMatchingElementIndex(n,t);if(o===-1){n?.parentNode?.removeChild(n);return}const i=t.splice(o,1)[0];i&&!n.isEqualNode(i)&&n?.parentNode?.replaceChild(i,n)}),t.forEach(n=>document.head.appendChild(n))},1)};function ry(e,t,r){const n={};let o=0;function i(){const l=o+=1;return n[l]=[],l.toString()}function a(l){l===null||Object.keys(n).indexOf(l)===-1||(delete n[l],c())}function s(l){Object.keys(n).indexOf(l)===-1&&(n[l]=[])}function u(l,m=[]){l!==null&&Object.keys(n).indexOf(l)>-1&&(n[l]=m),c()}function f(){const l=t(""),m=Cn.preferredAttribute(),g={...l?{title:`<title ${m}="">${l}</title>`}:{}},d=Object.values(n).reduce((v,p)=>v.concat(p),[]).reduce((v,p)=>{if(p.indexOf("<")===-1)return v;if(p.indexOf("<title ")===0){const h=p.match(/(<title [^>]+>)(.*?)(<\/title>)/);return v.title=h?`${h[1]}${t(h[2])}${h[3]}`:p,v}const y=p.match(m==="inertia"?/ inertia="[^"]+"/:/ data-inertia="[^"]+"/);return y?v[y[0]]=p:v[Object.keys(v).length]=p,v},g);return Object.values(d)}function c(){e?r(f()):Cn.update(f())}return c(),{forceUpdate:c,createProvider:function(){const l=i();return{preferredAttribute:Cn.preferredAttribute,reconnect:()=>s(l),update:m=>u(l,m),disconnect:()=>a(l)}}}}var ny="X-Inertia-Infinite-Scroll-Merge-Intent",oy=e=>{const t=()=>{const y=_.get().scrollProps?.[e.getPropName()];if(y)return y;throw new Error(`The page object does not contain a scroll prop named "${e.getPropName()}".`)},r={component:null,loading:!1,previousPage:null,nextPage:null,lastLoadedPage:null,requestCount:0},n=()=>{const y=t();r.component=_.get().component,r.loading=!1,r.previousPage=y.previousPage,r.nextPage=y.nextPage,r.lastLoadedPage=y.currentPage,r.requestCount=0},o=()=>`inertia:infinite-scroll-data:${e.getPropName()}`;if(typeof window<"u"){n();const y=K.restore(o());y&&typeof y=="object"&&(r.previousPage=y.previousPage,r.nextPage=y.nextPage,r.lastLoadedPage=y.lastLoadedPage,r.requestCount=y.requestCount||0)}const i=K.on("success",y=>{r.component===y.detail.page.component&&t().reset&&n()}),a=y=>y==="next"?"nextPage":"previousPage",s=y=>{const h=a(y);return r[h]},u=y=>{const h=t(),P=a(y);r.lastLoadedPage=h.currentPage,r[P]=h[P],r.requestCount+=1,K.remember({previousPage:r.previousPage,nextPage:r.nextPage,lastLoadedPage:r.lastLoadedPage,requestCount:r.requestCount},o())},f=()=>t().pageName,c=()=>r.requestCount,l=(y,h={})=>{const P=s(y);r.loading||P===null||(r.loading=!0,K.reload({...h,data:{[f()]:P},only:[e.getPropName()],preserveUrl:!0,headers:{[ny]:y==="previous"?"prepend":"append",...h.headers},onBefore:E=>{y==="next"?e.onBeforeNextRequest():e.onBeforePreviousRequest(),h.onBefore?.(E)},onBeforeUpdate:E=>{e.onBeforeUpdate(),h.onBeforeUpdate?.(E)},onSuccess:E=>{u(y),h.onSuccess?.(E)},onFinish:E=>{r.loading=!1,y==="next"?e.onCompleteNextRequest(r.lastLoadedPage):e.onCompletePreviousRequest(r.lastLoadedPage),h.onFinish?.(E)}}))};return{getLastLoadedPage:()=>r.lastLoadedPage,getPageName:f,getRequestCount:c,hasPrevious:()=>!!r.previousPage,hasNext:()=>!!r.nextPage,fetchNext:y=>l("next",y),fetchPrevious:y=>l("previous",y),removeEventListener:i}},iy=()=>{const e=[];return{new:(n,o={})=>{const i=new IntersectionObserver(a=>{for(const s of a)s.isIntersecting&&n(s)},o);return e.push(i),i},flushAll:()=>{e.forEach(n=>n.disconnect()),e.length=0}}},tr="infiniteScrollPage",xn="infiniteScrollIgnore",Os=e=>e.dataset[tr],ay=e=>{const t=iy();let r,n,o,i,a=!1;const s=()=>{i=new MutationObserver(T=>{T.forEach(C=>{C.addedNodes.forEach(I=>{I.nodeType===Node.ELEMENT_NODE&&m.add(I)})}),E()}),i.observe(e.getItemsElement(),{childList:!0}),r=t.new(T=>e.onItemIntersected(T.target));const A={root:e.getScrollableParent(),rootMargin:`${Math.max(1,e.getTriggerMargin())}px`};n=t.new(e.onPreviousTriggered,A),o=t.new(e.onNextTriggered,A)},u=()=>{a&&f();const A=e.getStartElement(),T=e.getEndElement();A&&e.shouldFetchPrevious()&&n.observe(A),T&&e.shouldFetchNext()&&o.observe(T),a=!0},f=()=>{a&&(n.disconnect(),o.disconnect(),a=!1)},c=()=>{a&&u()},l=()=>{f(),t.flushAll(),i?.disconnect()},m=new Set,g=A=>!(tr in A.dataset)&&!(xn in A.dataset),d=()=>{Array.from(m).forEach(A=>{g(A)&&(A.dataset[xn]="true"),r.observe(A)}),m.clear()},v=A=>Array.from(A.querySelectorAll(":scope > *:not([data-infinite-scroll-page]):not([data-infinite-scroll-ignore])"));let p=!1;const y=A=>{!p&&(p=!0,O())||(v(e.getItemsElement()).forEach(T=>{g(T)&&(T.dataset[tr]=A?.toString()||"1"),r.observe(T)}),P())},h=()=>`inertia:infinite-scroll-elements:${e.getPropName()}`,P=()=>{const A={},T=e.getItemsElement().childNodes;for(let C=0;C<T.length;C++){const I=T[C];if(I.nodeType!==Node.ELEMENT_NODE)continue;const F=Os(I);typeof F>"u"||(F in A?A[F].to=C:A[F]={from:C,to:C})}K.remember(A,h())},E=Dt(P,250),O=()=>{const A=K.restore(h());if(!A||typeof A!="object")return!1;const T=e.getItemsElement().childNodes;for(let C=0;C<T.length;C++){const I=T[C];if(I.nodeType!==Node.ELEMENT_NODE)continue;const F=I;let M;for(const[x,W]of Object.entries(A))if(C>=W.from&&C<=W.to){M=x;break}if(M)F.dataset[tr]=M;else if(g(F))F.dataset[xn]="true";else continue;r.observe(F)}return!0};return{setupObservers:s,enableTriggers:u,disableTriggers:f,refreshTriggers:c,flushAll:l,processManuallyAddedElements:d,processServerLoadedElements:y}},sy=new po,yt,Xe,Gt=null,ly=e=>{let t=!0;const r=o=>{sy.add(()=>new Promise(i=>{if(!t)return yt=Xe=null,i();if(!yt||!Xe){const u=_.get().url;yt=Fe(u),Xe=Fe(u),Gt=ws(u)}const a=e.getPageName(),s=Xe.searchParams;o==="1"?s.delete(a):s.set(a,o),setTimeout(()=>i())})).finally(()=>{t&&yt&&Xe&&yt.href!==Xe.href&&Gt!==null&&K.replace({url:Dh(Xe,Gt),preserveScroll:!0,preserveState:!0}),yt=Xe=Gt=null})};return{onItemIntersected:Dt(o=>{const i=e.getItemsElement();if(!t||e.shouldPreserveUrl()||!o||!i)return;const a=new Map,s=[...i.children];Ts(s,o).forEach(c=>{const l=Os(c)??"1";a.has(l)?a.set(l,a.get(l)+1):a.set(l,1)});const f=Array.from(a.entries()).sort((c,l)=>l[1]-c[1])[0]?.[0];f!==void 0&&r(f)},250),cancel:()=>t=!1}},cy=e=>({createCallbacks:()=>{let r,n=null,o=0;return{captureScrollPosition:()=>{const s=e.getScrollableParent(),u=e.getItemsElement();r=s?.scrollTop||window.scrollY;const f=Ts([...u.children]);if(f.length>0){n=f[0];const c=s?.getBoundingClientRect()||{top:0},l=s?c.top:0;o=n.getBoundingClientRect().top-l}},restoreScrollPosition:()=>{if(!n)return;let s=0,u=!1;const f=()=>{if(s++,u||s>10)return!1;const c=e.getScrollableParent(),l=c?.getBoundingClientRect()||{top:0},m=c?l.top:0,v=n.getBoundingClientRect().top-m-o;if(v===0){window.requestAnimationFrame(f);return}c?c.scrollTo({top:r+v}):window.scrollTo(0,window.scrollY+v),u=!0};window.requestAnimationFrame(f)}}}});function uy(e){const t=ly({...e,getPageName:()=>o.getPageName()}),r=cy(e),n=ay({...e,onItemIntersected:t.onItemIntersected,onPreviousTriggered:()=>o.fetchPrevious(),onNextTriggered:()=>o.fetchNext()}),o=oy({...e,onBeforeUpdate:n.processManuallyAddedElements,onCompletePreviousRequest:u=>{e.onCompletePreviousRequest(),Gn(()=>{n.processServerLoadedElements(u),n.refreshTriggers()},2)},onCompleteNextRequest:u=>{e.onCompleteNextRequest(),Gn(()=>{n.processServerLoadedElements(u),n.refreshTriggers()},2)}}),i=u=>{const{captureScrollPosition:f,restoreScrollPosition:c}=r.createCallbacks(),l=u.onBeforeUpdate||(()=>{}),m=u.onSuccess||(()=>{});return u.onBeforeUpdate=g=>{l(g),f()},u.onSuccess=g=>{m(g),c()},u},a=o.fetchNext;o.fetchNext=(u={})=>{e.inReverseMode()&&(u=i(u)),a(u)};const s=o.fetchPrevious;return o.fetchPrevious=(u={})=>{e.inReverseMode()||(u=i(u)),s(u)},{dataManager:o,elementManager:n,flush:()=>{o.removeEventListener(),n.flushAll(),t.cancel()}}}function Rs(e){return e.target instanceof HTMLElement&&e.target.isContentEditable||e.defaultPrevented}function Kt(e){const t=e.currentTarget.tagName.toLowerCase()==="a";return!(Rs(e)||t&&e.altKey||t&&e.ctrlKey||t&&e.metaKey||t&&e.shiftKey||t&&"button"in e&&e.button!==0)}function pa(e){const t=e.currentTarget.tagName.toLowerCase()==="button";return!Rs(e)&&(e.key==="Enter"||t&&e.key===" ")}var Y="nprogress",Ae,Z={minimum:.08,easing:"linear",positionUsing:"translate3d",speed:200,trickle:!0,trickleSpeed:200,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",color:"#29d",includeCSS:!0,template:['<div class="bar" role="bar">','<div class="peg"></div>',"</div>",'<div class="spinner" role="spinner">','<div class="spinner-icon"></div>',"</div>"].join("")},Ye=null,fy=e=>{Object.assign(Z,e),Z.includeCSS&&gy(Z.color),Ae=document.createElement("div"),Ae.id=Y,Ae.innerHTML=Z.template},vr=e=>{const t=Cs();e=Is(e,Z.minimum,1),Ye=e===1?null:e;const r=py(!t),n=r.querySelector(Z.barSelector),o=Z.speed,i=Z.easing;r.offsetWidth,my(a=>{const s=Z.positionUsing==="translate3d"?{transition:`all ${o}ms ${i}`,transform:`translate3d(${rr(e)}%,0,0)`}:Z.positionUsing==="translate"?{transition:`all ${o}ms ${i}`,transform:`translate(${rr(e)}%,0)`}:{marginLeft:`${rr(e)}%`};for(const u in s)n.style[u]=s[u];if(e!==1)return setTimeout(a,o);r.style.transition="none",r.style.opacity="1",r.offsetWidth,setTimeout(()=>{r.style.transition=`all ${o}ms linear`,r.style.opacity="0",setTimeout(()=>{$s(),r.style.transition="",r.style.opacity="",a()},o)},o)})},Cs=()=>typeof Ye=="number",xs=()=>{Ye||vr(0);const e=function(){setTimeout(function(){Ye&&(_s(),e())},Z.trickleSpeed)};Z.trickle&&e()},dy=e=>{!e&&!Ye||(_s(.3+.5*Math.random()),vr(1))},_s=e=>{const t=Ye;if(t===null)return xs();if(!(t>1))return e=typeof e=="number"?e:(()=>{const r={.1:[0,.2],.04:[.2,.5],.02:[.5,.8],.005:[.8,.99]};for(const n in r)if(t>=r[n][0]&&t<r[n][1])return parseFloat(n);return 0})(),vr(Is(t+e,0,.994))},py=e=>{if(hy())return document.getElementById(Y);document.documentElement.classList.add(`${Y}-busy`);const t=Ae.querySelector(Z.barSelector),r=e?"-100":rr(Ye||0),n=Fs();return t.style.transition="all 0 linear",t.style.transform=`translate3d(${r}%,0,0)`,Z.showSpinner||Ae.querySelector(Z.spinnerSelector)?.remove(),n!==document.body&&n.classList.add(`${Y}-custom-parent`),n.appendChild(Ae),Ae},Fs=()=>yy(Z.parent)?Z.parent:document.querySelector(Z.parent),$s=()=>{document.documentElement.classList.remove(`${Y}-busy`),Fs().classList.remove(`${Y}-custom-parent`),Ae?.remove()},hy=()=>document.getElementById(Y)!==null,yy=e=>typeof HTMLElement=="object"?e instanceof HTMLElement:e&&typeof e=="object"&&e.nodeType===1&&typeof e.nodeName=="string";function Is(e,t,r){return e<t?t:e>r?r:e}var rr=e=>(-1+e)*100,my=(()=>{const e=[],t=()=>{const r=e.shift();r&&r(t)};return r=>{e.push(r),e.length===1&&t()}})(),gy=e=>{const t=document.createElement("style");t.textContent=`
18
- #${Y} {
19
- pointer-events: none;
20
- }
21
-
22
- #${Y} .bar {
23
- background: ${e};
24
-
25
- position: fixed;
26
- z-index: 1031;
27
- top: 0;
28
- left: 0;
29
-
30
- width: 100%;
31
- height: 2px;
32
- }
33
-
34
- #${Y} .peg {
35
- display: block;
36
- position: absolute;
37
- right: 0px;
38
- width: 100px;
39
- height: 100%;
40
- box-shadow: 0 0 10px ${e}, 0 0 5px ${e};
41
- opacity: 1.0;
42
-
43
- transform: rotate(3deg) translate(0px, -4px);
44
- }
45
-
46
- #${Y} .spinner {
47
- display: block;
48
- position: fixed;
49
- z-index: 1031;
50
- top: 15px;
51
- right: 15px;
52
- }
53
-
54
- #${Y} .spinner-icon {
55
- width: 18px;
56
- height: 18px;
57
- box-sizing: border-box;
58
-
59
- border: solid 2px transparent;
60
- border-top-color: ${e};
61
- border-left-color: ${e};
62
- border-radius: 50%;
63
-
64
- animation: ${Y}-spinner 400ms linear infinite;
65
- }
66
-
67
- .${Y}-custom-parent {
68
- overflow: hidden;
69
- position: relative;
70
- }
71
-
72
- .${Y}-custom-parent #${Y} .spinner,
73
- .${Y}-custom-parent #${Y} .bar {
74
- position: absolute;
75
- }
76
-
77
- @keyframes ${Y}-spinner {
78
- 0% { transform: rotate(0deg); }
79
- 100% { transform: rotate(360deg); }
80
- }
81
- `,document.head.appendChild(t)},vy=()=>{Ae&&(Ae.style.display="")},by=()=>{Ae&&(Ae.style.display="none")},qe={configure:fy,isStarted:Cs,done:dy,set:vr,remove:$s,start:xs,status:Ye,show:vy,hide:by},wy=class{constructor(){this.hideCount=0}start(){qe.start()}reveal(e=!1){this.hideCount=Math.max(0,this.hideCount-1),(e||this.hideCount===0)&&qe.show()}hide(){this.hideCount++,qe.hide()}set(e){qe.set(Math.max(0,Math.min(1,e)))}finish(){qe.done()}reset(){qe.set(0)}remove(){qe.done(),qe.remove()}isStarted(){return qe.isStarted()}getStatus(){return qe.status}},mt=new wy;mt.reveal;mt.hide;function Kn(e){return e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement}function Sy(e,t){const r=e.value,n=e.checked;switch(e.type.toLowerCase()){case"checkbox":e.checked=t.includes(e.value);break;case"radio":e.checked=t[0]===e.value;break;case"file":e.value="";break;case"button":case"submit":case"reset":case"image":break;default:e.value=t[0]!==null&&t[0]!==void 0?String(t[0]):""}return e.value!==r||e.checked!==n}function Py(e,t){const r=e.value,n=Array.from(e.selectedOptions).map(a=>a.value);if(e.multiple){const a=t.map(s=>String(s));Array.from(e.options).forEach(s=>{s.selected=a.includes(s.value)})}else e.value=t[0]!==void 0?String(t[0]):"";const o=Array.from(e.selectedOptions).map(a=>a.value);return e.multiple?JSON.stringify(n.sort())!==JSON.stringify(o.sort()):e.value!==r}function _n(e,t){if(e.disabled){if(e instanceof HTMLInputElement){const r=e.value,n=e.checked;switch(e.type.toLowerCase()){case"checkbox":case"radio":return e.checked=e.defaultChecked,e.checked!==n;case"file":return e.value="",r!=="";case"button":case"submit":case"reset":case"image":return!1;default:return e.value=e.defaultValue,e.value!==r}}else if(e instanceof HTMLSelectElement){const r=Array.from(e.selectedOptions).map(o=>o.value);Array.from(e.options).forEach(o=>{o.selected=o.defaultSelected});const n=Array.from(e.selectedOptions).map(o=>o.value);return JSON.stringify(r.sort())!==JSON.stringify(n.sort())}else if(e instanceof HTMLTextAreaElement){const r=e.value;return e.value=e.defaultValue,e.value!==r}return!1}if(e instanceof HTMLInputElement)return Sy(e,t);if(e instanceof HTMLSelectElement)return Py(e,t);if(e instanceof HTMLTextAreaElement){const r=e.value;return e.value=t[0]!==void 0?String(t[0]):"",e.value!==r}return!1}function Ey(e,t){let r=!1;return e instanceof RadioNodeList||e instanceof HTMLCollection?Array.from(e).forEach((n,o)=>{if(n instanceof Element&&Kn(n))if(n instanceof HTMLInputElement&&["checkbox","radio"].includes(n.type.toLowerCase()))_n(n,t)&&(r=!0);else{const i=t[o]!==void 0?[t[o]]:[t[0]??null].filter(Boolean);_n(n,i)&&(r=!0)}}):Kn(e)&&(r=_n(e,t)),r}function Ay(e,t,r){if(!e)return;if(!r||r.length===0){const o=new FormData(e),i=Array.from(e.elements).map(a=>Kn(a)?a.name:"").filter(Boolean);r=[...new Set([...t.keys(),...o.keys(),...i])]}let n=!1;r.forEach(o=>{const i=e.elements.namedItem(o);i&&Ey(i,t.getAll(o))&&(n=!0)}),n&&e.dispatchEvent(new Event("reset",{bubbles:!0}))}var K=new Xh;function qs(e,t){const r=typeof e=="string"?e:null,n=(typeof e=="string"?t:e)??{},o=r?K.restore(r):null;let i=ce(typeof n=="function"?n():n),a=null,s,u=l=>l,f=!1;const c=R.reactive({...o?o.data:ce(i),isDirty:!1,errors:o?o.errors:{},hasErrors:!1,processing:!1,progress:null,wasSuccessful:!1,recentlySuccessful:!1,data(){return Object.keys(i).reduce((l,m)=>_e(l,m,Ue(this,m)),{})},transform(l){return u=l,this},defaults(l,m){if(typeof n=="function")throw new Error("You cannot call `defaults()` when using a function to define your form data.");return f=!0,typeof l>"u"?(i=ce(this.data()),this.isDirty=!1):i=typeof l=="string"?_e(ce(i),l,m):Object.assign({},ce(i),l),this},reset(...l){const m=ce(typeof n=="function"?n():i),g=ce(m);return l.length===0?(i=g,Object.assign(this,m)):l.filter(d=>Na(g,d)).forEach(d=>{_e(i,d,Ue(g,d)),_e(this,d,Ue(m,d))}),this},setError(l,m){return Object.assign(this.errors,typeof l=="string"?{[l]:m}:l),this.hasErrors=Object.keys(this.errors).length>0,this},clearErrors(...l){return this.errors=Object.keys(this.errors).reduce((m,g)=>({...m,...l.length>0&&!l.includes(g)?{[g]:this.errors[g]}:{}}),{}),this.hasErrors=Object.keys(this.errors).length>0,this},resetAndClearErrors(...l){return this.reset(...l),this.clearErrors(...l),this},submit(...l){const m=l[0]!==null&&typeof l[0]=="object",g=m?l[0].method:l[0],d=m?l[0].url:l[1],v=(m?l[1]:l[2])??{};f=!1;const p={...v,onCancelToken:h=>{if(a=h,v.onCancelToken)return v.onCancelToken(h)},onBefore:h=>{if(this.wasSuccessful=!1,this.recentlySuccessful=!1,clearTimeout(s),v.onBefore)return v.onBefore(h)},onStart:h=>{if(this.processing=!0,v.onStart)return v.onStart(h)},onProgress:h=>{if(this.progress=h,v.onProgress)return v.onProgress(h)},onSuccess:async h=>{this.processing=!1,this.progress=null,this.clearErrors(),this.wasSuccessful=!0,this.recentlySuccessful=!0,s=setTimeout(()=>this.recentlySuccessful=!1,lr.get("form.recentlySuccessfulDuration"));const P=v.onSuccess?await v.onSuccess(h):null;return f||(i=ce(this.data()),this.isDirty=!1),P},onError:h=>{if(this.processing=!1,this.progress=null,this.clearErrors().setError(h),v.onError)return v.onError(h)},onCancel:()=>{if(this.processing=!1,this.progress=null,v.onCancel)return v.onCancel()},onFinish:h=>{if(this.processing=!1,this.progress=null,a=null,v.onFinish)return v.onFinish(h)}},y=u(this.data());g==="delete"?K.delete(d,{...p,data:y}):K[g](d,y,p)},get(l,m){this.submit("get",l,m)},post(l,m){this.submit("post",l,m)},put(l,m){this.submit("put",l,m)},patch(l,m){this.submit("patch",l,m)},delete(l,m){this.submit("delete",l,m)},cancel(){a&&a.cancel()},__rememberable:r===null,__remember(){return{data:this.data(),errors:this.errors}},__restore(l){Object.assign(this,l.data),this.setError(l.errors)}});return R.watch(c,l=>{c.isDirty=!Nt(c.data(),i),r&&K.remember(ce(l.__remember()),r)},{immediate:!0,deep:!0}),c}var me=R.ref(void 0),ae=R.ref(),Fn=R.shallowRef(null),Vt=R.ref(void 0),ha;R.defineComponent({name:"Inertia",props:{initialPage:{type:Object,required:!0},initialComponent:{type:Object,required:!1},resolveComponent:{type:Function,required:!1},titleCallback:{type:Function,required:!1,default:e=>e},onHeadUpdate:{type:Function,required:!1,default:()=>()=>{}}},setup({initialPage:e,initialComponent:t,resolveComponent:r,titleCallback:n,onHeadUpdate:o}){me.value=t?R.markRaw(t):void 0,ae.value=e,Vt.value=void 0;const i=typeof window>"u";return ha=ry(i,n||(a=>a),o||(()=>{})),i||(K.init({initialPage:e,resolveComponent:r,swapComponent:async a=>{me.value=R.markRaw(a.component),ae.value=a.page,Vt.value=a.preserveState?Vt.value:Date.now()}}),K.on("navigate",()=>ha.forceUpdate())),()=>{if(me.value){me.value.inheritAttrs=!!me.value.inheritAttrs;const a=R.h(me.value,{...ae.value.props,key:Vt.value});return Fn.value&&(me.value.layout=Fn.value,Fn.value=null),me.value.layout?typeof me.value.layout=="function"?me.value.layout(R.h,a):(Array.isArray(me.value.layout)?me.value.layout:[me.value.layout]).concat(a).reverse().reduce((s,u)=>(u.inheritAttrs=!!u.inheritAttrs,R.h(u,{...ae.value.props},()=>s))):a}}}});function Ns(){return R.reactive({props:R.computed(()=>ae.value?.props),url:R.computed(()=>ae.value?.url),component:R.computed(()=>ae.value?.component),version:R.computed(()=>ae.value?.version),clearHistory:R.computed(()=>ae.value?.clearHistory),deferredProps:R.computed(()=>ae.value?.deferredProps),mergeProps:R.computed(()=>ae.value?.mergeProps),prependProps:R.computed(()=>ae.value?.prependProps),deepMergeProps:R.computed(()=>ae.value?.deepMergeProps),matchPropsOn:R.computed(()=>ae.value?.matchPropsOn),rememberedState:R.computed(()=>ae.value?.rememberedState),encryptHistory:R.computed(()=>ae.value?.encryptHistory)})}R.defineComponent({name:"Deferred",props:{data:{type:[String,Array],required:!0}},render(){const e=Array.isArray(this.$props.data)?this.$props.data:[this.$props.data];if(!this.$slots.fallback)throw new Error("`<Deferred>` requires a `<template #fallback>` slot");return e.every(t=>this.$page.props[t]!==void 0)?this.$slots.default?.():this.$slots.fallback()}});var Le=()=>{};R.defineComponent({name:"Form",slots:Object,props:{action:{type:[String,Object],default:""},method:{type:String,default:"get"},headers:{type:Object,default:()=>({})},queryStringArrayFormat:{type:String,default:"brackets"},errorBag:{type:[String,null],default:null},showProgress:{type:Boolean,default:!0},transform:{type:Function,default:e=>e},options:{type:Object,default:()=>({})},resetOnError:{type:[Boolean,Array],default:!1},resetOnSuccess:{type:[Boolean,Array],default:!1},setDefaultsOnSuccess:{type:Boolean,default:!1},onCancelToken:{type:Function,default:Le},onBefore:{type:Function,default:Le},onStart:{type:Function,default:Le},onProgress:{type:Function,default:Le},onFinish:{type:Function,default:Le},onCancel:{type:Function,default:Le},onSuccess:{type:Function,default:Le},onError:{type:Function,default:Le},onSubmitComplete:{type:Function,default:Le},disableWhileProcessing:{type:Boolean,default:!1},invalidateCacheTags:{type:[String,Array],default:()=>[]}},setup(e,{slots:t,attrs:r,expose:n}){const o=qs({}),i=R.ref(),a=R.computed(()=>nt(e.action)?e.action.method:e.method.toLowerCase()),s=R.ref(!1),u=R.ref(new FormData),f=h=>{s.value=h.type==="reset"?!1:!Nt(m(),da(u.value))},c=["input","change","reset"];R.onMounted(()=>{u.value=l(),c.forEach(h=>i.value.addEventListener(h,f))}),R.onBeforeUnmount(()=>c.forEach(h=>i.value?.removeEventListener(h,f)));const l=()=>new FormData(i.value),m=()=>da(l()),g=()=>{const[h,P]=fo(a.value,nt(e.action)?e.action.url:e.action,m(),e.queryStringArrayFormat),E=A=>{A&&(A===!0?d():A.length>0&&d(...A))},O={headers:e.headers,queryStringArrayFormat:e.queryStringArrayFormat,errorBag:e.errorBag,showProgress:e.showProgress,invalidateCacheTags:e.invalidateCacheTags,onCancelToken:e.onCancelToken,onBefore:e.onBefore,onStart:e.onStart,onProgress:e.onProgress,onFinish:e.onFinish,onCancel:e.onCancel,onSuccess:(...A)=>{e.onSuccess?.(...A),e.onSubmitComplete?.(y),E(e.resetOnSuccess),e.setDefaultsOnSuccess===!0&&p()},onError:(...A)=>{e.onError?.(...A),E(e.resetOnError)},...e.options};o.transform(()=>e.transform(P)).submit(a.value,h,O)},d=(...h)=>{Ay(i.value,u.value,h)},v=(...h)=>{o.clearErrors(...h),d(...h)},p=()=>{u.value=l(),s.value=!1},y={get errors(){return o.errors},get hasErrors(){return o.hasErrors},get processing(){return o.processing},get progress(){return o.progress},get wasSuccessful(){return o.wasSuccessful},get recentlySuccessful(){return o.recentlySuccessful},clearErrors:(...h)=>o.clearErrors(...h),resetAndClearErrors:v,setError:(h,P)=>o.setError(typeof h=="string"?{[h]:P}:h),get isDirty(){return s.value},reset:d,submit:g,defaults:p,getData:m,getFormData:l};return n(y),()=>R.h("form",{...r,ref:i,action:nt(e.action)?e.action.url:e.action,method:a.value,onSubmit:h=>{h.preventDefault(),g()},inert:e.disableWhileProcessing&&o.processing},t.default?t.default(y):[])}});R.defineComponent({props:{title:{type:String,required:!1}},data(){return{provider:this.$headManager.createProvider()}},beforeUnmount(){this.provider.disconnect()},methods:{isUnaryTag(e){return typeof e.type=="string"&&["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"].indexOf(e.type)>-1},renderTagStart(e){e.props=e.props||{},e.props[this.provider.preferredAttribute()]=e.props["head-key"]!==void 0?e.props["head-key"]:"";const t=Object.keys(e.props).reduce((r,n)=>{const o=String(e.props[n]);return["key","head-key"].includes(n)?r:o===""?r+` ${n}`:r+` ${n}="${nd(o)}"`},"");return`<${String(e.type)}${t}>`},renderTagChildren(e){const{children:t}=e;return typeof t=="string"?t:Array.isArray(t)?t.reduce((r,n)=>r+this.renderTag(n),""):""},isFunctionNode(e){return typeof e.type=="function"},isComponentNode(e){return typeof e.type=="object"},isCommentNode(e){return/(comment|cmt)/i.test(e.type.toString())},isFragmentNode(e){return/(fragment|fgt|symbol\(\))/i.test(e.type.toString())},isTextNode(e){return/(text|txt)/i.test(e.type.toString())},renderTag(e){if(this.isTextNode(e))return String(e.children);if(this.isFragmentNode(e))return"";if(this.isCommentNode(e))return"";let t=this.renderTagStart(e);return e.children&&(t+=this.renderTagChildren(e)),this.isUnaryTag(e)||(t+=`</${String(e.type)}>`),t},addTitleElement(e){return this.title&&!e.find(t=>t.startsWith("<title"))&&e.push(`<title ${this.provider.preferredAttribute()}>${this.title}</title>`),e},renderNodes(e){const t=e.flatMap(r=>this.resolveNode(r)).map(r=>this.renderTag(r)).filter(r=>r);return this.addTitleElement(t)},resolveNode(e){return this.isFunctionNode(e)?this.resolveNode(e.type()):this.isComponentNode(e)?(console.warn("Using components in the <Head> component is not supported."),[]):this.isTextNode(e)&&e.children?e:this.isFragmentNode(e)&&e.children?e.children.flatMap(t=>this.resolveNode(t)):this.isCommentNode(e)?[]:e}},render(){this.provider.update(this.renderNodes(this.$slots.default?this.$slots.default():[]))}});var $n=(e,t)=>e?typeof e=="string"?document.querySelector(e):typeof e=="function"?e()||null:t:t;R.defineComponent({name:"InfiniteScroll",slots:Object,props:{data:{type:String,required:!0},buffer:{type:Number,default:0},onlyNext:{type:Boolean,default:!1},onlyPrevious:{type:Boolean,default:!1},as:{type:String,default:"div"},manual:{type:Boolean,default:!1},manualAfter:{type:Number,default:0},preserveUrl:{type:Boolean,default:!1},reverse:{type:Boolean,default:!1},autoScroll:{type:Boolean,default:void 0},itemsElement:{type:[String,Function,Object],default:null},startElement:{type:[String,Function,Object],default:null},endElement:{type:[String,Function,Object],default:null}},inheritAttrs:!1,setup(e,{slots:t,attrs:r,expose:n}){const o=R.ref(null),i=R.ref(null),a=R.ref(null),s=R.computed(()=>$n(e.itemsElement,o.value)),u=R.computed(()=>Qh(s.value)),f=R.computed(()=>$n(e.startElement,i.value)),c=R.computed(()=>$n(e.endElement,a.value)),l=R.ref(!1),m=R.ref(!1),g=R.ref(0),{dataManager:d,elementManager:v,flush:p}=uy({getPropName:()=>e.data,inReverseMode:()=>e.reverse,shouldFetchNext:()=>!e.onlyPrevious,shouldFetchPrevious:()=>!e.onlyNext,shouldPreserveUrl:()=>e.preserveUrl,getTriggerMargin:()=>e.buffer,getStartElement:()=>f.value,getEndElement:()=>c.value,getItemsElement:()=>s.value,getScrollableParent:()=>u.value,onBeforePreviousRequest:()=>l.value=!0,onBeforeNextRequest:()=>m.value=!0,onCompletePreviousRequest:()=>{g.value=d.getRequestCount(),l.value=!1},onCompleteNextRequest:()=>{g.value=d.getRequestCount(),m.value=!1}});g.value=d.getRequestCount();const y=R.computed(()=>!h.value),h=R.computed(()=>e.manual||e.manualAfter>0&&g.value>=e.manualAfter),P=()=>{u.value?u.value.scrollTo({top:u.value.scrollHeight,behavior:"instant"}):window.scrollTo({top:document.body.scrollHeight,behavior:"instant"})};return R.onMounted(()=>{v.setupObservers(),v.processServerLoadedElements(d.getLastLoadedPage()),(e.autoScroll!==void 0?e.autoScroll:e.reverse)&&P(),y.value&&v.enableTriggers()}),R.onUnmounted(p),R.watch(()=>[y.value,e.onlyNext,e.onlyPrevious],([E])=>{E?v.enableTriggers():v.disableTriggers()}),n({fetchNext:d.fetchNext,fetchPrevious:d.fetchPrevious,hasPrevious:d.hasPrevious,hasNext:d.hasNext}),()=>{const E=[],O={loadingPrevious:l.value,loadingNext:m.value,hasPrevious:d.hasPrevious(),hasNext:d.hasNext()};if(!e.startElement){const A=y.value&&!e.onlyNext,T={loading:l.value,fetch:d.fetchPrevious,autoMode:A,manualMode:!A,hasMore:d.hasPrevious(),...O};E.push(R.h("div",{ref:i},t.previous?t.previous(T):l.value?t.loading?.(T):void 0))}if(E.push(R.h(e.as,{...r,ref:o},t.default?.({loading:l.value||m.value,loadingPrevious:l.value,loadingNext:m.value}))),!e.endElement){const A=y.value&&!e.onlyPrevious,T={loading:m.value,fetch:d.fetchNext,autoMode:A,manualMode:!A,hasMore:d.hasNext(),...O};E.push(R.h("div",{ref:a},t.next?t.next(T):m.value?t.loading?.(T):void 0))}return R.h(R.Fragment,{},e.reverse?[...E].reverse():E)}}});var Ne=()=>{};R.defineComponent({name:"Link",props:{as:{type:[String,Object],default:"a"},data:{type:Object,default:()=>({})},href:{type:[String,Object],default:""},method:{type:String,default:"get"},replace:{type:Boolean,default:!1},preserveScroll:{type:[Boolean,String,Function],default:!1},preserveState:{type:[Boolean,String,Function],default:null},preserveUrl:{type:Boolean,default:!1},only:{type:Array,default:()=>[]},except:{type:Array,default:()=>[]},headers:{type:Object,default:()=>({})},queryStringArrayFormat:{type:String,default:"brackets"},async:{type:Boolean,default:!1},prefetch:{type:[Boolean,String,Array],default:!1},cacheFor:{type:[Number,String,Array],default:0},onStart:{type:Function,default:Ne},onProgress:{type:Function,default:Ne},onFinish:{type:Function,default:Ne},onBefore:{type:Function,default:Ne},onCancel:{type:Function,default:Ne},onSuccess:{type:Function,default:Ne},onError:{type:Function,default:Ne},onCancelToken:{type:Function,default:Ne},onPrefetching:{type:Function,default:Ne},onPrefetched:{type:Function,default:Ne},cacheTags:{type:[String,Array],default:()=>[]},viewTransition:{type:[Boolean,Object],default:!1}},setup(e,{slots:t,attrs:r}){const n=R.ref(0),o=R.ref(),i=R.computed(()=>e.prefetch===!0?["hover"]:e.prefetch===!1?[]:Array.isArray(e.prefetch)?e.prefetch:[e.prefetch]),a=R.computed(()=>e.cacheFor!==0?e.cacheFor:i.value.length===1&&i.value[0]==="click"?0:lr.get("prefetch.cacheFor"));R.onMounted(()=>{i.value.includes("mount")&&v()}),R.onUnmounted(()=>{clearTimeout(o.value)});const s=R.computed(()=>nt(e.href)?e.href.method:(e.method??"get").toLowerCase()),u=R.computed(()=>typeof e.as!="string"||e.as.toLowerCase()!=="a"?e.as:s.value!=="get"?"button":e.as.toLowerCase()),f=R.computed(()=>fo(s.value,nt(e.href)?e.href.url:e.href,e.data||{},e.queryStringArrayFormat)),c=R.computed(()=>f.value[0]),l=R.computed(()=>f.value[1]),m=R.computed(()=>u.value==="button"?{type:"button"}:u.value==="a"||typeof u.value!="string"?{href:c.value}:{}),g=R.computed(()=>({data:l.value,method:s.value,replace:e.replace,preserveScroll:e.preserveScroll,preserveState:e.preserveState??s.value!=="get",preserveUrl:e.preserveUrl,only:e.only,except:e.except,headers:e.headers,async:e.async})),d=R.computed(()=>({...g.value,viewTransition:e.viewTransition,onCancelToken:e.onCancelToken,onBefore:e.onBefore,onStart:P=>{n.value++,e.onStart?.(P)},onProgress:e.onProgress,onFinish:P=>{n.value--,e.onFinish?.(P)},onCancel:e.onCancel,onSuccess:e.onSuccess,onError:e.onError})),v=()=>{K.prefetch(c.value,{...g.value,onPrefetching:e.onPrefetching,onPrefetched:e.onPrefetched},{cacheFor:a.value,cacheTags:e.cacheTags})},p={onClick:P=>{Kt(P)&&(P.preventDefault(),K.visit(c.value,d.value))}},y={onMouseenter:()=>{o.value=setTimeout(()=>{v()},lr.get("prefetch.hoverDelay"))},onMouseleave:()=>{clearTimeout(o.value)},onClick:p.onClick},h={onMousedown:P=>{Kt(P)&&(P.preventDefault(),v())},onKeydown:P=>{pa(P)&&(P.preventDefault(),v())},onMouseup:P=>{Kt(P)&&(P.preventDefault(),K.visit(c.value,d.value))},onKeyup:P=>{pa(P)&&(P.preventDefault(),K.visit(c.value,d.value))},onClick:P=>{Kt(P)&&P.preventDefault()}};return()=>R.h(u.value,{...r,...m.value,"data-loading":n.value>0?"":void 0,...i.value.includes("hover")?y:i.value.includes("click")?h:p},t)}});R.defineComponent({name:"WhenVisible",props:{data:{type:[String,Array]},params:{type:Object},buffer:{type:Number,default:0},as:{type:String,default:"div"},always:{type:Boolean,default:!1}},data(){return{loaded:!1,fetching:!1,observer:null}},unmounted(){this.observer?.disconnect()},created(){const e=Ns();this.$watch(()=>Array.isArray(this.data)?this.data.map(t=>e.props[t]):e.props[this.data],t=>{if(Array.isArray(this.data)){if(this.data.every(r=>e.props[r]!==void 0))return}else if(t!==void 0)return;this.loaded=!1,this.$nextTick(this.registerObserver)},{immediate:!0})},methods:{registerObserver(){this.observer?.disconnect(),this.observer=new IntersectionObserver(e=>{if(!e[0].isIntersecting||this.fetching||!this.always&&this.loaded)return;this.fetching=!0;const t=this.getReloadParams();K.reload({...t,onStart:r=>{this.fetching=!0,t.onStart?.(r)},onFinish:r=>{this.loaded=!0,this.fetching=!1,t.onFinish?.(r),this.always||this.observer?.disconnect()}})},{rootMargin:`${this.$props.buffer}px`}),this.observer.observe(this.$el.nextSibling)},getReloadParams(){if(this.$props.data)return{only:Array.isArray(this.$props.data)?this.$props.data:[this.$props.data]};if(!this.$props.params)throw new Error("You must provide either a `data` or `params` prop.");return this.$props.params}},render(){const e=[];return(this.$props.always||!this.loaded)&&e.push(R.h(this.$props.as)),this.loaded?this.$slots.default&&e.push(this.$slots.default()):e.push(this.$slots.fallback?this.$slots.fallback():null),e}});var lr=at.extend({});exports.config=lr;exports.progress=mt;exports.router=K;exports.useForm=qs;exports.usePage=Ns;