Files
peko-h5/view/peko/modules/myincome/static/js/2.17debe0f6011a97521e8.js
2024-03-20 21:15:55 +08:00

2 lines
78 KiB
JavaScript

webpackJsonp([2],{"1nuA":function(t,e,n){"use strict";e.decode=e.parse=n("kMPS"),e.encode=e.stringify=n("xaZU")},"1yzm":function(t,e){},JSQk:function(t,e,n){var i;i=function(t){"use strict";var e=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function n(t,e){var n=t[0],i=t[1],r=t[2],o=t[3];i=((i+=((r=((r+=((o=((o+=((n=((n+=(i&r|~i&o)+e[0]-680876936|0)<<7|n>>>25)+i|0)&i|~n&r)+e[1]-389564586|0)<<12|o>>>20)+n|0)&n|~o&i)+e[2]+606105819|0)<<17|r>>>15)+o|0)&o|~r&n)+e[3]-1044525330|0)<<22|i>>>10)+r|0,i=((i+=((r=((r+=((o=((o+=((n=((n+=(i&r|~i&o)+e[4]-176418897|0)<<7|n>>>25)+i|0)&i|~n&r)+e[5]+1200080426|0)<<12|o>>>20)+n|0)&n|~o&i)+e[6]-1473231341|0)<<17|r>>>15)+o|0)&o|~r&n)+e[7]-45705983|0)<<22|i>>>10)+r|0,i=((i+=((r=((r+=((o=((o+=((n=((n+=(i&r|~i&o)+e[8]+1770035416|0)<<7|n>>>25)+i|0)&i|~n&r)+e[9]-1958414417|0)<<12|o>>>20)+n|0)&n|~o&i)+e[10]-42063|0)<<17|r>>>15)+o|0)&o|~r&n)+e[11]-1990404162|0)<<22|i>>>10)+r|0,i=((i+=((r=((r+=((o=((o+=((n=((n+=(i&r|~i&o)+e[12]+1804603682|0)<<7|n>>>25)+i|0)&i|~n&r)+e[13]-40341101|0)<<12|o>>>20)+n|0)&n|~o&i)+e[14]-1502002290|0)<<17|r>>>15)+o|0)&o|~r&n)+e[15]+1236535329|0)<<22|i>>>10)+r|0,i=((i+=((r=((r+=((o=((o+=((n=((n+=(i&o|r&~o)+e[1]-165796510|0)<<5|n>>>27)+i|0)&r|i&~r)+e[6]-1069501632|0)<<9|o>>>23)+n|0)&i|n&~i)+e[11]+643717713|0)<<14|r>>>18)+o|0)&n|o&~n)+e[0]-373897302|0)<<20|i>>>12)+r|0,i=((i+=((r=((r+=((o=((o+=((n=((n+=(i&o|r&~o)+e[5]-701558691|0)<<5|n>>>27)+i|0)&r|i&~r)+e[10]+38016083|0)<<9|o>>>23)+n|0)&i|n&~i)+e[15]-660478335|0)<<14|r>>>18)+o|0)&n|o&~n)+e[4]-405537848|0)<<20|i>>>12)+r|0,i=((i+=((r=((r+=((o=((o+=((n=((n+=(i&o|r&~o)+e[9]+568446438|0)<<5|n>>>27)+i|0)&r|i&~r)+e[14]-1019803690|0)<<9|o>>>23)+n|0)&i|n&~i)+e[3]-187363961|0)<<14|r>>>18)+o|0)&n|o&~n)+e[8]+1163531501|0)<<20|i>>>12)+r|0,i=((i+=((r=((r+=((o=((o+=((n=((n+=(i&o|r&~o)+e[13]-1444681467|0)<<5|n>>>27)+i|0)&r|i&~r)+e[2]-51403784|0)<<9|o>>>23)+n|0)&i|n&~i)+e[7]+1735328473|0)<<14|r>>>18)+o|0)&n|o&~n)+e[12]-1926607734|0)<<20|i>>>12)+r|0,i=((i+=((r=((r+=((o=((o+=((n=((n+=(i^r^o)+e[5]-378558|0)<<4|n>>>28)+i|0)^i^r)+e[8]-2022574463|0)<<11|o>>>21)+n|0)^n^i)+e[11]+1839030562|0)<<16|r>>>16)+o|0)^o^n)+e[14]-35309556|0)<<23|i>>>9)+r|0,i=((i+=((r=((r+=((o=((o+=((n=((n+=(i^r^o)+e[1]-1530992060|0)<<4|n>>>28)+i|0)^i^r)+e[4]+1272893353|0)<<11|o>>>21)+n|0)^n^i)+e[7]-155497632|0)<<16|r>>>16)+o|0)^o^n)+e[10]-1094730640|0)<<23|i>>>9)+r|0,i=((i+=((r=((r+=((o=((o+=((n=((n+=(i^r^o)+e[13]+681279174|0)<<4|n>>>28)+i|0)^i^r)+e[0]-358537222|0)<<11|o>>>21)+n|0)^n^i)+e[3]-722521979|0)<<16|r>>>16)+o|0)^o^n)+e[6]+76029189|0)<<23|i>>>9)+r|0,i=((i+=((r=((r+=((o=((o+=((n=((n+=(i^r^o)+e[9]-640364487|0)<<4|n>>>28)+i|0)^i^r)+e[12]-421815835|0)<<11|o>>>21)+n|0)^n^i)+e[15]+530742520|0)<<16|r>>>16)+o|0)^o^n)+e[2]-995338651|0)<<23|i>>>9)+r|0,i=((i+=((o=((o+=(i^((n=((n+=(r^(i|~o))+e[0]-198630844|0)<<6|n>>>26)+i|0)|~r))+e[7]+1126891415|0)<<10|o>>>22)+n|0)^((r=((r+=(n^(o|~i))+e[14]-1416354905|0)<<15|r>>>17)+o|0)|~n))+e[5]-57434055|0)<<21|i>>>11)+r|0,i=((i+=((o=((o+=(i^((n=((n+=(r^(i|~o))+e[12]+1700485571|0)<<6|n>>>26)+i|0)|~r))+e[3]-1894986606|0)<<10|o>>>22)+n|0)^((r=((r+=(n^(o|~i))+e[10]-1051523|0)<<15|r>>>17)+o|0)|~n))+e[1]-2054922799|0)<<21|i>>>11)+r|0,i=((i+=((o=((o+=(i^((n=((n+=(r^(i|~o))+e[8]+1873313359|0)<<6|n>>>26)+i|0)|~r))+e[15]-30611744|0)<<10|o>>>22)+n|0)^((r=((r+=(n^(o|~i))+e[6]-1560198380|0)<<15|r>>>17)+o|0)|~n))+e[13]+1309151649|0)<<21|i>>>11)+r|0,i=((i+=((o=((o+=(i^((n=((n+=(r^(i|~o))+e[4]-145523070|0)<<6|n>>>26)+i|0)|~r))+e[11]-1120210379|0)<<10|o>>>22)+n|0)^((r=((r+=(n^(o|~i))+e[2]+718787259|0)<<15|r>>>17)+o|0)|~n))+e[9]-343485551|0)<<21|i>>>11)+r|0,t[0]=n+t[0]|0,t[1]=i+t[1]|0,t[2]=r+t[2]|0,t[3]=o+t[3]|0}function i(t){var e,n=[];for(e=0;e<64;e+=4)n[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return n}function r(t){var e,n=[];for(e=0;e<64;e+=4)n[e>>2]=t[e]+(t[e+1]<<8)+(t[e+2]<<16)+(t[e+3]<<24);return n}function o(t){var e,r,o,a,s,u,c=t.length,h=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=c;e+=64)n(h,i(t.substring(e-64,e)));for(r=(t=t.substring(e-64)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e=0;e<r;e+=1)o[e>>2]|=t.charCodeAt(e)<<(e%4<<3);if(o[e>>2]|=128<<(e%4<<3),e>55)for(n(h,o),e=0;e<16;e+=1)o[e]=0;return a=(a=8*c).toString(16).match(/(.*?)(.{0,8})$/),s=parseInt(a[2],16),u=parseInt(a[1],16)||0,o[14]=s,o[15]=u,n(h,o),h}function a(t){var n,i="";for(n=0;n<4;n+=1)i+=e[t>>8*n+4&15]+e[t>>8*n&15];return i}function s(t){var e;for(e=0;e<t.length;e+=1)t[e]=a(t[e]);return t.join("")}function u(t){return/[\u0080-\uFFFF]/.test(t)&&(t=unescape(encodeURIComponent(t))),t}function c(t){var e,n=[],i=t.length;for(e=0;e<i-1;e+=2)n.push(parseInt(t.substr(e,2),16));return String.fromCharCode.apply(String,n)}function h(){this.reset()}return"5d41402abc4b2a76b9719d911017c592"!==s(o("hello"))&&function(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n},"undefined"==typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function e(t,e){return(t=0|t||0)<0?Math.max(t+e,0):Math.min(t,e)}ArrayBuffer.prototype.slice=function(n,i){var r,o,a,s,u=this.byteLength,c=e(n,u),h=u;return i!==t&&(h=e(i,u)),c>h?new ArrayBuffer(0):(r=h-c,o=new ArrayBuffer(r),a=new Uint8Array(o),s=new Uint8Array(this,c,r),a.set(s),o)}}(),h.prototype.append=function(t){return this.appendBinary(u(t)),this},h.prototype.appendBinary=function(t){this._buff+=t,this._length+=t.length;var e,r=this._buff.length;for(e=64;e<=r;e+=64)n(this._hash,i(this._buff.substring(e-64,e)));return this._buff=this._buff.substring(e-64),this},h.prototype.end=function(t){var e,n,i=this._buff,r=i.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<r;e+=1)o[e>>2]|=i.charCodeAt(e)<<(e%4<<3);return this._finish(o,r),n=s(this._hash),t&&(n=c(n)),this.reset(),n},h.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},h.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},h.prototype.setState=function(t){return this._buff=t.buff,this._length=t.length,this._hash=t.hash,this},h.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},h.prototype._finish=function(t,e){var i,r,o,a=e;if(t[a>>2]|=128<<(a%4<<3),a>55)for(n(this._hash,t),a=0;a<16;a+=1)t[a]=0;i=(i=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),r=parseInt(i[2],16),o=parseInt(i[1],16)||0,t[14]=r,t[15]=o,n(this._hash,t)},h.hash=function(t,e){return h.hashBinary(u(t),e)},h.hashBinary=function(t,e){var n=s(o(t));return e?c(n):n},h.ArrayBuffer=function(){this.reset()},h.ArrayBuffer.prototype.append=function(t){var e,i,o,a,s,u=(i=this._buff.buffer,o=t,a=!0,(s=new Uint8Array(i.byteLength+o.byteLength)).set(new Uint8Array(i)),s.set(new Uint8Array(o),i.byteLength),a?s:s.buffer),c=u.length;for(this._length+=t.byteLength,e=64;e<=c;e+=64)n(this._hash,r(u.subarray(e-64,e)));return this._buff=e-64<c?new Uint8Array(u.buffer.slice(e-64)):new Uint8Array(0),this},h.ArrayBuffer.prototype.end=function(t){var e,n,i=this._buff,r=i.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<r;e+=1)o[e>>2]|=i[e]<<(e%4<<3);return this._finish(o,r),n=s(this._hash),t&&(n=c(n)),this.reset(),n},h.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},h.ArrayBuffer.prototype.getState=function(){var t,e=h.prototype.getState.call(this);return e.buff=(t=e.buff,String.fromCharCode.apply(null,new Uint8Array(t))),e},h.ArrayBuffer.prototype.setState=function(t){return t.buff=function(t,e){var n,i=t.length,r=new ArrayBuffer(i),o=new Uint8Array(r);for(n=0;n<i;n+=1)o[n]=t.charCodeAt(n);return e?o:r}(t.buff,!0),h.prototype.setState.call(this,t)},h.ArrayBuffer.prototype.destroy=h.prototype.destroy,h.ArrayBuffer.prototype._finish=h.prototype._finish,h.ArrayBuffer.hash=function(t,e){var i=s(function(t){var e,i,o,a,s,u,c=t.length,h=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=c;e+=64)n(h,r(t.subarray(e-64,e)));for(i=(t=e-64<c?t.subarray(e-64):new Uint8Array(0)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e=0;e<i;e+=1)o[e>>2]|=t[e]<<(e%4<<3);if(o[e>>2]|=128<<(e%4<<3),e>55)for(n(h,o),e=0;e<16;e+=1)o[e]=0;return a=(a=8*c).toString(16).match(/(.*?)(.{0,8})$/),s=parseInt(a[2],16),u=parseInt(a[1],16)||0,o[14]=s,o[15]=u,n(h,o),h}(new Uint8Array(t)));return e?c(i):i},h},t.exports=i()},KdkX:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATwAAADICAYAAAB1cV29AAAAAXNSR0IArs4c6QAAHv5JREFUeF7tnQl0FFXWx29V791JZycrCUkg7AKCiIAzIqg4oDgiLp/iOt+Mo47L6Lg7m+M+4zoun7uMjAsHXEBRWUZxQQSFYQ0EkjTZV9Jb0mvVdyoBQQjp6u7q6q6uf53j0Zl+7757f/flf17V2xgiIp7nS4joZiKaQkQW4f/DAwIgAAJJQMBNRN8S0ZMMw9iYg2K3mIisSRAcQgABEACB/gg4iOhSQfCeIKKZYAQCIAACSU5gjSB46/Eam+Rp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A4KEPgAAIqIYABE81qUagIAACEDz0ARAAAdUQgOCpJtUIFARAAIKHPgACIKAaAhA81aQagYIACEDw0AdAAARUQwCCp5pUI1AQAAEIHvoACICAaghA8FSTagQKAiAAwUMfAAEQUA0BCJ5qUo1AQQAEIHjoAyAAAqohAMFTTaoRKAiAAAQPfQAEQEA1BCB4qkk1AgUBEIDgoQ+AAAiohgAETzWpRqAgAAIQPPQBEAAB1RCA4Kkm1QgUBEAAgoc+AAIgoBoCEDzVpBqBggAIQPDQB0AABFRDAIKnmlQjUBAAAQge+gAIgIBqCEDwVJNqBAoCIADBQx8AARBQDQEInmpSjUBBAAQgeOgDIAACqiEAwVNNqhEoCIAABA99AARAQDUEIHiqSTUCBQEQgOChD4AACKiGAARPNalGoCAAAhA89AEQAAHVEIDgqSbVCBQEQEAQvPVEZAEKEAABEEhyAm5B8J4goplJHijCAwEQAIE1guCVENFiIrKCBwiAAAgkKQEHEV3KCMEdFL2biWgKXm+TNN0ICwTUScBNRN8S0ZMMw9j+H2Hh5JX7JAxQAAAAAElFTkSuQmCC"},Vj3e:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r,o=n("mvHQ"),a=n.n(o),s=n("+EAh"),u=n("hff3"),c=(n("X2Oc"),n("Fd2+")),h=n("KTi7"),l=(n("QLzJ"),n("Z4iZ"),this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}));!function(t){t.InvalidFile="InvalidFile",t.InvalidToken="InvalidToken",t.InvalidMetadata="InvalidMetadata",t.InvalidChunkSize="InvalidChunkSize",t.InvalidCustomVars="InvalidCustomVars",t.NotAvailableUploadHost="NotAvailableUploadHost",t.ReadCacheFailed="ReadCacheFailed",t.InvalidCacheData="InvalidCacheData",t.WriteCacheFailed="WriteCacheFailed",t.RemoveCacheFailed="RemoveCacheFailed",t.GetCanvasContextFailed="GetCanvasContextFailed",t.UnsupportedFileType="UnsupportedFileType",t.FileReaderReadFailed="FileReaderReadFailed",t.NotAvailableXMLHttpRequest="NotAvailableXMLHttpRequest",t.InvalidProgressEventTarget="InvalidProgressEventTarget",t.RequestError="RequestError"}(r||(r={}));var p=function(){return function(t,e){this.name=t,this.message=e,this.stack=(new Error).stack}}(),f=function(t){function e(e,n,i,o){var a=t.call(this,r.RequestError,i)||this;return a.code=e,a.reqId=n,a.isRequestError=!0,a.data=o,a}return l(e,t),e}(p),d=function(t){function e(e,n){return void 0===n&&(n=""),t.call(this,0,n,e)||this}return l(e,t),e}(f),v=function(){function t(t,e){this.runTask=t,this.limit=e,this.aborted=!1,this.queue=[],this.processing=[]}return t.prototype.enqueue=function(t){var e=this;return new Promise(function(n,i){e.queue.push({task:t,resolve:n,reject:i}),e.check()})},t.prototype.run=function(t){var e=this;this.queue=this.queue.filter(function(e){return e!==t}),this.processing.push(t),this.runTask(t.task).then(function(){e.processing=e.processing.filter(function(e){return e!==t}),t.resolve(),e.check()},function(e){return t.reject(e)})},t.prototype.check=function(){var t=this;if(!this.aborted){var e=this.processing.length,n=this.limit-e;this.queue.slice(0,n).forEach(function(e){t.run(e)})}},t.prototype.abort=function(){this.queue=[],this.aborted=!0},t}(),g=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),y=this&&this.__assign||function(){return(y=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},m=function(t){function e(e,n,i){var r=t.call(this)||this;return r.isStopped=!1,r.destination=e&&"object"==typeof e?e:y(y(y({},e&&{next:e}),n&&{error:n}),i&&{complete:i}),r}return g(e,t),e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype.next=function(t){!this.isStopped&&this.destination.next&&this.destination.next(t)},e.prototype.error=function(t){!this.isStopped&&this.destination.error&&(this.isStopped=!0,this.destination.error(t))},e.prototype.complete=function(t){!this.isStopped&&this.destination.complete&&(this.isStopped=!0,this.destination.complete(t))},e}(function(){function t(){this.closed=!1}return t.prototype.unsubscribe=function(){this.closed||(this.closed=!0,this._unsubscribe&&this._unsubscribe())},t.prototype.add=function(t){this._unsubscribe=t},t}()),b=function(){function t(t){this._subscribe=t}return t.prototype.subscribe=function(t,e,n){var i=new m(t,e,n);return i.add(this._subscribe(i)),i},t}();function w(t){var e,n,i,r,o,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s=0,u=0,c="",h=[];if(!t)return t;t=function(t){if(null===t||void 0===t)return"";var e,n,i,r=t+"",o="";e=n=0,i=r.length;for(var a=0;a<i;a++){var s=r.charCodeAt(a),u=null;if(s<128)n++;else if(s>127&&s<2048)u=String.fromCharCode(s>>6|192,63&s|128);else if((63488&s^55296)>0)u=String.fromCharCode(s>>12|224,s>>6&63|128,63&s|128);else{if((64512&s^55296)>0)throw new RangeError("Unmatched trail surrogate at "+a);var c=r.charCodeAt(++a);if((64512&c^56320)>0)throw new RangeError("Unmatched lead surrogate at "+(a-1));s=((1023&s)<<10)+(1023&c)+65536,u=String.fromCharCode(s>>18|240,s>>12&63|128,s>>6&63|128,63&s|128)}null!==u&&(n>e&&(o+=r.slice(e,n)),o+=u,e=n=a+1)}return n>e&&(o+=r.slice(e,i)),o}(t+"");do{e=(o=t.charCodeAt(s++)<<16|t.charCodeAt(s++)<<8|t.charCodeAt(s++))>>18&63,n=o>>12&63,i=o>>6&63,r=63&o,h[u++]=a.charAt(e)+a.charAt(n)+a.charAt(i)+a.charAt(r)}while(s<t.length);switch(c=h.join(""),t.length%3){case 1:c=c.slice(0,-2)+"==";break;case 2:c=c.slice(0,-1)+"="}return c}function A(t){var e,n,i,r,o,a,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",u=0,c=0,h=[];if(!t)return t;t+="";do{e=(a=s.indexOf(t.charAt(u++))<<18|s.indexOf(t.charAt(u++))<<12|(r=s.indexOf(t.charAt(u++)))<<6|(o=s.indexOf(t.charAt(u++))))>>16&255,n=a>>8&255,i=255&a,h[c++]=64===r?String.fromCharCode(e):64===o?String.fromCharCode(e,n):String.fromCharCode(e,n,i)}while(u<t.length);return function(t){var e=[],n=0,i=0,r=0;for(t+="";n<t.length;){r=0,(i=255&t.charCodeAt(n))<=191?(i&=127,r=1):i<=223?(i&=31,r=2):i<=239?(i&=15,r=3):(i&=7,r=4);for(var o=1;o<r;++o)i=i<<6|63&t.charCodeAt(o+n);4===r?(i-=65536,e.push(String.fromCharCode(55296|i>>10&1023)),e.push(String.fromCharCode(56320|1023&i))):e.push(String.fromCharCode(i)),n+=r}return e.join("")}(h.join(""))}function C(t){return(t=w(t)).replace(/\//g,"_").replace(/\+/g,"-")}var _,k=n("JSQk"),I=n.n(k),P=this&&this.__assign||function(){return(P=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},x=this&&this.__awaiter||function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function a(t){try{u(i.next(t))}catch(t){o(t)}}function s(t){try{u(i.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(a,s)}u((i=i.apply(t,e||[])).next())})},E=this&&this.__generator||function(t,e){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},S=Math.pow(1024,2);function U(t,e){try{localStorage.removeItem(t)}catch(n){e.warn(new p(r.RemoveCacheFailed,"removeLocalFileInfo failed. key: "+t))}}function O(t){return{Authorization:"UpToken "+t}}function B(){if(window.XMLHttpRequest)return new XMLHttpRequest;if(window.ActiveXObject)return new window.ActiveXObject("Microsoft.XMLHTTP");throw new p(r.NotAvailableXMLHttpRequest,"the current environment does not support.")}function j(t){return x(this,void 0,void 0,function(){var e,n;return E(this,function(i){switch(i.label){case 0:return[4,function(t){return new Promise(function(e,n){var i=new FileReader;i.onload=function(t){if(t.target){var i=t.target.result;e(i)}else n(new p(r.InvalidProgressEventTarget,"progress event target is undefined"))},i.onerror=function(){n(new p(r.FileReaderReadFailed,"fileReader read failed"))},i.readAsArrayBuffer(t)})}(t)];case 1:return e=i.sent(),(n=new I.a.ArrayBuffer).append(e),[2,n.end()]}})})}function F(t,e){return new Promise(function(n,i){var r=B();if(r.open(e.method,t),e.onCreate&&e.onCreate(r),e.headers){var o=e.headers;Object.keys(o).forEach(function(t){r.setRequestHeader(t,o[t])})}r.upload.addEventListener("progress",function(t){t.lengthComputable&&e.onProgress&&e.onProgress({loaded:t.loaded,total:t.total})}),r.onreadystatechange=function(){var t=r.responseText;if(4===r.readyState){var e=r.getResponseHeader("x-reqId")||"";if(0!==r.status)if(200===r.status)try{n({data:JSON.parse(t),reqId:e})}catch(t){i(t)}else{var o="xhr request failed, code: "+r.status;t&&(o+=" response: "+t);var a=void 0;try{a=JSON.parse(t)}catch(t){}i(new f(r.status,e,o,a))}else i(new d("network error.",e))}},r.send(e.body)})}function N(t){if(!t)throw new p(r.InvalidToken,"invalid token.");var e=t.split(":");if(1===e.length)throw new p(r.InvalidToken,"invalid token segments.");var n=e.length>3?e[1]:e[0];if(!n)throw new p(r.InvalidToken,"missing assess key field.");var i=null;try{i=JSON.parse(A(e[e.length-1].replace(/_/g,"/").replace(/-/g,"+")))}catch(t){throw new p(r.InvalidToken,"token parse failed.")}if(null==i)throw new p(r.InvalidToken,"putPolicy is null.");if(null==i.scope)throw new p(r.InvalidToken,"scope field is null.");var o=i.scope.split(":")[0];if(!o)throw new p(r.InvalidToken,"resolve bucketName failed.");return{assessKey:n,bucketName:o,scope:i.scope}}var T="z1",R="z2",L="na0",Q="as0",D="cn-east-2",q=((_={})["z0"]={srcUphost:["up.qiniup.com"],cdnUphost:["upload.qiniup.com"]},_[T]={srcUphost:["up-z1.qiniup.com"],cdnUphost:["upload-z1.qiniup.com"]},_[R]={srcUphost:["up-z2.qiniup.com"],cdnUphost:["upload-z2.qiniup.com"]},_[L]={srcUphost:["up-na0.qiniup.com"],cdnUphost:["upload-na0.qiniup.com"]},_[Q]={srcUphost:["up-as0.qiniup.com"],cdnUphost:["upload-as0.qiniup.com"]},_[D]={srcUphost:["up-cn-east-2.qiniup.com"],cdnUphost:["upload-cn-east-2.qiniup.com"]},_),z=n("1nuA"),M=this&&this.__assign||function(){return(M=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},J=this&&this.__awaiter||function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function a(t){try{u(i.next(t))}catch(t){o(t)}}function s(t){try{u(i.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(a,s)}u((i=i.apply(t,e||[])).next())})},H=this&&this.__generator||function(t,e){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};function V(t,e,n){return J(this,void 0,void 0,function(){var i;return H(this,function(r){return i=Object(z.stringify)({ak:t,bucket:e}),[2,F(n+"://api.qiniu.com/v2/query?"+i,{method:"GET"})]})})}function X(t,e,n){var i=n.url,r=n.id;return i+"/buckets/"+t+"/objects/"+(null!=e?C(e):"~")+"/uploads/"+r}function G(t,e,n,i,r){var o=X(N(t).bucketName,e,i)+"/"+n,a=function(t){var e=O(t);return P({"content-type":"application/octet-stream"},e)}(t);return r.md5&&(a["Content-MD5"]=r.md5),F(o,M(M({},r),{method:"PUT",headers:a}))}function K(t,e,n,i){return F(X(N(t).bucketName,e,n),M(M({},i),{method:"POST",headers:function(t){var e=O(t);return P({"content-type":"application/json"},e)}(t)}))}var Z=this&&this.__assign||function(){return(Z=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},W=this&&this.__awaiter||function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function a(t){try{u(i.next(t))}catch(t){o(t)}}function s(t){try{u(i.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(a,s)}u((i=i.apply(t,e||[])).next())})},Y=this&&this.__generator||function(t,e){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},$=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a},tt=4,et=[0,502,503,504,599],nt=(this&&this.__spread||function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat($(arguments[e]));return t})(et,[612]),it=Math.pow(1024,3),rt=function(){function t(t,e,n,i){this.hostPool=n,this.logger=i,this.aborted=!1,this.retryCount=0,this.xhrList=[],this.config=t.config,i.info("config inited.",this.config),this.putExtra=Z({fname:""},t.putExtra),i.info("putExtra inited.",this.putExtra),this.key=t.key,this.file=t.file,this.token=t.token,this.onData=e.onData,this.onError=e.onError,this.onComplete=e.onComplete;try{var r=N(this.token);this.bucketName=r.bucketName,this.assessKey=r.assessKey}catch(t){i.error("get putPolicy from token failed.",t),this.onError(t)}}return t.prototype.checkAndUpdateUploadHost=function(){return W(this,void 0,void 0,function(){var t;return Y(this,function(e){switch(e.label){case 0:return this.logger.info("get available upload host."),[4,this.hostPool.getUp(this.assessKey,this.bucketName,this.config.upprotocol)];case 1:if(null==(t=e.sent()))throw new p(r.NotAvailableUploadHost,"no available upload host.");return null!=this.uploadHost&&this.uploadHost.host!==t.host?this.logger.warn("host switches from "+this.uploadHost.host+" to "+t.host+"."):this.logger.info("use host "+t.host+"."),this.uploadHost=t,[2]}})})},t.prototype.checkAndUnfreezeHost=function(){this.logger.info("check unfreeze host."),null!=this.uploadHost&&this.uploadHost.isFrozen()&&(this.logger.warn(this.uploadHost.host+" will be unfrozen."),this.uploadHost.unfreeze())},t.prototype.checkAndFreezeHost=function(t){this.logger.info("check freeze host."),t instanceof f&&null!=this.uploadHost&&et.includes(t.code)&&(this.logger.warn(this.uploadHost.host+" will be temporarily frozen."),this.uploadHost.freeze())},t.prototype.handleError=function(t){this.logger.error(t.message),this.onError(t)},t.prototype.putFile=function(){return W(this,void 0,void 0,function(){var t,e,n;return Y(this,function(i){switch(i.label){case 0:if(this.aborted=!1,this.putExtra.fname||(this.logger.info("use file.name as fname."),this.putExtra.fname=this.file.name),this.file.size>1e4*it)return this.handleError(new p(r.InvalidFile,"file size exceed maximum value 10000G")),[2];if(this.putExtra.customVars&&(o=this.putExtra.customVars,!Object.keys(o).every(function(t){return 0===t.indexOf("x:")})))return this.handleError(new p(r.InvalidCustomVars,"customVars key should start width x:")),[2];if(this.putExtra.metadata&&!function(t){return Object.keys(t).every(function(t){return 0===t.indexOf("x-qn-meta-")})}(this.putExtra.metadata))return this.handleError(new p(r.InvalidMetadata,"metadata key should start with x-qn-meta-")),[2];i.label=1;case 1:return i.trys.push([1,4,,5]),this.uploadAt=(new Date).getTime(),[4,this.checkAndUpdateUploadHost()];case 2:return i.sent(),[4,this.run()];case 3:return t=i.sent(),this.onComplete(t.data),this.checkAndUnfreezeHost(),this.sendLog(t.reqId,200),[2];case 4:return e=i.sent(),this.aborted?(this.logger.warn("upload is aborted."),this.sendLog("",-2),[2]):(this.clear(),this.logger.error(e),e instanceof f&&(this.sendLog(e.reqId,e.code),this.checkAndFreezeHost(e),n=++this.retryCount<=this.config.retryCount,nt.includes(e.code)&&n)?(this.logger.warn("error auto retry: "+this.retryCount+"/"+this.config.retryCount+"."),this.putFile(),[2]):(this.onError(e),[3,5]));case 5:return[2]}var o})})},t.prototype.clear=function(){this.xhrList.forEach(function(t){t.onreadystatechange=null,t.abort()}),this.xhrList=[],this.logger.info("cleanup uploading xhr.")},t.prototype.stop=function(){this.logger.info("aborted."),this.clear(),this.aborted=!0},t.prototype.addXhr=function(t){this.xhrList.push(t)},t.prototype.sendLog=function(t,e){var n,i;this.logger.report({code:e,reqId:t,remoteIp:"",upType:"jssdk-h5",size:this.file.size,time:Math.floor(this.uploadAt/1e3),port:function(t){if(t&&t.match){var e=t.match(/(^https?)/);if(!e)return"";var n=e[1];return(e=t.match(/^https?:\/\/([^:^/]*):(\d*)/))?e[2]:"http"===n?"80":"443"}return""}(null===(n=this.uploadHost)||void 0===n?void 0:n.getUrl()),host:function(t){if(t&&t.match){var e=t.match(/^https?:\/\/([^:^/]*)/);return e?e[1]:""}return""}(null===(i=this.uploadHost)||void 0===i?void 0:i.getUrl()),bytesSent:this.progress?this.progress.total.loaded:0,duration:Math.floor(((new Date).getTime()-this.uploadAt)/1e3)})},t.prototype.getProgressInfoItem=function(t,e,n){return Z({size:e,loaded:t,percent:t/e*100},null==n?{}:{fromCache:n})},t}(),ot=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),at=this&&this.__assign||function(){return(at=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},st=this&&this.__awaiter||function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function a(t){try{u(i.next(t))}catch(t){o(t)}}function s(t){try{u(i.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(a,s)}u((i=i.apply(t,e||[])).next())})},ut=this&&this.__generator||function(t,e){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};var ct=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ot(e,t),e.prototype.run=function(){return st(this,void 0,void 0,function(){var t,e,n,i,o,a=this;return ut(this,function(s){switch(s.label){case 0:if(this.logger.info("start run Resume."),!this.config.chunkSize||(u=this.config.chunkSize,!/^[1-9]\d*$/.test(String(u))))throw new p(r.InvalidChunkSize,"chunkSize must be a positive integer");if(this.config.chunkSize>1024)throw new p(r.InvalidChunkSize,"chunkSize maximum value is 1024");return[4,this.initBeforeUploadChunks()];case 1:s.sent(),t=new v(function(e){return st(a,void 0,void 0,function(){return ut(this,function(n){switch(n.label){case 0:if(this.aborted)throw t.abort(),new Error("pool is aborted");return[4,this.uploadChunk(e)];case 1:return n.sent(),[2]}})})},this.config.concurrentRequestLimit),e=null,n=this.getLocalKey(),i=this.chunks.map(function(e,n){return t.enqueue({chunk:e,index:n})}),s.label=2;case 2:return s.trys.push([2,5,,6]),[4,Promise.all(i)];case 3:return s.sent(),[4,this.mkFileReq()];case 4:return e=s.sent(),[3,6];case 5:throw(o=s.sent())instanceof f&&(612===o.code||400===o.code)&&U(n,this.logger),o;case 6:return U(n,this.logger),[2,e]}var u})})},e.prototype.uploadChunk=function(t){return st(this,void 0,void 0,function(){var e,n,i,r,o,a,s,u,c,h=this;return ut(this,function(l){switch(l.label){case 0:return e=t.index,n=t.chunk,i=this.cachedUploadedList[e],this.logger.info("upload part "+e+", cache:",i),r=this.config.checkByMD5,o=function(){h.usedCacheList[e]=!0,h.updateChunkProgress(n.size,e),h.uploadedList[e]=i,h.updateLocalCache()},i&&!r?(o(),[2]):[4,j(n)];case 1:return a=l.sent(),this.logger.info("computed part md5.",a),i&&a===i.md5?(o(),[2]):(this.usedCacheList[e]=!1,s=function(t){h.updateChunkProgress(t.loaded,e)},u={body:n,md5:this.config.checkByServer?a:void 0,onProgress:s,onCreate:function(t){return h.addXhr(t)}},this.logger.info("part "+e+" start uploading."),[4,G(this.token,this.key,t.index+1,this.getUploadInfo(),u)]);case 2:return c=l.sent(),this.logger.info("part "+e+" upload completed."),s({loaded:n.size,total:n.size}),this.uploadedList[e]={etag:c.data.etag,md5:c.data.md5,size:n.size},this.updateLocalCache(),[2]}})})},e.prototype.mkFileReq=function(){return st(this,void 0,void 0,function(){var t,e,n=this;return ut(this,function(i){switch(i.label){case 0:return t=at(at(at({parts:this.uploadedList.map(function(t,e){return{etag:t.etag,partNumber:e+1}}),fname:this.putExtra.fname},this.putExtra.mimeType&&{mimeType:this.putExtra.mimeType}),this.putExtra.customVars&&{customVars:this.putExtra.customVars}),this.putExtra.metadata&&{metadata:this.putExtra.metadata}),this.logger.info("parts upload completed, make file.",t),[4,K(this.token,this.key,this.getUploadInfo(),{onCreate:function(t){return n.addXhr(t)},body:JSON.stringify(t)})];case 1:return e=i.sent(),this.logger.info("finish Resume Progress."),this.updateMkFileProgress(1),[2,e]}})})},e.prototype.initBeforeUploadChunks=function(){return st(this,void 0,void 0,function(){var t,e,n;return ut(this,function(i){switch(i.label){case 0:return this.uploadedList=[],this.usedCacheList=[],(t=function(t,e){var n=null;try{n=localStorage.getItem(t)}catch(n){e.warn(new p(r.ReadCacheFailed,"getLocalFileInfo failed. key: "+t))}if(null==n)return null;var i=null;try{i=JSON.parse(n)}catch(n){U(t,e),e.warn(new p(r.InvalidCacheData,"getLocalFileInfo failed to parse. key: "+t))}return i}(this.getLocalKey(),this.logger))?[3,2]:(this.logger.info("init upload parts from api."),[4,(o=this.token,a=this.bucketName,s=this.key,u=this.uploadHost.getUrl(),F(u+"/buckets/"+a+"/objects/"+(null!=s?C(s):"~")+"/uploads",{method:"POST",headers:O(o)}))]);case 1:return e=i.sent(),this.logger.info("initd upload parts of id: "+e.data.uploadId+"."),this.uploadId=e.data.uploadId,this.cachedUploadedList=[],[3,3];case 2:n=["resume upload parts from local cache,","total "+t.data.length+" part,","id is "+t.id+"."],this.logger.info(n.join(" ")),this.cachedUploadedList=t.data,this.uploadId=t.id,i.label=3;case 3:return this.chunks=function(t,e){var n=e*S;if(n>t.size)n=t.size;else for(;t.size>1e4*n;)n*=2;for(var i=[],r=Math.ceil(t.size/n),o=0;o<r;o++){var a=t.slice(n*o,o===r-1?t.size:n*(o+1));i.push(a)}return i}(this.file,this.config.chunkSize),this.loaded={mkFileProgress:0,chunks:this.chunks.map(function(t){return 0})},this.notifyResumeProgress(),[2]}var o,a,s,u})})},e.prototype.getUploadInfo=function(){return{id:this.uploadId,url:this.uploadHost.getUrl()}},e.prototype.getLocalKey=function(){return t=this.file.name,e=this.key,n=this.file.size,"qiniu_js_sdk_upload_file_name_"+t+(null==e?"_":"_key_"+e+"_")+"size_"+n;var t,e,n},e.prototype.updateLocalCache=function(){!function(t,e,n){try{localStorage.setItem(t,JSON.stringify(e))}catch(e){n.warn(new p(r.WriteCacheFailed,"setLocalFileInfo failed: "+t))}}(this.getLocalKey(),{id:this.uploadId,data:this.uploadedList},this.logger)},e.prototype.updateChunkProgress=function(t,e){this.loaded.chunks[e]=t,this.notifyResumeProgress()},e.prototype.updateMkFileProgress=function(t){this.loaded.mkFileProgress=t,this.notifyResumeProgress()},e.prototype.notifyResumeProgress=function(){var t,e=this;this.progress={total:this.getProgressInfoItem((t=this.loaded.chunks,t.reduce(function(t,e){return t+e},0)+this.loaded.mkFileProgress),this.file.size+1),chunks:this.chunks.map(function(t,n){var i=e.usedCacheList[n];return e.getProgressInfoItem(e.loaded.chunks[n],t.size,i)}),uploadInfo:{id:this.uploadId,url:this.uploadHost.getUrl()}},this.onData(this.progress)},e}(rt),ht=this&&this.__awaiter||function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function a(t){try{u(i.next(t))}catch(t){o(t)}}function s(t){try{u(i.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(a,s)}u((i=i.apply(t,e||[])).next())})},lt=this&&this.__generator||function(t,e){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},pt=function(){function t(){this.crc=-1,this.table=this.makeTable()}return t.prototype.makeTable=function(){for(var t=new Array,e=0;e<256;e++){for(var n=e,i=0;i<8;i++)1&n?n=n>>>1^3988292384:n>>>=1;t[e]=n}return t},t.prototype.append=function(t){for(var e=this.crc,n=0;n<t.byteLength;n++)e=e>>>8^this.table[255&(e^t[n])];this.crc=e},t.prototype.compute=function(){return(-1^this.crc)>>>0},t.prototype.readAsUint8Array=function(t){return ht(this,void 0,void 0,function(){var e;return lt(this,function(n){switch(n.label){case 0:return"function"!=typeof t.arrayBuffer?[3,2]:(e=Uint8Array.bind,[4,t.arrayBuffer()]);case 1:return[2,new(e.apply(Uint8Array,[void 0,n.sent()]))];case 2:return[2,new Promise(function(e,n){var i=new FileReader;i.onload=function(){null!=i.result&&"string"!=typeof i.result?e(new Uint8Array(i.result)):n()},i.readAsArrayBuffer(t)})]}})})},t.prototype.file=function(t){return ht(this,void 0,void 0,function(){var e,n,i,r,o,a;return lt(this,function(s){switch(s.label){case 0:return t.size<=S?(e=this.append,[4,this.readAsUint8Array(t)]):[3,2];case 1:return e.apply(this,[s.sent()]),[2,this.compute()];case 2:n=Math.ceil(t.size/S),i=0,s.label=3;case 3:return i<n?(r=i*S,o=i===n-1?t.size:r+S,[4,this.readAsUint8Array(t.slice(r,o))]):[3,6];case 4:a=s.sent(),this.append(new Uint8Array(a)),s.label=5;case 5:return i++,[3,3];case 6:return[2,this.compute()]}})})},t.file=function(e){return(new t).file(e)},t}(),ft=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),dt=this&&this.__awaiter||function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function a(t){try{u(i.next(t))}catch(t){o(t)}}function s(t){try{u(i.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(a,s)}u((i=i.apply(t,e||[])).next())})},vt=this&&this.__generator||function(t,e){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},gt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ft(e,t),e.prototype.run=function(){return dt(this,void 0,void 0,function(){var t,e,n,i,r=this;return vt(this,function(o){switch(o.label){case 0:return this.logger.info("start run Direct."),(t=new FormData).append("file",this.file),t.append("token",this.token),null!=this.key&&t.append("key",this.key),t.append("fname",this.putExtra.fname),this.config.checkByServer?[4,pt.file(this.file)]:[3,2];case 1:e=o.sent(),t.append("crc32",e.toString()),o.label=2;case 2:return this.putExtra.customVars&&(this.logger.info("init customVars."),n=this.putExtra.customVars,Object.keys(n).forEach(function(e){return t.append(e,n[e].toString())}),this.logger.info("customVars inited.")),this.logger.info("formData inited."),[4,(a=this.uploadHost.getUrl(),s=t,u={onProgress:function(t){r.updateDirectProgress(t.loaded,t.total)},onCreate:function(t){return r.addXhr(t)}},F(a,M({method:"POST",body:s},u)))];case 3:return i=o.sent(),this.logger.info("Direct progress finish."),this.finishDirectProgress(),[2,i]}var a,s,u})})},e.prototype.updateDirectProgress=function(t,e){this.progress={total:this.getProgressInfoItem(t,e+1)},this.onData(this.progress)},e.prototype.finishDirectProgress=function(){if(!this.progress)return this.logger.warn("progress is null."),this.progress={total:this.getProgressInfoItem(this.file.size,this.file.size)},void this.onData(this.progress);var t=this.progress.total;this.progress={total:this.getProgressInfoItem(t.loaded+1,t.size)},this.onData(this.progress)},e}(rt);var yt=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a},mt=this&&this.__spread||function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(yt(arguments[e]));return t},bt=function(){function t(e,n,i,r){void 0===n&&(n=!0),void 0===i&&(i="OFF"),void 0===r&&(r="UPLOAD"),this.token=e,this.disableReport=n,this.level=i,this.prefix=r,this.id=++t.id}return t.prototype.getPrintPrefix=function(t){return"Qiniu-JS-SDK ["+t+"]["+this.prefix+"#"+this.id+"]:"},t.prototype.report=function(t,e){if(!this.disableReport)try{!function t(e,n,i){void 0===i&&(i=3);var r=B();r.open("POST","https://uplog.qbox.me/log/3"),r.setRequestHeader("Content-type","application/x-www-form-urlencoded"),r.setRequestHeader("Authorization",O(e).Authorization),r.onreadystatechange=function(){4===r.readyState&&200!==r.status&&i>0&&t(e,n,i-1)};var o=[n.code||"",n.reqId||"",n.host||"",n.remoteIp||"",n.port||"",n.duration||"",n.time||"",n.bytesSent||"",n.upType||"",n.size||""].join(",");r.send(o)}(this.token,t,e)}catch(t){this.warn(t)}},t.prototype.info=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];["INFO"].includes(this.level)&&console.log.apply(console,mt([this.getPrintPrefix("INFO")],t))},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];["INFO","WARN"].includes(this.level)&&console.warn.apply(console,mt([this.getPrintPrefix("WARN")],t))},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];["INFO","WARN","ERROR"].includes(this.level)&&console.error.apply(console,mt([this.getPrintPrefix("ERROR")],t))},t.id=0,t}(),wt=this&&this.__awaiter||function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function a(t){try{u(i.next(t))}catch(t){o(t)}}function s(t){try{u(i.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(a,s)}u((i=i.apply(t,e||[])).next())})},At=this&&this.__generator||function(t,e){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},Ct=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a},_t=this&&this.__spread||function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(Ct(arguments[e]));return t},kt=new Map,It=function(){function t(t,e){this.host=t,this.protocol=e}return t.prototype.isFrozen=function(){var t=(new Date).getTime(),e=kt.get(this.host);return null!=e&&e>=t},t.prototype.freeze=function(t){void 0===t&&(t=20);var e=(new Date).getTime()+1e3*t;kt.set(this.host,e)},t.prototype.unfreeze=function(){kt.delete(this.host)},t.prototype.getUrl=function(){return this.protocol+"://"+this.host},t.prototype.getUnfreezeTime=function(){return kt.get(this.host)},t}(),Pt=function(){function t(t){void 0===t&&(t=[]),this.initHosts=t,this.cachedHostsMap=new Map}return t.prototype.register=function(t,e,n,i){this.cachedHostsMap.set(t+"@"+e,n.map(function(t){return new It(t,i)}))},t.prototype.refresh=function(t,e,n){var i,r,o,a;return wt(this,void 0,void 0,function(){var s,u;return At(this,function(c){switch(c.label){case 0:return(this.cachedHostsMap.get(t+"@"+e)||[]).length>0?[2]:this.initHosts.length>0?(this.register(t,e,this.initHosts,n),[2]):[4,V(t,e,n)];case 1:return null!=(null===(s=c.sent())||void 0===s?void 0:s.data)&&(u=_t((null===(r=null===(i=s.data.up)||void 0===i?void 0:i.acc)||void 0===r?void 0:r.main)||[],(null===(a=null===(o=s.data.up)||void 0===o?void 0:o.acc)||void 0===a?void 0:a.backup)||[]),this.register(t,e,u,n)),[2]}})})},t.prototype.getUp=function(t,e,n){return wt(this,void 0,void 0,function(){var i,r;return At(this,function(o){switch(o.label){case 0:return[4,this.refresh(t,e,n)];case 1:return o.sent(),0===(i=this.cachedHostsMap.get(t+"@"+e)||[]).length?[2,null]:(r=i.filter(function(t){return!t.isFrozen()})).length>0?[2,r[0]]:[2,i.slice().sort(function(t,e){return(t.getUnfreezeTime()||0)-(e.getUnfreezeTime()||0)})[0]]}})})},t}();function xt(t,e,n,i,r){var o=new bt(n,null===r||void 0===r?void 0:r.disableStatisticsReport,null===r||void 0===r?void 0:r.debugLogLevel,t.name),a={file:t,key:e,token:n,putExtra:i,config:Bt(r,o)},s=new Pt(a.config.uphost);return new b(function(t){var e=function(t,e,n,i){return t.config&&t.config.forceDirect?(i.info("ues forceDirect mode."),new gt(t,e,n,i)):t.file.size>4*S?(i.info("file size over 4M, use Resume."),new ct(t,e,n,i)):(i.info("file size less or equal than 4M, use Direct."),new gt(t,e,n,i))}(a,{onData:function(e){return t.next(e)},onError:function(e){return t.error(e)},onComplete:function(e){return t.complete(e)}},s,o);return e.putFile(),e.stop.bind(e)})}var Et=this&&this.__assign||function(){return(Et=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},St=this&&this.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n},Ut=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a},Ot=this&&this.__spread||function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(Ut(arguments[e]));return t};function Bt(t,e){var n=Et({},t),i=n.upprotocol,r=n.uphost,o=St(n,["upprotocol","uphost"]),a=Et({uphost:[],retryCount:3,checkByMD5:!1,forceDirect:!1,useCdnDomain:!0,checkByServer:!1,concurrentRequestLimit:3,chunkSize:tt,upprotocol:"https",debugLogLevel:"OFF",disableStatisticsReport:!1},o);i&&(a.upprotocol=i.replace(/:$/,""));var s=[];if(e&&null!=(null===t||void 0===t?void 0:t.uphost)&&null!=(null===t||void 0===t?void 0:t.region)&&e.warn("do not use both the uphost and region config."),r)Array.isArray(r)?s.push.apply(s,Ot(r)):s.push(r);else if(null===a||void 0===a?void 0:a.region){var u=q[null===a||void 0===a?void 0:a.region];a.useCdnDomain?s.push.apply(s,Ot(u.cdnUphost)):s.push.apply(s,Ot(u.srcUphost))}return Et(Et({},a),{uphost:s.filter(Boolean)})}var jt=this&&this.__assign||function(){return(jt=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},Ft=this&&this.__awaiter||function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function a(t){try{u(i.next(t))}catch(t){o(t)}}function s(t){try{u(i.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(a,s)}u((i=i.apply(t,e||[])).next())})},Nt=this&&this.__generator||function(t,e){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},Tt={PNG:"image/png",JPEG:"image/jpeg",WEBP:"image/webp",BMP:"image/bmp"},Rt=Math.log(2),Lt=Object.keys(Tt).map(function(t){return Tt[t]}),Qt=Tt.JPEG;!function(){function t(t,e){this.file=t,this.config=e,this.config=jt({quality:.92,noCompressIfLarger:!1},this.config)}t.prototype.process=function(){return Ft(this,void 0,void 0,function(){var t,e,n,i,o,a;return Nt(this,function(s){switch(s.label){case 0:if(this.outputType=this.file.type,t={},u=this.file.type,!Lt.includes(u))throw new p(r.UnsupportedFileType,"unsupported file type: "+this.file.type);return[4,this.getOriginImage()];case 1:return e=s.sent(),[4,this.getCanvas(e)];case 2:return n=s.sent(),i=1,this.config.maxWidth&&(i=Math.min(1,this.config.maxWidth/n.width)),this.config.maxHeight&&(i=Math.min(1,i,this.config.maxHeight/n.height)),t.width=n.width,t.height=n.height,[4,this.doScale(n,i)];case 3:return o=s.sent(),(a=this.toBlob(o)).size>this.file.size&&this.config.noCompressIfLarger?[2,{dist:this.file,width:t.width,height:t.height}]:[2,{dist:a,width:o.width,height:o.height}]}var u})})},t.prototype.clear=function(t,e,n){this.outputType===Qt?(t.fillStyle="#fff",t.fillRect(0,0,e,n)):t.clearRect(0,0,e,n)},t.prototype.getOriginImage=function(){var t=this;return new Promise(function(e,n){var i,r=(i=t.file,(window.URL||window.webkitURL||window.mozURL).createObjectURL(i)),o=new Image;o.onload=function(){e(o)},o.onerror=function(){n("image load error")},o.src=r})},t.prototype.getCanvas=function(t){var e=this;return new Promise(function(n,i){var o=document.createElement("canvas"),a=o.getContext("2d");if(a){var s=t.width,u=t.height;o.height=u,o.width=s,e.clear(a,s,u),a.drawImage(t,0,0),n(o)}else i(new p(r.GetCanvasContextFailed,"context is null"))})},t.prototype.doScale=function(t,e){return Ft(this,void 0,void 0,function(){var n,i,o,a,s,u,c,h,l,f,d,v,g,y,m,b;return Nt(this,function(w){if(1===e)return[2,t];if(n=t.getContext("2d"),i=Math.min(4,Math.ceil(1/e/Rt)),o=Math.pow(e,1/i),a=document.createElement("canvas"),s=a.getContext("2d"),u=t.width,c=t.height,h=u,l=c,a.width=u,a.height=c,!s||!n)throw new p(r.GetCanvasContextFailed,"mctx or sctx can't be null");for(v=0;v<i;v++)g=u*o|0,y=c*o|0,v===i-1&&(g=h*e,y=l*e),v%2==0?(f=t,d=s):(f=a,d=n),this.clear(d,u,c),d.drawImage(f,0,0,u,c,0,0,g,y),u=g,c=y;return m=f===t?a:t,b=d.getImageData(0,0,u,c),m.width=u,m.height=c,d.putImageData(b,0,0),[2,m]})})},t.prototype.toBlob=function(t){var e=t.toDataURL(this.outputType,this.config.quality),n=atob(e.split(",")[1]).split("").map(function(t){return t.charCodeAt(0)});return new Blob([new Uint8Array(n)],{type:this.outputType})}}();var Dt={data:function(){return{ifShow:!1,isBind:!1,realName:"",idCardNo:"",phone:"",encryptPhone:"",alipay_account:"",unionpay_account:"",file_F:"",idCardFront:null,idCardBack:null,isShowTip:!1,isShowVerification:!1,isShowUpdate:!1,count_down_num:60,canGetCode:!1,verify_code:"",t:null,updateTitle:"",updatePlaceholder:"",n:1,updateInfo:"",updateData:{},isPhone:!1}},components:{navigation:u.a},created:function(){if(document.title="個人提現信息綁定",this.isBind=this.$route.params.isBind,this.isBind){console.log("params",this.$route.params);var t=this.$route.params,e=t.realName,n=t.idCardNo,i=t.idCardFront,r=t.idCardBack,o=t.phone,a=t.encryptPhone,s=t.alipayAccount,u=t.bankCardNo;this.realName=e,this.idCardNo=n,this.idCardFront=i,this.idCardBack=r,this.phone=o,this.encryptPhone=a,this.alipay_account=s,this.unionpay_account=u}console.log(this.encryptPhone),this.getUserWithdrawInfoFun()},methods:{getUserWithdrawInfoFun:function(){var t=this;Object(s.n)().then(function(e){200===e.data.code&&(console.log(a()(e.data.data)),"{}"==a()(e.data.data)?t.ifShow=!0:t.ifShow=!1)})},getImgPath:function(t,e){var n=this;this.file_F=e.target.files[0],Object(s.l)().then(function(e){n.card_Key_Z=e.data.data.key,n.card_Tocket_Z=e.data.data.token,xt(n.file_F,n.card_Key_Z,n.card_Tocket_Z).subscribe({complete:function(e){t?n.idCardFront=e.path:n.idCardBack=e.path}})})},bindWithdrawInfo:function(){if(!this.realName.trim())return Object(c.b)("請輸入真實姓名");if(!/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/.test(this.idCardNo.trim()))return Object(c.b)("請輸入正確的身份證號碼");if(!this.idCardFront)return Object(c.b)("請上傳身份證正面照");if(!this.idCardBack)return Object(c.b)("請上傳身份證反面照");return/^[1]([3-9])[0-9]{9}$/.test(this.phone.trim())?this.alipay_account.trim()?(this.unionpay_account.trim()||(this.unionpay_account=""),void(this.isShowTip=!0)):Object(c.b)("請輸入支付寶賬號"):Object(c.b)("請輸入正確的手機號")},confirmBind:function(){this.isShowTip=!1,this.isShowVerification=!0,this.getCode()},cancelBind:function(){this.isShowTip=!1},cancelBind1:function(){this.ifShow=!1},getCode:function(){this.canGetCode=!1,this.countDown();var t="";t=this.isBind?this.isPhone?Object(h.a)(this.phone,"1ea53d260ecf11e7b56e00163e046a26"):this.encryptPhone:Object(h.a)(this.phone,"1ea53d260ecf11e7b56e00163e046a26"),Object(s.h)({mobile:t,type:1}).then(function(t){200===t.data.code&&Object(c.b)(t.data.message)})},verifyCode:function(){var t=this;if(!this.verify_code)return Object(c.b)("請輸入驗證碼");var e="";""!=this.encryptPhone?(console.log(e),e=1==this.isPhone?Object(h.a)(this.phone,"1ea53d260ecf11e7b56e00163e046a26"):this.encryptPhone,console.log("綁定加密:"+this.encryptPhone)):(console.log(e),e=Object(h.a)(this.phone,"1ea53d260ecf11e7b56e00163e046a26"),console.log("未綁定普通加密"+this.phone)),c.b.loading({message:"loading",forbidClick:!0,duration:0}),Object(s.s)({mobile:e,code:this.verify_code}).then(function(e){200===e.data.code&&(t.isShowVerification=!1,t.verify_code="",clearTimeout(t.t),t.count_down_num=60,t.isBind?Object(s.r)(t.updateData).then(function(e){200===e.data.code&&(Object(c.b)("修改成功"),setTimeout(function(){t.$router.go(-1)},500))}):Object(s.b)({alipayAccount:t.alipay_account.trim(),bankCardNo:t.unionpay_account.trim(),idCardBack:t.idCardBack,idCardFront:t.idCardFront,idCardNo:t.idCardNo,phone:t.phone,realName:t.realName.trim(),uid:window.sessionStorage.getItem("uid")}).then(function(e){console.log(e.data.data),Object(c.b)("綁定成功"),t.$router.replace("/WithDraw")}).catch(function(t){console.log("綁定失敗"),setTimeout(function(){c.b.clear()},1e3),Object(c.b)(t.message)}))})},countDown:function(){var t=this;this.t=setTimeout(function(){t.count_down_num--,t.count_down_num<=0?(t.canGetCode=!0,t.count_down_num=60,clearTimeout(t.t)):t.countDown()},1e3)},showUpdatePopup:function(t){var e=this;this.isBind&&(this.isShowUpdate=!0,this.$nextTick(function(){e.$refs.updateInput.focus()}),this.n=t,1===t?(this.updateTitle="修改手機號",this.updatePlaceholder="請輸入手機號碼"):2===t?(this.updateTitle="修改支付寶賬號",this.updatePlaceholder="請輸入支付寶賬號"):(this.updateTitle="修改銀行卡賬號",this.updatePlaceholder="請輸入銀行卡賬號"))},updateCancel:function(){this.isShowUpdate=!1,this.updateInfo=""},updateConfirm:function(){if(1===this.n){if(!/^[1]([3-9])[0-9]{9}$/.test(this.updateInfo.trim()))return this.updateInfo.trim().length||(this.updateInfo=""),Object(c.b)("請輸入正確的手機號碼");this.phone=this.updateInfo.trim()}if(2===this.n){if(!this.updateInfo.trim())return this.updateInfo="",Object(c.b)("請輸入支付寶賬號");this.alipay_account=this.updateInfo.trim()}if(3===this.n){if(!this.updateInfo.trim())return this.updateInfo="",Object(c.b)("請輸入銀行卡賬號");this.unionpay_account=this.updateInfo.trim()}this.isShowUpdate=!1,this.updateInfo=""},updateSubmit:function(){if(this.phone==this.$route.params.phone&&this.alipay_account==this.$route.params.alipayAccount&&this.unionpay_account==this.$route.params.bankCardNo)return Object(c.b)("沒有修改個人信息!");if(this.phone!=this.$route.params.phone){if(!/^[1]([3-9])[0-9]{9}$/.test(this.phone.trim()))return Object(c.b)("請輸入正確的手機號");this.updateData.phone=this.phone,this.isPhone=!0}this.alipay_account!=this.$route.params.alipayAccount&&(this.updateData.alipayAccount=this.alipay_account),this.unionpay_account!=this.$route.params.bankCardNo&&(this.updateData.bankCardNo=this.unionpay_account),this.updateData.uid=window.sessionStorage.getItem("uid"),this.isShowVerification=!0,this.getCode()},hideVerification:function(){this.isShowVerification=!1}}},qt={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"box-all"},[this.$store.state.isApp?t._e():i("navigation",{attrs:{title:"個人提現信息綁定"}}),t._v(" "),i("div",{staticClass:"user_info"},[i("div",{staticClass:"realName"},[i("p",[t._v("真實姓名")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.realName,expression:"realName"}],attrs:{type:"text",placeholder:"請輸入真實姓名",disabled:!!t.isBind&&1},domProps:{value:t.realName},on:{input:function(e){e.target.composing||(t.realName=e.target.value)}}})]),t._v(" "),i("div",{staticClass:"IDcard"},[i("p",[t._v("身份證號")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.idCardNo,expression:"idCardNo"}],attrs:{type:"text",placeholder:"請輸入身份證號",maxlength:"18",disabled:!!t.isBind&&1},domProps:{value:t.idCardNo},on:{input:function(e){e.target.composing||(t.idCardNo=e.target.value)}}})]),t._v(" "),i("div",{staticClass:"IDcard_info"},[i("p",[t._v("身份證信息")]),t._v(" "),i("p",{staticClass:"tip"},[t._v("請按照要求,拍攝有效的二代身份證")]),t._v(" "),i("div",{staticClass:"ID_pic_wrap"},[i("div",{staticClass:"front_pic"},[t._m(0),t._v(" "),i("div",{staticClass:"pic_wrap"},[i("div",{staticClass:"user_front_idcard_pic"},[t.idCardFront?i("img",{attrs:{src:t.idCardFront,alt:""}}):i("img",{attrs:{src:n("KdkX"),alt:""}})]),t._v(" "),t.isBind?t._e():i("div",{staticClass:"upload_btn"},[i("p",[t._v("\n "+t._s(t.idCardFront?"重新上傳":"點擊上傳")+"\n ")])]),t._v(" "),t.isBind?t._e():i("input",{staticClass:"upload_input",staticStyle:{opacity:"0"},attrs:{type:"file",accept:"image/*"},on:{change:function(e){return t.getImgPath(1,e)}}})])]),t._v(" "),i("div",{staticClass:"end_pic"},[t._m(1),t._v(" "),i("div",{staticClass:"pic_wrap"},[i("div",{staticClass:"user_end_idcard_pic"},[t.idCardBack?i("img",{attrs:{src:t.idCardBack,alt:""}}):i("img",{attrs:{src:n("vruV"),alt:""}})]),t._v(" "),t.isBind?t._e():i("div",{staticClass:"upload_btn"},[i("p",[t._v("\n "+t._s(t.idCardBack?"重新上傳":"點擊上傳")+"\n ")])]),t._v(" "),t.isBind?t._e():i("input",{staticClass:"upload_input",staticStyle:{opacity:"0"},attrs:{type:"file",accept:"image/*"},on:{change:function(e){return t.getImgPath(0,e)}}})])])])]),t._v(" "),i("div",{staticClass:"phone"},[i("p",[t._v("手機號")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.phone,expression:"phone"}],attrs:{type:"text",placeholder:"請輸入手機號碼",maxlength:"11"},domProps:{value:t.phone},on:{focus:function(e){return t.showUpdatePopup(1)},input:function(e){e.target.composing||(t.phone=e.target.value)}}})]),t._v(" "),i("div",{staticClass:"alipay_account"},[i("p",[t._v("支付寶賬號")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.alipay_account,expression:"alipay_account"}],attrs:{type:"text",placeholder:"請輸入支付寶賬號"},domProps:{value:t.alipay_account},on:{focus:function(e){return t.showUpdatePopup(2)},input:function(e){e.target.composing||(t.alipay_account=e.target.value)}}})]),t._v(" "),i("div",{staticClass:"unionpay_account"},[i("p",[t._v("銀行卡賬號")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.unionpay_account,expression:"unionpay_account"}],attrs:{type:"text",placeholder:"請輸入銀行卡卡號(非必填)"},domProps:{value:t.unionpay_account},on:{focus:function(e){return t.showUpdatePopup(3)},input:function(e){e.target.composing||(t.unionpay_account=e.target.value)}}})])]),t._v(" "),i("div",{staticClass:"bind"},[t.isBind?i("p",{on:{click:t.updateSubmit}},[t._v("修改個人提現信息")]):i("p",{on:{click:t.bindWithdrawInfo}},[t._v("提交綁定信息")])]),t._v(" "),i("div",{staticClass:"notice_text"},[t._v("\n 請註意:提交的實名信息,支付寶信息,銀行卡信息,身份證照片信息必須為同個人的真實信息,否則將無法認證成功\n ")]),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowTip,expression:"isShowTip"}],staticClass:"shade_tip"},[i("div",{staticClass:"tip_content"},[i("div",{staticClass:"tip_title"},[t._v("重要提示")]),t._v(" "),t._m(2),t._v(" "),i("div",{staticClass:"tip_btn_wrap"},[i("div",{staticClass:"tip_btn_cancel",on:{click:t.cancelBind}},[t._v("\n 返回查看\n ")]),t._v(" "),i("div",{staticClass:"tip_btn_confirm",on:{click:t.confirmBind}},[t._v("\n 確定提交\n ")])])])]),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.ifShow,expression:"ifShow"}],staticClass:"shade_tip1"},[i("div",{staticClass:"tip_content"},[i("div",{staticClass:"tip_title"},[t._v("重要提示")]),t._v(" "),t._m(3),t._v(" "),i("div",{staticClass:"tip_btn_wrap"},[i("div",{staticClass:"tip_btn_cancel",on:{click:t.cancelBind1}},[t._v("\n 我知道了\n ")])])])]),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowVerification,expression:"isShowVerification"}],staticClass:"shade_verification",on:{click:t.hideVerification}},[i("div",{staticClass:"verification_content",on:{click:function(t){t.stopPropagation()}}},[i("div",{staticClass:"verification_title"},[t._v("請填寫手機短信驗證碼")]),t._v(" "),i("div",{staticClass:"verification_text"},[t._v("\n 已發送到手機號:"),i("span",[t._v(t._s(t.phone))])]),t._v(" "),i("div",{staticClass:"verification_input"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.verify_code,expression:"verify_code"}],attrs:{type:"type",placeholder:"請輸入驗證碼"},domProps:{value:t.verify_code},on:{input:function(e){e.target.composing||(t.verify_code=e.target.value)}}}),t._v(" "),i("div",{staticClass:"count_down"},[t.canGetCode?i("p",{on:{click:t.getCode}},[t._v("獲取驗證碼")]):i("p",[t._v(t._s(t.count_down_num)+"s後重試")])])]),t._v(" "),i("div",{staticClass:"verification_confirm",on:{click:t.verifyCode}},[t._v("確認")])])]),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowUpdate,expression:"isShowUpdate"}],staticClass:"shade_update"},[i("div",{staticClass:"update_content"},[i("div",{staticClass:"update_title"},[t._v(t._s(t.updateTitle))]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.updateInfo,expression:"updateInfo"}],ref:"updateInput",staticClass:"update_input",attrs:{type:"text",placeholder:t.updatePlaceholder},domProps:{value:t.updateInfo},on:{input:function(e){e.target.composing||(t.updateInfo=e.target.value)}}}),t._v(" "),i("div",{staticClass:"update_btn"},[i("div",{staticClass:"update_cancel",on:{click:t.updateCancel}},[t._v("取消")]),t._v(" "),i("div",{staticClass:"update_confirm",on:{click:t.updateConfirm}},[t._v("\n 確認\n ")])])])])],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"text"},[e("p",[this._v("身份證正面")]),this._v(" "),e("span",[this._v("(含個人信息的一面)")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"text"},[e("p",[this._v("國徽面")]),this._v(" "),e("span",[this._v("(含簽發機關的一面)")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"tip_text"},[this._v("\n 提交綁定後"),e("span",[this._v("實名信息")]),this._v(","),e("span",[this._v("證件號碼")]),this._v(","),e("span",[this._v("身份證信息")]),this._v("將無法修改,請確保該信息正確以及有效\n ")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"tip_text"},[this._v("\n 提交綁定後"),e("span",[this._v("實名信息")]),this._v(","),e("span",[this._v("證件號碼")]),this._v(","),e("span",[this._v("身份證信息")]),this._v("將無法修改,請確保該信息正確以及有效\n ")])}]};var zt=n("VU/8")(Dt,qt,!1,function(t){n("1yzm")},"data-v-13218c4e",null);e.default=zt.exports},kMPS:function(t,e,n){"use strict";function i(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,e,n,o){e=e||"&",n=n||"=";var a={};if("string"!=typeof t||0===t.length)return a;var s=/\+/g;t=t.split(e);var u=1e3;o&&"number"==typeof o.maxKeys&&(u=o.maxKeys);var c=t.length;u>0&&c>u&&(c=u);for(var h=0;h<c;++h){var l,p,f,d,v=t[h].replace(s,"%20"),g=v.indexOf(n);g>=0?(l=v.substr(0,g),p=v.substr(g+1)):(l=v,p=""),f=decodeURIComponent(l),d=decodeURIComponent(p),i(a,f)?r(a[f])?a[f].push(d):a[f]=[a[f],d]:a[f]=d}return a};var r=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},vruV:function(t,e,n){t.exports=n.p+"static/fonts/idcard-end-default.c62a85c.png"},xaZU:function(t,e,n){"use strict";var i=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,n,s){return e=e||"&",n=n||"=",null===t&&(t=void 0),"object"==typeof t?o(a(t),function(a){var s=encodeURIComponent(i(a))+n;return r(t[a])?o(t[a],function(t){return s+encodeURIComponent(i(t))}).join(e):s+encodeURIComponent(i(t[a]))}).join(e):s?encodeURIComponent(i(s))+n+encodeURIComponent(i(t)):""};var r=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function o(t,e){if(t.map)return t.map(e);for(var n=[],i=0;i<t.length;i++)n.push(e(t[i],i));return n}var a=Object.keys||function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.push(n);return e}}});
//# sourceMappingURL=2.17debe0f6011a97521e8.js.map