1821349743@qq.com
2023-02-20 ca2301bc11be417ff9b0081cf9dbe3549ee779ec
1
!function(e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Qs=e()}(function(){return function o(n,i,a){function c(t,e){if(!i[t]){if(!n[t]){var r="function"==typeof require&&require;if(!e&&r)return r(t,!0);if(l)return l(t,!0);throw(r=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",r}r=i[t]={exports:{}},n[t][0].call(r.exports,function(e){return c(n[t][1][e]||e)},r,r.exports,o,n,i,a)}return i[t].exports}for(var l="function"==typeof require&&require,e=0;e<a.length;e++)c(a[e]);return c}({1:[function(e,t,r){"use strict";var o=String.prototype.replace,n=/%20/g,i="RFC1738",a="RFC3986";t.exports={default:a,formatters:{RFC1738:function(e){return o.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:i,RFC3986:a}},{}],2:[function(e,t,r){"use strict";var o=e("./stringify"),n=e("./parse"),e=e("./formats");t.exports={formats:e,parse:n,stringify:o}},{"./formats":1,"./parse":3,"./stringify":4}],3:[function(e,t,r){"use strict";function u(e,t){return e&&"string"==typeof e&&t.comma&&-1<e.indexOf(",")?e.split(","):e}function l(e,t){var r,o,n,i,a={},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,e=t.parameterLimit===1/0?void 0:t.parameterLimit,l=c.split(t.delimiter,e),f=-1,s=t.charset;if(t.charsetSentinel)for(r=0;r<l.length;++r)0===l[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===l[r]?s="utf-8":"utf8=%26%2310003%3B"===l[r]&&(s="iso-8859-1"),f=r,r=l.length);for(r=0;r<l.length;++r)r!==f&&((i=-1===(i=-1===(i=(o=l[r]).indexOf("]="))?o.indexOf("="):i+1)?(n=t.decoder(o,m.decoder,s,"key"),t.strictNullHandling?null:""):(n=t.decoder(o.slice(0,i),m.decoder,s,"key"),p.maybeMap(u(o.slice(i+1),t),function(e){return t.decoder(e,m.decoder,s,"value")})))&&t.interpretNumericEntities&&"iso-8859-1"===s&&(i=i.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})),-1<o.indexOf("[]=")&&(i=y(i)?[i]:i),d.call(a,n)?a[n]=p.combine(a[n],i):a[n]=i);return a}function f(e,t,r,o){if(e){var n=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,a=0<r.depth&&/(\[[^[\]]*])/.exec(n),e=a?n.slice(0,a.index):n,c=[];if(e){if(!r.plainObjects&&d.call(Object.prototype,e)&&!r.allowPrototypes)return;c.push(e)}for(var l=0;0<r.depth&&null!==(a=i.exec(n))&&l<r.depth;){if(l+=1,!r.plainObjects&&d.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;c.push(a[1])}return a&&c.push("["+n.slice(a.index)+"]"),function(e,t,r,o){for(var n=o?t:u(t,r),i=e.length-1;0<=i;--i){var a,c,l,f=e[i];"[]"===f&&r.parseArrays?a=[].concat(n):(a=r.plainObjects?Object.create(null):{},c="["===f.charAt(0)&&"]"===f.charAt(f.length-1)?f.slice(1,-1):f,l=parseInt(c,10),r.parseArrays||""!==c?!isNaN(l)&&f!==c&&String(l)===c&&0<=l&&r.parseArrays&&l<=r.arrayLimit?(a=[])[l]=n:a[c]=n:a={0:n}),n=a}return n}(c,t,r,o)}}var p=e("./utils"),d=Object.prototype.hasOwnProperty,y=Array.isArray,m={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:p.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1};t.exports=function(e,t){var r=function(e){if(!e)return m;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?m:e).charset;return{allowDots:void 0===e.allowDots?m.allowDots:!!e.allowDots,allowPrototypes:("boolean"==typeof e.allowPrototypes?e:m).allowPrototypes,arrayLimit:("number"==typeof e.arrayLimit?e:m).arrayLimit,charset:t,charsetSentinel:("boolean"==typeof e.charsetSentinel?e:m).charsetSentinel,comma:("boolean"==typeof e.comma?e:m).comma,decoder:("function"==typeof e.decoder?e:m).decoder,delimiter:("string"==typeof e.delimiter||p.isRegExp(e.delimiter)?e:m).delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:m.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:("boolean"==typeof e.interpretNumericEntities?e:m).interpretNumericEntities,parameterLimit:("number"==typeof e.parameterLimit?e:m).parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:("boolean"==typeof e.plainObjects?e:m).plainObjects,strictNullHandling:("boolean"==typeof e.strictNullHandling?e:m).strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var o="string"==typeof e?l(e,r):e,n=r.plainObjects?Object.create(null):{},i=Object.keys(o),a=0;a<i.length;++a)var c=i[a],c=f(c,o[c],r,"string"==typeof e),n=p.merge(n,c,r);return p.compact(n)}},{"./utils":5}],4:[function(e,t,r){"use strict";function j(e,t){o.apply(e,x(t)?t:[t])}function O(e,t,r,o,n,i,a,c,l,f,s,u,p,d){var y=e;if("function"==typeof a?y=a(t,y):y instanceof Date?y=f(y):"comma"===r&&x(y)&&(y=w.maybeMap(y,function(e){return e instanceof Date?f(e):e})),null===y){if(o)return i&&!p?i(t,N.encoder,d,"key",s):t;y=""}if(e=y,"string"==typeof e||"number"==typeof e||"boolean"==typeof e||"symbol"==typeof e||"bigint"==typeof e||w.isBuffer(y))return i?[u(p?t:i(t,N.encoder,d,"key",s))+"="+u(i(y,N.encoder,d,"value",s))]:[u(t)+"="+u(String(y))];var m,h=[];if(void 0===y)return h;m="comma"===r&&x(y)?[{value:0<y.length?y.join(",")||null:void 0}]:x(a)?a:(e=Object.keys(y),c?e.sort(c):e);for(var b=0;b<m.length;++b){var g=m[b],v="object"==typeof g&&void 0!==g.value?g.value:y[g];n&&null===v||(g=x(y)?"function"==typeof r?r(t,g):t:t+(l?"."+g:"["+g+"]"),j(h,O(v,g,r,o,n,i,a,c,l,f,s,u,p,d)))}return h}var w=e("./utils"),f=e("./formats"),s=Object.prototype.hasOwnProperty,u={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},x=Array.isArray,o=Array.prototype.push,n=Date.prototype.toISOString,e=f.default,N={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:w.encode,encodeValuesOnly:!1,format:e,formatter:f.formatters[e],indices:!1,serializeDate:function(e){return n.call(e)},skipNulls:!1,strictNullHandling:!1};t.exports=function(e,t){var r=e,o=function(e){if(!e)return N;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||N.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=f.default;if(void 0!==e.format){if(!s.call(f.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var o=f.formatters[r],n=N.filter;return"function"!=typeof e.filter&&!x(e.filter)||(n=e.filter),{addQueryPrefix:("boolean"==typeof e.addQueryPrefix?e:N).addQueryPrefix,allowDots:void 0===e.allowDots?N.allowDots:!!e.allowDots,charset:t,charsetSentinel:("boolean"==typeof e.charsetSentinel?e:N).charsetSentinel,delimiter:(void 0===e.delimiter?N:e).delimiter,encode:("boolean"==typeof e.encode?e:N).encode,encoder:("function"==typeof e.encoder?e:N).encoder,encodeValuesOnly:("boolean"==typeof e.encodeValuesOnly?e:N).encodeValuesOnly,filter:n,format:r,formatter:o,serializeDate:("function"==typeof e.serializeDate?e:N).serializeDate,skipNulls:("boolean"==typeof e.skipNulls?e:N).skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:("boolean"==typeof e.strictNullHandling?e:N).strictNullHandling}}(t);"function"==typeof o.filter?r=(0,o.filter)("",r):x(o.filter)&&(a=o.filter);var n=[];if("object"!=typeof r||null===r)return"";e=t&&t.arrayFormat in u?t.arrayFormat:!(t&&"indices"in t)||t.indices?"indices":"repeat";var i=u[e],a=a||Object.keys(r);o.sort&&a.sort(o.sort);for(var c=0;c<a.length;++c){var l=a[c];o.skipNulls&&null===r[l]||j(n,O(r[l],l,i,o.strictNullHandling,o.skipNulls,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.format,o.formatter,o.encodeValuesOnly,o.charset))}t=n.join(o.delimiter),e=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?e+="utf8=%26%2310003%3B&":e+="utf8=%E2%9C%93&"),0<t.length?e+t:""}},{"./formats":1,"./utils":5}],5:[function(e,t,r){"use strict";function c(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},o=0;o<e.length;++o)void 0!==e[o]&&(r[o]=e[o]);return r}var f=e("./formats"),l=Object.prototype.hasOwnProperty,s=Array.isArray,u=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),e=function o(n,i,a){if(!i)return n;if("object"!=typeof i){if(s(n))n.push(i);else{if(!n||"object"!=typeof n)return[n,i];(a&&(a.plainObjects||a.allowPrototypes)||!l.call(Object.prototype,i))&&(n[i]=!0)}return n}if(!n||"object"!=typeof n)return[n].concat(i);var e=n;return s(n)&&!s(i)&&(e=c(n,a)),s(n)&&s(i)?(i.forEach(function(e,t){var r;l.call(n,t)?(r=n[t])&&"object"==typeof r&&e&&"object"==typeof e?n[t]=o(r,e,a):n.push(e):n[t]=e}),n):Object.keys(i).reduce(function(e,t){var r=i[t];return l.call(e,t)?e[t]=o(e[t],r,a):e[t]=r,e},e)};t.exports={arrayToObject:c,assign:function(e,r){return Object.keys(r).reduce(function(e,t){return e[t]=r[t],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),c=0;c<a.length;++c){var l=a[c],f=i[l];"object"==typeof f&&null!==f&&-1===r.indexOf(f)&&(t.push({obj:i,prop:l}),r.push(f))}return function(e){for(;1<e.length;){var t=e.pop(),r=t.obj[t.prop];if(s(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(e){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="",c=0;c<i.length;++c){var l=i.charCodeAt(c);45===l||46===l||95===l||126===l||48<=l&&l<=57||65<=l&&l<=90||97<=l&&l<=122||n===f.RFC1738&&(40===l||41===l)?a+=i.charAt(c):l<128?a+=u[l]:l<2048?a+=u[192|l>>6]+u[128|63&l]:l<55296||57344<=l?a+=u[224|l>>12]+u[128|l>>6&63]+u[128|63&l]:(c+=1,l=65536+((1023&l)<<10|1023&i.charCodeAt(c)),a+=u[240|l>>18]+u[128|l>>12&63]+u[128|l>>6&63]+u[128|63&l])}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(s(e)){for(var r=[],o=0;o<e.length;o+=1)r.push(t(e[o]));return r}return t(e)},merge:e}},{"./formats":1}]},{},[2])(2)});