qiniu-js
Version:
Javascript SDK for Qiniu Resource (Cloud) Storage AP
1 lines • 123 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.qiniu=e():t.qiniu=e()}(window,(function(){return r={},t.m=e=[function(t,e){var n=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(67)("wks"),o=n(38),i=n(10).Symbol,u="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=r},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){t.exports=n(145)},function(t,e,n){var r=n(2),o=n(0),i=n(24),u=n(19),a=n(20),c="prototype",s=function(t,e,n){var f,l,p,h=t&s.F,d=t&s.G,v=t&s.S,g=t&s.P,y=t&s.B,m=t&s.W,b=d?o:o[e]||(o[e]={}),w=b[c],x=d?r:v?r[e]:(r[e]||{})[c];for(f in d&&(n=e),n)(l=!h&&x&&void 0!==x[f])&&a(b,f)||(p=l?x[f]:n[f],b[f]=d&&"function"!=typeof x[f]?n[f]:y&&l?i(p,r):m&&x[f]==p?function(t){function e(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)}return e[c]=t[c],e}(p):g&&"function"==typeof p?i(Function.call,p):p,g&&((b.virtual||(b.virtual={}))[f]=p,t&s.R&&w&&!w[f]&&u(w,f,p)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,e,n){var r=n(10),o=n(48),i=n(14),u=n(22),a=n(68),c="prototype",s=function(t,e,n){var f,l,p,h,d=t&s.F,v=t&s.G,g=t&s.S,y=t&s.P,m=t&s.B,b=v?r:g?r[e]||(r[e]={}):(r[e]||{})[c],w=v?o:o[e]||(o[e]={}),x=w[c]||(w[c]={});for(f in v&&(n=e),n)p=((l=!d&&b&&void 0!==b[f])?b:n)[f],h=m&&l?a(p,r):y&&"function"==typeof p?a(Function.call,p):p,b&&u(b,f,p,t&s.U),w[f]!=p&&i(w,f,h),y&&x[f]!=p&&(x[f]=p)};r.core=o,s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,e,n){var r=n(74)("wks"),o=n(52),i=n(2).Symbol,u="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=r},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default:t}}},function(t,e,n){t.exports=!n(25)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){t.exports=!n(17)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(27),o=Math.min;t.exports=function(t){return 0<t?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(7);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){var r=n(21),o=n(49);t.exports=n(11)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(13),o=n(106),i=n(65),u=Object.defineProperty;e.f=n(9)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return u(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(26);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){"use strict";var r=n(8);n(3)(e,"__esModule",{value:!0}),e.getChunks=function(t,e){var n=e*v;if(n>t.size)n=t.size;else for(;t.size>1e4*n;)n*=2;for(var r=[],o=Math.ceil(t.size/n),i=0;i<o;i++){var u=t.slice(n*i,i===o-1?t.size:n*(i+1));r.push(u)}return r},e.isMetaDataValid=function(t){return(0,i.default)(t).every((function(t){return 0===t.indexOf("x-qn-meta-")}))},e.isCustomVarsValid=function(t){return(0,i.default)(t).every((function(t){return 0===t.indexOf("x:")}))},e.sum=function(t){return t.reduce((function(t,e){return t+e}),0)},e.setLocalFileInfo=function(t,e){try{localStorage.setItem(t,(0,o.default)(e))}catch(t){window.console&&window.console.warn&&console.warn("setLocalFileInfo failed")}},e.createLocalKey=function(t,e,n){return"qiniu_js_sdk_upload_file_name_"+t+"_key_"+e+"_size_"+n},e.removeLocalFileInfo=function(t){try{localStorage.removeItem(t)}catch(t){window.console&&window.console.warn&&console.warn("removeLocalFileInfo failed")}},e.getLocalFileInfo=function(t){try{var e=localStorage.getItem(t);return e?JSON.parse(e):null}catch(t){return window.console&&window.console.warn&&console.warn("getLocalFileInfo failed"),null}},e.getAuthHeaders=g,e.getHeadersForChunkUpload=function(t){var e=g(t);return p({"content-type":"application/octet-stream"},e)},e.getHeadersForMkFile=function(t){var e=g(t);return p({"content-type":"application/json"},e)},e.createXHR=y,e.computeMd5=function(t){return h(this,void 0,void 0,(function(){var e,n;return d(this,(function(r){switch(r.label){case 0:return[4,m(t)];case 1:return e=r.sent(),(n=new f.default.ArrayBuffer).append(e),[2,n.end()]}}))}))},e.readAsArrayBuffer=m,e.request=function(t,e){return new c.default((function(n,r){var o,u=y();u.open(e.method,t),e.onCreate&&e.onCreate(u),e.headers&&(o=e.headers,(0,i.default)(o).forEach((function(t){u.setRequestHeader(t,o[t])}))),u.upload.addEventListener("progress",(function(t){t.lengthComputable&&e.onProgress&&e.onProgress({loaded:t.loaded,total:t.total})})),u.onreadystatechange=function(){var t=u.responseText;if(4===u.readyState){var e=u.getResponseHeader("x-reqId")||"";if(200!==u.status){var o="xhr request failed, code: "+u.status;return t&&(o+=" response: "+t),void r({code:u.status,message:o,reqId:e,isRequestError:!0})}try{n({data:JSON.parse(t),reqId:e})}catch(t){r(t)}}},u.send(e.body)}))},e.getPortFromUrl=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""},e.getDomainFromUrl=function(t){if(t&&t.match){var e=t.match(/^https?:\/\/([^:^/]*)/);return e?e[1]:""}return""},e.getAPIProtocol=function(){return"http:"!==window.location.protocol?"https:":"http:"},e.getPutPolicy=function(t){var e=t.split(":");return{ak:3<e.length?e[1]:e[0],bucket:JSON.parse((0,l.urlSafeBase64Decode)(e[e.length-1])).scope.split(":")[0]}},e.createObjectURL=function(t){return(window.URL||window.webkitURL||window.mozURL).createObjectURL(t)},e.getTransform=function(t,e){var n=t.width,r=t.height;switch(e){case 1:return{width:n,height:r,matrix:[1,0,0,1,0,0]};case 2:return{width:n,height:r,matrix:[-1,0,0,1,n,0]};case 3:return{width:n,height:r,matrix:[-1,0,0,-1,n,r]};case 4:return{width:n,height:r,matrix:[1,0,0,-1,0,r]};case 5:return{width:r,height:n,matrix:[0,1,1,0,0,0]};case 6:return{width:r,height:n,matrix:[0,1,-1,0,r,0]};case 7:return{width:r,height:n,matrix:[0,-1,-1,0,r,n]};case 8:return{width:r,height:n,matrix:[0,-1,1,0,0,n]};default:throw new Error("orientation "+e+" is unavailable")}},e.MB=void 0,n(110),n(159),n(42);var o=r(n(115));n(163),n(165);var i=r(n(59));n(168);var u=r(n(29)),a=r(n(30)),c=r(n(31)),s=r(n(35)),f=r(n(197)),l=n(62),p=function(){return(p=s.default||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},h=function(t,e,n,r){return new(n=n||c.default)((function(o,i){function u(t){try{c(r.next(t))}catch(t){i(t)}}function a(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):((e=t.value)instanceof n?e:new n((function(t){t(e)}))).then(u,a)}c((r=r.apply(t,e||[])).next())}))},d=function(t,e){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},c={next:s(0),throw:s(1),return:s(2)};return"function"==typeof a.default&&(c[u.default]=function(){return this}),c;function s(u){return function(a){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=0<(o=i.trys).length&&o[o.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=e.call(t,i)}catch(t){u=[6,t],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,a])}}},v=Math.pow(1024,2);function g(t){return{Authorization:"UpToken "+t}}function y(){return window.XMLHttpRequest?new XMLHttpRequest:window.ActiveXObject("Microsoft.XMLHTTP")}function m(t){return new c.default((function(e,n){var r=new FileReader;r.onload=function(t){var r;t.target?(r=t.target.result,e(r)):n(new Error("progress event target is undefined"))},r.onerror=function(){n(new Error("fileReader read failed"))},r.readAsArrayBuffer(t)}))}e.MB=v},function(t,e,n){var r=n(15),o=n(47);t.exports=n(9)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(16),o=n(107),i=n(66),u=Object.defineProperty;e.f=n(11)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return u(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(10),o=n(14),i=n(32),u=n(38)("src"),a=n(148),c="toString",s=(""+a).split(c);n(48).inspectSource=function(t){return a.call(t)},(t.exports=function(t,e,n,a){var c="function"==typeof n;c&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(c&&(i(n,u)||o(n,u,t[e]?""+t[e]:s.join(String(e)))),t===r?t[e]=n:a?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,c,(function(){return"function"==typeof this&&this[u]||a.call(this)}))},function(t,e,n){var r=n(69),o=n(70);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(37);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(0<t?r:n)(t)}},function(t,e,n){var r=n(34);t.exports=function(t){return Object(r(t))}},function(t,e,n){t.exports=n(169)},function(t,e,n){t.exports=n(177)},function(t,e,n){t.exports=n(183)},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(109),o=n(75);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){t.exports=n(195)},function(t,e){t.exports={}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=!0},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){"use strict";var r=n(5),o=n(55)(0),i=n(43)([].forEach,!0);r(r.P+r.F*!i,"Array",{forEach:function(t,e){return o(this,t,e)}})},function(t,e,n){"use strict";var r=n(17);t.exports=function(t,e){return!!t&&r((function(){e?t.call(null,(function(){}),1):t.call(null)}))}},function(t,e,n){var r=n(70);t.exports=function(t){return Object(r(t))}},function(t,e){t.exports={}},function(t,e,n){var r=n(15).f,o=n(20),i=n(6)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){t.exports=!1},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(53),o=n(1)("toStringTag"),i="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:i?r(e):"Object"==(u=r(e))&&"function"==typeof e.callee?"Arguments":u}},function(t,e,n){var r=n(68),o=n(81),i=n(28),u=n(12),a=n(160);t.exports=function(t,e){var n=1==t,c=2==t,s=3==t,f=4==t,l=6==t,p=5==t||l,h=e||a;return function(e,a,d){for(var v,g,y=i(e),m=o(y),b=r(a,d,3),w=u(m.length),x=0,S=n?h(e,w):c?h(e,0):void 0;x<w;x++)if((p||x in m)&&(g=b(v=m[x],x,y),t))if(n)S[x]=g;else if(g)switch(t){case 3:return!0;case 5:return v;case 6:return x;case 2:S.push(v)}else if(f)return!1;return l?-1:s||f?f:S}}},function(t,e,n){var r=n(57),o=n(12),i=n(58);t.exports=function(t){return function(e,n,u){var a,c=r(e),s=o(c.length),f=i(u,s);if(t&&n!=n){for(;f<s;)if((a=c[f++])!=a)return!0}else for(;f<s;f++)if((t||f in c)&&c[f]===n)return t||f||0;return!t&&-1}}},function(t,e,n){var r=n(81),o=n(34);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(27),o=Math.max,i=Math.min;t.exports=function(t,e){return(t=r(t))<0?o(t+e,0):i(t,e)}},function(t,e,n){t.exports=n(166)},function(t,e,n){function r(t){a(t,o,{value:{i:"O"+ ++c,w:{}}})}var o=n(52)("meta"),i=n(7),u=n(20),a=n(15).f,c=0,s=Object.isExtensible||function(){return!0},f=!n(25)((function(){return s(Object.preventExtensions({}))})),l=t.exports={KEY:o,NEED:!1,fastKey:function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!u(t,o)){if(!s(t))return"F";if(!e)return"E";r(t)}return t[o].i},getWeak:function(t,e){if(!u(t,o)){if(!s(t))return!0;if(!e)return!1;r(t)}return t[o].w},onFreeze:function(t){return f&&l.NEED&&s(t)&&!u(t,o)&&r(t),t}}},function(t,e,n){var r=n(24),o=n(185),i=n(186),u=n(13),a=n(71),c=n(187),s={},f={};(e=t.exports=function(t,e,n,l,p){var h,d,v,g,y=p?function(){return t}:c(t),m=r(n,l,e?2:1),b=0;if("function"!=typeof y)throw TypeError(t+" is not iterable!");if(i(y)){for(h=a(t.length);b<h;b++)if((g=e?m(u(d=t[b])[0],d[1]):m(t[b]))===s||g===f)return g}else for(v=y.call(t);!(d=v.next()).done;)if((g=o(v,m,d.value,e))===s||g===f)return g}).BREAK=s,e.RETURN=f},function(t,e,n){"use strict";function r(t){if(null==t)return"";for(var e,n=t+"",r="",o=e=0,i=n.length,u=0;u<i;u++){var a=n.charCodeAt(u),c=null;if(a<128)e++;else if(127<a&&a<2048)c=String.fromCharCode(a>>6|192,63&a|128);else if(0<(63488&a^55296))c=String.fromCharCode(a>>12|224,a>>6&63|128,63&a|128);else{if(0<(64512&a^55296))throw new RangeError("Unmatched trail surrogate at "+u);var s=n.charCodeAt(++u);if(0<(64512&s^56320))throw new RangeError("Unmatched lead surrogate at "+(u-1));a=((1023&a)<<10)+(1023&s)+65536,c=String.fromCharCode(a>>18|240,a>>12&63|128,a>>6&63|128,63&a|128)}null!==c&&(o<e&&(r+=n.slice(o,e)),r+=c,o=e=u+1)}return o<e&&(r+=n.slice(o,i)),r}function o(t){var e,n,o,i,u,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c=0,s=0,f="",l=[];if(!t)return t;for(t=r(t+"");e=(u=t.charCodeAt(c++)<<16|t.charCodeAt(c++)<<8|t.charCodeAt(c++))>>18&63,n=u>>12&63,o=u>>6&63,i=63&u,l[s++]=a.charAt(e)+a.charAt(n)+a.charAt(o)+a.charAt(i),c<t.length;);switch(f=l.join(""),t.length%3){case 1:f=f.slice(0,-2)+"==";break;case 2:f=f.slice(0,-1)+"="}return f}function i(t){var e,n,r,o,i,u,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c=0,s=0,f=[];if(!t)return t;for(t+="";e=(u=a.indexOf(t.charAt(c++))<<18|a.indexOf(t.charAt(c++))<<12|(o=a.indexOf(t.charAt(c++)))<<6|(i=a.indexOf(t.charAt(c++))))>>16&255,n=u>>8&255,r=255&u,f[s++]=64===o?String.fromCharCode(e):64===i?String.fromCharCode(e,n):String.fromCharCode(e,n,r),c<t.length;);return f.join("")}n(3)(e,"__esModule",{value:!0}),e.utf8Encode=r,e.base64Encode=o,e.base64Decode=i,e.urlSafeBase64Encode=function(t){return(t=o(t)).replace(/\//g,"_").replace(/\+/g,"-")},e.urlSafeBase64Decode=function(t){return i(t=t.replace(/_/g,"/").replace(/-/g,"+"))},n(198)},function(t,e,n){var r=n(200),o=n(3),i=n(128),u=n(203);function a(){if("function"!=typeof u)return null;var t=new u;return a=function(){return t},t}t.exports=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!=typeof t)return{default:t};var e=a();if(e&&e.has(t))return e.get(t);var n,u={},c=o&&r;for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&((n=c?r(t,s):null)&&(n.get||n.set)?o(u,s,n):u[s]=t[s]);return u.default=t,e&&e.set(t,u),u}},function(t,e,n){var r=n(7),o=n(2).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){var r=n(7);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(26);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(48),o=n(10),i="__core-js_shared__",u=o[i]||(o[i]={});(t.exports=function(t,e){return u[t]||(u[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(50)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(51);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(39);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(72),o=Math.min;t.exports=function(t){return 0<t?o(r(t),9007199254740991):0}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(0<t?r:n)(t)}},function(t,e,n){var r=n(74)("keys"),o=n(52);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(0),o=n(2),i="__core-js_shared__",u=o[i]||(o[i]={});(t.exports=function(t,e){return u[t]||(u[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(40)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){"use strict";var r=n(113)(!0);t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},function(t,e,n){"use strict";var r=n(54),o=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var i=n.call(t,e);if("object"!=typeof i)throw new TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},function(t,e,n){"use strict";var r,o,i=n(79),u=RegExp.prototype.exec,a=String.prototype.replace,c=u,s="lastIndex",f=(r=/a/,o=/b*/g,u.call(r,"a"),u.call(o,"a"),0!==r[s]||0!==o[s]),l=void 0!==/()??/.exec("")[1];(f||l)&&(c=function(t){var e,n,r,o,c=this;return l&&(n=new RegExp("^"+c.source+"$(?!\\s)",i.call(c))),f&&(e=c[s]),r=u.call(c,t),f&&r&&(c[s]=c.global?r.index+r[0].length:e),l&&r&&1<r.length&&a.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r}),t.exports=c},function(t,e,n){"use strict";var r=n(16);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){"use strict";n(158);var r=n(22),o=n(14),i=n(17),u=n(34),a=n(1),c=n(78),s=a("species"),f=!i((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),l=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var p,h,d,v,g=a(t),y=!i((function(){var e={};return e[g]=function(){return 7},7!=""[t](e)})),m=y?!i((function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[s]=function(){return n}),n[g](""),!e})):void 0;y&&m&&("replace"!==t||f)&&("split"!==t||l)||(p=/./[g],d=(h=n(u,g,""[t],(function(t,e,n,r,o){return e.exec===c?y&&!o?{done:!0,value:p.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}})))[0],v=h[1],r(String.prototype,t,d),o(RegExp.prototype,g,2==e?function(t,e){return v.call(t,this,e)}:function(t){return v.call(t,this)}))}},function(t,e,n){var r=n(53);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){t.exports=n(19)},function(t,e,n){function r(){}var o=n(13),i=n(172),u=n(75),a=n(73)("IE_PROTO"),c="prototype",s=function(){var t,e=n(64)("iframe"),r=u.length;for(e.style.display="none",n(119).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),s=t.F;r--;)delete s[c][u[r]];return s()};t.exports=Object.create||function(t,e){var n;return null!==t?(r[c]=o(t),n=new r,r[c]=null,n[a]=t):n=s(),void 0===e?n:i(n,e)}},function(t,e,n){n(174);for(var r=n(2),o=n(19),i=n(45),u=n(6)("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<a.length;c++){var s=a[c],f=r[s],l=f&&f.prototype;l&&!l[u]&&o(l,u,s),i[s]=i.Array}},function(t,e,n){e.f=n(6)},function(t,e,n){var r=n(2),o=n(0),i=n(40),u=n(85),a=n(15).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=!i&&r.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:u.f(t)})}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(41),o=n(47),i=n(23),u=n(65),a=n(20),c=n(106),s=Object.getOwnPropertyDescriptor;e.f=n(9)?s:function(t,e){if(t=i(t),e=u(e,!0),c)try{return s(t,e)}catch(t){}if(a(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e){},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){"use strict";var r=n(37);function o(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)}t.exports.f=function(t){return new o(t)}},function(t,e,n){var r=n(19);t.exports=function(t,e,n){for(var o in e)n&&t[o]?t[o]=e[o]:r(t,o,e[o]);return t}},function(t,e,n){var r=n(24),o=n(69),i=n(44),u=n(71),a=n(206);t.exports=function(t,e){var n=1==t,c=2==t,s=3==t,f=4==t,l=6==t,p=5==t||l,h=e||a;return function(e,a,d){for(var v,g,y=i(e),m=o(y),b=r(a,d,3),w=u(m.length),x=0,S=n?h(e,w):c?h(e,0):void 0;x<w;x++)if((p||x in m)&&(g=b(v=m[x],x,y),t))if(n)S[x]=g;else if(g)switch(t){case 3:return!0;case 5:return v;case 6:return x;case 2:S.push(v)}else if(f)return!1;return l?-1:s||f?f:S}}},function(t,e,n){var r=n(7);t.exports=function(t,e){if(!r(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e,n){"use strict";var r=n(96),o=n(216),i=n(36),u=n(57);t.exports=n(130)(Array,"Array",(function(t,e){this._t=u(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e,n){var r=n(1)("unscopables"),o=Array.prototype;null==o[r]&&n(14)(o,r,{}),t.exports=function(t){o[r][t]=!0}},function(t,e,n){var r=n(67)("keys"),o=n(38);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(21).f,o=n(32),i=n(1)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){"use strict";var r=n(54),o={};o[n(1)("toStringTag")]="z",o+""!="[object z]"&&n(22)(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},function(t,e,n){t.exports=n(221)},function(t,e,n){t.exports=n(223)},function(t,e,n){"use strict";var r=n(63),o=n(8);n(3)(e,"__esModule",{value:!0}),e.getUploadUrl=function(t,e){return h(this,void 0,void 0,(function(){var n,r,o,i,u;return d(this,(function(a){switch(a.label){case 0:return n=s.getAPIProtocol(),t.uphost?[2,n+"//"+t.uphost]:t.region?(r=f.regionUphostMap[t.region],o=t.useCdnDomain?r.cdnUphost:r.srcUphost,[2,n+"//"+o]):[4,function(t){return h(this,void 0,void 0,(function(){var e,n;return d(this,(function(r){return e=s.getPutPolicy(t),n=s.getAPIProtocol()+"//api.qiniu.com/v2/query?ak="+e.ak+"&bucket="+e.bucket,[2,s.request(n,{method:"GET"})]}))}))}(e)];case 1:return i=a.sent(),u=i.data.up.acc.main,[2,n+"//"+u[0]]}}))}))},e.initUploadParts=function(t,e,n,r){var o=r+"/buckets/"+e+"/objects/"+(0,l.urlSafeBase64Encode)(n)+"/uploads";return s.request(o,{method:"POST",headers:s.getAuthHeaders(t)})},e.uploadChunk=function(t,e,n,r,o){var i=v(s.getPutPolicy(t).bucket,e,r)+"/"+n;return s.request(i,p(p({},o),{method:"PUT",headers:s.getHeadersForChunkUpload(t)}))},e.uploadComplete=function(t,e,n,r){var o=v(s.getPutPolicy(t).bucket,e,n);return s.request(o,p(p({},r),{method:"POST",headers:s.getHeadersForMkFile(t)}))},e.deleteUploadedChunks=function(t,e,n){var r=v(s.getPutPolicy(t).bucket,e,n);return s.request(r,{method:"DELETE",headers:s.getAuthHeaders(t)})};var i=o(n(29)),u=o(n(30)),a=o(n(31)),c=o(n(35)),s=r(n(18)),f=n(136),l=n(62),p=function(){return(p=c.default||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},h=function(t,e,n,r){return new(n=n||a.default)((function(o,i){function u(t){try{c(r.next(t))}catch(t){i(t)}}function a(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):((e=t.value)instanceof n?e:new n((function(t){t(e)}))).then(u,a)}c((r=r.apply(t,e||[])).next())}))},d=function(t,e){var n,r,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},c={next:s(0),throw:s(1),return:s(2)};return"function"==typeof u.default&&(c[i.default]=function(){return this}),c;function s(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=0<(o=a.trys).length&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};function v(t,e,n){var r=n.url,o=n.id;return r+"/buckets/"+t+"/objects/"+(0,l.urlSafeBase64Encode)(e)+"/uploads/"+o}},function(t,e,n){"use strict";var r=n(63),o=n(8);n(3)(e,"__esModule",{value:!0}),e.default=e.DEFAULT_CHUNK_SIZE=void 0,n(42),n(129);var i=o(n(29)),u=o(n(30)),a=o(n(31)),c=o(n(35)),s=r(n(18)),f=n(103),l=function(){return(l=c.default||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},p=function(t,e){var n,r,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},c={next:s(0),throw:s(1),return:s(2)};return"function"==typeof u.default&&(c[i.default]=function(){return this}),c;function s(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=0<(o=a.trys).length&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};e.DEFAULT_CHUNK_SIZE=4;var h=Math.pow(1024,3),d=(v.prototype.putFile=function(){return function(t,e,n,r){return new(n=n||a.default)((function(o,i){function u(t){try{c(r.next(t))}catch(t){i(t)}}function a(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):((e=t.value)instanceof n?e:new n((function(t){t(e)}))).then(u,a)}c((r=r.apply(t,e||[])).next())}))}(this,void 0,void 0,(function(){var t,e,n,r,o,i,u,a;return p(this,(function(c){switch(c.label){case 0:if(this.aborted=!1,this.putExtra.fname||(this.putExtra.fname=this.file.name),this.file.size>1e4*h)throw t=new Error("file size exceed maximum value 10000G"),this.onError(t),t;if(this.putExtra.customVars&&!s.isCustomVarsValid(this.putExtra.customVars))throw t=new Error("customVars key should start width x:"),this.onError(t),t;if(this.putExtra.metadata&&!s.isMetaDataValid(this.putExtra.metadata))throw t=new Error("metadata key should start with x-qn-meta-"),this.onError(t),t;c.label=1;case 1:return c.trys.push([1,4,,5]),e=this,[4,(0,f.getUploadUrl)(this.config,this.token)];case 2:return e.uploadUrl=c.sent(),this.uploadAt=(new Date).getTime(),[4,this.run()];case 3:return n=c.sent(),this.onComplete(n.data),this.config.disableStatisticsReport||this.sendLog(n.reqId,200),[2,n];case 4:if(r=c.sent(),this.clear(),r.isRequestError&&!this.config.disableStatisticsReport&&(o=this.aborted?"":r.reqId,i=this.aborted?-2:r.code,this.sendLog(o,i)),u=r.isRequestError&&0===r.code&&!this.aborted,a=++this.retryCount<=this.config.retryCount,u&&a||612===r.code)return[2,this.putFile()];throw this.onError(r),r;case 5:return[2]}}))}))},v.prototype.clear=function(){this.xhrList.forEach((function(t){return t.abort()})),this.xhrList=[]},v.prototype.stop=function(){this.clear(),this.aborted=!0},v.prototype.addXhr=function(t){this.xhrList.push(t)},v.prototype.sendLog=function(t,e){this.statisticsLogger.log({code:e,reqId:t,host:s.getDomainFromUrl(this.uploadUrl),remoteIp:"",port:s.getPortFromUrl(this.uploadUrl),duration:((new Date).getTime()-this.uploadAt)/1e3,time:Math.floor(this.uploadAt/1e3),bytesSent:this.progress?this.progress.total.loaded:0,upType:"jssdk-h5",size:this.file.size},this.token)},v.prototype.getProgressInfoItem=function(t,e){return{loaded:t,size:e,percent:t/e*100}},v);function v(t,e,n){this.statisticsLogger=n,this.xhrList=[],this.aborted=!1,this.retryCount=0,this.config=l({useCdnDomain:!0,disableStatisticsReport:!1,retryCount:3,checkByMD5:!1,uphost:"",forceDirect:!1,chunkSize:4,concurrentRequestLimit:3},t.config),this.putExtra=l({fname:""},t.putExtra),this.file=t.file,this.key=t.key,this.token=t.token,this.onData=e.onData,this.onError=e.onError,this.onComplete=e.onComplete;try{this.bucket=s.getPutPolicy(this.token).bucket}catch(t){this.onError(t)}}e.default=d},function(t,e,n){"use strict";var r=n(28),o=n(58),i=n(12);t.exports=function(t,e,n){for(var u=r(this),a=i(u.length),c=arguments.length,s=o(1<c?e:void 0,a),f=2<c?n:void 0,l=void 0===f?a:o(f,a);s<l;)u[s++]=t;return u}},function(t,e,n){t.exports=!n(9)&&!n(25)((function(){return 7!=Object.defineProperty(n(64)("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){t.exports=!n(11)&&!n(17)((function(){return 7!=Object.defineProperty(n(108)("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(26),o=n(10).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){var r=n(20),o=n(23),i=n(156)(!1),u=n(73)("IE_PROTO");t.exports=function(t,e){var n,a=o(t),c=0,s=[];for(n in a)n!=u&&r(a,n)&&s.push(n);for(;e.length>c;)r(a,n=e[c++])&&(~i(s,n)||s.push(n));return s}},function(t,e,n){"use strict";var r=n(111),o=n(16),i=n(112),u=n(76),a=n(12),c=n(77),s=n(78),f=n(17),l=Math.min,p=[].push,h="split",d="length",v="lastIndex",g=4294967295,y=!f((function(){RegExp(g,"y")}));n(80)("split",2,(function(t,e,n,f){var m="c"=="abbc"[h](/(b)*/)[1]||4!="test"[h](/(?:)/,-1)[d]||2!="ab"[h](/(?:ab)*/)[d]||4!="."[h](/(.?)(.?)/)[d]||1<"."[h](/()()/)[d]||""[h](/.?/)[d]?function(t,e){var o=String(this);if(void 0===t&&0===e)return[];if(!r(t))return n.call(o,t,e);for(var i,u,a,c=[],f=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),l=0,h=void 0===e?g:e>>>0,y=new RegExp(t.source,f+"g");(i=s.call(y,o))&&!(l<(u=y[v])&&(c.push(o.slice(l,i.index)),1<i[d]&&i.index<o[d]&&p.apply(c,i.slice(1)),a=i[0][d],l=u,c[d]>=h));)y[v]===i.index&&y[v]++;return l===o[d]?!a&&y.test("")||c.push(""):c.push(o.slice(l)),c[d]>h?c.slice(0,h):c}:"0"[h](void 0,0)[d]?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n;return[function(n,r){var o=t(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,o,r):m.call(String(o),n,r)},function(t,e){var r=f(m,t,this,e,m!==n);if(r.done)return r.value;var s=o(t),p=String(this),h=i(s,RegExp),d=s.unicode,v=(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(y?"y":"g"),b=new h(y?s:"^(?:"+s.source+")",v),w=void 0===e?g:e>>>0;if(0==w)return[];if(0===p.length)return null===c(b,p)?[p]:[];for(var x=0,S=0,_=[];S<p.length;){b.lastIndex=y?S:0;var P,E=c(b,y?p:p.slice(S));if(null===E||(P=l(a(b.lastIndex+(y?0:S)),p.length))===x)S=u(p,S,d);else{if(_.push(p.slice(x,S)),_.length===w)return _;for(var O=1;O<=E.length-1;O++)if(_.push(E[O]),_.length===w)return _;S=x=P}}return _.push(p.slice(x)),_}]}))},function(t,e,n){var r=n(26),o=n(53),i=n(1)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},function(t,e,n){var r=n(16),o=n(51),i=n(1)("species");t.exports=function(t,e){var n,u=r(t).constructor;return void 0===u||null==(n=r(u)[i])?e:o(n)}},function(t,e,n){var r=n(27),o=n(34);t.exports=function(t){return function(e,n){var i,u,a=String(o(e)),c=r(n),s=a.length;return c<0||s<=c?t?"":void 0:(i=a.charCodeAt(c))<55296||56319<i||c+1===s||(u=a.charCodeAt(c+1))<56320||57343<u?t?a.charAt(c):i:t?a.slice(c,c+2):u-56320+(i-55296<<10)+65536}}},function(t,e,n){var r=n(53);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){t.exports=n(162)},function(t,e,n){var r=n(4),o=n(0),i=n(25);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],u={};u[t]=e(n),r(r.S+r.F*i((function(){n(1)})),"Object",u)}},function(t,e,n){"use strict";var r=n(170)(!0);n(118)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})}))},function(t,e,n){"use strict";function r(){return this}var o=n(40),i=n(4),u=n(82),a=n(19),c=n(45),s=n(171),f=n(46),l=n(173),p=n(6)("iterator"),h=!([].keys&&"next"in[].keys()),d="values";t.exports=function(t,e,n,v,g,y,m){function b(t){if(!h&&t in O)return O[t];switch(t){case"keys":case d:return function(){return new n(this,t)}}return function(){return new n(this,t)}}s(n,e,v);var w,x,S,_=e+" Iterator",P=g==d,E=!1,O=t.prototype,k=O[p]||O["@@iterator"]||g&&O[g],C=k||b(g),I=g?P?b("entries"):C:void 0,A="Array"==e&&O.entries||k;if(A&&(S=l(A.call(new t)))!==Object.prototype&&S.next&&(f(S,_,!0),o||"function"==typeof S[p]||a(S,p,r)),P&&k&&k.name!==d&&(E=!0,C=function(){return k.call(this)}),o&&!m||!h&&!E&&O[p]||a(O,p,C),c[e]=C,c[_]=r,g)if(w={values:P?C:b(d),keys:y?C:b("keys"),entries:I},m)for(x in w)x in O||u(O,x,w[x]);else i(i.P+i.F*(h||E),e,w);return w}},function(t,e,n){var r=n(2).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(39);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(109),o=n(75).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(39),o=n(6)("toStringTag"),i="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:i?r(e):"Object"==(u=r(e))&&"function"==typeof e.callee?"Arguments":u}},function(t,e,n){var r=n(13),o=n(37),i=n(6)("species");t.exports=function(t,e){var n,u=r(t).constructor;return void 0===u||null==(n=r(u)[i])?e:o(n)}},function(t,e,n){function r(){var t,e=+this;b.hasOwnProperty(e)&&(t=b[e],delete b[e],t())}function o(t){r.call(t.data)}var i,u,a,c=n(24),s=n(188),f=n(119),l=n(64),p=n(2),h=p.process,d=p.setImmediate,v=p.clearImmediate,g=p.MessageChannel,y=p.Dispatch,m=0,b={},w="onreadystatechange";d&&v||(d=function(t){for(var e=[],n=1;n<arguments.length;)e.push(arguments[n++]);return b[++m]=function(){s("function"==typeof t?t:Function(t),e)},i(m),m},v=function(t){delete b[t]},"process"==n(39)(h)?i=function(t){h.nextTick(c(r,t,1))}:y&&y.now?i=function(t){y.now(c(r,t,1))}:g?(a=(u=new g).port2,u.port1.onmessage=o,i=c(a.postMessage,a,1)):p.addEventListener&&"function"==typeof postMessage&&!p.importScripts?(i=function(t){p.postMessage(t+"","*")},p.addEventListener("message",o,!1)):i=w in l("script")?function(t){f.appendChild(l("script"))[w]=function(){f.removeChild(this),r.call(t)}}:function(t){setTimeout(c(r,t,1),0)}),t.exports={set:d,clear:v}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){var r=n(13),o=n(7),i=n(91);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";var r=n(9),o=n(33),i=n(87),u=n(41),a=n(44),c=n(69),s=Object.assign;t.exports=!s||n(25)((function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=s({},t)[n]||Object.keys(s({},e)).join("")!=r}))?function(t,e){for(var n=a(t),s=arguments.length,f=1,l=i.f,p=u.f;f<s;)for(var h,d=c(arguments[f++]),v=l?o(d).concat(l(d)):o(d),g=v.length,y=0;y<g;)h=v[y++],r&&!p.call(d,h)||(n[h]=d[h]);return n}:s},function(t,e,n){var r=n(29),o=n(30);function i(e){return t.exports=i="function"==typeof o&&"symbol"==typeof r?function(t){return typeof t}:function(t){return t&&"function"==typeof o&&t.constructor===o&&t!==o.prototype?"symbol":typeof t},i(e)}t.exports=i},function(t,e,n){var r=n(21).f,o=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in o||n(11)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(t){return""}}})},function(t,e,n){"use strict";function r(){return this}var o=n(50),i=n(5),u=n(22),a=n(14),c=n(36),s=n(217),f=n(99),l=n(134),p=n(1)("iterator"),h=!([].keys&&"next"in[].keys()),d="values";t.exports=function(t,e,n,v,g,y,m){function b(t){if(!h&&t in O)return O[t];switch(t){case"keys":case d:return function(){return new n(this,t)}}return function(){return new n(this,t)}}s(n,e,v);var w,x,S,_=e+" Iterator",P=g==d,E=!1,O=t.prototype,k=O[p]||O["@@iterator"]||g&&O[g],C=k||b(g),I=g?P?b("entries"):C:void 0,A="Array"==e&&O.entries||k;if(A&&(S=l(A.call(new t)))!==Object.prototype&&S.next&&(f(S,_,!0),o||"function"==typeof S[p]||a(S,p,r)),P&&k&&k.name!==d&&(E=!0,C=function(){return k.call(this)}),o&&!m||!h&&!E&&O[p]||a(O,p,C),c[e]=C,c[_]=r,g)if(w={values:P?C:b(d),keys:y?C:b("keys"),entries:I},m)for(x in w)x in O||u(O,x,w[x]);else i(i.P+i.F*(h||E),e,w);return w}},function(t,e,n){function r(){}var o=n(16),i=n(218),u=n(98),a=n(97)("IE_PROTO"),c="prototype",s=function(){var t,e=n(108)("iframe"),r=u.length;for(e.style.display="none",n(219).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),s=t.F;r--;)delete s[c][u[r]];return s()};t.exports=Object.create||function(t,e){var n;return null!==t?(r[c]=o(t),n=new r,r[c]=null,n[a]=t):n=s(),void 0===e?n:i(n,e)}},function(t,e,n){var r=n(133),o=n(98);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(32),o=n(57),i=n(56)(!1),u=n(97)("IE_PROTO");t.exports=function(t,e){var n,a=o(t),c=0,s=[];for(n in a)n!=u&&r(a,n)&&s.push(n);for(;e.length>c;)r(a,n=e[c++])&&(~i(s,n)||s.push(n));return s}},function(t,e,n){var r=n(32),o=n(28),i=n(97)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,e,n){"use strict";var r=n(5),o=n(55)(1);r(r.P+r.F*!n(43)([].map,!0),"Array",{map:function(t,e){return o(this,t,e)}})},function(t,e,n){"use strict";var r;n(3)(e,"__esModule",{value:!0}),e.regionUphostMap=e.region=void 0;var o={z0:"z0",z1:"z1",z2:"z2",na0:"na0",as0:"as0"},i=((r={})[(e.region=o).z0]={srcUphost:"up.qiniup.com",cdnUphost:"upload.qiniup.com"},r[o.z1]={srcUphost:"up-z1.qiniup.com",cdnUphost:"upload-z1.qiniup.com"},r[o.z2]={srcUphost:"up-z2.qiniup.com",cdnUphost:"upload-z2.qiniup.com"},r[o.na0]={srcUphost:"up-na0.qiniup.com",cdnUphost:"upload-na0.qiniup.com"},r[o.as0]={srcUphost:"up-as0.qiniup.com",cdnUphost:"upload-as0.qiniup.com"},r);e.regionUphostMap=i},function(t,e,n){"use strict";function r(t){n(22)(RegExp.prototype,a,t,!0)}n(229);var o=n(16),i=n(79),u=n(11),a="toString",c=/./[a];n(17)((function(){return"/a/b"!=c.call({source:"a",flags:"b"})}))?r((function(){var t=o(this);return"/".concat(t.source,"/","flags"in t?t.flags:!u&&t instanceof RegExp?i.call(t):void 0)})):c.name!=a&&r((function(){return c.call(this)}))},function(t,e,n){var r=Date.prototype,o="Invalid Date",i="toString",u=r[i],a=r.getTime;new Date(NaN)+""!=o&&n(22)(r,i,(function(){var t=a.call(this);return t==t?u.call(this):o}))},function(t,e,n){for(var r,o=n(10),i=n(14),u=n(38),a=u("typed_array"),c=u("view"),s=!(!o.ArrayBuffer||!o.DataView),f=s,l=0,p="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");l<9;)(r=o[p[l++]])?(i(r.prototype,a,!0),i(r.prototype,c,!0)):f=!1;t.exports={ABV:s,CONSTR:f,TYPED:a,VIEW:c}},function(t,e,n){var r=n(22);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(27),o=n(12);t.exports=function(t){if(void 0===t)return 0;var e=r(t),n=o(e);if(e!==n)throw RangeError("Wrong length!");return n}},function(t,e,n){var r=n(133),o=n(98).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){"use strict";var r=n(8),o=n(3);o(e,"__esModule",{value:!0}),e.upload=function(t,e,n,r,o){var i={file:t,key:e,token:n,putExtra:r,config:o};return new a.Observable((function(t){var e=(0,u.default)(i,{onData:function(e){return t.next(e)},onError:function(e){return t.error(e)},onComplete:function(e){return t.complete(e)}},d);return e.putFile(),e.stop.bind(e)}))},o(e,"compressImage",{enumerable:!0,get:function(){return c.default}}),o(e,"getHeadersForMkFile",{enumerable:!0,get:function(){return s.getHeadersForMkFile}}),o(e,"getHeadersForChunkUpload",{enumerable:!0,get:function(){return s.getHeadersForChunkUpload}}),o(e,"urlSafeBase64Encode",{enumerable:!0,get:function(){return f.urlSafeBase64Encode}}),o(e,"urlSafeBase64Decode",{enumerable:!0,get:function(){return f.urlSafeBase64Decode}}),o(e,"deleteUploadedChunks",{enumerable:!0,get:function(){return l.deleteUploadedChunks}}),o(e,"getUploadUrl",{enumerable:!0,get:function(){return l.getUploadUrl}}),o(e,"imageMogr2",{enumerable:!0,get:function(){return p.imageMogr2}}),o(e,"watermark",{enumerable:!0,get:function(){return p.watermark}}),o(e,"imageInfo",{enumerable:!0,get:function(){return p.imageInfo}}),o(e,"exif",{enumerable:!0,get:function(){return p.exif}}),o(e,"pipeline",{enumerable:!0,get:function(){return p.pipeline}}),o(e,"region",{enumerable:!0,get:function(){return h.region}}),n(147);var i=r(n(151)),u=r(n(199)),a=n(230),c=r(n(231)),s=n(18),f=n(62),l=n(103),p=n(247),h=n(136),d=new i.default},function(t,e,n){n(146);var r=n(0).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},function(t,e,n){var r=n(4);r(r.S+r.F*!n(9),"Object",{defineProperty:n(15).f})},function(t,e,n){var r=n(5);r(r.P,"Function",{bind:n(149)})},function(t,e,n){t.exports=n(67)("native-function-to-string",Function.toString)},function(t,e,n){"use strict";var r=n(51),o=n(26),i=n(150),u=[].slice,a={};t.exports=Function.bind||function(t){var e=r(this),n=u.call(arguments,1),c=function(){var r=n.concat(u.call(arguments));return this instanceof c?function(t,e,n){if(!(e in a)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";a[e]=Function("F,a","return new F("+r.join(",")+")")}return a[e](t,n)}(e,r.length,r):i(e,r,t)};return o(e.prototype)&&(c.prototype=e.prototype),c}},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){"use strict";var r=n(8);n(3)(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(152)),i=n(18),u=(a.prototype.log=function(t,e){var n=(0,o.default)(t).join(",");this.send(n,e,0)},a.prototype.send=function(t,e,n){var r=this,o=(0,i.createXHR)();o.open("POST","https://uplog.qbox.me/log/3"),o.setRequestHeader("Content-type","application/x-www-form-urlencoded"),o.setRequestHeader("Authorization","UpToken "+e),o.onreadystatechange=function(){4===o.readyState&&200!==o.status&&++n<=3&&r.send(t,e,n)},o.send(t)},a);function a(){}e.default=u},function(t,e,n){t.exports=n(153)},function(t,e,n){n(154),t.exports=n(0).Object.values},function(t,e,n){var r=n(4),o=n(155)(!1);r(r.S,"Object",{values:function(t){return o(t)}})},function(t,e,n){var r=n(9),o=n(33),i=n(23),u=n(41).f;t.exports=function(t){return function(e){for(var n,a=i(e),c=o(a),s=c.length,f=0,l=[];f<s;)n=c[f++],r&&!u.call(a,n)||l.push(t?[n,a[n]]:a[n]);return l}}},function(t,e,n){var r=n(23),o=n(71),i=n(157);t.exports=function(t){return function(e,n,u){var a,c=r(e),s=o(c.length),f=i(u,s);if(t&&n!=n){for(;f<s;)if((a=c[f++])!=a)return!0}else for(;f<s;f++)if((t||f in c)&&c[f]===n)return t||f||0;return!t&&-1}}},function(t,e,n){var r=n(72),o=Math.max,i=Math.min;t.exports=function(t,e){return(t=r(t))<0?o(t+e,0):i(t,e)}},function(t,e,n){"use strict";var r=n(78);n(5)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},function(t,e,n){"use strict";var r=n(16),o=n(12),i=n(76),u=n(77);n(80)("match",1,(function(t,e,n,a){return[function(n){var r=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=a(n,t,this);if(e.done)return e.value;var c=r(t),s=String(this);if(!c.global)return u(c,s);for(var f,l=c.unicode,p=[],h=c.lastIndex=0;null!==(f=u(c,s));){var d=String(f[0]);""===(p[h]=d)&&(c.lastIndex=i(s,o(c.lastIndex),l)),h++}return 0===h?null:p}]}))},function(t,e,n){var r=n(161);t.exports=function(t,e){return new(r(t))(e)}},function(t,e,n){var r=n(26),o=n(114),i=n(1)("species");t.exports=function(t){var e;return o(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!o(e.prototype)||(e=void 0),r(e)&&null===(e=e[i])&&(e=void 0)),void 0===e?Array:e}},function(t,e,n){var r=n(0),o=r.JSON||(r.JSON={stringify:JSON.stringify});t.exports=function(t){return o.stringify.apply(o,arguments)}},function(t,e,n){"use strict";var r=n(5),o=n(164);r(r.P+r.F*!n(43)([].reduce,!0),"Array",{reduce:function(t,e){return o(this,t,arguments.length,e,!1)}})},function(t,e,n){var r=n(51),o=n(28),i=n(81),u=n(12);t.exports=function(t,e,n,a,c){r(e);var s=o(t),f=i(s),l=u(s.length),p=c?l-1:0,h=c?-1:1;if(n<2)for(;;){if(p in f){a=f[p],p+=h;break}if(p+=h,c?p<0:l<=p)throw TypeError("Reduce of empty array with no initial value")}for(;c?0<=p:p<l;p+=h)p in f&&(a=e(a,f[p],p,s));return a}},function(t,e,n){"use strict";var r=n(5),o=n(56)(!1),i=[].indexOf,u=!!i&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(u||!n(43)(i)),"Array",{indexOf:function(t,e){return u?i.apply(this,arguments)||0:o(this,t,e)}})},function(t,e,n){n(167),t.exports=n(0).Object.keys},function(t,e,n){var r=n(44),o=n(33);n(116)("keys",(function(){return function(t){return o(r(t))}}))},function(t,e,n){var r=n(5);r(r.S,"Array",{isArray:n(114)})},function(t,e,n){n(117),n(84)