fix: [用户前端]修复开启邮箱后缀白名单后用户注册的问题
This commit is contained in:
1 parent
21ade0f0e5
commit
f91ccb82c8
3 files changed
+1
-1
No files matched your search
Vendored
+1
-1
@@ -3772,4 +3772,4 @@ ${t}
|
||||
* A Vue.js component to generate QRCode.
|
||||
* © 2017-2023 @scopewu(https://github.com/scopewu)
|
||||
* MIT License.
|
||||
*/var vs=function(){return vs=Object.assign||function(t){for(var o,n=1,r=arguments.length;n<r;n++){o=arguments[n];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(t[i]=o[i])}return t},vs.apply(this,arguments)},Or;(function(e){var t=function(){function l(a,s,c,d){if(this.version=a,this.errorCorrectionLevel=s,this.modules=[],this.isFunction=[],a<l.MIN_VERSION||a>l.MAX_VERSION)throw new RangeError("Version value out of range");if(d<-1||d>7)throw new RangeError("Mask value out of range");this.size=a*4+17;for(var u=[],f=0;f<this.size;f++)u.push(!1);for(var f=0;f<this.size;f++)this.modules.push(u.slice()),this.isFunction.push(u.slice());this.drawFunctionPatterns();var p=this.addEccAndInterleave(c);if(this.drawCodewords(p),d==-1)for(var h=1e9,f=0;f<8;f++){this.applyMask(f),this.drawFormatBits(f);var g=this.getPenaltyScore();g<h&&(d=f,h=g),this.applyMask(f)}r(0<=d&&d<=7),this.mask=d,this.applyMask(d),this.drawFormatBits(d),this.isFunction=[]}return l.encodeText=function(a,s){var c=e.QrSegment.makeSegments(a);return l.encodeSegments(c,s)},l.encodeBinary=function(a,s){var c=e.QrSegment.makeBytes(a);return l.encodeSegments([c],s)},l.encodeSegments=function(a,s,c,d,u,f){if(c===void 0&&(c=1),d===void 0&&(d=40),u===void 0&&(u=-1),f===void 0&&(f=!0),!(l.MIN_VERSION<=c&&c<=d&&d<=l.MAX_VERSION)||u<-1||u>7)throw new RangeError("Invalid value");var p,h;for(p=c;;p++){var g=l.getNumDataCodewords(p,s)*8,m=i.getTotalBits(a,p);if(m<=g){h=m;break}if(p>=d)throw new RangeError("Data too long")}for(var b=0,x=[l.Ecc.MEDIUM,l.Ecc.QUARTILE,l.Ecc.HIGH];b<x.length;b++){var P=x[b];f&&h<=l.getNumDataCodewords(p,P)*8&&(s=P)}for(var _=[],C=0,S=a;C<S.length;C++){var y=S[C];o(y.mode.modeBits,4,_),o(y.numChars,y.mode.numCharCountBits(p),_);for(var w=0,R=y.getData();w<R.length;w++){var $=R[w];_.push($)}}r(_.length==h);var k=l.getNumDataCodewords(p,s)*8;r(_.length<=k),o(0,Math.min(4,k-_.length),_),o(0,(8-_.length%8)%8,_),r(_.length%8==0);for(var z=236;_.length<k;z^=253)o(z,8,_);for(var V=[];V.length*8<_.length;)V.push(0);return _.forEach(function(W,D){return V[D>>>3]|=W<<7-(D&7)}),new l(p,s,V,u)},l.prototype.getModule=function(a,s){return 0<=a&&a<this.size&&0<=s&&s<this.size&&this.modules[s][a]},l.prototype.getModules=function(){return this.modules},l.prototype.drawFunctionPatterns=function(){for(var a=0;a<this.size;a++)this.setFunctionModule(6,a,a%2==0),this.setFunctionModule(a,6,a%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);for(var s=this.getAlignmentPatternPositions(),c=s.length,a=0;a<c;a++)for(var d=0;d<c;d++)a==0&&d==0||a==0&&d==c-1||a==c-1&&d==0||this.drawAlignmentPattern(s[a],s[d]);this.drawFormatBits(0),this.drawVersion()},l.prototype.drawFormatBits=function(a){for(var s=this.errorCorrectionLevel.formatBits<<3|a,c=s,d=0;d<10;d++)c=c<<1^(c>>>9)*1335;var u=(s<<10|c)^21522;r(u>>>15==0);for(var d=0;d<=5;d++)this.setFunctionModule(8,d,n(u,d));this.setFunctionModule(8,7,n(u,6)),this.setFunctionModule(8,8,n(u,7)),this.setFunctionModule(7,8,n(u,8));for(var d=9;d<15;d++)this.setFunctionModule(14-d,8,n(u,d));for(var d=0;d<8;d++)this.setFunctionModule(this.size-1-d,8,n(u,d));for(var d=8;d<15;d++)this.setFunctionModule(8,this.size-15+d,n(u,d));this.setFunctionModule(8,this.size-8,!0)},l.prototype.drawVersion=function(){if(!(this.version<7)){for(var a=this.version,s=0;s<12;s++)a=a<<1^(a>>>11)*7973;var c=this.version<<12|a;r(c>>>18==0);for(var s=0;s<18;s++){var d=n(c,s),u=this.size-11+s%3,f=Math.floor(s/3);this.setFunctionModule(u,f,d),this.setFunctionModule(f,u,d)}}},l.prototype.drawFinderPattern=function(a,s){for(var c=-4;c<=4;c++)for(var d=-4;d<=4;d++){var u=Math.max(Math.abs(d),Math.abs(c)),f=a+d,p=s+c;0<=f&&f<this.size&&0<=p&&p<this.size&&this.setFunctionModule(f,p,u!=2&&u!=4)}},l.prototype.drawAlignmentPattern=function(a,s){for(var c=-2;c<=2;c++)for(var d=-2;d<=2;d++)this.setFunctionModule(a+d,s+c,Math.max(Math.abs(d),Math.abs(c))!=1)},l.prototype.setFunctionModule=function(a,s,c){this.modules[s][a]=c,this.isFunction[s][a]=!0},l.prototype.addEccAndInterleave=function(a){var s=this.version,c=this.errorCorrectionLevel;if(a.length!=l.getNumDataCodewords(s,c))throw new RangeError("Invalid argument");for(var d=l.NUM_ERROR_CORRECTION_BLOCKS[c.ordinal][s],u=l.ECC_CODEWORDS_PER_BLOCK[c.ordinal][s],f=Math.floor(l.getNumRawDataModules(s)/8),p=d-f%d,h=Math.floor(f/d),g=[],m=l.reedSolomonComputeDivisor(u),b=0,x=0;b<d;b++){var P=a.slice(x,x+h-u+(b<p?0:1));x+=P.length;var _=l.reedSolomonComputeRemainder(P,m);b<p&&P.push(0),g.push(P.concat(_))}for(var C=[],S=function(y){g.forEach(function(w,R){(y!=h-u||R>=p)&&C.push(w[y])})},b=0;b<g[0].length;b++)S(b);return r(C.length==f),C},l.prototype.drawCodewords=function(a){if(a.length!=Math.floor(l.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");for(var s=0,c=this.size-1;c>=1;c-=2){c==6&&(c=5);for(var d=0;d<this.size;d++)for(var u=0;u<2;u++){var f=c-u,p=(c+1&2)==0,h=p?this.size-1-d:d;!this.isFunction[h][f]&&s<a.lengLine truncated
|
||||
*/var vs=function(){return vs=Object.assign||function(t){for(var o,n=1,r=arguments.length;n<r;n++){o=arguments[n];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(t[i]=o[i])}return t},vs.apply(this,arguments)},Or;(function(e){var t=function(){function l(a,s,c,d){if(this.version=a,this.errorCorrectionLevel=s,this.modules=[],this.isFunction=[],a<l.MIN_VERSION||a>l.MAX_VERSION)throw new RangeError("Version value out of range");if(d<-1||d>7)throw new RangeError("Mask value out of range");this.size=a*4+17;for(var u=[],f=0;f<this.size;f++)u.push(!1);for(var f=0;f<this.size;f++)this.modules.push(u.slice()),this.isFunction.push(u.slice());this.drawFunctionPatterns();var p=this.addEccAndInterleave(c);if(this.drawCodewords(p),d==-1)for(var h=1e9,f=0;f<8;f++){this.applyMask(f),this.drawFormatBits(f);var g=this.getPenaltyScore();g<h&&(d=f,h=g),this.applyMask(f)}r(0<=d&&d<=7),this.mask=d,this.applyMask(d),this.drawFormatBits(d),this.isFunction=[]}return l.encodeText=function(a,s){var c=e.QrSegment.makeSegments(a);return l.encodeSegments(c,s)},l.encodeBinary=function(a,s){var c=e.QrSegment.makeBytes(a);return l.encodeSegments([c],s)},l.encodeSegments=function(a,s,c,d,u,f){if(c===void 0&&(c=1),d===void 0&&(d=40),u===void 0&&(u=-1),f===void 0&&(f=!0),!(l.MIN_VERSION<=c&&c<=d&&d<=l.MAX_VERSION)||u<-1||u>7)throw new RangeError("Invalid value");var p,h;for(p=c;;p++){var g=l.getNumDataCodewords(p,s)*8,m=i.getTotalBits(a,p);if(m<=g){h=m;break}if(p>=d)throw new RangeError("Data too long")}for(var b=0,x=[l.Ecc.MEDIUM,l.Ecc.QUARTILE,l.Ecc.HIGH];b<x.length;b++){var P=x[b];f&&h<=l.getNumDataCodewords(p,P)*8&&(s=P)}for(var _=[],C=0,S=a;C<S.length;C++){var y=S[C];o(y.mode.modeBits,4,_),o(y.numChars,y.mode.numCharCountBits(p),_);for(var w=0,R=y.getData();w<R.length;w++){var $=R[w];_.push($)}}r(_.length==h);var k=l.getNumDataCodewords(p,s)*8;r(_.length<=k),o(0,Math.min(4,k-_.length),_),o(0,(8-_.length%8)%8,_),r(_.length%8==0);for(var z=236;_.length<k;z^=253)o(z,8,_);for(var V=[];V.length*8<_.length;)V.push(0);return _.forEach(function(W,D){return V[D>>>3]|=W<<7-(D&7)}),new l(p,s,V,u)},l.prototype.getModule=function(a,s){return 0<=a&&a<this.size&&0<=s&&s<this.size&&this.modules[s][a]},l.prototype.getModules=function(){return this.modules},l.prototype.drawFunctionPatterns=function(){for(var a=0;a<this.size;a++)this.setFunctionModule(6,a,a%2==0),this.setFunctionModule(a,6,a%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);for(var s=this.getAlignmentPatternPositions(),c=s.length,a=0;a<c;a++)for(var d=0;d<c;d++)a==0&&d==0||a==0&&d==c-1||a==c-1&&d==0||this.drawAlignmentPattern(s[a],s[d]);this.drawFormatBits(0),this.drawVersion()},l.prototype.drawFormatBits=function(a){for(var s=this.errorCorrectionLevel.formatBits<<3|a,c=s,d=0;d<10;d++)c=c<<1^(c>>>9)*1335;var u=(s<<10|c)^21522;r(u>>>15==0);for(var d=0;d<=5;d++)this.setFunctionModule(8,d,n(u,d));this.setFunctionModule(8,7,n(u,6)),this.setFunctionModule(8,8,n(u,7)),this.setFunctionModule(7,8,n(u,8));for(var d=9;d<15;d++)this.setFunctionModule(14-d,8,n(u,d));for(var d=0;d<8;d++)this.setFunctionModule(this.size-1-d,8,n(u,d));for(var d=8;d<15;d++)this.setFunctionModule(8,this.size-15+d,n(u,d));this.setFunctionModule(8,this.size-8,!0)},l.prototype.drawVersion=function(){if(!(this.version<7)){for(var a=this.version,s=0;s<12;s++)a=a<<1^(a>>>11)*7973;var c=this.version<<12|a;r(c>>>18==0);for(var s=0;s<18;s++){var d=n(c,s),u=this.size-11+s%3,f=Math.floor(s/3);this.setFunctionModule(u,f,d),this.setFunctionModule(f,u,d)}}},l.prototype.drawFinderPattern=function(a,s){for(var c=-4;c<=4;c++)for(var d=-4;d<=4;d++){var u=Math.max(Math.abs(d),Math.abs(c)),f=a+d,p=s+c;0<=f&&f<this.size&&0<=p&&p<this.size&&this.setFunctionModule(f,p,u!=2&&u!=4)}},l.prototype.drawAlignmentPattern=function(a,s){for(var c=-2;c<=2;c++)for(var d=-2;d<=2;d++)this.setFunctionModule(a+d,s+c,Math.max(Math.abs(d),Math.abs(c))!=1)},l.prototype.setFunctionModule=function(a,s,c){this.modules[s][a]=c,this.isFunction[s][a]=!0},l.prototype.addEccAndInterleave=function(a){var s=this.version,c=this.errorCorrectionLevel;if(a.length!=l.getNumDataCodewords(s,c))throw new RangeError("Invalid argument");for(var d=l.NUM_ERROR_CORRECTION_BLOCKS[c.ordinal][s],u=l.ECC_CODEWORDS_PER_BLOCK[c.ordinal][s],f=Math.floor(l.getNumRawDataModules(s)/8),p=d-f%d,h=Math.floor(f/d),g=[],m=l.reedSolomonComputeDivisor(u),b=0,x=0;b<d;b++){var P=a.slice(x,x+h-u+(b<p?0:1));x+=P.length;var _=l.reedSolomonComputeRemainder(P,m);b<p&&P.push(0),g.push(P.concat(_))}for(var C=[],S=function(y){g.forEach(function(w,R){(y!=h-u||R>=p)&&C.push(w[y])})},b=0;b<g[0].length;b++)S(b);return r(C.length==f),C},l.prototype.drawCodewords=function(a){if(a.length!=Math.floor(l.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");for(var s=0,c=this.size-1;c>=1;c-=2){c==6&&(c=5);for(var d=0;d<this.size;d++)for(var u=0;u<2;u++){var f=c-u,p=(c+1&2)==0,h=p?this.size-1-d:d;!this.isFunction[h][f]&&s<a.lengLine truncated
|
||||
Binary file not shown.
Binary file not shown.
Reference in new issue
Block a user