import{cq as e,aP as t,aQ as r}from"./index-b8cd3494.js";const o=e(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var n,i=Error,a=EvalError,l=RangeError,p=ReferenceError,c=SyntaxError,f=TypeError,y=URIError,u="undefined"!=typeof Symbol&&Symbol,s=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var n=Object.getOwnPropertyDescriptor(e,t);if(42!==n.value||!0!==n.enumerable)return!1}return!0},d={__proto__:null,foo:{}},g=Object,b=Object.prototype.toString,h=Math.max,m=function(e,t){for(var r=[],o=0;o<e.length;o+=1)r[o]=e[o];for(var n=0;n<t.length;n+=1)r[n+e.length]=t[n];return r},v=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==b.apply(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var r,o=function(e,t){for(var r=[],o=t||0,n=0;o<e.length;o+=1,n+=1)r[n]=e[o];return r}(arguments,1),n=h(0,t.length-o.length),i=[],a=0;a<n;a++)i[a]="$"+a;if(r=Function("binder","return function ("+function(e,t){for(var r="",o=0;o<e.length;o+=1)r+=e[o],o+1<e.length&&(r+=t);return r}(i,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof r){var n=t.apply(this,m(o,arguments));return Object(n)===n?n:this}return t.apply(e,m(o,arguments))})),t.prototype){var l=function(){};l.prototype=t.prototype,r.prototype=new l,l.prototype=null}return r},w=Function.prototype.bind||v,S=Function.prototype.call,A=Object.prototype.hasOwnProperty,j=w.call(S,A),O=i,P=a,E=l,x=p,I=c,_=f,D=y,R=Function,F=function(e){try{return R('"use strict"; return ('+e+").constructor;")()}catch(t){}},k=Object.getOwnPropertyDescriptor;if(k)try{k({},"")}catch(dr){k=null}var N=function(){throw new _},T=k?function(){try{return N}catch(e){try{return k(arguments,"callee").get}catch(t){return N}}}():N,M="function"==typeof u&&"function"==typeof Symbol&&"symbol"==typeof u("foo")&&"symbol"==typeof Symbol("bar")&&s(),U={__proto__:d}.foo===d.foo&&!(d instanceof g),B=Object.getPrototypeOf||(U?function(e){return e.__proto__}:null),W={},C="undefined"!=typeof Uint8Array&&B?B(Uint8Array):n,L={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":M&&B?B([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":W,"%AsyncGenerator%":W,"%AsyncGeneratorFunction%":W,"%AsyncIteratorPrototype%":W,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":O,"%eval%":eval,"%EvalError%":P,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":R,"%GeneratorFunction%":W,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":M&&B?B(B([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&M&&B?B((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":E,"%ReferenceError%":x,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&M&&B?B((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":M&&B?B(""[Symbol.iterator]()):n,"%Symbol%":M?Symbol:n,"%SyntaxError%":I,"%ThrowTypeError%":T,"%TypedArray%":C,"%TypeError%":_,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":D,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(B)try{null.error}catch(dr){var K=B(B(dr));L["%Error.prototype%"]=K}var G,$,H=function e(t){var r;if("%AsyncFunction%"===t)r=F("async function () {}");else if("%GeneratorFunction%"===t)r=F("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=F("async function* () {}");else if("%AsyncGenerator%"===t){var o=e("%AsyncGeneratorFunction%");o&&(r=o.prototype)}else if("%AsyncIteratorPrototype%"===t){var n=e("%AsyncGenerator%");n&&B&&(r=B(n.prototype))}return L[t]=r,r},q={__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"]},z=w,V=j,Q=z.call(Function.call,Array.prototype.concat),J=z.call(Function.apply,Array.prototype.splice),X=z.call(Function.call,String.prototype.replace),Y=z.call(Function.call,String.prototype.slice),Z=z.call(Function.call,RegExp.prototype.exec),ee=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,te=/\\(\\)?/g,re=function(e,t){var r,o=e;if(V(q,o)&&(o="%"+(r=q[o])[0]+"%"),V(L,o)){var n=L[o];if(n===W&&(n=H(o)),void 0===n&&!t)throw new _("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:o,value:n}}throw new I("intrinsic "+e+" does not exist!")},oe=function(e,t){if("string"!=typeof e||0===e.length)throw new _("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new _('"allowMissing" argument must be a boolean');if(null===Z(/^%?[^%]*%?$/,e))throw new I("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=Y(e,0,1),r=Y(e,-1);if("%"===t&&"%"!==r)throw new I("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new I("invalid intrinsic syntax, expected opening `%`");var o=[];return X(e,ee,(function(e,t,r,n){o[o.length]=r?X(n,te,"$1"):t||e})),o}(e),o=r.length>0?r[0]:"",n=re("%"+o+"%",t),i=n.name,a=n.value,l=!1,p=n.alias;p&&(o=p[0],J(r,Q([0,1],p)));for(var c=1,f=!0;c<r.length;c+=1){var y=r[c],u=Y(y,0,1),s=Y(y,-1);if(('"'===u||"'"===u||"`"===u||'"'===s||"'"===s||"`"===s)&&u!==s)throw new I("property names with quotes must have matching quotes");if("constructor"!==y&&f||(l=!0),V(L,i="%"+(o+="."+y)+"%"))a=L[i];else if(null!=a){if(!(y in a)){if(!t)throw new _("base intrinsic for "+e+" exists, but the property is not available.");return}if(k&&c+1>=r.length){var d=k(a,y);a=(f=!!d)&&"get"in d&&!("originalValue"in d.get)?d.get:a[y]}else f=V(a,y),a=a[y];f&&!l&&(L[i]=a)}}return a},ne={exports:{}};function ie(){if($)return G;$=1;var e=oe("%Object.defineProperty%",!0)||!1;if(e)try{e({},"a",{value:1})}catch(dr){e=!1}return G=e}var ae=oe("%Object.getOwnPropertyDescriptor%",!0);if(ae)try{ae([],"length")}catch(dr){ae=null}var le=ae,pe=ie(),ce=c,fe=f,ye=le,ue=ie(),se=function(){return!!ue};se.hasArrayLengthDefineBug=function(){if(!ue)return null;try{return 1!==ue([],"length",{value:1}).length}catch(dr){return!0}};var de=oe,ge=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new fe("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new fe("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new fe("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new fe("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new fe("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new fe("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,n=arguments.length>4?arguments[4]:null,i=arguments.length>5?arguments[5]:null,a=arguments.length>6&&arguments[6],l=!!ye&&ye(e,t);if(pe)pe(e,t,{configurable:null===i&&l?l.configurable:!i,enumerable:null===o&&l?l.enumerable:!o,value:r,writable:null===n&&l?l.writable:!n});else{if(!a&&(o||n||i))throw new ce("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=r}},be=se(),he=le,me=f,ve=de("%Math.floor%"),we=function(e,t){if("function"!=typeof e)throw new me("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||ve(t)!==t)throw new me("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],o=!0,n=!0;if("length"in e&&he){var i=he(e,"length");i&&!i.configurable&&(o=!1),i&&!i.writable&&(n=!1)}return(o||n||!r)&&(be?ge(e,"length",t,!0,!0):ge(e,"length",t)),e};!function(e){var t=w,r=oe,o=we,n=f,i=r("%Function.prototype.apply%"),a=r("%Function.prototype.call%"),l=r("%Reflect.apply%",!0)||t.call(a,i),p=ie(),c=r("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new n("a function is required");var r=l(t,a,arguments);return o(r,1+c(0,e.length-(arguments.length-1)),!0)};var y=function(){return l(t,i,arguments)};p?p(e.exports,"apply",{value:y}):e.exports.apply=y}(ne);var Se=oe,Ae=ne.exports,je=Ae(Se("String.prototype.indexOf")),Oe="function"==typeof Map&&Map.prototype,Pe=Object.getOwnPropertyDescriptor&&Oe?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Ee=Oe&&Pe&&"function"==typeof Pe.get?Pe.get:null,xe=Oe&&Map.prototype.forEach,Ie="function"==typeof Set&&Set.prototype,_e=Object.getOwnPropertyDescriptor&&Ie?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,De=Ie&&_e&&"function"==typeof _e.get?_e.get:null,Re=Ie&&Set.prototype.forEach,Fe="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,ke="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,Ne="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,Te=Boolean.prototype.valueOf,Me=Object.prototype.toString,Ue=Function.prototype.toString,Be=String.prototype.match,We=String.prototype.slice,Ce=String.prototype.replace,Le=String.prototype.toUpperCase,Ke=String.prototype.toLowerCase,Ge=RegExp.prototype.test,$e=Array.prototype.concat,He=Array.prototype.join,qe=Array.prototype.slice,ze=Math.floor,Ve="function"==typeof BigInt?BigInt.prototype.valueOf:null,Qe=Object.getOwnPropertySymbols,Je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,Xe="function"==typeof Symbol&&"object"==typeof Symbol.iterator,Ye="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Xe||"symbol")?Symbol.toStringTag:null,Ze=Object.prototype.propertyIsEnumerable,et=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function tt(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||Ge.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var o=e<0?-ze(-e):ze(e);if(o!==e){var n=String(o),i=We.call(t,n.length+1);return Ce.call(n,r,"$&_")+"."+Ce.call(Ce.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Ce.call(t,r,"$&_")}var rt=o,ot=rt.custom,nt=yt(ot)?ot:null,it={__proto__:null,double:'"',single:"'"},at={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function lt(e,t,r){var o=r.quoteStyle||t,n=it[o];return n+e+n}function pt(e){return Ce.call(String(e),/"/g,"&quot;")}function ct(e){return!("[object Array]"!==dt(e)||Ye&&"object"==typeof e&&Ye in e)}function ft(e){return!("[object RegExp]"!==dt(e)||Ye&&"object"==typeof e&&Ye in e)}function yt(e){if(Xe)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!Je)return!1;try{return Je.call(e),!0}catch(dr){}return!1}var ut=Object.prototype.hasOwnProperty||function(e){return e in this};function st(e,t){return ut.call(e,t)}function dt(e){return Me.call(e)}function gt(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,o=e.length;r<o;r++)if(e[r]===t)return r;return-1}function bt(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,o="... "+r+" more character"+(r>1?"s":"");return bt(We.call(e,0,t.maxStringLength),t)+o}var n=at[t.quoteStyle||"single"];return n.lastIndex=0,lt(Ce.call(Ce.call(e,n,"\\$1"),/[\x00-\x1f]/g,ht),"single",t)}function ht(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+Le.call(t.toString(16))}function mt(e){return"Object("+e+")"}function vt(e){return e+" { ? }"}function wt(e,t,r,o){return e+" ("+t+") {"+(o?St(r,o):He.call(r,", "))+"}"}function St(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+He.call(e,","+r)+"\n"+t.prev}function At(e,t){var r=ct(e),o=[];if(r){o.length=e.length;for(var n=0;n<e.length;n++)o[n]=st(e,n)?t(e[n],e):""}var i,a="function"==typeof Qe?Qe(e):[];if(Xe){i={};for(var l=0;l<a.length;l++)i["$"+a[l]]=a[l]}for(var p in e)st(e,p)&&(r&&String(Number(p))===p&&p<e.length||Xe&&i["$"+p]instanceof Symbol||(Ge.call(/[^\w$]/,p)?o.push(t(p,e)+": "+t(e[p],e)):o.push(p+": "+t(e[p],e))));if("function"==typeof Qe)for(var c=0;c<a.length;c++)Ze.call(e,a[c])&&o.push("["+t(a[c])+"]: "+t(e[a[c]],e));return o}var jt=oe,Ot=function(e,t){var r=Se(e,!!t);return"function"==typeof r&&je(e,".prototype.")>-1?Ae(r):r},Pt=function e(r,o,n,i){var a=o||{};if(st(a,"quoteStyle")&&!st(it,a.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(st(a,"maxStringLength")&&("number"==typeof a.maxStringLength?a.maxStringLength<0&&a.maxStringLength!==1/0:null!==a.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=!st(a,"customInspect")||a.customInspect;if("boolean"!=typeof l&&"symbol"!==l)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(st(a,"indent")&&null!==a.indent&&"\t"!==a.indent&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(st(a,"numericSeparator")&&"boolean"!=typeof a.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var p=a.numericSeparator;if(void 0===r)return"undefined";if(null===r)return"null";if("boolean"==typeof r)return r?"true":"false";if("string"==typeof r)return bt(r,a);if("number"==typeof r){if(0===r)return 1/0/r>0?"0":"-0";var c=String(r);return p?tt(r,c):c}if("bigint"==typeof r){var f=String(r)+"n";return p?tt(r,f):f}var y=void 0===a.depth?5:a.depth;if(void 0===n&&(n=0),n>=y&&y>0&&"object"==typeof r)return ct(r)?"[Array]":"[Object]";var u=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=He.call(Array(e.indent+1)," ")}return{base:r,prev:He.call(Array(t+1),r)}}(a,n);if(void 0===i)i=[];else if(gt(i,r)>=0)return"[Circular]";function s(t,r,o){if(r&&(i=qe.call(i)).push(r),o){var l={depth:a.depth};return st(a,"quoteStyle")&&(l.quoteStyle=a.quoteStyle),e(t,l,n+1,i)}return e(t,a,n+1,i)}if("function"==typeof r&&!ft(r)){var d=function(e){if(e.name)return e.name;var t=Be.call(Ue.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(r),g=At(r,s);return"[Function"+(d?": "+d:" (anonymous)")+"]"+(g.length>0?" { "+He.call(g,", ")+" }":"")}if(yt(r)){var b=Xe?Ce.call(String(r),/^(Symbol\(.*\))_[^)]*$/,"$1"):Je.call(r);return"object"!=typeof r||Xe?b:mt(b)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(r)){for(var h="<"+Ke.call(String(r.nodeName)),m=r.attributes||[],v=0;v<m.length;v++)h+=" "+m[v].name+"="+lt(pt(m[v].value),"double",a);return h+=">",r.childNodes&&r.childNodes.length&&(h+="..."),h+="</"+Ke.call(String(r.nodeName))+">"}if(ct(r)){if(0===r.length)return"[]";var w=At(r,s);return u&&!function(e){for(var t=0;t<e.length;t++)if(gt(e[t],"\n")>=0)return!1;return!0}(w)?"["+St(w,u)+"]":"[ "+He.call(w,", ")+" ]"}if(function(e){return!("[object Error]"!==dt(e)||Ye&&"object"==typeof e&&Ye in e)}(r)){var S=At(r,s);return"cause"in Error.prototype||!("cause"in r)||Ze.call(r,"cause")?0===S.length?"["+String(r)+"]":"{ ["+String(r)+"] "+He.call(S,", ")+" }":"{ ["+String(r)+"] "+He.call($e.call("[cause]: "+s(r.cause),S),", ")+" }"}if("object"==typeof r&&l){if(nt&&"function"==typeof r[nt]&&rt)return rt(r,{depth:y-n});if("symbol"!==l&&"function"==typeof r.inspect)return r.inspect()}if(function(e){if(!Ee||!e||"object"!=typeof e)return!1;try{Ee.call(e);try{De.call(e)}catch(h){return!0}return e instanceof Map}catch(dr){}return!1}(r)){var A=[];return xe&&xe.call(r,(function(e,t){A.push(s(t,r,!0)+" => "+s(e,r))})),wt("Map",Ee.call(r),A,u)}if(function(e){if(!De||!e||"object"!=typeof e)return!1;try{De.call(e);try{Ee.call(e)}catch(t){return!0}return e instanceof Set}catch(dr){}return!1}(r)){var j=[];return Re&&Re.call(r,(function(e){j.push(s(e,r))})),wt("Set",De.call(r),j,u)}if(function(e){if(!Fe||!e||"object"!=typeof e)return!1;try{Fe.call(e,Fe);try{ke.call(e,ke)}catch(h){return!0}return e instanceof WeakMap}catch(dr){}return!1}(r))return vt("WeakMap");if(function(e){if(!ke||!e||"object"!=typeof e)return!1;try{ke.call(e,ke);try{Fe.call(e,Fe)}catch(h){return!0}return e instanceof WeakSet}catch(dr){}return!1}(r))return vt("WeakSet");if(function(e){if(!Ne||!e||"object"!=typeof e)return!1;try{return Ne.call(e),!0}catch(dr){}return!1}(r))return vt("WeakRef");if(function(e){return!("[object Number]"!==dt(e)||Ye&&"object"==typeof e&&Ye in e)}(r))return mt(s(Number(r)));if(function(e){if(!e||"object"!=typeof e||!Ve)return!1;try{return Ve.call(e),!0}catch(dr){}return!1}(r))return mt(s(Ve.call(r)));if(function(e){return!("[object Boolean]"!==dt(e)||Ye&&"object"==typeof e&&Ye in e)}(r))return mt(Te.call(r));if(function(e){return!("[object String]"!==dt(e)||Ye&&"object"==typeof e&&Ye in e)}(r))return mt(s(String(r)));if("undefined"!=typeof window&&r===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&r===globalThis||void 0!==t&&r===t)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==dt(e)||Ye&&"object"==typeof e&&Ye in e)}(r)&&!ft(r)){var O=At(r,s),P=et?et(r)===Object.prototype:r instanceof Object||r.constructor===Object,E=r instanceof Object?"":"null prototype",x=!P&&Ye&&Object(r)===r&&Ye in r?We.call(dt(r),8,-1):E?"Object":"",I=(P||"function"!=typeof r.constructor?"":r.constructor.name?r.constructor.name+" ":"")+(x||E?"["+He.call($e.call([],x||[],E||[]),": ")+"] ":"");return 0===O.length?I+"{}":u?I+"{"+St(O,u)+"}":I+"{ "+He.call(O,", ")+" }"}return String(r)},Et=f,xt=jt("%WeakMap%",!0),It=jt("%Map%",!0),_t=Ot("WeakMap.prototype.get",!0),Dt=Ot("WeakMap.prototype.set",!0),Rt=Ot("WeakMap.prototype.has",!0),Ft=Ot("Map.prototype.get",!0),kt=Ot("Map.prototype.set",!0),Nt=Ot("Map.prototype.has",!0),Tt=function(e,t){for(var r,o=e;null!==(r=o.next);o=r)if(r.key===t)return o.next=r.next,r.next=e.next,e.next=r,r},Mt=String.prototype.replace,Ut=/%20/g,Bt="RFC3986",Wt={default:Bt,formatters:{RFC1738:function(e){return Mt.call(e,Ut,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:Bt},Ct=Wt,Lt=Object.prototype.hasOwnProperty,Kt=Array.isArray,Gt=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),$t=function(e,t){for(var r=t&&t.plainObjects?{__proto__:null}:{},o=0;o<e.length;++o)void 0!==e[o]&&(r[o]=e[o]);return r},Ht=1024,qt={arrayToObject:$t,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],o=0;o<t.length;++o)for(var n=t[o],i=n.obj[n.prop],a=Object.keys(i),l=0;l<a.length;++l){var p=a[l],c=i[p];"object"==typeof c&&null!==c&&-1===r.indexOf(c)&&(t.push({obj:i,prop:p}),r.push(c))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(Kt(r)){for(var o=[],n=0;n<r.length;++n)void 0!==r[n]&&o.push(r[n]);t.obj[t.prop]=o}}}(t),e},decode:function(e,t,r){var o=e.replace(/\+/g," ");if("iso-8859-1"===r)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(dr){return o}},encode:function(e,t,r,o,n){if(0===e.length)return e;var i=e;if("symbol"==typeof e?i=Symbol.prototype.toString.call(e):"string"!=typeof e&&(i=String(e)),"iso-8859-1"===r)return escape(i).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var a="",l=0;l<i.length;l+=Ht){for(var p=i.length>=Ht?i.slice(l,l+Ht):i,c=[],f=0;f<p.length;++f){var y=p.charCodeAt(f);45===y||46===y||95===y||126===y||y>=48&&y<=57||y>=65&&y<=90||y>=97&&y<=122||n===Ct.RFC1738&&(40===y||41===y)?c[c.length]=p.charAt(f):y<128?c[c.length]=Gt[y]:y<2048?c[c.length]=Gt[192|y>>6]+Gt[128|63&y]:y<55296||y>=57344?c[c.length]=Gt[224|y>>12]+Gt[128|y>>6&63]+Gt[128|63&y]:(f+=1,y=65536+((1023&y)<<10|1023&p.charCodeAt(f)),c[c.length]=Gt[240|y>>18]+Gt[128|y>>12&63]+Gt[128|y>>6&63]+Gt[128|63&y])}a+=c.join("")}return a},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(Kt(e)){for(var r=[],o=0;o<e.length;o+=1)r.push(t(e[o]));return r}return t(e)},merge:function e(t,r,o){if(!r)return t;if("object"!=typeof r&&"function"!=typeof r){if(Kt(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(o&&(o.plainObjects||o.allowPrototypes)||!Lt.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var n=t;return Kt(t)&&!Kt(r)&&(n=$t(t,o)),Kt(t)&&Kt(r)?(r.forEach((function(r,n){if(Lt.call(t,n)){var i=t[n];i&&"object"==typeof i&&r&&"object"==typeof r?t[n]=e(i,r,o):t.push(r)}else t[n]=r})),t):Object.keys(r).reduce((function(t,n){var i=r[n];return Lt.call(t,n)?t[n]=e(t[n],i,o):t[n]=i,t}),n)}},zt=function(){var e,t,r,o={assert:function(e){if(!o.has(e))throw new Et("Side channel does not contain "+Pt(e))},get:function(o){if(xt&&o&&("object"==typeof o||"function"==typeof o)){if(e)return _t(e,o)}else if(It){if(t)return Ft(t,o)}else if(r)return function(e,t){var r=Tt(e,t);return r&&r.value}(r,o)},has:function(o){if(xt&&o&&("object"==typeof o||"function"==typeof o)){if(e)return Rt(e,o)}else if(It){if(t)return Nt(t,o)}else if(r)return function(e,t){return!!Tt(e,t)}(r,o);return!1},set:function(o,n){xt&&o&&("object"==typeof o||"function"==typeof o)?(e||(e=new xt),Dt(e,o,n)):It?(t||(t=new It),kt(t,o,n)):(r||(r={key:{},next:null}),function(e,t,r){var o=Tt(e,t);o?o.value=r:e.next={key:t,next:e.next,value:r}}(r,o,n))}};return o},Vt=qt,Qt=Wt,Jt=Object.prototype.hasOwnProperty,Xt={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},Yt=Array.isArray,Zt=Array.prototype.push,er=function(e,t){Zt.apply(e,Yt(t)?t:[t])},tr=Date.prototype.toISOString,rr=Qt.default,or={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Vt.encode,encodeValuesOnly:!1,filter:void 0,format:rr,formatter:Qt.formatters[rr],indices:!1,serializeDate:function(e){return tr.call(e)},skipNulls:!1,strictNullHandling:!1},nr={},ir=function e(t,r,o,n,i,a,l,p,c,f,y,u,s,d,g,b,h,m){for(var v,w=t,S=m,A=0,j=!1;void 0!==(S=S.get(nr))&&!j;){var O=S.get(t);if(A+=1,void 0!==O){if(O===A)throw new RangeError("Cyclic object value");j=!0}void 0===S.get(nr)&&(A=0)}if("function"==typeof f?w=f(r,w):w instanceof Date?w=s(w):"comma"===o&&Yt(w)&&(w=Vt.maybeMap(w,(function(e){return e instanceof Date?s(e):e}))),null===w){if(a)return c&&!b?c(r,or.encoder,h,"key",d):r;w=""}if("string"==typeof(v=w)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||Vt.isBuffer(w))return c?[g(b?r:c(r,or.encoder,h,"key",d))+"="+g(c(w,or.encoder,h,"value",d))]:[g(r)+"="+g(String(w))];var P,E=[];if(void 0===w)return E;if("comma"===o&&Yt(w))b&&c&&(w=Vt.maybeMap(w,c)),P=[{value:w.length>0?w.join(",")||null:void 0}];else if(Yt(f))P=f;else{var x=Object.keys(w);P=y?x.sort(y):x}var I=p?String(r).replace(/\./g,"%2E"):String(r),_=n&&Yt(w)&&1===w.length?I+"[]":I;if(i&&Yt(w)&&0===w.length)return _+"[]";for(var D=0;D<P.length;++D){var R=P[D],F="object"==typeof R&&R&&void 0!==R.value?R.value:w[R];if(!l||null!==F){var k=u&&p?String(R).replace(/\./g,"%2E"):String(R),N=Yt(w)?"function"==typeof o?o(_,k):_:_+(u?"."+k:"["+k+"]");m.set(t,A);var T=zt();T.set(nr,m),er(E,e(F,N,o,n,i,a,l,p,"comma"===o&&b&&Yt(w)?null:c,f,y,u,s,d,g,b,h,T))}}return E},ar=qt,lr=Object.prototype.hasOwnProperty,pr=Array.isArray,cr={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:ar.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},fr=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},yr=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},ur=function(e,t,r,o){if(e){var n=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,a=r.depth>0&&/(\[[^[\]]*])/.exec(n),l=a?n.slice(0,a.index):n,p=[];if(l){if(!r.plainObjects&&lr.call(Object.prototype,l)&&!r.allowPrototypes)return;p.push(l)}for(var c=0;r.depth>0&&null!==(a=i.exec(n))&&c<r.depth;){if(c+=1,!r.plainObjects&&lr.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;p.push(a[1])}if(a){if(!0===r.strictDepth)throw new RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");p.push("["+n.slice(a.index)+"]")}return function(e,t,r,o){for(var n=o?t:yr(t,r),i=e.length-1;i>=0;--i){var a,l=e[i];if("[]"===l&&r.parseArrays)a=r.allowEmptyArrays&&(""===n||r.strictNullHandling&&null===n)?[]:[].concat(n);else{a=r.plainObjects?{__proto__:null}:{};var p="["===l.charAt(0)&&"]"===l.charAt(l.length-1)?l.slice(1,-1):l,c=r.decodeDotInKeys?p.replace(/%2E/g,"."):p,f=parseInt(c,10);r.parseArrays||""!==c?!isNaN(f)&&l!==c&&String(f)===c&&f>=0&&r.parseArrays&&f<=r.arrayLimit?(a=[])[f]=n:"__proto__"!==c&&(a[c]=n):a={0:n}}n=a}return n}(p,t,r,o)}};const sr=r({formats:Wt,parse:function(e,t){var r=function(e){if(!e)return cr;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?cr.charset:e.charset,r=void 0===e.duplicates?cr.duplicates:e.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||cr.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:cr.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:cr.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:cr.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:cr.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:cr.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:cr.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:cr.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:cr.decoder,delimiter:"string"==typeof e.delimiter||ar.isRegExp(e.delimiter)?e.delimiter:cr.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:cr.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:cr.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:cr.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:cr.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:cr.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:cr.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?{__proto__:null}:{};for(var o="string"==typeof e?function(e,t){var r={__proto__:null},o=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;o=o.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var n,i=t.parameterLimit===1/0?void 0:t.parameterLimit,a=o.split(t.delimiter,i),l=-1,p=t.charset;if(t.charsetSentinel)for(n=0;n<a.length;++n)0===a[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===a[n]?p="utf-8":"utf8=%26%2310003%3B"===a[n]&&(p="iso-8859-1"),l=n,n=a.length);for(n=0;n<a.length;++n)if(n!==l){var c,f,y=a[n],u=y.indexOf("]="),s=-1===u?y.indexOf("="):u+1;-1===s?(c=t.decoder(y,cr.decoder,p,"key"),f=t.strictNullHandling?null:""):(c=t.decoder(y.slice(0,s),cr.decoder,p,"key"),f=ar.maybeMap(yr(y.slice(s+1),t),(function(e){return t.decoder(e,cr.decoder,p,"value")}))),f&&t.interpretNumericEntities&&"iso-8859-1"===p&&(f=fr(String(f))),y.indexOf("[]=")>-1&&(f=pr(f)?[f]:f);var d=lr.call(r,c);d&&"combine"===t.duplicates?r[c]=ar.combine(r[c],f):d&&"last"!==t.duplicates||(r[c]=f)}return r}(e,r):e,n=r.plainObjects?{__proto__:null}:{},i=Object.keys(o),a=0;a<i.length;++a){var l=i[a],p=ur(l,o[l],r,"string"==typeof e);n=ar.merge(n,p,r)}return!0===r.allowSparse?n:ar.compact(n)},stringify:function(e,t){var r,o=e,n=function(e){if(!e)return or;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||or.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=Qt.default;if(void 0!==e.format){if(!Jt.call(Qt.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var o,n=Qt.formatters[r],i=or.filter;if(("function"==typeof e.filter||Yt(e.filter))&&(i=e.filter),o=e.arrayFormat in Xt?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":or.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var a=void 0===e.allowDots?!0===e.encodeDotInKeys||or.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:or.addQueryPrefix,allowDots:a,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:or.allowEmptyArrays,arrayFormat:o,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:or.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?or.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:or.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:or.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:or.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:or.encodeValuesOnly,filter:i,format:r,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:or.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:or.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:or.strictNullHandling}}(t);"function"==typeof n.filter?o=(0,n.filter)("",o):Yt(n.filter)&&(r=n.filter);var i=[];if("object"!=typeof o||null===o)return"";var a=Xt[n.arrayFormat],l="comma"===a&&n.commaRoundTrip;r||(r=Object.keys(o)),n.sort&&r.sort(n.sort);for(var p=zt(),c=0;c<r.length;++c){var f=r[c],y=o[f];n.skipNulls&&null===y||er(i,ir(y,f,a,l,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,p))}var u=i.join(n.delimiter),s=!0===n.addQueryPrefix?"?":"";return n.charsetSentinel&&("iso-8859-1"===n.charset?s+="utf8=%26%2310003%3B&":s+="utf8=%E2%9C%93&"),u.length>0?s+u:""}});export{sr as q,o as r};