@sekyro/elements 0.1.0-rc.24 → 0.1.0-rc.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/cdn/chunks/{capture-session-doc-BGLEMR2J-LN5RQDCK.js → capture-session-doc-56O6IQ3D-FTWOAELH.js} +1 -1
  3. package/dist/cdn/chunks/challenge-frame-LWDSKM5K-J3CNO3XT.js +1 -0
  4. package/dist/cdn/chunks/{chunk-MXKAKHUA.js → chunk-23W5VB46.js} +1 -1
  5. package/dist/cdn/chunks/{chunk-YFZ54VRE.js → chunk-34QKBDWM.js} +1 -1
  6. package/dist/cdn/chunks/{chunk-VHJIEZ5D.js → chunk-43I6I3SU.js} +1 -1
  7. package/dist/cdn/chunks/{chunk-SGAGSEY4.js → chunk-4EWD6VW3.js} +1 -1
  8. package/dist/cdn/chunks/{chunk-ICGDGBER.js → chunk-4VFGV3VA.js} +1 -1
  9. package/dist/cdn/chunks/{chunk-IX5EXDOC.js → chunk-53PI7QVO.js} +1 -1
  10. package/dist/cdn/chunks/chunk-5ZUDZLHN.js +1 -0
  11. package/dist/cdn/chunks/chunk-AXCBMN2S.js +33 -0
  12. package/dist/cdn/chunks/{chunk-SX373VNU.js → chunk-B5QW2GSC.js} +1 -1
  13. package/dist/cdn/chunks/{chunk-X7U4LD32.js → chunk-E7S6A26U.js} +1 -1
  14. package/dist/cdn/chunks/chunk-IHKI3APK.js +25 -0
  15. package/dist/cdn/chunks/{chunk-CCPSNJ26.js → chunk-PNQ5TDY5.js} +1 -1
  16. package/dist/cdn/chunks/{chunk-BE4SRRNK.js → chunk-PPERVFSD.js} +1 -1
  17. package/dist/cdn/chunks/{chunk-UJ2FDGWQ.js → chunk-SS7SVE6O.js} +1 -1
  18. package/dist/cdn/chunks/{chunk-L2FCXJYM.js → chunk-UALTP6H4.js} +1 -1
  19. package/dist/cdn/chunks/chunk-VD2BADU2.js +1 -0
  20. package/dist/cdn/chunks/chunk-VQSFTT4B.js +3 -0
  21. package/dist/cdn/chunks/{chunk-H4EO527J.js → chunk-W5QMFEZY.js} +1 -1
  22. package/dist/cdn/chunks/chunk-XYXBZEKH.js +1 -0
  23. package/dist/cdn/chunks/{chunk-TD2XP34G.js → chunk-YR7GTH7M.js} +1 -1
  24. package/dist/cdn/chunks/{chunk-6JA64VAB.js → chunk-YWAPDHEW.js} +1 -1
  25. package/dist/cdn/chunks/{create-document-capture-KATGPNCR-KPF7ZYWX.js → create-document-capture-TTMHZP7R-YI3GL7MF.js} +1 -1
  26. package/dist/cdn/chunks/{document-capture-view-PTB5A72I-LW2M5LK2.js → document-capture-view-5EYETVEI-UMC6FOKY.js} +1 -1
  27. package/dist/cdn/chunks/{eid-view-B2M6AJ3J-ASEHPZBH.js → eid-view-INQTMVDU-FRHHODOC.js} +1 -1
  28. package/dist/cdn/chunks/{email-otp-view-FLSDWKJU-TQOH44CO.js → email-otp-view-OO535PQT-6N2IPXEG.js} +1 -1
  29. package/dist/cdn/chunks/flow-views-EW2KEEFU-7LTB52QC.js +1 -0
  30. package/dist/cdn/chunks/{form-view-26PNMO6Q-DNIJNLLU.js → form-view-LJLYP54G-N2BB5ZXR.js} +1 -1
  31. package/dist/cdn/chunks/overlay-de-VGC75M5R-ZUC7ZPRY.js +1 -0
  32. package/dist/cdn/chunks/overlay-es-CSXBWVAG-IQMHKRYH.js +1 -0
  33. package/dist/cdn/chunks/overlay-pt-RGTYSSOJ-EH2IJ6QI.js +1 -0
  34. package/dist/cdn/chunks/plan-runner-FW3EAJCC-H4N5NEL4.js +1 -0
  35. package/dist/cdn/chunks/{portrait-capture-view-IFT7B4OG-EYDBLNTC.js → portrait-capture-view-N36CKIFR-JIO6P6XN.js} +1 -1
  36. package/dist/cdn/chunks/{portrait-review-view-BISWT5BQ-YJ6TLEKW.js → portrait-review-view-OG23OEMA-E4JD5Q5S.js} +1 -1
  37. package/dist/cdn/chunks/{proof-of-address-view-UXF6OH5N-6HTCJNXW.js → proof-of-address-view-CHM5JRHI-PUHZCNXH.js} +1 -1
  38. package/dist/cdn/define.js +1 -1
  39. package/dist/cdn/index.js +1 -1
  40. package/dist/{chunk-VK6DRWZL.js → chunk-2PJRIGH2.js} +1 -1
  41. package/dist/{chunk-L5QAOX6C.js → chunk-2QEYDBI7.js} +1 -1
  42. package/dist/{chunk-DEVOHXNC.js → chunk-FFRJKCZK.js} +1 -1
  43. package/dist/chunk-GDADEN5C.js +33 -0
  44. package/dist/{chunk-73G4CDPH.js → chunk-JAEOFYLJ.js} +1 -1
  45. package/dist/chunk-JW4QXADM.js +25 -0
  46. package/dist/{chunk-VWAWL2QM.js → chunk-KEN7JBVG.js} +1 -1
  47. package/dist/{chunk-YD6JLLO5.js → chunk-MLH4M6JP.js} +1 -1
  48. package/dist/chunk-NMUB5C2E.js +1 -0
  49. package/dist/{chunk-R7M4HNG5.js → chunk-OEZKZQC4.js} +1 -1
  50. package/dist/{chunk-W6RHH3ZZ.js → chunk-RAF7Z7I3.js} +1 -1
  51. package/dist/{chunk-TPO4FOFT.js → chunk-RJVZHRDP.js} +1 -1
  52. package/dist/{chunk-QLIY4W2U.js → chunk-RXILZ6JM.js} +1 -1
  53. package/dist/{chunk-2N6CQWVG.js → chunk-SD4A47RM.js} +1 -1
  54. package/dist/define.cjs +5 -5
  55. package/dist/define.js +1 -1
  56. package/dist/{document-capture-view-PTB5A72I-J2XPPS5A.js → document-capture-view-5EYETVEI-ZQ5RAN4Y.js} +1 -1
  57. package/dist/{eid-view-B2M6AJ3J-ASHVXRTP.js → eid-view-INQTMVDU-H7KHUN3L.js} +1 -1
  58. package/dist/{email-otp-view-FLSDWKJU-3KB6CCWB.js → email-otp-view-OO535PQT-6EYUU43N.js} +1 -1
  59. package/dist/flow-views-EW2KEEFU-H7LOLIEJ.js +1 -0
  60. package/dist/{form-view-26PNMO6Q-6W54V6CN.js → form-view-LJLYP54G-OUW66I62.js} +1 -1
  61. package/dist/index.cjs +5 -5
  62. package/dist/index.d.cts +6 -2
  63. package/dist/index.d.ts +6 -2
  64. package/dist/index.js +1 -1
  65. package/dist/overlay-de-VGC75M5R-C6XYWRT5.js +1 -0
  66. package/dist/overlay-es-CSXBWVAG-MSMVW5KX.js +1 -0
  67. package/dist/overlay-pt-RGTYSSOJ-QA5FJP3U.js +1 -0
  68. package/dist/{portrait-capture-view-IFT7B4OG-RA2APHRL.js → portrait-capture-view-N36CKIFR-S2H37PI5.js} +1 -1
  69. package/dist/{portrait-review-view-BISWT5BQ-HV4F6WC7.js → portrait-review-view-OG23OEMA-MO3FN432.js} +1 -1
  70. package/dist/{proof-of-address-view-UXF6OH5N-4HTOLYIT.js → proof-of-address-view-CHM5JRHI-U6ARAGX7.js} +1 -1
  71. package/dist/styles.css +14 -0
  72. package/package.json +2 -2
  73. package/sbom.cdx.json +4 -4
  74. package/dist/cdn/chunks/challenge-frame-3JHCNDHE-IYU6HGYD.js +0 -1
  75. package/dist/cdn/chunks/chunk-75QP4SUF.js +0 -1
  76. package/dist/cdn/chunks/chunk-EAHT3Y3Z.js +0 -1
  77. package/dist/cdn/chunks/chunk-HBIVE2ZZ.js +0 -33
  78. package/dist/cdn/chunks/chunk-HPTAAPIB.js +0 -1
  79. package/dist/cdn/chunks/chunk-QVU5SNFG.js +0 -25
  80. package/dist/cdn/chunks/chunk-XXYPLLFI.js +0 -3
  81. package/dist/cdn/chunks/flow-views-UZRN6BIU-HPYJIEOF.js +0 -1
  82. package/dist/cdn/chunks/overlay-de-TP7ROFVF-5EEFWZ4E.js +0 -1
  83. package/dist/cdn/chunks/overlay-es-LLTS3D6J-U2DPYDC2.js +0 -1
  84. package/dist/cdn/chunks/overlay-pt-UUJUOJNJ-E57Q5MWT.js +0 -1
  85. package/dist/cdn/chunks/plan-runner-XGT4VKVF-NDQH73OS.js +0 -1
  86. package/dist/chunk-CO3QPDWV.js +0 -25
  87. package/dist/chunk-NEP66INV.js +0 -33
  88. package/dist/chunk-S5CM7A4T.js +0 -1
  89. package/dist/flow-views-UZRN6BIU-SEDEA5AH.js +0 -1
  90. package/dist/overlay-de-TP7ROFVF-5EB3LXPD.js +0 -1
  91. package/dist/overlay-es-LLTS3D6J-4M7PVHUX.js +0 -1
  92. package/dist/overlay-pt-UUJUOJNJ-LDRAURGT.js +0 -1
