forked from golang/hotime
1 line
21 KiB
JavaScript
1 line
21 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-c4f57cb2"],{"0a06":function(e,t,r){"use strict";var n=r("c532"),o=r("30b5"),i=r("f6b4"),a=r("5270"),s=r("4a7b");function c(e){this.defaults=e,this.interceptors={request:new i,response:new i}}c.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[a,void 0],r=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)r=r.then(t.shift(),t.shift());return r},c.prototype.getUri=function(e){return e=s(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],function(r){c.prototype[r]=function(e,t){return this.request(s(t||{},{method:r,url:e,data:(t||{}).data}))}}),n.forEach(["post","put","patch"],function(n){c.prototype[n]=function(e,t,r){return this.request(s(r||{},{method:n,url:e,data:t}))}}),e.exports=c},"0df6":function(e,t,r){"use strict";e.exports=function(t){return function(e){return t.apply(null,e)}}},"1d2b":function(e,t,r){"use strict";e.exports=function(r,n){return function(){for(var e=new Array(arguments.length),t=0;t<e.length;t++)e[t]=arguments[t];return r.apply(n,e)}}},2444:function(s,e,c){"use strict";!function(e){var r=c("c532"),n=c("c8af"),t={"Content-Type":"application/x-www-form-urlencoded"};function o(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var i,a={adapter:i="undefined"!=typeof XMLHttpRequest||void 0!==e&&"[object process]"===Object.prototype.toString.call(e)?c("b50d"):i,transformRequest:[function(e,t){return n(t,"Accept"),n(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(o(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(o(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return 200<=e&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],function(e){a.headers[e]={}}),r.forEach(["post","put","patch"],function(e){a.headers[e]=r.merge(t)}),s.exports=a}.call(this,c("4362"))},"2d83":function(e,t,r){"use strict";var i=r("387f");e.exports=function(e,t,r,n,o){e=new Error(e);return i(e,t,r,n,o)}},"2e67":function(e,t,r){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},"30b5":function(e,t,r){"use strict";var o=r("c532");function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;var n,r=r?r(t):o.isURLSearchParams(t)?t.toString():(n=[],o.forEach(t,function(e,t){null!=e&&(o.isArray(e)?t+="[]":e=[e],o.forEach(e,function(e){o.isDate(e)?e=e.toISOString():o.isObject(e)&&(e=JSON.stringify(e)),n.push(i(t)+"="+i(e))}))}),n.join("&"));return r&&(-1!==(t=e.indexOf("#"))&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+r),e}},"387f":function(e,t,r){"use strict";e.exports=function(e,t,r,n,o){return e.config=t,r&&(e.code=r),e.request=n,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},3934:function(e,t,r){"use strict";var n,o,i,a=r("c532");function s(e){return o&&(i.setAttribute("href",e),e=i.href),i.setAttribute("href",e),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}e.exports=a.isStandardBrowserEnv()?(o=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a"),n=s(window.location.href),function(e){e=a.isString(e)?s(e):e;return e.protocol===n.protocol&&e.host===n.host}):function(){return!0}},4127:function(e,t,r){"use strict";function v(e,t,r,n,o,i,a,s,c,u,f,l){var p=e;if("function"==typeof a)p=a(t,p);else if(p instanceof Date)p=u(p);else if(null===p){if(n)return i&&!l?i(t,O.encoder):t;p=""}if("string"==typeof p||"number"==typeof p||"boolean"==typeof p||w.isBuffer(p))return i?[f(l?t:i(t,O.encoder))+"="+f(i(p,O.encoder))]:[f(t)+"="+f(String(p))];var d,h=[];if(void 0===p)return h;d=Array.isArray(a)?a:(e=Object.keys(p),s?e.sort(s):e);for(var y=0;y<d.length;++y){var m=d[y];o&&null===p[m]||(h=Array.isArray(p)?h.concat(v(p[m],r(t,m),r,n,o,i,a,s,c,u,f,l)):h.concat(v(p[m],t+(c?"."+m:"["+m+"]"),r,n,o,i,a,s,c,u,f,l)))}return h}var w=r("d233"),x=r("b313"),j={brackets:function(e){return e+"[]"},indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},n=Date.prototype.toISOString,O={delimiter:"&",encode:!0,encoder:w.encode,encodeValuesOnly:!1,serializeDate:function(e){return n.call(e)},skipNulls:!1,strictNullHandling:!1};e.exports=function(e,t){var r=e,n=t?w.assign({},t):{};if(null!==n.encoder&&void 0!==n.encoder&&"function"!=typeof n.encoder)throw new TypeError("Encoder has to be a function.");var e=(void 0===n.delimiter?O:n).delimiter,o=("boolean"==typeof n.strictNullHandling?n:O).strictNullHandling,i=("boolean"==typeof n.skipNulls?n:O).skipNulls,a=("boolean"==typeof n.encode?n:O).encode,s=("function"==typeof n.encoder?n:O).encoder,c="function"==typeof n.sort?n.sort:null,u=void 0!==n.allowDots&&n.allowDots,f=("function"==typeof n.serializeDate?n:O).serializeDate,l=("boolean"==typeof n.encodeValuesOnly?n:O).encodeValuesOnly;if(void 0===n.format)n.format=x.default;else if(!Object.prototype.hasOwnProperty.call(x.formatters,n.format))throw new TypeError("Unknown format option provided.");var p,d=x.formatters[n.format];"function"==typeof n.filter?r=(p=n.filter)("",r):Array.isArray(n.filter)&&(m=p=n.filter);var h=[];if("object"!=typeof r||null===r)return"";var t=n.arrayFormat in j?n.arrayFormat:!("indices"in n)||n.indices?"indices":"repeat",y=j[t],m=m||Object.keys(r);c&&m.sort(c);for(var g=0;g<m.length;++g){var b=m[g];i&&null===r[b]||(h=h.concat(v(r[b],b,y,o,i,a?s:null,p,c,u,f,d,l)))}e=h.join(e),n=!0===n.addQueryPrefix?"?":"";return 0<e.length?n+e:""}},4328:function(e,t,r){"use strict";var n=r("4127"),o=r("9e6a"),r=r("b313");e.exports={formats:r,parse:o,stringify:n}},"467f":function(e,t,r){"use strict";var o=r("2d83");e.exports=function(e,t,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(o("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)}},"4a7b":function(e,t,r){"use strict";var f=r("c532");e.exports=function(t,r){r=r||{};var n={},e=["url","method","data"],o=["headers","auth","proxy","params"],i=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function s(e,t){return f.isPlainObject(e)&&f.isPlainObject(t)?f.merge(e,t):f.isPlainObject(t)?f.merge({},t):f.isArray(t)?t.slice():t}function c(e){f.isUndefined(r[e])?f.isUndefined(t[e])||(n[e]=s(void 0,t[e])):n[e]=s(t[e],r[e])}f.forEach(e,function(e){f.isUndefined(r[e])||(n[e]=s(void 0,r[e]))}),f.forEach(o,c),f.forEach(i,function(e){f.isUndefined(r[e])?f.isUndefined(t[e])||(n[e]=s(void 0,t[e])):n[e]=s(void 0,r[e])}),f.forEach(a,function(e){e in r?n[e]=s(t[e],r[e]):e in t&&(n[e]=s(void 0,t[e]))});var u=e.concat(o).concat(i).concat(a),a=Object.keys(t).concat(Object.keys(r)).filter(function(e){return-1===u.indexOf(e)});return f.forEach(a,c),n}},5270:function(e,t,r){"use strict";var n=r("c532"),o=r("c401"),i=r("2e67"),a=r("2444");function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(t){return s(t),t.headers=t.headers||{},t.data=o(t.data,t.headers,t.transformRequest),t.headers=n.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),n.forEach(["delete","get","head","post","put","patch","common"],function(e){delete t.headers[e]}),(t.adapter||a.adapter)(t).then(function(e){return s(t),e.data=o(e.data,e.headers,t.transformResponse),e},function(e){return i(e)||(s(t),e&&e.response&&(e.response.data=o(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)})}},"5f02":function(e,t,r){"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},"7a77":function(e,t,r){"use strict";function n(e){this.message=e}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,e.exports=n},"7aac":function(e,t,r){"use strict";var s=r("c532");e.exports=s.isStandardBrowserEnv()?{write:function(e,t,r,n,o,i){var a=[];a.push(e+"="+encodeURIComponent(t)),s.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),s.isString(n)&&a.push("path="+n),s.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){e=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},"83b9":function(e,t,r){"use strict";var n=r("d925"),o=r("e683");e.exports=function(e,t){return e&&!n(t)?o(e,t):t}},"857a":function(e,t,r){var i=r("1d80"),a=/"/g;e.exports=function(e,t,r,n){var o=String(i(e)),e="<"+t;return""!==r&&(e+=" "+r+'="'+String(n).replace(a,""")+'"'),e+">"+o+"</"+t+">"}},"8df4":function(e,t,r){"use strict";var n=r("7a77");function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var r=this;e(function(e){r.reason||(r.reason=new n(e),t(r.reason))})}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var t;return{token:new o(function(e){t=e}),cancel:t}},e.exports=o},9911:function(e,t,r){"use strict";var n=r("23e7"),o=r("857a");n({target:"String",proto:!0,forced:r("af03")("link")},{link:function(e){return o(this,"a","href",e)}})},"9e6a":function(e,t,r){"use strict";function c(e,t,r){if(e){var n=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/g,i=/(\[[^[\]]*])/.exec(n),e=i?n.slice(0,i.index):n,a=[];if(e){if(!r.plainObjects&&f.call(Object.prototype,e)&&!r.allowPrototypes)return;a.push(e)}for(var s=0;null!==(i=o.exec(n))&&s<r.depth;){if(s+=1,!r.plainObjects&&f.call(Object.prototype,i[1].slice(1,-1))&&!r.allowPrototypes)return;a.push(i[1])}return i&&a.push("["+n.slice(i.index)+"]"),function(e,t,r){for(var n=t,o=e.length-1;0<=o;--o){var i,a,s,c=e[o];"[]"===c?i=(i=[]).concat(n):(i=r.plainObjects?Object.create(null):{},a="["===c.charAt(0)&&"]"===c.charAt(c.length-1)?c.slice(1,-1):c,s=parseInt(a,10),!isNaN(s)&&c!==a&&String(s)===a&&0<=s&&r.parseArrays&&s<=r.arrayLimit?(i=[])[s]=n:i[a]=n),n=i}return n}(a,t,r)}}var u=r("d233"),f=Object.prototype.hasOwnProperty,l={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:u.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1};e.exports=function(e,t){var r=t?u.assign({},t):{};if(null!==r.decoder&&void 0!==r.decoder&&"function"!=typeof r.decoder)throw new TypeError("Decoder has to be a function.");if(r.ignoreQueryPrefix=!0===r.ignoreQueryPrefix,r.delimiter=("string"==typeof r.delimiter||u.isRegExp(r.delimiter)?r:l).delimiter,r.depth=("number"==typeof r.depth?r:l).depth,r.arrayLimit=("number"==typeof r.arrayLimit?r:l).arrayLimit,r.parseArrays=!1!==r.parseArrays,r.decoder=("function"==typeof r.decoder?r:l).decoder,r.allowDots=("boolean"==typeof r.allowDots?r:l).allowDots,r.plainObjects=("boolean"==typeof r.plainObjects?r:l).plainObjects,r.allowPrototypes=("boolean"==typeof r.allowPrototypes?r:l).allowPrototypes,r.parameterLimit=("number"==typeof r.parameterLimit?r:l).parameterLimit,r.strictNullHandling=("boolean"==typeof r.strictNullHandling?r:l).strictNullHandling,""===e||null==e)return r.plainObjects?Object.create(null):{};for(var n="string"==typeof e?function(e,t){for(var r={},n=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,e=t.parameterLimit===1/0?void 0:t.parameterLimit,o=n.split(t.delimiter,e),i=0;i<o.length;++i){var a,s=o[i],c=s.indexOf("]="),c=-1===c?s.indexOf("="):c+1,c=-1===c?(a=t.decoder(s,l.decoder),t.strictNullHandling?null:""):(a=t.decoder(s.slice(0,c),l.decoder),t.decoder(s.slice(c+1),l.decoder));f.call(r,a)?r[a]=[].concat(r[a]).concat(c):r[a]=c}return r}(e,r):e,o=r.plainObjects?Object.create(null):{},i=Object.keys(n),a=0;a<i.length;++a)var s=i[a],s=c(s,n[s],r),o=u.merge(o,s,r);return u.compact(o)}},af03:function(e,t,r){var n=r("d039");e.exports=function(t){return n(function(){var e=""[t]('"');return e!==e.toLowerCase()||3<e.split('"').length})}},b313:function(e,t,r){"use strict";var n=String.prototype.replace,o=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return n.call(e,o,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},b50d:function(e,t,r){"use strict";var c=r("c532"),u=r("467f"),f=r("7aac"),l=r("30b5"),p=r("83b9"),d=r("c345"),h=r("3934"),y=r("2d83");e.exports=function(s){return new Promise(function(t,r){var n=s.data,o=s.headers;c.isFormData(n)&&delete o["Content-Type"];var e,i=new XMLHttpRequest;s.auth&&(e=s.auth.username||"",a=s.auth.password?unescape(encodeURIComponent(s.auth.password)):"",o.Authorization="Basic "+btoa(e+":"+a));var a=p(s.baseURL,s.url);if(i.open(s.method.toUpperCase(),l(a,s.params,s.paramsSerializer),!0),i.timeout=s.timeout,i.onreadystatechange=function(){var e;i&&4===i.readyState&&(0!==i.status||i.responseURL&&0===i.responseURL.indexOf("file:"))&&(e="getAllResponseHeaders"in i?d(i.getAllResponseHeaders()):null,e={data:s.responseType&&"text"!==s.responseType?i.response:i.responseText,status:i.status,statusText:i.statusText,headers:e,config:s,request:i},u(t,r,e),i=null)},i.onabort=function(){i&&(r(y("Request aborted",s,"ECONNABORTED",i)),i=null)},i.onerror=function(){r(y("Network Error",s,null,i)),i=null},i.ontimeout=function(){var e="timeout of "+s.timeout+"ms exceeded";s.timeoutErrorMessage&&(e=s.timeoutErrorMessage),r(y(e,s,"ECONNABORTED",i)),i=null},!c.isStandardBrowserEnv()||(a=(s.withCredentials||h(a))&&s.xsrfCookieName?f.read(s.xsrfCookieName):void 0)&&(o[s.xsrfHeaderName]=a),"setRequestHeader"in i&&c.forEach(o,function(e,t){void 0===n&&"content-type"===t.toLowerCase()?delete o[t]:i.setRequestHeader(t,e)}),c.isUndefined(s.withCredentials)||(i.withCredentials=!!s.withCredentials),s.responseType)try{i.responseType=s.responseType}catch(e){if("json"!==s.responseType)throw e}"function"==typeof s.onDownloadProgress&&i.addEventListener("progress",s.onDownloadProgress),"function"==typeof s.onUploadProgress&&i.upload&&i.upload.addEventListener("progress",s.onUploadProgress),s.cancelToken&&s.cancelToken.promise.then(function(e){i&&(i.abort(),r(e),i=null)}),i.send(n=n||null)})}},bc3a:function(e,t,r){e.exports=r("cee4")},c345:function(e,t,r){"use strict";var o=r("c532"),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,n={};return e&&o.forEach(e.split("\n"),function(e){r=e.indexOf(":"),t=o.trim(e.substr(0,r)).toLowerCase(),r=o.trim(e.substr(r+1)),t&&(n[t]&&0<=i.indexOf(t)||(n[t]="set-cookie"===t?(n[t]||[]).concat([r]):n[t]?n[t]+", "+r:r))}),n}},c401:function(e,t,r){"use strict";var n=r("c532");e.exports=function(t,r,e){return n.forEach(e,function(e){t=e(t,r)}),t}},c532:function(e,t,r){"use strict";var o=r("1d2b"),n=Object.prototype.toString;function i(e){return"[object Array]"===n.call(e)}function a(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function c(e){if("[object Object]"!==n.call(e))return!1;e=Object.getPrototypeOf(e);return null===e||e===Object.prototype}function u(e){return"[object Function]"===n.call(e)}function f(e,t){if(null!=e)if(i(e="object"!=typeof e?[e]:e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:i,isArrayBuffer:function(e){return"[object ArrayBuffer]"===n.call(e)},isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:s,isPlainObject:c,isUndefined:a,isDate:function(e){return"[object Date]"===n.call(e)},isFile:function(e){return"[object File]"===n.call(e)},isBlob:function(e){return"[object Blob]"===n.call(e)},isFunction:u,isStream:function(e){return s(e)&&u(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:f,merge:function r(){var n={};function e(e,t){c(n[t])&&c(e)?n[t]=r(n[t],e):c(e)?n[t]=r({},e):i(e)?n[t]=e.slice():n[t]=e}for(var t=0,o=arguments.length;t<o;t++)f(arguments[t],e);return n},extend:function(r,e,n){return f(e,function(e,t){r[t]=n&&"function"==typeof e?o(e,n):e}),r},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(e){return e=65279===e.charCodeAt(0)?e.slice(1):e}}},c8af:function(e,t,r){"use strict";var o=r("c532");e.exports=function(r,n){o.forEach(r,function(e,t){t!==n&&t.toUpperCase()===n.toUpperCase()&&(r[n]=e,delete r[t])})}},cee4:function(e,t,r){"use strict";var n=r("c532"),o=r("1d2b"),i=r("0a06"),a=r("4a7b");function s(e){var t=new i(e),e=o(i.prototype.request,t);return n.extend(e,i.prototype,t),n.extend(e,t),e}var c=s(r("2444"));c.Axios=i,c.create=function(e){return s(a(c.defaults,e))},c.Cancel=r("7a77"),c.CancelToken=r("8df4"),c.isCancel=r("2e67"),c.all=function(e){return Promise.all(e)},c.spread=r("0df6"),c.isAxiosError=r("5f02"),e.exports=c,e.exports.default=c},d233:function(e,t,r){"use strict";function a(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r}var s=Object.prototype.hasOwnProperty,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}();e.exports={arrayToObject:a,assign:function(e,r){return Object.keys(r).reduce(function(e,t){return e[t]=r[t],e},e)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var o=t[n],i=o.obj[o.prop],a=Object.keys(i),s=0;s<a.length;++s){var c=a[s],u=i[c];"object"==typeof u&&null!==u&&-1===r.indexOf(u)&&(t.push({obj:i,prop:c}),r.push(u))}return function(e){for(;e.length;){var t=e.pop(),r=t.obj[t.prop];if(Array.isArray(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);t.obj[t.prop]=n}}return r}(t)},decode:function(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(e){return t}},encode:function(e){if(0===e.length)return e;for(var t="string"==typeof e?e:String(e),r="",n=0;n<t.length;++n){var o=t.charCodeAt(n);45===o||46===o||95===o||126===o||48<=o&&o<=57||65<=o&&o<=90||97<=o&&o<=122?r+=t.charAt(n):o<128?r+=i[o]:o<2048?r+=i[192|o>>6]+i[128|63&o]:o<55296||57344<=o?r+=i[224|o>>12]+i[128|o>>6&63]+i[128|63&o]:(n+=1,o=65536+((1023&o)<<10|1023&t.charCodeAt(n)),r+=i[240|o>>18]+i[128|o>>12&63]+i[128|o>>6&63]+i[128|63&o])}return r},isBuffer:function(e){return null!=e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},merge:function n(r,o,i){if(!o)return r;if("object"!=typeof o){if(Array.isArray(r))r.push(o);else{if("object"!=typeof r)return[r,o];!i.plainObjects&&!i.allowPrototypes&&s.call(Object.prototype,o)||(r[o]=!0)}return r}if("object"!=typeof r)return[r].concat(o);var e=r;return Array.isArray(r)&&!Array.isArray(o)&&(e=a(r,i)),Array.isArray(r)&&Array.isArray(o)?(o.forEach(function(e,t){s.call(r,t)?r[t]&&"object"==typeof r[t]?r[t]=n(r[t],e,i):r.push(e):r[t]=e}),r):Object.keys(o).reduce(function(e,t){var r=o[t];return s.call(e,t)?e[t]=n(e[t],r,i):e[t]=r,e},e)}}},d925:function(e,t,r){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},e683:function(e,t,r){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},f6b4:function(e,t,r){"use strict";var n=r("c532");function o(){this.handlers=[]}o.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(t){n.forEach(this.handlers,function(e){null!==e&&t(e)})},e.exports=o}}]); |