/*! * Omnipath v2.0.3 (January 17th 2018) * * https://github.com/JS-DevTools/omnipath * * @author James Messinger (https://jamesmessinger.com) * @license MIT */ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.OmniPath=f()}})(function(){var define,module,exports;return function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o=-1;o--){var i;if(o>=0?i=arguments[o]:r?(i=process.env["="+r])&&i.substr(0,3).toLowerCase()===r.toLowerCase()+"\\"||(i=r+"\\"):i=process.cwd(),!t.isString(i))throw new TypeError("Arguments to path.resolve must be strings");if(i){var s=c(i),a=s.device,l=s.isUnc,f=s.isAbsolute,h=s.tail;if((!a||!r||a.toLowerCase()===r.toLowerCase())&&(r||(r=a),n||(e=h+"\\"+e,n=f),r&&n))break}}return l&&(r=p(r)),e=u(e.split(/[\\\/]+/),!n).join("\\"),r+(n?"\\":"")+e||"."},normalize:function(r){var e=c(r),t=e.device,n=e.isUnc,o=e.isAbsolute,i=e.tail,s=/[\\\/]$/.test(i);return(i=u(i.split(/[\\\/]+/),!o).join("\\"))||o||(i="."),i&&s&&(i+="\\"),n&&(t=p(t)),t+(o?"\\":"")+i},isAbsolute:function(r){return c(r).isAbsolute},join:function(){for(var r=[],e=0;e=-1&&!e;n--){var o=n>=0?arguments[n]:process.cwd();if(!t.isString(o))throw new TypeError("Arguments to path.resolve must be strings");o&&(r=o+"/"+r,e="/"===o[0])}return r=u(r.split("/"),!e).join("/"),(e?"/":"")+r||"."},normalize:function(r){var e=a.isAbsolute(r),t=r&&"/"===r[r.length-1];return(r=u(r.split("/"),!e).join("/"))||e||(r="."),r&&t&&(r+="/"),(e?"/":"")+r},isAbsolute:function(r){return"/"===r.charAt(0)},join:function(){for(var r="",e=0;e=0&&!r[n];n--);return 0===t&&n===e?r:t>n?[]:r.slice(t,n+1)}function f(r){var e=n.exec(r),t=(e[1]||"")+(e[2]||""),i=e[3]||"",s=o.exec(i);return[t,s[1],s[2],s[3]]}function c(r){var e=n.exec(r),t=e[1]||"",o=!!t&&":"!==t[1];return{device:t,isUnc:o,isAbsolute:o||!!e[2],tail:e[3]}}function p(r){return"\\\\"+r.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}function h(r){return s.exec(r).slice(1)}}()}).call(this,require("_process"))},{"../util":8,_process:9,path:2}],3:[function(require,module,exports){!function(){"use strict";var t=require("path");if(t.posix&&t.windows)module.exports=require("url");else{var s=require("punycode"),h=require("../util");exports.parse=y,exports.resolve=function(t,s){return y(t,!1,!0).resolve(s)},exports.resolveObject=function(t,s){if(!t)return s;return y(t,!1,!0).resolveObject(s)},exports.format=function(t){h.isString(t)&&(t=y(t));if(!(t instanceof g))return g.prototype.format.call(t);return t.format()},exports.Url=g;var e=/^([a-z0-9.+-]+:)/i,r=/:[0-9]*$/,a=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,o=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),n=["'"].concat(o),i=["%","/","?",";","#"].concat(n),l=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,u=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,c={javascript:!0,"javascript:":!0},f={javascript:!0,"javascript:":!0},m={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=require("querystring");g.prototype.parse=function(t,r,o){if(!h.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var g=t.indexOf("?"),y=-1!==g&&g127?$+="x":$+=S[z];if(!$.match(p)){var L=N.slice(0,I),Z=N.slice(I+1),_=S.match(u);_&&(L.push(_[1]),Z.unshift(_[2])),Z.length&&(q="/"+Z.join(".")+q),this.hostname=L.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),k||(this.hostname=s.toASCII(this.hostname));var E=this.port?":"+this.port:"",P=this.hostname||"";this.host=P+E,this.href+=this.host,k&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==q[0]&&(q="/"+q))}if(!c[O])for(I=0,R=n.length;I0)&&e.host.split("@"))&&(e.auth=k.shift(),e.host=e.hostname=k.shift());return e.search=t.search,e.query=t.query,h.isNull(e.pathname)&&h.isNull(e.search)||(e.path=(e.pathname?e.pathname:"")+(e.search?e.search:"")),e.href=e.format(),e}if(!j.length)return e.pathname=null,e.search?e.path="/"+e.search:e.path=null,e.href=e.format(),e;for(var w=j.slice(-1)[0],C=(e.host||t.host)&&("."===w||".."===w)||""===w,I=0,U=j.length;U>=0;U--)"."===(w=j[U])?j.splice(U,1):".."===w?(j.splice(U,1),I++):I&&(j.splice(U,1),I--);if(!x&&!O)for(;I--;I)j.unshift("..");!x||""===j[0]||j[0]&&"/"===j[0].charAt(0)||j.unshift(""),C&&"/"!==j.join("/").substr(-1)&&j.push("");var k,N=""===j[0]||j[0]&&"/"===j[0].charAt(0);A&&(e.hostname=e.host=N?"":j.length?j.shift():"",(k=!!(e.host&&e.host.indexOf("@")>0)&&e.host.split("@"))&&(e.auth=k.shift(),e.host=e.hostname=k.shift()));return(x=x||e.host&&j.length)&&!N&&j.unshift(""),j.length?e.pathname=j.join("/"):(e.pathname=null,e.path=null),h.isNull(e.pathname)&&h.isNull(e.search)||(e.path=(e.pathname?e.pathname:"")+(e.search?e.search:"")),e.auth=t.auth||e.auth,e.slashes=e.slashes||t.slashes,e.href=e.format(),e},g.prototype.parseHost=function(){var t=this.host,s=r.exec(t);s&&(":"!==(s=s[0])&&(this.port=s.substr(1)),t=t.substr(0,t.length-s.length)),t&&(this.hostname=t)}}function g(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function y(t,s,e){if(t&&h.isObject(t)&&t instanceof g)return t;var r=new g;return r.parse(t,s,e),r}}()},{"../util":8,path:2,punycode:10,querystring:13,url:3}],4:[function(require,module,exports){(function(process){"use strict";module.exports=OmniPath;var path=require("./node/path"),url=require("./node/url"),util=require("./util"),querystring=require("querystring"),parts=["protocol","slashes","hostname","port","host","dir","base","pathname","query","search","path","hash"];function OmniPath(t,i){if(t instanceof OmniPath)return t.clone(i);t=util.toString(t);var r=util.getType(t);return r.isUrl?new OmniPath.Url(t,i):r.isWindows?new OmniPath.Windows(t,i):new OmniPath.Posix(t,i)}function callSubclassMethod(t,i){var r=util.getType(i[0]);return r.isUrl?OmniPath.Url[t].apply(OmniPath.Url,i):r.isWindows?OmniPath.Windows[t].apply(OmniPath.Windows,i):OmniPath.Posix[t].apply(OmniPath.Posix,i)}["isUrl","isPosix","isWindows"].forEach(function(t){OmniPath[t]=function(i){return i instanceof OmniPath?i[t]:!!util.getType(i)[t]}}),util.props.forEach(function(t){void 0===OmniPath[t]&&(OmniPath[t]=function(i,r){return new this(i,r)[t]})}),OmniPath.dirname=function(t,i){return new this(t,i).dirname()},OmniPath.prototype.dirname=function(){return this._path.dirname(this.pathname)},OmniPath.basename=function(t,i,r){"object"==typeof i&&(r=i,i=void 0);return new this(t,r).basename(i)},OmniPath.prototype.basename=function(t){return this._path.basename(this.base,t)},OmniPath.extname=OmniPath.ext,OmniPath.prototype.extname=function(){return this.ext},OmniPath.join=function(t,i){return callSubclassMethod("join",arguments)},OmniPath.prototype.join=function(t,i){var r=[this].concat(Array.prototype.slice.call(arguments)),n=util.fastParse(r,!1,!0);return this._path.join.apply(this._path,n.pathnames)+n.searches[n.last]+n.hashes[n.last]},OmniPath.resolve=function(t,i,r){return callSubclassMethod("resolve",arguments)},OmniPath.prototype.resolve=function(t,i){var r=[this].concat(Array.prototype.slice.call(arguments)),n=util.fastParse(r),a=n.pathnames;if(n.hasUrls)return OmniPath.Url.resolve.apply(OmniPath.Url,n.hrefs);process.browser&&(a=[OmniPath.cwd()].concat(n.pathnames));for(var s=this._path.resolve.apply(this._path,a),e="",h="",o=0;o<=n.last;o++)n.searches[o]?(e=n.searches[o],h=n.hashes[o]):n.hashes[o]&&(h=n.hashes[o]);return s+e+h},OmniPath.normalize=function(t,i){return new this(t,i).normalize()},OmniPath.prototype.normalize=function(){var t=this.pathname||this._path.format(this);return this._path.normalize(t)+this._getFormattedSearchAndHash()},OmniPath.format=function(t,i){return new this(t,i).format()},OmniPath.prototype.format=function(){return this._path.format(this)+this._getFormattedSearchAndHash()},OmniPath.formatPart=function(t,i,r){return new this(t,r).formatPart(i)},OmniPath.prototype.formatPart=function(t){t=parts.indexOf(t);var i=this.clone();return t<0&&(i.protocol=""),t<1&&(i.slashes=!1),t<2&&(i.hostname=""),t<3&&(i.port=""),t<4&&(i.host=""),t<5&&(i.dir=""),t<6&&(i.base=""),t<7&&(i.pathname=""),t<8&&(i.query=""),t<9&&(i.search=""),t<10&&(i.path=""),t<11&&(i.hash=""),i.format()},OmniPath.prototype.toString=OmniPath.prototype.format,OmniPath.prototype.valueOf=OmniPath.prototype.format,OmniPath.toUrl=function(t,i){return new this(t,i).toUrl()},OmniPath.prototype.toUrl=function(){return url.parse(this.toUrlString(),!0)},OmniPath.toUrlString=function(t,i){return new this(t,i).toUrlString()},OmniPath.prototype.toUrlString=function(){var t=this.hostname,i=this.pathname,r=this.search,n=this.hash;i=i.replace(util.backslashPattern,"%5C"),r=r.replace(util.backslashPattern,"%5C"),n=n.replace(util.backslashPattern,"%5C");var a=url.format({protocol:"file:",slashes:!0,hostname:t,pathname:i,search:r,hash:n});return url.parse(a).format()},OmniPath.cwd=function(){if(process.browser){var t=new OmniPath.Url(window.location.href).formatPart("dir");return t.substr(-1)!==OmniPath.Url.sep&&(t+=OmniPath.Url.sep),t}return process.cwd()+path.sep},OmniPath.parse=function(t,i){return new this(t,i)},OmniPath.prototype.parse=function(t,i){return t instanceof this.constructor?(util.copy(t,this),void(this._options=i||t._options||this._options)):(this.isUrl=!1,this.isFS=!1,this.isPosix=!1,this.isWindows=!1,this.isUnc=!1,this.isAbsolute=!1,this.sep="",this.delimiter="",this.href="",this.protocol="",this.slashes=!1,this.auth="",this.host="",this.hostname="",this.port="",this.path="",this.pathname="",this.root="",this.dir="",this.base="",this.name="",this.ext="",this.search="",this.query={},this.hash="",this._options=i||this._options||t&&t._options,util.toString(t))},OmniPath.prototype.toJSON=function(){for(var t={},i=0;i=0;s--)if(t=util.toString(e[s]),r=url.resolve(t,r),looseProtocolPattern.test(r))return r;return url.resolve(OmniPath.cwd(),r)},OmniUrl.prototype.resolve=function(t,r){return OmniUrl.resolve.apply(OmniUrl,[this].concat(Array.prototype.slice.call(arguments)))},OmniUrl.cwd=function(){var t=OmniPath.cwd();return OmniUrl.normalize(t)},OmniUrl.prototype._getFormattedPathname=function(){var t=this.pathname;if(this.dir||this.base){var r=t;if(this.dir===this.sep)t=(slashesPattern.exec(this.pathname)||[""])[0]+this.base;else t=posix.format(this);util.endsWithAnySeparator(r)&&!util.endsWithAnySeparator(t)&&(t+=posix.sep)}return t}},{"./node/path":2,"./node/url":3,"./omni-path":4,"./util":8}],7:[function(require,module,exports){"use strict";module.exports=OmniWindows;var win32=require("./node/path").win32,OmniPath=require("./index"),util=require("./util"),uncPattern=/^[\\\/]{2}([^\\\/]+)[\\\/]+[^\\\/]+/,splitUncPattern=/^\/+([^\/]+)(.*)/;function OmniWindows(i,t){if(!(this instanceof OmniWindows))throw new TypeError('Use the "new" keyword when creating an instance of OmniPath.Windows');this._path=win32,this.parse(i,t)}util.inherits(OmniWindows,OmniPath),OmniWindows.sep=win32.sep,OmniWindows.delimiter=win32.delimiter,OmniWindows.isUrl=function(){return!1},OmniWindows.isPosix=function(){return!1},OmniWindows.isWindows=function(){return!0},OmniWindows.prototype.parse=function(i,t){if("string"==typeof(i=OmniPath.prototype.parse.apply(this,arguments))){var n=util.parsePath(i,this._options),s=win32.parse(n.pathname),e=uncPattern.exec(n.pathname);this.isFS=!0,this.isWindows=!0,this.isAbsolute=win32.isAbsolute(n.pathname),this.isUnc=!!e,this.sep=win32.sep,this.delimiter=win32.delimiter,this.href=i,this.path=n.pathname+n.search,this.pathname=n.pathname,this.root=s.root,this.dir=s.dir,this.base=s.base,this.name=s.name,this.ext=s.ext,this.search=n.search,this.query=n.query,this.hash=n.hash,this.isUnc&&(this.host=this.hostname=e[1])}return this},OmniWindows.prototype.format=function(){return!this.isUnc||!this.host&&!this.hostname||this.dir||this.base?OmniPath.prototype.format.apply(this,arguments):"\\\\"+(this.hostname||this.host)},OmniWindows.prototype.toUrlString=function(){var i=this.clone();if(i.pathname=i.pathname.replace(util.backslashPattern,"/"),this.isUnc){var t=splitUncPattern.exec(i.pathname);t&&(i.hostname=t[1],i.pathname=t[2]||"/")}return OmniPath.prototype.toUrlString.apply(i,arguments)},OmniWindows.join=function(i,t){return OmniPath.prototype.join.apply({_path:win32,href:""},arguments)},OmniWindows.resolve=function(i,t,n){return OmniPath.prototype.resolve.apply({_path:win32,href:""},arguments)},OmniWindows.cwd=function(){var i=OmniPath.cwd();return win32.normalize(i)}},{"./index":1,"./node/path":2,"./util":8}],8:[function(require,module,exports){(function(process){"use strict";var util=module.exports={props:["isUrl","isFS","isPosix","isWindows","isUnc","isAbsolute","sep","delimiter","href","protocol","slashes","auth","host","hostname","port","path","pathname","root","dir","base","name","ext","search","query","hash"],backslashPattern:/\\/g,isString:isString,isObject:isObject,isNull:isNull,isNullOrUndefined:isNullOrUndefined,toString:toString,inherits:inherits,copy:copy,getType:getType,parsePath:parsePath,fastParse:fastParse,getArgs:getArgs,startsWithAnySeparator:startsWithAnySeparator,endsWithAnySeparator:endsWithAnySeparator},OmniPath=require("./omni-path"),url=require("./node/url"),querystring=require("querystring"),protocolPattern=/^[a-z0-9.+-]+:\/\//i;function isString(t){return"string"==typeof t}function isObject(t){return"object"==typeof t&&null!==t}function isNull(t){return null===t}function isNullOrUndefined(t){return null===t||void 0===t}function toString(t){if("string"==typeof t)return t;if(t instanceof url.Url)return t.format();if(t instanceof OmniPath)return t.format();if(t&&"string"==typeof t.href)return t.href;throw new Error("Expected a file path or URL, but got "+typeof t+" "+t)}function inherits(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,Object.keys(r).forEach(function(e){"function"==typeof r[e]?t[e]=function(){return r[e].apply(t,arguments)}:t[e]=r[e]})}function copy(t,r){for(var e=0;e=0&&(e=t.substr(a),t=t.substr(0,a))}if(r.allowFileQuery){var i=t.lastIndexOf("?");i>=0&&(n=(s=t.substr(i)).substr(1),(r.parseQueryString||void 0===r.parseQueryString)&&(n=querystring.parse(n)),t=t.substr(0,i))}return{pathname:t,search:s,query:n,hash:e}}function fastParse(t,r,e){for(var s=(t=getArgs(t)).paths,n=t.options,a={last:s.length-1,hasUrls:!1,hrefs:[],pathnames:[],searches:[],hashes:[]},i=0;i0){var e=t[t.length-1];"string"==typeof e||e instanceof OmniPath||e instanceof url.Url?r.paths=Array.prototype.slice.call(t):(r.options=e,r.paths=Array.prototype.slice.call(t,0,t.length-1))}return r}function startsWithAnySeparator(t){var r=t[0];return"/"===r||"\\"===r}function endsWithAnySeparator(t){var r=t.substr(-1);return"/"===r||"\\"===r}}).call(this,require("_process"))},{"./node/url":3,"./omni-path":4,_process:9,querystring:13}],9:[function(require,module,exports){var cachedSetTimeout,cachedClearTimeout,process=module.exports={};function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}function runTimeout(e){if(cachedSetTimeout===setTimeout)return setTimeout(e,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(e,0);try{return cachedSetTimeout(e,0)}catch(t){try{return cachedSetTimeout.call(null,e,0)}catch(t){return cachedSetTimeout.call(this,e,0)}}}function runClearTimeout(e){if(cachedClearTimeout===clearTimeout)return clearTimeout(e);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(e);try{return cachedClearTimeout(e)}catch(t){try{return cachedClearTimeout.call(null,e)}catch(t){return cachedClearTimeout.call(this,e)}}}!function(){try{cachedSetTimeout="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){cachedSetTimeout=defaultSetTimout}try{cachedClearTimeout="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){cachedClearTimeout=defaultClearTimeout}}();var currentQueue,queue=[],draining=!1,queueIndex=-1;function cleanUpNextTick(){draining&¤tQueue&&(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var e=runTimeout(cleanUpNextTick);draining=!0;for(var t=queue.length;t;){for(currentQueue=queue,queue=[];++queueIndex1)for(var r=1;r= 0x80 (not a basic code point)","invalid-input":"Invalid input"},b=f-c,y=Math.floor,C=String.fromCharCode;function m(e){throw new RangeError(x[e])}function j(e,o){for(var n=e.length,t=[];n--;)t[n]=o(e[n]);return t}function A(e,o){var n=e.split("@"),t="";return n.length>1&&(t=n[0]+"@",e=n[1]),t+j((e=e.replace(w,".")).split("."),o).join(".")}function I(e){for(var o,n,t=[],r=0,u=e.length;r=55296&&o<=56319&&r65535&&(o+=C((e-=65536)>>>10&1023|55296),e=56320|1023&e),o+=C(e)}).join("")}function F(e,o){return e+22+75*(e<26)-((0!=o)<<5)}function O(e,o,n){var t=0;for(e=n?y(e/d):e>>1,e+=y(e/o);e>b*l>>1;t+=f)e=y(e/b);return y(t+(b+1)*e/(e+s))}function S(e){var o,n,t,r,u,s,d,v,g,w,x,b=[],C=e.length,j=0,A=a,I=p;for((n=e.lastIndexOf(h))<0&&(n=0),t=0;t=128&&m("not-basic"),b.push(e.charCodeAt(t));for(r=n>0?n+1:0;r=C&&m("invalid-input"),((v=(x=e.charCodeAt(r++))-48<10?x-22:x-65<26?x-65:x-97<26?x-97:f)>=f||v>y((i-j)/s))&&m("overflow"),j+=v*s,!(v<(g=d<=I?c:d>=I+l?l:d-I));d+=f)s>y(i/(w=f-g))&&m("overflow"),s*=w;I=O(j-u,o=b.length+1,0==u),y(j/o)>i-A&&m("overflow"),A+=y(j/o),j%=o,b.splice(j++,0,A)}return E(b)}function T(e){var o,n,t,r,u,s,d,v,g,w,x,b,j,A,E,S=[];for(b=(e=I(e)).length,o=a,n=0,u=p,s=0;s=o&&xy((i-n)/(j=t+1))&&m("overflow"),n+=(d-o)*j,o=d,s=0;si&&m("overflow"),x==o){for(v=n,g=f;!(v<(w=g<=u?c:g>=u+l?l:g-u));g+=f)E=v-w,A=f-w,S.push(C(F(w+E%A,0))),v=y(E/A);S.push(C(F(v,0))),u=O(n,j,t==r),n=0,++t}++n,++o}return S.join("")}if(r={version:"1.4.1",ucs2:{decode:I,encode:E},decode:S,encode:T,toASCII:function(e){return A(e,function(e){return g.test(e)?"xn--"+T(e):e})},toUnicode:function(e){return A(e,function(e){return v.test(e)?S(e.slice(4).toLowerCase()):e})}},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return r});else if(o&&n)if(module.exports==o)n.exports=r;else for(u in r)r.hasOwnProperty(u)&&(o[u]=r[u]);else e.punycode=r}(this)}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{}],11:[function(require,module,exports){"use strict";function hasOwnProperty(r,e){return Object.prototype.hasOwnProperty.call(r,e)}module.exports=function(r,e,t,n){e=e||"&",t=t||"=";var o={};if("string"!=typeof r||0===r.length)return o;var a=/\+/g;r=r.split(e);var s=1e3;n&&"number"==typeof n.maxKeys&&(s=n.maxKeys);var p=r.length;s>0&&p>s&&(p=s);for(var y=0;y=0?(u=f.substr(0,v),c=f.substr(v+1)):(u=f,c=""),i=decodeURIComponent(u),l=decodeURIComponent(c),hasOwnProperty(o,i)?isArray(o[i])?o[i].push(l):o[i]=[o[i],l]:o[i]=l}return o};var isArray=Array.isArray||function(r){return"[object Array]"===Object.prototype.toString.call(r)}},{}],12:[function(require,module,exports){"use strict";var stringifyPrimitive=function(r){switch(typeof r){case"string":return r;case"boolean":return r?"true":"false";case"number":return isFinite(r)?r:"";default:return""}};module.exports=function(r,e,t,n){return e=e||"&",t=t||"=",null===r&&(r=void 0),"object"==typeof r?map(objectKeys(r),function(n){var i=encodeURIComponent(stringifyPrimitive(n))+t;return isArray(r[n])?map(r[n],function(r){return i+encodeURIComponent(stringifyPrimitive(r))}).join(e):i+encodeURIComponent(stringifyPrimitive(r[n]))}).join(e):n?encodeURIComponent(stringifyPrimitive(n))+t+encodeURIComponent(stringifyPrimitive(r)):""};var isArray=Array.isArray||function(r){return"[object Array]"===Object.prototype.toString.call(r)};function map(r,e){if(r.map)return r.map(e);for(var t=[],n=0;n