YUI.add("querystring-stringify",function(e,r){var p=e.namespace("QueryString"),c=[],g=e.Lang;p.escape=encodeURIComponent,p.stringify=function(e,r,n){var i,t,s,o,a,u=r&&r.sep?r.sep:"&",y=r&&r.eq?r.eq:"=",f=!(!r||!r.arrayKey)&&r.arrayKey;if(g.isNull(e)||g.isUndefined(e)||g.isFunction(e))return n?p.escape(n)+y:"";if(!g.isBoolean(e)&&"[object Boolean]"!==Object.prototype.toString.call(e)||(e=+e),g.isNumber(e)||g.isString(e))return p.escape(n)+y+p.escape(e);if(g.isArray(e)){for(a=[],n=f?n+"[]":n,o=e.length,s=0;s<o;s++)a.push(p.stringify(e[s],r,n));return a.join(u)}for(s=c.length-1;0<=s;--s)if(c[s]===e)throw new Error("QueryString.stringify. Cyclical reference");for(s in c.push(e),a=[],i=n?n+"[":"",t=n?"]":"",e)e.hasOwnProperty(s)&&a.push(p.stringify(e[s],r,i+s+t));return c.pop(),!(a=a.join(u))&&n?n+"=":a}},"patched-v3.18.7",{requires:["yui-base"]});