Loading
function(e){"use strict";e.exports=function(e,t,r,n){t=t||"&",r=r||"=";var o={};if("string"!=typeof e||0===e.length)return o;var i=/\+/g;e=e.split(t);var a=1e3;n&&"number"==typeof n.maxKeys&&(a=n.maxKeys);var s=e.length;a>0&&s>a&&(s=a);for(var l=0;l<s;++l){var u,c,f,p,d=e[l].replace(i,"%20"),h=d.indexOf(r);(h>=0?(u=d.substr(0,h),c=d.substr(h+1)):(u=d,c=""),f=decodeURIComponent(u),p=decodeURIComponent(c),Object.prototype.hasOwnProperty.call(o,f))?Array.isArray(o[f])?o[f].push(p):o[f]=[o[f],p]:o[f]=p}return o}}