!function t(e,r,n){function o(a,s){if(!r[a]){if(!e[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(i)return i(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var f=r[a]={exports:{}};e[a][0].call(f.exports,function(t){var r=e[a][1][t];return o(r||t)},f,f.exports,t,e,r,n)}return r[a].exports}for(var i="function"==typeof require&&require,a=0;a0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===t[e-2]?2:"="===t[e-1]?1:0}function o(t){return 3*t.length/4-n(t)}function i(t){var e,r,o,i,a,s=t.length;i=n(t),a=new l(3*s/4-i),r=i>0?s-4:s;var u=0;for(e=0;e>16&255,a[u++]=o>>8&255,a[u++]=255&o;return 2===i?(o=f[t.charCodeAt(e)]<<2|f[t.charCodeAt(e+1)]>>4,a[u++]=255&o):1===i&&(o=f[t.charCodeAt(e)]<<10|f[t.charCodeAt(e+1)]<<4|f[t.charCodeAt(e+2)]>>2,a[u++]=o>>8&255,a[u++]=255&o),a}function a(t){return c[t>>18&63]+c[t>>12&63]+c[t>>6&63]+c[63&t]}function s(t,e,r){for(var n,o=[],i=e;iu?u:a+16383));return 1===n?(e=t[r-1],o+=c[e>>2],o+=c[e<<4&63],o+="=="):2===n&&(e=(t[r-2]<<8)+t[r-1],o+=c[e>>10],o+=c[e>>4&63],o+=c[e<<2&63],o+="="),i.push(o),i.join("")}r.byteLength=o,r.toByteArray=i,r.fromByteArray=u;for(var c=[],f=[],l="undefined"!=typeof Uint8Array?Uint8Array:Array,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0,d=h.length;p=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return 0|t}function g(t){return+t!=t&&(t=0),i.alloc(+t)}function y(t,e){if(i.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 r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return j(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return z(t).length;default:if(n)return j(t).length;e=(""+e).toLowerCase(),n=!0}}function b(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,e>>>=0,r<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return B(this,e,r);case"utf8":case"utf-8":return C(this,e,r);case"ascii":return D(this,e,r);case"latin1":case"binary":return R(this,e,r);case"base64":return E(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function v(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function m(t,e,r,n,o){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof e&&(e=i.from(e,n)),i.isBuffer(e))return 0===e.length?-1:w(t,e,r,n,o);if("number"==typeof e)return e&=255,i.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):w(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function w(t,e,r,n,o){function i(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}var a=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,r/=2}var c;if(o){var f=-1;for(c=r;cs&&(r=s-u),c=r;c>=0;c--){for(var l=!0,h=0;ho&&(n=o):n=o;var i=e.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var a=0;a239?4:i>223?3:i>191?2:1;if(o+s<=r){var u,c,f,l;switch(s){case 1:i<128&&(a=i);break;case 2:u=t[o+1],128==(192&u)&&(l=(31&i)<<6|63&u)>127&&(a=l);break;case 3:u=t[o+1],c=t[o+2],128==(192&u)&&128==(192&c)&&(l=(15&i)<<12|(63&u)<<6|63&c)>2047&&(l<55296||l>57343)&&(a=l);break;case 4:u=t[o+1],c=t[o+2],f=t[o+3],128==(192&u)&&128==(192&c)&&128==(192&f)&&(l=(15&i)<<18|(63&u)<<12|(63&c)<<6|63&f)>65535&&l<1114112&&(a=l)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),o+=s}return I(n)}function I(t){var e=t.length;if(e<=Q)return String.fromCharCode.apply(String,t);for(var r="",n=0;nn)&&(r=n);for(var o="",i=e;ir)throw new RangeError("Trying to access beyond buffer length")}function L(t,e,r,n,o,a){if(!i.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||et.length)throw new RangeError("Index out of range")}function k(t,e,r,n){e<0&&(e=65535+e+1);for(var o=0,i=Math.min(t.length-r,2);o>>8*(n?o:1-o)}function U(t,e,r,n){e<0&&(e=4294967295+e+1);for(var o=0,i=Math.min(t.length-r,4);o>>8*(n?o:3-o)&255}function N(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function X(t,e,r,n,o){return o||N(t,e,r,4,3.4028234663852886e38,-3.4028234663852886e38),H.write(t,e,r,n,23,4),r+4}function F(t,e,r,n,o){return o||N(t,e,r,8,1.7976931348623157e308,-1.7976931348623157e308),H.write(t,e,r,n,52,8),r+8}function Y(t){if(t=W(t).replace(tt,""),t.length<2)return"";for(;t.length%4!=0;)t+="=";return t}function W(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function G(t){return t<16?"0"+t.toString(16):t.toString(16)}function j(t,e){e=e||1/0;for(var r,n=t.length,o=null,i=[],a=0;a55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function V(t){for(var e=[],r=0;r>8,o=r%256,i.push(o),i.push(n);return i}function z(t){return q.toByteArray(Y(t))}function J(t,e,r,n){for(var o=0;o=e.length||o>=t.length);++o)e[o+r]=t[o];return o}function K(t){return t!==t}var q=t("base64-js"),H=t("ieee754"),Z=t("isarray");r.Buffer=i,r.SlowBuffer=g,r.INSPECT_MAX_BYTES=50,i.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){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(t){return!1}}(),r.kMaxLength=n(),i.poolSize=8192,i._augment=function(t){return t.__proto__=i.prototype,t},i.from=function(t,e,r){return a(null,t,e,r)},i.TYPED_ARRAY_SUPPORT&&(i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0})),i.alloc=function(t,e,r){return u(null,t,e,r)},i.allocUnsafe=function(t){return c(null,t)},i.allocUnsafeSlow=function(t){return c(null,t)},i.isBuffer=function(t){return!(null==t||!t._isBuffer)},i.compare=function(t,e){if(!i.isBuffer(t)||!i.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,o=0,a=Math.min(r,n);o0&&(t=this.toString("hex",0,e).match(/.{2}/g).join(" "),this.length>e&&(t+=" ... ")),""},i.prototype.compare=function(t,e,r,n,o){if(!i.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||r>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=r)return 0;if(n>=o)return-1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,o>>>=0,this===t)return 0;for(var a=o-n,s=r-e,u=Math.min(a,s),c=this.slice(n,o),f=t.slice(e,r),l=0;lo)&&(r=o),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return x(this,t,e,r);case"utf8":case"utf-8":return S(this,t,e,r);case"ascii":return _(this,t,e,r);case"latin1":case"binary":return A(this,t,e,r);case"base64":return P(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,e,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Q=4096;i.prototype.slice=function(t,e){var r=this.length;t=~~t,e=void 0===e?r:~~e,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),e<0?(e+=r)<0&&(e=0):e>r&&(e=r),e0&&(o*=256);)n+=this[t+--e]*o;return n},i.prototype.readUInt8=function(t,e){return e||O(t,1,this.length),this[t]},i.prototype.readUInt16LE=function(t,e){return e||O(t,2,this.length),this[t]|this[t+1]<<8},i.prototype.readUInt16BE=function(t,e){return e||O(t,2,this.length),this[t]<<8|this[t+1]},i.prototype.readUInt32LE=function(t,e){return e||O(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},i.prototype.readUInt32BE=function(t,e){return e||O(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},i.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||O(t,e,this.length);for(var n=this[t],o=1,i=0;++i=o&&(n-=Math.pow(2,8*e)),n},i.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||O(t,e,this.length);for(var n=e,o=1,i=this[t+--n];n>0&&(o*=256);)i+=this[t+--n]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*e)),i},i.prototype.readInt8=function(t,e){return e||O(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},i.prototype.readInt16LE=function(t,e){e||O(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},i.prototype.readInt16BE=function(t,e){e||O(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},i.prototype.readInt32LE=function(t,e){return e||O(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},i.prototype.readInt32BE=function(t,e){return e||O(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},i.prototype.readFloatLE=function(t,e){return e||O(t,4,this.length),H.read(this,t,!0,23,4)},i.prototype.readFloatBE=function(t,e){return e||O(t,4,this.length),H.read(this,t,!1,23,4)},i.prototype.readDoubleLE=function(t,e){return e||O(t,8,this.length),H.read(this,t,!0,52,8)},i.prototype.readDoubleBE=function(t,e){return e||O(t,8,this.length),H.read(this,t,!1,52,8)},i.prototype.writeUIntLE=function(t,e,r,n){if(t=+t,e|=0,r|=0,!n){L(this,t,e,r,Math.pow(2,8*r)-1,0)}var o=1,i=0;for(this[e]=255&t;++i=0&&(i*=256);)this[e+o]=t/i&255;return e+r},i.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,1,255,0),i.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},i.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):k(this,t,e,!0),e+2},i.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):k(this,t,e,!1),e+2},i.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):U(this,t,e,!0),e+4},i.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):U(this,t,e,!1),e+4},i.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);L(this,t,e,r,o-1,-o)}var i=0,a=1,s=0;for(this[e]=255&t;++i>0)-s&255;return e+r},i.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);L(this,t,e,r,o-1,-o)}var i=r-1,a=1,s=0;for(this[e+i]=255&t;--i>=0&&(a*=256);)t<0&&0===s&&0!==this[e+i+1]&&(s=1),this[e+i]=(t/a>>0)-s&255;return e+r},i.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,1,127,-128),i.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},i.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):k(this,t,e,!0),e+2},i.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):k(this,t,e,!1),e+2},i.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,4,2147483647,-2147483648),i.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):U(this,t,e,!0),e+4},i.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),i.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):U(this,t,e,!1),e+4},i.prototype.writeFloatLE=function(t,e,r){return X(this,t,e,!0,r)},i.prototype.writeFloatBE=function(t,e,r){return X(this,t,e,!1,r)},i.prototype.writeDoubleLE=function(t,e,r){return F(this,t,e,!0,r)},i.prototype.writeDoubleBE=function(t,e,r){return F(this,t,e,!1,r)},i.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=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-e=0;--o)t[o+e]=this[o+r];else if(a<1e3||!i.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,r=void 0===r?this.length:r>>>0,t||(t=0);var a;if("number"==typeof t)for(a=e;a>>32-e},rotr:function(t,e){return t<<32-e|t>>>e},endian:function(t){if(t.constructor==Number)return 16711935&r.rotl(t,8)|4278255360&r.rotl(t,24);for(var e=0;e0;t--)e.push(Math.floor(256*Math.random()));return e},bytesToWords:function(t){for(var e=[],r=0,n=0;r>>5]|=t[r]<<24-n%32;return e},wordsToBytes:function(t){for(var e=[],r=0;r<32*t.length;r+=8)e.push(t[r>>>5]>>>24-r%32&255);return e},bytesToHex:function(t){for(var e=[],r=0;r>>4).toString(16)),e.push((15&t[r]).toString(16));return e.join("")},hexToBytes:function(t){for(var e=[],r=0;r>>6*(3-i)&63)):r.push("=");return r.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var r=[],n=0,o=0;n>>6-2*o);return r}};e.exports=r}()},{}],5:[function(t,e,r){r.read=function(t,e,r,n,o){var i,a,s=8*o-n-1,u=(1<>1,f=-7,l=r?o-1:0,h=r?-1:1,p=t[e+l];for(l+=h,i=p&(1<<-f)-1,p>>=-f,f+=s;f>0;i=256*i+t[e+l],l+=h,f-=8);for(a=i&(1<<-f)-1,i>>=-f,f+=n;f>0;a=256*a+t[e+l],l+=h,f-=8);if(0===i)i=1-c;else{if(i===u)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),i-=c}return(p?-1:1)*a*Math.pow(2,i-n)},r.write=function(t,e,r,n,o,i){var a,s,u,c=8*i-o-1,f=(1<>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,d=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=f):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),e+=a+l>=1?h/u:h*Math.pow(2,1-l),e*u>=2&&(a++,u/=2),a+l>=f?(s=0,a=f):a+l>=1?(s=(e*u-1)*Math.pow(2,o),a+=l):(s=e*Math.pow(2,l-1)*Math.pow(2,o),a=0));o>=8;t[r+p]=255&s,p+=d,s/=256,o-=8);for(a=a<0;t[r+p]=255&a,p+=d,a/=256,c-=8);t[r+p-d]|=128*g}},{}],6:[function(t,e,r){function n(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function o(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&n(t.slice(0,0))}e.exports=function(t){return null!=t&&(n(t)||o(t)||!!t._isBuffer)}},{}],7:[function(t,e,r){var n={}.toString;e.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},{}],8:[function(t,e,r){!function(){var r=t("crypt"),n=t("charenc").utf8,o=t("is-buffer"),i=t("charenc").bin,a=function(t,e){t.constructor==String?t=e&&"binary"===e.encoding?i.stringToBytes(t):n.stringToBytes(t):o(t)?t=Array.prototype.slice.call(t,0):Array.isArray(t)||(t=t.toString());for(var s=r.bytesToWords(t),u=8*t.length,c=1732584193,f=-271733879,l=-1732584194,h=271733878,p=0;p>>24)|4278255360&(s[p]<<24|s[p]>>>8);s[u>>>5]|=128<>>9<<4)]=u;for(var d=a._ff,g=a._gg,y=a._hh,b=a._ii,p=0;p>>0,f=f+m>>>0,l=l+w>>>0,h=h+x>>>0}return r.endian([c,f,l,h])};a._ff=function(t,e,r,n,o,i,a){var s=t+(e&r|~e&n)+(o>>>0)+a;return(s<>>32-i)+e},a._gg=function(t,e,r,n,o,i,a){var s=t+(e&n|r&~n)+(o>>>0)+a;return(s<>>32-i)+e},a._hh=function(t,e,r,n,o,i,a){var s=t+(e^r^n)+(o>>>0)+a;return(s<>>32-i)+e},a._ii=function(t,e,r,n,o,i,a){var s=t+(r^(e|~n))+(o>>>0)+a;return(s<>>32-i)+e},a._blocksize=16,a._digestsize=16,e.exports=function(t,e){if(void 0===t||null===t)throw new Error("Illegal argument "+t);var n=r.wordsToBytes(a(t,e));return e&&e.asBytes?n:e&&e.asString?i.bytesToString(n):r.bytesToHex(n)}}()},{charenc:3,crypt:4,"is-buffer":6}],9:[function(t,e,r){(function(t){(function(){"use strict";function n(t){return t=String(t),t.charAt(0).toUpperCase()+t.slice(1)}function o(t,e,r){var n={"10.0":"10",6.4:"10 Technical Preview",6.3:"8.1",6.2:"8",6.1:"Server 2008 R2 / 7","6.0":"Server 2008 / Vista",5.2:"Server 2003 / XP 64-bit",5.1:"XP",5.01:"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return e&&r&&/^Win/i.test(t)&&!/^Windows Phone /i.test(t)&&(n=n[/[\d.]+$/.exec(t)])&&(t="Windows "+n),t=String(t),e&&r&&(t=t.replace(RegExp(e,"i"),r)),t=a(t.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0])}function i(t,e){var r=-1,n=t?t.length:0;if("number"==typeof n&&n>-1&&n<=w)for(;++r3&&"WebKit"||/\bOpera\b/.test(W)&&(/\bOPR\b/.test(t)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(t)&&!/^(?:Trident|EdgeHTML)$/.test(Y)&&"WebKit"||!Y&&/\bMSIE\b/i.test(t)&&("Mac OS"==V?"Tasman":"Trident")||"WebKit"==Y&&/\bPlayStation\b(?! Vita\b)/i.test(W)&&"NetFront")&&(Y=[v]),"IE"==W&&(v=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(t)||0)[1])?(W+=" Mobile",V="Windows Phone "+(/\+$/.test(v)?v:v+".x"),U.unshift("desktop mode")):/\bWPDesktop\b/i.test(t)?(W="IE Mobile",V="Windows Phone 8.x",U.unshift("desktop mode"),F||(F=(/\brv:([\d.]+)/.exec(t)||0)[1])):"IE"!=W&&"Trident"==Y&&(v=/\brv:([\d.]+)/.exec(t))&&(W&&U.push("identifying as "+W+(F?" "+F:"")),W="IE",F=v[1]),X){if(c(n,"global"))if(I&&(v=I.lang.System,k=v.getProperty("os.arch"),V=V||v.getProperty("os.name")+" "+v.getProperty("os.version")),w&&c(n,"system")&&(v=[n.system])[0]){V||(V=v[0].os||null);try{v[1]=n.require("ringo/engine").version,F=v[1].join("."),W="RingoJS"}catch(t){v[0].global.system==n.system&&(W="Narwhal")}}else"object"==typeof n.process&&!n.process.browser&&(v=n.process)?"object"==typeof v.versions?"string"==typeof v.versions.electron?(U.push("Node "+v.versions.node),W="Electron",F=v.versions.electron):"string"==typeof v.versions.nw&&(U.push("Chromium "+F,"Node "+v.versions.node),W="NW.js",F=v.versions.nw):(W="Node.js",k=v.arch,V=v.platform,F=/[\d.]+/.exec(v.version),F=F?F[0]:"unknown"):D&&(W="Rhino");else u(v=n.runtime)==A?(W="Adobe AIR",V=v.flash.system.Capabilities.os):u(v=n.phantom)==C?(W="PhantomJS",F=(v=v.version||null)&&v.major+"."+v.minor+"."+v.patch):"number"==typeof M.documentMode&&(v=/\bTrident\/(\d+)/i.exec(t))?(F=[F,M.documentMode],(v=+v[1]+4)!=F[1]&&(U.push("IE "+F[1]+" mode"),Y&&(Y[1]=""),F[1]=v),F="IE"==W?String(F[1].toFixed(1)):F[0]):"number"==typeof M.documentMode&&/^(?:Chrome|Firefox)\b/.test(W)&&(U.push("masking as "+W+" "+F),W="IE",F="11.0",Y=["Trident"],V="Windows");V=V&&a(V)}if(F&&(v=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(F)||/(?:alpha|beta)(?: ?\d)?/i.exec(t+";"+(X&&d.appMinorVersion))||/\bMinefield\b/i.test(t)&&"a")&&(N=/b/i.test(v)?"beta":"alpha",F=F.replace(RegExp(v+"\\+?$"),"")+("beta"==N?B:R)+(/\d+\+?/.exec(v)||"")),"Fennec"==W||"Firefox"==W&&/\b(?:Android|Firefox OS)\b/.test(V))W="Firefox Mobile";else if("Maxthon"==W&&F)F=F.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(G))"Xbox 360"==G&&(V=null),"Xbox 360"==G&&/\bIEMobile\b/.test(t)&&U.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(W)&&(!W||G||/Browser|Mobi/.test(W))||"Windows CE"!=V&&!/Mobi/i.test(t))if("IE"==W&&X)try{null===n.external&&U.unshift("platform preview")}catch(t){U.unshift("embedded")}else(/\bBlackBerry\b/.test(G)||/\bBB10\b/.test(t))&&(v=(RegExp(G.replace(/ +/g," *")+"/([.\\d]+)","i").exec(t)||0)[1]||F)?(v=[v,/BB10/.test(t)],V=(v[1]?(G=null,j="BlackBerry"):"Device Software")+" "+v[0],F=null):this!=s&&"Wii"!=G&&(X&&O||/Opera/.test(W)&&/\b(?:MSIE|Firefox)\b/i.test(t)||"Firefox"==W&&/\bOS X (?:\d+\.){2,}/.test(V)||"IE"==W&&(V&&!/^Win/.test(V)&&F>5.5||/\bWindows XP\b/.test(V)&&F>8||8==F&&!/\bTrident\b/.test(t)))&&!x.test(v=p.call(s,t.replace(x,"")+";"))&&v.name&&(v="ing as "+v.name+((v=v.version)?" "+v:""),x.test(W)?(/\bIE\b/.test(v)&&"Mac OS"==V&&(V=null),v="identify"+v):(v="mask"+v,W=L?a(L.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(v)&&(V=null),X||(F=null)),Y=["Presto"],U.push(v));else W+=" Mobile";(v=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(t)||0)[1])&&(v=[parseFloat(v.replace(/\.(\d)$/,".0$1")),v],"Safari"==W&&"+"==v[1].slice(-1)?(W="WebKit Nightly",N="alpha",F=v[1].slice(0,-1)):F!=v[1]&&F!=(v[2]=(/\bSafari\/([\d.]+\+?)/i.exec(t)||0)[1])||(F=null),v[1]=(/\bChrome\/([\d.]+)/i.exec(t)||0)[1],537.36==v[0]&&537.36==v[2]&&parseFloat(v[1])>=28&&"WebKit"==Y&&(Y=["Blink"]),X&&(_||v[1])?(Y&&(Y[1]="like Chrome"),v=v[1]||(v=v[0],v<530?1:v<532?2:v<532.05?3:v<533?4:v<534.03?5:v<534.07?6:v<534.1?7:v<534.13?8:v<534.16?9:v<534.24?10:v<534.3?11:v<535.01?12:v<535.02?"13+":v<535.07?15:v<535.11?16:v<535.19?17:v<536.05?18:v<536.1?19:v<537.01?20:v<537.11?"21+":v<537.13?23:v<537.18?24:v<537.24?25:v<537.36?26:"Blink"!=Y?"27":"28")):(Y&&(Y[1]="like Safari"),v=v[0],v=v<400?1:v<500?2:v<526?3:v<533?4:v<534?"4+":v<535?5:v<537?6:v<538?7:v<601?8:"8"),Y&&(Y[1]+=" "+(v+="number"==typeof v?".x":/[.+]/.test(v)?"":"+")),"Safari"==W&&(!F||parseInt(F)>45)&&(F=v)),"Opera"==W&&(v=/\bzbov|zvav$/.exec(V))?(W+=" ",U.unshift("desktop mode"),"zvav"==v?(W+="Mini",F=null):W+="Mobile",V=V.replace(RegExp(" *"+v+"$"),"")):"Safari"==W&&/\bChrome\b/.exec(Y&&Y[1])&&(U.unshift("desktop mode"),W="Chrome Mobile",F=null,/\bOS X\b/.test(V)?(j="Apple",V="iOS 4.3+"):V=null),F&&0==F.indexOf(v=/[\d.]+$/.exec(V))&&t.indexOf("/"+v+"-")>-1&&(V=h(V.replace(v,""))),Y&&!/\b(?:Avant|Nook)\b/.test(W)&&(/Browser|Lunascape|Maxthon/.test(W)||"Safari"!=W&&/^iOS/.test(V)&&/\bSafari\b/.test(Y[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(W)&&Y[1])&&(v=Y[Y.length-1])&&U.push(v),U.length&&(U=["("+U.join("; ")+")"]),j&&G&&G.indexOf(j)<0&&U.push("on "+j),G&&U.push((/^on /.test(U[U.length-1])?"":"on ")+G),V&&(v=/ ([\d.+]+)$/.exec(V),m=v&&"/"==V.charAt(V.length-v[0].length-1),V={architecture:32,family:v&&!m?V.replace(v[0],""):V,version:v?v[1]:null,toString:function(){var t=this.version;return this.family+(t&&!m?" "+t:"")+(64==this.architecture?" 64-bit":"")}}),(v=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(k))&&!/\bi686\b/i.test(k)?(V&&(V.architecture=64,V.family=V.family.replace(RegExp(" *"+v),"")),W&&(/\bWOW64\b/i.test(t)||X&&/\w(?:86|32)$/.test(d.cpuClass||d.platform)&&!/\bWin64; x64\b/i.test(t))&&U.unshift("32-bit")):V&&/^OS X/.test(V.family)&&"Chrome"==W&&parseFloat(F)>=39&&(V.architecture=64),t||(t=null);var $={};return $.description=t,$.layout=Y&&Y[0],$.manufacturer=j,$.name=W,$.prerelease=N,$.product=G,$.ua=t,$.version=W&&F,$.os=V||{architecture:null,family:null,version:null,toString:function(){return"null"}},$.parse=p,$.toString=r,$.version&&U.unshift(F),$.name&&U.unshift(W),V&&W&&(V!=String(V).split(" ")[0]||V!=W.split(" ")[0]&&!G)&&U.push(G?"("+V+")":"on "+V),U.length&&($.description=U.join(" ")),$}var d={function:!0,object:!0},g=d[typeof window]&&window||this,y=g,b=d[typeof r]&&r,v=d[typeof e]&&e&&!e.nodeType&&e,m=b&&v&&"object"==typeof t&&t;!m||m.global!==m&&m.window!==m&&m.self!==m||(g=m);var w=Math.pow(2,53)-1,x=/\bOpera/,S=this,_=Object.prototype,A=_.hasOwnProperty,P=_.toString,T=p();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(g.platform=T,define(function(){return T})):b&&v?s(T,function(t,e){b[e]=t}):g.platform=T}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],10:[function(t,e,r){function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function i(t){if(l===setTimeout)return setTimeout(t,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(t,0);try{return l(t,0)}catch(e){try{return l.call(null,t,0)}catch(e){return l.call(this,t,0)}}}function a(t){if(h===clearTimeout)return clearTimeout(t);if((h===o||!h)&&clearTimeout)return h=clearTimeout,clearTimeout(t);try{return h(t)}catch(e){try{return h.call(null,t)}catch(e){return h.call(this,t)}}}function s(){y&&d&&(y=!1,d.length?g=d.concat(g):b=-1,g.length&&u())}function u(){if(!y){var t=i(s);y=!0;for(var e=g.length;e;){for(d=g,g=[];++b1)for(var r=1;r>5]|=128<<24-i%32,e[15+(i+64>>>9<<4)]=i;for(var h=0;h>>31}var w=(s<<5|s>>>27)+l+(a[v]>>>0)+(v<20?1518500249+(u&c|~u&f):v<40?1859775393+(u^c^f):v<60?(u&c|u&f|c&f)-1894007588:(u^c^f)-899497514);l=f,f=c,c=u<<30|u>>>2,u=s,s=w}s+=p,u+=d,c+=g,f+=y,l+=b}return[s,u,c,f,l]},s=function(t,e){var r=n.wordsToBytes(a(t));return e&&e.asBytes?r:e&&e.asString?i.bytesToString(r):n.bytesToHex(r)};s._blocksize=16,s._digestsize=20,e.exports=s}()}).call(this,t("buffer").Buffer)},{buffer:2,charenc:3,crypt:4}],12:[function(t,e,r){"use strict";var n=function(t){t.extends(this)};n.prototype={loginStart:function(){var t=this._generatePostData({category:"account",action:"start"});this._upload(t)},loginSuccess:function(t){if(!t||!t.userID)return void console.log("userID 不能为空!");this.data.userID=t.userID,this._addLocalStorage("_UID_"+this.data.appID,this.data.userID);var e=this._generatePostData({category:"account",action:"success"});this._upload(e)},loginFailed:function(){var t=this._generatePostData({category:"account",action:"failure"});this._upload(t)},logout:function(){var t=this._generatePostData({category:"account",action:"logout"});this._upload(t)},setAccountType:function(t){var e=this._generatePostData({category:"account",action:"setType",accountType:t});this._upload(e)},setAge:function(t){var e=this._generatePostData({category:"account",action:"setAge",age:t});this._upload(e)},setGender:function(t){if(0!=t&&1!=t&&2!=t)return void console.log("gender 为 int 类型:0 未知、1 男性、 2 女性");var e=this._generatePostData({category:"account",action:"setGender",gender:t});this._upload(e)},createRole:function(t){var e={};t.roleID&&(e.roleID=t.roleID),t.userName&&(e.userName=t.userName),t.race&&(e.race=t.race),t.class&&(e.class=t.class),t.gameServer&&(e.gameServer=t.gameServer);var r=this._generatePostData({category:"createRole",role:e});this._upload(r)},setLevel:function(t){var e=this._generatePostData({category:"account",action:"setLevel",level:t});this._upload(e)}},e.exports=n},{}],13:[function(t,e,r){(function(n,o){!function(t,i,a){"use strict";var s={function:!0,object:!0},u=s[typeof window]&&window||this,c=s[typeof r]&&r,f=s[typeof e]&&e&&!e.nodeType&&e,l=c&&f&&"object"==typeof o&&o;!l||l.global!==l&&l.window!==l&&l.self!==l||(u=l),"function"==typeof define&&"object"==typeof define.amd&&define.amd?(n.env.NODE_ENV="development",define(a),u[t]=a()):c&&f?(e.exports=a(),u[t]=a()):u[t]=a()}("cocosAnalytics",window,function(){return t(window.CC_JSB?"./nativeCocosAnalytics":"./h5CocosAnalytics")})}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./h5CocosAnalytics":16,"./nativeCocosAnalytics":19,_process:10}],14:[function(t,e,r){(function(r){"use strict";var n=t("sha1"),o={x64Add:function(t,e){t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]],e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]];var r=[0,0,0,0];return r[3]+=t[3]+e[3],r[2]+=r[3]>>>16,r[3]&=65535,r[2]+=t[2]+e[2],r[1]+=r[2]>>>16,r[2]&=65535,r[1]+=t[1]+e[1],r[0]+=r[1]>>>16,r[1]&=65535,r[0]+=t[0]+e[0],r[0]&=65535,[r[0]<<16|r[1],r[2]<<16|r[3]]},x64Multiply:function(t,e){t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]],e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]];var r=[0,0,0,0];return r[3]+=t[3]*e[3],r[2]+=r[3]>>>16,r[3]&=65535,r[2]+=t[2]*e[3],r[1]+=r[2]>>>16,r[2]&=65535,r[2]+=t[3]*e[2],r[1]+=r[2]>>>16,r[2]&=65535,r[1]+=t[1]*e[3],r[0]+=r[1]>>>16,r[1]&=65535,r[1]+=t[2]*e[2],r[0]+=r[1]>>>16,r[1]&=65535,r[1]+=t[3]*e[1],r[0]+=r[1]>>>16,r[1]&=65535,r[0]+=t[0]*e[3]+t[1]*e[2]+t[2]*e[1]+t[3]*e[0],r[0]&=65535,[r[0]<<16|r[1],r[2]<<16|r[3]]},x64Rotl:function(t,e){return e%=64,32===e?[t[1],t[0]]:e<32?[t[0]<>>32-e,t[1]<>>32-e]:(e-=32,[t[1]<>>32-e,t[0]<>>32-e])},x64LeftShift:function(t,e){return e%=64,0===e?t:e<32?[t[0]<>>32-e,t[1]<>>1]),t=this.x64Multiply(t,[4283543511,3981806797]),t=this.x64Xor(t,[0,t[0]>>>1]),t=this.x64Multiply(t,[3301882366,444984403]),t=this.x64Xor(t,[0,t[0]>>>1])},x64hash128:function(t,e){t=t||"0",e=e||0;for(var r=t.length%16,n=t.length-r,o=[0,e],i=[0,e],a=[0,0],s=[0,0],u=[2277735313,289559509],c=[1291169091,658871167],f=0;f>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)+("00000000"+(i[0]>>>0).toString(16)).slice(-8)+("00000000"+(i[1]>>>0).toString(16)).slice(-8)},random32Str:function(){var t,e,r,n=Date.now().toString(32).toUpperCase();return t=Date.now(),e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",r=e.replace(/[xy]/g,function(e){var r;return r=(t+16*Math.random())%16|0,t=Math.floor(t/16),"x"===e?r.toString(16):(7&r|8).toString(16)}),(n||"")+r.replace(/-/g,"").toUpperCase()},encryptPostData:function(t,e){var o=new r(t).toString("base64");return n(o+e).substr(0,32)+o}};e.exports=o}).call(this,t("buffer").Buffer)},{buffer:2,sha1:11}],15:[function(t,e,r){"use strict";var n=function(t){t.extends(this)};n.prototype={onEvent:function(t){if(!t||!t.eventName)return void console.log("eventName 不能为空!");var e=this._generatePostData({category:"event",action:"success",eventName:t.eventName});this._upload(e)},onEventStart:function(t){if(!t||!t.eventName)return void console.log("eventName 不能为空!");var e=this._generatePostData({category:"event",action:"start",eventName:t.eventName});this._upload(e)},onEventEnd:function(t){if(!t||!t.eventName)return void console.log("eventName 不能为空!");var e=this._generatePostData({category:"event",action:"end",eventName:t.eventName});this._upload(e)}},e.exports=n},{}],16:[function(t,e,r){(function(r){"use strict";var n=t("./encrypt"),o=t("platform"),i=t("md5"),a=t("./account"),s=t("./event"),u=t("./payment"),c=t("./levels"),f=t("./task"),l=t("./item"),h=t("./virtual"),p=t("./taskType"),d={data:{msgPool:[],apiURL:"https://reportlog.cocos.com",versionCode:2},browserVersion:void 0,isActive:!0,isShowLog:!1,init:function(t){if(!t.appID)return void console.log("appID 不能为空!");if(this.data.appID=t.appID,!t.appSecret)return void console.log("appSecret 不能为空!");this.data.appSecret=t.appSecret,t.channel&&(this.data.channel=t.channel),this.data.resolution=this._getScreenResolution(),this.data.CCID=this._getCCID(),this.data.userID=this._getLocalStorage("_UID_"+this.data.appID),this.data.sessionID=i(this.data.CCID+((new Date).getTime()+""));var e=this._generatePostData({type:"game",category:"init",resolution:this.data.resolution,osVersion:o.os.version,language:this._getLanguage(),manufacturer:o.manufacturer,model:o.product,appVersion:t.version,appBuild:t.build,browserVersion:this._getBrowserVersion()});this.data.isInit=!0,this._upload(e),this.CAAccount=new a(this),this.CAEvent=new s(this),this.CAPayment=new u(this),this.CALevels=new c(this),this.CATask=new f(this),this.CAItem=new l(this),this.CAVirtual=new h(this),this.CATaskType=new p(this),this._runInterval(),this._bindPageVisibilityEvent()},onPause:function(){this.isActive=!1,this.data.end=((new Date).getTime()+"").substr(0,10);var t=this.data.end-this.data.start;this.log("duration..."+t+"s");var e=this._generatePostData({category:"view",action:"background",start:this.data.start,end:this.data.end});this._upload(e)},onResume:function(){(this.isActive=!0,this.data.start=((new Date).getTime()+"").substr(0,10),this.data.end)&&(this.data.start-this.data.end>3600&&(this.data.sessionID=i(this.data.CCID+((new Date).getTime()+""))))},enableDebug:function(t){this.isShowLog=t},_runInterval:function(){var t=this;setInterval(function(){t.log("cocos analytics check and upload log...");for(var e=t._getLocalStorage("_MSG_"+t.data.appID),r=JSON.parse(e)||t.data.msgPool;0!==r.length;)if(r.length<=100)t._submit(r),r=[],t.data.msgPool=r,t._addLocalStorage("_MSG_"+t.data.appID,t._toJson(t.data.msgPool));else{var n=r.splice(0,100);t._submit(n),t.data.msgPool=r,t._addLocalStorage("_MSG_"+t.data.appID,t._toJson(t.data.msgPool))}},3e4),setInterval(function(){if(t.isActive){t.log("send heartbeat event");var e=t._generatePostData({category:"heartbeat"});t._upload(e)}},6e4)},_bindPageVisibilityEvent:function(){function t(){var t=document.visibilityState;"visible"===t&&r.onResume(),"hidden"===t&&r.onPause()}var e="hidden";e in document?document.addEventListener("visibilitychange",t):(e="mozHidden")in document?document.addEventListener("mozvisibilitychange",t):(e="webkitHidden")in document?document.addEventListener("webkitvisibilitychange",t):(e="msHidden")in document?document.addEventListener("msvisibilitychange",t):"onfocusin"in document?document.onfocusin=document.onfocusout=t:window.onpageshow=window.onpagehide=window.onfocus=window.onblur=t;var r=this;void 0!==document[e]&&t()},_generatePostData:function(t){var e=this._generateBasePostData();if(null==t)return e;for(var r in t)null!=t[r]&&e[r]!==t[r]&&(e[r]=t[r]);return e},_generateBasePostData:function(){var t=((new Date).getTime()+"").substr(0,10);return{versionCode:this.data.versionCode,appID:this.data.appID,channelID:this.data.channel,platform:o.os.family,engine:"h5",tsClient:t,CCID:this.data.CCID,sessionID:this.data.sessionID,userID:this.data.userID}},_toJson:function(t){return JSON.stringify(t)},_fromJson:function(t){return JSON.parse(t)},_upload:function(t){if(!this.data.isInit)return void console.log("Please init first!");var e=[t];this._submit(e)},log:function(){if("development"===r.env.NODE_ENV||!0===this.isShowLog)for(var t in arguments)console.log(arguments[t])},_submit:function(t){var e;e=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");var r=this;e.onreadystatechange=function(){if(4==e.readyState)if(200==e.status){var n=JSON.parse(e.responseText);n&&"0"===n.status?r.log("resp success:",r._toJson(t),n):r.log("resp error:",r._toJson(t),n)}else r.log("Problem retrieving data:",r._toJson(t),e.status),r._msgPersist(t)},e.open("POST",this.data.apiURL,!0),e.setRequestHeader("Content-Type","application/x-www-form-urlencoded;");var o=n.encryptPostData(this._toJson(t),this.data.appSecret);e.send(o)},_msgPersist:function(t){for(var e=0;e