Commit 5b69a9e6 by 李伟康

提交

0 parents
node_modules
parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot find module '"+t+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[t][1][r]||r},p.cache={};var l=r[t]=new f.Module(t);e[t][0].call(l.exports,p,l,l.exports,this)}return r[t].exports;function p(e){return f(p.resolve(e))}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=e,f.cache=r,f.parent=o,f.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]};for(var c=0;c<t.length;c++)try{f(t[c])}catch(e){i||(i=e)}if(t.length){var l=f(t[t.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=l:"function"==typeof define&&define.amd?define(function(){return l}):n&&(this[n]=l)}if(parcelRequire=f,i)throw i;return f}({"pBGv":[function(require,module,exports) {
var t,e,n=module.exports={};function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function i(e){if(t===setTimeout)return setTimeout(e,0);if((t===r||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}function u(t){if(e===clearTimeout)return clearTimeout(t);if((e===o||!e)&&clearTimeout)return e=clearTimeout,clearTimeout(t);try{return e(t)}catch(n){try{return e.call(null,t)}catch(n){return e.call(this,t)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:r}catch(n){t=r}try{e="function"==typeof clearTimeout?clearTimeout:o}catch(n){e=o}}();var c,s=[],l=!1,a=-1;function f(){l&&c&&(l=!1,c.length?s=c.concat(s):a=-1,s.length&&h())}function h(){if(!l){var t=i(f);l=!0;for(var e=s.length;e;){for(c=s,s=[];++a<e;)c&&c[a].run();a=-1,e=s.length}c=null,l=!1,u(t)}}function m(t,e){this.fun=t,this.array=e}function p(){}n.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];s.push(new m(t,e)),1!==s.length||l||i(h)},m.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.env={},n.argv=[],n.version="",n.versions={},n.on=p,n.addListener=p,n.once=p,n.off=p,n.removeListener=p,n.removeAllListeners=p,n.emit=p,n.prependListener=p,n.prependOnceListener=p,n.listeners=function(t){return[]},n.binding=function(t){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(t){throw new Error("process.chdir is not supported")},n.umask=function(){return 0};
},{}],"yh9p":[function(require,module,exports) {
"use strict";exports.byteLength=u,exports.toByteArray=i,exports.fromByteArray=d;for(var r=[],t=[],e="undefined"!=typeof Uint8Array?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,a=n.length;o<a;++o)r[o]=n[o],t[n.charCodeAt(o)]=o;function h(r){var t=r.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var e=r.indexOf("=");return-1===e&&(e=t),[e,e===t?0:4-e%4]}function u(r){var t=h(r),e=t[0],n=t[1];return 3*(e+n)/4-n}function c(r,t,e){return 3*(t+e)/4-e}function i(r){var n,o,a=h(r),u=a[0],i=a[1],f=new e(c(r,u,i)),A=0,d=i>0?u-4:u;for(o=0;o<d;o+=4)n=t[r.charCodeAt(o)]<<18|t[r.charCodeAt(o+1)]<<12|t[r.charCodeAt(o+2)]<<6|t[r.charCodeAt(o+3)],f[A++]=n>>16&255,f[A++]=n>>8&255,f[A++]=255&n;return 2===i&&(n=t[r.charCodeAt(o)]<<2|t[r.charCodeAt(o+1)]>>4,f[A++]=255&n),1===i&&(n=t[r.charCodeAt(o)]<<10|t[r.charCodeAt(o+1)]<<4|t[r.charCodeAt(o+2)]>>2,f[A++]=n>>8&255,f[A++]=255&n),f}function f(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}function A(r,t,e){for(var n,o=[],a=t;a<e;a+=3)n=(r[a]<<16&16711680)+(r[a+1]<<8&65280)+(255&r[a+2]),o.push(f(n));return o.join("")}function d(t){for(var e,n=t.length,o=n%3,a=[],h=0,u=n-o;h<u;h+=16383)a.push(A(t,h,h+16383>u?u:h+16383));return 1===o?(e=t[n-1],a.push(r[e>>2]+r[e<<4&63]+"==")):2===o&&(e=(t[n-2]<<8)+t[n-1],a.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),a.join("")}t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63;
},{}],"JgNJ":[function(require,module,exports) {
exports.read=function(a,o,t,r,h){var M,p,w=8*h-r-1,f=(1<<w)-1,e=f>>1,i=-7,N=t?h-1:0,n=t?-1:1,s=a[o+N];for(N+=n,M=s&(1<<-i)-1,s>>=-i,i+=w;i>0;M=256*M+a[o+N],N+=n,i-=8);for(p=M&(1<<-i)-1,M>>=-i,i+=r;i>0;p=256*p+a[o+N],N+=n,i-=8);if(0===M)M=1-e;else{if(M===f)return p?NaN:1/0*(s?-1:1);p+=Math.pow(2,r),M-=e}return(s?-1:1)*p*Math.pow(2,M-r)},exports.write=function(a,o,t,r,h,M){var p,w,f,e=8*M-h-1,i=(1<<e)-1,N=i>>1,n=23===h?Math.pow(2,-24)-Math.pow(2,-77):0,s=r?0:M-1,u=r?1:-1,l=o<0||0===o&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(w=isNaN(o)?1:0,p=i):(p=Math.floor(Math.log(o)/Math.LN2),o*(f=Math.pow(2,-p))<1&&(p--,f*=2),(o+=p+N>=1?n/f:n*Math.pow(2,1-N))*f>=2&&(p++,f/=2),p+N>=i?(w=0,p=i):p+N>=1?(w=(o*f-1)*Math.pow(2,h),p+=N):(w=o*Math.pow(2,N-1)*Math.pow(2,h),p=0));h>=8;a[t+s]=255&w,s+=u,w/=256,h-=8);for(p=p<<h|w,e+=h;e>0;a[t+s]=255&p,s+=u,p/=256,e-=8);a[t+s-u]|=128*l};
},{}],"REa7":[function(require,module,exports) {
var r={}.toString;module.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)};
},{}],"dskh":[function(require,module,exports) {
var global = arguments[3];
var t=arguments[3],r=require("base64-js"),e=require("ieee754"),n=require("isarray");function i(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(r){return!1}}function o(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(t,r){if(o()<r)throw new RangeError("Invalid typed array length");return f.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(r)).__proto__=f.prototype:(null===t&&(t=new f(r)),t.length=r),t}function f(t,r,e){if(!(f.TYPED_ARRAY_SUPPORT||this instanceof f))return new f(t,r,e);if("number"==typeof t){if("string"==typeof r)throw new Error("If encoding is specified then the first argument must be a string");return c(this,t)}return s(this,t,r,e)}function s(t,r,e,n){if("number"==typeof r)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&r instanceof ArrayBuffer?g(t,r,e,n):"string"==typeof r?l(t,r,e):y(t,r)}function h(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function a(t,r,e,n){return h(r),r<=0?u(t,r):void 0!==e?"string"==typeof n?u(t,r).fill(e,n):u(t,r).fill(e):u(t,r)}function c(t,r){if(h(r),t=u(t,r<0?0:0|w(r)),!f.TYPED_ARRAY_SUPPORT)for(var e=0;e<r;++e)t[e]=0;return t}function l(t,r,e){if("string"==typeof e&&""!==e||(e="utf8"),!f.isEncoding(e))throw new TypeError('"encoding" must be a valid string encoding');var n=0|v(r,e),i=(t=u(t,n)).write(r,e);return i!==n&&(t=t.slice(0,i)),t}function p(t,r){var e=r.length<0?0:0|w(r.length);t=u(t,e);for(var n=0;n<e;n+=1)t[n]=255&r[n];return t}function g(t,r,e,n){if(r.byteLength,e<0||r.byteLength<e)throw new RangeError("'offset' is out of bounds");if(r.byteLength<e+(n||0))throw new RangeError("'length' is out of bounds");return r=void 0===e&&void 0===n?new Uint8Array(r):void 0===n?new Uint8Array(r,e):new Uint8Array(r,e,n),f.TYPED_ARRAY_SUPPORT?(t=r).__proto__=f.prototype:t=p(t,r),t}function y(t,r){if(f.isBuffer(r)){var e=0|w(r.length);return 0===(t=u(t,e)).length?t:(r.copy(t,0,0,e),t)}if(r){if("undefined"!=typeof ArrayBuffer&&r.buffer instanceof ArrayBuffer||"length"in r)return"number"!=typeof r.length||W(r.length)?u(t,0):p(t,r);if("Buffer"===r.type&&n(r.data))return p(t,r.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function w(t){if(t>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|t}function d(t){return+t!=t&&(t=0),f.alloc(+t)}function v(t,r){if(f.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var e=t.length;if(0===e)return 0;for(var n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":case void 0:return $(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return K(t).length;default:if(n)return $(t).length;r=(""+r).toLowerCase(),n=!0}}function E(t,r,e){var n=!1;if((void 0===r||r<0)&&(r=0),r>this.length)return"";if((void 0===e||e>this.length)&&(e=this.length),e<=0)return"";if((e>>>=0)<=(r>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return x(this,r,e);case"utf8":case"utf-8":return Y(this,r,e);case"ascii":return L(this,r,e);case"latin1":case"binary":return D(this,r,e);case"base64":return S(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function b(t,r,e){var n=t[r];t[r]=t[e],t[e]=n}function R(t,r,e,n,i){if(0===t.length)return-1;if("string"==typeof e?(n=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,isNaN(e)&&(e=i?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(i)return-1;e=t.length-1}else if(e<0){if(!i)return-1;e=0}if("string"==typeof r&&(r=f.from(r,n)),f.isBuffer(r))return 0===r.length?-1:_(t,r,e,n,i);if("number"==typeof r)return r&=255,f.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):_(t,[r],e,n,i);throw new TypeError("val must be string, number or Buffer")}function _(t,r,e,n,i){var o,u=1,f=t.length,s=r.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||r.length<2)return-1;u=2,f/=2,s/=2,e/=2}function h(t,r){return 1===u?t[r]:t.readUInt16BE(r*u)}if(i){var a=-1;for(o=e;o<f;o++)if(h(t,o)===h(r,-1===a?0:o-a)){if(-1===a&&(a=o),o-a+1===s)return a*u}else-1!==a&&(o-=o-a),a=-1}else for(e+s>f&&(e=f-s),o=e;o>=0;o--){for(var c=!0,l=0;l<s;l++)if(h(t,o+l)!==h(r,l)){c=!1;break}if(c)return o}return-1}function A(t,r,e,n){e=Number(e)||0;var i=t.length-e;n?(n=Number(n))>i&&(n=i):n=i;var o=r.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var u=0;u<n;++u){var f=parseInt(r.substr(2*u,2),16);if(isNaN(f))return u;t[e+u]=f}return u}function m(t,r,e,n){return Q($(r,t.length-e),t,e,n)}function P(t,r,e,n){return Q(G(r),t,e,n)}function T(t,r,e,n){return P(t,r,e,n)}function B(t,r,e,n){return Q(K(r),t,e,n)}function U(t,r,e,n){return Q(H(r,t.length-e),t,e,n)}function S(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function Y(t,r,e){e=Math.min(t.length,e);for(var n=[],i=r;i<e;){var o,u,f,s,h=t[i],a=null,c=h>239?4:h>223?3:h>191?2:1;if(i+c<=e)switch(c){case 1:h<128&&(a=h);break;case 2:128==(192&(o=t[i+1]))&&(s=(31&h)<<6|63&o)>127&&(a=s);break;case 3:o=t[i+1],u=t[i+2],128==(192&o)&&128==(192&u)&&(s=(15&h)<<12|(63&o)<<6|63&u)>2047&&(s<55296||s>57343)&&(a=s);break;case 4:o=t[i+1],u=t[i+2],f=t[i+3],128==(192&o)&&128==(192&u)&&128==(192&f)&&(s=(15&h)<<18|(63&o)<<12|(63&u)<<6|63&f)>65535&&s<1114112&&(a=s)}null===a?(a=65533,c=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),i+=c}return O(n)}exports.Buffer=f,exports.SlowBuffer=d,exports.INSPECT_MAX_BYTES=50,f.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:i(),exports.kMaxLength=o(),f.poolSize=8192,f._augment=function(t){return t.__proto__=f.prototype,t},f.from=function(t,r,e){return s(null,t,r,e)},f.TYPED_ARRAY_SUPPORT&&(f.prototype.__proto__=Uint8Array.prototype,f.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&f[Symbol.species]===f&&Object.defineProperty(f,Symbol.species,{value:null,configurable:!0})),f.alloc=function(t,r,e){return a(null,t,r,e)},f.allocUnsafe=function(t){return c(null,t)},f.allocUnsafeSlow=function(t){return c(null,t)},f.isBuffer=function(t){return!(null==t||!t._isBuffer)},f.compare=function(t,r){if(!f.isBuffer(t)||!f.isBuffer(r))throw new TypeError("Arguments must be Buffers");if(t===r)return 0;for(var e=t.length,n=r.length,i=0,o=Math.min(e,n);i<o;++i)if(t[i]!==r[i]){e=t[i],n=r[i];break}return e<n?-1:n<e?1:0},f.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(t,r){if(!n(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return f.alloc(0);var e;if(void 0===r)for(r=0,e=0;e<t.length;++e)r+=t[e].length;var i=f.allocUnsafe(r),o=0;for(e=0;e<t.length;++e){var u=t[e];if(!f.isBuffer(u))throw new TypeError('"list" argument must be an Array of Buffers');u.copy(i,o),o+=u.length}return i},f.byteLength=v,f.prototype._isBuffer=!0,f.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)b(this,r,r+1);return this},f.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)b(this,r,r+3),b(this,r+1,r+2);return this},f.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)b(this,r,r+7),b(this,r+1,r+6),b(this,r+2,r+5),b(this,r+3,r+4);return this},f.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?Y(this,0,t):E.apply(this,arguments)},f.prototype.equals=function(t){if(!f.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===f.compare(this,t)},f.prototype.inspect=function(){var t="",r=exports.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},f.prototype.compare=function(t,r,e,n,i){if(!f.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===r&&(r=0),void 0===e&&(e=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),r<0||e>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&r>=e)return 0;if(n>=i)return-1;if(r>=e)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(n>>>=0),u=(e>>>=0)-(r>>>=0),s=Math.min(o,u),h=this.slice(n,i),a=t.slice(r,e),c=0;c<s;++c)if(h[c]!==a[c]){o=h[c],u=a[c];break}return o<u?-1:u<o?1:0},f.prototype.includes=function(t,r,e){return-1!==this.indexOf(t,r,e)},f.prototype.indexOf=function(t,r,e){return R(this,t,r,e,!0)},f.prototype.lastIndexOf=function(t,r,e){return R(this,t,r,e,!1)},f.prototype.write=function(t,r,e,n){if(void 0===r)n="utf8",e=this.length,r=0;else if(void 0===e&&"string"==typeof r)n=r,e=this.length,r=0;else{if(!isFinite(r))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");r|=0,isFinite(e)?(e|=0,void 0===n&&(n="utf8")):(n=e,e=void 0)}var i=this.length-r;if((void 0===e||e>i)&&(e=i),t.length>0&&(e<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return A(this,t,r,e);case"utf8":case"utf-8":return m(this,t,r,e);case"ascii":return P(this,t,r,e);case"latin1":case"binary":return T(this,t,r,e);case"base64":return B(this,t,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,t,r,e);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var I=4096;function O(t){var r=t.length;if(r<=I)return String.fromCharCode.apply(String,t);for(var e="",n=0;n<r;)e+=String.fromCharCode.apply(String,t.slice(n,n+=I));return e}function L(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(127&t[i]);return n}function D(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]);return n}function x(t,r,e){var n=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>n)&&(e=n);for(var i="",o=r;o<e;++o)i+=Z(t[o]);return i}function C(t,r,e){for(var n=t.slice(r,e),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function M(t,r,e){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+r>e)throw new RangeError("Trying to access beyond buffer length")}function k(t,r,e,n,i,o){if(!f.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<o)throw new RangeError('"value" argument is out of bounds');if(e+n>t.length)throw new RangeError("Index out of range")}function N(t,r,e,n){r<0&&(r=65535+r+1);for(var i=0,o=Math.min(t.length-e,2);i<o;++i)t[e+i]=(r&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function z(t,r,e,n){r<0&&(r=4294967295+r+1);for(var i=0,o=Math.min(t.length-e,4);i<o;++i)t[e+i]=r>>>8*(n?i:3-i)&255}function F(t,r,e,n,i,o){if(e+n>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function j(t,r,n,i,o){return o||F(t,r,n,4,3.4028234663852886e38,-3.4028234663852886e38),e.write(t,r,n,i,23,4),n+4}function q(t,r,n,i,o){return o||F(t,r,n,8,1.7976931348623157e308,-1.7976931348623157e308),e.write(t,r,n,i,52,8),n+8}f.prototype.slice=function(t,r){var e,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(r=void 0===r?n:~~r)<0?(r+=n)<0&&(r=0):r>n&&(r=n),r<t&&(r=t),f.TYPED_ARRAY_SUPPORT)(e=this.subarray(t,r)).__proto__=f.prototype;else{var i=r-t;e=new f(i,void 0);for(var o=0;o<i;++o)e[o]=this[o+t]}return e},f.prototype.readUIntLE=function(t,r,e){t|=0,r|=0,e||M(t,r,this.length);for(var n=this[t],i=1,o=0;++o<r&&(i*=256);)n+=this[t+o]*i;return n},f.prototype.readUIntBE=function(t,r,e){t|=0,r|=0,e||M(t,r,this.length);for(var n=this[t+--r],i=1;r>0&&(i*=256);)n+=this[t+--r]*i;return n},f.prototype.readUInt8=function(t,r){return r||M(t,1,this.length),this[t]},f.prototype.readUInt16LE=function(t,r){return r||M(t,2,this.length),this[t]|this[t+1]<<8},f.prototype.readUInt16BE=function(t,r){return r||M(t,2,this.length),this[t]<<8|this[t+1]},f.prototype.readUInt32LE=function(t,r){return r||M(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},f.prototype.readUInt32BE=function(t,r){return r||M(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},f.prototype.readIntLE=function(t,r,e){t|=0,r|=0,e||M(t,r,this.length);for(var n=this[t],i=1,o=0;++o<r&&(i*=256);)n+=this[t+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*r)),n},f.prototype.readIntBE=function(t,r,e){t|=0,r|=0,e||M(t,r,this.length);for(var n=r,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*r)),o},f.prototype.readInt8=function(t,r){return r||M(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},f.prototype.readInt16LE=function(t,r){r||M(t,2,this.length);var e=this[t]|this[t+1]<<8;return 32768&e?4294901760|e:e},f.prototype.readInt16BE=function(t,r){r||M(t,2,this.length);var e=this[t+1]|this[t]<<8;return 32768&e?4294901760|e:e},f.prototype.readInt32LE=function(t,r){return r||M(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},f.prototype.readInt32BE=function(t,r){return r||M(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},f.prototype.readFloatLE=function(t,r){return r||M(t,4,this.length),e.read(this,t,!0,23,4)},f.prototype.readFloatBE=function(t,r){return r||M(t,4,this.length),e.read(this,t,!1,23,4)},f.prototype.readDoubleLE=function(t,r){return r||M(t,8,this.length),e.read(this,t,!0,52,8)},f.prototype.readDoubleBE=function(t,r){return r||M(t,8,this.length),e.read(this,t,!1,52,8)},f.prototype.writeUIntLE=function(t,r,e,n){(t=+t,r|=0,e|=0,n)||k(this,t,r,e,Math.pow(2,8*e)-1,0);var i=1,o=0;for(this[r]=255&t;++o<e&&(i*=256);)this[r+o]=t/i&255;return r+e},f.prototype.writeUIntBE=function(t,r,e,n){(t=+t,r|=0,e|=0,n)||k(this,t,r,e,Math.pow(2,8*e)-1,0);var i=e-1,o=1;for(this[r+i]=255&t;--i>=0&&(o*=256);)this[r+i]=t/o&255;return r+e},f.prototype.writeUInt8=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,1,255,0),f.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[r]=255&t,r+1},f.prototype.writeUInt16LE=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8):N(this,t,r,!0),r+2},f.prototype.writeUInt16BE=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=255&t):N(this,t,r,!1),r+2},f.prototype.writeUInt32LE=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=255&t):z(this,t,r,!0),r+4},f.prototype.writeUInt32BE=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t):z(this,t,r,!1),r+4},f.prototype.writeIntLE=function(t,r,e,n){if(t=+t,r|=0,!n){var i=Math.pow(2,8*e-1);k(this,t,r,e,i-1,-i)}var o=0,u=1,f=0;for(this[r]=255&t;++o<e&&(u*=256);)t<0&&0===f&&0!==this[r+o-1]&&(f=1),this[r+o]=(t/u>>0)-f&255;return r+e},f.prototype.writeIntBE=function(t,r,e,n){if(t=+t,r|=0,!n){var i=Math.pow(2,8*e-1);k(this,t,r,e,i-1,-i)}var o=e-1,u=1,f=0;for(this[r+o]=255&t;--o>=0&&(u*=256);)t<0&&0===f&&0!==this[r+o+1]&&(f=1),this[r+o]=(t/u>>0)-f&255;return r+e},f.prototype.writeInt8=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,1,127,-128),f.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[r]=255&t,r+1},f.prototype.writeInt16LE=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8):N(this,t,r,!0),r+2},f.prototype.writeInt16BE=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=255&t):N(this,t,r,!1),r+2},f.prototype.writeInt32LE=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,4,2147483647,-2147483648),f.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24):z(this,t,r,!0),r+4},f.prototype.writeInt32BE=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),f.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t):z(this,t,r,!1),r+4},f.prototype.writeFloatLE=function(t,r,e){return j(this,t,r,!0,e)},f.prototype.writeFloatBE=function(t,r,e){return j(this,t,r,!1,e)},f.prototype.writeDoubleLE=function(t,r,e){return q(this,t,r,!0,e)},f.prototype.writeDoubleBE=function(t,r,e){return q(this,t,r,!1,e)},f.prototype.copy=function(t,r,e,n){if(e||(e=0),n||0===n||(n=this.length),r>=t.length&&(r=t.length),r||(r=0),n>0&&n<e&&(n=e),n===e)return 0;if(0===t.length||0===this.length)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(e<0||e>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-r<n-e&&(n=t.length-r+e);var i,o=n-e;if(this===t&&e<r&&r<n)for(i=o-1;i>=0;--i)t[i+r]=this[i+e];else if(o<1e3||!f.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+r]=this[i+e];else Uint8Array.prototype.set.call(t,this.subarray(e,e+o),r);return o},f.prototype.fill=function(t,r,e,n){if("string"==typeof t){if("string"==typeof r?(n=r,r=0,e=this.length):"string"==typeof e&&(n=e,e=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!f.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(r<0||this.length<r||this.length<e)throw new RangeError("Out of range index");if(e<=r)return this;var o;if(r>>>=0,e=void 0===e?this.length:e>>>0,t||(t=0),"number"==typeof t)for(o=r;o<e;++o)this[o]=t;else{var u=f.isBuffer(t)?t:$(new f(t,n).toString()),s=u.length;for(o=0;o<e-r;++o)this[o+r]=u[o%s]}return this};var V=/[^+\/0-9A-Za-z-_]/g;function X(t){if((t=J(t).replace(V,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}function J(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function Z(t){return t<16?"0"+t.toString(16):t.toString(16)}function $(t,r){var e;r=r||1/0;for(var n=t.length,i=null,o=[],u=0;u<n;++u){if((e=t.charCodeAt(u))>55295&&e<57344){if(!i){if(e>56319){(r-=3)>-1&&o.push(239,191,189);continue}if(u+1===n){(r-=3)>-1&&o.push(239,191,189);continue}i=e;continue}if(e<56320){(r-=3)>-1&&o.push(239,191,189),i=e;continue}e=65536+(i-55296<<10|e-56320)}else i&&(r-=3)>-1&&o.push(239,191,189);if(i=null,e<128){if((r-=1)<0)break;o.push(e)}else if(e<2048){if((r-=2)<0)break;o.push(e>>6|192,63&e|128)}else if(e<65536){if((r-=3)<0)break;o.push(e>>12|224,e>>6&63|128,63&e|128)}else{if(!(e<1114112))throw new Error("Invalid code point");if((r-=4)<0)break;o.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}}return o}function G(t){for(var r=[],e=0;e<t.length;++e)r.push(255&t.charCodeAt(e));return r}function H(t,r){for(var e,n,i,o=[],u=0;u<t.length&&!((r-=2)<0);++u)n=(e=t.charCodeAt(u))>>8,i=e%256,o.push(i),o.push(n);return o}function K(t){return r.toByteArray(X(t))}function Q(t,r,e,n){for(var i=0;i<n&&!(i+e>=r.length||i>=t.length);++i)r[i+e]=t[i];return i}function W(t){return t!=t}
},{"base64-js":"yh9p","ieee754":"JgNJ","isarray":"REa7","buffer":"dskh"}],"y5Z9":[function(require,module,exports) {
var process = require("process");
var global = arguments[3];
var define;
var Buffer = require("buffer").Buffer;
var process=require("process"),global=arguments[3],define,Buffer=require("buffer").Buffer;function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(){"use strict";var ERROR="input is invalid type",WINDOW="object"===("undefined"==typeof window?"undefined":_typeof(window)),root=WINDOW?window:{};root.JS_MD5_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"===("undefined"==typeof self?"undefined":_typeof(self)),NODE_JS=!root.JS_MD5_NO_NODE_JS&&"object"===(void 0===process?"undefined":_typeof(process))&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_MD5_NO_COMMON_JS&&"object"===("undefined"==typeof module?"undefined":_typeof(module))&&module.exports,AMD="function"==typeof define&&define.amd,ARRAY_BUFFER=!root.JS_MD5_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[128,32768,8388608,-2147483648],SHIFT=[0,8,16,24],OUTPUT_TYPES=["hex","array","digest","buffer","arrayBuffer","base64"],BASE64_ENCODE_CHAR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),blocks=[],buffer8;if(ARRAY_BUFFER){var buffer=new ArrayBuffer(68);buffer8=new Uint8Array(buffer),blocks=new Uint32Array(buffer)}!root.JS_MD5_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!ARRAY_BUFFER||!root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return"object"===_typeof(t)&&t.buffer&&t.buffer.constructor===ArrayBuffer});var createOutputMethod=function(t){return function(e){return new Md5(!0).update(e)[t]()}},createMethod=function(){var t=createOutputMethod("hex");NODE_JS&&(t=nodeWrap(t)),t.create=function(){return new Md5},t.update=function(e){return t.create().update(e)};for(var e=0;e<OUTPUT_TYPES.length;++e){var r=OUTPUT_TYPES[e];t[r]=createOutputMethod(r)}return t},nodeWrap=function nodeWrap(method){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),nodeMethod=function(t){if("string"==typeof t)return crypto.createHash("md5").update(t,"utf8").digest("hex");if(null==t)throw ERROR;return t.constructor===ArrayBuffer&&(t=new Uint8Array(t)),Array.isArray(t)||ArrayBuffer.isView(t)||t.constructor===Buffer?crypto.createHash("md5").update(new Buffer(t)).digest("hex"):method(t)};return nodeMethod};function Md5(t){if(t)blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks,this.buffer8=buffer8;else if(ARRAY_BUFFER){var e=new ArrayBuffer(68);this.buffer8=new Uint8Array(e),this.blocks=new Uint32Array(e)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}Md5.prototype.update=function(t){if(!this.finalized){var e,r=_typeof(t);if("string"!==r){if("object"!==r)throw ERROR;if(null===t)throw ERROR;if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||ARRAY_BUFFER&&ArrayBuffer.isView(t)))throw ERROR;e=!0}for(var s,o,i=0,f=t.length,h=this.blocks,n=this.buffer8;i<f;){if(this.hashed&&(this.hashed=!1,h[0]=h[16],h[16]=h[1]=h[2]=h[3]=h[4]=h[5]=h[6]=h[7]=h[8]=h[9]=h[10]=h[11]=h[12]=h[13]=h[14]=h[15]=0),e)if(ARRAY_BUFFER)for(o=this.start;i<f&&o<64;++i)n[o++]=t[i];else for(o=this.start;i<f&&o<64;++i)h[o>>2]|=t[i]<<SHIFT[3&o++];else if(ARRAY_BUFFER)for(o=this.start;i<f&&o<64;++i)(s=t.charCodeAt(i))<128?n[o++]=s:s<2048?(n[o++]=192|s>>6,n[o++]=128|63&s):s<55296||s>=57344?(n[o++]=224|s>>12,n[o++]=128|s>>6&63,n[o++]=128|63&s):(s=65536+((1023&s)<<10|1023&t.charCodeAt(++i)),n[o++]=240|s>>18,n[o++]=128|s>>12&63,n[o++]=128|s>>6&63,n[o++]=128|63&s);else for(o=this.start;i<f&&o<64;++i)(s=t.charCodeAt(i))<128?h[o>>2]|=s<<SHIFT[3&o++]:s<2048?(h[o>>2]|=(192|s>>6)<<SHIFT[3&o++],h[o>>2]|=(128|63&s)<<SHIFT[3&o++]):s<55296||s>=57344?(h[o>>2]|=(224|s>>12)<<SHIFT[3&o++],h[o>>2]|=(128|s>>6&63)<<SHIFT[3&o++],h[o>>2]|=(128|63&s)<<SHIFT[3&o++]):(s=65536+((1023&s)<<10|1023&t.charCodeAt(++i)),h[o>>2]|=(240|s>>18)<<SHIFT[3&o++],h[o>>2]|=(128|s>>12&63)<<SHIFT[3&o++],h[o>>2]|=(128|s>>6&63)<<SHIFT[3&o++],h[o>>2]|=(128|63&s)<<SHIFT[3&o++]);this.lastByteIndex=o,this.bytes+=o-this.start,o>=64?(this.start=o-64,this.hash(),this.hashed=!0):this.start=o}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Md5.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex;t[e>>2]|=EXTRA[3&e],e>=56&&(this.hashed||this.hash(),t[0]=t[16],t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.bytes<<3,t[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},Md5.prototype.hash=function(){var t,e,r,s,o,i,f=this.blocks;this.first?e=((e=((t=((t=f[0]-680876937)<<7|t>>>25)-271733879<<0)^(r=((r=(-271733879^(s=((s=(-1732584194^2004318071&t)+f[1]-117830708)<<12|s>>>20)+t<<0)&(-271733879^t))+f[2]-1126478375)<<17|r>>>15)+s<<0)&(s^t))+f[3]-1316259209)<<22|e>>>10)+r<<0:(t=this.h0,e=this.h1,r=this.h2,e=((e+=((t=((t+=((s=this.h3)^e&(r^s))+f[0]-680876936)<<7|t>>>25)+e<<0)^(r=((r+=(e^(s=((s+=(r^t&(e^r))+f[1]-389564586)<<12|s>>>20)+t<<0)&(t^e))+f[2]+606105819)<<17|r>>>15)+s<<0)&(s^t))+f[3]-1044525330)<<22|e>>>10)+r<<0),e=((e+=((t=((t+=(s^e&(r^s))+f[4]-176418897)<<7|t>>>25)+e<<0)^(r=((r+=(e^(s=((s+=(r^t&(e^r))+f[5]+1200080426)<<12|s>>>20)+t<<0)&(t^e))+f[6]-1473231341)<<17|r>>>15)+s<<0)&(s^t))+f[7]-45705983)<<22|e>>>10)+r<<0,e=((e+=((t=((t+=(s^e&(r^s))+f[8]+1770035416)<<7|t>>>25)+e<<0)^(r=((r+=(e^(s=((s+=(r^t&(e^r))+f[9]-1958414417)<<12|s>>>20)+t<<0)&(t^e))+f[10]-42063)<<17|r>>>15)+s<<0)&(s^t))+f[11]-1990404162)<<22|e>>>10)+r<<0,e=((e+=((t=((t+=(s^e&(r^s))+f[12]+1804603682)<<7|t>>>25)+e<<0)^(r=((r+=(e^(s=((s+=(r^t&(e^r))+f[13]-40341101)<<12|s>>>20)+t<<0)&(t^e))+f[14]-1502002290)<<17|r>>>15)+s<<0)&(s^t))+f[15]+1236535329)<<22|e>>>10)+r<<0,e=((e+=((s=((s+=(e^r&((t=((t+=(r^s&(e^r))+f[1]-165796510)<<5|t>>>27)+e<<0)^e))+f[6]-1069501632)<<9|s>>>23)+t<<0)^t&((r=((r+=(t^e&(s^t))+f[11]+643717713)<<14|r>>>18)+s<<0)^s))+f[0]-373897302)<<20|e>>>12)+r<<0,e=((e+=((s=((s+=(e^r&((t=((t+=(r^s&(e^r))+f[5]-701558691)<<5|t>>>27)+e<<0)^e))+f[10]+38016083)<<9|s>>>23)+t<<0)^t&((r=((r+=(t^e&(s^t))+f[15]-660478335)<<14|r>>>18)+s<<0)^s))+f[4]-405537848)<<20|e>>>12)+r<<0,e=((e+=((s=((s+=(e^r&((t=((t+=(r^s&(e^r))+f[9]+568446438)<<5|t>>>27)+e<<0)^e))+f[14]-1019803690)<<9|s>>>23)+t<<0)^t&((r=((r+=(t^e&(s^t))+f[3]-187363961)<<14|r>>>18)+s<<0)^s))+f[8]+1163531501)<<20|e>>>12)+r<<0,e=((e+=((s=((s+=(e^r&((t=((t+=(r^s&(e^r))+f[13]-1444681467)<<5|t>>>27)+e<<0)^e))+f[2]-51403784)<<9|s>>>23)+t<<0)^t&((r=((r+=(t^e&(s^t))+f[7]+1735328473)<<14|r>>>18)+s<<0)^s))+f[12]-1926607734)<<20|e>>>12)+r<<0,e=((e+=((i=(s=((s+=((o=e^r)^(t=((t+=(o^s)+f[5]-378558)<<4|t>>>28)+e<<0))+f[8]-2022574463)<<11|s>>>21)+t<<0)^t)^(r=((r+=(i^e)+f[11]+1839030562)<<16|r>>>16)+s<<0))+f[14]-35309556)<<23|e>>>9)+r<<0,e=((e+=((i=(s=((s+=((o=e^r)^(t=((t+=(o^s)+f[1]-1530992060)<<4|t>>>28)+e<<0))+f[4]+1272893353)<<11|s>>>21)+t<<0)^t)^(r=((r+=(i^e)+f[7]-155497632)<<16|r>>>16)+s<<0))+f[10]-1094730640)<<23|e>>>9)+r<<0,e=((e+=((i=(s=((s+=((o=e^r)^(t=((t+=(o^s)+f[13]+681279174)<<4|t>>>28)+e<<0))+f[0]-358537222)<<11|s>>>21)+t<<0)^t)^(r=((r+=(i^e)+f[3]-722521979)<<16|r>>>16)+s<<0))+f[6]+76029189)<<23|e>>>9)+r<<0,e=((e+=((i=(s=((s+=((o=e^r)^(t=((t+=(o^s)+f[9]-640364487)<<4|t>>>28)+e<<0))+f[12]-421815835)<<11|s>>>21)+t<<0)^t)^(r=((r+=(i^e)+f[15]+530742520)<<16|r>>>16)+s<<0))+f[2]-995338651)<<23|e>>>9)+r<<0,e=((e+=((s=((s+=(e^((t=((t+=(r^(e|~s))+f[0]-198630844)<<6|t>>>26)+e<<0)|~r))+f[7]+1126891415)<<10|s>>>22)+t<<0)^((r=((r+=(t^(s|~e))+f[14]-1416354905)<<15|r>>>17)+s<<0)|~t))+f[5]-57434055)<<21|e>>>11)+r<<0,e=((e+=((s=((s+=(e^((t=((t+=(r^(e|~s))+f[12]+1700485571)<<6|t>>>26)+e<<0)|~r))+f[3]-1894986606)<<10|s>>>22)+t<<0)^((r=((r+=(t^(s|~e))+f[10]-1051523)<<15|r>>>17)+s<<0)|~t))+f[1]-2054922799)<<21|e>>>11)+r<<0,e=((e+=((s=((s+=(e^((t=((t+=(r^(e|~s))+f[8]+1873313359)<<6|t>>>26)+e<<0)|~r))+f[15]-30611744)<<10|s>>>22)+t<<0)^((r=((r+=(t^(s|~e))+f[6]-1560198380)<<15|r>>>17)+s<<0)|~t))+f[13]+1309151649)<<21|e>>>11)+r<<0,e=((e+=((s=((s+=(e^((t=((t+=(r^(e|~s))+f[4]-145523070)<<6|t>>>26)+e<<0)|~r))+f[11]-1120210379)<<10|s>>>22)+t<<0)^((r=((r+=(t^(s|~e))+f[2]+718787259)<<15|r>>>17)+s<<0)|~t))+f[9]-343485551)<<21|e>>>11)+r<<0,this.first?(this.h0=t+1732584193<<0,this.h1=e-271733879<<0,this.h2=r-1732584194<<0,this.h3=s+271733878<<0,this.first=!1):(this.h0=this.h0+t<<0,this.h1=this.h1+e<<0,this.h2=this.h2+r<<0,this.h3=this.h3+s<<0)},Md5.prototype.hex=function(){this.finalize();var t=this.h0,e=this.h1,r=this.h2,s=this.h3;return HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[s>>4&15]+HEX_CHARS[15&s]+HEX_CHARS[s>>12&15]+HEX_CHARS[s>>8&15]+HEX_CHARS[s>>20&15]+HEX_CHARS[s>>16&15]+HEX_CHARS[s>>28&15]+HEX_CHARS[s>>24&15]},Md5.prototype.toString=Md5.prototype.hex,Md5.prototype.digest=function(){this.finalize();var t=this.h0,e=this.h1,r=this.h2,s=this.h3;return[255&t,t>>8&255,t>>16&255,t>>24&255,255&e,e>>8&255,e>>16&255,e>>24&255,255&r,r>>8&255,r>>16&255,r>>24&255,255&s,s>>8&255,s>>16&255,s>>24&255]},Md5.prototype.array=Md5.prototype.digest,Md5.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(16),e=new Uint32Array(t);return e[0]=this.h0,e[1]=this.h1,e[2]=this.h2,e[3]=this.h3,t},Md5.prototype.buffer=Md5.prototype.arrayBuffer,Md5.prototype.base64=function(){for(var t,e,r,s="",o=this.array(),i=0;i<15;)t=o[i++],e=o[i++],r=o[i++],s+=BASE64_ENCODE_CHAR[t>>>2]+BASE64_ENCODE_CHAR[63&(t<<4|e>>>4)]+BASE64_ENCODE_CHAR[63&(e<<2|r>>>6)]+BASE64_ENCODE_CHAR[63&r];return t=o[i],s+=BASE64_ENCODE_CHAR[t>>>2]+BASE64_ENCODE_CHAR[t<<4&63]+"=="};var exports=createMethod();COMMON_JS?module.exports=exports:(root.md5=exports,AMD&&define(function(){return exports}))}();
},{"process":"pBGv","buffer":"dskh"}],"NvPZ":[function(require,module,exports) {
var define;
var global = arguments[3];
var e,r=arguments[3];function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(o){if("object"===("undefined"==typeof exports?"undefined":t(exports))&&"undefined"!=typeof module)module.exports=o();else if("function"==typeof e&&e.amd)e([],o);else{("undefined"!=typeof window?window:void 0!==r?r:"undefined"!=typeof self?self:this).Qs=o()}}(function(){return function(){return function e(r,t,o){function n(a,l){if(!t[a]){if(!r[a]){var c="function"==typeof require&&require;if(!l&&c)return c(a,!0);if(i)return i(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var s=t[a]={exports:{}};r[a][0].call(s.exports,function(e){return n(r[a][1][e]||e)},s,s.exports,e,r,t,o)}return t[a].exports}for(var i="function"==typeof require&&require,a=0;a<o.length;a++)n(o[a]);return n}}()({1:[function(e,r,t){"use strict";var o=String.prototype.replace,n=/%20/g;r.exports={default:"RFC3986",formatters:{RFC1738:function(e){return o.call(e,n,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},{}],2:[function(e,r,t){"use strict";var o=e("./stringify"),n=e("./parse"),i=e("./formats");r.exports={formats:i,parse:n,stringify:o}},{"./formats":1,"./parse":3,"./stringify":4}],3:[function(e,r,t){"use strict";var o=e("./utils"),n=Object.prototype.hasOwnProperty,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:o.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},a=function(e,r,t){if(e){var o=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,a=/(\[[^[\]]*])/.exec(o),l=a?o.slice(0,a.index):o,c=[];if(l){if(!t.plainObjects&&n.call(Object.prototype,l)&&!t.allowPrototypes)return;c.push(l)}for(var u=0;null!==(a=i.exec(o))&&u<t.depth;){if(u+=1,!t.plainObjects&&n.call(Object.prototype,a[1].slice(1,-1))&&!t.allowPrototypes)return;c.push(a[1])}return a&&c.push("["+o.slice(a.index)+"]"),function(e,r,t){for(var o=r,n=e.length-1;n>=0;--n){var i,a=e[n];if("[]"===a)i=(i=[]).concat(o);else{i=t.plainObjects?Object.create(null):{};var l="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,c=parseInt(l,10);!isNaN(c)&&a!==l&&String(c)===l&&c>=0&&t.parseArrays&&c<=t.arrayLimit?(i=[])[c]=o:i[l]=o}o=i}return o}(c,r,t)}};r.exports=function(e,r){var t=r?o.assign({},r):{};if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(t.ignoreQueryPrefix=!0===t.ignoreQueryPrefix,t.delimiter="string"==typeof t.delimiter||o.isRegExp(t.delimiter)?t.delimiter:i.delimiter,t.depth="number"==typeof t.depth?t.depth:i.depth,t.arrayLimit="number"==typeof t.arrayLimit?t.arrayLimit:i.arrayLimit,t.parseArrays=!1!==t.parseArrays,t.decoder="function"==typeof t.decoder?t.decoder:i.decoder,t.allowDots="boolean"==typeof t.allowDots?t.allowDots:i.allowDots,t.plainObjects="boolean"==typeof t.plainObjects?t.plainObjects:i.plainObjects,t.allowPrototypes="boolean"==typeof t.allowPrototypes?t.allowPrototypes:i.allowPrototypes,t.parameterLimit="number"==typeof t.parameterLimit?t.parameterLimit:i.parameterLimit,t.strictNullHandling="boolean"==typeof t.strictNullHandling?t.strictNullHandling:i.strictNullHandling,""===e||null==e)return t.plainObjects?Object.create(null):{};for(var l="string"==typeof e?function(e,r){for(var t={},o=r.ignoreQueryPrefix?e.replace(/^\?/,""):e,a=r.parameterLimit===1/0?void 0:r.parameterLimit,l=o.split(r.delimiter,a),c=0;c<l.length;++c){var u,s,f=l[c],p=f.indexOf("]="),d=-1===p?f.indexOf("="):p+1;-1===d?(u=r.decoder(f,i.decoder),s=r.strictNullHandling?null:""):(u=r.decoder(f.slice(0,d),i.decoder),s=r.decoder(f.slice(d+1),i.decoder)),n.call(t,u)?t[u]=[].concat(t[u]).concat(s):t[u]=s}return t}(e,t):e,c=t.plainObjects?Object.create(null):{},u=Object.keys(l),s=0;s<u.length;++s){var f=u[s],p=a(f,l[f],t);c=o.merge(c,p,t)}return o.compact(c)}},{"./utils":5}],4:[function(e,r,o){"use strict";var n=e("./utils"),i=e("./formats"),a={brackets:function(e){return e+"[]"},indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},l=Date.prototype.toISOString,c={delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},u=function e(r,t,o,i,a,l,u,s,f,p,d,y){var m=r;if("function"==typeof u)m=u(t,m);else if(m instanceof Date)m=p(m);else if(null===m){if(i)return l&&!y?l(t,c.encoder):t;m=""}if("string"==typeof m||"number"==typeof m||"boolean"==typeof m||n.isBuffer(m))return l?[d(y?t:l(t,c.encoder))+"="+d(l(m,c.encoder))]:[d(t)+"="+d(String(m))];var b,v=[];if(void 0===m)return v;if(Array.isArray(u))b=u;else{var g=Object.keys(m);b=s?g.sort(s):g}for(var h=0;h<b.length;++h){var j=b[h];a&&null===m[j]||(v=Array.isArray(m)?v.concat(e(m[j],o(t,j),o,i,a,l,u,s,f,p,d,y)):v.concat(e(m[j],t+(f?"."+j:"["+j+"]"),o,i,a,l,u,s,f,p,d,y)))}return v};r.exports=function(e,r){var o=e,l=r?n.assign({},r):{};if(null!==l.encoder&&void 0!==l.encoder&&"function"!=typeof l.encoder)throw new TypeError("Encoder has to be a function.");var s=void 0===l.delimiter?c.delimiter:l.delimiter,f="boolean"==typeof l.strictNullHandling?l.strictNullHandling:c.strictNullHandling,p="boolean"==typeof l.skipNulls?l.skipNulls:c.skipNulls,d="boolean"==typeof l.encode?l.encode:c.encode,y="function"==typeof l.encoder?l.encoder:c.encoder,m="function"==typeof l.sort?l.sort:null,b=void 0!==l.allowDots&&l.allowDots,v="function"==typeof l.serializeDate?l.serializeDate:c.serializeDate,g="boolean"==typeof l.encodeValuesOnly?l.encodeValuesOnly:c.encodeValuesOnly;if(void 0===l.format)l.format=i.default;else if(!Object.prototype.hasOwnProperty.call(i.formatters,l.format))throw new TypeError("Unknown format option provided.");var h,j,O=i.formatters[l.format];"function"==typeof l.filter?o=(j=l.filter)("",o):Array.isArray(l.filter)&&(h=j=l.filter);var w,x=[];if("object"!==t(o)||null===o)return"";w=l.arrayFormat in a?l.arrayFormat:"indices"in l?l.indices?"indices":"repeat":"indices";var A=a[w];h||(h=Object.keys(o)),m&&h.sort(m);for(var N=0;N<h.length;++N){var D=h[N];p&&null===o[D]||(x=x.concat(u(o[D],D,A,f,p,d?y:null,j,m,b,v,O,g)))}var P=x.join(s),L=!0===l.addQueryPrefix?"?":"";return P.length>0?L+P:""}},{"./formats":1,"./utils":5}],5:[function(e,r,o){"use strict";var n=Object.prototype.hasOwnProperty,i=function(){for(var e=[],r=0;r<256;++r)e.push("%"+((r<16?"0":"")+r.toString(16)).toUpperCase());return e}(),a=function(e,r){for(var t=r&&r.plainObjects?Object.create(null):{},o=0;o<e.length;++o)void 0!==e[o]&&(t[o]=e[o]);return t};r.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 r=[{obj:{o:e},prop:"o"}],o=[],n=0;n<r.length;++n)for(var i=r[n],a=i.obj[i.prop],l=Object.keys(a),c=0;c<l.length;++c){var u=l[c],s=a[u];"object"===t(s)&&null!==s&&-1===o.indexOf(s)&&(r.push({obj:a,prop:u}),o.push(s))}return function(e){for(var r;e.length;){var t=e.pop();if(r=t.obj[t.prop],Array.isArray(r)){for(var o=[],n=0;n<r.length;++n)void 0!==r[n]&&o.push(r[n]);t.obj[t.prop]=o}}return r}(r)},decode:function(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(r){return e}},encode:function(e){if(0===e.length)return e;for(var r="string"==typeof e?e:String(e),t="",o=0;o<r.length;++o){var n=r.charCodeAt(o);45===n||46===n||95===n||126===n||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122?t+=r.charAt(o):n<128?t+=i[n]:n<2048?t+=i[192|n>>6]+i[128|63&n]:n<55296||n>=57344?t+=i[224|n>>12]+i[128|n>>6&63]+i[128|63&n]:(o+=1,n=65536+((1023&n)<<10|1023&r.charCodeAt(o)),t+=i[240|n>>18]+i[128|n>>12&63]+i[128|n>>6&63]+i[128|63&n])}return t},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 e(r,o,i){if(!o)return r;if("object"!==t(o)){if(Array.isArray(r))r.push(o);else{if("object"!==t(r))return[r,o];(i.plainObjects||i.allowPrototypes||!n.call(Object.prototype,o))&&(r[o]=!0)}return r}if("object"!==t(r))return[r].concat(o);var l=r;return Array.isArray(r)&&!Array.isArray(o)&&(l=a(r,i)),Array.isArray(r)&&Array.isArray(o)?(o.forEach(function(o,a){n.call(r,a)?r[a]&&"object"===t(r[a])?r[a]=e(r[a],o,i):r.push(o):r[a]=o}),r):Object.keys(o).reduce(function(r,t){var a=o[t];return n.call(r,t)?r[t]=e(r[t],a,i):r[t]=a,r},l)}}},{}]},{},[2])(2)});
},{}],"Focm":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=r(require("../lib/md5")),e=r(require("../lib/qs"));function r(t){return t&&t.__esModule?t:{default:t}}function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){return s(t)||u(t,e)||a(t,e)||i()}function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(t,e){if(t){if("string"==typeof t)return c(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(t,e):void 0}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function u(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(l){s=!0,o=l}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}function s(t){if(Array.isArray(t))return t}function l(){l=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(N){s=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),c=new P(n||[]);return o(a,"_invoke",{value:j(t,r,c)}),a}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=f;var h={};function v(){}function y(){}function d(){}var g={};s(g,a,function(){return this});var m=Object.getPrototypeOf,b=m&&m(m(E([])));b&&b!==e&&r.call(b,a)&&(g=b);var w=d.prototype=v.prototype=Object.create(g);function O(t){["next","throw","return"].forEach(function(e){s(t,e,function(t){return this._invoke(e,t)})})}function x(t,e){var i;o(this,"_invoke",{value:function(o,a){function c(){return new e(function(i,c){!function o(i,a,c,u){var s=p(t[i],t,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==n(f)&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){o("next",t,c,u)},function(t){o("throw",t,c,u)}):e.resolve(f).then(function(t){l.value=t,c(l)},function(t){return o("throw",t,c,u)})}u(s.arg)}(o,a,i,c)})}return i=i?i.then(c,c):c()}})}function j(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return _()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=S(a,r);if(c){if(c===h)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=p(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function S(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,S(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var o=p(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function E(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:_}}function _(){return{value:void 0,done:!0}}return y.prototype=d,o(w,"constructor",{value:d,configurable:!0}),o(d,"constructor",{value:y,configurable:!0}),y.displayName=s(d,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},O(x.prototype),s(x.prototype,c,function(){return this}),t.AsyncIterator=x,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new x(f(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next()})},O(w),s(w,u,"Generator"),s(w,a,function(){return this}),s(w,"toString",function(){return"[object Generator]"}),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=E,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function f(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(s){return void r(s)}c.done?e(u):Promise.resolve(u).then(n,o)}function p(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){f(i,n,o,a,c,"next",t)}function c(t){f(i,n,o,a,c,"throw",t)}a(void 0)})}}function h(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function v(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?h(Object(r),!0).forEach(function(e){y(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function y(t,e,r){return(e=b(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,b(n.key),n)}}function m(t,e,r){return e&&g(t.prototype,e),r&&g(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function b(t){var e=w(t,"string");return"symbol"===n(e)?e:String(e)}function w(t,e){if("object"!==n(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var O="https://restapi.amap.com",x="373bd88fa36ebc0247d60281386b6cec",j="a2a93fa04721a36819d86b71cb31fe41",S=function(){function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};d(this,r),this.key=t.key||x,this.secret=t.secret||j}return m(r,[{key:"setLocaleCompare",value:function(t){t.key=this.key;var e=[],r={};return Object.keys(t).map(function(t){return e.push(t)}),e.sort(function(t,e){return t.localeCompare(e)}).map(function(e){return r[e]=t[e]}),r}},{key:"getSign",value:function(r){return(0,t.default)("".concat(decodeURIComponent(e.default.stringify(this.setLocaleCompare(r)))).concat(this.secret))}},{key:"get",value:function(t,e){return this.request("GET",t,e)}},{key:"request",value:function(t,e,r){r||(r={});var n=this.getSign(r,e),o=wx&&wx.request,i=v(v({},this.setLocaleCompare(r)),{},{sig:n});if(o){wx.showNavigationBarLoading();var a="POST"===t?{"content-type":"application/json"}:{};return new Promise(function(r,n){wx.request({url:"".concat(O).concat(e),data:i,method:t,header:a,dataType:"json",responseType:"text",success:function(t){var e=t.statusCode,n=t.data,o=t.errMsg;"200"==e?"1"==n.status?r(n):wx.showToast({title:n.info,icon:"none"}):wx.showToast({title:o,icon:"error"})},fail:function(t){wx.hideLoading(),console.error("接口异常:",t),wx.showToast({title:"系统异常",icon:"error"}),n(t)},complete:function(){wx.hideNavigationBarLoading()}})})}var c=[];return Object.keys(i).map(function(t){c.push("".concat(t,"=").concat(encodeURIComponent(i[t])))}),new Promise(function(r,n){window.fetch("".concat(O).concat(e,"?").concat(c.join("&")),{method:t}).then(function(){var t=p(l().mark(function t(e){var o;return l().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.json();case 3:if("1"!=(o=t.sent).status){t.next=8;break}r(o),t.next=9;break;case 8:throw o.info;case 9:t.next=15;break;case 11:t.prev=11,t.t0=t.catch(0),alert(t.t0),n();case 15:case"end":return t.stop()}},t,null,[[0,11]])}));return function(e){return t.apply(this,arguments)}}())})}},{key:"calculateDistance",value:function(){var t=p(l().mark(function t(e,r){var n,o,i,a,c,u,s=arguments;return l().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=s.length>2&&void 0!==s[2]?s[2]:1,t.prev=1,o=JSON.parse(JSON.stringify(e)).reverse().join(","),i=JSON.parse(JSON.stringify(r)).reverse().join(","),t.next=6,this.get("/v3/distance",{destination:o,origins:i,type:n});case 6:return a=t.sent,c=a.results,u={elements:c},t.abrupt("return",Promise.resolve(u));case 12:return t.prev=12,t.t0=t.catch(1),t.abrupt("return",Promise.reject(t.t0));case 15:case"end":return t.stop()}},t,this,[[1,12]])}));return function(e,r){return t.apply(this,arguments)}}()},{key:"calculateDistanceMatrix",value:function(){var t=p(l().mark(function t(e,r){var n,o,i,a,c,u,s=arguments;return l().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=s.length>2&&void 0!==s[2]?s[2]:1,t.prev=1,o=JSON.parse(JSON.stringify(e)).reverse().join(","),i=JSON.parse(JSON.stringify(r)).map(function(t){return t.reverse()}).join("|"),t.next=6,this.get("/v3/distance",{destination:o,origins:i,type:n});case 6:return a=t.sent,c=a.results,u={rows:[{elements:c}]},t.abrupt("return",Promise.resolve(u));case 12:return t.prev=12,t.t0=t.catch(1),t.abrupt("return",Promise.reject(t.t0));case 15:case"end":return t.stop()}},t,this,[[1,12]])}));return function(e,r){return t.apply(this,arguments)}}()},{key:"geocoder",value:function(t){return this.get("/v3/geocode/geo",{address:t})}},{key:"detailedAdrress",value:function(){var t=p(l().mark(function t(e){var r,n,i,a,c,u,s,f;return l().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.get("/v3/geocode/regeo",(n=o(r=e,2),lat=n[0],lng=n[1],r),{location:JSON.parse(JSON.stringify(e)).reverse().join(",")});case 3:return i=t.sent,a=i.regeocode,c=a.addressComponent,u=a.formatted_address,s="".concat(c.province||"").concat(c.city||"").concat(c.district||"").concat(c.township||""),f=v(v({},a),{},{address:s,formatted_address:{recommend:u,rough:u,standard_address:u},address_component:{city:c.city,district:c.district,nation:c.country,province:c.province,street:c.township},ad_info:{adcode:c.adcode,city:c.city,city_code:c.citycode,district:c.district,location:{lat:lat,lng:lng},name:"".concat(c.country+","||"").concat(c.province+","||"").concat(c.city+","||"").concat(c.district||""),nation:c.country,nation_code:"",phone_area_code:c.citycode,province:c.province},location:{lat:lat,lng:lng}}),t.abrupt("return",Promise.resolve(f));case 12:return t.prev=12,t.t0=t.catch(0),t.abrupt("return",Promise.reject(t.t0));case 15:case"end":return t.stop()}},t,this,[[0,12]])}));return function(e){return t.apply(this,arguments)}}()},{key:"getLocationByIp",value:function(){return this.get("/v3/ip")}},{key:"translate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"autonavi",r=JSON.parse(JSON.stringify(t)).map(function(t){return t.reverse()}).join("|");return this.get("/v3/assistant/coordinate/convert",{locations:r,coordsys:e})}}]),r}(),L=S;exports.default=L;
},{"../lib/md5":"y5Z9","../lib/qs":"NvPZ"}]},{},["Focm"], null)
//# sourceMappingURL=/glmap-jssdk.js.map
\ No newline at end of file \ No newline at end of file
This diff could not be displayed because it is too large.
;(function () {
'use strict'
var ERROR = 'input is invalid type'
var WINDOW = typeof window === 'object'
var root = WINDOW ? window : {}
if (root.JS_MD5_NO_WINDOW) {
WINDOW = false
}
var WEB_WORKER = !WINDOW && typeof self === 'object'
var NODE_JS = !root.JS_MD5_NO_NODE_JS && typeof process === 'object' && process.versions && process.versions.node
if (NODE_JS) {
root = global
} else if (WEB_WORKER) {
root = self
}
var COMMON_JS = !root.JS_MD5_NO_COMMON_JS && typeof module === 'object' && module.exports
var AMD = typeof define === 'function' && define.amd
var ARRAY_BUFFER = !root.JS_MD5_NO_ARRAY_BUFFER && typeof ArrayBuffer !== 'undefined'
var HEX_CHARS = '0123456789abcdef'.split('')
var EXTRA = [128, 32768, 8388608, -2147483648]
var SHIFT = [0, 8, 16, 24]
var OUTPUT_TYPES = ['hex', 'array', 'digest', 'buffer', 'arrayBuffer', 'base64']
var BASE64_ENCODE_CHAR = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.split('')
var blocks = [],
buffer8
if (ARRAY_BUFFER) {
var buffer = new ArrayBuffer(68)
buffer8 = new Uint8Array(buffer)
blocks = new Uint32Array(buffer)
}
if (root.JS_MD5_NO_NODE_JS || !Array.isArray) {
Array.isArray = function (obj) {
return Object.prototype.toString.call(obj) === '[object Array]'
}
}
if (ARRAY_BUFFER && (root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW || !ArrayBuffer.isView)) {
ArrayBuffer.isView = function (obj) {
return typeof obj === 'object' && obj.buffer && obj.buffer.constructor === ArrayBuffer
}
}
/**
* @method hex
* @memberof md5
* @description Output hash as hex string
* @param {String|Array|Uint8Array|ArrayBuffer} message message to hash
* @returns {String} Hex string
* @example
* md5.hex('The quick brown fox jumps over the lazy dog');
* // equal to
* md5('The quick brown fox jumps over the lazy dog');
*/
/**
* @method digest
* @memberof md5
* @description Output hash as bytes array
* @param {String|Array|Uint8Array|ArrayBuffer} message message to hash
* @returns {Array} Bytes array
* @example
* md5.digest('The quick brown fox jumps over the lazy dog');
*/
/**
* @method array
* @memberof md5
* @description Output hash as bytes array
* @param {String|Array|Uint8Array|ArrayBuffer} message message to hash
* @returns {Array} Bytes array
* @example
* md5.array('The quick brown fox jumps over the lazy dog');
*/
/**
* @method arrayBuffer
* @memberof md5
* @description Output hash as ArrayBuffer
* @param {String|Array|Uint8Array|ArrayBuffer} message message to hash
* @returns {ArrayBuffer} ArrayBuffer
* @example
* md5.arrayBuffer('The quick brown fox jumps over the lazy dog');
*/
/**
* @method buffer
* @deprecated This maybe confuse with Buffer in node.js. Please use arrayBuffer instead.
* @memberof md5
* @description Output hash as ArrayBuffer
* @param {String|Array|Uint8Array|ArrayBuffer} message message to hash
* @returns {ArrayBuffer} ArrayBuffer
* @example
* md5.buffer('The quick brown fox jumps over the lazy dog');
*/
/**
* @method base64
* @memberof md5
* @description Output hash as base64 string
* @param {String|Array|Uint8Array|ArrayBuffer} message message to hash
* @returns {String} base64 string
* @example
* md5.base64('The quick brown fox jumps over the lazy dog');
*/
var createOutputMethod = function (outputType) {
return function (message) {
return new Md5(true).update(message)[outputType]()
}
}
/**
* @method create
* @memberof md5
* @description Create Md5 object
* @returns {Md5} Md5 object.
* @example
* var hash = md5.create();
*/
/**
* @method update
* @memberof md5
* @description Create and update Md5 object
* @param {String|Array|Uint8Array|ArrayBuffer} message message to hash
* @returns {Md5} Md5 object.
* @example
* var hash = md5.update('The quick brown fox jumps over the lazy dog');
* // equal to
* var hash = md5.create();
* hash.update('The quick brown fox jumps over the lazy dog');
*/
var createMethod = function () {
var method = createOutputMethod('hex')
if (NODE_JS) {
method = nodeWrap(method)
}
method.create = function () {
return new Md5()
}
method.update = function (message) {
return method.create().update(message)
}
for (var i = 0; i < OUTPUT_TYPES.length; ++i) {
var type = OUTPUT_TYPES[i]
method[type] = createOutputMethod(type)
}
return method
}
var nodeWrap = function (method) {
var crypto = eval("require('crypto')")
var Buffer = eval("require('buffer').Buffer")
var nodeMethod = function (message) {
if (typeof message === 'string') {
return crypto.createHash('md5').update(message, 'utf8').digest('hex')
} else {
if (message === null || message === undefined) {
throw ERROR
} else if (message.constructor === ArrayBuffer) {
message = new Uint8Array(message)
}
}
if (Array.isArray(message) || ArrayBuffer.isView(message) || message.constructor === Buffer) {
return crypto.createHash('md5').update(new Buffer(message)).digest('hex')
} else {
return method(message)
}
}
return nodeMethod
}
/**
* Md5 class
* @class Md5
* @description This is internal class.
* @see {@link md5.create}
*/
function Md5(sharedMemory) {
if (sharedMemory) {
blocks[0] = blocks[16] = blocks[1] = blocks[2] = blocks[3] = blocks[4] = blocks[5] = blocks[6] = blocks[7] = blocks[8] = blocks[9] = blocks[10] = blocks[11] = blocks[12] = blocks[13] = blocks[14] = blocks[15] = 0
this.blocks = blocks
this.buffer8 = buffer8
} else {
if (ARRAY_BUFFER) {
var buffer = new ArrayBuffer(68)
this.buffer8 = new Uint8Array(buffer)
this.blocks = new Uint32Array(buffer)
} else {
this.blocks = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
}
}
this.h0 = this.h1 = this.h2 = this.h3 = this.start = this.bytes = this.hBytes = 0
this.finalized = this.hashed = false
this.first = true
}
/**
* @method update
* @memberof Md5
* @instance
* @description Update hash
* @param {String|Array|Uint8Array|ArrayBuffer} message message to hash
* @returns {Md5} Md5 object.
* @see {@link md5.update}
*/
Md5.prototype.update = function (message) {
if (this.finalized) {
return
}
var notString,
type = typeof message
if (type !== 'string') {
if (type === 'object') {
if (message === null) {
throw ERROR
} else if (ARRAY_BUFFER && message.constructor === ArrayBuffer) {
message = new Uint8Array(message)
} else if (!Array.isArray(message)) {
if (!ARRAY_BUFFER || !ArrayBuffer.isView(message)) {
throw ERROR
}
}
} else {
throw ERROR
}
notString = true
}
var code,
index = 0,
i,
length = message.length,
blocks = this.blocks
var buffer8 = this.buffer8
while (index < length) {
if (this.hashed) {
this.hashed = false
blocks[0] = blocks[16]
blocks[16] = blocks[1] = blocks[2] = blocks[3] = blocks[4] = blocks[5] = blocks[6] = blocks[7] = blocks[8] = blocks[9] = blocks[10] = blocks[11] = blocks[12] = blocks[13] = blocks[14] = blocks[15] = 0
}
if (notString) {
if (ARRAY_BUFFER) {
for (i = this.start; index < length && i < 64; ++index) {
buffer8[i++] = message[index]
}
} else {
for (i = this.start; index < length && i < 64; ++index) {
blocks[i >> 2] |= message[index] << SHIFT[i++ & 3]
}
}
} else {
if (ARRAY_BUFFER) {
for (i = this.start; index < length && i < 64; ++index) {
code = message.charCodeAt(index)
if (code < 0x80) {
buffer8[i++] = code
} else if (code < 0x800) {
buffer8[i++] = 0xc0 | (code >> 6)
buffer8[i++] = 0x80 | (code & 0x3f)
} else if (code < 0xd800 || code >= 0xe000) {
buffer8[i++] = 0xe0 | (code >> 12)
buffer8[i++] = 0x80 | ((code >> 6) & 0x3f)
buffer8[i++] = 0x80 | (code & 0x3f)
} else {
code = 0x10000 + (((code & 0x3ff) << 10) | (message.charCodeAt(++index) & 0x3ff))
buffer8[i++] = 0xf0 | (code >> 18)
buffer8[i++] = 0x80 | ((code >> 12) & 0x3f)
buffer8[i++] = 0x80 | ((code >> 6) & 0x3f)
buffer8[i++] = 0x80 | (code & 0x3f)
}
}
} else {
for (i = this.start; index < length && i < 64; ++index) {
code = message.charCodeAt(index)
if (code < 0x80) {
blocks[i >> 2] |= code << SHIFT[i++ & 3]
} else if (code < 0x800) {
blocks[i >> 2] |= (0xc0 | (code >> 6)) << SHIFT[i++ & 3]
blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3]
} else if (code < 0xd800 || code >= 0xe000) {
blocks[i >> 2] |= (0xe0 | (code >> 12)) << SHIFT[i++ & 3]
blocks[i >> 2] |= (0x80 | ((code >> 6) & 0x3f)) << SHIFT[i++ & 3]
blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3]
} else {
code = 0x10000 + (((code & 0x3ff) << 10) | (message.charCodeAt(++index) & 0x3ff))
blocks[i >> 2] |= (0xf0 | (code >> 18)) << SHIFT[i++ & 3]
blocks[i >> 2] |= (0x80 | ((code >> 12) & 0x3f)) << SHIFT[i++ & 3]
blocks[i >> 2] |= (0x80 | ((code >> 6) & 0x3f)) << SHIFT[i++ & 3]
blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3]
}
}
}
}
this.lastByteIndex = i
this.bytes += i - this.start
if (i >= 64) {
this.start = i - 64
this.hash()
this.hashed = true
} else {
this.start = i
}
}
if (this.bytes > 4294967295) {
this.hBytes += (this.bytes / 4294967296) << 0
this.bytes = this.bytes % 4294967296
}
return this
}
Md5.prototype.finalize = function () {
if (this.finalized) {
return
}
this.finalized = true
var blocks = this.blocks,
i = this.lastByteIndex
blocks[i >> 2] |= EXTRA[i & 3]
if (i >= 56) {
if (!this.hashed) {
this.hash()
}
blocks[0] = blocks[16]
blocks[16] = blocks[1] = blocks[2] = blocks[3] = blocks[4] = blocks[5] = blocks[6] = blocks[7] = blocks[8] = blocks[9] = blocks[10] = blocks[11] = blocks[12] = blocks[13] = blocks[14] = blocks[15] = 0
}
blocks[14] = this.bytes << 3
blocks[15] = (this.hBytes << 3) | (this.bytes >>> 29)
this.hash()
}
Md5.prototype.hash = function () {
var a,
b,
c,
d,
bc,
da,
blocks = this.blocks
if (this.first) {
a = blocks[0] - 680876937
a = (((a << 7) | (a >>> 25)) - 271733879) << 0
d = (-1732584194 ^ (a & 2004318071)) + blocks[1] - 117830708
d = (((d << 12) | (d >>> 20)) + a) << 0
c = (-271733879 ^ (d & (a ^ -271733879))) + blocks[2] - 1126478375
c = (((c << 17) | (c >>> 15)) + d) << 0
b = (a ^ (c & (d ^ a))) + blocks[3] - 1316259209
b = (((b << 22) | (b >>> 10)) + c) << 0
} else {
a = this.h0
b = this.h1
c = this.h2
d = this.h3
a += (d ^ (b & (c ^ d))) + blocks[0] - 680876936
a = (((a << 7) | (a >>> 25)) + b) << 0
d += (c ^ (a & (b ^ c))) + blocks[1] - 389564586
d = (((d << 12) | (d >>> 20)) + a) << 0
c += (b ^ (d & (a ^ b))) + blocks[2] + 606105819
c = (((c << 17) | (c >>> 15)) + d) << 0
b += (a ^ (c & (d ^ a))) + blocks[3] - 1044525330
b = (((b << 22) | (b >>> 10)) + c) << 0
}
a += (d ^ (b & (c ^ d))) + blocks[4] - 176418897
a = (((a << 7) | (a >>> 25)) + b) << 0
d += (c ^ (a & (b ^ c))) + blocks[5] + 1200080426
d = (((d << 12) | (d >>> 20)) + a) << 0
c += (b ^ (d & (a ^ b))) + blocks[6] - 1473231341
c = (((c << 17) | (c >>> 15)) + d) << 0
b += (a ^ (c & (d ^ a))) + blocks[7] - 45705983
b = (((b << 22) | (b >>> 10)) + c) << 0
a += (d ^ (b & (c ^ d))) + blocks[8] + 1770035416
a = (((a << 7) | (a >>> 25)) + b) << 0
d += (c ^ (a & (b ^ c))) + blocks[9] - 1958414417
d = (((d << 12) | (d >>> 20)) + a) << 0
c += (b ^ (d & (a ^ b))) + blocks[10] - 42063
c = (((c << 17) | (c >>> 15)) + d) << 0
b += (a ^ (c & (d ^ a))) + blocks[11] - 1990404162
b = (((b << 22) | (b >>> 10)) + c) << 0
a += (d ^ (b & (c ^ d))) + blocks[12] + 1804603682
a = (((a << 7) | (a >>> 25)) + b) << 0
d += (c ^ (a & (b ^ c))) + blocks[13] - 40341101
d = (((d << 12) | (d >>> 20)) + a) << 0
c += (b ^ (d & (a ^ b))) + blocks[14] - 1502002290
c = (((c << 17) | (c >>> 15)) + d) << 0
b += (a ^ (c & (d ^ a))) + blocks[15] + 1236535329
b = (((b << 22) | (b >>> 10)) + c) << 0
a += (c ^ (d & (b ^ c))) + blocks[1] - 165796510
a = (((a << 5) | (a >>> 27)) + b) << 0
d += (b ^ (c & (a ^ b))) + blocks[6] - 1069501632
d = (((d << 9) | (d >>> 23)) + a) << 0
c += (a ^ (b & (d ^ a))) + blocks[11] + 643717713
c = (((c << 14) | (c >>> 18)) + d) << 0
b += (d ^ (a & (c ^ d))) + blocks[0] - 373897302
b = (((b << 20) | (b >>> 12)) + c) << 0
a += (c ^ (d & (b ^ c))) + blocks[5] - 701558691
a = (((a << 5) | (a >>> 27)) + b) << 0
d += (b ^ (c & (a ^ b))) + blocks[10] + 38016083
d = (((d << 9) | (d >>> 23)) + a) << 0
c += (a ^ (b & (d ^ a))) + blocks[15] - 660478335
c = (((c << 14) | (c >>> 18)) + d) << 0
b += (d ^ (a & (c ^ d))) + blocks[4] - 405537848
b = (((b << 20) | (b >>> 12)) + c) << 0
a += (c ^ (d & (b ^ c))) + blocks[9] + 568446438
a = (((a << 5) | (a >>> 27)) + b) << 0
d += (b ^ (c & (a ^ b))) + blocks[14] - 1019803690
d = (((d << 9) | (d >>> 23)) + a) << 0
c += (a ^ (b & (d ^ a))) + blocks[3] - 187363961
c = (((c << 14) | (c >>> 18)) + d) << 0
b += (d ^ (a & (c ^ d))) + blocks[8] + 1163531501
b = (((b << 20) | (b >>> 12)) + c) << 0
a += (c ^ (d & (b ^ c))) + blocks[13] - 1444681467
a = (((a << 5) | (a >>> 27)) + b) << 0
d += (b ^ (c & (a ^ b))) + blocks[2] - 51403784
d = (((d << 9) | (d >>> 23)) + a) << 0
c += (a ^ (b & (d ^ a))) + blocks[7] + 1735328473
c = (((c << 14) | (c >>> 18)) + d) << 0
b += (d ^ (a & (c ^ d))) + blocks[12] - 1926607734
b = (((b << 20) | (b >>> 12)) + c) << 0
bc = b ^ c
a += (bc ^ d) + blocks[5] - 378558
a = (((a << 4) | (a >>> 28)) + b) << 0
d += (bc ^ a) + blocks[8] - 2022574463
d = (((d << 11) | (d >>> 21)) + a) << 0
da = d ^ a
c += (da ^ b) + blocks[11] + 1839030562
c = (((c << 16) | (c >>> 16)) + d) << 0
b += (da ^ c) + blocks[14] - 35309556
b = (((b << 23) | (b >>> 9)) + c) << 0
bc = b ^ c
a += (bc ^ d) + blocks[1] - 1530992060
a = (((a << 4) | (a >>> 28)) + b) << 0
d += (bc ^ a) + blocks[4] + 1272893353
d = (((d << 11) | (d >>> 21)) + a) << 0
da = d ^ a
c += (da ^ b) + blocks[7] - 155497632
c = (((c << 16) | (c >>> 16)) + d) << 0
b += (da ^ c) + blocks[10] - 1094730640
b = (((b << 23) | (b >>> 9)) + c) << 0
bc = b ^ c
a += (bc ^ d) + blocks[13] + 681279174
a = (((a << 4) | (a >>> 28)) + b) << 0
d += (bc ^ a) + blocks[0] - 358537222
d = (((d << 11) | (d >>> 21)) + a) << 0
da = d ^ a
c += (da ^ b) + blocks[3] - 722521979
c = (((c << 16) | (c >>> 16)) + d) << 0
b += (da ^ c) + blocks[6] + 76029189
b = (((b << 23) | (b >>> 9)) + c) << 0
bc = b ^ c
a += (bc ^ d) + blocks[9] - 640364487
a = (((a << 4) | (a >>> 28)) + b) << 0
d += (bc ^ a) + blocks[12] - 421815835
d = (((d << 11) | (d >>> 21)) + a) << 0
da = d ^ a
c += (da ^ b) + blocks[15] + 530742520
c = (((c << 16) | (c >>> 16)) + d) << 0
b += (da ^ c) + blocks[2] - 995338651
b = (((b << 23) | (b >>> 9)) + c) << 0
a += (c ^ (b | ~d)) + blocks[0] - 198630844
a = (((a << 6) | (a >>> 26)) + b) << 0
d += (b ^ (a | ~c)) + blocks[7] + 1126891415
d = (((d << 10) | (d >>> 22)) + a) << 0
c += (a ^ (d | ~b)) + blocks[14] - 1416354905
c = (((c << 15) | (c >>> 17)) + d) << 0
b += (d ^ (c | ~a)) + blocks[5] - 57434055
b = (((b << 21) | (b >>> 11)) + c) << 0
a += (c ^ (b | ~d)) + blocks[12] + 1700485571
a = (((a << 6) | (a >>> 26)) + b) << 0
d += (b ^ (a | ~c)) + blocks[3] - 1894986606
d = (((d << 10) | (d >>> 22)) + a) << 0
c += (a ^ (d | ~b)) + blocks[10] - 1051523
c = (((c << 15) | (c >>> 17)) + d) << 0
b += (d ^ (c | ~a)) + blocks[1] - 2054922799
b = (((b << 21) | (b >>> 11)) + c) << 0
a += (c ^ (b | ~d)) + blocks[8] + 1873313359
a = (((a << 6) | (a >>> 26)) + b) << 0
d += (b ^ (a | ~c)) + blocks[15] - 30611744
d = (((d << 10) | (d >>> 22)) + a) << 0
c += (a ^ (d | ~b)) + blocks[6] - 1560198380
c = (((c << 15) | (c >>> 17)) + d) << 0
b += (d ^ (c | ~a)) + blocks[13] + 1309151649
b = (((b << 21) | (b >>> 11)) + c) << 0
a += (c ^ (b | ~d)) + blocks[4] - 145523070
a = (((a << 6) | (a >>> 26)) + b) << 0
d += (b ^ (a | ~c)) + blocks[11] - 1120210379
d = (((d << 10) | (d >>> 22)) + a) << 0
c += (a ^ (d | ~b)) + blocks[2] + 718787259
c = (((c << 15) | (c >>> 17)) + d) << 0
b += (d ^ (c | ~a)) + blocks[9] - 343485551
b = (((b << 21) | (b >>> 11)) + c) << 0
if (this.first) {
this.h0 = (a + 1732584193) << 0
this.h1 = (b - 271733879) << 0
this.h2 = (c - 1732584194) << 0
this.h3 = (d + 271733878) << 0
this.first = false
} else {
this.h0 = (this.h0 + a) << 0
this.h1 = (this.h1 + b) << 0
this.h2 = (this.h2 + c) << 0
this.h3 = (this.h3 + d) << 0
}
}
/**
* @method hex
* @memberof Md5
* @instance
* @description Output hash as hex string
* @returns {String} Hex string
* @see {@link md5.hex}
* @example
* hash.hex();
*/
Md5.prototype.hex = function () {
this.finalize()
var h0 = this.h0,
h1 = this.h1,
h2 = this.h2,
h3 = this.h3
return (
HEX_CHARS[(h0 >> 4) & 0x0f] +
HEX_CHARS[h0 & 0x0f] +
HEX_CHARS[(h0 >> 12) & 0x0f] +
HEX_CHARS[(h0 >> 8) & 0x0f] +
HEX_CHARS[(h0 >> 20) & 0x0f] +
HEX_CHARS[(h0 >> 16) & 0x0f] +
HEX_CHARS[(h0 >> 28) & 0x0f] +
HEX_CHARS[(h0 >> 24) & 0x0f] +
HEX_CHARS[(h1 >> 4) & 0x0f] +
HEX_CHARS[h1 & 0x0f] +
HEX_CHARS[(h1 >> 12) & 0x0f] +
HEX_CHARS[(h1 >> 8) & 0x0f] +
HEX_CHARS[(h1 >> 20) & 0x0f] +
HEX_CHARS[(h1 >> 16) & 0x0f] +
HEX_CHARS[(h1 >> 28) & 0x0f] +
HEX_CHARS[(h1 >> 24) & 0x0f] +
HEX_CHARS[(h2 >> 4) & 0x0f] +
HEX_CHARS[h2 & 0x0f] +
HEX_CHARS[(h2 >> 12) & 0x0f] +
HEX_CHARS[(h2 >> 8) & 0x0f] +
HEX_CHARS[(h2 >> 20) & 0x0f] +
HEX_CHARS[(h2 >> 16) & 0x0f] +
HEX_CHARS[(h2 >> 28) & 0x0f] +
HEX_CHARS[(h2 >> 24) & 0x0f] +
HEX_CHARS[(h3 >> 4) & 0x0f] +
HEX_CHARS[h3 & 0x0f] +
HEX_CHARS[(h3 >> 12) & 0x0f] +
HEX_CHARS[(h3 >> 8) & 0x0f] +
HEX_CHARS[(h3 >> 20) & 0x0f] +
HEX_CHARS[(h3 >> 16) & 0x0f] +
HEX_CHARS[(h3 >> 28) & 0x0f] +
HEX_CHARS[(h3 >> 24) & 0x0f]
)
}
/**
* @method toString
* @memberof Md5
* @instance
* @description Output hash as hex string
* @returns {String} Hex string
* @see {@link md5.hex}
* @example
* hash.toString();
*/
Md5.prototype.toString = Md5.prototype.hex
/**
* @method digest
* @memberof Md5
* @instance
* @description Output hash as bytes array
* @returns {Array} Bytes array
* @see {@link md5.digest}
* @example
* hash.digest();
*/
Md5.prototype.digest = function () {
this.finalize()
var h0 = this.h0,
h1 = this.h1,
h2 = this.h2,
h3 = this.h3
return [h0 & 0xff, (h0 >> 8) & 0xff, (h0 >> 16) & 0xff, (h0 >> 24) & 0xff, h1 & 0xff, (h1 >> 8) & 0xff, (h1 >> 16) & 0xff, (h1 >> 24) & 0xff, h2 & 0xff, (h2 >> 8) & 0xff, (h2 >> 16) & 0xff, (h2 >> 24) & 0xff, h3 & 0xff, (h3 >> 8) & 0xff, (h3 >> 16) & 0xff, (h3 >> 24) & 0xff]
}
/**
* @method array
* @memberof Md5
* @instance
* @description Output hash as bytes array
* @returns {Array} Bytes array
* @see {@link md5.array}
* @example
* hash.array();
*/
Md5.prototype.array = Md5.prototype.digest
/**
* @method arrayBuffer
* @memberof Md5
* @instance
* @description Output hash as ArrayBuffer
* @returns {ArrayBuffer} ArrayBuffer
* @see {@link md5.arrayBuffer}
* @example
* hash.arrayBuffer();
*/
Md5.prototype.arrayBuffer = function () {
this.finalize()
var buffer = new ArrayBuffer(16)
var blocks = new Uint32Array(buffer)
blocks[0] = this.h0
blocks[1] = this.h1
blocks[2] = this.h2
blocks[3] = this.h3
return buffer
}
/**
* @method buffer
* @deprecated This maybe confuse with Buffer in node.js. Please use arrayBuffer instead.
* @memberof Md5
* @instance
* @description Output hash as ArrayBuffer
* @returns {ArrayBuffer} ArrayBuffer
* @see {@link md5.buffer}
* @example
* hash.buffer();
*/
Md5.prototype.buffer = Md5.prototype.arrayBuffer
/**
* @method base64
* @memberof Md5
* @instance
* @description Output hash as base64 string
* @returns {String} base64 string
* @see {@link md5.base64}
* @example
* hash.base64();
*/
Md5.prototype.base64 = function () {
var v1,
v2,
v3,
base64Str = '',
bytes = this.array()
for (var i = 0; i < 15; ) {
v1 = bytes[i++]
v2 = bytes[i++]
v3 = bytes[i++]
base64Str += BASE64_ENCODE_CHAR[v1 >>> 2] + BASE64_ENCODE_CHAR[((v1 << 4) | (v2 >>> 4)) & 63] + BASE64_ENCODE_CHAR[((v2 << 2) | (v3 >>> 6)) & 63] + BASE64_ENCODE_CHAR[v3 & 63]
}
v1 = bytes[i]
base64Str += BASE64_ENCODE_CHAR[v1 >>> 2] + BASE64_ENCODE_CHAR[(v1 << 4) & 63] + '=='
return base64Str
}
var exports = createMethod()
if (COMMON_JS) {
module.exports = exports
} else {
/**
* @method md5
* @description Md5 hash function, export to global in browsers.
* @param {String|Array|Uint8Array|ArrayBuffer} message message to hash
* @returns {String} md5 hashes
* @example
* md5(''); // d41d8cd98f00b204e9800998ecf8427e
* md5('The quick brown fox jumps over the lazy dog'); // 9e107d9d372bb6826bd81d3542a419d6
* md5('The quick brown fox jumps over the lazy dog.'); // e4d909c290d0fb1ca068ffaddf22cbd0
*
* // It also supports UTF-8 encoding
* md5('中文'); // a7bac2239fcdcb3a067903d8077c4a07
*
* // It also supports byte `Array`, `Uint8Array`, `ArrayBuffer`
* md5([]); // d41d8cd98f00b204e9800998ecf8427e
* md5(new Uint8Array([])); // d41d8cd98f00b204e9800998ecf8427e
*/
root.md5 = exports
if (AMD) {
define(function () {
return exports
})
}
}
})()
;(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.Qs = f()
}
})(function () {
var define, module, exports
return (function () {
function r(e, n, t) {
function o(i, f) {
if (!n[i]) {
if (!e[i]) {
var c = 'function' == typeof require && require
if (!f && c) return c(i, !0)
if (u) return u(i, !0)
var a = new Error("Cannot find module '" + i + "'")
throw ((a.code = 'MODULE_NOT_FOUND'), a)
}
var p = (n[i] = { exports: {} })
e[i][0].call(
p.exports,
function (r) {
var n = e[i][1][r]
return o(n || r)
},
p,
p.exports,
r,
e,
n,
t
)
}
return n[i].exports
}
for (var u = 'function' == typeof require && require, i = 0; i < t.length; i++) o(t[i])
return o
}
return r
})()(
{
1: [
function (require, module, exports) {
'use strict'
var replace = String.prototype.replace
var percentTwenties = /%20/g
module.exports = {
default: 'RFC3986',
formatters: {
RFC1738: function (value) {
return replace.call(value, percentTwenties, '+')
},
RFC3986: function (value) {
return value
}
},
RFC1738: 'RFC1738',
RFC3986: 'RFC3986'
}
},
{}
],
2: [
function (require, module, exports) {
'use strict'
var stringify = require('./stringify')
var parse = require('./parse')
var formats = require('./formats')
module.exports = {
formats: formats,
parse: parse,
stringify: stringify
}
},
{ './formats': 1, './parse': 3, './stringify': 4 }
],
3: [
function (require, module, exports) {
'use strict'
var utils = require('./utils')
var has = Object.prototype.hasOwnProperty
var defaults = {
allowDots: false,
allowPrototypes: false,
arrayLimit: 20,
decoder: utils.decode,
delimiter: '&',
depth: 5,
parameterLimit: 1000,
plainObjects: false,
strictNullHandling: false
}
var parseValues = function parseQueryStringValues(str, options) {
var obj = {}
var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str
var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit
var parts = cleanStr.split(options.delimiter, limit)
for (var i = 0; i < parts.length; ++i) {
var part = parts[i]
var bracketEqualsPos = part.indexOf(']=')
var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1
var key, val
if (pos === -1) {
key = options.decoder(part, defaults.decoder)
val = options.strictNullHandling ? null : ''
} else {
key = options.decoder(part.slice(0, pos), defaults.decoder)
val = options.decoder(part.slice(pos + 1), defaults.decoder)
}
if (has.call(obj, key)) {
obj[key] = [].concat(obj[key]).concat(val)
} else {
obj[key] = val
}
}
return obj
}
var parseObject = function (chain, val, options) {
var leaf = val
for (var i = chain.length - 1; i >= 0; --i) {
var obj
var root = chain[i]
if (root === '[]') {
obj = []
obj = obj.concat(leaf)
} else {
obj = options.plainObjects ? Object.create(null) : {}
var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root
var index = parseInt(cleanRoot, 10)
if (!isNaN(index) && root !== cleanRoot && String(index) === cleanRoot && index >= 0 && options.parseArrays && index <= options.arrayLimit) {
obj = []
obj[index] = leaf
} else {
obj[cleanRoot] = leaf
}
}
leaf = obj
}
return leaf
}
var parseKeys = function parseQueryStringKeys(givenKey, val, options) {
if (!givenKey) {
return
}
// Transform dot notation to bracket notation
var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey
// The regex chunks
var brackets = /(\[[^[\]]*])/
var child = /(\[[^[\]]*])/g
// Get the parent
var segment = brackets.exec(key)
var parent = segment ? key.slice(0, segment.index) : key
// Stash the parent if it exists
var keys = []
if (parent) {
// If we aren't using plain objects, optionally prefix keys
// that would overwrite object prototype properties
if (!options.plainObjects && has.call(Object.prototype, parent)) {
if (!options.allowPrototypes) {
return
}
}
keys.push(parent)
}
// Loop through children appending to the array until we hit depth
var i = 0
while ((segment = child.exec(key)) !== null && i < options.depth) {
i += 1
if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
if (!options.allowPrototypes) {
return
}
}
keys.push(segment[1])
}
// If there's a remainder, just add whatever is left
if (segment) {
keys.push('[' + key.slice(segment.index) + ']')
}
return parseObject(keys, val, options)
}
module.exports = function (str, opts) {
var options = opts ? utils.assign({}, opts) : {}
if (options.decoder !== null && options.decoder !== undefined && typeof options.decoder !== 'function') {
throw new TypeError('Decoder has to be a function.')
}
options.ignoreQueryPrefix = options.ignoreQueryPrefix === true
options.delimiter = typeof options.delimiter === 'string' || utils.isRegExp(options.delimiter) ? options.delimiter : defaults.delimiter
options.depth = typeof options.depth === 'number' ? options.depth : defaults.depth
options.arrayLimit = typeof options.arrayLimit === 'number' ? options.arrayLimit : defaults.arrayLimit
options.parseArrays = options.parseArrays !== false
options.decoder = typeof options.decoder === 'function' ? options.decoder : defaults.decoder
options.allowDots = typeof options.allowDots === 'boolean' ? options.allowDots : defaults.allowDots
options.plainObjects = typeof options.plainObjects === 'boolean' ? options.plainObjects : defaults.plainObjects
options.allowPrototypes = typeof options.allowPrototypes === 'boolean' ? options.allowPrototypes : defaults.allowPrototypes
options.parameterLimit = typeof options.parameterLimit === 'number' ? options.parameterLimit : defaults.parameterLimit
options.strictNullHandling = typeof options.strictNullHandling === 'boolean' ? options.strictNullHandling : defaults.strictNullHandling
if (str === '' || str === null || typeof str === 'undefined') {
return options.plainObjects ? Object.create(null) : {}
}
var tempObj = typeof str === 'string' ? parseValues(str, options) : str
var obj = options.plainObjects ? Object.create(null) : {}
// Iterate over the keys and setup the new object
var keys = Object.keys(tempObj)
for (var i = 0; i < keys.length; ++i) {
var key = keys[i]
var newObj = parseKeys(key, tempObj[key], options)
obj = utils.merge(obj, newObj, options)
}
return utils.compact(obj)
}
},
{ './utils': 5 }
],
4: [
function (require, module, exports) {
'use strict'
var utils = require('./utils')
var formats = require('./formats')
var arrayPrefixGenerators = {
brackets: function brackets(prefix) {
// eslint-disable-line func-name-matching
return prefix + '[]'
},
indices: function indices(prefix, key) {
// eslint-disable-line func-name-matching
return prefix + '[' + key + ']'
},
repeat: function repeat(prefix) {
// eslint-disable-line func-name-matching
return prefix
}
}
var toISO = Date.prototype.toISOString
var defaults = {
delimiter: '&',
encode: true,
encoder: utils.encode,
encodeValuesOnly: false,
serializeDate: function serializeDate(date) {
// eslint-disable-line func-name-matching
return toISO.call(date)
},
skipNulls: false,
strictNullHandling: false
}
var stringify = function stringify(object, prefix, generateArrayPrefix, strictNullHandling, skipNulls, encoder, filter, sort, allowDots, serializeDate, formatter, encodeValuesOnly) {
// eslint-disable-line func-name-matching
var obj = object
if (typeof filter === 'function') {
obj = filter(prefix, obj)
} else if (obj instanceof Date) {
obj = serializeDate(obj)
} else if (obj === null) {
if (strictNullHandling) {
return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder) : prefix
}
obj = ''
}
if (typeof obj === 'string' || typeof obj === 'number' || typeof obj === 'boolean' || utils.isBuffer(obj)) {
if (encoder) {
var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder)
return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder))]
}
return [formatter(prefix) + '=' + formatter(String(obj))]
}
var values = []
if (typeof obj === 'undefined') {
return values
}
var objKeys
if (Array.isArray(filter)) {
objKeys = filter
} else {
var keys = Object.keys(obj)
objKeys = sort ? keys.sort(sort) : keys
}
for (var i = 0; i < objKeys.length; ++i) {
var key = objKeys[i]
if (skipNulls && obj[key] === null) {
continue
}
if (Array.isArray(obj)) {
values = values.concat(stringify(obj[key], generateArrayPrefix(prefix, key), generateArrayPrefix, strictNullHandling, skipNulls, encoder, filter, sort, allowDots, serializeDate, formatter, encodeValuesOnly))
} else {
values = values.concat(stringify(obj[key], prefix + (allowDots ? '.' + key : '[' + key + ']'), generateArrayPrefix, strictNullHandling, skipNulls, encoder, filter, sort, allowDots, serializeDate, formatter, encodeValuesOnly))
}
}
return values
}
module.exports = function (object, opts) {
var obj = object
var options = opts ? utils.assign({}, opts) : {}
if (options.encoder !== null && options.encoder !== undefined && typeof options.encoder !== 'function') {
throw new TypeError('Encoder has to be a function.')
}
var delimiter = typeof options.delimiter === 'undefined' ? defaults.delimiter : options.delimiter
var strictNullHandling = typeof options.strictNullHandling === 'boolean' ? options.strictNullHandling : defaults.strictNullHandling
var skipNulls = typeof options.skipNulls === 'boolean' ? options.skipNulls : defaults.skipNulls
var encode = typeof options.encode === 'boolean' ? options.encode : defaults.encode
var encoder = typeof options.encoder === 'function' ? options.encoder : defaults.encoder
var sort = typeof options.sort === 'function' ? options.sort : null
var allowDots = typeof options.allowDots === 'undefined' ? false : options.allowDots
var serializeDate = typeof options.serializeDate === 'function' ? options.serializeDate : defaults.serializeDate
var encodeValuesOnly = typeof options.encodeValuesOnly === 'boolean' ? options.encodeValuesOnly : defaults.encodeValuesOnly
if (typeof options.format === 'undefined') {
options.format = formats['default']
} else if (!Object.prototype.hasOwnProperty.call(formats.formatters, options.format)) {
throw new TypeError('Unknown format option provided.')
}
var formatter = formats.formatters[options.format]
var objKeys
var filter
if (typeof options.filter === 'function') {
filter = options.filter
obj = filter('', obj)
} else if (Array.isArray(options.filter)) {
filter = options.filter
objKeys = filter
}
var keys = []
if (typeof obj !== 'object' || obj === null) {
return ''
}
var arrayFormat
if (options.arrayFormat in arrayPrefixGenerators) {
arrayFormat = options.arrayFormat
} else if ('indices' in options) {
arrayFormat = options.indices ? 'indices' : 'repeat'
} else {
arrayFormat = 'indices'
}
var generateArrayPrefix = arrayPrefixGenerators[arrayFormat]
if (!objKeys) {
objKeys = Object.keys(obj)
}
if (sort) {
objKeys.sort(sort)
}
for (var i = 0; i < objKeys.length; ++i) {
var key = objKeys[i]
if (skipNulls && obj[key] === null) {
continue
}
keys = keys.concat(stringify(obj[key], key, generateArrayPrefix, strictNullHandling, skipNulls, encode ? encoder : null, filter, sort, allowDots, serializeDate, formatter, encodeValuesOnly))
}
var joined = keys.join(delimiter)
var prefix = options.addQueryPrefix === true ? '?' : ''
return joined.length > 0 ? prefix + joined : ''
}
},
{ './formats': 1, './utils': 5 }
],
5: [
function (require, module, exports) {
'use strict'
var has = Object.prototype.hasOwnProperty
var hexTable = (function () {
var array = []
for (var i = 0; i < 256; ++i) {
array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase())
}
return array
})()
var compactQueue = function compactQueue(queue) {
var obj
while (queue.length) {
var item = queue.pop()
obj = item.obj[item.prop]
if (Array.isArray(obj)) {
var compacted = []
for (var j = 0; j < obj.length; ++j) {
if (typeof obj[j] !== 'undefined') {
compacted.push(obj[j])
}
}
item.obj[item.prop] = compacted
}
}
return obj
}
var arrayToObject = function arrayToObject(source, options) {
var obj = options && options.plainObjects ? Object.create(null) : {}
for (var i = 0; i < source.length; ++i) {
if (typeof source[i] !== 'undefined') {
obj[i] = source[i]
}
}
return obj
}
var merge = function merge(target, source, options) {
if (!source) {
return target
}
if (typeof source !== 'object') {
if (Array.isArray(target)) {
target.push(source)
} else if (typeof target === 'object') {
if (options.plainObjects || options.allowPrototypes || !has.call(Object.prototype, source)) {
target[source] = true
}
} else {
return [target, source]
}
return target
}
if (typeof target !== 'object') {
return [target].concat(source)
}
var mergeTarget = target
if (Array.isArray(target) && !Array.isArray(source)) {
mergeTarget = arrayToObject(target, options)
}
if (Array.isArray(target) && Array.isArray(source)) {
source.forEach(function (item, i) {
if (has.call(target, i)) {
if (target[i] && typeof target[i] === 'object') {
target[i] = merge(target[i], item, options)
} else {
target.push(item)
}
} else {
target[i] = item
}
})
return target
}
return Object.keys(source).reduce(function (acc, key) {
var value = source[key]
if (has.call(acc, key)) {
acc[key] = merge(acc[key], value, options)
} else {
acc[key] = value
}
return acc
}, mergeTarget)
}
var assign = function assignSingleSource(target, source) {
return Object.keys(source).reduce(function (acc, key) {
acc[key] = source[key]
return acc
}, target)
}
var decode = function (str) {
try {
return decodeURIComponent(str.replace(/\+/g, ' '))
} catch (e) {
return str
}
}
var encode = function encode(str) {
// This code was originally written by Brian White (mscdex) for the io.js core querystring library.
// It has been adapted here for stricter adherence to RFC 3986
if (str.length === 0) {
return str
}
var string = typeof str === 'string' ? str : String(str)
var out = ''
for (var i = 0; i < string.length; ++i) {
var c = string.charCodeAt(i)
if (
c === 0x2d || // -
c === 0x2e || // .
c === 0x5f || // _
c === 0x7e || // ~
(c >= 0x30 && c <= 0x39) || // 0-9
(c >= 0x41 && c <= 0x5a) || // a-z
(c >= 0x61 && c <= 0x7a) // A-Z
) {
out += string.charAt(i)
continue
}
if (c < 0x80) {
out = out + hexTable[c]
continue
}
if (c < 0x800) {
out = out + (hexTable[0xc0 | (c >> 6)] + hexTable[0x80 | (c & 0x3f)])
continue
}
if (c < 0xd800 || c >= 0xe000) {
out = out + (hexTable[0xe0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3f)] + hexTable[0x80 | (c & 0x3f)])
continue
}
i += 1
c = 0x10000 + (((c & 0x3ff) << 10) | (string.charCodeAt(i) & 0x3ff))
out += hexTable[0xf0 | (c >> 18)] + hexTable[0x80 | ((c >> 12) & 0x3f)] + hexTable[0x80 | ((c >> 6) & 0x3f)] + hexTable[0x80 | (c & 0x3f)]
}
return out
}
var compact = function compact(value) {
var queue = [{ obj: { o: value }, prop: 'o' }]
var refs = []
for (var i = 0; i < queue.length; ++i) {
var item = queue[i]
var obj = item.obj[item.prop]
var keys = Object.keys(obj)
for (var j = 0; j < keys.length; ++j) {
var key = keys[j]
var val = obj[key]
if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
queue.push({ obj: obj, prop: key })
refs.push(val)
}
}
}
return compactQueue(queue)
}
var isRegExp = function isRegExp(obj) {
return Object.prototype.toString.call(obj) === '[object RegExp]'
}
var isBuffer = function isBuffer(obj) {
if (obj === null || typeof obj === 'undefined') {
return false
}
return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj))
}
module.exports = {
arrayToObject: arrayToObject,
assign: assign,
compact: compact,
decode: decode,
encode: encode,
isBuffer: isBuffer,
isRegExp: isRegExp,
merge: merge
}
},
{}
]
},
{},
[2]
)(2)
})
This diff could not be displayed because it is too large.
{
"name": "glmap-jssdk",
"version": "1.0.0",
"description": "glmap-jssdk",
"main": "src/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "parcel build src/index.js --out-file dist/glmap-jssdk.js"
},
"author": "liwk",
"license": "ISC",
"devDependencies": {
"parcel-bundler": "^1.12.5"
}
}
import md5 from '../lib/md5'
import qs from '../lib/qs'
const domain = 'https://restapi.amap.com',
KEY = '373bd88fa36ebc0247d60281386b6cec',
SECRET = 'a2a93fa04721a36819d86b71cb31fe41'
class GlMap {
constructor(params = {}) {
this.key = params.key || KEY
this.secret = params.secret || SECRET
}
/**对参数进行排序:按参数名升序 */
setLocaleCompare (params) {
params.key = this.key
let keys = [],
obj = {}
Object.keys(params).map(e => keys.push(e))
keys.sort((a, b) => a.localeCompare(b)).map(e => (obj[e] = params[e]))
return obj
}
/**签名计算(sig) */
getSign (params) {
return md5(`${decodeURIComponent(qs.stringify(this.setLocaleCompare(params)))}${this.secret}`)
}
/**封装的GET方法 */
get (method, data) {
return this.request('GET', method, data)
}
/**封装的请求方法 */
request (RequestMethods, method, data) {
if (!data) data = {}
const sig = this.getSign(data, method),
ISMiniprogram = wx && wx.request,
obj = {
...this.setLocaleCompare(data),
sig
}
if (ISMiniprogram) {
wx.showNavigationBarLoading()
let header = RequestMethods === 'POST' ? {
'content-type': 'application/json'
} : {}
return new Promise((resolve, reject) => {
wx.request({
url: `${domain}${method}`,
data: obj,
method: RequestMethods,
header,
dataType: 'json',
responseType: 'text',
success ({
statusCode,
data,
errMsg
}) {
if (statusCode == '200') {
if (data.status == '1') {
resolve(data)
} else {
wx.showToast({
title: data.info,
icon: 'none'
})
}
} else {
wx.showToast({
title: errMsg,
icon: 'error'
})
}
},
fail (error) {
wx.hideLoading()
console.error(`接口异常:`, error)
wx.showToast({
title: '系统异常',
icon: 'error'
})
reject(error)
},
complete () {
wx.hideNavigationBarLoading()
}
})
})
} else {
const params = []
Object.keys(obj).map(key => {
params.push(`${key}=${encodeURIComponent(obj[key])}`)
})
return new Promise((resolve, reject) => {
window.fetch(`${domain}${method}?${params.join('&')}`, {
method: RequestMethods,
}).then(async res => {
try {
const data = await res.json()
if (data.status == '1') resolve(data)
else throw data.info
} catch (error) {
alert(error)
reject()
}
})
})
}
}
/**计算距离
* from 起始位置 [lat,lng]
* to 结束位置 [lat,lng]
* type 0:直线距离 , 1:驾车导航距离(仅支持国内坐标) , 3:步行规划距离(仅支持5km之间的距离)
*/
async calculateDistance (from, to, type = 1) {
try {
const destination = JSON.parse(JSON.stringify(from)).reverse().join(','),
origins = JSON.parse(JSON.stringify(to)).reverse().join(','),
{
results
} = await this.get('/v3/distance', {
destination,
origins,
type
}),
res = {
elements: results
}
return Promise.resolve(res)
} catch (error) {
return Promise.reject(error)
}
}
/** 批量距离计算(矩阵)
* from 起始位置 [lat,lng]
* toList 重点位置 [[lat,lng],[lat,lng]]
* type 0:直线距离 , 1:驾车导航距离(仅支持国内坐标) , 3:步行规划距离(仅支持5km之间的距离)
*/
async calculateDistanceMatrix (from, toList, type = 1) {
try {
const destination = JSON.parse(JSON.stringify(from)).reverse().join(','),
origins = JSON.parse(JSON.stringify(toList)).map(e => e = e.reverse()).join('|'),
{
results
} = await this.get('/v3/distance', {
destination,
origins,
type
}),
res = {
rows: [{
elements: results
}]
}
return Promise.resolve(res)
} catch (error) {
return Promise.reject(error)
}
}
/**地址解析(地址转坐标)
* address (String)
*/
geocoder (address) {
return this.get('/v3/geocode/geo', {
address
})
}
/**逆地址解析(坐标位置描述)
* location [lat<纬度>,lng<经度>] */
async detailedAdrress (location) {
try {
const [lat, lng] = location
const {
regeocode
} = await this.get('/v3/geocode/regeo',
{
location: JSON.parse(JSON.stringify(location)).reverse().join(',')
}), {
addressComponent,
formatted_address
} = regeocode,
address = `${addressComponent.province || ''}${addressComponent.city || ''}${addressComponent.district || ''}${addressComponent.township || ''}`,
data = {
...regeocode,
address,
formatted_addresses: {
recommend: formatted_address,
rough: formatted_address,
standard_address: formatted_address
},
address_component: {
city: addressComponent.city,
district: addressComponent.district,
nation: addressComponent.country,
province: addressComponent.province,
street: addressComponent.township
},
ad_info: {
adcode: addressComponent.adcode,
city: addressComponent.city,
city_code: addressComponent.citycode,
district: addressComponent.district,
location: {
lat,
lng
},
name: `${addressComponent.country + ',' || ''}${addressComponent.province + ',' || ''}${addressComponent.city + ',' || ''}${addressComponent.district || ''}`,
nation: addressComponent.country,
nation_code: '',
phone_area_code: addressComponent.citycode,
province: addressComponent.province
},
location: {
lat,
lng
}
}
return Promise.resolve(data)
} catch (error) {
return Promise.reject(error)
}
}
/**IP定位 */
getLocationByIp () {
return this.get('/v3/ip')
}
/**坐标转换
* locationsList:[[lat,lng],[lat,lng]] 纬度前,经度后 (最多支持40对坐标)
* coordsys 原坐标系(可选值:
gps;
mapbar;
baidu;
autonavi(不进行转换))
*
*/
translate (locationsList, coordsys = 'autonavi') {
const locations = JSON.parse(JSON.stringify(locationsList)).map(e => e = e.reverse()).join('|')
return this.get('/v3/assistant/coordinate/convert', {
locations,
coordsys
})
}
}
export default GlMap
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!