import{a as ie}from"./@arco-design-uttiljWv.js";import{s as le}from"./side-channel-DLYplXY8.js";var oe=String.prototype.replace,fe=/%20/g,K={RFC1738:"RFC1738",RFC3986:"RFC3986"},z={default:K.RFC3986,formatters:{RFC1738:function(a){return oe.call(a,fe,"+")},RFC3986:function(a){return String(a)}},RFC1738:K.RFC1738,RFC3986:K.RFC3986},ue=z,Q=Object.prototype.hasOwnProperty,O=Array.isArray,b=function(){for(var a=[],e=0;e<256;++e)a.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return a}(),ce=function(e){for(;e.length>1;){var r=e.pop(),t=r.obj[r.prop];if(O(t)){for(var i=[],l=0;l=$?n.slice(o,o+$):n,u=[],s=0;s=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||l===ue.RFC1738&&(f===40||f===41)){u[u.length]=c.charAt(s);continue}if(f<128){u[u.length]=b[f];continue}if(f<2048){u[u.length]=b[192|f>>6]+b[128|f&63];continue}if(f<55296||f>=57344){u[u.length]=b[224|f>>12]+b[128|f>>6&63]+b[128|f&63];continue}s+=1,f=65536+((f&1023)<<10|c.charCodeAt(s)&1023),u[u.length]=b[240|f>>18]+b[128|f>>12&63]+b[128|f>>6&63]+b[128|f&63]}d+=u.join("")}return d},pe=function(e){for(var r=[{obj:{o:e},prop:"o"}],t=[],i=0;i"u"&&(N=0)}if(typeof u=="function"?y=u(r,y):y instanceof Date?y=v(y):t==="comma"&&w(y)&&(y=L.maybeMap(y,function(R){return R instanceof Date?v(R):R})),y===null){if(n)return c&&!E?c(r,h.encoder,F,"key",p):r;y=""}if(Oe(y)||L.isBuffer(y)){if(c){var ae=E?r:c(r,h.encoder,F,"key",p);return[g(ae)+"="+g(c(y,h.encoder,F,"value",p))]}return[g(r)+"="+g(String(y))]}var P=[];if(typeof y>"u")return P;var S;if(t==="comma"&&w(y))E&&c&&(y=L.maybeMap(y,c)),S=[{value:y.length>0?y.join(",")||null:void 0}];else if(w(u))S=u;else{var U=Object.keys(y);S=s?U.sort(s):U}var k=o?String(r).replace(/\./g,"%2E"):String(r),T=i&&w(y)&&y.length===1?k+"[]":k;if(l&&w(y)&&y.length===0)return T+"[]";for(var _=0;_"u"?e.encodeDotInKeys===!0?!0:h.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:h.addQueryPrefix,allowDots:d,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:h.allowEmptyArrays,arrayFormat:n,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:h.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?h.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:h.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:h.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:h.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:h.encodeValuesOnly,filter:l,format:t,formatter:i,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:h.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:h.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:h.strictNullHandling}},Ae=function(a,e){var r=a,t=Se(e),i,l;typeof t.filter=="function"?(l=t.filter,r=l("",r)):w(t.filter)&&(l=t.filter,i=l);var n=[];if(typeof r!="object"||r===null)return"";var d=ee[t.arrayFormat],o=d==="comma"&&t.commaRoundTrip;i||(i=Object.keys(r)),t.sort&&i.sort(t.sort);for(var c=Z(),u=0;u0?p+v:""},D=Y,B=Object.prototype.hasOwnProperty,J=Array.isArray,m={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:D.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},Fe=function(a){return a.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},te=function(a,e,r){if(a&&typeof a=="string"&&e.comma&&a.indexOf(",")>-1)return a.split(",");if(e.throwOnLimitExceeded&&r>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(e.arrayLimit===1?"":"s")+" allowed in an array.");return a},je="utf8=%26%2310003%3B",Ne="utf8=%E2%9C%93",Te=function(e,r){var t={__proto__:null},i=r.ignoreQueryPrefix?e.replace(/^\?/,""):e;i=i.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var l=r.parameterLimit===1/0?void 0:r.parameterLimit,n=i.split(r.delimiter,r.throwOnLimitExceeded?l+1:l);if(r.throwOnLimitExceeded&&n.length>l)throw new RangeError("Parameter limit exceeded. Only "+l+" parameter"+(l===1?"":"s")+" allowed.");var d=-1,o,c=r.charset;if(r.charsetSentinel)for(o=0;o-1&&(p=J(p)?[p]:p);var g=B.call(t,v);g&&r.duplicates==="combine"?t[v]=D.combine(t[v],p):(!g||r.duplicates==="last")&&(t[v]=p)}return t},Le=function(a,e,r,t){var i=0;if(a.length>0&&a[a.length-1]==="[]"){var l=a.slice(0,-1).join("");i=Array.isArray(e)&&e[l]?e[l].length:0}for(var n=t?e:te(e,r,i),d=a.length-1;d>=0;--d){var o,c=a[d];if(c==="[]"&&r.parseArrays)o=r.allowEmptyArrays&&(n===""||r.strictNullHandling&&n===null)?[]:D.combine([],n);else{o=r.plainObjects?{__proto__:null}:{};var u=c.charAt(0)==="["&&c.charAt(c.length-1)==="]"?c.slice(1,-1):c,s=r.decodeDotInKeys?u.replace(/%2E/g,"."):u,f=parseInt(s,10);!r.parseArrays&&s===""?o={0:n}:!isNaN(f)&&c!==s&&String(f)===s&&f>=0&&r.parseArrays&&f<=r.arrayLimit?(o=[],o[f]=n):s!=="__proto__"&&(o[s]=n)}n=o}return n},Ie=function(e,r,t,i){if(e){var l=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,n=/(\[[^[\]]*])/,d=/(\[[^[\]]*])/g,o=t.depth>0&&n.exec(l),c=o?l.slice(0,o.index):l,u=[];if(c){if(!t.plainObjects&&B.call(Object.prototype,c)&&!t.allowPrototypes)return;u.push(c)}for(var s=0;t.depth>0&&(o=d.exec(l))!==null&&s"u"?m.charset:e.charset,t=typeof e.duplicates>"u"?m.duplicates:e.duplicates;if(t!=="combine"&&t!=="first"&&t!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var i=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:m.allowDots:!!e.allowDots;return{allowDots:i,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:m.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:m.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:m.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:m.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:m.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:m.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:m.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:m.decoder,delimiter:typeof e.delimiter=="string"||D.isRegExp(e.delimiter)?e.delimiter:m.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:m.depth,duplicates:t,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:m.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:m.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:m.plainObjects,strictDepth:typeof e.strictDepth=="boolean"?!!e.strictDepth:m.strictDepth,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:m.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded=="boolean"?e.throwOnLimitExceeded:!1}},_e=function(a,e){var r=Pe(e);if(a===""||a===null||typeof a>"u")return r.plainObjects?{__proto__:null}:{};for(var t=typeof a=="string"?Te(a,r):a,i=r.plainObjects?{__proto__:null}:{},l=Object.keys(t),n=0;n