mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 11:19:56 +00:00
17 lines
69 KiB
JavaScript
Vendored
17 lines
69 KiB
JavaScript
Vendored
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<p.length;i++)c(p[i]);return c}return g}()({1:[function(g,T,d){T.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}},{}],2:[function(g,T,d){var p=g("./utils").getSymbolSize;d.getRowColCoords=function(u){if(u===1)return[];for(var i=Math.floor(u/7)+2,a=p(u),f=a===145?26:Math.ceil((a-13)/(2*i-2))*2,n=[a-7],m=1;m<i-1;m++)n[m]=n[m-1]-f;return n.push(6),n.reverse()},d.getPositions=function(u){for(var i=[],a=d.getRowColCoords(u),f=a.length,n=0;n<f;n++)for(var m=0;m<f;m++)n===0&&m===0||n===0&&m===f-1||n===f-1&&m===0||i.push([a[n],a[m]]);return i}},{"./utils":21}],3:[function(g,T,d){var p=g("./mode"),c=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function u(i){this.mode=p.ALPHANUMERIC,this.data=i}u.getBitsLength=function(a){return 11*Math.floor(a/2)+6*(a%2)},u.prototype.getLength=function(){return this.data.length},u.prototype.getBitsLength=function(){return u.getBitsLength(this.data.length)},u.prototype.write=function(a){var f;for(f=0;f+2<=this.data.length;f+=2){var n=c.indexOf(this.data[f])*45;n+=c.indexOf(this.data[f+1]),a.put(n,11)}this.data.length%2&&a.put(c.indexOf(this.data[f]),6)},T.exports=u},{"./mode":14}],4:[function(g,T,d){function p(){this.buffer=[],this.length=0}p.prototype={get:function(c){var u=Math.floor(c/8);return(this.buffer[u]>>>7-c%8&1)===1},put:function(c,u){for(var i=0;i<u;i++)this.putBit((c>>>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<f;a++)i.put(this.data[a],8)},T.exports=u},{"../utils/buffer":28,"./mode":14}],7:[function(g,T,d){var p=g("./error-correction-level"),c=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],u=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];d.getBlocksCount=function(a,f){switch(f){case p.L:return c[(a-1)*4+0];case p.M:return c[(a-1)*4+1];case p.Q:return c[(a-1)*4+2];case p.H:return c[(a-1)*4+3];default:return}},d.getTotalCodewordsCount=function(a,f){switch(f){case p.L:return u[(a-1)*4+0];case p.M:return u[(a-1)*4+1];case p.Q:return u[(a-1)*4+2];case p.H:return u[(a-1)*4+3];default:return}}},{"./error-correction-level":8}],8:[function(g,T,d){d.L={bit:1},d.M={bit:0},d.Q={bit:3},d.H={bit:2};function p(c){if(typeof c!="string")throw new Error("Param is not a string");var u=c.toLowerCase();switch(u){case"l":case"low":return d.L;case"m":case"medium":return d.M;case"q":case"quartile":return d.Q;case"h":case"high":return d.H;default:throw new Error("Unknown EC Level: "+c)}}d.isValid=function(u){return u&&typeof u.bit!="undefined"&&u.bit>=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<<p.getBCHDigit(E)-i;return(m<<10|E)^u}},{"./utils":21}],11:[function(g,T,d){var p=g("../utils/buffer"),c=p.alloc(512),u=p.alloc(256);(function(){for(var a=1,f=0;f<255;f++)c[f]=a,u[a]=f,a<<=1,a&256&&(a^=285);for(f=255;f<512;f++)c[f]=c[f-255]})(),d.log=function(a){if(a<1)throw new Error("log("+a+")");return u[a]},d.exp=function(a){return c[a]},d.mul=function(a,f){return a===0||f===0?0:c[u[a]+u[f]]}},{"../utils/buffer":28}],12:[function(g,T,d){var p=g("./mode"),c=g("./utils");function u(i){this.mode=p.KANJI,this.data=i}u.getBitsLength=function(a){return a*13},u.prototype.getLength=function(){return this.data.length},u.prototype.getBitsLength=function(){return u.getBitsLength(this.data.length)},u.prototype.write=function(i){var a;for(a=0;a<this.data.length;a++){var f=c.toSJIS(this.data[a]);if(f>=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<a;U++){n=m=0,E=_=null;for(var b=0;b<a;b++){var M=i.get(U,b);M===E?n++:(n>=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<a-1;n++)for(var m=0;m<a-1;m++){var E=i.get(n,m)+i.get(n,m+1)+i.get(n+1,m)+i.get(n+1,m+1);(E===4||E===0)&&f++}return f*p.N2},d.getPenaltyN3=function(i){for(var a=i.size,f=0,n=0,m=0,E=0;E<a;E++){n=m=0;for(var _=0;_<a;_++)n=n<<1&2047|i.get(E,_),_>=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<f;n++)a+=i.data[n];var m=Math.abs(Math.ceil(a*100/f/5)-10);return m*p.N4};function c(u,i,a){switch(u){case d.Patterns.PATTERN000:return(i+a)%2===0;case d.Patterns.PATTERN001:return i%2===0;case d.Patterns.PATTERN010:return a%3===0;case d.Patterns.PATTERN011:return(i+a)%3===0;case d.Patterns.PATTERN100:return(Math.floor(i/2)+Math.floor(a/3))%2===0;case d.Patterns.PATTERN101:return i*a%2+i*a%3===0;case d.Patterns.PATTERN110:return(i*a%2+i*a%3)%2===0;case d.Patterns.PATTERN111:return(i*a%3+(i+a)%2)%2===0;default:throw new Error("bad maskPattern:"+u)}}d.applyMask=function(i,a){for(var f=a.size,n=0;n<f;n++)for(var m=0;m<f;m++)a.isReserved(m,n)||a.xor(m,n,c(i,m,n))},d.getBestMask=function(i,a){for(var f=Object.keys(d.Patterns).length,n=0,m=1/0,E=0;E<f;E++){a(E),d.applyMask(E,i);var _=d.getPenaltyN1(i)+d.getPenaltyN2(i)+d.getPenaltyN3(i)+d.getPenaltyN4(i);d.applyMask(E,i),_<m&&(m=_,n=E)}return n}},{}],14:[function(g,T,d){var p=g("./version-check"),c=g("./regex");d.NUMERIC={id:"Numeric",bit:1<<0,ccBits:[10,12,14]},d.ALPHANUMERIC={id:"Alphanumeric",bit:1<<1,ccBits:[9,11,13]},d.BYTE={id:"Byte",bit:1<<2,ccBits:[8,16,16]},d.KANJI={id:"Kanji",bit:1<<3,ccBits:[8,10,12]},d.MIXED={bit:-1},d.getCharCountIndicator=function(a,f){if(!a.ccBits)throw new Error("Invalid mode: "+a);if(!p.isValid(f))throw new Error("Invalid version: "+f);return f>=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<i.length;n++)for(var m=0;m<a.length;m++)f[n+m]^=c.mul(i[n],a[m]);return f},d.mod=function(i,a){for(var f=p.from(i);f.length-a.length>=0;){for(var n=f[0],m=0;m<a.length;m++)f[m]^=c.mul(a[m],n);for(var E=0;E<f.length&&f[E]===0;)E++;f=f.slice(E)}return f},d.generateECPolynomial=function(i){for(var a=p.from([1]),f=0;f<i;f++)a=d.mul(a,[1,c.exp(f)]);return a}},{"../utils/buffer":28,"./galois-field":11}],17:[function(g,T,d){var p=g("../utils/buffer"),c=g("./utils"),u=g("./error-correction-level"),i=g("./bit-buffer"),a=g("./bit-matrix"),f=g("./alignment-pattern"),n=g("./finder-pattern"),m=g("./mask-pattern"),E=g("./error-correction-code"),_=g("./reed-solomon-encoder"),U=g("./version"),b=g("./format-info"),M=g("./mode"),A=g("./segments"),I=g("isarray");function F(R,N){for(var P=R.size,L=n.getPositions(N),$=0;$<L.length;$++)for(var H=L[$][0],D=L[$][1],Y=-1;Y<=7;Y++)if(!(H+Y<=-1||P<=H+Y))for(var J=-1;J<=7;J++)D+J<=-1||P<=D+J||(Y>=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<N-8;P++){var L=P%2===0;R.set(P,6,L,!0),R.set(6,P,L,!0)}}function w(R,N){for(var P=f.getPositions(N),L=0;L<P.length;L++)for(var $=P[L][0],H=P[L][1],D=-2;D<=2;D++)for(var Y=-2;Y<=2;Y++)D===-2||D===2||Y===-2||Y===2||D===0&&Y===0?R.set($+D,H+Y,!0,!0):R.set($+D,H+Y,!1,!0)}function h(R,N){for(var P=R.size,L=U.getEncodedBits(N),$,H,D,Y=0;Y<18;Y++)$=Math.floor(Y/3),H=Y%3+P-8-3,D=(L>>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<N.length&&(er=(N[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<Y;J++)L.put(J%2?17:236,8);return k(L,R,N)}function k(R,N,P){for(var L=c.getSymbolTotalCodewords(N),$=E.getTotalCodewordsCount(N,P),H=L-$,D=E.getBlocksCount(N,P),Y=L%D,J=D-Y,er=Math.floor(L/D),G=Math.floor(H/D),cr=G+1,W=er-G,X=new _(W),ir=0,nr=new Array(D),or=new Array(D),ar=0,dr=p.from(R.buffer),tr=0;tr<D;tr++){var ur=tr<J?G:cr;nr[tr]=dr.slice(ir,ir+ur),or[tr]=X.encode(nr[tr]),ir+=ur,ar=Math.max(ar,ur)}var sr=p.alloc(L),fr=0,rr,Q;for(rr=0;rr<ar;rr++)for(Q=0;Q<D;Q++)rr<nr[Q].length&&(sr[fr++]=nr[Q][rr]);for(rr=0;rr<W;rr++)for(Q=0;Q<D;Q++)sr[fr++]=or[Q][rr];return sr}function O(R,N,P,L){var $;if(I(R))$=A.fromArray(R);else if(typeof R=="string"){var H=N;if(!H){var D=A.rawSplit(R);H=U.getBestVersionForData(D,P)}$=A.fromString(R,H||40)}else throw new Error("Invalid data");var Y=U.getBestVersionForData($,P);if(!Y)throw new Error("The amount of data is too big to be stored in a QR Code");if(!N)N=Y;else if(N<Y)throw new Error(`
|
|
The chosen QR Code version cannot contain this amount of data.
|
|
Minimum version required to store current data is: `+Y+`.
|
|
`);var J=C(N,P,$),er=c.getSymbolSize(N),G=new a(er);return F(G,N),S(G),w(G,N),l(G,P,0),N>=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;h<S.length;h++){var l=S[h];switch(l.mode){case p.NUMERIC:w.push([l,{data:l.data,mode:p.ALPHANUMERIC,length:l.length},{data:l.data,mode:p.BYTE,length:l.length}]);break;case p.ALPHANUMERIC:w.push([l,{data:l.data,mode:p.BYTE,length:l.length}]);break;case p.KANJI:w.push([l,{data:l.data,mode:p.BYTE,length:E(l.data)}]);break;case p.BYTE:w.push([{data:l.data,mode:p.BYTE,length:E(l.data)}])}}return w}function I(S,w){for(var h={},l={start:{}},y=["start"],C=0;C<S.length;C++){for(var k=S[C],O=[],R=0;R<k.length;R++){var N=k[R],P=""+C+R;O.push(P),h[P]={node:N,lastCount:0},l[P]={};for(var L=0;L<y.length;L++){var $=y[L];h[$]&&h[$].node.mode===N.mode?(l[$][P]=b(h[$].lastCount+N.length,N.mode)-b(h[$].lastCount,N.mode),h[$].lastCount+=N.length):(h[$]&&(h[$].lastCount=N.length),l[$][P]=b(N.length,N.mode)+4+p.getCharCountIndicator(N.mode,w))}}y=O}for(L=0;L<y.length;L++)l[y[L]].end=0;return{map:l,table:h}}function F(S,w){var h,l=p.getBestModeForData(S);if(h=p.from(w,l),h!==p.BYTE&&h.bit<l.bit)throw new Error('"'+S+'" cannot be encoded with mode '+p.toString(h)+`.
|
|
Suggested mode is: `+p.toString(l));switch(h===p.KANJI&&!n.isKanjiModeEnabled()&&(h=p.BYTE),h){case p.NUMERIC:return new c(S);case p.ALPHANUMERIC:return new u(S);case p.KANJI:return new a(S);case p.BYTE:return new i(S)}}d.fromArray=function(w){return w.reduce(function(h,l){return typeof l=="string"?h.push(F(l,null)):l.data&&h.push(F(l.data,l.mode)),h},[])},d.fromString=function(w,h){for(var l=U(w,n.isKanjiModeEnabled()),y=A(l),C=I(y,h),k=m.find_path(C.map,"start","end"),O=[],R=1;R<k.length-1;R++)O.push(C.table[k[R]].node);return d.fromArray(M(O))},d.rawSplit=function(w){return d.fromArray(U(w,n.isKanjiModeEnabled()))}},{"./alphanumeric-data":3,"./byte-data":6,"./kanji-data":12,"./mode":14,"./numeric-data":15,"./regex":19,"./utils":21,dijkstrajs:31}],21:[function(g,T,d){var p,c=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];d.getSymbolSize=function(i){if(!i)throw new Error('"version" cannot be null or undefined');if(i<1||i>40)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<<p.getBCHDigit(I)-m;return A<<12|I}},{"./error-correction-code":7,"./error-correction-level":8,"./mode":14,"./utils":21,"./version-check":22,isarray:33}],24:[function(g,T,d){var p=g("./can-promise"),c=g("./core/qrcode"),u=g("./renderer/canvas"),i=g("./renderer/svg-tag.js");function a(f,n,m,E,_){var U=[].slice.call(arguments,1),b=U.length,M=typeof U[b-1]=="function";if(!M&&!p())throw new Error("Callback required as last argument");if(M){if(b<2)throw new Error("Too few arguments provided");b===2?(_=m,m=n,n=E=void 0):b===3&&(n.getContext&&typeof _=="undefined"?(_=E,E=void 0):(_=E,E=m,m=n,n=void 0))}else{if(b<1)throw new Error("Too few arguments provided");return b===1?(m=n,n=E=void 0):b===2&&!n.getContext&&(E=m,m=n,n=void 0),new Promise(function(I,F){try{var S=c.create(m,E);I(f(S,n,E))}catch(w){F(w)}})}try{var A=c.create(m,E);_(null,f(A,n,E))}catch(I){_(I)}}d.create=c.create,d.toCanvas=a.bind(null,u.render),d.toDataURL=a.bind(null,u.renderToDataURL),d.toString=a.bind(null,function(f,n,m){return i.render(f,m)})},{"./can-promise":1,"./core/qrcode":17,"./renderer/canvas":25,"./renderer/svg-tag.js":26}],25:[function(g,T,d){var p=g("./utils");function c(i,a,f){i.clearRect(0,0,a.width,a.height),a.style||(a.style={}),a.height=f,a.width=f,a.style.height=f+"px",a.style.width=f+"px"}function u(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}d.render=function(a,f,n){var m=n,E=f;typeof m=="undefined"&&(!f||!f.getContext)&&(m=f,f=void 0),f||(E=u()),m=p.getOptions(m);var _=p.getImageWidth(a.modules.size,m),U=E.getContext("2d"),b=U.createImageData(_,_);return p.qrToImageData(b.data,a,m),c(U,E,_),U.putImageData(b,0,0),E},d.renderToDataURL=function(a,f,n){var m=n;typeof m=="undefined"&&(!f||!f.getContext)&&(m=f,f=void 0),m||(m={});var E=d.render(a,f,m),_=m.type||"image/png",U=m.rendererOpts||{};return E.toDataURL(_,U.quality)}},{"./utils":27}],26:[function(g,T,d){var p=g("./utils");function c(a,f){var n=a.a/255,m=f+'="'+a.hex+'"';return n<1?m+" "+f+'-opacity="'+n.toFixed(2).slice(1)+'"':m}function u(a,f,n){var m=a+f;return typeof n!="undefined"&&(m+=" "+n),m}function i(a,f,n){for(var m="",E=0,_=!1,U=0,b=0;b<a.length;b++){var M=Math.floor(b%f),A=Math.floor(b/f);!M&&!_&&(_=!0),a[b]?(U++,b>0&&M>0&&a[b-1]||(m+=_?u("M",M+n,.5+A+n):u("m",E,0),E=0,_=!1),M+1<f&&a[b+1]||(m+=u("h",U),U=0)):E++}return m}d.render=function(f,n,m){var E=p.getOptions(n),_=f.modules.size,U=f.modules.data,b=_+E.margin*2,M=E.color.light.a?"<path "+c(E.color.light,"fill")+' d="M0 0h'+b+"v"+b+'H0z"/>':"",A="<path "+c(E.color.dark,"stroke")+' d="'+i(U,_,E.margin)+'"/>',I='viewBox="0 0 '+b+" "+b+'"',F=E.width?'width="'+E.width+'" height="'+E.width+'" ':"",S='<svg xmlns="http://www.w3.org/2000/svg" '+F+I+' shape-rendering="crispEdges">'+M+A+`</svg>
|
|
`;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<E;b++)for(var M=0;M<E;M++){var A=(b*E+M)*4,I=a.color.light;if(b>=_&&M>=_&&b<E-_&&M<E-_){var F=Math.floor((b-_)/m),S=Math.floor((M-_)/m);I=U[n[F*f+S]?1:0]}u[A++]=I.r,u[A++]=I.g,u[A++]=I.b,u[A]=I.a}}},{}],28:[function(g,T,d){var p=g("isarray");function c(){try{var w=new Uint8Array(1);return w.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},w.foo()===42}catch{return!1}}i.TYPED_ARRAY_SUPPORT=c();var u=i.TYPED_ARRAY_SUPPORT?2147483647:1073741823;function i(w,h,l){return!i.TYPED_ARRAY_SUPPORT&&!(this instanceof i)?new i(w,h,l):typeof w=="number"?m(this,w):S(this,w,h,l)}i.TYPED_ARRAY_SUPPORT&&(i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}));function a(w){if(w>=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;y<h;++y)l[y]=0;return l}function E(w,h){var l=A(h)|0,y=n(w,l),C=y.write(h);return C!==l&&(y=y.slice(0,C)),y}function _(w,h){for(var l=h.length<0?0:a(h.length)|0,y=n(w,l),C=0;C<l;C+=1)y[C]=h[C]&255;return y}function U(w,h,l,y){if(l<0||h.byteLength<l)throw new RangeError("'offset' is out of bounds");if(h.byteLength<l+(y||0))throw new RangeError("'length' is out of bounds");var C;return l===void 0&&y===void 0?C=new Uint8Array(h):y===void 0?C=new Uint8Array(h,l):C=new Uint8Array(h,l,y),i.TYPED_ARRAY_SUPPORT?C.__proto__=i.prototype:C=_(w,C),C}function b(w,h){if(i.isBuffer(h)){var l=a(h.length)|0,y=n(w,l);return y.length===0||h.copy(y,0,0,l),y}if(h){if(typeof ArrayBuffer!="undefined"&&h.buffer instanceof ArrayBuffer||"length"in h)return typeof h.length!="number"||f(h.length)?n(w,0):_(w,h);if(h.type==="Buffer"&&Array.isArray(h.data))return _(w,h.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function M(w,h){h=h||1/0;for(var l,y=w.length,C=null,k=[],O=0;O<y;++O){if(l=w.charCodeAt(O),l>55295&&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<y&&!(C+l>=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&&(l=h);var C;if(i.TYPED_ARRAY_SUPPORT)C=this.subarray(h,l),C.__proto__=i.prototype;else{var k=l-h;C=new i(k,void 0);for(var O=0;O<k;++O)C[O]=this[O+h]}return C},i.prototype.copy=function(h,l,y,C){if(y||(y=0),!C&&C!==0&&(C=this.length),l>=h.length&&(l=h.length),l||(l=0),C>0&&C<y&&(C=y),C===y||h.length===0||this.length===0)return 0;if(l<0)throw new RangeError("targetStart out of bounds");if(y<0||y>=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<C-y&&(C=h.length-l+y);var k=C-y,O;if(this===h&&y<l&&l<C)for(O=k-1;O>=0;--O)h[O+l]=this[O+y];else if(k<1e3||!i.TYPED_ARRAY_SUPPORT)for(O=0;O<k;++O)h[O+l]=this[O+y];else Uint8Array.prototype.set.call(h,this.subarray(y,y+k),l);return k},i.prototype.fill=function(h,l,y){if(typeof h=="string"){if(typeof l=="string"?(l=0,y=this.length):typeof y=="string"&&(y=this.length),h.length===1){var C=h.charCodeAt(0);C<256&&(h=C)}}else typeof h=="number"&&(h=h&255);if(l<0||this.length<l||this.length<y)throw new RangeError("Out of range index");if(y<=l)return this;l=l>>>0,y=y===void 0?this.length:y>>>0,h||(h=0);var k;if(typeof h=="number")for(k=l;k<y;++k)this[k]=h;else{var O=i.isBuffer(h)?h:new i(h),R=O.length;for(k=0;k<y-l;++k)this[k+l]=O[k%R]}return this},i.concat=function(h,l){if(!p(h))throw new TypeError('"list" argument must be an Array of Buffers');if(h.length===0)return n(null,0);var y;if(l===void 0)for(l=0,y=0;y<h.length;++y)l+=h[y].length;var C=m(null,l),k=0;for(y=0;y<h.length;++y){var O=h[y];if(!i.isBuffer(O))throw new TypeError('"list" argument must be an Array of Buffers');O.copy(C,k),k+=O.length}return C},i.byteLength=A,i.prototype._isBuffer=!0,i.isBuffer=function(h){return!!(h!=null&&h._isBuffer)},T.exports.alloc=function(w){var h=new i(w);return h.fill(0),h},T.exports.from=function(w){return new i(w)}},{isarray:33}],29:[function(g,T,d){d.byteLength=m,d.toByteArray=_,d.fromByteArray=M;for(var p=[],c=[],u=typeof Uint8Array!="undefined"?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,f=i.length;a<f;++a)p[a]=i[a],c[i.charCodeAt(a)]=a;c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63;function n(A){var I=A.length;if(I%4>0)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<y;C+=4)I=c[A.charCodeAt(C)]<<18|c[A.charCodeAt(C+1)]<<12|c[A.charCodeAt(C+2)]<<6|c[A.charCodeAt(C+3)],h[l++]=I>>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;h<F;h+=3)S=(A[h]<<16&16711680)+(A[h+1]<<8&65280)+(A[h+2]&255),w.push(U(S));return w.join("")}function M(A){for(var I,F=A.length,S=F%3,w=[],h=16383,l=0,y=F-S;l<y;l+=h)w.push(b(A,l,l+h>y?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<r;o+=1)e[o]=t[o]&255;return e}function A(t,r,e){if(r<0||t.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<r+(e||0))throw new RangeError('"length" is outside of buffer bounds');var o;return r===void 0&&e===void 0?o=new Uint8Array(t):e===void 0?o=new Uint8Array(t,r):o=new Uint8Array(t,r,e),Object.setPrototypeOf(o,n.prototype),o}function I(t){if(n.isBuffer(t)){var r=F(t.length)|0,e=f(r);return e.length===0||t.copy(e,0,0,r),e}if(t.length!==void 0)return typeof t.length!="number"||gr(t.length)?f(0):M(t);if(t.type==="Buffer"&&Array.isArray(t.data))return M(t.data)}function F(t){if(t>=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);B<x;++B)if(r[B]!==e[B]){o=r[B],v=e[B];break}return o<v?-1:v<o?1:0},n.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},n.concat=function(r,e){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return n.alloc(0);var o;if(e===void 0)for(e=0,o=0;o<r.length;++o)e+=r[o].length;var v=n.allocUnsafe(e),B=0;for(o=0;o<r.length;++o){var x=r[o];if(Q(x,Uint8Array)&&(x=n.from(x)),!n.isBuffer(x))throw new TypeError('"list" argument must be an Array of Buffers');x.copy(v,B),B+=x.length}return v};function w(t,r){if(n.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||Q(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var e=t.length,o=arguments.length>2&&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;e<r;e+=2)l(this,e,e+1);return this},n.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<r;e+=4)l(this,e,e+3),l(this,e+1,e+2);return this},n.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<r;e+=8)l(this,e,e+7),l(this,e+1,e+6),l(this,e+2,e+5),l(this,e+3,e+4);return this},n.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?H(this,0,r):h.apply(this,arguments)},n.prototype.toLocaleString=n.prototype.toString,n.prototype.equals=function(r){if(!n.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:n.compare(this,r)===0},n.prototype.inspect=function(){var r="",e=d.INSPECT_MAX_BYTES;return r=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(r+=" ... "),"<Buffer "+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;Z<K;++Z)if(q[Z]!==j[Z]){x=q[Z],z=j[Z];break}return x<z?-1:z<x?1:0};function y(t,r,e,o,v){if(t.length===0)return-1;if(typeof e=="string"?(o=e,e=0):e>2147483647?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;q<x;q++)if(K(t,q)===K(r,j===-1?0:q-j)){if(j===-1&&(j=q),q-j+1===z)return j*B}else j!==-1&&(q-=q-j),j=-1}else for(e+z>x&&(e=x-z),q=e;q>=0;q--){for(var Z=!0,lr=0;lr<z;lr++)if(K(t,q+lr)!==K(r,lr)){Z=!1;break}if(Z)return q}return-1}n.prototype.includes=function(r,e,o){return this.indexOf(r,e,o)!==-1},n.prototype.indexOf=function(r,e,o){return y(this,r,e,o,!0)},n.prototype.lastIndexOf=function(r,e,o){return y(this,r,e,o,!1)};function k(t,r,e,o){e=Number(e)||0;var v=t.length-e;o?(o=Number(o),o>v&&(o=v)):o=v;var B=r.length;o>B/2&&(o=B/2);for(var x=0;x<o;++x){var z=parseInt(r.substr(x*2,2),16);if(gr(z))return x;t[e+x]=z}return x}function O(t,r,e,o){return rr(tr(r,t.length-e),t,e,o)}function R(t,r,e,o){return rr(ur(r),t,e,o)}function N(t,r,e,o){return R(t,r,e,o)}function P(t,r,e,o){return rr(fr(r),t,e,o)}function L(t,r,e,o){return rr(sr(r,t.length-e),t,e,o)}n.prototype.write=function(r,e,o,v){if(e===void 0)v="utf8",o=this.length,e=0;else if(o===void 0&&typeof e=="string")v=e,o=this.length,e=0;else if(isFinite(e))e=e>>>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;v<e;){var B=t[v],x=null,z=B>239?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;o<r;)e+=String.fromCharCode.apply(String,t.slice(o,o+=D));return e}function J(t,r,e){var o="";e=Math.min(t.length,e);for(var v=r;v<e;++v)o+=String.fromCharCode(t[v]&127);return o}function er(t,r,e){var o="";e=Math.min(t.length,e);for(var v=r;v<e;++v)o+=String.fromCharCode(t[v]);return o}function G(t,r,e){var o=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>o)&&(e=o);for(var v="",B=r;B<e;++B)v+=Ar[t[B]];return v}function cr(t,r,e){for(var o=t.slice(r,e),v="",B=0;B<o.length;B+=2)v+=String.fromCharCode(o[B]+o[B+1]*256);return v}n.prototype.slice=function(r,e){var o=this.length;r=~~r,e=e===void 0?o:~~e,r<0?(r+=o,r<0&&(r=0)):r>o&&(r=o),e<0?(e+=o,e<0&&(e=0)):e>o&&(e=o),e<r&&(e=r);var v=this.subarray(r,e);return Object.setPrototypeOf(v,n.prototype),v};function W(t,r,e){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+r>e)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<e&&(B*=256);)v+=this[r+x]*B;return v},n.prototype.readUIntBE=function(r,e,o){r=r>>>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<e&&(B*=256);)v+=this[r+x]*B;return B*=128,v>=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||r<B)throw new RangeError('"value" argument is out of bounds');if(e+o>t.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<o&&(x*=256);)this[e+z]=r/x&255;return e+o},n.prototype.writeUIntBE=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=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<o&&(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.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<o&&(v=o),v===o||r.length===0||this.length===0)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(o<0||o>=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<v-o&&(v=r.length-e+o);var B=v-o;if(this===r&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(e,o,v);else if(this===r&&o<e&&e<v)for(var x=B-1;x>=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<e||this.length<o)throw new RangeError("Out of range index");if(o<=e)return this;e=e>>>0,o=o===void 0?this.length:o>>>0,r||(r=0);var x;if(typeof r=="number")for(x=e;x<o;++x)this[x]=r;else{var z=n.isBuffer(r)?r:n.from(r,v),K=z.length;if(K===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(x=0;x<o-e;++x)this[x+e]=z[x%K]}return this};var ar=/[^+/0-9A-Za-z-_]/g;function dr(t){if(t=t.split("=")[0],t=t.trim().replace(ar,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function tr(t,r){r=r||1/0;for(var e,o=t.length,v=null,B=[],x=0;x<o;++x){if(e=t.charCodeAt(x),e>55295&&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<t.length;++e)r.push(t.charCodeAt(e)&255);return r}function sr(t,r){for(var e,o,v,B=[],x=0;x<t.length&&!((r-=2)<0);++x)e=t.charCodeAt(x),o=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<o&&!(v+e>=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<<m)-1,_=E>>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<<a|m,_+=a;_>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};
|