1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`c1ad2510b7ec93fc679a6102310b6c245f940134`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`9990a0d9-d4a5-4790-93df-9488df999c20`,e._sentryDebugIdIdentifier=`sentry-dbid-9990a0d9-d4a5-4790-93df-9488df999c20`)}catch{}})();import{B as e,H as t}from"./utils-B7-2mHVM.js";import{a as n,g as r,m as i}from"./components-DHKWRJP5.js";import{t as a}from"./jsx-runtime-DY4O_2Pw.js";import{t as o}from"./compiler-runtime-CMAMqQwu.js";import{t as s}from"./title-ofZcDquw.js";import{t as c}from"./FormHeader-Cjn7BXx8.js";import{t as l}from"./Pending-DpbcrtE-.js";import{t as u}from"./Stack-ChVnjyDs.js";import{t as d}from"./apiClient-DufNm8xI.js";import{n as f}from"./params-BZOzPVY6.js";import{t as p}from"./primaryLink-3bjkZTEs.js";import{t as m}from"./otp-DD4NkLax.js";import{t as h}from"./primary-DYAJpH4c.js";import{t as g}from"./submit-C6fewng6.js";import{t as _}from"./SuccessCheck-jeaCeCk-.js";import"./totpEnroll-client-loader-ZhfR2tBg.js";import"./totpEnroll-client-middleware-Bf9A-xIw.js";var v=o(),y=t(e()),b=Object.defineProperty,x=Object.getOwnPropertySymbols,S=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable,w=(e,t,n)=>t in e?b(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,T=(e,t)=>
1{for(var n in t||={})S.call(t,n)&&w(e,n,t[n]);if(x)for(var n of x(t))C.call(t,n)&&w(e,n,t[n]);return e},E=(e,t)=>{var n={};for(var r in e)S.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&x)for(var r of x(e))t.indexOf(r)<0&&C.call(e,r)&&(n[r]=e[r]);return n},D;(e=>{let t=class t{constructor(e,n,r,a){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw RangeError(`Version value out of range`);if(a<-1||a>7)throw RangeError(`Mask value out of range`);this.size=e*4+17;let o=[];for(let e=0;e<this.size;e++)o.push(!1);for(let e=0;e<this.size;e++)this.modules.push(o.slice()),this.isFunction.push(o.slice());this.drawFunctionPatterns();let s=this.addEccAndInterleave(r);if(this.drawCodewords(s),a==-1){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);let n=this.getPenaltyScore();n<e&&(a=t,e=n),this.applyMask(t)}}i(0<=a&&a<=7),this.mask=a,this.applyMask(a),this.drawFormatBits(a),this.isFunction=[]}static encodeText(n,r){let i=e.QrSegment.makeSegments(n);return t.encodeSegments(i,r)}static encodeBinary(n,r){let i=e.QrSegment.makeBytes(n);return t.encodeSegments([i],r)}static encodeSegments(e,r,a=1,s=40,c=-1,l=!0){if(!(t.MIN_VERSION<=a&&a<=s&&s<=t.MAX_VERSION)||c<-1||c>7)throw RangeError(`Invalid value`);let u,d;for(u=a;;u++){let n=t.getNumDataCodewords(u,r)*8,i=o.getTotalBits(e,u);if(i<=n){d=i;break}if(u>=s)throw RangeError(`Data too long`)}for(let e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])l&&d<=t.getNumDataCodewords(u,e)*8&&(r=e);let f=[];for(let t of e){n(t.mode.modeBits,4,f),n(t.numChars,t.mode.numCharCountBits(u),f);for(let e of t.getData())f.push(e)}i(f.length==d);let p=t.getNumDataCodewords(u,r)*8;i(f.length<=p),n(0,Math.min(4,p-f.length),f),n(0,(8-f.length%8)%8,f),i(f.length%8==0);for(let e=236;f.length<p;e^=253)n(e,8,f);let m=[];for(;m.length*8<f.length;)m.push(0);return f.forEach((e,t)=>m[t>>>3]|=e<<7-(t&7)),new t(u,r,m,c)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);let e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)n==0&&r==0||n==0&&r==t-1||n==t-1&&r==0||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){let t=this.errorCorrectionLevel.formatBits<<3|e,n=t;for(let e=0;e<10;e++)n=n<<1^(n>>>9)*1335;let a=(t<<10|n)^21522;i(!(a>>>15));for(let e=0;e<=5;e++)this.setFunctionModule(8,e,r(a,e));this.setFunctionModule(8,7,r(a,6)),this.setFunctionModule(8,8,r(a,7)),this.setFunctionModule(7,8,r(a,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,r(a,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,r(a,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,r(a,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^(e>>>11)*7973;let t=this.version<<12|e;i(!(t>>>18));for(let e=0;e<18;e++){let n=r(t,e),i=this.size-11+e%3,a=Math.floor(e/3);this.setFunctionModule(i,a,n),this.setFunctionModule(a,i,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){let i=Math.max(Math.abs(r),Math.abs(n)),a=e+r,o=t+n;0<=a&&a<this.size&&0<=o&&o<this.size&&this.setFunctionModule(a,o,i!=2&&i!=4)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,Math.max(Math.abs(r),Math.abs(n))!=1)}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){let n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw RangeError(`Invalid argument`);let a=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],o=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],s=Math.floor(t.getNumRawDataModules(n)/8),c=a-s%a,l=Math.floor(s/a),u=[],d=t.reedSolomonComputeDivisor(o);for(let n=0,r=0;n<a;n++){let i=e.slice(r,r+l-o+(n<c?0:1));r+=i.length;let a=t.reedSolomonComputeRemainder(i,d);n<c&&i.push(0),u.push(i.concat(a))}let f=[];for(let e=0;e<u[0].length;e++)u.forEach((t,n)=>{(e!=l-o||n>=c)&&f.push(t[e])});return i(f.length==s),f}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw RangeError(`Invalid argument`);let n=0;for(let t=this.size-1;t>=1;t-=2){t==6&&(t=5);for(let i=0;i<this.size;i++)for(let a=0;a<2;a++){let o=t-a,s=t+1&2?i:this.size-1-i;!this.isFunction[s][o]&&n<e.length*8&&(this.modules[s][o]=r(e[n>>>3],7-(n&7)),n++)}}i(n==e.length*8)}
1applyMask(e){if(e<0||e>7)throw RangeError(`Mask value out of range`);for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw Error(`Unreachable`)}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let r=!1,i=0,a=[0,0,0,0,0,0,0];for(let o=0;o<this.size;o++)this.modules[n][o]==r?(i++,i==5?e+=t.PENALTY_N1:i>5&&e++):(this.finderPenaltyAddHistory(i,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[n][o],i=1);e+=this.finderPenaltyTerminateAndCount(r,i,a)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,i=0,a=[0,0,0,0,0,0,0];for(let o=0;o<this.size;o++)this.modules[o][n]==r?(i++,i==5?e+=t.PENALTY_N1:i>5&&e++):(this.finderPenaltyAddHistory(i,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[o][n],i=1);e+=this.finderPenaltyTerminateAndCount(r,i,a)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){let i=this.modules[n][r];i==this.modules[n][r+1]&&i==this.modules[n+1][r]&&i==this.modules[n+1][r+1]&&(e+=t.PENALTY_N2)}let n=0;for(let e of this.modules)n=e.reduce((e,t)=>e+ +!!t,n);let r=this.size*this.size,a=Math.ceil(Math.abs(n*20-r*10)/r)-1;return i(0<=a&&a<=9),e+=a*t.PENALTY_N4,i(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(this.version==1)return[];{let e=Math.floor(this.version/7)+2,t=this.version==32?26:Math.ceil((this.version*4+4)/(e*2-2))*2,n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw RangeError(`Version number out of range`);let n=(16*e+128)*e+64;if(e>=2){let t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return i(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw RangeError(`Degree out of range`);let n=[];for(let t=0;t<e-1;t++)n.push(0);n.push(1);let r=1;for(let i=0;i<e;i++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],r),e+1<n.length&&(n[e]^=n[e+1]);r=t.reedSolomonMultiply(r,2)}return n}static reedSolomonComputeRemainder(e,n){let r=n.map(e=>0);for(let i of e){let e=i^r.shift();r.push(0),n.forEach((n,i)=>r[i]^=t.reedSolomonMultiply(n,e))}return r}static reedSolomonMultiply(e,t){if(e>>>8||t>>>8)throw RangeError(`Byte out of range`);let n=0;for(let r=7;r>=0;r--)n=n<<1^(n>>>7)*285,n^=(t>>>r&1)*e;return i(!(n>>>8)),n}finderPenaltyCountPatterns(e){let t=e[1];i(t<=this.size*3);let n=t>0&&e[2]==t&&e[3]==t*3&&e[4]==t&&e[5]==t;return(n&&e[0]>=t*4&&e[6]>=t?1:0)+(n&&e[6]>=t*4&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){t[0]==0&&(e+=this.size),t.pop(),t.unshift(e)}};t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;function n(e,t,n){if(t<0||t>31||e>>>t)throw RangeError(`Value out of range`);for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function r(e,t){return!!(e>>>t&1)}function i(e){if(!e)throw Error(`Assertion error`)}let a=class e{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw RangeError(`Invalid argument`);this.bitData=n.slice()}static makeBytes(t){let r=[];for(let e of t)n(e,8,r);return new e(e.Mode.BYTE,t.length,r)}static makeNumeric(t){if(!e.isNumeric(t))throw RangeError(`String contains
1non-numeric characters`);let r=[];for(let e=0;e<t.length;){let i=Math.min(t.length-e,3);n(parseInt(t.substring(e,e+i),10),i*3+1,r),e+=i}return new e(e.Mode.NUMERIC,t.length,r)}static makeAlphanumeric(t){if(!e.isAlphanumeric(t))throw RangeError(`String contains unencodable characters in alphanumeric mode`);let r=[],i=0;for(;i+2<=t.length;i+=2){let a=e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(i))*45;a+=e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(i+1)),n(a,11,r)}return i<t.length&&n(e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(i)),6,r),new e(e.Mode.ALPHANUMERIC,t.length,r)}static makeSegments(t){return t==``?[]:e.isNumeric(t)?[e.makeNumeric(t)]:e.isAlphanumeric(t)?[e.makeAlphanumeric(t)]:[e.makeBytes(e.toUtf8ByteArray(t))]}static makeEci(t){let r=[];if(t<0)throw RangeError(`ECI assignment value out of range`);if(t<128)n(t,8,r);else if(t<16384)n(2,2,r),n(t,14,r);else if(t<1e6)n(6,3,r),n(t,21,r);else throw RangeError(`ECI assignment value out of range`);return new e(e.Mode.ECI,0,r)}static isNumeric(t){return e.NUMERIC_REGEX.test(t)}static isAlphanumeric(t){return e.ALPHANUMERIC_REGEX.test(t)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(let r of e){let e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)e.charAt(n)==`%`?(t.push(parseInt(e.substring(n+1,n+3),16)),n+=2):t.push(e.charCodeAt(n));return t}};a.NUMERIC_REGEX=/^[0-9]*$/,a.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,a.ALPHANUMERIC_CHARSET=`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:`;let o=a;e.QrSegment=a})(D||={}),(e=>{(e=>{let t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};t.LOW=new t(0,1),t.MEDIUM=new t(1,0),t.QUARTILE=new t(2,3),t.HIGH=new t(3,2),e.Ecc=t})(e.QrCode||={})})(D||={}),(e=>{(e=>{let t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};t.NUMERIC=new t(1,[10,12,14]),t.ALPHANUMERIC=new t(2,[9,11,13]),t.BYTE=new t(4,[8,16,16]),t.KANJI=new t(8,[8,10,12]),t.ECI=new t(7,[0,0,0]),e.Mode=t})(e.QrSegment||={})})(D||={});var O=D,k={L:O.QrCode.Ecc.LOW,M:O.QrCode.Ecc.MEDIUM,Q:O.QrCode.Ecc.QUARTILE,H:O.QrCode.Ecc.HIGH},A=128,j=`L`,M=`#FFFFFF`,N=`#000000`,P=!1,F=1,I=4,L=0,R=.1;function z(e,t=0){let n=[];return e.forEach(function(e,r){let i=null;e.forEach(function(a,o){if(!a&&i!==null){n.push(`M${i+t} ${r+t}h${o-i}v1H${i+t}z`),i=null;return}if(o===e.length-1){if(!a)return;i===null?n.push(`M${o+t},${r+t} h1v1H${o+t}z`):n.push(`M${i+t},${r+t} h${o+1-i}v1H${i+t}z`);return}a&&i===null&&(i=o)})}),n.join(``)}function B(e,t){return e.slice().map((e,n)=>n<t.y||n>=t.y+t.h?e:e.map((e,n)=>n<t.x||n>=t.x+t.w?e:!1))}function V(e,t,n,r){if(r==null)return null;let i=e.length+n*2,a=Math.floor(t*R),o=i/t,s=(r.width||a)*o,c=(r.height||a)*o,l=r.x==null?e.length/2-s/2:r.x*o,u=r.y==null?e.length/2-c/2:r.y*o,d=r.opacity==null?1:r.opacity,f=null;if(r.excavate){let e=Math.floor(l),t=Math.floor(u);f={x:e,y:t,w:Math.ceil(s+l-e),h:Math.ceil(c+u-t)}}let p=r.crossOrigin;return{x:l,y:u,h:c,w:s,excavation:f,opacity:d,crossOrigin:p}}function H(e,t){return t==null?e?I:L:Math.max(Math.floor(t),0)}function U({value:e,level:t,minVersion:n,includeMargin:r,marginSize:i,imageSettings:a,size:o,boostLevel:s}){let c=y.useMemo(()=>{let r=(Array.isArray(e)?e:[e]).reduce((e,t)=>(e.push(...O.QrSegment.makeSegments(t)),e),[]);return O.QrCode.encodeSegments(r,k[t],n,void 0,void 0,s)},[e,t,n,s]),{cells:l,margin:u,numCells:d,calculatedImageSettings:f}=y.useMemo(()=>{let e=c.getModules(),t=H(r,i);return{cells:e,margin:t,numCells:e.length+t*2,calculatedImageSettings:V(e,o,t,a)}},[c,o,a,r,i]);return{qrcode:c,margin:u,cells:l,numCells:d,calculatedImageSettings:f}}var W=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}(),G=y.forwardRef(function(e,t){let n=e,{value:r,size:i=A,level:a=j,bgColor:o=M,fgColor:s=N,includeMargin:c=P,minVersion:l=F,boostLevel:u,marginSize:d,imageSettings:f}=n,p=E(n,[`value`,`size`,`level`,`bgColor`,`fgColor`,`includeMargin`,`minVersion`,`boostLevel`,`marginSize`,`imageSettings`]),{style:m}=p,h=E(p,[`style`]),g=f?.src,_=y.useRef(null),v=y.useRef(null),b=y.useCallback(e=>{_.current=e,typeof t==`function`?t(e):t&&(t.current=e)},[t]),[x,S]=y.useState(!1),{margin:C,cells:w,numCells:D,calculatedImageSettings:O}=U({value:r,level:a,minVersion:l,boostLevel:u,includeMargin:c,marginSize:d,imageSettings:f,size:i});y.useEffect(()=>{if(_.current!=null){let e=_.current,t=e.getContext(`2d`);if(!t)return;let n=w,r=v.current,a=O!=null&&r!==null&&r.complete&&r.naturalHeight!==0&&r.naturalWi
1dth!==0;a&&O.excavation!=null&&(n=B(w,O.excavation));let c=window.devicePixelRatio||1;e.height=e.width=i*c;let l=i/D*c;t.scale(l,l),t.fillStyle=o,t.fillRect(0,0,D,D),t.fillStyle=s,W?t.fill(new Path2D(z(n,C))):w.forEach(function(e,n){e.forEach(function(e,r){e&&t.fillRect(r+C,n+C,1,1)})}),O&&(t.globalAlpha=O.opacity),a&&t.drawImage(r,O.x+C,O.y+C,O.w,O.h)}}),y.useEffect(()=>{S(!1)},[g]);let k=T({height:i,width:i},m),I=null;return g!=null&&(I=y.createElement(`img`,{src:g,key:g,style:{display:`none`},onLoad:()=>{S(!0)},ref:v,crossOrigin:O?.crossOrigin})),y.createElement(y.Fragment,null,y.createElement(`canvas`,T({style:k,height:i,width:i,ref:b,role:`img`},h)),I)});G.displayName=`QRCodeCanvas`;var K=y.forwardRef(function(e,t){let n=e,{value:r,size:i=A,level:a=j,bgColor:o=M,fgColor:s=N,includeMargin:c=P,minVersion:l=F,boostLevel:u,title:d,marginSize:f,imageSettings:p}=n,m=E(n,[`value`,`size`,`level`,`bgColor`,`fgColor`,`includeMargin`,`minVersion`,`boostLevel`,`title`,`marginSize`,`imageSettings`]),{margin:h,cells:g,numCells:_,calculatedImageSettings:v}=U({value:r,level:a,minVersion:l,boostLevel:u,includeMargin:c,marginSize:f,imageSettings:p,size:i}),b=g,x=null;p!=null&&v!=null&&(v.excavation!=null&&(b=B(g,v.excavation)),x=y.createElement(`image`,{href:p.src,height:v.h,width:v.w,x:v.x+h,y:v.y+h,preserveAspectRatio:`none`,opacity:v.opacity,crossOrigin:v.crossOrigin}));let S=z(b,h);return y.createElement(`svg`,T({height:i,width:i,viewBox:`0 0 ${_} ${_}`,ref:t,role:`img`},m),!!d&&y.createElement(`title`,null,d),y.createElement(`path`,{fill:o,d:`M0,0 h${_}v${_}H0z`,shapeRendering:`crispEdges`}),y.createElement(`path`,{fill:s,d:S,shapeRendering:`crispEdges`}),x)});K.displayName=`QRCodeSVG`;var q={qrCode:`_qrCode_egutj_1`,secret:`_secret_egutj_7`},J=a(),Y=e=>{let t=(0,v.c)(33),{phase:n,alreadyEnrolled:r,otpauthUri:i,secret:a,initiateError:o,verifyError:s,continueUrl:d,staleSessionLoginUrl:f,retryUrl:b,proceedToCodeEntry:x,submitOtpCode:S}=e,C=(0,y.useRef)(null),w;t[0]!==r||t[1]!==d?(w=r&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(_,{}),(0,J.jsx)(c,{title:`èªè¨¼ã¢ããªç»é²æ¸ã¿`,children:`ãã§ã«èªè¨¼ã¢ã㪠(TOTP) ãç»é²ããã¦ãã¾ãã`}),(0,J.jsx)(p,{href:d,children:`次ã¸`})]}),t[0]=r,t[1]=d,t[2]=w):w=t[2];let T;t[3]!==r||t[4]!==n?(T=!r&&n===`initiating`&&(0,J.jsx)(l,{}),t[3]=r,t[4]=n,t[5]=T):T=t[5];let E;t[6]!==i||t[7]!==n||t[8]!==x||t[9]!==a?(E=n===`qr_display`&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(c,{title:`èªè¨¼ã¢ããªãç»é²`,children:`Google Authenticatorãªã©ã®TOTPèªè¨¼ã¢ããªã§QRã³ã¼ããã¹ãã£ã³ãã¦ãã ããã`}),(0,J.jsxs)(u,{gap:`m`,fullWidth:!0,align:`center`,children:[i&&(0,J.jsx)(K,{value:i,size:200,title:`èªè¨¼ã¢ããªç»é²ç¨ã®QRã³ã¼ã`,className:q.qrCode}),a&&(0,J.jsxs)(u,{gap:`m`,fullWidth:!0,children:[(0,J.jsx)(`p`,{children:`QRã³ã¼ããèªã¿åããªãå ´åã¯ã以ä¸ã®ãã¼ãæåã§å
¥åãã¦ãã ããã`}),(0,J.jsx)(`code`,{className:q.secret,children:a})]}),(0,J.jsx)(h,{onClick:x,children:`次ã¸`})]})]}),t[6]=i,t[7]=n,t[8]=x,t[9]=a,t[10]=E):E=t[10];let D;t[11]!==n||t[12]!==S||t[13]!==s?.title?(D=n===`code_entry`&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(c,{title:`èªè¨¼ã³ã¼ããå
¥å`,children:`èªè¨¼ã¢ããªã«è¡¨ç¤ºããã6æ¡ã®èªè¨¼ã³ã¼ããå
¥åãã¦ãã ããã`}),(0,J.jsx)(`form`,{ref:C,action:async e=>{let t=e.get(`otpCode`),n=typeof t==`string`?t:``;n&&await S(n)},children:(0,J.jsxs)(u,{gap:`m`,fullWidth:!0,children:[(0,J.jsx)(m,{name:`otpCode`,error:s?.title,formRef:C,authenticator:`AUTHENTICATOR_TYPE_TOTP`}),(0,J.jsx)(g,{children:`èªè¨¼ãã`})]})})]}),t[11]=n,t[12]=S,t[13]=s?.title,t[14]=D):D=t[14];let O;t[15]!==d||t[16]!==n?(O=n===`completed`&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(_,{}),(0,J.jsxs)(c,{title:`èªè¨¼ã¢ããªã®ç»é²å®äº`,children:[`èªè¨¼ã¢ã㪠(TOTP) ãæå¹ã«ãªãã¾ããã`,(0,J.jsx)(`br`,{}),(0,J.jsx)(`br`,{}),`次å以éããã°ã¤ã³æã¯èªè¨¼ã¢ããªã§çæãããèªè¨¼ã³ã¼ãã®å
¥åãå¿
è¦ã§ãã`]}),(0,J.jsx)(p,{href:d,children:`次ã¸`})]}),t[15]=d,t[16]=n,t[17]=O):O=t[17];let k;t[18]!==n||t[19]!==f?(k=n===`stale_session`&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(c,{title:`ã»ãã·ã§ã³ã®æå¹æéãåãã¾ãã`,children:`å度ãã°ã¤ã³ãã¦ããèªè¨¼ã¢ããªã®è¨å®ãè¡ã£ã¦ãã ããã`}),(0,J.jsx)(p,{href:f,children:`ãã°ã¤ã³`})]}),t[18]=n,t[19]=f,t[20]=k):k=t[20];let A;t[21]!==o?.title||t[22]!==n||t[23]!==b?(A=n===`error`&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(c,{title:`ã¨ã©ã¼ãçºçãã¾ãã`,children:o?.title??`äºæããªãã¨ã©ã¼ãçºçãã¾ããã`}),(0,J.jsx)(p,{href:b,children:`å試è¡`})]}),t[21]=o?.title,t[22]=n,t[23]=b,t[24]=A):A=t[24];let j;return t[25]!==w||t[26]!==T||t[27]!==E||t[28]!==D||t[29]!==O||t[30]!==k||t[31]!==A?(j=(0,J.jsxs)(J.Fragment,{children:[w,T,E,D,O,k,A]}),t[25]=w,t[26]=T,t[27]=E,t[28]=D,t[29]=O,t[30]=k,t[31]=A,t[32]=j):j=t[32],j};function X(e){return[{title:s(`èªè¨¼ã¢ããªãç»é²`)}]}function Z(e,t,n,r,i){return r?`completed`:i?.type?.includes(`stepup-authentication-required`)?`stale_session`:i?`error`:n&&e?`code_entry`:e&&t?`qr_display`:`initiating`}var Q=n(function(e){let t=(0,v.c)(27),{loaderData:n}=e,a=n?.replaceCredentialId,o=n?.alreadyEnrolled??!1,[s,c]=(0,y.useState)(null),[l,u]=(0,y.useState)(null),[p,m]=(0,y.useState)(null),[h,g]=(0,y.useState)(null),[_,b]=(0,y.useState)(null),[x,S]=(0,y.useState)(null),[C,w]=(0,y.useState)(!1),[T,E]=(0,y.useState)(!1),D;t[0]!==T||t[1]!==C||t[2]!==s||t[3]!==_||t[4]!==p?(D=Z(s,p,T,C,_),t[0]=T,t[1]=C,t[2]=s,t[3]=_,t[4]=p,t[5]=D):D=t[5];let O=D,k=r(),A=i(),j=A.pathname+A.search,M=`/login?new_session=true&continue=${encodeURIComponent(j)}`,N,P;t[6]!==k||t[7]!==O||t[8]!==M?(N=()=>{O===`stale_session`&&k(M)},P=[O,k,M],t[6]=k,t[7]=O,t[8]=M,t[9]=N,t[10]=P):(N=t[9],P=t[10]),(0,y.useEffect)(N,P);let F=(0,y.useRef)(A.search),I=(0,y.useRef)(a),L=(0,y.useRef)(o),R,z;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(R=()=>{L.current||(async()=>{let{data:e,error:t}=await d.POST(`/v1/login/totp_enrollments`,{body:{continue:f(new URLSearchParams(F.current)),replace_credential_id:I.current}});if(e?.enrollment){let{id:t,otpauth_uri:n,secret:r}=e.enrollment;t&&c(t),r&&u(r),n&&m(n)}t&&b(t)})()},z=[],t[11]=R,t[12]=z):(R=t[11],z=t[12]),(0,y.useEffect)(R,z);let B;t[13]===s?B=t[14]:(B=async e=>{if(!s)return;let{data:t,error:n}=await d.POST(`/v1/login/totp_enrollments/{totp_enrollment}/complete`,{params:{path:{totp_enrollment:s}},body:{otp_code:e}});t?.totp_credential_id&&(g(t.continue??null),w(!0)),n&&(n.type?.includes(`stepup-authentication-required`)?b(n):S(n))},t[13]=s,t[14]=B);let V=B,H=h??`https://ivry.jp/home/`,U;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(U=()=>{E(!0)},t[15]=U):U=t[15];let W;return t[16]!==o||t[17]!==_||t[18]!==p||t[19]!==O||t[20]!==j||t[21]!==l||t[22]!==M||t[23]!==V||t[24]!==H||t[25]!==x?(W=(0,J.jsx)(Y,{phase:O,alreadyEnrolled:o,otpauthUri:p,secret:l,initiateError:_,verifyError:x,continueUrl:H,staleSessionLoginUrl:M,retryUrl:j,proceedToCodeEntry:U,submitOtpCode:V}),t[16]=o,t[17]=_,t[18]=p,t[19]=O,t[20]=j,t[21]=l,t[22]=M,t[23]=V,t[24]=H,t[25]=x,t[26]=W):W=t[26],W});export{Q as default,X as meta};
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.