@@ -1 +0,0 @@
1
- import{a as Nr}from"./chunk-UJ2FDGWQ.js";import{c as _t}from"./chunk-EAHT3Y3Z.js";import{b as kr,d as br}from"./chunk-MXKAKHUA.js";import{b as xr,c as Ct}from"./chunk-H4EO527J.js";import{a as yr,b as gr,c as vr,d as Me}from"./chunk-TD2XP34G.js";import{G as _r,L as wr,M as Sr,a as K,b as de,c as te,m as pr,n as Je,p as hr,q as et,r as fr,s as mr,t as bt,u as le,v as Ee,w as tt,y as Cr}from"./chunk-QVU5SNFG.js";import{c as ir,d as cr,e as ur,h as dr}from"./chunk-SX373VNU.js";import{b as kt}from"./chunk-VHJIEZ5D.js";import{a as s}from"./chunk-5QL6W6FW.js";import{g as lr}from"./chunk-6MYG4HWP.js";import{a as o,c as U}from"./chunk-4FHWXBOB.js";var Ar=U(K(),1),y=U(de(),1),re=U(de(),1),ye=U(K(),1),$=U(de(),1),C=U(K(),1),m=U(K(),1),at=U(K(),1),fe=U(de(),1),Qr=U(K(),1),X=U(K(),1),lt=U(K(),1),we=U(de(),1),Se=U(de(),1),P=U(de(),1);var it=U(K(),1),pe=U(K(),1);var Q=U(K(),1);var E=U(K(),1),me=U(K(),1),Te=U(K(),1),At=U(de(),1),v=U(de(),1);function ce({className:e,children:t}){return(0,y.jsx)("svg",{"aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",className:e??"sekyro-icon sekyro-icon--sm",children:t})}o(ce,"ne");s(ce,"Svg");var Mt="M4 7.5h2.2l1.4-1.9h8.8l1.4 1.9H20a1.6 1.6 0 0 1 1.6 1.6v8.3A1.6 1.6 0 0 1 20 19H4a1.6 1.6 0 0 1-1.6-1.6V9.1A1.6 1.6 0 0 1 4 7.5Z";function Mr(e){return(0,y.jsxs)(ce,{...e,children:[(0,y.jsx)("circle",{cx:"12",cy:"12",r:"4"}),(0,y.jsx)("path",{d:"M12 2.5v2M12 19.5v2M2.5 12h2M19.5 12h2M5.3 5.3l1.4 1.4M17.3 17.3l1.4 1.4M5.3 18.7l1.4-1.4M17.3 6.7l1.4-1.4"})]})}o(Mr,"ln");s(Mr,"SunIcon");function Er(e){return(0,y.jsxs)(ce,{...e,children:[(0,y.jsx)("circle",{cx:"12",cy:"12",r:"9"}),(0,y.jsx)("path",{d:"M9 10h.01M15 10h.01M8.8 14.6a4.2 4.2 0 0 0 6.4 0"})]})}o(Er,"un");s(Er,"FaceUncoveredIcon");function Lr(e){return(0,y.jsxs)(ce,{...e,children:[(0,y.jsx)("rect",{x:"7",y:"2.5",width:"10",height:"19",rx:"2"}),(0,y.jsx)("path",{d:"M10.5 18.5h3M2.5 9.5h2.5M19 9.5h2.5"}),(0,y.jsx)("circle",{cx:"12",cy:"9.5",r:"1.6"})]})}o(Lr,"dn");s(Lr,"PhoneEyeLevelIcon");function Ir(e){return(0,y.jsxs)(ce,{...e,children:[(0,y.jsx)("path",{d:"M2.5 12S6 5.5 12 5.5 21.5 12 21.5 12 18 18.5 12 18.5 2.5 12 2.5 12Z"}),(0,y.jsx)("circle",{cx:"12",cy:"12",r:"2.8"})]})}o(Ir,"pn");s(Ir,"LookStraightIcon");function Ur(e){return(0,y.jsxs)(ce,{...e,children:[(0,y.jsx)("path",{d:Mt}),(0,y.jsx)("path",{d:"M9 13l2 2 4-4"})]})}o(Ur,"fn");s(Ur,"CameraCheckIcon");function jr(e){return(0,y.jsxs)(ce,{...e,children:[(0,y.jsx)("path",{d:Mt}),(0,y.jsx)("path",{d:"M10.2 11.2a1.9 1.9 0 1 1 2.6 1.8c-.5.2-.8.6-.8 1.1v.3M12 16.4h.01"})]})}o(jr,"mn");s(jr,"CameraAskIcon");function Tr(e){return(0,y.jsxs)(ce,{...e,children:[(0,y.jsx)("path",{d:Mt}),(0,y.jsx)("path",{d:"M3 3l18 18"})]})}o(Tr,"yn");s(Tr,"CameraBlockedIcon");function nt({off:e,className:t}){return(0,y.jsxs)(ce,{className:t,children:[(0,y.jsx)("path",{d:"M4.5 9.5v5H8l4 3.5v-12L8 9.5H4.5Z"}),e?(0,y.jsx)("path",{d:"M4 4l16 16"}):(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("path",{d:"M15.5 9.7a3.6 3.6 0 0 1 0 4.6"}),(0,y.jsx)("path",{d:"M18 7.6a6.6 6.6 0 0 1 0 8.8"})]})]})}o(nt,"Ve");s(nt,"SpeakerIcon");function Or(e){return(0,y.jsx)(ce,{...e,children:(0,y.jsx)("path",{d:"M5 12.5l4.5 4.5L19 7.5"})})}o(Or,"gn");s(Or,"CheckIcon");function Pr(e){return(0,y.jsxs)(ce,{className:e.className??"sekyro-spinner",children:[(0,y.jsx)("circle",{cx:"12",cy:"12",r:"9",opacity:"0.25"}),(0,y.jsx)("path",{d:"M21 12a9 9 0 0 0-9-9"})]})}o(Pr,"hn");s(Pr,"SpinnerIcon");var wt=["light","uncover","eyeLevel","straight"],In={light:{key:"capture.tips.light",icon:s(()=>(0,re.jsx)(Mr,{}),"icon")},uncover:{key:"capture.tips.uncover",icon:s(()=>(0,re.jsx)(Er,{}),"icon")},eyeLevel:{key:"capture.tips.eyeLevel",icon:s(()=>(0,re.jsx)(Lr,{}),"icon")},straight:{key:"capture.tips.straight",icon:s(()=>(0,re.jsx)(Ir,{}),"icon")}};function Br({tips:e}){let t=Me(),n=(0,Ar.useId)();return e.length===0?null:(0,re.jsxs)("section",{className:"sekyro-tips","aria-labelledby":n,"data-testid":"sekyro-tips",children:[(0,re.jsx)("p",{className:"sekyro-tips__title",id:n,children:t("capture.tips.title")}),(0,re.jsx)("ul",{className:"sekyro-tips__list",children:e.map(r=>{let a=typeof r=="string"?In[r]:void 0,l=typeof r=="string"?r:r.id,c=a!==void 0?a.icon():typeof r=="string"?void 0:r.icon,d=a!==void 0?t(a.key):typeof r=="string"?r:r.text;return(0,re.jsxs)("li",{className:"sekyro-tips__item",children:[c!=null?(0,re.jsx)("span",{className:"sekyro-tips__icon","aria-hidden":"true",children:c}):null,(0,re.jsx)("span",{children:d})]},l)})})]})}o(Br,"Cn");s(Br,"TipList");var Un=220;function qr({title:e,description:t,options:n,busy:r,error:a,focus:l,testId:c,look:d="cards",marked:S,onChoose:p}){let w=(0,ye.useId)(),N=bt(),[j,R]=(0,ye.useState)(null),B=(0,ye.useRef)(null);(0,ye.useEffect)(()=>{a!==null&&R(null)},[a]),(0,ye.useEffect)(()=>()=>{B.current!==null&&clearTimeout(B.current)},[]);let q=s(A=>{r||j!==null||(R(A),B.current=setTimeout(()=>{B.current=null,R(null),p(A)},Un))},"choose");return(0,$.jsxs)("section",{className:"sekyro-stack sekyro-stack--4 sekyro-choice","aria-labelledby":w,"data-testid":c,children:[(0,$.jsxs)("div",{className:d==="cards"?"sekyro-heading":"sekyro-stack sekyro-stack--1",children:[(0,$.jsx)("h2",{id:w,ref:l?N:void 0,tabIndex:-1,className:"sekyro-text-body",children:e}),t!==void 0&&t!==""?(0,$.jsx)("p",{className:"sekyro-text-muted",children:t}):null]}),a!==null?(0,$.jsx)(le,{tone:"danger",children:(0,$.jsx)("span",{children:a})}):null,d==="buttons"?(0,$.jsx)("div",{className:"sekyro-stack sekyro-stack--3",children:n.map((A,J)=>(0,$.jsx)(te,{kind:J===0?"primary":"ghost",full:!0,disabled:r,"aria-busy":r||void 0,onClick:o(()=>p(A.id),"onClick"),children:A.label},A.id))}):(0,$.jsx)("div",{className:"sekyro-choices",children:n.map(A=>(0,$.jsxs)("button",{type:"button",className:"sekyro-card","aria-pressed":(j??S)===A.id,"aria-busy":r||void 0,disabled:r||j!==null&&j!==A.id,onClick:o(()=>q(A.id),"onClick"),children:[A.glyph!==void 0?(0,$.jsx)("span",{className:"sekyro-card__tile",children:A.glyph}):null,(0,$.jsxs)("span",{className:"sekyro-card__body",children:[(0,$.jsx)("span",{className:"sekyro-card__title",children:A.label}),A.sub!==void 0?(0,$.jsx)("span",{className:"sekyro-card__sub",children:A.sub}):null]}),(0,$.jsx)("span",{className:"sekyro-radio","aria-hidden":"true"})]},A.id))})]})}o(qr,"bn");s(qr,"ChoiceScreen");var Vr=["fcv3.no_face","fcv3.come_closer","fcv3.move_back","fcv3.center_face","fcv3.straighten","fcv3.more_light","fcv3.too_bright","fcv3.hold_still","fcv3.steady_camera","fcv3.hold_upright","fcv3.one_face","capture.tips.summary","capture.lookAtColours"];function st(e){return e!==null&&Vr.includes(e)}o(st,"he");s(st,"isVoiceKey");var jn=s((e,t)=>Object.prototype.hasOwnProperty.call(e,t),"own");function je(e,t,n){let r;try{if(typeof e=="function")r=e(t,n);else{let a=e[n];r=a!=null&&jn(a,t)?a[t]:null}}catch{return null}return typeof r=="string"&&r!==""?r:null}o(je,"Me");s(je,"resolveClip");var Tn="UklGRiQAAABXQVZFZm10IBAAAAABAAEAESsAACJWAAACABAAZGF0YQAAAAA=",On={ar:"ar-SA",fr:"fr-FR",en:"en-US",es:"es-ES",pt:"pt-BR",de:"de-DE"};function ie(){return typeof window<"u"&&"speechSynthesis"in window?window.speechSynthesis:null}o(ie,"re");s(ie,"synth");function Dr(){return ie()!==null&&typeof SpeechSynthesisUtterance=="function"}o(Dr,"Lr");s(Dr,"speechAvailable");function St(e){return(e.split(/[-_]/)[0]??e).toLowerCase()}o(St,"Sn");s(St,"baseLang");function Et(e,t){let n=s(a=>a.replace(/_/g,"-").toLowerCase(),"norm"),r=St(t);return e.find(a=>n(a.lang)===n(t))??e.find(a=>St(a.lang)===r)}o(Et,"Mn");s(Et,"pickVoice");function Hr(e){if(!Dr())return!1;let t=[];try{t=ie()?.getVoices()??[]}catch{return!0}return t.length===0||Et(t,e)!==void 0}o(Hr,"wn");s(Hr,"speechUsable");function $r(e){let t=ie();return t===null||typeof t.addEventListener!="function"?()=>{}:(t.addEventListener("voiceschanged",e),()=>t.removeEventListener?.("voiceschanged",e))}o($r,"Ln");s($r,"subscribeVoices");function De(e){try{let t=typeof location<"u"?location.href:"http://localhost/",n=new URL(e,t);return`clip:${n.origin}${n.pathname}`}catch{return`clip:${e}`}}o(De,"Ke");s(De,"clipIdentity");function xt(e){e.pause(),e.removeAttribute("src"),e.load()}o(xt,"Rn");s(xt,"release");function Fr(){let e=null,t=null,n=0,r=null,a=null,l=null,c=!1,d=null,S=[],p=new Map,w=s(()=>{S=ie()?.getVoices()??[]},"loadVoices"),N=!1,j=s(()=>{let h=ie();N||h===null||(N=!0,w(),h.addEventListener?.("voiceschanged",w))},"bindVoices"),R=s(()=>(e??(e=new Audio),e),"element"),B=s((h,x,_,k)=>{let u=ie();if(u!==null&&h!==""&&typeof SpeechSynthesisUtterance=="function"){j();let M=Et(S,x);if(S.length===0||M!==void 0){u.cancel();let I=new SpeechSynthesisUtterance(h);I.lang=x,M!==void 0&&(I.voice=M),I.rate=.95,_!==void 0&&(I.onend=_),(_!==void 0||k!==void 0)&&(I.onerror=D=>{k!==void 0&&D.error==="not-allowed"?k():_?.()}),u.speak(I);return}}_?.()},"speak"),q=s(()=>{n+=1,r=null,a=l=null,e!==null&&(e.pause(),e.currentTime=0),ie()?.cancel()},"stop"),A=s(h=>{for(let x of h){let _=De(x);if(p.has(_))continue;let k=new Audio;k.preload="auto",k.src=x,p.set(_,k)}},"warmClips"),J=s((h,x,_)=>{let k={utterance:h,generation:x,end:_};d=k;let u=s(()=>x===n&&d===k,"live"),M=s(()=>{u()&&(a=k)},"block");if(ie()?.cancel(),h.url!==null){let I=R();I.pause(),I.muted=!1,I.src=h.url,I.currentTime=0,I.onended=_??null;let D=s(()=>{l===k&&(l=null)},"settled"),i=I.play();if(i===void 0)return;l=k,i.then(D,T=>{if(D(),!u())return;let O=T?.name;if(O!=="AbortError"){if(O==="NotAllowedError")return M();h.speech?B(h.text,h.lang,_,M):_?.()}});return}h.speech?B(h.text,h.lang,_,M):_?.()},"start");return{say(h){let x=h.url!==null?De(h.url):`tts:${h.lang}:${h.text}`;if(x===r)return;r=x,a=l=null,n+=1;let _=n,k=h.onEnd;J(h,_,k!==void 0?()=>{_===n&&k()}:void 0)},unlock({lang:h,speech:x,prefetch:_}){let k=a??(c?null:l);c=!0;let u=k!==null&&k.generation===n?k:null;a=l=null,u!==null&&J(u.utterance,u.generation,u.end);let M=R();if(t===null&&typeof Blob=="function"&&typeof URL.createObjectURL=="function"){let T=Uint8Array.from(atob(Tn),O=>O.charCodeAt(0));t=URL.createObjectURL(new Blob([T],{type:"audio/wav"}))}let I=M.paused===!1&&t!==null&&M.src!==t;t!==null&&!I&&(u===null||u.utterance.url===null)&&(M.muted=!0,M.onended=null,M.src=t,M.play()?.catch(()=>{}));let D=ie(),i=u!==null&&u.utterance.url===null;if(x&&!i&&D!==null&&typeof SpeechSynthesisUtterance=="function"){j();let T=new SpeechSynthesisUtterance(" ");T.volume=0,T.lang=h,D.speak(T)}A(_??[])},prefetch:A,stop:q,dispose(){q(),N&&ie()?.removeEventListener?.("voiceschanged",w),N=!1,t!==null&&URL.revokeObjectURL(t),t=null,e!==null&&xt(e),e=null;for(let h of p.values())xt(h);p.clear()}}}o(Fr,"_n");s(Fr,"createVoicePlayer");var Pn="sekyro.voiceGuidance";function Gr(e){try{if(typeof window>"u")return null;let t=window.localStorage.getItem(e);return t==="1"?!0:t==="0"?!1:null}catch{return null}}o(Gr,"xn");s(Gr,"readVoicePreference");function Kr(e,t){try{if(typeof window>"u")return;window.localStorage.setItem(e,t?"1":"0")}catch{}}o(Kr,"En");s(Kr,"writeVoicePreference");var Ve="capture.tips.summary",Bn=typeof window<"u"?C.useLayoutEffect:C.useEffect,qn=Object.freeze({});function rt(e,t){let n=new Set,r=[];for(let a of Vr){let l=a===Ve?null:je(e,a,t);l===null||n.has(De(l))||(n.add(De(l)),r.push(l))}return r}o(rt,"ht");s(rt,"resolvedClipUrls");function Zr({locale:e,defaultClips:t,options:n}){let r=n===!1,a=r?{}:n??{},l=a.storageKey===void 0?Pn:a.storageKey,[c,d]=(0,C.useState)(a.defaultEnabled??!0),S=(0,C.useRef)(c),[p,w]=(0,C.useState)(!1),[N,j]=(0,C.useState)("none"),[R,B]=(0,C.useState)(!1),q=(0,C.useRef)(!1),[A,J]=(0,C.useState)(0),h=(0,C.useRef)(null),x=(0,C.useCallback)(()=>(h.current??(h.current=Fr()),h.current),[]),_=On[e],k=a.speechFallback,u=k===void 0||k===!0?!0:k===!1?!1:k.includes(e),M=a.clips??t??qn,I=(0,C.useRef)(!1),D=(0,C.useRef)(M);Bn(()=>{D.current=M,S.current=c}),(0,C.useEffect)(()=>{if(r||l===null)return;let L=Gr(l);L!==null&&(S.current=L,d(L))},[r,l]),(0,C.useEffect)(()=>{if(!(r||!u))return $r(()=>J(L=>L+1))},[r,u]);let i=a.clips;(0,C.useEffect)(()=>{if(r)return;let L=u&&Hr(_);w(rt(M,e).length>0||L),j(i!==void 0&&je(i,Ve,e)!==null?"partner":je(M,Ve,e)!==null||L?"default":"none")},[r,M,i,e,u,_,A]),(0,C.useEffect)(()=>{if(r||!c||!I.current)return;let L=rt(M,e);L.length>0&&x().prefetch(L)},[r,c,M,e,x]),(0,C.useEffect)(()=>()=>{h.current?.dispose(),h.current=null,I.current=!1},[]);let T=(0,C.useCallback)(L=>{r||(I.current=!0,x().unlock({lang:_,speech:u,...L?{prefetch:rt(D.current,e)}:{}}))},[r,x,_,u,e]),O=(0,C.useCallback)(()=>T(S.current),[T]),z=(0,C.useCallback)(()=>{q.current=!1,B(!1)},[]),H=(0,C.useCallback)(()=>{z(),h.current?.stop()},[z]),ge=(0,C.useCallback)(()=>{q.current&&H()},[H]),he=(0,C.useCallback)((L,xe)=>{if(r)return;if(q.current){H();return}let ve=x();ve.stop(),q.current=!0,B(!0);let V=xe?.clip===!1?null:je(D.current,Ve,e);ve.say({url:V,text:L,lang:_,speech:u,onEnd:z})},[r,H,x,e,_,u,z]),Y=(0,C.useCallback)(L=>{r||(L?T(!0):H(),l!==null&&Kr(l,L),S.current=L,d(L))},[r,T,H,l]),W=(0,C.useCallback)(()=>Y(!S.current),[Y]),ne=(0,C.useCallback)((L,xe)=>{if(r||!c)return;q.current&&z();let ve=je(D.current,L,e);x().say({url:ve,text:xe,lang:_,speech:u})},[r,c,e,x,_,u,z]);return(0,C.useMemo)(()=>({supported:!r&&p,enabled:!r&&c,setEnabled:Y,toggle:W,unlock:O,speakKey:ne,stop:H,summary:r?"none":N,summaryPlaying:R,toggleSummary:he,stopSummary:ge}),[r,p,c,Y,W,O,ne,H,N,R,he,ge])}o(Zr,"vt");s(Zr,"useVoiceGuidance");function zr(e,t,n,r){let{speakKey:a,stop:l,enabled:c}=e,d=(0,C.useRef)(!1);(0,C.useEffect)(()=>{if(!r||!c){d.current&&l(),d.current=!1;return}d.current=!0,st(t)&&t!==Ve&&n!==""&&a(t,n)},[r,c,t,n,a,l])}o(zr,"Ct");s(zr,"useSpeakGuidance");function ot(e,t){let n=Yr(e);return n==="face"&&(t==="lighting"||e==="liveness_inconclusive")?"again":n}o(ot,"Pn");s(ot,"retryCoachingOf");function Yr(e){switch(e){case"multiple_faces":return"one_face";case"capture_back_camera":return"front_camera";case"capture_front_camera":return"back_camera";case"capture_not_upright":return"upright";case"media_unreadable":case"clip_too_short":return"recording";case"device_integrity_failed":return"device";default:return"face"}}o(Yr,"Pr");s(Yr,"coachingOfReason");var He={face:{title:"capture.retryCoaching.title",tips:["capture.retryCoaching.light","capture.retryCoaching.eyeLevel","capture.retryCoaching.head"]},again:{title:"capture.retryTips.title",tips:["capture.retryCoaching.eyeLevel","capture.retryCoaching.head"]},one_face:{title:"capture.retryTips.title",tips:["capture.retryOneFace.alone","capture.retryOneFace.screens"]},front_camera:{title:"capture.retryTips.title",tips:["capture.retryFrontCamera.screenSide"]},back_camera:{title:"capture.retryTips.title",tips:["capture.retryBackCamera.backSide","capture.retryBackCamera.circle"]},upright:{title:"capture.retryTips.title",tips:["capture.retryUpright.vertical","capture.retryUpright.untilEnd"]},recording:{title:"capture.retryTips.title",tips:["capture.retryRecording.cameraOn","capture.retryRecording.stay","capture.retryRecording.network"]},device:{title:"capture.retryTips.title",tips:["capture.retryDevice.screenRecording","capture.retryDevice.phone"]}};function Wr({showCoaching:e,coaching:t="face",attemptsText:n,showRetake:r,onRetake:a}){let l=Me(),c=(0,at.useRef)(null);return(0,at.useEffect)(()=>{r&&c.current?.focus()},[r]),!e&&!r?null:(0,fe.jsxs)("div",{className:"sekyro-stack sekyro-stack--3","data-testid":"sekyro-captured-panel",children:[e?(0,fe.jsxs)("div",{className:"sekyro-stack sekyro-stack--1",children:[(0,fe.jsx)("p",{className:"sekyro-text-body",children:l(He[t].title)}),(0,fe.jsx)("ul",{className:"sekyro-coaching",children:He[t].tips.map(d=>(0,fe.jsx)("li",{children:l(d)},d))}),n!==null?(0,fe.jsx)("p",{className:"sekyro-text-muted","data-testid":"sekyro-attempts-remaining",children:n}):null]}):null,r?(0,fe.jsx)(te,{ref:c,className:"sekyro-btn--start",onClick:a,children:l("capture.recordAgain")}):null]})}o(Wr,"Tn");s(Wr,"CapturedPanel");function Lt(){try{return!1}catch{return!1}}o(Lt,"nt");s(Lt,"isDevBuild");var Vn=(0,Qr.createContext)(null);function Xr({state:e}){let t=Me(),[n,r]=(0,lt.useState)(!1);(0,lt.useEffect)(()=>{e!=="unknown"&&r(!0)},[e]);let a=e==="granted"?(0,we.jsx)(Ur,{}):e==="denied"?(0,we.jsx)(Tr,{}):(0,we.jsx)(jr,{});return(0,we.jsxs)("div",{role:n?"status":void 0,className:`sekyro-permission sekyro-permission--${e}`,"data-testid":"sekyro-permission","data-state":e,children:[(0,we.jsx)("span",{className:"sekyro-permission__icon","aria-hidden":"true",children:a}),(0,we.jsx)("span",{children:t(`capture.permission.${e}`)})]})}o(Xr,"On");s(Xr,"PermissionRow");function Jr({voice:e}){let t=Me();if(!e.supported)return null;let n=e.enabled;return(0,Se.jsxs)("button",{type:"button",role:"switch","aria-checked":n,className:"sekyro-switch","data-testid":"sekyro-voice-switch",onClick:o(()=>e.toggle(),"onClick"),children:[(0,Se.jsxs)("span",{className:"sekyro-switch__label",children:[(0,Se.jsx)(nt,{off:!n}),t("capture.voiceGuidance")]}),(0,Se.jsx)("span",{className:"sekyro-switch__track","aria-hidden":"true",children:(0,Se.jsx)("span",{className:"sekyro-switch__thumb",children:n?(0,Se.jsx)(Or,{className:"sekyro-switch__check"}):null})})]})}o(Jr,"Hn");s(Jr,"VoiceSwitch");function en({assets:e,onRetryAssets:t,permission:n,captureMode:r="self",voice:a,tips:l,summary:c,startLabel:d,startDisabled:S,onStart:p}){let w=Me(),N=(0,X.useRef)(c?.stop);N.current=c?.stop,(0,X.useEffect)(()=>()=>N.current?.(),[]);let j=(0,X.useRef)(null),R=(0,X.useRef)(null),B=(0,X.useRef)(null),q=(0,X.useRef)(e),A=(0,X.useRef)(!1);(0,X.useEffect)(()=>{let u=q.current;if(q.current=e,u===e)return;let M=A.current;e!=="loading"&&(A.current=!1),tn(j.current)&&(e==="failed"?B.current?.focus():M&&R.current?.focus())},[e]);let J=(0,X.useCallback)(()=>{A.current=!0,t()},[t]),h=e==="loading",x=h||S,_=(0,X.useCallback)(()=>{x||(N.current?.(),p())},[x,p]),k;return e==="failed"?k=(0,P.jsxs)(le,{tone:"danger",testId:"sekyro-assets-error",children:[(0,P.jsx)("p",{className:"sekyro-text-body",children:w("fcv2.err.models")}),(0,P.jsx)(te,{kind:"ghost",ref:B,className:"sekyro-btn--start",onClick:J,"data-testid":"sekyro-assets-retry",children:w("common.retry")})]}):k=(0,P.jsxs)("div",{className:"sekyro-stack sekyro-stack--1",children:[(0,P.jsx)(te,{ref:R,full:!0,"data-testid":"sekyro-start","aria-disabled":x?"true":void 0,"aria-busy":h?"true":void 0,onClick:_,children:h?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(Pr,{}),w("capture.preparing.title")]}):d??w("capture.start")}),h?(0,P.jsx)("p",{className:"sekyro-text-muted",children:w("capture.preparing.hint")}):null]}),(0,P.jsxs)("div",{ref:j,className:"sekyro-stack sekyro-stack--4","data-testid":"sekyro-intro","data-assets":e,children:[r==="assisted"?(0,P.jsxs)("div",{className:"sekyro-stack sekyro-stack--1","data-testid":"sekyro-assisted-intro",children:[(0,P.jsx)("h2",{className:"sekyro-text-body",children:w("capture.assisted.title")}),(0,P.jsx)("p",{className:"sekyro-text-muted",children:w("capture.assisted.lead")})]}):null,l!==!1?(0,P.jsx)(Br,{tips:l}):null,c!==void 0?(0,P.jsxs)(te,{kind:"ghost",className:"sekyro-btn--start",onClick:c.toggle,"data-testid":"sekyro-tips-listen",children:[(0,P.jsx)(nt,{off:!1}),w(c.playing?"capture.tips.stop":"capture.tips.listen")]}):null,(0,P.jsx)(Xr,{state:n}),(0,P.jsx)(Jr,{voice:a}),(0,P.jsx)("p",{className:"sekyro-text-muted",children:w("capture.securityNote")}),k,(0,P.jsx)("p",{role:"status",className:"sekyro-visually-hidden","data-testid":"sekyro-intro-status",children:e==="loading"?w("capture.preparing.title"):e==="ready"?w("capture.ready"):""})]})}o(en,"Fn");s(en,"PreCaptureScreen");function tn(e){if(typeof document>"u")return!1;let t=document.activeElement;return t===null||t===document.body||e!==null&&e.contains(t)}o(tn,"Hr");s(tn,"focusIsOurs");function rn(){let[e,t]=(0,it.useState)({state:"unknown",settled:!1});return(0,it.useEffect)(()=>lr(n=>t({state:n,settled:!0})),[]),{permission:e.state,permissionSettled:e.settled}}o(rn,"Dn");s(rn,"useCameraStatus");function nn(e){return It(e,"mobileRequired")}o(nn,"qn");s(nn,"useMobileRequired");function sn(e){return It(e,"returning").required}o(sn,"jn");s(sn,"useReturning");function It(e,t){let[n,r]=(0,pe.useState)({required:!1,settled:e===void 0});return(0,pe.useEffect)(()=>{let a=e?.[t];if(e===void 0||typeof a!="function"){r({required:!1,settled:!0});return}let l=!0;return r({required:!1,settled:!1}),Promise.resolve().then(()=>a.call(e)).then(c=>{l&&r({required:c===!0,settled:!0})},()=>{l&&r({required:!1,settled:!0})}),()=>{l=!1}},[e,t]),n}o(It,"Yn");s(It,"useFlag");function an(e){let t=s(()=>e?.captureChoice??null,"initialChoice"),[n,r]=(0,pe.useState)(()=>({session:"self",choice:t(),settled:e===void 0}));(0,pe.useEffect)(()=>{let l=e?.captureMode,c=e?.captureChoice??null;if(e===void 0||typeof l!="function"){r({session:"self",choice:c,settled:!0});return}let d=!0;return r({session:"self",choice:c,settled:!1}),Promise.resolve().then(()=>l.call(e)).then(S=>{let p=e.captureChoice??null;d&&r({session:p!==null&&S===p?"choice":S==="assisted"||S==="choice"?S:"self",choice:p,settled:!0})},()=>{d&&r({session:"self",choice:null,settled:!0})}),()=>{d=!1}},[e]);let a=(0,pe.useCallback)(l=>{e?.chooseCaptureMode?.(l),r(c=>({...c,choice:l}))},[e]);return{mode:n.session==="choice"?n.choice??"self":n.session==="assisted"?"assisted":"self",session:n.session,choice:n.choice,settled:n.settled,choose:a}}o(an,"$n");s(an,"useCaptureMode");function on(e){let[t,n]=(0,pe.useState)(!1);return(0,pe.useEffect)(()=>{if(n(!1),e===void 0)return;let r=e.on("busy",()=>n(!0)),a=e.on("result",()=>n(!1));return()=>{r(),a()}},[e]),t}o(on,"zn");s(on,"useBusy");var Dn=s(()=>"idle","serverSnapshot");function Nt(e){return ir(e!==void 0?{assetBaseUrl:e}:{})}o(Nt,"Qn");s(Nt,"preload");function ln(e,t=!0){let n=(0,Q.useSyncExternalStore)((0,Q.useCallback)(p=>ur(p,e),[e]),()=>cr(e),Dn),[r,a]=(0,Q.useState)(null),l=(0,Q.useRef)(!1),c=(0,Q.useCallback)(()=>{Nt(e).then(p=>{l.current&&p==="idle"&&a({base:e})})},[e]);(0,Q.useEffect)(()=>(l.current=!0,c(),()=>{l.current=!1}),[c]);let d=(0,Q.useRef)(null);(0,Q.useEffect)(()=>{if(n!=="idle"){d.current={base:e};return}!t||d.current===null||d.current.base!==e||(d.current=null,c())},[n,e,c,t]);let S=(0,Q.useCallback)(()=>{Nt(e)},[e]);return{gate:r!==null&&r.base===e&&n==="idle"||n==="ready"?"ready":n==="failed"?"failed":"loading",retry:S}}o(ln,"Jn");s(ln,"useLivenessAssets");var Rr={progress:0,hint:null,faceDetected:!1};function cn(e){let{videoRef:t,assetBaseUrl:n}=e,r=(0,E.useRef)(e.verification).current,a=(0,E.useRef)(!1);e.verification!==r&&!a.current&&Lt()&&(a.current=!0,console.warn("[@sekyro/react] <LivenessCapture>: the `verification` prop changed identity after mount. The first instance stays bound (the camera is not rebuilt); create the verification once (useMemo / useState / outside render) instead of on every render."));let l=(0,E.useRef)(null),[c,d]=(0,E.useState)("idle"),[S,p]=(0,E.useState)(Rr),[w,N]=(0,E.useState)(!1),[j,R]=(0,E.useState)(!1),[B,q]=(0,E.useState)(null),[A,J]=(0,E.useState)(!1),[h,x]=(0,E.useState)(null),[_,k]=(0,E.useState)(null),[u,M]=(0,E.useState)(null),[I,D]=(0,E.useState)(null),[i,T]=(0,E.useState)(null),[O,z]=(0,E.useState)(!1),H=(0,E.useRef)(null),ge=(0,E.useRef)("idle"),he=(0,E.useRef)(-1),[Y,W]=(0,E.useState)(0),ne=(0,E.useRef)(e);ne.current=e,(0,E.useEffect)(()=>{let ee=t.current;if(ee===null)return;let ue={video:ee,...n!==void 0?{assetBaseUrl:n}:{}},F=r!==void 0?r.liveness(ue):dr(ue);l.current=F;let Ne=s(()=>T(F.facingMode??null),"readFacing");Ne();let $e=[F.on("state",b=>{b==="mode_switch"?z(!0):b!=="starting"&&b!=="gating"&&z(!1),b==="starting"?(ge.current!=="starting"&&(he.current+=1,W(Math.max(0,he.current))),k(null),M(null),p(Rr),R(!1),N(!1),q(null),x(null),H.current=null):b==="gating"&&ge.current==="recording"&&(R(!1),N(!1),q(null),H.current=null),ge.current=b,Ne(),d(b),ne.current.onStateChange?.(b)}),F.on("gate",b=>{let ke=H.current;H.current=b.progress,N(ke!==null&&b.progress<ke-.001&&b.progress>0&&b.progress<1),b.progress>=1&&R(!0),p(b)}),F.on("frozen",({previewDataUrl:b})=>q(b)),F.on("profile",({animations:b})=>J(b==="reduced")),F.on("ramp",({colour:b})=>x(b)),F.on("captured",b=>{k(b),D(null),ne.current.onCaptured?.(b)}),F.on("error",b=>{M(b);let ke=r?.reportCaptureIssue;ke!==void 0&&Ct(Le=>ke.call(r,Le),xr("liveness",b,Math.max(0,he.current))),ne.current.onError?.(b)}),r?.on("result",b=>{D(b),ne.current.onResult?.(b)})];return()=>{for(let b of $e)b?.();l.current=null,F.destroy()}},[r,t,n]);let L=(0,E.useCallback)(()=>{l.current?.start()},[]),xe=(0,E.useCallback)(()=>{l.current?.retry()},[]),ve=(0,E.useCallback)(async()=>{let ee=l.current;return ee===null||typeof ee.canSwitchCaptureMode!="function"?!1:await ee.canSwitchCaptureMode().catch(()=>!1)===!0},[]),V=(0,E.useCallback)(async ee=>{let ue=l.current;if(ue===null||typeof ue.setCaptureMode!="function")return!1;let F=await ue.setCaptureMode(ee).catch(()=>!1)===!0;return F&&T(ue.facingMode??null),F},[]);return{state:c,gate:S,draining:w,gateLocked:j,frozenPreview:B,reduceMotion:A,rampColour:h,artifacts:_,error:u,result:I,facingMode:i,start:L,retry:xe,canSwitchCaptureMode:ve,setCaptureMode:V,modeRestarted:O,attempt:Y}}o(cn,"er");s(cn,"useLivenessHandle");var Hn=new Set(["national_number"]);function Rt(e){if(e==null||!e.available||e.selected!==null)return null;let t=e.options.filter(n=>Hn.has(n));return t.length>0?{...e,options:t}:null}o(Rt,"tr");s(Rt,"pending");function un(e){let[t,n]=(0,me.useState)(null),[r,a]=(0,me.useState)(e===void 0),[l,c]=(0,me.useState)(!1),[d,S]=(0,me.useState)(!1);(0,me.useEffect)(()=>{if(n(null),e===void 0){a(!0);return}let N=!0,j=e.methodChoice;typeof j=="function"?(a(!1),Promise.resolve().then(()=>j.call(e)).then(B=>{N&&n(Rt(B))},()=>{}).finally(()=>{N&&a(!0)})):a(!0);let R=e.on("method",B=>n(Rt(B)));return()=>{N=!1,R()}},[e]);let p=(0,me.useCallback)(async N=>{if(e===void 0)return!1;c(!0),S(!1);try{return await e.selectMethod(N),n(null),!0}catch{return S(!0),!1}finally{c(!1)}},[e]),w=t!==null&&t.options.length===1?t.options[0]:null;return{choice:t,auto:w==="national_number"&&!d?w:null,settled:r,busy:l,failed:d,select:p}}o(un,"nr");s(un,"useMethodChoice");var $n=["ar","fr","en"];function dn(e){if(typeof e!="string")return!1;try{let t=new URL(e);return t.protocol==="https:"||t.protocol==="http:"&&/^(localhost|127\.0\.0\.1)$/.test(t.hostname)}catch{return!1}}o(dn,"io");s(dn,"isClipUrl");function pn(e){let t=e.clips;if(typeof t!="object"||t===null)return null;let n={};for(let r of $n){let a=t[r];if(!(typeof a!="object"||a===null))for(let[l,c]of Object.entries(a))!st(l)||!dn(c)||((n[r]??(n[r]={}))[l]=c)}return Object.keys(n).length>0?n:null}o(pn,"ao");s(pn,"toVoiceClipMap");function hn(e){let[t,n]=(0,Te.useState)(null);(0,Te.useEffect)(()=>{if(n(null),e===void 0)return;let a=!0,l=s(d=>{if(!a)return;let S=typeof d=="object"&&d!==null&&typeof d.setId=="string"?d:null;n(p=>p?.setId===S?.setId?p:S)},"take");try{typeof e.voiceClips=="function"&&Promise.resolve(e.voiceClips()).then(l,()=>l(null))}catch{l(null)}let c=e.on("view",d=>l(d.voice));return()=>{a=!1,c()}},[e]);let r=(0,Te.useMemo)(()=>t!==null?pn(t):null,[t]);return e===void 0?null:r}o(hn,"rr");s(hn,"useServerVoiceClips");function fn({voice:e}){let t=Me();return(0,At.jsx)(te,{kind:"chip","aria-pressed":e.enabled,"aria-label":t("capture.voiceGuidance"),"data-testid":"sekyro-voice-toggle",onClick:o(()=>e.toggle(),"onClick"),children:(0,At.jsx)(nt,{off:!e.enabled,className:"sekyro-icon"})})}o(fn,"sr");s(fn,"VoiceChip");var Fn=new Set(["abandoned","not_opened","cancelled","superseded"]),Gn=800,Kn="capture.lookAtColours";function mn(e){return e===void 0||e!==!1&&e.length===wt.length&&wt.every(t=>e.includes(t))}o(mn,"mo");s(mn,"isDefaultTips");function yn(e){if(e.type==="keydown"&&e.key==="Escape")return!1;let t=globalThis.navigator?.userActivation;return t===void 0?!(e.type==="pointerup"&&e.pointerType==="touch"):t.isActive}o(yn,"yo");s(yn,"carriesActivation");function gn(e){return typeof e=="object"&&e!==null&&!(0,m.isValidElement)(e)&&"tone"in e&&"text"in e}o(gn,"go");s(gn,"isNoticeObject");var Zn=new Set(["nni_unbound","id_number_unbound","method_required","mobile_required","portrait_required"]);function vn(e){return e==="starting"||e==="gating"||e==="recording"||e==="mode_switch"}o(vn,"vo");s(vn,"isCapturing");function kn(e){return e==="captured"||e==="uploading"||e==="checking"}o(kn,"Co");s(kn,"isPostCapture");function zn({verification:e,locale:t,dir:n,strings:r,slots:a,autoStart:l=!1,notice:c,startDisabled:d=!1,startLabel:S,tips:p,tipsSummary:w,coach:N,voice:j,onGuidance:R,onCaptured:B,onResult:q,onError:A,onStateChange:J,assetBaseUrl:h,className:x}){let _=gr(t),k=(0,m.useMemo)(()=>yr(t,r),[t,r,_]),u=(0,m.useMemo)(()=>g=>k[g]??"",[k]),M=n??(t==="ar"?"rtl":"ltr"),I=(0,m.useRef)(null),D=(0,m.useContext)(Vn),i=cn({verification:e,videoRef:I,assetBaseUrl:h,onCaptured:B,onResult:q,onError:A,onStateChange:J}),T=ln(h,i.state==="idle"&&i.error===null),O=un(e),z=O.choice!==null,H=nn(e),ge=sn(e),he=on(e),Y=rn(),W=an(e),ne=W.session==="choice",L=W.mode==="assisted",xe=j!==!1&&j?.clips===void 0,ve=hn(xe?e:void 0),V=Zr({locale:t,defaultClips:ve,options:j}),ee=L?"environment":"user",ue=W.settled,F=(0,m.useRef)(null),Ne=(0,m.useRef)(!1),$e=(0,m.useRef)(V.unlock);$e.current=V.unlock,(0,m.useEffect)(()=>{let g=F.current;if(g===null)return;let oe=["pointerup","touchend","click","keydown"],_e=s(()=>{for(let qe of oe)g.removeEventListener(qe,Ae,!0)},"disarm");function Ae(qe){if(Ne.current){_e();return}yn(qe)&&(Ne.current=!0,_e(),$e.current())}o(Ae,"Re"),s(Ae,"onGesture");for(let qe of oe)g.addEventListener(qe,Ae,{capture:!0,passive:!0});return _e},[]);let b=(0,m.useCallback)(()=>{Ne.current||(Ne.current=!0,V.unlock()),i.start()},[V.unlock,i.start]),ke=(0,m.useCallback)(()=>i.start(),[i.start]),Le=(0,m.useRef)(!1),Oe=i.state==="idle"&&i.error===null,jt=!z&&!H.required&&(l===!0||l==="when-permitted"&&Y.permission==="granted"),Tt=jt&&O.settled&&H.settled&&ue,_n=l==="when-permitted"&&!Y.permissionSettled&&!Le.current,Ot=jt&&Oe&&!Le.current,ut=(_n||Ot||!ue)&&T.gate==="ready"?"loading":T.gate;(0,m.useEffect)(()=>{!Tt||!Oe||T.gate!=="ready"||Le.current||(Le.current=!0,ke())},[Tt,Oe,T.gate,ke]);let wn=Oe&&!z&&!H.required&&!(Ot&&T.gate==="ready"),[Pt,Bt]=(0,m.useState)(!1),{canSwitchCaptureMode:qt,setCaptureMode:Vt}=i;(0,m.useEffect)(()=>{if(!W.settled||!ne){Bt(!1);return}let g=!0;return qt().then(oe=>{g&&Bt(oe)}),()=>{g=!1}},[W.settled,ne,qt]);let{choose:Dt}=W,Ie=L?"self":"assisted",Sn=(0,m.useCallback)(async()=>{await Vt(Ie)&&Dt(Ie)},[Vt,Dt,Ie]),Ht=i.state!=="idle"&&i.facingMode!==null?i.facingMode:ee;(0,m.useEffect)(()=>{let g=I.current?.style;Ht==="user"?g?.removeProperty("transform"):g&&(g.transform="none")},[Ht]);let Fe=(0,m.useMemo)(()=>i.artifacts!==null&&typeof URL.createObjectURL=="function"?URL.createObjectURL(i.artifacts.keyframe):null,[i.artifacts]);(0,m.useEffect)(()=>{if(Fe!==null)return()=>URL.revokeObjectURL(Fe)},[Fe]);let $t=i.frozenPreview??Fe,Ue=e!==void 0,Z=vn(i.state),be=kn(i.state),Ge=Z||be,se=i.result,Ft=i.state==="done"&&se!==null,Ke=Z&&i.rampColour!==null,dt=i.state==="recording"&&i.frozenPreview!==null&&!Ke,Ze=D!==null,Gt=Pt&&Z&&!dt?{to:Ie,label:u(Ie==="assisted"?"capture.modeSwitch.toAssisted":"capture.modeSwitch.toSelf"),description:u(Ie==="assisted"?"capture.modeSwitch.toAssistedLabel":"capture.modeSwitch.toSelfLabel"),onSwitch:s(()=>{Sn()},"onSwitch")}:null,ze=i.modeRestarted&&Z?u("capture.modeSwitch.restarted"):null,Pe=be||dt,Kt=be?"checking":dt?"frozen":i.state==="recording"||Ke?"recording":i.gateLocked||i.gate.progress>=1?"locked":i.gate.faceDetected?"aligning":"seeking",Ye=Z?i.gate.hint:null,We=i.state==="starting"?"capture.preparing.title":Ye===null?null:Ye==="center"&&!i.gate.faceDetected?"fcv3.no_face":pr(Ye),[xn,Zt]=(0,m.useState)(null);(0,m.useEffect)(()=>{if(We!=="fcv3.no_face"){Zt(We);return}if(!Z)return;let g=setTimeout(()=>Zt(We),Gn);return()=>clearTimeout(g)},[We,Z]);let pt=Z&&!Ke&&typeof N=="string"&&N!=="",zt=L&&Z?u("capture.assisted.stage"):null,Re=Z&&!pt?Ke?Kn:xn:null,ht=pt?N:Re===null?"":u(Re);zr(V,Re,ht,Z);let Yt=(0,m.useRef)(R);Yt.current=R,(0,m.useEffect)(()=>{if(st(Re))try{Yt.current?.(Re)}catch(g){console.error("[@sekyro/react] onGuidance threw:",g)}},[Re]);let Be=(0,m.useMemo)(()=>({supported:V.supported,enabled:V.enabled,setEnabled:V.setEnabled,toggle:V.toggle}),[V.supported,V.enabled,V.setEnabled,V.toggle]),ft=a?.voicePrompt,Wt=ft!==void 0,Qt=j===void 0,Xt=(0,m.useRef)(!1);(0,m.useEffect)(()=>{!Wt||!Qt||Xt.current||!Lt()||(Xt.current=!0,console.warn("[@sekyro/react] <LivenessCapture>: `slots.voicePrompt` is set and `voice` is undefined, so the component speaks the guidance itself. If your slot plays audio, pass voice={false} or the person hears every hint twice; pass voice={{}} to keep the built-in voice and silence this warning."))},[Wt,Qt]);let Nn=ft!==void 0?(g,oe,_e)=>ft(g,oe,_e,Be):V.supported?()=>(0,v.jsx)(fn,{voice:Be}):void 0,{summary:mt,summaryPlaying:Jt,toggleSummary:er,stopSummary:tr}=V,Qe=w!==void 0&&w!=="",rr=Qe?w:u("capture.tips.summary"),nr=Qe?mt!=="none":mt==="partner"||mt==="default"&&mn(p),Rn=(0,m.useMemo)(()=>nr?{playing:Jt,toggle:s(()=>er(rr,{clip:!Qe}),"toggle"),stop:tr}:void 0,[nr,Jt,er,rr,tr,Qe]),An=(0,m.useMemo)(()=>({assets:ut,retryAssets:T.retry,permission:Y.permission,permissionSettled:Y.permissionSettled,captureMode:W.mode,facing:ee,voice:Be}),[ut,T.retry,Y.permission,Y.permissionSettled,W.mode,ee,Be]),Mn=gn(c)?(0,v.jsx)(le,{tone:c.tone,testId:"sekyro-host-notice",children:(0,v.jsx)("span",{children:c.text})}):c??null,ae=se!==null&&se.status==="retry"?se:null,G=Ft&&se.status==="unavailable"&&!z&&se.reasonCode!=="portrait_required"?se:null,Ce=Ft&&(se.status==="verified"||se.status==="not_verified"||se.status==="review")?se:null,yt=s((g,oe)=>{if(g===void 0)return null;if(g==="device_cooldown"){let Ae=fr(t,oe);if(Ae!==null)return u(Ae.key).replace("{time}",Ae.time)}let _e=et(g);return _e===null?null:u(_e)},"reasonText"),gt=s(g=>{let oe=g.retakeHint===void 0?null:Je(g.retakeHint);return oe===null?yt(g.reasonCode):u(oe)},"retryText"),sr=Ce===null?null:yt(Ce.reasonCode,Ce.retryAfter)??(Ce.status==="not_verified"&&Ce.reason!==void 0&&Fn.has(Ce.reason)?u("errors.session_expired"):null),En=G!==null&&G.reasonCode!==void 0&&G.reasonCode!=="nni_unbound"&&G.reasonCode!=="id_number_unbound"&&G.reasonCode!=="method_required"&&G.reasonCode!=="mobile_required"&&!(G.reasonCode==="no_recorder"&&i.artifacts?.degraded==="NO_RECORDER"),Xe=G?.reasonCode,ar=i.attempt;(0,m.useEffect)(()=>{G===null||Xe===void 0||e?.reportCaptureIssue===void 0||Zn.has(Xe)||Ct(g=>e.reportCaptureIssue?.(g),{check:"liveness",kind:"unavailable",phase:"upload",engineKind:Xe,attempt:Math.min(1e3,ar)})},[G,Xe,ar,e]);let or=bt(),Ln=z&&O.auto===null&&!Z&&!be&&i.error===null,vt=(0,m.useCallback)(async g=>{await O.select(g)&&i.state==="done"&&i.retry()},[O.select,i.state,i.retry]);return(0,m.useEffect)(()=>{O.auto!==null&&!O.busy&&!Z&&!be&&vt(O.auto)},[O.auto,O.busy,Z,be,vt]),(0,v.jsx)(vr,{value:u,children:(0,v.jsxs)("div",{ref:F,className:x===void 0?"sekyro-capture":`sekyro-capture ${x}`,dir:M,lang:t,"data-testid":"sekyro-liveness-capture","data-state":i.state,children:[a?.header,ae!==null&&gt(ae)!==null&&!(Ze&&Ge)?(0,v.jsx)(le,{tone:"warning",role:"status",testId:"sekyro-retry-notice",children:(0,v.jsx)("span",{children:gt(ae)})}):null,ze!==null&&!Ze?(0,v.jsx)(le,{tone:"info",role:"status",testId:"sekyro-mode-switch-status",children:(0,v.jsx)("span",{children:ze})}):null,he&&be&&!Ze?(0,v.jsx)(le,{tone:"info",role:"status",testId:"sekyro-busy-notice",children:(0,v.jsx)("span",{children:u("capture.busy")})}):null,H.required&&Oe?(0,v.jsx)(le,{tone:"info",role:"status",testId:"sekyro-mobile-required",children:(0,v.jsx)("span",{children:u("reasons.mobile_required")})}):null,i.error!==null?a?.errorPanel!==void 0?a.errorPanel(i.error,i.retry):(0,v.jsxs)(le,{tone:"danger",testId:"sekyro-error-notice",children:[(0,v.jsx)("span",{children:u(hr(i.error))}),i.error.retryable?(0,v.jsx)(te,{ref:or,kind:"ghost",className:"sekyro-btn--start",onClick:i.retry,children:u("common.retry")}):null]}):null,G!==null?(0,v.jsxs)(le,{tone:"danger",testId:"sekyro-unavailable-notice",children:[(0,v.jsx)("span",{children:(G.reasonCode==="attestation"&&G.attestationError==="clock_wrong"?u("errors.device_clock"):yt(G.reasonCode))??u(G.reasonCode===void 0?"errors.session_expired":"errors.network_error")}),En?(0,v.jsx)(te,{ref:or,kind:"ghost",className:"sekyro-btn--start",onClick:i.retry,children:u(G.reasonCode==="attestation"?"common.retry":"capture.recordAgain")}):null]}):null,sr!==null&&Ce!==null?(0,v.jsx)(le,{tone:Ce.status==="not_verified"?"danger":"info",testId:"sekyro-result-notice",children:(0,v.jsx)("span",{children:sr})}):null,(0,v.jsx)("div",{className:Ge?void 0:"sekyro-hidden","data-capture-live":Ge?"":void 0,children:Ze?D({videoRef:I,guidance:Pe&&Ue?u("capture.checking"):ht,coached:pt&&!(Pe&&Ue),note:Pe?Ue?u(he?"capture.busy":"capture.checkingHint"):null:ze??(ae!==null?gt(ae):zt),settled:Pe&&Ue,progress:i.gate.progress,phase:Kt,still:Pe?$t:null,live:Ge,modeSwitch:Gt,...Pt?{status:ze}:{},ramp:i.rampColour===null?null:{colour:i.rampColour}}):(0,v.jsx)(kr,{videoRef:I,guidanceText:ht,guidanceHint:Ye,guidanceKey:Re,progress:i.gate.progress,phase:Kt,draining:i.draining,stillUrl:$t,showChecking:Ue,operatorText:zt,voicePrompt:Nn,overlay:o(g=>(0,v.jsxs)(v.Fragment,{children:[a?.stageOverlay?.(g),(0,v.jsx)(br,{colour:i.rampColour})]}),"overlay"),reduceMotion:i.reduceMotion,modeSwitch:Gt})}),Ln&&O.choice!==null?(0,v.jsx)(qr,{title:u("method.title"),description:u("method.description"),options:O.choice.options.map(g=>({id:g,label:u(`method.${g}`)})),busy:O.busy,error:O.failed?u("errors.network_error"):null,focus:i.state==="done",testId:"sekyro-method",look:"buttons",onChoose:o(g=>{vt(g)},"onChoose")}):null,wn?(0,v.jsxs)(v.Fragment,{children:[ge&&a?.header===void 0&&a?.intro===void 0?(0,v.jsxs)("div",{className:"sekyro-stack sekyro-stack--1",children:[(0,v.jsx)("h2",{className:"sekyro-text-body",children:u("returning.title")}),(0,v.jsx)("p",{className:"sekyro-text-muted",children:u("returning.description")})]}):null,Mn,a?.intro!==void 0?a.intro(b,An):(0,v.jsx)(en,{assets:ut,onRetryAssets:T.retry,permission:Y.permission,captureMode:W.mode,voice:Be,tips:p??wt,summary:Rn,startLabel:S,startDisabled:d,onStart:b})]}):null,(0,v.jsx)(Wr,{showCoaching:ae!==null,coaching:ot(ae?.reasonCode,ae?.retakeHint),attemptsText:ae?.attemptsRemaining!==void 0?mr(k,t,ae.attemptsRemaining):null,showRetake:ae!==null&&!Z&&!be||!Ue&&i.state==="captured",onRetake:i.retry}),a?.footer]})})}o(zn,"Ei");s(zn,"LivenessCapture");var Ut=U(K(),1),ct=U(K(),1),f=U(de(),1);var _s={document:"card",population_registry:"id",national_eid:"smartphone",phone_otp:"phone",email_otp:"email"},ws={population_registry:"hashtag",national_eid:"key"};function Yn(e,t){switch(e.service){case"document":return t.t("method.document_photo");case"population_registry":return t.t("method.national_number");case"national_eid":{let n=e.nationalEid?.providerName;return n?t.t("method.national_eid",{provider:n}):t.t("method.national_eidGeneric")}default:return null}}o(Yn,"D");s(Yn,"identityLabel");function Wn(e,t){let[n,r]=(0,Ut.useState)(!1),[a,l]=(0,Ut.useState)(null);return{busy:n,error:a,run:s(c=>{r(!0),l(null),c().then(()=>r(!1),d=>{r(!1),l(e.t(Nr(d,e.strings))),t?.(d)})},"run")}}o(Wn,"q");s(Wn,"useChoiceAction");function bn(){let e=`sekyro-face-light-${(0,ct.useId)().replace(/[^A-Za-z0-9_-]/g,"")}`;return(0,f.jsxs)("svg",{className:"sekyro-mark sekyro-mark--face",viewBox:"0 0 168 206","aria-hidden":"true",focusable:"false",children:[(0,f.jsx)("defs",{children:(0,f.jsx)("mask",{id:e,children:(0,f.jsx)("ellipse",{className:"sekyro-mark__arc",cx:"84",cy:"103",rx:"76",ry:"95",pathLength:"1",fill:"none",stroke:"#fff",strokeWidth:"16"})})}),(0,f.jsx)("ellipse",{cx:"84",cy:"103",rx:"64",ry:"83",fill:"none",className:"sekyro-mark__line"}),(0,f.jsx)("path",{className:"sekyro-mark__face",d:"M68 64v10M100 64v10M84 66v25q0 2-6 1M60 108q24 18 48 0"}),(0,f.jsx)("ellipse",{className:"sekyro-mark__ticks",cx:"84",cy:"103",rx:"76",ry:"95",pathLength:"56"}),(0,f.jsx)("ellipse",{className:"sekyro-mark__ticks sekyro-mark__ticks--light",cx:"84",cy:"103",rx:"76",ry:"95",pathLength:"56",mask:`url(#${e})`})]})}o(bn,"O");s(bn,"FaceMark");var Qn={glasses:"jGlasses",lighting:"light",faceCamera:"camera"};function Xn(e){if(!(e?.kind!=="liveness"||e.reason===void 0))return{reason:e.reason,...e.retakeHint!==void 0?{retakeHint:e.retakeHint}:{},attemptsRemaining:e.attemptsRemaining??0,attemptsExhausted:e.attemptsExhausted===!0}}o(Xn,"ne");s(Xn,"faceIntroRetryOf");var Jn={"capture.retryFrontCamera.screenSide":"camera","capture.retryBackCamera.backSide":"camera","capture.retryUpright.vertical":"smartphone","capture.retryUpright.untilEnd":"smartphone","capture.retryRecording.cameraOn":"camera","capture.retryRecording.stay":"smartphone","capture.retryRecording.network":"smartphone","capture.retryDevice.screenRecording":"smartphone","capture.retryDevice.phone":"smartphone"};function es({start:e,context:t,tips:n,tipsTitle:r,human:a=!1,returning:l=!1,notice:c,retry:d}){let S=_t(),{t:p}=S,w=d===void 0?"face":ot(d.reason,d.retakeHint),N=w==="face"?null:He[w].tips,j=(0,ct.useContext)(_r)?.busy===!0;return(0,f.jsxs)("section",{className:"sekyro-step",children:[(0,f.jsx)(bn,{}),t.captureMode==="assisted"?(0,f.jsx)(tt,{title:p("capture.assisted.heading"),lead:p("capture.assisted.lead")}):l?(0,f.jsx)(tt,{title:p("returning.heading"),lead:p("returning.description")}):(0,f.jsx)(tt,{title:p(a?"native.face.humanIntroTitle":"native.face.introTitle"),lead:p(a?"native.face.humanIntroLead":"native.face.introLead")}),d!==void 0?(0,f.jsx)(Cn,{retry:d,title:He[w].title}):null,r!==void 0&&N===null?(0,f.jsx)("p",{className:"sekyro-section-label",children:r}):null,(0,f.jsx)("ul",{className:"sekyro-tiprows",children:N!==null?N.map(R=>(0,f.jsxs)("li",{children:[(0,f.jsx)(Ee,{name:Jn[R]??"face"}),p(R)]},R)):n!==void 0?n.map(R=>(0,f.jsxs)("li",{children:[(0,f.jsx)(Ee,{name:Qn[R.id]??"face"}),R.text]},R.id)):(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)("li",{children:[(0,f.jsx)(Ee,{name:"light"}),p("capture.tips.light")]}),(0,f.jsxs)("li",{children:[(0,f.jsx)(Ee,{name:"jGlasses"}),p("capture.tips.uncover")]}),(0,f.jsxs)("li",{children:[(0,f.jsx)(Ee,{name:"smartphone"}),p("capture.tips.eyeLevel")]})]})}),c??null,c!==void 0?null:t.assets==="failed"?(0,f.jsx)(te,{kind:"secondary",full:!0,onClick:t.retryAssets,children:p("common.retry")}):null,c!==void 0?null:(0,f.jsx)(Cr,{children:(0,f.jsxs)(te,{full:!0,disabled:t.assets!=="ready"||j,"aria-busy":t.assets==="loading"||void 0,onClick:e,children:[(0,f.jsx)(Ee,{name:"camera"}),p("capture.start")]})})]})}o(es,"re");s(es,"FaceIntro");var ts=new Set(["match_inconclusive","no_face_source","below_threshold"]);function Cn({retry:e,title:t}){let n=_t(),r=e.retakeHint===void 0?null:Je(e.retakeHint),a=e.reason==="probe_not_from_liveness"?"capture.retrySamePerson.message":ts.has(e.reason)?"capture.retryMatch.message":et(e.reason);return(0,f.jsxs)(wr,{tone:"warning",children:[r!==null?(0,f.jsx)("span",{children:n.t(r)}):a!==null?(0,f.jsx)("span",{children:n.t(a)}):null,r===null?(0,f.jsx)("span",{children:n.t(t)}):null,(0,f.jsx)("span",{children:Sr(n,e.attemptsRemaining,e.attemptsExhausted)})]})}o(Cn,"K");s(Cn,"RetryNotice");function rs(e){return kt(e)}o(rs,"ce");s(rs,"isInAppBrowser");function ns(e,t){let n=t??(typeof navigator>"u"?"":String(navigator.userAgent??""));if(!/Android/i.test(n))return null;let r;try{r=new URL(e)}catch{return null}if(r.protocol!=="https:"&&r.protocol!=="http:")return null;let a=r.protocol.slice(0,-1);return`intent://${r.host}${r.pathname}${r.search}#Intent;scheme=${a};action=android.intent.action.VIEW;S.browser_fallback_url=${encodeURIComponent(e)};end`}o(ns,"le");s(ns,"androidBrowserIntent");export{qr as a,Lt as b,Vn as c,an as d,zn as e,_s as f,ws as g,Yn as h,Wn as i,Xn as j,es as k,rs as l,ns as m};
@@ -1,25 +0,0 @@
1
- import{a as u}from"./chunk-5QL6W6FW.js";import{a as o,b as C,c as f}from"./chunk-4FHWXBOB.js";var F=C(i=>{"use strict";var R=Symbol.for("react.transitional.element"),pe=Symbol.for("react.portal"),de=Symbol.for("react.fragment"),me=Symbol.for("react.strict_mode"),he=Symbol.for("react.profiler"),fe=Symbol.for("react.consumer"),ve=Symbol.for("react.context"),_e=Symbol.for("react.forward_ref"),ye=Symbol.for("react.suspense"),ge=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),Ce=Symbol.for("react.activity"),P=Symbol.iterator;function ke(e){return e===null||typeof e!="object"?null:(e=P&&e[P]||e["@@iterator"],typeof e=="function"?e:null)}o(ke,"getIteratorFn");var U={isMounted:o(function(){return!1},"isMounted"),enqueueForceUpdate:o(function(){},"enqueueForceUpdate"),enqueueReplaceState:o(function(){},"enqueueReplaceState"),enqueueSetState:o(function(){},"enqueueSetState")},V=Object.assign,Z={};function _(e,t,r){this.props=e,this.context=t,this.refs=Z,this.updater=r||U}o(_,"Component");_.prototype.isReactComponent={};_.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function $(){}o($,"ComponentDummy");$.prototype=_.prototype;function M(e,t,r){this.props=e,this.context=t,this.refs=Z,this.updater=r||U}o(M,"PureComponent");var A=M.prototype=new $;A.constructor=M;V(A,_.prototype);A.isPureReactComponent=!0;var q=Array.isArray;function L(){}o(L,"noop");var p={H:null,A:null,T:null,S:null},Y=Object.prototype.hasOwnProperty;function S(e,t,r){var n=r.ref;return{$$typeof:R,type:e,key:t,ref:n!==void 0?n:null,props:r}}o(S,"ReactElement");function be(e,t){return S(e.type,t,e.props)}o(be,"cloneAndReplaceKey");function E(e){return typeof e=="object"&&e!==null&&e.$$typeof===R}o(E,"isValidElement");function we(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}o(we,"escape");var O=/\/+/g;function z(e,t){return typeof e=="object"&&e!==null&&e.key!=null?we(""+e.key):t.toString(36)}o(z,"getElementKey");function Te(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(L,L):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}o(Te,"resolveThenable");function v(e,t,r,n,a){var c=typeof e;(c==="undefined"||c==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(c){case"bigint":case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case R:case pe:s=!0;break;case D:return s=e._init,v(s(e._payload),t,r,n,a)}}if(s)return a=a(e),s=n===""?"."+z(e,0):n,q(a)?(r="",s!=null&&(r=s.replace(O,"$&/")+"/"),v(a,t,r,"",function(le){return le})):a!=null&&(E(a)&&(a=be(a,r+(a.key==null||e&&e.key===a.key?"":(""+a.key).replace(O,"$&/")+"/")+s)),t.push(a)),1;s=0;var d=n===""?".":n+":";if(q(e))for(var m=0;m<e.length;m++)n=e[m],c=d+z(n,m),s+=v(n,t,r,c,a);else if(m=ke(e),typeof m=="function")for(e=m.call(e),m=0;!(n=e.next()).done;)n=n.value,c=d+z(n,m++),s+=v(n,t,r,c,a);else if(c==="object"){if(typeof e.then=="function")return v(Te(e),t,r,n,a);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return s}o(v,"mapIntoArray");function k(e,t,r){if(e==null)return e;var n=[],a=0;return v(e,n,"","",function(c){return t.call(r,c,a++)}),n}o(k,"mapChildren");function ze(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}o(ze,"lazyInitializer");var I=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Le={map:k,forEach:o(function(e,t,r){k(e,function(){t.apply(this,arguments)},r)},"forEach"),count:o(function(e){var t=0;return k(e,function(){t++}),t},"count"),toArray:o(function(e){return k(e,function(t){return t})||[]},"toArray"),only:o(function(e){if(!E(e))throw Error("React.Children.only expected to receive a single React element child.");return e},"only")};i.Activity=Ce;i.Children=Le;i.Component=_;i.Fragment=de;i.Profiler=he;i.PureComponent=M;i.StrictMode=me;i.Suspense=ye;i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=p;i.__COMPILER_RUNTIME={__proto__:null,c:o(function(e){return p.H.useMemoCache(e)},"c")};i.cache=function(e){return function(){return e.apply(null,arguments)}};i.cacheSignal=function(){return null};i.cloneElement=function(e,t,r){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var n=V({},e.props),a=e.key;if(t!=null)for(c in t.key!==void 0&&(a=""+t.key),t)!Y.call(t,c)||c==="key"||c==="__self"||c==="__source"||c==="ref"&&t.ref===void 0||(n[c]=t[c]);var c=arguments.length-2;if(c===1)n.children=r;else if(1<c){for(var s=Array(c),d=0;d<c;d++)s[d]=arguments[d+2];n.children=s}return S(e.type,a,n)};i.createContext=function(e){return e={$$typeof:ve,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:fe,_context:e},e};i.createElement=function(e,t,r){var n,a={},c=null;if(t!=null)for(n in t.key!==void 0&&(c=""+t.key),t)Y.call(t,n)&&n!=="key"&&n!=="__self"&&n!=="__source"&&(a[n]=t[n]);var s=arguments.length-2;if(s===1)a.children=r;else if(1<s){for(var d=Array(s),m=0;m<s;m++)d[m]=arguments[m+2];a.children=d}if(e&&e.defaultProps)for(n in s=e.defaultProps,s)a[n]===void 0&&(a[n]=s[n]);return S(e,c,a)};i.createRef=function(){return{current:null}};i.forwardRef=function(e){return{$$typeof:_e,render:e}};i.isValidElement=E;i.lazy=function(e){return{$$typeof:D,_payload:{_status:-1,_result:e},_init:ze}};i.memo=function(e,t){return{$$typeof:ge,type:e,compare:t===void 0?null:t}};i.startTransition=function(e){var t=p.T,r={};p.T=r;try{var n=e(),a=p.S;a!==null&&a(r,n),typeof n=="object"&&n!==null&&typeof n.then=="function"&&n.then(L,I)}catch(c){I(c)}finally{t!==null&&r.types!==null&&(t.types=r.types),p.T=t}};i.unstable_useCacheRefresh=function(){return p.H.useCacheRefresh()};i.use=function(e){return p.H.use(e)};i.useActionState=function(e,t,r){return p.H.useActionState(e,t,r)};i.useCallback=function(e,t){return p.H.useCallback(e,t)};i.useContext=function(e){return p.H.useContext(e)};i.useDebugValue=function(){};i.useDeferredValue=function(e,t){return p.H.useDeferredValue(e,t)};i.useEffect=function(e,t){return p.H.useEffect(e,t)};i.useEffectEvent=function(e){return p.H.useEffectEvent(e)};i.useId=function(){return p.H.useId()};i.useImperativeHandle=function(e,t,r){return p.H.useImperativeHandle(e,t,r)};i.useInsertionEffect=function(e,t){return p.H.useInsertionEffect(e,t)};i.useLayoutEffect=function(e,t){return p.H.useLayoutEffect(e,t)};i.useMemo=function(e,t){return p.H.useMemo(e,t)};i.useOptimistic=function(e,t){return p.H.useOptimistic(e,t)};i.useReducer=function(e,t,r){return p.H.useReducer(e,t,r)};i.useRef=function(e){return p.H.useRef(e)};i.useState=function(e){return p.H.useState(e)};i.useSyncExternalStore=function(e,t,r){return p.H.useSyncExternalStore(e,t,r)};i.useTransition=function(){return p.H.useTransition()};i.version="19.2.0"});var b=C((nt,B)=>{"use strict";B.exports=F()});var G=C(w=>{"use strict";var Re=Symbol.for("react.transitional.element"),Me=Symbol.for("react.fragment");function W(e,t,r){var n=null;if(r!==void 0&&(n=""+r),t.key!==void 0&&(n=""+t.key),"key"in t){r={};for(var a in t)a!=="key"&&(r[a]=t[a])}else r=t;return t=r.ref,{$$typeof:Re,type:e,key:n,ref:t!==void 0?t:null,props:r}}o(W,"jsxProd");w.Fragment=Me;w.jsx=W;w.jsxs=W});var y=C((st,K)=>{"use strict";K.exports=G()});var Q=f(b(),1),X=f(y(),1),oe=f(b(),1),ae=f(y(),1);var ct=(0,Q.forwardRef)(u(function({kind:e="primary",full:t=!1,className:r,type:n,...a},c){let s=["sekyro-btn",`sekyro-btn--${e}`];return t&&s.push("sekyro-btn--full"),r!==void 0&&s.push(r),(0,X.jsx)("button",{ref:c,type:n??"button",className:s.join(" "),...a})},"Button")),J={"capture.start":"Start camera","capture.recordAgain":"Start a new attempt","capture.switchCamera":"Switch camera","capture.preparing.title":"Preparing secure capture…","capture.checking":"We're checking your identity…","capture.checkingHint":"This usually takes a few seconds. Keep this page open","capture.securityNote":"Your images are encrypted and used only for this verification","capture.cameraOff":"Camera off","capture.previewAlt":"Preview of the captured image of your face","capture.retryCoaching.title":"That attempt didn't work. A few adjustments will help:","capture.retryCoaching.light":"Find good lighting, with the light on your face and not behind you","capture.retryCoaching.eyeLevel":"Hold your phone at eye level","capture.retryCoaching.head":"Look straight at the camera and keep your head upright","capture.retryTips.title":"Before you film again:","capture.retryOneFace.alone":"Make sure nobody is next to or behind the person being verified","capture.retryOneFace.screens":"Keep photos and screens that show a face out of view","capture.retryFrontCamera.screenSide":"The front camera is the one on the screen side, so you can see yourself","capture.retryBackCamera.backSide":"The back camera is the one on the side without the screen","capture.retryBackCamera.circle":"Hold the phone upright in front of the person, with their face in the circle","capture.retryUpright.vertical":"Hold the phone straight up and down, with the camera at the top","capture.retryUpright.untilEnd":"Keep it that way until the recording ends","capture.retryRecording.cameraOn":"Keep the camera on until the recording finishes","capture.retryRecording.stay":"Stay on this screen. Don't switch apps or lock your phone","capture.retryRecording.network":"Use a stable internet connection","capture.retryDevice.screenRecording":"Stop any screen recording or screen sharing","capture.retryDevice.phone":"Use the app on a phone, not on an emulator","capture.attemptsRemaining.one":"{count} attempt remaining","capture.attemptsRemaining.other":"{count} attempts remaining","common.retry":"Try again","common.securityCheckRunning":"Security check in progress. This can take up to two minutes","fcv2.err.permission":"Allow camera access in your browser settings (the camera icon in the address bar), then try again","fcv2.err.notfound":"No camera detected. Connect or enable a camera, then try again","fcv2.err.inuse":"Another app is using the camera. Close it, then try again","fcv2.err.insecure":"The camera needs a secure connection (HTTPS). Reopen this page over HTTPS","fcv2.err.unsupported":"Your browser cannot capture in a supported format. Open this page in a recent browser such as Chrome or Safari","fcv2.err.generic":"The camera is unavailable. Try again, or contact support if it keeps failing","fcv3.no_face":"We can't see your face. Hold the phone in front of you","fcv3.come_closer":"Bring the phone a little closer","fcv3.move_back":"Move the phone a little farther away","fcv3.center_face":"Center your face in the circle","fcv3.straighten":"Hold your head straight","fcv3.more_light":"Find a brighter spot. Light your face","fcv3.too_bright":"Too much light. Move out of direct light","fcv3.hold_still":"Perfect, hold still","fcv3.steady_camera":"Hold the phone steady","fcv3.hold_upright":"Hold the phone upright","fcv3.one_face":"Only one person should be in the frame","reasons.no_face":"No face could be detected during the check","reasons.media_unreadable":"The submitted capture could not be read","reasons.clip_too_short":"The capture was too short","reasons.spoof_detected":"The liveness check could not confirm a live person in front of the camera","reasons.review_band":"The automatic check was not conclusive, so it was sent to human review","reasons.nni_not_found":"The national identification number was not found in the civil registry","reasons.nni_invalid":"The national identification number is not a valid 10-digit NNI","reasons.registry_unavailable":"The civil registry could not be reached to confirm your number","reasons.no_face_source":"No face could be detected in the selfie photo","reasons.no_face_reference":"No reference photo was available to compare your selfie against. The requester needs to resolve this, so retaking your selfie will not help","reasons.low_quality_reference":"The reference photo on file was not clear enough to compare against","reasons.below_threshold":"The selfie did not match the photo on the identity document closely enough","reasons.side_missing":"One side of the identity document was not submitted","reasons.mrz_checksum_failed":"The machine-readable zone of the document could not be validated","reasons.unreadable":"The document photo was not clear enough to read","reasons.expired_document":"The identity document has expired","reasons.authenticity_review":"The document was sent to human review to confirm its authenticity","reasons.registry_mismatch":"The document's details did not match the civil registry. A reviewer will check","reasons.document_nni_mismatch":"This document belongs to a different person than the one this verification was created for","reasons.id_number_invalid":"The ID number is not valid","reasons.registry_record_not_found":"No record was found in the registry for this ID number","reasons.document_id_number_mismatch":"This document belongs to a different person than the one this verification was created for","reasons.otp_mismatch":"The verification code did not match the one we sent","reasons.otp_expired":"The verification code expired before it was entered","reasons.otp_send_failed":"We could not send a verification code to your phone","reasons.uncalibrated_capture_channel":"Desktop/webcam captures are not yet auto-decided, so your verification went to human review","reasons.capture_back_camera":"Use the front camera. Hold the phone in front of your face and try again","reasons.capture_not_upright":"Hold your phone upright, not sideways, and try again","reasons.capture_front_camera":"Use the back camera. Point it at the person's face and try again","reasons.multiple_faces":"Someone else appeared in the video. Film again with only one person in the frame","reasons.location_not_allowed":"Verification isn't available in your region.","reasons.anonymizer_blocked":"Turn off your VPN or proxy, then open the link again.","reasons.nationality_not_allowed":"This service can't verify this document. Contact the organization for other options.","reasons.document_type_not_accepted":"This type of document isn't accepted. Choose another document.","reasons.underage":"You don't meet the minimum age for this service.","reasons.age_unverifiable":"We couldn't read your date of birth. Take a clearer photo of your document.","reasons.nationality_unreadable":"We couldn't read your nationality. Take a clearer photo of your document.","reasons.name_mismatch":"The details don't match the information the organization has. Contact the organization.","reasons.birth_date_mismatch":"The details don't match the information the organization has. Contact the organization.","reasons.nationality_mismatch":"The details don't match the information the organization has. Contact the organization.","reasons.document_number_mismatch":"The details don't match the information the organization has. Contact the organization.","reasons.liveness_inconclusive":"We couldn't confirm it's you this time. Hold still and let's try once more.","reasons.match_inconclusive":"We couldn't confirm it's you. Try again in good light, without glasses.","hints.appearance":"We couldn't confirm it's you this time. Hold still and let's try once more.","hints.motion":"Hold still and keep the phone steady, then try again.","hints.lighting":"Face a window or a lamp so your face is well lit, then try again.","hints.framing":"Move closer so your face fills the frame, then try again.","reasons.subject_revoked":"The identity on file for this check is no longer available. The requester needs to run a full verification, so retrying will not help","reasons.probe_not_from_liveness":"The same person needs to be on camera from start to finish. Record the video again","reasons.document_authenticity":"Use the original card, not a photo or a copy, and avoid reflections.","reasons.mobile_required":"Continue on your phone to take the selfie.","reasons.capture_tampered":"We couldn't verify this capture. Use your phone's built-in camera, without screen recording or camera apps.","reasons.device_velocity_exceeded":"This device can't be used for another verification right now. Contact the organization.","reasons.device_cooldown":"Too many attempts. Try again later.","cooldown.retryIn":"Too many attempts. Try again {time}.","cooldown.retryAt":"Too many attempts. Try again after {time}.","capture.busy":"Our service is busy. Trying again…","errors.inference_unavailable":"Try again in a moment.","method.title":"How do you want to verify?","method.description":"Choose one option to continue","returning.title":"Confirm it's you","returning.description":"You verified your identity before. One short face capture confirms it's still you.","method.national_number":"Enter my Mauritanian national ID number (NNI)","method.document_photo":"Photo of my document","errors.method_required":"Choose how you want to verify, then continue","errors.attestation_invalid":"We could not complete the security check. Try again. If it keeps failing, try another browser or network","errors.device_clock":"Set your phone's date and time to automatic, then try again","errors.network_error":"We could not reach the verification service. Check your internet connection and try again","errors.session_expired":"This verification session has expired. Ask the organisation that sent you here for a new link","errors.nni_unbound":"This link was created without your national ID number. Ask the requester for a new link","errors.id_number_unbound":"This link was created without your ID number. Ask the requester for a new link","capture.tips.title":"For a successful check:","capture.tips.light":"Face a light source and avoid strong light behind you","capture.tips.uncover":"Uncover your face: no glasses, mask or hand in front of it","capture.tips.eyeLevel":"Hold your phone at eye level","capture.tips.straight":"Look straight at the camera and keep still","capture.tips.summary":"Stand in a well-lit area. Uncover your face: no glasses, no mask. Once the camera starts, hold your phone at eye level, look straight at the camera and keep still.","capture.tips.listen":"Listen to the instructions","capture.tips.stop":"Stop","capture.permission.granted":"Camera access allowed","capture.permission.prompt":"Your browser will ask to use the camera. Choose Allow","capture.permission.denied":"Camera access is blocked. Allow it in your browser settings (the camera icon in the address bar), then reload this page","capture.permission.unknown":"We'll ask to use your camera when you start","capture.cameraLabel":"Camera","capture.facing.user":"Front camera","capture.facing.environment":"Back camera","capture.assisted.title":"Capture the person's face","capture.assisted.lead":"Point the back camera at the person's face and hold the phone upright. The voice guidance speaks to the person being filmed.","capture.assisted.stage":"Point the camera at the person's face","capture.modeSwitch.toAssisted":"Someone is helping me","capture.modeSwitch.toSelf":"I film myself","capture.modeSwitch.toAssistedLabel":"Switch to assisted capture: another person holds the phone and films you","capture.modeSwitch.toSelfLabel":"Switch to self capture: you film yourself with the front camera","capture.modeSwitch.restarted":"Camera switched. Start again when you are ready","capture.lookAtColours":"Look at the colours","capture.voiceGuidance":"Voice guidance","capture.preparing.hint":"Setting up on-device face detection. This can take a moment on a slow connection","capture.ready":"Ready. Start when you are","fcv2.err.models":"The face-detection models could not be loaded. Check your connection and try again","fcv2.err.backcamera":"The back camera could not be opened, and assisted capture needs it. Try again, or continue on another phone"},ut={"capture.start":"تشغيل الكاميرا","capture.recordAgain":"ابدأ محاولة جديدة","capture.switchCamera":"تبديل الكاميرا","capture.preparing.title":"جارٍ تجهيز الالتقاط الآمن…","capture.checking":"نتحقق من هويتك…","capture.checkingHint":"يستغرق هذا عادةً بضع ثوانٍ. أبقِ هذه الصفحة مفتوحة","capture.securityNote":"تُشفَّر لقطاتك وتُستخدم فقط لهذا التحقق","capture.cameraOff":"الكاميرا مطفأة","capture.previewAlt":"معاينة الصورة الملتقطة لوجهك","capture.retryCoaching.title":"لم تنجح هذه المحاولة. بعض التعديلات ستساعد:","capture.retryCoaching.light":"اختر مكانًا جيد الإضاءة، بحيث يكون الضوء على وجهك لا خلفك","capture.retryCoaching.eyeLevel":"أمسك هاتفك بمستوى العينين","capture.retryCoaching.head":"انظر مباشرة إلى الكاميرا وأبقِ رأسك مستقيمًا","capture.retryTips.title":"قبل التصوير مرة أخرى:","capture.retryOneFace.alone":"تأكد من عدم وجود أي شخص بجانب الشخص الذي يتم التحقق منه أو خلفه","capture.retryOneFace.screens":"أبعد عن الإطار الصور والشاشات التي يظهر فيها وجه","capture.retryFrontCamera.screenSide":"الكاميرا الأمامية هي التي في جهة الشاشة، حيث ترى نفسك","capture.retryBackCamera.backSide":"الكاميرا الخلفية هي التي في الجهة المقابلة للشاشة","capture.retryBackCamera.circle":"أمسك الهاتف بشكل عمودي أمام الشخص، مع إبقاء وجهه داخل الدائرة","capture.retryUpright.vertical":"أمسك الهاتف بشكل عمودي، والكاميرا في الأعلى","capture.retryUpright.untilEnd":"أبقِه كذلك حتى ينتهي التسجيل","capture.retryRecording.cameraOn":"أبقِ الكاميرا تعمل حتى ينتهي التسجيل","capture.retryRecording.stay":"ابقَ في هذه الشاشة. لا تنتقل إلى تطبيق آخر ولا تقفل هاتفك","capture.retryRecording.network":"استخدم اتصال إنترنت مستقرًا","capture.retryDevice.screenRecording":"أوقف أي تسجيل للشاشة أو مشاركة لها","capture.retryDevice.phone":"استخدم التطبيق على هاتف، لا على محاكي","capture.attemptsRemaining.zero":"لم تتبقَّ أي محاولة","capture.attemptsRemaining.one":"تبقّت محاولة واحدة","capture.attemptsRemaining.two":"تبقّت محاولتان","capture.attemptsRemaining.few":"تبقّت {count} محاولات","capture.attemptsRemaining.many":"تبقّت {count} محاولة","capture.attemptsRemaining.other":"تبقّت {count} محاولة","common.retry":"أعد المحاولة","common.securityCheckRunning":"فحص الأمان جارٍ، وقد يستغرق ذلك دقيقتين","fcv2.err.permission":"اسمح بالوصول إلى الكاميرا من إعدادات المتصفح (أيقونة الكاميرا في شريط العنوان) ثم أعد المحاولة","fcv2.err.notfound":"لم يتم العثور على كاميرا. وصِّل كاميرا أو فعِّلها ثم أعد المحاولة","fcv2.err.inuse":"تطبيق آخر يستخدم الكاميرا. أغلقه ثم أعد المحاولة","fcv2.err.insecure":"تتطلب الكاميرا اتصالًا آمنًا (HTTPS). افتح هذه الصفحة عبر HTTPS","fcv2.err.unsupported":"متصفحك لا يستطيع الالتقاط بصيغة مدعومة. افتح هذه الصفحة في متصفح حديث مثل كروم أو سفاري","fcv2.err.generic":"الكاميرا غير متاحة. أعد المحاولة، وتواصل مع الدعم إذا استمرت المشكلة","fcv3.no_face":"لا نرى وجهك. أمسك الهاتف أمامك","fcv3.come_closer":"قرّب الهاتف قليلًا","fcv3.move_back":"أبعد الهاتف قليلًا","fcv3.center_face":"ضع وجهك في منتصف الدائرة","fcv3.straighten":"أبقِ رأسك مستقيمًا","fcv3.more_light":"انتقل إلى مكان أكثر إضاءة. أضئ وجهك","fcv3.too_bright":"الإضاءة قوية جدًا. تجنّب الضوء المباشر على وجهك","fcv3.hold_still":"ممتاز، لا تتحرك","fcv3.steady_camera":"أمسك الهاتف بثبات","fcv3.hold_upright":"أمسك الهاتف بشكل عمودي","fcv3.one_face":"يجب أن يظهر شخص واحد فقط في الإطار","reasons.no_face":"تعذّر اكتشاف أي وجه أثناء التحقق","reasons.media_unreadable":"تعذّرت قراءة اللقطة المُرسلة","reasons.clip_too_short":"كانت اللقطة أقصر من اللازم","reasons.spoof_detected":"لم يتمكن فحص الحضور الحي من تأكيد وجود شخص حقيقي أمام الكاميرا","reasons.review_band":"لم يكن الفحص التلقائي حاسمًا، لذا أُحيل إلى مراجعة بشرية","reasons.nni_not_found":"لم يُعثر على الرقم الوطني في سجل الحالة المدنية","reasons.nni_invalid":"الرقم الوطني ليس رقمًا صالحًا مكوّنًا من 10 أرقام","reasons.registry_unavailable":"تعذّر الوصول إلى سجل الحالة المدنية لتأكيد رقمك","reasons.no_face_source":"تعذّر اكتشاف وجه في الصورة الذاتية","reasons.no_face_reference":"لم تتوفّر صورة مرجعية لمقارنة صورتك الذاتية بها. على الجهة الطالبة معالجة ذلك، وإعادة التقاط صورتك الذاتية لن تُجدي","reasons.low_quality_reference":"الصورة المرجعية المحفوظة لم تكن واضحة بما يكفي للمقارنة","reasons.below_threshold":"الصورة الذاتية لم تطابق صورة وثيقة الهوية بدرجة كافية","reasons.side_missing":"أحد وجهي وثيقة الهوية لم يُرسل","reasons.mrz_checksum_failed":"تعذّر التحقق من منطقة القراءة الآلية في الوثيقة","reasons.unreadable":"صورة الوثيقة لم تكن واضحة بما يكفي للقراءة","reasons.expired_document":"انتهت صلاحية وثيقة الهوية","reasons.authenticity_review":"أُحيلت الوثيقة إلى مراجعة بشرية للتأكد من صحتها","reasons.registry_mismatch":"بيانات الوثيقة لا تطابق السجل المدني. سيتحقق منها مراجع","reasons.document_nni_mismatch":"هذه الوثيقة تخص شخصًا آخر غير الشخص الذي أُنشئ له هذا التحقق","reasons.id_number_invalid":"رقم الهوية غير صالح","reasons.registry_record_not_found":"لم يُعثر على أي سجل لرقم الهوية هذا في السجل","reasons.document_id_number_mismatch":"هذه الوثيقة تخص شخصًا آخر غير الشخص الذي أُنشئ له هذا التحقق","reasons.otp_mismatch":"رمز التحقّق لا يطابق الرمز الذي أرسلناه","reasons.otp_expired":"انتهت صلاحية رمز التحقّق قبل إدخاله","reasons.otp_send_failed":"تعذّر إرسال رمز التحقّق إلى هاتفك","reasons.uncalibrated_capture_channel":"جودة الكاميرا المكتبية غير معايَرة بعد، لذا أُحيل تحققك إلى مراجعة بشرية","reasons.capture_back_camera":"استخدم الكاميرا الأمامية. أمسك الهاتف أمام وجهك وحاول مرة أخرى","reasons.capture_not_upright":"أمسك هاتفك بشكل عمودي وليس أفقيًا، ثم حاول مرة أخرى","reasons.capture_front_camera":"استخدم الكاميرا الخلفية. وجّهها نحو وجه الشخص وحاول مرة أخرى","reasons.multiple_faces":"ظهر شخص آخر في الفيديو. صوّر مرة أخرى مع وجود شخص واحد فقط في الإطار","reasons.location_not_allowed":"التحقق غير متاح في منطقتك.","reasons.anonymizer_blocked":"أوقف تشغيل VPN أو الوكيل ثم افتح الرابط مجددًا.","reasons.nationality_not_allowed":"لا يمكن لهذه الخدمة التحقق من هذه الوثيقة. تواصل مع الجهة لمعرفة الخيارات الأخرى.","reasons.document_type_not_accepted":"هذا النوع من الوثائق غير مقبول. اختر وثيقة أخرى.","reasons.underage":"لا تستوفي الحد الأدنى للسن لهذه الخدمة.","reasons.age_unverifiable":"تعذّرت قراءة تاريخ ميلادك. التقط صورة أوضح لوثيقتك.","reasons.nationality_unreadable":"تعذّرت قراءة جنسيتك. التقط صورة أوضح لوثيقتك.","reasons.name_mismatch":"بياناتك لا تطابق المعلومات المتوفرة لدى الجهة. تواصل مع الجهة.","reasons.birth_date_mismatch":"بياناتك لا تطابق المعلومات المتوفرة لدى الجهة. تواصل مع الجهة.","reasons.nationality_mismatch":"بياناتك لا تطابق المعلومات المتوفرة لدى الجهة. تواصل مع الجهة.","reasons.document_number_mismatch":"بياناتك لا تطابق المعلومات المتوفرة لدى الجهة. تواصل مع الجهة.","reasons.liveness_inconclusive":"لم نتمكن من التأكد من أنك أنت هذه المرة. ابقَ ثابتًا ولنحاول مرة أخرى.","reasons.match_inconclusive":"لم نتمكّن من التأكد من أنك أنت. حاول مجددًا في إضاءة جيدة ومن دون نظارات.","hints.appearance":"لم نتمكن من التأكد من أنك أنت هذه المرة. ابقَ ثابتًا ولنحاول مرة أخرى.","hints.motion":"ابقَ ثابتًا وأمسك الهاتف بثبات، ثم حاول مجددًا.","hints.lighting":"اجعل وجهك مقابل نافذة أو مصباح حتى يكون مضاءً جيدًا، ثم حاول مجددًا.","hints.framing":"اقترب أكثر حتى يملأ وجهك الإطار، ثم حاول مجددًا.","reasons.subject_revoked":"لم تعد الهوية المحفوظة لهذا التحقق متاحة. على الجهة الطالبة إجراء تحقق كامل، وإعادة المحاولة لن تُجدي","reasons.probe_not_from_liveness":"يجب أن يظهر الشخص نفسه أمام الكاميرا من البداية إلى النهاية. سجّل الفيديو مرة أخرى","reasons.document_authenticity":"استخدم البطاقة الأصلية، لا صورة لها ولا نسخة منها، وتجنّب الانعكاسات.","reasons.mobile_required":"تابع على هاتفك لالتقاط صورة لوجهك.","reasons.capture_tampered":"تعذّر التحقق من هذا الالتقاط. استخدم الكاميرا المدمجة في هاتفك، دون تسجيل الشاشة أو تطبيقات الكاميرا.","reasons.device_velocity_exceeded":"لا يمكن استخدام هذا الجهاز لعملية تحقق أخرى حاليًا. تواصل مع الجهة.","reasons.device_cooldown":"محاولات كثيرة. حاول مجددًا لاحقًا.","cooldown.retryIn":"محاولات كثيرة. حاول مجددًا {time}.","cooldown.retryAt":"محاولات كثيرة. حاول مجددًا بعد {time}.","capture.busy":"خدمتنا مشغولة حاليًا. نعيد المحاولة…","errors.inference_unavailable":"حاول مجددًا بعد لحظات.","method.title":"كيف تريد التحقق من هويتك؟","method.description":"اختر إحدى الطريقتين للمتابعة","returning.title":"أكّد أنك أنت","returning.description":"سبق أن تحقّقت من هويتك. التقاط قصير لوجهك يكفي لتأكيد أنك أنت.","method.national_number":"إدخال الرقم الوطني للتعريف الموريتاني (NNI)","method.document_photo":"تصوير وثيقتي","errors.method_required":"اختر طريقة التحقق، ثم تابع","errors.attestation_invalid":"تعذّر إكمال فحص الأمان. حاول مجددًا، وإذا تكرّر ذلك فجرّب متصفحًا آخر أو شبكة أخرى","errors.device_clock":"اضبط تاريخ ووقت هاتفك على الوضع التلقائي، ثم حاول مجددًا","errors.network_error":"تعذّر الوصول إلى خدمة التحقق. تحقق من اتصالك بالإنترنت وأعد المحاولة","errors.session_expired":"انتهت صلاحية جلسة التحقق هذه. اطلب رابطًا جديدًا من الجهة التي أرسلتك إلى هنا","errors.nni_unbound":"أُنشئ هذا الرابط دون رقمك الوطني للتعريف. اطلب رابطًا جديدًا من الجهة الطالبة","errors.id_number_unbound":"أُنشئ هذا الرابط دون رقم هويتك. اطلب رابطًا جديدًا من الجهة الطالبة","capture.tips.title":"لتحقق ناجح:","capture.tips.light":"اجعل الضوء أمام وجهك وتجنّب الإضاءة القوية خلفك","capture.tips.uncover":"اكشف وجهك: بلا نظارات أو كمامة أو يد أمامه","capture.tips.eyeLevel":"أمسك هاتفك بمستوى العينين","capture.tips.straight":"انظر مباشرة إلى الكاميرا وابقَ ثابتًا","capture.tips.summary":"اختر مكانًا جيد الإضاءة. اكشف وجهك: بلا نظارات أو كمامة. بعد تشغيل الكاميرا، أمسك هاتفك بمستوى العينين، وانظر مباشرة إلى الكاميرا وابقَ ثابتًا.","capture.tips.listen":"استمع إلى التعليمات","capture.tips.stop":"إيقاف","capture.permission.granted":"تم السماح بالوصول إلى الكاميرا","capture.permission.prompt":"سيطلب متصفحك استخدام الكاميرا. اختر «السماح»","capture.permission.denied":"الوصول إلى الكاميرا محظور. اسمح به من إعدادات المتصفح (رمز الكاميرا في شريط العنوان)، ثم أعد تحميل الصفحة","capture.permission.unknown":"سنطلب استخدام الكاميرا عند البدء","capture.cameraLabel":"الكاميرا","capture.facing.user":"الكاميرا الأمامية","capture.facing.environment":"الكاميرا الخلفية","capture.assisted.title":"صوّر وجه الشخص","capture.assisted.lead":"وجّه الكاميرا الخلفية نحو وجه الشخص وأمسك الهاتف بشكل عمودي. الإرشادات الصوتية تخاطب الشخص الذي تصوّره.","capture.assisted.stage":"وجّه الكاميرا نحو وجه الشخص","capture.modeSwitch.toAssisted":"شخص يساعدني","capture.modeSwitch.toSelf":"أصوّر نفسي","capture.modeSwitch.toAssistedLabel":"التبديل إلى التصوير بمساعدة شخص آخر يحمل الهاتف ويصوّرك","capture.modeSwitch.toSelfLabel":"التبديل إلى التصوير الذاتي بالكاميرا الأمامية","capture.modeSwitch.restarted":"تم تبديل الكاميرا. ابدأ من جديد عندما تكون جاهزًا","capture.lookAtColours":"انظر إلى الألوان","capture.voiceGuidance":"الإرشاد الصوتي","capture.preparing.hint":"يجري إعداد كشف الوجه على جهازك. قد يستغرق ذلك لحظة على اتصال بطيء","capture.ready":"جاهز. ابدأ عندما تكون مستعدًا","fcv2.err.models":"تعذّر تحميل نماذج التعرف على الوجه. تحقق من اتصالك ثم أعد المحاولة","fcv2.err.backcamera":"تعذّر فتح الكاميرا الخلفية، والالتقاط المساعَد يحتاج إليها. أعد المحاولة أو تابع على هاتف آخر"},lt={"capture.start":"Démarrer la caméra","capture.recordAgain":"Commencer une nouvelle tentative","capture.switchCamera":"Changer de caméra","capture.preparing.title":"Préparation de la capture sécurisée…","capture.checking":"Nous vérifions votre identité…","capture.checkingHint":"Cela prend généralement quelques secondes. Gardez cette page ouverte","capture.securityNote":"Vos images sont chiffrées et utilisées uniquement pour cette vérification","capture.cameraOff":"Caméra éteinte","capture.previewAlt":"Aperçu de l’image capturée de votre visage","capture.retryCoaching.title":"Cette tentative n'a pas abouti. Quelques ajustements vous aideront :","capture.retryCoaching.light":"Placez-vous dans un endroit bien éclairé, avec la lumière sur le visage et non derrière vous","capture.retryCoaching.eyeLevel":"Tenez votre téléphone à hauteur des yeux","capture.retryCoaching.head":"Regardez droit vers la caméra, la tête bien droite","capture.retryTips.title":"Avant de filmer à nouveau :","capture.retryOneFace.alone":"Assurez-vous que personne ne se trouve à côté ou derrière la personne vérifiée","capture.retryOneFace.screens":"Gardez hors du cadre les photos et les écrans qui montrent un visage","capture.retryFrontCamera.screenSide":"La caméra avant est celle du côté de l'écran : vous vous voyez à l'écran","capture.retryBackCamera.backSide":"La caméra arrière est celle du côté opposé à l'écran","capture.retryBackCamera.circle":"Tenez le téléphone droit face à la personne, son visage dans le cercle","capture.retryUpright.vertical":"Tenez le téléphone bien droit, la caméra en haut","capture.retryUpright.untilEnd":"Gardez-le ainsi jusqu'à la fin de l'enregistrement","capture.retryRecording.cameraOn":"Laissez la caméra allumée jusqu'à la fin de l'enregistrement","capture.retryRecording.stay":"Restez sur cet écran. Ne changez pas d'application et ne verrouillez pas votre téléphone","capture.retryRecording.network":"Utilisez une connexion internet stable","capture.retryDevice.screenRecording":"Arrêtez tout enregistrement ou partage d'écran","capture.retryDevice.phone":"Utilisez l'application sur un téléphone, pas sur un émulateur","capture.attemptsRemaining.one":"{count} tentative restante","capture.attemptsRemaining.other":"{count} tentatives restantes","common.retry":"Réessayer","common.securityCheckRunning":"Contrôle de sécurité en cours. Cela peut prendre jusqu'à deux minutes","fcv2.err.permission":"Autorisez la caméra dans les réglages du navigateur (icône caméra dans la barre d’adresse), puis réessayez","fcv2.err.notfound":"Aucune caméra détectée. Branchez ou activez une caméra, puis réessayez","fcv2.err.inuse":"La caméra est utilisée par une autre application. Fermez-la, puis réessayez","fcv2.err.insecure":"La caméra nécessite une connexion sécurisée (HTTPS). Rouvrez cette page en HTTPS","fcv2.err.unsupported":"Votre navigateur ne prend pas en charge un format de capture compatible. Ouvrez cette page dans un navigateur récent comme Chrome ou Safari","fcv2.err.generic":"Caméra indisponible. Réessayez, ou contactez le support si le problème persiste","fcv3.no_face":"Nous ne voyons pas votre visage. Tenez le téléphone devant vous","fcv3.come_closer":"Rapprochez un peu le téléphone","fcv3.move_back":"Éloignez un peu le téléphone","fcv3.center_face":"Centrez votre visage dans le cercle","fcv3.straighten":"Tenez la tête droite","fcv3.more_light":"Cherchez un endroit plus lumineux. Éclairez votre visage","fcv3.too_bright":"Trop de lumière. Évitez la lumière directe sur le visage","fcv3.hold_still":"Parfait, ne bougez plus","fcv3.steady_camera":"Tenez le téléphone stable","fcv3.hold_upright":"Tenez le téléphone à la verticale","fcv3.one_face":"Une seule personne doit être dans le cadre","reasons.no_face":"Aucun visage n’a pu être détecté pendant la vérification","reasons.media_unreadable":"La capture envoyée n’a pas pu être lue","reasons.clip_too_short":"La capture était trop courte","reasons.spoof_detected":"Le contrôle de présence n'a pas pu confirmer la présence d'une personne réelle devant la caméra","reasons.review_band":"Le contrôle automatique n'a pas été concluant, il a donc été transmis à un examen humain","reasons.nni_not_found":"Le numéro national d'identification n'a pas été trouvé dans le registre d'état civil","reasons.nni_invalid":"Le numéro national d'identification n'est pas un NNI valide à 10 chiffres","reasons.registry_unavailable":"Le registre d'état civil n'a pas pu être joint pour confirmer votre numéro","reasons.no_face_source":"Aucun visage n'a pu être détecté sur la photo selfie","reasons.no_face_reference":"Aucune photo de référence n'était disponible pour comparer votre selfie. C'est au demandeur de le résoudre : reprendre votre selfie n'y changera rien","reasons.low_quality_reference":"La photo de référence enregistrée n'était pas assez nette pour la comparaison","reasons.below_threshold":"Le selfie ne correspondait pas suffisamment à la photo de la pièce d'identité","reasons.side_missing":"Un côté de la pièce d'identité n'a pas été envoyé","reasons.mrz_checksum_failed":"La zone de lecture automatique du document n'a pas pu être validée","reasons.unreadable":"La photo du document n'était pas assez nette pour être lue","reasons.expired_document":"La pièce d'identité a expiré","reasons.authenticity_review":"Le document a été transmis à un examen humain pour confirmer son authenticité","reasons.registry_mismatch":"Les informations du document ne correspondent pas au registre civil. Un examinateur va vérifier","reasons.document_nni_mismatch":"Ce document appartient à une autre personne que celle pour qui cette vérification a été créée","reasons.id_number_invalid":"Le numéro d'identité n'est pas valide","reasons.registry_record_not_found":"Aucun dossier n'a été trouvé dans le registre pour ce numéro d'identité","reasons.document_id_number_mismatch":"Ce document appartient à une autre personne que celle pour qui cette vérification a été créée","reasons.otp_mismatch":"Le code de vérification ne correspond pas à celui que nous avons envoyé","reasons.otp_expired":"Le code de vérification a expiré avant d'être saisi","reasons.otp_send_failed":"Nous n'avons pas pu envoyer de code de vérification à votre téléphone","reasons.uncalibrated_capture_channel":"Les captures webcam ne sont pas encore décidées automatiquement, votre vérification part donc en revue humaine","reasons.capture_back_camera":"Utilisez la caméra avant. Tenez le téléphone devant votre visage et réessayez","reasons.capture_not_upright":"Tenez votre téléphone à la verticale, pas à l'horizontale, et réessayez","reasons.capture_front_camera":"Utilisez la caméra arrière. Dirigez-la vers le visage de la personne et réessayez","reasons.multiple_faces":"Une autre personne est apparue dans la vidéo. Filmez à nouveau avec une seule personne dans le cadre","reasons.location_not_allowed":"La vérification n'est pas disponible dans votre région.","reasons.anonymizer_blocked":"Désactivez votre VPN ou proxy, puis rouvrez le lien.","reasons.nationality_not_allowed":"Ce service ne peut pas vérifier ce document. Contactez l'organisation pour d'autres options.","reasons.document_type_not_accepted":"Ce type de document n'est pas accepté. Choisissez un autre document.","reasons.underage":"Vous n'avez pas l'âge minimum requis pour ce service.","reasons.age_unverifiable":"Nous n'avons pas pu lire votre date de naissance. Prenez une photo plus nette de votre document.","reasons.nationality_unreadable":"Nous n'avons pas pu lire votre nationalité. Prenez une photo plus nette de votre document.","reasons.name_mismatch":"Ces informations ne correspondent pas à celles dont dispose l'organisation. Contactez l'organisation.","reasons.birth_date_mismatch":"Ces informations ne correspondent pas à celles dont dispose l'organisation. Contactez l'organisation.","reasons.nationality_mismatch":"Ces informations ne correspondent pas à celles dont dispose l'organisation. Contactez l'organisation.","reasons.document_number_mismatch":"Ces informations ne correspondent pas à celles dont dispose l'organisation. Contactez l'organisation.","reasons.liveness_inconclusive":"Nous n'avons pas pu confirmer que c'est bien vous cette fois. Restez immobile et réessayons.","reasons.match_inconclusive":"Nous n'avons pas pu confirmer qu'il s'agit bien de vous. Réessayez dans un endroit bien éclairé, sans lunettes.","hints.appearance":"Nous n'avons pas pu confirmer que c'est bien vous cette fois. Restez immobile et réessayons.","hints.motion":"Restez immobile et tenez le téléphone bien stable, puis réessayez.","hints.lighting":"Placez-vous face à une fenêtre ou une lampe pour que votre visage soit bien éclairé, puis réessayez.","hints.framing":"Rapprochez-vous pour que votre visage remplisse le cadre, puis réessayez.","reasons.subject_revoked":"L'identité enregistrée pour cette vérification n'est plus disponible. Le demandeur doit lancer une vérification complète : réessayer n'y changera rien","reasons.probe_not_from_liveness":"La même personne doit être devant la caméra du début à la fin. Enregistrez à nouveau la vidéo","reasons.document_authenticity":"Utilisez la carte originale, pas une photo ni une copie, et évitez les reflets.","reasons.mobile_required":"Continuez sur votre téléphone pour prendre le selfie.","reasons.capture_tampered":"Nous n'avons pas pu vérifier cette capture. Utilisez l'appareil photo intégré de votre téléphone, sans enregistrement d'écran ni application de caméra.","reasons.device_velocity_exceeded":"Cet appareil ne peut pas servir à une autre vérification pour le moment. Contactez l'organisation.","reasons.device_cooldown":"Trop de tentatives. Réessayez plus tard.","cooldown.retryIn":"Trop de tentatives. Réessayez {time}.","cooldown.retryAt":"Trop de tentatives. Réessayez à partir de {time}.","capture.busy":"Notre service est très sollicité. Nouvel essai en cours…","errors.inference_unavailable":"Réessayez dans un instant.","method.title":"Comment souhaitez-vous vérifier votre identité ?","method.description":"Choisissez une option pour continuer","returning.title":"Confirmez qu'il s'agit bien de vous","returning.description":"Vous avez déjà vérifié votre identité. Une courte capture du visage confirme qu'il s'agit toujours de vous.","method.national_number":"Saisir mon numéro national d'identification mauritanien (NNI)","method.document_photo":"Photographier mon document","errors.method_required":"Choisissez comment vérifier votre identité, puis continuez","errors.attestation_invalid":"Nous n'avons pas pu terminer le contrôle de sécurité. Réessayez. Si cela continue, essayez un autre navigateur ou un autre réseau","errors.device_clock":"Réglez la date et l'heure de votre téléphone sur automatique, puis réessayez","errors.network_error":"Nous n'avons pas pu joindre le service de vérification. Vérifiez votre connexion internet et réessayez","errors.session_expired":"Cette session de vérification a expiré. Demandez un nouveau lien à l'organisme qui vous a envoyé ici","errors.nni_unbound":"Ce lien a été créé sans votre numéro national d'identification. Demandez un nouveau lien à l'organisme demandeur","errors.id_number_unbound":"Ce lien a été créé sans votre numéro d'identité. Demandez un nouveau lien à l'organisme demandeur","capture.tips.title":"Pour une vérification réussie :","capture.tips.light":"Placez-vous face à la lumière et évitez une forte lumière derrière vous","capture.tips.uncover":"Dégagez votre visage : ni lunettes, ni masque, ni main devant","capture.tips.eyeLevel":"Tenez votre téléphone à hauteur des yeux","capture.tips.straight":"Regardez droit vers la caméra et restez immobile","capture.tips.summary":"Placez-vous dans une zone bien éclairée. Dégagez votre visage : ni lunettes, ni masque. Une fois la caméra démarrée, tenez votre téléphone à hauteur des yeux, regardez droit vers la caméra et restez immobile.","capture.tips.listen":"Écouter les instructions","capture.tips.stop":"Arrêter","capture.permission.granted":"Accès à la caméra autorisé","capture.permission.prompt":"Votre navigateur va demander l’accès à la caméra. Choisissez « Autoriser »","capture.permission.denied":"L’accès à la caméra est bloqué. Autorisez-le dans les réglages du navigateur (icône caméra dans la barre d’adresse), puis rechargez la page","capture.permission.unknown":"Nous demanderons l’accès à la caméra au démarrage","capture.cameraLabel":"Caméra","capture.facing.user":"Caméra avant","capture.facing.environment":"Caméra arrière","capture.assisted.title":"Filmez le visage de la personne","capture.assisted.lead":"Pointez la caméra arrière vers le visage de la personne et tenez le téléphone à la verticale. Le guidage vocal s'adresse à la personne filmée.","capture.assisted.stage":"Pointez la caméra vers le visage de la personne","capture.modeSwitch.toAssisted":"Quelqu'un m'aide","capture.modeSwitch.toSelf":"Je me filme","capture.modeSwitch.toAssistedLabel":"Passer à la capture assistée : une autre personne tient le téléphone et vous filme","capture.modeSwitch.toSelfLabel":"Passer à la capture seule : vous vous filmez avec la caméra avant","capture.modeSwitch.restarted":"Caméra changée. Recommencez quand vous le souhaitez","capture.lookAtColours":"Regardez les couleurs","capture.voiceGuidance":"Guidage vocal","capture.preparing.hint":"Mise en place de la détection du visage sur l’appareil. Cela peut prendre un instant sur une connexion lente","capture.ready":"Prêt. Commencez quand vous voulez","fcv2.err.models":"Impossible de charger les modèles de détection du visage. Vérifiez votre connexion puis réessayez","fcv2.err.backcamera":"La caméra arrière n'a pas pu s'ouvrir, et la capture assistée en a besoin. Réessayez ou continuez sur un autre téléphone"},T={},H=u(e=>e==="es"||e==="pt"||e==="de","isOverlayLocale");function Ae(e){return H(e)?"en":e}o(Ae,"q");u(Ae,"baseLocale");function Se(e){return H(e)?T[e]:void 0}o(Se,"N");u(Se,"overlayOf");function ee(e){return H(e)&&T[e]===void 0}o(ee,"_");u(ee,"overlayPending");function Ee(e){return ee(e)?(e==="es"?import("./overlay-es-LLTS3D6J-U2DPYDC2.js"):e==="pt"?import("./overlay-pt-UUJUOJNJ-E57Q5MWT.js"):import("./overlay-de-TP7ROFVF-5EEFWZ4E.js")).then(t=>{T[e]=t.overlay},()=>{T[e]={}}):Promise.resolve()}o(Ee,"O");u(Ee,"loadSekyroLocale");var te=Object.freeze({"reasons.id_number_invalid":"reasons.nni_invalid","reasons.registry_record_not_found":"reasons.nni_not_found","reasons.document_id_number_mismatch":"reasons.document_nni_mismatch","errors.id_number_unbound":"errors.nni_unbound","population.reason_id_number_invalid":"population.reason_nni_invalid","population.reason_registry_record_not_found":"population.reason_nni_not_found","population.reason_registry_record_not_found_or_document":"population.reason_nni_not_found_or_document","summary.id_number":"summary.nni"}),He=new Map(Object.entries(te).filter(([e])=>e.startsWith("reasons.")).map(([e,t])=>[t.slice(8),e.slice(8)]));function re(e){return He.get(e)??e}o(re,"m");u(re,"genericReason");function Ne(e,t){let r=e,n=t;for(let[a,c]of Object.entries(te)){let s=n[a],d=n[c];typeof s!="string"&&typeof d=="string"?r[a]=d:typeof d!="string"&&typeof s=="string"&&(r[c]=s)}}o(Ne,"D");u(Ne,"aliasRenamedKeys");function je(e){switch(e){case"center":return"fcv3.center_face";case"closer":return"fcv3.come_closer";case"farther":return"fcv3.move_back";case"light":return"fcv3.more_light";case"still":case"hold":return"fcv3.hold_still";case"upright":return"fcv3.hold_upright";case"one_face":return"fcv3.one_face";default:{let t=e;throw new Error(`hintStringKey: unhandled hint ${t}`)}}}o(je,"E");u(je,"hintStringKey");function xe(e){let t=`hints.${e}`;return Object.hasOwn(J,t)?t:null}o(xe,"B");u(xe,"retakeHintStringKey");function ne(e){return`fcv2.err.${e}`}o(ne,"b");u(ne,"captureErrorStringKey");function Pe(e){return e.detail?.engineKind==="backcamera"?"fcv2.err.backcamera":ne(e.kind)}o(Pe,"M");u(Pe,"captureErrorCopyKey");function qe(e){switch(e){case"no_recorder":return"fcv2.err.unsupported";case"attestation":return"errors.attestation_invalid";case"network":return"errors.network_error";case"nni_unbound":case"id_number_unbound":return"errors.id_number_unbound";case"method_required":return"errors.method_required";case"inference_unavailable":return"errors.inference_unavailable";default:{let t=`reasons.${re(e)}`;return Object.hasOwn(J,t)?t:null}}}o(qe,"j");u(qe,"reasonStringKey");function Oe(e,t,r=new Date){if(t===void 0)return null;let n=new Date(t),a=n.getTime()-r.getTime();if(!Number.isFinite(a)||a<=0)return null;if(a<36e5){let s=Math.max(1,Math.ceil(a/6e4));return{key:"cooldown.retryIn",time:new Intl.RelativeTimeFormat(e,{numeric:"always"}).format(s,"minute")}}let c=n.toDateString()===r.toDateString();return{key:"cooldown.retryAt",time:new Intl.DateTimeFormat(e,{...c?{}:{day:"numeric",month:"long"},hour:"2-digit",minute:"2-digit"}).format(n)}}o(Oe,"V");u(Oe,"retryAfterTime");function N(e,t,r){let n=new Intl.PluralRules(t).select(r);return((n==="other"?void 0:e[`capture.attemptsRemaining.${n}`])??e["capture.attemptsRemaining.other"]).replace("{count}",new Intl.NumberFormat(t).format(r))}o(N,"W");u(N,"attemptsRemainingText");function j(){return(0,oe.useCallback)(e=>{e?.focus()},[])}o(j,"X");u(j,"useFocusOnMount");function x({tone:e,role:t,children:r,testId:n}){return(0,ae.jsx)("div",{role:t??(e==="info"?"status":"alert"),className:`sekyro-notice sekyro-notice--${e}`,"data-testid":n,children:r})}o(x,"re");u(x,"Notice");var ie=f(y(),1),l=f(b(),1),h=f(y(),1),g=f(y(),1);var Ie={success:'<path d="M2 12A10 10 0 1 0 22 12A10 10 0 1 0 2 12Z" stroke="currentColor"/><path d="M8.5 12.5L10.5 14.5L15.5 9.5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>',pending:'<path d="M2 12A10 10 0 1 0 22 12A10 10 0 1 0 2 12Z" stroke="currentColor"/><path d="M12 8V12L14.5 14.5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>',info:'<path d="M2 12A10 10 0 1 0 22 12A10 10 0 1 0 2 12Z" stroke="currentColor"/><path d="M12 17V11" stroke="currentColor" stroke-linecap="round"/><path d="M12 8H12" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>',timer:'<path d="M3 13A9 9 0 1 0 21 13A9 9 0 1 0 3 13Z" stroke="currentColor"/><path d="M12 9V13L14.5 15.5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M3.5 4.5L7.5 2" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M20.5 4.5L16.5 2" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>',closeCircle:'<path d="M2 12A10 10 0 1 0 22 12A10 10 0 1 0 2 12Z" stroke="currentColor"/><path d="M14.5 9.5L9.5 14.5M9.5 9.5L14.5 14.5" stroke="currentColor" stroke-linecap="round"/>',sms:'<path d="M14.6 19.21C14.26 19.41 14.05 19.76 13.63 20.47L13.09 21.39C12.6 22.2 11.4 22.2 10.91 21.39L10.37 20.47C9.95 19.76 9.74 19.41 9.4 19.21C9.07 19.01 8.64 19.01 7.79 18.99C6.53 18.97 5.75 18.89 5.09 18.62C3.86 18.11 2.89 17.14 2.38 15.91C2 14.99 2 13.83 2 11.5V10.5C2 7.23 2 5.59 2.74 4.39C3.15 3.71 3.71 3.15 4.39 2.74C5.59 2 7.23 2 10.5 2H13.5C16.77 2 18.41 2 19.61 2.74C20.29 3.15 20.85 3.71 21.26 4.39C22 5.59 22 7.23 22 10.5V11.5C22 13.83 22 14.99 21.62 15.91C21.11 17.14 20.14 18.11 18.91 18.62C18.25 18.89 17.47 18.97 16.21 18.99C15.36 19.01 14.93 19.01 14.6 19.21Z" stroke="currentColor" stroke-linecap="round"/>',whatsapp:'<path d="M17.47 14.38c-0.3-0.15-1.76-0.87-2.03-0.97c-0.27-0.1-0.47-0.15-0.670.15c-0.20.3-0.770.97-0.94 1.16c-0.170.2-0.350.22-0.640.07c-0.3-0.15-1.25-0.46-2.39-1.48c-0.88-0.79-1.48-1.76-1.65-2.06c-0.17-0.3-0.02-0.460.13-0.61c0.13-0.130.3-0.350.45-0.52s0.2-0.30.3-0.5c0.1-0.20.05-0.37-0.03-0.52s-0.67-1.61-0.92-2.21c-0.24-0.58-0.49-0.5-0.67-0.51a13 13 0 0 0-0.57-0.01c-0.2 0-0.520.07-0.790.37c-0.270.3-1.04 1.02-1.04 2.48c0 1.46 1.06 2.88 1.21 3.07s2.1 3.2 5.08 4.49c0.710.31 1.260.49 1.690.63c0.710.23 1.360.2 1.870.12c0.57-0.09 1.76-0.72 2.01-1.41s0.25-1.290.17-1.41c-0.07-0.12-0.27-0.2-0.57-0.35m-5.42 7.4h0a9.87 9.87 0 0 1-5.03-1.38l-0.36-0.21l-3.740.98l1-3.65l-0.23-0.37a9.86 9.86 0 0 1-1.51-5.26c0-5.45 4.44-9.88 9.89-9.88c2.64 0 5.12 1.03 6.99 2.9a9.82 9.82 0 0 1 2.89 6.99c0 5.45-4.44 9.88-9.88 9.88m8.41-18.3A11.82 11.82 0 0 0 12.05 0C5.5 0 0.16 5.330.16 11.89c0 2.10.55 4.14 1.59 5.95L0.06 24l6.3-1.65a11.9 11.9 0 0 0 5.68 1.45h0.01c6.55 0 11.89-5.33 11.89-11.89a11.82 11.82 0 0 0-3.48-8.41" fill="currentColor"/>',back:'<path d="M15 5L9 12L15 19" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>',warning:'<path d="M5.31 10.76C8.23 5.59 9.69 3 12 3C14.31 3 15.77 5.59 18.69 10.76L19.05 11.41C21.48 15.71 22.69 17.86 21.59 19.43C20.5 21 17.79 21 12.36 21H11.64C6.21 21 3.5 21 2.41 19.43C1.31 17.86 2.52 15.71 4.95 11.41L5.31 10.76Z" stroke="currentColor"/><path d="M12 8V13" stroke="currentColor" stroke-linecap="round"/><path d="M12 16H12" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>',external:'<path d="M9 15L15 9M15 13.5V9H10.5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M2 12C2 7.29 2 4.93 3.46 3.46C4.93 2 7.29 2 12 2C16.71 2 19.07 2 20.54 3.46C22 4.93 22 7.29 22 12C22 16.71 22 19.07 20.54 20.54C19.07 22 16.71 22 12 22C7.29 22 4.93 22 3.46 20.54C2 19.07 2 16.71 2 12Z" stroke="currentColor"/>'},se={id:'<path d="M4 6H17C18.66 6 20 7.34 20 9V19C20 20.66 18.66 22 17 22H7C5.34 22 4 20.66 4 19V6ZM4 6V5" stroke="currentColor" stroke-linejoin="round"/><path d="M9 13A3 3 0 1 0 15 13A3 3 0 1 0 9 13Z" stroke="currentColor"/><path d="M18 6H5.07C4.48 6 4 5.52 4 4.93C4 4.4 4.39 3.94 4.92 3.87L15.72 2.33C16.92 2.15 18 3.09 18 4.31V6Z" stroke="currentColor" stroke-linejoin="round"/><path d="M10 19H14" stroke="currentColor" stroke-linecap="round"/>',card:'<path d="M2 12C2 8.23 2 6.34 3.17 5.17C4.34 4 6.23 4 10 4H14C17.77 4 19.66 4 20.83 5.17C22 6.34 22 8.23 22 12C22 15.77 22 17.66 20.83 18.83C19.66 20 17.77 20 14 20H10C6.23 20 4.34 20 3.17 18.83C2 17.66 2 15.77 2 12Z" stroke="currentColor"/><path d="M10 16H6" stroke="currentColor" stroke-linecap="round"/><path d="M14 16H12.5" stroke="currentColor" stroke-linecap="round"/><path d="M2 10L22 10" stroke="currentColor" stroke-linecap="round"/>',lock:'<path d="M2 16C2 13.17 2 11.76 2.88 10.88C3.76 10 5.17 10 8 10H16C18.83 10 20.24 10 21.12 10.88C22 11.76 22 13.17 22 16C22 18.83 22 20.24 21.12 21.12C20.24 22 18.83 22 16 22H8C5.17 22 3.76 22 2.88 21.12C2 20.24 2 18.83 2 16Z" stroke="currentColor"/><path d="M6 10V8C6 4.69 8.69 2 12 2C15.31 2 18 4.69 18 8V10" stroke="currentColor" stroke-linecap="round"/>',passport:'<path d="M4 6H17C18.66 6 20 7.34 20 9V19C20 20.66 18.66 22 17 22H7C5.34 22 4 20.66 4 19V6ZM4 6V5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M15 13A3 3 0 1 1 9 13A3 3 0 1 1 15 13Z" stroke="currentColor" stroke-linecap="round"/><path d="M18 6H5.07C4.48 6 4 5.52 4 4.93C4 4.4 4.39 3.94 4.92 3.87L15.72 2.33C16.92 2.15 18 3.09 18 4.31V6Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M10 19H14" stroke="currentColor" stroke-linecap="round"/>',camera:'<path d="M9 13A3 3 0 1 0 15 13A3 3 0 1 0 9 13Z" stroke="currentColor"/><path d="M9.78 21H14.22C17.34 21 18.9 21 20.02 20.26C20.51 19.95 20.93 19.54 21.25 19.06C22 17.96 22 16.43 22 13.36C22 10.3 22 8.77 21.25 7.67C20.93 7.19 20.51 6.78 20.02 6.46C19.3 5.99 18.4 5.82 17.02 5.76C16.36 5.76 15.8 5.27 15.67 4.64C15.47 3.68 14.62 3 13.63 3H10.37C9.38 3 8.53 3.68 8.33 4.64C8.2 5.27 7.64 5.76 6.98 5.76C5.6 5.82 4.7 5.99 3.98 6.46C3.49 6.78 3.07 7.19 2.75 7.67C2 8.77 2 10.3 2 13.36C2 16.43 2 17.96 2.75 19.06C3.07 19.54 3.49 19.95 3.98 20.26C5.1 21 6.66 21 9.78 21Z" stroke="currentColor"/><path d="M19 10H18" stroke="currentColor" stroke-linecap="round"/>',light:'<path d="M6 12A6 6 0 1 0 18 12A6 6 0 1 0 6 12Z" stroke="currentColor"/><path d="M12 2V3" stroke="currentColor" stroke-linecap="round"/><path d="M12 21V22" stroke="currentColor" stroke-linecap="round"/><path d="M22 12L21 12" stroke="currentColor" stroke-linecap="round"/><path d="M3 12L2 12" stroke="currentColor" stroke-linecap="round"/><path d="M19.07 4.93L18.68 5.32" stroke="currentColor" stroke-linecap="round"/><path d="M5.32 18.68L4.93 19.07" stroke="currentColor" stroke-linecap="round"/><path d="M19.07 19.07L18.68 18.68" stroke="currentColor" stroke-linecap="round"/><path d="M5.32 5.32L4.93 4.93" stroke="currentColor" stroke-linecap="round"/>',jGlasses:'<path d="M14 16A4 4 0 1 0 22 16A4 4 0 1 0 14 16Z" stroke="currentColor"/><path d="M2 16A4 4 0 1 0 10 16A4 4 0 1 0 2 16Z" stroke="currentColor"/><path d="M14 16.21L13.34 15.98C12.47 15.67 11.53 15.67 10.66 15.98L10 16.21" stroke="currentColor" stroke-linecap="round"/><path d="M2 16L2.76 7.61C2.88 6.34 2.94 5.71 3.31 5.24C3.68 4.77 4.28 4.57 5.48 4.17L6 4" stroke="currentColor" stroke-linecap="round"/><path d="M22 16L21.24 7.61C21.12 6.34 21.06 5.71 20.69 5.24C20.32 4.77 19.72 4.57 18.52 4.17L18 4" stroke="currentColor" stroke-linecap="round"/>',smartphone:'<path d="M4 10C4 6.23 4 4.34 5.17 3.17C6.34 2 8.23 2 12 2C15.77 2 17.66 2 18.83 3.17C20 4.34 20 6.23 20 10V14C20 17.77 20 19.66 18.83 20.83C17.66 22 15.77 22 12 22C8.23 22 6.34 22 5.17 20.83C4 19.66 4 17.77 4 14V10Z" stroke="currentColor" stroke-linecap="round"/><path d="M15 19H9" stroke="currentColor" stroke-linecap="round"/>',close:'<path d="M19.01 5L5.01 19" stroke="currentColor" stroke-linecap="round"/><path d="M19 19L5 5" stroke="currentColor" stroke-linecap="round"/>',phone:'<path d="M18.68 19.96C19.19 19.91 19.64 19.63 20 19.25L21.42 17.76C22.38 16.75 22.11 15.02 20.88 14.31L18.97 13.21C18.17 12.75 17.19 12.88 16.56 13.55L16.1 14.03C16.1 14.03 15.02 15.17 12.06 12.06C9.11 8.94 10.19 7.81 10.19 7.81L10.48 7.5C11.18 6.76 11.25 5.56 10.63 4.69L9.37 2.91C8.61 1.83 7.14 1.69 6.26 2.61L4.69 4.26C4.26 4.72 3.97 5.31 4 5.97C4.09 7.65 4.81 11.26 8.82 15.48C13.06 19.95 17.05 20.12 18.68 19.96Z" stroke="currentColor" stroke-linecap="round"/>',email:'<path d="M2 12C2 8.23 2 6.34 3.17 5.17C4.34 4 6.23 4 10 4H14C17.77 4 19.66 4 20.83 5.17C22 6.34 22 8.23 22 12C22 15.77 22 17.66 20.83 18.83C19.66 20 17.77 20 14 20H10C6.23 20 4.34 20 3.17 18.83C2 17.66 2 15.77 2 12Z" stroke="currentColor"/><path d="M6 8L8.16 9.8C10 11.33 10.91 12.09 12 12.09C13.09 12.09 14 11.33 15.84 9.8L18 8" stroke="currentColor" stroke-linecap="round"/>',face:'<path d="M9 16C9.85 16.63 10.88 17 12 17C13.12 17 14.15 16.63 15 16" stroke="currentColor" stroke-linecap="round"/><path d="M2.2 10C3 6.08 6.08 3 10 2.2" stroke="currentColor" stroke-linecap="round"/><path d="M2.2 14C3 17.92 6.08 21 10 21.8" stroke="currentColor" stroke-linecap="round"/><path d="M21.8 10C21 6.08 17.92 3 14 2.2" stroke="currentColor" stroke-linecap="round"/><path d="M21.8 14C21 17.92 17.92 21 14 21.8" stroke="currentColor" stroke-linecap="round"/><path d="M15.5 10.5C15.5 11.05 15.28 11.5 15 11.5C14.72 11.5 14.5 11.05 14.5 10.5C14.5 9.95 14.72 9.5 15 9.5C15.28 9.5 15.5 9.95 15.5 10.5Z" stroke="currentColor"/><path d="M8.5 10.5A0.5 1 0 1 0 9.5 10.5A0.5 1 0 1 0 8.5 10.5Z" stroke="currentColor"/>',copy:'<path d="M6 11C6 8.17 6 6.76 6.88 5.88C7.76 5 9.17 5 12 5H15C17.83 5 19.24 5 20.12 5.88C21 6.76 21 8.17 21 11V16C21 18.83 21 20.24 20.12 21.12C19.24 22 17.83 22 15 22H12C9.17 22 7.76 22 6.88 21.12C6 20.24 6 18.83 6 16V11Z" stroke="currentColor"/><path d="M6 19C4.34 19 3 17.66 3 16V10C3 6.23 3 4.34 4.17 3.17C5.34 2 7.23 2 11 2H15C16.66 2 18 3.34 18 5" stroke="currentColor"/>',hashtag:'<path d="M11 7L8 17" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M16 7L13 17" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M18 10H7" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M17 14H6" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 22C7.29 22 4.93 22 3.46 20.54C2 19.07 2 16.71 2 12C2 7.29 2 4.93 3.46 3.46C4.93 2 7.29 2 12 2C16.71 2 19.07 2 20.54 3.46C22 4.93 22 7.29 22 12C22 16.71 22 19.07 20.54 20.54C19.07 22 16.71 22 12 22Z" stroke="currentColor" stroke-linecap="round"/>',key:'<path d="M8.86 19.33L7.62 20.57C7.3 20.88 6.86 21.04 6.41 20.99L4.32 20.76C4.1 20.73 3.89 20.63 3.73 20.48L3.52 20.27C3.37 20.11 3.27 19.9 3.24 19.68L3.01 17.59C2.96 17.14 3.12 16.7 3.43 16.38L7.15 12.67C7.41 12.4 7.5 12 7.4 11.63C6.82 9.34 7.42 6.81 9.21 5.02C11.91 2.33 16.28 2.33 18.98 5.02C21.67 7.72 21.67 12.09 18.98 14.79C17.19 16.58 14.66 17.18 12.37 16.6C12 16.5 11.6 16.58 11.33 16.85L8.86 19.33ZM8.86 19.33L7.11 17.6M12.59 8.59C13.37 7.8 14.63 7.8 15.41 8.59C16.2 9.37 16.2 10.63 15.41 11.41C14.63 12.2 13.37 12.2 12.59 11.41C11.8 10.63 11.8 9.37 12.59 8.59Z" stroke="currentColor" stroke-linecap="round"/>'};function ce({name:e,className:t}){return(0,ie.jsx)("svg",{className:`sekyro-glyph${t?` ${t}`:""}`,viewBox:"0 0 24 24",fill:"none",stroke:"none",strokeWidth:1.5,"aria-hidden":"true",focusable:"false",dangerouslySetInnerHTML:{__html:e in se?se[e]:Ie[e]}})}o(ce,"L");u(ce,"Icon");function De({id:e,title:t,lead:r,lang:n}){let a=j(),c=n?.title!==void 0?n.dir:void 0,s=n?.lead!==void 0?n.dir:void 0;return(0,h.jsxs)("div",{className:"sekyro-heading",children:[(0,h.jsx)("h2",{id:e,ref:a,tabIndex:-1,className:"sekyro-text-body",lang:n?.title,dir:c,children:t}),r!==void 0?(0,h.jsx)("p",{className:"sekyro-text-muted",lang:n?.lead,dir:s,children:r}):null]})}o(De,"B");u(De,"StepHeading");var Ue=(0,l.createContext)(null),Ve=typeof window>"u"?l.useEffect:l.useLayoutEffect;function Ze({children:e}){let t=(0,l.useContext)(Ue),r=(0,l.useId)(),n=t?.claim;return Ve(()=>n?.(r),[n,r]),(0,h.jsxs)("div",{className:"sekyro-actions",children:[e,t!==null&&t.owner===r?t.node:null]})}o(Ze,"G");u(Ze,"StepActions");var ft=(0,l.createContext)({issuer:null,listed:[],set:u(()=>{},"set")}),$e=(0,l.createContext)(()=>{});function Ye(e){let t=(0,l.useContext)($e),r=(0,l.useRef)(e);r.current=e;let n=e!==null;(0,l.useEffect)(()=>{if(n)return t(()=>r.current?.()),()=>t(null)},[n,t])}o(Ye,"D");u(Ye,"useFlowBack");var vt=(0,l.createContext)(void 0),_t=(0,l.createContext)(void 0),Fe=(0,l.createContext)(()=>{});function Be(e){let t=(0,l.useContext)(Fe);(0,l.useEffect)(()=>(t(e),()=>t(!1)),[e,t])}o(Be,"J");u(Be,"useImmersive");var We=(0,l.createContext)(null);function Ge({onStop:e}){let t=(0,l.useContext)(We);return t===null?null:(0,h.jsx)("button",{type:"button",className:"sekyro-lm-upload",disabled:t.busy,"aria-busy":t.busy||void 0,"data-testid":"sekyro-skip-capture",onClick:o(()=>{e?.(),t.run()},"onClick"),children:t.label})}o(Ge,"Q");u(Ge,"CameraSkip");function Ke({template:e,code:t}){let[r,n]=e.split("{code}");return(0,h.jsxs)("span",{"data-testid":"sekyro-test-code-line",children:[r,(0,h.jsx)("bdi",{dir:"ltr",className:"sekyro-mono sekyro-test-code",children:t}),n]})}o(Ke,"U");u(Ke,"TestCodeLine");var Qe=100;function ue({swapKey:e,className:t,children:r}){let[n,a]=(0,l.useState)({key:e,node:r}),c=(0,l.useRef)(r);c.current=r;let s=n.key!==e;return(0,l.useEffect)(()=>{if(!s)return;let d=setTimeout(()=>a({key:e,node:c.current}),Qe);return()=>clearTimeout(d)},[s,e]),(0,h.jsx)("div",{className:`${t}${s?" is-leaving":""}`,"aria-hidden":s||void 0,children:s?n.node:r},n.key)}o(ue,"w");u(ue,"Swap");var yt=u(({pageKey:e,children:t})=>(0,h.jsx)(ue,{swapKey:e,className:"sekyro-page",children:t}),"PageSwap"),Xe={info:"info",warning:"warning",danger:"warning"};function Je({tone:e,children:t}){return(0,g.jsxs)(x,{tone:e,children:[(0,g.jsx)("span",{className:"sekyro-notice__icon","aria-hidden":"true",children:(0,g.jsx)(ce,{name:Xe[e]})}),(0,g.jsx)("div",{className:"sekyro-notice__body",children:t})]})}o(Je,"l1");u(Je,"StepNotice");function et(e,t,r){return r?e.t("common.noAttemptsLeft"):N(e.strings,e.locale,t)}o(et,"a1");u(et,"attemptsLine");export{b as a,y as b,ct as c,J as d,ut as e,lt as f,Ae as g,Se as h,ee as i,Ee as j,re as k,Ne as l,je as m,xe as n,ne as o,Pe as p,qe as q,Oe as r,N as s,j as t,x as u,ce as v,De as w,Ue as x,Ze as y,ft as z,$e as A,Ye as B,vt as C,_t as D,Fe as E,Be as F,We as G,Ge as H,Ke as I,ue as J,yt as K,Je as L,et as M};
2
- /*! Bundled license information:
3
-
4
- react/cjs/react.production.js:
5
- (**
6
- * @license React
7
- * react.production.js
8
- *
9
- * Copyright (c) Meta Platforms, Inc. and affiliates.
10
- *
11
- * This source code is licensed under the MIT license found in the
12
- * LICENSE file in the root directory of this source tree.
13
- *)
14
-
15
- react/cjs/react-jsx-runtime.production.js:
16
- (**
17
- * @license React
18
- * react-jsx-runtime.production.js
19
- *
20
- * Copyright (c) Meta Platforms, Inc. and affiliates.
21
- *
22
- * This source code is licensed under the MIT license found in the
23
- * LICENSE file in the root directory of this source tree.
24
- *)
25
- */
@@ -1,3 +0,0 @@
1
- import{A as nt,B as rt,C as it,H as me,I as ne,J as at,K as ot,L as st,a as F,b as $e,c as He,f as ze,g as Ze,h as We,i as Ye,j as pe,k as Je,m as j,o as O,p as B,q as H,r as te,s as L,t as fe,v as Qe,w as Xe,x as et,y as tt}from"./chunk-75QP4SUF.js";import{g as ut}from"./chunk-SX373VNU.js";import{b as Ve}from"./chunk-VHJIEZ5D.js";import{b as Ke,c as de,e as lt}from"./chunk-6MYG4HWP.js";import{a as t}from"./chunk-4FHWXBOB.js";function Ut(n){let i=n.now??(()=>Date.now()),f=n.setTimer??((A,c)=>setTimeout(A,c)),d=n.clearTimer??(A=>clearTimeout(A)),b=null,k=!1,m=!1,M=!1,G=0,N=null,C=t(()=>{N!==null&&d(N),N=null},"k"),T=t(()=>{let A=n.armRamp;A===void 0||k||m||M||i()<G||(k=!0,A().catch(()=>{}).then(c=>{if(k=!1,!M){if(c===void 0){G=i()+2e3;return}if(c.challenge===void 0){m=!0;return}b={challenge:c.challenge,expiresAt:c.expiresAt},C(),N=f(()=>{N=null,!M&&b!==null&&n.waiting()&&T()},Math.max(1e3,c.expiresAt-i()-2e4))}}))},"x");return{arm(){b!==null&&b.expiresAt-i()>2e4||T()},take(){let A=b;return b=null,C(),A!==null&&A.expiresAt-i()>=12e3?A.challenge:void 0},stop(){M=!0,b=null,C()}}}t(Ut,"Ct");function Ft(n){return n.idNumberBound??n.nniBound}t(Ft,"le");function ct(n){return n===void 0?void 0:n.idNumberFromDocument??n.nniFromDocument}t(ct,"ee");var pt="https://api.sekyro.ai",jt=5e3,Bt=24e4,ft=3e4,Gt=15e4,mt=9e4;function dt(n,i){return n==="portrait_icao"||n==="poa"||n==="doc_ocr"&&i.source==="upload"?mt:ft}t(dt,"wt");var qt=25*6e4,Kt=20*6e4,Vt=3,$t=3e3,Ht=1500,zt=10;function he(n){return n instanceof Error&&n.name==="ChallengeError"&&n.code||"challenge_failed"}t(he,"Ce");var ye=new Set(["aborted","embedder_opaque","site_key_rejected","clock_wrong"]);function Zt(n){return new Promise(i=>setTimeout(i,n))}t(Zt,"Sn");function Wt(){let n=globalThis.crypto;if(n!==void 0&&typeof n.randomUUID=="function")return n.randomUUID();let i=new Uint8Array(16);if(n!==void 0&&typeof n.getRandomValues=="function")n.getRandomValues(i);else for(let d=0;d<16;d+=1)i[d]=Math.floor(Math.random()*256);i[6]=(i[6]??0)&15|64,i[8]=(i[8]??0)&63|128;let f=[...i].map(d=>d.toString(16).padStart(2,"0")).join("");return`${f.slice(0,8)}-${f.slice(8,12)}-${f.slice(12,16)}-${f.slice(16,20)}-${f.slice(20)}`}t(Wt,"_n");function Yt(n){return Jt(n,{})}t(Yt,"Ho");function Jt(n,i){let f=n.apiOrigin??pt,d=n.autoRetry??!0,b=n.rearm??"auto",k=i.client??new He({apiOrigin:f,sessionToken:n.clientToken,fetch:n.fetch,locale:n.locale}),m=new Proxy(k,{get(e,r){if(r==="submitCheck")return Mt;let a=Reflect.get(e,r,e);return typeof a=="function"?a.bind(e):a}}),M=i.sleep??Zt,G=i.uuid??Wt,N=i.getChallengeToken??((e,r)=>import("./challenge-frame-3JHCNDHE-IYU6HGYD.js").then(a=>a.executeChallenge({frameUrl:e.url,siteKey:e.siteKey,action:"liveness",subject:r.subject,signal:r.signal}))),C=lt(),T=null,A=null,c=!1,be=new AbortController,h=null,z=null,Z=null,W=t(()=>Z??at(h),"oe"),Y=t(()=>ot(ne(h),W()),"re"),x=t(e=>{h=e,!O(e)&&(Pe(Kt)||At(e))&&ue(e),C.emit("view",e),T?.onView(e)},"T"),w=t(()=>h!==null?Promise.resolve(h):(z??(z=m.getSession().then(e=>(x(e),e)).finally(()=>{z=null})),z),"M"),I=t(async()=>{let e=await m.getSession();return x(e),e},"v"),re=t(async(e,r)=>{e.plan!==void 0?x(e):await I()},"fe"),J=null,ke=t(async e=>{let r=await w();if(e||!r.consentRecorded){let a=await m.recordConsent(n.locale);a.plan!==void 0?x(a):h!==null&&x({...h,consentRecorded:!0})}ee()&&ue(r)},"Ee"),R=t(e=>e?.force===!0?ke(!0):(J??(J=ke(!1).finally(()=>{J=null})),J),"F"),ie={client:m,ensureConsent:t(e=>R(e),"ensureConsent"),sleep:M,uuid:G,...i.random!==void 0?{random:i.random}:{},onBusy:t(e=>{c||C.emit("busy",e)},"onBusy")},we=!1,Ae=null,ae=t(e=>{if(e.status==="verified"||e.status==="not_verified"||e.status==="review"){if(we)return;we=!0}Ae=JSON.stringify(e),C.emit("result",e)},"ye"),_t=t(e=>{Ae!==JSON.stringify(e)&&ae(e)},"Kt"),Ce=t(async e=>{let r=h;e&&(r=await I().catch(()=>h));let a=r===null?null:j(r);return a!==null&&!c&&C.emit("method",a),a!==null},"ve"),oe=null,Me=!1,Se=!1,Te=t(()=>nt(ie,(e,r)=>e.submitCheck("population_registry",{},{idempotencyKey:r})),"He"),xe=t(e=>Ft(e)===!0||ct(H(e,"population_registry"))===!0,"Le"),bt=t(async()=>{try{let e=await w();if(O(e)||j(e)!==null||B(e)?.checkType!=="population_registry")return;if(!xe(e)&&ct(H(e,"population_registry"))===void 0&&(e=await I()),!xe(e)){Se=!0;return}await R(),await re(await Te(),"population_registry");let r=h===null?void 0:H(h,"population_registry");if(r?.state==="input_required"&&r.reason==="registry_unavailable"&&Je(r)>0){if(await M(jt),c)return;await re(await Te(),"population_registry")}}catch(e){if(e instanceof F&&(e.code==="check_not_active"||e.code==="step_not_on_path")){await I().catch(()=>{});return}Me=!0;return}h!==null&&O(h)&&ae(fe(h,{autoRetry:d}))},"jt"),Ie=t(()=>(oe??(oe=bt()),oe),"De"),S=i.now??Date.now,U=null,q,kt=0,se=t((e,r)=>`${e.url}
2
- ${e.siteKey}
3
- ${r}`,"ge"),Re=0,Q,le=t((e,r)=>{Re+=1;let a=S(),o=N(e,{signal:be.signal,subject:r}),s={key:se(e,r),at:a,token:o};return o.then(()=>{s.issuedAt=S()},p=>{let u=he(p);if(s.failed=u,c||u==="aborted")return;let{detail:y,readyMs:l}=p;K({check:"attestation",kind:"unavailable",engineKind:u,attempt:kt++,challengeMs:S()-a,readyMs:l,detail:y,inApp:Ve()})}),o.catch(()=>{}),s},"Se"),Ee=t((e,r)=>e!==null&&e.key===r&&(e.issuedAt===void 0||S()-e.issuedAt<Bt),"Be"),ue=t((e,r={})=>{let a=e?.challenge??null;if(e===null||a===null||c)return;let o=te(e.sessionId),s=U;(r.replaceFailed===!0&&s?.failed!==void 0&&!ye.has(s.failed)||!Ee(s,se(a,o)))&&(U=le(a,o))},"_e"),X=0,Oe=t(e=>{let r=X>0;X=Math.max(0,X+e);let a=X>0;r!==a&&!c&&C.emit("browserCheck",{pending:a})},"qe"),wt=t(async e=>{Oe(1);let r;try{let a=await Promise.race([e.token.then(o=>({token:o}),o=>({error:he(o)})),new Promise(o=>{r=setTimeout(()=>o(void 0),Gt)})]);return c?{error:"aborted"}:a}finally{clearTimeout(r),Oe(-1)}},"Wt"),Ne=t(async(e,r,a)=>{let o=se(e,r),s=U;U=null;let p=Ee(s,o)&&(s.failed===void 0||ye.has(s.failed))?s:le(e,r),u=p===s?0:1,y,l=new Promise(v=>{y=setTimeout(()=>v("late"),a)});try{for(;;){let v=await Promise.race([p.token.then(g=>({token:g}),g=>({error:he(g)})),l]);if(v==="late"){let g=c?void 0:await wt(p);return g===void 0?(!c&&U===null&&(U=p),{error:"timeout"}):("token"in g&&(Q=Math.max(0,Math.round((p.issuedAt??S())-p.at))),g)}if("token"in v)return Q=Math.max(0,Math.round((p.issuedAt??S())-p.at)),v;if(c||ye.has(v.error)||u>=Vt||u>0&&await Promise.race([M($t*u),l])==="late")return v;if(c)return{error:"aborted"};u+=1,p=le(e,r)}}finally{clearTimeout(y)}},"Ge"),P=null,At=t(e=>pe(e).some(r=>(r.checkType==="phone_otp"||r.checkType==="email_otp")&&r.state!=="passed"&&r.state!=="skipped"),"$t"),Pe=t(e=>P===null||S()-P>=e,"Ke"),ee=t(()=>Pe(qt),"ae"),Ct=t(e=>{let r=e.attestation;return typeof r?.turnstileToken=="string"&&r.turnstileToken.length>0},"Qt"),Le=new Map,De=t(async e=>{let r=await w(),a=r.challenge;if(a==null||r.simulation!==void 0)return;let o=await Ne(a,te(r.sessionId),e);if(!("token"in o))throw tt(o.error);return o.token},"Ye"),Mt=t(async(e,r,a={})=>{let o=r;if("attestation"in o)try{let l=await k.submitCheck(e,r,a);return Ct(o)&&(P=S()),l}catch(l){throw l instanceof F&&l.code==="attestation_invalid"&&(P=null),l}let s=(e==="phone_otp"||e==="email_otp")&&o.action!=="verify",p=a.idempotencyKey,u=p!==void 0?Le.get(p):void 0;u===void 0&&(s||ee())&&(u=await De(dt(e,o)),p!==void 0&&u!==void 0&&Le.set(p,u));let y=t((l,v)=>l!==void 0?{...v,browserCheckToken:l}:v,"b");try{let l=await k.submitCheck(e,r,y(u,a));return u!==void 0&&(P=S()),l}catch(l){if(!(l instanceof F)||l.code!=="attestation_invalid"||(P=null,u!==void 0))throw l;let v=await De(dt(e,o)),g=p!==void 0?{...a,idempotencyKey:G()}:a,E=await k.submitCheck(e,r,y(v,g));return v!==void 0&&(P=S()),E}},"Zt"),Ue=t(async(e={})=>{if(q=void 0,e.always!==!0&&!ee())return{};let r=await w(),a=r.challenge;if(a==null)return{};let o=e.always===!0?mt:ft,s=await Ne(a,te(r.sessionId),o);if("token"in s)return{channel:"hosted_web",turnstileToken:s.token};if(q=s.error,r.simulation!==void 0)return{channel:"hosted_web"};throw new et(s.error)},"We"),St=t(()=>q,"Xt"),Tt=t(()=>({checks:Math.min(50,Re),...Q!==void 0?{challengeMs:Math.min(6e5,Q)}:{}}),"Jt"),K=t(e=>{if(c)return;let r=m.reportCaptureIssue;if(r===void 0)return;let a=e.formFactor;try{a??(a=Ke())}catch{}try{Promise.resolve(r.call(m,{...e,...a!==void 0?{formFactor:a}:{}})).catch(()=>{})}catch{}},"Y"),_=null,V=null,Fe=new WeakMap,je=Promise.resolve(),$=0,xt=t(async()=>{let e=await w();for(let r=0;r<zt&&!c&&!O(e)&&B(e)===void 0&&pe(e).some(a=>a.state==="processing")&&(await M(Ht),!c);r+=1)e=await I();return e},"zt"),It=t(async(e,r,a)=>{let{capture:o}=e,s=t(()=>c,"f"),p=t(()=>e.alive&&e.attempt===a,"_"),u=t(l=>{p()&&o.setFlowState(l)},"g"),y=t(l=>{if(!s()&&(l.status==="unavailable"&&l.reasonCode!==void 0&&!ze(l.reasonCode)&&K({check:"liveness",kind:"unavailable",phase:"upload",engineKind:l.reasonCode,attempt:Math.max(0,e.issues.value)}),ae(l),!!p())){if(l.status==="retry"&&b==="auto"){o.handle.retry();return}o.setFlowState("done")}},"b");if(r.degraded==="NO_RECORDER"){let l=h?.sessionId??(await w().catch(()=>null))?.sessionId??"";y(L(l,"no_recorder"));return}u("uploading");try{if(await Ie(),s())return;let l=await w(),v;if(!O(l)&&j(l)!==null){await Ce(!1),y(L(l.sessionId,"method_required"));return}if(!O(l)){if(B(l)?.checkType==="population_registry"){y(L(l.sessionId,Se?"nni_unbound":Me?"network":"registry_unavailable"));return}if(await R(),s())return;v=h??l;let g=await rt({...ie,artifacts:r,getAttestation:Ue,attestationError:St,attestationFacts:Tt,clipKeys:{get:t(()=>Fe.get(r)??null,"get"),set:t(E=>{Fe.set(r,E)},"set")},getView:t(()=>h??l,"getView"),refreshView:I,applySubmit:re,onPhase:u,isCancelled:s,onKeyframePromoted:t(E=>{A=E},"onKeyframePromoted")});if(s())return;if(g.kind==="unavailable"){g.reason==="attestation"&&(V={bound:e,artifacts:r});let E=L(l.sessionId,g.reason),qe=g.reason==="attestation"?q:void 0;y(qe!==void 0?{...E,attestationError:qe}:E);return}if(g.kind==="resync"&&await I(),h!==null&&j(h)!==null){await Ce(!1),y(L(l.sessionId,"method_required"));return}l=await xt()}y(fe(l,{autoRetry:d,previous:v}))}catch{if(s())return;y(L(h?.sessionId??"","network"))}},"en"),Be=t((e,r)=>{let a=e.attempt;$>0&&e.alive&&e.capture.setFlowState("uploading"),$+=1,je=je.then(()=>It(e,r,a)).finally(()=>{$-=1,$===0&&T?.onChainIdle()}).catch(()=>{})},"Ze"),Ge=t(e=>{_?.capture.handle.destroy(),_!==null&&(_.alive=!1,_.ramp.stop());let r=Ut({armRamp:typeof m.armRamp=="function"?()=>m.armRamp():void 0,waiting:t(()=>s.alive&&Y()==="self"&&(o.handle.state==="starting"||o.handle.state==="gating"),"waiting")}),a=Promise.resolve(),o=ut(e,T?.captureInternals?.(e)??i.capture,()=>h?.capture?.liveness?.keyframe?.rank===!0,Y,()=>r.take()??h?.capture?.liveness?.screenRamp,{session:t(()=>ne(h),"session"),onModeChange:t(u=>{Z=u},"onModeChange")}),s={capture:o,alive:!0,ramp:r,attempt:0,issues:We()};_=s,o.handle.on("error",u=>{K(Ze("liveness",u,s.issues.value))}),o.handle.on("state",u=>{if(s.issues.note(u),u==="starting"){s.attempt+=1,V?.bound===s&&(V=null),ee()&&ue(h,{replaceFailed:!0});let y=h===null?void 0:B(h)?.checkType;a=y==="liveness"||y==="face_match"?R().catch(()=>{}):Promise.resolve()}(u==="starting"||u==="gating")&&Y()==="self"&&a.then(()=>{s.alive&&r.arm()})}),o.handle.on("captured",u=>{Promise.resolve().then(()=>Be(s,u))});let p=o.handle;return{get state(){return p.state},get captureMode(){return p.captureMode},get facingMode(){return p.facingMode},on:t((u,y)=>p.on(u,y),"on"),start:t(async u=>{if(h===null&&await w().catch(()=>{}),!!s.alive)return p.start(u)},"start"),retry:t(()=>{let u=V;if(u!==null&&u.bound===s&&s.alive){V=null,Be(s,u.artifacts);return}p.retry()},"retry"),switchCamera:t(()=>p.switchCamera(),"switchCamera"),canSwitchCaptureMode:t(()=>p.canSwitchCaptureMode(),"canSwitchCaptureMode"),setCaptureMode:t(u=>p.setCaptureMode(u),"setCaptureMode"),destroy:t(()=>{s.alive=!1,r.stop(),_===s&&(_=null),p.destroy()},"destroy")}},"Xe"),Rt=t(async()=>{if(c)return null;try{let e=await w();return c?null:j(e)}catch{return null}},"tn"),Et=t(async()=>{if(c)return"self";try{let e=await w();if(c)return"self";let r=ne(e);return r==="choice"?W()??r:r}catch{return"self"}},"nn"),Ot=t(async()=>{if(c)return!1;try{let e=await w();return c||O(e)||de()?!1:me(e,B(e))==="phone"||me(e,H(e,"liveness"))==="phone"}catch{return!1}},"on"),Nt=t(async()=>{if(c)return!1;try{let e=await w();return!c&&e.returning===!0}catch{return!1}},"rn"),Pt=t(async e=>{let r=(await w()).plan?.choice,a=r?.options.find(s=>Ye[s.service]===e);if(!a)throw new RangeError(`method ${String(e)} is not offered`);let o=await m.choose(r.nodeId,a.id);c||x(o)},"sn"),ce=null,Lt=t(()=>(ce??(ce=import("./plan-runner-XGT4VKVF-NDQH73OS.js").then(e=>{let r=e.createPlanRunner({runtime:ie,currentView:t(()=>h,"currentView"),cameraMode:Y,captureModeSwitch:{pick:W,choose:t(a=>{Z=a},"choose")},ensureView:w,refreshView:I,ensureConsent:t(()=>R(),"ensureConsent"),liveness:Ge,stopLiveness:t(()=>{_!==null&&(_.alive=!1,_.ramp.stop(),_.capture.handle.destroy(),_=null)},"stopLiveness"),chainBusy:t(()=>$>0,"chainBusy"),destroyed:t(()=>c,"destroyed"),sleep:M,isMobile:de,now:i.now??Date.now,keptFaceKey:t(()=>A,"keptFaceKey"),setView:x,baseCapture:i.capture,emitStep:t(a=>{c||C.emit("step",a)},"emitStep"),emitResult:_t,reportCaptureIssue:K,documentInternals:i.document,documentFacts:i.documentFacts,portraitInternals:i.portrait,livePhotoInternals:i.livePhoto,uploadInternals:i.upload,pageCameraInternals:i.pageCamera});return T=r,r})),ce),"an");return{consent:t(()=>R(),"consent"),startRegistry:Ie,methodChoice:Rt,selectMethod:Pt,reportCameraUnavailable:t(async e=>{await R();let r=m.reportCameraUnavailable;if(r===void 0)throw new TypeError("this client cannot report a missing camera");let a=await r.call(m,e).catch(o=>{if(o instanceof F&&o.code==="check_out_of_order")return m.getSession();throw o});c||x(a)},"reportCameraUnavailable"),reportCaptureIssue:K,testerGate:t(async e=>{let r=m.testerGate;if(r===void 0)throw new TypeError("this client cannot run the tester gate");let a=e.clip,o=$e(e.clipMime??"");if(a===void 0||!Xe.includes(o))throw new TypeError("the capture has no clip");await R();let s=await Qe(m,"clip",o,a.size,{engine:e.engine,durationMs:e.clipMs});await m.uploadToSpaces(s.uploadUrl,a,o);let{key:p}=await m.completeMedia(s.key),u=await Ue({always:!0}),y=await r.call(m,{clipKey:p,attestation:u,captureChannel:e.captureChannel,capture:{...it(e),attestationError:q}}),{bound:l,missReason:v,...g}=y;return c||(g.plan!==void 0?x(g):await I()),l===!0||v===void 0?{bound:l===!0}:{bound:!1,missReason:v}},"testerGate"),mobileRequired:Ot,captureMode:Et,chooseCaptureMode:t(e=>{Z=e},"chooseCaptureMode"),get captureChoice(){return W()},returning:Nt,liveness:Ge,run:t(async()=>{if(c)throw new Error("verification destroyed");return(await Lt()).run()},"run"),currentStep:t(()=>T?.current()??null,"currentStep"),voiceClips:t(async()=>{if(c)return null;try{let e=await w();return c?null:e.voice??null}catch{return null}},"voiceClips"),on:t((e,r)=>C.on(e,r),"on"),destroy:t(()=>{c=!0,be.abort(),T?.destroy(),_!==null&&(_.alive=!1,_.capture.handle.destroy(),_=null),C.clear()},"destroy")}}t(Jt,"kn");var ht=["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"],yt=["carte_identite","passport","residence_permit","drivers_license"],Qt=["carte_identite","passport","residence_permit"];function ge(n,i){let f=n.byIssuer?.[i]??n.default;return yt.filter(d=>f==="*"?Qt.includes(d):f.includes(d))}t(ge,"wn");function vt(n,i=ht){return[...new Set([...i,...Object.keys(n.byIssuer??{})])].filter(f=>ge(n,f).length>0).sort()}t(vt,"Bo");var D={fullNameMin:2,fullName:200,email:254,occupation:120,shortText:120,longText:1e3,addressLine:120,addressLines:4,city:80,postcode:16,number:1e12,dateMin:"1900-01-01",dateMax:"2100-12-31",remoteOptions:30,remoteFilterAbove:12,remoteOther:120,remoteValue:128};function Xt(n,i){let f=ve(i);return f===""?[...n]:n.filter(d=>ve([d.title,d.label,d.description].filter(Boolean).join(" ")).includes(f))}t(Xt,"Ko");function ve(n){return n.normalize("NFKD").replace(/[\u0300-\u036f\u064b-\u065f\u0670\u0640]/g,"").toLowerCase().replace(/\s+/g," ").trim()}t(ve,"Mt");var xn={remote_choice:D.remoteOther,full_name:D.fullName,occupation:D.occupation,email:D.email,short_text:D.shortText,long_text:D.longText},gt=Object.freeze({nni_invalid:"id_number_invalid",nni_not_found:"registry_record_not_found",nni_recheck:"id_number_recheck",document_nni_mismatch:"document_id_number_mismatch",nni_locked:"id_number_locked",nni_unbound:"id_number_unbound",missing_nni:"missing_id_number",registry_needs_nni_source:"registry_needs_id_number_source"}),In=new Map(Object.entries(gt)),Rn=new Map(Object.entries(gt).map(([n,i])=>[i,n]));function en(n,i){let f=n.options.filter(m=>m.id!==n.current);if(i===void 0)return{switchTo:f,methods:[]};let d=t(m=>m.countries!==void 0&&m.countries.length>0,"i");if(i===null||n.selectedByPerson)return{switchTo:f.filter(m=>!d(m)),methods:[]};let b=i.toUpperCase(),k=t(m=>!d(m)||m.countries.includes(b),"u");return{switchTo:f.filter(k),methods:f.filter(m=>d(m)&&k(m))}}t(en,"rr");function tn(n,i,f){let d=n.names?.[i.toUpperCase()],b=d?.[f]??d?.en;if(b!==void 0&&b!=="")return b;let k=n.nationalEid?.providerName;return k!==void 0&&k!==""?k:void 0}t(tn,"ir");function nn(n){return n===void 0||n.selectedByPerson?[]:[...new Set(n.options.filter(i=>i.id!==n.current).flatMap(i=>i.countries??[]).map(i=>i.toUpperCase()))]}t(nn,"sr");var En=10*1024*1024;function vr(n){if(n==="permission")return"denied";if(n==="notfound"||n==="insecure"||n==="unsupported")return"no_camera"}t(vr,"ye");var rn=/^[A-Z0-9][A-Z0-9 -]{0,39}$/,an=Object.freeze({normalize:t(n=>n.trim().toUpperCase().replace(/\s+/g," "),"normalize"),check:t(n=>rn.test(n),"check"),registrySources:Object.freeze([]),describe:"number must be 1 to 40 letters, digits, spaces or hyphens"}),on=/^[A-Z0-9]{4,20}$/,_e=t(n=>n.trim().toUpperCase().replace(/[\s-]+/g,""),"m"),sn=Object.freeze({normalize:_e,check:t(n=>on.test(_e(n)),"check"),registrySources:Object.freeze([]),describe:"number must be 4 to 20 letters or digits"});function ln(n){return typeof n=="string"&&/^\d{10}$/.test(n)&&Number(n)%97===1}t(ln,"ge");var un={trim:t(n=>n.trim(),"trim"),upper_single_space:t(n=>n.trim().toUpperCase().replace(/\s+/g," "),"upper_single_space"),upper_no_space_or_hyphen:_e},cn={mr_nni_mod97:t(n=>ln(n),"mr_nni_mod97")};function dn(n){let i=new RegExp(n.pattern,"u"),f=n.check===null?void 0:cn[n.check];return Object.freeze({normalize:un[n.normalize],check:t(d=>i.test(d.trim())&&(f===void 0||f(d)),"check"),registrySources:Object.freeze([...n.registrySources]),describe:n.describe})}t(dn,"Ee");var pn=Object.freeze(Object.fromEntries(Object.entries(st).map(([n,i])=>[n,dn(i)])));function fn(n,i){return pn[`${n.toUpperCase()}:${i}`]??(i==="drivers_license"?sn:an)}t(fn,"C");var gr=Object.freeze({JPN:"JP",MRT:"MR"});function _r(n){return fn("MR","national_id").check(n)}t(_r,"be");function mn(n){let i="";for(let f of n){let d=f.codePointAt(0)??0;d>=1632&&d<=1641?i+=String(d-1632):d>=1776&&d<=1785?i+=String(d-1776):f!==" "&&f!=="-"&&f!==" "&&(i+=f)}return i}t(mn,"H");function br(n){return mn(n)}t(br,"Le");var kr=ge,wr=vt;var hn=t(()=>import("./create-document-capture-KATGPNCR-KPF7ZYWX.js"),"E");function yn(){hn().then(n=>n.warmDocumentCapture()).catch(()=>{})}t(yn,"O");function Ar(){yn()}t(Ar,"at");var vn=t(()=>import("./create-portrait-capture-5VGYZUOK-KTCFCHTN.js"),"D");function gn(){vn().then(n=>n.warmPortraitCapture()).catch(()=>{})}t(gn,"L");function Cr(){gn()}t(Cr,"lt");export{Yt as a,D as b,Xt as c,en as d,tn as e,nn as f,vr as g,_r as h,br as i,kr as j,wr as k,Ar as l,Cr as m};
@@ -1 +0,0 @@
1
- "use client";import{a as Se,b as M,c as Ie}from"./chunk-YVQ6LFN4.js";import{a as W,e as j,f as Ae,h as Q,i as R,j as be,k as Ce,l as we,m as K}from"./chunk-HPTAAPIB.js";import{a as ve}from"./chunk-UJ2FDGWQ.js";import{a as Z}from"./chunk-EAHT3Y3Z.js";import"./chunk-MXKAKHUA.js";import"./chunk-H4EO527J.js";import{d as ye}from"./chunk-XXYPLLFI.js";import"./chunk-TD2XP34G.js";import{a as _}from"./chunk-YFZ54VRE.js";import{L as z,a as fe,b as je,c as N,t as B,v as P,w as ge,y as q,z as ke}from"./chunk-QVU5SNFG.js";import{a as Y}from"./chunk-75QP4SUF.js";import"./chunk-SX373VNU.js";import"./chunk-VHJIEZ5D.js";import"./chunk-P7K7ELYZ.js";import{a as m}from"./chunk-5QL6W6FW.js";import{c as G,f as he}from"./chunk-6MYG4HWP.js";import"./chunk-JS2IXPNL.js";import"./chunk-SLLJX5QK.js";import{a as y,c as U}from"./chunk-4FHWXBOB.js";var k=U(fe(),1),qe=U(fe(),1),o=U(je(),1);var Ze={"consent.human.terms.intro":"تؤكد Sekyro AI أن شخصًا حقيقيًا يُجري هذه الخطوة، نيابةً عن الجهة التي طلبتها.","consent.human.terms.data":"تلتقط Sekyro AI تسجيلًا قصيرًا لوجهك.","consent.human.terms.processing":"يُفحص هذا التسجيل للتأكد من أنك شخص حقيقي وحاضر، وقد يُقارَن بالوجوه التي سبق التحقق منها لدى هذه الجهة.","consent.human.terms.sharing":"تُبلَّغ الجهة التي طلبت هذا التحقق بنتيجته.","consent.human.terms.retention":"تُخزَّن بياناتك مشفّرة ولا يُحتفظ بها إلا للمدة التي يقتضيها القانون وإعدادات الجهة. لممارسة حقوقك المتعلقة بحماية البيانات، تواصل مع الجهة التي طلبت هذا التحقق.","capture.noCamera.title":"تتطلب هذه الخطوة كاميرا","capture.noCamera.body":"اسمح بالوصول إلى الكاميرا وحاول مرة أخرى، أو تابع على هاتف مزوّد بكاميرا.","capture.noCamera.continue":"المتابعة بدون كاميرا","capture.noCamera.deniedTitle":"اسمح بالوصول إلى الكاميرا","capture.noCamera.deniedBody":"حظر متصفحك الوصول إلى الكاميرا في هذه الصفحة. اسمح به من إعدادات الموقع ثم أعد المحاولة.","capture.noCamera.stepsChrome":"في Chrome، اضغط على الرمز الموجود بجانب العنوان، ثم الأذونات، وفعّل الكاميرا.","capture.noCamera.stepsSamsung":"في Samsung Internet، افتح القائمة، ثم الإعدادات، المواقع والتنزيلات، أذونات المواقع، الكاميرا، واسمح لهذا الموقع.","capture.noCamera.stepsSafari":"في Safari، اضغط على زر aA في شريط العنوان، ثم إعدادات موقع الويب، واضبط الكاميرا على السماح.","capture.noCamera.stepsDesktop":"انقر على الرمز الموجود بجانب العنوان واسمح بالكاميرا لهذا الموقع.","capture.noCamera.stepsSystem":"ما زالت محظورة؟ تحقق في إعدادات هاتفك من أن متصفحك مسموح له باستخدام الكاميرا.","capture.noCamera.stillBlocked":"ما زالت الكاميرا محظورة. اتبع الخطوات أعلاه ثم أعد المحاولة.","capture.noCamera.inAppTitle":"افتح هذه الصفحة في متصفحك","capture.noCamera.inAppBody":"لا يمكن لمتصفح هذا التطبيق استخدام الكاميرا. افتح الصفحة في Chrome أو Safari للمتابعة.","choice.title":"كيف تريد المتابعة؟","choice.description":"اختر خيارًا واحدًا.","choice.switch":"استخدم خيارًا آخر","contact.title":"كيف تريد استلام الرمز؟","contact.description":"اختر خيارًا واحدًا.","contact.phone":"عبر الهاتف (واتساب أو رسالة نصية)","contact.email":"عبر البريد الإلكتروني","contact.switch":"استخدم خيارًا آخر","summary.title":"تحقق من بياناتك","summary.description":"تأكد من أن هذه بياناتك قبل الصورة الحية.","summary.fullName":"الاسم الكامل","summary.birthDate":"تاريخ الميلاد","summary.nationality":"الجنسية","summary.documentType":"الوثيقة","summary.documentNumber":"رقم الوثيقة","summary.nni":"الرقم الوطني للتعريف الموريتاني (NNI)","summary.id_number":"رقم الهوية","summary.expiryDate":"تاريخ الانتهاء","summary.portraitAlt":"الصورة المسجلة","summary.source.registry":"من سجل الحالة المدنية","summary.source.document":"مقروءة من وثيقتك","summary.source.chip":"مقروءة من شريحة وثيقتك","summary.name":"الاسم","summary.birthYear":"سنة الميلاد","summary.confirm":"تأكيد ومتابعة","summary.retakeDocument":"مسح وثيقتي مرة أخرى","summary.retakeNationalNumber":"إدخال رقمي مرة أخرى","summary.noRetake":"لم يعد بإمكانك إعادة المحاولة. تواصل مع {org} إذا كانت هذه البيانات غير صحيحة","capture.tipsIcao.title":"لصورة الهوية:","capture.tipsIcao.glasses":"انزع نظارتك","capture.tipsIcao.headwear":"انزع القبعة. يُقبل غطاء الرأس الديني إذا كان الوجه ظاهرًا بالكامل","capture.tipsIcao.expression":"حافظ على تعبير محايد وفمك مغلق","capture.tipsIcao.faceCamera":"انظر مباشرة إلى الكاميرا وعيناك مفتوحتان","capture.tipsIcao.background":"قف أمام خلفية سادة فاتحة اللون","capture.tipsIcao.lighting":"استخدم إضاءة متساوية على وجهك: دون ظلال","capture.tipsIcao.hair":"أبعد شعرك عن وجهك وعينيك","capture.tipsIcao.summary":"قف أمام جدار سادة فاتح اللون مع إضاءة متساوية على وجهك. انزع نظارتك وأي قبعة. أبعد شعرك عن وجهك، وانظر مباشرة إلى الكاميرا وعيناك مفتوحتان، وحافظ على تعبير محايد وفمك مغلق، وابقَ ثابتًا.","portrait.retakeOnly":"نجح التحقق الحي. الصورة فقط تحتاج إلى محاولة أخرى","portrait.keepCamera":"ابقَ أمام الكاميرا","handoff.description":"امسح الرمز بهاتفك للمتابعة","handoff.qrAlt":"رمز QR يفتح عملية التحقق هذه على هاتفك","handoff.copyLink":"نسخ الرابط","handoff.copyFailed":"تعذّر نسخ الرابط. انسخ عنوان هذه الصفحة من متصفحك بدلًا من ذلك","handoff.waiting":"ستنتقل هذه الصفحة تلقائيًا بعد أن تُكمل الخطوة على هاتفك","inApp.title":"افتح الصفحة في متصفحك","inApp.description":"لا تعمل الكاميرا جيدًا داخل هذا التطبيق. افتح الرابط في Chrome أو Safari للمتابعة.","inApp.copyLink":"نسخ الرابط","inApp.copied":"تم نسخ الرابط. الصقه في متصفحك","inApp.copyFailed":"تعذّر نسخ الرابط. انسخ عنوان هذه الصفحة بدلًا من ذلك","inApp.continueAnyway":"المتابعة هنا على أي حال","needsApp.capture.title":"تابع في التطبيق","needsApp.capture.description":"تلتقط {org} صور هذا التحقق في تطبيق للهاتف. افتحه في تطبيق {org}.","needsApp.capture.descriptionSekyro":"تلتقط {org} صور هذا التحقق في تطبيق للهاتف. افتحه في تطبيق {org} أو في تطبيق Sekyro AI.","needsApp.capture.descriptionNoOrg":"يلتقط هذا التحقق الصور في تطبيق للهاتف. افتحه في التطبيق الذي أُعطي لك.","needsApp.capture.descriptionNoOrgSekyro":"يلتقط هذا التحقق الصور في تطبيق للهاتف. افتحه في تطبيق Sekyro AI.","needsApp.capture.openSekyro":"افتح في تطبيق Sekyro AI","needsApp.capture.getApp":"احصل على تطبيق Sekyro AI","needsApp.capture.appStore":"App Store","needsApp.capture.googlePlay":"Google Play","needsApp.capture.scan":"امسح الرمز بهاتفك لفتح هذا التحقق في التطبيق.","needsApp.capture.qrAlt":"رمز QR يفتح هذا التحقق في التطبيق","needsApp.capture.waiting":"ستنتقل هذه الصفحة تلقائيًا بعد أن تُكمل الخطوة في التطبيق","inApp.openBrowser":"افتح في المتصفح","testerGate.action":"إجراء فحوصات حقيقية بصفتي مختبِرًا","testerGate.title":"إجراء فحوصات حقيقية بصفتي مختبِرًا","testerGate.body":"انظر إلى الكاميرا. إذا تطابق وجهك مع أحد المختبِرين المسجَّلين لدى المؤسسة، فستُجري هذه الجلسة فحوصات حقيقية. وإلا فلن يُحتفظ بأي شيء وستتابع باستخدام بيانات الاختبار.","testerGate.start":"ابدأ","testerGate.checking":"جارٍ التحقق من وجهك","testerGate.boundTitle":"الفحوصات الحقيقية مفعّلة","testerGate.boundBody":"تم التعرّف عليك كمختبِر مسجَّل. ستُجري الخطوات التالية فحوصات حقيقية.","testerGate.missTitle":"لا يوجد مختبِر مسجَّل مطابق","testerGate.missBody":"لم يُحتفظ بأي شيء. يمكنك إعادة المحاولة أو المتابعة باستخدام بيانات الاختبار.","testerGate.retakeTitle":"تعذّر علينا التحقق من وجهك بوضوح","testerGate.retakeBody":"لم يُحتفظ بأي شيء، ولا تُحتسب هذه المحاولة. واجه الكاميرا في إضاءة جيدة، وابقَ ثابتًا، ثم أعد المحاولة.","testerGate.livenessTitle":"لم يتم تأكيد الوجه الحي","testerGate.livenessBody":"لم يُحتفظ بأي شيء. يمكنك إعادة المحاولة أو المتابعة باستخدام بيانات الاختبار.","testerGate.retry":"أعد المحاولة","testerGate.continueTest":"المتابعة باستخدام بيانات الاختبار","testerGate.continue":"متابعة","testerGate.limitBody":"تم بلوغ الحد اليومي للفحوصات الحقيقية للمختبِرين. تابع باستخدام بيانات الاختبار، أو أعد المحاولة غدًا.","testerGate.exhaustedBody":"لم تتبقَّ أي محاولة في هذه الجلسة. تابع باستخدام بيانات الاختبار، أو ابدأ جلسة جديدة.","testerGate.closedBody":"لا يمكن بدء الفحوصات الحقيقية إلا قبل أول التقاط. تابع باستخدام بيانات الاختبار، أو ابدأ جلسة جديدة."},V={"consent.human.terms.intro":"Sekyro AI confirms that a real person is completing this step, on behalf of the organization that asked for it.","consent.human.terms.data":"Sekyro AI collects a short capture of your face.","consent.human.terms.processing":"The capture is checked to confirm that you are a real person who is present. It may be compared with faces already verified for this organization.","consent.human.terms.sharing":"The organization that requested this verification learns its outcome.","consent.human.terms.retention":"Your data is stored encrypted and kept only as long as the law and the organization's settings require. To exercise your data-protection rights, contact the organization that requested this verification.","capture.noCamera.title":"This step needs a camera","capture.noCamera.body":"Allow camera access and try again, or continue on a phone with a camera.","capture.noCamera.continue":"Continue without a camera","capture.noCamera.deniedTitle":"Allow camera access","capture.noCamera.deniedBody":"Your browser blocked the camera for this page. Allow it in the site settings, then try again.","capture.noCamera.stepsChrome":"In Chrome, tap the icon to the left of the address, then Permissions, and turn on Camera.","capture.noCamera.stepsSamsung":"In Samsung Internet, open the menu, then Settings, Sites and downloads, Site permissions, Camera, and allow this site.","capture.noCamera.stepsSafari":"In Safari, tap the aA button in the address bar, then Website Settings, and set Camera to Allow.","capture.noCamera.stepsDesktop":"Click the icon to the left of the address and allow the camera for this site.","capture.noCamera.stepsSystem":"Still blocked? In your phone's settings, check that your browser may use the camera.","capture.noCamera.stillBlocked":"The camera is still blocked. Follow the steps above, then try again.","capture.noCamera.inAppTitle":"Open this page in your browser","capture.noCamera.inAppBody":"This app's browser can't use your camera. Open the page in Chrome or Safari to continue.","choice.title":"Choose how to continue","choice.description":"Choose one option.","choice.switch":"Use another option","contact.title":"Where to send your code","contact.description":"Choose one option.","contact.phone":"By phone (WhatsApp or SMS)","contact.email":"By email","contact.switch":"Use another option","summary.title":"Check your details","summary.description":"Make sure this is you before the live photo.","summary.fullName":"Full name","summary.birthDate":"Date of birth","summary.nationality":"Nationality","summary.documentType":"Document","summary.documentNumber":"Document number","summary.nni":"Mauritanian national ID number (NNI)","summary.id_number":"ID number","summary.expiryDate":"Expiry date","summary.portraitAlt":"Photo on record","summary.source.registry":"From the civil registry","summary.source.document":"Read from your document","summary.source.chip":"Read from your document's chip","summary.name":"Name","summary.birthYear":"Year of birth","summary.confirm":"Confirm and continue","summary.retakeDocument":"Scan my document again","summary.retakeNationalNumber":"Enter my number again","summary.noRetake":"You can't try again. Contact {org} if these details are wrong","capture.tipsIcao.title":"For your ID photo:","capture.tipsIcao.glasses":"Remove your glasses","capture.tipsIcao.headwear":"Remove hats and caps. A religious head covering is fine if your whole face shows","capture.tipsIcao.expression":"Keep a neutral expression with your mouth closed","capture.tipsIcao.faceCamera":"Look straight at the camera with your eyes open","capture.tipsIcao.background":"Stand in front of a plain, light background","capture.tipsIcao.lighting":"Use even light on your face: no shadows","capture.tipsIcao.hair":"Keep your hair away from your face and eyes","capture.tipsIcao.summary":"Stand in front of a plain, light wall with even light on your face. Remove your glasses and any hat. Keep your hair off your face, look straight at the camera with your eyes open, keep a neutral expression with your mouth closed, and hold still.","portrait.retakeOnly":"Your live check passed. Only the photo needs another try","portrait.keepCamera":"Stay in front of the camera","handoff.description":"Scan with your phone to continue","handoff.qrAlt":"QR code that opens this verification on your phone","handoff.copyLink":"Copy link","handoff.copyFailed":"We couldn't copy the link. Copy this page's address from your browser instead","handoff.waiting":"This page moves on by itself once you finish on your phone","inApp.title":"Open in your browser","inApp.description":"The camera doesn't work well inside this app. Open the link in Chrome or Safari to continue.","inApp.copyLink":"Copy link","inApp.copied":"Link copied. Paste it in your browser","inApp.copyFailed":"We couldn't copy the link. Copy this page's address instead","inApp.continueAnyway":"Continue here anyway","needsApp.capture.title":"Continue in the app","needsApp.capture.description":"{org} takes the photos for this verification in a mobile app. Open it in {org}'s app.","needsApp.capture.descriptionSekyro":"{org} takes the photos for this verification in a mobile app. Open it in {org}'s app or in the Sekyro AI app.","needsApp.capture.descriptionNoOrg":"This verification takes the photos in a mobile app. Open it in the app you were given.","needsApp.capture.descriptionNoOrgSekyro":"This verification takes the photos in a mobile app. Open it in the Sekyro AI app.","needsApp.capture.openSekyro":"Open in the Sekyro AI app","needsApp.capture.getApp":"Get the Sekyro AI app","needsApp.capture.appStore":"App Store","needsApp.capture.googlePlay":"Google Play","needsApp.capture.scan":"Scan with your phone to open this verification in the app.","needsApp.capture.qrAlt":"QR code that opens this verification in the app","needsApp.capture.waiting":"This page moves on when you finish in the app","inApp.openBrowser":"Open in browser","testerGate.action":"Run real checks as a tester","testerGate.title":"Run real checks as a tester","testerGate.body":"Look at the camera. If your face matches one of the organization's enrolled testers, this session runs real checks. If not, nothing is kept and you continue with test data.","testerGate.start":"Start","testerGate.checking":"Checking your face","testerGate.boundTitle":"Real checks are on","testerGate.boundBody":"You were recognised as an enrolled tester. The next steps run real checks.","testerGate.missTitle":"No enrolled tester matched","testerGate.missBody":"Nothing was kept. You can try again or continue with test data.","testerGate.retakeTitle":"We couldn't check your face clearly","testerGate.retakeBody":"Nothing was kept, and this try doesn't count. Face the camera in good light, keep still, and try again.","testerGate.livenessTitle":"Live face not confirmed","testerGate.livenessBody":"Nothing was kept. You can try again or continue with test data.","testerGate.retry":"Try again","testerGate.continueTest":"Continue with test data","testerGate.continue":"Continue","testerGate.limitBody":"Today's limit of real checks for testers is reached. Continue with test data, or try again tomorrow.","testerGate.exhaustedBody":"No tries are left on this session. Continue with test data, or start a new session.","testerGate.closedBody":"Real checks can start only before the first capture. Continue with test data, or start a new session."},Qe={"consent.human.terms.intro":"Sekyro AI confirme qu'une personne réelle effectue cette étape, pour le compte de l'organisme qui l'a demandée.","consent.human.terms.data":"Sekyro AI recueille une courte capture de votre visage.","consent.human.terms.processing":"La capture est analysée pour confirmer que vous êtes une personne réelle et présente. Elle peut être comparée aux visages déjà vérifiés pour cet organisme.","consent.human.terms.sharing":"L'organisme qui a demandé cette vérification est informé de son résultat.","consent.human.terms.retention":"Vos données sont stockées chiffrées et conservées uniquement pendant la durée exigée par la loi et les paramètres de l'organisme. Pour exercer vos droits en matière de protection des données, contactez l'organisme qui a demandé cette vérification.","capture.noCamera.title":"Une caméra est nécessaire","capture.noCamera.body":"Autorisez l'accès à la caméra et réessayez, ou continuez sur un téléphone équipé d'une caméra.","capture.noCamera.continue":"Continuer sans caméra","capture.noCamera.deniedTitle":"Autorisez la caméra","capture.noCamera.deniedBody":"Votre navigateur a bloqué la caméra pour cette page. Autorisez-la dans les paramètres du site, puis réessayez.","capture.noCamera.stepsChrome":"Dans Chrome, touchez l'icône à gauche de l'adresse, puis Autorisations, et activez Caméra.","capture.noCamera.stepsSamsung":"Dans Samsung Internet, ouvrez le menu, puis Paramètres, Sites et téléchargements, Autorisations des sites, Appareil photo, et autorisez ce site.","capture.noCamera.stepsSafari":"Dans Safari, touchez le bouton aA de la barre d'adresse, puis Réglages du site web, et réglez Caméra sur Autoriser.","capture.noCamera.stepsDesktop":"Cliquez sur l'icône à gauche de l'adresse et autorisez la caméra pour ce site.","capture.noCamera.stepsSystem":"Toujours bloquée ? Dans les réglages du téléphone, vérifiez que votre navigateur peut utiliser la caméra.","capture.noCamera.stillBlocked":"La caméra est toujours bloquée. Suivez les étapes ci-dessus, puis réessayez.","capture.noCamera.inAppTitle":"Ouvrez cette page dans votre navigateur","capture.noCamera.inAppBody":"Le navigateur de cette application ne peut pas utiliser votre caméra. Ouvrez la page dans Chrome ou Safari pour continuer.","choice.title":"Comment continuer ?","choice.description":"Choisissez une option.","choice.switch":"Utiliser une autre option","contact.title":"Où envoyer votre code ?","contact.description":"Choisissez une option.","contact.phone":"Par téléphone (WhatsApp ou SMS)","contact.email":"Par e-mail","contact.switch":"Utiliser une autre option","summary.title":"Vérifiez vos informations","summary.description":"Assurez-vous qu'il s'agit bien de vous avant la photo en direct.","summary.fullName":"Nom complet","summary.birthDate":"Date de naissance","summary.nationality":"Nationalité","summary.documentType":"Document","summary.documentNumber":"Numéro du document","summary.nni":"Numéro national d'identification mauritanien (NNI)","summary.id_number":"Numéro d'identité","summary.expiryDate":"Date d'expiration","summary.portraitAlt":"Photo enregistrée","summary.source.registry":"Issu de l'état civil","summary.source.document":"Lu sur votre document","summary.source.chip":"Lu sur la puce de votre document","summary.name":"Nom","summary.birthYear":"Année de naissance","summary.confirm":"Confirmer et continuer","summary.retakeDocument":"Scanner à nouveau mon document","summary.retakeNationalNumber":"Saisir à nouveau mon numéro","summary.noRetake":"Vous ne pouvez plus réessayer. Contactez {org} si ces informations sont incorrectes","capture.tipsIcao.title":"Pour votre photo d'identité :","capture.tipsIcao.glasses":"Retirez vos lunettes","capture.tipsIcao.headwear":"Retirez chapeau et casquette. Un couvre-chef religieux est accepté si tout le visage est visible","capture.tipsIcao.expression":"Gardez une expression neutre, la bouche fermée","capture.tipsIcao.faceCamera":"Regardez la caméra bien en face, les yeux ouverts","capture.tipsIcao.background":"Placez-vous devant un fond uni et clair","capture.tipsIcao.lighting":"Éclairez votre visage de façon uniforme : sans ombres","capture.tipsIcao.hair":"Dégagez vos cheveux du visage et des yeux","capture.tipsIcao.summary":"Placez-vous devant un mur uni et clair, le visage éclairé de façon uniforme. Retirez vos lunettes et tout chapeau. Dégagez vos cheveux du visage, regardez la caméra bien en face, les yeux ouverts, gardez une expression neutre, la bouche fermée, et ne bougez plus.","portrait.retakeOnly":"Votre vérification en direct est validée. Seule la photo est à refaire","portrait.keepCamera":"Restez face à la caméra","handoff.description":"Scannez avec votre téléphone pour continuer","handoff.qrAlt":"Code QR qui ouvre cette vérification sur votre téléphone","handoff.copyLink":"Copier le lien","handoff.copyFailed":"Nous n'avons pas pu copier le lien. Copiez plutôt l'adresse de cette page depuis votre navigateur","handoff.waiting":"Cette page avancera d’elle-même une fois l’étape terminée sur votre téléphone","inApp.title":"Ouvrez dans le navigateur","inApp.description":"La caméra fonctionne mal dans cette application. Ouvrez le lien dans Chrome ou Safari pour continuer.","inApp.copyLink":"Copier le lien","inApp.copied":"Lien copié. Collez-le dans votre navigateur","inApp.copyFailed":"Impossible de copier le lien. Copiez plutôt l'adresse de cette page","inApp.continueAnyway":"Continuer ici quand même","needsApp.capture.title":"Continuez dans l’application","needsApp.capture.description":"{org} prend les photos de cette vérification dans une application mobile. Ouvrez-la dans l’application de {org}.","needsApp.capture.descriptionSekyro":"{org} prend les photos de cette vérification dans une application mobile. Ouvrez-la dans l’application de {org} ou dans l’application Sekyro AI.","needsApp.capture.descriptionNoOrg":"Cette vérification prend les photos dans une application mobile. Ouvrez-la dans l’application que l’on vous a indiquée.","needsApp.capture.descriptionNoOrgSekyro":"Cette vérification prend les photos dans une application mobile. Ouvrez-la dans l’application Sekyro AI.","needsApp.capture.openSekyro":"Ouvrir dans l’application Sekyro AI","needsApp.capture.getApp":"Obtenir l’application Sekyro AI","needsApp.capture.appStore":"App Store","needsApp.capture.googlePlay":"Google Play","needsApp.capture.scan":"Scannez avec votre téléphone pour ouvrir cette vérification dans l’application.","needsApp.capture.qrAlt":"QR code qui ouvre cette vérification dans l’application","needsApp.capture.waiting":"Cette page avancera d’elle-même une fois l’étape terminée dans l’application","inApp.openBrowser":"Ouvrir dans le navigateur","testerGate.action":"Lancer de vrais contrôles en tant que testeur","testerGate.title":"Lancer de vrais contrôles en tant que testeur","testerGate.body":"Regardez la caméra. Si votre visage correspond à l'un des testeurs inscrits de l'organisation, cette session lance de vrais contrôles. Sinon, rien n'est conservé et vous continuez avec des données de test.","testerGate.start":"Commencer","testerGate.checking":"Vérification de votre visage","testerGate.boundTitle":"Les vrais contrôles sont activés","testerGate.boundBody":"Vous avez été reconnu comme testeur inscrit. Les étapes suivantes lancent de vrais contrôles.","testerGate.missTitle":"Aucun testeur inscrit ne correspond","testerGate.missBody":"Rien n'a été conservé. Vous pouvez réessayer ou continuer avec des données de test.","testerGate.retakeTitle":"Nous n'avons pas pu vérifier votre visage clairement","testerGate.retakeBody":"Rien n'a été conservé et cet essai ne compte pas. Placez-vous face à la caméra, dans un endroit bien éclairé, restez immobile et réessayez.","testerGate.livenessTitle":"Visage en direct non confirmé","testerGate.livenessBody":"Rien n'a été conservé. Vous pouvez réessayer ou continuer avec des données de test.","testerGate.retry":"Réessayer","testerGate.continueTest":"Continuer avec des données de test","testerGate.continue":"Continuer","testerGate.limitBody":"La limite de vrais contrôles pour les testeurs est atteinte pour aujourd'hui. Continuez avec des données de test, ou réessayez demain.","testerGate.exhaustedBody":"Il ne reste plus d'essai sur cette session. Continuez avec des données de test, ou lancez une nouvelle session.","testerGate.closedBody":"Les vrais contrôles ne peuvent commencer qu'avant la première capture. Continuez avec des données de test, ou lancez une nouvelle session."},xe={M:{perBlock:[10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26],blocks:[1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16],formatBits:0},H:{perBlock:[17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28],blocks:[1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25],formatBits:2}},Ne=20;function ze(e){let t=(16*e+128)*e+64;if(e>=2){let r=Math.floor(e/7)+2;t-=(25*r-10)*r-55,e>=7&&(t-=36)}return t}y(ze,"Le");m(ze,"rawDataModules");function J(e,t){let{perBlock:r,blocks:a}=xe[t],s=r[e-1],c=a[e-1],l=Math.floor(ze(e)/8),i=c-l%c,n=Math.floor(l/c)-s;return[s,i===c?[[c,n]]:[[i,n],[c-i,n+1]]]}y(J,"xe");m(J,"blockLayout");var X=m((e,t)=>J(e,t)[1].reduce((r,[a,s])=>r+a*s,0),"dataCapacity");function $(e,t){let r=0;for(let a=7;a>=0;a-=1)r=r<<1^(r>>>7)*285,r^=(t>>>a&1)*e;return r&255}y($,"X");m($,"gfMul");function Te(e){let t=new Array(e).fill(0);t[e-1]=1;let r=1;for(let a=0;a<e;a+=1){for(let s=0;s<e;s+=1)t[s]=$(t[s],r),s+1<e&&(t[s]=t[s]^t[s+1]);r=$(r,2)}return t}y(Te,"Fe");m(Te,"rsDivisor");function Ee(e,t){let r=t.map(()=>0);for(let a of e){let s=a^r.shift();r.push(0),t.forEach((c,l)=>{r[l]=r[l]^$(c,s)})}return r}y(Ee,"Ve");m(Ee,"rsRemainder");function Ge(e,t,r){let a=[],s=m((u,p)=>{for(let f=p-1;f>=0;f-=1)a.push(u>>>f&1)},"put");s(4,4),s(e.length,t<10?8:16);for(let u of e)s(u,8);let c=X(t,r)*8;s(0,Math.min(4,c-a.length)),s(0,(8-a.length%8)%8);let l=[];for(let u=0;u<a.length;u+=8)l.push(a.slice(u,u+8).reduce((p,f)=>p<<1|f,0));for(let u=236;l.length<X(t,r);u^=253)l.push(u);let[i,n]=J(t,r),d=Te(i),h=[],g=0;for(let[u,p]of n)for(let f=0;f<u;f+=1){let b=l.slice(g,g+p);g+=p,h.push({data:b,ec:Ee(b,d)})}let v=[],A=Math.max(...h.map(u=>u.data.length));for(let u=0;u<A;u+=1)for(let p of h)u<p.data.length&&v.push(p.data[u]);for(let u=0;u<i;u+=1)for(let p of h)v.push(p.ec[u]);return v}y(Ge,"De");m(Ge,"codewords");function ee(e){if(e===1)return[];let t=Math.floor(e/7)+2,r=Math.ceil((e*4+4)/(t*2-2))*2,a=[6];for(let s=e*4+10;a.length<t;s-=r)a.splice(1,0,s);return a}y(ee,"Ne");m(ee,"alignmentPositions");var Ke=[(e,t)=>(e+t)%2===0,e=>e%2===0,(e,t)=>t%3===0,(e,t)=>(e+t)%3===0,(e,t)=>(Math.floor(e/2)+Math.floor(t/3))%2===0,(e,t)=>e*t%2+e*t%3===0,(e,t)=>(e*t%2+e*t%3)%2===0,(e,t)=>((e+t)%2+e*t%3)%2===0],T,Re=(T=class{constructor(t){this.size=t,this.dark=new Array(t*t).fill(!1),this.fixed=new Array(t*t).fill(!1)}set(t,r,a){this.dark[t*this.size+r]=a,this.fixed[t*this.size+r]=!0}get(t,r){return this.dark[t*this.size+r]===!0}},y(T,"oe"),T);m(Re,"Grid");var Xe=Re;function Me(e,t){let r=e.size;for(let c=0;c<r;c+=1)e.set(6,c,c%2===0),e.set(c,6,c%2===0);for(let[c,l]of[[3,3],[3,r-4],[r-4,3]])for(let i=-4;i<=4;i+=1)for(let n=-4;n<=4;n+=1){let d=c+i,h=l+n;if(d<0||d>=r||h<0||h>=r)continue;let g=Math.max(Math.abs(i),Math.abs(n));e.set(d,h,g!==2&&g!==4)}let a=ee(t),s=a.length-1;if(a.forEach((c,l)=>a.forEach((i,n)=>{if(!(l===0&&n===0||l===0&&n===s||l===s&&n===0))for(let d=-2;d<=2;d+=1)for(let h=-2;h<=2;h+=1)e.set(c+d,i+h,Math.max(Math.abs(d),Math.abs(h))!==1)})),te(e,0),t>=7){let c=t;for(let i=0;i<12;i+=1)c=c<<1^(c>>>11)*7973;let l=t<<12|c;for(let i=0;i<18;i+=1){let n=(l>>>i&1)===1,d=r-11+i%3,h=Math.floor(i/3);e.set(d,h,n),e.set(h,d,n)}}}y(Me,"$e");m(Me,"drawFunctionPatterns");function te(e,t,r=0){let a=e.size,s=r<<3|t,c=s;for(let n=0;n<10;n+=1)c=c<<1^(c>>>9)*1335;let l=(s<<10|c)^21522,i=m(n=>(l>>>n&1)===1,"bit");for(let n=0;n<=5;n+=1)e.set(n,8,i(n));e.set(7,8,i(6)),e.set(8,8,i(7)),e.set(8,7,i(8));for(let n=9;n<15;n+=1)e.set(8,14-n,i(n));for(let n=0;n<8;n+=1)e.set(8,a-1-n,i(n));for(let n=8;n<15;n+=1)e.set(a-15+n,8,i(n));e.set(a-8,8,!0)}y(te,"ze");m(te,"drawFormat");function Le(e,t){let r=e.size,a=0;for(let s=r-1;s>=1;s-=2){s===6&&(s=5);for(let c=0;c<r;c+=1)for(let l=0;l<2;l+=1){let i=s-l,n=(s+1&2)===0?r-1-c:c;e.fixed[n*r+i]!==!0&&(a<t.length*8&&(e.dark[n*r+i]=(t[a>>>3]>>>7-(a&7)&1)===1),a+=1)}}}y(Le,"qe");m(Le,"placeData");function Oe(e,t){let r=Ke[t];for(let a=0;a<e.size;a+=1)for(let s=0;s<e.size;s+=1)e.fixed[a*e.size+s]!==!0&&r(a,s)&&(e.dark[a*e.size+s]=!e.dark[a*e.size+s])}y(Oe,"Ee");m(Oe,"applyMask");function De(e){let t=e.size,r=0,a=m(c=>{let l=1;for(let i=1;i<=t;i+=1)i<t&&c(i)===c(i-1)?l+=1:(l>=5&&(r+=3+(l-5)),l=1);for(let i=0;i+10<t;i+=1){let n=[!0,!1,!0,!0,!0,!1,!0];if(!(n.every((g,v)=>c(i+v)===g)||n.every((g,v)=>c(i+4+v)===g)))continue;let d=[0,1,2,3].every(g=>!c(i+g))&&n.every((g,v)=>c(i+4+v)===g),h=n.every((g,v)=>c(i+v)===g)&&[7,8,9,10].every(g=>!c(i+g));d&&(r+=40),h&&(r+=40)}},"line");for(let c=0;c<t;c+=1)a(l=>e.get(c,l));for(let c=0;c<t;c+=1)a(l=>e.get(l,c));for(let c=0;c+1<t;c+=1)for(let l=0;l+1<t;l+=1){let i=e.get(c,l);i===e.get(c,l+1)&&i===e.get(c+1,l)&&i===e.get(c+1,l+1)&&(r+=3)}let s=e.dark.filter(Boolean).length;return r+=Math.floor(Math.abs(s*20-t*t*10)/(t*t))*10,r}y(De,"Ue");m(De,"penalty");function ae(e,t={}){let r=t.ecl??"M",a=new TextEncoder().encode(e),s=1;for(;s<=Ne&&!(4+(s<10?8:16)+a.length*8<=X(s,r)*8);s+=1);if(s>Ne)throw new RangeError("text too long for a QR code");let c=Ge(a,s,r),l=m(d=>{let h=new Xe(s*4+17);return Me(h,s),Le(h,c),Oe(h,d),te(h,d,xe[r].formatBits),h},"build"),i=null;if(t.mask!==void 0)i=l(t.mask);else{let d=Number.POSITIVE_INFINITY;for(let h=0;h<8;h+=1){let g=l(h),v=De(g);v<d&&(d=v,i=g)}}let n=i;return{size:n.size,get:m((d,h)=>n.get(d,h),"get")}}y(ae,"ee");m(ae,"encodeQr");var Be={viewBox:"0 0 100 100",d:"M22.37,0H77.63A22.37,22.37 0 0 1 100,22.37V77.63A22.37,22.37 0 0 1 77.63,100H22.37A22.37,22.37 0 0 1 0,77.63V22.37A22.37,22.37 0 0 1 22.37,0ZM48.067,21H38.308A17.308,17.308 0 0 0 21,38.308V42.543A19.886,19.886 0 0 0 40.886,62.429H60.219V57.641A4.419,4.419 0 0 0 55.8,53.222H43.463A11.416,11.416 0 0 1 32.048,41.806V38.308A8.102,8.102 0 0 1 40.149,30.206H43.648A4.419,4.419 0 0 0 48.067,25.787ZM38.676,79H59.114A19.886,19.886 0 0 0 79,59.114V57.457A19.886,19.886 0 0 0 59.114,37.571H38.676V42.359A4.419,4.419 0 0 0 43.095,46.778H56.537A11.416,11.416 0 0 1 67.952,58.194V58.378A11.416,11.416 0 0 1 56.537,69.794H43.095A4.419,4.419 0 0 0 38.676,74.213ZM51.933,21H79V37.571H69.794V30.206H51.933ZM21,71.543A7.457,7.457 0 1 0 35.914,71.543A7.457,7.457 0 1 0 21,71.543Z"},L=.42,Je=.2,C=m(e=>{let t=Math.round(e*1e3)/1e3;return String(t===0?0:t)},"num");function x(e,t,r,a){let s=`A${C(a)} ${C(a)} 0 0 1 `;return`M${C(e+a)} ${C(t)}H${C(e+r-a)}${s}${C(e+r)} ${C(t+a)}V${C(t+r-a)}${s}${C(e+r-a)} ${C(t+r)}H${C(e+a)}${s}${C(e)} ${C(t+r-a)}V${C(t+a)}${s}${C(e+a)} ${C(t)}Z`}y(x,"T");m(x,"roundedSquare");function Pe(e){let t=(e-17)/4,r=ee(t),a=r.length-1,s=[];return r.forEach((c,l)=>r.forEach((i,n)=>{l===0&&n===0||l===0&&n===a||l===a&&n===0||s.push([c,i])})),s}y(Pe,"Ke");m(Pe,"alignmentCentres");function re(e,{quiet:t=4,logo:r=!1}={}){let a=e.size,s=m((u,p)=>u<7&&p<7||u<7&&p>=a-7||u>=a-7&&p<7,"isFinder"),c=Math.floor(a*Je),l=r?c%2===0?c-1:c:0,i=(a-l)/2,n=m((u,p)=>l>0&&u>=i&&u<i+l&&p>=i&&p<i+l,"inZone"),d=Pe(a).filter(([u,p])=>!n(u,p)),h=m((u,p)=>d.some(([f,b])=>Math.abs(u-f)<=2&&Math.abs(p-b)<=2),"isAlign"),g=`a${C(L)} ${C(L)} 0 1 0 `,v="";for(let u=0;u<a;u+=1)for(let p=0;p<a;p+=1)!e.get(u,p)||s(u,p)||h(u,p)||n(u,p)||(v+=`M${C(p+t+.5-L)} ${C(u+t+.5)}${g}${C(2*L)} 0${g}${C(-2*L)} 0Z`);let A="";for(let[u,p]of[[0,0],[0,a-7],[a-7,0]]){let f=p+t,b=u+t;A+=x(f,b,7,1.6)+x(f+1,b+1,5,.6)+x(f+2,b+2,3,.6)}for(let[u,p]of d){let f=p-2+t,b=u-2+t;A+=x(f,b,5,1.2)+x(f+1,b+1,3,.5)+x(f+2,b+2,1,.5)}return{size:a+t*2,dots:v,finders:A,logo:l>0?{x:i+t+.5,y:i+t+.5,size:l-1}:null}}y(re,"ne");m(re,"styledQr");function oe(e){let t=Math.round(e.size/100*1e5)/1e5;return`translate(${C(e.x)} ${C(e.y)}) scale(${t})`}y(oe,"re");m(oe,"qrLogoTransform");function Ve(e){let t=(0,qe.useContext)(ke);return e.kind!=="document"?{issuer:void 0,listed:[]}:{issuer:e.issuer??t.issuer,listed:t.listed}}y(Ve,"Ge");m(Ve,"useLaneIssuer");var et={en:V,fr:Qe,ar:Ze,es:V,pt:V,de:V},$e={en:M,fr:Ie,ar:Se,es:M,pt:M,de:M};function S(e){let t=e.strings;return(r,a)=>Z(t[r]??et[e.locale][r]??"",a)}y(S,"C");m(S,"flowT");function ne(e,t){let r=S(t);return e.flatMap(a=>{let s=a.service==="phone_otp"?r("contact.phone"):a.service==="email_otp"?r("contact.email"):Q(a,t),c=Ae[a.service];return s===null?[]:[{id:a.id,label:s,...c!==void 0?{glyph:(0,o.jsx)(P,{name:c})}:{}}]})}y(ne,"Pe");m(ne,"labelled");function se({step:e,i18n:t,onError:r}){let a=S(t),{busy:s,error:c,run:l}=R(t,r),i=e.kind==="contact_choice";return(0,o.jsx)(W,{title:a(i?"contact.title":"choice.title"),description:a(i?"contact.description":"choice.description"),options:ne(e.choice.options,t),busy:s,error:c,focus:!0,testId:i?"sekyro-contact-choice":"sekyro-choice",onChoose:y(n=>l(()=>e.choose(n)),"onChoose")})}y(se,"Re");m(se,"PlanChoiceView");var Vt=se,$t=se;function tt({step:e,i18n:t,onError:r,onOpen:a}){let s=S(t),{busy:c,error:l,run:i}=R(t,r),n=e,d=e.context.switchable,{issuer:h,listed:g}=Ve(e),v=d===void 0?[]:ye(d,h).switchTo.filter(w=>!g.includes(w.id)),A=n.kind==="registry"&&(n.reason==="nni_not_found"||n.reason==="registry_record_not_found")&&n.canUseDocument||n.kind==="eid"&&n.reason?.startsWith("eid_")&&n.canUseCamera,u=v.length===1?v[0]:void 0,p=u!==void 0&&(u.service==="phone_otp"||u.service==="email_otp"),f=p&&n.canSwitch&&n.switchTo!==void 0?()=>n.switchTo.call(e):n.chooseOption===void 0||u===void 0?void 0:()=>n.chooseOption.call(e,u.id);if(v.length===0||A||u!==void 0&&(f===void 0||b()===null)||u===void 0&&n.chooseOption===void 0)return null;function b(){return u===void 0?s("choice.switch"):u.service==="phone_otp"||u.service==="email_otp"?s("contact.switch"):n.kind==="registry"&&u.service==="document"?t.t("population.useDocument"):n.kind==="eid"?t.strings["eid.useCamera"]??$e[t.locale]["eid.useCamera"]:Q(u,t)}return y(b,"v"),m(b,"labelOf"),(0,o.jsxs)("div",{className:"sekyro-stack sekyro-stack--1",children:[l!==null?(0,o.jsx)(z,{tone:"danger",children:(0,o.jsx)("span",{children:l})}):null,(0,o.jsx)(N,{kind:"secondary",disabled:c,"aria-busy":c||void 0,onClick:y(()=>f===void 0?a():i(f),"onClick"),"data-testid":p?"sekyro-contact-switch":"sekyro-lane-switch",children:b()})]})}y(tt,"Et");m(tt,"LaneSwitch");function at({step:e,i18n:t,onError:r,onClose:a}){let s=S(t),{busy:c,error:l,run:i}=R(t,r),n=e.context.switchable,d=e.chooseOption,h=n===void 0?[]:ne(n.options,t),g=h.length>1;if((0,k.useEffect)(()=>{g||a()},[g,a]),n===void 0||d===void 0||!g)return null;let[v,A]=n.kind==="identity_method"?[t.t("method.heading"),t.t("method.description")]:n.kind==="contact"?[s("contact.title"),s("contact.description")]:[s("choice.title"),s("choice.description")];return(0,o.jsx)(W,{title:v,description:A,options:h,...n.current!==null?{marked:n.current}:{},busy:c,error:l,focus:!0,testId:"sekyro-lane-choice",onChoose:y(u=>u===n.current?a():i(()=>d.call(e,u)),"onChoose")})}y(at,"Ut");m(at,"LaneChoiceView");var rt=[["fullName","summary.fullName",!1],["birthDate","summary.birthDate",!0],["birthYear","summary.birthYear",!0],["nationality","summary.nationality",!0],["documentType","summary.documentType",!1],["documentNumberMasked","summary.documentNumber",!0],["idNumberMasked","summary.id_number",!0],["expiryDate","summary.expiryDate",!0]];function He(e){let[t,r]=(0,k.useState)(null);return(0,k.useEffect)(()=>{if(!e.portraitAvailable)return;let a=!0,s=null;return e.portrait().then(c=>{!a||c===null||!c.type.startsWith("image/")||typeof URL.createObjectURL!="function"||(s=URL.createObjectURL(c),r(s))}),()=>{a=!1,s!==null&&URL.revokeObjectURL(s)}},[e.portraitAvailable]),t}y(He,"Je");m(He,"usePortraitUrl");var ot=m(e=>/^\d{4}-\d{2}-\d{2}$/.test(e),"isoDate");function Fe(e,t){try{return new Intl.DateTimeFormat(t==="ar"?"ar-u-nu-latn":t,{day:"numeric",month:"long",year:"numeric",timeZone:"UTC"}).format(new Date(`${e}T00:00:00Z`))}catch{return e}}y(Fe,"tt");m(Fe,"formatDate");function nt({step:e,i18n:t,onError:r}){let a=S(t),s=(0,k.useId)(),c=B(),l=He(e),{busy:i,error:n,run:d}=R(t,r),h=e.context.orgName,g=["registry","document","chip"].find(f=>f===e.source),v=e.summaryKind==="partial",A=e.fullNameAr,u=t.locale==="ar"?A??e.fullName:e.fullName??A,p=m(f=>t.strings[`doc.type.${f}`]??f,"documentLabel");return(0,o.jsxs)("section",{className:"sekyro-step","aria-labelledby":s,"data-testid":"sekyro-identity-summary",children:[(0,o.jsxs)("div",{className:"sekyro-heading",children:[(0,o.jsx)("h2",{id:s,ref:c,tabIndex:-1,className:"sekyro-text-body",children:a("summary.title")}),(0,o.jsx)("p",{className:"sekyro-text-muted",children:a("summary.description")})]}),g!==void 0?(0,o.jsx)("p",{className:"sekyro-summary__source",children:a(`summary.source.${g}`)}):null,(0,o.jsxs)("div",{className:"sekyro-summary",children:[l!==null?(0,o.jsx)("img",{className:"sekyro-summary__portrait",src:l,alt:a("summary.portraitAlt")}):null,(0,o.jsx)("dl",{className:"sekyro-summary__list",children:rt.map(([f,b,w])=>{let I=f==="idNumberMasked"?e.idNumberMasked??e.nniMasked:f==="fullName"?u:e[f];return I===void 0?null:(0,o.jsxs)("div",{className:"sekyro-summary__row",children:[(0,o.jsx)("dt",{className:"sekyro-text-muted",children:a(f==="fullName"&&v?"summary.name":b)}),(0,o.jsx)("dd",{children:ot(I)?Fe(I,t.locale):w||I===A?(0,o.jsx)("bdi",{dir:w?"ltr":"rtl",children:I}):f==="documentType"?p(I):I})]},f)})})]}),n!==null?(0,o.jsx)(z,{tone:"danger",children:(0,o.jsx)("span",{children:n})}):null,e.retakeAvailable?null:(0,o.jsx)("p",{className:"sekyro-text-muted",children:a("summary.noRetake",{org:h})}),(0,o.jsxs)(q,{children:[(0,o.jsx)(N,{full:!0,disabled:i,"aria-busy":i||void 0,onClick:y(()=>d(()=>e.confirm()),"onClick"),children:a("summary.confirm")}),e.retakeAvailable?(0,o.jsx)(N,{kind:"secondary",full:!0,disabled:i,onClick:y(()=>d(()=>e.retake()),"onClick"),children:a(e.retakeTarget==="national_number"?"summary.retakeNationalNumber":"summary.retakeDocument")}):null]})]})}y(nt,"Qt");m(nt,"IdentitySummaryView");var st=["glasses","headwear","expression","faceCamera","background","lighting","hair"];function it({step:e,i18n:t,livenessProps:r,sekyroIntro:a}){let s=S(t),[c,l]=(0,k.useState)(null);(0,k.useEffect)(()=>e.onLivePhoto(p=>{let f=p.update?.coach;l(p.holding||f===void 0?null:t.t(`portrait.coach.${f}`))}),[e,t]);let i=e.instructions==="icao",n=(0,k.useMemo)(()=>be(e),[e]),d=e.icao?.profile==="selfie",h=(0,k.useMemo)(()=>i?st.filter(p=>!d||p!=="background").map(p=>({id:p,text:s(`capture.tipsIcao.${p}`)})):void 0,[i,d,t]),g=(0,k.useMemo)(()=>i&&!d?{...r.strings,"capture.tips.title":s("capture.tipsIcao.title")}:r.strings,[i,d,r.strings,t]),v=d?void 0:s("capture.tipsIcao.title"),A=(0,k.useMemo)(()=>a===!0&&h!==void 0?{...r.slots,intro:m((p,f)=>(0,o.jsx)(Ce,{start:p,context:f,tips:h,...v!==void 0?{tipsTitle:v}:{},...n!==void 0?{retry:n}:{}}),"intro")}:r.slots,[a,h,v,n,r.slots,t]),u=d?`${(h??[]).map(p=>p.text).join(". ")}.`:s("capture.tipsIcao.summary");return(0,o.jsx)(j,{...r,...A!==void 0?{slots:A}:{},...g!==void 0?{strings:g}:{},...h!==void 0?{tips:h,tipsSummary:u}:{},coach:c})}y(it,"Kt");m(it,"LivePhotoLiveness");function ct({i18n:e}){let t=S(e);return(0,o.jsxs)(z,{tone:"info",children:[(0,o.jsx)("strong",{children:t("portrait.retakeOnly")}),(0,o.jsx)("span",{children:t("portrait.keepCamera")})]})}y(ct,"Yt");m(ct,"PortraitRetakeNotice");function lt({i18n:e,provider:t}){let r=e.strings,a=m(s=>r[s]??$e[e.locale][s]??"","pick");return(0,o.jsx)("p",{className:"sekyro-text-muted","data-testid":"sekyro-eid-continue",children:t?Z(a("eid.continueHint"),{provider:t}):a("eid.continueHintGeneric")})}y(lt,"Wt");m(lt,"EidContinueHint");async function Ue(e){try{return await navigator.clipboard.writeText(e),!0}catch{return!1}}y(Ue,"rt");m(Ue,"copy");function H({url:e,i18n:t,label:r,primary:a}){let s=S(t),[c,l]=(0,k.useState)("idle"),i=r.startsWith("inApp.")?"inApp":"handoff";return(0,o.jsxs)("div",{className:"sekyro-stack sekyro-stack--1",children:[(0,o.jsx)(N,{kind:a?"primary":"secondary",full:!0,onClick:y(()=>{Ue(e).then(n=>l(n?"copied":"failed"))},"onClick"),children:s(r)}),(0,o.jsx)("p",{role:"status","aria-live":"polite",className:"sekyro-text-muted",children:c==="idle"?"":s(`${i}.${c==="copied"?"copied":"copyFailed"}`)})]})}y(H,"se");m(H,"CopyLink");function ie({url:e,i18n:t,refresh:r,footer:a,lead:s}){let c=S(t),l=(0,k.useId)(),i=(0,k.useMemo)(()=>{try{return re(ae(e,{ecl:"H"}),{logo:!0})}catch{return null}},[e]),n=(0,k.useRef)(r);n.current=r;let d=B();return(0,k.useEffect)(()=>{let h=setInterval(()=>{(typeof document>"u"||document.visibilityState!=="hidden")&&n.current?.().catch(()=>{})},5e3);return()=>clearInterval(h)},[]),(0,o.jsxs)("section",{className:"sekyro-step sekyro-handoff","aria-labelledby":l,"data-testid":"sekyro-handoff",children:[(0,o.jsxs)("div",{className:"sekyro-heading",children:[(0,o.jsx)("h2",{id:l,ref:d,tabIndex:-1,className:"sekyro-text-body",children:t.t("handoff.title")}),s!==void 0?(0,o.jsx)("p",{children:s}):null,(0,o.jsx)("p",{className:"sekyro-text-muted",children:c("handoff.description")})]}),i!==null?(0,o.jsxs)("svg",{className:"sekyro-qr",viewBox:`0 0 ${i.size} ${i.size}`,role:"img","aria-label":c("handoff.qrAlt"),children:[(0,o.jsx)("rect",{width:i.size,height:i.size,className:"sekyro-qr__bg"}),(0,o.jsx)("path",{d:i.dots,className:"sekyro-qr__fg"}),(0,o.jsx)("path",{d:i.finders,className:"sekyro-qr__fg",fillRule:"evenodd"}),i.logo!==null?(0,o.jsx)("path",{d:Be.d,className:"sekyro-qr__fg",fillRule:"evenodd",transform:oe(i.logo),"data-qr-mark":""}):null]}):null,(0,o.jsxs)("p",{className:"sekyro-handoff__waiting",role:"status",children:[(0,o.jsx)("span",{className:"sekyro-handoff__pulse","aria-hidden":"true"}),c("handoff.waiting")]}),(0,o.jsxs)(q,{children:[(0,o.jsx)(H,{url:e,i18n:t,label:"handoff.copyLink"}),a??null]})]})}y(ie,"Me");m(ie,"HandoffView");var _e={appStore:"https://apps.apple.com/app/id6826858033",googlePlay:"https://play.google.com/store/apps/details?id=ai.sekyro.app"};function ut({i18n:e,org:t,nativeApp:r,fallbackUrl:a,refresh:s,footer:c}){let l=S(e),i=(0,k.useMemo)(()=>!G(),[]),n=r.link??a,d=(0,k.useMemo)(()=>{if(!i||n===void 0||n==="")return null;try{return re(ae(n,{ecl:"H"}),{logo:!0})}catch{return null}},[i,n]),h=(0,k.useRef)(s);h.current=s,(0,k.useEffect)(()=>{let f=setInterval(()=>{(typeof document>"u"||document.visibilityState!=="hidden")&&h.current?.().catch(()=>{})},5e3);return()=>clearInterval(f)},[]);let[g,v]=(0,k.useState)(!1),A=m(()=>{s!==void 0&&(v(!0),s().catch(()=>{}).finally(()=>v(!1)))},"again"),u=r.sekyroApp,p=t!==""?l(u?"needsApp.capture.descriptionSekyro":"needsApp.capture.description",{org:t}):l(u?"needsApp.capture.descriptionNoOrgSekyro":"needsApp.capture.descriptionNoOrg");return(0,o.jsxs)(_,{tone:"brand",icon:"smartphone",title:l("needsApp.capture.title"),testId:"sekyro-native-app",actions:(0,o.jsxs)(o.Fragment,{children:[!i&&u&&r.sekyroAppLink!==void 0?(0,o.jsx)("a",{className:"sekyro-btn sekyro-btn--primary sekyro-btn--full",href:r.sekyroAppLink,"data-testid":"sekyro-open-sekyro-app",children:l("needsApp.capture.openSekyro")}):null,s!==void 0?(0,o.jsx)(N,{kind:"secondary",full:!0,disabled:g,onClick:A,children:e.t("common.refresh")}):null,c??null]}),children:[(0,o.jsx)("p",{children:p}),d!==null?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("svg",{className:"sekyro-qr",viewBox:`0 0 ${d.size} ${d.size}`,role:"img","aria-label":l("needsApp.capture.qrAlt"),children:[(0,o.jsx)("rect",{width:d.size,height:d.size,className:"sekyro-qr__bg"}),(0,o.jsx)("path",{d:d.dots,className:"sekyro-qr__fg"}),(0,o.jsx)("path",{d:d.finders,className:"sekyro-qr__fg",fillRule:"evenodd"}),d.logo!==null?(0,o.jsx)("path",{d:Be.d,className:"sekyro-qr__fg",fillRule:"evenodd",transform:oe(d.logo),"data-qr-mark":""}):null]}),(0,o.jsx)("p",{className:"sekyro-text-muted",children:l("needsApp.capture.scan")})]}):null,u?(0,o.jsxs)("p",{className:"sekyro-text-muted","data-testid":"sekyro-app-stores",children:[l("needsApp.capture.getApp")," ",(0,o.jsx)("a",{href:_e.appStore,target:"_blank",rel:"noopener noreferrer",children:l("needsApp.capture.appStore")})," · ",(0,o.jsx)("a",{href:_e.googlePlay,target:"_blank",rel:"noopener noreferrer",children:l("needsApp.capture.googlePlay")})]}):null,(0,o.jsxs)("p",{className:"sekyro-handoff__waiting",role:"status",children:[(0,o.jsx)("span",{className:"sekyro-handoff__pulse","aria-hidden":"true"}),l("needsApp.capture.waiting")]})]})}y(ut,"Zt");m(ut,"NativeAppView");var pt=["intro","data","processing","sharing","retention"];function dt({i18n:e}){let t=S(e);return(0,o.jsx)(o.Fragment,{children:pt.map(r=>(0,o.jsx)("p",{children:t(`consent.human.terms.${r}`)},r))})}y(dt,"jt");m(dt,"HumanConsentTerms");function mt({url:e,i18n:t}){return(0,k.useMemo)(()=>!G(),[])?(0,o.jsx)(ie,{url:e,i18n:t}):null}y(mt,"Xt");m(mt,"DesktopHandoffView");function Ye(e){let t=e??(typeof navigator>"u"?"":String(navigator.userAgent??""));if(we(t))return"in_app";if(/SamsungBrowser/i.test(t))return"samsung";let r=typeof navigator<"u"&&/Macintosh/.test(t)&&(navigator.maxTouchPoints??0)>1;return/iPhone|iPad|iPod/i.test(t)||r?"ios":/Android/i.test(t)?"chrome_android":"desktop"}y(Ye,"at");m(Ye,"cameraHelpPlatform");var ht={samsung:"capture.noCamera.stepsSamsung",chrome_android:"capture.noCamera.stepsChrome",ios:"capture.noCamera.stepsSafari",desktop:"capture.noCamera.stepsDesktop"};function yt({i18n:e,cause:t,onRetry:r,onContinue:a,handoffUrl:s,repeated:c=!1,platform:l}){let i=S(e),n=(0,k.useId)(),d=B(),[h,g]=(0,k.useState)("idle"),v=(0,k.useMemo)(()=>s!==void 0&&!G(),[s]),A=t==="denied",u=(0,k.useMemo)(()=>l??Ye(),[l]),p=A&&u==="in_app",[f,b]=(0,k.useState)(!1),w=(0,k.useRef)(!1),I=(0,k.useRef)(!0);(0,k.useEffect)(()=>(I.current=!0,()=>{I.current=!1}),[]);let O=m(()=>{if(!A){r();return}w.current||(w.current=!0,he().catch(()=>"unknown").then(D=>{w.current=!1,I.current&&(D==="denied"&&!f&&!c?b(!0):r())}))},"retry"),We=m(()=>{a!==void 0&&(g("busy"),a(t).then(()=>g("idle"),D=>g(D instanceof Y&&D.code==="check_out_of_order"?"idle":"failed")))},"end"),E=typeof window>"u"?"":window.location.href.split("#")[0]??"",F=(0,k.useMemo)(()=>p&&E!==""?K(E):null,[p,E]),ce=(0,o.jsxs)(o.Fragment,{children:[p&&F!==null?(0,o.jsxs)("a",{className:"sekyro-btn sekyro-btn--primary sekyro-btn--full",href:F,"data-testid":"sekyro-open-browser",children:[(0,o.jsx)(P,{name:"external"}),i("inApp.openBrowser")]}):null,p&&E!==""?(0,o.jsx)(H,{url:E,i18n:e,label:"inApp.copyLink",primary:F===null}):null,(0,o.jsx)(N,{full:!0,kind:!p&&(A||a===void 0)?"primary":"secondary",onClick:O,children:e.t("common.retry")}),a!==void 0?(0,o.jsx)(N,{full:!0,kind:A?"secondary":"primary",disabled:h==="busy","aria-busy":h==="busy"||void 0,onClick:We,children:i("capture.noCamera.continue")}):null]}),le=h==="failed"?(0,o.jsx)(z,{tone:"danger",children:(0,o.jsx)("span",{children:e.t("errors.network_error")})}):null,ue=i(p?"capture.noCamera.inAppTitle":A?"capture.noCamera.deniedTitle":"capture.noCamera.title"),pe=i(p?"capture.noCamera.inAppBody":A?"capture.noCamera.deniedBody":"capture.noCamera.body"),de=A&&!p?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("p",{"data-testid":"sekyro-camera-steps","data-platform":u,children:i(ht[u])}),u!=="desktop"?(0,o.jsx)("p",{className:"sekyro-text-muted",children:i("capture.noCamera.stepsSystem")}):null]}):null,me=A&&(f||c)?(0,o.jsx)(z,{tone:"warning",children:(0,o.jsx)("span",{role:"status","data-testid":"sekyro-camera-still-blocked",children:i("capture.noCamera.stillBlocked")})}):null;return v&&s!==void 0?(0,o.jsxs)("section",{className:"sekyro-stack sekyro-stack--4","aria-labelledby":n,"data-testid":"sekyro-no-camera","data-cause":t,children:[(0,o.jsx)(ie,{url:s,i18n:e}),(0,o.jsx)("h2",{id:n,ref:d,tabIndex:-1,className:"sekyro-text-body",children:ue}),(0,o.jsx)("p",{className:"sekyro-text-muted",children:pe}),de,me,le,(0,o.jsx)("div",{className:"sekyro-stack sekyro-stack--3",children:ce})]}):(0,o.jsxs)(_,{tone:A?"warning":"neutral",icon:"camera",titleId:n,title:ue,testId:"sekyro-no-camera",actions:ce,children:[(0,o.jsx)("p",{children:pe}),de,me,le]})}y(yt,"Jt");m(yt,"NoCameraView");function ft({url:e,i18n:t,onContinue:r}){let a=S(t),s=(0,k.useId)(),c=(0,k.useMemo)(()=>K(e),[e]);return(0,o.jsx)(_,{tone:"brand",icon:"external",titleId:s,title:a("inApp.title"),testId:"sekyro-in-app",actions:(0,o.jsxs)(o.Fragment,{children:[c!==null?(0,o.jsxs)("a",{className:"sekyro-btn sekyro-btn--primary sekyro-btn--full",href:c,"data-testid":"sekyro-open-browser",children:[(0,o.jsx)(P,{name:"external"}),a("inApp.openBrowser")]}):null,(0,o.jsx)(H,{url:e,i18n:t,label:"inApp.copyLink",primary:c===null}),(0,o.jsx)(N,{kind:"ghost",full:!0,onClick:r,children:a("inApp.continueAnyway")})]}),children:(0,o.jsx)("p",{children:a("inApp.description")})})}y(ft,"en");m(ft,"InAppBrowserPrompt");var gt={retake:{title:"testerGate.retakeTitle",body:"testerGate.retakeBody"},liveness:{title:"testerGate.livenessTitle",body:"testerGate.livenessBody"},no_match:{title:"testerGate.missTitle",body:"testerGate.missBody"}},kt={tester_limit_reached:"testerGate.limitBody",gate_attempts_exhausted:"testerGate.exhaustedBody",tester_gate_closed:"testerGate.closedBody"};function vt({i18n:e,onOpen:t}){let r=S(e);return(0,o.jsx)(N,{kind:"ghost",full:!0,onClick:t,"data-testid":"sekyro-tester-gate-action",children:r("testerGate.action")})}y(vt,"tn");m(vt,"TesterGateAction");function At({i18n:e,verification:t,attemptsLeft:r,livenessProps:a,onBound:s,onDone:c}){let l=S(e),i=(0,k.useId)(),[n,d]=(0,k.useState)("intro"),[h,g]=(0,k.useState)(null),[v,A]=(0,k.useState)("no_match"),u=t.testerGate,p=m(b=>{u!==void 0&&(d("checking"),u.call(t,b).then(({bound:w,missReason:I})=>{w&&s(),A(I??"no_match"),d(w?"bound":"miss")},w=>{let I=w instanceof Y?w.code:"",O=kt[I];g(O!==void 0?l(O):e.t(ve(w,e.strings))),d("failed")}))},"captured"),f=(0,o.jsx)(N,{full:!0,kind:n==="intro"?"secondary":"primary",onClick:y(()=>c(!0),"onClick"),"data-testid":"sekyro-tester-gate-continue",children:l("testerGate.continueTest")});if(n==="capture")return(0,o.jsx)(j,{...a,onCaptured:p});if(n==="checking")return(0,o.jsx)(_,{tone:"brand",icon:"face",busy:!0,live:!0,title:l("testerGate.checking"),testId:"sekyro-tester-gate-checking"});if(n==="bound")return(0,o.jsx)(_,{tone:"success",icon:"success",title:l("testerGate.boundTitle"),testId:"sekyro-tester-gate-bound",actions:(0,o.jsx)(N,{full:!0,onClick:y(()=>c(!1),"onClick"),children:l("testerGate.continue")}),children:(0,o.jsx)("p",{children:l("testerGate.boundBody")})});if(n==="miss"||n==="failed"){let b=gt[v],w=n==="miss"&&(v==="retake"||r>0);return(0,o.jsx)(_,{tone:"warning",icon:"info",title:l(n==="miss"?b.title:"testerGate.title"),testId:"sekyro-tester-gate-miss",actions:(0,o.jsxs)(o.Fragment,{children:[f,w?(0,o.jsx)(N,{full:!0,kind:"secondary",onClick:y(()=>d("capture"),"onClick"),"data-testid":"sekyro-tester-gate-retry",children:l("testerGate.retry")}):null]}),children:(0,o.jsx)("p",{children:n==="miss"?l(b.body):h})})}return(0,o.jsxs)("section",{className:"sekyro-stack sekyro-stack--4","aria-labelledby":i,"data-testid":"sekyro-tester-gate",children:[(0,o.jsx)(ge,{id:i,title:l("testerGate.title"),lead:l("testerGate.body")}),(0,o.jsxs)(q,{children:[(0,o.jsx)(N,{full:!0,onClick:y(()=>d("capture"),"onClick"),disabled:u===void 0,"data-testid":"sekyro-tester-gate-start",children:l("testerGate.start")}),f]})]})}y(At,"nn");m(At,"TesterGateView");export{Vt as ContactChoiceView,mt as DesktopHandoffView,lt as EidContinueHint,$t as GenericChoiceView,ie as HandoffView,dt as HumanConsentTerms,nt as IdentitySummaryView,ft as InAppBrowserPrompt,at as LaneChoiceView,tt as LaneSwitch,it as LivePhotoLiveness,ut as NativeAppView,yt as NoCameraView,ct as PortraitRetakeNotice,vt as TesterGateAction,At as TesterGateView,Ye as cameraHelpPlatform};