1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,937962,(e,t,r)=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},906123,(e,t,r)=>{"use strict";var a=e.r(937962);function n(){}function o(){}o.resetWarningCache=n,t.exports=function(){function e(e,t,r,n,o,s){if(s!==a){var l=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:n};return r.PropTypes=r,r}},670761,(e,t,r)=>{t.exports=e.r(906123)()},770736,(e,t,r)=>{t.exports={L:1,M:0,Q:3,H:2}},316558,(e,t,r)=>{t.exports={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8}},893984,(e,t,r)=>{var a=e.r(316558);function n(e){this.mode=a.MODE_8BIT_BYTE,this.data=e}n.prototype={getLength:function(e){return this.data.length},write:function(e){for(var t=0;t<this.data.length;t++)e.put(this.data.charCodeAt(t),8)}},t.exports=n},892914,(e,t,r)=>{var a=e.r(770736);function n(e,t){this.totalCount=e,this.dataCount=t}n.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],n.getRSBlocks=function(e,t){var r=n.getRsBlockTable(e,t);if(void 0==r)throw Error("bad rs block @ typeNumber:"+e+"/errorCorrectLevel:"+t);for(var a=r.length/3,o=[],s=0;s<a;s++)for(var l=r[3*s+0],i=r[3*s+1],u=r[3*s+2],c=0;c<l;c++)o.push(new n(i,u));return o},n.getRsBlockTable=function(e,t){switch(t){case a.L:return n.RS_BLOCK_TABLE[(e-1)*4+0];case a.M:return n.RS_BLOCK_TABLE[(e-1)*4+1];case a.Q:return n.RS_BLOCK_TABLE[(e-1)*4+2];case a.H:return n.RS_BLOCK_TABLE[(e-1)*4+3];default:return}},t.exports=n},903255,(e,t,r)=>{function a(){this.buffer=[],this.length=0}a.prototype={get:function(e){var t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)==1},put:function(e,t){for(var r=0;r<t;r++)this.putBit((e>>>t-r-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},t.exports=a},336751,(e,t,r)=>{for(var a={glog:function(e){if(e<1)throw Error("glog("+e+")");return a.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return a.EXP_TABLE[e]},EXP_TABLE:Array(256),LOG_TABLE:Array(256)},n=0;n<8;n++)a.EXP_TABLE[n]=1<<n;for(var n=8;n<256;n++)a.EXP_TABLE[n]=a.EXP_TABLE[n-4]^a.EXP_TABLE[n-5]^a.EXP_TABLE[n-6]^a.EXP_TABLE[n-8];for(var n=0;n<255;n++)a.LOG_TABLE[a.EXP_TABLE[n]]=n;t.exports=a},920432,(e,t,r)=>{var a=e.r(336751);function n(e,t){if(void 0==e.length)throw Error(e.length+"/"+t);for(var r=0;r<e.length&&0==e[r];)r++;this.num=Array(e.length-r+t);for(var a=0;a<e.length-r;a++)this.num[a]=e[a+r]}n.prototype={get:function(e){return this.num[e]},getLength:function(){return this.num.length},multiply:function(e){for(var t=Array(this.getLength()+e.getLength()-1),r=0;r<this.getLength();r++)for(var o=0;o<e.getLength();o++)t[r+o]^=a.gexp(a.glog(this.get(r))+a.glog(e.get(o)));return new n(t,0)},mod:function(e){if(this.getLength()-e.getLength()<0)return this;for(var t=a.glog(this.get(0))-a.glog(e.get(0)),r=Array(this.getLength()),o=0;o<this.getLength();o++)r[o]=this.get(o);for(var o=0;o<e.getLength();o++)r[o]^=a.gexp(a.glog(e.get(o))+t);return new n(r,0).mod(e)}},t.exports=n},288531,(e,t,r)=>{var a=e.r(316558),n=e.r(920432),o=e.r(336751),s={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(e){for(var t=e<<10;
1s.getBCHDigit(t)-s.getBCHDigit(s.G15)>=0;)t^=s.G15<<s.getBCHDigit(t)-s.getBCHDigit(s.G15);return(e<<10|t)^s.G15_MASK},getBCHTypeNumber:function(e){for(var t=e<<12;s.getBCHDigit(t)-s.getBCHDigit(s.G18)>=0;)t^=s.G18<<s.getBCHDigit(t)-s.getBCHDigit(s.G18);return e<<12|t},getBCHDigit:function(e){for(var t=0;0!=e;)t++,e>>>=1;return t},getPatternPosition:function(e){return s.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,r){switch(e){case 0:return(t+r)%2==0;case 1:return t%2==0;case 2:return r%3==0;case 3:return(t+r)%3==0;case 4:return(Math.floor(t/2)+Math.floor(r/3))%2==0;case 5:return t*r%2+t*r%3==0;case 6:return(t*r%2+t*r%3)%2==0;case 7:return(t*r%3+(t+r)%2)%2==0;default:throw Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new n([1],0),r=0;r<e;r++)t=t.multiply(new n([1,o.gexp(r)],0));return t},getLengthInBits:function(e,t){if(1<=t&&t<10)switch(e){case a.MODE_NUMBER:return 10;case a.MODE_ALPHA_NUM:return 9;case a.MODE_8BIT_BYTE:case a.MODE_KANJI:return 8;default:throw Error("mode:"+e)}if(t<27)switch(e){case a.MODE_NUMBER:return 12;case a.MODE_ALPHA_NUM:return 11;case a.MODE_8BIT_BYTE:return 16;case a.MODE_KANJI:return 10;default:throw Error("mode:"+e)}if(t<41)switch(e){case a.MODE_NUMBER:return 14;case a.MODE_ALPHA_NUM:return 13;case a.MODE_8BIT_BYTE:return 16;case a.MODE_KANJI:return 12;default:throw Error("mode:"+e)}throw Error("type:"+t)},getLostPoint:function(e){for(var t=e.getModuleCount(),r=0,a=0;a<t;a++)for(var n=0;n<t;n++){for(var o=0,s=e.isDark(a,n),l=-1;l<=1;l++)if(!(a+l<0)&&!(t<=a+l))for(var i=-1;i<=1;i++)!(n+i<0)&&!(t<=n+i)&&(0!=l||0!=i)&&s==e.isDark(a+l,n+i)&&o++;o>5&&(r+=3+o-5)}for(var a=0;a<t-1;a++)for(var n=0;n<t-1;n++){var u=0;e.isDark(a,n)&&u++,e.isDark(a+1,n)&&u++,e.isDark(a,n+1)&&u++,e.isDark(a+1,n+1)&&u++,(0==u||4==u)&&(r+=3)}for(var a=0;a<t;a++)for(var n=0;n<t-6;n++)e.isDark(a,n)&&!e.isDark(a,n+1)&&e.isDark(a,n+2)&&e.isDark(a,n+3)&&e.isDark(a,n+4)&&!e.isDark(a,n+5)&&e.isDark(a,n+6)&&(r+=40);for(var n=0;n<t;n++)for(var a=0;a<t-6;a++)e.isDark(a,n)&&!e.isDark(a+1,n)&&e.isDark(a+2,n)&&e.isDark(a+3,n)&&e.isDark(a+4,n)&&!e.isDark(a+5,n)&&e.isDark(a+6,n)&&(r+=40);for(var c=0,n=0;n<t;n++)for(var a=0;a<t;a++)e.isDark(a,n)&&c++;return r+10*(Math.abs(100*c/t/t-50)/5)}};t.exports=s},589476,(e,t,r)=>{var a=e.r(893984),n=e.r(892914),o=e.r(903255),s=e.r(288531),l=e.r(920432);function i(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}var u=i.prototype;u.addData=function(e){var t=new a(e);this.dataList.push(t),this.dataCache=null},u.isDark=function(e,t){if(e<0||this.moduleCount<=e||t<0||this.moduleCount<=t)throw Error(e+","+t);return this.modules[e][t]},u.getModuleCount=function(){return this.moduleCount},u.make=function(){if(this.typeNumber<1){var e=1;for(e=1;e<40;e++){for(var t=n.getRSBlocks(e,this.errorCorrectLevel),r=new o,a=0,l=0;l<t.length;l++)a+=t[l].dataCount;for(var l=0;l<this.dataList.length;l++){var i=this.dataList[l];r.put(i.mode,4),r.put(i.getLength(),s.getLengthInBits(i.mode,e)),i.write(r)}if(r.getLengthInBits()<=8*a)break}this.typeNumber=e}this.makeImpl(!1,this.getBestMaskPattern())},u.makeImpl=function(e,t){this.moduleCount=4*this.typeNumber+17,this.modules=Array(this.moduleCount);for(var r=0;r<this.moduleCount;r++){this.modules[r]=Array(this.moduleCount);for(var a=0;a<this.moduleCount;a++)this.modules[r][a]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(e,t),this.typeNumber>=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=i.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},u.setupPositionProbePattern=function(e,t){for(var r=-1;r<=7;r++)if(!(e+r<=-1)&&!(this.moduleCount<=e+r))for(var a=-1;a<=7;a++)t+a<=-1||this.moduleCount<=t+a||(0<=r&&r<=6&&(0==a||6==a)||0<=a&&a<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=a&&a<=4?this.modules[e+r][t+a]=!0:this.modules[e+r][t+a]=!1)},u.getBestMaskPattern=function(){for(var e=0,t=0,r=0;r<8;r++){this.makeImpl(!0,r);var a=s.getLostPoint(this);(0==r||e>a)&&(e=a,t=r)}return t},u.createMovieClip=function(e,t,r){var a=e.createEmptyMovieClip(t,r);this.make();for(var n=0;n<this.modules.length;n++)for(var o=+n,s=0;s<this.modules[n].length;s++){var l=+s;this.modules[n][s]&&(a.beginFill(0,100),a.moveTo(l,o),a.lineTo(l+1,o),a.lineTo(l+1,o+1),a.lineTo(l,o+1),a.endFill())}return a},u.setupTimingPattern=function(){for(var e=8;e<this.moduleCount-8;e++)null==this.modules[e][6]&&(this.modules[e][6]=e%2==0);for(var t=8;t<this.moduleCount-8;t++)null==this.modules[6][t]&&(this.modules[6][t]=t%2==0)},u.setupPositionAdjustPattern=function(){for(var e=s.getPatternPosition(this.typeNumber),t=0;t<e.length;t++)for(var r=0;r<e.length;r++){var a=e[t],n=e[r];if(null==this.modules[a][n])for(var o=-2;o<=2;o++)for(var l=-2;l<=2;l++)-2==o||2==o||-2==l||2==l||0==o&&0==l?this.modules[a+o][n+l]=!0:this.modules[a+o][n+l]=!1}},u.setupTypeNumber=function(e){for(var t=s.getBCHTypeNumber(this.typeNumber),r=0;r<18;r++){var a=!e&&(t>>r&1)==1;this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=a}for(var r=0;r<18;r++){var a=!e&&(t>>r&1)==1;this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=a}},u.setupTypeInfo=function(e,t){for(var r=this.errorCorrectLevel<<3|t,a=s.getBCHTypeInfo(r),n=0;n<15;n++){var o=!e&&(a>>n&1)==1;n<6?this.modules[n][8]=o:n<8?this.modules[n+1][8]=o:this.modules[this.moduleCount-15+n][8]=o}for(var n=0;n<15;n++){var o=!e&&(a>>n&1)==1;n<8?this.modules[8][this.moduleCount-n-1]=o:n<9?this.modules[8][15-n-1+1]=o:this.modules[8][15-n-1]=o}this.modules[this.moduleCount-8][8]=!e},u.mapData=function(e,t){for(var r=-1,a=this.moduleCount-1,n=7,o=0,l=this.moduleCount-1;l>0;l-=2)for(6==l&&l--;;){for(var i=0;i<2;i++)if(null==this.modules[a][l-i]){var u=!1;o<e.length&&(u=(e[o]>>>
1n&1)==1),s.getMask(t,a,l-i)&&(u=!u),this.modules[a][l-i]=u,-1==--n&&(o++,n=7)}if((a+=r)<0||this.moduleCount<=a){a-=r,r=-r;break}}},i.PAD0=236,i.PAD1=17,i.createData=function(e,t,r){for(var a=n.getRSBlocks(e,t),l=new o,u=0;u<r.length;u++){var c=r[u];l.put(c.mode,4),l.put(c.getLength(),s.getLengthInBits(c.mode,e)),c.write(l)}for(var d=0,u=0;u<a.length;u++)d+=a[u].dataCount;if(l.getLengthInBits()>8*d)throw Error("code length overflow. ("+l.getLengthInBits()+">"+8*d+")");for(l.getLengthInBits()+4<=8*d&&l.put(0,4);l.getLengthInBits()%8!=0;)l.putBit(!1);for(;!(l.getLengthInBits()>=8*d)&&(l.put(i.PAD0,8),!(l.getLengthInBits()>=8*d));){;l.put(i.PAD1,8)}return i.createBytes(l,a)},i.createBytes=function(e,t){for(var r=0,a=0,n=0,o=Array(t.length),i=Array(t.length),u=0;u<t.length;u++){var c=t[u].dataCount,d=t[u].totalCount-c;a=Math.max(a,c),n=Math.max(n,d),o[u]=Array(c);for(var m=0;m<o[u].length;m++)o[u][m]=255&e.buffer[m+r];r+=c;var h=s.getErrorCorrectPolynomial(d),g=new l(o[u],h.getLength()-1).mod(h);i[u]=Array(h.getLength()-1);for(var m=0;m<i[u].length;m++){var f=m+g.getLength()-i[u].length;i[u][m]=f>=0?g.get(f):0}}for(var p=0,m=0;m<t.length;m++)p+=t[m].totalCount;for(var x=Array(p),v=0,m=0;m<a;m++)for(var u=0;u<t.length;u++)m<o[u].length&&(x[v++]=o[u][m]);for(var m=0;m<n;m++)for(var u=0;u<t.length;u++)m<i[u].length&&(x[v++]=i[u][m]);return x},t.exports=i},4453,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},n=l(e.r(670761)),o=e.r(534239),s=l(o);function l(e){return e&&e.__esModule?e:{default:e}}var i={bgColor:n.default.oneOfType([n.default.object,n.default.string]).isRequired,bgD:n.default.string.isRequired,fgColor:n.default.oneOfType([n.default.object,n.default.string]).isRequired,fgD:n.default.string.isRequired,size:n.default.number.isRequired,title:n.default.string,viewBoxSize:n.default.number.isRequired,xmlns:n.default.string},u=(0,o.forwardRef)(function(e,t){var r=e.bgColor,n=e.bgD,o=e.fgD,l=e.fgColor,i=e.size,u=e.title,c=e.viewBoxSize,d=e.xmlns,m=function(e,t){var r={};for(var a in e)!(t.indexOf(a)>=0)&&Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}(e,["bgColor","bgD","fgD","fgColor","size","title","viewBoxSize","xmlns"]);return s.default.createElement("svg",a({},m,{height:i,ref:t,viewBox:"0 0 "+c+" "+c,width:i,xmlns:void 0===d?"http://www.w3.org/2000/svg":d}),u?s.default.createElement("title",null,u):null,s.default.createElement("path",{d:n,fill:r}),s.default.createElement("path",{d:o,fill:l}))});u.displayName="QRCodeSvg",u.propTypes=i,r.default=u},415763,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.QRCode=void 0;var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},n=c(e.r(670761)),o=c(e.r(770736)),s=c(e.r(589476)),l=e.r(534239),i=c(l),u=c(e.r(4453));function c(e){return e&&e.__esModule?e:{default:e}}var d={bgColor:n.default.oneOfType([n.default.object,n.default.string]),fgColor:n.default.oneOfType([n.default.object,n.default.string]),level:n.default.string,size:n.default.number,value:n.default.string.isRequired},m=(0,l.forwardRef)(function(e,t){var r=e.bgColor,n=e.fgColor,l=e.level,c=e.size,d=e.value,m=function(e,t){var r={};for(var a in e)!(t.indexOf(a)>=0)&&Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}(e,["bgColor","fgColor","level","size","value"]),h=new s.default(-1,o.default[void 0===l?"L":l]);h.addData(d),h.make();var g=h.modules;return i.default.createElement(u.default,a({},m,{bgColor:void 0===r?"#FFFFFF":r,bgD:g.map(function(e,t){return e.map(function(e,r){return e?"":"M "+r+" "+t+" l 1 0 0 1 -1 0 Z"}).join(" ")}).join(" "),fgColor:void 0===n?"#000000":n,fgD:g.map(function(e,t){return e.map(function(e,r){return e?"M "+r+" "+t+" l 1 0 0 1 -1 0 Z":""}).join(" ")}).join(" "),ref:t,size:void 0===c?256:c,viewBoxSize:g.length}))});r.QRCode=m,m.displayName="QRCode",m.propTypes=d,r.default=m},517255,e=>{"use strict";var t=e.i(877328),r=e.i(175715),a=e.i(534239),n=e.i(976842),o=e.i(110237),s=e.i(415763),l=e.i(786210);function i({visible:e,onHide:i,checkoutData:u,onSuccess:c,dashboardMode:d=!0}){let m,[h,g]=(0,a.useState)(!1),[f,p]=(0,a.useState)(null),[x,v]=(0,a.useState)(null),[y,b]=(0,a.useState)("pending"),[C,j]=(0,a.useState)(null),[w,N]=(0,a.useState)("select"),[k,B]=(0,a.useState)("USDT"),[E,T]=(0,a.useState)("trc20"),P=[{code:"BTC",name:"Bitcoin",icon:"/footer/currency/bitcoin.svg",networks:[{value:"bitcoin",label:"Bitcoin Network"}]}
1,{code:"ETH",name:"Ethereum",icon:"/footer/currency/eth.svg",networks:[{value:"ethereum",label:"Ethereum Network"}]},{code:"USDT",name:"Tether",icon:"/footer/currency/tether.svg",networks:[{value:"trc20",label:"TRC20 (Tron)",recommended:!0},{value:"erc20",label:"ERC20 (Ethereum)"},{value:"bep20",label:"BEP20 (BSC)"},{value:"polygon",label:"Polygon"},{value:"solana",label:"Solana"}]},{code:"USDC",name:"USD Coin",icon:"/footer/currency/usd.svg",networks:[{value:"erc20",label:"ERC20 (Ethereum)",recommended:!0},{value:"trc20",label:"TRC20 (Tron)"},{value:"bep20",label:"BEP20 (BSC)"},{value:"polygon",label:"Polygon"}]},{code:"SOL",name:"Solana",icon:"/footer/currency/solana.svg",networks:[{value:"solana",label:"Solana Network"}]},{code:"LTC",name:"Litecoin",icon:"/footer/currency/ltc.svg",networks:[{value:"litecoin",label:"Litecoin Network"}]},{code:"BNB",name:"Binance Coin",icon:"/footer/currency/bnb.svg",networks:[{value:"bep20",label:"BEP20 (BSC)"}]},{code:"BCH",name:"Bitcoin Cash",icon:"/footer/currency/bch.svg",networks:[{value:"bitcoincash",label:"Bitcoin Cash Network"}]},{code:"XMR",name:"Monero",icon:"/footer/currency/xmr.svg",networks:[{value:"monero",label:"Monero Network"}]}];(0,a.useEffect)(()=>{e&&u&&"payment"===w&&L()},[e,u,w]),(0,a.useEffect)(()=>{if(!x||"pending"!==y)return;let e=setInterval(async()=>{try{let t=await fetch("https://us-central1-bart-proxies.cloudfunctions.net/checkCryptoPayment",{method:"POST",headers:{"Content-Type":"application/json",Authorization:u.idToken},body:JSON.stringify({orderId:x.order_id})}),r=await t.json();"paid"===r.status||"paid_over"===r.status?(b("completed"),clearInterval(e),o.toast.success("Payment completed successfully!"),c?.(),setTimeout(()=>{i(),d||(window.location.href="/success")},1e3)):("failed"===r.status||"cancel"===r.status||"system_fail"===r.status)&&(b("failed"),clearInterval(e),p("Payment failed or was cancelled"))}catch(e){console.error("Error checking payment status:",e)}},5e3);return()=>clearInterval(e)},[x,y,u,c,i]),(0,a.useEffect)(()=>{if(!x?.expired_at)return;let e=()=>{let e=new Date(1e3*x.expired_at).getTime()-Date.now();if(e<=0)j("Expired"),b("failed"),p("Payment request has expired");else{let t=Math.floor(e/6e4),r=Math.floor(e%6e4/1e3);j(`${t}:${r.toString().padStart(2,"0")}`)}};e();let t=setInterval(e,1e3);return()=>clearInterval(t)},[x]);let L=async()=>{try{g(!0),p(null),b("pending");let e=u?.planType&&u?.planID,t=u?.updatePlanRefID,r=u?.topupAmount,a=u?.templateId;if(!e&&!t&&!r&&!a){g(!1),p("Required parameters missing for crypto checkout."),o.toast.error("Required parameters missing for crypto checkout."),N("select");return}let n={planType:u.planType,planID:u.planID,subPlanID:u.subPlanID||"",couponCode:u.couponCode||"",updatePlanRefID:u.updatePlanRefID||"",referenceId:u.referenceId||`checkout_${Date.now()}`,useBalance:u.useBalance||!1,currency:k,network:E};u.templateId&&(n.templateId=u.templateId),u.topupAmount&&(n.topupAmount=u.topupAmount),u.macMini&&(n.macMini=!0),void 0!==u.autoRenew&&(n.autoRenew=u.autoRenew),u.utmSource&&(n.utmSource=u.utmSource,n.utmMedium=u.utmMedium||"",n.utmCampaign=u.utmCampaign||"",n.utmContent=u.utmContent||"",n.utmTerm=u.utmTerm||""),u.gaCookie&&(n.gaCookie=u.gaCookie),d&&(n.returnUrl=window.location.pathname);let s=await fetch("https://us-central1-bart-proxies.cloudfunctions.net/createCrypto",{method:"POST",headers:{"Content-Type":"application/json",Authorization:u.idToken},body:JSON.stringify(n)}),l=await s.json();if(console.log("Crypto payment response:",l),console.log("Payment result data:",l.result),"error"===l.status)throw Error(l.message);if("success"===l.status&&0===l.state&&l.result?.url==="/success"){o.toast.success("Payment completed successfully!"),c?.(),i();return}if(0===l.state&&l.result){let e=l.result,t=e.payer_amount||e.amount,r=e.payer_currency||e.currency||k,a="USD"===e.currency?e.amount:u.amount;v({...e,amount:t,currency:r,amount_usd:a,payer_amount:e.payer_amount,payer_currency:e.payer_currency}),console.log("Crypto payment created successfully:",{originalResponse:e,processed:{cryptoAmount:t,cryptoCurrency:r,usdAmount:a,selectedCurrency:k,selectedNetwork:E}}),b("pending")}else throw Error("Failed to create crypto payment")}catch(e){console.error("Error creating crypto payment:",e),p(e.message),o.toast.error(e.message||"Failed to initialize crypto payment"),N("select")}finally{g(!1)}};return(0,a.useEffect)(()=>{e||(N("select"),v(null),p(null),b("pending"),B("USDT"),T("trc20"))},[e]),(0,t.jsx)(r.Dialog,{visible:e,onHide:i,header:(0,t.jsx)("div",{className:"flex items-center justify-between w-full",children:(0,t.jsx)("h3",{className:"text-xl font-semibold text-gray-800",children:"select"===w?"Select Cryptocurrency":"Cryptocurrency Payment"})}),headerStyle:{backgroundColor:"#FBFAF9",borderTopLeftRadius:"16px",borderTopRightRadius:"16px",padding:"1.5rem"},style:{width:"90vw",maxWidth:"600px"},draggable:!1,dismissableMask:!0,className:"custom-dialog",children:(0,t.jsxs)("div",{className:"space-y-6 p-6",children:["select"===w&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"bg-gray-50 rounded-lg p-6 text-center",children:[(0,t.jsx)("p",{className:"text-sm text-gray-600 mb-2",children:"Amount to Pay"}),(0,t.jsxs)("p",{className:"text-4xl font-bold text-gray-900",children:["$",u?.amount||"0.00"," ",(0,t.jsx)("span",{className:"text-2xl text-gray-600",children:"USD"})]})]}),(0,t.jsx)(n.default,{}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-3",children:"Select Cryptocurrency"}),(0,t.jsx)("div",{className:"grid grid-cols-2 gap-3",children:P.map(e=>(0,t.jsxs)("button",{onClick:()=>{B(e.code),T(e.networks[0].value)},className:`flex items-center gap-3 p-4 border-2 rounded-lg transition-all ${k===e.code?"border-orange-500 bg-orange-50":"border-gray-200 hover:border-gray-300"}`,children:[(0,t.jsx)(l.default,{src:e.icon,alt:e.name,width:32,height:32,className:"w-8 h-8",priority:!0}),(0,t.jsxs)("div",{className:"text-left",children:[(0,t.jsx)("p",{className:"font-semibold text-gray-900",children:e.code}),(0,t.jsx)("p",{className:"text-xs text-gray-500",children:e.name})]})]},e.code))})]}
1),k&&(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-3",children:"Select Network"}),(0,t.jsx)("div",{className:"space-y-2",children:((m=P.find(e=>e.code===k))?m.networks:[]).map(e=>(0,t.jsxs)("button",{onClick:()=>T(e.value),className:`w-full flex items-center justify-between p-4 border-2 rounded-lg transition-all ${E===e.value?"border-orange-500 bg-orange-50":"border-gray-200 hover:border-gray-300"}`,children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("div",{className:`w-5 h-5 rounded-full border-2 flex items-center justify-center ${E===e.value?"border-orange-500":"border-gray-300"}`,children:E===e.value&&(0,t.jsx)("div",{className:"w-3 h-3 rounded-full bg-orange-500"})}),(0,t.jsx)("span",{className:"font-medium text-gray-900",children:e.label})]}),e.recommended&&(0,t.jsx)("span",{className:"text-xs bg-green-100 text-green-700 px-2 py-1 rounded-full",children:"Recommended"})]},e.value))})]}),(0,t.jsx)("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-4",children:(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsx)("svg",{className:"w-5 h-5 text-blue-500 mt-0.5",fill:"currentColor",viewBox:"0 0 20 20",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z",clipRule:"evenodd"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-medium text-blue-900",children:"Important"}),(0,t.jsxs)("p",{className:"text-sm text-blue-800 mt-1",children:["Make sure to send ",k," on the selected network. Sending on the wrong network may result in permanent loss of funds."]})]})]})}),(0,t.jsx)("button",{onClick:()=>{k?E?N("payment"):o.toast.error("Please select a network"):o.toast.error("Please select a cryptocurrency")},className:"w-full py-3 bg-orange-500 text-white rounded-lg hover:bg-orange-600 transition-colors font-medium",disabled:!k||!E,children:"Continue to Payment"})]}),"payment"===w&&(0,t.jsxs)(t.Fragment,{children:[h&&(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center py-12",children:[(0,t.jsx)("div",{className:"animate-spin rounded-full h-16 w-16 border-b-2 border-orange-500 mb-4"}),(0,t.jsx)("p",{className:"text-gray-600",children:"Creating payment request..."})]}),f&&(0,t.jsx)("div",{className:"bg-red-50 border border-red-200 rounded-lg p-4",children:(0,t.jsxs)("div",{className:"flex items-start",children:[(0,t.jsx)("svg",{className:"w-5 h-5 text-red-500 mt-0.5 mr-3",fill:"currentColor",viewBox:"0 0 20 20",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"})}),(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)("p",{className:"text-sm text-red-800 font-medium",children:"Payment Error"}),(0,t.jsx)("p",{className:"text-sm text-red-600 mt-1",children:f})]})]})}),!h&&!f&&x&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"bg-orange-50 border border-orange-200 rounded-lg p-4",children:(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center",children:["pending"===y&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"animate-pulse rounded-full h-3 w-3 bg-orange-500 mr-3"}),(0,t.jsx)("span",{className:"text-sm font-medium text-orange-800",children:"Awaiting Payment"})]}),"completed"===y&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("svg",{className:"w-5 h-5 text-green-500 mr-3",fill:"currentColor",viewBox:"0 0 20 20",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}),(0,t.jsx)("span",{className:"text-sm font-medium text-green-800",children:"Payment Confirmed"})]}),"failed"===y&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("svg",{className:"w-5 h-5 text-red-500 mr-3",fill:"
1currentColor",viewBox:"0 0 20 20",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"})}),(0,t.jsx)("span",{className:"text-sm font-medium text-red-800",children:"Payment Failed"})]})]}),C&&"pending"===y&&(0,t.jsx)("div",{className:"text-sm font-mono text-orange-700",children:C})]})}),(0,t.jsxs)("div",{className:"bg-gray-50 rounded-lg p-6 text-center",children:[(0,t.jsx)("p",{className:"text-sm text-gray-600 mb-2",children:"Amount to Pay"}),(0,t.jsxs)("p",{className:"text-4xl font-bold text-gray-900",children:[x.amount||x.payer_amount||"0.00"," ",(0,t.jsx)("span",{className:"text-2xl text-gray-600",children:x.currency||x.payer_currency||k})]}),(0,t.jsxs)("p",{className:"text-sm text-gray-500 mt-2",children:["â $",x.amount_usd||u.amount||"0.00"," USD"]}),(0,t.jsxs)("p",{className:"text-xs text-gray-400 mt-1",children:["Network: ",x.network?x.network.toUpperCase():E.toUpperCase()]})]}),(0,t.jsx)(n.default,{}),(0,t.jsxs)("div",{className:"flex flex-col items-center",children:[(0,t.jsx)("p",{className:"text-sm text-gray-600 mb-4",children:"Scan QR Code"}),(0,t.jsx)("div",{className:"bg-white p-4 rounded-lg border-2 border-gray-200",children:(0,t.jsx)(s.default,{value:x.address,size:200})})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:[x.currency," Wallet Address"]}),(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)("input",{type:"text",value:x.address,readOnly:!0,className:"flex-1 px-4 py-3 border border-gray-300 rounded-lg bg-gray-50 text-sm font-mono"}),(0,t.jsx)("button",{onClick:()=>{var e;return e=x.address,void(navigator.clipboard.writeText(e),o.toast.success("Copied to clipboard!"))},className:"px-4 py-3 bg-orange-500 text-white rounded-lg hover:bg-orange-600 transition-colors",title:"Copy address",children:(0,t.jsx)("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})})})]})]}),x.network&&(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Network"}),(0,t.jsx)("div",{className:"px-4 py-3 border border-gray-300 rounded-lg bg-gray-50",children:(0,t.jsx)("p",{className:"text-sm font-medium text-gray-900",children:x.network})})]}),(0,t.jsx)(n.default,{}),(0,t.jsxs)("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-4",children:[(0,t.jsx)("h4",{className:"text-sm font-semibold text-blue-900 mb-2",children:"Payment Instructions"}),(0,t.jsxs)("ol",{className:"text-sm text-blue-800 space-y-2 list-decimal list-inside",children:[(0,t.jsxs)("li",{children:["Send exactly ",(0,t.jsxs)("strong",{children:[x.amount||x.payer_amount||"0.00"," ",x.currency||x.payer_currency||k]})," to the address above"]}),(0,t.jsxs)("li",{children:["Make sure to use the ",(0,t.jsx)("strong",{children:x.network?x.network.toUpperCase():E.toUpperCase()})," network"]}),(0,t.jsx)("li",{children:"Payment will be confirmed automatically within a few minutes"}),(0,t.jsx)("li",{children:"Do not close this window until payment is confirmed"})]})]}),x.url&&(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("p",{className:"text-sm text-gray-600 mb-3",children:"Or pay via external wallet"}),(0,t.jsxs)("a",{href:x.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center px-6 py-3 bg-gray-800 text-white rounded-lg hover:bg-gray-700 transition-colors",children:[(0,t.jsx)("svg",{className:"w-5 h-5 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})}),"Open in Wallet"]})]}),(0,t.jsxs)("div",{className:"flex items-start space-x-2 text-xs text-gray-500",children:[(0,t.jsx)("svg",{className:"w-4 h-4 text-gray-400 mt-0.5",fill:"currentColor",viewBox:"0 0 20 20",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z",clipRule:"evenodd"})}),(0,t.jsx)("p",{children:"Payments are processed securely via Cryptomus. Your transaction is protected and monitored."})]})]}),(0,t.jsxs)("div",{className:"flex gap-3 pt-4",children:[!h&&(0,t.jsx)("button",{onClick:()=>{N("select"),v(null),p(null),b("pending")},className:"px-4 py-3 border border-gray-300 rounded-lg hover:bg-gray-50 transition-colors font-medium text-gray-700",children:"Back"}),(0,t.jsx)("button",{onClick:i,className:"flex-1 px-4 py-3 border border-gray-300 rounded-lg hover:bg-gray-50 transition-colors font-medium text-gray-700",disabled:"completed"===y,children:"completed"===y?"Close":"Cancel"}),"failed"===y&&(0,t.jsx)("button",{onClick:L,className:"flex-1 px-4 py-3 bg-orange-500 text-white rounded-lg hover:bg-orange-600 transition-colors font-medium",children:"Retry Payment"})]})]})]})})}e.s(["default",()=>i])},766391,e=>{e.n(e.i(517255))}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.