import{l as wr,a as yr,d as Br,m as xr,s as Cr,n as Tr}from"./app.49f07a13.js";/*! * vue-qrcode v1.0.2 * https://fengyuanchen.github.io/vue-qrcode * * Copyright 2018-present Chen Fengyuan * Released under the MIT license * * Date: 2020-01-18T06:04:33.222Z */function hr(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function _r(s,V){return V={exports:{}},s(V,V.exports),V.exports}var pr=_r(function(s,V){(function(g){s.exports=g()})(function(){return function(){function g(T,d,p){function c(a,f){if(!d[a]){if(!T[a]){var n=typeof hr=="function"&&hr;if(!f&&n)return n(a,!0);if(u)return u(a,!0);var m=new Error("Cannot find module '"+a+"'");throw m.code="MODULE_NOT_FOUND",m}var E=d[a]={exports:{}};T[a][0].call(E.exports,function(_){var U=T[a][1][_];return c(U||_)},E,E.exports,g,T,d,p)}return d[a].exports}for(var u=typeof hr=="function"&&hr,i=0;i>>7-c%8&1)===1},put:function(c,u){for(var i=0;i>>u-i-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(c){var u=Math.floor(this.length/8);this.buffer.length<=u&&this.buffer.push(0),c&&(this.buffer[u]|=128>>>this.length%8),this.length++}},T.exports=p},{}],5:[function(g,T,d){var p=g("../utils/buffer");function c(u){if(!u||u<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=u,this.data=p.alloc(u*u),this.reservedBit=p.alloc(u*u)}c.prototype.set=function(u,i,a,f){var n=u*this.size+i;this.data[n]=a,f&&(this.reservedBit[n]=!0)},c.prototype.get=function(u,i){return this.data[u*this.size+i]},c.prototype.xor=function(u,i,a){this.data[u*this.size+i]^=a},c.prototype.isReserved=function(u,i){return this.reservedBit[u*this.size+i]},T.exports=c},{"../utils/buffer":28}],6:[function(g,T,d){var p=g("../utils/buffer"),c=g("./mode");function u(i){this.mode=c.BYTE,this.data=p.from(i)}u.getBitsLength=function(a){return a*8},u.prototype.getLength=function(){return this.data.length},u.prototype.getBitsLength=function(){return u.getBitsLength(this.data.length)},u.prototype.write=function(i){for(var a=0,f=this.data.length;a=0&&u.bit<4},d.from=function(u,i){if(d.isValid(u))return u;try{return p(u)}catch{return i}}},{}],9:[function(g,T,d){var p=g("./utils").getSymbolSize,c=7;d.getPositions=function(i){var a=p(i);return[[0,0],[a-c,0],[0,a-c]]}},{"./utils":21}],10:[function(g,T,d){var p=g("./utils"),c=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,u=1<<14|1<<12|1<<10|1<<4|1<<1,i=p.getBCHDigit(c);d.getEncodedBits=function(f,n){for(var m=f.bit<<3|n,E=m<<10;p.getBCHDigit(E)-i>=0;)E^=c<=33088&&f<=40956)f-=33088;else if(f>=57408&&f<=60351)f-=49472;else throw new Error("Invalid SJIS character: "+this.data[a]+` Make sure your charset is UTF-8`);f=(f>>>8&255)*192+(f&255),i.put(f,13)}},T.exports=u},{"./mode":14,"./utils":21}],13:[function(g,T,d){d.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var p={N1:3,N2:3,N3:40,N4:10};d.isValid=function(i){return i!=null&&i!==""&&!isNaN(i)&&i>=0&&i<=7},d.from=function(i){return d.isValid(i)?parseInt(i,10):void 0},d.getPenaltyN1=function(i){for(var a=i.size,f=0,n=0,m=0,E=null,_=null,U=0;U=5&&(f+=p.N1+(n-5)),E=M,n=1),M=i.get(b,U),M===_?m++:(m>=5&&(f+=p.N1+(m-5)),_=M,m=1)}n>=5&&(f+=p.N1+(n-5)),m>=5&&(f+=p.N1+(m-5))}return f},d.getPenaltyN2=function(i){for(var a=i.size,f=0,n=0;n=10&&(n===1488||n===93)&&f++,m=m<<1&2047|i.get(_,E),_>=10&&(m===1488||m===93)&&f++}return f*p.N3},d.getPenaltyN4=function(i){for(var a=0,f=i.data.length,n=0;n=1&&f<10?a.ccBits[0]:f<27?a.ccBits[1]:a.ccBits[2]},d.getBestModeForData=function(a){return c.testNumeric(a)?d.NUMERIC:c.testAlphanumeric(a)?d.ALPHANUMERIC:c.testKanji(a)?d.KANJI:d.BYTE},d.toString=function(a){if(a&&a.id)return a.id;throw new Error("Invalid mode")},d.isValid=function(a){return a&&a.bit&&a.ccBits};function u(i){if(typeof i!="string")throw new Error("Param is not a string");var a=i.toLowerCase();switch(a){case"numeric":return d.NUMERIC;case"alphanumeric":return d.ALPHANUMERIC;case"kanji":return d.KANJI;case"byte":return d.BYTE;default:throw new Error("Unknown mode: "+i)}}d.from=function(a,f){if(d.isValid(a))return a;try{return u(a)}catch{return f}}},{"./regex":19,"./version-check":22}],15:[function(g,T,d){var p=g("./mode");function c(u){this.mode=p.NUMERIC,this.data=u.toString()}c.getBitsLength=function(i){return 10*Math.floor(i/3)+(i%3?i%3*3+1:0)},c.prototype.getLength=function(){return this.data.length},c.prototype.getBitsLength=function(){return c.getBitsLength(this.data.length)},c.prototype.write=function(i){var a,f,n;for(a=0;a+3<=this.data.length;a+=3)f=this.data.substr(a,3),n=parseInt(f,10),i.put(n,10);var m=this.data.length-a;m>0&&(f=this.data.substr(a),n=parseInt(f,10),i.put(n,m*3+1))},T.exports=c},{"./mode":14}],16:[function(g,T,d){var p=g("../utils/buffer"),c=g("./galois-field");d.mul=function(i,a){for(var f=p.alloc(i.length+a.length-1),n=0;n=0;){for(var n=f[0],m=0;m=0&&Y<=6&&(J===0||J===6)||J>=0&&J<=6&&(Y===0||Y===6)||Y>=2&&Y<=4&&J>=2&&J<=4?R.set(H+Y,D+J,!0,!0):R.set(H+Y,D+J,!1,!0))}function S(R){for(var N=R.size,P=8;P>Y&1)===1,R.set($,H,D,!0),R.set(H,$,D,!0)}function l(R,N,P){var L=R.size,$=b.getEncodedBits(N,P),H,D;for(H=0;H<15;H++)D=($>>H&1)===1,H<6?R.set(H,8,D,!0):H<8?R.set(H+1,8,D,!0):R.set(L-15+H,8,D,!0),H<8?R.set(8,L-H-1,D,!0):H<9?R.set(8,15-H-1+1,D,!0):R.set(8,15-H-1,D,!0);R.set(L-8,8,1,!0)}function y(R,N){for(var P=R.size,L=-1,$=P-1,H=7,D=0,Y=P-1;Y>0;Y-=2)for(Y===6&&Y--;;){for(var J=0;J<2;J++)if(!R.isReserved($,Y-J)){var er=!1;D>>H&1)===1),R.set($,Y-J,er),H--,H===-1&&(D++,H=7)}if($+=L,$<0||P<=$){$-=L,L=-L;break}}}function C(R,N,P){var L=new i;P.forEach(function(er){L.put(er.mode.bit,4),L.put(er.getLength(),M.getCharCountIndicator(er.mode,R)),er.write(L)});var $=c.getSymbolTotalCodewords(R),H=E.getTotalCodewordsCount(R,N),D=($-H)*8;for(L.getLengthInBits()+4<=D&&L.put(0,4);L.getLengthInBits()%8!==0;)L.putBit(0);for(var Y=(D-L.getLengthInBits())/8,J=0;J=7&&h(G,N),y(G,J),isNaN(L)&&(L=m.getBestMask(G,l.bind(null,G,P))),m.applyMask(L,G),l(G,P,L),{modules:G,version:N,errorCorrectionLevel:P,maskPattern:L,segments:$}}d.create=function(N,P){if(typeof N=="undefined"||N==="")throw new Error("No input text");var L=u.M,$,H;return typeof P!="undefined"&&(L=u.from(P.errorCorrectionLevel,u.M),$=U.from(P.version),H=m.from(P.maskPattern),P.toSJISFunc&&c.setToSJISFunction(P.toSJISFunc)),O(N,$,L,H)}},{"../utils/buffer":28,"./alignment-pattern":2,"./bit-buffer":4,"./bit-matrix":5,"./error-correction-code":7,"./error-correction-level":8,"./finder-pattern":9,"./format-info":10,"./mask-pattern":13,"./mode":14,"./reed-solomon-encoder":18,"./segments":20,"./utils":21,"./version":23,isarray:33}],18:[function(g,T,d){var p=g("../utils/buffer"),c=g("./polynomial"),u=g("buffer").Buffer;function i(a){this.genPoly=void 0,this.degree=a,this.degree&&this.initialize(this.degree)}i.prototype.initialize=function(f){this.degree=f,this.genPoly=c.generateECPolynomial(this.degree)},i.prototype.encode=function(f){if(!this.genPoly)throw new Error("Encoder not initialized");var n=p.alloc(this.degree),m=u.concat([f,n],f.length+this.degree),E=c.mod(m,this.genPoly),_=this.degree-E.length;if(_>0){var U=p.alloc(this.degree);return E.copy(U,_),U}return E},T.exports=i},{"../utils/buffer":28,"./polynomial":16,buffer:30}],19:[function(g,T,d){var p="[0-9]+",c="[A-Z $%*+\\-./:]+",u="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";u=u.replace(/u/g,"\\u");var i="(?:(?![A-Z0-9 $%*+\\-./:]|"+u+`)(?:.|[\r ]))+`;d.KANJI=new RegExp(u,"g"),d.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),d.BYTE=new RegExp(i,"g"),d.NUMERIC=new RegExp(p,"g"),d.ALPHANUMERIC=new RegExp(c,"g");var a=new RegExp("^"+u+"$"),f=new RegExp("^"+p+"$"),n=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");d.testKanji=function(E){return a.test(E)},d.testNumeric=function(E){return f.test(E)},d.testAlphanumeric=function(E){return n.test(E)}},{}],20:[function(g,T,d){var p=g("./mode"),c=g("./numeric-data"),u=g("./alphanumeric-data"),i=g("./byte-data"),a=g("./kanji-data"),f=g("./regex"),n=g("./utils"),m=g("dijkstrajs");function E(S){return unescape(encodeURIComponent(S)).length}function _(S,w,h){for(var l=[],y;(y=S.exec(h))!==null;)l.push({data:y[0],index:y.index,mode:w,length:y[0].length});return l}function U(S){var w=_(f.NUMERIC,p.NUMERIC,S),h=_(f.ALPHANUMERIC,p.ALPHANUMERIC,S),l,y;n.isKanjiModeEnabled()?(l=_(f.BYTE,p.BYTE,S),y=_(f.KANJI,p.KANJI,S)):(l=_(f.BYTE_KANJI,p.BYTE,S),y=[]);var C=w.concat(h,l,y);return C.sort(function(k,O){return k.index-O.index}).map(function(k){return{data:k.data,mode:k.mode,length:k.length}})}function b(S,w){switch(w){case p.NUMERIC:return c.getBitsLength(S);case p.ALPHANUMERIC:return u.getBitsLength(S);case p.KANJI:return a.getBitsLength(S);case p.BYTE:return i.getBitsLength(S)}}function M(S){return S.reduce(function(w,h){var l=w.length-1>=0?w[w.length-1]:null;return l&&l.mode===h.mode?(w[w.length-1].data+=h.data,w):(w.push(h),w)},[])}function A(S){for(var w=[],h=0;h40)throw new Error('"version" should be in range from 1 to 40');return i*4+17},d.getSymbolTotalCodewords=function(i){return c[i]},d.getBCHDigit=function(u){for(var i=0;u!==0;)i++,u>>>=1;return i},d.setToSJISFunction=function(i){if(typeof i!="function")throw new Error('"toSJISFunc" is not a valid function.');p=i},d.isKanjiModeEnabled=function(){return typeof p!="undefined"},d.toSJIS=function(i){return p(i)}},{}],22:[function(g,T,d){d.isValid=function(c){return!isNaN(c)&&c>=1&&c<=40}},{}],23:[function(g,T,d){var p=g("./utils"),c=g("./error-correction-code"),u=g("./error-correction-level"),i=g("./mode"),a=g("./version-check"),f=g("isarray"),n=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,m=p.getBCHDigit(n);function E(M,A,I){for(var F=1;F<=40;F++)if(A<=d.getCapacity(F,I,M))return F}function _(M,A){return i.getCharCountIndicator(M,A)+4}function U(M,A){var I=0;return M.forEach(function(F){var S=_(F.mode,A);I+=S+F.getBitsLength()}),I}function b(M,A){for(var I=1;I<=40;I++){var F=U(M,I);if(F<=d.getCapacity(I,A,i.MIXED))return I}}d.from=function(A,I){return a.isValid(A)?parseInt(A,10):I},d.getCapacity=function(A,I,F){if(!a.isValid(A))throw new Error("Invalid QR Code version");typeof F=="undefined"&&(F=i.BYTE);var S=p.getSymbolTotalCodewords(A),w=c.getTotalCodewordsCount(A,I),h=(S-w)*8;if(F===i.MIXED)return h;var l=h-_(F,A);switch(F){case i.NUMERIC:return Math.floor(l/10*3);case i.ALPHANUMERIC:return Math.floor(l/11*2);case i.KANJI:return Math.floor(l/13);case i.BYTE:default:return Math.floor(l/8)}},d.getBestVersionForData=function(A,I){var F,S=u.from(I,u.M);if(f(A)){if(A.length>1)return b(A,S);if(A.length===0)return 1;F=A[0]}else F=A;return E(F.mode,F.getLength(),S)},d.getEncodedBits=function(A){if(!a.isValid(A)||A<7)throw new Error("Invalid QR Code version");for(var I=A<<12;p.getBCHDigit(I)-m>=0;)I^=n<0&&M>0&&a[b-1]||(m+=_?u("M",M+n,.5+A+n):u("m",E,0),E=0,_=!1),M+1':"",A="',I='viewBox="0 0 '+b+" "+b+'"',F=E.width?'width="'+E.width+'" height="'+E.width+'" ':"",S=''+M+A+` `;return typeof m=="function"&&m(null,S),S}},{"./utils":27}],27:[function(g,T,d){function p(c){if(typeof c=="number"&&(c=c.toString()),typeof c!="string")throw new Error("Color should be defined as hex string");var u=c.slice().replace("#","").split("");if(u.length<3||u.length===5||u.length>8)throw new Error("Invalid hex color: "+c);(u.length===3||u.length===4)&&(u=Array.prototype.concat.apply([],u.map(function(a){return[a,a]}))),u.length===6&&u.push("F","F");var i=parseInt(u.join(""),16);return{r:i>>24&255,g:i>>16&255,b:i>>8&255,a:i&255,hex:"#"+u.slice(0,6).join("")}}d.getOptions=function(u){u||(u={}),u.color||(u.color={});var i=typeof u.margin=="undefined"||u.margin===null||u.margin<0?4:u.margin,a=u.width&&u.width>=21?u.width:void 0,f=u.scale||4;return{width:a,scale:a?4:f,margin:i,color:{dark:p(u.color.dark||"#000000ff"),light:p(u.color.light||"#ffffffff")},type:u.type,rendererOpts:u.rendererOpts||{}}},d.getScale=function(u,i){return i.width&&i.width>=u+i.margin*2?i.width/(u+i.margin*2):i.scale},d.getImageWidth=function(u,i){var a=d.getScale(u,i);return Math.floor((u+i.margin*2)*a)},d.qrToImageData=function(u,i,a){for(var f=i.modules.size,n=i.modules.data,m=d.getScale(f,a),E=Math.floor((f+a.margin*2)*m),_=a.margin*m,U=[a.color.light,a.color.dark],b=0;b=_&&M>=_&&b=u)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u.toString(16)+" bytes");return w|0}function f(w){return w!==w}function n(w,h){var l;return i.TYPED_ARRAY_SUPPORT?(l=new Uint8Array(h),l.__proto__=i.prototype):(l=w,l===null&&(l=new i(h)),l.length=h),l}function m(w,h){var l=n(w,h<0?0:a(h)|0);if(!i.TYPED_ARRAY_SUPPORT)for(var y=0;y55295&&l<57344){if(!C){if(l>56319){(h-=3)>-1&&k.push(239,191,189);continue}else if(O+1===y){(h-=3)>-1&&k.push(239,191,189);continue}C=l;continue}if(l<56320){(h-=3)>-1&&k.push(239,191,189),C=l;continue}l=(C-55296<<10|l-56320)+65536}else C&&(h-=3)>-1&&k.push(239,191,189);if(C=null,l<128){if((h-=1)<0)break;k.push(l)}else if(l<2048){if((h-=2)<0)break;k.push(l>>6|192,l&63|128)}else if(l<65536){if((h-=3)<0)break;k.push(l>>12|224,l>>6&63|128,l&63|128)}else if(l<1114112){if((h-=4)<0)break;k.push(l>>18|240,l>>12&63|128,l>>6&63|128,l&63|128)}else throw new Error("Invalid code point")}return k}function A(w){if(i.isBuffer(w))return w.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(w)||w instanceof ArrayBuffer))return w.byteLength;typeof w!="string"&&(w=""+w);var h=w.length;return h===0?0:M(w).length}function I(w,h,l,y){for(var C=0;C=h.length||C>=w.length);++C)h[C+l]=w[C];return C}function F(w,h,l,y){return I(M(h,w.length-l),w,l,y)}function S(w,h,l,y){if(typeof h=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&h instanceof ArrayBuffer?U(w,h,l,y):typeof h=="string"?E(w,h):b(w,h)}i.prototype.write=function(h,l,y){l===void 0?(y=this.length,l=0):y===void 0&&typeof l=="string"?(y=this.length,l=0):isFinite(l)&&(l=l|0,isFinite(y)?y=y|0:y=void 0);var C=this.length-l;if((y===void 0||y>C)&&(y=C),h.length>0&&(y<0||l<0)||l>this.length)throw new RangeError("Attempt to write outside buffer bounds");return F(this,h,l,y)},i.prototype.slice=function(h,l){var y=this.length;h=~~h,l=l===void 0?y:~~l,h<0?(h+=y,h<0&&(h=0)):h>y&&(h=y),l<0?(l+=y,l<0&&(l=0)):l>y&&(l=y),l=h.length&&(l=h.length),l||(l=0),C>0&&C=this.length)throw new RangeError("sourceStart out of bounds");if(C<0)throw new RangeError("sourceEnd out of bounds");C>this.length&&(C=this.length),h.length-l=0;--O)h[O+l]=this[O+y];else if(k<1e3||!i.TYPED_ARRAY_SUPPORT)for(O=0;O>>0,y=y===void 0?this.length:y>>>0,h||(h=0);var k;if(typeof h=="number")for(k=l;k0)throw new Error("Invalid string. Length must be a multiple of 4");var F=A.indexOf("=");F===-1&&(F=I);var S=F===I?0:4-F%4;return[F,S]}function m(A){var I=n(A),F=I[0],S=I[1];return(F+S)*3/4-S}function E(A,I,F){return(I+F)*3/4-F}function _(A){var I,F=n(A),S=F[0],w=F[1],h=new u(E(A,S,w)),l=0,y=w>0?S-4:S,C;for(C=0;C>16&255,h[l++]=I>>8&255,h[l++]=I&255;return w===2&&(I=c[A.charCodeAt(C)]<<2|c[A.charCodeAt(C+1)]>>4,h[l++]=I&255),w===1&&(I=c[A.charCodeAt(C)]<<10|c[A.charCodeAt(C+1)]<<4|c[A.charCodeAt(C+2)]>>2,h[l++]=I>>8&255,h[l++]=I&255),h}function U(A){return p[A>>18&63]+p[A>>12&63]+p[A>>6&63]+p[A&63]}function b(A,I,F){for(var S,w=[],h=I;hy?y:l+h));return S===1?(I=A[F-1],w.push(p[I>>2]+p[I<<4&63]+"==")):S===2&&(I=(A[F-2]<<8)+A[F-1],w.push(p[I>>10]+p[I>>4&63]+p[I<<2&63]+"=")),w.join("")}},{}],30:[function(g,T,d){var p=g("base64-js"),c=g("ieee754"),u=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;d.Buffer=n,d.SlowBuffer=S,d.INSPECT_MAX_BYTES=50;var i=2147483647;d.kMaxLength=i,n.TYPED_ARRAY_SUPPORT=a(),!n.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{var t=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(t,r),t.foo()===42}catch{return!1}}Object.defineProperty(n.prototype,"parent",{enumerable:!0,get:function(){if(!!n.isBuffer(this))return this.buffer}}),Object.defineProperty(n.prototype,"offset",{enumerable:!0,get:function(){if(!!n.isBuffer(this))return this.byteOffset}});function f(t){if(t>i)throw new RangeError('The value "'+t+'" is invalid for option "size"');var r=new Uint8Array(t);return Object.setPrototypeOf(r,n.prototype),r}function n(t,r,e){if(typeof t=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return U(t)}return m(t,r,e)}typeof Symbol!="undefined"&&Symbol.species!=null&&n[Symbol.species]===n&&Object.defineProperty(n,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),n.poolSize=8192;function m(t,r,e){if(typeof t=="string")return b(t,r);if(ArrayBuffer.isView(t))return M(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(Q(t,ArrayBuffer)||t&&Q(t.buffer,ArrayBuffer))return A(t,r,e);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var o=t.valueOf&&t.valueOf();if(o!=null&&o!==t)return n.from(o,r,e);var v=I(t);if(v)return v;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return n.from(t[Symbol.toPrimitive]("string"),r,e);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}n.from=function(t,r,e){return m(t,r,e)},Object.setPrototypeOf(n.prototype,Uint8Array.prototype),Object.setPrototypeOf(n,Uint8Array);function E(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function _(t,r,e){return E(t),t<=0?f(t):r!==void 0?typeof e=="string"?f(t).fill(r,e):f(t).fill(r):f(t)}n.alloc=function(t,r,e){return _(t,r,e)};function U(t){return E(t),f(t<0?0:F(t)|0)}n.allocUnsafe=function(t){return U(t)},n.allocUnsafeSlow=function(t){return U(t)};function b(t,r){if((typeof r!="string"||r==="")&&(r="utf8"),!n.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var e=w(t,r)|0,o=f(e),v=o.write(t,r);return v!==e&&(o=o.slice(0,v)),o}function M(t){for(var r=t.length<0?0:F(t.length)|0,e=f(r),o=0;o=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return t|0}function S(t){return+t!=t&&(t=0),n.alloc(+t)}n.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==n.prototype},n.compare=function(r,e){if(Q(r,Uint8Array)&&(r=n.from(r,r.offset,r.byteLength)),Q(e,Uint8Array)&&(e=n.from(e,e.offset,e.byteLength)),!n.isBuffer(r)||!n.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===e)return 0;for(var o=r.length,v=e.length,B=0,x=Math.min(o,v);B2&&arguments[2]===!0;if(!o&&e===0)return 0;for(var v=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":return tr(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return fr(t).length;default:if(v)return o?-1:tr(t).length;r=(""+r).toLowerCase(),v=!0}}n.byteLength=w;function h(t,r,e){var o=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((e===void 0||e>this.length)&&(e=this.length),e<=0)||(e>>>=0,r>>>=0,e<=r))return"";for(t||(t="utf8");;)switch(t){case"hex":return G(this,r,e);case"utf8":case"utf-8":return H(this,r,e);case"ascii":return J(this,r,e);case"latin1":case"binary":return er(this,r,e);case"base64":return $(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return cr(this,r,e);default:if(o)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),o=!0}}n.prototype._isBuffer=!0;function l(t,r,e){var o=t[r];t[r]=t[e],t[e]=o}n.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;ee&&(r+=" ... "),""},u&&(n.prototype[u]=n.prototype.inspect),n.prototype.compare=function(r,e,o,v,B){if(Q(r,Uint8Array)&&(r=n.from(r,r.offset,r.byteLength)),!n.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(e===void 0&&(e=0),o===void 0&&(o=r?r.length:0),v===void 0&&(v=0),B===void 0&&(B=this.length),e<0||o>r.length||v<0||B>this.length)throw new RangeError("out of range index");if(v>=B&&e>=o)return 0;if(v>=B)return-1;if(e>=o)return 1;if(e>>>=0,o>>>=0,v>>>=0,B>>>=0,this===r)return 0;for(var x=B-v,z=o-e,K=Math.min(x,z),q=this.slice(v,B),j=r.slice(e,o),Z=0;Z2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,gr(e)&&(e=v?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(v)return-1;e=t.length-1}else if(e<0)if(v)e=0;else return-1;if(typeof r=="string"&&(r=n.from(r,o)),n.isBuffer(r))return r.length===0?-1:C(t,r,e,o,v);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?v?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):C(t,[r],e,o,v);throw new TypeError("val must be string, number or Buffer")}function C(t,r,e,o,v){var B=1,x=t.length,z=r.length;if(o!==void 0&&(o=String(o).toLowerCase(),o==="ucs2"||o==="ucs-2"||o==="utf16le"||o==="utf-16le")){if(t.length<2||r.length<2)return-1;B=2,x/=2,z/=2,e/=2}function K(vr,mr){return B===1?vr[mr]:vr.readUInt16BE(mr*B)}var q;if(v){var j=-1;for(q=e;qx&&(e=x-z),q=e;q>=0;q--){for(var Z=!0,lr=0;lrv&&(o=v)):o=v;var B=r.length;o>B/2&&(o=B/2);for(var x=0;x>>0,isFinite(o)?(o=o>>>0,v===void 0&&(v="utf8")):(v=o,o=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var B=this.length-e;if((o===void 0||o>B)&&(o=B),r.length>0&&(o<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");v||(v="utf8");for(var x=!1;;)switch(v){case"hex":return k(this,r,e,o);case"utf8":case"utf-8":return O(this,r,e,o);case"ascii":return R(this,r,e,o);case"latin1":case"binary":return N(this,r,e,o);case"base64":return P(this,r,e,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,r,e,o);default:if(x)throw new TypeError("Unknown encoding: "+v);v=(""+v).toLowerCase(),x=!0}},n.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function $(t,r,e){return r===0&&e===t.length?p.fromByteArray(t):p.fromByteArray(t.slice(r,e))}function H(t,r,e){e=Math.min(t.length,e);for(var o=[],v=r;v239?4:B>223?3:B>191?2:1;if(v+z<=e){var K,q,j,Z;switch(z){case 1:B<128&&(x=B);break;case 2:K=t[v+1],(K&192)===128&&(Z=(B&31)<<6|K&63,Z>127&&(x=Z));break;case 3:K=t[v+1],q=t[v+2],(K&192)===128&&(q&192)===128&&(Z=(B&15)<<12|(K&63)<<6|q&63,Z>2047&&(Z<55296||Z>57343)&&(x=Z));break;case 4:K=t[v+1],q=t[v+2],j=t[v+3],(K&192)===128&&(q&192)===128&&(j&192)===128&&(Z=(B&15)<<18|(K&63)<<12|(q&63)<<6|j&63,Z>65535&&Z<1114112&&(x=Z))}}x===null?(x=65533,z=1):x>65535&&(x-=65536,o.push(x>>>10&1023|55296),x=56320|x&1023),o.push(x),v+=z}return Y(o)}var D=4096;function Y(t){var r=t.length;if(r<=D)return String.fromCharCode.apply(String,t);for(var e="",o=0;oo)&&(e=o);for(var v="",B=r;Bo&&(r=o),e<0?(e+=o,e<0&&(e=0)):e>o&&(e=o),ee)throw new RangeError("Trying to access beyond buffer length")}n.prototype.readUIntLE=function(r,e,o){r=r>>>0,e=e>>>0,o||W(r,e,this.length);for(var v=this[r],B=1,x=0;++x>>0,e=e>>>0,o||W(r,e,this.length);for(var v=this[r+--e],B=1;e>0&&(B*=256);)v+=this[r+--e]*B;return v},n.prototype.readUInt8=function(r,e){return r=r>>>0,e||W(r,1,this.length),this[r]},n.prototype.readUInt16LE=function(r,e){return r=r>>>0,e||W(r,2,this.length),this[r]|this[r+1]<<8},n.prototype.readUInt16BE=function(r,e){return r=r>>>0,e||W(r,2,this.length),this[r]<<8|this[r+1]},n.prototype.readUInt32LE=function(r,e){return r=r>>>0,e||W(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216},n.prototype.readUInt32BE=function(r,e){return r=r>>>0,e||W(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])},n.prototype.readIntLE=function(r,e,o){r=r>>>0,e=e>>>0,o||W(r,e,this.length);for(var v=this[r],B=1,x=0;++x=B&&(v-=Math.pow(2,8*e)),v},n.prototype.readIntBE=function(r,e,o){r=r>>>0,e=e>>>0,o||W(r,e,this.length);for(var v=e,B=1,x=this[r+--v];v>0&&(B*=256);)x+=this[r+--v]*B;return B*=128,x>=B&&(x-=Math.pow(2,8*e)),x},n.prototype.readInt8=function(r,e){return r=r>>>0,e||W(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]},n.prototype.readInt16LE=function(r,e){r=r>>>0,e||W(r,2,this.length);var o=this[r]|this[r+1]<<8;return o&32768?o|4294901760:o},n.prototype.readInt16BE=function(r,e){r=r>>>0,e||W(r,2,this.length);var o=this[r+1]|this[r]<<8;return o&32768?o|4294901760:o},n.prototype.readInt32LE=function(r,e){return r=r>>>0,e||W(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24},n.prototype.readInt32BE=function(r,e){return r=r>>>0,e||W(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]},n.prototype.readFloatLE=function(r,e){return r=r>>>0,e||W(r,4,this.length),c.read(this,r,!0,23,4)},n.prototype.readFloatBE=function(r,e){return r=r>>>0,e||W(r,4,this.length),c.read(this,r,!1,23,4)},n.prototype.readDoubleLE=function(r,e){return r=r>>>0,e||W(r,8,this.length),c.read(this,r,!0,52,8)},n.prototype.readDoubleBE=function(r,e){return r=r>>>0,e||W(r,8,this.length),c.read(this,r,!1,52,8)};function X(t,r,e,o,v,B){if(!n.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>v||rt.length)throw new RangeError("Index out of range")}n.prototype.writeUIntLE=function(r,e,o,v){if(r=+r,e=e>>>0,o=o>>>0,!v){var B=Math.pow(2,8*o)-1;X(this,r,e,o,B,0)}var x=1,z=0;for(this[e]=r&255;++z>>0,o=o>>>0,!v){var B=Math.pow(2,8*o)-1;X(this,r,e,o,B,0)}var x=o-1,z=1;for(this[e+x]=r&255;--x>=0&&(z*=256);)this[e+x]=r/z&255;return e+o},n.prototype.writeUInt8=function(r,e,o){return r=+r,e=e>>>0,o||X(this,r,e,1,255,0),this[e]=r&255,e+1},n.prototype.writeUInt16LE=function(r,e,o){return r=+r,e=e>>>0,o||X(this,r,e,2,65535,0),this[e]=r&255,this[e+1]=r>>>8,e+2},n.prototype.writeUInt16BE=function(r,e,o){return r=+r,e=e>>>0,o||X(this,r,e,2,65535,0),this[e]=r>>>8,this[e+1]=r&255,e+2},n.prototype.writeUInt32LE=function(r,e,o){return r=+r,e=e>>>0,o||X(this,r,e,4,4294967295,0),this[e+3]=r>>>24,this[e+2]=r>>>16,this[e+1]=r>>>8,this[e]=r&255,e+4},n.prototype.writeUInt32BE=function(r,e,o){return r=+r,e=e>>>0,o||X(this,r,e,4,4294967295,0),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4},n.prototype.writeIntLE=function(r,e,o,v){if(r=+r,e=e>>>0,!v){var B=Math.pow(2,8*o-1);X(this,r,e,o,B-1,-B)}var x=0,z=1,K=0;for(this[e]=r&255;++x>0)-K&255;return e+o},n.prototype.writeIntBE=function(r,e,o,v){if(r=+r,e=e>>>0,!v){var B=Math.pow(2,8*o-1);X(this,r,e,o,B-1,-B)}var x=o-1,z=1,K=0;for(this[e+x]=r&255;--x>=0&&(z*=256);)r<0&&K===0&&this[e+x+1]!==0&&(K=1),this[e+x]=(r/z>>0)-K&255;return e+o},n.prototype.writeInt8=function(r,e,o){return r=+r,e=e>>>0,o||X(this,r,e,1,127,-128),r<0&&(r=255+r+1),this[e]=r&255,e+1},n.prototype.writeInt16LE=function(r,e,o){return r=+r,e=e>>>0,o||X(this,r,e,2,32767,-32768),this[e]=r&255,this[e+1]=r>>>8,e+2},n.prototype.writeInt16BE=function(r,e,o){return r=+r,e=e>>>0,o||X(this,r,e,2,32767,-32768),this[e]=r>>>8,this[e+1]=r&255,e+2},n.prototype.writeInt32LE=function(r,e,o){return r=+r,e=e>>>0,o||X(this,r,e,4,2147483647,-2147483648),this[e]=r&255,this[e+1]=r>>>8,this[e+2]=r>>>16,this[e+3]=r>>>24,e+4},n.prototype.writeInt32BE=function(r,e,o){return r=+r,e=e>>>0,o||X(this,r,e,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4};function ir(t,r,e,o,v,B){if(e+o>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function nr(t,r,e,o,v){return r=+r,e=e>>>0,v||ir(t,r,e,4),c.write(t,r,e,o,23,4),e+4}n.prototype.writeFloatLE=function(r,e,o){return nr(this,r,e,!0,o)},n.prototype.writeFloatBE=function(r,e,o){return nr(this,r,e,!1,o)};function or(t,r,e,o,v){return r=+r,e=e>>>0,v||ir(t,r,e,8),c.write(t,r,e,o,52,8),e+8}n.prototype.writeDoubleLE=function(r,e,o){return or(this,r,e,!0,o)},n.prototype.writeDoubleBE=function(r,e,o){return or(this,r,e,!1,o)},n.prototype.copy=function(r,e,o,v){if(!n.isBuffer(r))throw new TypeError("argument should be a Buffer");if(o||(o=0),!v&&v!==0&&(v=this.length),e>=r.length&&(e=r.length),e||(e=0),v>0&&v=this.length)throw new RangeError("Index out of range");if(v<0)throw new RangeError("sourceEnd out of bounds");v>this.length&&(v=this.length),r.length-e=0;--x)r[x+e]=this[x+o];else Uint8Array.prototype.set.call(r,this.subarray(o,v),e);return B},n.prototype.fill=function(r,e,o,v){if(typeof r=="string"){if(typeof e=="string"?(v=e,e=0,o=this.length):typeof o=="string"&&(v=o,o=this.length),v!==void 0&&typeof v!="string")throw new TypeError("encoding must be a string");if(typeof v=="string"&&!n.isEncoding(v))throw new TypeError("Unknown encoding: "+v);if(r.length===1){var B=r.charCodeAt(0);(v==="utf8"&&B<128||v==="latin1")&&(r=B)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(e<0||this.length>>0,o=o===void 0?this.length:o>>>0,r||(r=0);var x;if(typeof r=="number")for(x=e;x55295&&e<57344){if(!v){if(e>56319){(r-=3)>-1&&B.push(239,191,189);continue}else if(x+1===o){(r-=3)>-1&&B.push(239,191,189);continue}v=e;continue}if(e<56320){(r-=3)>-1&&B.push(239,191,189),v=e;continue}e=(v-55296<<10|e-56320)+65536}else v&&(r-=3)>-1&&B.push(239,191,189);if(v=null,e<128){if((r-=1)<0)break;B.push(e)}else if(e<2048){if((r-=2)<0)break;B.push(e>>6|192,e&63|128)}else if(e<65536){if((r-=3)<0)break;B.push(e>>12|224,e>>6&63|128,e&63|128)}else if(e<1114112){if((r-=4)<0)break;B.push(e>>18|240,e>>12&63|128,e>>6&63|128,e&63|128)}else throw new Error("Invalid code point")}return B}function ur(t){for(var r=[],e=0;e>8,v=e%256,B.push(v),B.push(o);return B}function fr(t){return p.toByteArray(dr(t))}function rr(t,r,e,o){for(var v=0;v=r.length||v>=t.length);++v)r[v+e]=t[v];return v}function Q(t,r){return t instanceof r||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===r.name}function gr(t){return t!==t}var Ar=function(){for(var t="0123456789abcdef",r=new Array(256),e=0;e<16;++e)for(var o=e*16,v=0;v<16;++v)r[o+v]=t[e]+t[v];return r}()},{"base64-js":29,ieee754:32}],31:[function(g,T,d){var p={single_source_shortest_paths:function(c,u,i){var a={},f={};f[u]=0;var n=p.PriorityQueue.make();n.push(u,0);for(var m,E,_,U,b,M,A,I,F;!n.empty();){m=n.pop(),E=m.value,U=m.cost,b=c[E]||{};for(_ in b)b.hasOwnProperty(_)&&(M=b[_],A=U+M,I=f[_],F=typeof f[_]=="undefined",(F||I>A)&&(f[_]=A,n.push(_,A),a[_]=E))}if(typeof i!="undefined"&&typeof f[i]=="undefined"){var S=["Could not find a path from ",u," to ",i,"."].join("");throw new Error(S)}return a},extract_shortest_path_from_predecessor_list:function(c,u){for(var i=[],a=u;a;)i.push(a),c[a],a=c[a];return i.reverse(),i},find_path:function(c,u,i){var a=p.single_source_shortest_paths(c,u,i);return p.extract_shortest_path_from_predecessor_list(a,i)},PriorityQueue:{make:function(c){var u=p.PriorityQueue,i={},a;c=c||{};for(a in u)u.hasOwnProperty(a)&&(i[a]=u[a]);return i.queue=[],i.sorter=c.sorter||u.default_sorter,i},default_sorter:function(c,u){return c.cost-u.cost},push:function(c,u){var i={value:c,cost:u};this.queue.push(i),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};typeof T!="undefined"&&(T.exports=p)},{}],32:[function(g,T,d){d.read=function(p,c,u,i,a){var f,n,m=a*8-i-1,E=(1<>1,U=-7,b=u?a-1:0,M=u?-1:1,A=p[c+b];for(b+=M,f=A&(1<<-U)-1,A>>=-U,U+=m;U>0;f=f*256+p[c+b],b+=M,U-=8);for(n=f&(1<<-U)-1,f>>=-U,U+=i;U>0;n=n*256+p[c+b],b+=M,U-=8);if(f===0)f=1-_;else{if(f===E)return n?NaN:(A?-1:1)*(1/0);n=n+Math.pow(2,i),f=f-_}return(A?-1:1)*n*Math.pow(2,f-i)},d.write=function(p,c,u,i,a,f){var n,m,E,_=f*8-a-1,U=(1<<_)-1,b=U>>1,M=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,A=i?0:f-1,I=i?1:-1,F=c<0||c===0&&1/c<0?1:0;for(c=Math.abs(c),isNaN(c)||c===1/0?(m=isNaN(c)?1:0,n=U):(n=Math.floor(Math.log(c)/Math.LN2),c*(E=Math.pow(2,-n))<1&&(n--,E*=2),n+b>=1?c+=M/E:c+=M*Math.pow(2,1-b),c*E>=2&&(n++,E/=2),n+b>=U?(m=0,n=U):n+b>=1?(m=(c*E-1)*Math.pow(2,a),n=n+b):(m=c*Math.pow(2,b-1)*Math.pow(2,a),n=0));a>=8;p[u+A]=m&255,A+=I,m/=256,a-=8);for(n=n<0;p[u+A]=n&255,A+=I,n/=256,_-=8);p[u+A-I]|=F*128}},{}],33:[function(g,T,d){var p={}.toString;T.exports=Array.isArray||function(c){return p.call(c)=="[object Array]"}},{}]},{},[24])(24)})}),Ir={name:"qrcode",props:{value:null,options:Object,tag:{type:String,default:"canvas"}},render:function(V){return V(this.tag,this.$slots.default)},watch:{$props:{deep:!0,immediate:!0,handler:function(){this.$el&&this.generate()}}},methods:{generate:function(){var V=this,g=this.options,T=this.tag,d=String(this.value);T==="canvas"?pr.toCanvas(this.$el,d,g,function(p){if(p)throw p}):T==="img"?pr.toDataURL(d,g,function(p,c){if(p)throw p;V.$el.src=c}):pr.toString(d,g,function(p,c){if(p)throw p;V.$el.innerHTML=c})}},mounted:function(){this.generate()}},Sr=function(){var s=this,V=s.$createElement,g=s._self._c||V;return g("div",{staticClass:"page-login"},[g("PageTitle",{attrs:{title:s.$L("\u767B\u5F55")}}),g("div",{staticClass:"login-body"},[g("div",{staticClass:"login-logo no-dark-content",class:{"can-click":s.needStartHome},on:{click:s.goHome}}),g("div",{staticClass:"login-box"},[g("div",{staticClass:"login-mode-switch"},[g("div",{staticClass:"login-mode-switch-box"},[g("ETooltip",{attrs:{disabled:s.windowSmall||s.$isEEUiApp,content:s.$L(s.loginMode=="qrcode"?"\u5E10\u53F7\u767B\u5F55":"\u626B\u7801\u767B\u5F55"),placement:"left"}},[g("span",{staticClass:"login-mode-switch-icon",on:{click:s.switchLoginMode}},[s.loginMode=="qrcode"?g("svg",{attrs:{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-icon":"PcOutlined"}},[g("path",{attrs:{d:"M23 16a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h18a2 2 0 0 1 2 2v12ZM21 4H3v9h18V4ZM3 15v1h18v-1H3Zm3 6a1 1 0 0 1 1-1h10a1 1 0 1 1 0 2H7a1 1 0 0 1-1-1Z",fill:"currentColor"}})]):g("svg",{attrs:{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-icon":"QrOutlined"}},[g("path",{attrs:{d:"M6.5 7.5a1 1 0 0 1 1-1h1a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1v-1Z",fill:"currentColor"}}),g("path",{attrs:{d:"M4.5 2.5c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-7c0-1.1-.9-2-2-2h-7Zm0 2h7v7h-7v-7ZM11 16a1 1 0 1 1 2 0 1 1 0 0 1-2 0Zm0 3.5a1 1 0 1 1 2 0v1a1 1 0 1 1-2 0v-1Zm4-7.5a1 1 0 1 1 2 0 1 1 0 0 1-2 0Zm3.5 0a1 1 0 0 1 1-1h1a1 1 0 1 1 0 2h-1a1 1 0 0 1-1-1ZM15 17c0-1.1.9-2 2-2h2.5c1.1 0 2 .9 2 2v2.5c0 1.1-.9 2-2 2H17c-1.1 0-2-.9-2-2V17Zm4.5 0H17v2.5h2.5V17Zm-15-2c-1.1 0-2 .9-2 2v2.5c0 1.1.9 2 2 2H7c1.1 0 2-.9 2-2V17c0-1.1-.9-2-2-2H4.5Zm0 2H7v2.5H4.5V17ZM15 4.5c0-1.1.9-2 2-2h2.5c1.1 0 2 .9 2 2V7c0 1.1-.9 2-2 2H17c-1.1 0-2-.9-2-2V4.5Zm4.5 0H17V7h2.5V4.5Z",fill:"currentColor"}})])])])],1)]),g("div",{staticClass:"login-title"},[s._v(s._s(s.welcomeTitle))]),g("div",{staticClass:"login-subtitle"},[s._v(s._s(s.$L(s.subTitle)))]),g("transition",{attrs:{name:"login-mode"}},[s.loginMode=="qrcode"?g("div",{staticClass:"login-qrcode",on:{click:s.qrcodeRefresh}},[g("VueQrcode",{attrs:{value:s.qrcodeUrl,options:{width:200,margin:0}}})],1):s._e()]),g("transition",{attrs:{name:"login-mode"}},[s.loginMode=="access"?g("div",{staticClass:"login-access"},[s.isSoftware&&s.cacheServerUrl?g("Input",{attrs:{value:s.$A.getDomain(s.cacheServerUrl),prefix:"ios-globe-outline",size:"large",readonly:"",clearable:""},on:{"on-clear":function(T){return s.setServerUrl("")}}}):s._e(),g("Input",{ref:"email",attrs:{prefix:"ios-mail-outline",placeholder:s.$L("\u8F93\u5165\u60A8\u7684\u7535\u5B50\u90AE\u4EF6"),type:"email",size:"large",clearable:""},on:{"on-enter":s.onLogin,"on-blur":s.onBlur},model:{value:s.email,callback:function(T){s.email=T},expression:"email"}}),g("Input",{ref:"password",attrs:{prefix:"ios-lock-outline",placeholder:s.$L("\u8F93\u5165\u60A8\u7684\u5BC6\u7801"),type:"password",size:"large",clearable:""},on:{"on-enter":s.onLogin},model:{value:s.password,callback:function(T){s.password=T},expression:"password"}}),s.loginType=="reg"?g("Input",{ref:"password2",attrs:{prefix:"ios-lock-outline",placeholder:s.$L("\u8F93\u5165\u786E\u8BA4\u5BC6\u7801"),type:"password",size:"large",clearable:""},on:{"on-enter":s.onLogin},model:{value:s.password2,callback:function(T){s.password2=T},expression:"password2"}}):s._e(),s.loginType=="reg"&&s.needInvite?g("Input",{ref:"invite",staticClass:"login-code",attrs:{placeholder:s.$L("\u8BF7\u8F93\u5165\u6CE8\u518C\u9080\u8BF7\u7801"),type:"text",size:"large",clearable:""},on:{"on-enter":s.onLogin},model:{value:s.invite,callback:function(T){s.invite=T},expression:"invite"}},[g("span",{attrs:{slot:"prepend"},slot:"prepend"},[s._v("\xA0"+s._s(s.$L("\u9080\u8BF7\u7801"))+"\xA0")])]):s._e(),s.loginType=="login"&&s.codeNeed?g("Input",{ref:"code",staticClass:"login-code",attrs:{placeholder:s.$L("\u8F93\u5165\u56FE\u5F62\u9A8C\u8BC1\u7801"),type:"text",size:"large",clearable:""},on:{"on-enter":s.onLogin},model:{value:s.code,callback:function(T){s.code=T},expression:"code"}},[g("Icon",{staticClass:"login-icon",attrs:{slot:"prepend",type:"ios-checkmark-circle-outline"},slot:"prepend"}),g("div",{staticClass:"login-code-end",attrs:{slot:"append"},on:{click:s.reCode},slot:"append"},[g("img",{attrs:{src:s.codeUrl}})])],1):s._e(),g("Button",{attrs:{type:"primary",loading:s.loadIng>0||s.loginJump,size:"large",long:""},on:{click:s.onLogin}},[s._v(s._s(s.$L(s.loginText)))]),s.loginType=="reg"?g("div",{staticClass:"login-switch"},[s._v(s._s(s.$L("\u5DF2\u7ECF\u6709\u5E10\u53F7\uFF1F"))),g("a",{attrs:{href:"javascript:void(0)"},on:{click:function(T){s.loginType="login"}}},[s._v(s._s(s.$L("\u767B\u5F55\u5E10\u53F7")))])]):g("div",{staticClass:"login-switch"},[s._v(s._s(s.$L("\u8FD8\u6CA1\u6709\u5E10\u53F7\uFF1F"))),g("a",{attrs:{href:"javascript:void(0)"},on:{click:function(T){s.loginType="reg"}}},[s._v(s._s(s.$L("\u6CE8\u518C\u5E10\u53F7")))])])],1):s._e()])],1),g("div",{staticClass:"login-bottom"},[g("Dropdown",{attrs:{trigger:"click",placement:"bottom-start"}},[g("div",{staticClass:"login-setting"},[s._v(" "+s._s(s.$L("\u8BBE\u7F6E"))+" "),g("i",{staticClass:"taskfont"},[s._v("\uE689")])]),g("DropdownMenu",{staticClass:"login-setting-menu",attrs:{slot:"list"},slot:"list"},[g("Dropdown",{attrs:{placement:"right-start",transfer:""},on:{"on-click":s.setTheme}},[g("DropdownItem",[g("div",{staticClass:"login-setting-item"},[s._v(" "+s._s(s.$L("\u4E3B\u9898\u76AE\u80A4"))+" "),g("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]),g("DropdownMenu",{attrs:{slot:"list"},slot:"list"},s._l(s.themeList,function(T,d){return g("DropdownItem",{key:d,attrs:{name:T.value,selected:s.themeMode===T.value}},[s._v(s._s(s.$L(T.name)))])}),1)],1),g("Dropdown",{attrs:{placement:"right-start",transfer:""},on:{"on-click":s.onLanguage}},[g("DropdownItem",{attrs:{divided:""}},[g("div",{staticClass:"login-setting-item"},[s._v(" "+s._s(s.currentLanguage)+" "),g("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]),g("DropdownMenu",{attrs:{slot:"list"},slot:"list"},s._l(s.languageList,function(T,d){return g("DropdownItem",{key:d,attrs:{name:d,selected:s.languageType===d}},[s._v(s._s(T))])}),1)],1)],1)],1),g("div",{staticClass:"login-forgot"},[s._v(s._s(s.$L("\u5FD8\u8BB0\u5BC6\u7801\u4E86\uFF1F"))),g("a",{attrs:{href:"javascript:void(0)"},on:{click:s.forgotPassword}},[s._v(s._s(s.$L("\u91CD\u7F6E\u5BC6\u7801")))])])],1)]),g("Modal",{attrs:{title:s.$L("\u9690\u79C1\u534F\u8BAE"),"mask-closable":!1},model:{value:s.privacyShow,callback:function(T){s.privacyShow=T},expression:"privacyShow"}},[g("div",{staticClass:"privacy-content"},[g("div",[s._v("\u6B22\u8FCE\u4F7F\u7528\u672C\u8F6F\u4EF6\uFF01")]),g("p",[s._v("\u5728\u60A8\u4F7F\u7528\u672C\u8F6F\u4EF6\u524D\uFF0C\u8BF7\u60A8\u8BA4\u771F\u9605\u8BFB\u5E76\u4E86\u89E3\u76F8\u5E94\u7684"),g("a",{attrs:{target:"_blank",href:s.$A.apiUrl("privacy")}},[s._v("\u300A"+s._s(s.$L("\u9690\u79C1\u653F\u7B56"))+"\u300B")]),s._v("\uFF0C\u4EE5\u4E86\u89E3\u6211\u4EEC\u7684\u670D\u52A1\u5185\u5BB9\u548C\u60A8\u76F8\u5173\u4E2A\u4EBA\u4FE1\u606F\u7684\u5904\u7406\u89C4\u5219\u3002\u6211\u4EEC\u5C06\u4E25\u683C\u7684\u6309\u7167\u9690\u79C1\u670D\u52A1\u534F\u8BAE\u4E3A\u60A8\u63D0\u4F9B\u670D\u52A1\uFF0C\u4FDD\u62A4\u60A8\u7684\u4E2A\u4EBA\u4FE1\u606F\u3002")])]),g("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[g("Button",{attrs:{type:"default"},on:{click:function(T){return s.onPrivacy(!1)}}},[s._v(s._s(s.$L("\u4E0D\u540C\u610F")))]),g("Button",{attrs:{type:"primary"},on:{click:function(T){return s.onPrivacy(!0)}}},[s._v(s._s(s.$L("\u540C\u610F")))])],1)])],1)},br=[];const Fr={components:{VueQrcode:Ir},data(){return{loadIng:0,languageList:wr,languageType:yr,qrcodeVal:"",qrcodeTimer:null,qrcodeLoad:!1,codeNeed:!1,codeUrl:$A.apiUrl("users/login/codeimg?_="+Math.random()),loginMode:"access",loginType:"login",loginJump:!1,email:"",password:"",password2:"",code:"",invite:"",needStartHome:!1,needInvite:!1,subscribe:null,privacyShow:!1}},async mounted(){this.privacyShow=!!this.$isEEUiApp&&await $A.IDBString("cachePrivacyShow")!=="no",this.email=await $A.IDBString("cacheLoginEmail")||"",this.isSoftware?this.chackServerUrl().catch(s=>{}):this.setServerUrl("").catch(s=>{}),this.qrcodeTimer=setInterval(this.qrcodeStatus,2e3),this.subscribe=Br.Store.subscribe("useSSOLogin",()=>{this.inputServerUrl()})},beforeDestroy(){clearInterval(this.qrcodeTimer),this.subscribe&&(this.subscribe.unsubscribe(),this.subscribe=null)},activated(){this.loginType=this.$route.query.type==="reg"?"reg":"login",this.getDemoAccount(),this.getNeedStartHome(),this.$Electron&&this.$Electron.sendMessage("subWindowDestroyAll")},deactivated(){this.loginJump=!1,this.password="",this.password2="",this.code="",this.invite=""},computed:{...xr(["cacheServerUrl","themeMode","themeList"]),isSoftware(){return this.$Electron||this.$isEEUiApp},currentLanguage(){return wr[yr]||"Language"},welcomeTitle(){if(this.loginMode=="qrcode")return this.$L("\u626B\u7801\u767B\u5F55");const s=window.systemInfo.title||"DooTask";return"Welcome "+s},subTitle(){const s=window.systemInfo.title||"DooTask";return this.loginMode=="qrcode"?this.$L(`\u8BF7\u4F7F\u7528${s}\u79FB\u52A8\u7AEF\u626B\u63CF\u4E8C\u7EF4\u7801\u3002`):this.loginType=="reg"?this.$L("\u8F93\u5165\u60A8\u7684\u4FE1\u606F\u4EE5\u521B\u5EFA\u5E10\u6237\u3002"):this.$L("\u8F93\u5165\u60A8\u7684\u51ED\u8BC1\u4EE5\u8BBF\u95EE\u60A8\u7684\u5E10\u6237\u3002")},loginText(){let s=this.loginType=="login"?"\u767B\u5F55":"\u6CE8\u518C";return this.loginJump&&(s+="\u6210\u529F..."),s},qrcodeUrl(){return $A.apiUrl("../login?qrcode="+this.qrcodeVal)}},watch:{$route({query:s}){s.type=="reg"&&this.$nextTick(()=>{this.loginType="reg"})},loginMode(){this.qrcodeRefresh()},loginType(s){s=="reg"&&this.getNeedInvite()}},methods:{goHome(){this.needStartHome&&this.goForward("index")},setTheme(s){this.$store.dispatch("setTheme",s)},getDemoAccount(){this.isNotServer()||this.$store.dispatch("call",{url:"system/demo"}).then(({data:s})=>{s.account&&(this.email=s.account,this.password=s.password)}).catch(s=>{})},getNeedStartHome(){this.isNotServer()||this.$store.dispatch("needHome").then(s=>{this.needStartHome=!0}).catch(s=>{this.needStartHome=!1})},getNeedInvite(){this.$store.dispatch("call",{url:"users/reg/needinvite"}).then(({data:s})=>{this.needInvite=!!s.need}).catch(s=>{this.needInvite=!1})},switchLoginMode(){this.chackServerUrl(!0).then(()=>{this.loginMode==="qrcode"?this.loginMode="access":this.loginMode="qrcode"})},qrcodeRefresh(){this.loginMode=="qrcode"&&(this.qrcodeVal=$A.randomString(32))},qrcodeStatus(){this.$route.name!=="login"||this.loginMode!="qrcode"||this.qrcodeLoad||(this.qrcodeLoad=!0,this.$store.dispatch("call",{url:"users/login/qrcode?code="+this.qrcodeVal}).then(({data:s})=>{this.$store.dispatch("handleClearCache",s).then(this.goNext)}).catch(s=>{}).finally(s=>{this.qrcodeLoad=!1}))},forgotPassword(){$A.modalWarning("\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\uFF01")},reCode(){this.codeUrl=$A.apiUrl("users/login/codeimg?_="+Math.random())},inputServerUrl(){if(this.privacyShow)return;let s=$A.rightDelete(this.cacheServerUrl,"/api/");s=$A.leftDelete(s,"http://"),$A.modalInput({title:"\u4F7F\u7528 SSO \u767B\u5F55",value:s,placeholder:"\u8BF7\u8F93\u5165\u670D\u52A1\u5668\u5730\u5740",onOk:V=>V?this.inputServerChack($A.trim(V)):"\u8BF7\u8F93\u5165\u670D\u52A1\u5668\u5730\u5740"})},inputServerChack(s){return new Promise((V,g)=>{let T=s;/\/api\/$/.test(T)||(T=T+($A.rightExists(T,"/")?"api/":"/api/")),/^https*:\/\//i.test(T)||(T=`https://${T}`),this.$store.dispatch("call",{url:`${T}system/setting`,checkNetwork:!1}).then(async()=>{await this.setServerUrl(T),V()}).catch(({ret:d,msg:p})=>{if(d===-1001){if(!/^https*:\/\//i.test(s)){this.inputServerChack(`http://${s}`).then(V).catch(g);return}p="\u670D\u52A1\u5668\u5730\u5740\u65E0\u6548"}g(p)})})},chackServerUrl(s){return new Promise((V,g)=>{this.isNotServer()?(this.inputServerUrl(),s===!0&&this.$nextTick(T=>$A.messageWarning("\u8BF7\u8BBE\u7F6E\u670D\u52A1\u5668")),g()):V()})},async setServerUrl(s){await $A.IDBSet("cachePrivacyShow",s?"no":"yes"),s!=this.cacheServerUrl&&(await $A.IDBSet("cacheServerUrl",s),$A.reloadUrl())},isNotServer(){let s=$A.getDomain(window.systemInfo.apiUrl);return this.isSoftware&&(s==""||s=="public")},onBlur(){if(this.loginType!="login"||!this.email){this.codeNeed=!1;return}this.loadIng++,this.$store.dispatch("call",{url:"users/login/needcode",data:{email:this.email}}).then(()=>{this.reCode(),this.codeNeed=!0}).catch(s=>{this.codeNeed=!1}).finally(s=>{this.loadIng--})},onPrivacy(s){s?(this.privacyShow=!1,this.chackServerUrl().catch(V=>{})):$A.eeuiAppGoDesktop()},onLogin(){this.chackServerUrl(!0).then(()=>{if(this.email=$A.trim(this.email),this.password=$A.trim(this.password),this.password2=$A.trim(this.password2),this.code=$A.trim(this.code),this.invite=$A.trim(this.invite),!$A.isEmail(this.email)){$A.messageWarning("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1\u5730\u5740"),this.$refs.email.focus();return}if(!this.password){$A.messageWarning("\u8BF7\u8F93\u5165\u5BC6\u7801"),this.$refs.password.focus();return}if(this.loginType=="reg"&&this.password!=this.password2){$A.messageWarning("\u786E\u8BA4\u5BC6\u7801\u8F93\u5165\u4E0D\u4E00\u81F4"),this.$refs.password2.focus();return}this.loadIng++,this.$store.dispatch("call",{url:"users/login",data:{type:this.loginType,email:this.email,password:this.password,code:this.code,invite:this.invite}}).then(({data:s})=>{$A.IDBSave("cacheLoginEmail",this.email),this.codeNeed=!1,this.$store.dispatch("handleClearCache",s).then(this.goNext)}).catch(({data:s,msg:V})=>{s.code==="email"?(this.loginType="login",$A.modalWarning(V)):$A.modalError({content:V,onOk:g=>{this.$refs.code.focus()}}),s.code==="need"&&(this.reCode(),this.codeNeed=!0)}).finally(s=>{this.loadIng--})})},goNext(){this.loginJump=!0;const s=decodeURIComponent($A.getObject(this.$route.query,"from"));s?$A.IDBSet("clearCache","login").then(V=>{window.location.replace(s)}):this.goForward({name:"manage-dashboard"},!0)},onLanguage(s){Cr(s)}}},Er={};var Ur=Tr(Fr,Sr,br,!1,Mr,null,null,null);function Mr(s){for(let V in Er)this[V]=Er[V]}var Rr=function(){return Ur.exports}();export{Rr as default};