diff --git a/dist/upyun.common.js b/dist/upyun.common.js index 9e42e8d..69119fd 100644 --- a/dist/upyun.common.js +++ b/dist/upyun.common.js @@ -1,5 +1,5 @@ /** - * UPYUN js-sdk 3.4.4 + * UPYUN js-sdk 3.4.5 * (c) 2020 * @license MIT */ @@ -188,7 +188,7 @@ function formUpload(remoteUrl, localFile, _ref) { } var name = "upyun"; -var version = "3.4.4"; +var version = "3.4.5"; var description = "UPYUN js sdk"; var main = "dist/upyun.common.js"; var module$1 = "dist/upyun.esm.js"; @@ -686,8 +686,13 @@ var Upyun = function () { fileSizePromise = Promise.resolve(fileOrPath.size); contentType = contentType || fileOrPath.type; } else { - fileSizePromise = utils.getFileSizeAsync(fileOrPath); - contentType = contentType || utils.getContentType(fileOrPath); + if (Buffer.isBuffer(fileOrPath)) { + fileSizePromise = Promise.resolve(fileOrPath.length); + contentType = contentType || 'application/octet-stream'; + } else { + fileSizePromise = utils.getFileSizeAsync(fileOrPath); + contentType = contentType || utils.getContentType(fileOrPath); + } } return fileSizePromise.then(function (fileSize) { @@ -731,13 +736,18 @@ var Upyun = function () { fileSizePromise = Promise.resolve(fileOrPath.size); // contentType = fileOrPath.type } else { - fileSizePromise = utils.getFileSizeAsync(fileOrPath); - // contentType = utils.getContentType(fileOrPath) + if (Buffer.isBuffer(fileOrPath)) { + fileSizePromise = Promise.resolve(fileOrPath.length); + } else { + fileSizePromise = utils.getFileSizeAsync(fileOrPath); + // contentType = utils.getContentType(fileOrPath) + } } var blockPromise = fileSizePromise.then(function (fileSize) { var end = Math.min(start + PARTSIZE, fileSize); - return utils.readBlockAsync(fileOrPath, start, end); + + return Buffer.isBuffer(fileOrPath) ? fileOrPath.slice(start, end) : utils.readBlockAsync(fileOrPath, start, end); }); return blockPromise.then(function (block) { diff --git a/dist/upyun.esm.js b/dist/upyun.esm.js index 4564ac5..2c31340 100644 --- a/dist/upyun.esm.js +++ b/dist/upyun.esm.js @@ -1,5 +1,5 @@ /** - * UPYUN js-sdk 3.4.4 + * UPYUN js-sdk 3.4.5 * (c) 2020 * @license MIT */ @@ -1980,7 +1980,7 @@ var base64 = createCommonjsModule(function (module, exports) { }); var name = "upyun"; -var version = "3.4.4"; +var version = "3.4.5"; var description = "UPYUN js sdk"; var main = "dist/upyun.common.js"; var module$1 = "dist/upyun.esm.js"; @@ -2796,8 +2796,13 @@ var Upyun = function () { fileSizePromise = Promise.resolve(fileOrPath.size); contentType = contentType || fileOrPath.type; } else { - fileSizePromise = utils.getFileSizeAsync(fileOrPath); - contentType = contentType || utils.getContentType(fileOrPath); + if (Buffer.isBuffer(fileOrPath)) { + fileSizePromise = Promise.resolve(fileOrPath.length); + contentType = contentType || 'application/octet-stream'; + } else { + fileSizePromise = utils.getFileSizeAsync(fileOrPath); + contentType = contentType || utils.getContentType(fileOrPath); + } } return fileSizePromise.then(function (fileSize) { @@ -2841,13 +2846,18 @@ var Upyun = function () { fileSizePromise = Promise.resolve(fileOrPath.size); // contentType = fileOrPath.type } else { - fileSizePromise = utils.getFileSizeAsync(fileOrPath); - // contentType = utils.getContentType(fileOrPath) + if (Buffer.isBuffer(fileOrPath)) { + fileSizePromise = Promise.resolve(fileOrPath.length); + } else { + fileSizePromise = utils.getFileSizeAsync(fileOrPath); + // contentType = utils.getContentType(fileOrPath) + } } var blockPromise = fileSizePromise.then(function (fileSize) { var end = Math.min(start + PARTSIZE, fileSize); - return utils.readBlockAsync(fileOrPath, start, end); + + return Buffer.isBuffer(fileOrPath) ? fileOrPath.slice(start, end) : utils.readBlockAsync(fileOrPath, start, end); }); return blockPromise.then(function (block) { diff --git a/dist/upyun.js b/dist/upyun.js index 4078bbf..0db4784 100644 --- a/dist/upyun.js +++ b/dist/upyun.js @@ -1,5 +1,5 @@ /** - * UPYUN js-sdk 3.4.4 + * UPYUN js-sdk 3.4.5 * (c) 2020 * @license MIT */ @@ -1986,7 +1986,7 @@ var base64 = createCommonjsModule(function (module, exports) { }); var name = "upyun"; -var version = "3.4.4"; +var version = "3.4.5"; var description = "UPYUN js sdk"; var main = "dist/upyun.common.js"; var module$1 = "dist/upyun.esm.js"; @@ -2802,8 +2802,13 @@ var Upyun = function () { fileSizePromise = Promise.resolve(fileOrPath.size); contentType = contentType || fileOrPath.type; } else { - fileSizePromise = utils.getFileSizeAsync(fileOrPath); - contentType = contentType || utils.getContentType(fileOrPath); + if (Buffer.isBuffer(fileOrPath)) { + fileSizePromise = Promise.resolve(fileOrPath.length); + contentType = contentType || 'application/octet-stream'; + } else { + fileSizePromise = utils.getFileSizeAsync(fileOrPath); + contentType = contentType || utils.getContentType(fileOrPath); + } } return fileSizePromise.then(function (fileSize) { @@ -2847,13 +2852,18 @@ var Upyun = function () { fileSizePromise = Promise.resolve(fileOrPath.size); // contentType = fileOrPath.type } else { - fileSizePromise = utils.getFileSizeAsync(fileOrPath); - // contentType = utils.getContentType(fileOrPath) + if (Buffer.isBuffer(fileOrPath)) { + fileSizePromise = Promise.resolve(fileOrPath.length); + } else { + fileSizePromise = utils.getFileSizeAsync(fileOrPath); + // contentType = utils.getContentType(fileOrPath) + } } var blockPromise = fileSizePromise.then(function (fileSize) { var end = Math.min(start + PARTSIZE, fileSize); - return utils.readBlockAsync(fileOrPath, start, end); + + return Buffer.isBuffer(fileOrPath) ? fileOrPath.slice(start, end) : utils.readBlockAsync(fileOrPath, start, end); }); return blockPromise.then(function (block) { diff --git a/dist/upyun.min.js b/dist/upyun.min.js index 12ba4d9..1ce390a 100644 --- a/dist/upyun.min.js +++ b/dist/upyun.min.js @@ -1,6 +1,6 @@ /** - * UPYUN js-sdk 3.4.4 + * UPYUN js-sdk 3.4.5 * (c) 2020 * @license MIT */ -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("axios")):"function"==typeof define&&define.amd?define(["axios"],t):e.upyun=t(e.axios)}(this,function(p){"use strict";p="default"in p?p.default:p;var a="undefined"!=typeof window&&("undefined"==typeof process||"browser"===process.title),u=1048576,v=function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then};var E="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(e,t){return e(t={exports:{}},t.exports),t.exports}var N=e(function(I,U){!function(e){var t=U&&!U.nodeType&&U,r=I&&!I.nodeType&&I,n="object"==typeof E&&E;n.global!==n&&n.window!==n&&n.self!==n||(e=n);var o,i,m=2147483647,g=36,b=1,x=26,s=38,a=700,w=72,A=128,j="-",u=/^xn--/,h=/[^\x20-\x7E]/,l=/[\x2E\u3002\uFF0E\uFF61]/g,c={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},f=g-b,C=Math.floor,k=String.fromCharCode;function S(e){throw RangeError(c[e])}function p(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function v(e,t){var r=e.split("@"),n="";return 1>>10&1023|55296),e=56320|1023&e),t+=k(e)}).join("")}function q(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function T(e,t,r){var n=0;for(e=r?C(e/a):e>>1,e+=C(e/t);f*x>>1C((m-v)/s))&&S("overflow"),v+=u*s,!(u<(h=a<=y?b:y+x<=a?x:a-y));a+=g)s>C(m/(l=g-h))&&S("overflow"),s*=l;y=T(v-i,t=f.length+1,0==i),C(v/t)>m-d&&S("overflow"),d+=C(v/t),v%=t,f.splice(v++,0,d)}return P(f)}function y(e){var t,r,n,o,i,s,a,u,h,l,c,f,p,v,d,y=[];for(f=(e=O(e)).length,t=A,i=w,s=r=0;sC((m-r)/(p=n+1))&&S("overflow"),r+=(a-t)*p,t=a,s=0;sm&&S("overflow"),c==t){for(u=r,h=g;!(u<(l=h<=i?b:i+x<=h?x:h-i));h+=g)d=u-l,v=g-l,y.push(k(q(l+d%v,0))),u=C(d/v);y.push(k(q(u,0))),i=T(r,p,n==o),r=0,++n}++r,++t}return y.join("")}if(o={version:"1.3.2",ucs2:{decode:O,encode:P},decode:d,encode:y,toASCII:function(e){return v(e,function(e){return h.test(e)?"xn--"+y(e):e})},toUnicode:function(e){return v(e,function(e){return u.test(e)?d(e.slice(4).toLowerCase()):e})}},t&&r)if(I.exports==t)r.exports=o;else for(i in o)o.hasOwnProperty(i)&&(t[i]=o[i]);else e.punycode=o}(E)}),z={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}};function r(e,t,r,n){t=t||"&",r=r||"=";var o={};if("string"!=typeof e||0===e.length)return o;var i=/\+/g;e=e.split(t);var s=1e3;n&&"number"==typeof n.maxKeys&&(s=n.maxKeys);var a,u,h=e.length;0",'"',"`"," ","\r","\n","\t"]),F=["'"].concat(f),_=["%","/","?",";","#"].concat(F),L=["/","?","#"],D=/^[+a-z0-9A-Z_-]{0,63}$/,H=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Z={javascript:!0,"javascript:":!0},G={javascript:!0,"javascript:":!0},$={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function d(e,t,r){if(e&&z.isObject(e)&&e instanceof O)return e;var n=new O;return n.parse(e,t,r),n}O.prototype.parse=function(e,t,r){if(!z.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var n=e.indexOf("?"),o=-1!==n&&n>16)+(t>>16)+(r>>16)<<16|65535&r}function A(e,t){return e<>>32-t}function u(e,t){e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var r,n,o,i,s,a=[80],u=1732584193,h=-271733879,l=-1732584194,c=271733878,f=-1009589776,p=0;p>5]|=(e.charCodeAt(n/8)&r)<<32-a-n%32;return t}return i||(i="="),a||(a=8),function(e){for(var t="",r=0;r<4*e.length;r+=3)for(var n=(e[r>>2]>>8*(3-r%4)&255)<<16|(e[r+1>>2]>>8*(3-(r+1)%4)&255)<<8|e[r+2>>2]>>8*(3-(r+2)%4)&255,o=0;o<4;o++)8*r+6*o>32*e.length?t+=i:t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(n>>6*(3-o)&63);return t}(function(e,t){var r=h(e);16>18&63)+l.charAt(o>>12&63)+l.charAt(o>>6&63)+l.charAt(63&o);return 2==i?(t=e.charCodeAt(a)<<8,r=e.charCodeAt(++a),s+=l.charAt((o=t+r)>>10)+l.charAt(o>>4&63)+l.charAt(o<<2&63)+"="):1==i&&(o=e.charCodeAt(a),s+=l.charAt(o>>2)+l.charAt(o<<4&63)+"=="),s},decode:function(e){var t=(e=String(e).replace(a,"")).length;t%4==0&&(t=(e=e.replace(/==?$/,"")).length),t%4!=1&&!/[^+a-zA-Z0-9/]/.test(e)||h("Invalid character: the string to be decoded is not correctly encoded.");for(var r,n,o=0,i="",s=-1;++s>(-2*o&6)));return i},version:"0.1.0"};if(t&&!t.nodeType)if(r)r.exports=i;else for(var s in i)i.hasOwnProperty(s)&&(t[s]=i[s]);else e.base64=i}(E)}),U="3.4.4",J=e(function(e){var i,r;i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(e,t){return e<>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&r.rotl(e,8)|4278255360&r.rotl(e,24);for(var t=0;t>>5]|=e[r]<<24-n%32;return t},wordsToBytes:function(e){for(var t=[],r=0;r<32*e.length;r+=8)t.push(e[r>>>5]>>>24-r%32&255);return t},bytesToHex:function(e){for(var t=[],r=0;r>>4).toString(16)),t.push((15&e[r]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],r=0;r>>6*(3-o)&63)):t.push("=");return t.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var t=[],r=0,n=0;r>>6-2*n);return t}},e.exports=r}),K={utf8:{stringToBytes:function(e){return K.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(K.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],r=0;r>>24)|4278255360&(r[u]<<24|r[u]>>>8);r[n>>>5]|=128<>>9<<4)]=n;var h=w._ff,l=w._gg,c=w._hh,f=w._ii;for(u=0;u>>0,i=i+v>>>0,s=s+d>>>0,a=a+y>>>0}return m.endian([o,i,s,a])})._ff=function(e,t,r,n,o,i,s){var a=e+(t&r|~t&n)+(o>>>0)+s;return(a<>>32-i)+t},w._gg=function(e,t,r,n,o,i,s){var a=e+(t&n|r&~n)+(o>>>0)+s;return(a<>>32-i)+t},w._hh=function(e,t,r,n,o,i,s){var a=e+(t^r^n)+(o>>>0)+s;return(a<>>32-i)+t},w._ii=function(e,t,r,n,o,i,s){var a=e+(r^(t|~n))+(o>>>0)+s;return(a<>>32-i)+t},w._blocksize=16,w._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);var r=m.wordsToBytes(w(e,t));return t&&t.asBytes?r:t&&t.asString?x.bytesToString(r):m.bytesToHex(r)}});function Q(e,t){var r=[t.method,t.path];["date","policy","contentMd5"].forEach(function(e){t[e]&&r.push(t[e])});var n=T(e.password,r.join("&"));return"UPYUN "+e.operatorName+":"+n}function V(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var ee={genSign:Q,getHeaderSign:function(e,t,r){var n=3= 0x80 (not a basic code point)","invalid-input":"Invalid input"},f=g-b,C=Math.floor,k=String.fromCharCode;function S(e){throw RangeError(c[e])}function p(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function v(e,t){var r=e.split("@"),n="";return 1>>10&1023|55296),e=56320|1023&e),t+=k(e)}).join("")}function q(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function T(e,t,r){var n=0;for(e=r?C(e/a):e>>1,e+=C(e/t);f*x>>1C((m-v)/s))&&S("overflow"),v+=u*s,!(u<(h=a<=y?b:y+x<=a?x:a-y));a+=g)s>C(m/(l=g-h))&&S("overflow"),s*=l;y=T(v-i,t=f.length+1,0==i),C(v/t)>m-d&&S("overflow"),d+=C(v/t),v%=t,f.splice(v++,0,d)}return P(f)}function y(e){var t,r,n,o,i,s,a,u,h,l,c,f,p,v,d,y=[];for(f=(e=O(e)).length,t=A,i=w,s=r=0;sC((m-r)/(p=n+1))&&S("overflow"),r+=(a-t)*p,t=a,s=0;sm&&S("overflow"),c==t){for(u=r,h=g;!(u<(l=h<=i?b:i+x<=h?x:h-i));h+=g)d=u-l,v=g-l,y.push(k(q(l+d%v,0))),u=C(d/v);y.push(k(q(u,0))),i=T(r,p,n==o),r=0,++n}++r,++t}return y.join("")}if(o={version:"1.3.2",ucs2:{decode:O,encode:P},decode:d,encode:y,toASCII:function(e){return v(e,function(e){return h.test(e)?"xn--"+y(e):e})},toUnicode:function(e){return v(e,function(e){return u.test(e)?d(e.slice(4).toLowerCase()):e})}},t&&r)if(I.exports==t)r.exports=o;else for(i in o)o.hasOwnProperty(i)&&(t[i]=o[i]);else e.punycode=o}(U)}),N={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}};function r(e,t,r,n){t=t||"&",r=r||"=";var o={};if("string"!=typeof e||0===e.length)return o;var i=/\+/g;e=e.split(t);var s=1e3;n&&"number"==typeof n.maxKeys&&(s=n.maxKeys);var a,u,h=e.length;0",'"',"`"," ","\r","\n","\t"]),F=["'"].concat(f),_=["%","/","?",";","#"].concat(F),L=["/","?","#"],D=/^[+a-z0-9A-Z_-]{0,63}$/,H=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Z={javascript:!0,"javascript:":!0},G={javascript:!0,"javascript:":!0},$={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function d(e,t,r){if(e&&N.isObject(e)&&e instanceof O)return e;var n=new O;return n.parse(e,t,r),n}O.prototype.parse=function(e,t,r){if(!N.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var n=e.indexOf("?"),o=-1!==n&&n>16)+(t>>16)+(r>>16)<<16|65535&r}function A(e,t){return e<>>32-t}function u(e,t){e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var r,n,o,i,s,a=[80],u=1732584193,h=-271733879,l=-1732584194,c=271733878,f=-1009589776,p=0;p>5]|=(e.charCodeAt(n/8)&r)<<32-a-n%32;return t}return i||(i="="),a||(a=8),function(e){for(var t="",r=0;r<4*e.length;r+=3)for(var n=(e[r>>2]>>8*(3-r%4)&255)<<16|(e[r+1>>2]>>8*(3-(r+1)%4)&255)<<8|e[r+2>>2]>>8*(3-(r+2)%4)&255,o=0;o<4;o++)8*r+6*o>32*e.length?t+=i:t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(n>>6*(3-o)&63);return t}(function(e,t){var r=h(e);16>18&63)+l.charAt(o>>12&63)+l.charAt(o>>6&63)+l.charAt(63&o);return 2==i?(t=e.charCodeAt(a)<<8,r=e.charCodeAt(++a),s+=l.charAt((o=t+r)>>10)+l.charAt(o>>4&63)+l.charAt(o<<2&63)+"="):1==i&&(o=e.charCodeAt(a),s+=l.charAt(o>>2)+l.charAt(o<<4&63)+"=="),s},decode:function(e){var t=(e=String(e).replace(a,"")).length;t%4==0&&(t=(e=e.replace(/==?$/,"")).length),t%4!=1&&!/[^+a-zA-Z0-9/]/.test(e)||h("Invalid character: the string to be decoded is not correctly encoded.");for(var r,n,o=0,i="",s=-1;++s>(-2*o&6)));return i},version:"0.1.0"};if(t&&!t.nodeType)if(r)r.exports=i;else for(var s in i)i.hasOwnProperty(s)&&(t[s]=i[s]);else e.base64=i}(U)}),B="3.4.5",J=e(function(e){var i,r;i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(e,t){return e<>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&r.rotl(e,8)|4278255360&r.rotl(e,24);for(var t=0;t>>5]|=e[r]<<24-n%32;return t},wordsToBytes:function(e){for(var t=[],r=0;r<32*e.length;r+=8)t.push(e[r>>>5]>>>24-r%32&255);return t},bytesToHex:function(e){for(var t=[],r=0;r>>4).toString(16)),t.push((15&e[r]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],r=0;r>>6*(3-o)&63)):t.push("=");return t.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var t=[],r=0,n=0;r>>6-2*n);return t}},e.exports=r}),K={utf8:{stringToBytes:function(e){return K.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(K.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],r=0;r>>24)|4278255360&(r[u]<<24|r[u]>>>8);r[n>>>5]|=128<>>9<<4)]=n;var h=w._ff,l=w._gg,c=w._hh,f=w._ii;for(u=0;u>>0,i=i+v>>>0,s=s+d>>>0,a=a+y>>>0}return m.endian([o,i,s,a])})._ff=function(e,t,r,n,o,i,s){var a=e+(t&r|~t&n)+(o>>>0)+s;return(a<>>32-i)+t},w._gg=function(e,t,r,n,o,i,s){var a=e+(t&n|r&~n)+(o>>>0)+s;return(a<>>32-i)+t},w._hh=function(e,t,r,n,o,i,s){var a=e+(t^r^n)+(o>>>0)+s;return(a<>>32-i)+t},w._ii=function(e,t,r,n,o,i,s){var a=e+(r^(t|~n))+(o>>>0)+s;return(a<>>32-i)+t},w._blocksize=16,w._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);var r=m.wordsToBytes(w(e,t));return t&&t.asBytes?r:t&&t.asString?x.bytesToString(r):m.bytesToHex(r)}});function Q(e,t){var r=[t.method,t.path];["date","policy","contentMd5"].forEach(function(e){t[e]&&r.push(t[e])});var n=T(e.password,r.join("&"));return"UPYUN "+e.operatorName+":"+n}function V(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var ee={genSign:Q,getHeaderSign:function(e,t,r){var n=3