@sekyro/elements 0.1.0-rc.19 → 0.1.0-rc.20

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 (96) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/cdn/chunks/capture-session-doc-HIN3YZG2-ZOYOVMIF.js +1 -0
  3. package/dist/cdn/chunks/{chunk-3PBU4237.js → chunk-2GVFM77I.js} +2 -2
  4. package/dist/cdn/chunks/{chunk-WANVL25H.js → chunk-32CNXSJQ.js} +1 -1
  5. package/dist/cdn/chunks/{chunk-L66SWMJ5.js → chunk-677IJRH3.js} +1 -1
  6. package/dist/cdn/chunks/chunk-BMTTAXWY.js +25 -0
  7. package/dist/cdn/chunks/{chunk-EPMGZQHF.js → chunk-BO327WCQ.js} +1 -1
  8. package/dist/cdn/chunks/chunk-BWOTZKA7.js +1 -0
  9. package/dist/cdn/chunks/{chunk-EXMVZUHU.js → chunk-CYEDFGUG.js} +1 -1
  10. package/dist/cdn/chunks/{chunk-RTCZJKYC.js → chunk-FQHV53QQ.js} +1 -1
  11. package/dist/cdn/chunks/chunk-FZP5NLDQ.js +1 -0
  12. package/dist/cdn/chunks/chunk-HOBGJOBT.js +1 -0
  13. package/dist/cdn/chunks/{chunk-ZWP6MDIC.js → chunk-HPTNANWX.js} +1 -1
  14. package/dist/cdn/chunks/{chunk-CGOCWIXM.js → chunk-K67DQTFL.js} +1 -1
  15. package/dist/cdn/chunks/{chunk-PAU2BFT7.js → chunk-L7I27OCG.js} +1 -1
  16. package/dist/cdn/chunks/{chunk-WCEIXBIS.js → chunk-LHYSCL4T.js} +1 -1
  17. package/dist/cdn/chunks/chunk-MINBJAVX.js +1 -0
  18. package/dist/cdn/chunks/chunk-MXMEO2IW.js +1 -0
  19. package/dist/cdn/chunks/{chunk-IXRKOBFA.js → chunk-PZVVXMQ6.js} +1 -1
  20. package/dist/cdn/chunks/chunk-RH466MDF.js +3 -0
  21. package/dist/cdn/chunks/{chunk-HXD7VO3F.js → chunk-U7QPOSFH.js} +1 -1
  22. package/dist/cdn/chunks/{chunk-6H2SLOEK.js → chunk-X6LDVTUQ.js} +1 -1
  23. package/dist/cdn/chunks/{chunk-K2JDLIFO.js → chunk-Z6OYPC4S.js} +1 -1
  24. package/dist/cdn/chunks/chunk-ZJNLNYA5.js +1 -0
  25. package/dist/cdn/chunks/{create-document-capture-4ZOSBL3Y-KLZDMWOQ.js → create-document-capture-Z3UK34XH-J7HHUVQU.js} +1 -1
  26. package/dist/cdn/chunks/document-capture-view-NI4452T4-UL6ELWE6.js +1 -0
  27. package/dist/cdn/chunks/{eid-view-6DXZ5ELB-ZX35JGDS.js → eid-view-GAIQODI5-AH3LJYP4.js} +1 -1
  28. package/dist/cdn/chunks/{email-otp-view-3UJPJOQ6-MIOPWSME.js → email-otp-view-SM2POPMA-XEEHDST5.js} +1 -1
  29. package/dist/cdn/chunks/{flow-views-ZVDXJZWH-C5ZVKCB6.js → flow-views-NBUWHG7J-HB57IJYX.js} +1 -1
  30. package/dist/cdn/chunks/{form-view-4NKEHYNF-I25LMP47.js → form-view-GOFXOQJO-6K34NRBN.js} +1 -1
  31. package/dist/cdn/chunks/overlay-de-YLCWZB42-REI3GVKV.js +1 -0
  32. package/dist/cdn/chunks/overlay-es-YIPBOMXT-5DHSESGX.js +1 -0
  33. package/dist/cdn/chunks/overlay-pt-JSDCAYVA-MQHVGOHK.js +1 -0
  34. package/dist/cdn/chunks/plan-runner-JSLWPJ6D-7PE72QOP.js +1 -0
  35. package/dist/cdn/chunks/{portrait-capture-view-QDUJ36UH-GRTZTYTJ.js → portrait-capture-view-TTUVVA7L-ENQSXXXH.js} +1 -1
  36. package/dist/cdn/chunks/{portrait-review-view-LW5DBF3L-K7WAOPAG.js → portrait-review-view-BCIENGKR-SHYX5FRE.js} +1 -1
  37. package/dist/cdn/chunks/{proof-of-address-view-E6WJTTIV-7ISFWEEZ.js → proof-of-address-view-SS2TIV3D-GFY3THLT.js} +1 -1
  38. package/dist/cdn/define.js +1 -1
  39. package/dist/cdn/index.js +1 -1
  40. package/dist/{chunk-BRS7YLGB.js → chunk-2TOYHI7F.js} +1 -1
  41. package/dist/{chunk-VBJ4CJHE.js → chunk-2ZWLZDO2.js} +1 -1
  42. package/dist/{chunk-QNK7OBIW.js → chunk-3NYC5YLB.js} +1 -1
  43. package/dist/chunk-3T7JA7T7.js +1 -0
  44. package/dist/{chunk-SVGBNMXK.js → chunk-47ELGOCA.js} +1 -1
  45. package/dist/{chunk-KYDIB6KR.js → chunk-7FYJ4XL4.js} +1 -1
  46. package/dist/{chunk-CY66YE6F.js → chunk-AUISCZAL.js} +1 -1
  47. package/dist/{chunk-7XJHQ3NM.js → chunk-GXENE4GQ.js} +1 -1
  48. package/dist/{chunk-5QJOJLKJ.js → chunk-HRJ5PESP.js} +1 -1
  49. package/dist/{chunk-RPA5QQVH.js → chunk-IYLMNTY5.js} +2 -2
  50. package/dist/chunk-TBECC5OK.js +1 -0
  51. package/dist/{chunk-PKK72TVJ.js → chunk-UJM3T4QD.js} +1 -1
  52. package/dist/{chunk-6FAODASF.js → chunk-V4USJ5ZA.js} +1 -1
  53. package/dist/chunk-XXCBLQ53.js +1 -0
  54. package/dist/chunk-YUZW7NSK.js +25 -0
  55. package/dist/define.cjs +5 -5
  56. package/dist/define.js +1 -1
  57. package/dist/document-capture-view-NI4452T4-VZHREVJN.js +1 -0
  58. package/dist/{eid-view-6DXZ5ELB-XDQVFDXS.js → eid-view-GAIQODI5-KCEO3AZS.js} +1 -1
  59. package/dist/{email-otp-view-3UJPJOQ6-5PQM7LNW.js → email-otp-view-SM2POPMA-O7WM3ZEZ.js} +1 -1
  60. package/dist/{flow-views-ZVDXJZWH-LOGNCRIA.js → flow-views-NBUWHG7J-PO2CMTIF.js} +1 -1
  61. package/dist/{form-view-4NKEHYNF-VFMN6QFW.js → form-view-GOFXOQJO-CRQWOLQA.js} +1 -1
  62. package/dist/index.cjs +5 -5
  63. package/dist/index.d.cts +4 -2
  64. package/dist/index.d.ts +4 -2
  65. package/dist/index.js +1 -1
  66. package/dist/overlay-de-YLCWZB42-XINMWIXZ.js +1 -0
  67. package/dist/overlay-es-YIPBOMXT-MS7EN5ZX.js +1 -0
  68. package/dist/overlay-pt-JSDCAYVA-27WQ3BLB.js +1 -0
  69. package/dist/{portrait-capture-view-QDUJ36UH-QZR4O3YW.js → portrait-capture-view-TTUVVA7L-6BGZEV6C.js} +1 -1
  70. package/dist/{portrait-review-view-LW5DBF3L-QVERJXKH.js → portrait-review-view-BCIENGKR-WZ7GCBEX.js} +1 -1
  71. package/dist/{proof-of-address-view-E6WJTTIV-4SHZIQ3O.js → proof-of-address-view-SS2TIV3D-C6YD4BRC.js} +1 -1
  72. package/dist/styles.css +2 -0
  73. package/package.json +2 -2
  74. package/sbom.cdx.json +4 -4
  75. package/dist/cdn/chunks/capture-session-doc-DFLSX6BB-3ULMTYJH.js +0 -1
  76. package/dist/cdn/chunks/chunk-2TFK736S.js +0 -1
  77. package/dist/cdn/chunks/chunk-4VHWJD57.js +0 -1
  78. package/dist/cdn/chunks/chunk-AC45ZP53.js +0 -1
  79. package/dist/cdn/chunks/chunk-D7YINY2U.js +0 -3
  80. package/dist/cdn/chunks/chunk-JR4AQLJ2.js +0 -1
  81. package/dist/cdn/chunks/chunk-LUO3AZFS.js +0 -1
  82. package/dist/cdn/chunks/chunk-PLWGAXYM.js +0 -25
  83. package/dist/cdn/chunks/chunk-YULJCSQ3.js +0 -1
  84. package/dist/cdn/chunks/document-capture-view-25EASYV7-EUEYS55L.js +0 -1
  85. package/dist/cdn/chunks/overlay-de-64ABPD3N-KIBBQI36.js +0 -1
  86. package/dist/cdn/chunks/overlay-es-VIMXYK2Q-KTLONTNF.js +0 -1
  87. package/dist/cdn/chunks/overlay-pt-3IBDZBAW-DQTJHDLG.js +0 -1
  88. package/dist/cdn/chunks/plan-runner-3BLEJWHF-3K3RBXJU.js +0 -1
  89. package/dist/chunk-57MVUXQ6.js +0 -25
  90. package/dist/chunk-M7HNWDQD.js +0 -1
  91. package/dist/chunk-XQPY6G2B.js +0 -1
  92. package/dist/chunk-YZ6YGLNN.js +0 -1
  93. package/dist/document-capture-view-25EASYV7-MOFQVGV6.js +0 -1
  94. package/dist/overlay-de-64ABPD3N-ARJE63WR.js +0 -1
  95. package/dist/overlay-es-VIMXYK2Q-JRHIX3OT.js +0 -1
  96. package/dist/overlay-pt-3IBDZBAW-JXQE6BVY.js +0 -1
@@ -1,4 +1,4 @@
1
- import{a as dr}from"./chunk-KYDIB6KR.js";import{a as Ca,b as Cl,c as Er}from"./chunk-VBJ4CJHE.js";import{a as Nr,b as _r,d as Mr,e as Or}from"./chunk-SVGBNMXK.js";import{a as hr,b as yr,c as Ic,d as vr,e as pr,f as gr,g as br,h as lf,i as Sr,j as zr,k as Tr,l as Ar}from"./chunk-XQPY6G2B.js";import{a as pv,c as ur}from"./chunk-CY66YE6F.js";import{a as mr}from"./chunk-5QJOJLKJ.js";import{a as li}from"./chunk-PKK72TVJ.js";import{a as Ur,b as Dr,c as Cr}from"./chunk-7XJHQ3NM.js";import{a as Vn}from"./chunk-YZ6YGLNN.js";import{b as Pc,c as Dl}from"./chunk-M7HNWDQD.js";import{A as cr,B as wc,C as Pu,D as Wc,E as fr,G as Fc,H as or,I as sr,K as rr,L as Nl,M as $c,a as Tl,b as Vl,c as cl,k as Kc,p as tr,q as ar,r as nr,t as $u,u as Iu,v as se,w as Pt,x as ir,y as la,z as Jc}from"./chunk-57MVUXQ6.js";import{a as i,b as Fu,c as Q,d as er,e as H,f as vl,g as pl,h as X,i as T}from"./chunk-SSU37LFQ.js";var Kd=Fu(ol=>{"use strict";function Ef(l,e){var t=l.length;l.push(e);l:for(;0<t;){var a=t-1>>>1,n=l[a];if(0<si(n,e))l[a]=e,l[t]=n,t=a;else break l}}i(Ef,"push");function xe(l){return l.length===0?null:l[0]}i(xe,"peek");function di(l){if(l.length===0)return null;var e=l[0],t=l.pop();if(t!==e){l[0]=t;l:for(var a=0,n=l.length,u=n>>>1;a<u;){var c=2*(a+1)-1,f=l[c],o=c+1,s=l[o];if(0>si(f,t))o<n&&0>si(s,f)?(l[a]=s,l[o]=t,a=o):(l[a]=f,l[c]=t,a=c);else if(o<n&&0>si(s,t))l[a]=s,l[o]=t,a=o;else break l}}return e}i(di,"pop");function si(l,e){var t=l.sortIndex-e.sortIndex;return t!==0?t:l.id-e.id}i(si,"compare");ol.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(Rd=performance,ol.unstable_now=function(){return Rd.now()}):(zf=Date,Yd=zf.now(),ol.unstable_now=function(){return zf.now()-Yd});var Rd,zf,Yd,Ke=[],St=[],Iv=1,de=null,Ql=3,Nf=!1,Ln=!1,Zn=!1,_f=!1,Qd=typeof setTimeout=="function"?setTimeout:null,Xd=typeof clearTimeout=="function"?clearTimeout:null,Gd=typeof setImmediate<"u"?setImmediate:null;function ri(l){for(var e=xe(St);e!==null;){if(e.callback===null)di(St);else if(e.startTime<=l)di(St),e.sortIndex=e.expirationTime,Ef(Ke,e);else break;e=xe(St)}}i(ri,"advanceTimers");function Mf(l){if(Zn=!1,ri(l),!Ln)if(xe(Ke)!==null)Ln=!0,Ra||(Ra=!0,qa());else{var e=xe(St);e!==null&&Of(Mf,e.startTime-l)}}i(Mf,"handleTimeout");var Ra=!1,Kn=-1,jd=5,Ld=-1;function Zd(){return _f?!0:!(ol.unstable_now()-Ld<jd)}i(Zd,"shouldYieldToHost");function Tf(){if(_f=!1,Ra){var l=ol.unstable_now();Ld=l;var e=!0;try{l:{Ln=!1,Zn&&(Zn=!1,Xd(Kn),Kn=-1),Nf=!0;var t=Ql;try{e:{for(ri(l),de=xe(Ke);de!==null&&!(de.expirationTime>l&&Zd());){var a=de.callback;if(typeof a=="function"){de.callback=null,Ql=de.priorityLevel;var n=a(de.expirationTime<=l);if(l=ol.unstable_now(),typeof n=="function"){de.callback=n,ri(l),e=!0;break e}de===xe(Ke)&&di(Ke),ri(l)}else di(Ke);de=xe(Ke)}if(de!==null)e=!0;else{var u=xe(St);u!==null&&Of(Mf,u.startTime-l),e=!1}}break l}finally{de=null,Ql=t,Nf=!1}e=void 0}}finally{e?qa():Ra=!1}}}i(Tf,"performWorkUntilDeadline");var qa;typeof Gd=="function"?qa=i(function(){Gd(Tf)},"schedulePerformWorkUntilDeadline"):typeof MessageChannel<"u"?(Af=new MessageChannel,Vd=Af.port2,Af.port1.onmessage=Tf,qa=i(function(){Vd.postMessage(null)},"schedulePerformWorkUntilDeadline")):qa=i(function(){Qd(Tf,0)},"schedulePerformWorkUntilDeadline");var Af,Vd;function Of(l,e){Kn=Qd(function(){l(ol.unstable_now())},e)}i(Of,"requestHostTimeout");ol.unstable_IdlePriority=5;ol.unstable_ImmediatePriority=1;ol.unstable_LowPriority=4;ol.unstable_NormalPriority=3;ol.unstable_Profiling=null;ol.unstable_UserBlockingPriority=2;ol.unstable_cancelCallback=function(l){l.callback=null};ol.unstable_forceFrameRate=function(l){0>l||125<l?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):jd=0<l?Math.floor(1e3/l):5};ol.unstable_getCurrentPriorityLevel=function(){return Ql};ol.unstable_next=function(l){switch(Ql){case 1:case 2:case 3:var e=3;break;default:e=Ql}var t=Ql;Ql=e;try{return l()}finally{Ql=t}};ol.unstable_requestPaint=function(){_f=!0};ol.unstable_runWithPriority=function(l,e){switch(l){case 1:case 2:case 3:case 4:case 5:break;default:l=3}var t=Ql;Ql=l;try{return e()}finally{Ql=t}};ol.unstable_scheduleCallback=function(l,e,t){var a=ol.unstable_now();switch(typeof t=="object"&&t!==null?(t=t.delay,t=typeof t=="number"&&0<t?a+t:a):t=a,l){case 1:var n=-1;break;case 2:n=250;break;case 5:n=1073741823;break;case 4:n=1e4;break;default:n=5e3}return n=t+n,l={id:Iv++,callback:e,priorityLevel:l,startTime:t,expirationTime:n,sortIndex:-1},t>a?(l.sortIndex=t,Ef(St,l),xe(Ke)===null&&l===xe(St)&&(Zn?(Xd(Kn),Kn=-1):Zn=!0,Of(Mf,t-a))):(l.sortIndex=n,Ef(Ke,l),Ln||Nf||(Ln=!0,Ra||(Ra=!0,qa()))),l};ol.unstable_shouldYield=Zd;ol.unstable_wrapCallback=function(l){var e=Ql;return function(){var t=Ql;Ql=e;try{return l.apply(this,arguments)}finally{Ql=t}}}});var wd=Fu((hb,Jd)=>{"use strict";Jd.exports=Kd()});var iv=Fu(Rc=>{"use strict";var El=wd(),Sh=Tl(),Pv=pv();function S(l){var e="https://react.dev/errors/"+l;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var t=2;t<arguments.length;t++)e+="&args[]="+encodeURIComponent(arguments[t])}return"Minified React error #"+l+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}i(S,"formatProdErrorMessage");function zh(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)}i(zh,"isValidContainer");function ku(l){var e=l,t=l;if(l.alternate)for(;e.return;)e=e.return;else{l=e;do e=l,(e.flags&4098)!==0&&(t=e.return),l=e.return;while(l)}return e.tag===3?t:null}i(ku,"getNearestMountedFiber");function Th(l){if(l.tag===13){var e=l.memoizedState;if(e===null&&(l=l.alternate,l!==null&&(e=l.memoizedState)),e!==null)return e.dehydrated}return null}i(Th,"getSuspenseInstanceFromFiber");function Ah(l){if(l.tag===31){var e=l.memoizedState;if(e===null&&(l=l.alternate,l!==null&&(e=l.memoizedState)),e!==null)return e.dehydrated}return null}i(Ah,"getActivityInstanceFromFiber");function Wd(l){if(ku(l)!==l)throw Error(S(188))}i(Wd,"assertIsMounted");function l1(l){var e=l.alternate;if(!e){if(e=ku(l),e===null)throw Error(S(188));return e!==l?null:l}for(var t=l,a=e;;){var n=t.return;if(n===null)break;var u=n.alternate;if(u===null){if(a=n.return,a!==null){t=a;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===t)return Wd(n),l;if(u===a)return Wd(n),e;u=u.sibling}throw Error(S(188))}if(t.return!==a.return)t=n,a=u;else{for(var c=!1,f=n.child;f;){if(f===t){c=!0,t=n,a=u;break}if(f===a){c=!0,a=n,t=u;break}f=f.sibling}if(!c){for(f=u.child;f;){if(f===t){c=!0,t=u,a=n;break}if(f===a){c=!0,a=u,t=n;break}f=f.sibling}if(!c)throw Error(S(189))}}if(t.alternate!==a)throw Error(S(190))}if(t.tag!==3)throw Error(S(188));return t.stateNode.current===t?l:e}i(l1,"findCurrentFiberUsingSlowPath");function Eh(l){var e=l.tag;if(e===5||e===26||e===27||e===6)return l;for(l=l.child;l!==null;){if(e=Eh(l),e!==null)return e;l=l.sibling}return null}i(Eh,"findCurrentHostFiberImpl");var ul=Object.assign,e1=Symbol.for("react.element"),mi=Symbol.for("react.transitional.element"),lu=Symbol.for("react.portal"),ja=Symbol.for("react.fragment"),Nh=Symbol.for("react.strict_mode"),fo=Symbol.for("react.profiler"),_h=Symbol.for("react.consumer"),lt=Symbol.for("react.context"),ns=Symbol.for("react.forward_ref"),oo=Symbol.for("react.suspense"),so=Symbol.for("react.suspense_list"),us=Symbol.for("react.memo"),zt=Symbol.for("react.lazy"),ro=Symbol.for("react.activity"),t1=Symbol.for("react.memo_cache_sentinel"),Fd=Symbol.iterator;function Jn(l){return l===null||typeof l!="object"?null:(l=Fd&&l[Fd]||l["@@iterator"],typeof l=="function"?l:null)}i(Jn,"getIteratorFn");var a1=Symbol.for("react.client.reference");function mo(l){if(l==null)return null;if(typeof l=="function")return l.$$typeof===a1?null:l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case ja:return"Fragment";case fo:return"Profiler";case Nh:return"StrictMode";case oo:return"Suspense";case so:return"SuspenseList";case ro:return"Activity"}if(typeof l=="object")switch(l.$$typeof){case lu:return"Portal";case lt:return l.displayName||"Context";case _h:return(l._context.displayName||"Context")+".Consumer";case ns:var e=l.render;return l=l.displayName,l||(l=e.displayName||e.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case us:return e=l.displayName||null,e!==null?e:mo(l.type)||"Memo";case zt:e=l._payload,l=l._init;try{return mo(l(e))}catch{}}return null}i(mo,"getComponentNameFromType");var eu=Array.isArray,x=Sh.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=Pv.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ca={pending:!1,data:null,method:null,action:null},ho=[],La=-1;function Ge(l){return{current:l}}i(Ge,"createCursor");function Ul(l){0>La||(l.current=ho[La],ho[La]=null,La--)}i(Ul,"pop");function tl(l,e){La++,ho[La]=l.current,l.current=e}i(tl,"push");var Ye=Ge(null),gu=Ge(null),kt=Ge(null),Ki=Ge(null);function Ji(l,e){switch(tl(kt,e),tl(gu,l),tl(Ye,null),e.nodeType){case 9:case 11:l=(l=e.documentElement)&&(l=l.namespaceURI)?ah(l):0;break;default:if(l=e.tagName,e=e.namespaceURI)e=ah(e),l=Ky(e,l);else switch(l){case"svg":l=1;break;case"math":l=2;break;default:l=0}}Ul(Ye),tl(Ye,l)}i(Ji,"pushHostContainer");function on(){Ul(Ye),Ul(gu),Ul(kt)}i(on,"popHostContainer");function yo(l){l.memoizedState!==null&&tl(Ki,l);var e=Ye.current,t=Ky(e,l.type);e!==t&&(tl(gu,l),tl(Ye,t))}i(yo,"pushHostContext");function wi(l){gu.current===l&&(Ul(Ye),Ul(gu)),Ki.current===l&&(Ul(Ki),Uu._currentValue=ca)}i(wi,"popHostContext");var Uf,$d;function aa(l){if(Uf===void 0)try{throw Error()}catch(t){var e=t.stack.trim().match(/\n( *(at )?)/);Uf=e&&e[1]||"",$d=-1<t.stack.indexOf(`
1
+ import{a as dr}from"./chunk-7FYJ4XL4.js";import{a as Ca,b as Cl,c as Er}from"./chunk-2ZWLZDO2.js";import{a as Nr,b as _r,d as Mr,e as Or}from"./chunk-47ELGOCA.js";import{a as hr,b as yr,c as Ic,d as vr,e as pr,f as gr,g as br,h as lf,i as Sr,j as zr,k as Tr,l as Ar}from"./chunk-3T7JA7T7.js";import{a as pv,c as ur}from"./chunk-AUISCZAL.js";import{a as mr}from"./chunk-HRJ5PESP.js";import{a as li}from"./chunk-UJM3T4QD.js";import{a as Ur,b as Dr,c as Cr}from"./chunk-GXENE4GQ.js";import{a as Vn}from"./chunk-XXCBLQ53.js";import{b as Pc,c as Dl}from"./chunk-TBECC5OK.js";import{A as cr,B as wc,C as Pu,D as Wc,E as fr,G as Fc,H as or,I as sr,K as rr,L as Nl,M as $c,a as Tl,b as Vl,c as cl,k as Kc,p as tr,q as ar,r as nr,t as $u,u as Iu,v as se,w as Pt,x as ir,y as la,z as Jc}from"./chunk-YUZW7NSK.js";import{a as i,b as Fu,c as Q,d as er,e as H,f as vl,g as pl,h as X,i as T}from"./chunk-SSU37LFQ.js";var Kd=Fu(ol=>{"use strict";function Ef(l,e){var t=l.length;l.push(e);l:for(;0<t;){var a=t-1>>>1,n=l[a];if(0<si(n,e))l[a]=e,l[t]=n,t=a;else break l}}i(Ef,"push");function xe(l){return l.length===0?null:l[0]}i(xe,"peek");function di(l){if(l.length===0)return null;var e=l[0],t=l.pop();if(t!==e){l[0]=t;l:for(var a=0,n=l.length,u=n>>>1;a<u;){var c=2*(a+1)-1,f=l[c],o=c+1,s=l[o];if(0>si(f,t))o<n&&0>si(s,f)?(l[a]=s,l[o]=t,a=o):(l[a]=f,l[c]=t,a=c);else if(o<n&&0>si(s,t))l[a]=s,l[o]=t,a=o;else break l}}return e}i(di,"pop");function si(l,e){var t=l.sortIndex-e.sortIndex;return t!==0?t:l.id-e.id}i(si,"compare");ol.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(Rd=performance,ol.unstable_now=function(){return Rd.now()}):(zf=Date,Yd=zf.now(),ol.unstable_now=function(){return zf.now()-Yd});var Rd,zf,Yd,Ke=[],St=[],Iv=1,de=null,Ql=3,Nf=!1,Ln=!1,Zn=!1,_f=!1,Qd=typeof setTimeout=="function"?setTimeout:null,Xd=typeof clearTimeout=="function"?clearTimeout:null,Gd=typeof setImmediate<"u"?setImmediate:null;function ri(l){for(var e=xe(St);e!==null;){if(e.callback===null)di(St);else if(e.startTime<=l)di(St),e.sortIndex=e.expirationTime,Ef(Ke,e);else break;e=xe(St)}}i(ri,"advanceTimers");function Mf(l){if(Zn=!1,ri(l),!Ln)if(xe(Ke)!==null)Ln=!0,Ra||(Ra=!0,qa());else{var e=xe(St);e!==null&&Of(Mf,e.startTime-l)}}i(Mf,"handleTimeout");var Ra=!1,Kn=-1,jd=5,Ld=-1;function Zd(){return _f?!0:!(ol.unstable_now()-Ld<jd)}i(Zd,"shouldYieldToHost");function Tf(){if(_f=!1,Ra){var l=ol.unstable_now();Ld=l;var e=!0;try{l:{Ln=!1,Zn&&(Zn=!1,Xd(Kn),Kn=-1),Nf=!0;var t=Ql;try{e:{for(ri(l),de=xe(Ke);de!==null&&!(de.expirationTime>l&&Zd());){var a=de.callback;if(typeof a=="function"){de.callback=null,Ql=de.priorityLevel;var n=a(de.expirationTime<=l);if(l=ol.unstable_now(),typeof n=="function"){de.callback=n,ri(l),e=!0;break e}de===xe(Ke)&&di(Ke),ri(l)}else di(Ke);de=xe(Ke)}if(de!==null)e=!0;else{var u=xe(St);u!==null&&Of(Mf,u.startTime-l),e=!1}}break l}finally{de=null,Ql=t,Nf=!1}e=void 0}}finally{e?qa():Ra=!1}}}i(Tf,"performWorkUntilDeadline");var qa;typeof Gd=="function"?qa=i(function(){Gd(Tf)},"schedulePerformWorkUntilDeadline"):typeof MessageChannel<"u"?(Af=new MessageChannel,Vd=Af.port2,Af.port1.onmessage=Tf,qa=i(function(){Vd.postMessage(null)},"schedulePerformWorkUntilDeadline")):qa=i(function(){Qd(Tf,0)},"schedulePerformWorkUntilDeadline");var Af,Vd;function Of(l,e){Kn=Qd(function(){l(ol.unstable_now())},e)}i(Of,"requestHostTimeout");ol.unstable_IdlePriority=5;ol.unstable_ImmediatePriority=1;ol.unstable_LowPriority=4;ol.unstable_NormalPriority=3;ol.unstable_Profiling=null;ol.unstable_UserBlockingPriority=2;ol.unstable_cancelCallback=function(l){l.callback=null};ol.unstable_forceFrameRate=function(l){0>l||125<l?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):jd=0<l?Math.floor(1e3/l):5};ol.unstable_getCurrentPriorityLevel=function(){return Ql};ol.unstable_next=function(l){switch(Ql){case 1:case 2:case 3:var e=3;break;default:e=Ql}var t=Ql;Ql=e;try{return l()}finally{Ql=t}};ol.unstable_requestPaint=function(){_f=!0};ol.unstable_runWithPriority=function(l,e){switch(l){case 1:case 2:case 3:case 4:case 5:break;default:l=3}var t=Ql;Ql=l;try{return e()}finally{Ql=t}};ol.unstable_scheduleCallback=function(l,e,t){var a=ol.unstable_now();switch(typeof t=="object"&&t!==null?(t=t.delay,t=typeof t=="number"&&0<t?a+t:a):t=a,l){case 1:var n=-1;break;case 2:n=250;break;case 5:n=1073741823;break;case 4:n=1e4;break;default:n=5e3}return n=t+n,l={id:Iv++,callback:e,priorityLevel:l,startTime:t,expirationTime:n,sortIndex:-1},t>a?(l.sortIndex=t,Ef(St,l),xe(Ke)===null&&l===xe(St)&&(Zn?(Xd(Kn),Kn=-1):Zn=!0,Of(Mf,t-a))):(l.sortIndex=n,Ef(Ke,l),Ln||Nf||(Ln=!0,Ra||(Ra=!0,qa()))),l};ol.unstable_shouldYield=Zd;ol.unstable_wrapCallback=function(l){var e=Ql;return function(){var t=Ql;Ql=e;try{return l.apply(this,arguments)}finally{Ql=t}}}});var wd=Fu((hb,Jd)=>{"use strict";Jd.exports=Kd()});var iv=Fu(Rc=>{"use strict";var El=wd(),Sh=Tl(),Pv=pv();function S(l){var e="https://react.dev/errors/"+l;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var t=2;t<arguments.length;t++)e+="&args[]="+encodeURIComponent(arguments[t])}return"Minified React error #"+l+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}i(S,"formatProdErrorMessage");function zh(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)}i(zh,"isValidContainer");function ku(l){var e=l,t=l;if(l.alternate)for(;e.return;)e=e.return;else{l=e;do e=l,(e.flags&4098)!==0&&(t=e.return),l=e.return;while(l)}return e.tag===3?t:null}i(ku,"getNearestMountedFiber");function Th(l){if(l.tag===13){var e=l.memoizedState;if(e===null&&(l=l.alternate,l!==null&&(e=l.memoizedState)),e!==null)return e.dehydrated}return null}i(Th,"getSuspenseInstanceFromFiber");function Ah(l){if(l.tag===31){var e=l.memoizedState;if(e===null&&(l=l.alternate,l!==null&&(e=l.memoizedState)),e!==null)return e.dehydrated}return null}i(Ah,"getActivityInstanceFromFiber");function Wd(l){if(ku(l)!==l)throw Error(S(188))}i(Wd,"assertIsMounted");function l1(l){var e=l.alternate;if(!e){if(e=ku(l),e===null)throw Error(S(188));return e!==l?null:l}for(var t=l,a=e;;){var n=t.return;if(n===null)break;var u=n.alternate;if(u===null){if(a=n.return,a!==null){t=a;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===t)return Wd(n),l;if(u===a)return Wd(n),e;u=u.sibling}throw Error(S(188))}if(t.return!==a.return)t=n,a=u;else{for(var c=!1,f=n.child;f;){if(f===t){c=!0,t=n,a=u;break}if(f===a){c=!0,a=n,t=u;break}f=f.sibling}if(!c){for(f=u.child;f;){if(f===t){c=!0,t=u,a=n;break}if(f===a){c=!0,a=u,t=n;break}f=f.sibling}if(!c)throw Error(S(189))}}if(t.alternate!==a)throw Error(S(190))}if(t.tag!==3)throw Error(S(188));return t.stateNode.current===t?l:e}i(l1,"findCurrentFiberUsingSlowPath");function Eh(l){var e=l.tag;if(e===5||e===26||e===27||e===6)return l;for(l=l.child;l!==null;){if(e=Eh(l),e!==null)return e;l=l.sibling}return null}i(Eh,"findCurrentHostFiberImpl");var ul=Object.assign,e1=Symbol.for("react.element"),mi=Symbol.for("react.transitional.element"),lu=Symbol.for("react.portal"),ja=Symbol.for("react.fragment"),Nh=Symbol.for("react.strict_mode"),fo=Symbol.for("react.profiler"),_h=Symbol.for("react.consumer"),lt=Symbol.for("react.context"),ns=Symbol.for("react.forward_ref"),oo=Symbol.for("react.suspense"),so=Symbol.for("react.suspense_list"),us=Symbol.for("react.memo"),zt=Symbol.for("react.lazy"),ro=Symbol.for("react.activity"),t1=Symbol.for("react.memo_cache_sentinel"),Fd=Symbol.iterator;function Jn(l){return l===null||typeof l!="object"?null:(l=Fd&&l[Fd]||l["@@iterator"],typeof l=="function"?l:null)}i(Jn,"getIteratorFn");var a1=Symbol.for("react.client.reference");function mo(l){if(l==null)return null;if(typeof l=="function")return l.$$typeof===a1?null:l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case ja:return"Fragment";case fo:return"Profiler";case Nh:return"StrictMode";case oo:return"Suspense";case so:return"SuspenseList";case ro:return"Activity"}if(typeof l=="object")switch(l.$$typeof){case lu:return"Portal";case lt:return l.displayName||"Context";case _h:return(l._context.displayName||"Context")+".Consumer";case ns:var e=l.render;return l=l.displayName,l||(l=e.displayName||e.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case us:return e=l.displayName||null,e!==null?e:mo(l.type)||"Memo";case zt:e=l._payload,l=l._init;try{return mo(l(e))}catch{}}return null}i(mo,"getComponentNameFromType");var eu=Array.isArray,x=Sh.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=Pv.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ca={pending:!1,data:null,method:null,action:null},ho=[],La=-1;function Ge(l){return{current:l}}i(Ge,"createCursor");function Ul(l){0>La||(l.current=ho[La],ho[La]=null,La--)}i(Ul,"pop");function tl(l,e){La++,ho[La]=l.current,l.current=e}i(tl,"push");var Ye=Ge(null),gu=Ge(null),kt=Ge(null),Ki=Ge(null);function Ji(l,e){switch(tl(kt,e),tl(gu,l),tl(Ye,null),e.nodeType){case 9:case 11:l=(l=e.documentElement)&&(l=l.namespaceURI)?ah(l):0;break;default:if(l=e.tagName,e=e.namespaceURI)e=ah(e),l=Ky(e,l);else switch(l){case"svg":l=1;break;case"math":l=2;break;default:l=0}}Ul(Ye),tl(Ye,l)}i(Ji,"pushHostContainer");function on(){Ul(Ye),Ul(gu),Ul(kt)}i(on,"popHostContainer");function yo(l){l.memoizedState!==null&&tl(Ki,l);var e=Ye.current,t=Ky(e,l.type);e!==t&&(tl(gu,l),tl(Ye,t))}i(yo,"pushHostContext");function wi(l){gu.current===l&&(Ul(Ye),Ul(gu)),Ki.current===l&&(Ul(Ki),Uu._currentValue=ca)}i(wi,"popHostContext");var Uf,$d;function aa(l){if(Uf===void 0)try{throw Error()}catch(t){var e=t.stack.trim().match(/\n( *(at )?)/);Uf=e&&e[1]||"",$d=-1<t.stack.indexOf(`
2
2
  at`)?" (<anonymous>)":-1<t.stack.indexOf("@")?"@unknown:0:0":""}return`
3
3
  `+Uf+l+$d}i(aa,"describeBuiltInComponentFrame");var Df=!1;function Cf(l,e){if(!l||Df)return"";Df=!0;var t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:i(function(){try{if(e){var p=i(function(){throw Error()},"Fake");if(Object.defineProperty(p.prototype,"props",{set:i(function(){throw Error()},"set")}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(p,[])}catch(h){var m=h}Reflect.construct(l,[],p)}else{try{p.call()}catch(h){m=h}l.call(p.prototype)}}else{try{throw Error()}catch(h){m=h}(p=l())&&typeof p.catch=="function"&&p.catch(function(){})}}catch(h){if(h&&m&&typeof h.stack=="string")return[h.stack,m.stack]}return[null,null]},"DetermineComponentFrameRoot")};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=a.DetermineComponentFrameRoot(),c=u[0],f=u[1];if(c&&f){var o=c.split(`
4
4
  `),s=f.split(`
@@ -6,7 +6,7 @@ import{a as dr}from"./chunk-KYDIB6KR.js";import{a as Ca,b as Cl,c as Er}from"./c
6
6
  `+o[a].replace(" at new "," at ");return l.displayName&&v.includes("<anonymous>")&&(v=v.replace("<anonymous>",l.displayName)),v}while(1<=a&&0<=n);break}}}finally{Df=!1,Error.prepareStackTrace=t}return(t=l?l.displayName||l.name:"")?aa(t):""}i(Cf,"describeNativeComponentFrame");function n1(l,e){switch(l.tag){case 26:case 27:case 5:return aa(l.type);case 16:return aa("Lazy");case 13:return l.child!==e&&e!==null?aa("Suspense Fallback"):aa("Suspense");case 19:return aa("SuspenseList");case 0:case 15:return Cf(l.type,!1);case 11:return Cf(l.type.render,!1);case 1:return Cf(l.type,!0);case 31:return aa("Activity");default:return""}}i(n1,"describeFiber");function Id(l){try{var e="",t=null;do e+=n1(l,t),t=l,l=l.return;while(l);return e}catch(a){return`
7
7
  Error generating stack: `+a.message+`
8
8
  `+a.stack}}i(Id,"getStackByFiberInDevAndProd");var vo=Object.prototype.hasOwnProperty,is=El.unstable_scheduleCallback,kf=El.unstable_cancelCallback,u1=El.unstable_shouldYield,i1=El.unstable_requestPaint,ne=El.unstable_now,c1=El.unstable_getCurrentPriorityLevel,Mh=El.unstable_ImmediatePriority,Oh=El.unstable_UserBlockingPriority,Wi=El.unstable_NormalPriority,f1=El.unstable_LowPriority,Uh=El.unstable_IdlePriority,o1=El.log,s1=El.unstable_setDisableYieldValue,Bu=null,ue=null;function Mt(l){if(typeof o1=="function"&&s1(l),ue&&typeof ue.setStrictMode=="function")try{ue.setStrictMode(Bu,l)}catch{}}i(Mt,"setIsStrictModeForDevtools");var ie=Math.clz32?Math.clz32:m1,r1=Math.log,d1=Math.LN2;function m1(l){return l>>>=0,l===0?32:31-(r1(l)/d1|0)|0}i(m1,"clz32Fallback");var hi=256,yi=262144,vi=4194304;function na(l){var e=l&42;if(e!==0)return e;switch(l&-l){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return l&261888;case 262144:case 524288:case 1048576:case 2097152:return l&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return l&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return l}}i(na,"getHighestPriorityLanes");function zc(l,e,t){var a=l.pendingLanes;if(a===0)return 0;var n=0,u=l.suspendedLanes,c=l.pingedLanes;l=l.warmLanes;var f=a&134217727;return f!==0?(a=f&~u,a!==0?n=na(a):(c&=f,c!==0?n=na(c):t||(t=f&~l,t!==0&&(n=na(t))))):(f=a&~u,f!==0?n=na(f):c!==0?n=na(c):t||(t=a&~l,t!==0&&(n=na(t)))),n===0?0:e!==0&&e!==n&&(e&u)===0&&(u=n&-n,t=e&-e,u>=t||u===32&&(t&4194048)!==0)?e:n}i(zc,"getNextLanes");function xu(l,e){return(l.pendingLanes&~(l.suspendedLanes&~l.pingedLanes)&e)===0}i(xu,"checkIfRootIsPrerendering");function h1(l,e){switch(l){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}i(h1,"computeExpirationTime");function Dh(){var l=vi;return vi<<=1,(vi&62914560)===0&&(vi=4194304),l}i(Dh,"claimNextRetryLane");function Bf(l){for(var e=[],t=0;31>t;t++)e.push(l);return e}i(Bf,"createLaneMap");function Hu(l,e){l.pendingLanes|=e,e!==268435456&&(l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0)}i(Hu,"markRootUpdated$1");function y1(l,e,t,a,n,u){var c=l.pendingLanes;l.pendingLanes=t,l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0,l.expiredLanes&=t,l.entangledLanes&=t,l.errorRecoveryDisabledLanes&=t,l.shellSuspendCounter=0;var f=l.entanglements,o=l.expirationTimes,s=l.hiddenUpdates;for(t=c&~t;0<t;){var v=31-ie(t),p=1<<v;f[v]=0,o[v]=-1;var m=s[v];if(m!==null)for(s[v]=null,v=0;v<m.length;v++){var h=m[v];h!==null&&(h.lane&=-536870913)}t&=~p}a!==0&&Ch(l,a,0),u!==0&&n===0&&l.tag!==0&&(l.suspendedLanes|=u&~(c&~e))}i(y1,"markRootFinished");function Ch(l,e,t){l.pendingLanes|=e,l.suspendedLanes&=~e;var a=31-ie(e);l.entangledLanes|=e,l.entanglements[a]=l.entanglements[a]|1073741824|t&261930}i(Ch,"markSpawnedDeferredLane");function kh(l,e){var t=l.entangledLanes|=e;for(l=l.entanglements;t;){var a=31-ie(t),n=1<<a;n&e|l[a]&e&&(l[a]|=e),t&=~n}}i(kh,"markRootEntangled");function Bh(l,e){var t=e&-e;return t=(t&42)!==0?1:cs(t),(t&(l.suspendedLanes|e))!==0?0:t}i(Bh,"getBumpedLaneForHydration");function cs(l){switch(l){case 2:l=1;break;case 8:l=4;break;case 32:l=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:l=128;break;case 268435456:l=134217728;break;default:l=0}return l}i(cs,"getBumpedLaneForHydrationByLane");function fs(l){return l&=-l,2<l?8<l?(l&134217727)!==0?32:268435456:8:2}i(fs,"lanesToEventPriority");function xh(){var l=Z.p;return l!==0?l:(l=window.event,l===void 0?32:av(l.type))}i(xh,"resolveUpdatePriority");function Pd(l,e){var t=Z.p;try{return Z.p=l,e()}finally{Z.p=t}}i(Pd,"runWithPriority");var Zt=Math.random().toString(36).slice(2),Hl="__reactFiber$"+Zt,Il="__reactProps$"+Zt,Sn="__reactContainer$"+Zt,po="__reactEvents$"+Zt,v1="__reactListeners$"+Zt,p1="__reactHandles$"+Zt,lm="__reactResources$"+Zt,qu="__reactMarker$"+Zt;function os(l){delete l[Hl],delete l[Il],delete l[po],delete l[v1],delete l[p1]}i(os,"detachDeletedInstance");function Za(l){var e=l[Hl];if(e)return e;for(var t=l.parentNode;t;){if(e=t[Sn]||t[Hl]){if(t=e.alternate,e.child!==null||t!==null&&t.child!==null)for(l=fh(l);l!==null;){if(t=l[Hl])return t;l=fh(l)}return e}l=t,t=l.parentNode}return null}i(Za,"getClosestInstanceFromNode");function zn(l){if(l=l[Hl]||l[Sn]){var e=l.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return l}return null}i(zn,"getInstanceFromNode");function tu(l){var e=l.tag;if(e===5||e===26||e===27||e===6)return l.stateNode;throw Error(S(33))}i(tu,"getNodeFromInstance");function en(l){var e=l[lm];return e||(e=l[lm]={hoistableStyles:new Map,hoistableScripts:new Map}),e}i(en,"getResourcesFromRoot");function Ol(l){l[qu]=!0}i(Ol,"markNodeAsHoistable");var Hh=new Set,qh={};function pa(l,e){sn(l,e),sn(l+"Capture",e)}i(pa,"registerTwoPhaseEvent");function sn(l,e){for(qh[l]=e,l=0;l<e.length;l++)Hh.add(e[l])}i(sn,"registerDirectEvent");var g1=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),em={},tm={};function b1(l){return vo.call(tm,l)?!0:vo.call(em,l)?!1:g1.test(l)?tm[l]=!0:(em[l]=!0,!1)}i(b1,"isAttributeNameSafe");function Ci(l,e,t){if(b1(e))if(t===null)l.removeAttribute(e);else{switch(typeof t){case"undefined":case"function":case"symbol":l.removeAttribute(e);return;case"boolean":var a=e.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){l.removeAttribute(e);return}}l.setAttribute(e,""+t)}}i(Ci,"setValueForAttribute");function pi(l,e,t){if(t===null)l.removeAttribute(e);else{switch(typeof t){case"undefined":case"function":case"symbol":case"boolean":l.removeAttribute(e);return}l.setAttribute(e,""+t)}}i(pi,"setValueForKnownAttribute");function Je(l,e,t,a){if(a===null)l.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":l.removeAttribute(t);return}l.setAttributeNS(e,t,""+a)}}i(Je,"setValueForNamespacedAttribute");function he(l){switch(typeof l){case"bigint":case"boolean":case"number":case"string":case"undefined":return l;case"object":return l;default:return""}}i(he,"getToStringValue");function Rh(l){var e=l.type;return(l=l.nodeName)&&l.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}i(Rh,"isCheckable");function S1(l,e,t){var a=Object.getOwnPropertyDescriptor(l.constructor.prototype,e);if(!l.hasOwnProperty(e)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,u=a.set;return Object.defineProperty(l,e,{configurable:!0,get:i(function(){return n.call(this)},"get"),set:i(function(c){t=""+c,u.call(this,c)},"set")}),Object.defineProperty(l,e,{enumerable:a.enumerable}),{getValue:i(function(){return t},"getValue"),setValue:i(function(c){t=""+c},"setValue"),stopTracking:i(function(){l._valueTracker=null,delete l[e]},"stopTracking")}}}i(S1,"trackValueOnNode");function go(l){if(!l._valueTracker){var e=Rh(l)?"checked":"value";l._valueTracker=S1(l,e,""+l[e])}}i(go,"track");function Yh(l){if(!l)return!1;var e=l._valueTracker;if(!e)return!0;var t=e.getValue(),a="";return l&&(a=Rh(l)?l.checked?"true":"false":l.value),l=a,l!==t?(e.setValue(l),!0):!1}i(Yh,"updateValueIfChanged");function Fi(l){if(l=l||(typeof document<"u"?document:void 0),typeof l>"u")return null;try{return l.activeElement||l.body}catch{return l.body}}i(Fi,"getActiveElement");var z1=/[\n"\\]/g;function pe(l){return l.replace(z1,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}i(pe,"escapeSelectorAttributeValueInsideDoubleQuotes");function bo(l,e,t,a,n,u,c,f){l.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?l.type=c:l.removeAttribute("type"),e!=null?c==="number"?(e===0&&l.value===""||l.value!=e)&&(l.value=""+he(e)):l.value!==""+he(e)&&(l.value=""+he(e)):c!=="submit"&&c!=="reset"||l.removeAttribute("value"),e!=null?So(l,c,he(e)):t!=null?So(l,c,he(t)):a!=null&&l.removeAttribute("value"),n==null&&u!=null&&(l.defaultChecked=!!u),n!=null&&(l.checked=n&&typeof n!="function"&&typeof n!="symbol"),f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?l.name=""+he(f):l.removeAttribute("name")}i(bo,"updateInput");function Gh(l,e,t,a,n,u,c,f){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(l.type=u),e!=null||t!=null){if(!(u!=="submit"&&u!=="reset"||e!=null)){go(l);return}t=t!=null?""+he(t):"",e=e!=null?""+he(e):t,f||e===l.value||(l.value=e),l.defaultValue=e}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,l.checked=f?l.checked:!!a,l.defaultChecked=!!a,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(l.name=c),go(l)}i(Gh,"initInput");function So(l,e,t){e==="number"&&Fi(l.ownerDocument)===l||l.defaultValue===""+t||(l.defaultValue=""+t)}i(So,"setDefaultValue");function tn(l,e,t,a){if(l=l.options,e){e={};for(var n=0;n<t.length;n++)e["$"+t[n]]=!0;for(t=0;t<l.length;t++)n=e.hasOwnProperty("$"+l[t].value),l[t].selected!==n&&(l[t].selected=n),n&&a&&(l[t].defaultSelected=!0)}else{for(t=""+he(t),e=null,n=0;n<l.length;n++){if(l[n].value===t){l[n].selected=!0,a&&(l[n].defaultSelected=!0);return}e!==null||l[n].disabled||(e=l[n])}e!==null&&(e.selected=!0)}}i(tn,"updateOptions");function Vh(l,e,t){if(e!=null&&(e=""+he(e),e!==l.value&&(l.value=e),t==null)){l.defaultValue!==e&&(l.defaultValue=e);return}l.defaultValue=t!=null?""+he(t):""}i(Vh,"updateTextarea");function Qh(l,e,t,a){if(e==null){if(a!=null){if(t!=null)throw Error(S(92));if(eu(a)){if(1<a.length)throw Error(S(93));a=a[0]}t=a}t==null&&(t=""),e=t}t=he(e),l.defaultValue=t,a=l.textContent,a===t&&a!==""&&a!==null&&(l.value=a),go(l)}i(Qh,"initTextarea");function rn(l,e){if(e){var t=l.firstChild;if(t&&t===l.lastChild&&t.nodeType===3){t.nodeValue=e;return}}l.textContent=e}i(rn,"setTextContent");var T1=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function am(l,e,t){var a=e.indexOf("--")===0;t==null||typeof t=="boolean"||t===""?a?l.setProperty(e,""):e==="float"?l.cssFloat="":l[e]="":a?l.setProperty(e,t):typeof t!="number"||t===0||T1.has(e)?e==="float"?l.cssFloat=t:l[e]=(""+t).trim():l[e]=t+"px"}i(am,"setValueForStyle");function Xh(l,e,t){if(e!=null&&typeof e!="object")throw Error(S(62));if(l=l.style,t!=null){for(var a in t)!t.hasOwnProperty(a)||e!=null&&e.hasOwnProperty(a)||(a.indexOf("--")===0?l.setProperty(a,""):a==="float"?l.cssFloat="":l[a]="");for(var n in e)a=e[n],e.hasOwnProperty(n)&&t[n]!==a&&am(l,n,a)}else for(var u in e)e.hasOwnProperty(u)&&am(l,u,e[u])}i(Xh,"setValueForStyles");function ss(l){if(l.indexOf("-")===-1)return!1;switch(l){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}i(ss,"isCustomElement");var A1=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),E1=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function ki(l){return E1.test(""+l)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":l}i(ki,"sanitizeURL");function et(){}i(et,"noop$1");var zo=null;function rs(l){return l=l.target||l.srcElement||window,l.correspondingUseElement&&(l=l.correspondingUseElement),l.nodeType===3?l.parentNode:l}i(rs,"getEventTarget");var Ka=null,an=null;function nm(l){var e=zn(l);if(e&&(l=e.stateNode)){var t=l[Il]||null;l:switch(l=e.stateNode,e.type){case"input":if(bo(l,t.value,t.defaultValue,t.defaultValue,t.checked,t.defaultChecked,t.type,t.name),e=t.name,t.type==="radio"&&e!=null){for(t=l;t.parentNode;)t=t.parentNode;for(t=t.querySelectorAll('input[name="'+pe(""+e)+'"][type="radio"]'),e=0;e<t.length;e++){var a=t[e];if(a!==l&&a.form===l.form){var n=a[Il]||null;if(!n)throw Error(S(90));bo(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(e=0;e<t.length;e++)a=t[e],a.form===l.form&&Yh(a)}break l;case"textarea":Vh(l,t.value,t.defaultValue);break l;case"select":e=t.value,e!=null&&tn(l,!!t.multiple,e,!1)}}}i(nm,"restoreStateOfTarget");var xf=!1;function jh(l,e,t){if(xf)return l(e,t);xf=!0;try{var a=l(e);return a}finally{if(xf=!1,(Ka!==null||an!==null)&&(Bc(),Ka&&(e=Ka,l=an,an=Ka=null,nm(e),l)))for(e=0;e<l.length;e++)nm(l[e])}}i(jh,"batchedUpdates$1");function bu(l,e){var t=l.stateNode;if(t===null)return null;var a=t[Il]||null;if(a===null)return null;t=a[e];l:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(l=l.type,a=!(l==="button"||l==="input"||l==="select"||l==="textarea")),l=!a;break l;default:l=!1}if(l)return null;if(t&&typeof t!="function")throw Error(S(231,e,typeof t));return t}i(bu,"getListener");var it=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),To=!1;if(it)try{Ya={},Object.defineProperty(Ya,"passive",{get:i(function(){To=!0},"get")}),window.addEventListener("test",Ya,Ya),window.removeEventListener("test",Ya,Ya)}catch{To=!1}var Ya,Ot=null,ds=null,Bi=null;function Lh(){if(Bi)return Bi;var l,e=ds,t=e.length,a,n="value"in Ot?Ot.value:Ot.textContent,u=n.length;for(l=0;l<t&&e[l]===n[l];l++);var c=t-l;for(a=1;a<=c&&e[t-a]===n[u-a];a++);return Bi=n.slice(l,1<a?1-a:void 0)}i(Lh,"getData");function xi(l){var e=l.keyCode;return"charCode"in l?(l=l.charCode,l===0&&e===13&&(l=13)):l=e,l===10&&(l=13),32<=l||l===13?l:0}i(xi,"getEventCharCode");function gi(){return!0}i(gi,"functionThatReturnsTrue");function um(){return!1}i(um,"functionThatReturnsFalse");function Pl(l){function e(t,a,n,u,c){this._reactName=t,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=c,this.currentTarget=null;for(var f in l)l.hasOwnProperty(f)&&(t=l[f],this[f]=t?t(u):u[f]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?gi:um,this.isPropagationStopped=um,this}return i(e,"SyntheticBaseEvent"),ul(e.prototype,{preventDefault:i(function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():typeof t.returnValue!="unknown"&&(t.returnValue=!1),this.isDefaultPrevented=gi)},"preventDefault"),stopPropagation:i(function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():typeof t.cancelBubble!="unknown"&&(t.cancelBubble=!0),this.isPropagationStopped=gi)},"stopPropagation"),persist:i(function(){},"persist"),isPersistent:gi}),e}i(Pl,"createSyntheticEvent");var ga={eventPhase:0,bubbles:0,cancelable:0,timeStamp:i(function(l){return l.timeStamp||Date.now()},"timeStamp"),defaultPrevented:0,isTrusted:0},Tc=Pl(ga),Ru=ul({},ga,{view:0,detail:0}),N1=Pl(Ru),Hf,qf,wn,Ac=ul({},Ru,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ms,button:0,buttons:0,relatedTarget:i(function(l){return l.relatedTarget===void 0?l.fromElement===l.srcElement?l.toElement:l.fromElement:l.relatedTarget},"relatedTarget"),movementX:i(function(l){return"movementX"in l?l.movementX:(l!==wn&&(wn&&l.type==="mousemove"?(Hf=l.screenX-wn.screenX,qf=l.screenY-wn.screenY):qf=Hf=0,wn=l),Hf)},"movementX"),movementY:i(function(l){return"movementY"in l?l.movementY:qf},"movementY")}),im=Pl(Ac),_1=ul({},Ac,{dataTransfer:0}),M1=Pl(_1),O1=ul({},Ru,{relatedTarget:0}),Rf=Pl(O1),U1=ul({},ga,{animationName:0,elapsedTime:0,pseudoElement:0}),D1=Pl(U1),C1=ul({},ga,{clipboardData:i(function(l){return"clipboardData"in l?l.clipboardData:window.clipboardData},"clipboardData")}),k1=Pl(C1),B1=ul({},ga,{data:0}),cm=Pl(B1),x1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},H1={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},q1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function R1(l){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(l):(l=q1[l])?!!e[l]:!1}i(R1,"modifierStateGetter");function ms(){return R1}i(ms,"getEventModifierState");var Y1=ul({},Ru,{key:i(function(l){if(l.key){var e=x1[l.key]||l.key;if(e!=="Unidentified")return e}return l.type==="keypress"?(l=xi(l),l===13?"Enter":String.fromCharCode(l)):l.type==="keydown"||l.type==="keyup"?H1[l.keyCode]||"Unidentified":""},"key"),code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ms,charCode:i(function(l){return l.type==="keypress"?xi(l):0},"charCode"),keyCode:i(function(l){return l.type==="keydown"||l.type==="keyup"?l.keyCode:0},"keyCode"),which:i(function(l){return l.type==="keypress"?xi(l):l.type==="keydown"||l.type==="keyup"?l.keyCode:0},"which")}),G1=Pl(Y1),V1=ul({},Ac,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),fm=Pl(V1),Q1=ul({},Ru,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ms}),X1=Pl(Q1),j1=ul({},ga,{propertyName:0,elapsedTime:0,pseudoElement:0}),L1=Pl(j1),Z1=ul({},Ac,{deltaX:i(function(l){return"deltaX"in l?l.deltaX:"wheelDeltaX"in l?-l.wheelDeltaX:0},"deltaX"),deltaY:i(function(l){return"deltaY"in l?l.deltaY:"wheelDeltaY"in l?-l.wheelDeltaY:"wheelDelta"in l?-l.wheelDelta:0},"deltaY"),deltaZ:0,deltaMode:0}),K1=Pl(Z1),J1=ul({},ga,{newState:0,oldState:0}),w1=Pl(J1),W1=[9,13,27,32],hs=it&&"CompositionEvent"in window,uu=null;it&&"documentMode"in document&&(uu=document.documentMode);var F1=it&&"TextEvent"in window&&!uu,Zh=it&&(!hs||uu&&8<uu&&11>=uu),om=" ",sm=!1;function Kh(l,e){switch(l){case"keyup":return W1.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}i(Kh,"isFallbackCompositionEnd");function Jh(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}i(Jh,"getDataFromCustomEvent");var Ja=!1;function $1(l,e){switch(l){case"compositionend":return Jh(e);case"keypress":return e.which!==32?null:(sm=!0,om);case"textInput":return l=e.data,l===om&&sm?null:l;default:return null}}i($1,"getNativeBeforeInputChars");function I1(l,e){if(Ja)return l==="compositionend"||!hs&&Kh(l,e)?(l=Lh(),Bi=ds=Ot=null,Ja=!1,l):null;switch(l){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Zh&&e.locale!=="ko"?null:e.data;default:return null}}i(I1,"getFallbackBeforeInputChars");var P1={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function rm(l){var e=l&&l.nodeName&&l.nodeName.toLowerCase();return e==="input"?!!P1[l.type]:e==="textarea"}i(rm,"isTextInputElement");function wh(l,e,t,a){Ka?an?an.push(a):an=[a]:Ka=a,e=hc(e,"onChange"),0<e.length&&(t=new Tc("onChange","change",null,t,a),l.push({event:t,listeners:e}))}i(wh,"createAndAccumulateChangeEvent");var iu=null,Su=null;function lp(l){jy(l,0)}i(lp,"runEventInBatch");function Ec(l){var e=tu(l);if(Yh(e))return l}i(Ec,"getInstIfValueChanged");function dm(l,e){if(l==="change")return e}i(dm,"getTargetInstForChangeEvent");var Wh=!1;it&&(it?(Si="oninput"in document,Si||(Yf=document.createElement("div"),Yf.setAttribute("oninput","return;"),Si=typeof Yf.oninput=="function"),bi=Si):bi=!1,Wh=bi&&(!document.documentMode||9<document.documentMode));var bi,Si,Yf;function mm(){iu&&(iu.detachEvent("onpropertychange",Fh),Su=iu=null)}i(mm,"stopWatchingForValueChange");function Fh(l){if(l.propertyName==="value"&&Ec(Su)){var e=[];wh(e,Su,l,rs(l)),jh(lp,e)}}i(Fh,"handlePropertyChange");function ep(l,e,t){l==="focusin"?(mm(),iu=e,Su=t,iu.attachEvent("onpropertychange",Fh)):l==="focusout"&&mm()}i(ep,"handleEventsForInputEventPolyfill");function tp(l){if(l==="selectionchange"||l==="keyup"||l==="keydown")return Ec(Su)}i(tp,"getTargetInstForInputEventPolyfill");function ap(l,e){if(l==="click")return Ec(e)}i(ap,"getTargetInstForClickEvent");function np(l,e){if(l==="input"||l==="change")return Ec(e)}i(np,"getTargetInstForInputOrChangeEvent");function up(l,e){return l===e&&(l!==0||1/l===1/e)||l!==l&&e!==e}i(up,"is");var fe=typeof Object.is=="function"?Object.is:up;function zu(l,e){if(fe(l,e))return!0;if(typeof l!="object"||l===null||typeof e!="object"||e===null)return!1;var t=Object.keys(l),a=Object.keys(e);if(t.length!==a.length)return!1;for(a=0;a<t.length;a++){var n=t[a];if(!vo.call(e,n)||!fe(l[n],e[n]))return!1}return!0}i(zu,"shallowEqual");function hm(l){for(;l&&l.firstChild;)l=l.firstChild;return l}i(hm,"getLeafNode");function ym(l,e){var t=hm(l);l=0;for(var a;t;){if(t.nodeType===3){if(a=l+t.textContent.length,l<=e&&a>=e)return{node:t,offset:e-l};l=a}l:{for(;t;){if(t.nextSibling){t=t.nextSibling;break l}t=t.parentNode}t=void 0}t=hm(t)}}i(ym,"getNodeForCharacterOffset");function $h(l,e){return l&&e?l===e?!0:l&&l.nodeType===3?!1:e&&e.nodeType===3?$h(l,e.parentNode):"contains"in l?l.contains(e):l.compareDocumentPosition?!!(l.compareDocumentPosition(e)&16):!1:!1}i($h,"containsNode");function Ih(l){l=l!=null&&l.ownerDocument!=null&&l.ownerDocument.defaultView!=null?l.ownerDocument.defaultView:window;for(var e=Fi(l.document);e instanceof l.HTMLIFrameElement;){try{var t=typeof e.contentWindow.location.href=="string"}catch{t=!1}if(t)l=e.contentWindow;else break;e=Fi(l.document)}return e}i(Ih,"getActiveElementDeep");function ys(l){var e=l&&l.nodeName&&l.nodeName.toLowerCase();return e&&(e==="input"&&(l.type==="text"||l.type==="search"||l.type==="tel"||l.type==="url"||l.type==="password")||e==="textarea"||l.contentEditable==="true")}i(ys,"hasSelectionCapabilities");var ip=it&&"documentMode"in document&&11>=document.documentMode,wa=null,Ao=null,cu=null,Eo=!1;function vm(l,e,t){var a=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;Eo||wa==null||wa!==Fi(a)||(a=wa,"selectionStart"in a&&ys(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),cu&&zu(cu,a)||(cu=a,a=hc(Ao,"onSelect"),0<a.length&&(e=new Tc("onSelect","select",null,e,t),l.push({event:e,listeners:a}),e.target=wa)))}i(vm,"constructSelectEvent");function ta(l,e){var t={};return t[l.toLowerCase()]=e.toLowerCase(),t["Webkit"+l]="webkit"+e,t["Moz"+l]="moz"+e,t}i(ta,"makePrefixMap");var Wa={animationend:ta("Animation","AnimationEnd"),animationiteration:ta("Animation","AnimationIteration"),animationstart:ta("Animation","AnimationStart"),transitionrun:ta("Transition","TransitionRun"),transitionstart:ta("Transition","TransitionStart"),transitioncancel:ta("Transition","TransitionCancel"),transitionend:ta("Transition","TransitionEnd")},Gf={},Ph={};it&&(Ph=document.createElement("div").style,"AnimationEvent"in window||(delete Wa.animationend.animation,delete Wa.animationiteration.animation,delete Wa.animationstart.animation),"TransitionEvent"in window||delete Wa.transitionend.transition);function ba(l){if(Gf[l])return Gf[l];if(!Wa[l])return l;var e=Wa[l],t;for(t in e)if(e.hasOwnProperty(t)&&t in Ph)return Gf[l]=e[t];return l}i(ba,"getVendorPrefixedEventName");var l0=ba("animationend"),e0=ba("animationiteration"),t0=ba("animationstart"),cp=ba("transitionrun"),fp=ba("transitionstart"),op=ba("transitioncancel"),a0=ba("transitionend"),n0=new Map,No="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");No.push("scrollEnd");function Me(l,e){n0.set(l,e),pa(e,[l])}i(Me,"registerSimpleEvent");var $i=typeof reportError=="function"?reportError:function(l){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof l=="object"&&l!==null&&typeof l.message=="string"?String(l.message):String(l),error:l});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",l);return}console.error(l)},me=[],Fa=0,vs=0;function Nc(){for(var l=Fa,e=vs=Fa=0;e<l;){var t=me[e];me[e++]=null;var a=me[e];me[e++]=null;var n=me[e];me[e++]=null;var u=me[e];if(me[e++]=null,a!==null&&n!==null){var c=a.pending;c===null?n.next=n:(n.next=c.next,c.next=n),a.pending=n}u!==0&&u0(t,n,u)}}i(Nc,"finishQueueingConcurrentUpdates");function _c(l,e,t,a){me[Fa++]=l,me[Fa++]=e,me[Fa++]=t,me[Fa++]=a,vs|=a,l.lanes|=a,l=l.alternate,l!==null&&(l.lanes|=a)}i(_c,"enqueueUpdate$1");function ps(l,e,t,a){return _c(l,e,t,a),Ii(l)}i(ps,"enqueueConcurrentHookUpdate");function Sa(l,e){return _c(l,null,null,e),Ii(l)}i(Sa,"enqueueConcurrentRenderForLane");function u0(l,e,t){l.lanes|=t;var a=l.alternate;a!==null&&(a.lanes|=t);for(var n=!1,u=l.return;u!==null;)u.childLanes|=t,a=u.alternate,a!==null&&(a.childLanes|=t),u.tag===22&&(l=u.stateNode,l===null||l._visibility&1||(n=!0)),l=u,u=u.return;return l.tag===3?(u=l.stateNode,n&&e!==null&&(n=31-ie(t),l=u.hiddenUpdates,a=l[n],a===null?l[n]=[e]:a.push(e),e.lane=t|536870912),u):null}i(u0,"markUpdateLaneFromFiberToRoot");function Ii(l){if(50<vu)throw vu=0,Ko=null,Error(S(185));for(var e=l.return;e!==null;)l=e,e=l.return;return l.tag===3?l.stateNode:null}i(Ii,"getRootForUpdatedFiber");var $a={};function sp(l,e,t,a){this.tag=l,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}i(sp,"FiberNode");function te(l,e,t,a){return new sp(l,e,t,a)}i(te,"createFiberImplClass");function gs(l){return l=l.prototype,!(!l||!l.isReactComponent)}i(gs,"shouldConstruct");function at(l,e){var t=l.alternate;return t===null?(t=te(l.tag,e,l.key,l.mode),t.elementType=l.elementType,t.type=l.type,t.stateNode=l.stateNode,t.alternate=l,l.alternate=t):(t.pendingProps=e,t.type=l.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=l.flags&65011712,t.childLanes=l.childLanes,t.lanes=l.lanes,t.child=l.child,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,e=l.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},t.sibling=l.sibling,t.index=l.index,t.ref=l.ref,t.refCleanup=l.refCleanup,t}i(at,"createWorkInProgress");function i0(l,e){l.flags&=65011714;var t=l.alternate;return t===null?(l.childLanes=0,l.lanes=e,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,l.type=t.type,e=t.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),l}i(i0,"resetWorkInProgress");function Hi(l,e,t,a,n,u){var c=0;if(a=l,typeof l=="function")gs(l)&&(c=1);else if(typeof l=="string")c=mg(l,t,Ye.current)?26:l==="html"||l==="head"||l==="body"?27:5;else l:switch(l){case ro:return l=te(31,t,e,n),l.elementType=ro,l.lanes=u,l;case ja:return fa(t.children,n,u,e);case Nh:c=8,n|=24;break;case fo:return l=te(12,t,e,n|2),l.elementType=fo,l.lanes=u,l;case oo:return l=te(13,t,e,n),l.elementType=oo,l.lanes=u,l;case so:return l=te(19,t,e,n),l.elementType=so,l.lanes=u,l;default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case lt:c=10;break l;case _h:c=9;break l;case ns:c=11;break l;case us:c=14;break l;case zt:c=16,a=null;break l}c=29,t=Error(S(130,l===null?"null":typeof l,"")),a=null}return e=te(c,t,e,n),e.elementType=l,e.type=a,e.lanes=u,e}i(Hi,"createFiberFromTypeAndProps");function fa(l,e,t,a){return l=te(7,l,a,e),l.lanes=t,l}i(fa,"createFiberFromFragment");function Vf(l,e,t){return l=te(6,l,null,e),l.lanes=t,l}i(Vf,"createFiberFromText");function c0(l){var e=te(18,null,null,0);return e.stateNode=l,e}i(c0,"createFiberFromDehydratedFragment");function Qf(l,e,t){return e=te(4,l.children!==null?l.children:[],l.key,e),e.lanes=t,e.stateNode={containerInfo:l.containerInfo,pendingChildren:null,implementation:l.implementation},e}i(Qf,"createFiberFromPortal");var pm=new WeakMap;function ge(l,e){if(typeof l=="object"&&l!==null){var t=pm.get(l);return t!==void 0?t:(e={value:l,source:e,stack:Id(e)},pm.set(l,e),e)}return{value:l,source:e,stack:Id(e)}}i(ge,"createCapturedValueAtFiber");var Ia=[],Pa=0,Pi=null,Tu=0,ye=[],ve=0,Qt=null,He=1,qe="";function Ie(l,e){Ia[Pa++]=Tu,Ia[Pa++]=Pi,Pi=l,Tu=e}i(Ie,"pushTreeFork");function f0(l,e,t){ye[ve++]=He,ye[ve++]=qe,ye[ve++]=Qt,Qt=l;var a=He;l=qe;var n=32-ie(a)-1;a&=~(1<<n),t+=1;var u=32-ie(e)+n;if(30<u){var c=n-n%5;u=(a&(1<<c)-1).toString(32),a>>=c,n-=c,He=1<<32-ie(e)+n|t<<n|a,qe=u+l}else He=1<<u|t<<n|a,qe=l}i(f0,"pushTreeId");function bs(l){l.return!==null&&(Ie(l,1),f0(l,1,0))}i(bs,"pushMaterializedTreeId");function Ss(l){for(;l===Pi;)Pi=Ia[--Pa],Ia[Pa]=null,Tu=Ia[--Pa],Ia[Pa]=null;for(;l===Qt;)Qt=ye[--ve],ye[ve]=null,qe=ye[--ve],ye[ve]=null,He=ye[--ve],ye[ve]=null}i(Ss,"popTreeContext");function o0(l,e){ye[ve++]=He,ye[ve++]=qe,ye[ve++]=Qt,He=e.id,qe=e.overflow,Qt=l}i(o0,"restoreSuspendedTreeContext");var ql=null,nl=null,j=!1,Bt=null,be=!1,_o=Error(S(519));function Xt(l){var e=Error(S(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Au(ge(e,l)),_o}i(Xt,"throwOnHydrationMismatch");function gm(l){var e=l.stateNode,t=l.type,a=l.memoizedProps;switch(e[Hl]=l,e[Il]=a,t){case"dialog":Y("cancel",e),Y("close",e);break;case"iframe":case"object":case"embed":Y("load",e);break;case"video":case"audio":for(t=0;t<Mu.length;t++)Y(Mu[t],e);break;case"source":Y("error",e);break;case"img":case"image":case"link":Y("error",e),Y("load",e);break;case"details":Y("toggle",e);break;case"input":Y("invalid",e),Gh(e,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":Y("invalid",e);break;case"textarea":Y("invalid",e),Qh(e,a.value,a.defaultValue,a.children)}t=a.children,typeof t!="string"&&typeof t!="number"&&typeof t!="bigint"||e.textContent===""+t||a.suppressHydrationWarning===!0||Zy(e.textContent,t)?(a.popover!=null&&(Y("beforetoggle",e),Y("toggle",e)),a.onScroll!=null&&Y("scroll",e),a.onScrollEnd!=null&&Y("scrollend",e),a.onClick!=null&&(e.onclick=et),e=!0):e=!1,e||Xt(l,!0)}i(gm,"prepareToHydrateHostInstance");function bm(l){for(ql=l.return;ql;)switch(ql.tag){case 5:case 31:case 13:be=!1;return;case 27:case 3:be=!0;return;default:ql=ql.return}}i(bm,"popToNextHostParent");function Ga(l){if(l!==ql)return!1;if(!j)return bm(l),j=!0,!1;var e=l.tag,t;if((t=e!==3&&e!==27)&&((t=e===5)&&(t=l.type,t=!(t!=="form"&&t!=="button")||$o(l.type,l.memoizedProps)),t=!t),t&&nl&&Xt(l),bm(l),e===13){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(S(317));nl=ch(l)}else if(e===31){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(S(317));nl=ch(l)}else e===27?(e=nl,Kt(l.type)?(l=es,es=null,nl=l):nl=e):nl=ql?ze(l.stateNode.nextSibling):null;return!0}i(Ga,"popHydrationState");function da(){nl=ql=null,j=!1}i(da,"resetHydrationState");function Xf(){var l=Bt;return l!==null&&(Fl===null?Fl=l:Fl.push.apply(Fl,l),Bt=null),l}i(Xf,"upgradeHydrationErrorsToRecoverable");function Au(l){Bt===null?Bt=[l]:Bt.push(l)}i(Au,"queueHydrationError");var Mo=Ge(null),za=null,tt=null;function At(l,e,t){tl(Mo,e._currentValue),e._currentValue=t}i(At,"pushProvider");function nt(l){l._currentValue=Mo.current,Ul(Mo)}i(nt,"popProvider");function Oo(l,e,t){for(;l!==null;){var a=l.alternate;if((l.childLanes&e)!==e?(l.childLanes|=e,a!==null&&(a.childLanes|=e)):a!==null&&(a.childLanes&e)!==e&&(a.childLanes|=e),l===t)break;l=l.return}}i(Oo,"scheduleContextWorkOnParentPath");function Uo(l,e,t,a){var n=l.child;for(n!==null&&(n.return=l);n!==null;){var u=n.dependencies;if(u!==null){var c=n.child;u=u.firstContext;l:for(;u!==null;){var f=u;u=n;for(var o=0;o<e.length;o++)if(f.context===e[o]){u.lanes|=t,f=u.alternate,f!==null&&(f.lanes|=t),Oo(u.return,t,l),a||(c=null);break l}u=f.next}}else if(n.tag===18){if(c=n.return,c===null)throw Error(S(341));c.lanes|=t,u=c.alternate,u!==null&&(u.lanes|=t),Oo(c,t,l),c=null}else c=n.child;if(c!==null)c.return=n;else for(c=n;c!==null;){if(c===l){c=null;break}if(n=c.sibling,n!==null){n.return=c.return,c=n;break}c=c.return}n=c}}i(Uo,"propagateContextChanges");function Tn(l,e,t,a){l=null;for(var n=e,u=!1;n!==null;){if(!u){if((n.flags&524288)!==0)u=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var c=n.alternate;if(c===null)throw Error(S(387));if(c=c.memoizedProps,c!==null){var f=n.type;fe(n.pendingProps.value,c.value)||(l!==null?l.push(f):l=[f])}}else if(n===Ki.current){if(c=n.alternate,c===null)throw Error(S(387));c.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(l!==null?l.push(Uu):l=[Uu])}n=n.return}l!==null&&Uo(e,l,t,a),e.flags|=262144}i(Tn,"propagateParentContextChanges");function lc(l){for(l=l.firstContext;l!==null;){if(!fe(l.context._currentValue,l.memoizedValue))return!0;l=l.next}return!1}i(lc,"checkIfContextChanged");function ma(l){za=l,tt=null,l=l.dependencies,l!==null&&(l.firstContext=null)}i(ma,"prepareToReadContext");function Rl(l){return s0(za,l)}i(Rl,"readContext");function zi(l,e){return za===null&&ma(l),s0(l,e)}i(zi,"readContextDuringReconciliation");function s0(l,e){var t=e._currentValue;if(e={context:e,memoizedValue:t,next:null},tt===null){if(l===null)throw Error(S(308));tt=e,l.dependencies={lanes:0,firstContext:e},l.flags|=524288}else tt=tt.next=e;return t}i(s0,"readContextForConsumer");var rp=typeof AbortController<"u"?AbortController:function(){var l=[],e=this.signal={aborted:!1,addEventListener:i(function(t,a){l.push(a)},"addEventListener")};this.abort=function(){e.aborted=!0,l.forEach(function(t){return t()})}},dp=El.unstable_scheduleCallback,mp=El.unstable_NormalPriority,Sl={$$typeof:lt,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function zs(){return{controller:new rp,data:new Map,refCount:0}}i(zs,"createCache");function Yu(l){l.refCount--,l.refCount===0&&dp(mp,function(){l.controller.abort()})}i(Yu,"releaseCache");var fu=null,Do=0,dn=0,nn=null;function hp(l,e){if(fu===null){var t=fu=[];Do=0,dn=Ks(),nn={status:"pending",value:void 0,then:i(function(a){t.push(a)},"then")}}return Do++,e.then(Sm,Sm),e}i(hp,"entangleAsyncAction");function Sm(){if(--Do===0&&fu!==null){nn!==null&&(nn.status="fulfilled");var l=fu;fu=null,dn=0,nn=null;for(var e=0;e<l.length;e++)(0,l[e])()}}i(Sm,"pingEngtangledActionScope");function yp(l,e){var t=[],a={status:"pending",value:null,reason:null,then:i(function(n){t.push(n)},"then")};return l.then(function(){a.status="fulfilled",a.value=e;for(var n=0;n<t.length;n++)(0,t[n])(e)},function(n){for(a.status="rejected",a.reason=n,n=0;n<t.length;n++)(0,t[n])(void 0)}),a}i(yp,"chainThenableValue");var zm=x.S;x.S=function(l,e){Ey=ne(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&hp(l,e),zm!==null&&zm(l,e)};var oa=Ge(null);function Ts(){var l=oa.current;return l!==null?l:ll.pooledCache}i(Ts,"peekCacheFromPool");function qi(l,e){e===null?tl(oa,oa.current):tl(oa,e.pool)}i(qi,"pushTransition");function r0(){var l=Ts();return l===null?null:{parent:Sl._currentValue,pool:l}}i(r0,"getSuspendedCache");var An=Error(S(460)),As=Error(S(474)),Mc=Error(S(542)),ec={then:i(function(){},"then")};function Tm(l){return l=l.status,l==="fulfilled"||l==="rejected"}i(Tm,"isThenableResolved");function d0(l,e,t){switch(t=l[t],t===void 0?l.push(e):t!==e&&(e.then(et,et),e=t),e.status){case"fulfilled":return e.value;case"rejected":throw l=e.reason,Em(l),l;default:if(typeof e.status=="string")e.then(et,et);else{if(l=ll,l!==null&&100<l.shellSuspendCounter)throw Error(S(482));l=e,l.status="pending",l.then(function(a){if(e.status==="pending"){var n=e;n.status="fulfilled",n.value=a}},function(a){if(e.status==="pending"){var n=e;n.status="rejected",n.reason=a}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw l=e.reason,Em(l),l}throw sa=e,An}}i(d0,"trackUsedThenable");function ua(l){try{var e=l._init;return e(l._payload)}catch(t){throw t!==null&&typeof t=="object"&&typeof t.then=="function"?(sa=t,An):t}}i(ua,"resolveLazy");var sa=null;function Am(){if(sa===null)throw Error(S(459));var l=sa;return sa=null,l}i(Am,"getSuspendedThenable");function Em(l){if(l===An||l===Mc)throw Error(S(483))}i(Em,"checkIfUseWrappedInAsyncCatch");var un=null,Eu=0;function Ti(l){var e=Eu;return Eu+=1,un===null&&(un=[]),d0(un,l,e)}i(Ti,"unwrapThenable");function Wn(l,e){e=e.props.ref,l.ref=e!==void 0?e:null}i(Wn,"coerceRef");function Ai(l,e){throw e.$$typeof===e1?Error(S(525)):(l=Object.prototype.toString.call(e),Error(S(31,l==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":l)))}i(Ai,"throwOnInvalidObjectTypeImpl");function m0(l){function e(d,r){if(l){var y=d.deletions;y===null?(d.deletions=[r],d.flags|=16):y.push(r)}}i(e,"deleteChild");function t(d,r){if(!l)return null;for(;r!==null;)e(d,r),r=r.sibling;return null}i(t,"deleteRemainingChildren");function a(d){for(var r=new Map;d!==null;)d.key!==null?r.set(d.key,d):r.set(d.index,d),d=d.sibling;return r}i(a,"mapRemainingChildren");function n(d,r){return d=at(d,r),d.index=0,d.sibling=null,d}i(n,"useFiber");function u(d,r,y){return d.index=y,l?(y=d.alternate,y!==null?(y=y.index,y<r?(d.flags|=67108866,r):y):(d.flags|=67108866,r)):(d.flags|=1048576,r)}i(u,"placeChild");function c(d){return l&&d.alternate===null&&(d.flags|=67108866),d}i(c,"placeSingleChild");function f(d,r,y,g){return r===null||r.tag!==6?(r=Vf(y,d.mode,g),r.return=d,r):(r=n(r,y),r.return=d,r)}i(f,"updateTextNode");function o(d,r,y,g){var A=y.type;return A===ja?v(d,r,y.props.children,g,y.key):r!==null&&(r.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===zt&&ua(A)===r.type)?(r=n(r,y.props),Wn(r,y),r.return=d,r):(r=Hi(y.type,y.key,y.props,null,d.mode,g),Wn(r,y),r.return=d,r)}i(o,"updateElement");function s(d,r,y,g){return r===null||r.tag!==4||r.stateNode.containerInfo!==y.containerInfo||r.stateNode.implementation!==y.implementation?(r=Qf(y,d.mode,g),r.return=d,r):(r=n(r,y.children||[]),r.return=d,r)}i(s,"updatePortal");function v(d,r,y,g,A){return r===null||r.tag!==7?(r=fa(y,d.mode,g,A),r.return=d,r):(r=n(r,y),r.return=d,r)}i(v,"updateFragment");function p(d,r,y){if(typeof r=="string"&&r!==""||typeof r=="number"||typeof r=="bigint")return r=Vf(""+r,d.mode,y),r.return=d,r;if(typeof r=="object"&&r!==null){switch(r.$$typeof){case mi:return y=Hi(r.type,r.key,r.props,null,d.mode,y),Wn(y,r),y.return=d,y;case lu:return r=Qf(r,d.mode,y),r.return=d,r;case zt:return r=ua(r),p(d,r,y)}if(eu(r)||Jn(r))return r=fa(r,d.mode,y,null),r.return=d,r;if(typeof r.then=="function")return p(d,Ti(r),y);if(r.$$typeof===lt)return p(d,zi(d,r),y);Ai(d,r)}return null}i(p,"createChild");function m(d,r,y,g){var A=r!==null?r.key:null;if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return A!==null?null:f(d,r,""+y,g);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case mi:return y.key===A?o(d,r,y,g):null;case lu:return y.key===A?s(d,r,y,g):null;case zt:return y=ua(y),m(d,r,y,g)}if(eu(y)||Jn(y))return A!==null?null:v(d,r,y,g,null);if(typeof y.then=="function")return m(d,r,Ti(y),g);if(y.$$typeof===lt)return m(d,r,zi(d,y),g);Ai(d,y)}return null}i(m,"updateSlot");function h(d,r,y,g,A){if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return d=d.get(y)||null,f(r,d,""+g,A);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case mi:return d=d.get(g.key===null?y:g.key)||null,o(r,d,g,A);case lu:return d=d.get(g.key===null?y:g.key)||null,s(r,d,g,A);case zt:return g=ua(g),h(d,r,y,g,A)}if(eu(g)||Jn(g))return d=d.get(y)||null,v(r,d,g,A,null);if(typeof g.then=="function")return h(d,r,y,Ti(g),A);if(g.$$typeof===lt)return h(d,r,y,zi(r,g),A);Ai(r,g)}return null}i(h,"updateFromMap");function b(d,r,y,g){for(var A=null,C=null,E=r,O=r=0,U=null;E!==null&&O<y.length;O++){E.index>O?(U=E,E=null):U=E.sibling;var _=m(d,E,y[O],g);if(_===null){E===null&&(E=U);break}l&&E&&_.alternate===null&&e(d,E),r=u(_,r,O),C===null?A=_:C.sibling=_,C=_,E=U}if(O===y.length)return t(d,E),j&&Ie(d,O),A;if(E===null){for(;O<y.length;O++)E=p(d,y[O],g),E!==null&&(r=u(E,r,O),C===null?A=E:C.sibling=E,C=E);return j&&Ie(d,O),A}for(E=a(E);O<y.length;O++)U=h(E,d,O,y[O],g),U!==null&&(l&&U.alternate!==null&&E.delete(U.key===null?O:U.key),r=u(U,r,O),C===null?A=U:C.sibling=U,C=U);return l&&E.forEach(function(ml){return e(d,ml)}),j&&Ie(d,O),A}i(b,"reconcileChildrenArray");function N(d,r,y,g){if(y==null)throw Error(S(151));for(var A=null,C=null,E=r,O=r=0,U=null,_=y.next();E!==null&&!_.done;O++,_=y.next()){E.index>O?(U=E,E=null):U=E.sibling;var ml=m(d,E,_.value,g);if(ml===null){E===null&&(E=U);break}l&&E&&ml.alternate===null&&e(d,E),r=u(ml,r,O),C===null?A=ml:C.sibling=ml,C=ml,E=U}if(_.done)return t(d,E),j&&Ie(d,O),A;if(E===null){for(;!_.done;O++,_=y.next())_=p(d,_.value,g),_!==null&&(r=u(_,r,O),C===null?A=_:C.sibling=_,C=_);return j&&Ie(d,O),A}for(E=a(E);!_.done;O++,_=y.next())_=h(E,d,O,_.value,g),_!==null&&(l&&_.alternate!==null&&E.delete(_.key===null?O:_.key),r=u(_,r,O),C===null?A=_:C.sibling=_,C=_);return l&&E.forEach(function(wt){return e(d,wt)}),j&&Ie(d,O),A}i(N,"reconcileChildrenIterator");function D(d,r,y,g){if(typeof y=="object"&&y!==null&&y.type===ja&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case mi:l:{for(var A=y.key;r!==null;){if(r.key===A){if(A=y.type,A===ja){if(r.tag===7){t(d,r.sibling),g=n(r,y.props.children),g.return=d,d=g;break l}}else if(r.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===zt&&ua(A)===r.type){t(d,r.sibling),g=n(r,y.props),Wn(g,y),g.return=d,d=g;break l}t(d,r);break}else e(d,r);r=r.sibling}y.type===ja?(g=fa(y.props.children,d.mode,g,y.key),g.return=d,d=g):(g=Hi(y.type,y.key,y.props,null,d.mode,g),Wn(g,y),g.return=d,d=g)}return c(d);case lu:l:{for(A=y.key;r!==null;){if(r.key===A)if(r.tag===4&&r.stateNode.containerInfo===y.containerInfo&&r.stateNode.implementation===y.implementation){t(d,r.sibling),g=n(r,y.children||[]),g.return=d,d=g;break l}else{t(d,r);break}else e(d,r);r=r.sibling}g=Qf(y,d.mode,g),g.return=d,d=g}return c(d);case zt:return y=ua(y),D(d,r,y,g)}if(eu(y))return b(d,r,y,g);if(Jn(y)){if(A=Jn(y),typeof A!="function")throw Error(S(150));return y=A.call(y),N(d,r,y,g)}if(typeof y.then=="function")return D(d,r,Ti(y),g);if(y.$$typeof===lt)return D(d,r,zi(d,y),g);Ai(d,y)}return typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint"?(y=""+y,r!==null&&r.tag===6?(t(d,r.sibling),g=n(r,y),g.return=d,d=g):(t(d,r),g=Vf(y,d.mode,g),g.return=d,d=g),c(d)):t(d,r)}return i(D,"reconcileChildFibersImpl"),function(d,r,y,g){try{Eu=0;var A=D(d,r,y,g);return un=null,A}catch(E){if(E===An||E===Mc)throw E;var C=te(29,E,null,d.mode);return C.lanes=g,C.return=d,C}}}i(m0,"createChildReconciler");var ha=m0(!0),h0=m0(!1),Tt=!1;function Es(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}i(Es,"initializeUpdateQueue");function Co(l,e){l=l.updateQueue,e.updateQueue===l&&(e.updateQueue={baseState:l.baseState,firstBaseUpdate:l.firstBaseUpdate,lastBaseUpdate:l.lastBaseUpdate,shared:l.shared,callbacks:null})}i(Co,"cloneUpdateQueue");function xt(l){return{lane:l,tag:0,payload:null,callback:null,next:null}}i(xt,"createUpdate");function Ht(l,e,t){var a=l.updateQueue;if(a===null)return null;if(a=a.shared,(L&2)!==0){var n=a.pending;return n===null?e.next=e:(e.next=n.next,n.next=e),a.pending=e,e=Ii(l),u0(l,null,t),e}return _c(l,a,e,t),Ii(l)}i(Ht,"enqueueUpdate");function ou(l,e,t){if(e=e.updateQueue,e!==null&&(e=e.shared,(t&4194048)!==0)){var a=e.lanes;a&=l.pendingLanes,t|=a,e.lanes=t,kh(l,t)}}i(ou,"entangleTransitions");function jf(l,e){var t=l.updateQueue,a=l.alternate;if(a!==null&&(a=a.updateQueue,t===a)){var n=null,u=null;if(t=t.firstBaseUpdate,t!==null){do{var c={lane:t.lane,tag:t.tag,payload:t.payload,callback:null,next:null};u===null?n=u=c:u=u.next=c,t=t.next}while(t!==null);u===null?n=u=e:u=u.next=e}else n=u=e;t={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},l.updateQueue=t;return}l=t.lastBaseUpdate,l===null?t.firstBaseUpdate=e:l.next=e,t.lastBaseUpdate=e}i(jf,"enqueueCapturedUpdate");var ko=!1;function su(){if(ko){var l=nn;if(l!==null)throw l}}i(su,"suspendIfUpdateReadFromEntangledAsyncAction");function ru(l,e,t,a){ko=!1;var n=l.updateQueue;Tt=!1;var u=n.firstBaseUpdate,c=n.lastBaseUpdate,f=n.shared.pending;if(f!==null){n.shared.pending=null;var o=f,s=o.next;o.next=null,c===null?u=s:c.next=s,c=o;var v=l.alternate;v!==null&&(v=v.updateQueue,f=v.lastBaseUpdate,f!==c&&(f===null?v.firstBaseUpdate=s:f.next=s,v.lastBaseUpdate=o))}if(u!==null){var p=n.baseState;c=0,v=s=o=null,f=u;do{var m=f.lane&-536870913,h=m!==f.lane;if(h?(V&m)===m:(a&m)===m){m!==0&&m===dn&&(ko=!0),v!==null&&(v=v.next={lane:0,tag:f.tag,payload:f.payload,callback:null,next:null});l:{var b=l,N=f;m=e;var D=t;switch(N.tag){case 1:if(b=N.payload,typeof b=="function"){p=b.call(D,p,m);break l}p=b;break l;case 3:b.flags=b.flags&-65537|128;case 0:if(b=N.payload,m=typeof b=="function"?b.call(D,p,m):b,m==null)break l;p=ul({},p,m);break l;case 2:Tt=!0}}m=f.callback,m!==null&&(l.flags|=64,h&&(l.flags|=8192),h=n.callbacks,h===null?n.callbacks=[m]:h.push(m))}else h={lane:m,tag:f.tag,payload:f.payload,callback:f.callback,next:null},v===null?(s=v=h,o=p):v=v.next=h,c|=m;if(f=f.next,f===null){if(f=n.shared.pending,f===null)break;h=f,f=h.next,h.next=null,n.lastBaseUpdate=h,n.shared.pending=null}}while(!0);v===null&&(o=p),n.baseState=o,n.firstBaseUpdate=s,n.lastBaseUpdate=v,u===null&&(n.shared.lanes=0),Lt|=c,l.lanes=c,l.memoizedState=p}}i(ru,"processUpdateQueue");function y0(l,e){if(typeof l!="function")throw Error(S(191,l));l.call(e)}i(y0,"callCallback");function v0(l,e){var t=l.callbacks;if(t!==null)for(l.callbacks=null,l=0;l<t.length;l++)y0(t[l],e)}i(v0,"commitCallbacks");var mn=Ge(null),tc=Ge(0);function Nm(l,e){l=st,tl(tc,l),tl(mn,e),st=l|e.baseLanes}i(Nm,"pushHiddenContext");function Bo(){tl(tc,st),tl(mn,mn.current)}i(Bo,"reuseHiddenContextOnStack");function Ns(){st=tc.current,Ul(mn),Ul(tc)}i(Ns,"popHiddenContext");var oe=Ge(null),Se=null;function Et(l){var e=l.alternate;tl(hl,hl.current&1),tl(oe,l),Se===null&&(e===null||mn.current!==null||e.memoizedState!==null)&&(Se=l)}i(Et,"pushPrimaryTreeSuspenseHandler");function xo(l){tl(hl,hl.current),tl(oe,l),Se===null&&(Se=l)}i(xo,"pushDehydratedActivitySuspenseHandler");function p0(l){l.tag===22?(tl(hl,hl.current),tl(oe,l),Se===null&&(Se=l)):Nt(l)}i(p0,"pushOffscreenSuspenseHandler");function Nt(){tl(hl,hl.current),tl(oe,oe.current)}i(Nt,"reuseSuspenseHandlerOnStack");function ee(l){Ul(oe),Se===l&&(Se=null),Ul(hl)}i(ee,"popSuspenseHandler");var hl=Ge(0);function ac(l){for(var e=l;e!==null;){if(e.tag===13){var t=e.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||Po(t)||ls(t)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===l)break;for(;e.sibling===null;){if(e.return===null||e.return===l)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}i(ac,"findFirstSuspended");var ct=0,R=null,I=null,gl=null,nc=!1,cn=!1,ya=!1,uc=0,Nu=0,fn=null,vp=0;function rl(){throw Error(S(321))}i(rl,"throwInvalidHookError");function _s(l,e){if(e===null)return!1;for(var t=0;t<e.length&&t<l.length;t++)if(!fe(l[t],e[t]))return!1;return!0}i(_s,"areHookInputsEqual");function Ms(l,e,t,a,n,u){return ct=u,R=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,x.H=l===null||l.memoizedState===null?w0:Ys,ya=!1,u=t(a,n),ya=!1,cn&&(u=b0(e,t,a,n)),g0(l),u}i(Ms,"renderWithHooks");function g0(l){x.H=_u;var e=I!==null&&I.next!==null;if(ct=0,gl=I=R=null,nc=!1,Nu=0,fn=null,e)throw Error(S(300));l===null||zl||(l=l.dependencies,l!==null&&lc(l)&&(zl=!0))}i(g0,"finishRenderingHooks");function b0(l,e,t,a){R=l;var n=0;do{if(cn&&(fn=null),Nu=0,cn=!1,25<=n)throw Error(S(301));if(n+=1,gl=I=null,l.updateQueue!=null){var u=l.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}x.H=W0,u=e(t,a)}while(cn);return u}i(b0,"renderWithHooksAgain");function pp(){var l=x.H,e=l.useState()[0];return e=typeof e.then=="function"?Gu(e):e,l=l.useState()[0],(I!==null?I.memoizedState:null)!==l&&(R.flags|=1024),e}i(pp,"TransitionAwareHostComponent");function Os(){var l=uc!==0;return uc=0,l}i(Os,"checkDidRenderIdHook");function Us(l,e,t){e.updateQueue=l.updateQueue,e.flags&=-2053,l.lanes&=~t}i(Us,"bailoutHooks");function Ds(l){if(nc){for(l=l.memoizedState;l!==null;){var e=l.queue;e!==null&&(e.pending=null),l=l.next}nc=!1}ct=0,gl=I=R=null,cn=!1,Nu=uc=0,fn=null}i(Ds,"resetHooksOnUnwind");function Ll(){var l={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return gl===null?R.memoizedState=gl=l:gl=gl.next=l,gl}i(Ll,"mountWorkInProgressHook");function yl(){if(I===null){var l=R.alternate;l=l!==null?l.memoizedState:null}else l=I.next;var e=gl===null?R.memoizedState:gl.next;if(e!==null)gl=e,I=l;else{if(l===null)throw R.alternate===null?Error(S(467)):Error(S(310));I=l,l={memoizedState:I.memoizedState,baseState:I.baseState,baseQueue:I.baseQueue,queue:I.queue,next:null},gl===null?R.memoizedState=gl=l:gl=gl.next=l}return gl}i(yl,"updateWorkInProgressHook");function Oc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}i(Oc,"createFunctionComponentUpdateQueue");function Gu(l){var e=Nu;return Nu+=1,fn===null&&(fn=[]),l=d0(fn,l,e),e=R,(gl===null?e.memoizedState:gl.next)===null&&(e=e.alternate,x.H=e===null||e.memoizedState===null?w0:Ys),l}i(Gu,"useThenable");function Uc(l){if(l!==null&&typeof l=="object"){if(typeof l.then=="function")return Gu(l);if(l.$$typeof===lt)return Rl(l)}throw Error(S(438,String(l)))}i(Uc,"use");function Cs(l){var e=null,t=R.updateQueue;if(t!==null&&(e=t.memoCache),e==null){var a=R.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(e={data:a.data.map(function(n){return n.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),t===null&&(t=Oc(),R.updateQueue=t),t.memoCache=e,t=e.data[e.index],t===void 0)for(t=e.data[e.index]=Array(l),a=0;a<l;a++)t[a]=t1;return e.index++,t}i(Cs,"useMemoCache");function ft(l,e){return typeof e=="function"?e(l):e}i(ft,"basicStateReducer");function Ri(l){var e=yl();return ks(e,I,l)}i(Ri,"updateReducer");function ks(l,e,t){var a=l.queue;if(a===null)throw Error(S(311));a.lastRenderedReducer=t;var n=l.baseQueue,u=a.pending;if(u!==null){if(n!==null){var c=n.next;n.next=u.next,u.next=c}e.baseQueue=n=u,a.pending=null}if(u=l.baseState,n===null)l.memoizedState=u;else{e=n.next;var f=c=null,o=null,s=e,v=!1;do{var p=s.lane&-536870913;if(p!==s.lane?(V&p)===p:(ct&p)===p){var m=s.revertLane;if(m===0)o!==null&&(o=o.next={lane:0,revertLane:0,gesture:null,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null}),p===dn&&(v=!0);else if((ct&m)===m){s=s.next,m===dn&&(v=!0);continue}else p={lane:0,revertLane:s.revertLane,gesture:null,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null},o===null?(f=o=p,c=u):o=o.next=p,R.lanes|=m,Lt|=m;p=s.action,ya&&t(u,p),u=s.hasEagerState?s.eagerState:t(u,p)}else m={lane:p,revertLane:s.revertLane,gesture:s.gesture,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null},o===null?(f=o=m,c=u):o=o.next=m,R.lanes|=p,Lt|=p;s=s.next}while(s!==null&&s!==e);if(o===null?c=u:o.next=f,!fe(u,l.memoizedState)&&(zl=!0,v&&(t=nn,t!==null)))throw t;l.memoizedState=u,l.baseState=c,l.baseQueue=o,a.lastRenderedState=u}return n===null&&(a.lanes=0),[l.memoizedState,a.dispatch]}i(ks,"updateReducerImpl");function Lf(l){var e=yl(),t=e.queue;if(t===null)throw Error(S(311));t.lastRenderedReducer=l;var a=t.dispatch,n=t.pending,u=e.memoizedState;if(n!==null){t.pending=null;var c=n=n.next;do u=l(u,c.action),c=c.next;while(c!==n);fe(u,e.memoizedState)||(zl=!0),e.memoizedState=u,e.baseQueue===null&&(e.baseState=u),t.lastRenderedState=u}return[u,a]}i(Lf,"rerenderReducer");function S0(l,e,t){var a=R,n=yl(),u=j;if(u){if(t===void 0)throw Error(S(407));t=t()}else t=e();var c=!fe((I||n).memoizedState,t);if(c&&(n.memoizedState=t,zl=!0),n=n.queue,Bs(A0.bind(null,a,n,l),[l]),n.getSnapshot!==e||c||gl!==null&&gl.memoizedState.tag&1){if(a.flags|=2048,hn(9,{destroy:void 0},T0.bind(null,a,n,t,e),null),ll===null)throw Error(S(349));u||(ct&127)!==0||z0(a,e,t)}return t}i(S0,"updateSyncExternalStore");function z0(l,e,t){l.flags|=16384,l={getSnapshot:e,value:t},e=R.updateQueue,e===null?(e=Oc(),R.updateQueue=e,e.stores=[l]):(t=e.stores,t===null?e.stores=[l]:t.push(l))}i(z0,"pushStoreConsistencyCheck");function T0(l,e,t,a){e.value=t,e.getSnapshot=a,E0(e)&&N0(l)}i(T0,"updateStoreInstance");function A0(l,e,t){return t(function(){E0(e)&&N0(l)})}i(A0,"subscribeToStore");function E0(l){var e=l.getSnapshot;l=l.value;try{var t=e();return!fe(l,t)}catch{return!0}}i(E0,"checkIfSnapshotChanged");function N0(l){var e=Sa(l,2);e!==null&&$l(e,l,2)}i(N0,"forceStoreRerender");function Ho(l){var e=Ll();if(typeof l=="function"){var t=l;if(l=t(),ya){Mt(!0);try{t()}finally{Mt(!1)}}}return e.memoizedState=e.baseState=l,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ft,lastRenderedState:l},e}i(Ho,"mountStateImpl");function _0(l,e,t,a){return l.baseState=t,ks(l,I,typeof a=="function"?a:ft)}i(_0,"updateOptimisticImpl");function gp(l,e,t,a,n){if(Cc(l))throw Error(S(485));if(l=e.action,l!==null){var u={payload:n,action:l,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:i(function(c){u.listeners.push(c)},"then")};x.T!==null?t(!0):u.isTransition=!1,a(u),t=e.pending,t===null?(u.next=e.pending=u,M0(e,u)):(u.next=t.next,e.pending=t.next=u)}}i(gp,"dispatchActionState");function M0(l,e){var t=e.action,a=e.payload,n=l.state;if(e.isTransition){var u=x.T,c={};x.T=c;try{var f=t(n,a),o=x.S;o!==null&&o(c,f),_m(l,e,f)}catch(s){qo(l,e,s)}finally{u!==null&&c.types!==null&&(u.types=c.types),x.T=u}}else try{u=t(n,a),_m(l,e,u)}catch(s){qo(l,e,s)}}i(M0,"runActionStateAction");function _m(l,e,t){t!==null&&typeof t=="object"&&typeof t.then=="function"?t.then(function(a){Mm(l,e,a)},function(a){return qo(l,e,a)}):Mm(l,e,t)}i(_m,"handleActionReturnValue");function Mm(l,e,t){e.status="fulfilled",e.value=t,O0(e),l.state=t,e=l.pending,e!==null&&(t=e.next,t===e?l.pending=null:(t=t.next,e.next=t,M0(l,t)))}i(Mm,"onActionSuccess");function qo(l,e,t){var a=l.pending;if(l.pending=null,a!==null){a=a.next;do e.status="rejected",e.reason=t,O0(e),e=e.next;while(e!==a)}l.action=null}i(qo,"onActionError");function O0(l){l=l.listeners;for(var e=0;e<l.length;e++)(0,l[e])()}i(O0,"notifyActionListeners");function U0(l,e){return e}i(U0,"actionStateReducer");function Om(l,e){if(j){var t=ll.formState;if(t!==null){l:{var a=R;if(j){if(nl){e:{for(var n=nl,u=be;n.nodeType!==8;){if(!u){n=null;break e}if(n=ze(n.nextSibling),n===null){n=null;break e}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){nl=ze(n.nextSibling),a=n.data==="F!";break l}}Xt(a)}a=!1}a&&(e=t[0])}}return t=Ll(),t.memoizedState=t.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:U0,lastRenderedState:e},t.queue=a,t=Z0.bind(null,R,a),a.dispatch=t,a=Ho(!1),u=Rs.bind(null,R,!1,a.queue),a=Ll(),n={state:e,dispatch:null,action:l,pending:null},a.queue=n,t=gp.bind(null,R,n,u,t),n.dispatch=t,a.memoizedState=l,[e,t,!1]}i(Om,"mountActionState");function Um(l){var e=yl();return D0(e,I,l)}i(Um,"updateActionState");function D0(l,e,t){if(e=ks(l,e,U0)[0],l=Ri(ft)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var a=Gu(e)}catch(c){throw c===An?Mc:c}else a=e;e=yl();var n=e.queue,u=n.dispatch;return t!==e.memoizedState&&(R.flags|=2048,hn(9,{destroy:void 0},bp.bind(null,n,t),null)),[a,u,l]}i(D0,"updateActionStateImpl");function bp(l,e){l.action=e}i(bp,"actionStateActionEffect");function Dm(l){var e=yl(),t=I;if(t!==null)return D0(e,t,l);yl(),e=e.memoizedState,t=yl();var a=t.queue.dispatch;return t.memoizedState=l,[e,a,!1]}i(Dm,"rerenderActionState");function hn(l,e,t,a){return l={tag:l,create:t,deps:a,inst:e,next:null},e=R.updateQueue,e===null&&(e=Oc(),R.updateQueue=e),t=e.lastEffect,t===null?e.lastEffect=l.next=l:(a=t.next,t.next=l,l.next=a,e.lastEffect=l),l}i(hn,"pushSimpleEffect");function C0(){return yl().memoizedState}i(C0,"updateRef");function Yi(l,e,t,a){var n=Ll();R.flags|=l,n.memoizedState=hn(1|e,{destroy:void 0},t,a===void 0?null:a)}i(Yi,"mountEffectImpl");function Dc(l,e,t,a){var n=yl();a=a===void 0?null:a;var u=n.memoizedState.inst;I!==null&&a!==null&&_s(a,I.memoizedState.deps)?n.memoizedState=hn(e,u,t,a):(R.flags|=l,n.memoizedState=hn(1|e,u,t,a))}i(Dc,"updateEffectImpl");function Cm(l,e){Yi(8390656,8,l,e)}i(Cm,"mountEffect");function Bs(l,e){Dc(2048,8,l,e)}i(Bs,"updateEffect");function Sp(l){R.flags|=4;var e=R.updateQueue;if(e===null)e=Oc(),R.updateQueue=e,e.events=[l];else{var t=e.events;t===null?e.events=[l]:t.push(l)}}i(Sp,"useEffectEventImpl");function k0(l){var e=yl().memoizedState;return Sp({ref:e,nextImpl:l}),function(){if((L&2)!==0)throw Error(S(440));return e.impl.apply(void 0,arguments)}}i(k0,"updateEvent");function B0(l,e){return Dc(4,2,l,e)}i(B0,"updateInsertionEffect");function x0(l,e){return Dc(4,4,l,e)}i(x0,"updateLayoutEffect");function H0(l,e){if(typeof e=="function"){l=l();var t=e(l);return function(){typeof t=="function"?t():e(null)}}if(e!=null)return l=l(),e.current=l,function(){e.current=null}}i(H0,"imperativeHandleEffect");function q0(l,e,t){t=t!=null?t.concat([l]):null,Dc(4,4,H0.bind(null,e,l),t)}i(q0,"updateImperativeHandle");function xs(){}i(xs,"mountDebugValue");function R0(l,e){var t=yl();e=e===void 0?null:e;var a=t.memoizedState;return e!==null&&_s(e,a[1])?a[0]:(t.memoizedState=[l,e],l)}i(R0,"updateCallback");function Y0(l,e){var t=yl();e=e===void 0?null:e;var a=t.memoizedState;if(e!==null&&_s(e,a[1]))return a[0];if(a=l(),ya){Mt(!0);try{l()}finally{Mt(!1)}}return t.memoizedState=[a,e],a}i(Y0,"updateMemo");function Hs(l,e,t){return t===void 0||(ct&1073741824)!==0&&(V&261930)===0?l.memoizedState=e:(l.memoizedState=t,l=_y(),R.lanes|=l,Lt|=l,t)}i(Hs,"mountDeferredValueImpl");function G0(l,e,t,a){return fe(t,e)?t:mn.current!==null?(l=Hs(l,t,a),fe(l,e)||(zl=!0),l):(ct&42)===0||(ct&1073741824)!==0&&(V&261930)===0?(zl=!0,l.memoizedState=t):(l=_y(),R.lanes|=l,Lt|=l,e)}i(G0,"updateDeferredValueImpl");function V0(l,e,t,a,n){var u=Z.p;Z.p=u!==0&&8>u?u:8;var c=x.T,f={};x.T=f,Rs(l,!1,e,t);try{var o=n(),s=x.S;if(s!==null&&s(f,o),o!==null&&typeof o=="object"&&typeof o.then=="function"){var v=yp(o,a);du(l,e,v,ce(l))}else du(l,e,a,ce(l))}catch(p){du(l,e,{then:i(function(){},"then"),status:"rejected",reason:p},ce())}finally{Z.p=u,c!==null&&f.types!==null&&(c.types=f.types),x.T=c}}i(V0,"startTransition");function zp(){}i(zp,"noop");function Ro(l,e,t,a){if(l.tag!==5)throw Error(S(476));var n=Q0(l).queue;V0(l,n,e,ca,t===null?zp:function(){return X0(l),t(a)})}i(Ro,"startHostTransition");function Q0(l){var e=l.memoizedState;if(e!==null)return e;e={memoizedState:ca,baseState:ca,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ft,lastRenderedState:ca},next:null};var t={};return e.next={memoizedState:t,baseState:t,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ft,lastRenderedState:t},next:null},l.memoizedState=e,l=l.alternate,l!==null&&(l.memoizedState=e),e}i(Q0,"ensureFormComponentIsStateful");function X0(l){var e=Q0(l);e.next===null&&(e=l.alternate.memoizedState),du(l,e.next.queue,{},ce())}i(X0,"requestFormReset$1");function qs(){return Rl(Uu)}i(qs,"useHostTransitionStatus");function j0(){return yl().memoizedState}i(j0,"updateId");function L0(){return yl().memoizedState}i(L0,"updateRefresh");function Tp(l){for(var e=l.return;e!==null;){switch(e.tag){case 24:case 3:var t=ce();l=xt(t);var a=Ht(e,l,t);a!==null&&($l(a,e,t),ou(a,e,t)),e={cache:zs()},l.payload=e;return}e=e.return}}i(Tp,"refreshCache");function Ap(l,e,t){var a=ce();t={lane:a,revertLane:0,gesture:null,action:t,hasEagerState:!1,eagerState:null,next:null},Cc(l)?K0(e,t):(t=ps(l,e,t,a),t!==null&&($l(t,l,a),J0(t,e,a)))}i(Ap,"dispatchReducerAction");function Z0(l,e,t){var a=ce();du(l,e,t,a)}i(Z0,"dispatchSetState");function du(l,e,t,a){var n={lane:a,revertLane:0,gesture:null,action:t,hasEagerState:!1,eagerState:null,next:null};if(Cc(l))K0(e,n);else{var u=l.alternate;if(l.lanes===0&&(u===null||u.lanes===0)&&(u=e.lastRenderedReducer,u!==null))try{var c=e.lastRenderedState,f=u(c,t);if(n.hasEagerState=!0,n.eagerState=f,fe(f,c))return _c(l,e,n,0),ll===null&&Nc(),!1}catch{}if(t=ps(l,e,n,a),t!==null)return $l(t,l,a),J0(t,e,a),!0}return!1}i(du,"dispatchSetStateInternal");function Rs(l,e,t,a){if(a={lane:2,revertLane:Ks(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Cc(l)){if(e)throw Error(S(479))}else e=ps(l,t,a,2),e!==null&&$l(e,l,2)}i(Rs,"dispatchOptimisticSetState");function Cc(l){var e=l.alternate;return l===R||e!==null&&e===R}i(Cc,"isRenderPhaseUpdate");function K0(l,e){cn=nc=!0;var t=l.pending;t===null?e.next=e:(e.next=t.next,t.next=e),l.pending=e}i(K0,"enqueueRenderPhaseUpdate");function J0(l,e,t){if((t&4194048)!==0){var a=e.lanes;a&=l.pendingLanes,t|=a,e.lanes=t,kh(l,t)}}i(J0,"entangleTransitionUpdate");var _u={readContext:Rl,use:Uc,useCallback:rl,useContext:rl,useEffect:rl,useImperativeHandle:rl,useLayoutEffect:rl,useInsertionEffect:rl,useMemo:rl,useReducer:rl,useRef:rl,useState:rl,useDebugValue:rl,useDeferredValue:rl,useTransition:rl,useSyncExternalStore:rl,useId:rl,useHostTransitionStatus:rl,useFormState:rl,useActionState:rl,useOptimistic:rl,useMemoCache:rl,useCacheRefresh:rl};_u.useEffectEvent=rl;var w0={readContext:Rl,use:Uc,useCallback:i(function(l,e){return Ll().memoizedState=[l,e===void 0?null:e],l},"useCallback"),useContext:Rl,useEffect:Cm,useImperativeHandle:i(function(l,e,t){t=t!=null?t.concat([l]):null,Yi(4194308,4,H0.bind(null,e,l),t)},"useImperativeHandle"),useLayoutEffect:i(function(l,e){return Yi(4194308,4,l,e)},"useLayoutEffect"),useInsertionEffect:i(function(l,e){Yi(4,2,l,e)},"useInsertionEffect"),useMemo:i(function(l,e){var t=Ll();e=e===void 0?null:e;var a=l();if(ya){Mt(!0);try{l()}finally{Mt(!1)}}return t.memoizedState=[a,e],a},"useMemo"),useReducer:i(function(l,e,t){var a=Ll();if(t!==void 0){var n=t(e);if(ya){Mt(!0);try{t(e)}finally{Mt(!1)}}}else n=e;return a.memoizedState=a.baseState=n,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:n},a.queue=l,l=l.dispatch=Ap.bind(null,R,l),[a.memoizedState,l]},"useReducer"),useRef:i(function(l){var e=Ll();return l={current:l},e.memoizedState=l},"useRef"),useState:i(function(l){l=Ho(l);var e=l.queue,t=Z0.bind(null,R,e);return e.dispatch=t,[l.memoizedState,t]},"useState"),useDebugValue:xs,useDeferredValue:i(function(l,e){var t=Ll();return Hs(t,l,e)},"useDeferredValue"),useTransition:i(function(){var l=Ho(!1);return l=V0.bind(null,R,l.queue,!0,!1),Ll().memoizedState=l,[!1,l]},"useTransition"),useSyncExternalStore:i(function(l,e,t){var a=R,n=Ll();if(j){if(t===void 0)throw Error(S(407));t=t()}else{if(t=e(),ll===null)throw Error(S(349));(V&127)!==0||z0(a,e,t)}n.memoizedState=t;var u={value:t,getSnapshot:e};return n.queue=u,Cm(A0.bind(null,a,u,l),[l]),a.flags|=2048,hn(9,{destroy:void 0},T0.bind(null,a,u,t,e),null),t},"useSyncExternalStore"),useId:i(function(){var l=Ll(),e=ll.identifierPrefix;if(j){var t=qe,a=He;t=(a&~(1<<32-ie(a)-1)).toString(32)+t,e="_"+e+"R_"+t,t=uc++,0<t&&(e+="H"+t.toString(32)),e+="_"}else t=vp++,e="_"+e+"r_"+t.toString(32)+"_";return l.memoizedState=e},"useId"),useHostTransitionStatus:qs,useFormState:Om,useActionState:Om,useOptimistic:i(function(l){var e=Ll();e.memoizedState=e.baseState=l;var t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=t,e=Rs.bind(null,R,!0,t),t.dispatch=e,[l,e]},"useOptimistic"),useMemoCache:Cs,useCacheRefresh:i(function(){return Ll().memoizedState=Tp.bind(null,R)},"useCacheRefresh"),useEffectEvent:i(function(l){var e=Ll(),t={impl:l};return e.memoizedState=t,function(){if((L&2)!==0)throw Error(S(440));return t.impl.apply(void 0,arguments)}},"useEffectEvent")},Ys={readContext:Rl,use:Uc,useCallback:R0,useContext:Rl,useEffect:Bs,useImperativeHandle:q0,useInsertionEffect:B0,useLayoutEffect:x0,useMemo:Y0,useReducer:Ri,useRef:C0,useState:i(function(){return Ri(ft)},"useState"),useDebugValue:xs,useDeferredValue:i(function(l,e){var t=yl();return G0(t,I.memoizedState,l,e)},"useDeferredValue"),useTransition:i(function(){var l=Ri(ft)[0],e=yl().memoizedState;return[typeof l=="boolean"?l:Gu(l),e]},"useTransition"),useSyncExternalStore:S0,useId:j0,useHostTransitionStatus:qs,useFormState:Um,useActionState:Um,useOptimistic:i(function(l,e){var t=yl();return _0(t,I,l,e)},"useOptimistic"),useMemoCache:Cs,useCacheRefresh:L0};Ys.useEffectEvent=k0;var W0={readContext:Rl,use:Uc,useCallback:R0,useContext:Rl,useEffect:Bs,useImperativeHandle:q0,useInsertionEffect:B0,useLayoutEffect:x0,useMemo:Y0,useReducer:Lf,useRef:C0,useState:i(function(){return Lf(ft)},"useState"),useDebugValue:xs,useDeferredValue:i(function(l,e){var t=yl();return I===null?Hs(t,l,e):G0(t,I.memoizedState,l,e)},"useDeferredValue"),useTransition:i(function(){var l=Lf(ft)[0],e=yl().memoizedState;return[typeof l=="boolean"?l:Gu(l),e]},"useTransition"),useSyncExternalStore:S0,useId:j0,useHostTransitionStatus:qs,useFormState:Dm,useActionState:Dm,useOptimistic:i(function(l,e){var t=yl();return I!==null?_0(t,I,l,e):(t.baseState=l,[l,t.queue.dispatch])},"useOptimistic"),useMemoCache:Cs,useCacheRefresh:L0};W0.useEffectEvent=k0;function Zf(l,e,t,a){e=l.memoizedState,t=t(a,e),t=t==null?e:ul({},e,t),l.memoizedState=t,l.lanes===0&&(l.updateQueue.baseState=t)}i(Zf,"applyDerivedStateFromProps");var Yo={enqueueSetState:i(function(l,e,t){l=l._reactInternals;var a=ce(),n=xt(a);n.payload=e,t!=null&&(n.callback=t),e=Ht(l,n,a),e!==null&&($l(e,l,a),ou(e,l,a))},"enqueueSetState"),enqueueReplaceState:i(function(l,e,t){l=l._reactInternals;var a=ce(),n=xt(a);n.tag=1,n.payload=e,t!=null&&(n.callback=t),e=Ht(l,n,a),e!==null&&($l(e,l,a),ou(e,l,a))},"enqueueReplaceState"),enqueueForceUpdate:i(function(l,e){l=l._reactInternals;var t=ce(),a=xt(t);a.tag=2,e!=null&&(a.callback=e),e=Ht(l,a,t),e!==null&&($l(e,l,t),ou(e,l,t))},"enqueueForceUpdate")};function km(l,e,t,a,n,u,c){return l=l.stateNode,typeof l.shouldComponentUpdate=="function"?l.shouldComponentUpdate(a,u,c):e.prototype&&e.prototype.isPureReactComponent?!zu(t,a)||!zu(n,u):!0}i(km,"checkShouldComponentUpdate");function Bm(l,e,t,a){l=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(t,a),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(t,a),e.state!==l&&Yo.enqueueReplaceState(e,e.state,null)}i(Bm,"callComponentWillReceiveProps");function va(l,e){var t=e;if("ref"in e){t={};for(var a in e)a!=="ref"&&(t[a]=e[a])}if(l=l.defaultProps){t===e&&(t=ul({},t));for(var n in l)t[n]===void 0&&(t[n]=l[n])}return t}i(va,"resolveClassComponentProps");function F0(l){$i(l)}i(F0,"defaultOnUncaughtError");function $0(l){console.error(l)}i($0,"defaultOnCaughtError");function I0(l){$i(l)}i(I0,"defaultOnRecoverableError");function ic(l,e){try{var t=l.onUncaughtError;t(e.value,{componentStack:e.stack})}catch(a){setTimeout(function(){throw a})}}i(ic,"logUncaughtError");function xm(l,e,t){try{var a=l.onCaughtError;a(t.value,{componentStack:t.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(n){setTimeout(function(){throw n})}}i(xm,"logCaughtError");function Go(l,e,t){return t=xt(t),t.tag=3,t.payload={element:null},t.callback=function(){ic(l,e)},t}i(Go,"createRootErrorUpdate");function P0(l){return l=xt(l),l.tag=3,l}i(P0,"createClassErrorUpdate");function ly(l,e,t,a){var n=t.type.getDerivedStateFromError;if(typeof n=="function"){var u=a.value;l.payload=function(){return n(u)},l.callback=function(){xm(e,t,a)}}var c=t.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(l.callback=function(){xm(e,t,a),typeof n!="function"&&(qt===null?qt=new Set([this]):qt.add(this));var f=a.stack;this.componentDidCatch(a.value,{componentStack:f!==null?f:""})})}i(ly,"initializeClassErrorUpdate");function Ep(l,e,t,a,n){if(t.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(e=t.alternate,e!==null&&Tn(e,t,n,!0),t=oe.current,t!==null){switch(t.tag){case 31:case 13:return Se===null?rc():t.alternate===null&&dl===0&&(dl=3),t.flags&=-257,t.flags|=65536,t.lanes=n,a===ec?t.flags|=16384:(e=t.updateQueue,e===null?t.updateQueue=new Set([a]):e.add(a),to(l,a,n)),!1;case 22:return t.flags|=65536,a===ec?t.flags|=16384:(e=t.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([a])},t.updateQueue=e):(t=e.retryQueue,t===null?e.retryQueue=new Set([a]):t.add(a)),to(l,a,n)),!1}throw Error(S(435,t.tag))}return to(l,a,n),rc(),!1}if(j)return e=oe.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=n,a!==_o&&(l=Error(S(422),{cause:a}),Au(ge(l,t)))):(a!==_o&&(e=Error(S(423),{cause:a}),Au(ge(e,t))),l=l.current.alternate,l.flags|=65536,n&=-n,l.lanes|=n,a=ge(a,t),n=Go(l.stateNode,a,n),jf(l,n),dl!==4&&(dl=2)),!1;var u=Error(S(520),{cause:a});if(u=ge(u,t),yu===null?yu=[u]:yu.push(u),dl!==4&&(dl=2),e===null)return!0;a=ge(a,t),t=e;do{switch(t.tag){case 3:return t.flags|=65536,l=n&-n,t.lanes|=l,l=Go(t.stateNode,a,l),jf(t,l),!1;case 1:if(e=t.type,u=t.stateNode,(t.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(qt===null||!qt.has(u))))return t.flags|=65536,n&=-n,t.lanes|=n,n=P0(n),ly(n,l,t,a),jf(t,n),!1}t=t.return}while(t!==null);return!1}i(Ep,"throwException");var Gs=Error(S(461)),zl=!1;function xl(l,e,t,a){e.child=l===null?h0(e,null,t,a):ha(e,l.child,t,a)}i(xl,"reconcileChildren");function Hm(l,e,t,a,n){t=t.render;var u=e.ref;if("ref"in a){var c={};for(var f in a)f!=="ref"&&(c[f]=a[f])}else c=a;return ma(e),a=Ms(l,e,t,c,u,n),f=Os(),l!==null&&!zl?(Us(l,e,n),ot(l,e,n)):(j&&f&&bs(e),e.flags|=1,xl(l,e,a,n),e.child)}i(Hm,"updateForwardRef");function qm(l,e,t,a,n){if(l===null){var u=t.type;return typeof u=="function"&&!gs(u)&&u.defaultProps===void 0&&t.compare===null?(e.tag=15,e.type=u,ey(l,e,u,a,n)):(l=Hi(t.type,null,a,e,e.mode,n),l.ref=e.ref,l.return=e,e.child=l)}if(u=l.child,!Vs(l,n)){var c=u.memoizedProps;if(t=t.compare,t=t!==null?t:zu,t(c,a)&&l.ref===e.ref)return ot(l,e,n)}return e.flags|=1,l=at(u,a),l.ref=e.ref,l.return=e,e.child=l}i(qm,"updateMemoComponent");function ey(l,e,t,a,n){if(l!==null){var u=l.memoizedProps;if(zu(u,a)&&l.ref===e.ref)if(zl=!1,e.pendingProps=a=u,Vs(l,n))(l.flags&131072)!==0&&(zl=!0);else return e.lanes=l.lanes,ot(l,e,n)}return Vo(l,e,t,a,n)}i(ey,"updateSimpleMemoComponent");function ty(l,e,t,a){var n=a.children,u=l!==null?l.memoizedState:null;if(l===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((e.flags&128)!==0){if(u=u!==null?u.baseLanes|t:t,l!==null){for(a=e.child=l.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~u}else a=0,e.child=null;return Rm(l,e,u,t,a)}if((t&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},l!==null&&qi(e,u!==null?u.cachePool:null),u!==null?Nm(e,u):Bo(),p0(e);else return a=e.lanes=536870912,Rm(l,e,u!==null?u.baseLanes|t:t,t,a)}else u!==null?(qi(e,u.cachePool),Nm(e,u),Nt(e),e.memoizedState=null):(l!==null&&qi(e,null),Bo(),Nt(e));return xl(l,e,n,t),e.child}i(ty,"updateOffscreenComponent");function au(l,e){return l!==null&&l.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}i(au,"bailoutOffscreenComponent");function Rm(l,e,t,a,n){var u=Ts();return u=u===null?null:{parent:Sl._currentValue,pool:u},e.memoizedState={baseLanes:t,cachePool:u},l!==null&&qi(e,null),Bo(),p0(e),l!==null&&Tn(l,e,a,!0),e.childLanes=n,null}i(Rm,"deferHiddenOffscreenComponent");function Gi(l,e){return e=cc({mode:e.mode,children:e.children},l.mode),e.ref=l.ref,l.child=e,e.return=l,e}i(Gi,"mountActivityChildren");function Ym(l,e,t){return ha(e,l.child,null,t),l=Gi(e,e.pendingProps),l.flags|=2,ee(e),e.memoizedState=null,l}i(Ym,"retryActivityComponentWithoutHydrating");function Np(l,e,t){var a=e.pendingProps,n=(e.flags&128)!==0;if(e.flags&=-129,l===null){if(j){if(a.mode==="hidden")return l=Gi(e,a),e.lanes=536870912,au(null,l);if(xo(e),(l=nl)?(l=wy(l,be),l=l!==null&&l.data==="&"?l:null,l!==null&&(e.memoizedState={dehydrated:l,treeContext:Qt!==null?{id:He,overflow:qe}:null,retryLane:536870912,hydrationErrors:null},t=c0(l),t.return=e,e.child=t,ql=e,nl=null)):l=null,l===null)throw Xt(e);return e.lanes=536870912,null}return Gi(e,a)}var u=l.memoizedState;if(u!==null){var c=u.dehydrated;if(xo(e),n)if(e.flags&256)e.flags&=-257,e=Ym(l,e,t);else if(e.memoizedState!==null)e.child=l.child,e.flags|=128,e=null;else throw Error(S(558));else if(zl||Tn(l,e,t,!1),n=(t&l.childLanes)!==0,zl||n){if(a=ll,a!==null&&(c=Bh(a,t),c!==0&&c!==u.retryLane))throw u.retryLane=c,Sa(l,c),$l(a,l,c),Gs;rc(),e=Ym(l,e,t)}else l=u.treeContext,nl=ze(c.nextSibling),ql=e,j=!0,Bt=null,be=!1,l!==null&&o0(e,l),e=Gi(e,a),e.flags|=4096;return e}return l=at(l.child,{mode:a.mode,children:a.children}),l.ref=e.ref,e.child=l,l.return=e,l}i(Np,"updateActivityComponent");function Vi(l,e){var t=e.ref;if(t===null)l!==null&&l.ref!==null&&(e.flags|=4194816);else{if(typeof t!="function"&&typeof t!="object")throw Error(S(284));(l===null||l.ref!==t)&&(e.flags|=4194816)}}i(Vi,"markRef");function Vo(l,e,t,a,n){return ma(e),t=Ms(l,e,t,a,void 0,n),a=Os(),l!==null&&!zl?(Us(l,e,n),ot(l,e,n)):(j&&a&&bs(e),e.flags|=1,xl(l,e,t,n),e.child)}i(Vo,"updateFunctionComponent");function Gm(l,e,t,a,n,u){return ma(e),e.updateQueue=null,t=b0(e,a,t,n),g0(l),a=Os(),l!==null&&!zl?(Us(l,e,u),ot(l,e,u)):(j&&a&&bs(e),e.flags|=1,xl(l,e,t,u),e.child)}i(Gm,"replayFunctionComponent");function Vm(l,e,t,a,n){if(ma(e),e.stateNode===null){var u=$a,c=t.contextType;typeof c=="object"&&c!==null&&(u=Rl(c)),u=new t(a,u),e.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Yo,e.stateNode=u,u._reactInternals=e,u=e.stateNode,u.props=a,u.state=e.memoizedState,u.refs={},Es(e),c=t.contextType,u.context=typeof c=="object"&&c!==null?Rl(c):$a,u.state=e.memoizedState,c=t.getDerivedStateFromProps,typeof c=="function"&&(Zf(e,t,c,a),u.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(c=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),c!==u.state&&Yo.enqueueReplaceState(u,u.state,null),ru(e,a,u,n),su(),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308),a=!0}else if(l===null){u=e.stateNode;var f=e.memoizedProps,o=va(t,f);u.props=o;var s=u.context,v=t.contextType;c=$a,typeof v=="object"&&v!==null&&(c=Rl(v));var p=t.getDerivedStateFromProps;v=typeof p=="function"||typeof u.getSnapshotBeforeUpdate=="function",f=e.pendingProps!==f,v||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(f||s!==c)&&Bm(e,u,a,c),Tt=!1;var m=e.memoizedState;u.state=m,ru(e,a,u,n),su(),s=e.memoizedState,f||m!==s||Tt?(typeof p=="function"&&(Zf(e,t,p,a),s=e.memoizedState),(o=Tt||km(e,t,o,a,m,s,c))?(v||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(e.flags|=4194308)):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=a,e.memoizedState=s),u.props=a,u.state=s,u.context=c,a=o):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{u=e.stateNode,Co(l,e),c=e.memoizedProps,v=va(t,c),u.props=v,p=e.pendingProps,m=u.context,s=t.contextType,o=$a,typeof s=="object"&&s!==null&&(o=Rl(s)),f=t.getDerivedStateFromProps,(s=typeof f=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(c!==p||m!==o)&&Bm(e,u,a,o),Tt=!1,m=e.memoizedState,u.state=m,ru(e,a,u,n),su();var h=e.memoizedState;c!==p||m!==h||Tt||l!==null&&l.dependencies!==null&&lc(l.dependencies)?(typeof f=="function"&&(Zf(e,t,f,a),h=e.memoizedState),(v=Tt||km(e,t,v,a,m,h,o)||l!==null&&l.dependencies!==null&&lc(l.dependencies))?(s||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,h,o),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,h,o)),typeof u.componentDidUpdate=="function"&&(e.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof u.componentDidUpdate!="function"||c===l.memoizedProps&&m===l.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||c===l.memoizedProps&&m===l.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=h),u.props=a,u.state=h,u.context=o,a=v):(typeof u.componentDidUpdate!="function"||c===l.memoizedProps&&m===l.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||c===l.memoizedProps&&m===l.memoizedState||(e.flags|=1024),a=!1)}return u=a,Vi(l,e),a=(e.flags&128)!==0,u||a?(u=e.stateNode,t=a&&typeof t.getDerivedStateFromError!="function"?null:u.render(),e.flags|=1,l!==null&&a?(e.child=ha(e,l.child,null,n),e.child=ha(e,null,t,n)):xl(l,e,t,n),e.memoizedState=u.state,l=e.child):l=ot(l,e,n),l}i(Vm,"updateClassComponent");function Qm(l,e,t,a){return da(),e.flags|=256,xl(l,e,t,a),e.child}i(Qm,"mountHostRootWithoutHydrating");var Kf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Jf(l){return{baseLanes:l,cachePool:r0()}}i(Jf,"mountSuspenseOffscreenState");function wf(l,e,t){return l=l!==null?l.childLanes&~t:0,e&&(l|=ae),l}i(wf,"getRemainingWorkInPrimaryTree");function ay(l,e,t){var a=e.pendingProps,n=!1,u=(e.flags&128)!==0,c;if((c=u)||(c=l!==null&&l.memoizedState===null?!1:(hl.current&2)!==0),c&&(n=!0,e.flags&=-129),c=(e.flags&32)!==0,e.flags&=-33,l===null){if(j){if(n?Et(e):Nt(e),(l=nl)?(l=wy(l,be),l=l!==null&&l.data!=="&"?l:null,l!==null&&(e.memoizedState={dehydrated:l,treeContext:Qt!==null?{id:He,overflow:qe}:null,retryLane:536870912,hydrationErrors:null},t=c0(l),t.return=e,e.child=t,ql=e,nl=null)):l=null,l===null)throw Xt(e);return ls(l)?e.lanes=32:e.lanes=536870912,null}var f=a.children;return a=a.fallback,n?(Nt(e),n=e.mode,f=cc({mode:"hidden",children:f},n),a=fa(a,n,t,null),f.return=e,a.return=e,f.sibling=a,e.child=f,a=e.child,a.memoizedState=Jf(t),a.childLanes=wf(l,c,t),e.memoizedState=Kf,au(null,a)):(Et(e),Qo(e,f))}var o=l.memoizedState;if(o!==null&&(f=o.dehydrated,f!==null)){if(u)e.flags&256?(Et(e),e.flags&=-257,e=Wf(l,e,t)):e.memoizedState!==null?(Nt(e),e.child=l.child,e.flags|=128,e=null):(Nt(e),f=a.fallback,n=e.mode,a=cc({mode:"visible",children:a.children},n),f=fa(f,n,t,null),f.flags|=2,a.return=e,f.return=e,a.sibling=f,e.child=a,ha(e,l.child,null,t),a=e.child,a.memoizedState=Jf(t),a.childLanes=wf(l,c,t),e.memoizedState=Kf,e=au(null,a));else if(Et(e),ls(f)){if(c=f.nextSibling&&f.nextSibling.dataset,c)var s=c.dgst;c=s,a=Error(S(419)),a.stack="",a.digest=c,Au({value:a,source:null,stack:null}),e=Wf(l,e,t)}else if(zl||Tn(l,e,t,!1),c=(t&l.childLanes)!==0,zl||c){if(c=ll,c!==null&&(a=Bh(c,t),a!==0&&a!==o.retryLane))throw o.retryLane=a,Sa(l,a),$l(c,l,a),Gs;Po(f)||rc(),e=Wf(l,e,t)}else Po(f)?(e.flags|=192,e.child=l.child,e=null):(l=o.treeContext,nl=ze(f.nextSibling),ql=e,j=!0,Bt=null,be=!1,l!==null&&o0(e,l),e=Qo(e,a.children),e.flags|=4096);return e}return n?(Nt(e),f=a.fallback,n=e.mode,o=l.child,s=o.sibling,a=at(o,{mode:"hidden",children:a.children}),a.subtreeFlags=o.subtreeFlags&65011712,s!==null?f=at(s,f):(f=fa(f,n,t,null),f.flags|=2),f.return=e,a.return=e,a.sibling=f,e.child=a,au(null,a),a=e.child,f=l.child.memoizedState,f===null?f=Jf(t):(n=f.cachePool,n!==null?(o=Sl._currentValue,n=n.parent!==o?{parent:o,pool:o}:n):n=r0(),f={baseLanes:f.baseLanes|t,cachePool:n}),a.memoizedState=f,a.childLanes=wf(l,c,t),e.memoizedState=Kf,au(l.child,a)):(Et(e),t=l.child,l=t.sibling,t=at(t,{mode:"visible",children:a.children}),t.return=e,t.sibling=null,l!==null&&(c=e.deletions,c===null?(e.deletions=[l],e.flags|=16):c.push(l)),e.child=t,e.memoizedState=null,t)}i(ay,"updateSuspenseComponent");function Qo(l,e){return e=cc({mode:"visible",children:e},l.mode),e.return=l,l.child=e}i(Qo,"mountSuspensePrimaryChildren");function cc(l,e){return l=te(22,l,null,e),l.lanes=0,l}i(cc,"mountWorkInProgressOffscreenFiber");function Wf(l,e,t){return ha(e,l.child,null,t),l=Qo(e,e.pendingProps.children),l.flags|=2,e.memoizedState=null,l}i(Wf,"retrySuspenseComponentWithoutHydrating");function Xm(l,e,t){l.lanes|=e;var a=l.alternate;a!==null&&(a.lanes|=e),Oo(l.return,e,t)}i(Xm,"scheduleSuspenseWorkOnFiber");function Ff(l,e,t,a,n,u){var c=l.memoizedState;c===null?l.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:a,tail:t,tailMode:n,treeForkCount:u}:(c.isBackwards=e,c.rendering=null,c.renderingStartTime=0,c.last=a,c.tail=t,c.tailMode=n,c.treeForkCount=u)}i(Ff,"initSuspenseListRenderState");function ny(l,e,t){var a=e.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var c=hl.current,f=(c&2)!==0;if(f?(c=c&1|2,e.flags|=128):c&=1,tl(hl,c),xl(l,e,a,t),a=j?Tu:0,!f&&l!==null&&(l.flags&128)!==0)l:for(l=e.child;l!==null;){if(l.tag===13)l.memoizedState!==null&&Xm(l,t,e);else if(l.tag===19)Xm(l,t,e);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===e)break l;for(;l.sibling===null;){if(l.return===null||l.return===e)break l;l=l.return}l.sibling.return=l.return,l=l.sibling}switch(n){case"forwards":for(t=e.child,n=null;t!==null;)l=t.alternate,l!==null&&ac(l)===null&&(n=t),t=t.sibling;t=n,t===null?(n=e.child,e.child=null):(n=t.sibling,t.sibling=null),Ff(e,!1,n,t,u,a);break;case"backwards":case"unstable_legacy-backwards":for(t=null,n=e.child,e.child=null;n!==null;){if(l=n.alternate,l!==null&&ac(l)===null){e.child=n;break}l=n.sibling,n.sibling=t,t=n,n=l}Ff(e,!0,t,null,u,a);break;case"together":Ff(e,!1,null,null,void 0,a);break;default:e.memoizedState=null}return e.child}i(ny,"updateSuspenseListComponent");function ot(l,e,t){if(l!==null&&(e.dependencies=l.dependencies),Lt|=e.lanes,(t&e.childLanes)===0)if(l!==null){if(Tn(l,e,t,!1),(t&e.childLanes)===0)return null}else return null;if(l!==null&&e.child!==l.child)throw Error(S(153));if(e.child!==null){for(l=e.child,t=at(l,l.pendingProps),e.child=t,t.return=e;l.sibling!==null;)l=l.sibling,t=t.sibling=at(l,l.pendingProps),t.return=e;t.sibling=null}return e.child}i(ot,"bailoutOnAlreadyFinishedWork");function Vs(l,e){return(l.lanes&e)!==0?!0:(l=l.dependencies,!!(l!==null&&lc(l)))}i(Vs,"checkScheduledUpdateOrContext");function _p(l,e,t){switch(e.tag){case 3:Ji(e,e.stateNode.containerInfo),At(e,Sl,l.memoizedState.cache),da();break;case 27:case 5:yo(e);break;case 4:Ji(e,e.stateNode.containerInfo);break;case 10:At(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,xo(e),null;break;case 13:var a=e.memoizedState;if(a!==null)return a.dehydrated!==null?(Et(e),e.flags|=128,null):(t&e.child.childLanes)!==0?ay(l,e,t):(Et(e),l=ot(l,e,t),l!==null?l.sibling:null);Et(e);break;case 19:var n=(l.flags&128)!==0;if(a=(t&e.childLanes)!==0,a||(Tn(l,e,t,!1),a=(t&e.childLanes)!==0),n){if(a)return ny(l,e,t);e.flags|=128}if(n=e.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),tl(hl,hl.current),a)break;return null;case 22:return e.lanes=0,ty(l,e,t,e.pendingProps);case 24:At(e,Sl,l.memoizedState.cache)}return ot(l,e,t)}i(_p,"attemptEarlyBailoutIfNoScheduledUpdate");function uy(l,e,t){if(l!==null)if(l.memoizedProps!==e.pendingProps)zl=!0;else{if(!Vs(l,t)&&(e.flags&128)===0)return zl=!1,_p(l,e,t);zl=(l.flags&131072)!==0}else zl=!1,j&&(e.flags&1048576)!==0&&f0(e,Tu,e.index);switch(e.lanes=0,e.tag){case 16:l:{var a=e.pendingProps;if(l=ua(e.elementType),e.type=l,typeof l=="function")gs(l)?(a=va(l,a),e.tag=1,e=Vm(null,e,l,a,t)):(e.tag=0,e=Vo(null,e,l,a,t));else{if(l!=null){var n=l.$$typeof;if(n===ns){e.tag=11,e=Hm(null,e,l,a,t);break l}else if(n===us){e.tag=14,e=qm(null,e,l,a,t);break l}}throw e=mo(l)||l,Error(S(306,e,""))}}return e;case 0:return Vo(l,e,e.type,e.pendingProps,t);case 1:return a=e.type,n=va(a,e.pendingProps),Vm(l,e,a,n,t);case 3:l:{if(Ji(e,e.stateNode.containerInfo),l===null)throw Error(S(387));a=e.pendingProps;var u=e.memoizedState;n=u.element,Co(l,e),ru(e,a,null,t);var c=e.memoizedState;if(a=c.cache,At(e,Sl,a),a!==u.cache&&Uo(e,[Sl],t,!0),su(),a=c.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:c.cache},e.updateQueue.baseState=u,e.memoizedState=u,e.flags&256){e=Qm(l,e,a,t);break l}else if(a!==n){n=ge(Error(S(424)),e),Au(n),e=Qm(l,e,a,t);break l}else for(l=e.stateNode.containerInfo,l.nodeType===9?l=l.body:l=l.nodeName==="HTML"?l.ownerDocument.body:l,nl=ze(l.firstChild),ql=e,j=!0,Bt=null,be=!0,t=h0(e,null,a,t),e.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(da(),a===n){e=ot(l,e,t);break l}xl(l,e,a,t)}e=e.child}return e;case 26:return Vi(l,e),l===null?(t=sh(e.type,null,e.pendingProps,null))?e.memoizedState=t:j||(t=e.type,l=e.pendingProps,a=yc(kt.current).createElement(t),a[Hl]=e,a[Il]=l,Yl(a,t,l),Ol(a),e.stateNode=a):e.memoizedState=sh(e.type,l.memoizedProps,e.pendingProps,l.memoizedState),null;case 27:return yo(e),l===null&&j&&(a=e.stateNode=Wy(e.type,e.pendingProps,kt.current),ql=e,be=!0,n=nl,Kt(e.type)?(es=n,nl=ze(a.firstChild)):nl=n),xl(l,e,e.pendingProps.children,t),Vi(l,e),l===null&&(e.flags|=4194304),e.child;case 5:return l===null&&j&&((n=a=nl)&&(a=lg(a,e.type,e.pendingProps,be),a!==null?(e.stateNode=a,ql=e,nl=ze(a.firstChild),be=!1,n=!0):n=!1),n||Xt(e)),yo(e),n=e.type,u=e.pendingProps,c=l!==null?l.memoizedProps:null,a=u.children,$o(n,u)?a=null:c!==null&&$o(n,c)&&(e.flags|=32),e.memoizedState!==null&&(n=Ms(l,e,pp,null,null,t),Uu._currentValue=n),Vi(l,e),xl(l,e,a,t),e.child;case 6:return l===null&&j&&((l=t=nl)&&(t=eg(t,e.pendingProps,be),t!==null?(e.stateNode=t,ql=e,nl=null,l=!0):l=!1),l||Xt(e)),null;case 13:return ay(l,e,t);case 4:return Ji(e,e.stateNode.containerInfo),a=e.pendingProps,l===null?e.child=ha(e,null,a,t):xl(l,e,a,t),e.child;case 11:return Hm(l,e,e.type,e.pendingProps,t);case 7:return xl(l,e,e.pendingProps,t),e.child;case 8:return xl(l,e,e.pendingProps.children,t),e.child;case 12:return xl(l,e,e.pendingProps.children,t),e.child;case 10:return a=e.pendingProps,At(e,e.type,a.value),xl(l,e,a.children,t),e.child;case 9:return n=e.type._context,a=e.pendingProps.children,ma(e),n=Rl(n),a=a(n),e.flags|=1,xl(l,e,a,t),e.child;case 14:return qm(l,e,e.type,e.pendingProps,t);case 15:return ey(l,e,e.type,e.pendingProps,t);case 19:return ny(l,e,t);case 31:return Np(l,e,t);case 22:return ty(l,e,t,e.pendingProps);case 24:return ma(e),a=Rl(Sl),l===null?(n=Ts(),n===null&&(n=ll,u=zs(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=t),n=u),e.memoizedState={parent:a,cache:n},Es(e),At(e,Sl,n)):((l.lanes&t)!==0&&(Co(l,e),ru(e,null,null,t),su()),n=l.memoizedState,u=e.memoizedState,n.parent!==a?(n={parent:a,cache:a},e.memoizedState=n,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=n),At(e,Sl,a)):(a=u.cache,At(e,Sl,a),a!==n.cache&&Uo(e,[Sl],t,!0))),xl(l,e,e.pendingProps.children,t),e.child;case 29:throw e.pendingProps}throw Error(S(156,e.tag))}i(uy,"beginWork");function we(l){l.flags|=4}i(we,"markUpdate");function $f(l,e,t,a,n){if((e=(l.mode&32)!==0)&&(e=!1),e){if(l.flags|=16777216,(n&335544128)===n)if(l.stateNode.complete)l.flags|=8192;else if(Uy())l.flags|=8192;else throw sa=ec,As}else l.flags&=-16777217}i($f,"preloadInstanceAndSuspendIfNeeded");function jm(l,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)l.flags&=-16777217;else if(l.flags|=16777216,!Iy(e))if(Uy())l.flags|=8192;else throw sa=ec,As}i(jm,"preloadResourceAndSuspendIfNeeded");function Ei(l,e){e!==null&&(l.flags|=4),l.flags&16384&&(e=l.tag!==22?Dh():536870912,l.lanes|=e,yn|=e)}i(Ei,"scheduleRetryEffect");function Fn(l,e){if(!j)switch(l.tailMode){case"hidden":e=l.tail;for(var t=null;e!==null;)e.alternate!==null&&(t=e),e=e.sibling;t===null?l.tail=null:t.sibling=null;break;case"collapsed":t=l.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e||l.tail===null?l.tail=null:l.tail.sibling=null:a.sibling=null}}i(Fn,"cutOffTailIfNeeded");function al(l){var e=l.alternate!==null&&l.alternate.child===l.child,t=0,a=0;if(e)for(var n=l.child;n!==null;)t|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=l,n=n.sibling;else for(n=l.child;n!==null;)t|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=l,n=n.sibling;return l.subtreeFlags|=a,l.childLanes=t,e}i(al,"bubbleProperties");function Mp(l,e,t){var a=e.pendingProps;switch(Ss(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return al(e),null;case 1:return al(e),null;case 3:return t=e.stateNode,a=null,l!==null&&(a=l.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),nt(Sl),on(),t.pendingContext&&(t.context=t.pendingContext,t.pendingContext=null),(l===null||l.child===null)&&(Ga(e)?we(e):l===null||l.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Xf())),al(e),null;case 26:var n=e.type,u=e.memoizedState;return l===null?(we(e),u!==null?(al(e),jm(e,u)):(al(e),$f(e,n,null,a,t))):u?u!==l.memoizedState?(we(e),al(e),jm(e,u)):(al(e),e.flags&=-16777217):(l=l.memoizedProps,l!==a&&we(e),al(e),$f(e,n,l,a,t)),null;case 27:if(wi(e),t=kt.current,n=e.type,l!==null&&e.stateNode!=null)l.memoizedProps!==a&&we(e);else{if(!a){if(e.stateNode===null)throw Error(S(166));return al(e),null}l=Ye.current,Ga(e)?gm(e,l):(l=Wy(n,a,t),e.stateNode=l,we(e))}return al(e),null;case 5:if(wi(e),n=e.type,l!==null&&e.stateNode!=null)l.memoizedProps!==a&&we(e);else{if(!a){if(e.stateNode===null)throw Error(S(166));return al(e),null}if(u=Ye.current,Ga(e))gm(e,u);else{var c=yc(kt.current);switch(u){case 1:u=c.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=c.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=c.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?c.createElement("select",{is:a.is}):c.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?c.createElement(n,{is:a.is}):c.createElement(n)}}u[Hl]=e,u[Il]=a;l:for(c=e.child;c!==null;){if(c.tag===5||c.tag===6)u.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)break l;for(;c.sibling===null;){if(c.return===null||c.return===e)break l;c=c.return}c.sibling.return=c.return,c=c.sibling}e.stateNode=u;l:switch(Yl(u,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break l;case"img":a=!0;break l;default:a=!1}a&&we(e)}}return al(e),$f(e,e.type,l===null?null:l.memoizedProps,e.pendingProps,t),null;case 6:if(l&&e.stateNode!=null)l.memoizedProps!==a&&we(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(S(166));if(l=kt.current,Ga(e)){if(l=e.stateNode,t=e.memoizedProps,a=null,n=ql,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}l[Hl]=e,l=!!(l.nodeValue===t||a!==null&&a.suppressHydrationWarning===!0||Zy(l.nodeValue,t)),l||Xt(e,!0)}else l=yc(l).createTextNode(a),l[Hl]=e,e.stateNode=l}return al(e),null;case 31:if(t=e.memoizedState,l===null||l.memoizedState!==null){if(a=Ga(e),t!==null){if(l===null){if(!a)throw Error(S(318));if(l=e.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(S(557));l[Hl]=e}else da(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;al(e),l=!1}else t=Xf(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=t),l=!0;if(!l)return e.flags&256?(ee(e),e):(ee(e),null);if((e.flags&128)!==0)throw Error(S(558))}return al(e),null;case 13:if(a=e.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(n=Ga(e),a!==null&&a.dehydrated!==null){if(l===null){if(!n)throw Error(S(318));if(n=e.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(S(317));n[Hl]=e}else da(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;al(e),n=!1}else n=Xf(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=n),n=!0;if(!n)return e.flags&256?(ee(e),e):(ee(e),null)}return ee(e),(e.flags&128)!==0?(e.lanes=t,e):(t=a!==null,l=l!==null&&l.memoizedState!==null,t&&(a=e.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==n&&(a.flags|=2048)),t!==l&&t&&(e.child.flags|=8192),Ei(e,e.updateQueue),al(e),null);case 4:return on(),l===null&&Js(e.stateNode.containerInfo),al(e),null;case 10:return nt(e.type),al(e),null;case 19:if(Ul(hl),a=e.memoizedState,a===null)return al(e),null;if(n=(e.flags&128)!==0,u=a.rendering,u===null)if(n)Fn(a,!1);else{if(dl!==0||l!==null&&(l.flags&128)!==0)for(l=e.child;l!==null;){if(u=ac(l),u!==null){for(e.flags|=128,Fn(a,!1),l=u.updateQueue,e.updateQueue=l,Ei(e,l),e.subtreeFlags=0,l=t,t=e.child;t!==null;)i0(t,l),t=t.sibling;return tl(hl,hl.current&1|2),j&&Ie(e,a.treeForkCount),e.child}l=l.sibling}a.tail!==null&&ne()>oc&&(e.flags|=128,n=!0,Fn(a,!1),e.lanes=4194304)}else{if(!n)if(l=ac(u),l!==null){if(e.flags|=128,n=!0,l=l.updateQueue,e.updateQueue=l,Ei(e,l),Fn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!j)return al(e),null}else 2*ne()-a.renderingStartTime>oc&&t!==536870912&&(e.flags|=128,n=!0,Fn(a,!1),e.lanes=4194304);a.isBackwards?(u.sibling=e.child,e.child=u):(l=a.last,l!==null?l.sibling=u:e.child=u,a.last=u)}return a.tail!==null?(l=a.tail,a.rendering=l,a.tail=l.sibling,a.renderingStartTime=ne(),l.sibling=null,t=hl.current,tl(hl,n?t&1|2:t&1),j&&Ie(e,a.treeForkCount),l):(al(e),null);case 22:case 23:return ee(e),Ns(),a=e.memoizedState!==null,l!==null?l.memoizedState!==null!==a&&(e.flags|=8192):a&&(e.flags|=8192),a?(t&536870912)!==0&&(e.flags&128)===0&&(al(e),e.subtreeFlags&6&&(e.flags|=8192)):al(e),t=e.updateQueue,t!==null&&Ei(e,t.retryQueue),t=null,l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(t=l.memoizedState.cachePool.pool),a=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),a!==t&&(e.flags|=2048),l!==null&&Ul(oa),null;case 24:return t=null,l!==null&&(t=l.memoizedState.cache),e.memoizedState.cache!==t&&(e.flags|=2048),nt(Sl),al(e),null;case 25:return null;case 30:return null}throw Error(S(156,e.tag))}i(Mp,"completeWork");function Op(l,e){switch(Ss(e),e.tag){case 1:return l=e.flags,l&65536?(e.flags=l&-65537|128,e):null;case 3:return nt(Sl),on(),l=e.flags,(l&65536)!==0&&(l&128)===0?(e.flags=l&-65537|128,e):null;case 26:case 27:case 5:return wi(e),null;case 31:if(e.memoizedState!==null){if(ee(e),e.alternate===null)throw Error(S(340));da()}return l=e.flags,l&65536?(e.flags=l&-65537|128,e):null;case 13:if(ee(e),l=e.memoizedState,l!==null&&l.dehydrated!==null){if(e.alternate===null)throw Error(S(340));da()}return l=e.flags,l&65536?(e.flags=l&-65537|128,e):null;case 19:return Ul(hl),null;case 4:return on(),null;case 10:return nt(e.type),null;case 22:case 23:return ee(e),Ns(),l!==null&&Ul(oa),l=e.flags,l&65536?(e.flags=l&-65537|128,e):null;case 24:return nt(Sl),null;case 25:return null;default:return null}}i(Op,"unwindWork");function iy(l,e){switch(Ss(e),e.tag){case 3:nt(Sl),on();break;case 26:case 27:case 5:wi(e);break;case 4:on();break;case 31:e.memoizedState!==null&&ee(e);break;case 13:ee(e);break;case 19:Ul(hl);break;case 10:nt(e.type);break;case 22:case 23:ee(e),Ns(),l!==null&&Ul(oa);break;case 24:nt(Sl)}}i(iy,"unwindInterruptedWork");function Vu(l,e){try{var t=e.updateQueue,a=t!==null?t.lastEffect:null;if(a!==null){var n=a.next;t=n;do{if((t.tag&l)===l){a=void 0;var u=t.create,c=t.inst;a=u(),c.destroy=a}t=t.next}while(t!==n)}}catch(f){w(e,e.return,f)}}i(Vu,"commitHookEffectListMount");function jt(l,e,t){try{var a=e.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var u=n.next;a=u;do{if((a.tag&l)===l){var c=a.inst,f=c.destroy;if(f!==void 0){c.destroy=void 0,n=e;var o=t,s=f;try{s()}catch(v){w(n,o,v)}}}a=a.next}while(a!==u)}}catch(v){w(e,e.return,v)}}i(jt,"commitHookEffectListUnmount");function cy(l){var e=l.updateQueue;if(e!==null){var t=l.stateNode;try{v0(e,t)}catch(a){w(l,l.return,a)}}}i(cy,"commitClassCallbacks");function fy(l,e,t){t.props=va(l.type,l.memoizedProps),t.state=l.memoizedState;try{t.componentWillUnmount()}catch(a){w(l,e,a)}}i(fy,"safelyCallComponentWillUnmount");function mu(l,e){try{var t=l.ref;if(t!==null){switch(l.tag){case 26:case 27:case 5:var a=l.stateNode;break;case 30:a=l.stateNode;break;default:a=l.stateNode}typeof t=="function"?l.refCleanup=t(a):t.current=a}}catch(n){w(l,e,n)}}i(mu,"safelyAttachRef");function Re(l,e){var t=l.ref,a=l.refCleanup;if(t!==null)if(typeof a=="function")try{a()}catch(n){w(l,e,n)}finally{l.refCleanup=null,l=l.alternate,l!=null&&(l.refCleanup=null)}else if(typeof t=="function")try{t(null)}catch(n){w(l,e,n)}else t.current=null}i(Re,"safelyDetachRef");function oy(l){var e=l.type,t=l.memoizedProps,a=l.stateNode;try{l:switch(e){case"button":case"input":case"select":case"textarea":t.autoFocus&&a.focus();break l;case"img":t.src?a.src=t.src:t.srcSet&&(a.srcset=t.srcSet)}}catch(n){w(l,l.return,n)}}i(oy,"commitHostMount");function If(l,e,t){try{var a=l.stateNode;wp(a,l.type,t,e),a[Il]=e}catch(n){w(l,l.return,n)}}i(If,"commitHostUpdate");function sy(l){return l.tag===5||l.tag===3||l.tag===26||l.tag===27&&Kt(l.type)||l.tag===4}i(sy,"isHostParent");function Pf(l){l:for(;;){for(;l.sibling===null;){if(l.return===null||sy(l.return))return null;l=l.return}for(l.sibling.return=l.return,l=l.sibling;l.tag!==5&&l.tag!==6&&l.tag!==18;){if(l.tag===27&&Kt(l.type)||l.flags&2||l.child===null||l.tag===4)continue l;l.child.return=l,l=l.child}if(!(l.flags&2))return l.stateNode}}i(Pf,"getHostSibling");function Xo(l,e,t){var a=l.tag;if(a===5||a===6)l=l.stateNode,e?(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t).insertBefore(l,e):(e=t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,e.appendChild(l),t=t._reactRootContainer,t!=null||e.onclick!==null||(e.onclick=et));else if(a!==4&&(a===27&&Kt(l.type)&&(t=l.stateNode,e=null),l=l.child,l!==null))for(Xo(l,e,t),l=l.sibling;l!==null;)Xo(l,e,t),l=l.sibling}i(Xo,"insertOrAppendPlacementNodeIntoContainer");function fc(l,e,t){var a=l.tag;if(a===5||a===6)l=l.stateNode,e?t.insertBefore(l,e):t.appendChild(l);else if(a!==4&&(a===27&&Kt(l.type)&&(t=l.stateNode),l=l.child,l!==null))for(fc(l,e,t),l=l.sibling;l!==null;)fc(l,e,t),l=l.sibling}i(fc,"insertOrAppendPlacementNode");function ry(l){var e=l.stateNode,t=l.memoizedProps;try{for(var a=l.type,n=e.attributes;n.length;)e.removeAttributeNode(n[0]);Yl(e,a,t),e[Hl]=l,e[Il]=t}catch(u){w(l,l.return,u)}}i(ry,"commitHostSingletonAcquisition");var Pe=!1,bl=!1,lo=!1,Lm=typeof WeakSet=="function"?WeakSet:Set,Ml=null;function Up(l,e){if(l=l.containerInfo,Wo=bc,l=Ih(l),ys(l)){if("selectionStart"in l)var t={start:l.selectionStart,end:l.selectionEnd};else l:{t=(t=l.ownerDocument)&&t.defaultView||window;var a=t.getSelection&&t.getSelection();if(a&&a.rangeCount!==0){t=a.anchorNode;var n=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{t.nodeType,u.nodeType}catch{t=null;break l}var c=0,f=-1,o=-1,s=0,v=0,p=l,m=null;e:for(;;){for(var h;p!==t||n!==0&&p.nodeType!==3||(f=c+n),p!==u||a!==0&&p.nodeType!==3||(o=c+a),p.nodeType===3&&(c+=p.nodeValue.length),(h=p.firstChild)!==null;)m=p,p=h;for(;;){if(p===l)break e;if(m===t&&++s===n&&(f=c),m===u&&++v===a&&(o=c),(h=p.nextSibling)!==null)break;p=m,m=p.parentNode}p=h}t=f===-1||o===-1?null:{start:f,end:o}}else t=null}t=t||{start:0,end:0}}else t=null;for(Fo={focusedElem:l,selectionRange:t},bc=!1,Ml=e;Ml!==null;)if(e=Ml,l=e.child,(e.subtreeFlags&1028)!==0&&l!==null)l.return=e,Ml=l;else for(;Ml!==null;){switch(e=Ml,u=e.alternate,l=e.flags,e.tag){case 0:if((l&4)!==0&&(l=e.updateQueue,l=l!==null?l.events:null,l!==null))for(t=0;t<l.length;t++)n=l[t],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((l&1024)!==0&&u!==null){l=void 0,t=e,n=u.memoizedProps,u=u.memoizedState,a=t.stateNode;try{var b=va(t.type,n);l=a.getSnapshotBeforeUpdate(b,u),a.__reactInternalSnapshotBeforeUpdate=l}catch(N){w(t,t.return,N)}}break;case 3:if((l&1024)!==0){if(l=e.stateNode.containerInfo,t=l.nodeType,t===9)Io(l);else if(t===1)switch(l.nodeName){case"HEAD":case"HTML":case"BODY":Io(l);break;default:l.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((l&1024)!==0)throw Error(S(163))}if(l=e.sibling,l!==null){l.return=e.return,Ml=l;break}Ml=e.return}}i(Up,"commitBeforeMutationEffects");function dy(l,e,t){var a=t.flags;switch(t.tag){case 0:case 11:case 15:Fe(l,t),a&4&&Vu(5,t);break;case 1:if(Fe(l,t),a&4)if(l=t.stateNode,e===null)try{l.componentDidMount()}catch(c){w(t,t.return,c)}else{var n=va(t.type,e.memoizedProps);e=e.memoizedState;try{l.componentDidUpdate(n,e,l.__reactInternalSnapshotBeforeUpdate)}catch(c){w(t,t.return,c)}}a&64&&cy(t),a&512&&mu(t,t.return);break;case 3:if(Fe(l,t),a&64&&(l=t.updateQueue,l!==null)){if(e=null,t.child!==null)switch(t.child.tag){case 27:case 5:e=t.child.stateNode;break;case 1:e=t.child.stateNode}try{v0(l,e)}catch(c){w(t,t.return,c)}}break;case 27:e===null&&a&4&&ry(t);case 26:case 5:Fe(l,t),e===null&&a&4&&oy(t),a&512&&mu(t,t.return);break;case 12:Fe(l,t);break;case 31:Fe(l,t),a&4&&yy(l,t);break;case 13:Fe(l,t),a&4&&vy(l,t),a&64&&(l=t.memoizedState,l!==null&&(l=l.dehydrated,l!==null&&(t=Yp.bind(null,t),tg(l,t))));break;case 22:if(a=t.memoizedState!==null||Pe,!a){e=e!==null&&e.memoizedState!==null||bl,n=Pe;var u=bl;Pe=a,(bl=e)&&!u?$e(l,t,(t.subtreeFlags&8772)!==0):Fe(l,t),Pe=n,bl=u}break;case 30:break;default:Fe(l,t)}}i(dy,"commitLayoutEffectOnFiber");function my(l){var e=l.alternate;e!==null&&(l.alternate=null,my(e)),l.child=null,l.deletions=null,l.sibling=null,l.tag===5&&(e=l.stateNode,e!==null&&os(e)),l.stateNode=null,l.return=null,l.dependencies=null,l.memoizedProps=null,l.memoizedState=null,l.pendingProps=null,l.stateNode=null,l.updateQueue=null}i(my,"detachFiberAfterEffects");var sl=null,Wl=!1;function We(l,e,t){for(t=t.child;t!==null;)hy(l,e,t),t=t.sibling}i(We,"recursivelyTraverseDeletionEffects");function hy(l,e,t){if(ue&&typeof ue.onCommitFiberUnmount=="function")try{ue.onCommitFiberUnmount(Bu,t)}catch{}switch(t.tag){case 26:bl||Re(t,e),We(l,e,t),t.memoizedState?t.memoizedState.count--:t.stateNode&&(t=t.stateNode,t.parentNode.removeChild(t));break;case 27:bl||Re(t,e);var a=sl,n=Wl;Kt(t.type)&&(sl=t.stateNode,Wl=!1),We(l,e,t),pu(t.stateNode),sl=a,Wl=n;break;case 5:bl||Re(t,e);case 6:if(a=sl,n=Wl,sl=null,We(l,e,t),sl=a,Wl=n,sl!==null)if(Wl)try{(sl.nodeType===9?sl.body:sl.nodeName==="HTML"?sl.ownerDocument.body:sl).removeChild(t.stateNode)}catch(u){w(t,e,u)}else try{sl.removeChild(t.stateNode)}catch(u){w(t,e,u)}break;case 18:sl!==null&&(Wl?(l=sl,uh(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.stateNode),bn(l)):uh(sl,t.stateNode));break;case 4:a=sl,n=Wl,sl=t.stateNode.containerInfo,Wl=!0,We(l,e,t),sl=a,Wl=n;break;case 0:case 11:case 14:case 15:jt(2,t,e),bl||jt(4,t,e),We(l,e,t);break;case 1:bl||(Re(t,e),a=t.stateNode,typeof a.componentWillUnmount=="function"&&fy(t,e,a)),We(l,e,t);break;case 21:We(l,e,t);break;case 22:bl=(a=bl)||t.memoizedState!==null,We(l,e,t),bl=a;break;default:We(l,e,t)}}i(hy,"commitDeletionEffectsOnFiber");function yy(l,e){if(e.memoizedState===null&&(l=e.alternate,l!==null&&(l=l.memoizedState,l!==null))){l=l.dehydrated;try{bn(l)}catch(t){w(e,e.return,t)}}}i(yy,"commitActivityHydrationCallbacks");function vy(l,e){if(e.memoizedState===null&&(l=e.alternate,l!==null&&(l=l.memoizedState,l!==null&&(l=l.dehydrated,l!==null))))try{bn(l)}catch(t){w(e,e.return,t)}}i(vy,"commitSuspenseHydrationCallbacks");function Dp(l){switch(l.tag){case 31:case 13:case 19:var e=l.stateNode;return e===null&&(e=l.stateNode=new Lm),e;case 22:return l=l.stateNode,e=l._retryCache,e===null&&(e=l._retryCache=new Lm),e;default:throw Error(S(435,l.tag))}}i(Dp,"getRetryCache");function Ni(l,e){var t=Dp(l);e.forEach(function(a){if(!t.has(a)){t.add(a);var n=Gp.bind(null,l,a);a.then(n,n)}})}i(Ni,"attachSuspenseRetryListeners");function Jl(l,e){var t=e.deletions;if(t!==null)for(var a=0;a<t.length;a++){var n=t[a],u=l,c=e,f=c;l:for(;f!==null;){switch(f.tag){case 27:if(Kt(f.type)){sl=f.stateNode,Wl=!1;break l}break;case 5:sl=f.stateNode,Wl=!1;break l;case 3:case 4:sl=f.stateNode.containerInfo,Wl=!0;break l}f=f.return}if(sl===null)throw Error(S(160));hy(u,c,n),sl=null,Wl=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)py(e,l),e=e.sibling}i(Jl,"recursivelyTraverseMutationEffects");var _e=null;function py(l,e){var t=l.alternate,a=l.flags;switch(l.tag){case 0:case 11:case 14:case 15:Jl(e,l),wl(l),a&4&&(jt(3,l,l.return),Vu(3,l),jt(5,l,l.return));break;case 1:Jl(e,l),wl(l),a&512&&(bl||t===null||Re(t,t.return)),a&64&&Pe&&(l=l.updateQueue,l!==null&&(a=l.callbacks,a!==null&&(t=l.shared.hiddenCallbacks,l.shared.hiddenCallbacks=t===null?a:t.concat(a))));break;case 26:var n=_e;if(Jl(e,l),wl(l),a&512&&(bl||t===null||Re(t,t.return)),a&4){var u=t!==null?t.memoizedState:null;if(a=l.memoizedState,t===null)if(a===null)if(l.stateNode===null){l:{a=l.type,t=l.memoizedProps,n=n.ownerDocument||n;e:switch(a){case"title":u=n.getElementsByTagName("title")[0],(!u||u[qu]||u[Hl]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(a),n.head.insertBefore(u,n.querySelector("head > title"))),Yl(u,a,t),u[Hl]=l,Ol(u),a=u;break l;case"link":var c=dh("link","href",n).get(a+(t.href||""));if(c){for(var f=0;f<c.length;f++)if(u=c[f],u.getAttribute("href")===(t.href==null||t.href===""?null:t.href)&&u.getAttribute("rel")===(t.rel==null?null:t.rel)&&u.getAttribute("title")===(t.title==null?null:t.title)&&u.getAttribute("crossorigin")===(t.crossOrigin==null?null:t.crossOrigin)){c.splice(f,1);break e}}u=n.createElement(a),Yl(u,a,t),n.head.appendChild(u);break;case"meta":if(c=dh("meta","content",n).get(a+(t.content||""))){for(f=0;f<c.length;f++)if(u=c[f],u.getAttribute("content")===(t.content==null?null:""+t.content)&&u.getAttribute("name")===(t.name==null?null:t.name)&&u.getAttribute("property")===(t.property==null?null:t.property)&&u.getAttribute("http-equiv")===(t.httpEquiv==null?null:t.httpEquiv)&&u.getAttribute("charset")===(t.charSet==null?null:t.charSet)){c.splice(f,1);break e}}u=n.createElement(a),Yl(u,a,t),n.head.appendChild(u);break;default:throw Error(S(468,a))}u[Hl]=l,Ol(u),a=u}l.stateNode=a}else mh(n,l.type,l.stateNode);else l.stateNode=rh(n,a,l.memoizedProps);else u!==a?(u===null?t.stateNode!==null&&(t=t.stateNode,t.parentNode.removeChild(t)):u.count--,a===null?mh(n,l.type,l.stateNode):rh(n,a,l.memoizedProps)):a===null&&l.stateNode!==null&&If(l,l.memoizedProps,t.memoizedProps)}break;case 27:Jl(e,l),wl(l),a&512&&(bl||t===null||Re(t,t.return)),t!==null&&a&4&&If(l,l.memoizedProps,t.memoizedProps);break;case 5:if(Jl(e,l),wl(l),a&512&&(bl||t===null||Re(t,t.return)),l.flags&32){n=l.stateNode;try{rn(n,"")}catch(b){w(l,l.return,b)}}a&4&&l.stateNode!=null&&(n=l.memoizedProps,If(l,n,t!==null?t.memoizedProps:n)),a&1024&&(lo=!0);break;case 6:if(Jl(e,l),wl(l),a&4){if(l.stateNode===null)throw Error(S(162));a=l.memoizedProps,t=l.stateNode;try{t.nodeValue=a}catch(b){w(l,l.return,b)}}break;case 3:if(ji=null,n=_e,_e=vc(e.containerInfo),Jl(e,l),_e=n,wl(l),a&4&&t!==null&&t.memoizedState.isDehydrated)try{bn(e.containerInfo)}catch(b){w(l,l.return,b)}lo&&(lo=!1,gy(l));break;case 4:a=_e,_e=vc(l.stateNode.containerInfo),Jl(e,l),wl(l),_e=a;break;case 12:Jl(e,l),wl(l);break;case 31:Jl(e,l),wl(l),a&4&&(a=l.updateQueue,a!==null&&(l.updateQueue=null,Ni(l,a)));break;case 13:Jl(e,l),wl(l),l.child.flags&8192&&l.memoizedState!==null!=(t!==null&&t.memoizedState!==null)&&(kc=ne()),a&4&&(a=l.updateQueue,a!==null&&(l.updateQueue=null,Ni(l,a)));break;case 22:n=l.memoizedState!==null;var o=t!==null&&t.memoizedState!==null,s=Pe,v=bl;if(Pe=s||n,bl=v||o,Jl(e,l),bl=v,Pe=s,wl(l),a&8192)l:for(e=l.stateNode,e._visibility=n?e._visibility&-2:e._visibility|1,n&&(t===null||o||Pe||bl||ia(l)),t=null,e=l;;){if(e.tag===5||e.tag===26){if(t===null){o=t=e;try{if(u=o.stateNode,n)c=u.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{f=o.stateNode;var p=o.memoizedProps.style,m=p!=null&&p.hasOwnProperty("display")?p.display:null;f.style.display=m==null||typeof m=="boolean"?"":(""+m).trim()}}catch(b){w(o,o.return,b)}}}else if(e.tag===6){if(t===null){o=e;try{o.stateNode.nodeValue=n?"":o.memoizedProps}catch(b){w(o,o.return,b)}}}else if(e.tag===18){if(t===null){o=e;try{var h=o.stateNode;n?ih(h,!0):ih(o.stateNode,!1)}catch(b){w(o,o.return,b)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===l)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===l)break l;for(;e.sibling===null;){if(e.return===null||e.return===l)break l;t===e&&(t=null),e=e.return}t===e&&(t=null),e.sibling.return=e.return,e=e.sibling}a&4&&(a=l.updateQueue,a!==null&&(t=a.retryQueue,t!==null&&(a.retryQueue=null,Ni(l,t))));break;case 19:Jl(e,l),wl(l),a&4&&(a=l.updateQueue,a!==null&&(l.updateQueue=null,Ni(l,a)));break;case 30:break;case 21:break;default:Jl(e,l),wl(l)}}i(py,"commitMutationEffectsOnFiber");function wl(l){var e=l.flags;if(e&2){try{for(var t,a=l.return;a!==null;){if(sy(a)){t=a;break}a=a.return}if(t==null)throw Error(S(160));switch(t.tag){case 27:var n=t.stateNode,u=Pf(l);fc(l,u,n);break;case 5:var c=t.stateNode;t.flags&32&&(rn(c,""),t.flags&=-33);var f=Pf(l);fc(l,f,c);break;case 3:case 4:var o=t.stateNode.containerInfo,s=Pf(l);Xo(l,s,o);break;default:throw Error(S(161))}}catch(v){w(l,l.return,v)}l.flags&=-3}e&4096&&(l.flags&=-4097)}i(wl,"commitReconciliationEffects");function gy(l){if(l.subtreeFlags&1024)for(l=l.child;l!==null;){var e=l;gy(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),l=l.sibling}}i(gy,"recursivelyResetForms");function Fe(l,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)dy(l,e.alternate,e),e=e.sibling}i(Fe,"recursivelyTraverseLayoutEffects");function ia(l){for(l=l.child;l!==null;){var e=l;switch(e.tag){case 0:case 11:case 14:case 15:jt(4,e,e.return),ia(e);break;case 1:Re(e,e.return);var t=e.stateNode;typeof t.componentWillUnmount=="function"&&fy(e,e.return,t),ia(e);break;case 27:pu(e.stateNode);case 26:case 5:Re(e,e.return),ia(e);break;case 22:e.memoizedState===null&&ia(e);break;case 30:ia(e);break;default:ia(e)}l=l.sibling}}i(ia,"recursivelyTraverseDisappearLayoutEffects");function $e(l,e,t){for(t=t&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var a=e.alternate,n=l,u=e,c=u.flags;switch(u.tag){case 0:case 11:case 15:$e(n,u,t),Vu(4,u);break;case 1:if($e(n,u,t),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(s){w(a,a.return,s)}if(a=u,n=a.updateQueue,n!==null){var f=a.stateNode;try{var o=n.shared.hiddenCallbacks;if(o!==null)for(n.shared.hiddenCallbacks=null,n=0;n<o.length;n++)y0(o[n],f)}catch(s){w(a,a.return,s)}}t&&c&64&&cy(u),mu(u,u.return);break;case 27:ry(u);case 26:case 5:$e(n,u,t),t&&a===null&&c&4&&oy(u),mu(u,u.return);break;case 12:$e(n,u,t);break;case 31:$e(n,u,t),t&&c&4&&yy(n,u);break;case 13:$e(n,u,t),t&&c&4&&vy(n,u);break;case 22:u.memoizedState===null&&$e(n,u,t),mu(u,u.return);break;case 30:break;default:$e(n,u,t)}e=e.sibling}}i($e,"recursivelyTraverseReappearLayoutEffects");function Qs(l,e){var t=null;l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(t=l.memoizedState.cachePool.pool),l=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),l!==t&&(l!=null&&l.refCount++,t!=null&&Yu(t))}i(Qs,"commitOffscreenPassiveMountEffects");function Xs(l,e){l=null,e.alternate!==null&&(l=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==l&&(e.refCount++,l!=null&&Yu(l))}i(Xs,"commitCachePassiveMountEffect");function Ne(l,e,t,a){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)by(l,e,t,a),e=e.sibling}i(Ne,"recursivelyTraversePassiveMountEffects");function by(l,e,t,a){var n=e.flags;switch(e.tag){case 0:case 11:case 15:Ne(l,e,t,a),n&2048&&Vu(9,e);break;case 1:Ne(l,e,t,a);break;case 3:Ne(l,e,t,a),n&2048&&(l=null,e.alternate!==null&&(l=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==l&&(e.refCount++,l!=null&&Yu(l)));break;case 12:if(n&2048){Ne(l,e,t,a),l=e.stateNode;try{var u=e.memoizedProps,c=u.id,f=u.onPostCommit;typeof f=="function"&&f(c,e.alternate===null?"mount":"update",l.passiveEffectDuration,-0)}catch(o){w(e,e.return,o)}}else Ne(l,e,t,a);break;case 31:Ne(l,e,t,a);break;case 13:Ne(l,e,t,a);break;case 23:break;case 22:u=e.stateNode,c=e.alternate,e.memoizedState!==null?u._visibility&2?Ne(l,e,t,a):hu(l,e):u._visibility&2?Ne(l,e,t,a):(u._visibility|=2,Qa(l,e,t,a,(e.subtreeFlags&10256)!==0||!1)),n&2048&&Qs(c,e);break;case 24:Ne(l,e,t,a),n&2048&&Xs(e.alternate,e);break;default:Ne(l,e,t,a)}}i(by,"commitPassiveMountOnFiber");function Qa(l,e,t,a,n){for(n=n&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var u=l,c=e,f=t,o=a,s=c.flags;switch(c.tag){case 0:case 11:case 15:Qa(u,c,f,o,n),Vu(8,c);break;case 23:break;case 22:var v=c.stateNode;c.memoizedState!==null?v._visibility&2?Qa(u,c,f,o,n):hu(u,c):(v._visibility|=2,Qa(u,c,f,o,n)),n&&s&2048&&Qs(c.alternate,c);break;case 24:Qa(u,c,f,o,n),n&&s&2048&&Xs(c.alternate,c);break;default:Qa(u,c,f,o,n)}e=e.sibling}}i(Qa,"recursivelyTraverseReconnectPassiveEffects");function hu(l,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var t=l,a=e,n=a.flags;switch(a.tag){case 22:hu(t,a),n&2048&&Qs(a.alternate,a);break;case 24:hu(t,a),n&2048&&Xs(a.alternate,a);break;default:hu(t,a)}e=e.sibling}}i(hu,"recursivelyTraverseAtomicPassiveEffects");var nu=8192;function Va(l,e,t){if(l.subtreeFlags&nu)for(l=l.child;l!==null;)Sy(l,e,t),l=l.sibling}i(Va,"recursivelyAccumulateSuspenseyCommit");function Sy(l,e,t){switch(l.tag){case 26:Va(l,e,t),l.flags&nu&&l.memoizedState!==null&&hg(t,_e,l.memoizedState,l.memoizedProps);break;case 5:Va(l,e,t);break;case 3:case 4:var a=_e;_e=vc(l.stateNode.containerInfo),Va(l,e,t),_e=a;break;case 22:l.memoizedState===null&&(a=l.alternate,a!==null&&a.memoizedState!==null?(a=nu,nu=16777216,Va(l,e,t),nu=a):Va(l,e,t));break;default:Va(l,e,t)}}i(Sy,"accumulateSuspenseyCommitOnFiber");function zy(l){var e=l.alternate;if(e!==null&&(l=e.child,l!==null)){e.child=null;do e=l.sibling,l.sibling=null,l=e;while(l!==null)}}i(zy,"detachAlternateSiblings");function $n(l){var e=l.deletions;if((l.flags&16)!==0){if(e!==null)for(var t=0;t<e.length;t++){var a=e[t];Ml=a,Ay(a,l)}zy(l)}if(l.subtreeFlags&10256)for(l=l.child;l!==null;)Ty(l),l=l.sibling}i($n,"recursivelyTraversePassiveUnmountEffects");function Ty(l){switch(l.tag){case 0:case 11:case 15:$n(l),l.flags&2048&&jt(9,l,l.return);break;case 3:$n(l);break;case 12:$n(l);break;case 22:var e=l.stateNode;l.memoizedState!==null&&e._visibility&2&&(l.return===null||l.return.tag!==13)?(e._visibility&=-3,Qi(l)):$n(l);break;default:$n(l)}}i(Ty,"commitPassiveUnmountOnFiber");function Qi(l){var e=l.deletions;if((l.flags&16)!==0){if(e!==null)for(var t=0;t<e.length;t++){var a=e[t];Ml=a,Ay(a,l)}zy(l)}for(l=l.child;l!==null;){switch(e=l,e.tag){case 0:case 11:case 15:jt(8,e,e.return),Qi(e);break;case 22:t=e.stateNode,t._visibility&2&&(t._visibility&=-3,Qi(e));break;default:Qi(e)}l=l.sibling}}i(Qi,"recursivelyTraverseDisconnectPassiveEffects");function Ay(l,e){for(;Ml!==null;){var t=Ml;switch(t.tag){case 0:case 11:case 15:jt(8,t,e);break;case 23:case 22:if(t.memoizedState!==null&&t.memoizedState.cachePool!==null){var a=t.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Yu(t.memoizedState.cache)}if(a=t.child,a!==null)a.return=t,Ml=a;else l:for(t=l;Ml!==null;){a=Ml;var n=a.sibling,u=a.return;if(my(a),a===t){Ml=null;break l}if(n!==null){n.return=u,Ml=n;break l}Ml=u}}}i(Ay,"commitPassiveUnmountEffectsInsideOfDeletedTree_begin");var Cp={getCacheForType:i(function(l){var e=Rl(Sl),t=e.data.get(l);return t===void 0&&(t=l(),e.data.set(l,t)),t},"getCacheForType"),cacheSignal:i(function(){return Rl(Sl).controller.signal},"cacheSignal")},kp=typeof WeakMap=="function"?WeakMap:Map,L=0,ll=null,G=null,V=0,J=0,le=null,Ut=!1,En=!1,js=!1,st=0,dl=0,Lt=0,ra=0,Ls=0,ae=0,yn=0,yu=null,Fl=null,jo=!1,kc=0,Ey=0,oc=1/0,sc=null,qt=null,Al=0,Rt=null,vn=null,ut=0,Lo=0,Zo=null,Ny=null,vu=0,Ko=null;function ce(){return(L&2)!==0&&V!==0?V&-V:x.T!==null?Ks():xh()}i(ce,"requestUpdateLane");function _y(){if(ae===0)if((V&536870912)===0||j){var l=yi;yi<<=1,(yi&3932160)===0&&(yi=262144),ae=l}else ae=536870912;return l=oe.current,l!==null&&(l.flags|=32),ae}i(_y,"requestDeferredLane");function $l(l,e,t){(l===ll&&(J===2||J===9)||l.cancelPendingCommit!==null)&&(pn(l,0),Dt(l,V,ae,!1)),Hu(l,t),((L&2)===0||l!==ll)&&(l===ll&&((L&2)===0&&(ra|=t),dl===4&&Dt(l,V,ae,!1)),Ve(l))}i($l,"scheduleUpdateOnFiber");function My(l,e,t){if((L&6)!==0)throw Error(S(327));var a=!t&&(e&127)===0&&(e&l.expiredLanes)===0||xu(l,e),n=a?Hp(l,e):eo(l,e,!0),u=a;do{if(n===0){En&&!a&&Dt(l,e,0,!1);break}else{if(t=l.current.alternate,u&&!Bp(t)){n=eo(l,e,!1),u=!1;continue}if(n===2){if(u=e,l.errorRecoveryDisabledLanes&u)var c=0;else c=l.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){e=c;l:{var f=l;n=yu;var o=f.current.memoizedState.isDehydrated;if(o&&(pn(f,c).flags|=256),c=eo(f,c,!1),c!==2){if(js&&!o){f.errorRecoveryDisabledLanes|=u,ra|=u,n=4;break l}u=Fl,Fl=n,u!==null&&(Fl===null?Fl=u:Fl.push.apply(Fl,u))}n=c}if(u=!1,n!==2)continue}}if(n===1){pn(l,0),Dt(l,e,0,!0);break}l:{switch(a=l,u=n,u){case 0:case 1:throw Error(S(345));case 4:if((e&4194048)!==e)break;case 6:Dt(a,e,ae,!Ut);break l;case 2:Fl=null;break;case 3:case 5:break;default:throw Error(S(329))}if((e&62914560)===e&&(n=kc+300-ne(),10<n)){if(Dt(a,e,ae,!Ut),zc(a,0,!0)!==0)break l;ut=e,a.timeoutHandle=Jy(Zm.bind(null,a,t,Fl,sc,jo,e,ae,ra,yn,Ut,u,"Throttled",-0,0),n);break l}Zm(a,t,Fl,sc,jo,e,ae,ra,yn,Ut,u,null,-0,0)}}break}while(!0);Ve(l)}i(My,"performWorkOnRoot");function Zm(l,e,t,a,n,u,c,f,o,s,v,p,m,h){if(l.timeoutHandle=-1,p=e.subtreeFlags,p&8192||(p&16785408)===16785408){p={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:et},Sy(e,u,p);var b=(u&62914560)===u?kc-ne():(u&4194048)===u?Ey-ne():0;if(b=yg(p,b),b!==null){ut=u,l.cancelPendingCommit=b(Jm.bind(null,l,e,u,t,a,n,c,f,o,v,p,null,m,h)),Dt(l,u,c,!s);return}}Jm(l,e,u,t,a,n,c,f,o)}i(Zm,"commitRootWhenReady");function Bp(l){for(var e=l;;){var t=e.tag;if((t===0||t===11||t===15)&&e.flags&16384&&(t=e.updateQueue,t!==null&&(t=t.stores,t!==null)))for(var a=0;a<t.length;a++){var n=t[a],u=n.getSnapshot;n=n.value;try{if(!fe(u(),n))return!1}catch{return!1}}if(t=e.child,e.subtreeFlags&16384&&t!==null)t.return=e,e=t;else{if(e===l)break;for(;e.sibling===null;){if(e.return===null||e.return===l)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}i(Bp,"isRenderConsistentWithExternalStores");function Dt(l,e,t,a){e&=~Ls,e&=~ra,l.suspendedLanes|=e,l.pingedLanes&=~e,a&&(l.warmLanes|=e),a=l.expirationTimes;for(var n=e;0<n;){var u=31-ie(n),c=1<<u;a[u]=-1,n&=~c}t!==0&&Ch(l,t,e)}i(Dt,"markRootSuspended");function Bc(){return(L&6)===0?(Qu(0,!1),!1):!0}i(Bc,"flushSyncWork$1");function Zs(){if(G!==null){if(J===0)var l=G.return;else l=G,tt=za=null,Ds(l),un=null,Eu=0,l=G;for(;l!==null;)iy(l.alternate,l),l=l.return;G=null}}i(Zs,"resetWorkInProgressStack");function pn(l,e){var t=l.timeoutHandle;t!==-1&&(l.timeoutHandle=-1,$p(t)),t=l.cancelPendingCommit,t!==null&&(l.cancelPendingCommit=null,t()),ut=0,Zs(),ll=l,G=t=at(l.current,null),V=e,J=0,le=null,Ut=!1,En=xu(l,e),js=!1,yn=ae=Ls=ra=Lt=dl=0,Fl=yu=null,jo=!1,(e&8)!==0&&(e|=e&32);var a=l.entangledLanes;if(a!==0)for(l=l.entanglements,a&=e;0<a;){var n=31-ie(a),u=1<<n;e|=l[n],a&=~u}return st=e,Nc(),t}i(pn,"prepareFreshStack");function Oy(l,e){R=null,x.H=_u,e===An||e===Mc?(e=Am(),J=3):e===As?(e=Am(),J=4):J=e===Gs?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,le=e,G===null&&(dl=1,ic(l,ge(e,l.current)))}i(Oy,"handleThrow");function Uy(){var l=oe.current;return l===null?!0:(V&4194048)===V?Se===null:(V&62914560)===V||(V&536870912)!==0?l===Se:!1}i(Uy,"shouldRemainOnPreviousScreen");function Dy(){var l=x.H;return x.H=_u,l===null?_u:l}i(Dy,"pushDispatcher");function Cy(){var l=x.A;return x.A=Cp,l}i(Cy,"pushAsyncDispatcher");function rc(){dl=4,Ut||(V&4194048)!==V&&oe.current!==null||(En=!0),(Lt&134217727)===0&&(ra&134217727)===0||ll===null||Dt(ll,V,ae,!1)}i(rc,"renderDidSuspendDelayIfPossible");function eo(l,e,t){var a=L;L|=2;var n=Dy(),u=Cy();(ll!==l||V!==e)&&(sc=null,pn(l,e)),e=!1;var c=dl;l:do try{if(J!==0&&G!==null){var f=G,o=le;switch(J){case 8:Zs(),c=6;break l;case 3:case 2:case 9:case 6:oe.current===null&&(e=!0);var s=J;if(J=0,le=null,ln(l,f,o,s),t&&En){c=0;break l}break;default:s=J,J=0,le=null,ln(l,f,o,s)}}xp(),c=dl;break}catch(v){Oy(l,v)}while(!0);return e&&l.shellSuspendCounter++,tt=za=null,L=a,x.H=n,x.A=u,G===null&&(ll=null,V=0,Nc()),c}i(eo,"renderRootSync");function xp(){for(;G!==null;)ky(G)}i(xp,"workLoopSync");function Hp(l,e){var t=L;L|=2;var a=Dy(),n=Cy();ll!==l||V!==e?(sc=null,oc=ne()+500,pn(l,e)):En=xu(l,e);l:do try{if(J!==0&&G!==null){e=G;var u=le;e:switch(J){case 1:J=0,le=null,ln(l,e,u,1);break;case 2:case 9:if(Tm(u)){J=0,le=null,Km(e);break}e=i(function(){J!==2&&J!==9||ll!==l||(J=7),Ve(l)},"lanes"),u.then(e,e);break l;case 3:J=7;break l;case 4:J=5;break l;case 7:Tm(u)?(J=0,le=null,Km(e)):(J=0,le=null,ln(l,e,u,7));break;case 5:var c=null;switch(G.tag){case 26:c=G.memoizedState;case 5:case 27:var f=G;if(c?Iy(c):f.stateNode.complete){J=0,le=null;var o=f.sibling;if(o!==null)G=o;else{var s=f.return;s!==null?(G=s,xc(s)):G=null}break e}}J=0,le=null,ln(l,e,u,5);break;case 6:J=0,le=null,ln(l,e,u,6);break;case 8:Zs(),dl=6;break l;default:throw Error(S(462))}}qp();break}catch(v){Oy(l,v)}while(!0);return tt=za=null,x.H=a,x.A=n,L=t,G!==null?0:(ll=null,V=0,Nc(),dl)}i(Hp,"renderRootConcurrent");function qp(){for(;G!==null&&!u1();)ky(G)}i(qp,"workLoopConcurrentByScheduler");function ky(l){var e=uy(l.alternate,l,st);l.memoizedProps=l.pendingProps,e===null?xc(l):G=e}i(ky,"performUnitOfWork");function Km(l){var e=l,t=e.alternate;switch(e.tag){case 15:case 0:e=Gm(t,e,e.pendingProps,e.type,void 0,V);break;case 11:e=Gm(t,e,e.pendingProps,e.type.render,e.ref,V);break;case 5:Ds(e);default:iy(t,e),e=G=i0(e,st),e=uy(t,e,st)}l.memoizedProps=l.pendingProps,e===null?xc(l):G=e}i(Km,"replaySuspendedUnitOfWork");function ln(l,e,t,a){tt=za=null,Ds(e),un=null,Eu=0;var n=e.return;try{if(Ep(l,n,e,t,V)){dl=1,ic(l,ge(t,l.current)),G=null;return}}catch(u){if(n!==null)throw G=n,u;dl=1,ic(l,ge(t,l.current)),G=null;return}e.flags&32768?(j||a===1?l=!0:En||(V&536870912)!==0?l=!1:(Ut=l=!0,(a===2||a===9||a===3||a===6)&&(a=oe.current,a!==null&&a.tag===13&&(a.flags|=16384))),By(e,l)):xc(e)}i(ln,"throwAndUnwindWorkLoop");function xc(l){var e=l;do{if((e.flags&32768)!==0){By(e,Ut);return}l=e.return;var t=Mp(e.alternate,e,st);if(t!==null){G=t;return}if(e=e.sibling,e!==null){G=e;return}G=e=l}while(e!==null);dl===0&&(dl=5)}i(xc,"completeUnitOfWork");function By(l,e){do{var t=Op(l.alternate,l);if(t!==null){t.flags&=32767,G=t;return}if(t=l.return,t!==null&&(t.flags|=32768,t.subtreeFlags=0,t.deletions=null),!e&&(l=l.sibling,l!==null)){G=l;return}G=l=t}while(l!==null);dl=6,G=null}i(By,"unwindUnitOfWork");function Jm(l,e,t,a,n,u,c,f,o){l.cancelPendingCommit=null;do Hc();while(Al!==0);if((L&6)!==0)throw Error(S(327));if(e!==null){if(e===l.current)throw Error(S(177));if(u=e.lanes|e.childLanes,u|=vs,y1(l,t,u,c,f,o),l===ll&&(G=ll=null,V=0),vn=e,Rt=l,ut=t,Lo=u,Zo=n,Ny=a,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(l.callbackNode=null,l.callbackPriority=0,Vp(Wi,function(){return Yy(),null})):(l.callbackNode=null,l.callbackPriority=0),a=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||a){a=x.T,x.T=null,n=Z.p,Z.p=2,c=L,L|=4;try{Up(l,e,t)}finally{L=c,Z.p=n,x.T=a}}Al=1,xy(),Hy(),qy()}}i(Jm,"commitRoot");function xy(){if(Al===1){Al=0;var l=Rt,e=vn,t=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||t){t=x.T,x.T=null;var a=Z.p;Z.p=2;var n=L;L|=4;try{py(e,l);var u=Fo,c=Ih(l.containerInfo),f=u.focusedElem,o=u.selectionRange;if(c!==f&&f&&f.ownerDocument&&$h(f.ownerDocument.documentElement,f)){if(o!==null&&ys(f)){var s=o.start,v=o.end;if(v===void 0&&(v=s),"selectionStart"in f)f.selectionStart=s,f.selectionEnd=Math.min(v,f.value.length);else{var p=f.ownerDocument||document,m=p&&p.defaultView||window;if(m.getSelection){var h=m.getSelection(),b=f.textContent.length,N=Math.min(o.start,b),D=o.end===void 0?N:Math.min(o.end,b);!h.extend&&N>D&&(c=D,D=N,N=c);var d=ym(f,N),r=ym(f,D);if(d&&r&&(h.rangeCount!==1||h.anchorNode!==d.node||h.anchorOffset!==d.offset||h.focusNode!==r.node||h.focusOffset!==r.offset)){var y=p.createRange();y.setStart(d.node,d.offset),h.removeAllRanges(),N>D?(h.addRange(y),h.extend(r.node,r.offset)):(y.setEnd(r.node,r.offset),h.addRange(y))}}}}for(p=[],h=f;h=h.parentNode;)h.nodeType===1&&p.push({element:h,left:h.scrollLeft,top:h.scrollTop});for(typeof f.focus=="function"&&f.focus(),f=0;f<p.length;f++){var g=p[f];g.element.scrollLeft=g.left,g.element.scrollTop=g.top}}bc=!!Wo,Fo=Wo=null}finally{L=n,Z.p=a,x.T=t}}l.current=e,Al=2}}i(xy,"flushMutationEffects");function Hy(){if(Al===2){Al=0;var l=Rt,e=vn,t=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||t){t=x.T,x.T=null;var a=Z.p;Z.p=2;var n=L;L|=4;try{dy(l,e.alternate,e)}finally{L=n,Z.p=a,x.T=t}}Al=3}}i(Hy,"flushLayoutEffects");function qy(){if(Al===4||Al===3){Al=0,i1();var l=Rt,e=vn,t=ut,a=Ny;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Al=5:(Al=0,vn=Rt=null,Ry(l,l.pendingLanes));var n=l.pendingLanes;if(n===0&&(qt=null),fs(t),e=e.stateNode,ue&&typeof ue.onCommitFiberRoot=="function")try{ue.onCommitFiberRoot(Bu,e,void 0,(e.current.flags&128)===128)}catch{}if(a!==null){e=x.T,n=Z.p,Z.p=2,x.T=null;try{for(var u=l.onRecoverableError,c=0;c<a.length;c++){var f=a[c];u(f.value,{componentStack:f.stack})}}finally{x.T=e,Z.p=n}}(ut&3)!==0&&Hc(),Ve(l),n=l.pendingLanes,(t&261930)!==0&&(n&42)!==0?l===Ko?vu++:(vu=0,Ko=l):vu=0,Qu(0,!1)}}i(qy,"flushSpawnedWork");function Ry(l,e){(l.pooledCacheLanes&=e)===0&&(e=l.pooledCache,e!=null&&(l.pooledCache=null,Yu(e)))}i(Ry,"releaseRootPooledCache");function Hc(){return xy(),Hy(),qy(),Yy()}i(Hc,"flushPendingEffects");function Yy(){if(Al!==5)return!1;var l=Rt,e=Lo;Lo=0;var t=fs(ut),a=x.T,n=Z.p;try{Z.p=32>t?32:t,x.T=null,t=Zo,Zo=null;var u=Rt,c=ut;if(Al=0,vn=Rt=null,ut=0,(L&6)!==0)throw Error(S(331));var f=L;if(L|=4,Ty(u.current),by(u,u.current,c,t),L=f,Qu(0,!1),ue&&typeof ue.onPostCommitFiberRoot=="function")try{ue.onPostCommitFiberRoot(Bu,u)}catch{}return!0}finally{Z.p=n,x.T=a,Ry(l,e)}}i(Yy,"flushPassiveEffects");function wm(l,e,t){e=ge(t,e),e=Go(l.stateNode,e,2),l=Ht(l,e,2),l!==null&&(Hu(l,2),Ve(l))}i(wm,"captureCommitPhaseErrorOnRoot");function w(l,e,t){if(l.tag===3)wm(l,l,t);else for(;e!==null;){if(e.tag===3){wm(e,l,t);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(qt===null||!qt.has(a))){l=ge(t,l),t=P0(2),a=Ht(e,t,2),a!==null&&(ly(t,a,e,l),Hu(a,2),Ve(a));break}}e=e.return}}i(w,"captureCommitPhaseError");function to(l,e,t){var a=l.pingCache;if(a===null){a=l.pingCache=new kp;var n=new Set;a.set(e,n)}else n=a.get(e),n===void 0&&(n=new Set,a.set(e,n));n.has(t)||(js=!0,n.add(t),l=Rp.bind(null,l,e,t),e.then(l,l))}i(to,"attachPingListener");function Rp(l,e,t){var a=l.pingCache;a!==null&&a.delete(e),l.pingedLanes|=l.suspendedLanes&t,l.warmLanes&=~t,ll===l&&(V&t)===t&&(dl===4||dl===3&&(V&62914560)===V&&300>ne()-kc?(L&2)===0&&pn(l,0):Ls|=t,yn===V&&(yn=0)),Ve(l)}i(Rp,"pingSuspendedRoot");function Gy(l,e){e===0&&(e=Dh()),l=Sa(l,e),l!==null&&(Hu(l,e),Ve(l))}i(Gy,"retryTimedOutBoundary");function Yp(l){var e=l.memoizedState,t=0;e!==null&&(t=e.retryLane),Gy(l,t)}i(Yp,"retryDehydratedSuspenseBoundary");function Gp(l,e){var t=0;switch(l.tag){case 31:case 13:var a=l.stateNode,n=l.memoizedState;n!==null&&(t=n.retryLane);break;case 19:a=l.stateNode;break;case 22:a=l.stateNode._retryCache;break;default:throw Error(S(314))}a!==null&&a.delete(e),Gy(l,t)}i(Gp,"resolveRetryWakeable");function Vp(l,e){return is(l,e)}i(Vp,"scheduleCallback$1");var dc=null,Xa=null,Jo=!1,mc=!1,ao=!1,Ct=0;function Ve(l){l!==Xa&&l.next===null&&(Xa===null?dc=Xa=l:Xa=Xa.next=l),mc=!0,Jo||(Jo=!0,Xp())}i(Ve,"ensureRootIsScheduled");function Qu(l,e){if(!ao&&mc){ao=!0;do for(var t=!1,a=dc;a!==null;){if(!e)if(l!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var c=a.suspendedLanes,f=a.pingedLanes;u=(1<<31-ie(42|l)+1)-1,u&=n&~(c&~f),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(t=!0,Wm(a,u))}else u=V,u=zc(a,a===ll?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||xu(a,u)||(t=!0,Wm(a,u));a=a.next}while(t);ao=!1}}i(Qu,"flushSyncWorkAcrossRoots_impl");function Qp(){Vy()}i(Qp,"processRootScheduleInImmediateTask");function Vy(){mc=Jo=!1;var l=0;Ct!==0&&Fp()&&(l=Ct);for(var e=ne(),t=null,a=dc;a!==null;){var n=a.next,u=Qy(a,e);u===0?(a.next=null,t===null?dc=n:t.next=n,n===null&&(Xa=t)):(t=a,(l!==0||(u&3)!==0)&&(mc=!0)),a=n}Al!==0&&Al!==5||Qu(l,!1),Ct!==0&&(Ct=0)}i(Vy,"processRootScheduleInMicrotask");function Qy(l,e){for(var t=l.suspendedLanes,a=l.pingedLanes,n=l.expirationTimes,u=l.pendingLanes&-62914561;0<u;){var c=31-ie(u),f=1<<c,o=n[c];o===-1?((f&t)===0||(f&a)!==0)&&(n[c]=h1(f,e)):o<=e&&(l.expiredLanes|=f),u&=~f}if(e=ll,t=V,t=zc(l,l===e?t:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),a=l.callbackNode,t===0||l===e&&(J===2||J===9)||l.cancelPendingCommit!==null)return a!==null&&a!==null&&kf(a),l.callbackNode=null,l.callbackPriority=0;if((t&3)===0||xu(l,t)){if(e=t&-t,e===l.callbackPriority)return e;switch(a!==null&&kf(a),fs(t)){case 2:case 8:t=Oh;break;case 32:t=Wi;break;case 268435456:t=Uh;break;default:t=Wi}return a=Xy.bind(null,l),t=is(t,a),l.callbackPriority=e,l.callbackNode=t,e}return a!==null&&a!==null&&kf(a),l.callbackPriority=2,l.callbackNode=null,2}i(Qy,"scheduleTaskForRootDuringMicrotask");function Xy(l,e){if(Al!==0&&Al!==5)return l.callbackNode=null,l.callbackPriority=0,null;var t=l.callbackNode;if(Hc()&&l.callbackNode!==t)return null;var a=V;return a=zc(l,l===ll?a:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),a===0?null:(My(l,a,e),Qy(l,ne()),l.callbackNode!=null&&l.callbackNode===t?Xy.bind(null,l):null)}i(Xy,"performWorkOnRootViaSchedulerTask");function Wm(l,e){if(Hc())return null;My(l,e,!0)}i(Wm,"performSyncWorkOnRoot");function Xp(){Ip(function(){(L&6)!==0?is(Mh,Qp):Vy()})}i(Xp,"scheduleImmediateRootScheduleTask");function Ks(){if(Ct===0){var l=dn;l===0&&(l=hi,hi<<=1,(hi&261888)===0&&(hi=256)),Ct=l}return Ct}i(Ks,"requestTransitionLane");function Fm(l){return l==null||typeof l=="symbol"||typeof l=="boolean"?null:typeof l=="function"?l:ki(""+l)}i(Fm,"coerceFormActionProp");function $m(l,e){var t=e.ownerDocument.createElement("input");return t.name=e.name,t.value=e.value,l.id&&t.setAttribute("form",l.id),e.parentNode.insertBefore(t,e),l=new FormData(l),t.parentNode.removeChild(t),l}i($m,"createFormDataWithSubmitter");function jp(l,e,t,a,n){if(e==="submit"&&t&&t.stateNode===n){var u=Fm((n[Il]||null).action),c=a.submitter;c&&(e=(e=c[Il]||null)?Fm(e.formAction):c.getAttribute("formAction"),e!==null&&(u=e,c=null));var f=new Tc("action","action",null,a,n);l.push({event:f,listeners:[{instance:null,listener:i(function(){if(a.defaultPrevented){if(Ct!==0){var o=c?$m(n,c):new FormData(n);Ro(t,{pending:!0,data:o,method:n.method,action:u},null,o)}}else typeof u=="function"&&(f.preventDefault(),o=c?$m(n,c):new FormData(n),Ro(t,{pending:!0,data:o,method:n.method,action:u},u,o))},"listener"),currentTarget:n}]})}}i(jp,"extractEvents$1");for(_i=0;_i<No.length;_i++)Mi=No[_i],Im=Mi.toLowerCase(),Pm=Mi[0].toUpperCase()+Mi.slice(1),Me(Im,"on"+Pm);var Mi,Im,Pm,_i;Me(l0,"onAnimationEnd");Me(e0,"onAnimationIteration");Me(t0,"onAnimationStart");Me("dblclick","onDoubleClick");Me("focusin","onFocus");Me("focusout","onBlur");Me(cp,"onTransitionRun");Me(fp,"onTransitionStart");Me(op,"onTransitionCancel");Me(a0,"onTransitionEnd");sn("onMouseEnter",["mouseout","mouseover"]);sn("onMouseLeave",["mouseout","mouseover"]);sn("onPointerEnter",["pointerout","pointerover"]);sn("onPointerLeave",["pointerout","pointerover"]);pa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));pa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));pa("onBeforeInput",["compositionend","keypress","textInput","paste"]);pa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));pa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));pa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mu="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Lp=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Mu));function jy(l,e){e=(e&4)!==0;for(var t=0;t<l.length;t++){var a=l[t],n=a.event;a=a.listeners;l:{var u=void 0;if(e)for(var c=a.length-1;0<=c;c--){var f=a[c],o=f.instance,s=f.currentTarget;if(f=f.listener,o!==u&&n.isPropagationStopped())break l;u=f,n.currentTarget=s;try{u(n)}catch(v){$i(v)}n.currentTarget=null,u=o}else for(c=0;c<a.length;c++){if(f=a[c],o=f.instance,s=f.currentTarget,f=f.listener,o!==u&&n.isPropagationStopped())break l;u=f,n.currentTarget=s;try{u(n)}catch(v){$i(v)}n.currentTarget=null,u=o}}}}i(jy,"processDispatchQueue");function Y(l,e){var t=e[po];t===void 0&&(t=e[po]=new Set);var a=l+"__bubble";t.has(a)||(Ly(e,l,2,!1),t.add(a))}i(Y,"listenToNonDelegatedEvent");function no(l,e,t){var a=0;e&&(a|=4),Ly(t,l,a,e)}i(no,"listenToNativeEvent");var Oi="_reactListening"+Math.random().toString(36).slice(2);function Js(l){if(!l[Oi]){l[Oi]=!0,Hh.forEach(function(t){t!=="selectionchange"&&(Lp.has(t)||no(t,!1,l),no(t,!0,l))});var e=l.nodeType===9?l:l.ownerDocument;e===null||e[Oi]||(e[Oi]=!0,no("selectionchange",!1,e))}}i(Js,"listenToAllSupportedEvents");function Ly(l,e,t,a){switch(av(e)){case 2:var n=gg;break;case 8:n=bg;break;default:n=$s}t=n.bind(null,e,t,l),n=void 0,!To||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(n=!0),a?n!==void 0?l.addEventListener(e,t,{capture:!0,passive:n}):l.addEventListener(e,t,!0):n!==void 0?l.addEventListener(e,t,{passive:n}):l.addEventListener(e,t,!1)}i(Ly,"addTrappedEventListener");function uo(l,e,t,a,n){var u=a;if((e&1)===0&&(e&2)===0&&a!==null)l:for(;;){if(a===null)return;var c=a.tag;if(c===3||c===4){var f=a.stateNode.containerInfo;if(f===n)break;if(c===4)for(c=a.return;c!==null;){var o=c.tag;if((o===3||o===4)&&c.stateNode.containerInfo===n)return;c=c.return}for(;f!==null;){if(c=Za(f),c===null)return;if(o=c.tag,o===5||o===6||o===26||o===27){a=u=c;continue l}f=f.parentNode}}a=a.return}jh(function(){var s=u,v=rs(t),p=[];l:{var m=n0.get(l);if(m!==void 0){var h=Tc,b=l;switch(l){case"keypress":if(xi(t)===0)break l;case"keydown":case"keyup":h=G1;break;case"focusin":b="focus",h=Rf;break;case"focusout":b="blur",h=Rf;break;case"beforeblur":case"afterblur":h=Rf;break;case"click":if(t.button===2)break l;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=im;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=M1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=X1;break;case l0:case e0:case t0:h=D1;break;case a0:h=L1;break;case"scroll":case"scrollend":h=N1;break;case"wheel":h=K1;break;case"copy":case"cut":case"paste":h=k1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=fm;break;case"toggle":case"beforetoggle":h=w1}var N=(e&4)!==0,D=!N&&(l==="scroll"||l==="scrollend"),d=N?m!==null?m+"Capture":null:m;N=[];for(var r=s,y;r!==null;){var g=r;if(y=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||y===null||d===null||(g=bu(r,d),g!=null&&N.push(Ou(r,g,y))),D)break;r=r.return}0<N.length&&(m=new h(m,b,null,t,v),p.push({event:m,listeners:N}))}}if((e&7)===0){l:{if(m=l==="mouseover"||l==="pointerover",h=l==="mouseout"||l==="pointerout",m&&t!==zo&&(b=t.relatedTarget||t.fromElement)&&(Za(b)||b[Sn]))break l;if((h||m)&&(m=v.window===v?v:(m=v.ownerDocument)?m.defaultView||m.parentWindow:window,h?(b=t.relatedTarget||t.toElement,h=s,b=b?Za(b):null,b!==null&&(D=ku(b),N=b.tag,b!==D||N!==5&&N!==27&&N!==6)&&(b=null)):(h=null,b=s),h!==b)){if(N=im,g="onMouseLeave",d="onMouseEnter",r="mouse",(l==="pointerout"||l==="pointerover")&&(N=fm,g="onPointerLeave",d="onPointerEnter",r="pointer"),D=h==null?m:tu(h),y=b==null?m:tu(b),m=new N(g,r+"leave",h,t,v),m.target=D,m.relatedTarget=y,g=null,Za(v)===s&&(N=new N(d,r+"enter",b,t,v),N.target=y,N.relatedTarget=D,g=N),D=g,h&&b)e:{for(N=Zp,d=h,r=b,y=0,g=d;g;g=N(g))y++;g=0;for(var A=r;A;A=N(A))g++;for(;0<y-g;)d=N(d),y--;for(;0<g-y;)r=N(r),g--;for(;y--;){if(d===r||r!==null&&d===r.alternate){N=d;break e}d=N(d),r=N(r)}N=null}else N=null;h!==null&&lh(p,m,h,N,!1),b!==null&&D!==null&&lh(p,D,b,N,!0)}}l:{if(m=s?tu(s):window,h=m.nodeName&&m.nodeName.toLowerCase(),h==="select"||h==="input"&&m.type==="file")var C=dm;else if(rm(m))if(Wh)C=np;else{C=tp;var E=ep}else h=m.nodeName,!h||h.toLowerCase()!=="input"||m.type!=="checkbox"&&m.type!=="radio"?s&&ss(s.elementType)&&(C=dm):C=ap;if(C&&(C=C(l,s))){wh(p,C,t,v);break l}E&&E(l,m,s),l==="focusout"&&s&&m.type==="number"&&s.memoizedProps.value!=null&&So(m,"number",m.value)}switch(E=s?tu(s):window,l){case"focusin":(rm(E)||E.contentEditable==="true")&&(wa=E,Ao=s,cu=null);break;case"focusout":cu=Ao=wa=null;break;case"mousedown":Eo=!0;break;case"contextmenu":case"mouseup":case"dragend":Eo=!1,vm(p,t,v);break;case"selectionchange":if(ip)break;case"keydown":case"keyup":vm(p,t,v)}var O;if(hs)l:{switch(l){case"compositionstart":var U="onCompositionStart";break l;case"compositionend":U="onCompositionEnd";break l;case"compositionupdate":U="onCompositionUpdate";break l}U=void 0}else Ja?Kh(l,t)&&(U="onCompositionEnd"):l==="keydown"&&t.keyCode===229&&(U="onCompositionStart");U&&(Zh&&t.locale!=="ko"&&(Ja||U!=="onCompositionStart"?U==="onCompositionEnd"&&Ja&&(O=Lh()):(Ot=v,ds="value"in Ot?Ot.value:Ot.textContent,Ja=!0)),E=hc(s,U),0<E.length&&(U=new cm(U,l,null,t,v),p.push({event:U,listeners:E}),O?U.data=O:(O=Jh(t),O!==null&&(U.data=O)))),(O=F1?$1(l,t):I1(l,t))&&(U=hc(s,"onBeforeInput"),0<U.length&&(E=new cm("onBeforeInput","beforeinput",null,t,v),p.push({event:E,listeners:U}),E.data=O)),jp(p,l,s,t,v)}jy(p,e)})}i(uo,"dispatchEventForPluginEventSystem");function Ou(l,e,t){return{instance:l,listener:e,currentTarget:t}}i(Ou,"createDispatchListener");function hc(l,e){for(var t=e+"Capture",a=[];l!==null;){var n=l,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=bu(l,t),n!=null&&a.unshift(Ou(l,n,u)),n=bu(l,e),n!=null&&a.push(Ou(l,n,u))),l.tag===3)return a;l=l.return}return[]}i(hc,"accumulateTwoPhaseListeners");function Zp(l){if(l===null)return null;do l=l.return;while(l&&l.tag!==5&&l.tag!==27);return l||null}i(Zp,"getParent");function lh(l,e,t,a,n){for(var u=e._reactName,c=[];t!==null&&t!==a;){var f=t,o=f.alternate,s=f.stateNode;if(f=f.tag,o!==null&&o===a)break;f!==5&&f!==26&&f!==27||s===null||(o=s,n?(s=bu(t,u),s!=null&&c.unshift(Ou(t,s,o))):n||(s=bu(t,u),s!=null&&c.push(Ou(t,s,o)))),t=t.return}c.length!==0&&l.push({event:e,listeners:c})}i(lh,"accumulateEnterLeaveListenersForEvent");var Kp=/\r\n?/g,Jp=/\u0000|\uFFFD/g;function eh(l){return(typeof l=="string"?l:""+l).replace(Kp,`
9
- `).replace(Jp,"")}i(eh,"normalizeMarkupForTextOrAttribute");function Zy(l,e){return e=eh(e),eh(l)===e}i(Zy,"checkForUnmatchedText");function $(l,e,t,a,n,u){switch(t){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||rn(l,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&rn(l,""+a);break;case"className":pi(l,"class",a);break;case"tabIndex":pi(l,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":pi(l,t,a);break;case"style":Xh(l,a,u);break;case"data":if(e!=="object"){pi(l,"data",a);break}case"src":case"href":if(a===""&&(e!=="a"||t!=="href")){l.removeAttribute(t);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){l.removeAttribute(t);break}a=ki(""+a),l.setAttribute(t,a);break;case"action":case"formAction":if(typeof a=="function"){l.setAttribute(t,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(t==="formAction"?(e!=="input"&&$(l,e,"name",n.name,n,null),$(l,e,"formEncType",n.formEncType,n,null),$(l,e,"formMethod",n.formMethod,n,null),$(l,e,"formTarget",n.formTarget,n,null)):($(l,e,"encType",n.encType,n,null),$(l,e,"method",n.method,n,null),$(l,e,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){l.removeAttribute(t);break}a=ki(""+a),l.setAttribute(t,a);break;case"onClick":a!=null&&(l.onclick=et);break;case"onScroll":a!=null&&Y("scroll",l);break;case"onScrollEnd":a!=null&&Y("scrollend",l);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(S(61));if(t=a.__html,t!=null){if(n.children!=null)throw Error(S(60));l.innerHTML=t}}break;case"multiple":l.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":l.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){l.removeAttribute("xlink:href");break}t=ki(""+a),l.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?l.setAttribute(t,""+a):l.removeAttribute(t);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?l.setAttribute(t,""):l.removeAttribute(t);break;case"capture":case"download":a===!0?l.setAttribute(t,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?l.setAttribute(t,a):l.removeAttribute(t);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?l.setAttribute(t,a):l.removeAttribute(t);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?l.removeAttribute(t):l.setAttribute(t,a);break;case"popover":Y("beforetoggle",l),Y("toggle",l),Ci(l,"popover",a);break;case"xlinkActuate":Je(l,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Je(l,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Je(l,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Je(l,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Je(l,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Je(l,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Je(l,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Je(l,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Je(l,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Ci(l,"is",a);break;case"innerText":case"textContent":break;default:(!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(t=A1.get(t)||t,Ci(l,t,a))}}i($,"setProp");function wo(l,e,t,a,n,u){switch(t){case"style":Xh(l,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(S(61));if(t=a.__html,t!=null){if(n.children!=null)throw Error(S(60));l.innerHTML=t}}break;case"children":typeof a=="string"?rn(l,a):(typeof a=="number"||typeof a=="bigint")&&rn(l,""+a);break;case"onScroll":a!=null&&Y("scroll",l);break;case"onScrollEnd":a!=null&&Y("scrollend",l);break;case"onClick":a!=null&&(l.onclick=et);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!qh.hasOwnProperty(t))l:{if(t[0]==="o"&&t[1]==="n"&&(n=t.endsWith("Capture"),e=t.slice(2,n?t.length-7:void 0),u=l[Il]||null,u=u!=null?u[t]:null,typeof u=="function"&&l.removeEventListener(e,u,n),typeof a=="function")){typeof u!="function"&&u!==null&&(t in l?l[t]=null:l.hasAttribute(t)&&l.removeAttribute(t)),l.addEventListener(e,a,n);break l}t in l?l[t]=a:a===!0?l.setAttribute(t,""):Ci(l,t,a)}}}i(wo,"setPropOnCustomElement");function Yl(l,e,t){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Y("error",l),Y("load",l);var a=!1,n=!1,u;for(u in t)if(t.hasOwnProperty(u)){var c=t[u];if(c!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(S(137,e));default:$(l,e,u,c,t,null)}}n&&$(l,e,"srcSet",t.srcSet,t,null),a&&$(l,e,"src",t.src,t,null);return;case"input":Y("invalid",l);var f=u=c=n=null,o=null,s=null;for(a in t)if(t.hasOwnProperty(a)){var v=t[a];if(v!=null)switch(a){case"name":n=v;break;case"type":c=v;break;case"checked":o=v;break;case"defaultChecked":s=v;break;case"value":u=v;break;case"defaultValue":f=v;break;case"children":case"dangerouslySetInnerHTML":if(v!=null)throw Error(S(137,e));break;default:$(l,e,a,v,t,null)}}Gh(l,u,f,o,s,c,n,!1);return;case"select":Y("invalid",l),a=c=u=null;for(n in t)if(t.hasOwnProperty(n)&&(f=t[n],f!=null))switch(n){case"value":u=f;break;case"defaultValue":c=f;break;case"multiple":a=f;default:$(l,e,n,f,t,null)}e=u,t=c,l.multiple=!!a,e!=null?tn(l,!!a,e,!1):t!=null&&tn(l,!!a,t,!0);return;case"textarea":Y("invalid",l),u=n=a=null;for(c in t)if(t.hasOwnProperty(c)&&(f=t[c],f!=null))switch(c){case"value":a=f;break;case"defaultValue":n=f;break;case"children":u=f;break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(S(91));break;default:$(l,e,c,f,t,null)}Qh(l,a,n,u);return;case"option":for(o in t)t.hasOwnProperty(o)&&(a=t[o],a!=null)&&(o==="selected"?l.selected=a&&typeof a!="function"&&typeof a!="symbol":$(l,e,o,a,t,null));return;case"dialog":Y("beforetoggle",l),Y("toggle",l),Y("cancel",l),Y("close",l);break;case"iframe":case"object":Y("load",l);break;case"video":case"audio":for(a=0;a<Mu.length;a++)Y(Mu[a],l);break;case"image":Y("error",l),Y("load",l);break;case"details":Y("toggle",l);break;case"embed":case"source":case"link":Y("error",l),Y("load",l);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(s in t)if(t.hasOwnProperty(s)&&(a=t[s],a!=null))switch(s){case"children":case"dangerouslySetInnerHTML":throw Error(S(137,e));default:$(l,e,s,a,t,null)}return;default:if(ss(e)){for(v in t)t.hasOwnProperty(v)&&(a=t[v],a!==void 0&&wo(l,e,v,a,t,void 0));return}}for(f in t)t.hasOwnProperty(f)&&(a=t[f],a!=null&&$(l,e,f,a,t,null))}i(Yl,"setInitialProperties");function wp(l,e,t,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,u=null,c=null,f=null,o=null,s=null,v=null;for(h in t){var p=t[h];if(t.hasOwnProperty(h)&&p!=null)switch(h){case"checked":break;case"value":break;case"defaultValue":o=p;default:a.hasOwnProperty(h)||$(l,e,h,null,a,p)}}for(var m in a){var h=a[m];if(p=t[m],a.hasOwnProperty(m)&&(h!=null||p!=null))switch(m){case"type":u=h;break;case"name":n=h;break;case"checked":s=h;break;case"defaultChecked":v=h;break;case"value":c=h;break;case"defaultValue":f=h;break;case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(S(137,e));break;default:h!==p&&$(l,e,m,h,a,p)}}bo(l,c,f,o,s,v,u,n);return;case"select":h=c=f=m=null;for(u in t)if(o=t[u],t.hasOwnProperty(u)&&o!=null)switch(u){case"value":break;case"multiple":h=o;default:a.hasOwnProperty(u)||$(l,e,u,null,a,o)}for(n in a)if(u=a[n],o=t[n],a.hasOwnProperty(n)&&(u!=null||o!=null))switch(n){case"value":m=u;break;case"defaultValue":f=u;break;case"multiple":c=u;default:u!==o&&$(l,e,n,u,a,o)}e=f,t=c,a=h,m!=null?tn(l,!!t,m,!1):!!a!=!!t&&(e!=null?tn(l,!!t,e,!0):tn(l,!!t,t?[]:"",!1));return;case"textarea":h=m=null;for(f in t)if(n=t[f],t.hasOwnProperty(f)&&n!=null&&!a.hasOwnProperty(f))switch(f){case"value":break;case"children":break;default:$(l,e,f,null,a,n)}for(c in a)if(n=a[c],u=t[c],a.hasOwnProperty(c)&&(n!=null||u!=null))switch(c){case"value":m=n;break;case"defaultValue":h=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(S(91));break;default:n!==u&&$(l,e,c,n,a,u)}Vh(l,m,h);return;case"option":for(var b in t)m=t[b],t.hasOwnProperty(b)&&m!=null&&!a.hasOwnProperty(b)&&(b==="selected"?l.selected=!1:$(l,e,b,null,a,m));for(o in a)m=a[o],h=t[o],a.hasOwnProperty(o)&&m!==h&&(m!=null||h!=null)&&(o==="selected"?l.selected=m&&typeof m!="function"&&typeof m!="symbol":$(l,e,o,m,a,h));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var N in t)m=t[N],t.hasOwnProperty(N)&&m!=null&&!a.hasOwnProperty(N)&&$(l,e,N,null,a,m);for(s in a)if(m=a[s],h=t[s],a.hasOwnProperty(s)&&m!==h&&(m!=null||h!=null))switch(s){case"children":case"dangerouslySetInnerHTML":if(m!=null)throw Error(S(137,e));break;default:$(l,e,s,m,a,h)}return;default:if(ss(e)){for(var D in t)m=t[D],t.hasOwnProperty(D)&&m!==void 0&&!a.hasOwnProperty(D)&&wo(l,e,D,void 0,a,m);for(v in a)m=a[v],h=t[v],!a.hasOwnProperty(v)||m===h||m===void 0&&h===void 0||wo(l,e,v,m,a,h);return}}for(var d in t)m=t[d],t.hasOwnProperty(d)&&m!=null&&!a.hasOwnProperty(d)&&$(l,e,d,null,a,m);for(p in a)m=a[p],h=t[p],!a.hasOwnProperty(p)||m===h||m==null&&h==null||$(l,e,p,m,a,h)}i(wp,"updateProperties");function th(l){switch(l){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}i(th,"isLikelyStaticResource");function Wp(){if(typeof performance.getEntriesByType=="function"){for(var l=0,e=0,t=performance.getEntriesByType("resource"),a=0;a<t.length;a++){var n=t[a],u=n.transferSize,c=n.initiatorType,f=n.duration;if(u&&f&&th(c)){for(c=0,f=n.responseEnd,a+=1;a<t.length;a++){var o=t[a],s=o.startTime;if(s>f)break;var v=o.transferSize,p=o.initiatorType;v&&th(p)&&(o=o.responseEnd,c+=v*(o<f?1:(f-s)/(o-s)))}if(--a,e+=8*(u+c)/(n.duration/1e3),l++,10<l)break}}if(0<l)return e/l/1e6}return navigator.connection&&(l=navigator.connection.downlink,typeof l=="number")?l:5}i(Wp,"estimateBandwidth");var Wo=null,Fo=null;function yc(l){return l.nodeType===9?l:l.ownerDocument}i(yc,"getOwnerDocumentFromRootContainer");function ah(l){switch(l){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}i(ah,"getOwnHostContext");function Ky(l,e){if(l===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return l===1&&e==="foreignObject"?0:l}i(Ky,"getChildHostContextProd");function $o(l,e){return l==="textarea"||l==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}i($o,"shouldSetTextContent");var io=null;function Fp(){var l=window.event;return l&&l.type==="popstate"?l===io?!1:(io=l,!0):(io=null,!1)}i(Fp,"shouldAttemptEagerTransition");var Jy=typeof setTimeout=="function"?setTimeout:void 0,$p=typeof clearTimeout=="function"?clearTimeout:void 0,nh=typeof Promise=="function"?Promise:void 0,Ip=typeof queueMicrotask=="function"?queueMicrotask:typeof nh<"u"?function(l){return nh.resolve(null).then(l).catch(Pp)}:Jy;function Pp(l){setTimeout(function(){throw l})}i(Pp,"handleErrorInNextTick");function Kt(l){return l==="head"}i(Kt,"isSingletonScope");function uh(l,e){var t=e,a=0;do{var n=t.nextSibling;if(l.removeChild(t),n&&n.nodeType===8)if(t=n.data,t==="/$"||t==="/&"){if(a===0){l.removeChild(n),bn(e);return}a--}else if(t==="$"||t==="$?"||t==="$~"||t==="$!"||t==="&")a++;else if(t==="html")pu(l.ownerDocument.documentElement);else if(t==="head"){t=l.ownerDocument.head,pu(t);for(var u=t.firstChild;u;){var c=u.nextSibling,f=u.nodeName;u[qu]||f==="SCRIPT"||f==="STYLE"||f==="LINK"&&u.rel.toLowerCase()==="stylesheet"||t.removeChild(u),u=c}}else t==="body"&&pu(l.ownerDocument.body);t=n}while(t);bn(e)}i(uh,"clearHydrationBoundary");function ih(l,e){var t=l;l=0;do{var a=t.nextSibling;if(t.nodeType===1?e?(t._stashedDisplay=t.style.display,t.style.display="none"):(t.style.display=t._stashedDisplay||"",t.getAttribute("style")===""&&t.removeAttribute("style")):t.nodeType===3&&(e?(t._stashedText=t.nodeValue,t.nodeValue=""):t.nodeValue=t._stashedText||""),a&&a.nodeType===8)if(t=a.data,t==="/$"){if(l===0)break;l--}else t!=="$"&&t!=="$?"&&t!=="$~"&&t!=="$!"||l++;t=a}while(t)}i(ih,"hideOrUnhideDehydratedBoundary");function Io(l){var e=l.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var t=e;switch(e=e.nextSibling,t.nodeName){case"HTML":case"HEAD":case"BODY":Io(t),os(t);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(t.rel.toLowerCase()==="stylesheet")continue}l.removeChild(t)}}i(Io,"clearContainerSparingly");function lg(l,e,t,a){for(;l.nodeType===1;){var n=t;if(l.nodeName.toLowerCase()!==e.toLowerCase()){if(!a&&(l.nodeName!=="INPUT"||l.type!=="hidden"))break}else if(a){if(!l[qu])switch(e){case"meta":if(!l.hasAttribute("itemprop"))break;return l;case"link":if(u=l.getAttribute("rel"),u==="stylesheet"&&l.hasAttribute("data-precedence"))break;if(u!==n.rel||l.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||l.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||l.getAttribute("title")!==(n.title==null?null:n.title))break;return l;case"style":if(l.hasAttribute("data-precedence"))break;return l;case"script":if(u=l.getAttribute("src"),(u!==(n.src==null?null:n.src)||l.getAttribute("type")!==(n.type==null?null:n.type)||l.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&l.hasAttribute("async")&&!l.hasAttribute("itemprop"))break;return l;default:return l}}else if(e==="input"&&l.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&l.getAttribute("name")===u)return l}else return l;if(l=ze(l.nextSibling),l===null)break}return null}i(lg,"canHydrateInstance");function eg(l,e,t){if(e==="")return null;for(;l.nodeType!==3;)if((l.nodeType!==1||l.nodeName!=="INPUT"||l.type!=="hidden")&&!t||(l=ze(l.nextSibling),l===null))return null;return l}i(eg,"canHydrateTextInstance");function wy(l,e){for(;l.nodeType!==8;)if((l.nodeType!==1||l.nodeName!=="INPUT"||l.type!=="hidden")&&!e||(l=ze(l.nextSibling),l===null))return null;return l}i(wy,"canHydrateHydrationBoundary");function Po(l){return l.data==="$?"||l.data==="$~"}i(Po,"isSuspenseInstancePending");function ls(l){return l.data==="$!"||l.data==="$?"&&l.ownerDocument.readyState!=="loading"}i(ls,"isSuspenseInstanceFallback");function tg(l,e){var t=l.ownerDocument;if(l.data==="$~")l._reactRetry=e;else if(l.data!=="$?"||t.readyState!=="loading")e();else{var a=i(function(){e(),t.removeEventListener("DOMContentLoaded",a)},"listener");t.addEventListener("DOMContentLoaded",a),l._reactRetry=a}}i(tg,"registerSuspenseInstanceRetry");function ze(l){for(;l!=null;l=l.nextSibling){var e=l.nodeType;if(e===1||e===3)break;if(e===8){if(e=l.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return l}i(ze,"getNextHydratable");var es=null;function ch(l){l=l.nextSibling;for(var e=0;l;){if(l.nodeType===8){var t=l.data;if(t==="/$"||t==="/&"){if(e===0)return ze(l.nextSibling);e--}else t!=="$"&&t!=="$!"&&t!=="$?"&&t!=="$~"&&t!=="&"||e++}l=l.nextSibling}return null}i(ch,"getNextHydratableInstanceAfterHydrationBoundary");function fh(l){l=l.previousSibling;for(var e=0;l;){if(l.nodeType===8){var t=l.data;if(t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"){if(e===0)return l;e--}else t!=="/$"&&t!=="/&"||e++}l=l.previousSibling}return null}i(fh,"getParentHydrationBoundary");function Wy(l,e,t){switch(e=yc(t),l){case"html":if(l=e.documentElement,!l)throw Error(S(452));return l;case"head":if(l=e.head,!l)throw Error(S(453));return l;case"body":if(l=e.body,!l)throw Error(S(454));return l;default:throw Error(S(451))}}i(Wy,"resolveSingletonInstance");function pu(l){for(var e=l.attributes;e.length;)l.removeAttributeNode(e[0]);os(l)}i(pu,"releaseSingletonInstance");var Te=new Map,oh=new Set;function vc(l){return typeof l.getRootNode=="function"?l.getRootNode():l.nodeType===9?l:l.ownerDocument}i(vc,"getHoistableRoot");var rt=Z.d;Z.d={f:ag,r:ng,D:ug,C:ig,L:cg,m:fg,X:sg,S:og,M:rg};function ag(){var l=rt.f(),e=Bc();return l||e}i(ag,"flushSyncWork");function ng(l){var e=zn(l);e!==null&&e.tag===5&&e.type==="form"?X0(e):rt.r(l)}i(ng,"requestFormReset");var Nn=typeof document>"u"?null:document;function Fy(l,e,t){var a=Nn;if(a&&typeof e=="string"&&e){var n=pe(e);n='link[rel="'+l+'"][href="'+n+'"]',typeof t=="string"&&(n+='[crossorigin="'+t+'"]'),oh.has(n)||(oh.add(n),l={rel:l,crossOrigin:t,href:e},a.querySelector(n)===null&&(e=a.createElement("link"),Yl(e,"link",l),Ol(e),a.head.appendChild(e)))}}i(Fy,"preconnectAs");function ug(l){rt.D(l),Fy("dns-prefetch",l,null)}i(ug,"prefetchDNS");function ig(l,e){rt.C(l,e),Fy("preconnect",l,e)}i(ig,"preconnect");function cg(l,e,t){rt.L(l,e,t);var a=Nn;if(a&&l&&e){var n='link[rel="preload"][as="'+pe(e)+'"]';e==="image"&&t&&t.imageSrcSet?(n+='[imagesrcset="'+pe(t.imageSrcSet)+'"]',typeof t.imageSizes=="string"&&(n+='[imagesizes="'+pe(t.imageSizes)+'"]')):n+='[href="'+pe(l)+'"]';var u=n;switch(e){case"style":u=gn(l);break;case"script":u=_n(l)}Te.has(u)||(l=ul({rel:"preload",href:e==="image"&&t&&t.imageSrcSet?void 0:l,as:e},t),Te.set(u,l),a.querySelector(n)!==null||e==="style"&&a.querySelector(Xu(u))||e==="script"&&a.querySelector(ju(u))||(e=a.createElement("link"),Yl(e,"link",l),Ol(e),a.head.appendChild(e)))}}i(cg,"preload");function fg(l,e){rt.m(l,e);var t=Nn;if(t&&l){var a=e&&typeof e.as=="string"?e.as:"script",n='link[rel="modulepreload"][as="'+pe(a)+'"][href="'+pe(l)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=_n(l)}if(!Te.has(u)&&(l=ul({rel:"modulepreload",href:l},e),Te.set(u,l),t.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(t.querySelector(ju(u)))return}a=t.createElement("link"),Yl(a,"link",l),Ol(a),t.head.appendChild(a)}}}i(fg,"preloadModule");function og(l,e,t){rt.S(l,e,t);var a=Nn;if(a&&l){var n=en(a).hoistableStyles,u=gn(l);e=e||"default";var c=n.get(u);if(!c){var f={loading:0,preload:null};if(c=a.querySelector(Xu(u)))f.loading=5;else{l=ul({rel:"stylesheet",href:l,"data-precedence":e},t),(t=Te.get(u))&&ws(l,t);var o=c=a.createElement("link");Ol(o),Yl(o,"link",l),o._p=new Promise(function(s,v){o.onload=s,o.onerror=v}),o.addEventListener("load",function(){f.loading|=1}),o.addEventListener("error",function(){f.loading|=2}),f.loading|=4,Xi(c,e,a)}c={type:"stylesheet",instance:c,count:1,state:f},n.set(u,c)}}}i(og,"preinitStyle");function sg(l,e){rt.X(l,e);var t=Nn;if(t&&l){var a=en(t).hoistableScripts,n=_n(l),u=a.get(n);u||(u=t.querySelector(ju(n)),u||(l=ul({src:l,async:!0},e),(e=Te.get(n))&&Ws(l,e),u=t.createElement("script"),Ol(u),Yl(u,"link",l),t.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}i(sg,"preinitScript");function rg(l,e){rt.M(l,e);var t=Nn;if(t&&l){var a=en(t).hoistableScripts,n=_n(l),u=a.get(n);u||(u=t.querySelector(ju(n)),u||(l=ul({src:l,async:!0,type:"module"},e),(e=Te.get(n))&&Ws(l,e),u=t.createElement("script"),Ol(u),Yl(u,"link",l),t.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}i(rg,"preinitModuleScript");function sh(l,e,t,a){var n=(n=kt.current)?vc(n):null;if(!n)throw Error(S(446));switch(l){case"meta":case"title":return null;case"style":return typeof t.precedence=="string"&&typeof t.href=="string"?(e=gn(t.href),t=en(n).hoistableStyles,a=t.get(e),a||(a={type:"style",instance:null,count:0,state:null},t.set(e,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(t.rel==="stylesheet"&&typeof t.href=="string"&&typeof t.precedence=="string"){l=gn(t.href);var u=en(n).hoistableStyles,c=u.get(l);if(c||(n=n.ownerDocument||n,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(l,c),(u=n.querySelector(Xu(l)))&&!u._p&&(c.instance=u,c.state.loading=5),Te.has(l)||(t={rel:"preload",as:"style",href:t.href,crossOrigin:t.crossOrigin,integrity:t.integrity,media:t.media,hrefLang:t.hrefLang,referrerPolicy:t.referrerPolicy},Te.set(l,t),u||dg(n,l,t,c.state))),e&&a===null)throw Error(S(528,""));return c}if(e&&a!==null)throw Error(S(529,""));return null;case"script":return e=t.async,t=t.src,typeof t=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=_n(t),t=en(n).hoistableScripts,a=t.get(e),a||(a={type:"script",instance:null,count:0,state:null},t.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(S(444,l))}}i(sh,"getResource");function gn(l){return'href="'+pe(l)+'"'}i(gn,"getStyleKey");function Xu(l){return'link[rel="stylesheet"]['+l+"]"}i(Xu,"getStylesheetSelectorFromKey");function $y(l){return ul({},l,{"data-precedence":l.precedence,precedence:null})}i($y,"stylesheetPropsFromRawProps");function dg(l,e,t,a){l.querySelector('link[rel="preload"][as="style"]['+e+"]")?a.loading=1:(e=l.createElement("link"),a.preload=e,e.addEventListener("load",function(){return a.loading|=1}),e.addEventListener("error",function(){return a.loading|=2}),Yl(e,"link",t),Ol(e),l.head.appendChild(e))}i(dg,"preloadStylesheet");function _n(l){return'[src="'+pe(l)+'"]'}i(_n,"getScriptKey");function ju(l){return"script[async]"+l}i(ju,"getScriptSelectorFromKey");function rh(l,e,t){if(e.count++,e.instance===null)switch(e.type){case"style":var a=l.querySelector('style[data-href~="'+pe(t.href)+'"]');if(a)return e.instance=a,Ol(a),a;var n=ul({},t,{"data-href":t.href,"data-precedence":t.precedence,href:null,precedence:null});return a=(l.ownerDocument||l).createElement("style"),Ol(a),Yl(a,"style",n),Xi(a,t.precedence,l),e.instance=a;case"stylesheet":n=gn(t.href);var u=l.querySelector(Xu(n));if(u)return e.state.loading|=4,e.instance=u,Ol(u),u;a=$y(t),(n=Te.get(n))&&ws(a,n),u=(l.ownerDocument||l).createElement("link"),Ol(u);var c=u;return c._p=new Promise(function(f,o){c.onload=f,c.onerror=o}),Yl(u,"link",a),e.state.loading|=4,Xi(u,t.precedence,l),e.instance=u;case"script":return u=_n(t.src),(n=l.querySelector(ju(u)))?(e.instance=n,Ol(n),n):(a=t,(n=Te.get(u))&&(a=ul({},t),Ws(a,n)),l=l.ownerDocument||l,n=l.createElement("script"),Ol(n),Yl(n,"link",a),l.head.appendChild(n),e.instance=n);case"void":return null;default:throw Error(S(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,Xi(a,t.precedence,l));return e.instance}i(rh,"acquireResource");function Xi(l,e,t){for(var a=t.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,u=n,c=0;c<a.length;c++){var f=a[c];if(f.dataset.precedence===e)u=f;else if(u!==n)break}u?u.parentNode.insertBefore(l,u.nextSibling):(e=t.nodeType===9?t.head:t,e.insertBefore(l,e.firstChild))}i(Xi,"insertStylesheet");function ws(l,e){l.crossOrigin==null&&(l.crossOrigin=e.crossOrigin),l.referrerPolicy==null&&(l.referrerPolicy=e.referrerPolicy),l.title==null&&(l.title=e.title)}i(ws,"adoptPreloadPropsForStylesheet");function Ws(l,e){l.crossOrigin==null&&(l.crossOrigin=e.crossOrigin),l.referrerPolicy==null&&(l.referrerPolicy=e.referrerPolicy),l.integrity==null&&(l.integrity=e.integrity)}i(Ws,"adoptPreloadPropsForScript");var ji=null;function dh(l,e,t){if(ji===null){var a=new Map,n=ji=new Map;n.set(t,a)}else n=ji,a=n.get(t),a||(a=new Map,n.set(t,a));if(a.has(l))return a;for(a.set(l,null),t=t.getElementsByTagName(l),n=0;n<t.length;n++){var u=t[n];if(!(u[qu]||u[Hl]||l==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var c=u.getAttribute(e)||"";c=l+c;var f=a.get(c);f?f.push(u):a.set(c,[u])}}return a}i(dh,"getHydratableHoistableCache");function mh(l,e,t){l=l.ownerDocument||l,l.head.insertBefore(t,e==="title"?l.querySelector("head > title"):null)}i(mh,"mountHoistable");function mg(l,e,t){if(t===1||e.itemProp!=null)return!1;switch(l){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;return e.rel==="stylesheet"?(l=e.disabled,typeof e.precedence=="string"&&l==null):!0;case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}i(mg,"isHostHoistableType");function Iy(l){return!(l.type==="stylesheet"&&(l.state.loading&3)===0)}i(Iy,"preloadResource");function hg(l,e,t,a){if(t.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var n=gn(a.href),u=e.querySelector(Xu(n));if(u){e=u._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(l.count++,l=pc.bind(l),e.then(l,l)),t.state.loading|=4,t.instance=u,Ol(u);return}u=e.ownerDocument||e,a=$y(a),(n=Te.get(n))&&ws(a,n),u=u.createElement("link"),Ol(u);var c=u;c._p=new Promise(function(f,o){c.onload=f,c.onerror=o}),Yl(u,"link",a),t.instance=u}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(l.count++,t=pc.bind(l),e.addEventListener("load",t),e.addEventListener("error",t))}}i(hg,"suspendResource");var co=0;function yg(l,e){return l.stylesheets&&l.count===0&&Li(l,l.stylesheets),0<l.count||0<l.imgCount?function(t){var a=setTimeout(function(){if(l.stylesheets&&Li(l,l.stylesheets),l.unsuspend){var u=l.unsuspend;l.unsuspend=null,u()}},6e4+e);0<l.imgBytes&&co===0&&(co=62500*Wp());var n=setTimeout(function(){if(l.waitingForImages=!1,l.count===0&&(l.stylesheets&&Li(l,l.stylesheets),l.unsuspend)){var u=l.unsuspend;l.unsuspend=null,u()}},(l.imgBytes>co?50:800)+e);return l.unsuspend=t,function(){l.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}i(yg,"waitForCommitToBeReady");function pc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Li(this,this.stylesheets);else if(this.unsuspend){var l=this.unsuspend;this.unsuspend=null,l()}}}i(pc,"onUnsuspend");var gc=null;function Li(l,e){l.stylesheets=null,l.unsuspend!==null&&(l.count++,gc=new Map,e.forEach(vg,l),gc=null,pc.call(l))}i(Li,"insertSuspendedStylesheets");function vg(l,e){if(!(e.state.loading&4)){var t=gc.get(l);if(t)var a=t.get(null);else{t=new Map,gc.set(l,t);for(var n=l.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var c=n[u];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(t.set(c.dataset.precedence,c),a=c)}a&&t.set(null,a)}n=e.instance,c=n.getAttribute("data-precedence"),u=t.get(c)||a,u===a&&t.set(null,n),t.set(c,n),this.count++,a=pc.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),u?u.parentNode.insertBefore(n,u.nextSibling):(l=l.nodeType===9?l.head:l,l.insertBefore(n,l.firstChild)),e.state.loading|=4}}i(vg,"insertStylesheetIntoRoot");var Uu={$$typeof:lt,Provider:null,Consumer:null,_currentValue:ca,_currentValue2:ca,_threadCount:0};function pg(l,e,t,a,n,u,c,f,o){this.tag=1,this.containerInfo=l,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Bf(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bf(0),this.hiddenUpdates=Bf(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=o,this.incompleteTransitions=new Map}i(pg,"FiberRootNode");function Py(l,e,t,a,n,u,c,f,o,s,v,p){return l=new pg(l,e,t,c,o,s,v,p,f),e=1,u===!0&&(e|=24),u=te(3,null,null,e),l.current=u,u.stateNode=l,e=zs(),e.refCount++,l.pooledCache=e,e.refCount++,u.memoizedState={element:a,isDehydrated:t,cache:e},Es(u),l}i(Py,"createFiberRoot");function lv(l){return l?(l=$a,l):$a}i(lv,"getContextForSubtree");function ev(l,e,t,a,n,u){n=lv(n),a.context===null?a.context=n:a.pendingContext=n,a=xt(e),a.payload={element:t},u=u===void 0?null:u,u!==null&&(a.callback=u),t=Ht(l,a,e),t!==null&&($l(t,l,e),ou(t,l,e))}i(ev,"updateContainerImpl");function hh(l,e){if(l=l.memoizedState,l!==null&&l.dehydrated!==null){var t=l.retryLane;l.retryLane=t!==0&&t<e?t:e}}i(hh,"markRetryLaneImpl");function Fs(l,e){hh(l,e),(l=l.alternate)&&hh(l,e)}i(Fs,"markRetryLaneIfNotHydrated");function tv(l){if(l.tag===13||l.tag===31){var e=Sa(l,67108864);e!==null&&$l(e,l,67108864),Fs(l,67108864)}}i(tv,"attemptContinuousHydration");function yh(l){if(l.tag===13||l.tag===31){var e=ce();e=cs(e);var t=Sa(l,e);t!==null&&$l(t,l,e),Fs(l,e)}}i(yh,"attemptHydrationAtCurrentPriority");var bc=!0;function gg(l,e,t,a){var n=x.T;x.T=null;var u=Z.p;try{Z.p=2,$s(l,e,t,a)}finally{Z.p=u,x.T=n}}i(gg,"dispatchDiscreteEvent");function bg(l,e,t,a){var n=x.T;x.T=null;var u=Z.p;try{Z.p=8,$s(l,e,t,a)}finally{Z.p=u,x.T=n}}i(bg,"dispatchContinuousEvent");function $s(l,e,t,a){if(bc){var n=ts(a);if(n===null)uo(l,e,a,Sc,t),vh(l,a);else if(zg(n,l,e,t,a))a.stopPropagation();else if(vh(l,a),e&4&&-1<Sg.indexOf(l)){for(;n!==null;){var u=zn(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var c=na(u.pendingLanes);if(c!==0){var f=u;for(f.pendingLanes|=2,f.entangledLanes|=2;c;){var o=1<<31-ie(c);f.entanglements[1]|=o,c&=~o}Ve(u),(L&6)===0&&(oc=ne()+500,Qu(0,!1))}}break;case 31:case 13:f=Sa(u,2),f!==null&&$l(f,u,2),Bc(),Fs(u,2)}if(u=ts(a),u===null&&uo(l,e,a,Sc,t),u===n)break;n=u}n!==null&&a.stopPropagation()}else uo(l,e,a,null,t)}}i($s,"dispatchEvent");function ts(l){return l=rs(l),Is(l)}i(ts,"findInstanceBlockingEvent");var Sc=null;function Is(l){if(Sc=null,l=Za(l),l!==null){var e=ku(l);if(e===null)l=null;else{var t=e.tag;if(t===13){if(l=Th(e),l!==null)return l;l=null}else if(t===31){if(l=Ah(e),l!==null)return l;l=null}else if(t===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;l=null}else e!==l&&(l=null)}}return Sc=l,null}i(Is,"findInstanceBlockingTarget");function av(l){switch(l){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(c1()){case Mh:return 2;case Oh:return 8;case Wi:case f1:return 32;case Uh:return 268435456;default:return 32}default:return 32}}i(av,"getEventPriority");var as=!1,Yt=null,Gt=null,Vt=null,Du=new Map,Cu=new Map,_t=[],Sg="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function vh(l,e){switch(l){case"focusin":case"focusout":Yt=null;break;case"dragenter":case"dragleave":Gt=null;break;case"mouseover":case"mouseout":Vt=null;break;case"pointerover":case"pointerout":Du.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Cu.delete(e.pointerId)}}i(vh,"clearIfContinuousEvent");function In(l,e,t,a,n,u){return l===null||l.nativeEvent!==u?(l={blockedOn:e,domEventName:t,eventSystemFlags:a,nativeEvent:u,targetContainers:[n]},e!==null&&(e=zn(e),e!==null&&tv(e)),l):(l.eventSystemFlags|=a,e=l.targetContainers,n!==null&&e.indexOf(n)===-1&&e.push(n),l)}i(In,"accumulateOrCreateContinuousQueuedReplayableEvent");function zg(l,e,t,a,n){switch(e){case"focusin":return Yt=In(Yt,l,e,t,a,n),!0;case"dragenter":return Gt=In(Gt,l,e,t,a,n),!0;case"mouseover":return Vt=In(Vt,l,e,t,a,n),!0;case"pointerover":var u=n.pointerId;return Du.set(u,In(Du.get(u)||null,l,e,t,a,n)),!0;case"gotpointercapture":return u=n.pointerId,Cu.set(u,In(Cu.get(u)||null,l,e,t,a,n)),!0}return!1}i(zg,"queueIfContinuousEvent");function nv(l){var e=Za(l.target);if(e!==null){var t=ku(e);if(t!==null){if(e=t.tag,e===13){if(e=Th(t),e!==null){l.blockedOn=e,Pd(l.priority,function(){yh(t)});return}}else if(e===31){if(e=Ah(t),e!==null){l.blockedOn=e,Pd(l.priority,function(){yh(t)});return}}else if(e===3&&t.stateNode.current.memoizedState.isDehydrated){l.blockedOn=t.tag===3?t.stateNode.containerInfo:null;return}}}l.blockedOn=null}i(nv,"attemptExplicitHydrationTarget");function Zi(l){if(l.blockedOn!==null)return!1;for(var e=l.targetContainers;0<e.length;){var t=ts(l.nativeEvent);if(t===null){t=l.nativeEvent;var a=new t.constructor(t.type,t);zo=a,t.target.dispatchEvent(a),zo=null}else return e=zn(t),e!==null&&tv(e),l.blockedOn=t,!1;e.shift()}return!0}i(Zi,"attemptReplayContinuousQueuedEvent");function ph(l,e,t){Zi(l)&&t.delete(e)}i(ph,"attemptReplayContinuousQueuedEventInMap");function Tg(){as=!1,Yt!==null&&Zi(Yt)&&(Yt=null),Gt!==null&&Zi(Gt)&&(Gt=null),Vt!==null&&Zi(Vt)&&(Vt=null),Du.forEach(ph),Cu.forEach(ph)}i(Tg,"replayUnblockedEvents");function Ui(l,e){l.blockedOn===e&&(l.blockedOn=null,as||(as=!0,El.unstable_scheduleCallback(El.unstable_NormalPriority,Tg)))}i(Ui,"scheduleCallbackIfUnblocked");var Di=null;function gh(l){Di!==l&&(Di=l,El.unstable_scheduleCallback(El.unstable_NormalPriority,function(){Di===l&&(Di=null);for(var e=0;e<l.length;e+=3){var t=l[e],a=l[e+1],n=l[e+2];if(typeof a!="function"){if(Is(a||t)===null)continue;break}var u=zn(t);u!==null&&(l.splice(e,3),e-=3,Ro(u,{pending:!0,data:n,method:t.method,action:a},a,n))}}))}i(gh,"scheduleReplayQueueIfNeeded");function bn(l){function e(o){return Ui(o,l)}i(e,"unblock"),Yt!==null&&Ui(Yt,l),Gt!==null&&Ui(Gt,l),Vt!==null&&Ui(Vt,l),Du.forEach(e),Cu.forEach(e);for(var t=0;t<_t.length;t++){var a=_t[t];a.blockedOn===l&&(a.blockedOn=null)}for(;0<_t.length&&(t=_t[0],t.blockedOn===null);)nv(t),t.blockedOn===null&&_t.shift();if(t=(l.ownerDocument||l).$$reactFormReplay,t!=null)for(a=0;a<t.length;a+=3){var n=t[a],u=t[a+1],c=n[Il]||null;if(typeof u=="function")c||gh(t);else if(c){var f=null;if(u&&u.hasAttribute("formAction")){if(n=u,c=u[Il]||null)f=c.formAction;else if(Is(n)!==null)continue}else f=c.action;typeof f=="function"?t[a+1]=f:(t.splice(a,3),a-=3),gh(t)}}}i(bn,"retryIfBlockedOn");function uv(){function l(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:i(function(){return new Promise(function(c){return n=c})},"handler"),focusReset:"manual",scroll:"manual"})}i(l,"handleNavigate");function e(){n!==null&&(n(),n=null),a||setTimeout(t,20)}i(e,"handleNavigateComplete");function t(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(i(t,"startFakeNavigation"),typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",l),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(t,100),function(){a=!0,navigation.removeEventListener("navigate",l),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),n!==null&&(n(),n=null)}}}i(uv,"defaultOnDefaultTransitionIndicator");function Ps(l){this._internalRoot=l}i(Ps,"ReactDOMRoot");qc.prototype.render=Ps.prototype.render=function(l){var e=this._internalRoot;if(e===null)throw Error(S(409));var t=e.current,a=ce();ev(t,a,l,e,null,null)};qc.prototype.unmount=Ps.prototype.unmount=function(){var l=this._internalRoot;if(l!==null){this._internalRoot=null;var e=l.containerInfo;ev(l.current,2,null,l,null,null),Bc(),e[Sn]=null}};function qc(l){this._internalRoot=l}i(qc,"ReactDOMHydrationRoot");qc.prototype.unstable_scheduleHydration=function(l){if(l){var e=xh();l={blockedOn:null,target:l,priority:e};for(var t=0;t<_t.length&&e!==0&&e<_t[t].priority;t++);_t.splice(t,0,l),t===0&&nv(l)}};var bh=Sh.version;if(bh!=="19.2.0")throw Error(S(527,bh,"19.2.0"));Z.findDOMNode=function(l){var e=l._reactInternals;if(e===void 0)throw typeof l.render=="function"?Error(S(188)):(l=Object.keys(l).join(","),Error(S(268,l)));return l=l1(e),l=l!==null?Eh(l):null,l=l===null?null:l.stateNode,l};var Ag={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:x,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Pn=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Pn.isDisabled&&Pn.supportsFiber))try{Bu=Pn.inject(Ag),ue=Pn}catch{}var Pn;Rc.createRoot=function(l,e){if(!zh(l))throw Error(S(299));var t=!1,a="",n=F0,u=$0,c=I0;return e!=null&&(e.unstable_strictMode===!0&&(t=!0),e.identifierPrefix!==void 0&&(a=e.identifierPrefix),e.onUncaughtError!==void 0&&(n=e.onUncaughtError),e.onCaughtError!==void 0&&(u=e.onCaughtError),e.onRecoverableError!==void 0&&(c=e.onRecoverableError)),e=Py(l,1,!1,null,null,t,a,null,n,u,c,uv),l[Sn]=e.current,Js(l),new Ps(e)};Rc.hydrateRoot=function(l,e,t){if(!zh(l))throw Error(S(299));var a=!1,n="",u=F0,c=$0,f=I0,o=null;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(f=t.onRecoverableError),t.formState!==void 0&&(o=t.formState)),e=Py(l,1,!0,e,t??null,a,n,o,u,c,f,uv),e.context=lv(null),t=e.current,a=ce(),a=cs(a),n=xt(a),n.callback=null,Ht(t,n,a),t=a,e.current.lanes=t,Hu(e,t),Ve(e),l[Sn]=e.current,Js(l),new qc(e)};Rc.version="19.2.0"});var ov=Fu((pb,fv)=>{"use strict";function cv(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(cv)}catch(l){console.error(l)}}i(cv,"checkDCE");cv(),fv.exports=iv()});var ef="sekyro-verification",tf=[{name:"client-token",property:"clientToken",type:"string | null",description:"The session's client token, from `clientToken` of the session your server created. Ignored while `verification` is set."},{name:"api-origin",property:"apiOrigin",type:"string | null",description:"The Sekyro AI API origin. Leave it out: the SDK's default is the production API."},{name:"locale",property:"locale",type:"SekyroLocale | null",description:"The language of the flow: `ar`, `fr`, `en`, `es`, `pt` or `de`. Without it: the page's `<html lang>` when it is one of them, else `en`. Arabic runs right to left."},{name:"color-scheme",property:"colorScheme",type:"SekyroColorScheme | null",description:"`light` (the default), `dark`, or `system` to follow the device."},{name:"asset-base-url",property:"assetBaseUrl",type:"string | null",description:"Where your page serves the face detector assets (the `models-v3` files)."},{name:"back-navigation",property:"backNavigation",type:"'history' | 'none' | null",description:"`history` lets the browser's back button go one screen back inside the flow. `none` (the default) never touches the page's history."},{name:"handoff-url",property:"handoffUrl",type:"string | null",description:"The link a desktop shows as a QR code when a camera step needs a phone (the session's `hostedUrl`). Without it, a notice asks the person to continue on their phone."},{name:"closable",property:"closable",type:"boolean",boolean:!0,description:"Shows the header's close button and the result's Continue button. Both fire `sekyro-close`; take the person on from your page there."},{name:"voice",property:"voice",type:"'off' | null",unreflected:!0,description:"`off` turns the spoken guidance off. The `voice` property, when set, wins and carries the voice options."}],Ug=[{name:"verification",type:"Verification | null",description:"A `Verification` you created with `createVerification` from `@sekyro/web`. Set, it wins over `client-token`, and your page destroys it. Read, it is the verification the element runs, set or created."},{name:"strings",type:"Partial<SekyroStrings> | undefined",description:"Copy overrides, keyed like the SDK's strings."},{name:"theme",type:"SekyroTheme | undefined",description:"A runtime theme. It wins over the session's branding."},{name:"livenessProps",type:"SekyroElementLivenessOptions | undefined",description:"Options of the face capture step: `autoStart`, `tips`, `tipsSummary`, `coach`, `notice`, `startDisabled`, `startLabel`."},{name:"documentLiveMrz",type:"DocumentLiveMrzOptions | undefined",description:"Live MRZ reading on the document step: `workerUrl`, `assetBaseUrl`, or `mode: 'off'`."},{name:"voice",type:"false | VoiceOptions | undefined",description:"Spoken guidance options, or `false` to turn it off."}],kr=[{name:"header",description:"Replaces the partner header."},{name:"header-end",description:"Sits at the inline end of the partner header, before the close button (a language menu)."},{name:"footer",description:'Replaces the "Verified by Sekyro AI" link. An empty element hides it.'}],Dg=[{name:"sekyro-ready",type:"SekyroReadyDetail",description:"The element created its `Verification` from `client-token` (detail: `{ verification }`)."},{name:"sekyro-step",type:"VerificationStep",mirrors:"onStep",description:"The flow moved to a step."},{name:"sekyro-result",type:"VerificationResult",mirrors:"onResult",description:"A verdict for display. Read the decision that counts from your server."},{name:"sekyro-close",type:"SekyroCloseEvent",mirrors:"onClose",description:"The person closed the flow (`closable` only): `{ reason: 'finished', result }` or `{ reason: 'cancelled' }`."},{name:"sekyro-liveness-captured",type:"CapturedArtifacts",mirrors:"onLivenessCaptured",description:"The face capture finished, before its upload."},{name:"sekyro-liveness-state",type:"CaptureState",mirrors:"livenessProps.onStateChange",description:"The face capture's state changed."},{name:"sekyro-liveness-guidance",type:"StringKey",mirrors:"livenessProps.onGuidance",description:"The face capture shows a guidance line (its string key)."},{name:"sekyro-liveness-error",type:"CaptureError",mirrors:"livenessProps.onError",description:"The face capture failed (camera denied or absent, for example). The flow shows its own screen."},{name:"sekyro-error",type:"SekyroElementErrorDetail",description:"The element could not create its `Verification` from its attributes (detail: `{ error }`)."}];import{createVerification as Eg}from"@sekyro/web";var af=Q(Vl(),1);var kl={light:{brand:"#0d3b66",brandFg:"#ffffff",fg:"#13141f",fgMuted:"#4e5270",bg:"#f6f7fb",surface:"#ffffff",ring:"#0d3b66",danger:"#ca0f07",success:"#007a5e",warning:"#735003"},dark:{brand:"#6ea2d3",brandFg:"#051a2e",fg:"#f6f7fb",fgMuted:"#cbcedc",bg:"#13141f",surface:"#1d1e2c",ring:"#6ea2d3",danger:"#ff7c7c",success:"#00c897",warning:"#ffd98a"},roles:{light:{brandSoft:"#eaf2fa",line:"#cbcedc",lineSubtle:"#e2e4ee",lineStrong:"#8c91a9",sunken:"#eeeff5",fgSubtle:"#686d8a"},dark:{brandSoft:"#092b4b",line:"#4e5270",lineSubtle:"#2b2d40",lineStrong:"#686d8a",sunken:"#0b0c14",fgSubtle:"#8c91a9"}},stage:"#051a2e",stageAccent:"#69dfef",radius:"10px",radiusLg:"16px",font:'"Sekyro Inter", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", "Noto Sans", sans-serif',fontDisplay:'"Sekyro Geist", Geist, "Sekyro Geist Fallback", "Sekyro Geist Fallback Roboto", "Sekyro Inter", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", "Noto Sans", sans-serif',fontArabic:'"Sekyro Cairo", Cairo, "Sekyro Inter", "Noto Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif'},Qn={colors:{...kl.light},radius:kl.radiusLg,fontFamily:kl.font},Br={brand:"--sekyro-color-brand",brandFg:"--sekyro-color-brand-fg",fg:"--sekyro-color-fg",fgMuted:"--sekyro-color-fg-muted",bg:"--sekyro-color-bg",surface:"--sekyro-color-surface",ring:"--sekyro-color-ring",danger:"--sekyro-color-danger",success:"--sekyro-color-success",warning:"--sekyro-color-warning"};function Hr(l={}){let e={};for(let t of Object.keys(Br))e[Br[t]]=l.colors?.[t]??Qn.colors[t];return e["--sekyro-radius"]=l.radius??Qn.radius,e["--sekyro-font"]=l.fontFamily??Qn.fontFamily,e}i(Hr,"S");T(Hr,"themeToCssVars");var gv=/^#[0-9a-f]{6}$/i,bv=["brand","brandFg","bg","surface","fg","fgMuted"],Sv=["danger","success","warning"],xr=!1;function ei(l){let e=l?.colors;if(l===void 0||e===void 0||!Sv.some(c=>c in e))return l;!xr&&yr()&&(xr=!0,console.warn("[sekyro] theme.colors.danger/success/warning are ignored: status colours are standard (removed in 1.0)"));let{danger:t,success:a,warning:n,...u}=e;return{...l,colors:u}}i(ei,"p");T(ei,"stripDeprecatedStatusColors");var zv={none:"0px",sm:"6px",md:"10px",lg:"16px",full:"9999px"},Tv={system:"",inter:"Inter","ibm-plex-sans-arabic":'"IBM Plex Sans Arabic"',"noto-sans-arabic":'"Noto Sans Arabic"',roboto:"Roboto"};function ti(l){let e={};if(!l)return e;let t={},a=l.colors??{};for(let c of bv){let f=a[c];f!==void 0&&gv.test(f)&&(t[c]=f)}t.brand&&(t.ring=t.brand),Object.keys(t).length&&(e.colors=t);let n=zv[l.radius];n&&(e.radius=n);let u=Tv[l.fontFamily];return u!==void 0&&(e.fontFamily=u?`${u}, ${Qn.fontFamily}`:Qn.fontFamily),e}i(ti,"x");T(ti,"brandingToTheme");function ai(...l){let e={};for(let t of l)t?.colors&&(e.colors={...e.colors,...t.colors}),t?.radius&&(e.radius=t.radius),t?.fontFamily&&(e.fontFamily=t.fontFamily);return e}i(ai,"I");T(ai,"mergeThemes");function nf({theme:l,children:e,className:t}){return(0,af.jsx)(ni,{theme:ei(l),...t!==void 0?{className:t}:{},children:e})}i(nf,"C");T(nf,"SekyroThemeProvider");function ni({theme:l,children:e,className:t}){let a=Hr(l);return(0,af.jsx)("div",{className:t===void 0?"sekyro-root":`sekyro-root ${t}`,style:a,children:e})}i(ni,"R");T(ni,"SekyroThemeRoot");var Xn=Q(Tl(),1),Bl=Q(Tl(),1),B=Q(Vl(),1),vt=Q(Tl(),1),je=Q(Vl(),1),pt=Q(Tl(),1),Le=Q(Vl(),1),Fr=Q(Tl(),1),ka=Q(Vl(),1),Ba=Q(Tl(),1),P=Q(Vl(),1),re=Q(Tl(),1),Kl=Q(Tl(),1),fl=Q(Vl(),1),Ee=Q(Vl(),1),_l=Q(Tl(),1),K=Q(Vl(),1),gt=Q(Tl(),1),Ce=Q(Vl(),1),bt=Q(Tl(),1),ke=Q(Vl(),1),k=Q(Tl(),1),ci=Q(Tl(),1),yt=Q(Tl(),1),Be=Q(Vl(),1),Ze=Q(Vl(),1),sd=Q(Tl(),1),Ha=Q(Tl(),1),F=Q(Vl(),1),z=Q(Vl(),1),jn=Q(Tl(),1),ea=Q(Vl(),1);import{isValidNni as Uv,normalizeNni as Yr}from"@sekyro/web";import{acceptedIssuers as Bv,acceptedTypesFor as Gr,warmDocumentCapture as xv}from"@sekyro/web";import{acceptedIssuers as Hv,acceptedTypesFor as uf,laneCountries as qv,laneOptionsFor as Rv,optionNameFor as Yv}from"@sekyro/web";import{warmPortraitCapture as Vv}from"@sekyro/web";import{cameraUnavailableCauseOf as Zv}from"@sekyro/web";function Zr(l){let[e,t]=(0,Xn.useState)(()=>l?.currentStep?.()??null),[a,n]=(0,Xn.useState)(null);return(0,Xn.useEffect)(()=>{if(l===void 0)return;if(typeof l.run!="function"){n(new Error("The step components need @sekyro/web 0.2 or later (Verification.run)."));return}let u=!0,c=l.on("step",f=>{u&&t(f)});return l.run().then(f=>{u&&t(o=>o??f)},f=>{u&&n(f)}),()=>{u=!1,c()}},[l]),{step:e,error:a}}i(Zr,"ft");T(Zr,"useVerificationStep");var qr=T((l,e,t)=>{if(l===void 0)return 0;let a=Date.parse(l)-e;return Number.isFinite(a)?Math.min(t,Math.max(0,Math.ceil(a/1e3))):0},"secondsUntil"),Av=600,Ev=30,Nv=T(l=>`${Math.floor(l/60)}:${String(l%60).padStart(2,"0")}`,"mmss"),_v=["whatsapp","sms"],Rr=new Set(["otp_daily_cap_reached","payment_method_required","spend_cap_reached","insufficient_balance","otp_expired","otp_send_failed","otp_channel_unavailable","otp_destination_not_allowed","otp_destination_unknown","otp_rate_limited","otp_resend_limit","otp_number_invalid","otp_number_not_mobile"]);function Kr(l){let e=[];for(let t of l.phoneCountries??["MR"]){let a=l.phoneRules?.find(u=>u.code===t),n=a?.dial??Nr(t);n!==void 0&&!e.some(u=>u.code===t)&&e.push({code:t,dial:`+${n}`,...a!==void 0?{rule:a}:{}})}return e}i(Kr,"yn");T(Kr,"phoneCountriesOf");function Jr({step:l,locale:e,strings:t,className:a,defaultPhone:n,onError:u}){let c=Dl(e,t),{t:f}=c,o=(0,Bl.useMemo)(()=>Kr(l),[l.phoneCountries,l.phoneRules]),s=n??o[0]?.dial??"",v=l.phoneInternational===!0,p=Mr({countries:o,international:v,closed:!!l.phoneRules?.length,defaultPhone:s}),[m,h]=(0,Bl.useState)(""),[b,N]=(0,Bl.useState)(!1),[D,d]=(0,Bl.useState)(null),[r,y]=(0,Bl.useState)(null),[g,A]=(0,Bl.useState)(!1),[C,E]=(0,Bl.useState)(null),O=(0,Bl.useRef)(null),U=l.phase==="verify"&&!g,_=l.phase==="verify",ml=Cr(_),[wt,Zu]=Ur(l.reason==="otp_mismatch",l.attemptsRemaining,()=>h("")),Ae=(0,Bl.useId)(),Cn=(0,Bl.useRef)(null);(0,Bl.useEffect)(()=>{let W=setTimeout(()=>Cn.current?.focus({preventScroll:!0}),350);return()=>clearTimeout(W)},[U]);let Xe=l.phase==="verify"?l.codeExpiresAt??"sent":null;(0,Bl.useEffect)(()=>{Xe!==null&&(A(!1),O.current!==null&&!Rr.has(l.reason??"")&&E(O.current),O.current=null)},[Xe]);let Ku=T(async W=>{N(!0),y(null);try{await W()}catch(Gl){y(Vn(Gl,c.strings)),u?.(Gl)}finally{N(!1),d(null)}},"run"),Zl=_v.filter(W=>(l.channels??[]).includes(W)),Oa=p.typed,ht=!l.needsPhone||Oa!==null,Ua=T((W,Gl=!1)=>{let Da=l.needsPhone?Gl?C:{number:Oa??p.phone,shown:p.shown}:null;O.current=Da,d(W??null),Ku(async()=>{try{await l.send({...Da!==null?{phone:Da.number}:{},...W!==void 0?{channel:W}:{}})}catch(Gn){throw O.current=null,Gn}})},"send"),kn=T(W=>{Ku(()=>l.verify(W))},"submitCode"),Bn=T(W=>{W.preventDefault(),U?kn(m):Zl.length<=1&&ht&&Ua(Zl[0])},"onSubmit"),xn=`${Ae}-phone`,Hn=qr(l.codeExpiresAt,ml,Av),Wt=qr(l.resendAvailableAt,ml,Ev),Ft=U&&l.codeExpiresAt!==void 0&&Hn===0,$t=l.needsPhone&&!l.attemptsExhausted,qn=_&&(l.codeExpiresAt===void 0||Hn>0),Rn=U&&$t?()=>A(!0):g&&qn?()=>A(!1):null;wc(Rn===null?null:b?()=>{}:Rn);let De=T(W=>f(W==="whatsapp"?"otp.channelWhatsapp":"otp.channelSms"),"label"),Yn=T(W=>b&&D!==null&&D===W,"busyFor"),[Xl,Ju]=f("otp.sentTo",{channel:De(l.channel)}).split("{number}"),wu=l.context.simulation?.otpCode,il=l.reason==="otp_mismatch"?(0,B.jsxs)(Nl,{tone:"danger",children:[(0,B.jsx)("span",{children:f("otp.reason_otp_mismatch")}),(0,B.jsx)("span",{children:$c(c,l.attemptsRemaining,l.attemptsExhausted)})]}):l.reason!==void 0&&Rr.has(l.reason)?(0,B.jsx)(Nl,{tone:"warning",children:(0,B.jsx)("span",{children:f(`otp.reason_${l.reason}`)})}):l.reason==="tester_phone_mismatch"?(0,B.jsx)(Nl,{tone:"warning",children:(0,B.jsx)("span",{children:f("reasons.tester_phone_mismatch")})}):null,It=(0,B.jsxs)(B.Fragment,{children:[il,r!==null?(0,B.jsx)(Nl,{tone:"danger",children:(0,B.jsx)("span",{children:f(r)})}):null]});if(U){let W=Zl.length===0;return(0,B.jsxs)("form",{className:`sekyro-step sekyro-otp${a?` ${a}`:""}`,"aria-labelledby":Ae,onSubmit:Bn,noValidate:!0,children:[(0,B.jsx)(Pt,{id:Ae,title:f("otp.verifyTitle"),lead:wu!==void 0?(0,B.jsx)(sr,{template:f("sandbox.otpHint"),code:wu}):(0,B.jsxs)(B.Fragment,{children:[Xl,(0,B.jsx)("bdi",{dir:"ltr",className:"sekyro-mono",children:C?.shown??l.sentToMasked}),Ju]})}),It,(0,B.jsxs)("div",{className:"sekyro-field",children:[(0,B.jsx)("label",{className:"sekyro-label",htmlFor:`${Ae}-code`,children:f("otp.codeLabel")}),(0,B.jsx)(Dr,{id:`${Ae}-code`,value:m,invalid:wt,onChange:i(Gl=>{Gl!==""&&Zu(),h(Gl),Gl.length===6&&m.length!==6&&!b&&!l.attemptsExhausted&&kn(Gl)},"onChange")}),(0,B.jsx)("span",{className:`sekyro-help sekyro-otp-expiry${Ft?" is-danger":""}`,"aria-hidden":!Ft||void 0,children:Ft?f("otp.expired"):f("otp.expiresIn",{time:Nv(Hn)})})]}),(0,B.jsx)("span",{className:"sekyro-visually-hidden",role:"status","aria-live":"polite",children:Ft?f("otp.expired"):""}),(0,B.jsxs)(la,{children:[(0,B.jsx)(cl,{type:"submit",full:!0,disabled:b||m.length!==6||l.attemptsExhausted,"aria-busy":b||void 0,children:f("otp.verify")}),(0,B.jsxs)("div",{className:"sekyro-resend-row",children:[W?(0,B.jsx)("button",{type:"button",className:"sekyro-link sekyro-resend",disabled:b||Wt>0,onClick:i(()=>Ua(void 0,!0),"onClick"),children:Wt>0?f("otp.resendIn",{seconds:Wt}):f("otp.resend")}):Wt>0?(0,B.jsx)("p",{className:"sekyro-resend is-waiting",children:f("otp.resendIn",{seconds:Wt})}):Zl.map(Gl=>(0,B.jsx)("button",{type:"button",className:"sekyro-link sekyro-resend",disabled:b,onClick:i(()=>Ua(Gl,!0),"onClick"),children:f("otp.resendBy",{channel:De(Gl)})},Gl)),$t?(0,B.jsx)("button",{type:"button",className:"sekyro-link sekyro-resend",disabled:b,onClick:i(()=>A(!0),"onClick"),"data-testid":"sekyro-otp-change",children:f("otp.changeNumber")}):null]})]})]})}return(0,B.jsxs)("form",{className:`sekyro-step sekyro-otp${a?` ${a}`:""}`,"aria-labelledby":Ae,onSubmit:Bn,noValidate:!0,children:[(0,B.jsx)(Pt,{id:Ae,title:f("otp.sendTitle"),lead:f("otp.sendDescription")}),It,l.needsPhone?(0,B.jsxs)("div",{className:"sekyro-field",children:[(0,B.jsx)("label",{className:"sekyro-label",htmlFor:xn,children:f("otp.phoneLabel")}),(0,B.jsx)(Or,{field:p,id:xn,locale:c.locale,t:f,inputRef:Cn,ready:ht})]}):(0,B.jsx)("p",{className:"sekyro-text-muted",children:f("otp.prefilledNotice")}),(0,B.jsxs)(la,{children:[Zl.length===1?(0,B.jsx)(cl,{type:"submit",full:!0,disabled:b||!ht,"aria-busy":Yn(Zl[0])||void 0,children:f("otp.sendBy",{channel:De(Zl[0])})}):Zl.length>1?(0,B.jsxs)("div",{className:"sekyro-actions__group",role:"group","aria-label":f("otp.chooseChannel"),children:[(0,B.jsx)("p",{className:"sekyro-label","aria-hidden":"true",children:f("otp.chooseChannel")}),(0,B.jsx)("div",{className:"sekyro-channel-row",children:Zl.map(W=>(0,B.jsxs)(cl,{kind:"primary",disabled:b||!ht,"aria-busy":Yn(W)||void 0,onClick:i(()=>Ua(W),"onClick"),children:[(0,B.jsx)(se,{name:W}),De(W)]},W))})]}):(0,B.jsx)(cl,{type:"submit",full:!0,disabled:b||!ht,"aria-busy":b||void 0,children:f("otp.send")}),(0,B.jsx)("span",{className:"sekyro-visually-hidden",role:"status","aria-live":"polite",children:b&&D!==null?f("otp.sending",{channel:De(D)}):""}),g&&qn?(0,B.jsx)("button",{type:"button",className:"sekyro-link sekyro-resend",disabled:b,onClick:i(()=>A(!1),"onClick"),"data-testid":"sekyro-otp-back-to-code",children:f("otp.backToCode")}):null]})]})}i(Jr,"yt");T(Jr,"PhoneOtpStep");var Mv={load:T(()=>import("./email-otp-view-3UJPJOQ6-5PQM7LNW.js"),"load")};function wr({locale:l,strings:e,...t}){let a=Dl(l,e),[n,u]=(0,vt.useState)(0),c=(0,vt.useMemo)(()=>(0,vt.lazy)(()=>Mv.load().then(o=>({default:o.EmailOtpView}))),[n]),f=(0,je.jsxs)(Nl,{tone:"danger",children:[(0,je.jsx)("span",{children:a.t("errors.network_error")}),(0,je.jsx)(cl,{kind:"secondary",onClick:i(()=>u(o=>o+1),"onClick"),children:a.t("common.retry")})]});return(0,je.jsx)(Ca,{fallback:f,children:(0,je.jsx)(vt.Suspense,{fallback:(0,je.jsx)("p",{role:"status","aria-busy":"true",className:"sekyro-text-muted",children:a.t("common.loading")}),children:(0,je.jsx)(c,{...t,i18n:a})})},n)}i(wr,"gt");T(wr,"EmailOtpStep");var Ov={load:T(()=>import("./eid-view-6DXZ5ELB-XDQVFDXS.js"),"load")};function Wr({locale:l,strings:e,...t}){let a=Dl(l,e),[n,u]=(0,pt.useState)(0),c=(0,pt.useMemo)(()=>(0,pt.lazy)(()=>Ov.load().then(o=>({default:o.EidView}))),[n]),f=(0,Le.jsxs)(Nl,{tone:"danger",children:[(0,Le.jsx)("span",{children:a.t("errors.network_error")}),(0,Le.jsx)(cl,{kind:"secondary",onClick:i(()=>u(o=>o+1),"onClick"),children:a.t("common.retry")})]});return(0,Le.jsx)(Ca,{fallback:f,children:(0,Le.jsx)(pt.Suspense,{fallback:(0,Le.jsx)("p",{role:"status","aria-busy":"true",className:"sekyro-text-muted",children:a.t("common.loading")}),children:(0,Le.jsx)(c,{...t,i18n:a})})},n)}i(Wr,"kt");T(Wr,"EidStep");function $r({step:l,locale:e,strings:t,className:a,onError:n}){let u=Dl(e,t),{busy:c,error:f,run:o}=Sr(u,n),s=(0,Fr.useMemo)(()=>l.choice.options.flatMap(p=>{let m=lf(p,u),h=gr[p.service];return m===null?[]:[{id:p.id,label:m,glyph:h&&(0,ka.jsx)(se,{name:h})}]}),[l.choice.options,u]),v=l.choice.options.find(p=>p.service==="national_eid");return(0,ka.jsxs)("div",{className:a,children:[(0,ka.jsx)(hr,{title:u.t("method.heading"),description:u.t("method.description"),options:s,busy:c,error:f,focus:!0,testId:"sekyro-method",onChoose:i(p=>o(()=>l.choose(p)),"onChoose")}),v?.nationalEid?.afterPass==="continue"?(0,ka.jsx)(Cl,{view:"EidContinueHint",i18n:u,provider:v.nationalEid.providerName,quiet:!0}):null]})}i($r,"St");T($r,"MethodChoice");var Dv=new Set(["nni_not_found","registry_record_not_found"]),Cv=new Set(["nni_invalid","id_number_invalid"]);function df({step:l,locale:e,strings:t,className:a,onError:n}){let u=Dl(e,t),{t:c}=u,[f,o]=(0,Ba.useState)(""),[s,v]=(0,Ba.useState)(!1),[p,m]=(0,Ba.useState)(null),h=(0,Ba.useId)(),b=l.attemptsExhausted,N=T(async O=>{v(!0),m(null);try{await O()}catch(U){m(Vn(U,u.strings)),n?.(U)}finally{v(!1)}},"run"),D=T(O=>{if(O.preventDefault(),l.source!=="typed"){N(()=>l.confirm());return}let U=Yr(f);if(!/^\d{10}$/.test(U))return m("population.invalid");if(!Uv(U))return m("population.reason_id_number_invalid");N(()=>typeof l.submitIdNumber=="function"?l.submitIdNumber(U):l.submitNni(U))},"onSubmit"),d=$c(u,l.attemptsRemaining,b),r=l.reason!==void 0&&Dv.has(l.reason),y=l.reason!==void 0&&Cv.has(l.reason),g=(0,P.jsxs)(P.Fragment,{children:[l.reason==="registry_unavailable"?(0,P.jsxs)(Nl,{tone:"warning",children:[(0,P.jsx)("span",{children:c("population.reason_registry_unavailable")}),(0,P.jsx)("span",{children:d})]}):null,r&&l.canUseDocument?(0,P.jsxs)(Nl,{tone:"warning",children:[(0,P.jsx)("span",{children:c("population.reason_registry_record_not_found_or_document")}),(0,P.jsx)("span",{children:d}),(0,P.jsx)(cl,{kind:"secondary",disabled:s,onClick:i(()=>{N(()=>l.useDocument())},"onClick"),children:c("population.useDocument")})]}):null,r&&!l.canUseDocument||y?(0,P.jsxs)(Nl,{tone:"danger",children:[(0,P.jsx)("span",{children:c(r?"population.reason_registry_record_not_found":"population.reason_id_number_invalid")}),(0,P.jsx)("span",{children:d})]}):null,b&&l.reason===void 0?(0,P.jsx)(Nl,{tone:"danger",children:(0,P.jsx)("span",{children:d})}):null,p!==null?(0,P.jsx)(Nl,{tone:"danger",children:(0,P.jsx)("span",{children:c(p)})}):null]}),[A,C,E]=l.source==="document"?["population.fromDocument.title","population.fromDocument.description","population.fromDocument.continue"]:l.source==="bound"?["session.steps.population.title","population.bound.description","population.bound.confirm"]:l.recheck?["population.recheck.title","population.recheck.description","population.submit"]:["session.steps.population.title","session.steps.population.description","population.submit"];return(0,P.jsxs)("form",{className:`sekyro-step${a?` ${a}`:""}`,"aria-labelledby":h,onSubmit:D,noValidate:!0,children:[(0,P.jsx)(Pt,{id:h,title:c(A),lead:c(C)}),g,l.source==="typed"?(0,P.jsxs)("div",{className:"sekyro-field",children:[(0,P.jsx)("label",{className:"sekyro-label",htmlFor:`${h}-id-number`,children:c("population.label")}),(0,P.jsx)("input",{id:`${h}-id-number`,className:"sekyro-input sekyro-input--number",dir:"ltr",inputMode:"numeric",autoComplete:"off",placeholder:c("population.placeholder"),value:f,"aria-describedby":`${h}-id-number-help`,"aria-invalid":p==="population.invalid"||p==="population.reason_id_number_invalid"||void 0,onChange:i(O=>{m(null),o(Yr(O.target.value).replace(/\D/g,"").slice(0,10))},"onChange")}),(0,P.jsx)("span",{id:`${h}-id-number-help`,className:"sekyro-help",children:c("population.helper")})]}):null,(0,P.jsx)(la,{children:b?null:(0,P.jsx)(cl,{type:"submit",full:!0,disabled:s,"aria-busy":s||void 0,children:c(E)})})]})}i(df,"ot");T(df,"IdNumberEntry");function kv(l){return df(l)}i(kv,"Bn");T(kv,"NniEntry");var Vr=220;function Ir(l,e,t=[],a){let n=null;try{n=new Intl.DisplayNames([l],{type:"region"})}catch{}let u=e.map(o=>({code:o,name:n?.of(o)??o})),c=new Intl.Collator(l),f=T(o=>{if(o===a)return-1;let s=t.indexOf(o);return s<0?t.length:s},"rank");return u.sort((o,s)=>f(o.code)-f(s.code)||c.compare(o.name,s.name))}i(Ir,"Un");T(Ir,"countryNames");function Pr({step:l,i18n:e,issuer:t,onPicked:a,ageStepUp:n=!1}){let{t:u,locale:c}=e,f=l.context.switchable,o=(0,Kl.useMemo)(()=>[...new Set([...Hv(l.documents),...qv(f)])].sort(),[l.documents,f]),s=T(_=>f===void 0||_===null||l.chooseOption===void 0?[]:Rv(f,_).methods,"methodsOf"),v=(0,Kl.useMemo)(()=>Ir(c,o,Object.keys(l.documents.byIssuer??{}),l.detectedCountry),[c,o,l.documents,l.detectedCountry]),p=o.length===1?o[0]:null,[m,h]=(0,Kl.useState)(t??p),[b,N]=(0,Kl.useState)(null),D=p===null?[]:uf(l.documents,p),d=p!==null&&D.length===1&&s(p).length===0?D[0]:null;(0,Kl.useEffect)(()=>{p!==null&&d!==null&&l.selectDocument(p,d)},[p,d]);let r=T((_,ml)=>{l.selectDocument(_,ml),a?.()},"pick"),y=T(_=>{let ml=uf(l.documents,_);ml.length===1&&s(_).length===0?r(_,ml[0]):h(_)},"chooseIssuer");(0,Kl.useEffect)(()=>{if(b===null||m===null)return;let _=setTimeout(()=>r(m,b),Vr);return()=>clearTimeout(_)},[b]),wc(m!==null&&o.length>1&&t===void 0?()=>{h(null),N(null)}:null);let g=(0,Kl.useContext)(Jc),A=s(m);(0,Kl.useEffect)(()=>{g.set(m,A.map(_=>_.id))},[m,A.map(_=>_.id).join()]);let[C,E]=(0,Kl.useState)(null);(0,Kl.useEffect)(()=>{if(C===null)return;let _=l.chooseOption;if(_===void 0)return;let ml=setTimeout(()=>{_.call(l,C).catch(()=>E(null))},Vr);return()=>clearTimeout(ml)},[C]);let O=b!==null||C!==null;if(d!==null)return null;if(m===null)return(0,fl.jsxs)("section",{className:"sekyro-step",children:[(0,fl.jsx)(Pt,{title:u("doc.countryTitle"),lead:u(n?"doc.ageStepUp":"doc.pickDescription")}),(0,fl.jsx)(_r,{countries:v,label:u("doc.countryLabel"),searchPlaceholder:u("doc.countrySearch"),noMatch:u("doc.noCountryMatch"),onPick:y}),(0,fl.jsx)(la,{children:null})]});let U=uf(l.documents,m);return(0,fl.jsxs)("section",{className:"sekyro-step",children:[(0,fl.jsx)(Pt,{title:u("doc.pickTitle"),lead:u(n&&p!==null?"doc.ageStepUp":"native.doc.holdIt")}),(0,fl.jsxs)("div",{className:"sekyro-choices",children:[A.map(_=>(0,fl.jsxs)("button",{type:"button",className:"sekyro-card","data-testid":"sekyro-type-method","aria-pressed":C===_.id,disabled:O&&C!==_.id,onClick:i(()=>{O||E(_.id)},"onClick"),children:[(0,fl.jsx)("span",{className:"sekyro-card__tile",children:(0,fl.jsx)(se,{name:br[_.service]??"id"})}),(0,fl.jsx)("span",{className:"sekyro-card__body",children:(0,fl.jsx)("span",{className:"sekyro-card__title",children:Yv(_,m,c)??lf(_,e)})}),(0,fl.jsx)("span",{className:"sekyro-radio","aria-hidden":"true"})]},_.id)),U.map(_=>(0,fl.jsxs)("button",{type:"button",className:"sekyro-card","aria-pressed":b===_,disabled:O&&b!==_,onClick:i(()=>{O||N(_)},"onClick"),children:[(0,fl.jsx)("span",{className:"sekyro-card__tile",children:(0,fl.jsx)(se,{name:_==="passport"?"passport":"card"})}),(0,fl.jsxs)("span",{className:"sekyro-card__body",children:[(0,fl.jsx)("span",{className:"sekyro-card__title",children:u(`doc.type.${_}`)}),(0,fl.jsx)("span",{className:"sekyro-card__sub",children:u(`doc.sub.${_}`)})]}),(0,fl.jsx)("span",{className:"sekyro-radio","aria-hidden":"true"})]},_))]}),o.length>1?(0,fl.jsx)("button",{type:"button",className:"sekyro-link",onClick:i(()=>{h(null),N(null),E(null)},"onClick"),children:u("native.doc.changeCountry")}):null,(0,fl.jsx)(la,{children:null})]})}i(Pr,"Po");T(Pr,"DocumentPicker");var Gv={load:T(()=>import("./document-capture-view-25EASYV7-MOFQVGV6.js"),"load")};function ld({step:l,locale:e,strings:t,className:a,liveMrz:n,barcodeAssetBaseUrl:u}){let c=Dl(e,t),[f,o]=(0,re.useState)(0),[s,v]=(0,re.useState)(null),p=Bv(l.documents),m=p.length>1,h=l.issuer!==null&&Gr(l.documents,l.issuer).length>1,b=l.documentType===null||l.issuer===null||s!==null,N=p.length===1&&Gr(l.documents,p[0]).length===1,[D]=(0,re.useState)(()=>b&&!N),d=l.ageStepUp===!0,r=(0,re.useMemo)(()=>(0,re.lazy)(()=>Gv.load().then(g=>({default:g.DocumentCaptureView}))),[f]);(0,re.useEffect)(()=>{xv()},[]);let y=(0,Ee.jsxs)(Nl,{tone:"danger",children:[(0,Ee.jsx)("span",{children:c.t("errors.network_error")}),(0,Ee.jsx)(cl,{kind:"secondary",onClick:i(()=>o(g=>g+1),"onClick"),children:c.t("doc.retryCamera")})]});return(0,Ee.jsx)("div",{className:a,children:b?(0,Ee.jsx)(Pr,{step:l,i18n:c,ageStepUp:d&&s===null&&D,...s==="document"&&l.issuer!==null?{issuer:l.issuer}:{},onPicked:i(()=>v(null),"onPicked")}):(0,Ee.jsx)(Ca,{fallback:y,children:(0,Ee.jsx)(re.Suspense,{fallback:(0,Ee.jsx)("p",{role:"status","aria-busy":"true",className:"sekyro-text-muted",children:c.t("common.loading")}),children:(0,Ee.jsx)(r,{step:l,i18n:c,ageLead:d&&!D,liveMrz:l.documentType==="drivers_license"?void 0:n,barcodeAssetBaseUrl:u,...m?{onChangeCountry:T(()=>v("country"),"onChangeCountry")}:{},...h?{onChangeDocument:T(()=>v("document"),"onChangeDocument")}:{}})})},f)})}i(ld,"Nt");T(ld,"DocumentCapture");var Qv={load:T(()=>import("./portrait-capture-view-QDUJ36UH-QZR4O3YW.js"),"load")},Xv={load:T(()=>import("./portrait-review-view-LW5DBF3L-QVERJXKH.js"),"load")},xa,ed=(xa=class extends _l.Component{constructor(){super(...arguments),this.state={failed:!1}}static getDerivedStateFromError(){return{failed:!0}}render(){return this.state.failed?this.props.fallback:this.props.children}},i(xa,"Pt"),xa);T(ed,"LoadBoundary");var Qr=ed;function td({step:l,i18n:e}){let{t}=e,a=$u();return(0,K.jsxs)("section",{className:"sekyro-stack sekyro-stack--2","data-testid":"sekyro-portrait-match",children:[(0,K.jsx)("h2",{ref:a,tabIndex:-1,className:"sekyro-text-body",children:t(l.review?"portrait.reviewTitle":"session.steps.portrait.title")}),l.review?(0,K.jsx)("p",{className:"sekyro-text-muted",children:t("portrait.reviewDescription")}):null,l.uploadFailed?(0,K.jsxs)(Nl,{tone:"danger",children:[(0,K.jsx)("span",{children:t("portrait.uploadFailed")}),(0,K.jsx)(cl,{kind:"secondary",onClick:i(()=>{l.resubmit()},"onClick"),children:t("portrait.sendAgain")})]}):(0,K.jsx)("p",{role:"status","aria-live":"polite","aria-busy":"true",className:"sekyro-text-muted",children:t("portrait.matching")})]})}i(td,"or");T(td,"MatchPhase");function ad({step:l,locale:e,strings:t,className:a,assetBaseUrl:n,verification:u}){let c=Dl(e,t),f=vr(u),o=(0,_l.useContext)(Fc),[s,v]=(0,_l.useState)(0),[p,m]=(0,_l.useState)(null),h=(0,_l.useMemo)(()=>(0,_l.lazy)(()=>Qv.load().then(E=>({default:E.PortraitCaptureView}))),[s]),b=(0,_l.useMemo)(()=>(0,_l.lazy)(()=>Xv.load().then(E=>({default:E.PortraitScreens}))),[s]),N=typeof l.uploadPortrait=="function",D=N?l.photo?.source??"camera":"camera",d=N&&D!=="camera"&&l.photo?.uploadOffered===!0,r=D!=="upload",y=D==="upload"?"upload":D==="choice"?p??l.photo?.pick??"source":"camera",g=l.phase==="capture"&&l.photo?.cameraOnPhone===!0;if((0,_l.useEffect)(()=>{l.phase==="capture"&&y==="camera"&&!g&&Vv()},[l.phase,y,g]),l.phase==="match")return(0,K.jsx)("div",{className:a,children:(0,K.jsx)(td,{step:l,i18n:c})});let A=(0,K.jsx)("p",{role:"status","aria-busy":"true",className:"sekyro-text-muted",children:c.t("common.loading")});if(o!==null&&(o.busy||o.failed!==null)&&l.phase==="capture"&&y==="camera")return(0,K.jsxs)("section",{className:`sekyro-step${a?` ${a}`:""}`,children:[(0,K.jsx)(Pt,{title:c.t("session.steps.portrait.title")}),(0,K.jsx)(la,{children:(0,K.jsx)(cl,{kind:"secondary",full:!0,disabled:o.busy,onClick:o.reset,children:c.t("portrait.retryCamera")})})]});if(l.phase==="review"||y!=="camera"||g)return(0,K.jsx)("div",{className:a,children:(0,K.jsx)(Qr,{fallback:(0,K.jsx)(cl,{kind:"ghost",onClick:i(()=>v(E=>E+1),"onClick"),children:c.t("common.retry")}),children:(0,K.jsx)(_l.Suspense,{fallback:A,children:(0,K.jsx)(b,{screen:l.phase==="review"?"review":g&&y==="camera"?"phone":y==="camera"?"review":y,step:l,i18n:c,...r?{onCamera:T(()=>m("camera"),"onCamera")}:{},onUpload:i(()=>m("upload"),"onUpload"),onDeclined:i(()=>m(null),"onDeclined")})})},s)});if(!f.settled)return(0,K.jsx)("div",{className:a,children:A});let C=(0,K.jsxs)(Nl,{tone:"danger",children:[(0,K.jsx)("span",{children:c.t("errors.network_error")}),(0,K.jsx)(cl,{kind:"secondary",onClick:i(()=>v(E=>E+1),"onClick"),children:c.t("portrait.retryCamera")})]});return(0,K.jsx)("div",{className:a,children:(0,K.jsx)(Qr,{fallback:C,children:(0,K.jsx)(_l.Suspense,{fallback:A,children:(0,K.jsx)(h,{step:l,i18n:c,...n!==void 0?{assetBaseUrl:n}:{},...d?{onUpload:T(()=>m("upload"),"onUpload")}:{}})})},s)})}i(ad,"_t");T(ad,"PortraitCapture");var jv={load:T(()=>import("./proof-of-address-view-E6WJTTIV-4SHZIQ3O.js"),"load")};function nd({step:l,locale:e,strings:t,className:a}){let n=Dl(e,t),[u,c]=(0,gt.useState)(0),f=(0,gt.useMemo)(()=>(0,gt.lazy)(()=>jv.load().then(s=>({default:s.ProofOfAddressView}))),[u]),o=(0,Ce.jsxs)(Nl,{tone:"danger",children:[(0,Ce.jsx)("span",{children:n.t("errors.network_error")}),(0,Ce.jsx)(cl,{kind:"secondary",onClick:i(()=>c(s=>s+1),"onClick"),children:n.t("common.retry")})]});return(0,Ce.jsx)("div",{className:a,children:(0,Ce.jsx)(Ca,{fallback:o,children:(0,Ce.jsx)(gt.Suspense,{fallback:(0,Ce.jsx)("p",{role:"status","aria-busy":"true",className:"sekyro-text-muted",children:n.t("common.loading")}),children:(0,Ce.jsx)(f,{step:l,i18n:n})})},u)})}i(nd,"xt");T(nd,"ProofOfAddress");var Lv={load:T(()=>import("./form-view-4NKEHYNF-VFMN6QFW.js"),"load")};function ud({step:l,locale:e,strings:t,className:a,onError:n}){let u=Dl(e,t),[c,f]=(0,bt.useState)(0),o=(0,bt.useMemo)(()=>(0,bt.lazy)(()=>Lv.load().then(v=>({default:v.FormView}))),[c]),s=(0,ke.jsxs)(Nl,{tone:"danger",children:[(0,ke.jsx)("span",{children:u.t("errors.network_error")}),(0,ke.jsx)(cl,{kind:"secondary",onClick:i(()=>f(v=>v+1),"onClick"),children:u.t("common.retry")})]});return(0,ke.jsx)("div",{className:a,children:(0,ke.jsx)(Ca,{fallback:s,children:(0,ke.jsx)(bt.Suspense,{fallback:(0,ke.jsx)("p",{role:"status","aria-busy":"true",className:"sekyro-text-muted",children:u.t("common.loading")}),children:(0,ke.jsx)(o,{step:l,i18n:u,...n!==void 0?{onError:n}:{}})})},c)})}i(ud,"It");T(ud,"FormStep");var Xr={light:{lineBrand:"#0d3b66",successSoft:"#d5f0e8",successFg:"#005341",onSuccess:"#ffffff",warningSoft:"#fff7e6",warningFg:"#735003",onWarning:"#191a1b",dangerSoft:"#ffdada",dangerFg:"#ca0f07",onDanger:"#ffffff",info:"#0563d4",infoSoft:"#d3e5ff",infoFg:"#064da5",onInfo:"#ffffff"},dark:{lineBrand:"#3f80bf",successSoft:"#002c23",successFg:"#53ffd4",onSuccess:"#030303",warningSoft:"#463102",warningFg:"#ffd98a",onWarning:"#030303",dangerSoft:"#9c1008",dangerFg:"#ffbbbb",onDanger:"#030303",info:"#5da9ff",infoSoft:"#063778",infoFg:"#acd0ff",onInfo:"#030303"},sizes:{buttonHeight:"52px",controlRadius:"10px",cardRadius:"16px",fieldRadius:"10px",iconTile:"56px",iconTileRadius:"16px",headerTile:"40px",choiceTile:"40px",tileRadius:"10px",resultDisc:"64px",resultRing:"8px",progressHeight:"4px",focusRing:"2px",focusRingOffset:"2px",otpBox:"60px",choiceMinHeight:"76px",stepGap:"32px",headingGap:"12px"},motion:{page:"320ms",easeOut:"cubic-bezier(0.16, 1, 0.3, 1)"}},mf={light:{danger:{base:"#ca0f07",soft:"#ffdada",fg:"#ca0f07",on:"#ffffff"},success:{base:"#007a5e",soft:"#d5f0e8",fg:"#005341",on:"#ffffff"},warning:{base:"#ffab00",soft:"#fff7e6",fg:"#735003",on:"#191a1b"},info:{base:"#0563d4",soft:"#d3e5ff",fg:"#064da5",on:"#ffffff"}},dark:{danger:{base:"#ff7c7c",soft:"#9c1008",fg:"#ffbbbb",on:"#030303"},success:{base:"#00c897",soft:"#002c23",fg:"#53ffd4",on:"#030303"},warning:{base:"#ffbb2e",soft:"#463102",fg:"#ffd98a",on:"#030303"},info:{base:"#5da9ff",soft:"#063778",fg:"#acd0ff",on:"#030303"}}},Kv=["danger","success","warning","info"];function ui(l){let e=l/255;return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}i(ui,"Et");T(ui,"channel");function cf(l){let e=ui(parseInt(l.slice(1,3),16)),t=ui(parseInt(l.slice(3,5),16)),a=ui(parseInt(l.slice(5,7),16));return .2126*e+.7152*t+.0722*a}i(cf,"Ro");T(cf,"luminance");function id(l,e){let t=cf(l),a=cf(e),n=Math.max(t,a),u=Math.min(t,a);return(n+.05)/(u+.05)}i(id,"gr");T(id,"contrastRatio");function ff(l,e){return Math.min(...Kv.map(t=>id(mf[l][t].fg,e)))}i(ff,"Lo");T(ff,"worstAgainst");function of(l,e,t){return Math.min(ff(l,e),ff(l,t))}i(of,"Bo");T(of,"worstStatusContrast");function cd(l,e){return of("light",l,e)>=of("dark",l,e)?"light":"dark"}i(cd,"Vo");T(cd,"statusSchemeFor");function hf({open:l,title:e,closeLabel:t,onClose:a,children:n,actions:u,role:c,testId:f,returnFocus:o}){let s=(0,yt.useRef)(null),v=(0,yt.useRef)(null),p=(0,yt.useRef)(!1),m=(0,yt.useId)();return(0,yt.useEffect)(()=>{let h=s.current;if(h!==null){if(l&&!h.open?(v.current=typeof document>"u"?null:document.activeElement,typeof h.showModal=="function"?h.showModal():h.setAttribute("open","")):!l&&h.open&&(typeof h.close=="function"?h.close():h.removeAttribute("open")),!l&&p.current){let b=o?.current??(v.current instanceof HTMLElement?v.current:null);v.current=null,b?.focus()}p.current=l}},[l,o]),(0,Be.jsx)("dialog",{ref:s,className:"sekyro-dialog","aria-labelledby":m,...c==="alertdialog"?{role:c}:{},"data-testid":f,onCancel:i(h=>{h.preventDefault(),a()},"onCancel"),onClick:i(h=>{h.target===h.currentTarget&&a()},"onClick"),children:(0,Be.jsxs)("div",{className:"sekyro-dialog__panel",children:[(0,Be.jsxs)("div",{className:"sekyro-dialog__head",children:[(0,Be.jsx)("h2",{id:m,className:"sekyro-dialog__title",children:e}),t!==void 0?(0,Be.jsx)("button",{type:"button",className:"sekyro-disc sekyro-dialog__close","aria-label":t,onClick:a,children:(0,Be.jsx)(se,{name:"close"})}):null]}),n!==void 0?(0,Be.jsx)("div",{className:"sekyro-dialog__body",children:n}):null,u!==void 0?(0,Be.jsx)("div",{className:"sekyro-dialog__actions",children:u}):null]})})}i(hf,"it");T(hf,"FlowDialog");var Jv=["intro","data","processing","sharing","retention"];function fd({i18n:l,purpose:e="identity"}){let{t}=l,[a,n]=(0,ci.useState)(!1),u=(0,ci.useRef)(null),[c,f=""]=t("consent.short").split("{terms}");return(0,Ze.jsxs)("div",{className:"sekyro-consent","data-testid":"sekyro-consent",children:[(0,Ze.jsxs)("p",{className:"sekyro-consent__line",children:[c,(0,Ze.jsx)("button",{ref:u,type:"button",className:"sekyro-link sekyro-link--inline","aria-haspopup":"dialog",onClick:i(()=>n(!0),"onClick"),children:t("consent.termsLink")}),f]}),(0,Ze.jsx)(hf,{open:a,title:t("consent.termsTitle"),closeLabel:t("native.close"),onClose:i(()=>n(!1),"onClose"),returnFocus:u,testId:"sekyro-consent-terms",children:(0,Ze.jsx)("div",{className:"sekyro-stack sekyro-stack--3",children:e==="human"?(0,Ze.jsx)(Cl,{view:"HumanConsentTerms",i18n:l,quiet:!0}):Jv.map(o=>(0,Ze.jsx)("p",{children:t(`consent.terms.${o}`)},o))})})]})}i(fd,"Do");T(fd,"ConsentNotice");function od(l){let e=l.trim().split(/\s+/).filter(t=>t!=="");return(e.length>=2?[e[0],e[1]].map(t=>Array.from(t??"")[0]??""):Array.from(e[0]??"").slice(0,2)).join("").toUpperCase()}i(od,"Mo");T(od,"initials");var rd=T(l=>({colors:{...l?kl.dark:kl.light},radius:kl.radius,fontFamily:kl.font}),"brandTheme"),ob=rd(!1),jr=/^#[0-9a-f]{6}$/i;function yf(l,e,t){if(e)return null;let a=ti(l).colors,n=t?.colors?.bg??a?.bg,u=t?.colors?.surface??a?.surface;return n===void 0&&u===void 0||n!==void 0&&!jr.test(n)||u!==void 0&&!jr.test(u)?null:cd(n??kl.light.bg,u??kl.light.surface)}i(yf,"Rt");T(yf,"partnerStatusScheme");function vf(l,e,t){let a=ti(l);if(t&&a.colors!==void 0){let{brand:n,brandFg:u}=a.colors;n!==void 0&&hd(n,kl.dark.bg)>=3?a.colors={brand:n,ring:n,...u!==void 0?{brandFg:u}:{}}:delete a.colors}if(yf(l,t,e)==="dark"){let n=mf.dark;a.colors={...a.colors,danger:n.danger.base,success:n.success.base,warning:n.warning.fg}}return ai(rd(t),a,ei(e))}i(vf,"at");T(vf,"verificationTheme");function pf(l){let e=(0,sd.useSyncExternalStore)(md,Wv,()=>!1);return l==="dark"||l==="system"&&e}i(pf,"lt");T(pf,"useDarkScheme");var wv="(prefers-color-scheme: dark)",dd=T(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia(wv):null,"media"),Wv=T(()=>dd()?.matches??!1,"prefersDark");function md(l){let e=dd();return e?.addEventListener("change",l),()=>e?.removeEventListener("change",l)}i(md,"_r");T(md,"subscribe");function hd(l,e){let[t,a]=[sf(l),sf(e)];return(Math.max(t,a)+.05)/(Math.min(t,a)+.05)}i(hd,"Pr");T(hd,"contrast");function sf(l){let e=[1,3,5].map(t=>{let a=Number.parseInt(l.slice(t,t+2),16)/255;return a<=.03928?a/12.92:((a+.055)/1.055)**2.4});return .2126*(e[0]??0)+.7152*(e[1]??0)+.0722*(e[2]??0)}i(sf,"Uo");T(sf,"luminance");var gf="sekyro.testerGate";function fi(){try{return typeof localStorage>"u"?null:localStorage}catch{return null}}i(fi,"Bt");T(fi,"store");function yd(l=Date.now()){try{fi()?.setItem(gf,String(l))}catch{}}i(yd,"zo");T(yd,"rememberTester");function vd(l=Date.now()){try{let e=Number(fi()?.getItem(gf)??"");return Number.isFinite(e)&&e>0&&l-e<2592e6}catch{return!1}}i(vd,"Go");T(vd,"rememberedTester");function pd(){try{fi()?.removeItem(gf)}catch{}}i(pd,"qo");T(pd,"forgetTester");var Lr=new Set(["document_id_number_mismatch","name_mismatch","birth_date_mismatch"]),Fv={review:{icon:"pending",tone:"info"},cooldown:{icon:"timer",tone:"info"},rejected:{icon:"close",tone:"neutral"},policy:{icon:"close",tone:"neutral"},inconclusive:{icon:"warning",tone:"neutral"},unavailable:{icon:"timer",tone:"neutral"},expired:{icon:"timer",tone:"neutral"}};function gd({screen:l}){if(l==="verified")return(0,F.jsxs)("svg",{className:"sekyro-outcome sekyro-outcome--approved",viewBox:"0 0 136 136","aria-hidden":"true",focusable:"false",children:[(0,F.jsx)("circle",{className:"sekyro-outcome__ring",cx:"68",cy:"68",r:"54",pathLength:"1"}),(0,F.jsx)("circle",{className:"sekyro-outcome__disc",cx:"68",cy:"68",r:"48"}),(0,F.jsx)("path",{className:"sekyro-outcome__glyph",d:"M6.5 12.5l3.6 3.6 7.4-8.2",pathLength:"1",transform:"translate(39 39) scale(2.4167)"})]});let{icon:e,tone:t}=Fv[l];return(0,F.jsx)("span",{className:`sekyro-tile sekyro-tile--${t} sekyro-outcome-tile`,"aria-hidden":"true","data-screen":l,children:(0,F.jsx)(se,{name:e})})}i(gd,"Or");T(gd,"OutcomeMark");function bd({label:l,id:e,copied:t}){let[a,n]=(0,Ha.useState)(!1);return(0,Ha.useEffect)(()=>{if(!a)return;let u=setTimeout(()=>n(!1),1600);return()=>clearTimeout(u)},[a]),(0,F.jsxs)("button",{type:"button",className:`sekyro-reference${a?" is-copied":""}`,onClick:i(()=>{navigator.clipboard?.writeText(e).then(()=>n(!0),()=>{})},"onClick"),children:[(0,F.jsx)("span",{"aria-live":"polite",children:a?t:l}),(0,F.jsx)("bdi",{dir:"ltr",children:e}),(0,F.jsx)(se,{name:"copy"})]})}i(bd,"Rr");T(bd,"ReferenceLine");function Sd({step:l,t:e}){let t=l.context.sandbox?l.context.simulation?.reason:void 0;return t===void 0?null:(0,F.jsxs)(Iu,{tone:"warning",role:"status",testId:"sekyro-simulated-notice",children:[(0,F.jsx)("span",{className:"sekyro-notice__icon","aria-hidden":"true",children:(0,F.jsx)(se,{name:"info"})}),(0,F.jsxs)("div",{className:"sekyro-notice__body","data-reason":t,children:[(0,F.jsx)("strong",{children:e("sandbox.simulatedTitle")}),(0,F.jsx)("span",{children:e(t==="no_testers"?"sandbox.simulatedNoTesters":"sandbox.simulatedGate")})]})]})}i(Sd,"Lr");T(Sd,"SimulationNotice");function zd(l,e){return l==="expired"?"native.result.expiredTitle":l!=="verified"?`session.result.${l}.title`:e.level===3?"session.result.verified.title":e.level===1&&e.assurance==="contact_phone"?"session.result.verified.titlePhone":e.level===1&&e.assurance==="contact_email"?"session.result.verified.titleEmail":e.level===1?"session.result.verified.titleContact":"session.result.verified.titleHuman"}i(zd,"Br");T(zd,"resultTitleKey");function Td({step:l,locale:e,strings:t,className:a,onClose:n}){let u=Dl(e,t),{t:c}=u,f=(0,Ha.useId)(),o=$u(),s=l.context.orgName,v=l.reasonCode??"",p=l.display==="platform_unsupported"?"policy":l.display,m=T(b=>(s!==""||b==="verified")&&b!=="cooldown"?c(`native.result.${b}`,{org:s}):c(`session.result.${b}.description`),"partnerLine"),h;switch(l.display){case"rejected":v==="identity_not_verified"?h=s!==""?c("reasons.identity_not_verified",{org:s}):c("session.result.identityNotVerified"):h=Lr.has(Kc(v))?c("session.result.detailsMismatch",{org:s}):m("rejected");break;case"policy":{if(Lr.has(Kc(v)))h=c("session.result.detailsMismatch",{org:s});else if(v==="device_velocity_exceeded")h=c("session.result.deviceVelocity",{org:s});else if(v==="capture_tampered")h=c("session.result.deviceStop");else if(v==="camera_unavailable")h=c("reasons.camera_unavailable",{org:s});else if(v==="underage_estimated")h=c("reasons.underage_estimated");else if(v==="starter_credit_claimed")h=c("reasons.starter_credit_claimed");else if(v==="blocked_by_org")h=c("reasons.blocked_by_org");else{let b=v===""?null:ar(v);h=b!==null?c(b,{org:s}):m("policy")}break}case"cooldown":{let b=nr(u.locale,l.retryAfter);h=b!==null?c(b.key,{time:b.time}):c("session.result.cooldown.description");break}case"platform_unsupported":h=c("result.platform_unsupported");break;default:h=m(p)}return(0,F.jsxs)("section",{className:`sekyro-result${a?` ${a}`:""}`,"aria-labelledby":f,"data-testid":"sekyro-result",children:[(0,F.jsxs)("div",{className:"sekyro-result__body",children:[(0,F.jsx)(gd,{screen:p}),(0,F.jsxs)("div",{className:"sekyro-heading",children:[(0,F.jsx)("h2",{id:f,ref:o,tabIndex:-1,className:"sekyro-text-body",children:c(zd(p,l.result))}),(0,F.jsx)("p",{className:"sekyro-text-muted",children:h})]}),(0,F.jsx)(Sd,{step:l,t:c}),(0,F.jsx)(bd,{label:c("result.referenceLabel"),id:l.context.sessionId,copied:c("native.result.copied")})]}),n!==void 0?(0,F.jsx)("div",{className:"sekyro-actions",children:(0,F.jsx)(cl,{full:!0,onClick:n,children:c("native.result.continue",{org:s})})}):null]})}i(Td,"Vt");T(Td,"VerificationResultScreen");function Ad(l,e,t){let a=e?kl.dark:kl.light,n=e?kl.roles.dark:kl.roles.light,u=l.colors??{},c={},f=u.fg===a.fg&&u.surface===a.surface;u.brand===a.brand&&u.surface===a.surface&&(c["--sekyro-color-brand-soft"]=n.brandSoft),f&&(c["--sekyro-color-line"]=n.line,c["--sekyro-color-line-subtle"]=n.lineSubtle,c["--sekyro-color-line-strong"]=n.lineStrong,c["--sekyro-color-sunken"]=n.sunken),u.fgMuted===a.fgMuted&&u.surface===a.surface&&(c["--sekyro-color-fg-subtle"]=n.fgSubtle),l.fontFamily===kl.font&&(c["--sekyro-font-display"]=kl.fontDisplay);let o=e?Xr.dark:Xr.light;if(c["--sekyro-color-success-soft"]=o.successSoft,c["--sekyro-color-success-fg"]=o.successFg,c["--sekyro-color-on-success"]=o.onSuccess,c["--sekyro-color-warning-soft"]=o.warningSoft,c["--sekyro-color-warning-fg"]=o.warningFg,c["--sekyro-color-danger-soft"]=o.dangerSoft,c["--sekyro-color-danger-fg"]=o.dangerFg,c["--sekyro-color-on-danger"]=o.onDanger,c["--sekyro-color-info-soft"]=o.infoSoft,c["--sekyro-color-info-fg"]=o.infoFg,u.brand===a.brand&&(c["--sekyro-color-line-brand"]=o.lineBrand),t!==null){let s=mf[t];for(let v of["danger","success","warning","info"])c[`--sekyro-color-${v}-soft`]=s[v].soft,c[`--sekyro-color-${v}-fg`]=s[v].fg;c["--sekyro-color-on-success"]=s.success.on,c["--sekyro-color-on-danger"]=s.danger.on}return c}i(Ad,"Dr");T(Ad,"flowRoles");function oi(l){let{verification:e,locale:t,strings:a,onStep:n,onResult:u}=l,{step:c,error:f}=Zr(e);(0,k.useEffect)(()=>{c!==null&&n?.(c)},[c,n]),(0,k.useEffect)(()=>u===void 0?void 0:e.on("result",u),[e,u]);let o=pf(l.colorScheme??"light"),s=c?.context.branding,v=vf(s,l.theme,o),[p,m]=(0,k.useState)(!1),h=`sekyro-verification${o?" sekyro-verification--dark":""}${p?" is-immersive":""}${l.className!==void 0?` ${l.className}`:""}`,b=(0,k.useRef)(l.onClose);b.current=l.onClose;let N=(0,k.useRef)(c);N.current=c;let D=(0,k.useCallback)(()=>{let A=N.current;b.current?.(A?.kind==="result"?{reason:"finished",result:A.result}:{reason:"cancelled"})},[]),[d,r]=(0,k.useState)(null),y=(0,k.useCallback)(()=>{let A=N.current;A!==null&&A.kind!=="result"&&A.context.consentRecorded?r("close"):D()},[D]),g=(0,k.useMemo)(()=>e.reportCaptureIssue===void 0?null:A=>e.reportCaptureIssue?.(A),[e]);return(0,z.jsx)(ni,{theme:v,className:h,children:(0,z.jsx)(Pc,{locale:t,...a!==void 0?{strings:a}:{},children:(0,z.jsx)("div",{dir:l.dir??(t==="ar"?"rtl":"ltr"),lang:t,className:"sekyro-flow",style:Ad(v,o,yf(s,o,l.theme)),children:(0,z.jsx)(fr.Provider,{value:m,children:(0,z.jsx)(Wc.Provider,{value:l.onClose!==void 0?D:void 0,children:(0,z.jsx)(Pu.Provider,{value:l.onClose!==void 0?y:void 0,children:(0,z.jsxs)(mr.Provider,{value:g,children:[(0,z.jsx)(Dd,{...l,step:c,error:f,immersive:p,onLeaveAsk:i(()=>r("history"),"onLeaveAsk"),onClosed:D}),(0,z.jsx)(Md,{open:d!==null,onStay:i(()=>{d==="history"&&ii(),r(null)},"onStay"),onLeave:i(()=>{let A=d;r(null),A==="close"||l.onClose!==void 0?D():typeof window<"u"&&Sf()},"onLeave")})]})})})})})})})}i(oi,"Dt");T(oi,"SekyroVerification");function Ed(l,e){if(e===void 0||e==="aml_screening")return null;let t=l,a=t[`session.processing.${e}.title`],n=t[`session.processing.${e}.description`];return typeof a=="string"&&a!==""&&typeof n=="string"&&n!==""?{title:a,description:n}:null}i(Ed,"Mr");T(Ed,"processingCopyOf");function Nd({error:l,retry:e}){let{t}=Dl(),a=$u();return(0,z.jsxs)(Iu,{tone:"danger",testId:"sekyro-error-notice",children:[(0,z.jsx)("span",{children:t(tr(l))}),l.retryable?(0,z.jsx)(cl,{ref:a,kind:"secondary",className:"sekyro-btn--start",onClick:e,children:t("common.retry")}):null]})}i(Nd,"Hr");T(Nd,"CameraErrorNotice");var _d="sekyroFlow";function bf(){let l=window.history.state;return typeof l=="object"&&l!==null&&l[_d]===!0}i(bf,"Qo");T(bf,"onGuard");function ii(){if(typeof window>"u"||bf())return;let l=window.history.state;window.history.pushState({...typeof l=="object"&&l!==null?l:{},[_d]:!0},"")}i(ii,"At");T(ii,"pushGuard");function Sf(){window.history.back()}i(Sf,"Xo");T(Sf,"leaveHistory");function Md({open:l,onStay:e,onLeave:t}){let{t:a}=Dl();return(0,z.jsx)(hf,{open:l,role:"alertdialog",title:a("leave.title"),onClose:e,testId:"sekyro-leave",actions:(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(cl,{full:!0,onClick:e,children:a("leave.stay")}),(0,z.jsx)(cl,{full:!0,kind:"danger",onClick:t,children:a("leave.confirm")})]}),children:(0,z.jsx)("p",{className:"sekyro-text-muted",children:a("leave.body")})})}i(Md,"Ur");T(Md,"LeaveDialog");function Od(l,e){let[t,a]=(0,k.useState)(!1),[n,u]=(0,k.useState)(null),c=l===null?void 0:l.skipCapture,f=(0,k.useRef)(c);f.current=c;let o=(0,k.useRef)(!1),s=l?.key;(0,k.useEffect)(()=>u(null),[s]);let v=(0,k.useCallback)(()=>{if(o.current)return;let b=f.current;b!==void 0&&(o.current=!0,a(!0),u(null),b().catch(N=>u(e.t(Vn(N,e.strings)))).finally(()=>{o.current=!1,a(!1)}))},[e]),p=(0,k.useCallback)(()=>u(null),[]),m=c!==void 0,h=e.t("sandbox.skipCapture");return(0,k.useMemo)(()=>m?{label:h,busy:t,failed:n,run:v,reset:p}:null,[m,h,t,n,v,p])}i(Od,"$r");T(Od,"useSkipCapture");function Ud({skip:l}){return(0,z.jsxs)(z.Fragment,{children:[l.failed!==null?(0,z.jsx)(Nl,{tone:"danger",children:(0,z.jsx)("span",{children:l.failed})}):null,(0,z.jsx)(cl,{kind:"ghost",full:!0,disabled:l.busy,"aria-busy":l.busy||void 0,onClick:l.run,"data-testid":"sekyro-skip-capture",children:l.label})]})}i(Ud,"Kr");T(Ud,"SkipAction");function Dd(l){let{step:e,error:t,slots:a,immersive:n}=l,u=Dl(),{t:c}=u,[f,o]=(0,k.useState)(!1),[s,v]=(0,k.useState)([]),p=(0,k.useCallback)(M=>(v(el=>[...el,M]),()=>v(el=>el.filter(jl=>jl!==M))),[]),[m,h]=(0,k.useState)(null),b=(0,k.useCallback)(M=>h(()=>M),[]),[N,D]=(0,k.useState)(0),[d,r]=(0,k.useState)(null),[y,g]=(0,k.useState)(null),A=Od(e,u),C=e?.context.testerGate!==void 0,[E,O]=(0,k.useState)(!1),U=(0,k.useRef)(null);(0,k.useEffect)(()=>{!C||U.current!==null||(U.current=vd(),U.current&&O(!0))},[C]);let _=e?.context.purpose??"identity",ml=e?.context.returning===!0,wt=l.verification,Zu=_==="human"||e?.context.cameraUnavailableHandled===!0,Ae=wt.reportCameraUnavailable!==void 0&&Zu?M=>wt.reportCameraUnavailable?.(M)??Promise.resolve():void 0,Cn=e?.kind==="liveness"&&e.mode==="liveness"&&e.reason===void 0&&!e.attemptsExhausted,Xe=l.handoffUrl,Ku=(0,k.useRef)({last:null,count:0}),Zl=(0,k.useCallback)((M,el,jl=!1)=>Ae===void 0&&el!=="denied"?void 0:(0,z.jsx)(Cl,{view:"NoCameraView",i18n:u,quiet:!0,cause:el,onRetry:M,repeated:jl,...Cn&&Ae!==void 0?{onContinue:Ae}:{},...Xe!==void 0?{handoffUrl:Xe}:{}}),[u,wt,Zu,Cn,Xe]),Oa=(0,k.useMemo)(()=>zr(e),[e]),ht=(0,k.useCallback)((M,el)=>(0,z.jsx)(Tr,{start:M,context:el,human:_==="human",returning:ml,notice:el.permissionSettled&&el.permission==="denied"?Zl(M,"denied"):void 0,...Oa!==void 0?{retry:Oa}:{}}),[_,ml,Zl,Oa]),Ua=(0,k.useCallback)((M,el)=>{let jl=Zv(M.kind),Wu=Ku.current;M.kind==="permission"&&M!==Wu.last&&(Wu.last=M,Wu.count+=1);let vv=M.kind==="permission"&&Wu.count>1;return(jl!==void 0?Zl(el,jl,vv):void 0)??(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(Nd,{error:M,retry:el}),jl!==void 0&&Xe!==void 0?(0,z.jsx)(Cl,{view:"DesktopHandoffView",i18n:u,quiet:!0,url:Xe}):null]})},[Zl,Xe,u]),kn=(0,k.useRef)(""),Bn=l.livenessProps?.slots?.stageOverlay,xn=(0,k.useCallback)(M=>(M.guidance!==""&&!M.coached&&(kn.current=M.guidance),(0,z.jsx)(dr,{testId:"sekyro-capture-stage",video:(0,z.jsx)("video",{ref:M.videoRef,playsInline:!0,muted:!0,className:"sekyro-lm-video sekyro-fc-video","aria-hidden":"true","data-testid":"sekyro-capture-video"}),instruction:M.settled?c("capture.checkingTitle"):M.guidance!==""?M.guidance:kn.current,note:M.note,status:M.status,busy:M.settled,progress:M.phase==="seeking"||M.phase==="aligning"?M.progress:1,still:M.still,live:M.live,closeLabel:c("native.close"),overlay:Bn?.(M.videoRef),ramp:M.ramp?.colour??null,...M.settled?{}:{onClose:T(()=>D(el=>el+1),"onClose")},end:M.modeSwitch!=null?(0,z.jsx)(ur,{view:M.modeSwitch,className:"sekyro-glass sekyro-glass--label"}):null,children:M.settled||!M.live?null:(0,z.jsx)(or,{onStop:i(()=>D(el=>el+1),"onStop")})})),[c,Bn]),Hn=(0,k.useId)(),Wt=e,Ft=e!==null&&d===e.key&&e.context.switchable!==void 0,$t=m??(e===null||e.kind==="result"?null:Ft?()=>r(null):e.context.switchable!==void 0&&typeof Wt?.chooseOption=="function"?()=>r(e.key):null),qn=(0,k.useRef)($t);qn.current=$t;let Rn=(0,k.useRef)(e);Rn.current=e;let De=(0,k.useRef)({ask:l.onLeaveAsk,closed:l.onClosed,hostClose:l.onClose!==void 0});De.current={ask:l.onLeaveAsk,closed:l.onClosed,hostClose:l.onClose!==void 0};let Yn=l.backNavigation==="history";if((0,k.useEffect)(()=>{if(!Yn||typeof window>"u")return;ii();let M=T(()=>{if(bf())return;let el=Rn.current,jl=qn.current;jl!==null?(jl(),ii()):el?.kind!=="result"&&el?.context.consentRecorded===!0?De.current.ask():De.current.hostClose?De.current.closed():Sf()},"onPop");return window.addEventListener("popstate",M),()=>window.removeEventListener("popstate",M)},[Yn]),t!==null)return(0,z.jsx)(Iu,{tone:"danger",children:(0,z.jsx)("span",{children:c(Vn(t,u.strings))})});if(e===null)return(0,z.jsxs)("div",{className:"sekyro-skeleton",role:"status","aria-busy":"true",children:[(0,z.jsx)("span",{className:"sekyro-visually-hidden",children:c("common.loading")}),(0,z.jsx)("span",{className:"sekyro-skeleton__bar is-title"}),(0,z.jsx)("span",{className:"sekyro-skeleton__bar"}),(0,z.jsx)("span",{className:"sekyro-skeleton__bar is-short"}),(0,z.jsx)("span",{className:"sekyro-skeleton__bar is-block"})]});let{context:Xl}=e,Ju=T(M=>{o(!0),M().finally(()=>o(!1))},"refresh"),wu=a?.header??(0,z.jsx)(Bd,{context:Xl,headerId:Hn,end:a?.headerEnd,...$t!==null?{onBack:$t}:{}}),il,It=Ft;if(E&&l.verification.testerGate!==void 0)il=(0,z.jsx)(Ic.Provider,{value:xn,children:(0,z.jsx)(Cl,{view:"TesterGateView",i18n:u,verification:l.verification,attemptsLeft:Xl.testerGate?.attemptsLeft??0,livenessProps:{...l.livenessProps??{},slots:{...l.livenessProps?.slots,intro:l.livenessProps?.slots?.intro??ht},locale:l.locale,dir:l.dir,strings:u.strings,assetBaseUrl:l.assetBaseUrl,voice:l.voice},onBound:i(()=>yd(),"onBound"),onDone:i(M=>{M&&pd(),O(!1)},"onDone")})});else if(It)il=(0,z.jsx)(Cl,{view:"LaneChoiceView",i18n:u,step:e,onClose:i(()=>r(null),"onClose")});else switch(e.kind){case"phone_otp":il=(0,z.jsx)(Jr,{step:e});break;case"email_otp":il=(0,z.jsx)(wr,{step:e});break;case"method":il=(0,z.jsx)($r,{step:e});break;case"registry":il=(0,z.jsx)(df,{step:e});break;case"document":il=(0,z.jsx)(ld,{step:e,...l.documentLiveMrz!==void 0?{liveMrz:l.documentLiveMrz}:{},...l.documentBarcodeAssetBaseUrl!==void 0?{barcodeAssetBaseUrl:l.documentBarcodeAssetBaseUrl}:{}});break;case"liveness":{let M=l.livenessProps?.slots?.intro,el={...l.livenessProps??{},slots:{...l.livenessProps?.slots,intro:M??ht,...M===void 0&&l.livenessProps?.slots?.errorPanel===void 0?{errorPanel:Ua}:{}},...N>0?{autoStart:!1}:{},verification:l.verification,locale:l.locale,dir:l.dir,strings:u.strings,assetBaseUrl:l.assetBaseUrl,voice:l.voice,onCaptured:l.onLivenessCaptured};il=(0,z.jsx)(Ic.Provider,{value:xn,children:e.instructions==="icao"||e.livePhoto?.icao===!0?(0,z.jsx)(Cl,{view:"LivePhotoLiveness",i18n:u,step:e,livenessProps:el,sekyroIntro:M===void 0},N):(0,z.jsx)(pr,{...el},N)});break}case"portrait":il=(0,z.jsxs)(z.Fragment,{children:[e.retakeOnly?(0,z.jsx)(Cl,{view:"PortraitRetakeNotice",i18n:u,quiet:!0}):null,(0,z.jsx)(ad,{step:e,verification:l.verification,...l.assetBaseUrl!==void 0?{assetBaseUrl:l.assetBaseUrl}:{}})]});break;case"proof_of_address":il=(0,z.jsx)(nd,{step:e});break;case"form":il=(0,z.jsx)(ud,{step:e});break;case"contact_choice":il=(0,z.jsx)(Cl,{view:"ContactChoiceView",i18n:u,step:e});break;case"choice":il=(0,z.jsx)(Cl,{view:"GenericChoiceView",i18n:u,step:e});break;case"identity_summary":il=(0,z.jsx)(Cl,{view:"IdentitySummaryView",i18n:u,step:e});break;case"mobile_required":{let M=e.checkType==="doc_ocr"?c("handoff.lead.document"):e.checkType==="portrait_icao"?c("handoff.lead.portrait"):e.checkType==="poa"?c("handoff.lead.poa"):void 0;il=l.handoffUrl!==void 0?(0,z.jsx)(Cl,{view:"HandoffView",i18n:u,url:l.handoffUrl,refresh:e.refresh,...M!==void 0?{lead:M}:{}}):(0,z.jsx)(li,{tone:"brand",icon:"smartphone",title:c("handoff.title"),actions:(0,z.jsx)(cl,{kind:"secondary",full:!0,disabled:f,onClick:i(()=>Ju(e.refresh),"onClick"),children:c("common.refresh")}),children:(0,z.jsx)("p",{children:M??c("reasons.mobile_required")})});break}case"native_app_required":il=(0,z.jsx)(Cl,{view:"NativeAppView",i18n:u,org:Xl.orgName,nativeApp:e.nativeApp,...l.handoffUrl!==void 0?{fallbackUrl:l.handoffUrl}:{},refresh:e.refresh,footer:(0,z.jsx)(rf,{org:Xl.orgName})});break;case"processing":{let M=Ed(u.strings,e.service);il=(0,z.jsx)(li,{tone:"brand",icon:"pending",busy:!e.stalled,live:!0,title:M?.title??c("session.processing.title"),actions:e.stalled?(0,z.jsx)(cl,{kind:"secondary",full:!0,disabled:f,onClick:i(()=>Ju(e.refresh),"onClick"),children:c("common.refresh")}):null,children:(0,z.jsx)("p",{children:M?.description??c("session.processing.description")})});break}case"eid":il=(0,z.jsx)(Wr,{step:e});break;case"unsupported":{let M=e.reason==="platform_unsupported";il=(0,z.jsx)(li,{tone:"neutral",icon:"smartphone",title:c(M?"needsApp.title":"unsupported.title"),actions:(0,z.jsx)(rf,{org:Xl.orgName}),children:(0,z.jsx)("p",{children:M?Xl.orgName!==""?c("needsApp.description",{org:Xl.orgName}):c("needsApp.descriptionNoOrg"):c("unsupported.description",{org:Xl.orgName})})});break}case"result":il=a?.result?.(e)??(0,z.jsx)(Cd,{step:e});break;default:{let M=e;il=null}}let W=!n&&!Xl.consentRecorded&&e.kind!=="result"?(0,z.jsx)(fd,{i18n:u,purpose:Xl.purpose}):null,Gl=A!==null&&!n&&!It&&!E?(0,z.jsx)(Ud,{skip:A}):null,Da=C&&!E&&!n&&!It&&l.verification.testerGate!==void 0?(0,z.jsx)(Cl,{view:"TesterGateAction",i18n:u,quiet:!0,onOpen:i(()=>O(!0),"onOpen")}):null,Gn=Gl===null&&Da===null?W:(0,z.jsxs)(z.Fragment,{children:[Da,Gl,W]});return(0,z.jsx)(Jc.Provider,{value:{issuer:y?.key===e.key?y.issuer:null,listed:y?.key===e.key?y.listed:[],set:T((M,el=[])=>g(jl=>jl?.key===e.key&&jl.issuer===M&&jl.listed.join()===el.join()?jl:{key:e.key,issuer:M,listed:el}),"set")},children:(0,z.jsx)(cr.Provider,{value:b,children:(0,z.jsx)(Fc.Provider,{value:A,children:(0,z.jsx)(Er.Provider,{value:l.handoffUrl,children:(0,z.jsxs)(ir.Provider,{value:Gn===null?null:{node:Gn,owner:s[0]??null,claim:p},children:[n?null:wu,!n&&e.kind!=="result"&&Xl.sections.length>1?(0,z.jsx)(xd,{context:Xl,current:e.section,i18n:u}):null,(0,z.jsx)(rr,{pageKey:e.key,children:il}),!n&&!It&&e.kind!=="result"&&e.context.switchable!==void 0?(0,z.jsx)(Cl,{view:"LaneSwitch",i18n:u,step:e,onOpen:i(()=>r(e.key),"onOpen"),quiet:!0},e.key):null,s.length===0?Gn:null,n?null:a?.footer!==void 0?a.footer:Xl.branding?.hideAttribution===!0?null:(0,z.jsxs)("a",{className:"sekyro-footer",href:"https://sekyro.ai",target:"_blank",rel:"noopener noreferrer",children:[(0,z.jsx)(se,{name:"lock"}),c("shell.verifiedBy")]})]})})})})})}i(Dd,"zr");T(Dd,"Body");function rf({org:l}){let{t:e}=Dl(),t=(0,k.useContext)(Wc);return t===void 0?null:(0,z.jsx)(cl,{full:!0,onClick:t,children:e("native.result.continue",{org:l})})}i(rf,"Wo");T(rf,"BackToOrg");function Cd({step:l}){return(0,z.jsx)(Pu.Consumer,{children:i(e=>(0,z.jsx)(Td,{step:l,...e!==void 0?{onClose:e}:{}}),"children")})}i(Cd,"Gr");T(Cd,"ResultPage");function kd(l){let e=l.levelName??l.purpose;return e==="contact"?"shell.subtitleContact":e==="human"?"shell.subtitleHuman":"shell.subtitle"}i(kd,"qr");T(kd,"subtitleKeyOf");function Bd({context:l,headerId:e,end:t,onBack:a}){let{t:n}=Dl(),[u,c]=(0,k.useState)(!1),f=u?void 0:l.branding?.logoUrl,o=l.orgName!==""?l.orgName:n(l.returning?"returning.heading":"session.title");return(0,z.jsx)("header",{className:"sekyro-stack sekyro-stack--3","aria-labelledby":e,children:(0,z.jsxs)("div",{className:"sekyro-org",children:[a!==void 0?(0,z.jsx)("button",{type:"button",className:"sekyro-disc sekyro-org__back","aria-label":n("common.back"),onClick:a,"data-testid":"sekyro-back",children:(0,z.jsx)(se,{name:"back"})}):null,(0,z.jsx)("span",{className:"sekyro-org__tile","aria-hidden":"true",children:f!==void 0?(0,z.jsx)("img",{className:"sekyro-org__logo",src:f,alt:"",onError:i(()=>c(!0),"onError")}):od(l.orgName)}),(0,z.jsxs)("div",{className:"sekyro-org__text",children:[(0,z.jsx)("h1",{id:e,className:"sekyro-org__name",children:o}),(0,z.jsx)("p",{className:"sekyro-org__sub",children:n(kd(l))})]}),l.sandbox?(0,z.jsx)("span",{className:"sekyro-sandbox-badge","data-testid":"sekyro-sandbox-badge",children:n("app.sandboxBadge")}):null,t!=null?(0,z.jsx)("div",{className:"sekyro-org__end",children:t}):null,(0,z.jsx)(Pu.Consumer,{children:i(s=>s!==void 0?(0,z.jsx)("button",{type:"button",className:"sekyro-disc sekyro-org__close","aria-label":n("native.close"),onClick:s,children:(0,z.jsx)(se,{name:"close"})}):null,"children")})]})})}i(Bd,"Yr");T(Bd,"OrgHeader");function xd({context:l,current:e,i18n:t}){let a=e===null?-1:l.sections.indexOf(e),n=l.progress,u=n!==void 0&&n.length===l.sections.length?n:l.sections.map((c,f)=>({id:c,state:f<a?"done":f===a?"current":"upcoming"}));return(0,z.jsx)("ol",{className:"sekyro-progress__bars","aria-label":t.t("session.progressLabel"),children:u.map(({id:c,state:f})=>(0,z.jsx)("li",{className:`sekyro-progress__bar${f==="done"?" is-done":f==="current"?" is-current":""}`,...f==="current"?{"aria-current":"step"}:{},children:(0,z.jsx)("span",{className:"sekyro-visually-hidden",children:t.strings[`section.${c}`]??c})},c))})}i(xd,"Wr");T(xd,"SectionProgress");function Hd(){return typeof window>"u"?"":window.location.href.split("#")[0]??""}i(Hd,"Qr");T(Hd,"pageUrl");function $v({hostedUrl:l,inAppBrowser:e,...t}){let[a,n]=(0,jn.useState)(e===!0);(0,jn.useEffect)(()=>{e===void 0&&Ar()&&n(!0)},[e]);let[u,c]=(0,jn.useState)(!1),f=pf(t.colorScheme??"light"),o=t.handoffUrl??l??Hd();return a&&!u?(0,ea.jsx)(nf,{theme:ai(vf(void 0,void 0,f),t.theme),className:`sekyro-verification${f?" sekyro-verification--dark":""}${t.className!==void 0?` ${t.className}`:""}`,children:(0,ea.jsx)(Pc,{locale:t.locale,...t.strings!==void 0?{strings:t.strings}:{},children:(0,ea.jsx)("div",{dir:t.dir??(t.locale==="ar"?"rtl":"ltr"),lang:t.locale,className:"sekyro-flow",children:(0,ea.jsx)(qd,{url:o,onContinue:i(()=>c(!0),"onContinue")})})})}):(0,ea.jsx)(oi,{...t,...o!==""?{handoffUrl:o}:{}})}i($v,"Xr");T($v,"SekyroFlow");function qd({url:l,onContinue:e}){let t=Dl();return(0,ea.jsx)(Cl,{view:"InAppBrowserPrompt",i18n:t,url:l,onContinue:e})}i(qd,"Jr");T(qd,"Prompt");var Yc=Q(Tl(),1),sv=Q(ov(),1);var rv=["ar","fr","en","es","pt","de"],Ng=["light","dark","system"];function _g(){if(typeof document>"u")return null;let l=document.documentElement.lang.toLowerCase().split("-")[0];return rv.includes(l)?l:null}i(_g,"documentLocale");var Mg=typeof HTMLElement>"u"?class{}:HTMLElement;function Og({node:l}){return(0,Yc.createElement)("div",{className:"sekyro-elements-slot",style:{display:"contents"},ref:i(e=>{e!==null&&l.parentNode!==e&&e.appendChild(l)},"ref")})}i(Og,"SlotNode");var mt,Oe,Mn,Ta,Aa,Ue,On,Ea,Na,_a,Un,Ma,Dn,q,Jt,Qe,Vc,Qc,Xc,jc,Lc,dv,dt,lr,mv,Lu,hv,yv,Zc=class Zc extends Mg{constructor(){super();vl(this,q);vl(this,mt,null);vl(this,Oe,null);vl(this,Mn,!1);vl(this,Ta,!1);vl(this,Aa,null);vl(this,Ue,null);vl(this,On,null);vl(this,Ea,new Map);vl(this,Na);vl(this,_a);vl(this,Un);vl(this,Ma);vl(this,Dn);vl(this,Vc,i(t=>X(this,q,Qe).call(this,"sekyro-step",t),"#onStep"));vl(this,Qc,i(t=>X(this,q,Qe).call(this,"sekyro-result",t),"#onResult"));vl(this,Xc,i(t=>X(this,q,Qe).call(this,"sekyro-close",t),"#onClose"));vl(this,jc,i(t=>X(this,q,Qe).call(this,"sekyro-liveness-captured",t),"#onCaptured"));vl(this,Lc,{onStateChange:i(t=>X(this,q,Qe).call(this,"sekyro-liveness-state",t),"onStateChange"),onGuidance:i(t=>X(this,q,Qe).call(this,"sekyro-liveness-guidance",t),"onGuidance"),onError:i(t=>X(this,q,Qe).call(this,"sekyro-liveness-error",t),"onError")});for(let t of[...tf.filter(a=>!("unreflected"in a)).map(a=>a.property),"verification","strings","theme","livenessProps","documentLiveMrz","voice"])if(Object.prototype.hasOwnProperty.call(this,t)){let a=this[t];delete this[t],this[t]=a}}get clientToken(){return this.getAttribute("client-token")}set clientToken(t){X(this,q,Jt).call(this,"client-token",t)}get apiOrigin(){return this.getAttribute("api-origin")}set apiOrigin(t){X(this,q,Jt).call(this,"api-origin",t)}get locale(){let t=this.getAttribute("locale");return t!==null&&rv.includes(t)?t:null}set locale(t){X(this,q,Jt).call(this,"locale",t)}get colorScheme(){let t=this.getAttribute("color-scheme");return t!==null&&Ng.includes(t)?t:null}set colorScheme(t){X(this,q,Jt).call(this,"color-scheme",t)}get assetBaseUrl(){return this.getAttribute("asset-base-url")}set assetBaseUrl(t){X(this,q,Jt).call(this,"asset-base-url",t)}get backNavigation(){let t=this.getAttribute("back-navigation");return t==="history"||t==="none"?t:null}set backNavigation(t){X(this,q,Jt).call(this,"back-navigation",t)}get handoffUrl(){return this.getAttribute("handoff-url")}set handoffUrl(t){X(this,q,Jt).call(this,"handoff-url",t)}get closable(){return this.hasAttribute("closable")}set closable(t){this.toggleAttribute("closable",!!t)}get verification(){return H(this,Aa)??H(this,Ue)}set verification(t){pl(this,Aa,t??null),X(this,q,dt).call(this)}get strings(){return H(this,Na)}set strings(t){pl(this,Na,t??void 0),X(this,q,dt).call(this)}get theme(){return H(this,_a)}set theme(t){pl(this,_a,t??void 0),X(this,q,dt).call(this)}get livenessProps(){return H(this,Un)}set livenessProps(t){pl(this,Un,t??void 0),X(this,q,dt).call(this)}get documentLiveMrz(){return H(this,Ma)}set documentLiveMrz(t){pl(this,Ma,t??void 0),X(this,q,dt).call(this)}get voice(){return H(this,Dn)}set voice(t){pl(this,Dn,t===null?void 0:t),X(this,q,dt).call(this)}connectedCallback(){pl(this,Ta,!1),X(this,q,dv).call(this),(H(this,Oe)===null||H(this,Oe).parentNode!==this)&&(pl(this,Oe,document.createElement("div")),H(this,Oe).className="sekyro-elements-root",this.appendChild(H(this,Oe))),H(this,mt)??pl(this,mt,(0,sv.createRoot)(H(this,Oe))),X(this,q,dt).call(this)}disconnectedCallback(){pl(this,Ta,!0),queueMicrotask(()=>{!H(this,Ta)||this.isConnected||(pl(this,Ta,!1),X(this,q,yv).call(this))})}attributeChangedCallback(t,a,n){a!==n&&X(this,q,dt).call(this)}};mt=new WeakMap,Oe=new WeakMap,Mn=new WeakMap,Ta=new WeakMap,Aa=new WeakMap,Ue=new WeakMap,On=new WeakMap,Ea=new WeakMap,Na=new WeakMap,_a=new WeakMap,Un=new WeakMap,Ma=new WeakMap,Dn=new WeakMap,q=new WeakSet,Jt=i(function(t,a){a==null?this.removeAttribute(t):this.setAttribute(t,String(a))},"#reflect"),Qe=i(function(t,a){this.dispatchEvent(new CustomEvent(t,{detail:a,bubbles:!0,composed:!0}))},"#emit"),Vc=new WeakMap,Qc=new WeakMap,Xc=new WeakMap,jc=new WeakMap,Lc=new WeakMap,dv=i(function(){for(let t of Array.from(this.children)){let a=t.getAttribute("slot");a===null||!kr.some(n=>n.name===a)||(H(this,Ea).set(a,t),t.remove())}},"#takeSlots"),dt=i(function(){H(this,Mn)||(pl(this,Mn,!0),queueMicrotask(()=>{pl(this,Mn,!1),this.isConnected&&H(this,mt)!==null&&X(this,q,hv).call(this)}))},"#schedule"),lr=i(function(){return this.locale??_g()??"en"},"#effectiveLocale"),mv=i(function(){if(H(this,Aa)!==null)return X(this,q,Lu).call(this),H(this,Aa);let t=this.clientToken;if(t===null||t==="")return X(this,q,Lu).call(this),null;let a=this.apiOrigin,n=`${t}\0${a??""}`;if(H(this,Ue)!==null&&H(this,On)===n)return H(this,Ue);X(this,q,Lu).call(this);try{pl(this,Ue,Eg({clientToken:t,locale:X(this,q,lr).call(this),...a!==null&&a!==""?{apiOrigin:a}:{}})),pl(this,On,n)}catch(u){return X(this,q,Qe).call(this,"sekyro-error",{error:u}),null}return X(this,q,Qe).call(this,"sekyro-ready",{verification:H(this,Ue)}),H(this,Ue)},"#currentVerification"),Lu=i(function(){H(this,Ue)?.destroy(),pl(this,Ue,null),pl(this,On,null)},"#dropOwned"),hv=i(function(){let t=X(this,q,mv).call(this);if(t===null){H(this,mt)?.render(null);return}let a=X(this,q,lr).call(this),n=this.getAttribute("dir"),u=H(this,Dn)??(this.getAttribute("voice")==="off"?!1:void 0),c=i(p=>{let m=H(this,Ea).get(p);return m===void 0?void 0:(0,Yc.createElement)(Og,{node:m})},"slot"),f=c("header"),o=c("header-end"),s=c("footer"),v={verification:t,locale:a,onStep:H(this,Vc),onResult:H(this,Qc),onLivenessCaptured:H(this,jc),livenessProps:{...H(this,Un),...H(this,Lc)},...n==="ltr"||n==="rtl"?{dir:n}:{},...this.colorScheme!==null?{colorScheme:this.colorScheme}:{},...this.assetBaseUrl!==null?{assetBaseUrl:this.assetBaseUrl}:{},...this.backNavigation!==null?{backNavigation:this.backNavigation}:{},...this.handoffUrl!==null?{handoffUrl:this.handoffUrl}:{},...this.closable?{onClose:H(this,Xc)}:{},...H(this,Na)!==void 0?{strings:H(this,Na)}:{},...H(this,_a)!==void 0?{theme:H(this,_a)}:{},...H(this,Ma)!==void 0?{documentLiveMrz:H(this,Ma)}:{},...u!==void 0?{voice:u}:{},...f!==void 0||o!==void 0||s!==void 0?{slots:{...f!==void 0?{header:f}:{},...o!==void 0?{headerEnd:o}:{},...s!==void 0?{footer:s}:{}}}:{}};H(this,mt)?.render((0,Yc.createElement)(oi,v))},"#render"),yv=i(function(){H(this,mt)?.unmount(),pl(this,mt,null),H(this,Oe)?.remove(),pl(this,Oe,null),X(this,q,Lu).call(this);for(let t of H(this,Ea).values())this.appendChild(t);H(this,Ea).clear()},"#teardown"),i(Zc,"SekyroVerificationElement"),er(Zc,"observedAttributes",tf.map(t=>t.name));var Gc=Zc;function Mb(){return typeof customElements>"u"?!1:(customElements.get(ef)===void 0&&customElements.define(ef,Gc),!0)}i(Mb,"defineSekyroElements");export{ef as a,tf as b,Ug as c,kr as d,Dg as e,Gc as f,Mb as g};
9
+ `).replace(Jp,"")}i(eh,"normalizeMarkupForTextOrAttribute");function Zy(l,e){return e=eh(e),eh(l)===e}i(Zy,"checkForUnmatchedText");function $(l,e,t,a,n,u){switch(t){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||rn(l,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&rn(l,""+a);break;case"className":pi(l,"class",a);break;case"tabIndex":pi(l,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":pi(l,t,a);break;case"style":Xh(l,a,u);break;case"data":if(e!=="object"){pi(l,"data",a);break}case"src":case"href":if(a===""&&(e!=="a"||t!=="href")){l.removeAttribute(t);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){l.removeAttribute(t);break}a=ki(""+a),l.setAttribute(t,a);break;case"action":case"formAction":if(typeof a=="function"){l.setAttribute(t,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(t==="formAction"?(e!=="input"&&$(l,e,"name",n.name,n,null),$(l,e,"formEncType",n.formEncType,n,null),$(l,e,"formMethod",n.formMethod,n,null),$(l,e,"formTarget",n.formTarget,n,null)):($(l,e,"encType",n.encType,n,null),$(l,e,"method",n.method,n,null),$(l,e,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){l.removeAttribute(t);break}a=ki(""+a),l.setAttribute(t,a);break;case"onClick":a!=null&&(l.onclick=et);break;case"onScroll":a!=null&&Y("scroll",l);break;case"onScrollEnd":a!=null&&Y("scrollend",l);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(S(61));if(t=a.__html,t!=null){if(n.children!=null)throw Error(S(60));l.innerHTML=t}}break;case"multiple":l.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":l.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){l.removeAttribute("xlink:href");break}t=ki(""+a),l.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?l.setAttribute(t,""+a):l.removeAttribute(t);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?l.setAttribute(t,""):l.removeAttribute(t);break;case"capture":case"download":a===!0?l.setAttribute(t,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?l.setAttribute(t,a):l.removeAttribute(t);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?l.setAttribute(t,a):l.removeAttribute(t);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?l.removeAttribute(t):l.setAttribute(t,a);break;case"popover":Y("beforetoggle",l),Y("toggle",l),Ci(l,"popover",a);break;case"xlinkActuate":Je(l,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Je(l,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Je(l,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Je(l,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Je(l,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Je(l,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Je(l,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Je(l,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Je(l,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Ci(l,"is",a);break;case"innerText":case"textContent":break;default:(!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(t=A1.get(t)||t,Ci(l,t,a))}}i($,"setProp");function wo(l,e,t,a,n,u){switch(t){case"style":Xh(l,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(S(61));if(t=a.__html,t!=null){if(n.children!=null)throw Error(S(60));l.innerHTML=t}}break;case"children":typeof a=="string"?rn(l,a):(typeof a=="number"||typeof a=="bigint")&&rn(l,""+a);break;case"onScroll":a!=null&&Y("scroll",l);break;case"onScrollEnd":a!=null&&Y("scrollend",l);break;case"onClick":a!=null&&(l.onclick=et);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!qh.hasOwnProperty(t))l:{if(t[0]==="o"&&t[1]==="n"&&(n=t.endsWith("Capture"),e=t.slice(2,n?t.length-7:void 0),u=l[Il]||null,u=u!=null?u[t]:null,typeof u=="function"&&l.removeEventListener(e,u,n),typeof a=="function")){typeof u!="function"&&u!==null&&(t in l?l[t]=null:l.hasAttribute(t)&&l.removeAttribute(t)),l.addEventListener(e,a,n);break l}t in l?l[t]=a:a===!0?l.setAttribute(t,""):Ci(l,t,a)}}}i(wo,"setPropOnCustomElement");function Yl(l,e,t){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Y("error",l),Y("load",l);var a=!1,n=!1,u;for(u in t)if(t.hasOwnProperty(u)){var c=t[u];if(c!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(S(137,e));default:$(l,e,u,c,t,null)}}n&&$(l,e,"srcSet",t.srcSet,t,null),a&&$(l,e,"src",t.src,t,null);return;case"input":Y("invalid",l);var f=u=c=n=null,o=null,s=null;for(a in t)if(t.hasOwnProperty(a)){var v=t[a];if(v!=null)switch(a){case"name":n=v;break;case"type":c=v;break;case"checked":o=v;break;case"defaultChecked":s=v;break;case"value":u=v;break;case"defaultValue":f=v;break;case"children":case"dangerouslySetInnerHTML":if(v!=null)throw Error(S(137,e));break;default:$(l,e,a,v,t,null)}}Gh(l,u,f,o,s,c,n,!1);return;case"select":Y("invalid",l),a=c=u=null;for(n in t)if(t.hasOwnProperty(n)&&(f=t[n],f!=null))switch(n){case"value":u=f;break;case"defaultValue":c=f;break;case"multiple":a=f;default:$(l,e,n,f,t,null)}e=u,t=c,l.multiple=!!a,e!=null?tn(l,!!a,e,!1):t!=null&&tn(l,!!a,t,!0);return;case"textarea":Y("invalid",l),u=n=a=null;for(c in t)if(t.hasOwnProperty(c)&&(f=t[c],f!=null))switch(c){case"value":a=f;break;case"defaultValue":n=f;break;case"children":u=f;break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(S(91));break;default:$(l,e,c,f,t,null)}Qh(l,a,n,u);return;case"option":for(o in t)t.hasOwnProperty(o)&&(a=t[o],a!=null)&&(o==="selected"?l.selected=a&&typeof a!="function"&&typeof a!="symbol":$(l,e,o,a,t,null));return;case"dialog":Y("beforetoggle",l),Y("toggle",l),Y("cancel",l),Y("close",l);break;case"iframe":case"object":Y("load",l);break;case"video":case"audio":for(a=0;a<Mu.length;a++)Y(Mu[a],l);break;case"image":Y("error",l),Y("load",l);break;case"details":Y("toggle",l);break;case"embed":case"source":case"link":Y("error",l),Y("load",l);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(s in t)if(t.hasOwnProperty(s)&&(a=t[s],a!=null))switch(s){case"children":case"dangerouslySetInnerHTML":throw Error(S(137,e));default:$(l,e,s,a,t,null)}return;default:if(ss(e)){for(v in t)t.hasOwnProperty(v)&&(a=t[v],a!==void 0&&wo(l,e,v,a,t,void 0));return}}for(f in t)t.hasOwnProperty(f)&&(a=t[f],a!=null&&$(l,e,f,a,t,null))}i(Yl,"setInitialProperties");function wp(l,e,t,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,u=null,c=null,f=null,o=null,s=null,v=null;for(h in t){var p=t[h];if(t.hasOwnProperty(h)&&p!=null)switch(h){case"checked":break;case"value":break;case"defaultValue":o=p;default:a.hasOwnProperty(h)||$(l,e,h,null,a,p)}}for(var m in a){var h=a[m];if(p=t[m],a.hasOwnProperty(m)&&(h!=null||p!=null))switch(m){case"type":u=h;break;case"name":n=h;break;case"checked":s=h;break;case"defaultChecked":v=h;break;case"value":c=h;break;case"defaultValue":f=h;break;case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(S(137,e));break;default:h!==p&&$(l,e,m,h,a,p)}}bo(l,c,f,o,s,v,u,n);return;case"select":h=c=f=m=null;for(u in t)if(o=t[u],t.hasOwnProperty(u)&&o!=null)switch(u){case"value":break;case"multiple":h=o;default:a.hasOwnProperty(u)||$(l,e,u,null,a,o)}for(n in a)if(u=a[n],o=t[n],a.hasOwnProperty(n)&&(u!=null||o!=null))switch(n){case"value":m=u;break;case"defaultValue":f=u;break;case"multiple":c=u;default:u!==o&&$(l,e,n,u,a,o)}e=f,t=c,a=h,m!=null?tn(l,!!t,m,!1):!!a!=!!t&&(e!=null?tn(l,!!t,e,!0):tn(l,!!t,t?[]:"",!1));return;case"textarea":h=m=null;for(f in t)if(n=t[f],t.hasOwnProperty(f)&&n!=null&&!a.hasOwnProperty(f))switch(f){case"value":break;case"children":break;default:$(l,e,f,null,a,n)}for(c in a)if(n=a[c],u=t[c],a.hasOwnProperty(c)&&(n!=null||u!=null))switch(c){case"value":m=n;break;case"defaultValue":h=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(S(91));break;default:n!==u&&$(l,e,c,n,a,u)}Vh(l,m,h);return;case"option":for(var b in t)m=t[b],t.hasOwnProperty(b)&&m!=null&&!a.hasOwnProperty(b)&&(b==="selected"?l.selected=!1:$(l,e,b,null,a,m));for(o in a)m=a[o],h=t[o],a.hasOwnProperty(o)&&m!==h&&(m!=null||h!=null)&&(o==="selected"?l.selected=m&&typeof m!="function"&&typeof m!="symbol":$(l,e,o,m,a,h));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var N in t)m=t[N],t.hasOwnProperty(N)&&m!=null&&!a.hasOwnProperty(N)&&$(l,e,N,null,a,m);for(s in a)if(m=a[s],h=t[s],a.hasOwnProperty(s)&&m!==h&&(m!=null||h!=null))switch(s){case"children":case"dangerouslySetInnerHTML":if(m!=null)throw Error(S(137,e));break;default:$(l,e,s,m,a,h)}return;default:if(ss(e)){for(var D in t)m=t[D],t.hasOwnProperty(D)&&m!==void 0&&!a.hasOwnProperty(D)&&wo(l,e,D,void 0,a,m);for(v in a)m=a[v],h=t[v],!a.hasOwnProperty(v)||m===h||m===void 0&&h===void 0||wo(l,e,v,m,a,h);return}}for(var d in t)m=t[d],t.hasOwnProperty(d)&&m!=null&&!a.hasOwnProperty(d)&&$(l,e,d,null,a,m);for(p in a)m=a[p],h=t[p],!a.hasOwnProperty(p)||m===h||m==null&&h==null||$(l,e,p,m,a,h)}i(wp,"updateProperties");function th(l){switch(l){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}i(th,"isLikelyStaticResource");function Wp(){if(typeof performance.getEntriesByType=="function"){for(var l=0,e=0,t=performance.getEntriesByType("resource"),a=0;a<t.length;a++){var n=t[a],u=n.transferSize,c=n.initiatorType,f=n.duration;if(u&&f&&th(c)){for(c=0,f=n.responseEnd,a+=1;a<t.length;a++){var o=t[a],s=o.startTime;if(s>f)break;var v=o.transferSize,p=o.initiatorType;v&&th(p)&&(o=o.responseEnd,c+=v*(o<f?1:(f-s)/(o-s)))}if(--a,e+=8*(u+c)/(n.duration/1e3),l++,10<l)break}}if(0<l)return e/l/1e6}return navigator.connection&&(l=navigator.connection.downlink,typeof l=="number")?l:5}i(Wp,"estimateBandwidth");var Wo=null,Fo=null;function yc(l){return l.nodeType===9?l:l.ownerDocument}i(yc,"getOwnerDocumentFromRootContainer");function ah(l){switch(l){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}i(ah,"getOwnHostContext");function Ky(l,e){if(l===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return l===1&&e==="foreignObject"?0:l}i(Ky,"getChildHostContextProd");function $o(l,e){return l==="textarea"||l==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}i($o,"shouldSetTextContent");var io=null;function Fp(){var l=window.event;return l&&l.type==="popstate"?l===io?!1:(io=l,!0):(io=null,!1)}i(Fp,"shouldAttemptEagerTransition");var Jy=typeof setTimeout=="function"?setTimeout:void 0,$p=typeof clearTimeout=="function"?clearTimeout:void 0,nh=typeof Promise=="function"?Promise:void 0,Ip=typeof queueMicrotask=="function"?queueMicrotask:typeof nh<"u"?function(l){return nh.resolve(null).then(l).catch(Pp)}:Jy;function Pp(l){setTimeout(function(){throw l})}i(Pp,"handleErrorInNextTick");function Kt(l){return l==="head"}i(Kt,"isSingletonScope");function uh(l,e){var t=e,a=0;do{var n=t.nextSibling;if(l.removeChild(t),n&&n.nodeType===8)if(t=n.data,t==="/$"||t==="/&"){if(a===0){l.removeChild(n),bn(e);return}a--}else if(t==="$"||t==="$?"||t==="$~"||t==="$!"||t==="&")a++;else if(t==="html")pu(l.ownerDocument.documentElement);else if(t==="head"){t=l.ownerDocument.head,pu(t);for(var u=t.firstChild;u;){var c=u.nextSibling,f=u.nodeName;u[qu]||f==="SCRIPT"||f==="STYLE"||f==="LINK"&&u.rel.toLowerCase()==="stylesheet"||t.removeChild(u),u=c}}else t==="body"&&pu(l.ownerDocument.body);t=n}while(t);bn(e)}i(uh,"clearHydrationBoundary");function ih(l,e){var t=l;l=0;do{var a=t.nextSibling;if(t.nodeType===1?e?(t._stashedDisplay=t.style.display,t.style.display="none"):(t.style.display=t._stashedDisplay||"",t.getAttribute("style")===""&&t.removeAttribute("style")):t.nodeType===3&&(e?(t._stashedText=t.nodeValue,t.nodeValue=""):t.nodeValue=t._stashedText||""),a&&a.nodeType===8)if(t=a.data,t==="/$"){if(l===0)break;l--}else t!=="$"&&t!=="$?"&&t!=="$~"&&t!=="$!"||l++;t=a}while(t)}i(ih,"hideOrUnhideDehydratedBoundary");function Io(l){var e=l.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var t=e;switch(e=e.nextSibling,t.nodeName){case"HTML":case"HEAD":case"BODY":Io(t),os(t);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(t.rel.toLowerCase()==="stylesheet")continue}l.removeChild(t)}}i(Io,"clearContainerSparingly");function lg(l,e,t,a){for(;l.nodeType===1;){var n=t;if(l.nodeName.toLowerCase()!==e.toLowerCase()){if(!a&&(l.nodeName!=="INPUT"||l.type!=="hidden"))break}else if(a){if(!l[qu])switch(e){case"meta":if(!l.hasAttribute("itemprop"))break;return l;case"link":if(u=l.getAttribute("rel"),u==="stylesheet"&&l.hasAttribute("data-precedence"))break;if(u!==n.rel||l.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||l.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||l.getAttribute("title")!==(n.title==null?null:n.title))break;return l;case"style":if(l.hasAttribute("data-precedence"))break;return l;case"script":if(u=l.getAttribute("src"),(u!==(n.src==null?null:n.src)||l.getAttribute("type")!==(n.type==null?null:n.type)||l.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&l.hasAttribute("async")&&!l.hasAttribute("itemprop"))break;return l;default:return l}}else if(e==="input"&&l.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&l.getAttribute("name")===u)return l}else return l;if(l=ze(l.nextSibling),l===null)break}return null}i(lg,"canHydrateInstance");function eg(l,e,t){if(e==="")return null;for(;l.nodeType!==3;)if((l.nodeType!==1||l.nodeName!=="INPUT"||l.type!=="hidden")&&!t||(l=ze(l.nextSibling),l===null))return null;return l}i(eg,"canHydrateTextInstance");function wy(l,e){for(;l.nodeType!==8;)if((l.nodeType!==1||l.nodeName!=="INPUT"||l.type!=="hidden")&&!e||(l=ze(l.nextSibling),l===null))return null;return l}i(wy,"canHydrateHydrationBoundary");function Po(l){return l.data==="$?"||l.data==="$~"}i(Po,"isSuspenseInstancePending");function ls(l){return l.data==="$!"||l.data==="$?"&&l.ownerDocument.readyState!=="loading"}i(ls,"isSuspenseInstanceFallback");function tg(l,e){var t=l.ownerDocument;if(l.data==="$~")l._reactRetry=e;else if(l.data!=="$?"||t.readyState!=="loading")e();else{var a=i(function(){e(),t.removeEventListener("DOMContentLoaded",a)},"listener");t.addEventListener("DOMContentLoaded",a),l._reactRetry=a}}i(tg,"registerSuspenseInstanceRetry");function ze(l){for(;l!=null;l=l.nextSibling){var e=l.nodeType;if(e===1||e===3)break;if(e===8){if(e=l.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return l}i(ze,"getNextHydratable");var es=null;function ch(l){l=l.nextSibling;for(var e=0;l;){if(l.nodeType===8){var t=l.data;if(t==="/$"||t==="/&"){if(e===0)return ze(l.nextSibling);e--}else t!=="$"&&t!=="$!"&&t!=="$?"&&t!=="$~"&&t!=="&"||e++}l=l.nextSibling}return null}i(ch,"getNextHydratableInstanceAfterHydrationBoundary");function fh(l){l=l.previousSibling;for(var e=0;l;){if(l.nodeType===8){var t=l.data;if(t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"){if(e===0)return l;e--}else t!=="/$"&&t!=="/&"||e++}l=l.previousSibling}return null}i(fh,"getParentHydrationBoundary");function Wy(l,e,t){switch(e=yc(t),l){case"html":if(l=e.documentElement,!l)throw Error(S(452));return l;case"head":if(l=e.head,!l)throw Error(S(453));return l;case"body":if(l=e.body,!l)throw Error(S(454));return l;default:throw Error(S(451))}}i(Wy,"resolveSingletonInstance");function pu(l){for(var e=l.attributes;e.length;)l.removeAttributeNode(e[0]);os(l)}i(pu,"releaseSingletonInstance");var Te=new Map,oh=new Set;function vc(l){return typeof l.getRootNode=="function"?l.getRootNode():l.nodeType===9?l:l.ownerDocument}i(vc,"getHoistableRoot");var rt=Z.d;Z.d={f:ag,r:ng,D:ug,C:ig,L:cg,m:fg,X:sg,S:og,M:rg};function ag(){var l=rt.f(),e=Bc();return l||e}i(ag,"flushSyncWork");function ng(l){var e=zn(l);e!==null&&e.tag===5&&e.type==="form"?X0(e):rt.r(l)}i(ng,"requestFormReset");var Nn=typeof document>"u"?null:document;function Fy(l,e,t){var a=Nn;if(a&&typeof e=="string"&&e){var n=pe(e);n='link[rel="'+l+'"][href="'+n+'"]',typeof t=="string"&&(n+='[crossorigin="'+t+'"]'),oh.has(n)||(oh.add(n),l={rel:l,crossOrigin:t,href:e},a.querySelector(n)===null&&(e=a.createElement("link"),Yl(e,"link",l),Ol(e),a.head.appendChild(e)))}}i(Fy,"preconnectAs");function ug(l){rt.D(l),Fy("dns-prefetch",l,null)}i(ug,"prefetchDNS");function ig(l,e){rt.C(l,e),Fy("preconnect",l,e)}i(ig,"preconnect");function cg(l,e,t){rt.L(l,e,t);var a=Nn;if(a&&l&&e){var n='link[rel="preload"][as="'+pe(e)+'"]';e==="image"&&t&&t.imageSrcSet?(n+='[imagesrcset="'+pe(t.imageSrcSet)+'"]',typeof t.imageSizes=="string"&&(n+='[imagesizes="'+pe(t.imageSizes)+'"]')):n+='[href="'+pe(l)+'"]';var u=n;switch(e){case"style":u=gn(l);break;case"script":u=_n(l)}Te.has(u)||(l=ul({rel:"preload",href:e==="image"&&t&&t.imageSrcSet?void 0:l,as:e},t),Te.set(u,l),a.querySelector(n)!==null||e==="style"&&a.querySelector(Xu(u))||e==="script"&&a.querySelector(ju(u))||(e=a.createElement("link"),Yl(e,"link",l),Ol(e),a.head.appendChild(e)))}}i(cg,"preload");function fg(l,e){rt.m(l,e);var t=Nn;if(t&&l){var a=e&&typeof e.as=="string"?e.as:"script",n='link[rel="modulepreload"][as="'+pe(a)+'"][href="'+pe(l)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=_n(l)}if(!Te.has(u)&&(l=ul({rel:"modulepreload",href:l},e),Te.set(u,l),t.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(t.querySelector(ju(u)))return}a=t.createElement("link"),Yl(a,"link",l),Ol(a),t.head.appendChild(a)}}}i(fg,"preloadModule");function og(l,e,t){rt.S(l,e,t);var a=Nn;if(a&&l){var n=en(a).hoistableStyles,u=gn(l);e=e||"default";var c=n.get(u);if(!c){var f={loading:0,preload:null};if(c=a.querySelector(Xu(u)))f.loading=5;else{l=ul({rel:"stylesheet",href:l,"data-precedence":e},t),(t=Te.get(u))&&ws(l,t);var o=c=a.createElement("link");Ol(o),Yl(o,"link",l),o._p=new Promise(function(s,v){o.onload=s,o.onerror=v}),o.addEventListener("load",function(){f.loading|=1}),o.addEventListener("error",function(){f.loading|=2}),f.loading|=4,Xi(c,e,a)}c={type:"stylesheet",instance:c,count:1,state:f},n.set(u,c)}}}i(og,"preinitStyle");function sg(l,e){rt.X(l,e);var t=Nn;if(t&&l){var a=en(t).hoistableScripts,n=_n(l),u=a.get(n);u||(u=t.querySelector(ju(n)),u||(l=ul({src:l,async:!0},e),(e=Te.get(n))&&Ws(l,e),u=t.createElement("script"),Ol(u),Yl(u,"link",l),t.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}i(sg,"preinitScript");function rg(l,e){rt.M(l,e);var t=Nn;if(t&&l){var a=en(t).hoistableScripts,n=_n(l),u=a.get(n);u||(u=t.querySelector(ju(n)),u||(l=ul({src:l,async:!0,type:"module"},e),(e=Te.get(n))&&Ws(l,e),u=t.createElement("script"),Ol(u),Yl(u,"link",l),t.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}i(rg,"preinitModuleScript");function sh(l,e,t,a){var n=(n=kt.current)?vc(n):null;if(!n)throw Error(S(446));switch(l){case"meta":case"title":return null;case"style":return typeof t.precedence=="string"&&typeof t.href=="string"?(e=gn(t.href),t=en(n).hoistableStyles,a=t.get(e),a||(a={type:"style",instance:null,count:0,state:null},t.set(e,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(t.rel==="stylesheet"&&typeof t.href=="string"&&typeof t.precedence=="string"){l=gn(t.href);var u=en(n).hoistableStyles,c=u.get(l);if(c||(n=n.ownerDocument||n,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(l,c),(u=n.querySelector(Xu(l)))&&!u._p&&(c.instance=u,c.state.loading=5),Te.has(l)||(t={rel:"preload",as:"style",href:t.href,crossOrigin:t.crossOrigin,integrity:t.integrity,media:t.media,hrefLang:t.hrefLang,referrerPolicy:t.referrerPolicy},Te.set(l,t),u||dg(n,l,t,c.state))),e&&a===null)throw Error(S(528,""));return c}if(e&&a!==null)throw Error(S(529,""));return null;case"script":return e=t.async,t=t.src,typeof t=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=_n(t),t=en(n).hoistableScripts,a=t.get(e),a||(a={type:"script",instance:null,count:0,state:null},t.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(S(444,l))}}i(sh,"getResource");function gn(l){return'href="'+pe(l)+'"'}i(gn,"getStyleKey");function Xu(l){return'link[rel="stylesheet"]['+l+"]"}i(Xu,"getStylesheetSelectorFromKey");function $y(l){return ul({},l,{"data-precedence":l.precedence,precedence:null})}i($y,"stylesheetPropsFromRawProps");function dg(l,e,t,a){l.querySelector('link[rel="preload"][as="style"]['+e+"]")?a.loading=1:(e=l.createElement("link"),a.preload=e,e.addEventListener("load",function(){return a.loading|=1}),e.addEventListener("error",function(){return a.loading|=2}),Yl(e,"link",t),Ol(e),l.head.appendChild(e))}i(dg,"preloadStylesheet");function _n(l){return'[src="'+pe(l)+'"]'}i(_n,"getScriptKey");function ju(l){return"script[async]"+l}i(ju,"getScriptSelectorFromKey");function rh(l,e,t){if(e.count++,e.instance===null)switch(e.type){case"style":var a=l.querySelector('style[data-href~="'+pe(t.href)+'"]');if(a)return e.instance=a,Ol(a),a;var n=ul({},t,{"data-href":t.href,"data-precedence":t.precedence,href:null,precedence:null});return a=(l.ownerDocument||l).createElement("style"),Ol(a),Yl(a,"style",n),Xi(a,t.precedence,l),e.instance=a;case"stylesheet":n=gn(t.href);var u=l.querySelector(Xu(n));if(u)return e.state.loading|=4,e.instance=u,Ol(u),u;a=$y(t),(n=Te.get(n))&&ws(a,n),u=(l.ownerDocument||l).createElement("link"),Ol(u);var c=u;return c._p=new Promise(function(f,o){c.onload=f,c.onerror=o}),Yl(u,"link",a),e.state.loading|=4,Xi(u,t.precedence,l),e.instance=u;case"script":return u=_n(t.src),(n=l.querySelector(ju(u)))?(e.instance=n,Ol(n),n):(a=t,(n=Te.get(u))&&(a=ul({},t),Ws(a,n)),l=l.ownerDocument||l,n=l.createElement("script"),Ol(n),Yl(n,"link",a),l.head.appendChild(n),e.instance=n);case"void":return null;default:throw Error(S(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,Xi(a,t.precedence,l));return e.instance}i(rh,"acquireResource");function Xi(l,e,t){for(var a=t.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,u=n,c=0;c<a.length;c++){var f=a[c];if(f.dataset.precedence===e)u=f;else if(u!==n)break}u?u.parentNode.insertBefore(l,u.nextSibling):(e=t.nodeType===9?t.head:t,e.insertBefore(l,e.firstChild))}i(Xi,"insertStylesheet");function ws(l,e){l.crossOrigin==null&&(l.crossOrigin=e.crossOrigin),l.referrerPolicy==null&&(l.referrerPolicy=e.referrerPolicy),l.title==null&&(l.title=e.title)}i(ws,"adoptPreloadPropsForStylesheet");function Ws(l,e){l.crossOrigin==null&&(l.crossOrigin=e.crossOrigin),l.referrerPolicy==null&&(l.referrerPolicy=e.referrerPolicy),l.integrity==null&&(l.integrity=e.integrity)}i(Ws,"adoptPreloadPropsForScript");var ji=null;function dh(l,e,t){if(ji===null){var a=new Map,n=ji=new Map;n.set(t,a)}else n=ji,a=n.get(t),a||(a=new Map,n.set(t,a));if(a.has(l))return a;for(a.set(l,null),t=t.getElementsByTagName(l),n=0;n<t.length;n++){var u=t[n];if(!(u[qu]||u[Hl]||l==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var c=u.getAttribute(e)||"";c=l+c;var f=a.get(c);f?f.push(u):a.set(c,[u])}}return a}i(dh,"getHydratableHoistableCache");function mh(l,e,t){l=l.ownerDocument||l,l.head.insertBefore(t,e==="title"?l.querySelector("head > title"):null)}i(mh,"mountHoistable");function mg(l,e,t){if(t===1||e.itemProp!=null)return!1;switch(l){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;return e.rel==="stylesheet"?(l=e.disabled,typeof e.precedence=="string"&&l==null):!0;case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}i(mg,"isHostHoistableType");function Iy(l){return!(l.type==="stylesheet"&&(l.state.loading&3)===0)}i(Iy,"preloadResource");function hg(l,e,t,a){if(t.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var n=gn(a.href),u=e.querySelector(Xu(n));if(u){e=u._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(l.count++,l=pc.bind(l),e.then(l,l)),t.state.loading|=4,t.instance=u,Ol(u);return}u=e.ownerDocument||e,a=$y(a),(n=Te.get(n))&&ws(a,n),u=u.createElement("link"),Ol(u);var c=u;c._p=new Promise(function(f,o){c.onload=f,c.onerror=o}),Yl(u,"link",a),t.instance=u}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(l.count++,t=pc.bind(l),e.addEventListener("load",t),e.addEventListener("error",t))}}i(hg,"suspendResource");var co=0;function yg(l,e){return l.stylesheets&&l.count===0&&Li(l,l.stylesheets),0<l.count||0<l.imgCount?function(t){var a=setTimeout(function(){if(l.stylesheets&&Li(l,l.stylesheets),l.unsuspend){var u=l.unsuspend;l.unsuspend=null,u()}},6e4+e);0<l.imgBytes&&co===0&&(co=62500*Wp());var n=setTimeout(function(){if(l.waitingForImages=!1,l.count===0&&(l.stylesheets&&Li(l,l.stylesheets),l.unsuspend)){var u=l.unsuspend;l.unsuspend=null,u()}},(l.imgBytes>co?50:800)+e);return l.unsuspend=t,function(){l.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}i(yg,"waitForCommitToBeReady");function pc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Li(this,this.stylesheets);else if(this.unsuspend){var l=this.unsuspend;this.unsuspend=null,l()}}}i(pc,"onUnsuspend");var gc=null;function Li(l,e){l.stylesheets=null,l.unsuspend!==null&&(l.count++,gc=new Map,e.forEach(vg,l),gc=null,pc.call(l))}i(Li,"insertSuspendedStylesheets");function vg(l,e){if(!(e.state.loading&4)){var t=gc.get(l);if(t)var a=t.get(null);else{t=new Map,gc.set(l,t);for(var n=l.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var c=n[u];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(t.set(c.dataset.precedence,c),a=c)}a&&t.set(null,a)}n=e.instance,c=n.getAttribute("data-precedence"),u=t.get(c)||a,u===a&&t.set(null,n),t.set(c,n),this.count++,a=pc.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),u?u.parentNode.insertBefore(n,u.nextSibling):(l=l.nodeType===9?l.head:l,l.insertBefore(n,l.firstChild)),e.state.loading|=4}}i(vg,"insertStylesheetIntoRoot");var Uu={$$typeof:lt,Provider:null,Consumer:null,_currentValue:ca,_currentValue2:ca,_threadCount:0};function pg(l,e,t,a,n,u,c,f,o){this.tag=1,this.containerInfo=l,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Bf(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bf(0),this.hiddenUpdates=Bf(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=o,this.incompleteTransitions=new Map}i(pg,"FiberRootNode");function Py(l,e,t,a,n,u,c,f,o,s,v,p){return l=new pg(l,e,t,c,o,s,v,p,f),e=1,u===!0&&(e|=24),u=te(3,null,null,e),l.current=u,u.stateNode=l,e=zs(),e.refCount++,l.pooledCache=e,e.refCount++,u.memoizedState={element:a,isDehydrated:t,cache:e},Es(u),l}i(Py,"createFiberRoot");function lv(l){return l?(l=$a,l):$a}i(lv,"getContextForSubtree");function ev(l,e,t,a,n,u){n=lv(n),a.context===null?a.context=n:a.pendingContext=n,a=xt(e),a.payload={element:t},u=u===void 0?null:u,u!==null&&(a.callback=u),t=Ht(l,a,e),t!==null&&($l(t,l,e),ou(t,l,e))}i(ev,"updateContainerImpl");function hh(l,e){if(l=l.memoizedState,l!==null&&l.dehydrated!==null){var t=l.retryLane;l.retryLane=t!==0&&t<e?t:e}}i(hh,"markRetryLaneImpl");function Fs(l,e){hh(l,e),(l=l.alternate)&&hh(l,e)}i(Fs,"markRetryLaneIfNotHydrated");function tv(l){if(l.tag===13||l.tag===31){var e=Sa(l,67108864);e!==null&&$l(e,l,67108864),Fs(l,67108864)}}i(tv,"attemptContinuousHydration");function yh(l){if(l.tag===13||l.tag===31){var e=ce();e=cs(e);var t=Sa(l,e);t!==null&&$l(t,l,e),Fs(l,e)}}i(yh,"attemptHydrationAtCurrentPriority");var bc=!0;function gg(l,e,t,a){var n=x.T;x.T=null;var u=Z.p;try{Z.p=2,$s(l,e,t,a)}finally{Z.p=u,x.T=n}}i(gg,"dispatchDiscreteEvent");function bg(l,e,t,a){var n=x.T;x.T=null;var u=Z.p;try{Z.p=8,$s(l,e,t,a)}finally{Z.p=u,x.T=n}}i(bg,"dispatchContinuousEvent");function $s(l,e,t,a){if(bc){var n=ts(a);if(n===null)uo(l,e,a,Sc,t),vh(l,a);else if(zg(n,l,e,t,a))a.stopPropagation();else if(vh(l,a),e&4&&-1<Sg.indexOf(l)){for(;n!==null;){var u=zn(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var c=na(u.pendingLanes);if(c!==0){var f=u;for(f.pendingLanes|=2,f.entangledLanes|=2;c;){var o=1<<31-ie(c);f.entanglements[1]|=o,c&=~o}Ve(u),(L&6)===0&&(oc=ne()+500,Qu(0,!1))}}break;case 31:case 13:f=Sa(u,2),f!==null&&$l(f,u,2),Bc(),Fs(u,2)}if(u=ts(a),u===null&&uo(l,e,a,Sc,t),u===n)break;n=u}n!==null&&a.stopPropagation()}else uo(l,e,a,null,t)}}i($s,"dispatchEvent");function ts(l){return l=rs(l),Is(l)}i(ts,"findInstanceBlockingEvent");var Sc=null;function Is(l){if(Sc=null,l=Za(l),l!==null){var e=ku(l);if(e===null)l=null;else{var t=e.tag;if(t===13){if(l=Th(e),l!==null)return l;l=null}else if(t===31){if(l=Ah(e),l!==null)return l;l=null}else if(t===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;l=null}else e!==l&&(l=null)}}return Sc=l,null}i(Is,"findInstanceBlockingTarget");function av(l){switch(l){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(c1()){case Mh:return 2;case Oh:return 8;case Wi:case f1:return 32;case Uh:return 268435456;default:return 32}default:return 32}}i(av,"getEventPriority");var as=!1,Yt=null,Gt=null,Vt=null,Du=new Map,Cu=new Map,_t=[],Sg="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function vh(l,e){switch(l){case"focusin":case"focusout":Yt=null;break;case"dragenter":case"dragleave":Gt=null;break;case"mouseover":case"mouseout":Vt=null;break;case"pointerover":case"pointerout":Du.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Cu.delete(e.pointerId)}}i(vh,"clearIfContinuousEvent");function In(l,e,t,a,n,u){return l===null||l.nativeEvent!==u?(l={blockedOn:e,domEventName:t,eventSystemFlags:a,nativeEvent:u,targetContainers:[n]},e!==null&&(e=zn(e),e!==null&&tv(e)),l):(l.eventSystemFlags|=a,e=l.targetContainers,n!==null&&e.indexOf(n)===-1&&e.push(n),l)}i(In,"accumulateOrCreateContinuousQueuedReplayableEvent");function zg(l,e,t,a,n){switch(e){case"focusin":return Yt=In(Yt,l,e,t,a,n),!0;case"dragenter":return Gt=In(Gt,l,e,t,a,n),!0;case"mouseover":return Vt=In(Vt,l,e,t,a,n),!0;case"pointerover":var u=n.pointerId;return Du.set(u,In(Du.get(u)||null,l,e,t,a,n)),!0;case"gotpointercapture":return u=n.pointerId,Cu.set(u,In(Cu.get(u)||null,l,e,t,a,n)),!0}return!1}i(zg,"queueIfContinuousEvent");function nv(l){var e=Za(l.target);if(e!==null){var t=ku(e);if(t!==null){if(e=t.tag,e===13){if(e=Th(t),e!==null){l.blockedOn=e,Pd(l.priority,function(){yh(t)});return}}else if(e===31){if(e=Ah(t),e!==null){l.blockedOn=e,Pd(l.priority,function(){yh(t)});return}}else if(e===3&&t.stateNode.current.memoizedState.isDehydrated){l.blockedOn=t.tag===3?t.stateNode.containerInfo:null;return}}}l.blockedOn=null}i(nv,"attemptExplicitHydrationTarget");function Zi(l){if(l.blockedOn!==null)return!1;for(var e=l.targetContainers;0<e.length;){var t=ts(l.nativeEvent);if(t===null){t=l.nativeEvent;var a=new t.constructor(t.type,t);zo=a,t.target.dispatchEvent(a),zo=null}else return e=zn(t),e!==null&&tv(e),l.blockedOn=t,!1;e.shift()}return!0}i(Zi,"attemptReplayContinuousQueuedEvent");function ph(l,e,t){Zi(l)&&t.delete(e)}i(ph,"attemptReplayContinuousQueuedEventInMap");function Tg(){as=!1,Yt!==null&&Zi(Yt)&&(Yt=null),Gt!==null&&Zi(Gt)&&(Gt=null),Vt!==null&&Zi(Vt)&&(Vt=null),Du.forEach(ph),Cu.forEach(ph)}i(Tg,"replayUnblockedEvents");function Ui(l,e){l.blockedOn===e&&(l.blockedOn=null,as||(as=!0,El.unstable_scheduleCallback(El.unstable_NormalPriority,Tg)))}i(Ui,"scheduleCallbackIfUnblocked");var Di=null;function gh(l){Di!==l&&(Di=l,El.unstable_scheduleCallback(El.unstable_NormalPriority,function(){Di===l&&(Di=null);for(var e=0;e<l.length;e+=3){var t=l[e],a=l[e+1],n=l[e+2];if(typeof a!="function"){if(Is(a||t)===null)continue;break}var u=zn(t);u!==null&&(l.splice(e,3),e-=3,Ro(u,{pending:!0,data:n,method:t.method,action:a},a,n))}}))}i(gh,"scheduleReplayQueueIfNeeded");function bn(l){function e(o){return Ui(o,l)}i(e,"unblock"),Yt!==null&&Ui(Yt,l),Gt!==null&&Ui(Gt,l),Vt!==null&&Ui(Vt,l),Du.forEach(e),Cu.forEach(e);for(var t=0;t<_t.length;t++){var a=_t[t];a.blockedOn===l&&(a.blockedOn=null)}for(;0<_t.length&&(t=_t[0],t.blockedOn===null);)nv(t),t.blockedOn===null&&_t.shift();if(t=(l.ownerDocument||l).$$reactFormReplay,t!=null)for(a=0;a<t.length;a+=3){var n=t[a],u=t[a+1],c=n[Il]||null;if(typeof u=="function")c||gh(t);else if(c){var f=null;if(u&&u.hasAttribute("formAction")){if(n=u,c=u[Il]||null)f=c.formAction;else if(Is(n)!==null)continue}else f=c.action;typeof f=="function"?t[a+1]=f:(t.splice(a,3),a-=3),gh(t)}}}i(bn,"retryIfBlockedOn");function uv(){function l(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:i(function(){return new Promise(function(c){return n=c})},"handler"),focusReset:"manual",scroll:"manual"})}i(l,"handleNavigate");function e(){n!==null&&(n(),n=null),a||setTimeout(t,20)}i(e,"handleNavigateComplete");function t(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(i(t,"startFakeNavigation"),typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",l),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(t,100),function(){a=!0,navigation.removeEventListener("navigate",l),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),n!==null&&(n(),n=null)}}}i(uv,"defaultOnDefaultTransitionIndicator");function Ps(l){this._internalRoot=l}i(Ps,"ReactDOMRoot");qc.prototype.render=Ps.prototype.render=function(l){var e=this._internalRoot;if(e===null)throw Error(S(409));var t=e.current,a=ce();ev(t,a,l,e,null,null)};qc.prototype.unmount=Ps.prototype.unmount=function(){var l=this._internalRoot;if(l!==null){this._internalRoot=null;var e=l.containerInfo;ev(l.current,2,null,l,null,null),Bc(),e[Sn]=null}};function qc(l){this._internalRoot=l}i(qc,"ReactDOMHydrationRoot");qc.prototype.unstable_scheduleHydration=function(l){if(l){var e=xh();l={blockedOn:null,target:l,priority:e};for(var t=0;t<_t.length&&e!==0&&e<_t[t].priority;t++);_t.splice(t,0,l),t===0&&nv(l)}};var bh=Sh.version;if(bh!=="19.2.0")throw Error(S(527,bh,"19.2.0"));Z.findDOMNode=function(l){var e=l._reactInternals;if(e===void 0)throw typeof l.render=="function"?Error(S(188)):(l=Object.keys(l).join(","),Error(S(268,l)));return l=l1(e),l=l!==null?Eh(l):null,l=l===null?null:l.stateNode,l};var Ag={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:x,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Pn=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Pn.isDisabled&&Pn.supportsFiber))try{Bu=Pn.inject(Ag),ue=Pn}catch{}var Pn;Rc.createRoot=function(l,e){if(!zh(l))throw Error(S(299));var t=!1,a="",n=F0,u=$0,c=I0;return e!=null&&(e.unstable_strictMode===!0&&(t=!0),e.identifierPrefix!==void 0&&(a=e.identifierPrefix),e.onUncaughtError!==void 0&&(n=e.onUncaughtError),e.onCaughtError!==void 0&&(u=e.onCaughtError),e.onRecoverableError!==void 0&&(c=e.onRecoverableError)),e=Py(l,1,!1,null,null,t,a,null,n,u,c,uv),l[Sn]=e.current,Js(l),new Ps(e)};Rc.hydrateRoot=function(l,e,t){if(!zh(l))throw Error(S(299));var a=!1,n="",u=F0,c=$0,f=I0,o=null;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(f=t.onRecoverableError),t.formState!==void 0&&(o=t.formState)),e=Py(l,1,!0,e,t??null,a,n,o,u,c,f,uv),e.context=lv(null),t=e.current,a=ce(),a=cs(a),n=xt(a),n.callback=null,Ht(t,n,a),t=a,e.current.lanes=t,Hu(e,t),Ve(e),l[Sn]=e.current,Js(l),new qc(e)};Rc.version="19.2.0"});var ov=Fu((pb,fv)=>{"use strict";function cv(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(cv)}catch(l){console.error(l)}}i(cv,"checkDCE");cv(),fv.exports=iv()});var ef="sekyro-verification",tf=[{name:"client-token",property:"clientToken",type:"string | null",description:"The session's client token, from `clientToken` of the session your server created. Ignored while `verification` is set."},{name:"api-origin",property:"apiOrigin",type:"string | null",description:"The Sekyro AI API origin. Leave it out: the SDK's default is the production API."},{name:"locale",property:"locale",type:"SekyroLocale | null",description:"The language of the flow: `ar`, `fr`, `en`, `es`, `pt` or `de`. Without it: the page's `<html lang>` when it is one of them, else `en`. Arabic runs right to left."},{name:"color-scheme",property:"colorScheme",type:"SekyroColorScheme | null",description:"`light` (the default), `dark`, or `system` to follow the device."},{name:"asset-base-url",property:"assetBaseUrl",type:"string | null",description:"Where your page serves the face detector assets (the `models-v3` files)."},{name:"back-navigation",property:"backNavigation",type:"'history' | 'none' | null",description:"`history` lets the browser's back button go one screen back inside the flow. `none` (the default) never touches the page's history."},{name:"handoff-url",property:"handoffUrl",type:"string | null",description:"The link a desktop shows as a QR code when a camera step needs a phone (the session's `hostedUrl`). Without it, a notice asks the person to continue on their phone."},{name:"closable",property:"closable",type:"boolean",boolean:!0,description:"Shows the header's close button and the result's Continue button. Both fire `sekyro-close`; take the person on from your page there."},{name:"voice",property:"voice",type:"'off' | null",unreflected:!0,description:"`off` turns the spoken guidance off. The `voice` property, when set, wins and carries the voice options."}],Ug=[{name:"verification",type:"Verification | null",description:"A `Verification` you created with `createVerification` from `@sekyro/web`. Set, it wins over `client-token`, and your page destroys it. Read, it is the verification the element runs, set or created."},{name:"strings",type:"Partial<SekyroStrings> | undefined",description:"Copy overrides, keyed like the SDK's strings."},{name:"theme",type:"SekyroTheme | undefined",description:"A runtime theme. It wins over the session's branding."},{name:"livenessProps",type:"SekyroElementLivenessOptions | undefined",description:"Options of the face capture step: `autoStart`, `tips`, `tipsSummary`, `coach`, `notice`, `startDisabled`, `startLabel`."},{name:"documentLiveMrz",type:"DocumentLiveMrzOptions | undefined",description:"Live MRZ reading on the document step: `workerUrl`, `assetBaseUrl`, or `mode: 'off'`."},{name:"voice",type:"false | VoiceOptions | undefined",description:"Spoken guidance options, or `false` to turn it off."}],kr=[{name:"header",description:"Replaces the partner header."},{name:"header-end",description:"Sits at the inline end of the partner header, before the close button (a language menu)."},{name:"footer",description:'Replaces the "Verified by Sekyro AI" link. An empty element hides it.'}],Dg=[{name:"sekyro-ready",type:"SekyroReadyDetail",description:"The element created its `Verification` from `client-token` (detail: `{ verification }`)."},{name:"sekyro-step",type:"VerificationStep",mirrors:"onStep",description:"The flow moved to a step."},{name:"sekyro-result",type:"VerificationResult",mirrors:"onResult",description:"A verdict for display. Read the decision that counts from your server."},{name:"sekyro-close",type:"SekyroCloseEvent",mirrors:"onClose",description:"The person closed the flow (`closable` only): `{ reason: 'finished', result }` or `{ reason: 'cancelled' }`."},{name:"sekyro-liveness-captured",type:"CapturedArtifacts",mirrors:"onLivenessCaptured",description:"The face capture finished, before its upload."},{name:"sekyro-liveness-state",type:"CaptureState",mirrors:"livenessProps.onStateChange",description:"The face capture's state changed."},{name:"sekyro-liveness-guidance",type:"StringKey",mirrors:"livenessProps.onGuidance",description:"The face capture shows a guidance line (its string key)."},{name:"sekyro-liveness-error",type:"CaptureError",mirrors:"livenessProps.onError",description:"The face capture failed (camera denied or absent, for example). The flow shows its own screen."},{name:"sekyro-error",type:"SekyroElementErrorDetail",description:"The element could not create its `Verification` from its attributes (detail: `{ error }`)."}];import{createVerification as Eg}from"@sekyro/web";var af=Q(Vl(),1);var kl={light:{brand:"#0d3b66",brandFg:"#ffffff",fg:"#13141f",fgMuted:"#4e5270",bg:"#f6f7fb",surface:"#ffffff",ring:"#0d3b66",danger:"#ca0f07",success:"#007a5e",warning:"#735003"},dark:{brand:"#6ea2d3",brandFg:"#051a2e",fg:"#f6f7fb",fgMuted:"#cbcedc",bg:"#13141f",surface:"#1d1e2c",ring:"#6ea2d3",danger:"#ff7c7c",success:"#00c897",warning:"#ffd98a"},roles:{light:{brandSoft:"#eaf2fa",line:"#cbcedc",lineSubtle:"#e2e4ee",lineStrong:"#8c91a9",sunken:"#eeeff5",fgSubtle:"#686d8a"},dark:{brandSoft:"#092b4b",line:"#4e5270",lineSubtle:"#2b2d40",lineStrong:"#686d8a",sunken:"#0b0c14",fgSubtle:"#8c91a9"}},stage:"#051a2e",stageAccent:"#69dfef",radius:"10px",radiusLg:"16px",font:'"Sekyro Inter", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", "Noto Sans", sans-serif',fontDisplay:'"Sekyro Geist", Geist, "Sekyro Geist Fallback", "Sekyro Geist Fallback Roboto", "Sekyro Inter", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", "Noto Sans", sans-serif',fontArabic:'"Sekyro Cairo", Cairo, "Sekyro Inter", "Noto Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif'},Qn={colors:{...kl.light},radius:kl.radiusLg,fontFamily:kl.font},Br={brand:"--sekyro-color-brand",brandFg:"--sekyro-color-brand-fg",fg:"--sekyro-color-fg",fgMuted:"--sekyro-color-fg-muted",bg:"--sekyro-color-bg",surface:"--sekyro-color-surface",ring:"--sekyro-color-ring",danger:"--sekyro-color-danger",success:"--sekyro-color-success",warning:"--sekyro-color-warning"};function Hr(l={}){let e={};for(let t of Object.keys(Br))e[Br[t]]=l.colors?.[t]??Qn.colors[t];return e["--sekyro-radius"]=l.radius??Qn.radius,e["--sekyro-font"]=l.fontFamily??Qn.fontFamily,e}i(Hr,"S");T(Hr,"themeToCssVars");var gv=/^#[0-9a-f]{6}$/i,bv=["brand","brandFg","bg","surface","fg","fgMuted"],Sv=["danger","success","warning"],xr=!1;function ei(l){let e=l?.colors;if(l===void 0||e===void 0||!Sv.some(c=>c in e))return l;!xr&&yr()&&(xr=!0,console.warn("[sekyro] theme.colors.danger/success/warning are ignored: status colours are standard (removed in 1.0)"));let{danger:t,success:a,warning:n,...u}=e;return{...l,colors:u}}i(ei,"p");T(ei,"stripDeprecatedStatusColors");var zv={none:"0px",sm:"6px",md:"10px",lg:"16px",full:"9999px"},Tv={system:"",inter:"Inter","ibm-plex-sans-arabic":'"IBM Plex Sans Arabic"',"noto-sans-arabic":'"Noto Sans Arabic"',roboto:"Roboto"};function ti(l){let e={};if(!l)return e;let t={},a=l.colors??{};for(let c of bv){let f=a[c];f!==void 0&&gv.test(f)&&(t[c]=f)}t.brand&&(t.ring=t.brand),Object.keys(t).length&&(e.colors=t);let n=zv[l.radius];n&&(e.radius=n);let u=Tv[l.fontFamily];return u!==void 0&&(e.fontFamily=u?`${u}, ${Qn.fontFamily}`:Qn.fontFamily),e}i(ti,"x");T(ti,"brandingToTheme");function ai(...l){let e={};for(let t of l)t?.colors&&(e.colors={...e.colors,...t.colors}),t?.radius&&(e.radius=t.radius),t?.fontFamily&&(e.fontFamily=t.fontFamily);return e}i(ai,"I");T(ai,"mergeThemes");function nf({theme:l,children:e,className:t}){return(0,af.jsx)(ni,{theme:ei(l),...t!==void 0?{className:t}:{},children:e})}i(nf,"C");T(nf,"SekyroThemeProvider");function ni({theme:l,children:e,className:t}){let a=Hr(l);return(0,af.jsx)("div",{className:t===void 0?"sekyro-root":`sekyro-root ${t}`,style:a,children:e})}i(ni,"R");T(ni,"SekyroThemeRoot");var Xn=Q(Tl(),1),Bl=Q(Tl(),1),B=Q(Vl(),1),vt=Q(Tl(),1),je=Q(Vl(),1),pt=Q(Tl(),1),Le=Q(Vl(),1),Fr=Q(Tl(),1),ka=Q(Vl(),1),Ba=Q(Tl(),1),P=Q(Vl(),1),re=Q(Tl(),1),Kl=Q(Tl(),1),fl=Q(Vl(),1),Ee=Q(Vl(),1),_l=Q(Tl(),1),K=Q(Vl(),1),gt=Q(Tl(),1),Ce=Q(Vl(),1),bt=Q(Tl(),1),ke=Q(Vl(),1),k=Q(Tl(),1),ci=Q(Tl(),1),yt=Q(Tl(),1),Be=Q(Vl(),1),Ze=Q(Vl(),1),sd=Q(Tl(),1),Ha=Q(Tl(),1),F=Q(Vl(),1),z=Q(Vl(),1),jn=Q(Tl(),1),ea=Q(Vl(),1);import{isValidNni as Uv,normalizeNni as Yr}from"@sekyro/web";import{acceptedIssuers as Bv,acceptedTypesFor as Gr,warmDocumentCapture as xv}from"@sekyro/web";import{acceptedIssuers as Hv,acceptedTypesFor as uf,laneCountries as qv,laneOptionsFor as Rv,optionNameFor as Yv}from"@sekyro/web";import{warmPortraitCapture as Vv}from"@sekyro/web";import{cameraUnavailableCauseOf as Zv}from"@sekyro/web";function Zr(l){let[e,t]=(0,Xn.useState)(()=>l?.currentStep?.()??null),[a,n]=(0,Xn.useState)(null);return(0,Xn.useEffect)(()=>{if(l===void 0)return;if(typeof l.run!="function"){n(new Error("The step components need @sekyro/web 0.2 or later (Verification.run)."));return}let u=!0,c=l.on("step",f=>{u&&t(f)});return l.run().then(f=>{u&&t(o=>o??f)},f=>{u&&n(f)}),()=>{u=!1,c()}},[l]),{step:e,error:a}}i(Zr,"ft");T(Zr,"useVerificationStep");var qr=T((l,e,t)=>{if(l===void 0)return 0;let a=Date.parse(l)-e;return Number.isFinite(a)?Math.min(t,Math.max(0,Math.ceil(a/1e3))):0},"secondsUntil"),Av=600,Ev=30,Nv=T(l=>`${Math.floor(l/60)}:${String(l%60).padStart(2,"0")}`,"mmss"),_v=["whatsapp","sms"],Rr=new Set(["otp_daily_cap_reached","payment_method_required","spend_cap_reached","insufficient_balance","otp_expired","otp_send_failed","otp_channel_unavailable","otp_destination_not_allowed","otp_destination_unknown","otp_rate_limited","otp_resend_limit","otp_number_invalid","otp_number_not_mobile"]);function Kr(l){let e=[];for(let t of l.phoneCountries??["MR"]){let a=l.phoneRules?.find(u=>u.code===t),n=a?.dial??Nr(t);n!==void 0&&!e.some(u=>u.code===t)&&e.push({code:t,dial:`+${n}`,...a!==void 0?{rule:a}:{}})}return e}i(Kr,"yn");T(Kr,"phoneCountriesOf");function Jr({step:l,locale:e,strings:t,className:a,defaultPhone:n,onError:u}){let c=Dl(e,t),{t:f}=c,o=(0,Bl.useMemo)(()=>Kr(l),[l.phoneCountries,l.phoneRules]),s=n??o[0]?.dial??"",v=l.phoneInternational===!0,p=Mr({countries:o,international:v,closed:!!l.phoneRules?.length,defaultPhone:s}),[m,h]=(0,Bl.useState)(""),[b,N]=(0,Bl.useState)(!1),[D,d]=(0,Bl.useState)(null),[r,y]=(0,Bl.useState)(null),[g,A]=(0,Bl.useState)(!1),[C,E]=(0,Bl.useState)(null),O=(0,Bl.useRef)(null),U=l.phase==="verify"&&!g,_=l.phase==="verify",ml=Cr(_),[wt,Zu]=Ur(l.reason==="otp_mismatch",l.attemptsRemaining,()=>h("")),Ae=(0,Bl.useId)(),Cn=(0,Bl.useRef)(null);(0,Bl.useEffect)(()=>{let W=setTimeout(()=>Cn.current?.focus({preventScroll:!0}),350);return()=>clearTimeout(W)},[U]);let Xe=l.phase==="verify"?l.codeExpiresAt??"sent":null;(0,Bl.useEffect)(()=>{Xe!==null&&(A(!1),O.current!==null&&!Rr.has(l.reason??"")&&E(O.current),O.current=null)},[Xe]);let Ku=T(async W=>{N(!0),y(null);try{await W()}catch(Gl){y(Vn(Gl,c.strings)),u?.(Gl)}finally{N(!1),d(null)}},"run"),Zl=_v.filter(W=>(l.channels??[]).includes(W)),Oa=p.typed,ht=!l.needsPhone||Oa!==null,Ua=T((W,Gl=!1)=>{let Da=l.needsPhone?Gl?C:{number:Oa??p.phone,shown:p.shown}:null;O.current=Da,d(W??null),Ku(async()=>{try{await l.send({...Da!==null?{phone:Da.number}:{},...W!==void 0?{channel:W}:{}})}catch(Gn){throw O.current=null,Gn}})},"send"),kn=T(W=>{Ku(()=>l.verify(W))},"submitCode"),Bn=T(W=>{W.preventDefault(),U?kn(m):Zl.length<=1&&ht&&Ua(Zl[0])},"onSubmit"),xn=`${Ae}-phone`,Hn=qr(l.codeExpiresAt,ml,Av),Wt=qr(l.resendAvailableAt,ml,Ev),Ft=U&&l.codeExpiresAt!==void 0&&Hn===0,$t=l.needsPhone&&!l.attemptsExhausted,qn=_&&(l.codeExpiresAt===void 0||Hn>0),Rn=U&&$t?()=>A(!0):g&&qn?()=>A(!1):null;wc(Rn===null?null:b?()=>{}:Rn);let De=T(W=>f(W==="whatsapp"?"otp.channelWhatsapp":"otp.channelSms"),"label"),Yn=T(W=>b&&D!==null&&D===W,"busyFor"),[Xl,Ju]=f("otp.sentTo",{channel:De(l.channel)}).split("{number}"),wu=l.context.simulation?.otpCode,il=l.reason==="otp_mismatch"?(0,B.jsxs)(Nl,{tone:"danger",children:[(0,B.jsx)("span",{children:f("otp.reason_otp_mismatch")}),(0,B.jsx)("span",{children:$c(c,l.attemptsRemaining,l.attemptsExhausted)})]}):l.reason!==void 0&&Rr.has(l.reason)?(0,B.jsx)(Nl,{tone:"warning",children:(0,B.jsx)("span",{children:f(`otp.reason_${l.reason}`)})}):l.reason==="tester_phone_mismatch"?(0,B.jsx)(Nl,{tone:"warning",children:(0,B.jsx)("span",{children:f("reasons.tester_phone_mismatch")})}):null,It=(0,B.jsxs)(B.Fragment,{children:[il,r!==null?(0,B.jsx)(Nl,{tone:"danger",children:(0,B.jsx)("span",{children:f(r)})}):null]});if(U){let W=Zl.length===0;return(0,B.jsxs)("form",{className:`sekyro-step sekyro-otp${a?` ${a}`:""}`,"aria-labelledby":Ae,onSubmit:Bn,noValidate:!0,children:[(0,B.jsx)(Pt,{id:Ae,title:f("otp.verifyTitle"),lead:wu!==void 0?(0,B.jsx)(sr,{template:f("sandbox.otpHint"),code:wu}):(0,B.jsxs)(B.Fragment,{children:[Xl,(0,B.jsx)("bdi",{dir:"ltr",className:"sekyro-mono",children:C?.shown??l.sentToMasked}),Ju]})}),It,(0,B.jsxs)("div",{className:"sekyro-field",children:[(0,B.jsx)("label",{className:"sekyro-label",htmlFor:`${Ae}-code`,children:f("otp.codeLabel")}),(0,B.jsx)(Dr,{id:`${Ae}-code`,value:m,invalid:wt,onChange:i(Gl=>{Gl!==""&&Zu(),h(Gl),Gl.length===6&&m.length!==6&&!b&&!l.attemptsExhausted&&kn(Gl)},"onChange")}),(0,B.jsx)("span",{className:`sekyro-help sekyro-otp-expiry${Ft?" is-danger":""}`,"aria-hidden":!Ft||void 0,children:Ft?f("otp.expired"):f("otp.expiresIn",{time:Nv(Hn)})})]}),(0,B.jsx)("span",{className:"sekyro-visually-hidden",role:"status","aria-live":"polite",children:Ft?f("otp.expired"):""}),(0,B.jsxs)(la,{children:[(0,B.jsx)(cl,{type:"submit",full:!0,disabled:b||m.length!==6||l.attemptsExhausted,"aria-busy":b||void 0,children:f("otp.verify")}),(0,B.jsxs)("div",{className:"sekyro-resend-row",children:[W?(0,B.jsx)("button",{type:"button",className:"sekyro-link sekyro-resend",disabled:b||Wt>0,onClick:i(()=>Ua(void 0,!0),"onClick"),children:Wt>0?f("otp.resendIn",{seconds:Wt}):f("otp.resend")}):Wt>0?(0,B.jsx)("p",{className:"sekyro-resend is-waiting",children:f("otp.resendIn",{seconds:Wt})}):Zl.map(Gl=>(0,B.jsx)("button",{type:"button",className:"sekyro-link sekyro-resend",disabled:b,onClick:i(()=>Ua(Gl,!0),"onClick"),children:f("otp.resendBy",{channel:De(Gl)})},Gl)),$t?(0,B.jsx)("button",{type:"button",className:"sekyro-link sekyro-resend",disabled:b,onClick:i(()=>A(!0),"onClick"),"data-testid":"sekyro-otp-change",children:f("otp.changeNumber")}):null]})]})]})}return(0,B.jsxs)("form",{className:`sekyro-step sekyro-otp${a?` ${a}`:""}`,"aria-labelledby":Ae,onSubmit:Bn,noValidate:!0,children:[(0,B.jsx)(Pt,{id:Ae,title:f("otp.sendTitle"),lead:f("otp.sendDescription")}),It,l.needsPhone?(0,B.jsxs)("div",{className:"sekyro-field",children:[(0,B.jsx)("label",{className:"sekyro-label",htmlFor:xn,children:f("otp.phoneLabel")}),(0,B.jsx)(Or,{field:p,id:xn,locale:c.locale,t:f,inputRef:Cn,ready:ht})]}):(0,B.jsx)("p",{className:"sekyro-text-muted",children:f("otp.prefilledNotice")}),(0,B.jsxs)(la,{children:[Zl.length===1?(0,B.jsx)(cl,{type:"submit",full:!0,disabled:b||!ht,"aria-busy":Yn(Zl[0])||void 0,children:f("otp.sendBy",{channel:De(Zl[0])})}):Zl.length>1?(0,B.jsxs)("div",{className:"sekyro-actions__group",role:"group","aria-label":f("otp.chooseChannel"),children:[(0,B.jsx)("p",{className:"sekyro-label","aria-hidden":"true",children:f("otp.chooseChannel")}),(0,B.jsx)("div",{className:"sekyro-channel-row",children:Zl.map(W=>(0,B.jsxs)(cl,{kind:"primary",disabled:b||!ht,"aria-busy":Yn(W)||void 0,onClick:i(()=>Ua(W),"onClick"),children:[(0,B.jsx)(se,{name:W}),De(W)]},W))})]}):(0,B.jsx)(cl,{type:"submit",full:!0,disabled:b||!ht,"aria-busy":b||void 0,children:f("otp.send")}),(0,B.jsx)("span",{className:"sekyro-visually-hidden",role:"status","aria-live":"polite",children:b&&D!==null?f("otp.sending",{channel:De(D)}):""}),g&&qn?(0,B.jsx)("button",{type:"button",className:"sekyro-link sekyro-resend",disabled:b,onClick:i(()=>A(!1),"onClick"),"data-testid":"sekyro-otp-back-to-code",children:f("otp.backToCode")}):null]})]})}i(Jr,"yt");T(Jr,"PhoneOtpStep");var Mv={load:T(()=>import("./email-otp-view-SM2POPMA-O7WM3ZEZ.js"),"load")};function wr({locale:l,strings:e,...t}){let a=Dl(l,e),[n,u]=(0,vt.useState)(0),c=(0,vt.useMemo)(()=>(0,vt.lazy)(()=>Mv.load().then(o=>({default:o.EmailOtpView}))),[n]),f=(0,je.jsxs)(Nl,{tone:"danger",children:[(0,je.jsx)("span",{children:a.t("errors.network_error")}),(0,je.jsx)(cl,{kind:"secondary",onClick:i(()=>u(o=>o+1),"onClick"),children:a.t("common.retry")})]});return(0,je.jsx)(Ca,{fallback:f,children:(0,je.jsx)(vt.Suspense,{fallback:(0,je.jsx)("p",{role:"status","aria-busy":"true",className:"sekyro-text-muted",children:a.t("common.loading")}),children:(0,je.jsx)(c,{...t,i18n:a})})},n)}i(wr,"gt");T(wr,"EmailOtpStep");var Ov={load:T(()=>import("./eid-view-GAIQODI5-KCEO3AZS.js"),"load")};function Wr({locale:l,strings:e,...t}){let a=Dl(l,e),[n,u]=(0,pt.useState)(0),c=(0,pt.useMemo)(()=>(0,pt.lazy)(()=>Ov.load().then(o=>({default:o.EidView}))),[n]),f=(0,Le.jsxs)(Nl,{tone:"danger",children:[(0,Le.jsx)("span",{children:a.t("errors.network_error")}),(0,Le.jsx)(cl,{kind:"secondary",onClick:i(()=>u(o=>o+1),"onClick"),children:a.t("common.retry")})]});return(0,Le.jsx)(Ca,{fallback:f,children:(0,Le.jsx)(pt.Suspense,{fallback:(0,Le.jsx)("p",{role:"status","aria-busy":"true",className:"sekyro-text-muted",children:a.t("common.loading")}),children:(0,Le.jsx)(c,{...t,i18n:a})})},n)}i(Wr,"kt");T(Wr,"EidStep");function $r({step:l,locale:e,strings:t,className:a,onError:n}){let u=Dl(e,t),{busy:c,error:f,run:o}=Sr(u,n),s=(0,Fr.useMemo)(()=>l.choice.options.flatMap(p=>{let m=lf(p,u),h=gr[p.service];return m===null?[]:[{id:p.id,label:m,glyph:h&&(0,ka.jsx)(se,{name:h})}]}),[l.choice.options,u]),v=l.choice.options.find(p=>p.service==="national_eid");return(0,ka.jsxs)("div",{className:a,children:[(0,ka.jsx)(hr,{title:u.t("method.heading"),description:u.t("method.description"),options:s,busy:c,error:f,focus:!0,testId:"sekyro-method",onChoose:i(p=>o(()=>l.choose(p)),"onChoose")}),v?.nationalEid?.afterPass==="continue"?(0,ka.jsx)(Cl,{view:"EidContinueHint",i18n:u,provider:v.nationalEid.providerName,quiet:!0}):null]})}i($r,"St");T($r,"MethodChoice");var Dv=new Set(["nni_not_found","registry_record_not_found"]),Cv=new Set(["nni_invalid","id_number_invalid"]);function df({step:l,locale:e,strings:t,className:a,onError:n}){let u=Dl(e,t),{t:c}=u,[f,o]=(0,Ba.useState)(""),[s,v]=(0,Ba.useState)(!1),[p,m]=(0,Ba.useState)(null),h=(0,Ba.useId)(),b=l.attemptsExhausted,N=T(async O=>{v(!0),m(null);try{await O()}catch(U){m(Vn(U,u.strings)),n?.(U)}finally{v(!1)}},"run"),D=T(O=>{if(O.preventDefault(),l.source!=="typed"){N(()=>l.confirm());return}let U=Yr(f);if(!/^\d{10}$/.test(U))return m("population.invalid");if(!Uv(U))return m("population.reason_id_number_invalid");N(()=>typeof l.submitIdNumber=="function"?l.submitIdNumber(U):l.submitNni(U))},"onSubmit"),d=$c(u,l.attemptsRemaining,b),r=l.reason!==void 0&&Dv.has(l.reason),y=l.reason!==void 0&&Cv.has(l.reason),g=(0,P.jsxs)(P.Fragment,{children:[l.reason==="registry_unavailable"?(0,P.jsxs)(Nl,{tone:"warning",children:[(0,P.jsx)("span",{children:c("population.reason_registry_unavailable")}),(0,P.jsx)("span",{children:d})]}):null,r&&l.canUseDocument?(0,P.jsxs)(Nl,{tone:"warning",children:[(0,P.jsx)("span",{children:c("population.reason_registry_record_not_found_or_document")}),(0,P.jsx)("span",{children:d}),(0,P.jsx)(cl,{kind:"secondary",disabled:s,onClick:i(()=>{N(()=>l.useDocument())},"onClick"),children:c("population.useDocument")})]}):null,r&&!l.canUseDocument||y?(0,P.jsxs)(Nl,{tone:"danger",children:[(0,P.jsx)("span",{children:c(r?"population.reason_registry_record_not_found":"population.reason_id_number_invalid")}),(0,P.jsx)("span",{children:d})]}):null,b&&l.reason===void 0?(0,P.jsx)(Nl,{tone:"danger",children:(0,P.jsx)("span",{children:d})}):null,p!==null?(0,P.jsx)(Nl,{tone:"danger",children:(0,P.jsx)("span",{children:c(p)})}):null]}),[A,C,E]=l.source==="document"?["population.fromDocument.title","population.fromDocument.description","population.fromDocument.continue"]:l.source==="bound"?["session.steps.population.title","population.bound.description","population.bound.confirm"]:l.recheck?["population.recheck.title","population.recheck.description","population.submit"]:["session.steps.population.title","session.steps.population.description","population.submit"];return(0,P.jsxs)("form",{className:`sekyro-step${a?` ${a}`:""}`,"aria-labelledby":h,onSubmit:D,noValidate:!0,children:[(0,P.jsx)(Pt,{id:h,title:c(A),lead:c(C)}),g,l.source==="typed"?(0,P.jsxs)("div",{className:"sekyro-field",children:[(0,P.jsx)("label",{className:"sekyro-label",htmlFor:`${h}-id-number`,children:c("population.label")}),(0,P.jsx)("input",{id:`${h}-id-number`,className:"sekyro-input sekyro-input--number",dir:"ltr",inputMode:"numeric",autoComplete:"off",placeholder:c("population.placeholder"),value:f,"aria-describedby":`${h}-id-number-help`,"aria-invalid":p==="population.invalid"||p==="population.reason_id_number_invalid"||void 0,onChange:i(O=>{m(null),o(Yr(O.target.value).replace(/\D/g,"").slice(0,10))},"onChange")}),(0,P.jsx)("span",{id:`${h}-id-number-help`,className:"sekyro-help",children:c("population.helper")})]}):null,(0,P.jsx)(la,{children:b?null:(0,P.jsx)(cl,{type:"submit",full:!0,disabled:s,"aria-busy":s||void 0,children:c(E)})})]})}i(df,"ot");T(df,"IdNumberEntry");function kv(l){return df(l)}i(kv,"Bn");T(kv,"NniEntry");var Vr=220;function Ir(l,e,t=[],a){let n=null;try{n=new Intl.DisplayNames([l],{type:"region"})}catch{}let u=e.map(o=>({code:o,name:n?.of(o)??o})),c=new Intl.Collator(l),f=T(o=>{if(o===a)return-1;let s=t.indexOf(o);return s<0?t.length:s},"rank");return u.sort((o,s)=>f(o.code)-f(s.code)||c.compare(o.name,s.name))}i(Ir,"Un");T(Ir,"countryNames");function Pr({step:l,i18n:e,issuer:t,onPicked:a,ageStepUp:n=!1}){let{t:u,locale:c}=e,f=l.context.switchable,o=(0,Kl.useMemo)(()=>[...new Set([...Hv(l.documents),...qv(f)])].sort(),[l.documents,f]),s=T(_=>f===void 0||_===null||l.chooseOption===void 0?[]:Rv(f,_).methods,"methodsOf"),v=(0,Kl.useMemo)(()=>Ir(c,o,Object.keys(l.documents.byIssuer??{}),l.detectedCountry),[c,o,l.documents,l.detectedCountry]),p=o.length===1?o[0]:null,[m,h]=(0,Kl.useState)(t??p),[b,N]=(0,Kl.useState)(null),D=p===null?[]:uf(l.documents,p),d=p!==null&&D.length===1&&s(p).length===0?D[0]:null;(0,Kl.useEffect)(()=>{p!==null&&d!==null&&l.selectDocument(p,d)},[p,d]);let r=T((_,ml)=>{l.selectDocument(_,ml),a?.()},"pick"),y=T(_=>{let ml=uf(l.documents,_);ml.length===1&&s(_).length===0?r(_,ml[0]):h(_)},"chooseIssuer");(0,Kl.useEffect)(()=>{if(b===null||m===null)return;let _=setTimeout(()=>r(m,b),Vr);return()=>clearTimeout(_)},[b]),wc(m!==null&&o.length>1&&t===void 0?()=>{h(null),N(null)}:null);let g=(0,Kl.useContext)(Jc),A=s(m);(0,Kl.useEffect)(()=>{g.set(m,A.map(_=>_.id))},[m,A.map(_=>_.id).join()]);let[C,E]=(0,Kl.useState)(null);(0,Kl.useEffect)(()=>{if(C===null)return;let _=l.chooseOption;if(_===void 0)return;let ml=setTimeout(()=>{_.call(l,C).catch(()=>E(null))},Vr);return()=>clearTimeout(ml)},[C]);let O=b!==null||C!==null;if(d!==null)return null;if(m===null)return(0,fl.jsxs)("section",{className:"sekyro-step",children:[(0,fl.jsx)(Pt,{title:u("doc.countryTitle"),lead:u(n?"doc.ageStepUp":"doc.pickDescription")}),(0,fl.jsx)(_r,{countries:v,label:u("doc.countryLabel"),searchPlaceholder:u("doc.countrySearch"),noMatch:u("doc.noCountryMatch"),onPick:y}),(0,fl.jsx)(la,{children:null})]});let U=uf(l.documents,m);return(0,fl.jsxs)("section",{className:"sekyro-step",children:[(0,fl.jsx)(Pt,{title:u("doc.pickTitle"),lead:u(n&&p!==null?"doc.ageStepUp":"native.doc.holdIt")}),(0,fl.jsxs)("div",{className:"sekyro-choices",children:[A.map(_=>(0,fl.jsxs)("button",{type:"button",className:"sekyro-card","data-testid":"sekyro-type-method","aria-pressed":C===_.id,disabled:O&&C!==_.id,onClick:i(()=>{O||E(_.id)},"onClick"),children:[(0,fl.jsx)("span",{className:"sekyro-card__tile",children:(0,fl.jsx)(se,{name:br[_.service]??"id"})}),(0,fl.jsx)("span",{className:"sekyro-card__body",children:(0,fl.jsx)("span",{className:"sekyro-card__title",children:Yv(_,m,c)??lf(_,e)})}),(0,fl.jsx)("span",{className:"sekyro-radio","aria-hidden":"true"})]},_.id)),U.map(_=>(0,fl.jsxs)("button",{type:"button",className:"sekyro-card","aria-pressed":b===_,disabled:O&&b!==_,onClick:i(()=>{O||N(_)},"onClick"),children:[(0,fl.jsx)("span",{className:"sekyro-card__tile",children:(0,fl.jsx)(se,{name:_==="passport"?"passport":"card"})}),(0,fl.jsxs)("span",{className:"sekyro-card__body",children:[(0,fl.jsx)("span",{className:"sekyro-card__title",children:u(`doc.type.${_}`)}),(0,fl.jsx)("span",{className:"sekyro-card__sub",children:u(`doc.sub.${_}`)})]}),(0,fl.jsx)("span",{className:"sekyro-radio","aria-hidden":"true"})]},_))]}),o.length>1?(0,fl.jsx)("button",{type:"button",className:"sekyro-link",onClick:i(()=>{h(null),N(null),E(null)},"onClick"),children:u("native.doc.changeCountry")}):null,(0,fl.jsx)(la,{children:null})]})}i(Pr,"Po");T(Pr,"DocumentPicker");var Gv={load:T(()=>import("./document-capture-view-NI4452T4-VZHREVJN.js"),"load")};function ld({step:l,locale:e,strings:t,className:a,liveMrz:n,barcodeAssetBaseUrl:u}){let c=Dl(e,t),[f,o]=(0,re.useState)(0),[s,v]=(0,re.useState)(null),p=Bv(l.documents),m=p.length>1,h=l.issuer!==null&&Gr(l.documents,l.issuer).length>1,b=l.documentType===null||l.issuer===null||s!==null,N=p.length===1&&Gr(l.documents,p[0]).length===1,[D]=(0,re.useState)(()=>b&&!N),d=l.ageStepUp===!0,r=(0,re.useMemo)(()=>(0,re.lazy)(()=>Gv.load().then(g=>({default:g.DocumentCaptureView}))),[f]);(0,re.useEffect)(()=>{xv()},[]);let y=(0,Ee.jsxs)(Nl,{tone:"danger",children:[(0,Ee.jsx)("span",{children:c.t("errors.network_error")}),(0,Ee.jsx)(cl,{kind:"secondary",onClick:i(()=>o(g=>g+1),"onClick"),children:c.t("doc.retryCamera")})]});return(0,Ee.jsx)("div",{className:a,children:b?(0,Ee.jsx)(Pr,{step:l,i18n:c,ageStepUp:d&&s===null&&D,...s==="document"&&l.issuer!==null?{issuer:l.issuer}:{},onPicked:i(()=>v(null),"onPicked")}):(0,Ee.jsx)(Ca,{fallback:y,children:(0,Ee.jsx)(re.Suspense,{fallback:(0,Ee.jsx)("p",{role:"status","aria-busy":"true",className:"sekyro-text-muted",children:c.t("common.loading")}),children:(0,Ee.jsx)(r,{step:l,i18n:c,ageLead:d&&!D,liveMrz:l.documentType==="drivers_license"?void 0:n,barcodeAssetBaseUrl:u,...m?{onChangeCountry:T(()=>v("country"),"onChangeCountry")}:{},...h?{onChangeDocument:T(()=>v("document"),"onChangeDocument")}:{}})})},f)})}i(ld,"Nt");T(ld,"DocumentCapture");var Qv={load:T(()=>import("./portrait-capture-view-TTUVVA7L-6BGZEV6C.js"),"load")},Xv={load:T(()=>import("./portrait-review-view-BCIENGKR-WZ7GCBEX.js"),"load")},xa,ed=(xa=class extends _l.Component{constructor(){super(...arguments),this.state={failed:!1}}static getDerivedStateFromError(){return{failed:!0}}render(){return this.state.failed?this.props.fallback:this.props.children}},i(xa,"Pt"),xa);T(ed,"LoadBoundary");var Qr=ed;function td({step:l,i18n:e}){let{t}=e,a=$u();return(0,K.jsxs)("section",{className:"sekyro-stack sekyro-stack--2","data-testid":"sekyro-portrait-match",children:[(0,K.jsx)("h2",{ref:a,tabIndex:-1,className:"sekyro-text-body",children:t(l.review?"portrait.reviewTitle":"session.steps.portrait.title")}),l.review?(0,K.jsx)("p",{className:"sekyro-text-muted",children:t("portrait.reviewDescription")}):null,l.uploadFailed?(0,K.jsxs)(Nl,{tone:"danger",children:[(0,K.jsx)("span",{children:t("portrait.uploadFailed")}),(0,K.jsx)(cl,{kind:"secondary",onClick:i(()=>{l.resubmit()},"onClick"),children:t("portrait.sendAgain")})]}):(0,K.jsx)("p",{role:"status","aria-live":"polite","aria-busy":"true",className:"sekyro-text-muted",children:t("portrait.matching")})]})}i(td,"or");T(td,"MatchPhase");function ad({step:l,locale:e,strings:t,className:a,assetBaseUrl:n,verification:u}){let c=Dl(e,t),f=vr(u),o=(0,_l.useContext)(Fc),[s,v]=(0,_l.useState)(0),[p,m]=(0,_l.useState)(null),h=(0,_l.useMemo)(()=>(0,_l.lazy)(()=>Qv.load().then(E=>({default:E.PortraitCaptureView}))),[s]),b=(0,_l.useMemo)(()=>(0,_l.lazy)(()=>Xv.load().then(E=>({default:E.PortraitScreens}))),[s]),N=typeof l.uploadPortrait=="function",D=N?l.photo?.source??"camera":"camera",d=N&&D!=="camera"&&l.photo?.uploadOffered===!0,r=D!=="upload",y=D==="upload"?"upload":D==="choice"?p??l.photo?.pick??"source":"camera",g=l.phase==="capture"&&l.photo?.cameraOnPhone===!0;if((0,_l.useEffect)(()=>{l.phase==="capture"&&y==="camera"&&!g&&Vv()},[l.phase,y,g]),l.phase==="match")return(0,K.jsx)("div",{className:a,children:(0,K.jsx)(td,{step:l,i18n:c})});let A=(0,K.jsx)("p",{role:"status","aria-busy":"true",className:"sekyro-text-muted",children:c.t("common.loading")});if(o!==null&&(o.busy||o.failed!==null)&&l.phase==="capture"&&y==="camera")return(0,K.jsxs)("section",{className:`sekyro-step${a?` ${a}`:""}`,children:[(0,K.jsx)(Pt,{title:c.t("session.steps.portrait.title")}),(0,K.jsx)(la,{children:(0,K.jsx)(cl,{kind:"secondary",full:!0,disabled:o.busy,onClick:o.reset,children:c.t("portrait.retryCamera")})})]});if(l.phase==="review"||y!=="camera"||g)return(0,K.jsx)("div",{className:a,children:(0,K.jsx)(Qr,{fallback:(0,K.jsx)(cl,{kind:"ghost",onClick:i(()=>v(E=>E+1),"onClick"),children:c.t("common.retry")}),children:(0,K.jsx)(_l.Suspense,{fallback:A,children:(0,K.jsx)(b,{screen:l.phase==="review"?"review":g&&y==="camera"?"phone":y==="camera"?"review":y,step:l,i18n:c,...r?{onCamera:T(()=>m("camera"),"onCamera")}:{},onUpload:i(()=>m("upload"),"onUpload"),onDeclined:i(()=>m(null),"onDeclined")})})},s)});if(!f.settled)return(0,K.jsx)("div",{className:a,children:A});let C=(0,K.jsxs)(Nl,{tone:"danger",children:[(0,K.jsx)("span",{children:c.t("errors.network_error")}),(0,K.jsx)(cl,{kind:"secondary",onClick:i(()=>v(E=>E+1),"onClick"),children:c.t("portrait.retryCamera")})]});return(0,K.jsx)("div",{className:a,children:(0,K.jsx)(Qr,{fallback:C,children:(0,K.jsx)(_l.Suspense,{fallback:A,children:(0,K.jsx)(h,{step:l,i18n:c,...n!==void 0?{assetBaseUrl:n}:{},...d?{onUpload:T(()=>m("upload"),"onUpload")}:{}})})},s)})}i(ad,"_t");T(ad,"PortraitCapture");var jv={load:T(()=>import("./proof-of-address-view-SS2TIV3D-C6YD4BRC.js"),"load")};function nd({step:l,locale:e,strings:t,className:a}){let n=Dl(e,t),[u,c]=(0,gt.useState)(0),f=(0,gt.useMemo)(()=>(0,gt.lazy)(()=>jv.load().then(s=>({default:s.ProofOfAddressView}))),[u]),o=(0,Ce.jsxs)(Nl,{tone:"danger",children:[(0,Ce.jsx)("span",{children:n.t("errors.network_error")}),(0,Ce.jsx)(cl,{kind:"secondary",onClick:i(()=>c(s=>s+1),"onClick"),children:n.t("common.retry")})]});return(0,Ce.jsx)("div",{className:a,children:(0,Ce.jsx)(Ca,{fallback:o,children:(0,Ce.jsx)(gt.Suspense,{fallback:(0,Ce.jsx)("p",{role:"status","aria-busy":"true",className:"sekyro-text-muted",children:n.t("common.loading")}),children:(0,Ce.jsx)(f,{step:l,i18n:n})})},u)})}i(nd,"xt");T(nd,"ProofOfAddress");var Lv={load:T(()=>import("./form-view-GOFXOQJO-CRQWOLQA.js"),"load")};function ud({step:l,locale:e,strings:t,className:a,onError:n}){let u=Dl(e,t),[c,f]=(0,bt.useState)(0),o=(0,bt.useMemo)(()=>(0,bt.lazy)(()=>Lv.load().then(v=>({default:v.FormView}))),[c]),s=(0,ke.jsxs)(Nl,{tone:"danger",children:[(0,ke.jsx)("span",{children:u.t("errors.network_error")}),(0,ke.jsx)(cl,{kind:"secondary",onClick:i(()=>f(v=>v+1),"onClick"),children:u.t("common.retry")})]});return(0,ke.jsx)("div",{className:a,children:(0,ke.jsx)(Ca,{fallback:s,children:(0,ke.jsx)(bt.Suspense,{fallback:(0,ke.jsx)("p",{role:"status","aria-busy":"true",className:"sekyro-text-muted",children:u.t("common.loading")}),children:(0,ke.jsx)(o,{step:l,i18n:u,...n!==void 0?{onError:n}:{}})})},c)})}i(ud,"It");T(ud,"FormStep");var Xr={light:{lineBrand:"#0d3b66",successSoft:"#d5f0e8",successFg:"#005341",onSuccess:"#ffffff",warningSoft:"#fff7e6",warningFg:"#735003",onWarning:"#191a1b",dangerSoft:"#ffdada",dangerFg:"#ca0f07",onDanger:"#ffffff",info:"#0563d4",infoSoft:"#d3e5ff",infoFg:"#064da5",onInfo:"#ffffff"},dark:{lineBrand:"#3f80bf",successSoft:"#002c23",successFg:"#53ffd4",onSuccess:"#030303",warningSoft:"#463102",warningFg:"#ffd98a",onWarning:"#030303",dangerSoft:"#9c1008",dangerFg:"#ffbbbb",onDanger:"#030303",info:"#5da9ff",infoSoft:"#063778",infoFg:"#acd0ff",onInfo:"#030303"},sizes:{buttonHeight:"52px",controlRadius:"10px",cardRadius:"16px",fieldRadius:"10px",iconTile:"56px",iconTileRadius:"16px",headerTile:"40px",choiceTile:"40px",tileRadius:"10px",resultDisc:"64px",resultRing:"8px",progressHeight:"4px",focusRing:"2px",focusRingOffset:"2px",otpBox:"60px",choiceMinHeight:"76px",stepGap:"32px",headingGap:"12px"},motion:{page:"320ms",easeOut:"cubic-bezier(0.16, 1, 0.3, 1)"}},mf={light:{danger:{base:"#ca0f07",soft:"#ffdada",fg:"#ca0f07",on:"#ffffff"},success:{base:"#007a5e",soft:"#d5f0e8",fg:"#005341",on:"#ffffff"},warning:{base:"#ffab00",soft:"#fff7e6",fg:"#735003",on:"#191a1b"},info:{base:"#0563d4",soft:"#d3e5ff",fg:"#064da5",on:"#ffffff"}},dark:{danger:{base:"#ff7c7c",soft:"#9c1008",fg:"#ffbbbb",on:"#030303"},success:{base:"#00c897",soft:"#002c23",fg:"#53ffd4",on:"#030303"},warning:{base:"#ffbb2e",soft:"#463102",fg:"#ffd98a",on:"#030303"},info:{base:"#5da9ff",soft:"#063778",fg:"#acd0ff",on:"#030303"}}},Kv=["danger","success","warning","info"];function ui(l){let e=l/255;return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}i(ui,"Et");T(ui,"channel");function cf(l){let e=ui(parseInt(l.slice(1,3),16)),t=ui(parseInt(l.slice(3,5),16)),a=ui(parseInt(l.slice(5,7),16));return .2126*e+.7152*t+.0722*a}i(cf,"Ro");T(cf,"luminance");function id(l,e){let t=cf(l),a=cf(e),n=Math.max(t,a),u=Math.min(t,a);return(n+.05)/(u+.05)}i(id,"gr");T(id,"contrastRatio");function ff(l,e){return Math.min(...Kv.map(t=>id(mf[l][t].fg,e)))}i(ff,"Lo");T(ff,"worstAgainst");function of(l,e,t){return Math.min(ff(l,e),ff(l,t))}i(of,"Bo");T(of,"worstStatusContrast");function cd(l,e){return of("light",l,e)>=of("dark",l,e)?"light":"dark"}i(cd,"Vo");T(cd,"statusSchemeFor");function hf({open:l,title:e,closeLabel:t,onClose:a,children:n,actions:u,role:c,testId:f,returnFocus:o}){let s=(0,yt.useRef)(null),v=(0,yt.useRef)(null),p=(0,yt.useRef)(!1),m=(0,yt.useId)();return(0,yt.useEffect)(()=>{let h=s.current;if(h!==null){if(l&&!h.open?(v.current=typeof document>"u"?null:document.activeElement,typeof h.showModal=="function"?h.showModal():h.setAttribute("open","")):!l&&h.open&&(typeof h.close=="function"?h.close():h.removeAttribute("open")),!l&&p.current){let b=o?.current??(v.current instanceof HTMLElement?v.current:null);v.current=null,b?.focus()}p.current=l}},[l,o]),(0,Be.jsx)("dialog",{ref:s,className:"sekyro-dialog","aria-labelledby":m,...c==="alertdialog"?{role:c}:{},"data-testid":f,onCancel:i(h=>{h.preventDefault(),a()},"onCancel"),onClick:i(h=>{h.target===h.currentTarget&&a()},"onClick"),children:(0,Be.jsxs)("div",{className:"sekyro-dialog__panel",children:[(0,Be.jsxs)("div",{className:"sekyro-dialog__head",children:[(0,Be.jsx)("h2",{id:m,className:"sekyro-dialog__title",children:e}),t!==void 0?(0,Be.jsx)("button",{type:"button",className:"sekyro-disc sekyro-dialog__close","aria-label":t,onClick:a,children:(0,Be.jsx)(se,{name:"close"})}):null]}),n!==void 0?(0,Be.jsx)("div",{className:"sekyro-dialog__body",children:n}):null,u!==void 0?(0,Be.jsx)("div",{className:"sekyro-dialog__actions",children:u}):null]})})}i(hf,"it");T(hf,"FlowDialog");var Jv=["intro","data","processing","sharing","retention"];function fd({i18n:l,purpose:e="identity"}){let{t}=l,[a,n]=(0,ci.useState)(!1),u=(0,ci.useRef)(null),[c,f=""]=t("consent.short").split("{terms}");return(0,Ze.jsxs)("div",{className:"sekyro-consent","data-testid":"sekyro-consent",children:[(0,Ze.jsxs)("p",{className:"sekyro-consent__line",children:[c,(0,Ze.jsx)("button",{ref:u,type:"button",className:"sekyro-link sekyro-link--inline","aria-haspopup":"dialog",onClick:i(()=>n(!0),"onClick"),children:t("consent.termsLink")}),f]}),(0,Ze.jsx)(hf,{open:a,title:t("consent.termsTitle"),closeLabel:t("native.close"),onClose:i(()=>n(!1),"onClose"),returnFocus:u,testId:"sekyro-consent-terms",children:(0,Ze.jsx)("div",{className:"sekyro-stack sekyro-stack--3",children:e==="human"?(0,Ze.jsx)(Cl,{view:"HumanConsentTerms",i18n:l,quiet:!0}):Jv.map(o=>(0,Ze.jsx)("p",{children:t(`consent.terms.${o}`)},o))})})]})}i(fd,"Do");T(fd,"ConsentNotice");function od(l){let e=l.trim().split(/\s+/).filter(t=>t!=="");return(e.length>=2?[e[0],e[1]].map(t=>Array.from(t??"")[0]??""):Array.from(e[0]??"").slice(0,2)).join("").toUpperCase()}i(od,"Mo");T(od,"initials");var rd=T(l=>({colors:{...l?kl.dark:kl.light},radius:kl.radius,fontFamily:kl.font}),"brandTheme"),ob=rd(!1),jr=/^#[0-9a-f]{6}$/i;function yf(l,e,t){if(e)return null;let a=ti(l).colors,n=t?.colors?.bg??a?.bg,u=t?.colors?.surface??a?.surface;return n===void 0&&u===void 0||n!==void 0&&!jr.test(n)||u!==void 0&&!jr.test(u)?null:cd(n??kl.light.bg,u??kl.light.surface)}i(yf,"Rt");T(yf,"partnerStatusScheme");function vf(l,e,t){let a=ti(l);if(t&&a.colors!==void 0){let{brand:n,brandFg:u}=a.colors;n!==void 0&&hd(n,kl.dark.bg)>=3?a.colors={brand:n,ring:n,...u!==void 0?{brandFg:u}:{}}:delete a.colors}if(yf(l,t,e)==="dark"){let n=mf.dark;a.colors={...a.colors,danger:n.danger.base,success:n.success.base,warning:n.warning.fg}}return ai(rd(t),a,ei(e))}i(vf,"at");T(vf,"verificationTheme");function pf(l){let e=(0,sd.useSyncExternalStore)(md,Wv,()=>!1);return l==="dark"||l==="system"&&e}i(pf,"lt");T(pf,"useDarkScheme");var wv="(prefers-color-scheme: dark)",dd=T(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia(wv):null,"media"),Wv=T(()=>dd()?.matches??!1,"prefersDark");function md(l){let e=dd();return e?.addEventListener("change",l),()=>e?.removeEventListener("change",l)}i(md,"_r");T(md,"subscribe");function hd(l,e){let[t,a]=[sf(l),sf(e)];return(Math.max(t,a)+.05)/(Math.min(t,a)+.05)}i(hd,"Pr");T(hd,"contrast");function sf(l){let e=[1,3,5].map(t=>{let a=Number.parseInt(l.slice(t,t+2),16)/255;return a<=.03928?a/12.92:((a+.055)/1.055)**2.4});return .2126*(e[0]??0)+.7152*(e[1]??0)+.0722*(e[2]??0)}i(sf,"Uo");T(sf,"luminance");var gf="sekyro.testerGate";function fi(){try{return typeof localStorage>"u"?null:localStorage}catch{return null}}i(fi,"Bt");T(fi,"store");function yd(l=Date.now()){try{fi()?.setItem(gf,String(l))}catch{}}i(yd,"zo");T(yd,"rememberTester");function vd(l=Date.now()){try{let e=Number(fi()?.getItem(gf)??"");return Number.isFinite(e)&&e>0&&l-e<2592e6}catch{return!1}}i(vd,"Go");T(vd,"rememberedTester");function pd(){try{fi()?.removeItem(gf)}catch{}}i(pd,"qo");T(pd,"forgetTester");var Lr=new Set(["document_id_number_mismatch","name_mismatch","birth_date_mismatch"]),Fv={review:{icon:"pending",tone:"info"},cooldown:{icon:"timer",tone:"info"},rejected:{icon:"close",tone:"neutral"},policy:{icon:"close",tone:"neutral"},inconclusive:{icon:"warning",tone:"neutral"},unavailable:{icon:"timer",tone:"neutral"},expired:{icon:"timer",tone:"neutral"}};function gd({screen:l}){if(l==="verified")return(0,F.jsxs)("svg",{className:"sekyro-outcome sekyro-outcome--approved",viewBox:"0 0 136 136","aria-hidden":"true",focusable:"false",children:[(0,F.jsx)("circle",{className:"sekyro-outcome__ring",cx:"68",cy:"68",r:"54",pathLength:"1"}),(0,F.jsx)("circle",{className:"sekyro-outcome__disc",cx:"68",cy:"68",r:"48"}),(0,F.jsx)("path",{className:"sekyro-outcome__glyph",d:"M6.5 12.5l3.6 3.6 7.4-8.2",pathLength:"1",transform:"translate(39 39) scale(2.4167)"})]});let{icon:e,tone:t}=Fv[l];return(0,F.jsx)("span",{className:`sekyro-tile sekyro-tile--${t} sekyro-outcome-tile`,"aria-hidden":"true","data-screen":l,children:(0,F.jsx)(se,{name:e})})}i(gd,"Or");T(gd,"OutcomeMark");function bd({label:l,id:e,copied:t}){let[a,n]=(0,Ha.useState)(!1);return(0,Ha.useEffect)(()=>{if(!a)return;let u=setTimeout(()=>n(!1),1600);return()=>clearTimeout(u)},[a]),(0,F.jsxs)("button",{type:"button",className:`sekyro-reference${a?" is-copied":""}`,onClick:i(()=>{navigator.clipboard?.writeText(e).then(()=>n(!0),()=>{})},"onClick"),children:[(0,F.jsx)("span",{"aria-live":"polite",children:a?t:l}),(0,F.jsx)("bdi",{dir:"ltr",children:e}),(0,F.jsx)(se,{name:"copy"})]})}i(bd,"Rr");T(bd,"ReferenceLine");function Sd({step:l,t:e}){let t=l.context.sandbox?l.context.simulation?.reason:void 0;return t===void 0?null:(0,F.jsxs)(Iu,{tone:"warning",role:"status",testId:"sekyro-simulated-notice",children:[(0,F.jsx)("span",{className:"sekyro-notice__icon","aria-hidden":"true",children:(0,F.jsx)(se,{name:"info"})}),(0,F.jsxs)("div",{className:"sekyro-notice__body","data-reason":t,children:[(0,F.jsx)("strong",{children:e("sandbox.simulatedTitle")}),(0,F.jsx)("span",{children:e(t==="no_testers"?"sandbox.simulatedNoTesters":"sandbox.simulatedGate")})]})]})}i(Sd,"Lr");T(Sd,"SimulationNotice");function zd(l,e){return l==="expired"?"native.result.expiredTitle":l!=="verified"?`session.result.${l}.title`:e.level===3?"session.result.verified.title":e.level===1&&e.assurance==="contact_phone"?"session.result.verified.titlePhone":e.level===1&&e.assurance==="contact_email"?"session.result.verified.titleEmail":e.level===1?"session.result.verified.titleContact":"session.result.verified.titleHuman"}i(zd,"Br");T(zd,"resultTitleKey");function Td({step:l,locale:e,strings:t,className:a,onClose:n}){let u=Dl(e,t),{t:c}=u,f=(0,Ha.useId)(),o=$u(),s=l.context.orgName,v=l.reasonCode??"",p=l.display==="platform_unsupported"?"policy":l.display,m=T(b=>(s!==""||b==="verified")&&b!=="cooldown"?c(`native.result.${b}`,{org:s}):c(`session.result.${b}.description`),"partnerLine"),h;switch(l.display){case"rejected":v==="identity_not_verified"?h=s!==""?c("reasons.identity_not_verified",{org:s}):c("session.result.identityNotVerified"):h=Lr.has(Kc(v))?c("session.result.detailsMismatch",{org:s}):m("rejected");break;case"policy":{if(Lr.has(Kc(v)))h=c("session.result.detailsMismatch",{org:s});else if(v==="device_velocity_exceeded")h=c("session.result.deviceVelocity",{org:s});else if(v==="capture_tampered")h=c("session.result.deviceStop");else if(v==="camera_unavailable")h=c("reasons.camera_unavailable",{org:s});else if(v==="underage_estimated")h=c("reasons.underage_estimated");else if(v==="starter_credit_claimed")h=c("reasons.starter_credit_claimed");else if(v==="blocked_by_org")h=c("reasons.blocked_by_org");else{let b=v===""?null:ar(v);h=b!==null?c(b,{org:s}):m("policy")}break}case"cooldown":{let b=nr(u.locale,l.retryAfter);h=b!==null?c(b.key,{time:b.time}):c("session.result.cooldown.description");break}case"platform_unsupported":h=c("result.platform_unsupported");break;default:h=m(p)}return(0,F.jsxs)("section",{className:`sekyro-result${a?` ${a}`:""}`,"aria-labelledby":f,"data-testid":"sekyro-result",children:[(0,F.jsxs)("div",{className:"sekyro-result__body",children:[(0,F.jsx)(gd,{screen:p}),(0,F.jsxs)("div",{className:"sekyro-heading",children:[(0,F.jsx)("h2",{id:f,ref:o,tabIndex:-1,className:"sekyro-text-body",children:c(zd(p,l.result))}),(0,F.jsx)("p",{className:"sekyro-text-muted",children:h})]}),(0,F.jsx)(Sd,{step:l,t:c}),(0,F.jsx)(bd,{label:c("result.referenceLabel"),id:l.context.sessionId,copied:c("native.result.copied")})]}),n!==void 0?(0,F.jsx)("div",{className:"sekyro-actions",children:(0,F.jsx)(cl,{full:!0,onClick:n,children:c("native.result.continue",{org:s})})}):null]})}i(Td,"Vt");T(Td,"VerificationResultScreen");function Ad(l,e,t){let a=e?kl.dark:kl.light,n=e?kl.roles.dark:kl.roles.light,u=l.colors??{},c={},f=u.fg===a.fg&&u.surface===a.surface;u.brand===a.brand&&u.surface===a.surface&&(c["--sekyro-color-brand-soft"]=n.brandSoft),f&&(c["--sekyro-color-line"]=n.line,c["--sekyro-color-line-subtle"]=n.lineSubtle,c["--sekyro-color-line-strong"]=n.lineStrong,c["--sekyro-color-sunken"]=n.sunken),u.fgMuted===a.fgMuted&&u.surface===a.surface&&(c["--sekyro-color-fg-subtle"]=n.fgSubtle),l.fontFamily===kl.font&&(c["--sekyro-font-display"]=kl.fontDisplay);let o=e?Xr.dark:Xr.light;if(c["--sekyro-color-success-soft"]=o.successSoft,c["--sekyro-color-success-fg"]=o.successFg,c["--sekyro-color-on-success"]=o.onSuccess,c["--sekyro-color-warning-soft"]=o.warningSoft,c["--sekyro-color-warning-fg"]=o.warningFg,c["--sekyro-color-danger-soft"]=o.dangerSoft,c["--sekyro-color-danger-fg"]=o.dangerFg,c["--sekyro-color-on-danger"]=o.onDanger,c["--sekyro-color-info-soft"]=o.infoSoft,c["--sekyro-color-info-fg"]=o.infoFg,u.brand===a.brand&&(c["--sekyro-color-line-brand"]=o.lineBrand),t!==null){let s=mf[t];for(let v of["danger","success","warning","info"])c[`--sekyro-color-${v}-soft`]=s[v].soft,c[`--sekyro-color-${v}-fg`]=s[v].fg;c["--sekyro-color-on-success"]=s.success.on,c["--sekyro-color-on-danger"]=s.danger.on}return c}i(Ad,"Dr");T(Ad,"flowRoles");function oi(l){let{verification:e,locale:t,strings:a,onStep:n,onResult:u}=l,{step:c,error:f}=Zr(e);(0,k.useEffect)(()=>{c!==null&&n?.(c)},[c,n]),(0,k.useEffect)(()=>u===void 0?void 0:e.on("result",u),[e,u]);let o=pf(l.colorScheme??"light"),s=c?.context.branding,v=vf(s,l.theme,o),[p,m]=(0,k.useState)(!1),h=`sekyro-verification${o?" sekyro-verification--dark":""}${p?" is-immersive":""}${l.className!==void 0?` ${l.className}`:""}`,b=(0,k.useRef)(l.onClose);b.current=l.onClose;let N=(0,k.useRef)(c);N.current=c;let D=(0,k.useCallback)(()=>{let A=N.current;b.current?.(A?.kind==="result"?{reason:"finished",result:A.result}:{reason:"cancelled"})},[]),[d,r]=(0,k.useState)(null),y=(0,k.useCallback)(()=>{let A=N.current;A!==null&&A.kind!=="result"&&A.context.consentRecorded?r("close"):D()},[D]),g=(0,k.useMemo)(()=>e.reportCaptureIssue===void 0?null:A=>e.reportCaptureIssue?.(A),[e]);return(0,z.jsx)(ni,{theme:v,className:h,children:(0,z.jsx)(Pc,{locale:t,...a!==void 0?{strings:a}:{},children:(0,z.jsx)("div",{dir:l.dir??(t==="ar"?"rtl":"ltr"),lang:t,className:"sekyro-flow",style:Ad(v,o,yf(s,o,l.theme)),children:(0,z.jsx)(fr.Provider,{value:m,children:(0,z.jsx)(Wc.Provider,{value:l.onClose!==void 0?D:void 0,children:(0,z.jsx)(Pu.Provider,{value:l.onClose!==void 0?y:void 0,children:(0,z.jsxs)(mr.Provider,{value:g,children:[(0,z.jsx)(Dd,{...l,step:c,error:f,immersive:p,onLeaveAsk:i(()=>r("history"),"onLeaveAsk"),onClosed:D}),(0,z.jsx)(Md,{open:d!==null,onStay:i(()=>{d==="history"&&ii(),r(null)},"onStay"),onLeave:i(()=>{let A=d;r(null),A==="close"||l.onClose!==void 0?D():typeof window<"u"&&Sf()},"onLeave")})]})})})})})})})}i(oi,"Dt");T(oi,"SekyroVerification");function Ed(l,e){if(e===void 0||e==="aml_screening")return null;let t=l,a=t[`session.processing.${e}.title`],n=t[`session.processing.${e}.description`];return typeof a=="string"&&a!==""&&typeof n=="string"&&n!==""?{title:a,description:n}:null}i(Ed,"Mr");T(Ed,"processingCopyOf");function Nd({error:l,retry:e}){let{t}=Dl(),a=$u();return(0,z.jsxs)(Iu,{tone:"danger",testId:"sekyro-error-notice",children:[(0,z.jsx)("span",{children:t(tr(l))}),l.retryable?(0,z.jsx)(cl,{ref:a,kind:"secondary",className:"sekyro-btn--start",onClick:e,children:t("common.retry")}):null]})}i(Nd,"Hr");T(Nd,"CameraErrorNotice");var _d="sekyroFlow";function bf(){let l=window.history.state;return typeof l=="object"&&l!==null&&l[_d]===!0}i(bf,"Qo");T(bf,"onGuard");function ii(){if(typeof window>"u"||bf())return;let l=window.history.state;window.history.pushState({...typeof l=="object"&&l!==null?l:{},[_d]:!0},"")}i(ii,"At");T(ii,"pushGuard");function Sf(){window.history.back()}i(Sf,"Xo");T(Sf,"leaveHistory");function Md({open:l,onStay:e,onLeave:t}){let{t:a}=Dl();return(0,z.jsx)(hf,{open:l,role:"alertdialog",title:a("leave.title"),onClose:e,testId:"sekyro-leave",actions:(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(cl,{full:!0,onClick:e,children:a("leave.stay")}),(0,z.jsx)(cl,{full:!0,kind:"danger",onClick:t,children:a("leave.confirm")})]}),children:(0,z.jsx)("p",{className:"sekyro-text-muted",children:a("leave.body")})})}i(Md,"Ur");T(Md,"LeaveDialog");function Od(l,e){let[t,a]=(0,k.useState)(!1),[n,u]=(0,k.useState)(null),c=l===null?void 0:l.skipCapture,f=(0,k.useRef)(c);f.current=c;let o=(0,k.useRef)(!1),s=l?.key;(0,k.useEffect)(()=>u(null),[s]);let v=(0,k.useCallback)(()=>{if(o.current)return;let b=f.current;b!==void 0&&(o.current=!0,a(!0),u(null),b().catch(N=>u(e.t(Vn(N,e.strings)))).finally(()=>{o.current=!1,a(!1)}))},[e]),p=(0,k.useCallback)(()=>u(null),[]),m=c!==void 0,h=e.t("sandbox.skipCapture");return(0,k.useMemo)(()=>m?{label:h,busy:t,failed:n,run:v,reset:p}:null,[m,h,t,n,v,p])}i(Od,"$r");T(Od,"useSkipCapture");function Ud({skip:l}){return(0,z.jsxs)(z.Fragment,{children:[l.failed!==null?(0,z.jsx)(Nl,{tone:"danger",children:(0,z.jsx)("span",{children:l.failed})}):null,(0,z.jsx)(cl,{kind:"ghost",full:!0,disabled:l.busy,"aria-busy":l.busy||void 0,onClick:l.run,"data-testid":"sekyro-skip-capture",children:l.label})]})}i(Ud,"Kr");T(Ud,"SkipAction");function Dd(l){let{step:e,error:t,slots:a,immersive:n}=l,u=Dl(),{t:c}=u,[f,o]=(0,k.useState)(!1),[s,v]=(0,k.useState)([]),p=(0,k.useCallback)(M=>(v(el=>[...el,M]),()=>v(el=>el.filter(jl=>jl!==M))),[]),[m,h]=(0,k.useState)(null),b=(0,k.useCallback)(M=>h(()=>M),[]),[N,D]=(0,k.useState)(0),[d,r]=(0,k.useState)(null),[y,g]=(0,k.useState)(null),A=Od(e,u),C=e?.context.testerGate!==void 0,[E,O]=(0,k.useState)(!1),U=(0,k.useRef)(null);(0,k.useEffect)(()=>{!C||U.current!==null||(U.current=vd(),U.current&&O(!0))},[C]);let _=e?.context.purpose??"identity",ml=e?.context.returning===!0,wt=l.verification,Zu=_==="human"||e?.context.cameraUnavailableHandled===!0,Ae=wt.reportCameraUnavailable!==void 0&&Zu?M=>wt.reportCameraUnavailable?.(M)??Promise.resolve():void 0,Cn=e?.kind==="liveness"&&e.mode==="liveness"&&e.reason===void 0&&!e.attemptsExhausted,Xe=l.handoffUrl,Ku=(0,k.useRef)({last:null,count:0}),Zl=(0,k.useCallback)((M,el,jl=!1)=>Ae===void 0&&el!=="denied"?void 0:(0,z.jsx)(Cl,{view:"NoCameraView",i18n:u,quiet:!0,cause:el,onRetry:M,repeated:jl,...Cn&&Ae!==void 0?{onContinue:Ae}:{},...Xe!==void 0?{handoffUrl:Xe}:{}}),[u,wt,Zu,Cn,Xe]),Oa=(0,k.useMemo)(()=>zr(e),[e]),ht=(0,k.useCallback)((M,el)=>(0,z.jsx)(Tr,{start:M,context:el,human:_==="human",returning:ml,notice:el.permissionSettled&&el.permission==="denied"?Zl(M,"denied"):void 0,...Oa!==void 0?{retry:Oa}:{}}),[_,ml,Zl,Oa]),Ua=(0,k.useCallback)((M,el)=>{let jl=Zv(M.kind),Wu=Ku.current;M.kind==="permission"&&M!==Wu.last&&(Wu.last=M,Wu.count+=1);let vv=M.kind==="permission"&&Wu.count>1;return(jl!==void 0?Zl(el,jl,vv):void 0)??(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(Nd,{error:M,retry:el}),jl!==void 0&&Xe!==void 0?(0,z.jsx)(Cl,{view:"DesktopHandoffView",i18n:u,quiet:!0,url:Xe}):null]})},[Zl,Xe,u]),kn=(0,k.useRef)(""),Bn=l.livenessProps?.slots?.stageOverlay,xn=(0,k.useCallback)(M=>(M.guidance!==""&&!M.coached&&(kn.current=M.guidance),(0,z.jsx)(dr,{testId:"sekyro-capture-stage",video:(0,z.jsx)("video",{ref:M.videoRef,playsInline:!0,muted:!0,className:"sekyro-lm-video sekyro-fc-video","aria-hidden":"true","data-testid":"sekyro-capture-video"}),instruction:M.settled?c("capture.checkingTitle"):M.guidance!==""?M.guidance:kn.current,note:M.note,status:M.status,busy:M.settled,progress:M.phase==="seeking"||M.phase==="aligning"?M.progress:1,still:M.still,live:M.live,closeLabel:c("native.close"),overlay:Bn?.(M.videoRef),ramp:M.ramp?.colour??null,...M.settled?{}:{onClose:T(()=>D(el=>el+1),"onClose")},end:M.modeSwitch!=null?(0,z.jsx)(ur,{view:M.modeSwitch,className:"sekyro-glass sekyro-glass--label"}):null,children:M.settled||!M.live?null:(0,z.jsx)(or,{onStop:i(()=>D(el=>el+1),"onStop")})})),[c,Bn]),Hn=(0,k.useId)(),Wt=e,Ft=e!==null&&d===e.key&&e.context.switchable!==void 0,$t=m??(e===null||e.kind==="result"?null:Ft?()=>r(null):e.context.switchable!==void 0&&typeof Wt?.chooseOption=="function"?()=>r(e.key):null),qn=(0,k.useRef)($t);qn.current=$t;let Rn=(0,k.useRef)(e);Rn.current=e;let De=(0,k.useRef)({ask:l.onLeaveAsk,closed:l.onClosed,hostClose:l.onClose!==void 0});De.current={ask:l.onLeaveAsk,closed:l.onClosed,hostClose:l.onClose!==void 0};let Yn=l.backNavigation==="history";if((0,k.useEffect)(()=>{if(!Yn||typeof window>"u")return;ii();let M=T(()=>{if(bf())return;let el=Rn.current,jl=qn.current;jl!==null?(jl(),ii()):el?.kind!=="result"&&el?.context.consentRecorded===!0?De.current.ask():De.current.hostClose?De.current.closed():Sf()},"onPop");return window.addEventListener("popstate",M),()=>window.removeEventListener("popstate",M)},[Yn]),t!==null)return(0,z.jsx)(Iu,{tone:"danger",children:(0,z.jsx)("span",{children:c(Vn(t,u.strings))})});if(e===null)return(0,z.jsxs)("div",{className:"sekyro-skeleton",role:"status","aria-busy":"true",children:[(0,z.jsx)("span",{className:"sekyro-visually-hidden",children:c("common.loading")}),(0,z.jsx)("span",{className:"sekyro-skeleton__bar is-title"}),(0,z.jsx)("span",{className:"sekyro-skeleton__bar"}),(0,z.jsx)("span",{className:"sekyro-skeleton__bar is-short"}),(0,z.jsx)("span",{className:"sekyro-skeleton__bar is-block"})]});let{context:Xl}=e,Ju=T(M=>{o(!0),M().finally(()=>o(!1))},"refresh"),wu=a?.header??(0,z.jsx)(Bd,{context:Xl,headerId:Hn,end:a?.headerEnd,...$t!==null?{onBack:$t}:{}}),il,It=Ft;if(E&&l.verification.testerGate!==void 0)il=(0,z.jsx)(Ic.Provider,{value:xn,children:(0,z.jsx)(Cl,{view:"TesterGateView",i18n:u,verification:l.verification,attemptsLeft:Xl.testerGate?.attemptsLeft??0,livenessProps:{...l.livenessProps??{},slots:{...l.livenessProps?.slots,intro:l.livenessProps?.slots?.intro??ht},locale:l.locale,dir:l.dir,strings:u.strings,assetBaseUrl:l.assetBaseUrl,voice:l.voice},onBound:i(()=>yd(),"onBound"),onDone:i(M=>{M&&pd(),O(!1)},"onDone")})});else if(It)il=(0,z.jsx)(Cl,{view:"LaneChoiceView",i18n:u,step:e,onClose:i(()=>r(null),"onClose")});else switch(e.kind){case"phone_otp":il=(0,z.jsx)(Jr,{step:e});break;case"email_otp":il=(0,z.jsx)(wr,{step:e});break;case"method":il=(0,z.jsx)($r,{step:e});break;case"registry":il=(0,z.jsx)(df,{step:e});break;case"document":il=(0,z.jsx)(ld,{step:e,...l.documentLiveMrz!==void 0?{liveMrz:l.documentLiveMrz}:{},...l.documentBarcodeAssetBaseUrl!==void 0?{barcodeAssetBaseUrl:l.documentBarcodeAssetBaseUrl}:{}});break;case"liveness":{let M=l.livenessProps?.slots?.intro,el={...l.livenessProps??{},slots:{...l.livenessProps?.slots,intro:M??ht,...M===void 0&&l.livenessProps?.slots?.errorPanel===void 0?{errorPanel:Ua}:{}},...N>0?{autoStart:!1}:{},verification:l.verification,locale:l.locale,dir:l.dir,strings:u.strings,assetBaseUrl:l.assetBaseUrl,voice:l.voice,onCaptured:l.onLivenessCaptured};il=(0,z.jsx)(Ic.Provider,{value:xn,children:e.instructions==="icao"||e.livePhoto?.icao===!0?(0,z.jsx)(Cl,{view:"LivePhotoLiveness",i18n:u,step:e,livenessProps:el,sekyroIntro:M===void 0},N):(0,z.jsx)(pr,{...el},N)});break}case"portrait":il=(0,z.jsxs)(z.Fragment,{children:[e.retakeOnly?(0,z.jsx)(Cl,{view:"PortraitRetakeNotice",i18n:u,quiet:!0}):null,(0,z.jsx)(ad,{step:e,verification:l.verification,...l.assetBaseUrl!==void 0?{assetBaseUrl:l.assetBaseUrl}:{}})]});break;case"proof_of_address":il=(0,z.jsx)(nd,{step:e});break;case"form":il=(0,z.jsx)(ud,{step:e});break;case"contact_choice":il=(0,z.jsx)(Cl,{view:"ContactChoiceView",i18n:u,step:e});break;case"choice":il=(0,z.jsx)(Cl,{view:"GenericChoiceView",i18n:u,step:e});break;case"identity_summary":il=(0,z.jsx)(Cl,{view:"IdentitySummaryView",i18n:u,step:e});break;case"mobile_required":{let M=e.checkType==="doc_ocr"?c("handoff.lead.document"):e.checkType==="portrait_icao"?c("handoff.lead.portrait"):e.checkType==="poa"?c("handoff.lead.poa"):void 0;il=l.handoffUrl!==void 0?(0,z.jsx)(Cl,{view:"HandoffView",i18n:u,url:l.handoffUrl,refresh:e.refresh,...M!==void 0?{lead:M}:{}}):(0,z.jsx)(li,{tone:"brand",icon:"smartphone",title:c("handoff.title"),actions:(0,z.jsx)(cl,{kind:"secondary",full:!0,disabled:f,onClick:i(()=>Ju(e.refresh),"onClick"),children:c("common.refresh")}),children:(0,z.jsx)("p",{children:M??c("reasons.mobile_required")})});break}case"native_app_required":il=(0,z.jsx)(Cl,{view:"NativeAppView",i18n:u,org:Xl.orgName,nativeApp:e.nativeApp,...l.handoffUrl!==void 0?{fallbackUrl:l.handoffUrl}:{},refresh:e.refresh,footer:(0,z.jsx)(rf,{org:Xl.orgName})});break;case"processing":{let M=Ed(u.strings,e.service);il=(0,z.jsx)(li,{tone:"brand",icon:"pending",busy:!e.stalled,live:!0,title:M?.title??c("session.processing.title"),actions:e.stalled?(0,z.jsx)(cl,{kind:"secondary",full:!0,disabled:f,onClick:i(()=>Ju(e.refresh),"onClick"),children:c("common.refresh")}):null,children:(0,z.jsx)("p",{children:M?.description??c("session.processing.description")})});break}case"eid":il=(0,z.jsx)(Wr,{step:e});break;case"unsupported":{let M=e.reason==="platform_unsupported";il=(0,z.jsx)(li,{tone:"neutral",icon:"smartphone",title:c(M?"needsApp.title":"unsupported.title"),actions:(0,z.jsx)(rf,{org:Xl.orgName}),children:(0,z.jsx)("p",{children:M?Xl.orgName!==""?c("needsApp.description",{org:Xl.orgName}):c("needsApp.descriptionNoOrg"):c("unsupported.description",{org:Xl.orgName})})});break}case"result":il=a?.result?.(e)??(0,z.jsx)(Cd,{step:e});break;default:{let M=e;il=null}}let W=!n&&!Xl.consentRecorded&&e.kind!=="result"?(0,z.jsx)(fd,{i18n:u,purpose:Xl.purpose}):null,Gl=A!==null&&!n&&!It&&!E?(0,z.jsx)(Ud,{skip:A}):null,Da=C&&!E&&!n&&!It&&l.verification.testerGate!==void 0?(0,z.jsx)(Cl,{view:"TesterGateAction",i18n:u,quiet:!0,onOpen:i(()=>O(!0),"onOpen")}):null,Gn=Gl===null&&Da===null?W:(0,z.jsxs)(z.Fragment,{children:[Da,Gl,W]});return(0,z.jsx)(Jc.Provider,{value:{issuer:y?.key===e.key?y.issuer:null,listed:y?.key===e.key?y.listed:[],set:T((M,el=[])=>g(jl=>jl?.key===e.key&&jl.issuer===M&&jl.listed.join()===el.join()?jl:{key:e.key,issuer:M,listed:el}),"set")},children:(0,z.jsx)(cr.Provider,{value:b,children:(0,z.jsx)(Fc.Provider,{value:A,children:(0,z.jsx)(Er.Provider,{value:l.handoffUrl,children:(0,z.jsxs)(ir.Provider,{value:Gn===null?null:{node:Gn,owner:s[0]??null,claim:p},children:[n?null:wu,!n&&e.kind!=="result"&&Xl.sections.length>1?(0,z.jsx)(xd,{context:Xl,current:e.section,i18n:u}):null,(0,z.jsx)(rr,{pageKey:e.key,children:il}),!n&&!It&&e.kind!=="result"&&e.context.switchable!==void 0?(0,z.jsx)(Cl,{view:"LaneSwitch",i18n:u,step:e,onOpen:i(()=>r(e.key),"onOpen"),quiet:!0},e.key):null,s.length===0?Gn:null,n?null:a?.footer!==void 0?a.footer:Xl.branding?.hideAttribution===!0?null:(0,z.jsxs)("a",{className:"sekyro-footer",href:"https://sekyro.ai",target:"_blank",rel:"noopener noreferrer",children:[(0,z.jsx)(se,{name:"lock"}),c("shell.verifiedBy")]})]})})})})})}i(Dd,"zr");T(Dd,"Body");function rf({org:l}){let{t:e}=Dl(),t=(0,k.useContext)(Wc);return t===void 0?null:(0,z.jsx)(cl,{full:!0,onClick:t,children:e("native.result.continue",{org:l})})}i(rf,"Wo");T(rf,"BackToOrg");function Cd({step:l}){return(0,z.jsx)(Pu.Consumer,{children:i(e=>(0,z.jsx)(Td,{step:l,...e!==void 0?{onClose:e}:{}}),"children")})}i(Cd,"Gr");T(Cd,"ResultPage");function kd(l){let e=l.levelName??l.purpose;return e==="contact"?"shell.subtitleContact":e==="human"?"shell.subtitleHuman":"shell.subtitle"}i(kd,"qr");T(kd,"subtitleKeyOf");function Bd({context:l,headerId:e,end:t,onBack:a}){let{t:n}=Dl(),[u,c]=(0,k.useState)(!1),f=u?void 0:l.branding?.logoUrl,o=l.orgName!==""?l.orgName:n(l.returning?"returning.heading":"session.title");return(0,z.jsx)("header",{className:"sekyro-stack sekyro-stack--3","aria-labelledby":e,children:(0,z.jsxs)("div",{className:"sekyro-org",children:[a!==void 0?(0,z.jsx)("button",{type:"button",className:"sekyro-disc sekyro-org__back","aria-label":n("common.back"),onClick:a,"data-testid":"sekyro-back",children:(0,z.jsx)(se,{name:"back"})}):null,(0,z.jsx)("span",{className:"sekyro-org__tile","aria-hidden":"true",children:f!==void 0?(0,z.jsx)("img",{className:"sekyro-org__logo",src:f,alt:"",onError:i(()=>c(!0),"onError")}):od(l.orgName)}),(0,z.jsxs)("div",{className:"sekyro-org__text",children:[(0,z.jsx)("h1",{id:e,className:"sekyro-org__name",children:o}),(0,z.jsx)("p",{className:"sekyro-org__sub",children:n(kd(l))})]}),l.sandbox?(0,z.jsx)("span",{className:"sekyro-sandbox-badge","data-testid":"sekyro-sandbox-badge",children:n("app.sandboxBadge")}):null,t!=null?(0,z.jsx)("div",{className:"sekyro-org__end",children:t}):null,(0,z.jsx)(Pu.Consumer,{children:i(s=>s!==void 0?(0,z.jsx)("button",{type:"button",className:"sekyro-disc sekyro-org__close","aria-label":n("native.close"),onClick:s,children:(0,z.jsx)(se,{name:"close"})}):null,"children")})]})})}i(Bd,"Yr");T(Bd,"OrgHeader");function xd({context:l,current:e,i18n:t}){let a=e===null?-1:l.sections.indexOf(e),n=l.progress,u=n!==void 0&&n.length===l.sections.length?n:l.sections.map((c,f)=>({id:c,state:f<a?"done":f===a?"current":"upcoming"}));return(0,z.jsx)("ol",{className:"sekyro-progress__bars","aria-label":t.t("session.progressLabel"),children:u.map(({id:c,state:f})=>(0,z.jsx)("li",{className:`sekyro-progress__bar${f==="done"?" is-done":f==="current"?" is-current":""}`,...f==="current"?{"aria-current":"step"}:{},children:(0,z.jsx)("span",{className:"sekyro-visually-hidden",children:t.strings[`section.${c}`]??c})},c))})}i(xd,"Wr");T(xd,"SectionProgress");function Hd(){return typeof window>"u"?"":window.location.href.split("#")[0]??""}i(Hd,"Qr");T(Hd,"pageUrl");function $v({hostedUrl:l,inAppBrowser:e,...t}){let[a,n]=(0,jn.useState)(e===!0);(0,jn.useEffect)(()=>{e===void 0&&Ar()&&n(!0)},[e]);let[u,c]=(0,jn.useState)(!1),f=pf(t.colorScheme??"light"),o=t.handoffUrl??l??Hd();return a&&!u?(0,ea.jsx)(nf,{theme:ai(vf(void 0,void 0,f),t.theme),className:`sekyro-verification${f?" sekyro-verification--dark":""}${t.className!==void 0?` ${t.className}`:""}`,children:(0,ea.jsx)(Pc,{locale:t.locale,...t.strings!==void 0?{strings:t.strings}:{},children:(0,ea.jsx)("div",{dir:t.dir??(t.locale==="ar"?"rtl":"ltr"),lang:t.locale,className:"sekyro-flow",children:(0,ea.jsx)(qd,{url:o,onContinue:i(()=>c(!0),"onContinue")})})})}):(0,ea.jsx)(oi,{...t,...o!==""?{handoffUrl:o}:{}})}i($v,"Xr");T($v,"SekyroFlow");function qd({url:l,onContinue:e}){let t=Dl();return(0,ea.jsx)(Cl,{view:"InAppBrowserPrompt",i18n:t,url:l,onContinue:e})}i(qd,"Jr");T(qd,"Prompt");var Yc=Q(Tl(),1),sv=Q(ov(),1);var rv=["ar","fr","en","es","pt","de"],Ng=["light","dark","system"];function _g(){if(typeof document>"u")return null;let l=document.documentElement.lang.toLowerCase().split("-")[0];return rv.includes(l)?l:null}i(_g,"documentLocale");var Mg=typeof HTMLElement>"u"?class{}:HTMLElement;function Og({node:l}){return(0,Yc.createElement)("div",{className:"sekyro-elements-slot",style:{display:"contents"},ref:i(e=>{e!==null&&l.parentNode!==e&&e.appendChild(l)},"ref")})}i(Og,"SlotNode");var mt,Oe,Mn,Ta,Aa,Ue,On,Ea,Na,_a,Un,Ma,Dn,q,Jt,Qe,Vc,Qc,Xc,jc,Lc,dv,dt,lr,mv,Lu,hv,yv,Zc=class Zc extends Mg{constructor(){super();vl(this,q);vl(this,mt,null);vl(this,Oe,null);vl(this,Mn,!1);vl(this,Ta,!1);vl(this,Aa,null);vl(this,Ue,null);vl(this,On,null);vl(this,Ea,new Map);vl(this,Na);vl(this,_a);vl(this,Un);vl(this,Ma);vl(this,Dn);vl(this,Vc,i(t=>X(this,q,Qe).call(this,"sekyro-step",t),"#onStep"));vl(this,Qc,i(t=>X(this,q,Qe).call(this,"sekyro-result",t),"#onResult"));vl(this,Xc,i(t=>X(this,q,Qe).call(this,"sekyro-close",t),"#onClose"));vl(this,jc,i(t=>X(this,q,Qe).call(this,"sekyro-liveness-captured",t),"#onCaptured"));vl(this,Lc,{onStateChange:i(t=>X(this,q,Qe).call(this,"sekyro-liveness-state",t),"onStateChange"),onGuidance:i(t=>X(this,q,Qe).call(this,"sekyro-liveness-guidance",t),"onGuidance"),onError:i(t=>X(this,q,Qe).call(this,"sekyro-liveness-error",t),"onError")});for(let t of[...tf.filter(a=>!("unreflected"in a)).map(a=>a.property),"verification","strings","theme","livenessProps","documentLiveMrz","voice"])if(Object.prototype.hasOwnProperty.call(this,t)){let a=this[t];delete this[t],this[t]=a}}get clientToken(){return this.getAttribute("client-token")}set clientToken(t){X(this,q,Jt).call(this,"client-token",t)}get apiOrigin(){return this.getAttribute("api-origin")}set apiOrigin(t){X(this,q,Jt).call(this,"api-origin",t)}get locale(){let t=this.getAttribute("locale");return t!==null&&rv.includes(t)?t:null}set locale(t){X(this,q,Jt).call(this,"locale",t)}get colorScheme(){let t=this.getAttribute("color-scheme");return t!==null&&Ng.includes(t)?t:null}set colorScheme(t){X(this,q,Jt).call(this,"color-scheme",t)}get assetBaseUrl(){return this.getAttribute("asset-base-url")}set assetBaseUrl(t){X(this,q,Jt).call(this,"asset-base-url",t)}get backNavigation(){let t=this.getAttribute("back-navigation");return t==="history"||t==="none"?t:null}set backNavigation(t){X(this,q,Jt).call(this,"back-navigation",t)}get handoffUrl(){return this.getAttribute("handoff-url")}set handoffUrl(t){X(this,q,Jt).call(this,"handoff-url",t)}get closable(){return this.hasAttribute("closable")}set closable(t){this.toggleAttribute("closable",!!t)}get verification(){return H(this,Aa)??H(this,Ue)}set verification(t){pl(this,Aa,t??null),X(this,q,dt).call(this)}get strings(){return H(this,Na)}set strings(t){pl(this,Na,t??void 0),X(this,q,dt).call(this)}get theme(){return H(this,_a)}set theme(t){pl(this,_a,t??void 0),X(this,q,dt).call(this)}get livenessProps(){return H(this,Un)}set livenessProps(t){pl(this,Un,t??void 0),X(this,q,dt).call(this)}get documentLiveMrz(){return H(this,Ma)}set documentLiveMrz(t){pl(this,Ma,t??void 0),X(this,q,dt).call(this)}get voice(){return H(this,Dn)}set voice(t){pl(this,Dn,t===null?void 0:t),X(this,q,dt).call(this)}connectedCallback(){pl(this,Ta,!1),X(this,q,dv).call(this),(H(this,Oe)===null||H(this,Oe).parentNode!==this)&&(pl(this,Oe,document.createElement("div")),H(this,Oe).className="sekyro-elements-root",this.appendChild(H(this,Oe))),H(this,mt)??pl(this,mt,(0,sv.createRoot)(H(this,Oe))),X(this,q,dt).call(this)}disconnectedCallback(){pl(this,Ta,!0),queueMicrotask(()=>{!H(this,Ta)||this.isConnected||(pl(this,Ta,!1),X(this,q,yv).call(this))})}attributeChangedCallback(t,a,n){a!==n&&X(this,q,dt).call(this)}};mt=new WeakMap,Oe=new WeakMap,Mn=new WeakMap,Ta=new WeakMap,Aa=new WeakMap,Ue=new WeakMap,On=new WeakMap,Ea=new WeakMap,Na=new WeakMap,_a=new WeakMap,Un=new WeakMap,Ma=new WeakMap,Dn=new WeakMap,q=new WeakSet,Jt=i(function(t,a){a==null?this.removeAttribute(t):this.setAttribute(t,String(a))},"#reflect"),Qe=i(function(t,a){this.dispatchEvent(new CustomEvent(t,{detail:a,bubbles:!0,composed:!0}))},"#emit"),Vc=new WeakMap,Qc=new WeakMap,Xc=new WeakMap,jc=new WeakMap,Lc=new WeakMap,dv=i(function(){for(let t of Array.from(this.children)){let a=t.getAttribute("slot");a===null||!kr.some(n=>n.name===a)||(H(this,Ea).set(a,t),t.remove())}},"#takeSlots"),dt=i(function(){H(this,Mn)||(pl(this,Mn,!0),queueMicrotask(()=>{pl(this,Mn,!1),this.isConnected&&H(this,mt)!==null&&X(this,q,hv).call(this)}))},"#schedule"),lr=i(function(){return this.locale??_g()??"en"},"#effectiveLocale"),mv=i(function(){if(H(this,Aa)!==null)return X(this,q,Lu).call(this),H(this,Aa);let t=this.clientToken;if(t===null||t==="")return X(this,q,Lu).call(this),null;let a=this.apiOrigin,n=`${t}\0${a??""}`;if(H(this,Ue)!==null&&H(this,On)===n)return H(this,Ue);X(this,q,Lu).call(this);try{pl(this,Ue,Eg({clientToken:t,locale:X(this,q,lr).call(this),...a!==null&&a!==""?{apiOrigin:a}:{}})),pl(this,On,n)}catch(u){return X(this,q,Qe).call(this,"sekyro-error",{error:u}),null}return X(this,q,Qe).call(this,"sekyro-ready",{verification:H(this,Ue)}),H(this,Ue)},"#currentVerification"),Lu=i(function(){H(this,Ue)?.destroy(),pl(this,Ue,null),pl(this,On,null)},"#dropOwned"),hv=i(function(){let t=X(this,q,mv).call(this);if(t===null){H(this,mt)?.render(null);return}let a=X(this,q,lr).call(this),n=this.getAttribute("dir"),u=H(this,Dn)??(this.getAttribute("voice")==="off"?!1:void 0),c=i(p=>{let m=H(this,Ea).get(p);return m===void 0?void 0:(0,Yc.createElement)(Og,{node:m})},"slot"),f=c("header"),o=c("header-end"),s=c("footer"),v={verification:t,locale:a,onStep:H(this,Vc),onResult:H(this,Qc),onLivenessCaptured:H(this,jc),livenessProps:{...H(this,Un),...H(this,Lc)},...n==="ltr"||n==="rtl"?{dir:n}:{},...this.colorScheme!==null?{colorScheme:this.colorScheme}:{},...this.assetBaseUrl!==null?{assetBaseUrl:this.assetBaseUrl}:{},...this.backNavigation!==null?{backNavigation:this.backNavigation}:{},...this.handoffUrl!==null?{handoffUrl:this.handoffUrl}:{},...this.closable?{onClose:H(this,Xc)}:{},...H(this,Na)!==void 0?{strings:H(this,Na)}:{},...H(this,_a)!==void 0?{theme:H(this,_a)}:{},...H(this,Ma)!==void 0?{documentLiveMrz:H(this,Ma)}:{},...u!==void 0?{voice:u}:{},...f!==void 0||o!==void 0||s!==void 0?{slots:{...f!==void 0?{header:f}:{},...o!==void 0?{headerEnd:o}:{},...s!==void 0?{footer:s}:{}}}:{}};H(this,mt)?.render((0,Yc.createElement)(oi,v))},"#render"),yv=i(function(){H(this,mt)?.unmount(),pl(this,mt,null),H(this,Oe)?.remove(),pl(this,Oe,null),X(this,q,Lu).call(this);for(let t of H(this,Ea).values())this.appendChild(t);H(this,Ea).clear()},"#teardown"),i(Zc,"SekyroVerificationElement"),er(Zc,"observedAttributes",tf.map(t=>t.name));var Gc=Zc;function Mb(){return typeof customElements>"u"?!1:(customElements.get(ef)===void 0&&customElements.define(ef,Gc),!0)}i(Mb,"defineSekyroElements");export{ef as a,tf as b,Ug as c,kr as d,Dg as e,Gc as f,Mb as g};
10
10
  /*! Bundled license information:
11
11
 
12
12
  scheduler/cjs/scheduler.production.js: