@camstack/addon-pipeline-orchestrator 1.2.666 → 1.2.668

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 (68) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/assets/viewer/.viewer-current-files.json +32 -32
  3. package/assets/viewer/.viewer-version +1 -1
  4. package/assets/viewer/_expo/static/js/web/{Clipboard-3c3c5a559a1968fdf0d9340338c8d3fa.js → Clipboard-b6e0c08e8e8c6723a16059e8a5f034d5.js} +8 -8
  5. package/assets/viewer/_expo/static/js/web/{Haptics-4770c6d7c73d2becf4ac20cfd82301e3.js → Haptics-837d56e745cc59bcc770303d4f3b2a38.js} +3 -3
  6. package/assets/viewer/_expo/static/js/web/{[frameId]-cdb0614ac0da3eb19aa5a6acb40b53d9.js → [frameId]-6678de89f250e616a6e8b31e484776f7.js} +23 -23
  7. package/assets/viewer/_expo/static/js/web/{[id]-0999e6e8d5ebe2bdf791bac89e29591f.js → [id]-274b188f325e7602d613a7d82b6ba93d.js} +2 -2
  8. package/assets/viewer/_expo/static/js/web/{[id]-78f7c87c88400a873d0b533e7c23f76a.js → [id]-49c4637772031ebb0b758071c909bdfc.js} +5 -5
  9. package/assets/viewer/_expo/static/js/web/{[id]-10140de1bf56b396cde6675b96ba5c04.js → [id]-5416a07ae546037a982b9b525bee40e1.js} +50 -46
  10. package/assets/viewer/_expo/static/js/web/{[id]-878bec264f82c5bf51489d485e24b207.js → [id]-822bd7753b2a6ce9eaae34189956b84d.js} +7 -7
  11. package/assets/viewer/_expo/static/js/web/{[id]-d0baf6b31342159fc081008ef1f2087f.js → [id]-987ae3321e809d96b4a4181a19298ebb.js} +5 -5
  12. package/assets/viewer/_expo/static/js/web/{[id]-f3da975fca51aba463a0f02017e72a65.js → [id]-c0f33d2f5fe793f731fd61c937d7b44c.js} +7 -7
  13. package/assets/viewer/_expo/static/js/web/{[section]-b4061c410ca784cb7f12b2b879f03353.js → [section]-1b5d8b74359eb108edd0901a92586041.js} +31 -31
  14. package/assets/viewer/_expo/static/js/web/{[section]-b015bac86cf9f4878c5e8039708fc7d1.js → [section]-a3c5edce4233f867497e894ed81facc6.js} +4 -4
  15. package/assets/viewer/_expo/static/js/web/{__common-5347bf558599c0f47249bb63f3bc8096.js → __common-26a6e690c38cd77825005af3ec9904c4.js} +1316 -1316
  16. package/assets/viewer/_expo/static/js/web/{__common-944a1711775677f5c7cba328efbb7eb2.js → __common-37966e866c55875c88781e525364c3ea.js} +1844 -1844
  17. package/assets/viewer/_expo/static/js/web/{_layout-fa940306541897e284d2e42a3dae7308.js → _layout-5f29482b8560e605cd84c264755889ee.js} +24 -24
  18. package/assets/viewer/_expo/static/js/web/_layout-7941849521c5563693c949ce2be84a2c.js +29 -0
  19. package/assets/viewer/_expo/static/js/web/{_layout-7910936c0d0224d3b6ecd4ed95567264.js → _layout-fa7def3815bd963af923f3fb0b28b8a4.js} +24 -24
  20. package/assets/viewer/_expo/static/js/web/{add-server-22cb2419b2b4842fe57d4a0f274fa271.js → add-server-c59be262439c5c4d3263dc368bf1d4d4.js} +2 -2
  21. package/assets/viewer/_expo/static/js/web/{add-server-dc8c504e936a81d69e40f6efa6ac7b2b.js → add-server-e6cd5c48f580b43fe7f9bfa9b44b7bf6.js} +2 -2
  22. package/assets/viewer/_expo/static/js/web/{alarm-1f8d7a07799cd782fefb469c10fd40cf.js → alarm-32ab52a1cb0128e69b1bfcc4cd1b219e.js} +1 -1
  23. package/assets/viewer/_expo/static/js/web/{cameras-aaa1d3a5f4a6869a6a431b827029ad93.js → cameras-5d2d0676a64f4c01b81004f9a5138152.js} +27 -27
  24. package/assets/viewer/_expo/static/js/web/{cameras-6a7062fac61db150930c4ea824098806.js → cameras-839bf8e4a9b15e2367b3d285e1e09af9.js} +27 -27
  25. package/assets/viewer/_expo/static/js/web/cameras-c1f38aa4390adb995b3f21311359b358.js +21 -0
  26. package/assets/viewer/_expo/static/js/web/{connect-a04da8316c872406a85fecfac72afb97.js → connect-b761b71002eee769adcc986f42b31c73.js} +2 -2
  27. package/assets/viewer/_expo/static/js/web/{connect-957cf51a12ddfd586657b560d0e1158c.js → connect-bbb28b4b4df5a85e8de5d0d3034e5445.js} +2 -2
  28. package/assets/viewer/_expo/static/js/web/{enroll-6fe018df6035905080abf2163931500a.js → enroll-63cdefaa7736905d95828d18ca705756.js} +19 -19
  29. package/assets/viewer/_expo/static/js/web/{enroll-c9eae027db722e770adf2f3ddec4cb87.js → enroll-782faf384e3ac476d89a394e99835835.js} +19 -19
  30. package/assets/viewer/_expo/static/js/web/events-4243a05bc2c5e164a505d4723673030d.js +79 -0
  31. package/assets/viewer/_expo/static/js/web/grids-c2e8e7178728973d43333f342ba15177.js +3 -0
  32. package/assets/viewer/_expo/static/js/web/{history-f3ca6446f63f97916169b69565a8a979.js → history-f1194b0400e1d3e475ff2c3863cfd09e.js} +3 -3
  33. package/assets/viewer/_expo/static/js/web/{index-c2e4074d6805fc38a186dd83bd4fd0a2.js → index-1545a88a03f2c8ae623784bc2030a56a.js} +2 -2
  34. package/assets/viewer/_expo/static/js/web/{index-de82fe372b81ea9a28bb8b5b8fbcce88.js → index-379be00b659341792684238227461217.js} +4 -4
  35. package/assets/viewer/_expo/static/js/web/{index-7fb91729ac1133d8e8e2873ea9046958.js → index-682c895d9ae6c5fd07258ad0335a89a2.js} +2 -2
  36. package/assets/viewer/_expo/static/js/web/{index-b2db94a55da06710686c8d231c3a160f.js → index-9c79a5153bc603a135ced9ee11b99464.js} +2 -2
  37. package/assets/viewer/_expo/static/js/web/{index-8c478ea1e5ddf090855b63d8b829a750.js → index-fd788c291d9b9de7d0895bb58b0549b7.js} +1 -1
  38. package/assets/viewer/_expo/static/js/web/{new-8119c7a239466b22805ca6d0e357cfc7.js → new-36acda0a3591819694bde23efa19d419.js} +2 -2
  39. package/assets/viewer/_expo/static/js/web/{new-41d5293ef3668dcabd305dd0cec83c60.js → new-e878bad89ab3055e4675ecf163c526cf.js} +2 -2
  40. package/assets/viewer/_expo/static/js/web/settings-a2c7e2a0eab3097de352e3bf17d37558.js +23 -0
  41. package/assets/viewer/_expo/static/js/web/{sign-in-dbc02d4e6ad3ca801a17f28438575a4e.js → sign-in-6d7c44c0e4b3a63d597c93c1aeebafa8.js} +38 -38
  42. package/assets/viewer/_expo/static/js/web/{sign-in-ac807c2017f1f0665288ee84bfc94787.js → sign-in-d85edd56c66340fb85a5962c7460fd4e.js} +38 -38
  43. package/assets/viewer/embed/assets/{MaskShapeCanvas-DI4BY7W2-DwhST5rm.js → MaskShapeCanvas-DI4BY7W2-OFXMXri-.js} +1 -1
  44. package/assets/viewer/embed/assets/{MotionZonesSettings-CiYjd-yl-Djy2GKmM.js → MotionZonesSettings-CiYjd-yl-BirmOvge.js} +1 -1
  45. package/assets/viewer/embed/assets/{PrivacyMaskSettings-BmRdUrPp-DpHYAfGf.js → PrivacyMaskSettings-BmRdUrPp-D7nMj8O6.js} +1 -1
  46. package/assets/viewer/embed/assets/{SceneMonitorEditor-J4Ix_0tu-4MX1nGnM.js → SceneMonitorEditor-J4Ix_0tu-03IFAET6.js} +1 -1
  47. package/assets/viewer/embed/assets/{index-DNz_mNxu.js → index-CVe7tetL.js} +3 -3
  48. package/assets/viewer/embed/index.html +1 -1
  49. package/assets/viewer/index.html +1 -1
  50. package/dist/_stub.js +2 -2
  51. package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_orchestrator_widgets-DwIPrVyT.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_orchestrator_widgets-CLnvB6ao.mjs} +2 -2
  52. package/dist/_virtual_mf___mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-aRBdTAvV.mjs +26 -0
  53. package/dist/_virtual_mf___mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-BgldU2G0.mjs +26 -0
  54. package/dist/{hostInit-CvQwlIiI.mjs → hostInit-B0JRyOPt.mjs} +2 -2
  55. package/dist/index.js +126 -14
  56. package/dist/index.mjs +126 -14
  57. package/dist/remoteEntry.js +1 -1
  58. package/package.json +2 -2
  59. package/assets/viewer/_expo/static/js/web/Clipboard-cba253dbeeeb383ce66f3c84fbe67025.js +0 -8
  60. package/assets/viewer/_expo/static/js/web/Haptics-7e9ec45cd804d266488ee605ff6b444f.js +0 -3
  61. package/assets/viewer/_expo/static/js/web/adhoc-1133eb81de4b1c92962e4111a874636e.js +0 -1
  62. package/assets/viewer/_expo/static/js/web/alarm-8c1402344adf58c18245c2a1da1a316b.js +0 -1
  63. package/assets/viewer/_expo/static/js/web/index-23b1ac33b59cd8940709dc955d98d7f4.js +0 -2
  64. package/assets/viewer/_expo/static/js/web/index-2d40982745027241350379ea664ebf48.js +0 -1
  65. package/assets/viewer/_expo/static/js/web/index-3b50c929438ccb1b9d91b59caed856d7.js +0 -1
  66. package/assets/viewer/_expo/static/js/web/index-cdd684984f16d19f8d2c87782de30fa6.js +0 -4
  67. package/dist/_virtual_mf___mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DfqFDwlL.mjs +0 -26
  68. package/dist/_virtual_mf___mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-Bvy1zYP3.mjs +0 -26
@@ -1,2 +1,2 @@
1
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return l}});var n=r(d[0]),t=r(d[1]),c=r(d[2]),u=r(d[3]),o=r(d[4]),s=r(d[5]);function l(){const l=(0,n.c)(4),{kind:f}=(0,t.useLocalSearchParams)();let j;l[0]!==f?(j=(0,c.parseKind)(f),l[0]=f,l[1]=j):j=l[1];const P=j;let S;return l[2]!==P?(S=void 0===P?(0,s.jsx)(u.KindPickerScreen,{}):(0,s.jsx)(o.RuleSummaryScreen,{id:"new",kind:P}),l[2]=P,l[3]=S):S=l[3],S}},765,[788,789,1397,1396,1395,10]);
2
- __d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.KindPickerScreen=function(){const e=(0,o.c)(23),{t:P}=(0,u.useTranslation)(),{colors:v}=(0,f.useTheme)(),C=(0,s.useRouter)(),z=(0,S.useAdminVerdict)();let A,I,_,N,R,G,H;e[0]!==P?(A=P("v2.nc.rules.kindPicker.title"),e[0]=P,e[1]=A):A=e[1];e[2]!==C?(I=()=>C.back(),e[2]=C,e[3]=I):I=e[3];e[4]!==v.foregroundSubtle?(_={color:v.foregroundSubtle,fontSize:14,paddingHorizontal:b.SPACING.xs},e[4]=v.foregroundSubtle,e[5]=_):_=e[5];e[6]!==P?(N=P("v2.nc.rules.kindPicker.subtitle"),e[6]=P,e[7]=N):N=e[7];e[8]!==_||e[9]!==N?(R=(0,k.jsx)(t.default,{style:_,children:N}),e[8]=_,e[9]=N,e[10]=R):R=e[10];e[11]!==v.border||e[12]!==v.foreground||e[13]!==v.foregroundSubtle||e[14]!==C||e[15]!==P||e[16]!==z?(G="pending"===z?(0,k.jsx)(j.EditorNotice,{}):(0,k.jsx)(n.default,{style:{borderRadius:b.RADIUS.lg,borderWidth:1,borderColor:v.border,overflow:"hidden"},children:(0,h.creatableKinds)("admin"===z).map((e,o)=>{const u=P((0,x.kindBlurbKey)(e),{defaultValue:""});return(0,k.jsxs)(l.default,{accessibilityRole:"button",onPress:()=>C.replace((0,p.ruleHref)("new",e)),style:{flexDirection:"row",alignItems:"center",gap:b.SPACING.md,paddingHorizontal:b.SPACING.lg,paddingVertical:b.SPACING.md,borderTopWidth:0===o?0:1,borderTopColor:v.border},children:[(0,k.jsxs)(n.default,{style:{flex:1,gap:2},children:[(0,k.jsx)(t.default,{style:{color:v.foreground,fontSize:15,fontWeight:"600"},children:P((0,h.kindLabelKey)(e))}),u.length>0?(0,k.jsx)(t.default,{style:{color:v.foregroundSubtle,fontSize:12,lineHeight:17},children:u}):null]}),(0,k.jsx)(c.ChevronRight,{size:18,color:v.foregroundSubtle})]},e)})}),e[11]=v.border,e[12]=v.foreground,e[13]=v.foregroundSubtle,e[14]=C,e[15]=P,e[16]=z,e[17]=G):G=e[17];e[18]!==A||e[19]!==I||e[20]!==R||e[21]!==G?(H=(0,k.jsxs)(y.EditorScroll,{title:A,onBack:I,children:[R,G]}),e[18]=A,e[19]=I,e[20]=R,e[21]=G,e[22]=H):H=e[22];return H};var o=r(d[0]);r(d[1]);var l=e(r(d[2])),t=e(r(d[3])),n=e(r(d[4])),u=r(d[5]),s=r(d[6]),c=r(d[7]),f=r(d[8]),b=r(d[9]),S=r(d[10]),h=r(d[11]),x=r(d[12]),p=r(d[13]),j=r(d[14]),y=r(d[15]),k=r(d[16])},1396,[788,16,247,193,114,818,789,838,790,836,965,1397,1358,1361,1359,1360,10]);
1
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return l}});var n=r(d[0]),t=r(d[1]),c=r(d[2]),u=r(d[3]),o=r(d[4]),s=r(d[5]);function l(){const l=(0,n.c)(4),{kind:f}=(0,t.useLocalSearchParams)();let j;l[0]!==f?(j=(0,c.parseKind)(f),l[0]=f,l[1]=j):j=l[1];const P=j;let S;return l[2]!==P?(S=void 0===P?(0,s.jsx)(u.KindPickerScreen,{}):(0,s.jsx)(o.RuleSummaryScreen,{id:"new",kind:P}),l[2]=P,l[3]=S):S=l[3],S}},765,[788,789,1398,1397,1396,10]);
2
+ __d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.KindPickerScreen=function(){const e=(0,o.c)(23),{t:P}=(0,u.useTranslation)(),{colors:v}=(0,f.useTheme)(),C=(0,s.useRouter)(),z=(0,S.useAdminVerdict)();let A,I,_,N,R,G,H;e[0]!==P?(A=P("v2.nc.rules.kindPicker.title"),e[0]=P,e[1]=A):A=e[1];e[2]!==C?(I=()=>C.back(),e[2]=C,e[3]=I):I=e[3];e[4]!==v.foregroundSubtle?(_={color:v.foregroundSubtle,fontSize:14,paddingHorizontal:b.SPACING.xs},e[4]=v.foregroundSubtle,e[5]=_):_=e[5];e[6]!==P?(N=P("v2.nc.rules.kindPicker.subtitle"),e[6]=P,e[7]=N):N=e[7];e[8]!==_||e[9]!==N?(R=(0,k.jsx)(t.default,{style:_,children:N}),e[8]=_,e[9]=N,e[10]=R):R=e[10];e[11]!==v.border||e[12]!==v.foreground||e[13]!==v.foregroundSubtle||e[14]!==C||e[15]!==P||e[16]!==z?(G="pending"===z?(0,k.jsx)(j.EditorNotice,{}):(0,k.jsx)(n.default,{style:{borderRadius:b.RADIUS.lg,borderWidth:1,borderColor:v.border,overflow:"hidden"},children:(0,h.creatableKinds)("admin"===z).map((e,o)=>{const u=P((0,x.kindBlurbKey)(e),{defaultValue:""});return(0,k.jsxs)(l.default,{accessibilityRole:"button",onPress:()=>C.replace((0,p.ruleHref)("new",e)),style:{flexDirection:"row",alignItems:"center",gap:b.SPACING.md,paddingHorizontal:b.SPACING.lg,paddingVertical:b.SPACING.md,borderTopWidth:0===o?0:1,borderTopColor:v.border},children:[(0,k.jsxs)(n.default,{style:{flex:1,gap:2},children:[(0,k.jsx)(t.default,{style:{color:v.foreground,fontSize:15,fontWeight:"600"},children:P((0,h.kindLabelKey)(e))}),u.length>0?(0,k.jsx)(t.default,{style:{color:v.foregroundSubtle,fontSize:12,lineHeight:17},children:u}):null]}),(0,k.jsx)(c.ChevronRight,{size:18,color:v.foregroundSubtle})]},e)})}),e[11]=v.border,e[12]=v.foreground,e[13]=v.foregroundSubtle,e[14]=C,e[15]=P,e[16]=z,e[17]=G):G=e[17];e[18]!==A||e[19]!==I||e[20]!==R||e[21]!==G?(H=(0,k.jsxs)(y.EditorScroll,{title:A,onBack:I,children:[R,G]}),e[18]=A,e[19]=I,e[20]=R,e[21]=G,e[22]=H):H=e[22];return H};var o=r(d[0]);r(d[1]);var l=e(r(d[2])),t=e(r(d[3])),n=e(r(d[4])),u=r(d[5]),s=r(d[6]),c=r(d[7]),f=r(d[8]),b=r(d[9]),S=r(d[10]),h=r(d[11]),x=r(d[12]),p=r(d[13]),j=r(d[14]),y=r(d[15]),k=r(d[16])},1397,[788,16,247,193,114,818,789,838,790,836,965,1398,1358,1361,1359,1360,10]);
@@ -0,0 +1,23 @@
1
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return o}});var t=r(d[0]),n=r(d[1]),c=r(d[2]);function o(){const o=(0,t.c)(1);let u;return o[0]===Symbol.for("react.memo_cache_sentinel")?(u=(0,c.jsx)(n.SettingsScreen,{}),o[0]=u):u=o[0],u}},752,[788,1040,10]);
2
+ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.SettingsScreen=function(){const e=(0,t.c)(26),{t:s}=(0,o.useTranslation)(),{colors:v}=(0,l.useTheme)(),b=(0,f.useTabScrollPadding)(S.SPACING["3xl"]),h=(0,u.useScreenActive)(),j=(0,_.useDeviceSettingsStore)(w),E=(0,_.useDeviceSettingsStore)(A);let G;e[0]!==j?(G=()=>new Set([j]),e[0]=j,e[1]=G):G=e[1];const[N,I]=(0,n.useState)(G);N.has(j)||I(new Set([...N,j]));let P,k,D,R,M;e[2]!==v.background?(P={flex:1,backgroundColor:v.background},e[2]=v.background,e[3]=P):P=e[3];e[4]!==s?(k=(0,p.buildSettingsSegments)(s),e[4]=s,e[5]=k):k=e[5];e[6]!==j||e[7]!==E||e[8]!==k?(D=(0,T.jsx)(x.ScopeBar,{options:k,value:j,onChange:E}),e[6]=j,e[7]=E,e[8]=k,e[9]=D):D=e[9];if(e[10]!==b||e[11]!==h||e[12]!==j||e[13]!==N){let t,n;e[15]!==j||e[16]!==N?(t=e=>N.has(e)||e===j,e[15]=j,e[16]=N,e[17]=t):t=e[17],e[18]!==b||e[19]!==h||e[20]!==j?(n=e=>(0,T.jsx)(c.default,{testID:`settings-segment-${e}`,style:{flex:1,display:e===j?"flex":"none"},children:(0,T.jsx)(y.KeyboardAwareScrollView,{contentContainerStyle:{paddingHorizontal:S.SCREEN_GUTTER,paddingTop:S.SPACING.xl,paddingBottom:b,gap:S.SPACING["2xl"]},children:(0,T.jsx)(C,{segment:e,active:h&&e===j})})},e),e[18]=b,e[19]=h,e[20]=j,e[21]=n):n=e[21],R=p.SETTINGS_SEGMENT_ORDER.filter(t).map(n),e[10]=b,e[11]=h,e[12]=j,e[13]=N,e[14]=R}else R=e[14];e[22]!==P||e[23]!==D||e[24]!==R?(M=(0,T.jsxs)(c.default,{style:P,children:[D,R]}),e[22]=P,e[23]=D,e[24]=R,e[25]=M):M=e[25];return M};var e,t=r(d[0]),n=r(d[1]),s=r(d[2]),c=(e=s)&&e.__esModule?e:{default:e},o=r(d[3]),l=r(d[4]),u=r(d[5]),S=r(d[6]),f=r(d[7]),x=r(d[8]),_=r(d[9]),p=r(d[10]),v=r(d[11]),b=r(d[12]),h=r(d[13]),j=r(d[14]),y=r(d[15]),T=r(d[16]);function A(e){return e.setSettingsSegment}function w(e){return e.settings.settingsSegment}function C(e){const n=(0,t.c)(5),{segment:s,active:c}=e;switch(s){case"account":{let e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,T.jsx)(v.AccountSegment,{}),n[0]=e):e=n[0],e}case"viewing":{let e;return n[1]===Symbol.for("react.memo_cache_sentinel")?(e=(0,T.jsx)(b.ViewingSegment,{}),n[1]=e):e=n[1],e}case"app":{let e;return n[2]===Symbol.for("react.memo_cache_sentinel")?(e=(0,T.jsx)(h.AppSegment,{}),n[2]=e):e=n[2],e}case"advanced":{let e;return n[3]!==c?(e=(0,T.jsx)(j.AdvancedSegment,{active:c}),n[3]=c,n[4]=e):e=n[4],e}}}},1040,[788,16,114,817,790,831,835,795,964,1062,1063,1041,1052,1054,1058,876,10]);
3
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SIGN_IN_METHODS_PATH",{enumerable:!0,get:function(){return h}}),e.AccountSegment=function(){const s=(0,n.c)(13),{t:h}=(0,t.useTranslation)(),{signOut:O}=(0,o.useServer)(),{data:b}=(0,c.useMe)();let p,A,T,M,P,y,I;s[0]!==b||s[1]!==h?(p=null==b?h("v2.settings.accountUnknown"):`${b.username} \xb7 ${b.isAdmin?h("v2.settings.roleAdmin"):h("v2.settings.roleViewer")}`,s[0]=b,s[1]=h,s[2]=p):p=s[2];s[3]!==O?(A=()=>{O()},s[3]=O,s[4]=A):A=s[4];s[5]!==p||s[6]!==A?(T=(0,f.jsx)(l.ServersSection,{accountValue:p,onOpenSignInMethods:x,onSignOut:A}),s[5]=p,s[6]=A,s[7]=T):T=s[7];s[8]===Symbol.for("react.memo_cache_sentinel")?(M=(0,f.jsx)(S.ThisDeviceSection,{}),P=(0,f.jsx)(v.TokensSection,{}),y=(0,f.jsx)(_.ActiveSessionsSection,{collapsible:!0}),s[8]=M,s[9]=P,s[10]=y):(M=s[8],P=s[9],y=s[10]);s[11]!==T?(I=(0,f.jsx)(j.ReauthProvider,{children:(0,f.jsxs)(u.SettingsGrid,{children:[T,M,P,y]})}),s[11]=T,s[12]=I):I=s[12];return I};var n=r(d[0]);r(d[1]);var t=r(d[2]),s=r(d[3]),o=r(d[4]),c=r(d[5]),u=r(d[6]),l=r(d[7]),S=r(d[8]),v=r(d[9]),_=r(d[10]),j=r(d[11]),f=r(d[12]);const h='/settings/sign-in';function x(){return s.router.push(h)}},1041,[788,16,817,789,988,965,1064,1042,1043,1048,1065,1066,10]);
4
+ __d(function(g,r,i,_a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.ServersSection=function(e){const t=(0,s.c)(57),{accountValue:o,onSignOut:n,onOpenSignInMethods:b}=e,{t:S}=(0,l.useTranslation)(),y=(0,u.useConfirm)(),w=(0,u.useNotice)(),{servers:P,server:O,token:R,switchServer:L,removeServer:U}=(0,c.useServer)(),A=x;let C;t[0]!==O?.id||t[1]!==w||t[2]!==L||t[3]!==S||t[4]!==R?(C=e=>{e.id===O?.id&&null!==R||L(e.id).then(e=>{"needs-login"===e.status?A(e.serverUrl):"switched"===e.status&&a.router.replace("/cameras")}).catch(e=>{w({title:S("v2.servers.switchFailed"),message:e instanceof Error?e.message:String(e)})})},t[0]=O?.id,t[1]=w,t[2]=L,t[3]=S,t[4]=R,t[5]=C):C=t[5];const M=C;let I;t[6]!==O?.id||t[7]!==y||t[8]!==U||t[9]!==S?(I=e=>{const s=e.id===O?.id;y({title:S("v2.servers.removeConfirmTitle",{name:(0,v.serverLabelOf)(e)}),message:S(s?"v2.servers.removeActiveConfirmBody":"v2.servers.removeConfirmBody"),confirmLabel:S("v2.servers.remove_cta"),destructive:!0}).then(s=>{s&&U(e.id)})},t[6]=O?.id,t[7]=y,t[8]=U,t[9]=S,t[10]=I):I=t[10];const T=I;let D,k,z,B,N,E,F,G,K,V,q;if(t[11]!==o||t[12]!==O?.id||t[13]!==T||t[14]!==M||t[15]!==b||t[16]!==P||t[17]!==S){let e;t[23]!==O?.id?(e=(e,s)=>e.id===O?.id?-1:s.id===O?.id?1:(s.lastUsedAt??0)-(e.lastUsedAt??0),t[23]=O?.id,t[24]=e):e=t[24];const s=[...P].sort(e);let n,l;D=f.Section,t[25]!==S?(k=S("v2.servers.title"),t[25]=S,t[26]=k):k=t[26],t[27]!==S?(n=S("v2.settings.account"),t[27]=S,t[28]=n):n=t[28],t[29]!==o||t[30]!==n?(z=(0,p.jsx)(h.Row,{icon:j.User,label:n,value:o}),t[29]=o,t[30]=n,t[31]=z):z=t[31],t[32]!==b||t[33]!==S?(B=void 0!==b?(0,p.jsx)(h.Row,{icon:j.KeyRound,label:S("v2.signIn.title"),onPress:b}):null,t[32]=b,t[33]=S,t[34]=B):B=t[34],t[35]!==O?.id||t[36]!==T||t[37]!==M?(l=e=>(0,p.jsx)(_,{server:e,active:e.id===O?.id,onPress:()=>M(e),onRemove:()=>T(e)},e.id),t[35]=O?.id,t[36]=T,t[37]=M,t[38]=l):l=t[38],N=s.map(l),t[11]=o,t[12]=O?.id,t[13]=T,t[14]=M,t[15]=b,t[16]=P,t[17]=S,t[18]=D,t[19]=k,t[20]=z,t[21]=B,t[22]=N}else D=t[18],k=t[19],z=t[20],B=t[21],N=t[22];t[39]!==S?(E=S("v2.servers.add"),t[39]=S,t[40]=E):E=t[40];t[41]===Symbol.for("react.memo_cache_sentinel")?(F=()=>A(),t[41]=F):F=t[41];t[42]!==E?(G=(0,p.jsx)(h.Row,{icon:j.Plus,label:E,onPress:F}),t[42]=E,t[43]=G):G=t[43];t[44]!==S?(K=S("v2.settings.signOut"),t[44]=S,t[45]=K):K=t[45];t[46]!==n||t[47]!==K?(V=(0,p.jsx)(h.Row,{icon:j.LogOut,label:K,danger:!0,onPress:n,last:!0}),t[46]=n,t[47]=K,t[48]=V):V=t[48];t[49]!==D||t[50]!==V||t[51]!==k||t[52]!==z||t[53]!==B||t[54]!==N||t[55]!==G?(q=(0,p.jsxs)(D,{title:k,children:[z,B,N,G,V]}),t[49]=D,t[50]=V,t[51]=k,t[52]=z,t[53]=B,t[54]=N,t[55]=G,t[56]=q):q=t[56];return q};var s=r(d[0]);r(d[1]);var t=e(r(d[2])),o=e(r(d[3])),n=e(r(d[4])),l=r(d[5]),a=r(d[6]),c=r(d[7]),v=r(d[8]),u=r(d[9]),f=r(d[10]),h=r(d[11]),b=r(d[12]),S=r(d[13]),y=r(d[14]),j=r(d[15]),p=r(d[16]);function x(e){a.router.push(void 0!==e?{pathname:"/add-server",params:{url:e}}:"/add-server")}function _(e){const a=(0,s.c)(29),{server:c,active:u,onPress:f,onRemove:x}=e,{t:_}=(0,l.useTranslation)(),{colors:w}=(0,b.useTheme)(),P=(0,y.useDateLocale)();let O;a[0]!==u||a[1]!==P||a[2]!==c||a[3]!==_?(O=u?_("v2.servers.active"):c.signedIn?void 0!==c.lastUsedAt?_("v2.servers.lastUsed",{date:new Date(c.lastUsedAt).toLocaleDateString(P,{day:"numeric",month:"short"})}):"":_("v2.servers.signedOut"),a[0]=u,a[1]=P,a[2]=c,a[3]=_,a[4]=O):O=a[4];const R=O,L=u?j.Check:j.Server;let U,A,C,M,I,T,D,k;return a[5]!==c?(U=(0,v.serverLabelOf)(c),a[5]=c,a[6]=U):U=a[6],a[7]===Symbol.for("react.memo_cache_sentinel")?(A={flexDirection:"row",alignItems:"center",gap:S.SPACING.lg},a[7]=A):A=a[7],a[8]!==u||a[9]!==w.foregroundMuted||a[10]!==w.primary||a[11]!==R?(C=R.length>0&&(0,p.jsx)(o.default,{style:{color:u?w.primary:w.foregroundMuted,fontSize:13},numberOfLines:1,children:R}),a[8]=u,a[9]=w.foregroundMuted,a[10]=w.primary,a[11]=R,a[12]=C):C=a[12],a[13]!==_?(M=_("v2.servers.remove"),a[13]=_,a[14]=M):M=a[14],a[15]!==w.foregroundSubtle?(I=(0,p.jsx)(j.Trash2,{size:16,color:w.foregroundSubtle}),a[15]=w.foregroundSubtle,a[16]=I):I=a[16],a[17]!==x||a[18]!==M||a[19]!==I?(T=(0,p.jsx)(t.default,{accessibilityRole:"button",accessibilityLabel:M,hitSlop:8,onPress:x,children:I}),a[17]=x,a[18]=M,a[19]=I,a[20]=T):T=a[20],a[21]!==C||a[22]!==T?(D=(0,p.jsxs)(n.default,{style:A,children:[C,T]}),a[21]=C,a[22]=T,a[23]=D):D=a[23],a[24]!==f||a[25]!==L||a[26]!==U||a[27]!==D?(k=(0,p.jsx)(h.Row,{icon:L,label:U,onPress:f,right:D}),a[24]=f,a[25]=L,a[26]=U,a[27]=D,a[28]=k):k=a[28],k}},1042,[788,16,247,193,114,817,789,988,1067,1005,870,1068,790,835,862,837,10]);
5
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.ThisDeviceSection=function(){const S=(0,l.c)(18),{t:j}=(0,n.useTranslation)(),f=(0,v.useDateLocale)(),{server:w}=(0,u.useServer)(),[D,R]=(0,t.useState)(!1),{record:p,available:P,startEnrollment:_,disconnect:y}=(0,h.useDeviceEnrollment)();let A;S[0]!==f?(A=l=>new Date(l).toLocaleDateString(f,{day:"numeric",month:"short",year:"numeric"}),S[0]=f,S[1]=A):A=S[1];const C=A;if(void 0===p||null===p&&!P)return null;let F,T,k,E;S[2]!==j?(F=j("v2.device.title"),S[2]=j,S[3]=F):F=S[3];S[4]!==C||S[5]!==y||S[6]!==p||S[7]!==_||S[8]!==j?(T=null===p?(0,x.jsx)(o.Row,{icon:s.Smartphone,label:j("v2.device.keepSignedIn"),value:j("v2.device.notSignedInForever"),onPress:()=>{_()},last:!0}):(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(o.Row,{icon:s.ShieldCheck,label:j("v2.device.status"),value:j("v2.device.statusActive")}),(0,x.jsx)(o.Row,{label:j("v2.device.expires"),value:C(p.notAfter)}),(0,x.jsx)(o.Row,{label:j("v2.device.lastRenewed"),value:C(p.issuedAt)}),(0,x.jsx)(o.Row,{icon:s.FileText,label:j("v2.device.certificateDetails"),onPress:()=>R(!0)}),(0,x.jsx)(o.Row,{icon:s.ShieldOff,label:j("v2.device.disconnect"),danger:!0,onPress:()=>{y()},last:!0})]}),S[4]=C,S[5]=y,S[6]=p,S[7]=_,S[8]=j,S[9]=T):T=S[9];S[10]!==D||S[11]!==p||S[12]!==w?.label?(k=null!==p?(0,x.jsx)(b.CertificateDetailsSheet,{visible:D,onClose:()=>R(!1),record:p,hubName:w?.label??null}):null,S[10]=D,S[11]=p,S[12]=w?.label,S[13]=k):k=S[13];S[14]!==F||S[15]!==T||S[16]!==k?(E=(0,x.jsxs)(c.Section,{title:F,children:[T,k]}),S[14]=F,S[15]=T,S[16]=k,S[17]=E):E=S[17];return E};var l=r(d[0]),t=r(d[1]),n=r(d[2]),s=r(d[3]),c=r(d[4]),o=r(d[5]),v=r(d[6]),u=r(d[7]),b=r(d[8]),h=r(d[9]),x=r(d[10])},1043,[788,16,817,837,870,1068,862,988,1044,1069,10]);
6
+ __d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.keyStorageOf=A,_e.CertificateDetailsSheet=function(e){const s=(0,t.c)(86),{visible:c,onClose:f,record:b,hubName:k}=e,{t:w}=(0,u.useTranslation)(),{colors:T}=(0,x.useTheme)(),C=(0,h.useDateLocale)(),[D,I]=(0,l.useState)(P);let G,M,R;s[0]!==c?(G=()=>{c&&I(Date.now())},M=[c],s[0]=c,s[1]=G,s[2]=M):(G=s[1],M=s[2]);(0,l.useEffect)(G,M),s[3]!==b.certPem?(R=(0,y.parseCertificate)(b.certPem),s[3]=b.certPem,s[4]=R):R=s[4];const N=R;let O;s[5]!==C?(O=e=>new Date(e).toLocaleString(C,{day:"numeric",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit"}),s[5]=C,s[6]=O):O=s[6];const Y=O;let _;s[7]!==D||s[8]!==w?(_=e=>{const t=(0,y.daysUntil)(e,D);return t<0?w("v2.device.details.expired"):w("v2.device.details.inDays",{count:t})},s[7]=D,s[8]=w,s[9]=_):_=s[9];const z=_;let H;s[10]!==T.foreground?(H=e=>(0,p.jsx)(n.default,{style:{color:T.foreground,fontSize:j.TYPOGRAPHY.size.lg,fontWeight:j.TYPOGRAPHY.weight.medium,marginTop:j.SPACING.md},children:e}),s[10]=T.foreground,s[11]=H):H=s[11];const B=H;let L,U,F,$,K,E,W,V,q,J,Q,X;s[12]!==w?(L=w("v2.device.details.close"),s[12]=w,s[13]=L):L=s[13];s[14]!==T.background?(U={backgroundColor:T.background,borderTopLeftRadius:j.RADIUS.xl,borderTopRightRadius:j.RADIUS.xl,padding:j.SPACING.xl,paddingBottom:j.SPACING["3xl"],maxHeight:"90%"},s[14]=T.background,s[15]=U):U=s[15];s[16]!==T.foreground?(F={color:T.foreground,fontSize:17,fontWeight:j.TYPOGRAPHY.weight.medium},s[16]=T.foreground,s[17]=F):F=s[17];s[18]!==w?($=w("v2.device.details.title"),s[18]=w,s[19]=$):$=s[19];s[20]!==$||s[21]!==F?(K=(0,p.jsx)(n.default,{style:F,children:$}),s[20]=$,s[21]=F,s[22]=K):K=s[22];s[23]!==T.danger||s[24]!==T.foregroundMuted||s[25]!==B||s[26]!==N.details||s[27]!==N.kind||s[28]!==N.step||s[29]!==z||s[30]!==Y||s[31]!==w?(E="unreadable"===N.kind?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(n.default,{testID:"cert-unreadable",style:{color:T.danger,marginTop:j.SPACING.md},children:w("v2.device.details.unreadable")}),(0,p.jsx)(n.default,{testID:"cert-unreadable-step",style:{color:T.foregroundMuted,fontSize:12,marginTop:j.SPACING.xs},children:`unreadable: ${N.step}`})]}):(0,p.jsxs)(p.Fragment,{children:[B(w("v2.device.details.certificate")),(0,p.jsx)(S,{label:w("v2.device.details.serial"),value:N.details.serialNumber}),(0,p.jsx)(S,{label:w("v2.device.details.fingerprint"),value:N.details.fingerprintSha256,copyLabel:w("v2.device.details.copyFingerprint")}),(0,p.jsx)(S,{label:w("v2.device.details.subject"),value:N.details.subject}),(0,p.jsx)(S,{label:w("v2.device.details.issuer"),value:N.details.issuer}),(0,p.jsx)(S,{label:w("v2.device.details.validFrom"),value:Y(N.details.notBefore)}),(0,p.jsx)(S,{label:w("v2.device.details.validUntil"),value:`${Y(N.details.notAfter)} (${z(N.details.notAfter)})`}),(0,p.jsx)(S,{label:w("v2.device.details.altNames"),value:N.details.subjectAltNames.join("\n")||w("v2.device.details.none")}),(0,p.jsx)(S,{label:w("v2.device.details.keyUsage"),value:N.details.extendedKeyUsage.join(", ")||w("v2.device.details.none")}),(0,p.jsx)(S,{label:w("v2.device.details.publicKey"),value:[N.details.publicKeyAlgorithm,N.details.curve].filter(Boolean).join(" ")}),(0,p.jsx)(S,{label:w("v2.device.details.signature"),value:N.details.signatureAlgorithm})]}),s[23]=T.danger,s[24]=T.foregroundMuted,s[25]=B,s[26]=N.details,s[27]=N.kind,s[28]=N.step,s[29]=z,s[30]=Y,s[31]=w,s[32]=E):E=s[32];s[33]!==B||s[34]!==w?(W=B(w("v2.device.details.thisDevice")),s[33]=B,s[34]=w,s[35]=W):W=s[35];s[36]!==w?(V=w("v2.device.details.hub"),s[36]=w,s[37]=V):V=s[37];s[38]!==k||s[39]!==b.hubOrigin||s[40]!==w?(q=[k,b.hubOrigin].filter(Boolean).join(" \xb7 ")||w("v2.device.details.unknown"),s[38]=k,s[39]=b.hubOrigin,s[40]=w,s[41]=q):q=s[41];s[42]!==V||s[43]!==q?(J=(0,p.jsx)(S,{label:V,value:q}),s[42]=V,s[43]=q,s[44]=J):J=s[44];s[45]!==w?(Q=w("v2.device.details.keyStorage"),s[45]=w,s[46]=Q):Q=s[46];s[47]!==b.keyHardwareBacked?(X=A("web",b.keyHardwareBacked),s[47]=b.keyHardwareBacked,s[48]=X):X=s[48];const Z=`v2.device.details.storage.${X}`;let ee,te,le,ie,de,ae,re,se,oe,ne;s[49]!==w||s[50]!==Z?(ee=w(Z),s[49]=w,s[50]=Z,s[51]=ee):ee=s[51];s[52]!==Q||s[53]!==ee?(te=(0,p.jsx)(S,{label:Q,value:ee}),s[52]=Q,s[53]=ee,s[54]=te):te=s[54];s[55]!==w?(le=w("v2.device.details.enrolledAt"),s[55]=w,s[56]=le):le=s[56];s[57]!==b.enrolledAt||s[58]!==Y||s[59]!==w?(ie=void 0===b.enrolledAt?w("v2.device.details.unknown"):Y(b.enrolledAt),s[57]=b.enrolledAt,s[58]=Y,s[59]=w,s[60]=ie):ie=s[60];s[61]!==le||s[62]!==ie?(de=(0,p.jsx)(S,{label:le,value:ie}),s[61]=le,s[62]=ie,s[63]=de):de=s[63];s[64]!==w?(ae=w("v2.device.lastRenewed"),s[64]=w,s[65]=ae):ae=s[65];s[66]!==b.issuedAt||s[67]!==Y?(re=Y(b.issuedAt),s[66]=b.issuedAt,s[67]=Y,s[68]=re):re=s[68];s[69]!==ae||s[70]!==re?(se=(0,p.jsx)(S,{label:ae,value:re}),s[69]=ae,s[70]=re,s[71]=se):se=s[71];s[72]!==K||s[73]!==E||s[74]!==W||s[75]!==J||s[76]!==te||s[77]!==de||s[78]!==se?(oe=(0,p.jsxs)(o.default,{children:[K,E,W,J,te,de,se]}),s[72]=K,s[73]=E,s[74]=W,s[75]=J,s[76]=te,s[77]=de,s[78]=se,s[79]=oe):oe=s[79];s[80]!==f||s[81]!==oe||s[82]!==L||s[83]!==U||s[84]!==c?(ne=(0,p.jsx)(v.SheetModal,{visible:c,onClose:f,testID:"cert-details-sheet",backdropLabel:L,sheetStyle:U,children:oe}),s[80]=f,s[81]=oe,s[82]=L,s[83]=U,s[84]=c,s[85]=ne):ne=s[85];return ne};var t=r(d[0]),l=r(d[1]);r(d[2]);var s=e(r(d[3])),o=e(r(d[4])),n=e(r(d[5])),c=e(r(d[6])),u=r(d[7]),v=r(d[8]),f=r(d[9]),b=r(d[10]),h=r(d[11]),x=r(d[12]),j=r(d[13]),y=r(d[14]),p=r(d[15]);function A(e,t){return void 0===t?'unknown':t?'ios'===e?'secureEnclave':'hardware':'software'}function S(e){const l=(0,t.c)(22),{label:o,value:u,copyLabel:v}=e,{colors:h}=(0,x.useTheme)();let y,A,S,P,k,w,T,C,D;return l[0]===Symbol.for("react.memo_cache_sentinel")?(y={gap:2,paddingVertical:j.SPACING.sm},l[0]=y):y=l[0],l[1]!==h.foregroundMuted?(A={color:h.foregroundMuted,fontSize:j.TYPOGRAPHY.size.sm},l[1]=h.foregroundMuted,l[2]=A):A=l[2],l[3]!==o||l[4]!==A?(S=(0,p.jsx)(n.default,{style:A,children:o}),l[3]=o,l[4]=A,l[5]=S):S=l[5],l[6]===Symbol.for("react.memo_cache_sentinel")?(P={flexDirection:"row",alignItems:"center",gap:j.SPACING.sm},l[6]=P):P=l[6],l[7]!==h.foreground?(k={color:h.foreground,fontSize:j.TYPOGRAPHY.size.md,flexShrink:1},l[7]=h.foreground,l[8]=k):k=l[8],l[9]!==k||l[10]!==u?(w=(0,p.jsx)(n.default,{selectable:!0,style:k,children:u}),l[9]=k,l[10]=u,l[11]=w):w=l[11],l[12]!==h.foregroundMuted||l[13]!==v||l[14]!==u?(T=void 0!==v?(0,p.jsx)(s.default,{accessibilityRole:"button",accessibilityLabel:v,hitSlop:8,onPress:()=>{(0,b.copyText)(u)},children:(0,p.jsx)(f.Copy,{size:16,color:h.foregroundMuted})}):null,l[12]=h.foregroundMuted,l[13]=v,l[14]=u,l[15]=T):T=l[15],l[16]!==w||l[17]!==T?(C=(0,p.jsxs)(c.default,{style:P,children:[w,T]}),l[16]=w,l[17]=T,l[18]=C):C=l[18],l[19]!==S||l[20]!==C?(D=(0,p.jsxs)(c.default,{style:y,children:[S,C]}),l[19]=S,l[20]=C,l[21]=D):D=l[21],D}function P(){return Date.now()}},1044,[788,16,109,247,138,193,114,817,869,837,1070,862,790,835,1045,10]);
7
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.parseCertificate=function(t){try{return{kind:'ok',details:y(t)}}catch(t){return{kind:'unreadable',step:t instanceof h?t.step:'unexpected'}}},e.daysUntil=function(t,n){return Math.floor((t-n)/864e5)};var t=r(d[0]),n=r(d[1]);const c={'2.5.4.3':'CN','2.5.4.6':'C','2.5.4.7':'L','2.5.4.8':'ST','2.5.4.10':'O','2.5.4.11':'OU'},o={'1.2.840.10045.4.3.2':'ECDSA with SHA-256','1.2.840.10045.4.3.3':'ECDSA with SHA-384','1.2.840.10045.4.3.4':'ECDSA with SHA-512','1.2.840.113549.1.1.11':'RSA with SHA-256','1.3.101.112':'Ed25519'},s={'1.2.840.10045.2.1':'EC','1.2.840.113549.1.1.1':'RSA'},u={'1.2.840.10045.3.1.7':'P-256','1.3.132.0.34':'P-384','1.3.132.0.35':'P-521'},l={'1.3.6.1.5.5.7.3.1':'serverAuth','1.3.6.1.5.5.7.3.2':'clientAuth'},T='2.5.29.17',p='2.5.29.37';function A(n){const c=/-----BEGIN CERTIFICATE-----([\s\S]+?)-----END CERTIFICATE-----/.exec(n);if(null===c)throw new t.DerError('no certificate block');const o=(c[1]??'').replace(/\s+/g,'');if(0===o.length)throw new t.DerError('bad base64');return(0,t.base64Decode)(o)}function f(t,n){try{return n()}catch(n){if(n instanceof h)throw n;throw new h(t,n instanceof Error?n.message:String(n))}}class h extends Error{constructor(t,n){super(`${t}: ${n}`),this.step=t}}function x(n){const o=[];for(const s of(0,t.children)((0,t.expectTag)(n,t.TAG.sequence)))for(const n of(0,t.children)((0,t.expectTag)(s,t.TAG.set))){const[s,u]=(0,t.children)((0,t.expectTag)(n,t.TAG.sequence));if(void 0===s||void 0===u)throw new t.DerError('bad name attribute');const l=(0,t.decodeOid)((0,t.expectTag)(s,t.TAG.oid).body);o.push(`${c[l]??l}=${(0,t.decodeString)(u)}`)}return o.join(', ')}function b(n){const[c,o]=(0,t.children)((0,t.expectTag)(n,t.TAG.sequence));return{oid:(0,t.decodeOid)((0,t.expectTag)(c,t.TAG.oid).body),param:o}}function G(n){const c=n.find(n=>n.tag===t.TAG.ctx3),o=new Map;if(void 0===c)return o;for(const n of(0,t.children)((0,t.expectTag)((0,t.children)(c)[0],t.TAG.sequence))){const c=(0,t.children)((0,t.expectTag)(n,t.TAG.sequence)),s=(0,t.decodeOid)((0,t.expectTag)(c[0],t.TAG.oid).body),u=(0,t.expectTag)(c[c.length-1],t.TAG.octetString);o.set(s,(0,t.parseDer)(u.body))}return o}function y(c){const h=f('pem',()=>A(c)),y=f('certificate',()=>(0,t.children)((0,t.expectTag)((0,t.parseDer)(h),t.TAG.sequence))),w=f('tbs',()=>(0,t.children)((0,t.expectTag)(y[0],t.TAG.sequence))),S=w[0]?.tag===t.TAG.ctx0?1:0,v=f('serial',()=>(0,t.expectTag)(w[S],t.TAG.integer)),C=f('issuer',()=>x(E(w[S+2]))),D=f('validity',()=>{const[n,c]=(0,t.children)((0,t.expectTag)(w[S+3],t.TAG.sequence));return{notBefore:(0,t.decodeTime)(E(n)),notAfter:(0,t.decodeTime)(E(c))}}),q=f('subject',()=>x(E(w[S+4]))),O=f('public key',()=>{const n=b((0,t.children)((0,t.expectTag)(w[S+5],t.TAG.sequence))[0]),c=n.param?.tag===t.TAG.oid?(0,t.decodeOid)(n.param.body):null;return{publicKeyAlgorithm:s[n.oid]??n.oid,curve:null===c?null:u[c]??c}}),j=f('signature algorithm',()=>b(y[1]).oid),k=f('extensions',()=>G(w));return{serialNumber:(0,t.toHex)(v.body).replace(/^(00)+(?=.)/,'').toUpperCase(),fingerprintSha256:(0,t.toHex)((0,n.sha256)(h)).toUpperCase().replace(/(..)(?!$)/g,'$1:'),subject:q,issuer:C,...D,subjectAltNames:f('subject alt names',()=>{return void 0===(n=k.get(T))?[]:(0,t.children)((0,t.expectTag)(n,t.TAG.sequence)).flatMap(n=>n.tag===t.TAG.uri?[(0,t.utf8Decode)(n.body)]:[]);var n}),extendedKeyUsage:f('extended key usage',()=>{return void 0===(n=k.get(p))?[]:(0,t.children)((0,t.expectTag)(n,t.TAG.sequence)).map(n=>{const c=(0,t.decodeOid)((0,t.expectTag)(n,t.TAG.oid).body);return l[c]??c});var n}),...O,signatureAlgorithm:o[j]??j}}function E(n){if(void 0===n)throw new t.DerError('missing field');return n}},1045,[1046,1047]);
8
+ __d(function(g,r,_i,a,m,e,_d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DerError",{enumerable:!0,get:function(){return t}}),e.latin1Decode=n,e.utf8Decode=o,e.base64Decode=function(n){const o=n.replace(/=+$/,'');if(o.length%4==1)throw new t('bad base64');const d=new Uint8Array(Math.floor(3*o.length/4));let c=0,u=0,f=0;for(const n of o){const o=i.indexOf(n);if(o<0)throw new t('bad base64');c=c<<6|o,u+=6,u>=8&&(u-=8,d[f]=c>>u&255,f+=1)}return d},Object.defineProperty(e,"TAG",{enumerable:!0,get:function(){return d}}),e.children=function(t){const n=[];let o=0;for(;o<t.body.length;){const{tlv:i,next:d}=c(t.body,o);n.push(i),o=d}return n},e.parseDer=function(n){const{tlv:o,next:i}=c(n,0);if(i!==n.length)throw new t('trailing bytes');return o},e.expectTag=function(n,o){if(void 0===n||n.tag!==o)throw new t(`expected tag 0x${o.toString(16)}`);return n},e.decodeOid=function(n){const o=n[0];if(void 0===o)throw new t('empty OID');const i=[Math.floor(o/40),o%40];let d=0;for(let t=1;t<n.length;t+=1){const o=n[t]??0;d=128*d+(127&o),128&o||(i.push(d),d=0)}return i.join('.')},e.toHex=function(t){return Array.from(t,t=>t.toString(16).padStart(2,'0')).join('')},e.decodeString=function(i){if(!u.has(i.tag))throw new t('not a string');return i.tag===d.utf8?o(i.body):n(i.body)},e.decodeTime=function(o){const i=n(o.body),c=o.tag===d.generalizedTime,u=(c?/^(\d{4})(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)Z$/:/^(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)Z$/).exec(i);if(null===u)throw new t('unreadable time');const[f,s,l,h,w,b]=u.slice(1).map(Number),p=c?f??0:(f??0)>=50?1900+(f??0):2e3+(f??0);return Date.UTC(p,(s??1)-1,l??1,h??0,w??0,b??0)};class t extends Error{}function n(t){let n='';for(const o of t)n+=String.fromCharCode(o);return n}function o(t){let n='',o=0;for(;o<t.length;){const i=t[o]??0,d=i>=240?3:i>=224?2:i>=192?1:0;if(i>=128&&0===d){n+='\ufffd',o+=1;continue}let c=0===d?i:i&63>>d,u=o+d<t.length;for(let n=1;u&&n<=d;n+=1){const i=t[o+n]??0;128!=(192&i)?u=!1:c=64*c+(63&i)}!u||c>1114111?(n+='\ufffd',o+=1):(n+=String.fromCodePoint(c),o+=d+1)}return n}const i='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';const d={integer:2,bitString:3,octetString:4,oid:6,utf8:12,printable:19,t61:20,ia5:22,utcTime:23,generalizedTime:24,sequence:48,set:49,ctx0:160,ctx3:163,uri:134};function c(n,o){const i=n[o],d=n[o+1];if(void 0===i||void 0===d)throw new t('truncated header');let c=d,u=o+2;if(128&d){const o=127&d;if(0===o||o>4)throw new t('unsupported length');c=0;for(let i=0;i<o;i+=1){const o=n[u+i];if(void 0===o)throw new t('truncated length');c=256*c+o}u+=o}const f=u+c;if(f>n.length)throw new t('content overruns its parent');return{tlv:{tag:i,body:n.subarray(u,f)},next:f}}const u=new Set([d.utf8,d.printable,d.t61,d.ia5])},1046,[]);
9
+ __d(function(_g,r,_i,_a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.sha256=function(n){const o=new Uint8Array(n.length+9+63>>6<<6);o.set(n),o[n.length]=128;const l=new DataView(o.buffer);l.setUint32(o.length-8,Math.floor(8*n.length/4294967296)),l.setUint32(o.length-4,8*n.length>>>0);const s=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),i=new Uint32Array(64);for(let n=0;n<o.length;n+=64){for(let t=0;t<16;t+=1)i[t]=l.getUint32(n+4*t);for(let t=16;t<64;t+=1){const n=i[t-15]??0,o=i[t-2]??0,l=e(n,7)^e(n,18)^n>>>3,s=e(o,17)^e(o,19)^o>>>10;i[t]=(i[t-16]??0)+l+(i[t-7]??0)+s>>>0}let[o,f,a,c,h,w,U,g]=s;o??=0,f??=0,a??=0,c??=0,h??=0,w??=0,U??=0,g??=0;for(let n=0;n<64;n+=1){const l=g+(e(h,6)^e(h,11)^e(h,25))+(h&w^~h&U)+(t[n]??0)+(i[n]??0)>>>0,s=(e(o,2)^e(o,13)^e(o,22))+(o&f^o&a^f&a)>>>0;g=U,U=w,w=h,h=c+l>>>0,c=a,a=f,f=o,o=l+s>>>0}const u=[o,f,a,c,h,w,U,g];for(let t=0;t<8;t+=1)s[t]=(s[t]??0)+(u[t]??0)>>>0}const f=new Uint8Array(32),a=new DataView(f.buffer);return s.forEach((t,e)=>a.setUint32(4*e,t)),f};const t=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),e=(t,e)=>t>>>e|t<<32-e},1047,[]);
10
+ __d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.TokensSection=function(){const e=(0,t.c)(44),{t:n}=(0,u.useTranslation)(),l=(0,p.useTokenText)(),{data:s}=(0,h.useMe)(),S=(0,y.useTokens)(),{data:x}=(0,k.useCameras)(),[I,z]=(0,o.useState)(!1),[D,A]=(0,o.useState)(null),[E]=(0,o.useState)(Date.now);if(null===S.data)return null;let H,L,N,O,G,K,B,F,V,W,$,q;if(e[0]!==x||e[1]!==s||e[2]!==E||e[3]!==n||e[4]!==l||e[5]!==S){const t=void 0!==s&&void 0!==S.data?(0,v.ownTokens)(S.data,s.id):null;let o,u;e[13]!==x?(o=x??[],e[13]=x,e[14]=o):o=e[14],e[15]!==o?(u=o.map(M),e[15]=o,e[16]=u):u=e[16],L=u,H=f.Section,e[17]!==n?(N=n("v2.tokens.title"),e[17]=n,e[18]=N):N=e[18],O=!0,G=null!==t&&t.length>0?String(t.length):void 0,K="tokens-section",B=null===t?S.isError?(0,P.jsx)(_.ErrorState,{fill:!1,title:n("v2.tokens.loadFailed"),onRetry:()=>{S.refetch()}}):(0,P.jsx)(b.Row,{icon:c.KeyRound,label:n("v2.tokens.loading")}):0===t.length?(0,P.jsx)(_.EmptyState,{fill:!1,icon:c.KeyRound,title:n("v2.tokens.empty")}):t.map(e=>(0,P.jsx)(R,{token:e,now:E,text:l,onPress:()=>A(e)},e.id)),e[0]=x,e[1]=s,e[2]=E,e[3]=n,e[4]=l,e[5]=S,e[6]=H,e[7]=L,e[8]=N,e[9]=O,e[10]=G,e[11]=K,e[12]=B}else H=e[6],L=e[7],N=e[8],O=e[9],G=e[10],K=e[11],B=e[12];e[19]!==n?(F=n("v2.tokens.new"),e[19]=n,e[20]=F):F=e[20];e[21]===Symbol.for("react.memo_cache_sentinel")?(V=()=>z(!0),e[21]=V):V=e[21];e[22]!==F?(W=(0,P.jsx)(b.Row,{icon:c.Plus,label:F,onPress:V,last:!0}),e[22]=F,e[23]=W):W=e[23];e[24]!==H||e[25]!==N||e[26]!==O||e[27]!==G||e[28]!==K||e[29]!==B||e[30]!==W?($=(0,P.jsxs)(H,{title:N,collapsible:O,titleValue:G,testID:K,children:[B,W]}),e[24]=H,e[25]=N,e[26]=O,e[27]=G,e[28]=K,e[29]=B,e[30]=W,e[31]=$):$=e[31];e[32]===Symbol.for("react.memo_cache_sentinel")?(q=()=>z(!1),e[32]=q):q=e[32];const J=!0===s?.isAdmin?C:T;let Q,U,X,Y;e[33]!==L||e[34]!==I||e[35]!==J?(Q=(0,P.jsx)(j.NewTokenSheet,{visible:I,onClose:q,cameras:L,permissions:J}),e[33]=L,e[34]=I,e[35]=J,e[36]=Q):Q=e[36];e[37]===Symbol.for("react.memo_cache_sentinel")?(U=()=>A(null),e[37]=U):U=e[37];e[38]!==D?(X=(0,P.jsx)(w.TokenDetailSheet,{token:D,onClose:U}),e[38]=D,e[39]=X):X=e[39];e[40]!==Q||e[41]!==X||e[42]!==$?(Y=(0,P.jsxs)(P.Fragment,{children:[$,Q,X]}),e[40]=Q,e[41]=X,e[42]=$,e[43]=Y):Y=e[43];return Y};var t=r(d[0]),o=r(d[1]),n=e(r(d[2])),l=e(r(d[3])),s=e(r(d[4])),u=r(d[5]),c=r(d[6]),f=r(d[7]),b=r(d[8]),S=r(d[9]),x=r(d[10]),h=r(d[11]),k=r(d[12]),y=r(d[13]),v=r(d[14]),p=r(d[15]),j=r(d[16]),w=r(d[17]),_=r(d[18]),P=r(d[19]);const T=['view','view-talk'],C=['view','view-talk','admin'];function M(e){return{id:e.id,name:e.name}}function R(e){const o=(0,t.c)(43),{token:u,now:f,text:b,onPress:h}=e,{colors:k}=(0,S.useTheme)();let y;o[0]!==f||o[1]!==u?(y=(0,v.tokenExpiry)(u,f),o[0]=f,o[1]=u,o[2]=y):y=o[2];const p=y,j="soon"===p,w=u.label,_=`token-row-${u.id}`;let T;o[3]!==k.borderSubtle||o[4]!==k.surfaceHover||o[5]!==p?(T=e=>{const{pressed:t}=e;return{flexDirection:"row",alignItems:"center",gap:x.SPACING.lg,paddingHorizontal:x.SPACING.xl,paddingVertical:x.SPACING.lg,borderBottomWidth:1,borderBottomColor:k.borderSubtle,backgroundColor:t?k.surfaceHover:"transparent",opacity:"expired"===p?.6:1}},o[3]=k.borderSubtle,o[4]=k.surfaceHover,o[5]=p,o[6]=T):T=o[6];const C=j?k.warning:k.foregroundMuted;let M,R,I,z,D,A,E;o[7]!==C?(M=(0,P.jsx)(c.KeyRound,{size:18,color:C}),o[7]=C,o[8]=M):M=o[8],o[9]===Symbol.for("react.memo_cache_sentinel")?(R={flex:1,gap:2},o[9]=R):R=o[9],o[10]!==k.foreground?(I={color:k.foreground,fontSize:15,fontWeight:"500"},o[10]=k.foreground,o[11]=I):I=o[11],o[12]!==I||o[13]!==u.label?(z=(0,P.jsx)(l.default,{style:I,numberOfLines:1,children:u.label}),o[12]=I,o[13]=u.label,o[14]=z):z=o[14],o[15]!==k.foregroundMuted?(D={color:k.foregroundMuted,fontSize:13},o[15]=k.foregroundMuted,o[16]=D):D=o[16],o[17]!==b||o[18]!==u?(A=b.scopes(u),o[17]=b,o[18]=u,o[19]=A):A=o[19],o[20]!==D||o[21]!==A?(E=(0,P.jsx)(l.default,{style:D,numberOfLines:1,children:A}),o[20]=D,o[21]=A,o[22]=E):E=o[22];const H=j?k.warning:k.foregroundSubtle;let L,N,O,G,K;return o[23]!==H?(L={color:H,fontSize:12},o[23]=H,o[24]=L):L=o[24],o[25]!==f||o[26]!==b||o[27]!==u?(N=b.dates(u,f),o[25]=f,o[26]=b,o[27]=u,o[28]=N):N=o[28],o[29]!==L||o[30]!==N?(O=(0,P.jsx)(l.default,{style:L,numberOfLines:2,children:N}),o[29]=L,o[30]=N,o[31]=O):O=o[31],o[32]!==E||o[33]!==O||o[34]!==z?(G=(0,P.jsxs)(s.default,{style:R,children:[z,E,O]}),o[32]=E,o[33]=O,o[34]=z,o[35]=G):G=o[35],o[36]!==h||o[37]!==G||o[38]!==_||o[39]!==T||o[40]!==M||o[41]!==u.label?(K=(0,P.jsxs)(n.default,{accessibilityRole:"button",accessibilityLabel:w,onPress:h,testID:_,style:T,children:[M,G]}),o[36]=h,o[37]=G,o[38]=_,o[39]=T,o[40]=M,o[41]=u.label,o[42]=K):K=o[42],K}},1048,[788,16,247,193,114,817,837,870,1068,790,835,965,827,1071,986,1072,1049,1051,975,10]);
11
+ __d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.NewTokenSheet=function(e){const t=(0,n.c)(12),{visible:s,onClose:o,cameras:l,permissions:c}=e,{colors:x}=(0,k.useTheme)();let f,p,b;t[0]!==x.background?(f={backgroundColor:x.background,borderTopLeftRadius:h.RADIUS.xl,borderTopRightRadius:h.RADIUS.xl,maxHeight:"90%"},t[0]=x.background,t[1]=f):f=t[1];t[2]!==l||t[3]!==o||t[4]!==c||t[5]!==s?(p=s?(0,T.jsx)(y,{onClose:o,cameras:l,permissions:c}):null,t[2]=l,t[3]=o,t[4]=c,t[5]=s,t[6]=p):p=t[6];t[7]!==o||t[8]!==f||t[9]!==p||t[10]!==s?(b=(0,T.jsx)(u.SheetModal,{visible:s,onClose:o,testID:"new-token-sheet",sheetStyle:f,children:p}),t[7]=o,t[8]=f,t[9]=p,t[10]=s,t[11]=b):b=t[11];return b},_e.draftRequest=C;var n=r(d[0]),t=r(d[1]),s=e(r(d[2])),o=e(r(d[3])),l=r(d[4]),u=r(d[5]),c=r(d[6]),k=r(d[7]),h=r(d[8]),x=r(d[9]),f=r(d[10]),p=r(d[11]),b=r(d[12]),v=r(d[13]),S=r(d[14]),j=r(d[15]),T=r(d[16]);const P={label:'',permission:'view',duration:'30d',cameras:'all',picked:[]};function C(e,n){return{label:e.label,permission:e.permission,kind:'grid-view',deviceIds:'all'===e.cameras?n.map(e=>e.id):e.picked,duration:e.duration}}function y(e){const u=(0,n.c)(31),{onClose:y,cameras:I,permissions:w}=e,{t:A}=(0,l.useTranslation)(),{colors:R}=(0,k.useTheme)(),_=(0,f.useReauth)(),M=(0,p.useMintToken)(),[N,D]=(0,t.useState)(P),[B,F]=(0,t.useState)(null),[G,U]=(0,t.useState)(null);let q,z;u[0]!==I||u[1]!==N?(q=C(N,I),z=(0,b.mintProblem)(q),u[0]=I,u[1]=N,u[2]=q,u[3]=z):(q=u[2],z=u[3]);const E=z;let H;u[4]!==M||u[5]!==_||u[6]!==q||u[7]!==A?(H=async()=>{U(null);let e=null;if("admin"===q.permission){const n=await _(A("v2.tokens.reauthAction"));if(null===n)return;e=n.reauthToken}M.mutate({...(0,b.mintInput)(q),reauthToken:e},{onSuccess:e=>F(e.token),onError:e=>U(e.message.length>0?e.message:A("v2.tokens.createFailed"))})},u[4]=M,u[5]=_,u[6]=q,u[7]=A,u[8]=H):H=u[8];const K=H;let L,O,V,W,J,Q;return u[9]===Symbol.for("react.memo_cache_sentinel")?(L={padding:h.SPACING.xl,paddingBottom:h.SPACING["3xl"],gap:h.SPACING.md},u[9]=L):L=u[9],u[10]!==R.foreground?(O={color:R.foreground,fontSize:17,fontWeight:"600"},u[10]=R.foreground,u[11]=O):O=u[11],u[12]!==A?(V=A("v2.tokens.newTitle"),u[12]=A,u[13]=V):V=u[13],u[14]!==O||u[15]!==V?(W=(0,T.jsx)(s.default,{style:O,children:V}),u[14]=O,u[15]=V,u[16]=W):W=u[16],u[17]!==I||u[18]!==N||u[19]!==G||u[20]!==K||u[21]!==M||u[22]!==y||u[23]!==w||u[24]!==E||u[25]!==B||u[26]!==A?(J=null===B?(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(v.TokenMintFields,{draft:N,onChange:D,permissions:w,cameras:I}),"admin"===N.permission?(0,T.jsx)(x.PanelText,{children:A("v2.tokens.adminNotice")}):null,"too-many-cameras"===E?(0,T.jsx)(x.PanelText,{tone:"danger",children:A("v2.tokens.tooManyCameras")}):null,null!==G?(0,T.jsx)(x.PanelText,{tone:"danger",children:G}):null,(0,T.jsxs)(o.default,{style:{gap:h.SPACING.sm},children:[(0,T.jsx)(j.Button,{label:M.isPending?A("v2.tokens.creating"):A("v2.tokens.create"),onPress:()=>{K()},disabled:null!==E||M.isPending,testID:"token-create"}),(0,T.jsx)(j.Button,{label:A("v2.settings.cancel"),kind:"secondary",onPress:y})]})]}):(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(S.TokenReveal,{token:B}),(0,T.jsx)(j.Button,{label:A("v2.tokens.done"),onPress:y,testID:"token-done"})]}),u[17]=I,u[18]=N,u[19]=G,u[20]=K,u[21]=M,u[22]=y,u[23]=w,u[24]=E,u[25]=B,u[26]=A,u[27]=J):J=u[27],u[28]!==W||u[29]!==J?(Q=(0,T.jsxs)(c.KeyboardAwareScrollView,{contentContainerStyle:L,children:[W,J]}),u[28]=W,u[29]=J,u[30]=Q):Q=u[30],Q}},1049,[788,16,193,114,817,869,876,790,835,985,1066,1071,986,1073,1050,990,10]);
12
+ __d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.TokenReveal=function(e){const h=(0,o.c)(24),{token:p}=e,{t:_}=(0,c.useTranslation)(),{colors:v}=(0,l.useTheme)(),[x,I]=(0,t.useState)(!1);let S,j,P,T,C,D,A,R,G;h[0]===Symbol.for("react.memo_cache_sentinel")?(S={gap:u.SPACING.sm},h[0]=S):S=h[0];h[1]!==_?(j=_("v2.tokens.shownOnce"),h[1]=_,h[2]=j):j=h[2];h[3]!==j?(P=(0,y.jsx)(b.PanelText,{children:j}),h[3]=j,h[4]=P):P=h[4];h[5]!==v.border||h[6]!==v.foreground||h[7]!==v.surface?(T={color:v.foreground,backgroundColor:v.surface,borderColor:v.border,borderWidth:1,borderRadius:u.RADIUS.md,padding:u.SPACING.md,fontSize:12,fontFamily:"monospace"},h[5]=v.border,h[6]=v.foreground,h[7]=v.surface,h[8]=T):T=h[8];h[9]!==T||h[10]!==p?(C=(0,y.jsx)(n.default,{selectable:!0,testID:"token-secret",style:T,children:p}),h[9]=T,h[10]=p,h[11]=C):C=h[11];h[12]!==x||h[13]!==_?(D=_(x?"v2.tokens.copied":"v2.tokens.copy"),h[12]=x,h[13]=_,h[14]=D):D=h[14];h[15]!==p?(A=()=>{(0,f.copyText)(p).then(e=>I(e))},h[15]=p,h[16]=A):A=h[16];h[17]!==D||h[18]!==A?(R=(0,y.jsx)(k.Button,{label:D,kind:"secondary",onPress:A,testID:"token-copy"}),h[17]=D,h[18]=A,h[19]=R):R=h[19];h[20]!==P||h[21]!==C||h[22]!==R?(G=(0,y.jsxs)(s.default,{style:S,testID:"token-reveal",children:[P,C,R]}),h[20]=P,h[21]=C,h[22]=R,h[23]=G):G=h[23];return G};var o=r(d[0]),t=r(d[1]),n=e(r(d[2])),s=e(r(d[3])),c=r(d[4]),l=r(d[5]),u=r(d[6]),f=r(d[7]),b=r(d[8]),k=r(d[9]),y=r(d[10])},1050,[788,16,193,114,817,790,835,1070,985,990,10]);
13
+ __d(function(g,r,i,a,m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.TokenDetailSheet=function(e){const o=(0,n.c)(10),{token:t,onClose:s}=e,{colors:l}=(0,k.useTheme)(),u=null!==t;let c,f,v;o[0]!==l.background?(c={backgroundColor:l.background,borderTopLeftRadius:x.RADIUS.xl,borderTopRightRadius:x.RADIUS.xl,padding:x.SPACING.xl,paddingBottom:x.SPACING["3xl"],gap:x.SPACING.md},o[0]=l.background,o[1]=c):c=o[1];o[2]!==s||o[3]!==t?(f=null!==t?(0,S.jsx)(p,{token:t,onClose:s},t.id):null,o[2]=s,o[3]=t,o[4]=f):f=o[4];o[5]!==s||o[6]!==u||o[7]!==c||o[8]!==f?(v=(0,S.jsx)(d.SheetModal,{visible:u,onClose:s,testID:"token-detail-sheet",sheetStyle:c,children:f}),o[5]=s,o[6]=u,o[7]=c,o[8]=f,o[9]=v):v=o[9];return v};var n=r(_d[0]),o=r(_d[1]),t=e(r(_d[2])),s=e(r(_d[3])),l=r(_d[4]),d=r(_d[5]),u=r(_d[6]),c=r(_d[7]),k=r(_d[8]),x=r(_d[9]),f=r(_d[10]),v=r(_d[11]),b=r(_d[12]),h=r(_d[13]),P=r(_d[14]),S=r(_d[15]);function p(e){const d=(0,n.c)(61),{token:p,onClose:T}=e,{t:j}=(0,l.useTranslation)(),{colors:C}=(0,k.useTheme)(),I=(0,c.useConfirm)(),y=(0,c.useNotice)(),D=(0,h.useTokenText)(),A=(0,v.useExtendToken)(),M=(0,v.useRevokeToken)(),[R]=(0,o.useState)(Date.now),_=(0,b.extendDurationsFor)(p),[E,N]=(0,o.useState)(_.includes("30d")?"30d":_[0]??"30d");let B;d[0]!==R||d[1]!==p?(B=(0,b.tokenExpiry)(p,R),d[0]=R,d[1]=p,d[2]=B):B=d[2];const F=B;let G;d[3]!==j?(G=e=>({value:e,label:j(`v2.tokens.duration.${e}`)}),d[3]=j,d[4]=G):G=d[4];const z=_.map(G);let L;d[5]!==E||d[6]!==A||d[7]!==y||d[8]!==T||d[9]!==j||d[10]!==p.id?(L=()=>{A.mutate({id:p.id,expiresIn:(0,b.durationToExpiresIn)(E)},{onSuccess:T,onError:e=>y({title:j("v2.tokens.extendFailed"),message:e.message})})},d[5]=E,d[6]=A,d[7]=y,d[8]=T,d[9]=j,d[10]=p.id,d[11]=L):L=d[11];const w=L;let O;d[12]!==I||d[13]!==y||d[14]!==T||d[15]!==M||d[16]!==j||d[17]!==p.id||d[18]!==p.label?(O=()=>{I({title:j("v2.tokens.revokeTitle",{label:p.label}),message:j("v2.tokens.revokeBody"),confirmLabel:j("v2.tokens.revoke"),destructive:!0}).then(e=>{e&&M.mutate(p.id,{onSuccess:T,onError:e=>y({title:j("v2.tokens.revokeFailed"),message:e.message})})})},d[12]=I,d[13]=y,d[14]=T,d[15]=M,d[16]=j,d[17]=p.id,d[18]=p.label,d[19]=O):O=d[19];const U=O;let W,$,q,H;d[20]!==C.foreground?(W={color:C.foreground,fontSize:17,fontWeight:"600"},d[20]=C.foreground,d[21]=W):W=d[21],d[22]!==W||d[23]!==p.label?($=(0,S.jsx)(t.default,{style:W,numberOfLines:2,children:p.label}),d[22]=W,d[23]=p.label,d[24]=$):$=d[24],d[25]!==D||d[26]!==p?(q=D.scopes(p),d[25]=D,d[26]=p,d[27]=q):q=d[27],d[28]!==q?(H=(0,S.jsx)(f.PanelText,{children:q}),d[28]=q,d[29]=H):H=d[29];const J="soon"===F||"expired"===F?C.warning:C.foregroundSubtle;let K,Q,V,X,Y,Z,ee;return d[30]!==J?(K={color:J,fontSize:13},d[30]=J,d[31]=K):K=d[31],d[32]!==R||d[33]!==D||d[34]!==p?(Q=D.dates(p,R),d[32]=R,d[33]=D,d[34]=p,d[35]=Q):Q=d[35],d[36]!==K||d[37]!==Q?(V=(0,S.jsx)(t.default,{style:K,children:Q}),d[36]=K,d[37]=Q,d[38]=V):V=d[38],d[39]!==C.foregroundMuted||d[40]!==E||d[41]!==F||d[42]!==A.isPending||d[43]!==w||d[44]!==z||d[45]!==N||d[46]!==j?(X="expired"===F?null:(0,S.jsxs)(s.default,{style:{gap:x.SPACING.sm},children:[(0,S.jsx)(t.default,{style:{color:C.foregroundMuted,fontSize:12,fontWeight:"600"},children:j("v2.tokens.extendTitle")}),(0,S.jsx)(u.SegmentedControl,{options:z,value:E,onChange:N}),(0,S.jsx)(P.Button,{label:A.isPending?j("v2.tokens.extending"):j("v2.tokens.extend"),kind:"secondary",onPress:w,disabled:A.isPending,testID:"token-extend"})]}),d[39]=C.foregroundMuted,d[40]=E,d[41]=F,d[42]=A.isPending,d[43]=w,d[44]=z,d[45]=N,d[46]=j,d[47]=X):X=d[47],d[48]!==M.isPending||d[49]!==j?(Y=M.isPending?j("v2.tokens.revoking"):j("v2.tokens.revoke"),d[48]=M.isPending,d[49]=j,d[50]=Y):Y=d[50],d[51]!==U||d[52]!==M.isPending||d[53]!==Y?(Z=(0,S.jsx)(P.Button,{label:Y,kind:"danger",onPress:U,disabled:M.isPending,testID:"token-revoke"}),d[51]=U,d[52]=M.isPending,d[53]=Y,d[54]=Z):Z=d[54],d[55]!==V||d[56]!==X||d[57]!==Z||d[58]!==$||d[59]!==H?(ee=(0,S.jsxs)(S.Fragment,{children:[$,H,V,X,Z]}),d[55]=V,d[56]=X,d[57]=Z,d[58]=$,d[59]=H,d[60]=ee):ee=d[60],ee}},1051,[788,16,193,114,817,869,874,1005,790,835,985,1071,986,1072,990,10]);
14
+ __d(function(g,r,i,a,_m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.ViewingSegment=function(){const e=(0,t.c)(198),{t:l}=(0,s.useTranslation)(),{colors:w}=(0,j.useTheme)(),{settings:P,setGridDefault:I,setStreamDefault:N,setHighlightAppearance:z,setCluster:L}=(0,x.useSettings)(),A=(0,O.useDeviceSettingsStore)(T),B=(0,O.useDeviceSettingsStore)(R);let k;e[0]!==l?(k=f.OVERLAY_SIZES.map(e=>({value:e,label:l("v2.settings.overlaySize"+("small"===e?"Small":"medium"===e?"Medium":"Large"))})),e[0]=l,e[1]=k):k=e[1];const V=k;let G;e[2]===Symbol.for("react.memo_cache_sentinel")?(G=E.map(D),e[2]=G):G=e[2];const $=G;let Y,F;e[3]===Symbol.for("react.memo_cache_sentinel")?(Y=Object.keys(C.TOOLBAR_DENSITY_FACTOR),e[3]=Y):Y=e[3];e[4]!==l?(F=Y.map(e=>({value:e,label:l(`v2.settings.toolbarDensity.${e}`)})),e[4]=l,e[5]=F):F=e[5];const Z=F;let W;e[6]!==l?(W=S.AUDIO_ON_OPEN_MODES.map(e=>({value:e,label:l(`v2.settings.audioOnOpenMode.${e}`),detail:l(`v2.settings.audioOnOpenModeHint.${e}`)})),e[6]=l,e[7]=W):W=e[7];const U=W;let q;e[8]!==l?(q=b.MOTION_HOLD_SECONDS.map(e=>({value:e,label:0===e?l("v2.settings.motionHoldOff"):l("v2.settings.secondsValue",{count:e})})),e[8]=l,e[9]=q):q=e[9];const J=q;let K;e[10]!==P.clusters?(K=(0,b.matchTimelineDensityPreset)(P.clusters),e[10]=P.clusters,e[11]=K):K=e[11];const Q=K;let X;e[12]!==l?(X=b.TIMELINE_DENSITY_PRESET_ORDER.map(e=>({value:e,label:l(`v2.cameraMenu.density_${e}`)})),e[12]=l,e[13]=X):X=e[13];const ee=X;let te;e[14]!==L?(te=e=>{if("custom"===e)return;const t=b.TIMELINE_DENSITY_PRESETS[e];L("gapPercent",t.gapPercent),L("cardWidthFraction",t.cardWidthFraction)},e[14]=L,e[15]=te):te=e[15];const ne=te;let oe,se,ie,ae,le,re,ge,ce,ue,he,de,me,ve,pe,Se,Ce,xe,Oe,fe,be,je,ye,Me,Ee,He,De,Re,Te,we,Pe,Ie,Ne;e[16]!==l?(oe=l("v2.settings.streamDefaults"),e[16]=l,e[17]=oe):oe=e[17];e[18]!==l?(se=l("v2.settings.audioOnOpen"),e[18]=l,e[19]=se):se=e[19];e[20]!==N?(ie=e=>N("audioOnOpen",e),e[20]=N,e[21]=ie):ie=e[21];e[22]!==U||e[23]!==P.stream.audioOnOpen||e[24]!==se||e[25]!==ie?(ae=(0,_.jsx)(m.SelectRow,{icon:c.Volume2,label:se,options:U,value:P.stream.audioOnOpen,onChange:ie}),e[22]=U,e[23]=P.stream.audioOnOpen,e[24]=se,e[25]=ie,e[26]=ae):ae=e[26];e[27]!==l?(le=l("v2.settings.pinchExpandsHeight"),e[27]=l,e[28]=le):le=e[28];e[29]!==l?(re=l("v2.settings.pinchExpandsHeightHint"),e[29]=l,e[30]=re):re=e[30];e[31]!==N?(ge=e=>N("pinchExpandsHeight",e),e[31]=N,e[32]=ge):ge=e[32];e[33]!==P.stream.pinchExpandsHeight||e[34]!==le||e[35]!==re||e[36]!==ge?(ce=(0,_.jsx)(d.ToggleRow,{icon:c.Maximize2,label:le,description:re,value:P.stream.pinchExpandsHeight,onValueChange:ge}),e[33]=P.stream.pinchExpandsHeight,e[34]=le,e[35]=re,e[36]=ge,e[37]=ce):ce=e[37];e[38]!==l?(ue=l("v2.settings.toolbarDensity"),e[38]=l,e[39]=ue):ue=e[39];e[40]!==N?(he=e=>N("toolbarDensity",e),e[40]=N,e[41]=he):he=e[41];e[42]!==P.stream.toolbarDensity||e[43]!==ue||e[44]!==he||e[45]!==Z?(de=(0,_.jsx)(m.SelectRow,{icon:c.PanelBottom,label:ue,options:Z,value:P.stream.toolbarDensity,onChange:he}),e[42]=P.stream.toolbarDensity,e[43]=ue,e[44]=he,e[45]=Z,e[46]=de):de=e[46];e[47]!==l?(me=l("v2.settings.navBarOnStream"),e[47]=l,e[48]=me):me=e[48];e[49]!==l?(ve=l("v2.settings.navBarOnStreamHint"),e[49]=l,e[50]=ve):ve=e[50];e[51]!==N?(pe=e=>N("navBarOnStream",e),e[51]=N,e[52]=pe):pe=e[52];e[53]!==P.stream.navBarOnStream||e[54]!==me||e[55]!==ve||e[56]!==pe?(Se=(0,_.jsx)(d.ToggleRow,{icon:c.PanelBottom,label:me,description:ve,value:P.stream.navBarOnStream,onValueChange:pe}),e[53]=P.stream.navBarOnStream,e[54]=me,e[55]=ve,e[56]=pe,e[57]=Se):Se=e[57];e[58]!==l?(Ce=l("v2.settings.reopenLastCamera"),e[58]=l,e[59]=Ce):Ce=e[59];e[60]!==l?(xe=l("v2.settings.reopenLastCameraHint"),e[60]=l,e[61]=xe):xe=e[61];e[62]!==N?(Oe=e=>N("reopenLastCamera",e),e[62]=N,e[63]=Oe):Oe=e[63];e[64]!==P.stream.reopenLastCamera||e[65]!==Ce||e[66]!==xe||e[67]!==Oe?(fe=(0,_.jsx)(d.ToggleRow,{icon:c.History,label:Ce,description:xe,value:P.stream.reopenLastCamera,onValueChange:Oe,last:!0}),e[64]=P.stream.reopenLastCamera,e[65]=Ce,e[66]=xe,e[67]=Oe,e[68]=fe):fe=e[68];e[69]!==ae||e[70]!==ce||e[71]!==de||e[72]!==Se||e[73]!==fe||e[74]!==oe?(be=(0,_.jsxs)(u.Section,{title:oe,children:[ae,ce,de,Se,fe]}),e[69]=ae,e[70]=ce,e[71]=de,e[72]=Se,e[73]=fe,e[74]=oe,e[75]=be):be=e[75];e[76]!==l?(je=l("v2.settings.overlays"),e[76]=l,e[77]=je):je=e[77];e[78]!==l?(ye=l("v2.settings.overlaySize"),e[78]=l,e[79]=ye):ye=e[79];e[80]!==A||e[81]!==V||e[82]!==B||e[83]!==ye?(Me=(0,_.jsx)(m.SelectRow,{icon:c.Maximize2,label:ye,options:V,value:A,onChange:B,last:!0}),e[80]=A,e[81]=V,e[82]=B,e[83]=ye,e[84]=Me):Me=e[84];e[85]!==w.foregroundMuted?(Ee={color:w.foregroundMuted,fontSize:11,paddingHorizontal:y.SPACING.xl,paddingBottom:y.SPACING.lg},e[85]=w.foregroundMuted,e[86]=Ee):Ee=e[86];e[87]!==l?(He=l("v2.settings.overlaySizeHint"),e[87]=l,e[88]=He):He=e[88];e[89]!==Ee||e[90]!==He?(De=(0,_.jsx)(n.default,{style:Ee,children:He}),e[89]=Ee,e[90]=He,e[91]=De):De=e[91];e[92]!==je||e[93]!==Me||e[94]!==De?(Re=(0,_.jsxs)(u.Section,{title:je,children:[Me,De]}),e[92]=je,e[93]=Me,e[94]=De,e[95]=Re):Re=e[95];e[96]!==l?(Te=l("v2.settings.timeline"),e[96]=l,e[97]=Te):Te=e[97];e[98]===Symbol.for("react.memo_cache_sentinel")?(we={paddingHorizontal:y.SPACING.xl,paddingTop:y.SPACING.lg,gap:y.SPACING.sm},e[98]=we):we=e[98];e[99]!==w.foregroundMuted?(Pe={color:w.foregroundMuted,fontSize:13},e[99]=w.foregroundMuted,e[100]=Pe):Pe=e[100];e[101]!==l?(Ie=l("v2.cameraMenu.densityTitle"),e[101]=l,e[102]=Ie):Ie=e[102];e[103]!==Pe||e[104]!==Ie?(Ne=(0,_.jsx)(n.default,{style:Pe,children:Ie}),e[103]=Pe,e[104]=Ie,e[105]=Ne):Ne=e[105];const ze=Q??"custom";let Le,Ae,Be,ke,Ve,Ge,$e,Ye,Fe,Ze,We,Ue,qe,Je,Ke,Qe,Xe,et,tt,nt,ot,st,it,at,lt,rt,gt,ct,ut,ht;e[106]!==ne||e[107]!==ee||e[108]!==ze?(Le=(0,_.jsx)(v.SegmentedControl,{options:ee,value:ze,onChange:ne}),e[106]=ne,e[107]=ee,e[108]=ze,e[109]=Le):Le=e[109];e[110]!==w.foregroundMuted||e[111]!==Q||e[112]!==l?(Ae=null===Q?(0,_.jsx)(n.default,{style:{color:w.foregroundMuted,fontSize:11},children:l("v2.cameraMenu.densityCustom")}):null,e[110]=w.foregroundMuted,e[111]=Q,e[112]=l,e[113]=Ae):Ae=e[113];e[114]!==Ne||e[115]!==Le||e[116]!==Ae?(Be=(0,_.jsxs)(o.default,{style:we,children:[Ne,Le,Ae]}),e[114]=Ne,e[115]=Le,e[116]=Ae,e[117]=Be):Be=e[117];e[118]!==l?(ke=l("v2.cameraMenu.showClass"),e[118]=l,e[119]=ke):ke=e[119];e[120]!==L?(Ve=e=>L("showClass",e),e[120]=L,e[121]=Ve):Ve=e[121];e[122]!==P.clusters.showClass||e[123]!==ke||e[124]!==Ve?(Ge=(0,_.jsx)(d.ToggleRow,{icon:c.List,label:ke,value:P.clusters.showClass,onValueChange:Ve,last:!0}),e[122]=P.clusters.showClass,e[123]=ke,e[124]=Ve,e[125]=Ge):Ge=e[125];e[126]!==Te||e[127]!==Be||e[128]!==Ge?($e=(0,_.jsxs)(u.Section,{title:Te,children:[Be,Ge]}),e[126]=Te,e[127]=Be,e[128]=Ge,e[129]=$e):$e=e[129];e[130]!==l?(Ye=l("v2.settings.highlightAppearance"),e[130]=l,e[131]=Ye):Ye=e[131];e[132]!==l?(Fe=l("v2.settings.highlightMotionColor"),e[132]=l,e[133]=Fe):Fe=e[133];e[134]!==z?(Ze=e=>z("motionColor",e),e[134]=z,e[135]=Ze):Ze=e[135];e[136]!==P.highlight.motionColor||e[137]!==Fe||e[138]!==Ze?(We=(0,_.jsx)(p.ColorPickerRow,{icon:c.Zap,label:Fe,value:P.highlight.motionColor,onChange:Ze}),e[136]=P.highlight.motionColor,e[137]=Fe,e[138]=Ze,e[139]=We):We=e[139];e[140]!==l?(Ue=l("v2.settings.highlightAudioColor"),e[140]=l,e[141]=Ue):Ue=e[141];e[142]!==z?(qe=e=>z("audioColor",e),e[142]=z,e[143]=qe):qe=e[143];e[144]!==P.highlight.audioColor||e[145]!==Ue||e[146]!==qe?(Je=(0,_.jsx)(p.ColorPickerRow,{icon:c.Volume2,label:Ue,value:P.highlight.audioColor,onChange:qe}),e[144]=P.highlight.audioColor,e[145]=Ue,e[146]=qe,e[147]=Je):Je=e[147];e[148]!==l?(Ke=l("v2.settings.highlightDetectionColor"),e[148]=l,e[149]=Ke):Ke=e[149];e[150]!==z?(Qe=e=>z("detectionColor",e),e[150]=z,e[151]=Qe):Qe=e[151];e[152]!==P.highlight.detectionColor||e[153]!==Ke||e[154]!==Qe?(Xe=(0,_.jsx)(p.ColorPickerRow,{icon:c.Box,label:Ke,value:P.highlight.detectionColor,onChange:Qe}),e[152]=P.highlight.detectionColor,e[153]=Ke,e[154]=Qe,e[155]=Xe):Xe=e[155];e[156]!==l?(et=l("v2.settings.highlightThickness"),e[156]=l,e[157]=et):et=e[157];e[158]!==z?(tt=e=>z("thickness",e),e[158]=z,e[159]=tt):tt=e[159];e[160]!==P.highlight.thickness||e[161]!==et||e[162]!==tt?(nt=(0,_.jsx)(m.SelectRow,{icon:c.Maximize2,label:et,options:$,value:P.highlight.thickness,onChange:tt}),e[160]=P.highlight.thickness,e[161]=et,e[162]=tt,e[163]=nt):nt=e[163];e[164]!==l?(ot=l("v2.settings.motionHold"),e[164]=l,e[165]=ot):ot=e[165];e[166]!==I?(st=e=>I("motionHoldSec",e),e[166]=I,e[167]=st):st=e[167];e[168]!==J||e[169]!==P.grid.motionHoldSec||e[170]!==ot||e[171]!==st?(it=(0,_.jsx)(m.SelectRow,{icon:c.Zap,label:ot,options:J,value:P.grid.motionHoldSec,onChange:st,last:!0}),e[168]=J,e[169]=P.grid.motionHoldSec,e[170]=ot,e[171]=st,e[172]=it):it=e[172];e[173]!==Ye||e[174]!==We||e[175]!==Je||e[176]!==Xe||e[177]!==nt||e[178]!==it?(at=(0,_.jsxs)(u.Section,{title:Ye,children:[We,Je,Xe,nt,it]}),e[173]=Ye,e[174]=We,e[175]=Je,e[176]=Xe,e[177]=nt,e[178]=it,e[179]=at):at=e[179];e[180]!==l?(lt=l("v2.settings.cameras"),e[180]=l,e[181]=lt):lt=e[181];e[182]!==l?(rt=l("v2.settings.manageCameras"),e[182]=l,e[183]=rt):rt=e[183];e[184]!==l?(gt=l("v2.settings.manageCamerasHint"),e[184]=l,e[185]=gt):gt=e[185];e[186]!==rt||e[187]!==gt?(ct=(0,_.jsx)(h.Row,{icon:c.Camera,label:rt,value:gt,onPress:H,last:!0}),e[186]=rt,e[187]=gt,e[188]=ct):ct=e[188];e[189]!==lt||e[190]!==ct?(ut=(0,_.jsx)(u.Section,{title:lt,children:ct}),e[189]=lt,e[190]=ct,e[191]=ut):ut=e[191];e[192]!==be||e[193]!==Re||e[194]!==$e||e[195]!==at||e[196]!==ut?(ht=(0,_.jsxs)(M.SettingsGrid,{children:[be,Re,$e,at,ut]}),e[192]=be,e[193]=Re,e[194]=$e,e[195]=at,e[196]=ut,e[197]=ht):ht=e[197];return ht};var t=r(_d[0]);r(_d[1]);var n=e(r(_d[2])),o=e(r(_d[3])),s=r(_d[4]),l=r(_d[5]),c=r(_d[6]),u=r(_d[7]),h=r(_d[8]),d=r(_d[9]),m=r(_d[10]),v=r(_d[11]),p=r(_d[12]),S=r(_d[13]),C=r(_d[14]),x=r(_d[15]),O=r(_d[16]),f=r(_d[17]),b=r(_d[18]),j=r(_d[19]),y=r(_d[20]),M=r(_d[21]),_=r(_d[22]);const E=[1,2,3,4,6,8];function H(){return l.router.push("/settings/cameras")}function D(e){return{value:e,label:`${e}px`}}function R(e){return e.setOverlaySize}function T(e){return e.settings.overlaySize}},1052,[788,16,193,114,817,789,837,870,1068,871,1074,874,1053,1075,1076,833,1062,1077,834,790,835,1064,10]);
15
+ __d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"COLOR_PRESETS",{enumerable:!0,get:function(){return C}}),_e.ColorPickerRow=function(e){const f=(0,o.c)(21),{icon:w,label:x,value:j,onChange:p}=e,{colors:y}=(0,c.useTheme)();let P,S,F,R,I,A,_;f[0]!==w||f[1]!==y.foregroundMuted?(P=w?(0,b.jsx)(w,{size:18,color:y.foregroundMuted}):null,f[0]=w,f[1]=y.foregroundMuted,f[2]=P):P=f[2];f[3]!==y.foreground?(S=[h.label,{color:y.foreground}],f[3]=y.foreground,f[4]=S):S=f[4];f[5]!==x||f[6]!==S?(F=(0,b.jsx)(l.default,{style:S,children:x}),f[5]=x,f[6]=S,f[7]=F):F=f[7];f[8]!==P||f[9]!==F?(R=(0,b.jsxs)(t.default,{style:h.labelRow,children:[P,F]}),f[8]=P,f[9]=F,f[10]=R):R=f[10];f[11]!==y.border||f[12]!==y.foreground||f[13]!==p||f[14]!==j?(I=C.map(e=>{const o=e.toLowerCase()===j.toLowerCase();return(0,b.jsx)(n.default,{onPress:()=>p(e),accessibilityRole:"button",accessibilityState:{selected:o},style:{width:28,height:28,borderRadius:14,backgroundColor:e,alignItems:"center",justifyContent:"center",borderWidth:o?2:s.default.hairlineWidth,borderColor:o?y.foreground:y.border},children:o?(0,b.jsx)(u.Check,{size:14,color:"#ffffff"===e.toLowerCase()?"#000":"#fff"}):null},e)}),f[11]=y.border,f[12]=y.foreground,f[13]=p,f[14]=j,f[15]=I):I=f[15];f[16]!==I?(A=(0,b.jsx)(t.default,{style:h.swatches,children:I}),f[16]=I,f[17]=A):A=f[17];f[18]!==R||f[19]!==A?(_=(0,b.jsxs)(t.default,{style:h.row,children:[R,A]}),f[18]=R,f[19]=A,f[20]=_):_=f[20];return _};var o=r(d[0]);r(d[1]);var t=e(r(d[2])),l=e(r(d[3])),n=e(r(d[4])),s=e(r(d[5])),u=r(d[6]),c=r(d[7]),f=r(d[8]),b=r(d[9]);const C=['#DC2626','#F97316','#EAB308','#22C55E','#3B82F6','#8B5CF6','#FFFFFF'];const h=s.default.create({row:{paddingHorizontal:f.SPACING.xl,paddingVertical:f.SPACING.lg,gap:f.SPACING.sm},labelRow:{flexDirection:'row',alignItems:'center',gap:f.SPACING.md},label:{fontSize:14,fontWeight:'500'},swatches:{flexDirection:'row',flexWrap:'wrap',gap:f.SPACING.sm,borderRadius:f.RADIUS.md}})},1053,[788,16,114,193,247,32,837,790,835,10]);
16
+ __d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.AppSegment=function(){const e=(0,t.c)(83),{t:n}=(0,u.useTranslation)(),{colors:s,preference:c,setPreference:b}=(0,w.useTheme)(),{preference:p,setPreference:f}=(0,_.useLanguage)(),{settings:h,setHaptics:x}=(0,k.useSettings)();let S,N,C,U,T,M,B;e[0]!==n?(S=n("v2.settings.themeSystem"),e[0]=n,e[1]=S):S=e[1];e[2]!==S?(N={value:"system",label:S},e[2]=S,e[3]=N):N=e[3];e[4]!==n?(C=n("v2.settings.themeDark"),e[4]=n,e[5]=C):C=e[5];e[6]!==C?(U={value:"dark",label:C},e[6]=C,e[7]=U):U=e[7];e[8]!==n?(T=n("v2.settings.themeLight"),e[8]=n,e[9]=T):T=e[9];e[10]!==T?(M={value:"light",label:T},e[10]=T,e[11]=M):M=e[11];e[12]!==N||e[13]!==U||e[14]!==M?(B=[N,U,M],e[12]=N,e[13]=U,e[14]=M,e[15]=B):B=e[15];const G=B;let H,z,D,E,L;e[16]!==n?(H=n("v2.settings.langSystem"),e[16]=n,e[17]=H):H=e[17];e[18]!==H?(z={value:"system",label:H},e[18]=H,e[19]=z):z=e[19];e[20]===Symbol.for("react.memo_cache_sentinel")?(E={value:"it",label:"Italiano"},D={value:"en",label:"English"},e[20]=D,e[21]=E):(D=e[20],E=e[21]);e[22]!==z?(L=[z,E,D],e[22]=z,e[23]=L):L=e[23];const Y=L;let O,W,q,J,K,Q,X,Z,$,ee,te,ne,se,le,ae,ie,oe,re,ue,de,ce,ge,ve;e[24]!==n?(O=n("v2.settings.general"),e[24]=n,e[25]=O):O=e[25];e[26]===Symbol.for("react.memo_cache_sentinel")?(W={padding:I.SPACING.xl,gap:I.SPACING.md},e[26]=W):W=e[26];e[27]!==s.foregroundMuted?(q={color:s.foregroundMuted,fontSize:13},e[27]=s.foregroundMuted,e[28]=q):q=e[28];e[29]!==n?(J=n("v2.settings.theme"),e[29]=n,e[30]=J):J=e[30];e[31]!==q||e[32]!==J?(K=(0,F.jsx)(l.default,{style:q,children:J}),e[31]=q,e[32]=J,e[33]=K):K=e[33];e[34]!==c||e[35]!==b||e[36]!==G?(Q=(0,F.jsx)(y.SegmentedControl,{options:G,value:c,onChange:b}),e[34]=c,e[35]=b,e[36]=G,e[37]=Q):Q=e[37];e[38]!==s.foregroundMuted?(X={color:s.foregroundMuted,fontSize:13,marginTop:I.SPACING.md},e[38]=s.foregroundMuted,e[39]=X):X=e[39];e[40]!==n?(Z=n("v2.settings.language"),e[40]=n,e[41]=Z):Z=e[41];e[42]!==X||e[43]!==Z?($=(0,F.jsx)(l.default,{style:X,children:Z}),e[42]=X,e[43]=Z,e[44]=$):$=e[44];e[45]!==p||e[46]!==Y||e[47]!==f?(ee=(0,F.jsx)(y.SegmentedControl,{options:Y,value:p,onChange:f}),e[45]=p,e[46]=Y,e[47]=f,e[48]=ee):ee=e[48];e[49]!==K||e[50]!==Q||e[51]!==$||e[52]!==ee?(te=(0,F.jsxs)(o.default,{style:W,children:[K,Q,$,ee]}),e[49]=K,e[50]=Q,e[51]=$,e[52]=ee,e[53]=te):te=e[53];e[54]!==n?(ne=n("v2.settings.hapticsUiFeedback"),e[54]=n,e[55]=ne):ne=e[55];e[56]!==n?(se=n("v2.settings.hapticsUiFeedbackHint"),e[56]=n,e[57]=se):se=e[57];e[58]!==x?(le=e=>x("uiFeedback",e),e[58]=x,e[59]=le):le=e[59];e[60]!==h.haptics.uiFeedback||e[61]!==ne||e[62]!==se||e[63]!==le?(ae=(0,F.jsx)(R.ToggleRow,{icon:v.Vibrate,label:ne,description:se,value:h.haptics.uiFeedback,onValueChange:le,last:!0}),e[60]=h.haptics.uiFeedback,e[61]=ne,e[62]=se,e[63]=le,e[64]=ae):ae=e[64];e[65]!==O||e[66]!==te||e[67]!==ae?(ie=(0,F.jsxs)(j.Section,{title:O,children:[te,ae]}),e[65]=O,e[66]=te,e[67]=ae,e[68]=ie):ie=e[68];e[69]===Symbol.for("react.memo_cache_sentinel")?(oe=(0,F.jsx)(V.SettingsLevelsSection,{}),re=(0,F.jsx)(P,{}),e[69]=oe,e[70]=re):(oe=e[69],re=e[70]);e[71]!==ie?(ue=(0,F.jsxs)(A.SettingsGrid,{children:[ie,oe,re]}),e[71]=ie,e[72]=ue):ue=e[72];e[73]!==s.foregroundSubtle?(de={color:s.foregroundSubtle,fontSize:12,textAlign:"center",lineHeight:17,paddingHorizontal:I.SPACING.lg},e[73]=s.foregroundSubtle,e[74]=de):de=e[74];e[75]!==n?(ce=n("v2.settings.footerNote"),e[75]=n,e[76]=ce):ce=e[76];e[77]!==de||e[78]!==ce?(ge=(0,F.jsx)(l.default,{style:de,children:ce}),e[77]=de,e[78]=ce,e[79]=ge):ge=e[79];e[80]!==ue||e[81]!==ge?(ve=(0,F.jsxs)(F.Fragment,{children:[ue,ge]}),e[80]=ue,e[81]=ge,e[82]=ve):ve=e[82];return ve};var t=r(d[0]),n=r(d[1]),s=e(r(d[2]));r(d[3]);var l=e(r(d[4])),o=e(r(d[5])),u=r(d[6]),c=e(r(d[7])),v=r(d[8]),b=r(d[9]),p=r(d[10]),f=r(d[11]),h=r(d[12]),x=r(d[13]),S=r(d[14]),w=r(d[15]),j=r(d[16]),N=r(d[17]),R=r(d[18]),y=r(d[19]),C=r(d[20]),_=r(d[21]),k=r(d[22]),I=r(d[23]),A=r(d[24]),V=r(d[25]),U=r(d[26]),F=r(d[27]);function P(){const{t:e}=(0,u.useTranslation)(),t=(0,C.useNotice)(),[l,o]=(0,n.useState)(!1),[w,R]=(0,n.useState)(null),y=(0,U.runningVersionRows)(),{data:_=null}=(0,x.useNativeRelease)(),k=(0,b.nativeReleaseState)({version:c.default.expoConfig?.version,buildNumber:(0,p.runningBuildNumber)()},_),I='newer-available'===k&&_?e('v2.updates.nativeNewer',{version:_.version,build:_.buildNumber}):e('up-to-date'===k?'v2.updates.nativeUpToDate':'v2.updates.nativeUnknown');return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(j.Section,{title:e('v2.settings.aboutUpdates'),children:[(0,F.jsx)(N.Row,{icon:v.Info,label:e('v2.settings.app'),value:"CamStack Viewer"}),(0,F.jsx)(N.Row,{label:e('v2.settings.version'),value:(0,U.versionValue)(y,'app')}),U.NATIVE_BINARY?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(N.Row,{label:e('v2.settings.buildNumber'),value:(0,U.versionValue)(y,'build')}),(0,F.jsx)(N.Row,{label:e('v2.settings.runtimeVersion'),value:(0,U.versionValue)(y,'runtime')}),(0,F.jsx)(N.Row,{label:e('v2.settings.runningBundle'),value:(0,U.versionValue)(y,'update')})]}):null,(0,F.jsx)(N.Row,{label:e('v2.updates.whatsNewRow'),onPress:()=>R((0,f.whatsNewHistory)(c.default.expoConfig?.version??null))}),(0,F.jsx)(N.Row,{icon:v.RefreshCcw,label:e(l?'v2.settings.checkingUpdates':'v2.settings.checkUpdates'),onPress:()=>{o(!0),(async()=>{try{const n=await(0,S.runUpdateCheck)(!0);'disabled'===n?t({title:e('v2.settings.updatesDisabled')}):'up-to-date'===n&&t({title:e('v2.settings.updateUpToDate')})}finally{o(!1)}})()},last:!U.NATIVE_BINARY}),U.NATIVE_BINARY?(0,F.jsx)(N.Row,{label:e('v2.updates.nativeRow'),value:I,...'newer-available'===k?{onPress:()=>{if(!_||'newer-available'!==k)return;const e=(0,b.storeUrlFor)(_,'web',c.default.expoConfig?.ios?.bundleIdentifier??'');null!==e&&s.default.openURL(e)}}:{},last:!0}):null]}),(0,F.jsx)(h.WhatsNewModal,{visible:null!==w,latest:w?.latest??null,past:w?.past??[],onClose:()=>{R(null)}})]})}},1054,[788,16,225,109,193,114,817,517,837,1078,1079,1080,1081,1082,1083,790,870,1068,871,874,1005,1084,833,835,1064,1055,1057,10]);
17
+ __d(function(g,r,_i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.SettingsLevelsSection=function(){const e=(0,t.c)(16),{t:n}=(0,l.useTranslation)(),s=(0,f.useConfirm)(),{server:i,servers:c}=(0,y.useServer)(),A=(0,p.useAccountSyncStore)(C),T=(0,p.useAccountSyncStore)(j);let L;if(e[0]!==s||e[1]!==i||e[2]!==c||e[3]!==A||e[4]!==T||e[5]!==n){const t=null===i?"":(0,S.serverLabelOf)(i),l=(0,x.copySourceHubs)(c,i?.id??null),f=(0,x.syncStatusLine)(A,Date.now()),y=(e,l)=>{(async()=>{await s({title:n("v2.settings.levels.copyTitle",{from:l}),message:n("v2.settings.levels.copyBody",{from:l,to:t}),confirmLabel:n("v2.settings.levels.copyConfirm"),cancelLabel:n("v2.settings.cancel"),destructive:!0})&&await(T?.copyFrom(e))})()};let p,j,C,P;e[7]!==n?(p=n("v2.settings.levels.deviceTitle"),e[7]=n,e[8]=p):p=e[8],e[9]!==n?(j=n("v2.settings.levels.deviceHint"),e[9]=n,e[10]=j):j=e[10],e[11]!==j?(C=(0,h.jsx)(b,{text:j,last:!0}),e[11]=j,e[12]=C):C=e[12],e[13]!==p||e[14]!==C?(P=(0,h.jsx)(u.Section,{title:p,children:C}),e[13]=p,e[14]=C,e[15]=P):P=e[15],L=(0,h.jsxs)(h.Fragment,{children:[P,null===i?null:(0,h.jsxs)(u.Section,{title:n("v2.settings.levels.accountTitle",{hub:t}),children:[(0,h.jsx)(b,{text:n("v2.settings.levels.accountHint")}),(0,h.jsx)(v.Row,{icon:f.danger?o.TriangleAlert:o.Cloud,label:n(f.key,f.args),danger:f.danger,last:0===l.length}),l.map((e,t)=>{const s=(0,S.serverLabelOf)(e);return(0,h.jsx)(v.Row,{icon:o.Copy,label:n("v2.settings.levels.copyFrom",{hub:s}),onPress:()=>y(e.id,s),last:t===l.length-1},e.id)})]})]}),e[0]=s,e[1]=i,e[2]=c,e[3]=A,e[4]=T,e[5]=n,e[6]=L}else L=e[6];return L};var t=r(d[0]);r(d[1]);var n=e(r(d[2])),s=e(r(d[3])),l=r(d[4]),o=r(d[5]),i=r(d[6]),c=r(d[7]),u=r(d[8]),v=r(d[9]),f=r(d[10]),y=r(d[11]),S=r(d[12]),p=r(d[13]),x=r(d[14]),h=r(d[15]);function b(e){const l=(0,t.c)(10),{text:o,last:u}=e,{colors:v}=(0,i.useTheme)(),f=u?c.SPACING.lg:c.SPACING.sm;let y,S,p,x;return l[0]!==f?(y={paddingHorizontal:c.SPACING.xl,paddingTop:c.SPACING.lg,paddingBottom:f},l[0]=f,l[1]=y):y=l[1],l[2]!==v.foregroundMuted?(S={color:v.foregroundMuted,fontSize:13,lineHeight:18},l[2]=v.foregroundMuted,l[3]=S):S=l[3],l[4]!==S||l[5]!==o?(p=(0,h.jsx)(n.default,{style:S,children:o}),l[4]=S,l[5]=o,l[6]=p):p=l[6],l[7]!==y||l[8]!==p?(x=(0,h.jsx)(s.default,{style:y,children:p}),l[7]=y,l[8]=p,l[9]=x):x=l[9],x}function j(e){return e.sync}function C(e){return e.status}},1055,[788,16,193,114,817,837,790,835,870,1068,1005,988,1067,1085,1056,10]);
18
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.syncStatusLine=function(l,c){switch(l.state){case'local-only':return'hub'===l.unavailable?{key:'v2.settings.levels.localOnlyHub',danger:!1}:'credential'===l.unavailable?{key:'v2.settings.levels.localOnlyCredential',danger:!1}:{key:'v2.settings.levels.localOnly',danger:!1};case'syncing':return{key:'v2.settings.levels.syncing',danger:!1};case'error':return{key:'v2.settings.levels.syncError',args:{error:l.error??''},danger:!0};case'synced':{const o=Math.max(0,c-(l.lastSyncedAt??c));return o<n?{key:'v2.settings.levels.syncedNow',danger:!1}:o<s?{key:'v2.settings.levels.syncedMinutes',args:{count:Math.floor(o/n)},danger:!1}:o<t?{key:'v2.settings.levels.syncedHours',args:{count:Math.floor(o/s)},danger:!1}:{key:'v2.settings.levels.syncedDays',args:{count:Math.floor(o/t)},danger:!1}}}},e.copySourceHubs=function(n,s){return n.filter(n=>n.signedIn&&n.id!==s)};const n=6e4,s=36e5,t=864e5},1056,[]);
19
+ __d(function(g,_r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"NATIVE_BINARY",{enumerable:!0,get:function(){return d}}),_e.runningVersionRows=function(){return(0,u.buildVersionRows)({configVersion:r.default.expoConfig?.version,nativeBuildNumber:r.default.platform?.ios?.buildNumber??(void 0!==r.default.platform?.android?.versionCode?String(r.default.platform.android.versionCode):null),runtimeVersion:t.runtimeVersion,updateId:t.updateId,updateCreatedAt:t.createdAt,isEmbeddedLaunch:t.isEmbeddedLaunch,updatesEnabled:t.isEnabled,nativeBinary:d})},_e.versionValue=function(e,n){return e.find(e=>e.id===n)?.value??'\u2014'},_r(_d[0]);var e,n=_r(_d[1]),r=(e=n)&&e.__esModule?e:{default:e},t=(function(e){if(e&&e.__esModule)return e;var n={};return e&&Object.keys(e).forEach(function(r){var t=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,t.get?t:{enumerable:!0,get:function(){return e[r]}})}),n.default=e,n})(_r(_d[2])),u=_r(_d[3]);const d=!1},1057,[109,517,1086,1087]);
20
+ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.AdvancedSegment=function(e){const n=(0,t.c)(65),{active:R}=e,{t:T}=(0,c.useTranslation)(),D=(0,b.useConfirm)(),P=(0,b.useNotice)(),B=(0,l.useQueryClient)(),{settings:N,resetSettings:A}=(0,h.useSettings)(),O=(0,C.useDeviceSettingsStore)(L),k=(0,C.useDeviceSettingsStore)(M),[F,G]=(0,s.useState)(!1);let H;n[0]!==D||n[1]!==P||n[2]!==B||n[3]!==T?(H=()=>{(async()=>{await D({title:T("v2.settings.clearCacheConfirmTitle"),message:T("v2.settings.clearCacheConfirmBody"),confirmLabel:T("v2.settings.confirm"),cancelLabel:T("v2.settings.cancel"),destructive:!0})&&(await(0,x.clearAppCache)(B),P({title:T("v2.settings.clearCacheDone")}))})()},n[0]=D,n[1]=P,n[2]=B,n[3]=T,n[4]=H):H=n[4];const J=H;let Q;n[5]!==N?(Q=()=>{const e=JSON.stringify(N,null,2);o.default.share({message:e}).catch(p)},n[5]=N,n[6]=Q):Q=n[6];const V=Q;let q;n[7]!==D||n[8]!==A||n[9]!==T?(q=()=>{(async()=>{await D({title:T("v2.settings.resetConfirmTitle"),message:T("v2.settings.resetConfirmBody"),confirmLabel:T("v2.settings.confirm"),cancelLabel:T("v2.settings.cancel"),destructive:!0})&&A()})()},n[7]=D,n[8]=A,n[9]=T,n[10]=q):q=n[10];const z=q;let E,I,K,U,W,X,Y,Z,$,ee,te,se,ne,ie,oe,ce,ae,le,re,ge,ue;n[11]!==R?(E=(0,y.jsx)(w.NetworkSection,{active:R}),n[11]=R,n[12]=E):E=n[12];n[13]!==T?(I=T("v2.settings.diagnostics"),n[13]=T,n[14]=I):I=n[14];n[15]!==T?(K=T("v2.settings.debugMode"),n[15]=T,n[16]=K):K=n[16];n[17]!==T?(U=T("v2.settings.debugModeHint"),n[17]=T,n[18]=U):U=n[18];n[19]!==O||n[20]!==k||n[21]!==K||n[22]!==U?(W=(0,y.jsx)(S.ToggleRow,{icon:u.Bug,label:K,description:U,value:O,onValueChange:k}),n[19]=O,n[20]=k,n[21]=K,n[22]=U,n[23]=W):W=n[23];n[24]!==T?(X=T("v2.settings.viewLogs"),n[24]=T,n[25]=X):X=n[25];n[26]===Symbol.for("react.memo_cache_sentinel")?(Y=()=>G(!0),n[26]=Y):Y=n[26];n[27]!==X?(Z=(0,y.jsx)(f.Row,{icon:u.ScrollText,label:X,onPress:Y,last:!0}),n[27]=X,n[28]=Z):Z=n[28];n[29]!==Z||n[30]!==I||n[31]!==W?($=(0,y.jsxs)(v.Section,{title:I,children:[W,Z]}),n[29]=Z,n[30]=I,n[31]=W,n[32]=$):$=n[32];n[33]!==T?(ee=T("v2.settings.data"),n[33]=T,n[34]=ee):ee=n[34];n[35]!==T?(te=T("v2.settings.exportSettings"),n[35]=T,n[36]=te):te=n[36];n[37]!==V||n[38]!==te?(se=(0,y.jsx)(f.Row,{icon:u.Download,label:te,onPress:V}),n[37]=V,n[38]=te,n[39]=se):se=n[39];n[40]!==T?(ne=T("v2.settings.clearCache"),n[40]=T,n[41]=ne):ne=n[41];n[42]!==J||n[43]!==ne?(ie=(0,y.jsx)(f.Row,{icon:u.Trash2,label:ne,onPress:J}),n[42]=J,n[43]=ne,n[44]=ie):ie=n[44];n[45]!==T?(oe=T("v2.settings.resetSettings"),n[45]=T,n[46]=oe):oe=n[46];n[47]!==z||n[48]!==oe?(ce=(0,y.jsx)(f.Row,{icon:u.RotateCcw,label:oe,danger:!0,onPress:z,last:!0}),n[47]=z,n[48]=oe,n[49]=ce):ce=n[49];n[50]!==ee||n[51]!==se||n[52]!==ie||n[53]!==ce?(ae=(0,y.jsxs)(v.Section,{title:ee,children:[se,ie,ce]}),n[50]=ee,n[51]=se,n[52]=ie,n[53]=ce,n[54]=ae):ae=n[54];n[55]!==$||n[56]!==ae||n[57]!==E?(le=(0,y.jsxs)(j.SettingsGrid,{children:[E,$,ae]}),n[55]=$,n[56]=ae,n[57]=E,n[58]=le):le=n[58];n[59]===Symbol.for("react.memo_cache_sentinel")?(re=()=>G(!1),n[59]=re):re=n[59];n[60]!==F?(ge=(0,y.jsx)(_.LogsModal,{open:F,onClose:re}),n[60]=F,n[61]=ge):ge=n[61];n[62]!==le||n[63]!==ge?(ue=(0,y.jsxs)(y.Fragment,{children:[le,ge]}),n[62]=le,n[63]=ge,n[64]=ue):ue=n[64];return ue};var e,t=r(d[0]),s=r(d[1]),n=r(d[2]),o=(e=n)&&e.__esModule?e:{default:e},c=r(d[3]),l=r(d[4]),u=r(d[5]),v=r(d[6]),f=r(d[7]),S=r(d[8]),b=r(d[9]),h=r(d[10]),x=r(d[11]),C=r(d[12]),j=r(d[13]),w=r(d[14]),_=r(d[15]),y=r(d[16]);function p(e){console.error("[settings] export share failed",e)}function M(e){return e.setDebugMode}function L(e){return e.settings.debugMode}},1058,[788,16,230,817,883,837,870,1068,871,1005,833,1059,1062,1064,1060,1061,10]);
21
+ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.clearAppCache=async function(e){try{e.clear()}catch(e){console.error('[clear-cache] react-query clear failed',e)}try{await l.Image.clearMemoryCache(),await l.Image.clearDiskCache()}catch(e){console.error('[clear-cache] image cache clear failed',e)}try{const e=(await t.default.getAllKeys()).filter(e=>o.some(c=>e.startsWith(c)));e.length>0&&await t.default.multiRemove(e)}catch(e){console.error('[clear-cache] AsyncStorage cache clear failed',e)}};var e,c=r(d[0]),t=(e=c)&&e.__esModule?e:{default:e},l=r(d[1]);const o=['@camstack/v2/cache/','@camstack/v2/snapshot/']},1059,[1088,997]);
22
+ __d(function(g,_r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.NetworkSection=function(w){const k=(0,e.c)(93),{active:P}=w,{t:_}=(0,n.useTranslation)(),U=(0,R.useNotice)(),{endpoints:N,persistPinnedRouteUrl:x}=(0,s.useServer)(),{controller:S}=(0,l.useConnection)(),[j,C]=(0,t.useState)(!1),[y,L]=(0,t.useState)(!1);let V;k[0]!==S?(V=()=>S.getRoute(),k[0]=S,k[1]=V):V=k[1];const[I,E]=(0,t.useState)(V);let W;k[2]!==S?(W=()=>S.getPinnedRouteUrl(),k[2]=S,k[3]=W):W=k[3];const[$,D]=(0,t.useState)(W);let M,A;k[4]!==P||k[5]!==S?(M=()=>{if(!P)return;E(S.getRoute()),D(S.getPinnedRouteUrl());const e=setInterval(()=>{E(S.getRoute()),D(S.getPinnedRouteUrl())},h);return()=>clearInterval(e)},A=[S,P],k[4]=P,k[5]=S,k[6]=M,k[7]=A):(M=k[6],A=k[7]);(0,t.useEffect)(M,A);const B=(0,r.pinnableRouteEndpoints)(N,(0,r.currentPageProtocol)());let G,O,T;k[8]!==S||k[9]!==x||k[10]!==$?(G=()=>{null!==$&&(0,r.isLoopbackUrl)($)&&(D(null),x(null),S.setPinnedRouteUrl(null).then(()=>E(S.getRoute())))},O=[$,x,S],k[8]=S,k[9]=x,k[10]=$,k[11]=G,k[12]=O):(G=k[11],O=k[12]);(0,t.useEffect)(G,O),k[13]!==S||k[14]!==y||k[15]!==j?(T=()=>{j||y||(C(!0),S.reprobe().finally(()=>{C(!1),E(S.getRoute())}))},k[13]=S,k[14]=y,k[15]=j,k[16]=T):T=k[16];const q=T;let z;k[17]!==S||k[18]!==y||k[19]!==U||k[20]!==j||k[21]!==_?(z=()=>{if(y||j)return;L(!0);const e=(0,p.runningVersionRows)();S.diagnoseRoutes({app:(0,p.versionValue)(e,"app"),build:(0,p.versionValue)(e,"build"),runtime:(0,p.versionValue)(e,"runtime"),update:(0,p.versionValue)(e,"update")}).then(e=>{const t=e.filter(f).length;U({title:_("v2.settings.diagnoseNetwork"),message:_("v2.settings.diagnoseNetworkDone",{ok:t,total:e.length,fail:e.length-t})})}).finally(()=>{L(!1)})},k[17]=S,k[18]=y,k[19]=U,k[20]=j,k[21]=_,k[22]=z):z=k[22];const F=z;let H;k[23]!==S||k[24]!==U||k[25]!==x||k[26]!==_?(H=e=>{const t="__auto__"===e?null:e;D(t),S.setPinnedRouteUrl(t).then(e=>{E(S.getRoute()),"applied"!==e.kind?(D(S.getPinnedRouteUrl()),U({title:_("v2.settings.preferredRoute"),message:_("mixed-content"===e.reason?"v2.settings.routePinRefusedMixed":"v2.settings.routePinRefusedIpv6",{url:t??""})})):x(t)})},k[23]=S,k[24]=U,k[25]=x,k[26]=_,k[27]=H):H=k[27];const J=H;let K,Q,X,Y,Z;k[28]!==_?(K=_("v2.settings.routeChannelLan"),k[28]=_,k[29]=K):K=k[29];k[30]!==_?(Q=_("v2.settings.routeChannelPublic"),k[30]=_,k[31]=Q):Q=k[31];k[32]!==_?(X=_("v2.settings.routeChannelLoopback"),k[32]=_,k[33]=X):X=k[33];k[34]!==_?(Y=_("v2.settings.routeChannelUnknown"),k[34]=_,k[35]=Y):Y=k[35];k[36]!==K||k[37]!==Q||k[38]!==X||k[39]!==Y?(Z={lan:K,public:Q,loopback:X,unknown:Y},k[36]=K,k[37]=Q,k[38]=X,k[39]=Y,k[40]=Z):Z=k[40];const ee=Z;let te,ne,oe,se,le,ie,re;k[41]!==_?(te=_("v2.settings.routeReasonInitial"),k[41]=_,k[42]=te):te=k[42];k[43]!==_?(ne=_("v2.settings.routeReasonRaceWon"),k[43]=_,k[44]=ne):ne=k[44];k[45]!==_?(oe=_("v2.settings.routeReasonNoWinner"),k[45]=_,k[46]=oe):oe=k[46];k[47]!==_?(se=_("v2.settings.routeReasonUnchanged"),k[47]=_,k[48]=se):se=k[48];k[49]!==_?(le=_("v2.settings.routeReasonDisposed"),k[49]=_,k[50]=le):le=k[50];k[51]!==_?(ie=_("v2.settings.routeReasonPinned"),k[51]=_,k[52]=ie):ie=k[52];k[53]!==te||k[54]!==ne||k[55]!==oe||k[56]!==se||k[57]!==le||k[58]!==ie?(re={initial:te,"race-won":ne,"no-winner":oe,unchanged:se,disposed:le,pinned:ie},k[53]=te,k[54]=ne,k[55]=oe,k[56]=se,k[57]=le,k[58]=ie,k[59]=re):re=k[59];const ue=re;let ae;k[60]!==$?(ae=null===$||(0,r.isLoopbackUrl)($)?null:$,k[60]=$,k[61]=ae):ae=k[61];const ce=ae;let ge;k[62]!==_?(ge=_("v2.settings.network"),k[62]=_,k[63]=ge):ge=k[63];const ve="public"===I.channel?o.Globe:"lan"===I.channel?o.Wifi:o.Network;let de;k[64]!==_?(de=_("v2.settings.activeRoute"),k[64]=_,k[65]=de):de=k[65];const Re=`${ee[I.channel]} \xb7 ${I.host} \xb7 ${ue[I.reason]}`;let pe,be,he,fe,we,ke,Pe,Ue,Ne,xe;k[66]!==ve||k[67]!==de||k[68]!==Re?(pe=(0,b.jsx)(c.Row,{icon:ve,label:de,value:Re}),k[66]=ve,k[67]=de,k[68]=Re,k[69]=pe):pe=k[69];k[70]!==_?(be=_("v2.settings.preferredRoute"),k[70]=_,k[71]=be):be=k[71];k[72]!==_?(he=_("v2.settings.routeAuto"),k[72]=_,k[73]=he):he=k[73];k[74]!==he?(fe={value:"__auto__",label:he},k[74]=he,k[75]=fe):fe=k[75];k[76]!==_?(we=e=>({value:e.baseUrl,label:e.label,detail:e.plausible?e.baseUrl:_("v2.settings.endpointUnlikely")}),k[76]=_,k[77]=we):we=k[77];k[78]!==B.length||k[79]!==_?(ke=0===B.length?(0,b.jsx)(c.Row,{icon:o.Network,label:_("v2.settings.networkNone")}):null,k[78]=B.length,k[79]=_,k[80]=ke):ke=k[80];k[81]!==y||k[82]!==_?(Pe=_(y?"v2.settings.diagnosingNetwork":"v2.settings.diagnoseNetwork"),k[81]=y,k[82]=_,k[83]=Pe):Pe=k[83];k[84]!==F||k[85]!==Pe?(Ue=(0,b.jsx)(c.Row,{icon:o.Bug,label:Pe,onPress:F}),k[84]=F,k[85]=Pe,k[86]=Ue):Ue=k[86];k[87]!==j||k[88]!==_?(Ne=_(j?"v2.settings.reprobing":"v2.settings.reprobe"),k[87]=j,k[88]=_,k[89]=Ne):Ne=k[89];k[90]!==q||k[91]!==Ne?(xe=(0,b.jsx)(c.Row,{icon:o.RefreshCcw,label:Ne,onPress:q,last:!0}),k[90]=q,k[91]=Ne,k[92]=xe):xe=k[92];return(0,b.jsxs)(u.Section,{title:ge,children:[pe,(0,b.jsx)(v.SelectRow,{icon:o.Layers,label:be,options:[fe,...B.map(we),...null===ce||B.some(e=>e.baseUrl===ce)?[]:[{value:ce,label:ce,detail:ce}]],value:ce??"__auto__",onChange:J}),ke,Ue,xe]})};var e=_r(d[0]),t=_r(d[1]),n=_r(d[2]),o=_r(d[3]),s=_r(d[4]),l=_r(d[5]),r=_r(d[6]),u=_r(d[7]),c=_r(d[8]),v=_r(d[9]),R=_r(d[10]),p=_r(d[11]),b=_r(d[12]);const h=2e3;function f(e){return e.ok}},1060,[788,16,817,837,988,818,1089,870,1068,1074,1005,1057,10]);
23
+ __d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.levelTone=y,_e.LogsModal=function(e){const l=(0,t.c)(26),{open:A,onClose:E}=e,{t:G}=(0,u.useTranslation)(),{colors:L}=(0,p.useTheme)(),_=(0,h.useSafeAreaInsets)(),w=(0,S.useLogStore)(I),H=(0,S.useLogStore)(P);let M;if(l[0]!==H||l[1]!==L||l[2]!==w||l[3]!==_.bottom||l[4]!==_.top||l[5]!==E||l[6]!==A||l[7]!==G){const e=w.slice(-500).reverse();let t;l[9]!==w?(t=()=>{o.default.share({message:w.map(S.logEntryToLine).join("\n")})},l[9]=w,l[10]=t):t=l[10];const u=t,h=_.top+x.SPACING.md;let p,P,I,N;l[11]!==L.backgroundElevated||l[12]!==_.bottom||l[13]!==h?(p=[T.sheet,{backgroundColor:L.backgroundElevated,paddingTop:h,paddingBottom:_.bottom}],l[11]=L.backgroundElevated,l[12]=_.bottom,l[13]=h,l[14]=p):p=l[14],l[15]!==G?(P=G("v2.settings.viewLogs"),l[15]=G,l[16]=P):P=l[16],l[17]!==H||l[18]!==w.length||l[19]!==u||l[20]!==G?(I=w.length>0?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(v.SheetIconButton,{icon:f.Download,label:G("v2.settings.logsShare"),onPress:u}),(0,j.jsx)(v.SheetIconButton,{icon:f.Trash2,tone:"danger",label:G("v2.settings.logsClear"),onPress:H})]}):null,l[17]=H,l[18]=w.length,l[19]=u,l[20]=G,l[21]=I):I=l[21],l[22]!==E||l[23]!==P||l[24]!==I?(N=(0,j.jsx)(c.default,{style:T.header,children:(0,j.jsx)(v.SheetHeader,{title:P,onClose:E,actions:I})}),l[22]=E,l[23]=P,l[24]=I,l[25]=N):N=l[25],M=(0,j.jsxs)(C.SheetModal,{visible:A,onClose:E,testID:"logs-sheet",sheetStyle:p,children:[N,0===e.length?(0,j.jsx)(b.EmptyState,{icon:f.ScrollText,title:G("v2.settings.logsEmpty")}):(0,j.jsx)(n.default,{style:T.list,contentContainerStyle:T.listContent,children:e.map(e=>(0,j.jsx)(s.default,{selectable:!0,style:[T.line,{color:y(e.level,L)}],children:(0,S.logEntryToLine)(e)},e.id))})]}),l[0]=H,l[1]=L,l[2]=w,l[3]=_.bottom,l[4]=_.top,l[5]=E,l[6]=A,l[7]=G,l[8]=M}else M=l[8];return M};var t=r(d[0]);r(d[1]);var n=e(r(d[2])),o=e(r(d[3])),l=e(r(d[4])),s=e(r(d[5])),c=e(r(d[6])),u=r(d[7]),h=r(d[8]),f=r(d[9]),S=r(d[10]),p=r(d[11]),x=r(d[12]),b=r(d[13]),v=r(d[14]),C=r(d[15]),j=r(d[16]);function y(e,t){switch(e){case'error':return t.danger;case'warn':return t.warning;case'info':return t.foregroundMuted;default:return t.foregroundSubtle}}function P(e){return e.clear}function I(e){return e.entries}const T=l.default.create({sheet:{height:'100%'},header:{paddingHorizontal:x.SPACING.xl},list:{flex:1},listContent:{paddingHorizontal:x.SPACING.xl,paddingBottom:x.SPACING.xl,gap:x.SPACING.xs},line:{fontSize:x.TYPOGRAPHY.size.xs,lineHeight:15,fontFamily:'monospace'}})},1061,[788,16,138,230,32,193,114,817,273,837,1000,790,835,975,873,869,10]);
@@ -1,38 +1,38 @@
1
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return o}});var t=r(d[0]),n=r(d[1]),c=r(d[2]);function o(){const o=(0,t.c)(1);let u;return o[0]===Symbol.for("react.memo_cache_sentinel")?(u=(0,c.jsx)(n.SignInMethodsScreen,{}),o[0]=u):u=o[0],u}},769,[788,1424,10]);
2
- __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.SignInMethodsScreen=function(){const n=(0,e.c)(11),{t:o}=(0,s.useTranslation)(),{colors:c}=(0,u.useTheme)();let v,A,C,I,G,T;n[0]!==c.background?(v={flex:1,backgroundColor:c.background},n[0]=c.background,n[1]=v):v=n[1];n[2]!==o?(A=o("v2.signIn.title"),n[2]=o,n[3]=A):A=n[3];n[4]!==A?(C=(0,P.jsx)(l.ScreenHeader,{title:A,onBack:p,bordered:!0}),n[4]=A,n[5]=C):C=n[5];n[6]===Symbol.for("react.memo_cache_sentinel")?(I={padding:S.SPACING.xl,paddingBottom:S.SPACING["3xl"],gap:S.SPACING["2xl"]},n[6]=I):I=n[6];n[7]===Symbol.for("react.memo_cache_sentinel")?(G=(0,P.jsx)(y.KeyboardAwareScrollView,{keyboardShouldPersistTaps:"handled",contentContainerStyle:I,children:(0,P.jsxs)(x.SettingsGrid,{children:[(0,P.jsx)(b.PasswordSection,{}),(0,P.jsx)(h.TotpSection,{}),(0,P.jsx)(j.PasskeysSection,{}),(0,P.jsx)(_.LinkedAccountsSection,{}),(0,P.jsx)(f.ActiveSessionsSection,{})]})}),n[7]=G):G=n[7];n[8]!==v||n[9]!==C?(T=(0,P.jsx)(k.ReauthProvider,{children:(0,P.jsxs)(t.default,{style:v,children:[C,G]})}),n[8]=v,n[9]=C,n[10]=T):T=n[10];return T};var e=r(d[0]);r(d[1]);var n,o=r(d[2]),t=(n=o)&&n.__esModule?n:{default:n},s=r(d[3]),c=r(d[4]),l=r(d[5]),u=r(d[6]),S=r(d[7]),x=r(d[8]),b=r(d[9]),h=r(d[10]),j=r(d[11]),_=r(d[12]),f=r(d[13]),k=r(d[14]),y=r(d[15]),P=r(d[16]);function p(){return c.router.back()}},1424,[788,16,114,818,789,822,790,836,1064,1425,1426,1456,1458,1065,1066,877,10]);
3
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.PasswordSection=function(){const P=(0,s.c)(26),{t:b}=(0,t.useTranslation)(),S=(0,u.useNotice)(),h=(0,w.useChangePassword)(),[j,_]=(0,n.useState)(!1),[f,C]=(0,n.useState)(""),[T,D]=(0,n.useState)(""),[F,y]=(0,n.useState)(""),[N,k]=(0,n.useState)(null);let B;P[0]===Symbol.for("react.memo_cache_sentinel")?(B=()=>{_(!1),C(""),D(""),y(""),k(null)},P[0]=B):B=P[0];const E=B;let L;P[1]!==F||P[2]!==f||P[3]!==T?(L=(0,p.passwordFormProblem)({current:f,next:T,confirm:F}),P[1]=F,P[2]=f,P[3]=T,P[4]=L):L=P[4];const M=L;let O;P[5]!==h||P[6]!==f||P[7]!==T||P[8]!==S||P[9]!==M||P[10]!==b?(O=()=>{null===M?(k(null),h.mutate({currentPassword:f,newPassword:T},{onSuccess:()=>{E(),S({title:b("v2.signIn.password.changed")})},onError:s=>k(s.message)})):k(b(`v2.signIn.password.problem.${M}`,{count:p.MIN_PASSWORD_LENGTH}))},P[5]=h,P[6]=f,P[7]=T,P[8]=S,P[9]=M,P[10]=b,P[11]=O):O=P[11];const R=O;let A,G,H;P[12]!==b?(A=b("v2.signIn.password.title"),P[12]=b,P[13]=A):A=P[13];P[14]!==h||P[15]!==F||P[16]!==f||P[17]!==N||P[18]!==R||P[19]!==T||P[20]!==j||P[21]!==b?(G=j?(0,I.jsxs)(v.Panel,{children:[(0,I.jsx)(v.Field,{label:b("v2.signIn.password.current"),value:f,onChangeText:C,secure:!0,autoComplete:"current-password",testID:"password-current"}),(0,I.jsx)(v.Field,{label:b("v2.signIn.password.new"),value:T,onChangeText:D,secure:!0,autoComplete:"new-password",testID:"password-new"}),(0,I.jsx)(v.Field,{label:b("v2.signIn.password.confirm"),value:F,onChangeText:y,secure:!0,autoComplete:"new-password",testID:"password-confirm"}),null!==N?(0,I.jsx)(v.PanelText,{tone:"danger",children:N}):null,(0,I.jsx)(x.Button,{label:h.isPending?b("v2.signIn.saving"):b("v2.signIn.password.save"),onPress:R,disabled:h.isPending,testID:"password-save"}),(0,I.jsx)(x.Button,{label:b("v2.settings.cancel"),kind:"secondary",onPress:E})]}):(0,I.jsx)(c.Row,{icon:o.Lock,label:b("v2.signIn.password.change"),onPress:()=>_(!0),last:!0}),P[14]=h,P[15]=F,P[16]=f,P[17]=N,P[18]=R,P[19]=T,P[20]=j,P[21]=b,P[22]=G):G=P[22];P[23]!==A||P[24]!==G?(H=(0,I.jsx)(l.Section,{title:A,children:G}),P[23]=A,P[24]=G,P[25]=H):H=P[25];return H};var s=r(d[0]),n=r(d[1]),t=r(d[2]),o=r(d[3]),l=r(d[4]),c=r(d[5]),u=r(d[6]),w=r(d[7]),p=r(d[8]),v=r(d[9]),x=r(d[10]),I=r(d[11])},1425,[788,16,818,838,871,1068,1005,1071,1461,985,990,10]);
4
- __d(function(g,r,i,a,m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.TotpSection=function(){const e=(0,t.c)(36),{t:s}=(0,d.useTranslation)(),o=(0,b.useConfirm)(),l=(0,b.useNotice)(),c=(0,I.useDateLocale)(),u=(0,T.useTotpStatus)(),P=(0,T.useSetupTotp)(),v=(0,T.useDisableTotp)(),x=(0,D.useReauth)(),[S,j]=(0,n.useState)(null);let y;e[0]!==l||e[1]!==P||e[2]!==s?(y=()=>{P.mutate(void 0,{onSuccess:j,onError:e=>l({title:s("v2.signIn.totp.setupFailed"),message:e.message})})},e[0]=l,e[1]=P,e[2]=s,e[3]=y):y=e[3];const C=y;let w;e[4]!==o||e[5]!==v||e[6]!==l||e[7]!==x||e[8]!==s?(w=()=>{o({title:s("v2.signIn.totp.disableTitle"),message:s("v2.signIn.totp.disableBody"),confirmLabel:s("v2.signIn.totp.disable"),destructive:!0}).then(e=>e?x(s("v2.signIn.reauth.actionDisableTotp")):null).then(e=>{null!==e&&v.mutate(e.reauthToken,{onError:e=>l({title:s("v2.signIn.totp.disableFailed"),message:e.message})})})},e[4]=o,e[5]=v,e[6]=l,e[7]=x,e[8]=s,e[9]=w):w=e[9];const L=w,R=!0===u.data?.enabled,N=u.data?.confirmedAt??null;let k;e[10]!==N||e[11]!==R||e[12]!==c||e[13]!==u.isPending||e[14]!==s?(k=u.isPending?"\u2026":R?null!==N?s("v2.signIn.totp.onSince",{date:new Date(N).toLocaleDateString(c)}):s("v2.signIn.on"):s("v2.signIn.off"),e[10]=N,e[11]=R,e[12]=c,e[13]=u.isPending,e[14]=s,e[15]=k):k=e[15];const O=k;let U,A,G,F,M;e[16]!==s?(U=s("v2.signIn.totp.title"),e[16]=s,e[17]=U):U=e[17];e[18]!==s?(A=s("v2.signIn.totp.status"),e[18]=s,e[19]=A):A=e[19];e[20]!==u.isPending||e[21]!==O||e[22]!==A?(G=(0,_.jsx)(h.Row,{icon:p.ShieldCheck,label:A,value:O,last:u.isPending}),e[20]=u.isPending,e[21]=O,e[22]=A,e[23]=G):G=e[23];e[24]!==R||e[25]!==S||e[26]!==L||e[27]!==C||e[28]!==P.isPending||e[29]!==u.isPending||e[30]!==s?(F=u.isPending?null:null!==S?(0,_.jsx)(E,{enrollment:S,onDone:()=>j(null)}):R?(0,_.jsx)(h.Row,{label:s("v2.signIn.totp.disable"),danger:!0,onPress:L,last:!0}):(0,_.jsx)(h.Row,{label:P.isPending?s("v2.signIn.working"):s("v2.signIn.totp.setup"),onPress:C,last:!0}),e[24]=R,e[25]=S,e[26]=L,e[27]=C,e[28]=P.isPending,e[29]=u.isPending,e[30]=s,e[31]=F):F=e[31];e[32]!==U||e[33]!==G||e[34]!==F?(M=(0,_.jsxs)(f.Section,{title:U,children:[G,F]}),e[32]=U,e[33]=G,e[34]=F,e[35]=M):M=e[35];return M};var t=r(_d[0]),n=r(_d[1]);r(_d[2]),r(_d[3]);var s=e(r(_d[4])),o=e(r(_d[5])),l=e(r(_d[6])),d=r(_d[7]),c=r(_d[8]),u=e(c),p=r(_d[9]),f=r(_d[10]),h=r(_d[11]),b=r(_d[12]),P=r(_d[13]),I=r(_d[14]),v=r(_d[15]),x=r(_d[16]),T=r(_d[17]),S=r(_d[18]),j=r(_d[19]),y=r(_d[20]),D=r(_d[21]),C=r(_d[22]),_=r(_d[23]);const w=184;function E(e){const c=(0,t.c)(70),{enrollment:u,onDone:f}=e,{t:h}=(0,d.useTranslation)(),{colors:I}=(0,v.useTheme)(),y=(0,b.useNotice)(),D=(0,T.useConfirmTotp)(),[w,E]=(0,n.useState)(""),[R,N]=(0,n.useState)(null);let k;c[0]!==w||c[1]!==D||c[2]!==y||c[3]!==f||c[4]!==h?(k=()=>{w.length===S.TOTP_CODE_LENGTH?(N(null),D.mutate(w,{onSuccess:()=>{f(),y({title:h("v2.signIn.totp.enabled")})},onError:e=>N(e.message)})):N(h("v2.signIn.totp.codeLength",{count:S.TOTP_CODE_LENGTH}))},c[0]=w,c[1]=D,c[2]=y,c[3]=f,c[4]=h,c[5]=k):k=c[5];const O=k;let U;c[6]!==u.secret||c[7]!==y||c[8]!==h?(U=()=>{(0,P.copyText)(u.secret).then(e=>{y({title:h(e?"v2.signIn.totp.secretCopied":"v2.signIn.totp.copyFailed")})})},c[6]=u.secret,c[7]=y,c[8]=h,c[9]=U):U=c[9];const A=U;let G,F,M,z,B,H,q,$,W,J,K,Q,V,X,Y,Z,ee,te,ne,se,oe;return c[10]!==h?(G=h("v2.signIn.totp.stepScan"),c[10]=h,c[11]=G):G=c[11],c[12]!==G?(F=(0,_.jsx)(j.PanelText,{children:G}),c[12]=G,c[13]=F):F=c[13],c[14]!==u.otpauthUrl?(M=(0,_.jsx)(L,{url:u.otpauthUrl}),c[14]=u.otpauthUrl,c[15]=M):M=c[15],c[16]!==u.otpauthUrl||c[17]!==y||c[18]!==h?(z=null,c[16]=u.otpauthUrl,c[17]=y,c[18]=h,c[19]=z):z=c[19],c[20]!==I.border?(B={flexDirection:"row",alignItems:"center",gap:x.SPACING.md,padding:x.SPACING.md,borderRadius:x.RADIUS.md,borderWidth:1,borderColor:I.border},c[20]=I.border,c[21]=B):B=c[21],c[22]!==I.foreground?(H={flex:1,color:I.foreground,fontSize:15,fontFamily:"monospace"},c[22]=I.foreground,c[23]=H):H=c[23],c[24]!==u.secret?(q=(0,S.groupSecret)(u.secret),c[24]=u.secret,c[25]=q):q=c[25],c[26]!==H||c[27]!==q?($=(0,_.jsx)(o.default,{selectable:!0,testID:"totp-secret",style:H,children:q}),c[26]=H,c[27]=q,c[28]=$):$=c[28],c[29]!==h?(W=h("v2.signIn.totp.copySecret"),c[29]=h,c[30]=W):W=c[30],c[31]!==I.foregroundMuted?(J=(0,_.jsx)(p.Copy,{size:18,color:I.foregroundMuted}),c[31]=I.foregroundMuted,c[32]=J):J=c[32],c[33]!==A||c[34]!==W||c[35]!==J?(K=(0,_.jsx)(s.default,{accessibilityRole:"button",accessibilityLabel:W,hitSlop:8,onPress:A,testID:"totp-copy",children:J}),c[33]=A,c[34]=W,c[35]=J,c[36]=K):K=c[36],c[37]!==$||c[38]!==K||c[39]!==B?(Q=(0,_.jsxs)(l.default,{style:B,children:[$,K]}),c[37]=$,c[38]=K,c[39]=B,c[40]=Q):Q=c[40],c[41]!==h?(V=h("v2.signIn.totp.code"),c[41]=h,c[42]=V):V=c[42],c[43]===Symbol.for("react.memo_cache_sentinel")?(X=e=>E((0,S.normalizeTotpCode)(e)),c[43]=X):X=c[43],c[44]!==w||c[45]!==V?(Y=(0,_.jsx)(j.Field,{label:V,value:w,onChangeText:X,keyboardType:"number-pad",autoComplete:"one-time-code",maxLength:S.TOTP_CODE_LENGTH,testID:"totp-code"}),c[44]=w,c[45]=V,c[46]=Y):Y=c[46],c[47]!==R?(Z=null!==R?(0,_.jsx)(j.PanelText,{tone:"danger",children:R}):null,c[47]=R,c[48]=Z):Z=c[48],c[49]!==D.isPending||c[50]!==h?(ee=D.isPending?h("v2.signIn.working"):h("v2.signIn.totp.confirm"),c[49]=D.isPending,c[50]=h,c[51]=ee):ee=c[51],c[52]!==D.isPending||c[53]!==O||c[54]!==ee?(te=(0,_.jsx)(C.Button,{label:ee,onPress:O,disabled:D.isPending,testID:"totp-confirm"}),c[52]=D.isPending,c[53]=O,c[54]=ee,c[55]=te):te=c[55],c[56]!==h?(ne=h("v2.settings.cancel"),c[56]=h,c[57]=ne):ne=c[57],c[58]!==f||c[59]!==ne?(se=(0,_.jsx)(C.Button,{label:ne,kind:"secondary",onPress:f}),c[58]=f,c[59]=ne,c[60]=se):se=c[60],c[61]!==Q||c[62]!==Y||c[63]!==Z||c[64]!==te||c[65]!==se||c[66]!==F||c[67]!==M||c[68]!==z?(oe=(0,_.jsxs)(j.Panel,{children:[F,M,z,Q,Y,Z,te,se]}),c[61]=Q,c[62]=Y,c[63]=Z,c[64]=te,c[65]=se,c[66]=F,c[67]=M,c[68]=z,c[69]=oe):oe=c[69],oe}function L(e){const n=(0,t.c)(8),{url:s}=e;let o;n[0]!==s?(o=(0,y.qrPath)(s),n[0]=s,n[1]=o):o=n[1];const{size:d,d:p}=o;let f;n[2]===Symbol.for("react.memo_cache_sentinel")?(f={alignSelf:"center",backgroundColor:"#ffffff",padding:x.SPACING.md,borderRadius:x.RADIUS.md},n[2]=f):f=n[2];const h=`0 0 ${d} ${d}`;let b,P;return n[3]!==p?(b=(0,_.jsx)(c.Path,{d:p,fill:"#000000"}),n[3]=p,n[4]=b):b=n[4],n[5]!==h||n[6]!==b?(P=(0,_.jsx)(l.default,{testID:"totp-qr",style:f,children:(0,_.jsx)(u.default,{width:w,height:w,viewBox:h,children:b})}),n[5]=h,n[6]=b,n[7]=P):P=n[7],P}},1426,[788,16,225,109,247,193,114,818,1264,838,871,1068,1005,1070,863,790,836,1071,1461,985,1427,1066,990,10]);
5
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.qrPath=function(o){const{modules:s}=(0,t.create)(o,{errorCorrectionLevel:'M'}),n=[];for(let t=0;t<s.size;t+=1)for(let o=0;o<s.size;o+=1)1===s.get(t,o)&&n.push(`M${o} ${t}h1v1h-1z`);return{size:s.size,d:n.join('')}};var t=r(d[0])},1427,[1428]);
6
- __d(function(g,r,i,a,m,_e,d){const t=r(d[0]),n=r(d[1]),e=r(d[2]),o=r(d[3]);function c(e,o,c,l,u){const f=[].slice.call(arguments,1),s=f.length,v='function'==typeof f[s-1];if(!v&&!t())throw new Error('Callback required as last argument');if(!v){if(s<1)throw new Error('Too few arguments provided');return 1===s?(c=o,o=l=void 0):2!==s||o.getContext||(l=c,c=o,o=void 0),new Promise(function(t,u){try{const u=n.create(c,l);t(e(u,o,l))}catch(t){u(t)}})}if(s<2)throw new Error('Too few arguments provided');2===s?(u=c,c=o,o=l=void 0):3===s&&(o.getContext&&void 0===u?(u=l,l=void 0):(u=l,l=c,c=o,o=void 0));try{const t=n.create(c,l);u(null,e(t,o,l))}catch(t){u(t)}}_e.create=n.create,_e.toCanvas=c.bind(null,e.render),_e.toDataURL=c.bind(null,e.renderToDataURL),_e.toString=c.bind(null,function(t,n,e){return o.render(t,e)})},1428,[1429,1430,1453,1455]);
7
- __d(function(g,r,i,a,m,e,d){m.exports=function(){return'function'==typeof Promise&&Promise.prototype&&Promise.prototype.then}},1429,[]);
8
- __d(function(g,_r,_i,a,m,e,d){const t=_r(d[0]),o=_r(d[1]),n=_r(d[2]),r=_r(d[3]),s=_r(d[4]),i=_r(d[5]),f=_r(d[6]),c=_r(d[7]),l=_r(d[8]),u=_r(d[9]),h=_r(d[10]),w=_r(d[11]),C=_r(d[12]);function y(t,o){const n=t.size,r=i.getPositions(o);for(let o=0;o<r.length;o++){const s=r[o][0],i=r[o][1];for(let o=-1;o<=7;o++)if(!(s+o<=-1||n<=s+o))for(let r=-1;r<=7;r++)i+r<=-1||n<=i+r||(o>=0&&o<=6&&(0===r||6===r)||r>=0&&r<=6&&(0===o||6===o)||o>=2&&o<=4&&r>=2&&r<=4?t.set(s+o,i+r,!0,!0):t.set(s+o,i+r,!1,!0))}}function S(t){const o=t.size;for(let n=8;n<o-8;n++){const o=n%2==0;t.set(n,6,o,!0),t.set(6,n,o,!0)}}function p(t,o){const n=s.getPositions(o);for(let o=0;o<n.length;o++){const r=n[o][0],s=n[o][1];for(let o=-2;o<=2;o++)for(let n=-2;n<=2;n++)-2===o||2===o||-2===n||2===n||0===o&&0===n?t.set(r+o,s+n,!0,!0):t.set(r+o,s+n,!1,!0)}}function v(t,o){const n=t.size,r=u.getEncodedBits(o);let s,i,f;for(let o=0;o<18;o++)s=Math.floor(o/3),i=o%3+n-8-3,f=1==(r>>o&1),t.set(s,i,f,!0),t.set(i,s,f,!0)}function B(t,o,n){const r=t.size,s=h.getEncodedBits(o,n);let i,f;for(i=0;i<15;i++)f=1==(s>>i&1),i<6?t.set(i,8,f,!0):i<8?t.set(i+1,8,f,!0):t.set(r-15+i,8,f,!0),i<8?t.set(8,r-i-1,f,!0):i<9?t.set(8,15-i-1+1,f,!0):t.set(8,15-i-1,f,!0);t.set(r-8,8,1,!0)}function b(t,o){const n=t.size;let r=-1,s=n-1,i=7,f=0;for(let c=n-1;c>0;c-=2)for(6===c&&c--;;){for(let n=0;n<2;n++)if(!t.isReserved(s,c-n)){let r=!1;f<o.length&&(r=1==(o[f]>>>i&1)),t.set(s,c-n,r),i--,-1===i&&(f++,i=7)}if(s+=r,s<0||n<=s){s-=r,r=-r;break}}}function M(o,r,s){const i=new n;s.forEach(function(t){i.put(t.mode.bit,4),i.put(t.getLength(),w.getCharCountIndicator(t.mode,o)),t.write(i)});const f=8*(t.getSymbolTotalCodewords(o)-c.getTotalCodewordsCount(o,r));for(i.getLengthInBits()+4<=f&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(0);const l=(f-i.getLengthInBits())/8;for(let t=0;t<l;t++)i.put(t%2?17:236,8);return I(i,o,r)}function I(o,n,r){const s=t.getSymbolTotalCodewords(n),i=s-c.getTotalCodewordsCount(n,r),f=c.getBlocksCount(n,r),u=f-s%f,h=Math.floor(s/f),w=Math.floor(i/f),C=w+1,y=h-w,S=new l(y);let p=0;const v=new Array(f),B=new Array(f);let b=0;const M=new Uint8Array(o.buffer);for(let t=0;t<f;t++){const o=t<u?w:C;v[t]=M.slice(p,p+o),B[t]=S.encode(v[t]),p+=o,b=Math.max(b,o)}const I=new Uint8Array(s);let A,E,T=0;for(A=0;A<b;A++)for(E=0;E<f;E++)A<v[E].length&&(I[T++]=v[E][A]);for(A=0;A<y;A++)for(E=0;E<f;E++)I[T++]=B[E][A];return I}function A(o,n,s,i){let c;if(Array.isArray(o))c=C.fromArray(o);else{if('string'!=typeof o)throw new Error('Invalid data');{let t=n;if(!t){const n=C.rawSplit(o);t=u.getBestVersionForData(n,s)}c=C.fromString(o,t||40)}}const l=u.getBestVersionForData(c,s);if(!l)throw new Error('The amount of data is too big to be stored in a QR Code');if(n){if(n<l)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+l+'.\n')}else n=l;const h=M(n,s,c),w=t.getSymbolSize(n),I=new r(w);return y(I,n),S(I),p(I,n),B(I,s,0),n>=7&&v(I,n),b(I,h),isNaN(i)&&(i=f.getBestMask(I,B.bind(null,I,s))),f.applyMask(i,I),B(I,s,i),{modules:I,version:n,errorCorrectionLevel:s,maskPattern:i,segments:c}}e.create=function(n,r){if(void 0===n||''===n)throw new Error('No input text');let s,i,c=o.M;return void 0!==r&&(c=o.from(r.errorCorrectionLevel,o.M),s=u.from(r.version),i=f.from(r.maskPattern),r.toSJISFunc&&t.setToSJISFunction(r.toSJISFunc)),A(n,s,c,i)}},1430,[1431,1432,1433,1434,1435,1436,1437,1438,1439,1442,1446,1443,1447]);
9
- __d(function(g,r,i,a,m,e,d){let n;const o=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];e.getSymbolSize=function(n){if(!n)throw new Error('"version" cannot be null or undefined');if(n<1||n>40)throw new Error('"version" should be in range from 1 to 40');return 4*n+17},e.getSymbolTotalCodewords=function(n){return o[n]},e.getBCHDigit=function(n){let o=0;for(;0!==n;)o++,n>>>=1;return o},e.setToSJISFunction=function(o){if('function'!=typeof o)throw new Error('"toSJISFunc" is not a valid function.');n=o},e.isKanjiModeEnabled=function(){return void 0!==n},e.toSJIS=function(o){return n(o)}},1431,[]);
10
- __d(function(g,r,i,a,m,_e,d){function t(t){if('string'!=typeof t)throw new Error('Param is not a string');switch(t.toLowerCase()){case'l':case'low':return _e.L;case'm':case'medium':return _e.M;case'q':case'quartile':return _e.Q;case'h':case'high':return _e.H;default:throw new Error('Unknown EC Level: '+t)}}_e.L={bit:1},_e.M={bit:0},_e.Q={bit:3},_e.H={bit:2},_e.isValid=function(t){return t&&void 0!==t.bit&&t.bit>=0&&t.bit<4},_e.from=function(e,n){if(_e.isValid(e))return e;try{return t(e)}catch(t){return n}}},1432,[]);
11
- __d(function(g,r,_i,a,m,e,d){function t(){this.buffer=[],this.length=0}t.prototype={get:function(t){const n=Math.floor(t/8);return 1==(this.buffer[n]>>>7-t%8&1)},put:function(t,n){for(let h=0;h<n;h++)this.putBit(1==(t>>>n-h-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){const n=Math.floor(this.length/8);this.buffer.length<=n&&this.buffer.push(0),t&&(this.buffer[n]|=128>>>this.length%8),this.length++}},m.exports=t},1433,[]);
12
- __d(function(g,r,i,a,m,e,d){function t(t){if(!t||t<1)throw new Error('BitMatrix size must be defined and greater than 0');this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}t.prototype.set=function(t,s,n,o){const h=t*this.size+s;this.data[h]=n,o&&(this.reservedBit[h]=!0)},t.prototype.get=function(t,s){return this.data[t*this.size+s]},t.prototype.xor=function(t,s,n){this.data[t*this.size+s]^=n},t.prototype.isReserved=function(t,s){return this.reservedBit[t*this.size+s]},m.exports=t},1434,[]);
13
- __d(function(g,r,_i,a,m,e,d){const o=r(d[0]).getSymbolSize;e.getRowColCoords=function(t){if(1===t)return[];const n=Math.floor(t/7)+2,s=o(t),l=145===s?26:2*Math.ceil((s-13)/(2*n-2)),f=[s-7];for(let o=1;o<n-1;o++)f[o]=f[o-1]-l;return f.push(6),f.reverse()},e.getPositions=function(o){const t=[],n=e.getRowColCoords(o),s=n.length;for(let o=0;o<s;o++)for(let l=0;l<s;l++)0===o&&0===l||0===o&&l===s-1||o===s-1&&0===l||t.push([n[o],n[l]]);return t}},1435,[1431]);
14
- __d(function(g,r,i,a,m,e,d){const n=r(d[0]).getSymbolSize;e.getPositions=function(t){const o=n(t);return[[0,0],[o-7,0],[0,o-7]]}},1436,[1431]);
15
- __d(function(g,r,_i,a,m,e,d){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t=3,n=3,s=40,l=10;function o(t,n,s){switch(t){case e.Patterns.PATTERN000:return(n+s)%2==0;case e.Patterns.PATTERN001:return n%2==0;case e.Patterns.PATTERN010:return s%3==0;case e.Patterns.PATTERN011:return(n+s)%3==0;case e.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(s/3))%2==0;case e.Patterns.PATTERN101:return n*s%2+n*s%3==0;case e.Patterns.PATTERN110:return(n*s%2+n*s%3)%2==0;case e.Patterns.PATTERN111:return(n*s%3+(n+s)%2)%2==0;default:throw new Error('bad maskPattern:'+t)}}e.isValid=function(t){return null!=t&&''!==t&&!isNaN(t)&&t>=0&&t<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(n){const s=n.size;let l=0,o=0,P=0,T=null,c=null;for(let u=0;u<s;u++){o=P=0,T=c=null;for(let N=0;N<s;N++){let s=n.get(u,N);s===T?o++:(o>=5&&(l+=t+(o-5)),T=s,o=1),s=n.get(N,u),s===c?P++:(P>=5&&(l+=t+(P-5)),c=s,P=1)}o>=5&&(l+=t+(o-5)),P>=5&&(l+=t+(P-5))}return l},e.getPenaltyN2=function(t){const s=t.size;let l=0;for(let n=0;n<s-1;n++)for(let o=0;o<s-1;o++){const s=t.get(n,o)+t.get(n,o+1)+t.get(n+1,o)+t.get(n+1,o+1);4!==s&&0!==s||l++}return l*n},e.getPenaltyN3=function(t){const n=t.size;let l=0,o=0,P=0;for(let s=0;s<n;s++){o=P=0;for(let T=0;T<n;T++)o=o<<1&2047|t.get(s,T),T>=10&&(1488===o||93===o)&&l++,P=P<<1&2047|t.get(T,s),T>=10&&(1488===P||93===P)&&l++}return l*s},e.getPenaltyN4=function(t){let n=0;const s=t.data.length;for(let l=0;l<s;l++)n+=t.data[l];return Math.abs(Math.ceil(100*n/s/5)-10)*l},e.applyMask=function(t,n){const s=n.size;for(let l=0;l<s;l++)for(let P=0;P<s;P++)n.isReserved(P,l)||n.xor(P,l,o(t,P,l))},e.getBestMask=function(t,n){const s=Object.keys(e.Patterns).length;let l=0,o=1/0;for(let P=0;P<s;P++){n(P),e.applyMask(P,t);const s=e.getPenaltyN1(t)+e.getPenaltyN2(t)+e.getPenaltyN3(t)+e.getPenaltyN4(t);e.applyMask(P,t),s<o&&(o=s,l=P)}return l}},1437,[]);
16
- __d(function(g,r,i,a,m,e,d){const t=r(d[0]),n=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],u=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];e.getBlocksCount=function(u,c){switch(c){case t.L:return n[4*(u-1)+0];case t.M:return n[4*(u-1)+1];case t.Q:return n[4*(u-1)+2];case t.H:return n[4*(u-1)+3];default:return}},e.getTotalCodewordsCount=function(n,c){switch(c){case t.L:return u[4*(n-1)+0];case t.M:return u[4*(n-1)+1];case t.Q:return u[4*(n-1)+2];case t.H:return u[4*(n-1)+3];default:return}}},1438,[1432]);
17
- __d(function(g,r,i,a,m,e,d){const t=r(d[0]);function n(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}n.prototype.initialize=function(n){this.degree=n,this.genPoly=t.generateECPolynomial(this.degree)},n.prototype.encode=function(n){if(!this.genPoly)throw new Error('Encoder not initialized');const o=new Uint8Array(n.length+this.degree);o.set(n);const s=t.mod(o,this.genPoly),h=this.degree-s.length;if(h>0){const t=new Uint8Array(this.degree);return t.set(s,h),t}return s},m.exports=n},1439,[1440]);
18
- __d(function(g,r,_i,a,m,e,d){const n=r(d[0]);e.mul=function(t,l){const o=new Uint8Array(t.length+l.length-1);for(let u=0;u<t.length;u++)for(let f=0;f<l.length;f++)o[u+f]^=n.mul(t[u],l[f]);return o},e.mod=function(t,l){let o=new Uint8Array(t);for(;o.length-l.length>=0;){const t=o[0];for(let u=0;u<l.length;u++)o[u]^=n.mul(l[u],t);let u=0;for(;u<o.length&&0===o[u];)u++;o=o.slice(u)}return o},e.generateECPolynomial=function(t){let l=new Uint8Array([1]);for(let o=0;o<t;o++)l=e.mul(l,new Uint8Array([1,n.exp(o)]));return l}},1440,[1441]);
19
- __d(function(g,r,_i,a,m,e,d){const n=new Uint8Array(512),t=new Uint8Array(256);!(function(){let o=1;for(let u=0;u<255;u++)n[u]=o,t[o]=u,o<<=1,256&o&&(o^=285);for(let t=255;t<512;t++)n[t]=n[t-255]})(),e.log=function(n){if(n<1)throw new Error('log('+n+')');return t[n]},e.exp=function(t){return n[t]},e.mul=function(o,u){return 0===o||0===u?0:n[t[o]+t[u]]}},1441,[]);
20
- __d(function(g,r,i,a,m,e,_d){const t=r(_d[0]),n=r(_d[1]),o=r(_d[2]),f=r(_d[3]),u=r(_d[4]),c=t.getBCHDigit(7973);function s(t,n,o){for(let f=1;f<=40;f++)if(n<=e.getCapacity(f,o,t))return f}function l(t,n){return f.getCharCountIndicator(t,n)+4}function d(t,n){let o=0;return t.forEach(function(t){const f=l(t.mode,n);o+=f+t.getBitsLength()}),o}function C(t,n){for(let o=1;o<=40;o++){if(d(t,o)<=e.getCapacity(o,n,f.MIXED))return o}}e.from=function(t,n){return u.isValid(t)?parseInt(t,10):n},e.getCapacity=function(o,c,s){if(!u.isValid(o))throw new Error('Invalid QR Code version');void 0===s&&(s=f.BYTE);const d=8*(t.getSymbolTotalCodewords(o)-n.getTotalCodewordsCount(o,c));if(s===f.MIXED)return d;const C=d-l(s,o);switch(s){case f.NUMERIC:return Math.floor(C/10*3);case f.ALPHANUMERIC:return Math.floor(C/11*2);case f.KANJI:return Math.floor(C/13);case f.BYTE:default:return Math.floor(C/8)}},e.getBestVersionForData=function(t,n){let f;const u=o.from(n,o.M);if(Array.isArray(t)){if(t.length>1)return C(t,u);if(0===t.length)return 1;f=t[0]}else f=t;return s(f.mode,f.getLength(),u)},e.getEncodedBits=function(n){if(!u.isValid(n)||n<7)throw new Error('Invalid QR Code version');let o=n<<12;for(;t.getBCHDigit(o)-c>=0;)o^=7973<<t.getBCHDigit(o)-c;return n<<12|o}},1442,[1431,1438,1432,1443,1444]);
21
- __d(function(g,r,i,a,m,_e,d){const t=r(d[0]),n=r(d[1]);function e(t){if('string'!=typeof t)throw new Error('Param is not a string');switch(t.toLowerCase()){case'numeric':return _e.NUMERIC;case'alphanumeric':return _e.ALPHANUMERIC;case'kanji':return _e.KANJI;case'byte':return _e.BYTE;default:throw new Error('Unknown mode: '+t)}}_e.NUMERIC={id:'Numeric',bit:1,ccBits:[10,12,14]},_e.ALPHANUMERIC={id:'Alphanumeric',bit:2,ccBits:[9,11,13]},_e.BYTE={id:'Byte',bit:4,ccBits:[8,16,16]},_e.KANJI={id:'Kanji',bit:8,ccBits:[8,10,12]},_e.MIXED={bit:-1},_e.getCharCountIndicator=function(n,e){if(!n.ccBits)throw new Error('Invalid mode: '+n);if(!t.isValid(e))throw new Error('Invalid version: '+e);return e>=1&&e<10?n.ccBits[0]:e<27?n.ccBits[1]:n.ccBits[2]},_e.getBestModeForData=function(t){return n.testNumeric(t)?_e.NUMERIC:n.testAlphanumeric(t)?_e.ALPHANUMERIC:n.testKanji(t)?_e.KANJI:_e.BYTE},_e.toString=function(t){if(t&&t.id)return t.id;throw new Error('Invalid mode')},_e.isValid=function(t){return t&&t.bit&&t.ccBits},_e.from=function(t,n){if(_e.isValid(t))return t;try{return e(t)}catch(t){return n}}},1443,[1444,1445]);
22
- __d(function(g,r,i,a,m,e,d){e.isValid=function(n){return!isNaN(n)&&n>=1&&n<=40}},1444,[]);
23
- __d(function(g,r,i,a,m,e,d){let u="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";u=u.replace(/u/g,'\\u');const n='(?:(?![A-Z0-9 $%*+\\-./:]|'+u+')(?:.|[\r\n]))+';e.KANJI=new RegExp(u,'g'),e.BYTE_KANJI=new RegExp('[^A-Z0-9 $%*+\\-./:]+','g'),e.BYTE=new RegExp(n,'g'),e.NUMERIC=new RegExp('[0-9]+','g'),e.ALPHANUMERIC=new RegExp('[A-Z $%*+\\-./:]+','g');const t=new RegExp('^'+u+'$'),E=new RegExp("^[0-9]+$"),A=new RegExp('^[A-Z0-9 $%*+\\-./:]+$');e.testKanji=function(u){return t.test(u)},e.testNumeric=function(u){return E.test(u)},e.testAlphanumeric=function(u){return A.test(u)}},1445,[]);
24
- __d(function(g,r,i,a,m,e,_d){const t=r(_d[0]),n=t.getBCHDigit(1335);e.getEncodedBits=function(o,c){const B=o.bit<<3|c;let d=B<<10;for(;t.getBCHDigit(d)-n>=0;)d^=1335<<t.getBCHDigit(d)-n;return 21522^(B<<10|d)}},1446,[1431]);
25
- __d(function(g,r,_i,a,m,e,d){const t=r(d[0]),n=r(d[1]),o=r(d[2]),u=r(d[3]),s=r(d[4]),l=r(d[5]),c=r(d[6]),h=r(d[7]);function i(t){return unescape(encodeURIComponent(t)).length}function f(t,n,o){const u=[];let s;for(;null!==(s=t.exec(o));)u.push({data:s[0],index:s.index,mode:n,length:s[0].length});return u}function E(n){const o=f(l.NUMERIC,t.NUMERIC,n),u=f(l.ALPHANUMERIC,t.ALPHANUMERIC,n);let s,h;c.isKanjiModeEnabled()?(s=f(l.BYTE,t.BYTE,n),h=f(l.KANJI,t.KANJI,n)):(s=f(l.BYTE_KANJI,t.BYTE,n),h=[]);return o.concat(u,s,h).sort(function(t,n){return t.index-n.index}).map(function(t){return{data:t.data,mode:t.mode,length:t.length}})}function A(l,c){switch(c){case t.NUMERIC:return n.getBitsLength(l);case t.ALPHANUMERIC:return o.getBitsLength(l);case t.KANJI:return s.getBitsLength(l);case t.BYTE:return u.getBitsLength(l)}}function I(t){return t.reduce(function(t,n){const o=t.length-1>=0?t[t.length-1]:null;return o&&o.mode===n.mode?(t[t.length-1].data+=n.data,t):(t.push(n),t)},[])}function C(n){const o=[];for(let u=0;u<n.length;u++){const s=n[u];switch(s.mode){case t.NUMERIC:o.push([s,{data:s.data,mode:t.ALPHANUMERIC,length:s.length},{data:s.data,mode:t.BYTE,length:s.length}]);break;case t.ALPHANUMERIC:o.push([s,{data:s.data,mode:t.BYTE,length:s.length}]);break;case t.KANJI:o.push([s,{data:s.data,mode:t.BYTE,length:i(s.data)}]);break;case t.BYTE:o.push([{data:s.data,mode:t.BYTE,length:i(s.data)}])}}return o}function p(n,o){const u={},s={start:{}};let l=['start'];for(let c=0;c<n.length;c++){const h=n[c],i=[];for(let n=0;n<h.length;n++){const f=h[n],E=''+c+n;i.push(E),u[E]={node:f,lastCount:0},s[E]={};for(let n=0;n<l.length;n++){const c=l[n];u[c]&&u[c].node.mode===f.mode?(s[c][E]=A(u[c].lastCount+f.length,f.mode)-A(u[c].lastCount,f.mode),u[c].lastCount+=f.length):(u[c]&&(u[c].lastCount=f.length),s[c][E]=A(f.length,f.mode)+4+t.getCharCountIndicator(f.mode,o))}}l=i}for(let t=0;t<l.length;t++)s[l[t]].end=0;return{map:s,table:u}}function B(l,h){let i;const f=t.getBestModeForData(l);if(i=t.from(h,f),i!==t.BYTE&&i.bit<f.bit)throw new Error('"'+l+"\" cannot be encoded with mode "+t.toString(i)+'.\n Suggested mode is: '+t.toString(f));switch(i!==t.KANJI||c.isKanjiModeEnabled()||(i=t.BYTE),i){case t.NUMERIC:return new n(l);case t.ALPHANUMERIC:return new o(l);case t.KANJI:return new s(l);case t.BYTE:return new u(l)}}e.fromArray=function(t){return t.reduce(function(t,n){return'string'==typeof n?t.push(B(n,null)):n.data&&t.push(B(n.data,n.mode)),t},[])},e.fromString=function(t,n){const o=p(C(E(t,c.isKanjiModeEnabled())),n),u=h.find_path(o.map,'start','end'),s=[];for(let t=1;t<u.length-1;t++)s.push(o.table[u[t]].node);return e.fromArray(I(s))},e.rawSplit=function(t){return e.fromArray(E(t,c.isKanjiModeEnabled()))}},1447,[1443,1448,1449,1450,1451,1445,1431,1452]);
26
- __d(function(g,r,_i,a,m,e,d){const t=r(d[0]);function n(n){this.mode=t.NUMERIC,this.data=n.toString()}n.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(t){let n,o,s;for(n=0;n+3<=this.data.length;n+=3)o=this.data.substr(n,3),s=parseInt(o,10),t.put(s,10);const i=this.data.length-n;i>0&&(o=this.data.substr(n),s=parseInt(o,10),t.put(s,3*i+1))},m.exports=n},1448,[1443]);
27
- __d(function(g,r,_i,a,m,e,d){const t=r(d[0]),n=['0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z',' ','$','%','*','+','-','.','/',':'];function i(n){this.mode=t.ALPHANUMERIC,this.data=n}i.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(t){let i;for(i=0;i+2<=this.data.length;i+=2){let h=45*n.indexOf(this.data[i]);h+=n.indexOf(this.data[i+1]),t.put(h,11)}this.data.length%2&&t.put(n.indexOf(this.data[i]),6)},m.exports=i},1449,[1443]);
28
- __d(function(g,r,_i,a,m,e,d){const t=r(d[0]);function n(n){this.mode=t.BYTE,this.data='string'==typeof n?(new TextEncoder).encode(n):new Uint8Array(n)}n.getBitsLength=function(t){return 8*t},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(t){for(let n=0,o=this.data.length;n<o;n++)t.put(this.data[n],8)},m.exports=n},1450,[1443]);
29
- __d(function(g,r,_i,a,m,e,d){const t=r(d[0]),n=r(d[1]);function i(n){this.mode=t.KANJI,this.data=n}i.getBitsLength=function(t){return 13*t},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(t){let i;for(i=0;i<this.data.length;i++){let o=n.toSJIS(this.data[i]);if(o>=33088&&o<=40956)o-=33088;else{if(!(o>=57408&&o<=60351))throw new Error('Invalid SJIS character: '+this.data[i]+"\nMake sure your charset is UTF-8");o-=49472}o=192*(o>>>8&255)+(255&o),t.put(o,13)}},m.exports=i},1451,[1443,1431]);
30
- __d(function(g,r,i,_a,m,e,_d){'use strict';var t={single_source_shortest_paths:function(o,s,u){var n={},a={};a[s]=0;var h,f,p,_,c,v,d,l=t.PriorityQueue.make();for(l.push(s,0);!l.empty();)for(p in f=(h=l.pop()).value,_=h.cost,c=o[f]||{})c.hasOwnProperty(p)&&(v=_+c[p],d=a[p],(void 0===a[p]||d>v)&&(a[p]=v,l.push(p,v),n[p]=f));if(void 0!==u&&void 0===a[u]){var y=['Could not find a path from ',s,' to ',u,'.'].join('');throw new Error(y)}return n},extract_shortest_path_from_predecessor_list:function(t,o){for(var s=[],u=o;u;)s.push(u),t[u],u=t[u];return s.reverse(),s},find_path:function(o,s,u){var n=t.single_source_shortest_paths(o,s,u);return t.extract_shortest_path_from_predecessor_list(n,u)},PriorityQueue:{make:function(o){var s,u=t.PriorityQueue,n={};for(s in o=o||{},u)u.hasOwnProperty(s)&&(n[s]=u[s]);return n.queue=[],n.sorter=o.sorter||u.default_sorter,n},default_sorter:function(t,o){return t.cost-o.cost},push:function(t,o){var s={value:t,cost:o};this.queue.push(s),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};void 0!==m&&(m.exports=t)},1452,[]);
31
- __d(function(g,r,i,a,m,_e,d){const t=r(d[0]);function e(t,e,n){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=n,e.width=n,e.style.height=n+'px',e.style.width=n+'px'}function n(){try{return document.createElement('canvas')}catch(t){throw new Error('You need to specify a canvas element')}}_e.render=function(o,c,s){let u=s,h=c;void 0!==u||c&&c.getContext||(u=c,c=void 0),c||(h=n()),u=t.getOptions(u);const l=t.getImageWidth(o.modules.size,u),p=h.getContext('2d'),y=p.createImageData(l,l);return t.qrToImageData(y.data,o,u),e(p,h,l),p.putImageData(y,0,0),h},_e.renderToDataURL=function(t,e,n){let o=n;void 0!==o||e&&e.getContext||(o=e,e=void 0),o||(o={});const c=_e.render(t,e,o),s=o.type||'image/png',u=o.rendererOpts||{};return c.toDataURL(s,u.quality)}},1453,[1454]);
32
- __d(function(g,r,_i,a,m,e,d){function t(t){if('number'==typeof t&&(t=t.toString()),'string'!=typeof t)throw new Error('Color should be defined as hex string');let o=t.slice().replace('#','').split('');if(o.length<3||5===o.length||o.length>8)throw new Error('Invalid hex color: '+t);3!==o.length&&4!==o.length||(o=Array.prototype.concat.apply([],o.map(function(t){return[t,t]}))),6===o.length&&o.push('F','F');const n=parseInt(o.join(''),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:'#'+o.slice(0,6).join('')}}e.getOptions=function(o){o||(o={}),o.color||(o.color={});const n=void 0===o.margin||null===o.margin||o.margin<0?4:o.margin,i=o.width&&o.width>=21?o.width:void 0,l=o.scale||4;return{width:i,scale:i?4:l,margin:n,color:{dark:t(o.color.dark||'#000000ff'),light:t(o.color.light||'#ffffffff')},type:o.type,rendererOpts:o.rendererOpts||{}}},e.getScale=function(t,o){return o.width&&o.width>=t+2*o.margin?o.width/(t+2*o.margin):o.scale},e.getImageWidth=function(t,o){const n=e.getScale(t,o);return Math.floor((t+2*o.margin)*n)},e.qrToImageData=function(t,o,n){const i=o.modules.size,l=o.modules.data,c=e.getScale(i,n),f=Math.floor((i+2*n.margin)*c),h=n.margin*c,s=[n.color.light,n.color.dark];for(let o=0;o<f;o++)for(let u=0;u<f;u++){let p=4*(o*f+u),w=n.color.light;if(o>=h&&u>=h&&o<f-h&&u<f-h){w=s[l[Math.floor((o-h)/c)*i+Math.floor((u-h)/c)]?1:0]}t[p++]=w.r,t[p++]=w.g,t[p++]=w.b,t[p]=w.a}}},1454,[]);
33
- __d(function(g,r,_i,a,m,e,d){const t=r(d[0]);function o(t,o){const n=t.a/255,i=o+'="'+t.hex+'"';return n<1?i+' '+o+'-opacity="'+n.toFixed(2).slice(1)+'"':i}function n(t,o,n){let i=t+o;return void 0!==n&&(i+=' '+n),i}function i(t,o,i){let l='',h=0,s=!1,c=0;for(let u=0;u<t.length;u++){const f=Math.floor(u%o),w=Math.floor(u/o);f||s||(s=!0),t[u]?(c++,u>0&&f>0&&t[u-1]||(l+=s?n('M',f+i,.5+w+i):n('m',h,0),h=0,s=!1),f+1<o&&t[u+1]||(l+=n('h',c),c=0)):h++}return l}e.render=function(n,l,h){const s=t.getOptions(l),c=n.modules.size,u=n.modules.data,f=c+2*s.margin,w=s.color.light.a?'<path '+o(s.color.light,'fill')+' d="M0 0h'+f+'v'+f+'H0z"/>':'',p='<path '+o(s.color.dark,'stroke')+' d="'+i(u,c,s.margin)+'"/>',v="viewBox=\"0 0 "+f+' '+f+'"',x='<svg xmlns="http://www.w3.org/2000/svg" '+(s.width?'width="'+s.width+'" height="'+s.width+'" ':'')+v+' shape-rendering="crispEdges">'+w+p+'</svg>\n';return'function'==typeof h&&h(null,x),x}},1455,[1454]);
34
- __d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.PasskeysSection=function(){const e=(0,s.c)(26),{t:n}=(0,o.useTranslation)(),t=(0,v.useNotice)(),l=(0,k.usePasskeys)(),I=(0,k.usePasskeySecondFactor)(),b=(0,k.useSetPasskeySecondFactor)();let h;e[0]!==t||e[1]!==n?(h=e=>t({title:n("v2.signIn.passkeys.addFailed"),message:e}),e[0]=t,e[1]=n,e[2]=h):h=e[2];const S=(0,p.usePasskeyEnrolment)(h);let R;e[3]!==l.data?(R=l.data??[],e[3]=l.data,e[4]=R):R=e[4];const A=R,w=!0===I.data;let _,C,F,T,U;e[5]!==n?(_=n("v2.signIn.passkeys.title"),e[5]=n,e[6]=_):_=e[6];e[7]!==A||e[8]!==l.isPending||e[9]!==n?(C=l.isPending?(0,x.jsx)(y.Row,{icon:u.KeyRound,label:n("v2.signIn.loading")}):0===A.length?(0,x.jsx)(P.EmptyState,{fill:!1,icon:u.KeyRound,title:n("v2.signIn.passkeys.none")}):A.map(j),e[7]=A,e[8]=l.isPending,e[9]=n,e[10]=C):C=e[10];e[11]!==S||e[12]!==A.length||e[13]!==t||e[14]!==w||e[15]!==b||e[16]!==n?(F=A.length>0||w?(0,x.jsx)(f.ToggleRow,{icon:u.ShieldCheck,label:n("v2.signIn.passkeys.secondFactor"),description:n("v2.signIn.passkeys.secondFactorHint"),value:w,onValueChange:e=>{b.mutate(e,{onError:e=>t({title:n("v2.signIn.saveFailed"),message:e.message})})},last:null===S}):null,e[11]=S,e[12]=A.length,e[13]=t,e[14]=w,e[15]=b,e[16]=n,e[17]=F):F=e[17];e[18]!==S||e[19]!==n?(T=null!==S?(0,x.jsx)(y.Row,{icon:u.Plus,label:S.opening?n("v2.signIn.working"):n("v2.signIn.passkeys.add"),onPress:S.open,last:!0}):(0,x.jsx)(y.Row,{label:n("v2.signIn.passkeys.addElsewhere"),last:!0}),e[18]=S,e[19]=n,e[20]=T):T=e[20];e[21]!==_||e[22]!==C||e[23]!==F||e[24]!==T?(U=(0,x.jsxs)(c.Section,{title:_,children:[C,F,T]}),e[21]=_,e[22]=C,e[23]=F,e[24]=T,e[25]=U):U=e[25];return U};var s=r(d[0]);r(d[1]);var n=e(r(d[2])),t=e(r(d[3])),l=e(r(d[4])),o=r(d[5]),u=r(d[6]),c=r(d[7]),y=r(d[8]),f=r(d[9]),v=r(d[10]),I=r(d[11]),b=r(d[12]),h=r(d[13]),k=r(d[14]),p=r(d[15]),S=r(d[16]),P=r(d[17]),x=r(d[18]);function j(e){return(0,x.jsx)(R,{passkey:e},e.credentialId)}function R(e){const c=(0,s.c)(58),{passkey:y}=e,{t:f}=(0,o.useTranslation)(),{colors:p}=(0,b.useTheme)(),P=(0,v.useConfirm)(),j=(0,v.useNotice)(),R=(0,I.useDateLocale)(),A=(0,k.useRemovePasskey)(),w=(0,S.useReauth)();let _;c[0]!==R?(_=e=>new Date(e).toLocaleDateString(R),c[0]=R,c[1]=_):_=c[1];const C=_;let F;c[2]!==y.label||c[3]!==f?(F=y.label.length>0?y.label:f("v2.signIn.passkeys.unnamed"),c[2]=y.label,c[3]=f,c[4]=F):F=c[4];const T=F;let U,z,E;c[5]!==C||c[6]!==y.createdAt||c[7]!==f?(U=f("v2.signIn.passkeys.added",{date:C(y.createdAt)}),c[5]=C,c[6]=y.createdAt,c[7]=f,c[8]=U):U=c[8],c[9]!==C||c[10]!==y.lastUsedAt||c[11]!==f?(z=null!==y.lastUsedAt?f("v2.signIn.passkeys.lastUsed",{date:C(y.lastUsedAt)}):f("v2.signIn.passkeys.neverUsed"),c[9]=C,c[10]=y.lastUsedAt,c[11]=f,c[12]=z):z=c[12],c[13]!==U||c[14]!==z?(E=[U,z],c[13]=U,c[14]=z,c[15]=E):E=c[15];const L=E.join(" \xb7 ");let M;c[16]!==P||c[17]!==T||c[18]!==j||c[19]!==y.credentialId||c[20]!==w||c[21]!==A||c[22]!==f?(M=()=>{P({title:f("v2.signIn.passkeys.removeTitle",{label:T}),message:f("v2.signIn.passkeys.removeBody"),confirmLabel:f("v2.signIn.remove"),destructive:!0}).then(e=>e?w(f("v2.signIn.reauth.actionRemovePasskey")):null).then(e=>{null!==e&&A.mutate({credentialId:y.credentialId,reauthToken:e.reauthToken},{onError:e=>j({title:f("v2.signIn.passkeys.removeFailed"),message:e.message})})})},c[16]=P,c[17]=T,c[18]=j,c[19]=y.credentialId,c[20]=w,c[21]=A,c[22]=f,c[23]=M):M=c[23];const N=M;let D,B,G,K,O,W,H,V;c[24]!==p.borderSubtle?(D={flexDirection:"row",alignItems:"center",gap:h.SPACING.lg,paddingHorizontal:h.SPACING.xl,paddingVertical:h.SPACING.lg,borderBottomWidth:1,borderBottomColor:p.borderSubtle},c[24]=p.borderSubtle,c[25]=D):D=c[25],c[26]!==p.foregroundMuted?(B=(0,x.jsx)(u.KeyRound,{size:18,color:p.foregroundMuted}),c[26]=p.foregroundMuted,c[27]=B):B=c[27],c[28]===Symbol.for("react.memo_cache_sentinel")?(G={flex:1,gap:2},c[28]=G):G=c[28],c[29]!==p.foreground?(K={color:p.foreground,fontSize:15,fontWeight:"500"},c[29]=p.foreground,c[30]=K):K=c[30],c[31]!==T||c[32]!==K?(O=(0,x.jsx)(n.default,{style:K,numberOfLines:1,children:T}),c[31]=T,c[32]=K,c[33]=O):O=c[33],c[34]!==p.foregroundSubtle?(W={color:p.foregroundSubtle,fontSize:12},c[34]=p.foregroundSubtle,c[35]=W):W=c[35],c[36]!==L||c[37]!==W?(H=(0,x.jsx)(n.default,{style:W,numberOfLines:1,children:L}),c[36]=L,c[37]=W,c[38]=H):H=c[38],c[39]!==O||c[40]!==H?(V=(0,x.jsxs)(t.default,{style:G,children:[O,H]}),c[39]=O,c[40]=H,c[41]=V):V=c[41];const q=A.isPending;let J,Q,X,Y,Z;return c[42]!==p.danger?(J={color:p.danger,fontSize:14,fontWeight:"600"},c[42]=p.danger,c[43]=J):J=c[43],c[44]!==f?(Q=f("v2.signIn.remove"),c[44]=f,c[45]=Q):Q=c[45],c[46]!==J||c[47]!==Q?(X=(0,x.jsx)(n.default,{style:J,children:Q}),c[46]=J,c[47]=Q,c[48]=X):X=c[48],c[49]!==N||c[50]!==A.isPending||c[51]!==X?(Y=(0,x.jsx)(l.default,{accessibilityRole:"button",hitSlop:8,disabled:q,onPress:N,children:X}),c[49]=N,c[50]=A.isPending,c[51]=X,c[52]=Y):Y=c[52],c[53]!==V||c[54]!==Y||c[55]!==D||c[56]!==B?(Z=(0,x.jsxs)(t.default,{style:D,children:[B,V,Y]}),c[53]=V,c[54]=Y,c[55]=D,c[56]=B,c[57]=Z):Z=c[57],Z}},1456,[788,16,193,114,247,818,838,871,1068,872,1005,863,790,836,1071,1457,1066,975,10]);
35
- __d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"PASSKEY_ENROLMENT_PATH",{enumerable:!0,get:function(){return l}}),_e.hubPageUrl=f,_e.usePasskeyEnrolment=function(e){const u=(0,t.c)(7),{server:d}=(0,s.useServer)(),y=(0,c.useBrowserHandoff)(),[_,p]=(0,n.useState)(!1);if(null===d)return null;const b=d.serverUrl;let v;u[0]!==y||u[1]!==e||u[2]!==b?(v=()=>{p(!0);(async()=>{await o.default.openURL(f(b,l))})().catch(t=>e(t instanceof Error?t.message:String(t))).finally(()=>p(!1))},u[0]=y,u[1]=e,u[2]=b,u[3]=v):v=u[3];const P=v;let O;u[4]!==P||u[5]!==_?(O={opening:_,open:P},u[4]=P,u[5]=_,u[6]=O):O=u[6];return O};var e,t=r(_d[0]),n=r(_d[1]),u=r(_d[2]),o=(e=u)&&e.__esModule?e:{default:e};r(_d[3]);!(function(e){if(e&&e.__esModule)return e;var t={};e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e})(r(_d[4]));var s=r(_d[5]),c=r(_d[6]);const l='/system/my-access';function f(e,t){return`${e.replace(/\/+$/,'')}${t}`}},1457,[788,16,225,109,1462,988,1071]);
36
- __d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.LinkedAccountsSection=function(){const e=(0,n.c)(35),{t:l}=(0,s.useTranslation)(),t=(0,k.useNotice)(),o=(0,u.useQueryClient)(),{server:b,sessionToken:h}=(0,I.useServer)(),p=(0,j.useLinkedAccounts)(),A=(0,x.useLinkFlow)(),_=(0,L.useReauth)();let R,T,C;if(e[0]!==p.data||e[1]!==A||e[2]!==t||e[3]!==o||e[4]!==_||e[5]!==b?.serverUrl||e[6]!==h||e[7]!==l){let n;R=p.data?.linked??[],C=void 0!==p.data?(0,S.providersToLink)(p.data.linkable,R):[],e[11]!==t||e[12]!==o||e[13]!==b?.serverUrl||e[14]!==h||e[15]!==l?(n=e=>{o.invalidateQueries({queryKey:(0,j.authSelfKey)(b?.serverUrl??null,h,"linked")}),"linked"===e.kind&&t({title:l("v2.signIn.linked.done")}),"error"===e.kind&&t({title:l("v2.signIn.linked.failed"),message:l(`v2.signIn.linked.refused.${e.reason}`,{defaultValue:e.reason})})},e[11]=t,e[12]=o,e[13]=b?.serverUrl,e[14]=h,e[15]=l,e[16]=n):n=e[16];const s=n;let u;e[17]!==A||e[18]!==t||e[19]!==_||e[20]!==s||e[21]!==l?(u=e=>{null!==A&&_(l("v2.signIn.reauth.actionLink")).then(n=>null===n?null:A.start(e,n.reauthToken)).then(e=>{null!==e&&s(e)},e=>{t({title:l("v2.signIn.linked.failed"),message:e instanceof Error?e.message:String(e)})})},e[17]=A,e[18]=t,e[19]=_,e[20]=s,e[21]=l,e[22]=u):u=e[22];const v=u;T=[...R.map(w),...null!==A?C.map(e=>(0,P.jsx)(f.Row,{icon:c.Plus,label:A.pending===e.provider?l("v2.signIn.working"):l("v2.signIn.linked.link",{provider:e.label}),onPress:()=>v(e.provider)},`link:${e.provider}`)):[]],e[0]=p.data,e[1]=A,e[2]=t,e[3]=o,e[4]=_,e[5]=b?.serverUrl,e[6]=h,e[7]=l,e[8]=R,e[9]=T,e[10]=C}else R=e[8],T=e[9],C=e[10];const E=T;let U,z,M;e[23]!==l?(U=l("v2.signIn.linked.title"),e[23]=l,e[24]=U):U=e[24];e[25]!==p||e[26]!==A||e[27]!==R||e[28]!==E||e[29]!==l||e[30]!==C?(z=p.isPending?(0,P.jsx)(f.Row,{icon:c.Link2,label:l("v2.signIn.loading"),last:!0}):p.isError?(0,P.jsx)(y.ErrorState,{fill:!1,title:l("v2.signIn.loadFailed"),onRetry:()=>{p.refetch()}}):(0,P.jsxs)(P.Fragment,{children:[0===R.length?(0,P.jsx)(y.EmptyState,{fill:!1,icon:c.Link2,title:l("v2.signIn.linked.none")}):null,E,null===A&&C.length>0?(0,P.jsx)(f.Row,{label:l("v2.signIn.linked.linkElsewhere"),last:!0}):(0,P.jsx)(f.Row,{label:l("v2.signIn.linked.hint"),last:!0})]}),e[25]=p,e[26]=A,e[27]=R,e[28]=E,e[29]=l,e[30]=C,e[31]=z):z=e[31];e[32]!==U||e[33]!==z?(M=(0,P.jsx)(v.Section,{title:U,children:z}),e[32]=U,e[33]=z,e[34]=M):M=e[34];return M};var n=r(d[0]);r(d[1]);var l=e(r(d[2])),t=e(r(d[3])),o=e(r(d[4])),s=r(d[5]),u=r(d[6]),c=r(d[7]),v=r(d[8]),f=r(d[9]),k=r(d[10]),b=r(d[11]),h=r(d[12]),p=r(d[13]),I=r(d[14]),j=r(d[15]),S=r(d[16]),x=r(d[17]),L=r(d[18]),y=r(d[19]),P=r(d[20]);function w(e){return(0,P.jsx)(A,{account:e},`${e.provider}|${e.subject}`)}function A(e){const u=(0,n.c)(54),{account:v}=e,{t:f}=(0,s.useTranslation)(),{colors:I}=(0,h.useTheme)(),S=(0,k.useConfirm)(),x=(0,k.useNotice)(),L=(0,b.useDateLocale)(),y=(0,j.useUnlinkAccount)(),w=v.providerLabel??v.provider,A=v.accountLabel;let R,T,C;u[0]!==v.linkedAt||u[1]!==L||u[2]!==f?(R=f("v2.signIn.linked.since",{date:new Date(v.linkedAt).toLocaleDateString(L)}),u[0]=v.linkedAt,u[1]=L,u[2]=f,u[3]=R):R=u[3],u[4]!==v.available||u[5]!==f?(T=v.available?null:f("v2.signIn.linked.unavailable"),u[4]=v.available,u[5]=f,u[6]=T):T=u[6],u[7]!==v.accountLabel||u[8]!==R||u[9]!==T?(C=[A,R,T].filter(_),u[7]=v.accountLabel,u[8]=R,u[9]=T,u[10]=C):C=u[10];const E=C.join(" \xb7 ");let U;u[11]!==v.provider||u[12]!==v.subject||u[13]!==S||u[14]!==x||u[15]!==w||u[16]!==f||u[17]!==y?(U=()=>{S({title:f("v2.signIn.linked.unlinkTitle",{provider:w}),message:f("v2.signIn.linked.unlinkBody"),confirmLabel:f("v2.signIn.linked.unlink"),destructive:!0}).then(e=>{e&&y.mutate({provider:v.provider,subject:v.subject},{onError:e=>x({title:f("v2.signIn.linked.unlinkFailed"),message:e.message})})})},u[11]=v.provider,u[12]=v.subject,u[13]=S,u[14]=x,u[15]=w,u[16]=f,u[17]=y,u[18]=U):U=u[18];const z=U,M=v.available?1:.6;let N,D,F,$,B,G,O,W;u[19]!==I.borderSubtle||u[20]!==M?(N={flexDirection:"row",alignItems:"center",gap:p.SPACING.lg,paddingHorizontal:p.SPACING.xl,paddingVertical:p.SPACING.lg,borderBottomWidth:1,borderBottomColor:I.borderSubtle,opacity:M},u[19]=I.borderSubtle,u[20]=M,u[21]=N):N=u[21],u[22]!==I.foregroundMuted?(D=(0,P.jsx)(c.Link2,{size:18,color:I.foregroundMuted}),u[22]=I.foregroundMuted,u[23]=D):D=u[23],u[24]===Symbol.for("react.memo_cache_sentinel")?(F={flex:1,gap:2},u[24]=F):F=u[24],u[25]!==I.foreground?($={color:I.foreground,fontSize:15,fontWeight:"500"},u[25]=I.foreground,u[26]=$):$=u[26],u[27]!==w||u[28]!==$?(B=(0,P.jsx)(t.default,{style:$,numberOfLines:1,children:w}),u[27]=w,u[28]=$,u[29]=B):B=u[29],u[30]!==I.foregroundSubtle?(G={color:I.foregroundSubtle,fontSize:12},u[30]=I.foregroundSubtle,u[31]=G):G=u[31],u[32]!==E||u[33]!==G?(O=(0,P.jsx)(t.default,{style:G,numberOfLines:2,children:E}),u[32]=E,u[33]=G,u[34]=O):O=u[34],u[35]!==B||u[36]!==O?(W=(0,P.jsxs)(o.default,{style:F,children:[B,O]}),u[35]=B,u[36]=O,u[37]=W):W=u[37];const K=y.isPending;let Q,V,q,H,J;return u[38]!==I.danger?(Q={color:I.danger,fontSize:14,fontWeight:"600"},u[38]=I.danger,u[39]=Q):Q=u[39],u[40]!==f?(V=f("v2.signIn.linked.unlink"),u[40]=f,u[41]=V):V=u[41],u[42]!==Q||u[43]!==V?(q=(0,P.jsx)(t.default,{style:Q,children:V}),u[42]=Q,u[43]=V,u[44]=q):q=u[44],u[45]!==z||u[46]!==q||u[47]!==y.isPending?(H=(0,P.jsx)(l.default,{accessibilityRole:"button",hitSlop:8,disabled:K,onPress:z,children:q}),u[45]=z,u[46]=q,u[47]=y.isPending,u[48]=H):H=u[48],u[49]!==W||u[50]!==H||u[51]!==N||u[52]!==D?(J=(0,P.jsxs)(o.default,{style:N,children:[D,W,H]}),u[49]=W,u[50]=H,u[51]=N,u[52]=D,u[53]=J):J=u[53],J}function _(e){return null!==e}},1458,[788,16,247,193,114,818,854,838,871,1068,1005,863,790,836,988,1071,1461,1459,1066,975,10]);
37
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useLinkFlow=function(){const{server:l}=(0,t.useServer)(),{controller:c}=(0,o.useConnection)(),v=(0,u.useBeginLink)(),[p,w]=((0,u.useClaimLink)(),(0,n.useState)(null));if(null===l)return null;const k=async(n,t)=>{const o=l.serverUrl,u=(0,s.openLinkPopup)();try{const l=await v.mutateAsync({provider:n,reauthToken:t});return null===u?(window.location.assign(new URL(l,o).toString()),{kind:'closed'}):await(0,s.runLinkPopup)(u,l,o)}catch(n){throw u?.close(),n}};return{pending:p,start:async(n,t)=>{w(n);try{return await k(n,t)}finally{w(null)}}}};var n=r(d[0]);r(d[1]),r(d[2]),r(d[3]);var t=r(d[4]),o=r(d[5]);r(d[6]);var u=r(d[7]);r(d[8]);var s=r(d[9])},1459,[16,109,478,1462,988,819,1463,1071,1461,1460]);
38
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SSO_POPUP_MESSAGE",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"SSO_POPUP_ACK",{enumerable:!0,get:function(){return t}}),e.withPopupFlag=l,e.linkOutcomeFromQuery=c,e.profileQueryOf=p,e.openLinkPopup=function(){try{return window.open('about:blank',o,s)??null}catch{return null}},e.runLinkPopup=function(n,o,s){const f=new URL(s).origin;return n.location.href=new URL(l(o),s).toString(),new Promise(o=>{let s=!1;const l=n=>{s||(s=!0,window.removeEventListener('message',w),window.clearInterval(y),o(n))},w=o=>{if(o.source!==n||o.origin!==f)return;const s=p(o.data);null!==s&&(n.postMessage({type:t},f),l(c(s)))};window.addEventListener('message',w);const y=window.setInterval(()=>{n.closed&&l({kind:'closed'})},u)})};const n='camstack:sso-return',t='camstack:sso-ack',o='camstack-sso',s='popup=yes,width=520,height=680,resizable=yes,scrollbars=yes',u=500;function l(n){const t=new URL(n,'http://placeholder.invalid');return t.searchParams.set('popup','1'),/^[a-z][a-z0-9+.-]*:/i.test(n)?t.toString():`${t.pathname}${t.search}${t.hash}`}function c(n){const t=new URLSearchParams(n),o=t.get('linkError');return null!==o?{kind:'error',reason:o}:t.has('linked')?{kind:'linked'}:{kind:'closed'}}function p(t){if('object'!=typeof t||null===t)return null;const o=t;if(o.type!==n)return null;const s=o.completion;return'object'!=typeof s||null===s?null:'profile'===s.target&&'string'==typeof s.query?s.query:null}},1460,[]);
1
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return o}});var t=r(d[0]),n=r(d[1]),c=r(d[2]);function o(){const o=(0,t.c)(1);let u;return o[0]===Symbol.for("react.memo_cache_sentinel")?(u=(0,c.jsx)(n.SignInMethodsScreen,{}),o[0]=u):u=o[0],u}},769,[788,1429,10]);
2
+ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.SignInMethodsScreen=function(){const n=(0,e.c)(11),{t:o}=(0,s.useTranslation)(),{colors:c}=(0,u.useTheme)();let v,A,C,I,G,T;n[0]!==c.background?(v={flex:1,backgroundColor:c.background},n[0]=c.background,n[1]=v):v=n[1];n[2]!==o?(A=o("v2.signIn.title"),n[2]=o,n[3]=A):A=n[3];n[4]!==A?(C=(0,P.jsx)(l.ScreenHeader,{title:A,onBack:p,bordered:!0}),n[4]=A,n[5]=C):C=n[5];n[6]===Symbol.for("react.memo_cache_sentinel")?(I={padding:S.SPACING.xl,paddingBottom:S.SPACING["3xl"],gap:S.SPACING["2xl"]},n[6]=I):I=n[6];n[7]===Symbol.for("react.memo_cache_sentinel")?(G=(0,P.jsx)(y.KeyboardAwareScrollView,{keyboardShouldPersistTaps:"handled",contentContainerStyle:I,children:(0,P.jsxs)(x.SettingsGrid,{children:[(0,P.jsx)(b.PasswordSection,{}),(0,P.jsx)(h.TotpSection,{}),(0,P.jsx)(j.PasskeysSection,{}),(0,P.jsx)(_.LinkedAccountsSection,{}),(0,P.jsx)(f.ActiveSessionsSection,{})]})}),n[7]=G):G=n[7];n[8]!==v||n[9]!==C?(T=(0,P.jsx)(k.ReauthProvider,{children:(0,P.jsxs)(t.default,{style:v,children:[C,G]})}),n[8]=v,n[9]=C,n[10]=T):T=n[10];return T};var e=r(d[0]);r(d[1]);var n,o=r(d[2]),t=(n=o)&&n.__esModule?n:{default:n},s=r(d[3]),c=r(d[4]),l=r(d[5]),u=r(d[6]),S=r(d[7]),x=r(d[8]),b=r(d[9]),h=r(d[10]),j=r(d[11]),_=r(d[12]),f=r(d[13]),k=r(d[14]),y=r(d[15]),P=r(d[16]);function p(){return c.router.back()}},1429,[788,16,114,818,789,822,790,836,1064,1430,1431,1461,1463,1065,1066,877,10]);
3
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.PasswordSection=function(){const P=(0,s.c)(26),{t:b}=(0,t.useTranslation)(),S=(0,u.useNotice)(),h=(0,w.useChangePassword)(),[j,_]=(0,n.useState)(!1),[f,C]=(0,n.useState)(""),[T,D]=(0,n.useState)(""),[F,y]=(0,n.useState)(""),[N,k]=(0,n.useState)(null);let B;P[0]===Symbol.for("react.memo_cache_sentinel")?(B=()=>{_(!1),C(""),D(""),y(""),k(null)},P[0]=B):B=P[0];const E=B;let L;P[1]!==F||P[2]!==f||P[3]!==T?(L=(0,p.passwordFormProblem)({current:f,next:T,confirm:F}),P[1]=F,P[2]=f,P[3]=T,P[4]=L):L=P[4];const M=L;let O;P[5]!==h||P[6]!==f||P[7]!==T||P[8]!==S||P[9]!==M||P[10]!==b?(O=()=>{null===M?(k(null),h.mutate({currentPassword:f,newPassword:T},{onSuccess:()=>{E(),S({title:b("v2.signIn.password.changed")})},onError:s=>k(s.message)})):k(b(`v2.signIn.password.problem.${M}`,{count:p.MIN_PASSWORD_LENGTH}))},P[5]=h,P[6]=f,P[7]=T,P[8]=S,P[9]=M,P[10]=b,P[11]=O):O=P[11];const R=O;let A,G,H;P[12]!==b?(A=b("v2.signIn.password.title"),P[12]=b,P[13]=A):A=P[13];P[14]!==h||P[15]!==F||P[16]!==f||P[17]!==N||P[18]!==R||P[19]!==T||P[20]!==j||P[21]!==b?(G=j?(0,I.jsxs)(v.Panel,{children:[(0,I.jsx)(v.Field,{label:b("v2.signIn.password.current"),value:f,onChangeText:C,secure:!0,autoComplete:"current-password",testID:"password-current"}),(0,I.jsx)(v.Field,{label:b("v2.signIn.password.new"),value:T,onChangeText:D,secure:!0,autoComplete:"new-password",testID:"password-new"}),(0,I.jsx)(v.Field,{label:b("v2.signIn.password.confirm"),value:F,onChangeText:y,secure:!0,autoComplete:"new-password",testID:"password-confirm"}),null!==N?(0,I.jsx)(v.PanelText,{tone:"danger",children:N}):null,(0,I.jsx)(x.Button,{label:h.isPending?b("v2.signIn.saving"):b("v2.signIn.password.save"),onPress:R,disabled:h.isPending,testID:"password-save"}),(0,I.jsx)(x.Button,{label:b("v2.settings.cancel"),kind:"secondary",onPress:E})]}):(0,I.jsx)(c.Row,{icon:o.Lock,label:b("v2.signIn.password.change"),onPress:()=>_(!0),last:!0}),P[14]=h,P[15]=F,P[16]=f,P[17]=N,P[18]=R,P[19]=T,P[20]=j,P[21]=b,P[22]=G):G=P[22];P[23]!==A||P[24]!==G?(H=(0,I.jsx)(l.Section,{title:A,children:G}),P[23]=A,P[24]=G,P[25]=H):H=P[25];return H};var s=r(d[0]),n=r(d[1]),t=r(d[2]),o=r(d[3]),l=r(d[4]),c=r(d[5]),u=r(d[6]),w=r(d[7]),p=r(d[8]),v=r(d[9]),x=r(d[10]),I=r(d[11])},1430,[788,16,818,838,871,1068,1005,1071,1466,985,990,10]);
4
+ __d(function(g,r,i,a,m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.TotpSection=function(){const e=(0,t.c)(36),{t:s}=(0,d.useTranslation)(),o=(0,b.useConfirm)(),l=(0,b.useNotice)(),c=(0,I.useDateLocale)(),u=(0,T.useTotpStatus)(),P=(0,T.useSetupTotp)(),v=(0,T.useDisableTotp)(),x=(0,D.useReauth)(),[S,j]=(0,n.useState)(null);let y;e[0]!==l||e[1]!==P||e[2]!==s?(y=()=>{P.mutate(void 0,{onSuccess:j,onError:e=>l({title:s("v2.signIn.totp.setupFailed"),message:e.message})})},e[0]=l,e[1]=P,e[2]=s,e[3]=y):y=e[3];const C=y;let w;e[4]!==o||e[5]!==v||e[6]!==l||e[7]!==x||e[8]!==s?(w=()=>{o({title:s("v2.signIn.totp.disableTitle"),message:s("v2.signIn.totp.disableBody"),confirmLabel:s("v2.signIn.totp.disable"),destructive:!0}).then(e=>e?x(s("v2.signIn.reauth.actionDisableTotp")):null).then(e=>{null!==e&&v.mutate(e.reauthToken,{onError:e=>l({title:s("v2.signIn.totp.disableFailed"),message:e.message})})})},e[4]=o,e[5]=v,e[6]=l,e[7]=x,e[8]=s,e[9]=w):w=e[9];const L=w,R=!0===u.data?.enabled,N=u.data?.confirmedAt??null;let k;e[10]!==N||e[11]!==R||e[12]!==c||e[13]!==u.isPending||e[14]!==s?(k=u.isPending?"\u2026":R?null!==N?s("v2.signIn.totp.onSince",{date:new Date(N).toLocaleDateString(c)}):s("v2.signIn.on"):s("v2.signIn.off"),e[10]=N,e[11]=R,e[12]=c,e[13]=u.isPending,e[14]=s,e[15]=k):k=e[15];const O=k;let U,A,G,F,M;e[16]!==s?(U=s("v2.signIn.totp.title"),e[16]=s,e[17]=U):U=e[17];e[18]!==s?(A=s("v2.signIn.totp.status"),e[18]=s,e[19]=A):A=e[19];e[20]!==u.isPending||e[21]!==O||e[22]!==A?(G=(0,_.jsx)(h.Row,{icon:p.ShieldCheck,label:A,value:O,last:u.isPending}),e[20]=u.isPending,e[21]=O,e[22]=A,e[23]=G):G=e[23];e[24]!==R||e[25]!==S||e[26]!==L||e[27]!==C||e[28]!==P.isPending||e[29]!==u.isPending||e[30]!==s?(F=u.isPending?null:null!==S?(0,_.jsx)(E,{enrollment:S,onDone:()=>j(null)}):R?(0,_.jsx)(h.Row,{label:s("v2.signIn.totp.disable"),danger:!0,onPress:L,last:!0}):(0,_.jsx)(h.Row,{label:P.isPending?s("v2.signIn.working"):s("v2.signIn.totp.setup"),onPress:C,last:!0}),e[24]=R,e[25]=S,e[26]=L,e[27]=C,e[28]=P.isPending,e[29]=u.isPending,e[30]=s,e[31]=F):F=e[31];e[32]!==U||e[33]!==G||e[34]!==F?(M=(0,_.jsxs)(f.Section,{title:U,children:[G,F]}),e[32]=U,e[33]=G,e[34]=F,e[35]=M):M=e[35];return M};var t=r(_d[0]),n=r(_d[1]);r(_d[2]),r(_d[3]);var s=e(r(_d[4])),o=e(r(_d[5])),l=e(r(_d[6])),d=r(_d[7]),c=r(_d[8]),u=e(c),p=r(_d[9]),f=r(_d[10]),h=r(_d[11]),b=r(_d[12]),P=r(_d[13]),I=r(_d[14]),v=r(_d[15]),x=r(_d[16]),T=r(_d[17]),S=r(_d[18]),j=r(_d[19]),y=r(_d[20]),D=r(_d[21]),C=r(_d[22]),_=r(_d[23]);const w=184;function E(e){const c=(0,t.c)(70),{enrollment:u,onDone:f}=e,{t:h}=(0,d.useTranslation)(),{colors:I}=(0,v.useTheme)(),y=(0,b.useNotice)(),D=(0,T.useConfirmTotp)(),[w,E]=(0,n.useState)(""),[R,N]=(0,n.useState)(null);let k;c[0]!==w||c[1]!==D||c[2]!==y||c[3]!==f||c[4]!==h?(k=()=>{w.length===S.TOTP_CODE_LENGTH?(N(null),D.mutate(w,{onSuccess:()=>{f(),y({title:h("v2.signIn.totp.enabled")})},onError:e=>N(e.message)})):N(h("v2.signIn.totp.codeLength",{count:S.TOTP_CODE_LENGTH}))},c[0]=w,c[1]=D,c[2]=y,c[3]=f,c[4]=h,c[5]=k):k=c[5];const O=k;let U;c[6]!==u.secret||c[7]!==y||c[8]!==h?(U=()=>{(0,P.copyText)(u.secret).then(e=>{y({title:h(e?"v2.signIn.totp.secretCopied":"v2.signIn.totp.copyFailed")})})},c[6]=u.secret,c[7]=y,c[8]=h,c[9]=U):U=c[9];const A=U;let G,F,M,z,B,H,q,$,W,J,K,Q,V,X,Y,Z,ee,te,ne,se,oe;return c[10]!==h?(G=h("v2.signIn.totp.stepScan"),c[10]=h,c[11]=G):G=c[11],c[12]!==G?(F=(0,_.jsx)(j.PanelText,{children:G}),c[12]=G,c[13]=F):F=c[13],c[14]!==u.otpauthUrl?(M=(0,_.jsx)(L,{url:u.otpauthUrl}),c[14]=u.otpauthUrl,c[15]=M):M=c[15],c[16]!==u.otpauthUrl||c[17]!==y||c[18]!==h?(z=null,c[16]=u.otpauthUrl,c[17]=y,c[18]=h,c[19]=z):z=c[19],c[20]!==I.border?(B={flexDirection:"row",alignItems:"center",gap:x.SPACING.md,padding:x.SPACING.md,borderRadius:x.RADIUS.md,borderWidth:1,borderColor:I.border},c[20]=I.border,c[21]=B):B=c[21],c[22]!==I.foreground?(H={flex:1,color:I.foreground,fontSize:15,fontFamily:"monospace"},c[22]=I.foreground,c[23]=H):H=c[23],c[24]!==u.secret?(q=(0,S.groupSecret)(u.secret),c[24]=u.secret,c[25]=q):q=c[25],c[26]!==H||c[27]!==q?($=(0,_.jsx)(o.default,{selectable:!0,testID:"totp-secret",style:H,children:q}),c[26]=H,c[27]=q,c[28]=$):$=c[28],c[29]!==h?(W=h("v2.signIn.totp.copySecret"),c[29]=h,c[30]=W):W=c[30],c[31]!==I.foregroundMuted?(J=(0,_.jsx)(p.Copy,{size:18,color:I.foregroundMuted}),c[31]=I.foregroundMuted,c[32]=J):J=c[32],c[33]!==A||c[34]!==W||c[35]!==J?(K=(0,_.jsx)(s.default,{accessibilityRole:"button",accessibilityLabel:W,hitSlop:8,onPress:A,testID:"totp-copy",children:J}),c[33]=A,c[34]=W,c[35]=J,c[36]=K):K=c[36],c[37]!==$||c[38]!==K||c[39]!==B?(Q=(0,_.jsxs)(l.default,{style:B,children:[$,K]}),c[37]=$,c[38]=K,c[39]=B,c[40]=Q):Q=c[40],c[41]!==h?(V=h("v2.signIn.totp.code"),c[41]=h,c[42]=V):V=c[42],c[43]===Symbol.for("react.memo_cache_sentinel")?(X=e=>E((0,S.normalizeTotpCode)(e)),c[43]=X):X=c[43],c[44]!==w||c[45]!==V?(Y=(0,_.jsx)(j.Field,{label:V,value:w,onChangeText:X,keyboardType:"number-pad",autoComplete:"one-time-code",maxLength:S.TOTP_CODE_LENGTH,testID:"totp-code"}),c[44]=w,c[45]=V,c[46]=Y):Y=c[46],c[47]!==R?(Z=null!==R?(0,_.jsx)(j.PanelText,{tone:"danger",children:R}):null,c[47]=R,c[48]=Z):Z=c[48],c[49]!==D.isPending||c[50]!==h?(ee=D.isPending?h("v2.signIn.working"):h("v2.signIn.totp.confirm"),c[49]=D.isPending,c[50]=h,c[51]=ee):ee=c[51],c[52]!==D.isPending||c[53]!==O||c[54]!==ee?(te=(0,_.jsx)(C.Button,{label:ee,onPress:O,disabled:D.isPending,testID:"totp-confirm"}),c[52]=D.isPending,c[53]=O,c[54]=ee,c[55]=te):te=c[55],c[56]!==h?(ne=h("v2.settings.cancel"),c[56]=h,c[57]=ne):ne=c[57],c[58]!==f||c[59]!==ne?(se=(0,_.jsx)(C.Button,{label:ne,kind:"secondary",onPress:f}),c[58]=f,c[59]=ne,c[60]=se):se=c[60],c[61]!==Q||c[62]!==Y||c[63]!==Z||c[64]!==te||c[65]!==se||c[66]!==F||c[67]!==M||c[68]!==z?(oe=(0,_.jsxs)(j.Panel,{children:[F,M,z,Q,Y,Z,te,se]}),c[61]=Q,c[62]=Y,c[63]=Z,c[64]=te,c[65]=se,c[66]=F,c[67]=M,c[68]=z,c[69]=oe):oe=c[69],oe}function L(e){const n=(0,t.c)(8),{url:s}=e;let o;n[0]!==s?(o=(0,y.qrPath)(s),n[0]=s,n[1]=o):o=n[1];const{size:d,d:p}=o;let f;n[2]===Symbol.for("react.memo_cache_sentinel")?(f={alignSelf:"center",backgroundColor:"#ffffff",padding:x.SPACING.md,borderRadius:x.RADIUS.md},n[2]=f):f=n[2];const h=`0 0 ${d} ${d}`;let b,P;return n[3]!==p?(b=(0,_.jsx)(c.Path,{d:p,fill:"#000000"}),n[3]=p,n[4]=b):b=n[4],n[5]!==h||n[6]!==b?(P=(0,_.jsx)(l.default,{testID:"totp-qr",style:f,children:(0,_.jsx)(u.default,{width:w,height:w,viewBox:h,children:b})}),n[5]=h,n[6]=b,n[7]=P):P=n[7],P}},1431,[788,16,225,109,247,193,114,818,1268,838,871,1068,1005,1070,863,790,836,1071,1466,985,1432,1066,990,10]);
5
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.qrPath=function(o){const{modules:s}=(0,t.create)(o,{errorCorrectionLevel:'M'}),n=[];for(let t=0;t<s.size;t+=1)for(let o=0;o<s.size;o+=1)1===s.get(t,o)&&n.push(`M${o} ${t}h1v1h-1z`);return{size:s.size,d:n.join('')}};var t=r(d[0])},1432,[1433]);
6
+ __d(function(g,r,i,a,m,_e,d){const t=r(d[0]),n=r(d[1]),e=r(d[2]),o=r(d[3]);function c(e,o,c,l,u){const f=[].slice.call(arguments,1),s=f.length,v='function'==typeof f[s-1];if(!v&&!t())throw new Error('Callback required as last argument');if(!v){if(s<1)throw new Error('Too few arguments provided');return 1===s?(c=o,o=l=void 0):2!==s||o.getContext||(l=c,c=o,o=void 0),new Promise(function(t,u){try{const u=n.create(c,l);t(e(u,o,l))}catch(t){u(t)}})}if(s<2)throw new Error('Too few arguments provided');2===s?(u=c,c=o,o=l=void 0):3===s&&(o.getContext&&void 0===u?(u=l,l=void 0):(u=l,l=c,c=o,o=void 0));try{const t=n.create(c,l);u(null,e(t,o,l))}catch(t){u(t)}}_e.create=n.create,_e.toCanvas=c.bind(null,e.render),_e.toDataURL=c.bind(null,e.renderToDataURL),_e.toString=c.bind(null,function(t,n,e){return o.render(t,e)})},1433,[1434,1435,1458,1460]);
7
+ __d(function(g,r,i,a,m,e,d){m.exports=function(){return'function'==typeof Promise&&Promise.prototype&&Promise.prototype.then}},1434,[]);
8
+ __d(function(g,_r,_i,a,m,e,d){const t=_r(d[0]),o=_r(d[1]),n=_r(d[2]),r=_r(d[3]),s=_r(d[4]),i=_r(d[5]),f=_r(d[6]),c=_r(d[7]),l=_r(d[8]),u=_r(d[9]),h=_r(d[10]),w=_r(d[11]),C=_r(d[12]);function y(t,o){const n=t.size,r=i.getPositions(o);for(let o=0;o<r.length;o++){const s=r[o][0],i=r[o][1];for(let o=-1;o<=7;o++)if(!(s+o<=-1||n<=s+o))for(let r=-1;r<=7;r++)i+r<=-1||n<=i+r||(o>=0&&o<=6&&(0===r||6===r)||r>=0&&r<=6&&(0===o||6===o)||o>=2&&o<=4&&r>=2&&r<=4?t.set(s+o,i+r,!0,!0):t.set(s+o,i+r,!1,!0))}}function S(t){const o=t.size;for(let n=8;n<o-8;n++){const o=n%2==0;t.set(n,6,o,!0),t.set(6,n,o,!0)}}function p(t,o){const n=s.getPositions(o);for(let o=0;o<n.length;o++){const r=n[o][0],s=n[o][1];for(let o=-2;o<=2;o++)for(let n=-2;n<=2;n++)-2===o||2===o||-2===n||2===n||0===o&&0===n?t.set(r+o,s+n,!0,!0):t.set(r+o,s+n,!1,!0)}}function v(t,o){const n=t.size,r=u.getEncodedBits(o);let s,i,f;for(let o=0;o<18;o++)s=Math.floor(o/3),i=o%3+n-8-3,f=1==(r>>o&1),t.set(s,i,f,!0),t.set(i,s,f,!0)}function B(t,o,n){const r=t.size,s=h.getEncodedBits(o,n);let i,f;for(i=0;i<15;i++)f=1==(s>>i&1),i<6?t.set(i,8,f,!0):i<8?t.set(i+1,8,f,!0):t.set(r-15+i,8,f,!0),i<8?t.set(8,r-i-1,f,!0):i<9?t.set(8,15-i-1+1,f,!0):t.set(8,15-i-1,f,!0);t.set(r-8,8,1,!0)}function b(t,o){const n=t.size;let r=-1,s=n-1,i=7,f=0;for(let c=n-1;c>0;c-=2)for(6===c&&c--;;){for(let n=0;n<2;n++)if(!t.isReserved(s,c-n)){let r=!1;f<o.length&&(r=1==(o[f]>>>i&1)),t.set(s,c-n,r),i--,-1===i&&(f++,i=7)}if(s+=r,s<0||n<=s){s-=r,r=-r;break}}}function M(o,r,s){const i=new n;s.forEach(function(t){i.put(t.mode.bit,4),i.put(t.getLength(),w.getCharCountIndicator(t.mode,o)),t.write(i)});const f=8*(t.getSymbolTotalCodewords(o)-c.getTotalCodewordsCount(o,r));for(i.getLengthInBits()+4<=f&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(0);const l=(f-i.getLengthInBits())/8;for(let t=0;t<l;t++)i.put(t%2?17:236,8);return I(i,o,r)}function I(o,n,r){const s=t.getSymbolTotalCodewords(n),i=s-c.getTotalCodewordsCount(n,r),f=c.getBlocksCount(n,r),u=f-s%f,h=Math.floor(s/f),w=Math.floor(i/f),C=w+1,y=h-w,S=new l(y);let p=0;const v=new Array(f),B=new Array(f);let b=0;const M=new Uint8Array(o.buffer);for(let t=0;t<f;t++){const o=t<u?w:C;v[t]=M.slice(p,p+o),B[t]=S.encode(v[t]),p+=o,b=Math.max(b,o)}const I=new Uint8Array(s);let A,E,T=0;for(A=0;A<b;A++)for(E=0;E<f;E++)A<v[E].length&&(I[T++]=v[E][A]);for(A=0;A<y;A++)for(E=0;E<f;E++)I[T++]=B[E][A];return I}function A(o,n,s,i){let c;if(Array.isArray(o))c=C.fromArray(o);else{if('string'!=typeof o)throw new Error('Invalid data');{let t=n;if(!t){const n=C.rawSplit(o);t=u.getBestVersionForData(n,s)}c=C.fromString(o,t||40)}}const l=u.getBestVersionForData(c,s);if(!l)throw new Error('The amount of data is too big to be stored in a QR Code');if(n){if(n<l)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+l+'.\n')}else n=l;const h=M(n,s,c),w=t.getSymbolSize(n),I=new r(w);return y(I,n),S(I),p(I,n),B(I,s,0),n>=7&&v(I,n),b(I,h),isNaN(i)&&(i=f.getBestMask(I,B.bind(null,I,s))),f.applyMask(i,I),B(I,s,i),{modules:I,version:n,errorCorrectionLevel:s,maskPattern:i,segments:c}}e.create=function(n,r){if(void 0===n||''===n)throw new Error('No input text');let s,i,c=o.M;return void 0!==r&&(c=o.from(r.errorCorrectionLevel,o.M),s=u.from(r.version),i=f.from(r.maskPattern),r.toSJISFunc&&t.setToSJISFunction(r.toSJISFunc)),A(n,s,c,i)}},1435,[1436,1437,1438,1439,1440,1441,1442,1443,1444,1447,1451,1448,1452]);
9
+ __d(function(g,r,i,a,m,e,d){let n;const o=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];e.getSymbolSize=function(n){if(!n)throw new Error('"version" cannot be null or undefined');if(n<1||n>40)throw new Error('"version" should be in range from 1 to 40');return 4*n+17},e.getSymbolTotalCodewords=function(n){return o[n]},e.getBCHDigit=function(n){let o=0;for(;0!==n;)o++,n>>>=1;return o},e.setToSJISFunction=function(o){if('function'!=typeof o)throw new Error('"toSJISFunc" is not a valid function.');n=o},e.isKanjiModeEnabled=function(){return void 0!==n},e.toSJIS=function(o){return n(o)}},1436,[]);
10
+ __d(function(g,r,i,a,m,_e,d){function t(t){if('string'!=typeof t)throw new Error('Param is not a string');switch(t.toLowerCase()){case'l':case'low':return _e.L;case'm':case'medium':return _e.M;case'q':case'quartile':return _e.Q;case'h':case'high':return _e.H;default:throw new Error('Unknown EC Level: '+t)}}_e.L={bit:1},_e.M={bit:0},_e.Q={bit:3},_e.H={bit:2},_e.isValid=function(t){return t&&void 0!==t.bit&&t.bit>=0&&t.bit<4},_e.from=function(e,n){if(_e.isValid(e))return e;try{return t(e)}catch(t){return n}}},1437,[]);
11
+ __d(function(g,r,_i,a,m,e,d){function t(){this.buffer=[],this.length=0}t.prototype={get:function(t){const n=Math.floor(t/8);return 1==(this.buffer[n]>>>7-t%8&1)},put:function(t,n){for(let h=0;h<n;h++)this.putBit(1==(t>>>n-h-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){const n=Math.floor(this.length/8);this.buffer.length<=n&&this.buffer.push(0),t&&(this.buffer[n]|=128>>>this.length%8),this.length++}},m.exports=t},1438,[]);
12
+ __d(function(g,r,i,a,m,e,d){function t(t){if(!t||t<1)throw new Error('BitMatrix size must be defined and greater than 0');this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}t.prototype.set=function(t,s,n,o){const h=t*this.size+s;this.data[h]=n,o&&(this.reservedBit[h]=!0)},t.prototype.get=function(t,s){return this.data[t*this.size+s]},t.prototype.xor=function(t,s,n){this.data[t*this.size+s]^=n},t.prototype.isReserved=function(t,s){return this.reservedBit[t*this.size+s]},m.exports=t},1439,[]);
13
+ __d(function(g,r,_i,a,m,e,d){const o=r(d[0]).getSymbolSize;e.getRowColCoords=function(t){if(1===t)return[];const n=Math.floor(t/7)+2,s=o(t),l=145===s?26:2*Math.ceil((s-13)/(2*n-2)),f=[s-7];for(let o=1;o<n-1;o++)f[o]=f[o-1]-l;return f.push(6),f.reverse()},e.getPositions=function(o){const t=[],n=e.getRowColCoords(o),s=n.length;for(let o=0;o<s;o++)for(let l=0;l<s;l++)0===o&&0===l||0===o&&l===s-1||o===s-1&&0===l||t.push([n[o],n[l]]);return t}},1440,[1436]);
14
+ __d(function(g,r,i,a,m,e,d){const n=r(d[0]).getSymbolSize;e.getPositions=function(t){const o=n(t);return[[0,0],[o-7,0],[0,o-7]]}},1441,[1436]);
15
+ __d(function(g,r,_i,a,m,e,d){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t=3,n=3,s=40,l=10;function o(t,n,s){switch(t){case e.Patterns.PATTERN000:return(n+s)%2==0;case e.Patterns.PATTERN001:return n%2==0;case e.Patterns.PATTERN010:return s%3==0;case e.Patterns.PATTERN011:return(n+s)%3==0;case e.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(s/3))%2==0;case e.Patterns.PATTERN101:return n*s%2+n*s%3==0;case e.Patterns.PATTERN110:return(n*s%2+n*s%3)%2==0;case e.Patterns.PATTERN111:return(n*s%3+(n+s)%2)%2==0;default:throw new Error('bad maskPattern:'+t)}}e.isValid=function(t){return null!=t&&''!==t&&!isNaN(t)&&t>=0&&t<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(n){const s=n.size;let l=0,o=0,P=0,T=null,c=null;for(let u=0;u<s;u++){o=P=0,T=c=null;for(let N=0;N<s;N++){let s=n.get(u,N);s===T?o++:(o>=5&&(l+=t+(o-5)),T=s,o=1),s=n.get(N,u),s===c?P++:(P>=5&&(l+=t+(P-5)),c=s,P=1)}o>=5&&(l+=t+(o-5)),P>=5&&(l+=t+(P-5))}return l},e.getPenaltyN2=function(t){const s=t.size;let l=0;for(let n=0;n<s-1;n++)for(let o=0;o<s-1;o++){const s=t.get(n,o)+t.get(n,o+1)+t.get(n+1,o)+t.get(n+1,o+1);4!==s&&0!==s||l++}return l*n},e.getPenaltyN3=function(t){const n=t.size;let l=0,o=0,P=0;for(let s=0;s<n;s++){o=P=0;for(let T=0;T<n;T++)o=o<<1&2047|t.get(s,T),T>=10&&(1488===o||93===o)&&l++,P=P<<1&2047|t.get(T,s),T>=10&&(1488===P||93===P)&&l++}return l*s},e.getPenaltyN4=function(t){let n=0;const s=t.data.length;for(let l=0;l<s;l++)n+=t.data[l];return Math.abs(Math.ceil(100*n/s/5)-10)*l},e.applyMask=function(t,n){const s=n.size;for(let l=0;l<s;l++)for(let P=0;P<s;P++)n.isReserved(P,l)||n.xor(P,l,o(t,P,l))},e.getBestMask=function(t,n){const s=Object.keys(e.Patterns).length;let l=0,o=1/0;for(let P=0;P<s;P++){n(P),e.applyMask(P,t);const s=e.getPenaltyN1(t)+e.getPenaltyN2(t)+e.getPenaltyN3(t)+e.getPenaltyN4(t);e.applyMask(P,t),s<o&&(o=s,l=P)}return l}},1442,[]);
16
+ __d(function(g,r,i,a,m,e,d){const t=r(d[0]),n=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],u=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];e.getBlocksCount=function(u,c){switch(c){case t.L:return n[4*(u-1)+0];case t.M:return n[4*(u-1)+1];case t.Q:return n[4*(u-1)+2];case t.H:return n[4*(u-1)+3];default:return}},e.getTotalCodewordsCount=function(n,c){switch(c){case t.L:return u[4*(n-1)+0];case t.M:return u[4*(n-1)+1];case t.Q:return u[4*(n-1)+2];case t.H:return u[4*(n-1)+3];default:return}}},1443,[1437]);
17
+ __d(function(g,r,i,a,m,e,d){const t=r(d[0]);function n(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}n.prototype.initialize=function(n){this.degree=n,this.genPoly=t.generateECPolynomial(this.degree)},n.prototype.encode=function(n){if(!this.genPoly)throw new Error('Encoder not initialized');const o=new Uint8Array(n.length+this.degree);o.set(n);const s=t.mod(o,this.genPoly),h=this.degree-s.length;if(h>0){const t=new Uint8Array(this.degree);return t.set(s,h),t}return s},m.exports=n},1444,[1445]);
18
+ __d(function(g,r,_i,a,m,e,d){const n=r(d[0]);e.mul=function(t,l){const o=new Uint8Array(t.length+l.length-1);for(let u=0;u<t.length;u++)for(let f=0;f<l.length;f++)o[u+f]^=n.mul(t[u],l[f]);return o},e.mod=function(t,l){let o=new Uint8Array(t);for(;o.length-l.length>=0;){const t=o[0];for(let u=0;u<l.length;u++)o[u]^=n.mul(l[u],t);let u=0;for(;u<o.length&&0===o[u];)u++;o=o.slice(u)}return o},e.generateECPolynomial=function(t){let l=new Uint8Array([1]);for(let o=0;o<t;o++)l=e.mul(l,new Uint8Array([1,n.exp(o)]));return l}},1445,[1446]);
19
+ __d(function(g,r,_i,a,m,e,d){const n=new Uint8Array(512),t=new Uint8Array(256);!(function(){let o=1;for(let u=0;u<255;u++)n[u]=o,t[o]=u,o<<=1,256&o&&(o^=285);for(let t=255;t<512;t++)n[t]=n[t-255]})(),e.log=function(n){if(n<1)throw new Error('log('+n+')');return t[n]},e.exp=function(t){return n[t]},e.mul=function(o,u){return 0===o||0===u?0:n[t[o]+t[u]]}},1446,[]);
20
+ __d(function(g,r,i,a,m,e,_d){const t=r(_d[0]),n=r(_d[1]),o=r(_d[2]),f=r(_d[3]),u=r(_d[4]),c=t.getBCHDigit(7973);function s(t,n,o){for(let f=1;f<=40;f++)if(n<=e.getCapacity(f,o,t))return f}function l(t,n){return f.getCharCountIndicator(t,n)+4}function d(t,n){let o=0;return t.forEach(function(t){const f=l(t.mode,n);o+=f+t.getBitsLength()}),o}function C(t,n){for(let o=1;o<=40;o++){if(d(t,o)<=e.getCapacity(o,n,f.MIXED))return o}}e.from=function(t,n){return u.isValid(t)?parseInt(t,10):n},e.getCapacity=function(o,c,s){if(!u.isValid(o))throw new Error('Invalid QR Code version');void 0===s&&(s=f.BYTE);const d=8*(t.getSymbolTotalCodewords(o)-n.getTotalCodewordsCount(o,c));if(s===f.MIXED)return d;const C=d-l(s,o);switch(s){case f.NUMERIC:return Math.floor(C/10*3);case f.ALPHANUMERIC:return Math.floor(C/11*2);case f.KANJI:return Math.floor(C/13);case f.BYTE:default:return Math.floor(C/8)}},e.getBestVersionForData=function(t,n){let f;const u=o.from(n,o.M);if(Array.isArray(t)){if(t.length>1)return C(t,u);if(0===t.length)return 1;f=t[0]}else f=t;return s(f.mode,f.getLength(),u)},e.getEncodedBits=function(n){if(!u.isValid(n)||n<7)throw new Error('Invalid QR Code version');let o=n<<12;for(;t.getBCHDigit(o)-c>=0;)o^=7973<<t.getBCHDigit(o)-c;return n<<12|o}},1447,[1436,1443,1437,1448,1449]);
21
+ __d(function(g,r,i,a,m,_e,d){const t=r(d[0]),n=r(d[1]);function e(t){if('string'!=typeof t)throw new Error('Param is not a string');switch(t.toLowerCase()){case'numeric':return _e.NUMERIC;case'alphanumeric':return _e.ALPHANUMERIC;case'kanji':return _e.KANJI;case'byte':return _e.BYTE;default:throw new Error('Unknown mode: '+t)}}_e.NUMERIC={id:'Numeric',bit:1,ccBits:[10,12,14]},_e.ALPHANUMERIC={id:'Alphanumeric',bit:2,ccBits:[9,11,13]},_e.BYTE={id:'Byte',bit:4,ccBits:[8,16,16]},_e.KANJI={id:'Kanji',bit:8,ccBits:[8,10,12]},_e.MIXED={bit:-1},_e.getCharCountIndicator=function(n,e){if(!n.ccBits)throw new Error('Invalid mode: '+n);if(!t.isValid(e))throw new Error('Invalid version: '+e);return e>=1&&e<10?n.ccBits[0]:e<27?n.ccBits[1]:n.ccBits[2]},_e.getBestModeForData=function(t){return n.testNumeric(t)?_e.NUMERIC:n.testAlphanumeric(t)?_e.ALPHANUMERIC:n.testKanji(t)?_e.KANJI:_e.BYTE},_e.toString=function(t){if(t&&t.id)return t.id;throw new Error('Invalid mode')},_e.isValid=function(t){return t&&t.bit&&t.ccBits},_e.from=function(t,n){if(_e.isValid(t))return t;try{return e(t)}catch(t){return n}}},1448,[1449,1450]);
22
+ __d(function(g,r,i,a,m,e,d){e.isValid=function(n){return!isNaN(n)&&n>=1&&n<=40}},1449,[]);
23
+ __d(function(g,r,i,a,m,e,d){let u="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";u=u.replace(/u/g,'\\u');const n='(?:(?![A-Z0-9 $%*+\\-./:]|'+u+')(?:.|[\r\n]))+';e.KANJI=new RegExp(u,'g'),e.BYTE_KANJI=new RegExp('[^A-Z0-9 $%*+\\-./:]+','g'),e.BYTE=new RegExp(n,'g'),e.NUMERIC=new RegExp('[0-9]+','g'),e.ALPHANUMERIC=new RegExp('[A-Z $%*+\\-./:]+','g');const t=new RegExp('^'+u+'$'),E=new RegExp("^[0-9]+$"),A=new RegExp('^[A-Z0-9 $%*+\\-./:]+$');e.testKanji=function(u){return t.test(u)},e.testNumeric=function(u){return E.test(u)},e.testAlphanumeric=function(u){return A.test(u)}},1450,[]);
24
+ __d(function(g,r,i,a,m,e,_d){const t=r(_d[0]),n=t.getBCHDigit(1335);e.getEncodedBits=function(o,c){const B=o.bit<<3|c;let d=B<<10;for(;t.getBCHDigit(d)-n>=0;)d^=1335<<t.getBCHDigit(d)-n;return 21522^(B<<10|d)}},1451,[1436]);
25
+ __d(function(g,r,_i,a,m,e,d){const t=r(d[0]),n=r(d[1]),o=r(d[2]),u=r(d[3]),s=r(d[4]),l=r(d[5]),c=r(d[6]),h=r(d[7]);function i(t){return unescape(encodeURIComponent(t)).length}function f(t,n,o){const u=[];let s;for(;null!==(s=t.exec(o));)u.push({data:s[0],index:s.index,mode:n,length:s[0].length});return u}function E(n){const o=f(l.NUMERIC,t.NUMERIC,n),u=f(l.ALPHANUMERIC,t.ALPHANUMERIC,n);let s,h;c.isKanjiModeEnabled()?(s=f(l.BYTE,t.BYTE,n),h=f(l.KANJI,t.KANJI,n)):(s=f(l.BYTE_KANJI,t.BYTE,n),h=[]);return o.concat(u,s,h).sort(function(t,n){return t.index-n.index}).map(function(t){return{data:t.data,mode:t.mode,length:t.length}})}function A(l,c){switch(c){case t.NUMERIC:return n.getBitsLength(l);case t.ALPHANUMERIC:return o.getBitsLength(l);case t.KANJI:return s.getBitsLength(l);case t.BYTE:return u.getBitsLength(l)}}function I(t){return t.reduce(function(t,n){const o=t.length-1>=0?t[t.length-1]:null;return o&&o.mode===n.mode?(t[t.length-1].data+=n.data,t):(t.push(n),t)},[])}function C(n){const o=[];for(let u=0;u<n.length;u++){const s=n[u];switch(s.mode){case t.NUMERIC:o.push([s,{data:s.data,mode:t.ALPHANUMERIC,length:s.length},{data:s.data,mode:t.BYTE,length:s.length}]);break;case t.ALPHANUMERIC:o.push([s,{data:s.data,mode:t.BYTE,length:s.length}]);break;case t.KANJI:o.push([s,{data:s.data,mode:t.BYTE,length:i(s.data)}]);break;case t.BYTE:o.push([{data:s.data,mode:t.BYTE,length:i(s.data)}])}}return o}function p(n,o){const u={},s={start:{}};let l=['start'];for(let c=0;c<n.length;c++){const h=n[c],i=[];for(let n=0;n<h.length;n++){const f=h[n],E=''+c+n;i.push(E),u[E]={node:f,lastCount:0},s[E]={};for(let n=0;n<l.length;n++){const c=l[n];u[c]&&u[c].node.mode===f.mode?(s[c][E]=A(u[c].lastCount+f.length,f.mode)-A(u[c].lastCount,f.mode),u[c].lastCount+=f.length):(u[c]&&(u[c].lastCount=f.length),s[c][E]=A(f.length,f.mode)+4+t.getCharCountIndicator(f.mode,o))}}l=i}for(let t=0;t<l.length;t++)s[l[t]].end=0;return{map:s,table:u}}function B(l,h){let i;const f=t.getBestModeForData(l);if(i=t.from(h,f),i!==t.BYTE&&i.bit<f.bit)throw new Error('"'+l+"\" cannot be encoded with mode "+t.toString(i)+'.\n Suggested mode is: '+t.toString(f));switch(i!==t.KANJI||c.isKanjiModeEnabled()||(i=t.BYTE),i){case t.NUMERIC:return new n(l);case t.ALPHANUMERIC:return new o(l);case t.KANJI:return new s(l);case t.BYTE:return new u(l)}}e.fromArray=function(t){return t.reduce(function(t,n){return'string'==typeof n?t.push(B(n,null)):n.data&&t.push(B(n.data,n.mode)),t},[])},e.fromString=function(t,n){const o=p(C(E(t,c.isKanjiModeEnabled())),n),u=h.find_path(o.map,'start','end'),s=[];for(let t=1;t<u.length-1;t++)s.push(o.table[u[t]].node);return e.fromArray(I(s))},e.rawSplit=function(t){return e.fromArray(E(t,c.isKanjiModeEnabled()))}},1452,[1448,1453,1454,1455,1456,1450,1436,1457]);
26
+ __d(function(g,r,_i,a,m,e,d){const t=r(d[0]);function n(n){this.mode=t.NUMERIC,this.data=n.toString()}n.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(t){let n,o,s;for(n=0;n+3<=this.data.length;n+=3)o=this.data.substr(n,3),s=parseInt(o,10),t.put(s,10);const i=this.data.length-n;i>0&&(o=this.data.substr(n),s=parseInt(o,10),t.put(s,3*i+1))},m.exports=n},1453,[1448]);
27
+ __d(function(g,r,_i,a,m,e,d){const t=r(d[0]),n=['0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z',' ','$','%','*','+','-','.','/',':'];function i(n){this.mode=t.ALPHANUMERIC,this.data=n}i.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(t){let i;for(i=0;i+2<=this.data.length;i+=2){let h=45*n.indexOf(this.data[i]);h+=n.indexOf(this.data[i+1]),t.put(h,11)}this.data.length%2&&t.put(n.indexOf(this.data[i]),6)},m.exports=i},1454,[1448]);
28
+ __d(function(g,r,_i,a,m,e,d){const t=r(d[0]);function n(n){this.mode=t.BYTE,this.data='string'==typeof n?(new TextEncoder).encode(n):new Uint8Array(n)}n.getBitsLength=function(t){return 8*t},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(t){for(let n=0,o=this.data.length;n<o;n++)t.put(this.data[n],8)},m.exports=n},1455,[1448]);
29
+ __d(function(g,r,_i,a,m,e,d){const t=r(d[0]),n=r(d[1]);function i(n){this.mode=t.KANJI,this.data=n}i.getBitsLength=function(t){return 13*t},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(t){let i;for(i=0;i<this.data.length;i++){let o=n.toSJIS(this.data[i]);if(o>=33088&&o<=40956)o-=33088;else{if(!(o>=57408&&o<=60351))throw new Error('Invalid SJIS character: '+this.data[i]+"\nMake sure your charset is UTF-8");o-=49472}o=192*(o>>>8&255)+(255&o),t.put(o,13)}},m.exports=i},1456,[1448,1436]);
30
+ __d(function(g,r,i,_a,m,e,_d){'use strict';var t={single_source_shortest_paths:function(o,s,u){var n={},a={};a[s]=0;var h,f,p,_,c,v,d,l=t.PriorityQueue.make();for(l.push(s,0);!l.empty();)for(p in f=(h=l.pop()).value,_=h.cost,c=o[f]||{})c.hasOwnProperty(p)&&(v=_+c[p],d=a[p],(void 0===a[p]||d>v)&&(a[p]=v,l.push(p,v),n[p]=f));if(void 0!==u&&void 0===a[u]){var y=['Could not find a path from ',s,' to ',u,'.'].join('');throw new Error(y)}return n},extract_shortest_path_from_predecessor_list:function(t,o){for(var s=[],u=o;u;)s.push(u),t[u],u=t[u];return s.reverse(),s},find_path:function(o,s,u){var n=t.single_source_shortest_paths(o,s,u);return t.extract_shortest_path_from_predecessor_list(n,u)},PriorityQueue:{make:function(o){var s,u=t.PriorityQueue,n={};for(s in o=o||{},u)u.hasOwnProperty(s)&&(n[s]=u[s]);return n.queue=[],n.sorter=o.sorter||u.default_sorter,n},default_sorter:function(t,o){return t.cost-o.cost},push:function(t,o){var s={value:t,cost:o};this.queue.push(s),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};void 0!==m&&(m.exports=t)},1457,[]);
31
+ __d(function(g,r,i,a,m,_e,d){const t=r(d[0]);function e(t,e,n){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=n,e.width=n,e.style.height=n+'px',e.style.width=n+'px'}function n(){try{return document.createElement('canvas')}catch(t){throw new Error('You need to specify a canvas element')}}_e.render=function(o,c,s){let u=s,h=c;void 0!==u||c&&c.getContext||(u=c,c=void 0),c||(h=n()),u=t.getOptions(u);const l=t.getImageWidth(o.modules.size,u),p=h.getContext('2d'),y=p.createImageData(l,l);return t.qrToImageData(y.data,o,u),e(p,h,l),p.putImageData(y,0,0),h},_e.renderToDataURL=function(t,e,n){let o=n;void 0!==o||e&&e.getContext||(o=e,e=void 0),o||(o={});const c=_e.render(t,e,o),s=o.type||'image/png',u=o.rendererOpts||{};return c.toDataURL(s,u.quality)}},1458,[1459]);
32
+ __d(function(g,r,_i,a,m,e,d){function t(t){if('number'==typeof t&&(t=t.toString()),'string'!=typeof t)throw new Error('Color should be defined as hex string');let o=t.slice().replace('#','').split('');if(o.length<3||5===o.length||o.length>8)throw new Error('Invalid hex color: '+t);3!==o.length&&4!==o.length||(o=Array.prototype.concat.apply([],o.map(function(t){return[t,t]}))),6===o.length&&o.push('F','F');const n=parseInt(o.join(''),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:'#'+o.slice(0,6).join('')}}e.getOptions=function(o){o||(o={}),o.color||(o.color={});const n=void 0===o.margin||null===o.margin||o.margin<0?4:o.margin,i=o.width&&o.width>=21?o.width:void 0,l=o.scale||4;return{width:i,scale:i?4:l,margin:n,color:{dark:t(o.color.dark||'#000000ff'),light:t(o.color.light||'#ffffffff')},type:o.type,rendererOpts:o.rendererOpts||{}}},e.getScale=function(t,o){return o.width&&o.width>=t+2*o.margin?o.width/(t+2*o.margin):o.scale},e.getImageWidth=function(t,o){const n=e.getScale(t,o);return Math.floor((t+2*o.margin)*n)},e.qrToImageData=function(t,o,n){const i=o.modules.size,l=o.modules.data,c=e.getScale(i,n),f=Math.floor((i+2*n.margin)*c),h=n.margin*c,s=[n.color.light,n.color.dark];for(let o=0;o<f;o++)for(let u=0;u<f;u++){let p=4*(o*f+u),w=n.color.light;if(o>=h&&u>=h&&o<f-h&&u<f-h){w=s[l[Math.floor((o-h)/c)*i+Math.floor((u-h)/c)]?1:0]}t[p++]=w.r,t[p++]=w.g,t[p++]=w.b,t[p]=w.a}}},1459,[]);
33
+ __d(function(g,r,_i,a,m,e,d){const t=r(d[0]);function o(t,o){const n=t.a/255,i=o+'="'+t.hex+'"';return n<1?i+' '+o+'-opacity="'+n.toFixed(2).slice(1)+'"':i}function n(t,o,n){let i=t+o;return void 0!==n&&(i+=' '+n),i}function i(t,o,i){let l='',h=0,s=!1,c=0;for(let u=0;u<t.length;u++){const f=Math.floor(u%o),w=Math.floor(u/o);f||s||(s=!0),t[u]?(c++,u>0&&f>0&&t[u-1]||(l+=s?n('M',f+i,.5+w+i):n('m',h,0),h=0,s=!1),f+1<o&&t[u+1]||(l+=n('h',c),c=0)):h++}return l}e.render=function(n,l,h){const s=t.getOptions(l),c=n.modules.size,u=n.modules.data,f=c+2*s.margin,w=s.color.light.a?'<path '+o(s.color.light,'fill')+' d="M0 0h'+f+'v'+f+'H0z"/>':'',p='<path '+o(s.color.dark,'stroke')+' d="'+i(u,c,s.margin)+'"/>',v="viewBox=\"0 0 "+f+' '+f+'"',x='<svg xmlns="http://www.w3.org/2000/svg" '+(s.width?'width="'+s.width+'" height="'+s.width+'" ':'')+v+' shape-rendering="crispEdges">'+w+p+'</svg>\n';return'function'==typeof h&&h(null,x),x}},1460,[1459]);
34
+ __d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.PasskeysSection=function(){const e=(0,s.c)(26),{t:n}=(0,o.useTranslation)(),t=(0,v.useNotice)(),l=(0,k.usePasskeys)(),I=(0,k.usePasskeySecondFactor)(),b=(0,k.useSetPasskeySecondFactor)();let h;e[0]!==t||e[1]!==n?(h=e=>t({title:n("v2.signIn.passkeys.addFailed"),message:e}),e[0]=t,e[1]=n,e[2]=h):h=e[2];const S=(0,p.usePasskeyEnrolment)(h);let R;e[3]!==l.data?(R=l.data??[],e[3]=l.data,e[4]=R):R=e[4];const A=R,w=!0===I.data;let _,C,F,T,U;e[5]!==n?(_=n("v2.signIn.passkeys.title"),e[5]=n,e[6]=_):_=e[6];e[7]!==A||e[8]!==l.isPending||e[9]!==n?(C=l.isPending?(0,x.jsx)(y.Row,{icon:u.KeyRound,label:n("v2.signIn.loading")}):0===A.length?(0,x.jsx)(P.EmptyState,{fill:!1,icon:u.KeyRound,title:n("v2.signIn.passkeys.none")}):A.map(j),e[7]=A,e[8]=l.isPending,e[9]=n,e[10]=C):C=e[10];e[11]!==S||e[12]!==A.length||e[13]!==t||e[14]!==w||e[15]!==b||e[16]!==n?(F=A.length>0||w?(0,x.jsx)(f.ToggleRow,{icon:u.ShieldCheck,label:n("v2.signIn.passkeys.secondFactor"),description:n("v2.signIn.passkeys.secondFactorHint"),value:w,onValueChange:e=>{b.mutate(e,{onError:e=>t({title:n("v2.signIn.saveFailed"),message:e.message})})},last:null===S}):null,e[11]=S,e[12]=A.length,e[13]=t,e[14]=w,e[15]=b,e[16]=n,e[17]=F):F=e[17];e[18]!==S||e[19]!==n?(T=null!==S?(0,x.jsx)(y.Row,{icon:u.Plus,label:S.opening?n("v2.signIn.working"):n("v2.signIn.passkeys.add"),onPress:S.open,last:!0}):(0,x.jsx)(y.Row,{label:n("v2.signIn.passkeys.addElsewhere"),last:!0}),e[18]=S,e[19]=n,e[20]=T):T=e[20];e[21]!==_||e[22]!==C||e[23]!==F||e[24]!==T?(U=(0,x.jsxs)(c.Section,{title:_,children:[C,F,T]}),e[21]=_,e[22]=C,e[23]=F,e[24]=T,e[25]=U):U=e[25];return U};var s=r(d[0]);r(d[1]);var n=e(r(d[2])),t=e(r(d[3])),l=e(r(d[4])),o=r(d[5]),u=r(d[6]),c=r(d[7]),y=r(d[8]),f=r(d[9]),v=r(d[10]),I=r(d[11]),b=r(d[12]),h=r(d[13]),k=r(d[14]),p=r(d[15]),S=r(d[16]),P=r(d[17]),x=r(d[18]);function j(e){return(0,x.jsx)(R,{passkey:e},e.credentialId)}function R(e){const c=(0,s.c)(58),{passkey:y}=e,{t:f}=(0,o.useTranslation)(),{colors:p}=(0,b.useTheme)(),P=(0,v.useConfirm)(),j=(0,v.useNotice)(),R=(0,I.useDateLocale)(),A=(0,k.useRemovePasskey)(),w=(0,S.useReauth)();let _;c[0]!==R?(_=e=>new Date(e).toLocaleDateString(R),c[0]=R,c[1]=_):_=c[1];const C=_;let F;c[2]!==y.label||c[3]!==f?(F=y.label.length>0?y.label:f("v2.signIn.passkeys.unnamed"),c[2]=y.label,c[3]=f,c[4]=F):F=c[4];const T=F;let U,z,E;c[5]!==C||c[6]!==y.createdAt||c[7]!==f?(U=f("v2.signIn.passkeys.added",{date:C(y.createdAt)}),c[5]=C,c[6]=y.createdAt,c[7]=f,c[8]=U):U=c[8],c[9]!==C||c[10]!==y.lastUsedAt||c[11]!==f?(z=null!==y.lastUsedAt?f("v2.signIn.passkeys.lastUsed",{date:C(y.lastUsedAt)}):f("v2.signIn.passkeys.neverUsed"),c[9]=C,c[10]=y.lastUsedAt,c[11]=f,c[12]=z):z=c[12],c[13]!==U||c[14]!==z?(E=[U,z],c[13]=U,c[14]=z,c[15]=E):E=c[15];const L=E.join(" \xb7 ");let M;c[16]!==P||c[17]!==T||c[18]!==j||c[19]!==y.credentialId||c[20]!==w||c[21]!==A||c[22]!==f?(M=()=>{P({title:f("v2.signIn.passkeys.removeTitle",{label:T}),message:f("v2.signIn.passkeys.removeBody"),confirmLabel:f("v2.signIn.remove"),destructive:!0}).then(e=>e?w(f("v2.signIn.reauth.actionRemovePasskey")):null).then(e=>{null!==e&&A.mutate({credentialId:y.credentialId,reauthToken:e.reauthToken},{onError:e=>j({title:f("v2.signIn.passkeys.removeFailed"),message:e.message})})})},c[16]=P,c[17]=T,c[18]=j,c[19]=y.credentialId,c[20]=w,c[21]=A,c[22]=f,c[23]=M):M=c[23];const N=M;let D,B,G,K,O,W,H,V;c[24]!==p.borderSubtle?(D={flexDirection:"row",alignItems:"center",gap:h.SPACING.lg,paddingHorizontal:h.SPACING.xl,paddingVertical:h.SPACING.lg,borderBottomWidth:1,borderBottomColor:p.borderSubtle},c[24]=p.borderSubtle,c[25]=D):D=c[25],c[26]!==p.foregroundMuted?(B=(0,x.jsx)(u.KeyRound,{size:18,color:p.foregroundMuted}),c[26]=p.foregroundMuted,c[27]=B):B=c[27],c[28]===Symbol.for("react.memo_cache_sentinel")?(G={flex:1,gap:2},c[28]=G):G=c[28],c[29]!==p.foreground?(K={color:p.foreground,fontSize:15,fontWeight:"500"},c[29]=p.foreground,c[30]=K):K=c[30],c[31]!==T||c[32]!==K?(O=(0,x.jsx)(n.default,{style:K,numberOfLines:1,children:T}),c[31]=T,c[32]=K,c[33]=O):O=c[33],c[34]!==p.foregroundSubtle?(W={color:p.foregroundSubtle,fontSize:12},c[34]=p.foregroundSubtle,c[35]=W):W=c[35],c[36]!==L||c[37]!==W?(H=(0,x.jsx)(n.default,{style:W,numberOfLines:1,children:L}),c[36]=L,c[37]=W,c[38]=H):H=c[38],c[39]!==O||c[40]!==H?(V=(0,x.jsxs)(t.default,{style:G,children:[O,H]}),c[39]=O,c[40]=H,c[41]=V):V=c[41];const q=A.isPending;let J,Q,X,Y,Z;return c[42]!==p.danger?(J={color:p.danger,fontSize:14,fontWeight:"600"},c[42]=p.danger,c[43]=J):J=c[43],c[44]!==f?(Q=f("v2.signIn.remove"),c[44]=f,c[45]=Q):Q=c[45],c[46]!==J||c[47]!==Q?(X=(0,x.jsx)(n.default,{style:J,children:Q}),c[46]=J,c[47]=Q,c[48]=X):X=c[48],c[49]!==N||c[50]!==A.isPending||c[51]!==X?(Y=(0,x.jsx)(l.default,{accessibilityRole:"button",hitSlop:8,disabled:q,onPress:N,children:X}),c[49]=N,c[50]=A.isPending,c[51]=X,c[52]=Y):Y=c[52],c[53]!==V||c[54]!==Y||c[55]!==D||c[56]!==B?(Z=(0,x.jsxs)(t.default,{style:D,children:[B,V,Y]}),c[53]=V,c[54]=Y,c[55]=D,c[56]=B,c[57]=Z):Z=c[57],Z}},1461,[788,16,193,114,247,818,838,871,1068,872,1005,863,790,836,1071,1462,1066,975,10]);
35
+ __d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"PASSKEY_ENROLMENT_PATH",{enumerable:!0,get:function(){return l}}),_e.hubPageUrl=f,_e.usePasskeyEnrolment=function(e){const u=(0,t.c)(7),{server:d}=(0,s.useServer)(),y=(0,c.useBrowserHandoff)(),[_,p]=(0,n.useState)(!1);if(null===d)return null;const b=d.serverUrl;let v;u[0]!==y||u[1]!==e||u[2]!==b?(v=()=>{p(!0);(async()=>{await o.default.openURL(f(b,l))})().catch(t=>e(t instanceof Error?t.message:String(t))).finally(()=>p(!1))},u[0]=y,u[1]=e,u[2]=b,u[3]=v):v=u[3];const P=v;let O;u[4]!==P||u[5]!==_?(O={opening:_,open:P},u[4]=P,u[5]=_,u[6]=O):O=u[6];return O};var e,t=r(_d[0]),n=r(_d[1]),u=r(_d[2]),o=(e=u)&&e.__esModule?e:{default:e};r(_d[3]);!(function(e){if(e&&e.__esModule)return e;var t={};e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e})(r(_d[4]));var s=r(_d[5]),c=r(_d[6]);const l='/system/my-access';function f(e,t){return`${e.replace(/\/+$/,'')}${t}`}},1462,[788,16,225,109,1467,988,1071]);
36
+ __d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.LinkedAccountsSection=function(){const e=(0,n.c)(35),{t:l}=(0,s.useTranslation)(),t=(0,k.useNotice)(),o=(0,u.useQueryClient)(),{server:b,sessionToken:h}=(0,I.useServer)(),p=(0,j.useLinkedAccounts)(),A=(0,x.useLinkFlow)(),_=(0,L.useReauth)();let R,T,C;if(e[0]!==p.data||e[1]!==A||e[2]!==t||e[3]!==o||e[4]!==_||e[5]!==b?.serverUrl||e[6]!==h||e[7]!==l){let n;R=p.data?.linked??[],C=void 0!==p.data?(0,S.providersToLink)(p.data.linkable,R):[],e[11]!==t||e[12]!==o||e[13]!==b?.serverUrl||e[14]!==h||e[15]!==l?(n=e=>{o.invalidateQueries({queryKey:(0,j.authSelfKey)(b?.serverUrl??null,h,"linked")}),"linked"===e.kind&&t({title:l("v2.signIn.linked.done")}),"error"===e.kind&&t({title:l("v2.signIn.linked.failed"),message:l(`v2.signIn.linked.refused.${e.reason}`,{defaultValue:e.reason})})},e[11]=t,e[12]=o,e[13]=b?.serverUrl,e[14]=h,e[15]=l,e[16]=n):n=e[16];const s=n;let u;e[17]!==A||e[18]!==t||e[19]!==_||e[20]!==s||e[21]!==l?(u=e=>{null!==A&&_(l("v2.signIn.reauth.actionLink")).then(n=>null===n?null:A.start(e,n.reauthToken)).then(e=>{null!==e&&s(e)},e=>{t({title:l("v2.signIn.linked.failed"),message:e instanceof Error?e.message:String(e)})})},e[17]=A,e[18]=t,e[19]=_,e[20]=s,e[21]=l,e[22]=u):u=e[22];const v=u;T=[...R.map(w),...null!==A?C.map(e=>(0,P.jsx)(f.Row,{icon:c.Plus,label:A.pending===e.provider?l("v2.signIn.working"):l("v2.signIn.linked.link",{provider:e.label}),onPress:()=>v(e.provider)},`link:${e.provider}`)):[]],e[0]=p.data,e[1]=A,e[2]=t,e[3]=o,e[4]=_,e[5]=b?.serverUrl,e[6]=h,e[7]=l,e[8]=R,e[9]=T,e[10]=C}else R=e[8],T=e[9],C=e[10];const E=T;let U,z,M;e[23]!==l?(U=l("v2.signIn.linked.title"),e[23]=l,e[24]=U):U=e[24];e[25]!==p||e[26]!==A||e[27]!==R||e[28]!==E||e[29]!==l||e[30]!==C?(z=p.isPending?(0,P.jsx)(f.Row,{icon:c.Link2,label:l("v2.signIn.loading"),last:!0}):p.isError?(0,P.jsx)(y.ErrorState,{fill:!1,title:l("v2.signIn.loadFailed"),onRetry:()=>{p.refetch()}}):(0,P.jsxs)(P.Fragment,{children:[0===R.length?(0,P.jsx)(y.EmptyState,{fill:!1,icon:c.Link2,title:l("v2.signIn.linked.none")}):null,E,null===A&&C.length>0?(0,P.jsx)(f.Row,{label:l("v2.signIn.linked.linkElsewhere"),last:!0}):(0,P.jsx)(f.Row,{label:l("v2.signIn.linked.hint"),last:!0})]}),e[25]=p,e[26]=A,e[27]=R,e[28]=E,e[29]=l,e[30]=C,e[31]=z):z=e[31];e[32]!==U||e[33]!==z?(M=(0,P.jsx)(v.Section,{title:U,children:z}),e[32]=U,e[33]=z,e[34]=M):M=e[34];return M};var n=r(d[0]);r(d[1]);var l=e(r(d[2])),t=e(r(d[3])),o=e(r(d[4])),s=r(d[5]),u=r(d[6]),c=r(d[7]),v=r(d[8]),f=r(d[9]),k=r(d[10]),b=r(d[11]),h=r(d[12]),p=r(d[13]),I=r(d[14]),j=r(d[15]),S=r(d[16]),x=r(d[17]),L=r(d[18]),y=r(d[19]),P=r(d[20]);function w(e){return(0,P.jsx)(A,{account:e},`${e.provider}|${e.subject}`)}function A(e){const u=(0,n.c)(54),{account:v}=e,{t:f}=(0,s.useTranslation)(),{colors:I}=(0,h.useTheme)(),S=(0,k.useConfirm)(),x=(0,k.useNotice)(),L=(0,b.useDateLocale)(),y=(0,j.useUnlinkAccount)(),w=v.providerLabel??v.provider,A=v.accountLabel;let R,T,C;u[0]!==v.linkedAt||u[1]!==L||u[2]!==f?(R=f("v2.signIn.linked.since",{date:new Date(v.linkedAt).toLocaleDateString(L)}),u[0]=v.linkedAt,u[1]=L,u[2]=f,u[3]=R):R=u[3],u[4]!==v.available||u[5]!==f?(T=v.available?null:f("v2.signIn.linked.unavailable"),u[4]=v.available,u[5]=f,u[6]=T):T=u[6],u[7]!==v.accountLabel||u[8]!==R||u[9]!==T?(C=[A,R,T].filter(_),u[7]=v.accountLabel,u[8]=R,u[9]=T,u[10]=C):C=u[10];const E=C.join(" \xb7 ");let U;u[11]!==v.provider||u[12]!==v.subject||u[13]!==S||u[14]!==x||u[15]!==w||u[16]!==f||u[17]!==y?(U=()=>{S({title:f("v2.signIn.linked.unlinkTitle",{provider:w}),message:f("v2.signIn.linked.unlinkBody"),confirmLabel:f("v2.signIn.linked.unlink"),destructive:!0}).then(e=>{e&&y.mutate({provider:v.provider,subject:v.subject},{onError:e=>x({title:f("v2.signIn.linked.unlinkFailed"),message:e.message})})})},u[11]=v.provider,u[12]=v.subject,u[13]=S,u[14]=x,u[15]=w,u[16]=f,u[17]=y,u[18]=U):U=u[18];const z=U,M=v.available?1:.6;let N,D,F,$,B,G,O,W;u[19]!==I.borderSubtle||u[20]!==M?(N={flexDirection:"row",alignItems:"center",gap:p.SPACING.lg,paddingHorizontal:p.SPACING.xl,paddingVertical:p.SPACING.lg,borderBottomWidth:1,borderBottomColor:I.borderSubtle,opacity:M},u[19]=I.borderSubtle,u[20]=M,u[21]=N):N=u[21],u[22]!==I.foregroundMuted?(D=(0,P.jsx)(c.Link2,{size:18,color:I.foregroundMuted}),u[22]=I.foregroundMuted,u[23]=D):D=u[23],u[24]===Symbol.for("react.memo_cache_sentinel")?(F={flex:1,gap:2},u[24]=F):F=u[24],u[25]!==I.foreground?($={color:I.foreground,fontSize:15,fontWeight:"500"},u[25]=I.foreground,u[26]=$):$=u[26],u[27]!==w||u[28]!==$?(B=(0,P.jsx)(t.default,{style:$,numberOfLines:1,children:w}),u[27]=w,u[28]=$,u[29]=B):B=u[29],u[30]!==I.foregroundSubtle?(G={color:I.foregroundSubtle,fontSize:12},u[30]=I.foregroundSubtle,u[31]=G):G=u[31],u[32]!==E||u[33]!==G?(O=(0,P.jsx)(t.default,{style:G,numberOfLines:2,children:E}),u[32]=E,u[33]=G,u[34]=O):O=u[34],u[35]!==B||u[36]!==O?(W=(0,P.jsxs)(o.default,{style:F,children:[B,O]}),u[35]=B,u[36]=O,u[37]=W):W=u[37];const K=y.isPending;let Q,V,q,H,J;return u[38]!==I.danger?(Q={color:I.danger,fontSize:14,fontWeight:"600"},u[38]=I.danger,u[39]=Q):Q=u[39],u[40]!==f?(V=f("v2.signIn.linked.unlink"),u[40]=f,u[41]=V):V=u[41],u[42]!==Q||u[43]!==V?(q=(0,P.jsx)(t.default,{style:Q,children:V}),u[42]=Q,u[43]=V,u[44]=q):q=u[44],u[45]!==z||u[46]!==q||u[47]!==y.isPending?(H=(0,P.jsx)(l.default,{accessibilityRole:"button",hitSlop:8,disabled:K,onPress:z,children:q}),u[45]=z,u[46]=q,u[47]=y.isPending,u[48]=H):H=u[48],u[49]!==W||u[50]!==H||u[51]!==N||u[52]!==D?(J=(0,P.jsxs)(o.default,{style:N,children:[D,W,H]}),u[49]=W,u[50]=H,u[51]=N,u[52]=D,u[53]=J):J=u[53],J}function _(e){return null!==e}},1463,[788,16,247,193,114,818,854,838,871,1068,1005,863,790,836,988,1071,1466,1464,1066,975,10]);
37
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useLinkFlow=function(){const{server:l}=(0,t.useServer)(),{controller:c}=(0,o.useConnection)(),v=(0,u.useBeginLink)(),[p,w]=((0,u.useClaimLink)(),(0,n.useState)(null));if(null===l)return null;const k=async(n,t)=>{const o=l.serverUrl,u=(0,s.openLinkPopup)();try{const l=await v.mutateAsync({provider:n,reauthToken:t});return null===u?(window.location.assign(new URL(l,o).toString()),{kind:'closed'}):await(0,s.runLinkPopup)(u,l,o)}catch(n){throw u?.close(),n}};return{pending:p,start:async(n,t)=>{w(n);try{return await k(n,t)}finally{w(null)}}}};var n=r(d[0]);r(d[1]),r(d[2]),r(d[3]);var t=r(d[4]),o=r(d[5]);r(d[6]);var u=r(d[7]);r(d[8]);var s=r(d[9])},1464,[16,109,478,1467,988,819,1468,1071,1466,1465]);
38
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SSO_POPUP_MESSAGE",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"SSO_POPUP_ACK",{enumerable:!0,get:function(){return t}}),e.withPopupFlag=l,e.linkOutcomeFromQuery=c,e.profileQueryOf=p,e.openLinkPopup=function(){try{return window.open('about:blank',o,s)??null}catch{return null}},e.runLinkPopup=function(n,o,s){const f=new URL(s).origin;return n.location.href=new URL(l(o),s).toString(),new Promise(o=>{let s=!1;const l=n=>{s||(s=!0,window.removeEventListener('message',w),window.clearInterval(y),o(n))},w=o=>{if(o.source!==n||o.origin!==f)return;const s=p(o.data);null!==s&&(n.postMessage({type:t},f),l(c(s)))};window.addEventListener('message',w);const y=window.setInterval(()=>{n.closed&&l({kind:'closed'})},u)})};const n='camstack:sso-return',t='camstack:sso-ack',o='camstack-sso',s='popup=yes,width=520,height=680,resizable=yes,scrollbars=yes',u=500;function l(n){const t=new URL(n,'http://placeholder.invalid');return t.searchParams.set('popup','1'),/^[a-z][a-z0-9+.-]*:/i.test(n)?t.toString():`${t.pathname}${t.search}${t.hash}`}function c(n){const t=new URLSearchParams(n),o=t.get('linkError');return null!==o?{kind:'error',reason:o}:t.has('linked')?{kind:'linked'}:{kind:'closed'}}function p(t){if('object'!=typeof t||null===t)return null;const o=t;if(o.type!==n)return null;const s=o.completion;return'object'!=typeof s||null===s?null:'profile'===s.target&&'string'==typeof s.query?s.query:null}},1465,[]);