@camstack/addon-pipeline-orchestrator 1.2.2 → 1.2.4

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.
@@ -405,7 +405,7 @@ __d(function(g,r,i,_a,m,_e,_d){'use strict';m.exports=function(e,n,o,t,a,f,s,d){
405
405
  __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 t}});var t={}},324,[]);
406
406
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.installOnUIRuntime=function(t){const o=globalThis?.expo?.installOnUIRuntime;if(!o)throw Error("Native method to install Expo Modules on the worklets UI runtime wasn't found in `expo-modules-core`.");o(t)}},325,[]);
407
407
  __d(function(g,r,i,a,m,e,d){"use strict";var t,n,o;Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"AppOwnership",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"ExecutionEnvironment",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"UserInterfaceIdiom",{enumerable:!0,get:function(){return o}}),(function(t){t.Expo="expo"})(t||(t={})),(function(t){t.Bare="bare",t.Standalone="standalone",t.StoreClient="storeClient"})(n||(n={})),(function(t){t.Handset="handset",t.Tablet="tablet",t.Desktop="desktop",t.TV="tv",t.Unsupported="unsupported"})(o||(o={}))},326,[]);
408
- __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 s}});var t=r(d[0]);const n=(Date.now()+'-'+Math.floor(1e9*Math.random())).toString();function o(){if('undefined'!=typeof navigator&&'string'==typeof navigator.userAgent){const t=navigator.userAgent.toLowerCase();if(t.includes('edge'))return'Edge';if(t.includes('edg'))return'Chromium Edge';if(t.includes('opr')&&'opr'in window&&window.opr)return'Opera';if(t.includes('chrome')&&'chrome'in window&&window.chrome)return'Chrome';if(t.includes('trident'))return'IE';if(t.includes('firefox'))return'Firefox';if(t.includes('safari'))return'Safari'}}var s={get appOwnership(){return null},get executionEnvironment(){return t.ExecutionEnvironment.Bare},get sessionId(){return n},get isHeadless(){return'undefined'==typeof navigator||/\bHeadlessChrome\//.test(navigator.userAgent)},get expoVersion(){return this.manifest.sdkVersion||null},get linkingUri(){return'undefined'!=typeof location?location.origin:''},get expoRuntimeVersion(){return this.expoVersion},get deviceName(){return o()},get systemFonts(){return[]},get statusBarHeight(){return 0},get deviceYearClass(){return null},get manifest(){return"{\"name\":\"CamStack\",\"slug\":\"camstack\",\"version\":\"1.0.173\",\"sdkVersion\":\"57.0.0\",\"platforms\":[\"ios\",\"android\",\"web\"],\"runtimeVersion\":\"1.0.171\",\"orientation\":\"default\",\"icon\":\"./assets/images/icon.png\",\"scheme\":\"camstack\",\"userInterfaceStyle\":\"automatic\",\"web\":{\"output\":\"single\",\"favicon\":\"./assets/images/favicon.png\",\"shortName\":\"CamStack\",\"backgroundColor\":\"#e67e22\",\"name\":\"CamStack\"},\"experiments\":{\"typedRoutes\":true,\"reactCompiler\":true,\"baseUrl\":\"/viewer/camstack\"},\"extra\":{\"router\":{\"root\":\"app\"},\"eas\":{\"projectId\":\"8fb06894-6375-41ff-959f-1a22a03dbd73\"}},\"updates\":{\"url\":\"https://u.expo.dev/8fb06894-6375-41ff-959f-1a22a03dbd73\"},\"owner\":\"zentik-notifier\"}"},get manifest2(){return null},get experienceUrl(){return'undefined'!=typeof location?location.origin:''},get debugMode(){return!1},getWebViewUserAgentAsync:async()=>'undefined'!=typeof navigator?navigator.userAgent:null}},327,[326]);
408
+ __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 s}});var t=r(d[0]);const n=(Date.now()+'-'+Math.floor(1e9*Math.random())).toString();function o(){if('undefined'!=typeof navigator&&'string'==typeof navigator.userAgent){const t=navigator.userAgent.toLowerCase();if(t.includes('edge'))return'Edge';if(t.includes('edg'))return'Chromium Edge';if(t.includes('opr')&&'opr'in window&&window.opr)return'Opera';if(t.includes('chrome')&&'chrome'in window&&window.chrome)return'Chrome';if(t.includes('trident'))return'IE';if(t.includes('firefox'))return'Firefox';if(t.includes('safari'))return'Safari'}}var s={get appOwnership(){return null},get executionEnvironment(){return t.ExecutionEnvironment.Bare},get sessionId(){return n},get isHeadless(){return'undefined'==typeof navigator||/\bHeadlessChrome\//.test(navigator.userAgent)},get expoVersion(){return this.manifest.sdkVersion||null},get linkingUri(){return'undefined'!=typeof location?location.origin:''},get expoRuntimeVersion(){return this.expoVersion},get deviceName(){return o()},get systemFonts(){return[]},get statusBarHeight(){return 0},get deviceYearClass(){return null},get manifest(){return"{\"name\":\"CamStack\",\"slug\":\"camstack\",\"version\":\"1.0.176\",\"sdkVersion\":\"57.0.0\",\"platforms\":[\"ios\",\"android\",\"web\"],\"runtimeVersion\":\"1.0.171\",\"orientation\":\"default\",\"icon\":\"./assets/images/icon.png\",\"scheme\":\"camstack\",\"userInterfaceStyle\":\"automatic\",\"web\":{\"output\":\"single\",\"favicon\":\"./assets/images/favicon.png\",\"shortName\":\"CamStack\",\"backgroundColor\":\"#e67e22\",\"name\":\"CamStack\"},\"experiments\":{\"typedRoutes\":true,\"reactCompiler\":true,\"baseUrl\":\"/viewer/camstack\"},\"extra\":{\"router\":{\"root\":\"app\"},\"eas\":{\"projectId\":\"8fb06894-6375-41ff-959f-1a22a03dbd73\"}},\"updates\":{\"url\":\"https://u.expo.dev/8fb06894-6375-41ff-959f-1a22a03dbd73\"},\"owner\":\"zentik-notifier\"}"},get manifest2(){return null},get experienceUrl(){return'undefined'!=typeof location?location.origin:''},get debugMode(){return!1},getWebViewUserAgentAsync:async()=>'undefined'!=typeof navigator?navigator.userAgent:null}},327,[326]);
409
409
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SITEMAP_ROUTE_NAME=e.NOT_FOUND_ROUTE_NAME=e.INTERNAL_SLOT_NAME=void 0,e.INTERNAL_SLOT_NAME='__root',e.NOT_FOUND_ROUTE_NAME='+not-found',e.SITEMAP_ROUTE_NAME='_sitemap'},328,[]);
410
410
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useCurrentRouteInfo=function(){const n=(0,u.useStateForPath)();return(0,t.useMemo)(()=>n?(0,o.getCachedRouteInfo)(n):void 0,[n])};const t=r(d[0]),o=r(d[1]),u=r(d[2])},329,[17,330,338]);
411
411
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.routeInfoSubscribe=e.routeInfoSubscribers=void 0,e.getCachedRouteInfo=function(s){let u=o.get(s);if(!u){u=(0,t.getRouteInfoFromState)(s);const f=JSON.stringify(u),c=n.get(f);c?u=c:n.set(f,u),o.set(s,u)}return u},e.setCachedRouteInfo=function(t,s){o.set(t,s),n.set(JSON.stringify(s),s)};const t=r(d[0]),o=new WeakMap,n=new Map;e.routeInfoSubscribers=new Set;e.routeInfoSubscribe=t=>(e.routeInfoSubscribers.add(t),()=>{e.routeInfoSubscribers.delete(t)})},330,[331]);
@@ -15580,7 +15580,7 @@ __d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e
15580
15580
  __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.SegmentBlock=function(e){const l=(0,n.c)(12),{label:u,options:p,value:C,onChange:S}=e,{colors:_}=(0,s.useTheme)();let v,b,j,x;l[0]!==_.foreground?(v=[h.segmentLabel,{color:_.foreground}],l[0]=_.foreground,l[1]=v):v=l[1];l[2]!==u||l[3]!==v?(b=(0,f.jsx)(t.default,{style:v,children:u}),l[2]=u,l[3]=v,l[4]=b):b=l[4];l[5]!==S||l[6]!==p||l[7]!==C?(j=(0,f.jsx)(c.SegmentedControl,{options:p,value:C,onChange:S}),l[5]=S,l[6]=p,l[7]=C,l[8]=j):j=l[8];l[9]!==b||l[10]!==j?(x=(0,f.jsxs)(o.default,{style:h.segmentBlock,children:[b,j]}),l[9]=b,l[10]=j,l[11]=x):x=l[11];return x};var n=r(d[0]);r(d[1]);var o=e(r(d[2])),t=e(r(d[3])),l=e(r(d[4])),s=r(d[5]),u=r(d[6]),c=r(d[7]),f=r(d[8]);const h=l.default.create({segmentBlock:{paddingHorizontal:u.SPACING.xl,paddingVertical:u.SPACING.lg,gap:u.SPACING.md},segmentLabel:{fontSize:15,fontWeight:'500'}})},3175,[15,17,20,112,33,2587,2589,3176,10]);
15581
15581
  __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.SegmentedControl=function(e){const f=(0,o.c)(19),{options:b,value:p,onChange:y}=e,{colors:C}=(0,l.useTheme)();let S,h,v;f[0]!==C.background||f[1]!==C.border?(S={flexDirection:"row",backgroundColor:C.background,borderColor:C.border,borderWidth:1,borderRadius:s.RADIUS.lg,padding:s.SPACING.xs,gap:s.SPACING.xs},f[0]=C.background,f[1]=C.border,f[2]=S):S=f[2];if(f[3]!==C.foregroundMuted||f[4]!==C.primary||f[5]!==C.primaryForeground||f[6]!==y||f[7]!==b||f[8]!==p){let e;f[10]!==C.foregroundMuted||f[11]!==C.primary||f[12]!==C.primaryForeground||f[13]!==y||f[14]!==p?(e=e=>{const o=e.value===p;return(0,c.jsx)(n.default,{accessibilityRole:"button",accessibilityState:{selected:o},onPress:()=>y(e.value),style:{flex:1,alignItems:"center",paddingVertical:s.SPACING.md,borderRadius:s.RADIUS.md,backgroundColor:o?C.primary:"transparent"},children:(0,c.jsx)(t.default,{style:{color:o?C.primaryForeground:C.foregroundMuted,fontSize:14,fontWeight:o?"700":"500"},children:e.label})},e.value)},f[10]=C.foregroundMuted,f[11]=C.primary,f[12]=C.primaryForeground,f[13]=y,f[14]=p,f[15]=e):e=f[15],h=b.map(e),f[3]=C.foregroundMuted,f[4]=C.primary,f[5]=C.primaryForeground,f[6]=y,f[7]=b,f[8]=p,f[9]=h}else h=f[9];f[16]!==S||f[17]!==h?(v=(0,c.jsx)(u.default,{style:S,children:h}),f[16]=S,f[17]=h,f[18]=v):v=f[18];return v};var o=r(d[0]);r(d[1]);var n=e(r(d[2])),t=e(r(d[3])),u=e(r(d[4])),l=r(d[5]),s=r(d[6]),c=r(d[7])},3176,[15,17,252,112,20,2587,2589,10]);
15582
15582
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useSettings=function(){const D=(0,t.c)(14),H=(0,s.useSettingsStore)(A),_=(0,s.useSettingsStore)(y),E=(0,s.useSettingsStore)(v),C=(0,s.useSettingsStore)(p),G=(0,s.useSettingsStore)(h),b=(0,s.useSettingsStore)(l),j=(0,s.useSettingsStore)(f),M=(0,s.useSettingsStore)(c),O=(0,s.useSettingsStore)(S),P=(0,s.useSettingsStore)(o),k=(0,s.useSettingsStore)(u);let q,w,x;D[0]!==E?(q=()=>{E()},w=[E],D[0]=E,D[1]=q,D[2]=w):(q=D[1],w=D[2]);(0,n.useEffect)(q,w),D[3]!==_||D[4]!==k||D[5]!==b||D[6]!==M||D[7]!==O||D[8]!==C||D[9]!==P||D[10]!==j||D[11]!==G||D[12]!==H?(x={settings:H,hydrated:_,setGridDefault:C,setStreamDefault:G,setAdvanced:b,setHighlightAppearance:j,setCluster:M,setEvents:O,setHaptics:P,resetSettings:k},D[3]=_,D[4]=k,D[5]=b,D[6]=M,D[7]=O,D[8]=C,D[9]=P,D[10]=j,D[11]=G,D[12]=H,D[13]=x):x=D[13];return x};var t=r(d[0]),n=r(d[1]),s=r(d[2]);function u(t){return t.resetSettings}function o(t){return t.setHaptics}function S(t){return t.setEvents}function c(t){return t.setCluster}function f(t){return t.setHighlightAppearance}function l(t){return t.setAdvanced}function h(t){return t.setStreamDefault}function p(t){return t.setGridDefault}function v(t){return t.hydrate}function y(t){return t.hydrated}function A(t){return t.settings}},3177,[15,17,3140]);
15583
- __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.reelRowHeight=R,Object.defineProperty(_e,"TrackReel",{enumerable:!0,get:function(){return P}});var t=r(d[0]),n=r(d[1]),o=e(r(d[2])),l=e(r(d[3])),s=e(r(d[4])),i=r(d[5]),c=r(d[6]),u=r(d[7]),h=r(d[8]),f=r(d[9]),k=r(d[10]),x=r(d[11]),S=r(d[12]),y=r(d[13]),j=r(d[14]),v=r(d[15]);const w={perCameraLimit:40,maxAgeMs:864e5},I=14;function R(e){return e+6+I+2*h.SPACING.sm}const P=(0,n.memo)(function(e){const s=(0,t.c)(53),{deviceId:I,cardWidth:P,onSeek:p}=e,N=void 0===P?80:P,{colors:b}=(0,u.useTheme)(),{t:T}=(0,c.useTranslation)(),[D,G]=(0,n.useState)(null);let M;s[0]!==I?(M=void 0!==I?[I]:void 0,s[0]=I,s[1]=M):M=s[1];const F=(0,j.useEventKindResolver)(M);let H,z,E;s[2]!==I?(H=void 0!==I?[I]:[],s[2]=I,s[3]=H):H=s[3],s[4]===Symbol.for("react.memo_cache_sentinel")?(z=[],s[4]=z):z=s[4],s[5]!==H?(E={cameraIds:H,classes:z,label:""},s[5]=H,s[6]=E):E=s[6];const L=E,[V,B]=(0,n.useState)(C);let O;s[7]===Symbol.for("react.memo_cache_sentinel")?(O=()=>B(Date.now()),s[7]=O):O=s[7];const U=O;(0,y.useReelAutoRefresh)(I,U);const{tracks:K,loading:W,fetchNextPage:q,hasNextPage:J,isFetchingNextPage:Q}=(0,S.useTracksFeed)(L,V,w);let X;s[8]!==q||s[9]!==J||s[10]!==Q?(X=()=>{J&&!Q&&q()},s[8]=q,s[9]=J,s[10]=Q,s[11]=X):X=s[11];const Y=X;let Z;s[12]!==N||s[13]!==F?(Z=e=>{const{item:t}=e;return(0,v.jsx)(o.default,{style:{width:N,marginRight:h.SPACING.sm},children:(0,v.jsx)(k.TrackCard,{track:t,variant:"reel",width:N,resolver:F,onPress:G})})},s[12]=N,s[13]=F,s[14]=Z):Z=s[14];const $=Z;let ee;s[15]!==p||s[16]!==D?(ee=e=>{D&&p&&p(D,e),G(null)},s[15]=p,s[16]=D,s[17]=ee):ee=s[17];const te=ee;if(W&&0===K.length){let e,t,n,l;return s[18]!==N?(e=R(N),s[18]=N,s[19]=e):e=s[19],s[20]!==e?(t=[A.skeletonRow,{height:e}],s[20]=e,s[21]=t):t=s[21],s[22]!==N?(n=Array.from({length:6},(e,t)=>(0,v.jsxs)(o.default,{style:{width:N},children:[(0,v.jsx)(o.default,{style:A.skeletonHero,children:(0,v.jsx)(f.SkeletonBox,{})}),(0,v.jsx)(o.default,{style:A.skeletonFooter,children:(0,v.jsx)(o.default,{style:A.skeletonTimeLine,children:(0,v.jsx)(f.SkeletonBox,{})})})]},t)),s[22]=N,s[23]=n):n=s[23],s[24]!==t||s[25]!==n?(l=(0,v.jsx)(o.default,{style:t,children:n}),s[24]=t,s[25]=n,s[26]=l):l=s[26],l}if(0===K.length){let e,t,n,i,c,u;return s[27]!==N?(e=R(N),s[27]=N,s[28]=e):e=s[28],s[29]!==e?(t=[A.state,{height:e}],s[29]=e,s[30]=t):t=s[30],s[31]!==b.foregroundMuted?(n={color:b.foregroundMuted},s[31]=b.foregroundMuted,s[32]=n):n=s[32],s[33]!==T?(i=T("v2.tracks.empty","No tracks"),s[33]=T,s[34]=i):i=s[34],s[35]!==n||s[36]!==i?(c=(0,v.jsx)(l.default,{style:n,children:i}),s[35]=n,s[36]=i,s[37]=c):c=s[37],s[38]!==t||s[39]!==c?(u=(0,v.jsx)(o.default,{style:t,children:c}),s[38]=t,s[39]=c,s[40]=u):u=s[40],u}const ne=3*N;let oe;s[41]!==Y||s[42]!==$||s[43]!==ne||s[44]!==K?(oe=(0,v.jsx)(i.FlashList,{horizontal:!0,data:K,keyExtractor:_,renderItem:$,showsHorizontalScrollIndicator:!1,contentContainerStyle:A.list,onEndReached:Y,onEndReachedThreshold:.5,drawDistance:ne}),s[41]=Y,s[42]=$,s[43]=ne,s[44]=K,s[45]=oe):oe=s[45];const re=p?te:void 0;let le,se,ae;return s[46]===Symbol.for("react.memo_cache_sentinel")?(le=()=>G(null),s[46]=le):le=s[46],s[47]!==D||s[48]!==re?(se=(0,v.jsx)(x.TrackDetailModal,{track:D,onSeek:re,onClose:le}),s[47]=D,s[48]=re,s[49]=se):se=s[49],s[50]!==oe||s[51]!==se?(ae=(0,v.jsxs)(v.Fragment,{children:[oe,se]}),s[50]=oe,s[51]=se,s[52]=ae):ae=s[52],ae}),A=s.default.create({state:{alignItems:'center',justifyContent:'center'},list:{paddingHorizontal:h.SPACING.md,paddingVertical:h.SPACING.sm},skeletonRow:{flexDirection:'row',paddingHorizontal:h.SPACING.md,paddingVertical:h.SPACING.sm,gap:h.SPACING.sm,overflow:'hidden'},skeletonHero:{width:'100%',aspectRatio:1,borderRadius:h.RADIUS.md,overflow:'hidden'},skeletonFooter:{paddingVertical:3,alignItems:'center'},skeletonTimeLine:{width:'55%',height:10,marginVertical:2,borderRadius:h.RADIUS.sm,overflow:'hidden'}});function C(){return Date.now()}function _(e){return e.trackId}},3178,[15,17,20,112,33,3179,786,2587,2589,3151,3230,3237,3383,3384,3167,10]);
15583
+ __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.reelRowHeight=R,Object.defineProperty(_e,"TrackReel",{enumerable:!0,get:function(){return P}});var t=r(d[0]),n=r(d[1]),o=e(r(d[2])),l=e(r(d[3])),s=e(r(d[4])),i=r(d[5]),c=r(d[6]),u=r(d[7]),h=r(d[8]),f=r(d[9]),k=r(d[10]),x=r(d[11]),S=r(d[12]),y=r(d[13]),j=r(d[14]),v=r(d[15]);const w={perCameraLimit:40,maxAgeMs:864e5},I=14;function R(e){return e+6+I+2*h.SPACING.sm}const P=(0,n.memo)(function(e){const s=(0,t.c)(53),{deviceId:I,cardWidth:P,onSeek:p}=e,N=void 0===P?80:P,{colors:b}=(0,u.useTheme)(),{t:T}=(0,c.useTranslation)(),[D,G]=(0,n.useState)(null);let M;s[0]!==I?(M=void 0!==I?[I]:void 0,s[0]=I,s[1]=M):M=s[1];const F=(0,j.useEventKindResolver)(M);let H,z,E;s[2]!==I?(H=void 0!==I?[I]:[],s[2]=I,s[3]=H):H=s[3],s[4]===Symbol.for("react.memo_cache_sentinel")?(z=[],s[4]=z):z=s[4],s[5]!==H?(E={cameraIds:H,classes:z,label:""},s[5]=H,s[6]=E):E=s[6];const L=E,[V,B]=(0,n.useState)(C);let O;s[7]===Symbol.for("react.memo_cache_sentinel")?(O=()=>B(Date.now()),s[7]=O):O=s[7];const U=O;(0,y.useReelAutoRefresh)(I,U);const{tracks:K,loading:W,fetchNextPage:q,hasNextPage:J,isFetchingNextPage:Q}=(0,S.useTracksFeed)(L,V,w);let X;s[8]!==q||s[9]!==J||s[10]!==Q?(X=()=>{J&&!Q&&q()},s[8]=q,s[9]=J,s[10]=Q,s[11]=X):X=s[11];const Y=X;let Z;s[12]!==N||s[13]!==F?(Z=e=>{const{item:t}=e;return(0,v.jsx)(o.default,{style:{width:N,marginRight:h.SPACING.sm},children:(0,v.jsx)(k.TrackCard,{track:t,variant:"reel",width:N,resolver:F,onPress:G})})},s[12]=N,s[13]=F,s[14]=Z):Z=s[14];const $=Z;let ee;s[15]!==p||s[16]!==D?(ee=e=>{D&&p&&p(D,e),G(null)},s[15]=p,s[16]=D,s[17]=ee):ee=s[17];const te=ee;if(W&&0===K.length){let e,t,n,l;return s[18]!==N?(e=R(N),s[18]=N,s[19]=e):e=s[19],s[20]!==e?(t=[A.skeletonRow,{height:e}],s[20]=e,s[21]=t):t=s[21],s[22]!==N?(n=Array.from({length:6},(e,t)=>(0,v.jsxs)(o.default,{style:{width:N},children:[(0,v.jsx)(o.default,{style:A.skeletonHero,children:(0,v.jsx)(f.SkeletonBox,{})}),(0,v.jsx)(o.default,{style:A.skeletonFooter,children:(0,v.jsx)(o.default,{style:A.skeletonTimeLine,children:(0,v.jsx)(f.SkeletonBox,{})})})]},t)),s[22]=N,s[23]=n):n=s[23],s[24]!==t||s[25]!==n?(l=(0,v.jsx)(o.default,{style:t,children:n}),s[24]=t,s[25]=n,s[26]=l):l=s[26],l}if(0===K.length){let e,t,n,i,c,u;return s[27]!==N?(e=R(N),s[27]=N,s[28]=e):e=s[28],s[29]!==e?(t=[A.state,{height:e}],s[29]=e,s[30]=t):t=s[30],s[31]!==b.foregroundMuted?(n={color:b.foregroundMuted},s[31]=b.foregroundMuted,s[32]=n):n=s[32],s[33]!==T?(i=T("v2.tracks.empty","No tracks"),s[33]=T,s[34]=i):i=s[34],s[35]!==n||s[36]!==i?(c=(0,v.jsx)(l.default,{style:n,children:i}),s[35]=n,s[36]=i,s[37]=c):c=s[37],s[38]!==t||s[39]!==c?(u=(0,v.jsx)(o.default,{style:t,children:c}),s[38]=t,s[39]=c,s[40]=u):u=s[40],u}const ne=3*N;let oe;s[41]!==Y||s[42]!==$||s[43]!==ne||s[44]!==K?(oe=(0,v.jsx)(i.FlashList,{horizontal:!0,data:K,keyExtractor:_,renderItem:$,showsHorizontalScrollIndicator:!1,contentContainerStyle:A.list,onEndReached:Y,onEndReachedThreshold:.5,drawDistance:ne}),s[41]=Y,s[42]=$,s[43]=ne,s[44]=K,s[45]=oe):oe=s[45];const re=p?te:void 0;let le,se,ae;return s[46]===Symbol.for("react.memo_cache_sentinel")?(le=()=>G(null),s[46]=le):le=s[46],s[47]!==D||s[48]!==re?(se=(0,v.jsx)(x.TrackDetailModal,{track:D,onSeek:re,onClose:le}),s[47]=D,s[48]=re,s[49]=se):se=s[49],s[50]!==oe||s[51]!==se?(ae=(0,v.jsxs)(v.Fragment,{children:[oe,se]}),s[50]=oe,s[51]=se,s[52]=ae):ae=s[52],ae}),A=s.default.create({state:{alignItems:'center',justifyContent:'center'},list:{paddingHorizontal:h.SPACING.md,paddingVertical:h.SPACING.sm},skeletonRow:{flexDirection:'row',paddingHorizontal:h.SPACING.md,paddingVertical:h.SPACING.sm,gap:h.SPACING.sm,overflow:'hidden'},skeletonHero:{width:'100%',aspectRatio:1,borderRadius:h.RADIUS.md,overflow:'hidden'},skeletonFooter:{paddingVertical:3,alignItems:'center'},skeletonTimeLine:{width:'55%',height:10,marginVertical:2,borderRadius:h.RADIUS.sm,overflow:'hidden'}});function C(){return Date.now()}function _(e){return e.trackId}},3178,[15,17,20,112,33,3179,786,2587,2589,3151,3230,3238,3383,3384,3167,10]);
15584
15584
  __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"FlashList",{enumerable:!0,get:function(){return u.FlashList}}),Object.defineProperty(_e,"RenderTargetOptions",{enumerable:!0,get:function(){return o.RenderTargetOptions}}),Object.defineProperty(_e,"AnimatedFlashList",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(_e,"useBenchmark",{enumerable:!0,get:function(){return s.useBenchmark}}),Object.defineProperty(_e,"useDataMultiplier",{enumerable:!0,get:function(){return f.useDataMultiplier}}),Object.defineProperty(_e,"useFlatListBenchmark",{enumerable:!0,get:function(){return b.useFlatListBenchmark}}),Object.defineProperty(_e,"useLayoutState",{enumerable:!0,get:function(){return p.useLayoutState}}),Object.defineProperty(_e,"useRecyclingState",{enumerable:!0,get:function(){return y.useRecyclingState}}),Object.defineProperty(_e,"useMappingHelper",{enumerable:!0,get:function(){return O.useMappingHelper}}),Object.defineProperty(_e,"JSFPSMonitor",{enumerable:!0,get:function(){return P.JSFPSMonitor}}),Object.defineProperty(_e,"autoScroll",{enumerable:!0,get:function(){return j.autoScroll}}),Object.defineProperty(_e,"Cancellable",{enumerable:!0,get:function(){return j.Cancellable}}),Object.defineProperty(_e,"useFlashListContext",{enumerable:!0,get:function(){return h.useFlashListContext}}),Object.defineProperty(_e,"LayoutCommitObserver",{enumerable:!0,get:function(){return L.LayoutCommitObserver}});var e,t=r(d[0]),n=r(d[1]),u=r(d[2]),o=r(d[3]),c=r(d[4]),l=(e=c)&&e.__esModule?e:{default:e},s=r(d[5]),f=r(d[6]),b=r(d[7]),p=r(d[8]),y=r(d[9]),O=r(d[10]),P=r(d[11]),j=r(d[12]),h=r(d[13]),L=r(d[14]);if(!(0,t.isNewArch)())throw new Error(n.ErrorMessages.flashListV2OnlySupportsNewArchitecture)},3179,[3180,3181,3182,3219,3220,3221,3225,3226,3187,3227,3228,3223,3222,3186,3229]);
15585
15585
  __d(function(g,r,i,a,m,e,d){"use strict";let o;Object.defineProperty(e,'__esModule',{value:!0}),e.isNewArch=function(){if(void 0!==o)return o;try{const n=Boolean(null==g?void 0:g.nativeFabricUIManager),t=Boolean(null==g?void 0:g.__turboModuleProxy);o=n||t||!0}catch(n){o=!0}return o},r(d[0])},3180,[136]);
15586
15586
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ErrorMessages",{enumerable:!0,get:function(){return n}});const n={multipleViewabilityThresholdTypesNotSupported:"You can set exactly one of itemVisiblePercentThreshold or viewAreaCoveragePercentThreshold. Specifying both is not supported.",flashListV2OnlySupportsNewArchitecture:"FlashList v2 is only supported on new architecture",layoutManagerNotInitializedLayoutInfo:"LayoutManager is not initialized, layout info is unavailable",layoutManagerNotInitializedChildContainer:"LayoutManager is not initialized, child container layout is unavailable",layoutManagerNotInitializedWindowSize:"LayoutManager is not initialized, window size is unavailable",horizontalPropCannotBeToggled:"Horizontal prop cannot be toggled, you can use a key on FlashList to recreate it.",layoutManagerNotInitializedVisibleIndices:"LayoutManager is not initialized, visible indices are not unavailable",masonryAndHorizontalIncompatible:"Masonry and horizontal props are incompatible",numColumnsAndHorizontalIncompatible:"numColumns and horizontal props are incompatible",indexOutOfBounds:"index out of bounds, not enough layouts",fpsMonitorAlreadyRunning:"This FPS Monitor has already been run, please create a new instance",dataEmptyCannotRunBenchmark:"Data is empty, cannot run benchmark",stickyHeadersNotSupportedForHorizontal:"Sticky headers are not supported when list is horizontal"}},3181,[]);
@@ -15632,58 +15632,57 @@ __d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{
15632
15632
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useRecyclingState=function(u,c,o){const s=(0,t.useRef)(),[f,l]=(0,n.useLayoutState)(0);(0,t.useMemo)(()=>{const t="function"==typeof u?u():u;s.current=t,null==o||o()},c);const y=(0,t.useCallback)((t,n)=>{const u="function"==typeof t?t(s.current):t;u!==s.current&&(s.current=u,l(t=>t+1,n))},[l]);return[s.current,y]};var t=r(d[0]),n=r(d[1])},3227,[17,3187]);
15633
15633
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"useMappingHelper",{enumerable:!0,get:function(){return u}});var t=r(d[0]),n=r(d[1]);const u=()=>{const u=(0,n.useRecyclerViewContext)();return{getMappingKey:(0,t.useCallback)((t,n)=>u?n:t,[u])}}},3228,[17,3186]);
15634
15634
  __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"LayoutCommitObserver",{enumerable:!0,get:function(){return o}});var e,t=r(d[0]),l=(e=t)&&e.__esModule?e:{default:e},n=r(d[1]),u=r(d[2]);const o=l.default.memo(e=>{const{children:o,onCommitLayoutEffect:c}=e,s=(0,n.useRecyclerViewContext)(),[f,v]=(0,u.useLayoutState)(0),y=(0,t.useRef)(new Set).current;(0,t.useLayoutEffect)(()=>{y.size>0||null==c||c()});const P=(0,t.useMemo)(()=>({layout:()=>{v(e=>e+1)},getRef:()=>{var e;return null!==(e=null==s?void 0:s.getRef())&&void 0!==e?e:null},getParentRef:()=>{var e;return null!==(e=null==s?void 0:s.getParentRef())&&void 0!==e?e:null},getParentScrollViewRef:()=>{var e;return null!==(e=null==s?void 0:s.getParentScrollViewRef())&&void 0!==e?e:null},getScrollViewRef:()=>{var e;return null!==(e=null==s?void 0:s.getScrollViewRef())&&void 0!==e?e:null},markChildLayoutAsPending:e=>{null==s||s.markChildLayoutAsPending(e),y.add(e)},unmarkChildLayoutAsPending:e=>{null==s||s.unmarkChildLayoutAsPending(e),y.has(e)&&(y.delete(e),P.layout())}}),[s,y,v]);return l.default.createElement(n.RecyclerViewContextProvider,{value:P},o)});o.displayName="LayoutCommitObserver"},3229,[17,3186,3187]);
15635
- __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,"TrackCard",{enumerable:!0,get:function(){return S}});var t=r(d[0]),o=r(d[1]),a=e(r(d[2])),l=e(r(d[3])),n=e(r(d[4])),s=e(r(d[5])),c=r(d[6]),u=r(d[7]),f=r(d[8]),p=r(d[9]),b=r(d[10]),h=r(d[11]),y=r(d[12]),x=r(d[13]);function C(e){return new Date(e).toLocaleTimeString(void 0,{hour:'2-digit',minute:'2-digit'})}const S=(0,o.memo)(function(e){const o=(0,t.c)(57),{track:s,variant:p,width:S,selected:j,resolver:N,onPress:I}=e,L=void 0===p?"tile":p,w=void 0!==j&&j,{colors:z}=(0,u.useTheme)(),{settings:A}=(0,f.useSettings)(),E="reel"===L,k=E?A.events.reelShowLabels:A.events.tileShowLabels,O=E?A.events.reelShowImportance:A.events.tileShowImportance,T=!E&&A.events.tileShowCameraName,P=!E&&"icon"===A.events.tileLabelStyle,F=E&&"icon"===A.events.reelLabelStyle,R=(0,b.colorForEventType)(s.className),D=O&&"number"==typeof s.importance;let G;o[0]!==N||o[1]!==s.className?(G=N?N.resolveLabel(s.className):s.className,o[0]=N,o[1]=s.className,o[2]=G):G=o[2];const W=G,_=s.label??W;let H;o[3]!==z.primary||o[4]!==w?(H=w?{borderColor:z.primary,borderWidth:2}:{borderColor:"transparent",borderWidth:2},o[3]=z.primary,o[4]=w,o[5]=H):H=o[5];const M=H;let V;o[6]!==I||o[7]!==s?(V=()=>I(s),o[6]=I,o[7]=s,o[8]=V):V=o[8];const $=s.cameraName;let K;o[9]!==s.lastSeen?(K=C(s.lastSeen),o[9]=s.lastSeen,o[10]=K):K=o[10];const U=`${$} \xb7 ${_} \xb7 ${K}`;let B,q,J,Q,X,Y,Z,ee,te;return o[11]!==z.surface?(B={backgroundColor:z.surface},o[11]=z.surface,o[12]=B):B=o[12],o[13]!==L||o[14]!==S?(q="reel"===L&&S?{width:S}:v.tileFlex,o[13]=L,o[14]=S,o[15]=q):q=o[15],o[16]!==M||o[17]!==q||o[18]!==B?(J=[v.card,M,B,q],o[16]=M,o[17]=q,o[18]=B,o[19]=J):J=o[19],o[20]!==s.bestEventId||o[21]!==s.className?(Q=(0,x.jsx)(y.TrackCropImage,{eventId:s.bestEventId,className:s.className}),o[20]=s.bestEventId,o[21]=s.className,o[22]=Q):Q=o[22],o[23]!==R||o[24]!==W||o[25]!==_||o[26]!==P||o[27]!==F||o[28]!==N||o[29]!==k||o[30]!==s.audioLabels||o[31]!==s.className||o[32]!==s.label||o[33]!==L?(X=k?(0,x.jsx)(a.default,{style:v.captionWrap,pointerEvents:"none",children:"reel"===L?F?(()=>{const e=N?N.resolveIcon(s.className):(0,h.resolveEventKindIcon)(s.className.toLowerCase());return(0,x.jsx)(a.default,{style:[v.caption,v.iconCaption,{backgroundColor:R+"E6"}],children:(0,x.jsx)(e,{size:13,color:"#fff"})})})():(0,x.jsx)(a.default,{style:[v.caption,{backgroundColor:R+"E6"}],children:(0,x.jsx)(l.default,{numberOfLines:1,style:v.captionText,children:_})}):(0,x.jsxs)(a.default,{style:v.labelChips,children:[P?(()=>{const e=N?N.resolveIcon(s.className):(0,h.resolveEventKindIcon)(s.className.toLowerCase());return(0,x.jsx)(a.default,{style:[v.caption,v.iconCaption,{backgroundColor:R+"E6"}],children:(0,x.jsx)(e,{size:13,color:"#fff"})})})():(0,x.jsx)(a.default,{style:[v.caption,{backgroundColor:R+"E6"}],children:(0,x.jsx)(l.default,{numberOfLines:1,style:v.captionText,children:W})}),void 0!==s.label&&s.label!==s.className?(0,x.jsx)(a.default,{style:[v.caption,{backgroundColor:"#000000B3"}],children:(0,x.jsx)(l.default,{numberOfLines:1,style:v.captionText,children:s.label})}):null,s.audioLabels.filter(e=>e!==s.className&&e!==s.label).map(e=>{if(P){const t=N?N.resolveAudioIcon(e):(0,h.resolveEventKindIcon)((0,h.audioKindId)(e));return(0,x.jsx)(a.default,{style:[v.caption,v.iconCaption,{backgroundColor:b.AUDIO_COLOR+"E6"}],children:(0,x.jsx)(t,{size:13,color:"#fff"})},`audio-${e}`)}const t=N?N.resolveAudioLabel(e):e;return(0,x.jsx)(a.default,{style:[v.caption,{backgroundColor:b.AUDIO_COLOR+"E6"}],children:(0,x.jsx)(l.default,{numberOfLines:1,style:v.captionText,children:t})},`audio-${e}`)})]})}):null,o[23]=R,o[24]=W,o[25]=_,o[26]=P,o[27]=F,o[28]=N,o[29]=k,o[30]=s.audioLabels,o[31]=s.className,o[32]=s.label,o[33]=L,o[34]=X):X=o[34],o[35]!==z.primary||o[36]!==z.primaryForeground||o[37]!==D||o[38]!==s.importance?(Y=D?(0,x.jsxs)(a.default,{style:[v.importance,{backgroundColor:z.primary}],children:[(0,x.jsx)(c.Star,{size:9,color:z.primaryForeground,fill:z.primaryForeground}),(0,x.jsx)(l.default,{style:[v.importanceText,{color:z.primaryForeground}],children:Math.round(100*(s.importance??0))})]}):null,o[35]=z.primary,o[36]=z.primaryForeground,o[37]=D,o[38]=s.importance,o[39]=Y):Y=o[39],o[40]!==Q||o[41]!==X||o[42]!==Y?(Z=(0,x.jsxs)(a.default,{style:v.hero,children:[Q,X,Y]}),o[40]=Q,o[41]=X,o[42]=Y,o[43]=Z):Z=o[43],o[44]!==z.foreground||o[45]!==z.foregroundMuted||o[46]!==T||o[47]!==s.cameraName||o[48]!==s.lastSeen||o[49]!==L?(ee="reel"===L?(0,x.jsx)(a.default,{style:v.bodyReel,children:(0,x.jsx)(l.default,{style:[v.time,{color:z.foregroundMuted}],children:C(s.lastSeen)})}):(0,x.jsxs)(a.default,{style:v.body,children:[T?(0,x.jsx)(l.default,{numberOfLines:2,adjustsFontSizeToFit:!0,minimumFontScale:.8,style:[v.camera,{color:z.foreground}],children:s.cameraName}):null,(0,x.jsx)(l.default,{style:[v.time,{color:z.foregroundMuted}],children:C(s.lastSeen)})]}),o[44]=z.foreground,o[45]=z.foregroundMuted,o[46]=T,o[47]=s.cameraName,o[48]=s.lastSeen,o[49]=L,o[50]=ee):ee=o[50],o[51]!==J||o[52]!==Z||o[53]!==ee||o[54]!==V||o[55]!==U?(te=(0,x.jsxs)(n.default,{onPress:V,accessibilityRole:"button",accessibilityLabel:U,style:J,children:[Z,ee]}),o[51]=J,o[52]=Z,o[53]=ee,o[54]=V,o[55]=U,o[56]=te):te=o[56],te}),v=s.default.create({card:{borderRadius:p.RADIUS.md,overflow:'hidden'},tileFlex:{flex:1},hero:{width:'100%',aspectRatio:1,backgroundColor:'rgba(0,0,0,0.3)'},captionWrap:{position:'absolute',left:p.SPACING.sm,right:p.SPACING.sm,bottom:p.SPACING.sm},labelChips:{flexDirection:'row',flexWrap:'wrap',gap:3},caption:{paddingHorizontal:6,paddingVertical:2,borderRadius:p.RADIUS.sm,alignSelf:'flex-start'},iconCaption:{flexDirection:'row',alignItems:'center',justifyContent:'center',paddingHorizontal:4},captionText:{color:'#fff',fontSize:11,fontWeight:'700'},importance:{position:'absolute',top:p.SPACING.sm,right:p.SPACING.sm,flexDirection:'row',alignItems:'center',gap:2,paddingHorizontal:5,paddingVertical:1,borderRadius:8},importanceText:{fontSize:10,fontWeight:'700',fontVariant:['tabular-nums']},body:{paddingHorizontal:p.SPACING.sm,paddingVertical:p.SPACING.sm,gap:1},bodyReel:{paddingHorizontal:p.SPACING.sm,paddingVertical:3,alignItems:'center'},camera:{fontSize:13,lineHeight:16,height:32,fontWeight:'600'},time:{fontSize:11,lineHeight:14,fontVariant:['tabular-nums']}})},3230,[15,17,20,112,252,33,813,2587,3177,2589,3231,3170,3233,10]);
15635
+ __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,"TrackCard",{enumerable:!0,get:function(){return S}});var o=r(d[0]),t=r(d[1]),a=e(r(d[2])),n=e(r(d[3])),l=e(r(d[4])),s=e(r(d[5])),c=r(d[6]),u=r(d[7]),f=r(d[8]),p=r(d[9]),b=r(d[10]),h=r(d[11]),y=r(d[12]),v=r(d[13]),x=r(d[14]);function N(e){return new Date(e).toLocaleTimeString(void 0,{hour:'2-digit',minute:'2-digit'})}const S=(0,t.memo)(function(e){const t=(0,o.c)(63),{track:s,variant:p,width:S,selected:C,resolver:I,onPress:L}=e,D=void 0===p?"tile":p,w=void 0!==C&&C,{colors:z}=(0,u.useTheme)(),{settings:O}=(0,f.useSettings)(),T="reel"===D,k=T?O.events.reelShowLabels:O.events.tileShowLabels,A=T?O.events.reelShowImportance:O.events.tileShowImportance,E=!T&&O.events.tileShowCameraName,F=!T&&"icon"===O.events.tileLabelStyle,P=T&&"icon"===O.events.reelLabelStyle,R=(0,b.colorForEventType)(s.className),W=A&&"number"==typeof s.importance;let G;t[0]!==I||t[1]!==s.className?(G=I?I.resolveLabel(s.className):s.className,t[0]=I,t[1]=s.className,t[2]=G):G=t[2];const H=G;let _;t[3]!==H||t[4]!==s?(_=(0,v.trackTitle)(s,H),t[3]=H,t[4]=s,t[5]=_):_=t[5];const M=_,V=void 0!==s.producingDeviceName&&k&&!(T?P:F),$=void 0!==s.producingDeviceName&&!V;let K;t[6]!==z.primary||t[7]!==w?(K=w?{borderColor:z.primary,borderWidth:2}:{borderColor:"transparent",borderWidth:2},t[6]=z.primary,t[7]=w,t[8]=K):K=t[8];const U=K;let B;t[9]!==L||t[10]!==s?(B=()=>L(s),t[9]=L,t[10]=s,t[11]=B):B=t[11];const q=s.cameraName;let J;t[12]!==s.lastSeen?(J=N(s.lastSeen),t[12]=s.lastSeen,t[13]=J):J=t[13];const Q=`${q} \xb7 ${M} \xb7 ${J}`;let X,Y,Z,ee,oe,te,re,ae,ne;return t[14]!==z.surface?(X={backgroundColor:z.surface},t[14]=z.surface,t[15]=X):X=t[15],t[16]!==D||t[17]!==S?(Y="reel"===D&&S?{width:S}:j.tileFlex,t[16]=D,t[17]=S,t[18]=Y):Y=t[18],t[19]!==U||t[20]!==X||t[21]!==Y?(Z=[j.card,U,X,Y],t[19]=U,t[20]=X,t[21]=Y,t[22]=Z):Z=t[22],t[23]!==s.bestEventId||t[24]!==s.className?(ee=(0,x.jsx)(y.TrackCropImage,{eventId:s.bestEventId,className:s.className}),t[23]=s.bestEventId,t[24]=s.className,t[25]=ee):ee=t[25],t[26]!==R||t[27]!==H||t[28]!==M||t[29]!==F||t[30]!==P||t[31]!==I||t[32]!==k||t[33]!==s.audioLabels||t[34]!==s.className||t[35]!==s.label||t[36]!==s.producingDeviceName||t[37]!==D?(oe=k?(0,x.jsx)(a.default,{style:j.captionWrap,pointerEvents:"none",children:"reel"===D?P?(()=>{const e=I?I.resolveIcon(s.className):(0,h.resolveEventKindIcon)(s.className.toLowerCase());return(0,x.jsx)(a.default,{style:[j.caption,j.iconCaption,{backgroundColor:R+"E6"}],children:(0,x.jsx)(e,{size:13,color:"#fff"})})})():(0,x.jsx)(a.default,{style:[j.caption,{backgroundColor:R+"E6"}],children:(0,x.jsx)(n.default,{numberOfLines:1,style:j.captionText,children:M})}):(0,x.jsxs)(a.default,{style:j.labelChips,children:[F?(()=>{const e=I?I.resolveIcon(s.className):(0,h.resolveEventKindIcon)(s.className.toLowerCase());return(0,x.jsx)(a.default,{style:[j.caption,j.iconCaption,{backgroundColor:R+"E6"}],children:(0,x.jsx)(e,{size:13,color:"#fff"})})})():(0,x.jsx)(a.default,{style:[j.caption,{backgroundColor:R+"E6"}],children:(0,x.jsx)(n.default,{numberOfLines:1,style:j.captionText,children:s.producingDeviceName??H})}),void 0!==s.label&&s.label!==s.className?(0,x.jsx)(a.default,{style:[j.caption,{backgroundColor:"#000000B3"}],children:(0,x.jsx)(n.default,{numberOfLines:1,style:j.captionText,children:s.label})}):null,s.audioLabels.filter(e=>e!==s.className&&e!==s.label).map(e=>{if(F){const o=I?I.resolveAudioIcon(e):(0,h.resolveEventKindIcon)((0,h.audioKindId)(e));return(0,x.jsx)(a.default,{style:[j.caption,j.iconCaption,{backgroundColor:b.AUDIO_COLOR+"E6"}],children:(0,x.jsx)(o,{size:13,color:"#fff"})},`audio-${e}`)}const o=I?I.resolveAudioLabel(e):e;return(0,x.jsx)(a.default,{style:[j.caption,{backgroundColor:b.AUDIO_COLOR+"E6"}],children:(0,x.jsx)(n.default,{numberOfLines:1,style:j.captionText,children:o})},`audio-${e}`)})]})}):null,t[26]=R,t[27]=H,t[28]=M,t[29]=F,t[30]=P,t[31]=I,t[32]=k,t[33]=s.audioLabels,t[34]=s.className,t[35]=s.label,t[36]=s.producingDeviceName,t[37]=D,t[38]=oe):oe=t[38],t[39]!==z.primary||t[40]!==z.primaryForeground||t[41]!==W||t[42]!==s.importance?(te=W?(0,x.jsxs)(a.default,{style:[j.importance,{backgroundColor:z.primary}],children:[(0,x.jsx)(c.Star,{size:9,color:z.primaryForeground,fill:z.primaryForeground}),(0,x.jsx)(n.default,{style:[j.importanceText,{color:z.primaryForeground}],children:Math.round(100*(s.importance??0))})]}):null,t[39]=z.primary,t[40]=z.primaryForeground,t[41]=W,t[42]=s.importance,t[43]=te):te=t[43],t[44]!==ee||t[45]!==oe||t[46]!==te?(re=(0,x.jsxs)(a.default,{style:j.hero,children:[ee,oe,te]}),t[44]=ee,t[45]=oe,t[46]=te,t[47]=re):re=t[47],t[48]!==z.foreground||t[49]!==z.foregroundMuted||t[50]!==E||t[51]!==$||t[52]!==s.cameraName||t[53]!==s.lastSeen||t[54]!==s.producingDeviceName||t[55]!==D?(ae="reel"===D?(0,x.jsxs)(a.default,{style:j.bodyReel,children:[$?(0,x.jsx)(n.default,{numberOfLines:1,style:[j.producing,{color:z.foreground}],children:s.producingDeviceName}):null,(0,x.jsx)(n.default,{style:[j.time,{color:z.foregroundMuted}],children:N(s.lastSeen)})]}):(0,x.jsxs)(a.default,{style:j.body,children:[$?(0,x.jsx)(n.default,{numberOfLines:2,adjustsFontSizeToFit:!0,minimumFontScale:.8,style:[j.camera,{color:z.foreground}],children:s.producingDeviceName}):E&&void 0===s.producingDeviceName?(0,x.jsx)(n.default,{numberOfLines:2,adjustsFontSizeToFit:!0,minimumFontScale:.8,style:[j.camera,{color:z.foreground}],children:s.cameraName}):null,(0,x.jsx)(n.default,{style:[j.time,{color:z.foregroundMuted}],children:N(s.lastSeen)})]}),t[48]=z.foreground,t[49]=z.foregroundMuted,t[50]=E,t[51]=$,t[52]=s.cameraName,t[53]=s.lastSeen,t[54]=s.producingDeviceName,t[55]=D,t[56]=ae):ae=t[56],t[57]!==Z||t[58]!==re||t[59]!==ae||t[60]!==B||t[61]!==Q?(ne=(0,x.jsxs)(l.default,{onPress:B,accessibilityRole:"button",accessibilityLabel:Q,style:Z,children:[re,ae]}),t[57]=Z,t[58]=re,t[59]=ae,t[60]=B,t[61]=Q,t[62]=ne):ne=t[62],ne}),j=s.default.create({card:{borderRadius:p.RADIUS.md,overflow:'hidden'},tileFlex:{flex:1},hero:{width:'100%',aspectRatio:1,backgroundColor:'rgba(0,0,0,0.3)'},captionWrap:{position:'absolute',left:p.SPACING.sm,right:p.SPACING.sm,bottom:p.SPACING.sm},labelChips:{flexDirection:'row',flexWrap:'wrap',gap:3},caption:{paddingHorizontal:6,paddingVertical:2,borderRadius:p.RADIUS.sm,alignSelf:'flex-start'},iconCaption:{flexDirection:'row',alignItems:'center',justifyContent:'center',paddingHorizontal:4},captionText:{color:'#fff',fontSize:11,fontWeight:'700'},importance:{position:'absolute',top:p.SPACING.sm,right:p.SPACING.sm,flexDirection:'row',alignItems:'center',gap:2,paddingHorizontal:5,paddingVertical:1,borderRadius:8},importanceText:{fontSize:10,fontWeight:'700',fontVariant:['tabular-nums']},body:{paddingHorizontal:p.SPACING.sm,paddingVertical:p.SPACING.sm,gap:1},bodyReel:{paddingHorizontal:p.SPACING.sm,paddingVertical:3,alignItems:'center'},producing:{fontSize:11,lineHeight:14,fontWeight:'600',maxWidth:'100%'},camera:{fontSize:13,lineHeight:16,height:32,fontWeight:'600'},time:{fontSize:11,lineHeight:14,fontVariant:['tabular-nums']}})},3230,[15,17,20,112,252,33,813,2587,3177,2589,3231,3170,3233,3237,10]);
15636
15636
  __d(function(g,r,_i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"MOTION_COLOR",{enumerable:!0,get:function(){return o}}),Object.defineProperty(_e,"AUDIO_COLOR",{enumerable:!0,get:function(){return s}}),_e.colorForEventType=i,_e.filterEvents=function(t,e,n){return n?t:t.filter(t=>e.has('audio'===t.type.toLowerCase()?'audio':'motion'))},_e.filterDetectionsByClass=l,_e.filterDetectionsByKind=function(t,n,o=f,s){return l((0,e.isFilterAll)(n)||n.has('motion')?t:t.filter(t=>(t.audioLabels?.length??0)>0),o,s)},_e.mergeAudioIntoHeatmapBins=function(t,e,o){if(0===e.length||0===t.length)return t;const s=n/t.length,i=new Array(t.length).fill(0);let c=!1;for(const n of e){if(n.intensity<=0||n.endMs<=n.startMs)continue;const e=Math.floor((n.startMs-o)/s),f=Math.floor((n.endMs-1-o)/s);for(let o=Math.max(0,e);o<=Math.min(t.length-1,f);o++)n.intensity>i[o]&&(i[o]=n.intensity,c=!0)}return c?t.map((t,e)=>i[e]>t.audio?Object.assign({},t,{audio:i[e]}):t):t},_e.eventsToHeatmapHighlights=function(t,e){const n=new Date(e);n.setHours(0,0,0,0);const o=n.getTime(),s=[];for(const e of t){const t=(e.timestamp-o)/864e5;t<0||t>1||s.push({id:e.id,fraction:t,color:i(e.type)})}return s},_e.objectEventsToHeatmapHighlights=function(e,o){const s=[];for(const i of e){const e=(i.timestamp-o)/n;e<0||e>1||s.push({id:i.id,fraction:e,color:(0,t.getClassColor)(i.className)})}return s},_e.objectEventsToHeatmapBins=function(t,o){const s=new Array(e.HEATMAP_BINS).fill(0);for(const i of t){const t=(i.timestamp-o)/n;t<0||t>=1||s[Math.min(e.HEATMAP_BINS-1,Math.floor(t*e.HEATMAP_BINS))]++}let i=0;for(const t of s)t>i&&(i=t);return s.map(t=>({motion:i>0?t/i:0,audio:0,recorded:!1}))},_e.eventsToListHighlights=function(t,e,n){const o=36e5*n;if(o<=0)return[];const s=[];for(const n of t){const t=(e-n.timestamp)/o;t<0||t>1||s.push({id:n.id,fraction:t,color:i(n.type)})}return s};var t=r(d[0]),e=r(d[1]);const n=864e5,o='#f59e0b',s='#06b6d4';function i(e){const n=e.toLowerCase();return'motion'===n?o:'audio'===n?s:(0,t.getClassColor)(e)}function c(t){const e=[];return'string'==typeof t.className&&t.className.length>0&&e.push(t.className),t.classes&&e.push(...t.classes),e}const f=new Set;function l(t,e,n){if(0===e.size)return t;const o=t=>n?.get(t)??t;return t.filter(t=>c(t).some(t=>e.has(o(t))))}},3231,[3232,3142]);
15637
15637
  __d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.getClassColor=function(b){const f=b.toLowerCase(),n=c[b]??c[f];if(n)return n;let i=0;for(let c=0;c<b.length;c++)i=31*i+(b.codePointAt(c)??0)>>>0;return t[i%t.length]??o};const c={person:'#22c55e',vehicle:'#3b82f6',animal:'#f97316',motion:'#f59e0b',audio:'#06b6d4',face:'#a855f7',plate:'#ec4899',car:'#f59e0b',truck:'#d97706',bus:'#b45309',motorcycle:'#eab308',bicycle:'#ca8a04',airplane:'#60a5fa',boat:'#2563eb',train:'#1d4ed8',bird:'#14b8a6',dog:'#84cc16',cat:'#f97316',horse:'#a16207',sheep:'#a3a3a3',cow:'#78716c',elephant:'#6b7280',bear:'#7c2d12',zebra:'#404040',giraffe:'#d4a373'},t=['#ef4444','#8b5cf6','#06b6d4','#f97316','#10b981','#6366f1','#e11d48','#0891b2','#7c3aed','#059669'],o='#f59e42'},3232,[]);
15638
- __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,"TrackCropImage",{enumerable:!0,get:function(){return _}});var t=r(d[0]),o=r(d[1]),n=e(r(d[2])),l=e(r(d[3])),c=r(d[4]),s=r(d[5]),u=r(d[6]),f=r(d[7]),y=r(d[8]),v=r(d[9]),b=r(d[10]);const _=(0,o.memo)(function(e){const o=(0,t.c)(27),{eventId:_,className:j,mediaUrl:x,contentFit:F,iconSize:S,thumbSize:k}=e,p=void 0===F?"cover":F,z=void 0===S?34:S,C=void 0===k?192:k,{token:E}=(0,s.useServer)();let I;o[0]!==C?(I={variant:"thumb",size:C},o[0]=C,o[1]=I):I=o[1];const{uri:B,isData:M,failed:P,onError:A}=(0,u.useEventMedia)(_,x,"crop",I),O=(0,y.colorForEventType)(j);let T;o[2]!==j?(T=(0,v.iconForClass)(j),o[2]=j,o[3]=T):T=o[3];const D=T;let K;o[4]!==M||o[5]!==E||o[6]!==B?(K=E&&B&&!M?{Authorization:`Bearer ${E}`}:void 0,o[4]=M,o[5]=E,o[6]=B,o[7]=K):K=o[7];const N=K;if(P){const e=O+"1A";let t,c,s;return o[8]!==e?(t=[l.default.absoluteFill,h.center,{backgroundColor:e}],o[8]=e,o[9]=t):t=o[9],o[10]!==D||o[11]!==O||o[12]!==z?(c=(0,b.jsx)(D,{size:z,color:O}),o[10]=D,o[11]=O,o[12]=z,o[13]=c):c=o[13],o[14]!==t||o[15]!==c?(s=(0,b.jsx)(n.default,{style:t,children:c}),o[14]=t,o[15]=c,o[16]=s):s=o[16],s}if(null===B){let e;return o[17]===Symbol.for("react.memo_cache_sentinel")?(e=(0,b.jsx)(f.SkeletonBox,{}),o[17]=e):e=o[17],e}let U,$,q;return o[18]===Symbol.for("react.memo_cache_sentinel")?(U=(0,b.jsx)(f.SkeletonBox,{}),o[18]=U):U=o[18],o[19]!==N||o[20]!==B?($=N?{uri:B,headers:N}:{uri:B},o[19]=N,o[20]=B,o[21]=$):$=o[21],o[22]!==p||o[23]!==_||o[24]!==A||o[25]!==$?(q=(0,b.jsxs)(n.default,{style:l.default.absoluteFill,children:[U,(0,b.jsx)(c.Image,{source:$,recyclingKey:_,style:l.default.absoluteFill,contentFit:p,cachePolicy:"memory-disk",transition:100,onError:A})]}),o[22]=p,o[23]=_,o[24]=A,o[25]=$,o[26]=q):q=o[26],q}),h=l.default.create({center:{alignItems:'center',justifyContent:'center'}})},3233,[15,17,20,33,3053,3144,3234,3151,3231,3236,10]);
15639
- __d(function(g,r,i,a,_m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useEventMedia=function(c,o,v,y){const h=(0,t.c)(31),{controller:p,state:b}=(0,l.useConnection)(),[m,E]=(0,n.useState)(null),[k,M]=(0,n.useState)(!1),R=(0,n.useRef)(!1),S="thumb"===y?.variant,_=S||"full"===y?.variant,j=_&&void 0!==v&&v.length>0,z=j&&!0!==y?.directDefaultKind;let A;if(h[0]!==p||h[1]!==c||h[2]!==z||h[3]!==y||h[4]!==v||h[5]!==b||h[6]!==_||h[7]!==S){const t="connected"===b?p.getSystem()?.serverUrl??null:null;A=_&&null!==t&&c.length>0?(0,s.buildEventMediaUrl)(t,c,Object.assign({},S?{variant:"thumb"}:{},S&&void 0!==y?.size?{size:y.size}:{},z?{kind:v}:{})):null,h[0]=p,h[1]=c,h[2]=z,h[3]=y,h[4]=v,h[5]=b,h[6]=_,h[7]=S,h[8]=A}else A=h[8];const C=A;let D;h[9]!==p||h[10]!==j||h[11]!==c||h[12]!==v?(D=async()=>{if(!R.current){R.current=!0;try{const t=p.getSystem();if(!t)return void M(!0);const n=f(await(0,u.capQuery)(t.trpcClient,"pipelineAnalytics","getEventMedia",{eventId:c}),v,j);n?E(`data:image/jpeg;base64,${n}`):M(!0)}catch{M(!0)}}},h[9]=p,h[10]=j,h[11]=c,h[12]=v,h[13]=D):D=h[13];const F=D;let O,U,w;h[14]!==k||h[15]!==m||h[16]!==F||h[17]!==o||h[18]!==v||h[19]!==_?(O=()=>{_||!v&&o||null!==m||k||F()},U=[_,o,v,m,k,F],h[14]=k,h[15]=m,h[16]=F,h[17]=o,h[18]=v,h[19]=_,h[20]=O,h[21]=U):(O=h[20],U=h[21]);(0,n.useEffect)(O,U),h[22]!==F?(w=()=>{F()},h[22]=F,h[23]=w):w=h[23];const I=w,K=m??C??o??null;let P;h[24]!==K?(P=null!==K&&K.startsWith("data:"),h[24]=K,h[25]=P):P=h[25];const Q=P,W=k&&null===K;let $;h[26]!==Q||h[27]!==I||h[28]!==W||h[29]!==K?($={uri:K,isData:Q,failed:W,onError:I},h[26]=Q,h[27]=I,h[28]=W,h[29]=K,h[30]=$):$=h[30];return $};var t=r(d[0]),n=r(d[1]),l=r(d[2]),u=r(d[3]),s=r(d[4]);function c(t){if(!(0,u.isRecord)(t))return null;const n=t.base64;return'string'!=typeof n||0===n.length?null:n}const o=['crop','fullFrame','keyFrame'];function f(t,n,l=!1){if(!Array.isArray(t)||0===t.length)return null;if(n){const l=c(t.find(t=>(0,u.isRecord)(t)&&t.kind===n));if(null!==l)return l}if(l){for(const n of o){const l=c(t.find(t=>(0,u.isRecord)(t)&&t.kind===n));if(null!==l)return l}return null}return c(t[0])}},3234,[15,17,2594,3162,3235]);
15638
+ __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,"TrackCropImage",{enumerable:!0,get:function(){return _}});var t=r(d[0]),o=r(d[1]),n=e(r(d[2])),l=e(r(d[3])),c=r(d[4]),s=r(d[5]),u=r(d[6]),f=r(d[7]),y=r(d[8]),v=r(d[9]),b=r(d[10]);const _=(0,o.memo)(function(e){const o=(0,t.c)(27),{eventId:_,className:j,mediaUrl:x,contentFit:F,iconSize:S,thumbSize:k}=e,p=void 0===F?"cover":F,z=void 0===S?34:S,C=void 0===k?192:k,{token:E}=(0,s.useServer)();let I;o[0]!==C?(I={variant:"thumb",size:C,directDefaultKind:!0},o[0]=C,o[1]=I):I=o[1];const{uri:B,isData:M,failed:P,onError:A}=(0,u.useEventMedia)(_,x,"crop",I),D=(0,y.colorForEventType)(j);let K;o[2]!==j?(K=(0,v.iconForClass)(j),o[2]=j,o[3]=K):K=o[3];const O=K;let T;o[4]!==M||o[5]!==E||o[6]!==B?(T=E&&B&&!M?{Authorization:`Bearer ${E}`}:void 0,o[4]=M,o[5]=E,o[6]=B,o[7]=T):T=o[7];const N=T;if(P){const e=D+"1A";let t,c,s;return o[8]!==e?(t=[l.default.absoluteFill,h.center,{backgroundColor:e}],o[8]=e,o[9]=t):t=o[9],o[10]!==O||o[11]!==D||o[12]!==z?(c=(0,b.jsx)(O,{size:z,color:D}),o[10]=O,o[11]=D,o[12]=z,o[13]=c):c=o[13],o[14]!==t||o[15]!==c?(s=(0,b.jsx)(n.default,{style:t,children:c}),o[14]=t,o[15]=c,o[16]=s):s=o[16],s}if(null===B){let e;return o[17]===Symbol.for("react.memo_cache_sentinel")?(e=(0,b.jsx)(f.SkeletonBox,{}),o[17]=e):e=o[17],e}let U,$,q;return o[18]===Symbol.for("react.memo_cache_sentinel")?(U=(0,b.jsx)(f.SkeletonBox,{}),o[18]=U):U=o[18],o[19]!==N||o[20]!==B?($=N?{uri:B,headers:N}:{uri:B},o[19]=N,o[20]=B,o[21]=$):$=o[21],o[22]!==p||o[23]!==_||o[24]!==A||o[25]!==$?(q=(0,b.jsxs)(n.default,{style:l.default.absoluteFill,children:[U,(0,b.jsx)(c.Image,{source:$,recyclingKey:_,style:l.default.absoluteFill,contentFit:p,cachePolicy:"memory-disk",transition:100,onError:A})]}),o[22]=p,o[23]=_,o[24]=A,o[25]=$,o[26]=q):q=o[26],q}),h=l.default.create({center:{alignItems:'center',justifyContent:'center'}})},3233,[15,17,20,33,3053,3144,3234,3151,3231,3236,10]);
15639
+ __d(function(g,r,i,a,_m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.resolveEventMediaUri=c,Object.defineProperty(e,"CLEAN_FALLBACK_KINDS",{enumerable:!0,get:function(){return f}}),e.extractBase64=m,e.useEventMedia=function(o,f,b,v){const y=(0,t.c)(20),{controller:h,state:p}=(0,l.useConnection)(),[U,k]=(0,n.useState)(null),[D,E]=(0,n.useState)(!1),S=(0,n.useRef)(!1),A="thumb"===v?.variant,_=A||"full"===v?.variant,M=_&&void 0!==b&&b.length>0,j=M&&!0!==v?.directDefaultKind,C="connected"===p?h.getSystem()?.serverUrl??null:null,F=_&&null!==C&&o.length>0?(0,s.buildEventMediaUrl)(C,o,Object.assign({},A?{variant:"thumb"}:{},A&&void 0!==v?.size?{size:v.size}:{},j?{kind:b}:{})):null;let R;y[0]!==h||y[1]!==M||y[2]!==o||y[3]!==b?(R=async()=>{if(!S.current){S.current=!0;try{const t=h.getSystem();if(!t)return void E(!0);const n=m(await(0,u.capQuery)(t.trpcClient,"pipelineAnalytics","getEventMedia",{eventId:o}),b,M);n?k(`data:image/jpeg;base64,${n}`):E(!0)}catch{E(!0)}}},y[0]=h,y[1]=M,y[2]=o,y[3]=b,y[4]=R):R=y[4];const z=R;let K,L,O;y[5]!==D||y[6]!==U||y[7]!==z||y[8]!==f||y[9]!==b||y[10]!==_?(K=()=>{_||!b&&f||null!==U||D||z()},L=[_,f,b,U,D,z],y[5]=D,y[6]=U,y[7]=z,y[8]=f,y[9]=b,y[10]=_,y[11]=K,y[12]=L):(K=y[11],L=y[12]);(0,n.useEffect)(K,L),y[13]!==z?(O=()=>{z()},y[13]=z,y[14]=O):O=y[14];const B=O,I=c({fallbackUri:U,thumbUrl:F,mediaUrl:f,failed:D});let N;y[15]!==B||y[16]!==I.failed||y[17]!==I.isData||y[18]!==I.uri?(N={uri:I.uri,isData:I.isData,failed:I.failed,onError:B},y[15]=B,y[16]=I.failed,y[17]=I.isData,y[18]=I.uri,y[19]=N):N=y[19];return N};var t=r(d[0]),n=r(d[1]),l=r(d[2]),u=r(d[3]),s=r(d[4]);function c(t){const n=t.failed?null:t.thumbUrl,l=t.fallbackUri??n??t.mediaUrl??null;return{uri:l,isData:null!==l&&l.startsWith('data:'),failed:t.failed&&null===l}}function o(t){if(!(0,u.isRecord)(t))return null;const n=t.base64;return'string'!=typeof n||0===n.length?null:n}const f=['thumbnailSmall','thumbnail','keyFrameSmall','crop','keyFrame','fullFrame'];function m(t,n,l=!1){if(!Array.isArray(t)||0===t.length)return null;if(n){const l=o(t.find(t=>(0,u.isRecord)(t)&&t.kind===n));if(null!==l)return l}if(l){for(const n of f){const l=o(t.find(t=>(0,u.isRecord)(t)&&t.kind===n));if(null!==l)return l}return null}return o(t[0])}},3234,[15,17,2594,3162,3235]);
15640
15640
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"EVENT_MEDIA_PATH",{enumerable:!0,get:function(){return n}}),e.buildEventMediaUrl=function(u,o,c){const s=($=u,$.replace(/\/+$/,'')),h=c?t(c):'';var $;return`${s}${n}/${o}${h}`},e.withThumbVariant=function(n,t){const u=n.includes('?')?'&':'?',o=void 0!==t?`&size=${Math.round(t)}`:'';return`${n}${u}variant=thumb${o}`};const n='/addon/pipeline-analytics/event-media';function t(n){const t=[];return'thumb'===n.variant&&(t.push('variant=thumb'),void 0!==n.size&&t.push(`size=${Math.round(n.size)}`)),void 0!==n.kind&&n.kind.length>0&&t.push(`kind=${encodeURIComponent(n.kind)}`),t.length>0?`?${t.join('&')}`:''}},3235,[]);
15641
15641
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.iconForClass=function(o){const t=o.toLowerCase();return'person'===t||'face'===t?c.User:['car','truck','bus','vehicle','motorcycle','bicycle'].includes(t)?c.Car:'dog'===t||'cat'===t||'animal'===t?c.Dog:'bird'===t?c.Bird:c.HelpCircle};var c=r(d[0])},3236,[813]);
15642
- __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,"TrackDetailModal",{enumerable:!0,get:function(){return k}});var t=r(d[0]),n=r(d[1]),o=e(r(d[2])),l=e(r(d[3])),u=e(r(d[4])),c=r(d[5]),s=r(d[6]),f=r(d[7]),p=r(d[8]);const k=(0,n.memo)(function(e){const n=(0,t.c)(14),{track:u,onSeek:k,onClose:_}=e,{colors:j}=(0,s.useTheme)(),T=(0,c.useSafeAreaInsets)(),x=null!==u,y=j.background+"F2";let C,h,v,M;return n[0]!==T.top||n[1]!==y?(C=[b.backdrop,{backgroundColor:y,paddingTop:T.top}],n[0]=T.top,n[1]=y,n[2]=C):C=n[2],n[3]!==_||n[4]!==k||n[5]!==u?(h=null!==u?(0,p.jsx)(f.TrackDetailView,{track:u,onSeek:k,onClose:_}):null,n[3]=_,n[4]=k,n[5]=u,n[6]=h):h=n[6],n[7]!==C||n[8]!==h?(v=(0,p.jsx)(l.default,{style:C,children:h}),n[7]=C,n[8]=h,n[9]=v):v=n[9],n[10]!==_||n[11]!==x||n[12]!==v?(M=(0,p.jsx)(o.default,{visible:x,animationType:"slide",transparent:!0,onRequestClose:_,children:v}),n[10]=_,n[11]=x,n[12]=v,n[13]=M):M=n[13],M}),b=u.default.create({backdrop:{flex:1}})},3237,[15,17,245,20,33,466,2587,3238,10]);
15643
- __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,"TrackDetailView",{enumerable:!0,get:function(){return L}});var t=r(d[0]),o=r(d[1]),n=e(r(d[2])),s=e(r(d[3])),l=e(r(d[4])),c=e(r(d[5])),u=e(r(d[6])),f=r(d[7]),g=r(d[8]),h=r(d[9]),b=r(d[10]),y=r(d[11]),S=r(d[12]),x=r(d[13]),p=r(d[14]),j=r(d[15]),I=r(d[16]),k=r(d[17]),v=r(d[18]),C=r(d[19]),F=r(d[20]),w=r(d[21]),A=r(d[22]),N=r(d[23]),P=r(d[24]);const R=1.7777777777777777,z=new Set(['fullFrame','fullFrameBoxed','keyFrame','firstFrame','lastFrame']);function B(e){return new Date(e).toLocaleTimeString(void 0,{hour:'2-digit',minute:'2-digit',second:'2-digit'})}function T(e){switch(e){case'crop':case'thumbnail':return'Crop';case'faceCrop':return'Face';case'plateCrop':return'Plate';case'fullFrame':return'Frame';case'fullFrameBoxed':return'Boxed';case'keyFrame':return'Key frame';case'firstFrame':return'First';case'lastFrame':return'Last';case'snapshot':return'Snapshot';default:return e}}const G=(0,o.memo)(function(e){const c=(0,t.c)(29),{file:g,selected:b,onPress:S}=e,{colors:x}=(0,y.useTheme)(),[p,j]=(0,o.useState)(!1);let I,k;c[0]===Symbol.for("react.memo_cache_sentinel")?(I=()=>j(!1),c[0]=I):I=c[0],c[1]!==g.base64?(k=[g.base64],c[1]=g.base64,c[2]=k):k=c[2],(0,o.useEffect)(I,k);const v=b?x.primary:x.border,C=b?2:u.default.hairlineWidth;let F;c[3]!==v||c[4]!==C?(F={borderColor:v,borderWidth:C},c[3]=v,c[4]=C,c[5]=F):F=c[5];const w=F;let A,N,R,z;c[6]!==x.surface?(A={backgroundColor:x.surface},c[6]=x.surface,c[7]=A):A=c[7],c[8]!==w||c[9]!==A?(N=[E.tile,w,A],c[8]=w,c[9]=A,c[10]=N):N=c[10],c[11]!==x.foregroundSubtle||c[12]!==p||c[13]!==g.base64?(R=p?(0,P.jsx)(n.default,{style:[u.default.absoluteFill,E.center],pointerEvents:"none",children:(0,P.jsx)(h.ImageOff,{size:18,color:x.foregroundSubtle})}):(0,P.jsx)(f.Image,{source:{uri:`data:image/jpeg;base64,${g.base64}`},style:u.default.absoluteFill,contentFit:"cover",cachePolicy:"memory",onError:()=>j(!0)}),c[11]=x.foregroundSubtle,c[12]=p,c[13]=g.base64,c[14]=R):R=c[14],c[15]!==N||c[16]!==R?(z=(0,P.jsx)(n.default,{style:N,children:R}),c[15]=N,c[16]=R,c[17]=z):z=c[17];const B=b?x.foreground:x.foregroundMuted;let G,L,D,M;return c[18]!==B?(G=[E.tileLabel,{color:B}],c[18]=B,c[19]=G):G=c[19],c[20]!==g.kind?(L=T(g.kind),c[20]=g.kind,c[21]=L):L=c[21],c[22]!==G||c[23]!==L?(D=(0,P.jsx)(s.default,{numberOfLines:1,style:G,children:L}),c[22]=G,c[23]=L,c[24]=D):D=c[24],c[25]!==S||c[26]!==D||c[27]!==z?(M=(0,P.jsxs)(l.default,{onPress:S,hitSlop:4,style:E.tileWrap,children:[z,D]}),c[25]=S,c[26]=D,c[27]=z,c[28]=M):M=c[28],M}),L=(0,o.memo)(function(e){const T=(0,t.c)(168),{track:L,onSeek:_,onClose:V,bottomInset:W}=e,{colors:U}=(0,y.useTheme)(),{t:K}=(0,b.useTranslation)(),O=(0,g.useSafeAreaInsets)();let $;T[0]!==L.className?($=(0,x.colorForEventType)(L.className),T[0]=L.className,T[1]=$):$=T[1];const H=$;let Z;T[2]!==L.deviceId?(Z=[L.deviceId],T[2]=L.deviceId,T[3]=Z):Z=T[3];const X=(0,A.useEventKindResolver)(Z);let q;T[4]!==X||T[5]!==L.className||T[6]!==L.label?(q=L.label??X.resolveLabel(L.className),T[4]=X,T[5]=L.className,T[6]=L.label,T[7]=q):q=T[7];const J=q,[Q,Y]=(0,o.useState)(!1),[ee,te]=(0,o.useState)(0),[re,oe]=(0,o.useState)(!1),[ne,ae]=(0,o.useState)(!1),[se,le]=(0,o.useState)(null),[ie,de]=(0,o.useState)(void 0),ce=(0,C.useTrackDetailMedia)(L.deviceId,L.bestEventId,L.trackId),ue=ce.gallery;let fe,me;T[8]!==L.label?(fe=void 0!==L.label?{label:L.label}:{},T[8]=L.label,T[9]=fe):fe=T[9],T[10]!==fe||T[11]!==L.bestEventId||T[12]!==L.className||T[13]!==L.firstSeen?(me=Object.assign({id:L.bestEventId,timestamp:L.firstSeen,className:L.className},fe),T[10]=fe,T[11]=L.bestEventId,T[12]=L.className,T[13]=L.firstSeen,T[14]=me):me=T[14];const ge=me,{data:he}=(0,w.useTrackFace)(L.deviceId,L.trackId,!0),be=void 0===he?null:he;let ye;T[15]!==be?(ye=(0,N.shouldRenderFaceSection)(be),T[15]=be,T[16]=ye):ye=T[16];const Se=ye;let xe,pe,je;T[17]===Symbol.for("react.memo_cache_sentinel")?(xe=()=>{le(null)},T[17]=xe):xe=T[17],T[18]!==L.trackId?(pe=[L.trackId],T[18]=L.trackId,T[19]=pe):pe=T[19],(0,o.useEffect)(xe,pe),T[20]!==ue?(je=(0,N.cleanFrameKey)(ue),T[20]=ue,T[21]=je):je=T[21];const Ie=je,ke=se??Ie??ue[0]?.key??null;let ve,Ce,Fe;T[22]===Symbol.for("react.memo_cache_sentinel")?(ve=()=>{de(void 0)},T[22]=ve):ve=T[22],T[23]!==ke?(Ce=[ke],T[23]=ke,T[24]=Ce):Ce=T[24],(0,o.useEffect)(ve,Ce),T[25]!==ke||T[26]!==ue?(Fe=ue.find(e=>e.key===ke)??null,T[25]=ke,T[26]=ue,T[27]=Fe):Fe=T[27];const we=Fe,Ae=null!==we&&we.key===Ie;let Ne;T[28]!==Ae||T[29]!==we?(Ne=null!==we&&z.has(we.kind)&&Ae,T[28]=Ae,T[29]=we,T[30]=Ne):Ne=T[30];const Pe=Ne,Re=Q&&Pe&&!ce.hasServerBoxed,{detection:ze}=(0,F.useTrackBestDetection)(L.deviceId,L.trackId,L.bestEventId,L.firstSeen,L.lastSeen,Re||ne);let Be;T[31]!==ze?(Be=ze?[ze]:[],T[31]=ze,T[32]=Be):Be=T[32];const Te=Be;let Ge;T[33]===Symbol.for("react.memo_cache_sentinel")?(Ge=e=>{e>0&&te(e)},T[33]=Ge):Ge=T[33];const Le=Ge;let De;T[34]!==ee?(De=ee>0?Math.round(ee/R):0,T[34]=ee,T[35]=De):De=T[35];const Ee=De,Me=(W??O.bottom)+S.SPACING.md,Ve=Q&&Pe&&ce.hasServerBoxed&&null!==ce.fullFrameBoxedUri,We=null===we?null:Ve?ce.fullFrameBoxedUri:`data:image/jpeg;base64,${we.base64}`;let Ue,Ke,Oe,$e,He,Ze;T[36]!==H?(Ue=(0,P.jsx)(n.default,{style:[E.classDot,{backgroundColor:H}]}),T[36]=H,T[37]=Ue):Ue=T[37],T[38]!==U.foreground?(Ke=[E.title,{color:U.foreground}],T[38]=U.foreground,T[39]=Ke):Ke=T[39],T[40]!==J||T[41]!==Ke?(Oe=(0,P.jsx)(s.default,{numberOfLines:1,style:Ke,children:J}),T[40]=J,T[41]=Ke,T[42]=Oe):Oe=T[42],T[43]!==U.primary||T[44]!==U.primaryForeground||T[45]!==L.importance?($e="number"==typeof L.importance?(0,P.jsxs)(n.default,{style:[E.importance,{backgroundColor:U.primary}],children:[(0,P.jsx)(h.Star,{size:9,color:U.primaryForeground,fill:U.primaryForeground}),(0,P.jsx)(s.default,{style:[E.importanceText,{color:U.primaryForeground}],children:Math.round(100*L.importance)})]}):null,T[43]=U.primary,T[44]=U.primaryForeground,T[45]=L.importance,T[46]=$e):$e=T[46],T[47]!==Ue||T[48]!==Oe||T[49]!==$e?(He=(0,P.jsxs)(n.default,{style:E.titleRow,children:[Ue,Oe,$e]}),T[47]=Ue,T[48]=Oe,T[49]=$e,T[50]=He):He=T[50],T[51]!==U.foregroundMuted?(Ze=[E.subtitle,{color:U.foregroundMuted}],T[51]=U.foregroundMuted,T[52]=Ze):Ze=T[52];const Xe=L.cameraName.length>0?`${L.cameraName} \xb7 `:"";let qe,Je,Qe,Ye,et,tt,rt,ot,nt,at,st,lt,it,dt,ct,ut,ft,mt,gt,ht,bt,yt,St,xt;T[53]!==L.firstSeen?(qe=B(L.firstSeen),T[53]=L.firstSeen,T[54]=qe):qe=T[54],T[55]!==L.firstSeen||T[56]!==L.lastSeen?(Je=L.lastSeen>L.firstSeen?` \u2013 ${B(L.lastSeen)}`:"",T[55]=L.firstSeen,T[56]=L.lastSeen,T[57]=Je):Je=T[57],T[58]!==Ze||T[59]!==Xe||T[60]!==qe||T[61]!==Je?(Qe=(0,P.jsxs)(s.default,{style:Ze,children:[Xe,qe,Je]}),T[58]=Ze,T[59]=Xe,T[60]=qe,T[61]=Je,T[62]=Qe):Qe=T[62],T[63]!==He||T[64]!==Qe?(Ye=(0,P.jsxs)(n.default,{style:E.headerText,children:[He,Qe]}),T[63]=He,T[64]=Qe,T[65]=Ye):Ye=T[65],T[66]===Symbol.for("react.memo_cache_sentinel")?(et=()=>ae(!0),T[66]=et):et=T[66],T[67]!==K?(tt=K("v2.tracks.metadata"),T[67]=K,T[68]=tt):tt=T[68],T[69]!==U.surface?(rt=[E.iconBtn,{backgroundColor:U.surface}],T[69]=U.surface,T[70]=rt):rt=T[70],T[71]!==U.foreground?(ot=(0,P.jsx)(h.Info,{size:18,color:U.foreground}),T[71]=U.foreground,T[72]=ot):ot=T[72],T[73]!==tt||T[74]!==rt||T[75]!==ot?(nt=(0,P.jsx)(l.default,{onPress:et,hitSlop:10,accessibilityRole:"button",accessibilityLabel:tt,style:rt,children:ot}),T[73]=tt,T[74]=rt,T[75]=ot,T[76]=nt):nt=T[76],T[77]!==U.foreground||T[78]!==U.surface||T[79]!==V?(at=V?(0,P.jsx)(l.default,{onPress:V,hitSlop:10,style:[E.iconBtn,{backgroundColor:U.surface}],children:(0,P.jsx)(h.X,{size:20,color:U.foreground})}):null,T[77]=U.foreground,T[78]=U.surface,T[79]=V,T[80]=at):at=T[80],T[81]!==Ye||T[82]!==nt||T[83]!==at?(st=(0,P.jsxs)(n.default,{style:E.header,children:[Ye,nt,at]}),T[81]=Ye,T[82]=nt,T[83]=at,T[84]=st):st=T[84],T[85]!==U.foregroundSubtle?(lt=[E.sectionLabel,{color:U.foregroundSubtle}],T[85]=U.foregroundSubtle,T[86]=lt):lt=T[86],T[87]!==K?(it=K("v2.tracks.bestShot","Best shot"),T[87]=K,T[88]=it):it=T[88],T[89]!==lt||T[90]!==it?(dt=(0,P.jsx)(s.default,{style:lt,children:it}),T[89]=lt,T[90]=it,T[91]=dt):dt=T[91],T[92]===Symbol.for("react.memo_cache_sentinel")?(ct=[E.hero,{backgroundColor:"#000"}],ut=e=>Le(e.nativeEvent.layout.width),T[92]=ct,T[93]=ut):(ct=T[92],ut=T[93]),T[94]!==ee||T[95]!==Ee||T[96]!==ge||T[97]!==L.bestEventId?(ft=ee>0&&Ee>0?(0,P.jsx)(j.ZoomableImage,{width:ee,height:Ee,resetKey:`hero:${L.bestEventId}`,contentAspect:R,children:(0,P.jsx)(I.EventThumb,{event:ge,width:ee,height:Ee})}):null,T[94]=ee,T[95]=Ee,T[96]=ge,T[97]=L.bestEventId,T[98]=ft):ft=T[98],T[99]!==ft?(mt=(0,P.jsx)(n.default,{style:ct,onLayout:ut,children:ft}),T[99]=ft,T[100]=mt):mt=T[100],T[101]!==Pe||T[102]!==Te||T[103]!==U.border||T[104]!==U.foreground||T[105]!==U.foregroundMuted||T[106]!==U.foregroundSubtle||T[107]!==U.primary||T[108]!==U.primaryForeground||T[109]!==ee||T[110]!==ke||T[111]!==Ee||T[112]!==ue||T[113]!==ie||T[114]!==We||T[115]!==ce.hasServerBoxed||T[116]!==Q||T[117]!==K?(gt=ue.length>0?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(n.default,{style:E.frameHeader,children:[(0,P.jsx)(s.default,{style:[E.sectionLabel,{color:U.foregroundSubtle}],children:K("v2.tracks.media","Media")}),Pe?(0,P.jsxs)(l.default,{onPress:()=>Y(M),accessibilityRole:"checkbox",accessibilityState:{checked:Q},hitSlop:8,style:E.checkboxRow,children:[(0,P.jsx)(n.default,{style:[E.checkbox,{borderColor:Q?U.primary:U.border,backgroundColor:Q?U.primary:"transparent"}],children:Q?(0,P.jsx)(h.Check,{size:12,color:U.primaryForeground}):null}),(0,P.jsx)(s.default,{style:[E.checkboxLabel,{color:U.foreground}],children:K("v2.tracks.showBoundingBox","Show bounding box")})]}):null]}),(0,P.jsx)(n.default,{style:[E.frame,{height:Ee,backgroundColor:"#000"}],children:null!==We&&Ee>0?(0,P.jsxs)(j.ZoomableImage,{width:ee,height:Ee,resetKey:`media:${ke??"none"}`,contentAspect:ie,children:[(0,P.jsx)(f.Image,{source:{uri:We},style:u.default.absoluteFill,contentFit:"contain",cachePolicy:"memory-disk",onLoad:e=>{const{width:t,height:o}=e.source;t>0&&o>0&&de(t/o)}}),Q&&Pe&&!ce.hasServerBoxed?(0,P.jsx)(p.BoundingBoxOverlay,{detections:Te,width:ee,height:Ee}):null]}):(0,P.jsx)(n.default,{style:[u.default.absoluteFill,E.center],children:(0,P.jsx)(h.ImageOff,{size:40,color:U.foregroundSubtle})})}),ue.length>1?(0,P.jsxs)(s.default,{style:[E.counter,{color:U.foregroundMuted}],children:[Math.max(0,ue.findIndex(e=>e.key===ke))+1,"/",ue.length]}):null,(0,P.jsx)(c.default,{horizontal:!0,showsHorizontalScrollIndicator:!1,contentContainerStyle:E.strip,children:ue.map(e=>(0,P.jsx)(G,{file:e,selected:e.key===ke,onPress:()=>le(e.key)},e.key))})]}):null,T[101]=Pe,T[102]=Te,T[103]=U.border,T[104]=U.foreground,T[105]=U.foregroundMuted,T[106]=U.foregroundSubtle,T[107]=U.primary,T[108]=U.primaryForeground,T[109]=ee,T[110]=ke,T[111]=Ee,T[112]=ue,T[113]=ie,T[114]=We,T[115]=ce.hasServerBoxed,T[116]=Q,T[117]=K,T[118]=gt):gt=T[118],T[119]!==U.backgroundElevated||T[120]!==U.foreground||T[121]!==U.foregroundMuted||T[122]!==U.foregroundSubtle||T[123]!==U.primary||T[124]!==U.primaryForeground||T[125]!==U.surface||T[126]!==be||T[127]!==Se||T[128]!==K?(ht=Se&&null!==be?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(s.default,{style:[E.sectionLabel,{color:U.foregroundSubtle}],children:K("v2.tracks.person")}),(0,P.jsxs)(n.default,{style:[E.personCard,{backgroundColor:U.surface}],children:[be.base64?(0,P.jsx)(f.Image,{source:{uri:`data:image/jpeg;base64,${be.base64}`},style:[E.personFace,{backgroundColor:U.backgroundElevated}],contentFit:"cover"}):(0,P.jsx)(n.default,{style:[E.personFace,E.personFaceEmpty,{backgroundColor:U.backgroundElevated}],children:(0,P.jsx)(h.UserRound,{size:20,color:U.foregroundMuted})}),(0,P.jsx)(s.default,{numberOfLines:1,style:[E.personName,{color:be.identityName?U.foreground:U.foregroundMuted}],children:be.identityName??K("v2.tracks.notAssigned")}),(0,P.jsxs)(l.default,{onPress:()=>oe(!0),accessibilityRole:"button",accessibilityLabel:K("v2.tracks.assignFaceTitle"),style:[E.assignBtn,{backgroundColor:U.primary}],children:[(0,P.jsx)(h.UserRoundPlus,{size:14,color:U.primaryForeground}),(0,P.jsx)(s.default,{style:[E.assignBtnText,{color:U.primaryForeground}],children:be.assigned?K("v2.tracks.changePerson"):K("v2.tracks.assignPerson")})]})]})]}):null,T[119]=U.backgroundElevated,T[120]=U.foreground,T[121]=U.foregroundMuted,T[122]=U.foregroundSubtle,T[123]=U.primary,T[124]=U.primaryForeground,T[125]=U.surface,T[126]=be,T[127]=Se,T[128]=K,T[129]=ht):ht=T[129],T[130]!==U||T[131]!==K||T[132]!==L.zonesVisited?(bt=L.zonesVisited.length>0?(0,P.jsx)(D,{label:K("v2.tracks.zones","Zones"),value:L.zonesVisited.join(", "),colors:U}):null,T[130]=U,T[131]=K,T[132]=L.zonesVisited,T[133]=bt):bt=T[133],T[134]!==U||T[135]!==K||T[136]!==L.audioLabels?(yt=L.audioLabels.length>0?(0,P.jsx)(D,{label:K("v2.tracks.audio","Audio"),value:L.audioLabels.join(", "),colors:U}):null,T[134]=U,T[135]=K,T[136]=L.audioLabels,T[137]=yt):yt=T[137],T[138]!==bt||T[139]!==yt?(St=(0,P.jsxs)(n.default,{style:E.meta,children:[bt,yt]}),T[138]=bt,T[139]=yt,T[140]=St):St=T[140],T[141]!==dt||T[142]!==mt||T[143]!==gt||T[144]!==ht||T[145]!==St?(xt=(0,P.jsxs)(c.default,{contentContainerStyle:E.scroll,showsVerticalScrollIndicator:!1,children:[dt,mt,gt,ht,St]}),T[141]=dt,T[142]=mt,T[143]=gt,T[144]=ht,T[145]=St,T[146]=xt):xt=T[146];const pt=re?be:null;let jt,It;T[147]===Symbol.for("react.memo_cache_sentinel")?(jt=()=>oe(!1),T[147]=jt):jt=T[147],T[148]!==pt?(It=(0,P.jsx)(k.FaceAssignSheet,{face:pt,onClose:jt}),T[148]=pt,T[149]=It):It=T[149];const kt=ne?L:null,vt=ze?.confidence;let Ct,Ft,wt,At;return T[150]===Symbol.for("react.memo_cache_sentinel")?(Ct=()=>ae(!1),T[150]=Ct):Ct=T[150],T[151]!==ce.mediaKeys||T[152]!==kt||T[153]!==vt?(Ft=(0,P.jsx)(v.TrackMetadataSheet,{track:kt,confidence:vt,mediaKeys:ce.mediaKeys,onClose:Ct}),T[151]=ce.mediaKeys,T[152]=kt,T[153]=vt,T[154]=Ft):Ft=T[154],T[155]!==U.primary||T[156]!==U.primaryForeground||T[157]!==Me||T[158]!==_||T[159]!==K||T[160]!==L.firstSeen?(wt=_?(0,P.jsxs)(l.default,{onPress:()=>_(L.firstSeen),style:[E.seekBtn,{backgroundColor:U.primary,marginBottom:Me}],children:[(0,P.jsx)(h.Crosshair,{size:18,color:U.primaryForeground}),(0,P.jsx)(s.default,{style:[E.seekText,{color:U.primaryForeground}],children:K("v2.theater.detailSeek","Go to this moment")})]}):null,T[155]=U.primary,T[156]=U.primaryForeground,T[157]=Me,T[158]=_,T[159]=K,T[160]=L.firstSeen,T[161]=wt):wt=T[161],T[162]!==st||T[163]!==xt||T[164]!==It||T[165]!==Ft||T[166]!==wt?(At=(0,P.jsxs)(n.default,{style:E.root,children:[st,xt,It,Ft,wt]}),T[162]=st,T[163]=xt,T[164]=It,T[165]=Ft,T[166]=wt,T[167]=At):At=T[167],At}),D=(0,o.memo)(function(e){const o=(0,t.c)(13),{label:l,value:c,colors:u}=e;let f,g,h,b,y;return o[0]!==u.foregroundMuted?(f=[E.metaLabel,{color:u.foregroundMuted}],o[0]=u.foregroundMuted,o[1]=f):f=o[1],o[2]!==l||o[3]!==f?(g=(0,P.jsx)(s.default,{style:f,children:l}),o[2]=l,o[3]=f,o[4]=g):g=o[4],o[5]!==u.foreground?(h=[E.metaValue,{color:u.foreground}],o[5]=u.foreground,o[6]=h):h=o[6],o[7]!==h||o[8]!==c?(b=(0,P.jsx)(s.default,{style:h,children:c}),o[7]=h,o[8]=c,o[9]=b):b=o[9],o[10]!==g||o[11]!==b?(y=(0,P.jsxs)(n.default,{style:E.metaRow,children:[g,b]}),o[10]=g,o[11]=b,o[12]=y):y=o[12],y}),E=u.default.create({root:{flex:1,paddingHorizontal:S.SPACING.md},header:{flexDirection:'row',alignItems:'center',justifyContent:'space-between',gap:S.SPACING.sm,paddingVertical:S.SPACING.sm},headerText:{flex:1},titleRow:{flexDirection:'row',alignItems:'center',gap:S.SPACING.sm},classDot:{width:8,height:8,borderRadius:4},title:{fontSize:16,fontWeight:'700',flexShrink:1},importance:{flexDirection:'row',alignItems:'center',gap:2,paddingHorizontal:5,paddingVertical:1,borderRadius:8},importanceText:{fontSize:10,fontWeight:'700',fontVariant:['tabular-nums']},subtitle:{fontSize:12,marginTop:2},iconBtn:{width:36,height:36,borderRadius:S.RADIUS.md,alignItems:'center',justifyContent:'center'},scroll:{paddingBottom:S.SPACING.md},sectionLabel:{fontSize:11,fontWeight:'700',textTransform:'uppercase',letterSpacing:.4,marginTop:S.SPACING.sm,marginBottom:S.SPACING.xs},hero:{width:'100%',aspectRatio:R,borderRadius:S.RADIUS.md,overflow:'hidden'},frameHeader:{flexDirection:'row',alignItems:'center',justifyContent:'space-between'},checkboxRow:{flexDirection:'row',alignItems:'center',gap:S.SPACING.sm,paddingVertical:S.SPACING.xs},checkbox:{width:18,height:18,borderRadius:4,borderWidth:2,alignItems:'center',justifyContent:'center'},checkboxLabel:{fontSize:13,fontWeight:'600'},frame:{width:'100%',borderRadius:S.RADIUS.md,overflow:'hidden'},center:{alignItems:'center',justifyContent:'center'},counter:{fontSize:11,fontVariant:['tabular-nums'],textAlign:'center',marginTop:S.SPACING.xs},strip:{gap:S.SPACING.sm,paddingVertical:S.SPACING.sm,paddingRight:S.SPACING.md},tileWrap:{width:64,alignItems:'center',gap:2},tile:{width:64,height:64,borderRadius:S.RADIUS.sm,overflow:'hidden'},tileLabel:{fontSize:10,maxWidth:72,textAlign:'center'},personCard:{flexDirection:'row',alignItems:'center',gap:S.SPACING.md,padding:S.SPACING.sm,borderRadius:S.RADIUS.md},personFace:{width:44,height:44,borderRadius:S.RADIUS.md},personFaceEmpty:{alignItems:'center',justifyContent:'center'},personName:{flex:1,fontSize:14,fontWeight:'600'},assignBtn:{flexDirection:'row',alignItems:'center',gap:4,paddingHorizontal:S.SPACING.md,paddingVertical:S.SPACING.sm,borderRadius:S.RADIUS.md},assignBtnText:{fontSize:12,fontWeight:'700'},meta:{marginTop:S.SPACING.md,gap:S.SPACING.xs},metaRow:{flexDirection:'row',gap:S.SPACING.sm},metaLabel:{fontSize:12,width:92},metaValue:{fontSize:12,flex:1,fontWeight:'500'},seekBtn:{flexDirection:'row',alignItems:'center',justifyContent:'center',gap:S.SPACING.xs,paddingVertical:S.SPACING.sm+2,borderRadius:S.RADIUS.md},seekText:{fontSize:15,fontWeight:'700'}});function M(e){return!e}},3238,[15,17,20,112,252,147,33,3053,466,813,786,2587,2589,3231,3239,3241,3373,3374,3376,3380,3382,3375,3167,3381,10]);
15644
- __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,"BoundingBoxOverlay",{enumerable:!0,get:function(){return c}});var t=_r(_d[0]),n=_r(_d[1]),r=e(_r(_d[2])),o=e(_r(_d[3])),l=e(_r(_d[4])),d=_r(_d[5]),f=_r(_d[6]),u=_r(_d[7]),s=_r(_d[8]);const c=(0,n.memo)(function(e){const n=(0,t.c)(13),{detections:f,width:c,height:p}=e;let y,x,_,S,W,j;if(n[0]!==f||n[1]!==p||n[2]!==c){W=Symbol.for("react.early_return_sentinel");e:{const e=f.find(b);if(!e?.frameWidth||!e?.frameHeight||c<=0||p<=0){W=null;break e}const t=(0,u.containRect)(e.frameWidth,e.frameHeight,c,p);y=r.default,x="none",_=l.default.absoluteFill,S=f.map(e=>{if(!e.bbox||!e.frameWidth||!e.frameHeight)return null;const n=(0,u.bboxToScreen)(e.bbox,e.frameWidth,e.frameHeight,t);if(n.width<=0||n.height<=0)return null;const l=(0,d.colorForEventType)(e.className),f="number"==typeof e.confidence?` ${Math.round(100*e.confidence)}%`:"",c=`${e.label??e.className}${f}`;return(0,s.jsx)(r.default,{style:[h.box,{left:n.left,top:n.top,width:n.width,height:n.height,borderColor:l}],children:(0,s.jsx)(r.default,{style:[h.tag,{backgroundColor:l}],children:(0,s.jsx)(o.default,{style:h.tagText,numberOfLines:1,adjustsFontSizeToFit:!0,minimumFontScale:.7,children:c})})},e.id)})}n[0]=f,n[1]=p,n[2]=c,n[3]=y,n[4]=x,n[5]=_,n[6]=S,n[7]=W}else y=n[3],x=n[4],_=n[5],S=n[6],W=n[7];return W!==Symbol.for("react.early_return_sentinel")?W:(n[8]!==y||n[9]!==x||n[10]!==_||n[11]!==S?(j=(0,s.jsx)(y,{pointerEvents:x,style:_,children:S}),n[8]=y,n[9]=x,n[10]=_,n[11]=S,n[12]=j):j=n[12],j)}),h=l.default.create({box:{position:'absolute',borderWidth:2,borderRadius:f.RADIUS.sm},tag:{position:'absolute',top:-16,left:-2,maxWidth:160,paddingHorizontal:5,paddingVertical:1,borderRadius:f.RADIUS.sm},tagText:{color:'#fff',fontSize:10,fontWeight:'700'}});function b(e){return e.bbox&&"number"==typeof e.frameWidth&&"number"==typeof e.frameHeight}},3239,[15,17,20,112,33,3231,2589,3240,10]);
15645
- __d(function(g,r,i,_a,m,e,_d){"use strict";function t(t){return t.frameId??String(t.timestamp)}function n(n){const o=new Map;for(const s of n){const n=t(s),a=o.get(n);a?a.push(s):o.set(n,[s])}return[...o.keys()].sort((t,n)=>o.get(n)[0].timestamp-o.get(t)[0].timestamp).map(t=>{const n=o.get(t)??[],s=n.find(t=>Boolean(t.mediaUrl)),a=s??n[0];return{key:t,frameId:n[0]?.frameId,timestamp:n[0]?.timestamp??0,imageDetectionId:a?.id,imageMediaUrl:s?.mediaUrl,detections:n}})}function o(t){return'object'==typeof t&&null!==t&&!Array.isArray(t)}function s(t){if(!o(t))return;const{x:n,y:s,w:a,h:f}=t;return'number'==typeof n&&'number'==typeof s&&'number'==typeof a&&'number'==typeof f?{x:n,y:s,w:a,h:f}:void 0}Object.defineProperty(e,'__esModule',{value:!0}),e.frameKey=t,e.groupEventsByFrame=n,e.groupByTrack=function(n){const o=new Map;for(const t of n){if(void 0===t.trackId)continue;const n=o.get(t.trackId);n?n.push(t):o.set(t.trackId,[t])}const s=[];for(const[n,a]of o){let o=a[0];for(const t of a){const n=t.confidence??0,s=o.confidence??0;(n>s||n===s&&Boolean(t.mediaUrl)&&!o.mediaUrl)&&(o=t)}const f=a.find(t=>void 0!==t.label)?.label,c=new Set(a.map(t));let d=Number.POSITIVE_INFINITY,u=Number.NEGATIVE_INFINITY;for(const t of a)t.timestamp<d&&(d=t.timestamp),t.timestamp>u&&(u=t.timestamp);s.push(Object.assign({trackId:n,className:o.className},void 0!==f?{label:f}:{},{representative:o,frameCount:c.size,startMs:d,endMs:u}))}return s.sort((t,n)=>n.endMs-t.endMs)},e.scenesForTrack=function(o,s){const a=new Set(o.filter(t=>t.trackId===s).map(t));return n(o).filter(t=>a.has(t.key))},e.toDetailDetection=function(t){if(!o(t))return null;if('string'!=typeof t.id||0===t.id.length)return null;if('number'!=typeof t.timestamp)return null;if('string'!=typeof t.className||0===t.className.length)return null;const n=Array.isArray(t.zones)?t.zones.filter(t=>'string'==typeof t):[];return{id:t.id,timestamp:t.timestamp,className:t.className,label:'string'==typeof t.label?t.label:void 0,confidence:'number'==typeof t.confidence?t.confidence:void 0,zones:n,state:'string'==typeof t.state?t.state:void 0,trackId:'string'==typeof t.trackId?t.trackId:void 0,frameId:'string'==typeof t.frameId?t.frameId:void 0,mediaUrl:'string'==typeof t.mediaUrl?t.mediaUrl:void 0,bbox:s(t.bbox),frameWidth:'number'==typeof t.frameWidth?t.frameWidth:void 0,frameHeight:'number'==typeof t.frameHeight?t.frameHeight:void 0}},e.containRect=function(t,n,o,s){if(t<=0||n<=0||o<=0||s<=0)return{left:0,top:0,width:Math.max(0,o),height:Math.max(0,s)};const a=Math.min(o/t,s/n),f=t*a,c=n*a;return{left:(o-f)/2,top:(s-c)/2,width:f,height:c}},e.bboxToScreen=function(t,n,o,s){if(n<=0||o<=0)return{left:s.left,top:s.top,width:0,height:0};const a=s.width/n,f=s.height/o;return{left:s.left+t.x*a,top:s.top+t.y*f,width:t.w*a,height:t.h*f}},e.summarizeCluster=function(t){const n=[];let o=0,s=Number.POSITIVE_INFINITY,a=Number.NEGATIVE_INFINITY;for(const f of t)for(const t of f.detections)o+=1,n.includes(t.className)||n.push(t.className),t.timestamp<s&&(s=t.timestamp),t.timestamp>a&&(a=t.timestamp);return 0===o?{classes:[],detectionCount:0,startMs:0,endMs:0}:{classes:n,detectionCount:o,startMs:s,endMs:a}}},3240,[]);
15646
- __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,"ZoomableImage",{enumerable:!0,get:function(){return f}});var t=r(d[0]);r(d[1]);var l=e(r(d[2])),s=e(r(d[3])),u=r(d[4]),n=r(d[5]),v=e(n),c=r(d[6]),o=r(d[7]);const _={code:"function ZoomableImageTsx1(){const{savedScale,scale,savedTx,tx,savedTy,ty}=this.__closure;savedScale.value=scale.value;savedTx.value=tx.value;savedTy.value=ty.value;}"},h={code:"function ZoomableImageTsx2(e_0){const{w,h,pinchStart,clampZoom,scale,MIN_ZOOM,tx,ty,aspect,savedTx,savedTy}=this.__closure;const vw=w.value;const vh=h.value;if(vw<=0||vh<=0)return;const s0=pinchStart.value;const s1=clampZoom(s0*e_0.scale);scale.value=s1;if(s1<=MIN_ZOOM){tx.value=0;ty.value=0;return;}const dx=e_0.focalX-vw/2;const dy=e_0.focalY-vh/2;const k=s1/s0;const cw=aspect.value>0?Math.min(vw,vh*aspect.value):vw;const ch=aspect.value>0?Math.min(vh,vw/aspect.value):vh;const limX=Math.max(0,(s1*cw-vw)/2);const limY=Math.max(0,(s1*ch-vh)/2);tx.value=Math.max(-limX,Math.min(limX,dx-k*(dx-savedTx.value)));ty.value=Math.max(-limY,Math.min(limY,dy-k*(dy-savedTy.value)));}"},x={code:"function ZoomableImageTsx3(){const{pinchStart,savedScale}=this.__closure;pinchStart.value=savedScale.value;}"},M={code:"function ZoomableImageTsx4(){const{savedTx,tx,savedTy,ty}=this.__closure;savedTx.value=tx.value;savedTy.value=ty.value;}"},y={code:"function ZoomableImageTsx5(e_1){const{scale,MIN_ZOOM,w,h,aspect,tx,savedTx,ty,savedTy}=this.__closure;if(scale.value<=MIN_ZOOM)return;const s=scale.value;const vw_0=w.value;const vh_0=h.value;const cw_0=aspect.value>0?Math.min(vw_0,vh_0*aspect.value):vw_0;const ch_0=aspect.value>0?Math.min(vh_0,vw_0/aspect.value):vh_0;const limX_0=Math.max(0,(s*cw_0-vw_0)/2);const limY_0=Math.max(0,(s*ch_0-vh_0)/2);tx.value=Math.max(-limX_0,Math.min(limX_0,savedTx.value+e_1.translationX));ty.value=Math.max(-limY_0,Math.min(limY_0,savedTy.value+e_1.translationY));}"},T={code:"function ZoomableImageTsx6(){const{scale,MIN_ZOOM,withTiming,tx,ty,savedScale,savedTx,savedTy}=this.__closure;if(scale.value>MIN_ZOOM){scale.value=withTiming(1);tx.value=withTiming(0);ty.value=withTiming(0);savedScale.value=1;savedTx.value=0;savedTy.value=0;}else{scale.value=withTiming(2);savedScale.value=2;}}"},w={code:"function ZoomableImageTsx7(){const{tx,ty,scale}=this.__closure;return{transform:[{translateX:tx.value},{translateY:ty.value},{scale:scale.value}]};}"},f=(0,t.memo)(function({width:e,height:l,resetKey:f,contentAspect:O,children:S}){const Z=(0,n.useSharedValue)(1),k=(0,n.useSharedValue)(1),I=(0,n.useSharedValue)(0),N=(0,n.useSharedValue)(0),b=(0,n.useSharedValue)(0),Y=(0,n.useSharedValue)(0),X=(0,n.useSharedValue)(1),D=(0,n.useSharedValue)(0),E=(0,n.useSharedValue)(0),V=(0,n.useSharedValue)(0),H=(0,t.useRef)(null);(0,t.useEffect)(()=>{V.value='number'==typeof O&&O>0?O:0},[O,V]),(0,t.useEffect)(()=>{Z.value=1,k.value=1,I.value=0,N.value=0,b.value=0,Y.value=0},[f,Z,k,I,N,b,Y]);const P=(0,t.useCallback)(e=>{D.value=e.nativeEvent.layout.width,E.value=e.nativeEvent.layout.height},[D,E]),j=(0,t.useMemo)(()=>u.Gesture.Pinch().onStart((function({_worklet_13594186911682_init_data:e,pinchStart:t,savedScale:l}){const s=function(){t.value=l.value};return s.__closure={pinchStart:t,savedScale:l},s.__workletHash=0xc5d24ae8fc2,s.__initData=e,s})({_worklet_13594186911682_init_data:x,pinchStart:X,savedScale:k})).onUpdate((function({_worklet_4736593387419_init_data:e,w:t,h:l,pinchStart:s,clampZoom:u,scale:n,MIN_ZOOM:v,tx:c,ty:o,aspect:_,savedTx:h,savedTy:x}){const M=function(e){const M=t.value,y=l.value;if(M<=0||y<=0)return;const T=s.value,w=u(T*e.scale);if(n.value=w,w<=v)return c.value=0,void(o.value=0);const f=e.focalX-M/2,p=e.focalY-y/2,O=w/T,S=_.value>0?Math.min(M,y*_.value):M,Z=_.value>0?Math.min(y,M/_.value):y,k=Math.max(0,(w*S-M)/2),I=Math.max(0,(w*Z-y)/2);c.value=Math.max(-k,Math.min(k,f-O*(f-h.value))),o.value=Math.max(-I,Math.min(I,p-O*(p-x.value)))};return M.__closure={w:t,h:l,pinchStart:s,clampZoom:u,scale:n,MIN_ZOOM:v,tx:c,ty:o,aspect:_,savedTx:h,savedTy:x},M.__workletHash=4736593387419,M.__initData=e,M})({_worklet_4736593387419_init_data:h,w:D,h:E,pinchStart:X,clampZoom:c.clampZoom,scale:Z,MIN_ZOOM:c.MIN_ZOOM,tx:I,ty:N,aspect:V,savedTx:b,savedTy:Y})).onEnd((function({_worklet_5046326524640_init_data:e,savedScale:t,scale:l,savedTx:s,tx:u,savedTy:n,ty:v}){const c=function(){t.value=l.value,s.value=u.value,n.value=v.value};return c.__closure={savedScale:t,scale:l,savedTx:s,tx:u,savedTy:n,ty:v},c.__workletHash=5046326524640,c.__initData=e,c})({_worklet_5046326524640_init_data:_,savedScale:k,scale:Z,savedTx:b,tx:I,savedTy:Y,ty:N})),[X,k,D,E,V,Z,I,N,b,Y]),G=(0,t.useMemo)(()=>u.Gesture.Pan().maxPointers(1).minDistance(2).onUpdate((function({_worklet_6761678895641_init_data:e,scale:t,MIN_ZOOM:l,w:s,h:u,aspect:n,tx:v,savedTx:c,ty:o,savedTy:_}){const h=function(e){if(t.value<=l)return;const h=t.value,x=s.value,M=u.value,y=n.value>0?Math.min(x,M*n.value):x,T=n.value>0?Math.min(M,x/n.value):M,w=Math.max(0,(h*y-x)/2),f=Math.max(0,(h*T-M)/2);v.value=Math.max(-w,Math.min(w,c.value+e.translationX)),o.value=Math.max(-f,Math.min(f,_.value+e.translationY))};return h.__closure={scale:t,MIN_ZOOM:l,w:s,h:u,aspect:n,tx:v,savedTx:c,ty:o,savedTy:_},h.__workletHash=6761678895641,h.__initData=e,h})({_worklet_6761678895641_init_data:y,scale:Z,MIN_ZOOM:c.MIN_ZOOM,w:D,h:E,aspect:V,tx:I,savedTx:b,ty:N,savedTy:Y})).onEnd((function({_worklet_10215814461155_init_data:e,savedTx:t,tx:l,savedTy:s,ty:u}){const n=function(){t.value=l.value,s.value=u.value};return n.__closure={savedTx:t,tx:l,savedTy:s,ty:u},n.__workletHash=0x94a8dfdf6e3,n.__initData=e,n})({_worklet_10215814461155_init_data:M,savedTx:b,tx:I,savedTy:Y,ty:N})),[Z,D,E,V,I,N,b,Y]),C=(0,t.useMemo)(()=>u.Gesture.Tap().numberOfTaps(2).maxDuration(300).onEnd((function({_worklet_358022219460_init_data:e,scale:t,MIN_ZOOM:l,withTiming:s,tx:u,ty:n,savedScale:v,savedTx:c,savedTy:o}){const _=function(){t.value>l?(t.value=s(1),u.value=s(0),n.value=s(0),v.value=1,c.value=0,o.value=0):(t.value=s(2),v.value=2)};return _.__closure={scale:t,MIN_ZOOM:l,withTiming:s,tx:u,ty:n,savedScale:v,savedTx:c,savedTy:o},_.__workletHash=358022219460,_.__initData=e,_})({_worklet_358022219460_init_data:T,scale:Z,MIN_ZOOM:c.MIN_ZOOM,withTiming:n.withTiming,tx:I,ty:N,savedScale:k,savedTx:b,savedTy:Y})),[Z,I,N,k,b,Y]),L=(0,t.useMemo)(()=>u.Gesture.Simultaneous(j,G,C),[j,G,C]);(0,t.useEffect)(()=>{const e=H.current;if(null===e||'function'!=typeof e.addEventListener)return;const t=e=>{e.preventDefault();const t=(0,c.zoomBy)(Z.value,e.deltaY<0?1.12:.8928571428571428);Z.value=t,k.value=t;const l=(0,c.containBox)(D.value,E.value,V.value);I.value=(0,c.clampPanContent)(I.value,D.value,l.width,t),N.value=(0,c.clampPanContent)(N.value,E.value,l.height,t),b.value=I.value,Y.value=N.value};return e.addEventListener('wheel',t,{passive:!1}),()=>e.removeEventListener('wheel',t)},[Z,k,I,N,b,Y,D,E,V]);const A=(0,n.useAnimatedStyle)((function({_worklet_12060236268779_init_data:e,tx:t,ty:l,scale:s}){const u=()=>({transform:[{translateX:t.value},{translateY:l.value},{scale:s.value}]});return u.__closure={tx:t,ty:l,scale:s},u.__workletHash=0xaf7fe1944eb,u.__initData=e,u})({_worklet_12060236268779_init_data:w,tx:I,ty:N,scale:Z}));return(0,o.jsx)(s.default,{ref:H,onLayout:P,style:[p.container,{width:e,height:l}],children:(0,o.jsx)(u.GestureDetector,{gesture:L,children:(0,o.jsx)(v.default.View,{style:[{width:e,height:l},A],children:S})})})}),p=l.default.create({container:{overflow:'hidden',backgroundColor:'#000'}})},3241,[17,136,33,20,3242,2714,3372,10]);
15647
- __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,"Directions",{enumerable:!0,get:function(){return n.Directions}}),Object.defineProperty(_e,"State",{enumerable:!0,get:function(){return u.State}}),Object.defineProperty(_e,"PointerType",{enumerable:!0,get:function(){return o.PointerType}}),Object.defineProperty(_e,"gestureHandlerRootHOC",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(_e,"GestureHandlerRootView",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(_e,"MouseButton",{enumerable:!0,get:function(){return l.MouseButton}}),Object.defineProperty(_e,"TapGestureHandler",{enumerable:!0,get:function(){return f.TapGestureHandler}}),Object.defineProperty(_e,"ForceTouchGestureHandler",{enumerable:!0,get:function(){return p.ForceTouchGestureHandler}}),Object.defineProperty(_e,"LongPressGestureHandler",{enumerable:!0,get:function(){return P.LongPressGestureHandler}}),Object.defineProperty(_e,"PanGestureHandler",{enumerable:!0,get:function(){return y.PanGestureHandler}}),Object.defineProperty(_e,"PinchGestureHandler",{enumerable:!0,get:function(){return s.PinchGestureHandler}}),Object.defineProperty(_e,"RotationGestureHandler",{enumerable:!0,get:function(){return O.RotationGestureHandler}}),Object.defineProperty(_e,"FlingGestureHandler",{enumerable:!0,get:function(){return j.FlingGestureHandler}}),Object.defineProperty(_e,"createNativeWrapper",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(_e,"GestureDetector",{enumerable:!0,get:function(){return h.GestureDetector}}),Object.defineProperty(_e,"Gesture",{enumerable:!0,get:function(){return G.GestureObjects}}),Object.defineProperty(_e,"NativeViewGestureHandler",{enumerable:!0,get:function(){return T.NativeViewGestureHandler}}),Object.defineProperty(_e,"RawButton",{enumerable:!0,get:function(){return B.RawButton}}),Object.defineProperty(_e,"BaseButton",{enumerable:!0,get:function(){return B.BaseButton}}),Object.defineProperty(_e,"RectButton",{enumerable:!0,get:function(){return B.RectButton}}),Object.defineProperty(_e,"BorderlessButton",{enumerable:!0,get:function(){return B.BorderlessButton}}),Object.defineProperty(_e,"PureNativeButton",{enumerable:!0,get:function(){return B.PureNativeButton}}),Object.defineProperty(_e,"TouchableHighlight",{enumerable:!0,get:function(){return w.TouchableHighlight}}),Object.defineProperty(_e,"TouchableNativeFeedback",{enumerable:!0,get:function(){return w.TouchableNativeFeedback}}),Object.defineProperty(_e,"TouchableOpacity",{enumerable:!0,get:function(){return w.TouchableOpacity}}),Object.defineProperty(_e,"TouchableWithoutFeedback",{enumerable:!0,get:function(){return w.TouchableWithoutFeedback}}),Object.defineProperty(_e,"ScrollView",{enumerable:!0,get:function(){return v.ScrollView}}),Object.defineProperty(_e,"Switch",{enumerable:!0,get:function(){return v.Switch}}),Object.defineProperty(_e,"TextInput",{enumerable:!0,get:function(){return v.TextInput}}),Object.defineProperty(_e,"DrawerLayoutAndroid",{enumerable:!0,get:function(){return v.DrawerLayoutAndroid}}),Object.defineProperty(_e,"FlatList",{enumerable:!0,get:function(){return v.FlatList}}),Object.defineProperty(_e,"RefreshControl",{enumerable:!0,get:function(){return v.RefreshControl}}),Object.defineProperty(_e,"Text",{enumerable:!0,get:function(){return F.Text}}),Object.defineProperty(_e,"HoverEffect",{enumerable:!0,get:function(){return R.HoverEffect}}),Object.defineProperty(_e,"Swipeable",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(_e,"Pressable",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(_e,"DrawerLayout",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(_e,"enableExperimentalWebImplementation",{enumerable:!0,get:function(){return S.enableExperimentalWebImplementation}}),Object.defineProperty(_e,"enableLegacyWebImplementation",{enumerable:!0,get:function(){return S.enableLegacyWebImplementation}});var t=r(d[0]),n=r(d[1]),u=r(d[2]),o=r(d[3]),c=e(r(d[4])),b=e(r(d[5])),l=r(d[6]),f=r(d[7]),p=r(d[8]),P=r(d[9]),y=r(d[10]),s=r(d[11]),O=r(d[12]),j=r(d[13]),H=e(r(d[14])),h=r(d[15]),G=r(d[16]),T=r(d[17]),B=r(d[18]),w=r(d[19]),v=r(d[20]),F=r(d[21]),R=r(d[22]),L=e(r(d[23])),D=e(r(d[24])),N=e(r(d[25])),S=r(d[26]);(0,t.initialize)()},3242,[3243,3273,3245,3259,3303,3307,3265,3309,3317,3319,3320,3321,3322,3323,3324,3326,3342,3325,3353,3355,3361,3362,3332,3363,3364,3371,3252]);
15648
- __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.initialize=function(){(0,t.startListening)()},_e.maybeInitializeFabric=function(){(0,u.isFabric)()&&!s&&(l.default.install(),s=!0)};var e,t=r(d[0]),n=r(d[1]),l=(e=n)&&e.__esModule?e:{default:e},u=r(d[2]);let s=!1},3243,[3244,3251,3248]);
15649
- __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.onGestureHandlerEvent=C,_e.startListening=function(){f(),u=t.default.addListener('onGestureHandlerEvent',C),T=t.default.addListener('onGestureHandlerStateChange',C)},_e.stopListening=f;var e,n=r(d[0]),t=(e=n)&&e.__esModule?e:{default:e},l=r(d[1]),s=r(d[2]),o=r(d[3]),h=r(d[4]);let u=null,T=null;const E=new Map,c=[];function S(e){return null!=e.oldState}function v(e){return null!=e.eventType}function C(e){const n=(0,o.findHandler)(e.handlerTag);if(n)if(S(e))e.oldState===l.State.UNDETERMINED&&e.state===l.State.BEGAN?n.handlers.onBegin?.(e):e.oldState!==l.State.BEGAN&&e.oldState!==l.State.UNDETERMINED||e.state!==l.State.ACTIVE?e.oldState!==e.state&&e.state===l.State.END?(e.oldState===l.State.ACTIVE&&n.handlers.onEnd?.(e,!0),n.handlers.onFinalize?.(e,!0),c[n.handlers.handlerTag]=void 0):e.state!==l.State.FAILED&&e.state!==l.State.CANCELLED||e.oldState===e.state||(e.oldState===l.State.ACTIVE&&n.handlers.onEnd?.(e,!1),n.handlers.onFinalize?.(e,!1),E.delete(e.handlerTag),c[n.handlers.handlerTag]=void 0):(n.handlers.onStart?.(e),c[n.handlers.handlerTag]=e);else if(v(e)){E.has(e.handlerTag)||E.set(e.handlerTag,h.GestureStateManager.create(e.handlerTag));const t=E.get(e.handlerTag);switch(e.eventType){case s.TouchEventType.TOUCHES_DOWN:n.handlers?.onTouchesDown?.(e,t);break;case s.TouchEventType.TOUCHES_MOVE:n.handlers?.onTouchesMove?.(e,t);break;case s.TouchEventType.TOUCHES_UP:n.handlers?.onTouchesUp?.(e,t);break;case s.TouchEventType.TOUCHES_CANCELLED:n.handlers?.onTouchesCancelled?.(e,t)}}else n.handlers.onUpdate?.(e),n.handlers.onChange&&n.handlers.changeEventCalculator&&(n.handlers.onChange?.(n.handlers.changeEventCalculator?.(e,c[n.handlers.handlerTag])),c[n.handlers.handlerTag]=e);else{const n=(0,o.findOldGestureHandler)(e.handlerTag);if(n){const t={nativeEvent:e};return void(S(e)?n.onGestureStateChange(t):n.onGestureEvent(t))}}}function f(){u&&(u.remove(),u=null),T&&(T.remove(),T=null)}},3244,[274,3245,3246,3247,3249]);
15650
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"State",{enumerable:!0,get:function(){return t}});const t={UNDETERMINED:0,FAILED:1,BEGAN:2,CANCELLED:3,ACTIVE:4,END:5}},3245,[]);
15651
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"TouchEventType",{enumerable:!0,get:function(){return t}});const t={UNDETERMINED:0,TOUCHES_DOWN:1,TOUCHES_MOVE:2,TOUCHES_UP:3,TOUCHES_CANCELLED:4}},3246,[]);
15652
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"handlerIDToTag",{enumerable:!0,get:function(){return t}}),e.registerHandler=function(t,l,o){u.set(t,l),(0,n.isTestEnv)()&&o&&s.set(o,t)},e.registerOldGestureHandler=function(n,t){l.set(n,t)},e.unregisterOldGestureHandler=function(n){l.delete(n)},e.unregisterHandler=function(t,l){u.delete(t),(0,n.isTestEnv)()&&l&&s.delete(l)},e.findHandler=o,e.findOldGestureHandler=function(n){return l.get(n)},e.findHandlerByTestID=function(n){const t=s.get(n);if(void 0!==t)return o(t)??null;return null};var n=r(d[0]);const t={},u=new Map,l=new Map,s=new Map;function o(n){return u.get(n)}},3247,[3248]);
15653
- __d(function(g,r,_i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.toArray=function(e){if(!Array.isArray(e))return[e];return e},_e.withPrevAndCurrent=function(e,t){const n=[null],u=[...e],o=[];return u.forEach((e,u)=>{const i=n[u],c=t(i,e);n.push(c),o.push(c)}),o},_e.hasProperty=u,_e.isTestEnv=function(){return u(g,'process')&&!1},_e.tagMessage=function(e){return`[react-native-gesture-handler] ${e}`},_e.isFabric=function(){return!!g?.nativeFabricUIManager},_e.isReact19=function(){return n.default.version.startsWith('19.')},_e.isRemoteDebuggingEnabled=function(){const e=g;return!(e.nativeCallSyncHook&&!e.__REMOTEDEV__||e.RN$Bridgeless)},_e.deepEqual=function e(t,n){if(t===n)return!0;if('object'!=typeof t||'object'!=typeof n||null===t||null===n)return!1;const u=Object.keys(t),o=Object.keys(n);if(u.length!==o.length)return!1;for(const i of u)if(!o.includes(i)||!e(t[i],n[i]))return!1;return!0},Object.defineProperty(_e,"INT32_MAX",{enumerable:!0,get:function(){return o}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e};function u(e,t){return Object.prototype.hasOwnProperty.call(e,t)}const o=2147483647},3248,[17]);
15654
- __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"GestureStateManager",{enumerable:!0,get:function(){return l}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e};const l={create:e=>({handlerTag:e,begin:()=>{n.default.getHandler(e).begin()},activate:()=>{n.default.getHandler(e).activate(!0)},fail:()=>{n.default.getHandler(e).fail()},end:()=>{n.default.getHandler(e).end()}})}},3249,[3250]);
15655
- __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 t}});class t{static gestures={};static getHandler(t){if(t in this.gestures)return this.gestures[t];throw new Error(`No handler for tag ${t}`)}static createGestureHandler(t,s){if(t in this.gestures)throw new Error(`Handler with tag ${t} already exists. Please ensure that no Gesture instance is used across multiple GestureDetectors.`);this.gestures[t]=s,this.gestures[t].handlerTag=t}static dropGestureHandler(t){t in this.gestures&&(this.gestures[t].onDestroy(),delete this.gestures[t])}static get nodes(){return Object.assign({},this.gestures)}}},3250,[]);
15656
- __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,"default",{enumerable:!0,get:function(){return f}});var t=e(r(_d[0])),n=r(_d[1]),d=r(_d[2]),l=e(r(_d[3])),o=e(r(_d[4])),s=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var d=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,d.get?d:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[5])),u=r(_d[6]);let c=!1;var f={handleSetJSResponder(e,t){console.warn('handleSetJSResponder: ',e,t)},handleClearJSResponder(){console.warn('handleClearJSResponder: ')},createGestureHandler(e,t,c){if((0,n.isNewWebImplementationEnabled)()){if(!(e in d.Gestures))throw new Error(`react-native-gesture-handler: ${e} is not supported on web.`);const n=d.Gestures[e];o.default.createGestureHandler(t,new n(new u.GestureHandlerWebDelegate)),l.default.instance.configureInteractions(o.default.getHandler(t),c)}else{if(!(e in d.HammerGestures))throw new Error(`react-native-gesture-handler: ${e} is not supported on web.`);const n=d.HammerGestures[e];s.createGestureHandler(t,new n)}this.updateGestureHandler(t,c)},attachGestureHandler(e,d,l,u){if(!(d instanceof Element||d instanceof t.default.Component)){c=!0;const t=((0,n.isNewWebImplementationEnabled)()?o.default.getHandler(e):s.getHandler(e)).constructor.name;throw new Error(`${t} with tag ${e} received child that is not valid HTML element.`)}(0,n.isNewWebImplementationEnabled)()?o.default.getHandler(e).init(d,u):s.getHandler(e).setView(d,u)},updateGestureHandler(e,t){(0,n.isNewWebImplementationEnabled)()?(o.default.getHandler(e).updateGestureConfig(t),l.default.instance.configureInteractions(o.default.getHandler(e),t)):s.getHandler(e).updateGestureConfig(t)},getGestureHandlerNode:e=>(0,n.isNewWebImplementationEnabled)()?o.default.getHandler(e):s.getHandler(e),dropGestureHandler(e){c||((0,n.isNewWebImplementationEnabled)()?o.default.dropGestureHandler(e):s.dropGestureHandler(e))},flushOperations(){}}},3251,[17,3252,3253,3264,3250,3284,3297]);
15657
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.enableExperimentalWebImplementation=function(t=!0){console.warn((0,n.tagMessage)('New web implementation is enabled by default. This function will be removed in Gesture Handler 3.'))},e.enableLegacyWebImplementation=function(o=!0){if(console.warn((0,n.tagMessage)('Legacy web implementation is deprecated. This function will be removed in Gesture Handler 3.')),t===!o)return;if(l)return void console.error('Some parts of this application have already started using the new gesture handler implementation. No changes will be applied. You can try enabling legacy implementation earlier.');t=!o},e.isNewWebImplementationEnabled=function(){return l=!0,t},r(d[0]);var n=r(d[1]);let t=!0,l=!1},3252,[136,3248]);
15658
- __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,"Gestures",{enumerable:!0,get:function(){return y}}),Object.defineProperty(_e,"HammerGestures",{enumerable:!0,get:function(){return M}});var t=e(r(d[0])),u=e(r(d[1])),n=e(r(d[2])),l=e(r(d[3])),s=e(r(d[4])),f=e(r(d[5])),G=e(r(d[6])),H=e(r(d[7])),o=e(r(d[8])),c=e(r(d[9])),P=e(r(d[10])),_=e(r(d[11])),b=e(r(d[12])),p=e(r(d[13])),v=e(r(d[14])),j=e(r(d[15]));const y={NativeViewGestureHandler:G.default,PanGestureHandler:t.default,TapGestureHandler:u.default,LongPressGestureHandler:n.default,PinchGestureHandler:l.default,RotationGestureHandler:s.default,FlingGestureHandler:f.default,ManualGestureHandler:H.default,HoverGestureHandler:o.default},M={NativeViewGestureHandler:c.default,PanGestureHandler:P.default,TapGestureHandler:_.default,LongPressGestureHandler:b.default,PinchGestureHandler:p.default,RotationGestureHandler:v.default,FlingGestureHandler:j.default}},3253,[3254,3266,3267,3268,3270,3272,3276,3277,3278,3279,3288,3290,3291,3292,3294,3295]);
15659
- __d(function(g,r,i,a,m,_e,d){"use strict";const t=["enabled"];function e(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return E}});var s=e(r(d[0])),n=r(d[1]),o=r(d[2]),h=r(d[3]),f=e(r(d[4]));const c=o.DEFAULT_TOUCH_SLOP*o.DEFAULT_TOUCH_SLOP;class E extends f.default{customActivationProperties=['activeOffsetXStart','activeOffsetXEnd','failOffsetXStart','failOffsetXEnd','activeOffsetYStart','activeOffsetYEnd','failOffsetYStart','failOffsetYEnd','minVelocityX','minVelocityY','minVelocity'];velocityX=0;velocityY=0;minDistSq=c;activeOffsetXStart=-Number.MAX_SAFE_INTEGER;activeOffsetXEnd=Number.MIN_SAFE_INTEGER;failOffsetXStart=Number.MIN_SAFE_INTEGER;failOffsetXEnd=Number.MAX_SAFE_INTEGER;activeOffsetYStart=Number.MAX_SAFE_INTEGER;activeOffsetYEnd=Number.MIN_SAFE_INTEGER;failOffsetYStart=Number.MIN_SAFE_INTEGER;failOffsetYEnd=Number.MAX_SAFE_INTEGER;minVelocityX=Number.MAX_SAFE_INTEGER;minVelocityY=Number.MAX_SAFE_INTEGER;minVelocitySq=Number.MAX_SAFE_INTEGER;minPointers=1;maxPointers=10;startX=0;startY=0;offsetX=0;offsetY=0;lastX=0;lastY=0;activateAfterLongPress=0;activationTimeout=0;enableTrackpadTwoFingerGesture=!1;endWheelTimeout=0;wheelDevice=h.WheelDevice.UNDETERMINED;updateGestureConfig(e){let{enabled:n=!0}=e,o=(0,s.default)(e,t);this.resetConfig(),super.updateGestureConfig(Object.assign({enabled:n},o)),this.checkCustomActivationCriteria(this.customActivationProperties),void 0!==this.config.minDist?this.minDistSq=this.config.minDist*this.config.minDist:this.hasCustomActivationCriteria&&(this.minDistSq=Number.MAX_SAFE_INTEGER),void 0!==this.config.minPointers&&(this.minPointers=this.config.minPointers),void 0!==this.config.maxPointers&&(this.maxPointers=this.config.maxPointers),void 0!==this.config.minVelocity&&(this.minVelocityX=this.config.minVelocity,this.minVelocityY=this.config.minVelocity),void 0!==this.config.minVelocityX&&(this.minVelocityX=this.config.minVelocityX),void 0!==this.config.minVelocityY&&(this.minVelocityY=this.config.minVelocityY),void 0!==this.config.activateAfterLongPress&&(this.activateAfterLongPress=this.config.activateAfterLongPress),void 0!==this.config.activeOffsetXStart&&(this.activeOffsetXStart=this.config.activeOffsetXStart,void 0===this.config.activeOffsetXEnd&&(this.activeOffsetXEnd=Number.MAX_SAFE_INTEGER)),void 0!==this.config.activeOffsetXEnd&&(this.activeOffsetXEnd=this.config.activeOffsetXEnd,void 0===this.config.activeOffsetXStart&&(this.activeOffsetXStart=Number.MIN_SAFE_INTEGER)),void 0!==this.config.failOffsetXStart&&(this.failOffsetXStart=this.config.failOffsetXStart,void 0===this.config.failOffsetXEnd&&(this.failOffsetXEnd=Number.MAX_SAFE_INTEGER)),void 0!==this.config.failOffsetXEnd&&(this.failOffsetXEnd=this.config.failOffsetXEnd,void 0===this.config.failOffsetXStart&&(this.failOffsetXStart=Number.MIN_SAFE_INTEGER)),void 0!==this.config.activeOffsetYStart&&(this.activeOffsetYStart=this.config.activeOffsetYStart,void 0===this.config.activeOffsetYEnd&&(this.activeOffsetYEnd=Number.MAX_SAFE_INTEGER)),void 0!==this.config.activeOffsetYEnd&&(this.activeOffsetYEnd=this.config.activeOffsetYEnd,void 0===this.config.activeOffsetYStart&&(this.activeOffsetYStart=Number.MIN_SAFE_INTEGER)),void 0!==this.config.failOffsetYStart&&(this.failOffsetYStart=this.config.failOffsetYStart,void 0===this.config.failOffsetYEnd&&(this.failOffsetYEnd=Number.MAX_SAFE_INTEGER)),void 0!==this.config.failOffsetYEnd&&(this.failOffsetYEnd=this.config.failOffsetYEnd,void 0===this.config.failOffsetYStart&&(this.failOffsetYStart=Number.MIN_SAFE_INTEGER)),void 0!==this.config.enableTrackpadTwoFingerGesture&&(this.enableTrackpadTwoFingerGesture=this.config.enableTrackpadTwoFingerGesture)}resetConfig(){super.resetConfig(),this.activeOffsetXStart=-Number.MAX_SAFE_INTEGER,this.activeOffsetXEnd=Number.MIN_SAFE_INTEGER,this.failOffsetXStart=Number.MIN_SAFE_INTEGER,this.failOffsetXEnd=Number.MAX_SAFE_INTEGER,this.activeOffsetYStart=Number.MAX_SAFE_INTEGER,this.activeOffsetYEnd=Number.MIN_SAFE_INTEGER,this.failOffsetYStart=Number.MIN_SAFE_INTEGER,this.failOffsetYEnd=Number.MAX_SAFE_INTEGER,this.minVelocityX=Number.MAX_SAFE_INTEGER,this.minVelocityY=Number.MAX_SAFE_INTEGER,this.minVelocitySq=Number.MAX_SAFE_INTEGER,this.minDistSq=c,this.minPointers=1,this.maxPointers=10,this.activateAfterLongPress=0}transformNativeEvent(){const t=this.getTranslationX(),e=this.getTranslationY();return Object.assign({},super.transformNativeEvent(),{translationX:isNaN(t)?0:t,translationY:isNaN(e)?0:e,velocityX:this.velocityX,velocityY:this.velocityY,stylusData:this.stylusData})}getTranslationX(){return this.lastX-this.startX+this.offsetX}getTranslationY(){return this.lastY-this.startY+this.offsetY}clearActivationTimeout(){clearTimeout(this.activationTimeout)}updateLastCoords(){const{x:t,y:e}=this.tracker.getAbsoluteCoordsAverage();this.lastX=t,this.lastY=e}updateVelocity(t){const e=this.tracker.getVelocity(t);this.velocityX=e?.x??0,this.velocityY=e?.y??0}onPointerDown(t){this.isButtonInConfig(t.button)&&(this.tracker.addToTracker(t),this.stylusData=t.stylusData,super.onPointerDown(t),this.updateLastCoords(),this.startX=this.lastX,this.startY=this.lastY,this.tryBegin(t),this.checkBegan(),this.tryToSendTouchEvent(t))}onPointerAdd(t){this.tracker.addToTracker(t),super.onPointerAdd(t),this.tryBegin(t),this.offsetX+=this.lastX-this.startX,this.offsetY+=this.lastY-this.startY,this.updateLastCoords(),this.startX=this.lastX,this.startY=this.lastY,this.tracker.trackedPointersCount>this.maxPointers?this.state===n.State.ACTIVE?this.cancel():this.fail():this.checkBegan()}onPointerUp(t){if(this.stylusData=t.stylusData,super.onPointerUp(t),this.state===n.State.ACTIVE){const t=this.tracker.getAbsoluteCoordsAverage();this.lastX=t.x,this.lastY=t.y}this.tracker.removeFromTracker(t.pointerId),0===this.tracker.trackedPointersCount&&this.clearActivationTimeout(),this.state===n.State.ACTIVE?this.end():(this.resetProgress(),this.fail())}onPointerRemove(t){super.onPointerRemove(t),this.tracker.removeFromTracker(t.pointerId),this.offsetX+=this.lastX-this.startX,this.offsetY+=this.lastY-this.startY,this.updateLastCoords(),this.startX=this.lastX,this.startY=this.lastY,this.state===n.State.ACTIVE&&this.tracker.trackedPointersCount<this.minPointers||this.checkBegan()}onPointerMove(t){this.tracker.track(t),this.stylusData=t.stylusData,this.updateLastCoords(),this.updateVelocity(t.pointerId),this.checkBegan(),super.onPointerMove(t)}onPointerOutOfBounds(t){this.shouldCancelWhenOutside||(this.tracker.track(t),this.stylusData=t.stylusData,this.updateLastCoords(),this.updateVelocity(t.pointerId),this.checkBegan(),this.state===n.State.ACTIVE&&super.onPointerOutOfBounds(t))}scheduleWheelEnd(t){clearTimeout(this.endWheelTimeout),this.endWheelTimeout=setTimeout(()=>{this.state===n.State.ACTIVE&&(this.end(),this.tracker.removeFromTracker(t.pointerId),this.state=n.State.UNDETERMINED),this.wheelDevice=h.WheelDevice.UNDETERMINED},30)}onWheel(t){if(this.wheelDevice!==h.WheelDevice.MOUSE&&this.enableTrackpadTwoFingerGesture){if(this.state===n.State.UNDETERMINED){if(this.wheelDevice=t.wheelDeltaY%120!=0?h.WheelDevice.TOUCHPAD:h.WheelDevice.MOUSE,this.wheelDevice===h.WheelDevice.MOUSE)return void this.scheduleWheelEnd(t);this.tracker.addToTracker(t),this.updateLastCoords(),this.startX=this.lastX,this.startY=this.lastY,this.begin(),this.activate()}this.tracker.track(t),this.updateLastCoords(),this.updateVelocity(t.pointerId),this.tryToSendMoveEvent(!1,t),this.scheduleWheelEnd(t)}}shouldActivate(){const t=this.getTranslationX();if(this.activeOffsetXStart!==Number.MAX_SAFE_INTEGER&&t<this.activeOffsetXStart)return!0;if(this.activeOffsetXEnd!==Number.MIN_SAFE_INTEGER&&t>this.activeOffsetXEnd)return!0;const e=this.getTranslationY();if(this.activeOffsetYStart!==Number.MAX_SAFE_INTEGER&&e<this.activeOffsetYStart)return!0;if(this.activeOffsetYEnd!==Number.MIN_SAFE_INTEGER&&e>this.activeOffsetYEnd)return!0;const s=t*t+e*e;if(this.minDistSq!==Number.MAX_SAFE_INTEGER&&s>=this.minDistSq)return!0;const n=this.velocityX;if(this.minVelocityX!==Number.MAX_SAFE_INTEGER&&(this.minVelocityX<0&&n<=this.minVelocityX||this.minVelocityX>=0&&this.minVelocityX<=n))return!0;const o=this.velocityY;if(this.minVelocityY!==Number.MAX_SAFE_INTEGER&&(this.minVelocityY<0&&o<=this.minVelocityY||this.minVelocityY>=0&&this.minVelocityY<=o))return!0;const h=n*n+o*o;return this.minVelocitySq!==Number.MAX_SAFE_INTEGER&&h>=this.minVelocitySq}shouldFail(){const t=this.getTranslationX(),e=this.getTranslationY(),s=t*t+e*e;return this.activateAfterLongPress>0&&s>c?(this.clearActivationTimeout(),!0):this.failOffsetXStart!==Number.MIN_SAFE_INTEGER&&t<this.failOffsetXStart||(this.failOffsetXEnd!==Number.MAX_SAFE_INTEGER&&t>this.failOffsetXEnd||(this.failOffsetYStart!==Number.MIN_SAFE_INTEGER&&e<this.failOffsetYStart||this.failOffsetYEnd!==Number.MAX_SAFE_INTEGER&&e>this.failOffsetYEnd))}tryBegin(t){this.state===n.State.UNDETERMINED&&this.tracker.trackedPointersCount>=this.minPointers?(this.resetProgress(),this.offsetX=0,this.offsetY=0,this.velocityX=0,this.velocityY=0,this.begin(),this.activateAfterLongPress>0&&(this.activationTimeout=setTimeout(()=>{this.activate()},this.activateAfterLongPress))):this.updateVelocity(t.pointerId)}checkBegan(){this.state===n.State.BEGAN&&(this.shouldFail()?this.fail():this.shouldActivate()&&this.activate())}activate(t=!1){this.state!==n.State.ACTIVE&&this.resetProgress(),super.activate(t)}onCancel(){this.clearActivationTimeout()}onReset(){this.clearActivationTimeout()}resetProgress(){this.state!==n.State.ACTIVE&&(this.startX=this.lastX,this.startY=this.lastY)}}},3254,[120,3245,3255,3256,3257]);
15660
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DEFAULT_TOUCH_SLOP",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"MINIMAL_RECOGNIZABLE_MAGNITUDE",{enumerable:!0,get:function(){return n}});const t=15,n=.1},3255,[]);
15661
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"EventTypes",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"TouchEventType",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"WheelDevice",{enumerable:!0,get:function(){return t}});let E=(function(E){return E[E.DOWN=0]="DOWN",E[E.ADDITIONAL_POINTER_DOWN=1]="ADDITIONAL_POINTER_DOWN",E[E.UP=2]="UP",E[E.ADDITIONAL_POINTER_UP=3]="ADDITIONAL_POINTER_UP",E[E.MOVE=4]="MOVE",E[E.ENTER=5]="ENTER",E[E.LEAVE=6]="LEAVE",E[E.CANCEL=7]="CANCEL",E})({}),n=(function(E){return E[E.UNDETERMINED=0]="UNDETERMINED",E[E.DOWN=1]="DOWN",E[E.MOVE=2]="MOVE",E[E.UP=3]="UP",E[E.CANCELLED=4]="CANCELLED",E})({}),t=(function(E){return E[E.UNDETERMINED=0]="UNDETERMINED",E[E.MOUSE=1]="MOUSE",E[E.TOUCHPAD=2]="TOUCHPAD",E})({})},3256,[]);
15662
- __d(function(g,r,i,a,m,_e,d){"use strict";const t=["enabled"];function e(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return v}});var o=e(r(d[0])),s=r(d[1]),n=r(d[2]),h=e(r(d[3])),l=e(r(d[4])),c=e(r(d[5])),u=r(d[6]),p=r(d[7]);class v{lastSentState=null;_state=s.State.UNDETERMINED;_shouldCancelWhenOutside=!1;hasCustomActivationCriteria=!1;_enabled=!1;_config={enabled:!1};_tracker=new c.default;_activationIndex=0;_awaiting=!1;_active=!1;_shouldResetProgress=!1;_pointerType=p.PointerType.MOUSE;constructor(t){this._delegate=t}init(t,e){this.propsRef=e,this.viewRef=t,this.state=s.State.UNDETERMINED,this.delegate.init(t,this)}attachEventManager(t){t.setOnPointerDown(this.onPointerDown.bind(this)),t.setOnPointerAdd(this.onPointerAdd.bind(this)),t.setOnPointerUp(this.onPointerUp.bind(this)),t.setOnPointerRemove(this.onPointerRemove.bind(this)),t.setOnPointerMove(this.onPointerMove.bind(this)),t.setOnPointerEnter(this.onPointerEnter.bind(this)),t.setOnPointerLeave(this.onPointerLeave.bind(this)),t.setOnPointerCancel(this.onPointerCancel.bind(this)),t.setOnPointerOutOfBounds(this.onPointerOutOfBounds.bind(this)),t.setOnPointerMoveOver(this.onPointerMoveOver.bind(this)),t.setOnPointerMoveOut(this.onPointerMoveOut.bind(this)),t.setOnWheel(this.onWheel.bind(this)),t.registerListeners()}onCancel(){}onReset(){}resetProgress(){}reset(){this.tracker.resetTracker(),this.onReset(),this.resetProgress(),this.delegate.reset(),this.state=s.State.UNDETERMINED}moveToState(t,e){if(this.state===t)return;const o=this.state;this.state=t,this.tracker.trackedPointersCount>0&&this.config.needsPointerData&&this.isFinished()&&this.cancelTouches(),h.default.instance.onHandlerStateChange(this,t,o,e),this.onStateChange(t,o),!this.enabled&&this.isFinished()&&(this.state=s.State.UNDETERMINED)}onStateChange(t,e){}begin(){this.checkHitSlop()&&this.state===s.State.UNDETERMINED&&this.moveToState(s.State.BEGAN)}fail(t){this.state!==s.State.ACTIVE&&this.state!==s.State.BEGAN||(this.delegate.onFail(),this.moveToState(s.State.FAILED,t)),this.resetProgress()}cancel(t){this.state!==s.State.ACTIVE&&this.state!==s.State.UNDETERMINED&&this.state!==s.State.BEGAN||(this.onCancel(),this.delegate.onCancel(),this.moveToState(s.State.CANCELLED,t))}activate(t=!1){!0===this.config.manualActivation&&!t||this.state!==s.State.UNDETERMINED&&this.state!==s.State.BEGAN||(this.delegate.onActivate(),this.moveToState(s.State.ACTIVE))}end(){this.state!==s.State.BEGAN&&this.state!==s.State.ACTIVE||(this.delegate.onEnd(),this.moveToState(s.State.END)),this.resetProgress()}getShouldResetProgress(){return this.shouldResetProgress}setShouldResetProgress(t){this.shouldResetProgress=t}shouldWaitForHandlerFailure(t){return t!==this&&l.default.instance.shouldWaitForHandlerFailure(this,t)}shouldRequireToWaitForFailure(t){return t!==this&&l.default.instance.shouldRequireHandlerToWaitForFailure(this,t)}shouldRecognizeSimultaneously(t){return t===this||l.default.instance.shouldRecognizeSimultaneously(this,t)}shouldBeCancelledByOther(t){return t!==this&&l.default.instance.shouldHandlerBeCancelledBy(this,t)}onPointerDown(t){h.default.instance.recordHandlerIfNotPresent(this),this.pointerType=t.pointerType,this.pointerType===p.PointerType.TOUCH&&h.default.instance.cancelMouseAndPenGestures(this)}onPointerAdd(t){this.tryToSendTouchEvent(t)}onPointerUp(t){this.tryToSendTouchEvent(t)}onPointerRemove(t){this.tryToSendTouchEvent(t)}onPointerMove(t){this.tryToSendMoveEvent(!1,t)}onPointerLeave(t){if(this.shouldCancelWhenOutside)switch(this.state){case s.State.ACTIVE:this.cancel();break;case s.State.BEGAN:this.fail()}else this.tryToSendTouchEvent(t)}onPointerEnter(t){this.tryToSendTouchEvent(t)}onPointerCancel(t){this.tryToSendTouchEvent(t),this.cancel(),this.reset()}onPointerOutOfBounds(t){this.tryToSendMoveEvent(!0,t)}onPointerMoveOver(t){}onPointerMoveOut(t){}onWheel(t){}tryToSendMoveEvent(t,e){t&&this.shouldCancelWhenOutside||!this.enabled||(this.active&&this.sendEvent(this.state,this.state),this.tryToSendTouchEvent(e))}tryToSendTouchEvent(t){this.config.needsPointerData&&this.sendTouchEvent(t)}sendTouchEvent(t){if(!this.enabled)return;const{onGestureHandlerEvent:e}=this.propsRef.current,o=this.transformTouchEvent(t);o&&f(e,o)}sendEvent=(t,e)=>{const{onGestureHandlerEvent:o,onGestureHandlerStateChange:n}=this.propsRef.current,h=this.transformEventData(t,e);this.lastSentState!==t&&(this.lastSentState=t,f(n,h)),this.state===s.State.ACTIVE&&(h.nativeEvent.oldState=void 0,f(o,h))};transformEventData(t,e){return{nativeEvent:Object.assign({numberOfPointers:this.tracker.trackedPointersCount,state:t,pointerInside:this.delegate.isPointerInBounds(this.tracker.getAbsoluteCoordsAverage())},this.transformNativeEvent(),{handlerTag:this.handlerTag,target:this.viewRef,oldState:t!==e?e:void 0,pointerType:this.pointerType}),timeStamp:Date.now()}}transformTouchEvent(t){const e=this.delegate.measureView(),o=[],s=[],h=this.tracker.trackedPointers;if(0===h.size||!h.has(t.pointerId))return;h.forEach((t,s)=>{const n=this.tracker.getMappedTouchEventId(s);o.push({id:n,x:t.abosoluteCoords.x-e.pageX,y:t.abosoluteCoords.y-e.pageY,absoluteX:t.abosoluteCoords.x,absoluteY:t.abosoluteCoords.y})}),t.eventType!==n.EventTypes.CANCEL?s.push({id:this.tracker.getMappedTouchEventId(t.pointerId),x:t.x-e.pageX,y:t.y-e.pageY,absoluteX:t.x,absoluteY:t.y}):h.forEach((t,o)=>{const n=this.tracker.getMappedTouchEventId(o);s.push({id:n,x:t.abosoluteCoords.x-e.pageX,y:t.abosoluteCoords.y-e.pageY,absoluteX:t.abosoluteCoords.x,absoluteY:t.abosoluteCoords.y})});let l=n.TouchEventType.UNDETERMINED;switch(t.eventType){case n.EventTypes.DOWN:case n.EventTypes.ADDITIONAL_POINTER_DOWN:l=n.TouchEventType.DOWN;break;case n.EventTypes.UP:case n.EventTypes.ADDITIONAL_POINTER_UP:l=n.TouchEventType.UP;break;case n.EventTypes.MOVE:l=n.TouchEventType.MOVE;break;case n.EventTypes.CANCEL:l=n.TouchEventType.CANCELLED}let c=o.length;return t.eventType!==n.EventTypes.UP&&t.eventType!==n.EventTypes.ADDITIONAL_POINTER_UP||--c,{nativeEvent:{handlerTag:this.handlerTag,state:this.state,eventType:l,changedTouches:s,allTouches:o,numberOfTouches:c,pointerType:this.pointerType},timeStamp:Date.now()}}cancelTouches(){const t=this.delegate.measureView(),e=[],o=[],s=this.tracker.trackedPointers;if(0===s.size)return;s.forEach((s,n)=>{const h=this.tracker.getMappedTouchEventId(n);e.push({id:h,x:s.abosoluteCoords.x-t.pageX,y:s.abosoluteCoords.y-t.pageY,absoluteX:s.abosoluteCoords.x,absoluteY:s.abosoluteCoords.y}),o.push({id:h,x:s.abosoluteCoords.x-t.pageX,y:s.abosoluteCoords.y-t.pageY,absoluteX:s.abosoluteCoords.x,absoluteY:s.abosoluteCoords.y})});const h={nativeEvent:{handlerTag:this.handlerTag,state:this.state,eventType:n.TouchEventType.CANCELLED,changedTouches:o,allTouches:e,numberOfTouches:e.length,pointerType:this.pointerType},timeStamp:Date.now()},{onGestureHandlerEvent:l}=this.propsRef.current;f(l,h)}transformNativeEvent(){const t=this.tracker.getAbsoluteCoordsAverage(),e=this.tracker.getRelativeCoordsAverage();return{x:e.x,y:e.y,absoluteX:t.x,absoluteY:t.y}}updateGestureConfig(e){let{enabled:n=!0}=e,l=(0,o.default)(e,t);if(this._config=Object.assign({enabled:n},l),this.enabled!==n&&this.delegate.onEnabledChange(n),this.enabled=n,void 0!==this.config.shouldCancelWhenOutside&&(this.shouldCancelWhenOutside=this.config.shouldCancelWhenOutside),this.validateHitSlops(),!this.enabled)switch(this.state){case s.State.ACTIVE:this.fail(!0);break;case s.State.UNDETERMINED:h.default.instance.removeHandlerFromOrchestrator(this);break;default:this.cancel(!0)}}checkCustomActivationCriteria(t){for(const e in this.config)t.indexOf(e)>=0&&(this.hasCustomActivationCriteria=!0)}validateHitSlops(){if(this.config.hitSlop){if(void 0!==this.config.hitSlop.left&&void 0!==this.config.hitSlop.right&&void 0!==this.config.hitSlop.width)throw new Error('HitSlop Error: Cannot define left, right and width at the same time');if(void 0!==this.config.hitSlop.width&&void 0===this.config.hitSlop.left&&void 0===this.config.hitSlop.right)throw new Error('HitSlop Error: When width is defined, either left or right has to be defined');if(void 0!==this.config.hitSlop.height&&void 0!==this.config.hitSlop.top&&void 0!==this.config.hitSlop.bottom)throw new Error('HitSlop Error: Cannot define top, bottom and height at the same time');if(void 0!==this.config.hitSlop.height&&void 0===this.config.hitSlop.top&&void 0===this.config.hitSlop.bottom)throw new Error('HitSlop Error: When height is defined, either top or bottom has to be defined')}}checkHitSlop(){if(!this.config.hitSlop)return!0;const{width:t,height:e}=this.delegate.measureView();let o=0,s=0,n=t,h=e;void 0!==this.config.hitSlop.horizontal&&(o-=this.config.hitSlop.horizontal,n+=this.config.hitSlop.horizontal),void 0!==this.config.hitSlop.vertical&&(s-=this.config.hitSlop.vertical,h+=this.config.hitSlop.vertical),void 0!==this.config.hitSlop.left&&(o=-this.config.hitSlop.left),void 0!==this.config.hitSlop.right&&(n=t+this.config.hitSlop.right),void 0!==this.config.hitSlop.top&&(s=-this.config.hitSlop.top),void 0!==this.config.hitSlop.bottom&&(h=e+this.config.hitSlop.bottom),void 0!==this.config.hitSlop.width&&(void 0!==this.config.hitSlop.left?n=o+this.config.hitSlop.width:void 0!==this.config.hitSlop.right&&(o=n-this.config.hitSlop.width)),void 0!==this.config.hitSlop.height&&(void 0!==this.config.hitSlop.top?h=s+this.config.hitSlop.height:void 0!==this.config.hitSlop.bottom&&(s=h-this.config.hitSlop.height));const l=this.delegate.measureView(),c=this.tracker.getLastAbsoluteCoords();if(!c)return!1;const u=c.x-l.pageX,p=c.y-l.pageY;return u>=o&&u<=n&&p>=s&&p<=h}isButtonInConfig(t){return!t||!this.config.mouseButton&&t===u.MouseButton.LEFT||this.config.mouseButton&&t&this.config.mouseButton}resetConfig(){}onDestroy(){h.default.instance.removeHandlerFromOrchestrator(this),this.delegate.destroy(this.config)}get handlerTag(){return this._handlerTag}set handlerTag(t){this._handlerTag=t}get config(){return this._config}get delegate(){return this._delegate}get tracker(){return this._tracker}get state(){return this._state}set state(t){this._state=t}get shouldCancelWhenOutside(){return this._shouldCancelWhenOutside}set shouldCancelWhenOutside(t){this._shouldCancelWhenOutside=t}get enabled(){return this._enabled}set enabled(t){this._enabled=t}get pointerType(){return this._pointerType}set pointerType(t){this._pointerType=t}get active(){return this._active}set active(t){this._active=t}get awaiting(){return this._awaiting}set awaiting(t){this._awaiting=t}get activationIndex(){return this._activationIndex}set activationIndex(t){this._activationIndex=t}get shouldResetProgress(){return this._shouldResetProgress}set shouldResetProgress(t){this._shouldResetProgress=t}getTrackedPointersID(){return this.tracker.trackedPointersIDs}isFinished(){return this.state===s.State.END||this.state===s.State.FAILED||this.state===s.State.CANCELLED}}function f(t,e){if(!t)return;if('function'==typeof t)return void t(e);if('__getHandler'in t&&'function'==typeof t.__getHandler){return void f(t.__getHandler(),e)}if(!('__nodeConfig'in t))return;const{argMapping:o}=t.__nodeConfig;if(Array.isArray(o))for(const[s,[n,h]]of o.entries()){if(!(n in e.nativeEvent))continue;const o=e.nativeEvent[n];h?.setValue?h.setValue(o):t.__nodeConfig.argMapping[s]=[n,o]}}},3257,[120,3245,3256,3258,3264,3260,3265,3259]);
15663
- __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 e,t=r(d[0]),n=r(d[1]),i=r(d[2]),s=(e=i)&&e.__esModule?e:{default:e};class l{gestureHandlers=[];awaitingHandlers=[];awaitingHandlersTags=new Set;handlingChangeSemaphore=0;activationIndex=0;constructor(){}scheduleFinishedHandlersCleanup(){0===this.handlingChangeSemaphore&&this.cleanupFinishedHandlers()}cleanHandler(e){e.reset(),e.active=!1,e.awaiting=!1,e.activationIndex=Number.MAX_VALUE}removeHandlerFromOrchestrator(e){const t=this.gestureHandlers.indexOf(e),n=this.awaitingHandlers.indexOf(e);t>=0&&this.gestureHandlers.splice(t,1),n>=0&&(this.awaitingHandlers.splice(n,1),this.awaitingHandlersTags.delete(e.handlerTag))}cleanupFinishedHandlers(){const e=new Set;for(let t=this.gestureHandlers.length-1;t>=0;--t){const n=this.gestureHandlers[t];this.isFinished(n.state)&&!n.awaiting&&(this.cleanHandler(n),e.add(n))}this.gestureHandlers=this.gestureHandlers.filter(t=>!e.has(t))}hasOtherHandlerToWaitFor(e){return this.gestureHandlers.some(t=>!this.isFinished(t.state)&&this.shouldHandlerWaitForOther(e,t))}shouldBeCancelledByFinishedHandler(e){return this.gestureHandlers.some(t=>this.shouldHandlerWaitForOther(e,t)&&t.state===n.State.END)}tryActivate(e){if(this.shouldBeCancelledByFinishedHandler(e))return void e.cancel();if(this.hasOtherHandlerToWaitFor(e))return void this.addAwaitingHandler(e);const t=e.state;t!==n.State.CANCELLED&&t!==n.State.FAILED&&(this.shouldActivate(e)?this.makeActive(e):t!==n.State.ACTIVE?t===n.State.BEGAN&&e.cancel():e.fail())}shouldActivate(e){return!this.gestureHandlers.some(t=>this.shouldHandlerBeCancelledBy(e,t))}cleanupAwaitingHandlers(e){const t=t=>!t.awaiting&&this.shouldHandlerWaitForOther(t,e);for(const e of this.awaitingHandlers)t(e)&&(this.cleanHandler(e),this.awaitingHandlersTags.delete(e.handlerTag));this.awaitingHandlers=this.awaitingHandlers.filter(e=>this.awaitingHandlersTags.has(e.handlerTag))}onHandlerStateChange(e,t,i,s){if(e.enabled||s){if(this.handlingChangeSemaphore+=1,this.isFinished(t))for(const i of this.awaitingHandlers)this.shouldHandlerWaitForOther(i,e)&&this.awaitingHandlersTags.has(i.handlerTag)&&(t===n.State.END?(i.cancel(),i.state===n.State.END&&i.sendEvent(n.State.CANCELLED,n.State.BEGAN),i.awaiting=!1):this.tryActivate(i));t===n.State.ACTIVE?this.tryActivate(e):i===n.State.ACTIVE||i===n.State.END?e.active?e.sendEvent(t,i):i!==n.State.ACTIVE||t!==n.State.CANCELLED&&t!==n.State.FAILED||e.sendEvent(t,n.State.BEGAN):i===n.State.UNDETERMINED&&t===n.State.CANCELLED||e.sendEvent(t,i),this.handlingChangeSemaphore-=1,this.scheduleFinishedHandlersCleanup(),this.awaitingHandlers.includes(e)||this.cleanupAwaitingHandlers(e)}}makeActive(e){const t=e.state;e.active=!0,e.shouldResetProgress=!0,e.activationIndex=this.activationIndex++;for(let t=this.gestureHandlers.length-1;t>=0;--t)this.shouldHandlerBeCancelledBy(this.gestureHandlers[t],e)&&this.gestureHandlers[t].cancel();for(const t of this.awaitingHandlers)this.shouldHandlerBeCancelledBy(t,e)&&(t.awaiting=!1);e.sendEvent(n.State.ACTIVE,n.State.BEGAN),t!==n.State.ACTIVE&&(e.sendEvent(n.State.END,n.State.ACTIVE),t!==n.State.END&&e.sendEvent(n.State.UNDETERMINED,n.State.END)),e.awaiting&&(e.awaiting=!1,this.awaitingHandlers=this.awaitingHandlers.filter(t=>t!==e))}addAwaitingHandler(e){this.awaitingHandlers.includes(e)||(this.awaitingHandlers.push(e),this.awaitingHandlersTags.add(e.handlerTag),e.awaiting=!0,e.activationIndex=this.activationIndex++)}recordHandlerIfNotPresent(e){this.gestureHandlers.includes(e)||(this.gestureHandlers.push(e),e.active=!1,e.awaiting=!1,e.activationIndex=Number.MAX_SAFE_INTEGER)}shouldHandlerWaitForOther(e,t){return e!==t&&(e.shouldWaitForHandlerFailure(t)||t.shouldRequireToWaitForFailure(e))}canRunSimultaneously(e,t){return e===t||e.shouldRecognizeSimultaneously(t)||t.shouldRecognizeSimultaneously(e)}shouldHandlerBeCancelledBy(e,t){if(this.canRunSimultaneously(e,t))return!1;if(e.awaiting||e.state===n.State.ACTIVE)return e.shouldBeCancelledByOther(t);const i=e.getTrackedPointersID(),l=t.getTrackedPointersID();return!(!s.default.shareCommonPointers(i,l)&&e.delegate.view!==t.delegate.view)||this.checkOverlap(e,t)}checkOverlap(e,t){return e.getTrackedPointersID().some(n=>{const i=e.tracker.getLastAbsoluteCoords(n);return i&&e.delegate.isPointerInBounds(i)&&t.delegate.isPointerInBounds(i)})}isFinished(e){return e===n.State.END||e===n.State.FAILED||e===n.State.CANCELLED}cancelMouseAndPenGestures(e){this.gestureHandlers.forEach(n=>{n.pointerType!==t.PointerType.MOUSE&&n.pointerType!==t.PointerType.STYLUS||(n!==e?n.cancel():n.tracker.resetTracker())})}static get instance(){return l._instance||(l._instance=new l),l._instance}}},3258,[3259,3245,3260]);
15664
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"PointerType",{enumerable:!0,get:function(){return t}});let t=(function(t){return t[t.TOUCH=0]="TOUCH",t[t.STYLUS=1]="STYLUS",t[t.MOUSE=2]="MOUSE",t[t.KEY=3]="KEY",t[t.OTHER=4]="OTHER",t})({})},3259,[]);
15665
- __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 e,t=r(d[0]),s=(e=t)&&e.__esModule?e:{default:e};class o{velocityTracker=new s.default;_trackedPointers=new Map;touchEventsIds=new Map;cachedAbsoluteAverages={x:0,y:0};cachedRelativeAverages={x:0,y:0};constructor(){this.lastMovedPointerId=NaN;for(let e=0;e<20;++e)this.touchEventsIds.set(e,NaN)}addToTracker(e){if(this.trackedPointers.has(e.pointerId))return;this.lastMovedPointerId=e.pointerId;const t={abosoluteCoords:{x:e.x,y:e.y},relativeCoords:{x:e.offsetX,y:e.offsetY},timestamp:e.time,velocityX:0,velocityY:0};this.trackedPointers.set(e.pointerId,t),this.mapTouchEventId(e.pointerId),this.cachedAbsoluteAverages=this.getAbsoluteCoordsAverage(),this.cachedRelativeAverages=this.getRelativeCoordsAverage()}removeFromTracker(e){this.trackedPointers.delete(e),this.removeMappedTouchId(e)}track(e){const t=this.trackedPointers.get(e.pointerId);if(!t)return;this.lastMovedPointerId=e.pointerId,this.velocityTracker.add(e);const[s,o]=this.velocityTracker.velocity;t.velocityX=s,t.velocityY=o,t.abosoluteCoords={x:e.x,y:e.y},t.relativeCoords={x:e.offsetX,y:e.offsetY},this.trackedPointers.set(e.pointerId,t),this.cachedAbsoluteAverages=this.getAbsoluteCoordsAverage(),this.cachedRelativeAverages=this.getRelativeCoordsAverage()}mapTouchEventId(e){for(const[t,s]of this.touchEventsIds)if(isNaN(s)){this.touchEventsIds.set(t,e);break}}removeMappedTouchId(e){const t=this.getMappedTouchEventId(e);isNaN(t)||this.touchEventsIds.set(t,NaN)}getMappedTouchEventId(e){for(const[t,s]of this.touchEventsIds.entries())if(s===e)return t;return NaN}getVelocity(e){const t=this.trackedPointers.get(e);return t?{x:t.velocityX,y:t.velocityY}:null}getLastAbsoluteCoords(e){return this.trackedPointers.get(e??this.lastMovedPointerId)?.abosoluteCoords}getLastRelativeCoords(e){return this.trackedPointers.get(e??this.lastMovedPointerId)?.relativeCoords}getAbsoluteCoordsAverage(){const e=this.getAbsoluteCoordsSum(),t=e.x/this.trackedPointers.size,s=e.y/this.trackedPointers.size;return{x:isNaN(t)?this.cachedAbsoluteAverages.x:t,y:isNaN(s)?this.cachedAbsoluteAverages.y:s}}getRelativeCoordsAverage(){const e=this.getRelativeCoordsSum(),t=e.x/this.trackedPointers.size,s=e.y/this.trackedPointers.size;return{x:isNaN(t)?this.cachedRelativeAverages.x:t,y:isNaN(s)?this.cachedRelativeAverages.y:s}}getAbsoluteCoordsSum(e){const t={x:0,y:0};return this.trackedPointers.forEach((s,o)=>{o!==e&&(t.x+=s.abosoluteCoords.x,t.y+=s.abosoluteCoords.y)}),t}getRelativeCoordsSum(e){const t={x:0,y:0};return this.trackedPointers.forEach((s,o)=>{o!==e&&(t.x+=s.relativeCoords.x,t.y+=s.relativeCoords.y)}),t}resetTracker(){this.velocityTracker.reset(),this.trackedPointers.clear(),this.lastMovedPointerId=NaN;for(let e=0;e<20;++e)this.touchEventsIds.set(e,NaN)}static shareCommonPointers(e,t){return e.some(e=>t.includes(e))}get trackedPointersCount(){return this.trackedPointers.size}get trackedPointersIDs(){const e=[];return this.trackedPointers.forEach((t,s)=>{e.push(s)}),e}get trackedPointers(){return this._trackedPointers}}},3260,[3261]);
15666
- __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,"default",{enumerable:!0,get:function(){return l}});var t=e(r(d[0])),s=e(r(d[1]));class l{assumePointerMoveStoppedMilliseconds=40;historySize=20;horizonMilliseconds=300;minSampleSize=3;constructor(){this.samples=new t.default(this.historySize)}add(e){this.samples.push(e)}getVelocityEstimate(){const e=[],t=[],l=[],n=[];let o=0,u=this.samples.size-1;const c=this.samples.get(u);if(!c)return null;let h=c;for(;o<this.samples.size;){const s=this.samples.get(u),f=c.time-s.time,p=Math.abs(s.time-h.time);if(h=s,f>this.horizonMilliseconds||p>this.assumePointerMoveStoppedMilliseconds)break;e.push(s.x),t.push(s.y),l.push(1),n.push(-f),o++,u--}if(o>=this.minSampleSize){const o=new s.default(n,e,l).solve(2);if(null!==o){const e=new s.default(n,t,l).solve(2);if(null!==e){return[1e3*o.coefficients[1],1e3*e.coefficients[1]]}}}return null}get velocity(){const e=this.getVelocityEstimate();return null!==e?e:[0,0]}reset(){this.samples.clear()}}},3261,[3262,3263]);
15667
- __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 t}});class t{constructor(t){this.capacity=t,this.buffer=new Array(t),this.index=0,this._size=0}push(t){this.buffer[this.index]=t,this.index=(this.index+1)%this.capacity,this._size=Math.min(this.size+1,this.capacity)}get(t){if(this._size===this.capacity){let s=(this.index+t)%this.capacity;return s<0&&(s+=this.capacity),this.buffer[s]}return this.buffer[t]}clear(){this.buffer=new Array(this.capacity),this.index=0,this._size=0}get size(){return this._size}}},3262,[]);
15668
- __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}});class t{constructor(t){this.offset=0,this.length=t,this.elements=new Array(t)}static fromVOL(s,n,o){const r=new t(0);return r.offset=n,r.length=o,r.elements=s,r}get(t){return this.elements[this.offset+t]}set(t,s){this.elements[this.offset+t]=s}dot(t){let s=0;for(let n=0;n<this.length;n++)s+=this.get(n)*t.get(n);return s}norm(){return Math.sqrt(this.dot(this))}}class s{constructor(t,s){this.columns=s,this.elements=new Array(t*s)}get(t,s){return this.elements[t*this.columns+s]}set(t,s,n){this.elements[t*this.columns+s]=n}getRow(s){return t.fromVOL(this.elements,s*this.columns,this.columns)}}class n{constructor(t){this.coefficients=new Array(t+1)}}class o{constructor(t,s,n){this.x=t,this.y=s,this.w=n}solve(o){if(o>this.x.length)return null;const r=new n(o),i=this.x.length,l=o+1,c=new s(l,i);for(let t=0;t<i;t++){c.set(0,t,this.w[t]);for(let s=1;s<l;s++)c.set(s,t,c.get(s-1,t)*this.x[t])}const f=new s(l,i),h=new s(l,i);for(let t=0;t<l;t+=1){for(let s=0;s<i;s+=1)f.set(t,s,c.get(t,s));for(let s=0;s<t;s+=1){const n=f.getRow(t).dot(f.getRow(s));for(let o=0;o<i;o+=1)f.set(t,o,f.get(t,o)-n*f.get(s,o))}const s=f.getRow(t).norm();if(s<1e-10)return null;const n=1/s;for(let s=0;s<i;s+=1)f.set(t,s,f.get(t,s)*n);for(let s=0;s<l;s+=1)h.set(t,s,s<t?0:f.getRow(t).dot(c.getRow(s)))}const u=new t(i);for(let t=0;t<i;t+=1)u.set(t,this.y[t]*this.w[t]);for(let t=l-1;t>=0;t-=1){r.coefficients[t]=f.getRow(t).dot(u);for(let s=l-1;s>t;s-=1)r.coefficients[t]-=h.get(t,s)*r.coefficients[s];r.coefficients[t]/=h.get(t,t)}return r}}},3263,[]);
15669
- __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 t}});class t{waitForRelations=new Map;simultaneousRelations=new Map;blocksHandlersRelations=new Map;constructor(){}configureInteractions(t,n){if(this.dropRelationsForHandlerWithTag(t.handlerTag),n.waitFor){const s=[];n.waitFor.forEach(t=>{'number'==typeof t?s.push(t):s.push(t.handlerTag)}),this.waitForRelations.set(t.handlerTag,s)}if(n.simultaneousHandlers){const s=[];n.simultaneousHandlers.forEach(t=>{'number'==typeof t?s.push(t):s.push(t.handlerTag)}),this.simultaneousRelations.set(t.handlerTag,s)}if(n.blocksHandlers){const s=[];n.blocksHandlers.forEach(t=>{'number'==typeof t?s.push(t):s.push(t.handlerTag)}),this.blocksHandlersRelations.set(t.handlerTag,s)}}shouldWaitForHandlerFailure(t,n){const s=this.waitForRelations.get(t.handlerTag);return void 0!==s?.find(t=>t===n.handlerTag)}shouldRecognizeSimultaneously(t,n){const s=this.simultaneousRelations.get(t.handlerTag);return void 0!==s?.find(t=>t===n.handlerTag)}shouldRequireHandlerToWaitForFailure(t,n){const s=this.blocksHandlersRelations.get(t.handlerTag);return void 0!==s?.find(t=>t===n.handlerTag)}shouldHandlerBeCancelledBy(t,n){const s='NativeViewGestureHandler'===n.constructor.name,l=n.active,o=!0===n.isButton?.();return s&&l&&!o}dropRelationsForHandlerWithTag(t){this.waitForRelations.delete(t),this.simultaneousRelations.delete(t),this.blocksHandlersRelations.delete(t)}reset(){this.waitForRelations.clear(),this.simultaneousRelations.clear(),this.blocksHandlersRelations.clear()}static get instance(){return this._instance||(this._instance=new t),this._instance}}},3264,[]);
15670
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"baseGestureHandlerProps",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"baseGestureHandlerWithDetectorProps",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"MouseButton",{enumerable:!0,get:function(){return u}});const n=['id','enabled','shouldCancelWhenOutside','hitSlop','cancelsTouchesInView','userSelect','activeCursor','mouseButton','enableContextMenu','touchAction'],t=[...n,'waitFor','simultaneousHandlers','blocksHandlers','onBegan','onFailed','onCancelled','onActivated','onEnded','onGestureEvent','onHandlerStateChange'],o=[...n,'needsPointerData','manualActivation'];let u=(function(n){return n[n.LEFT=1]="LEFT",n[n.RIGHT=2]="RIGHT",n[n.MIDDLE=4]="MIDDLE",n[n.BUTTON_4=8]="BUTTON_4",n[n.BUTTON_5=16]="BUTTON_5",n[n.ALL=31]="ALL",n})({})},3265,[]);
15671
- __d(function(g,r,i,a,m,_e,d){"use strict";const t=["enabled"];function s(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}});var e=s(r(d[0])),o=r(d[1]),n=r(d[2]),h=s(r(d[3]));class u extends h.default{maxDeltaX=Number.MIN_SAFE_INTEGER;maxDeltaY=Number.MIN_SAFE_INTEGER;maxDistSq=Number.MIN_SAFE_INTEGER;maxDurationMs=500;maxDelayMs=500;numberOfTaps=1;minNumberOfPointers=1;currentMaxNumberOfPointers=1;startX=0;startY=0;offsetX=0;offsetY=0;lastX=0;lastY=0;tapsSoFar=0;updateGestureConfig(s){let{enabled:o=!0}=s,n=(0,e.default)(s,t);super.updateGestureConfig(Object.assign({enabled:o},n)),void 0!==this.config.numberOfTaps&&(this.numberOfTaps=this.config.numberOfTaps),void 0!==this.config.maxDurationMs&&(this.maxDurationMs=this.config.maxDurationMs),void 0!==this.config.maxDelayMs&&(this.maxDelayMs=this.config.maxDelayMs),void 0!==this.config.maxDeltaX&&(this.maxDeltaX=this.config.maxDeltaX),void 0!==this.config.maxDeltaY&&(this.maxDeltaY=this.config.maxDeltaY),void 0!==this.config.maxDist&&(this.maxDistSq=this.config.maxDist*this.config.maxDist),void 0!==this.config.minPointers&&(this.minNumberOfPointers=this.config.minPointers)}resetConfig(){super.resetConfig(),this.maxDeltaX=Number.MIN_SAFE_INTEGER,this.maxDeltaY=Number.MIN_SAFE_INTEGER,this.maxDistSq=Number.MIN_SAFE_INTEGER,this.maxDurationMs=500,this.maxDelayMs=500,this.numberOfTaps=1,this.minNumberOfPointers=1}clearTimeouts(){clearTimeout(this.waitTimeout),clearTimeout(this.delayTimeout)}startTap(){this.clearTimeouts(),this.waitTimeout=setTimeout(()=>this.fail(),this.maxDurationMs)}endTap(){this.clearTimeouts(),++this.tapsSoFar===this.numberOfTaps&&this.currentMaxNumberOfPointers>=this.minNumberOfPointers?this.activate():this.delayTimeout=setTimeout(()=>this.fail(),this.maxDelayMs)}updateLastCoords(){const{x:t,y:s}=this.tracker.getAbsoluteCoordsAverage();this.lastX=t,this.lastY=s}onPointerDown(t){this.isButtonInConfig(t.button)&&(this.tracker.addToTracker(t),super.onPointerDown(t),this.trySettingPosition(t),this.startX=t.x,this.startY=t.y,this.lastX=t.x,this.lastY=t.y,this.updateState(t),this.tryToSendTouchEvent(t))}onPointerAdd(t){super.onPointerAdd(t),this.tracker.addToTracker(t),this.trySettingPosition(t),this.offsetX+=this.lastX-this.startX,this.offsetY+=this.lastY-this.startY,this.updateLastCoords(),this.startX=this.lastX,this.startY=this.lastY,this.updateState(t)}onPointerUp(t){super.onPointerUp(t),this.updateLastCoords(),this.tracker.removeFromTracker(t.pointerId),this.updateState(t)}onPointerRemove(t){super.onPointerRemove(t),this.tracker.removeFromTracker(t.pointerId),this.offsetX+=this.lastX-this.startX,this.offsetY+=this.lastY=this.startY,this.updateLastCoords(),this.startX=this.lastX,this.startY=this.lastY,this.updateState(t)}onPointerMove(t){this.trySettingPosition(t),this.tracker.track(t),this.updateLastCoords(),this.updateState(t),super.onPointerMove(t)}onPointerOutOfBounds(t){this.trySettingPosition(t),this.tracker.track(t),this.updateLastCoords(),this.updateState(t),super.onPointerOutOfBounds(t)}updateState(t){if(this.currentMaxNumberOfPointers<this.tracker.trackedPointersCount&&(this.currentMaxNumberOfPointers=this.tracker.trackedPointersCount),this.shouldFail())this.fail();else switch(this.state){case o.State.UNDETERMINED:t.eventType===n.EventTypes.DOWN&&this.begin(),this.startTap();break;case o.State.BEGAN:t.eventType===n.EventTypes.UP&&this.endTap(),t.eventType===n.EventTypes.DOWN&&this.startTap()}}trySettingPosition(t){this.state===o.State.UNDETERMINED&&(this.offsetX=0,this.offsetY=0,this.startX=t.x,this.startY=t.y)}shouldFail(){const t=this.lastX-this.startX+this.offsetX;if(this.maxDeltaX!==Number.MIN_SAFE_INTEGER&&Math.abs(t)>this.maxDeltaX)return!0;const s=this.lastY-this.startY+this.offsetY;if(this.maxDeltaY!==Number.MIN_SAFE_INTEGER&&Math.abs(s)>this.maxDeltaY)return!0;const e=s*s+t*t;return this.maxDistSq!==Number.MIN_SAFE_INTEGER&&e>this.maxDistSq}activate(){super.activate(),this.end()}onCancel(){this.resetProgress(),this.clearTimeouts()}resetProgress(){this.clearTimeouts(),this.tapsSoFar=0,this.currentMaxNumberOfPointers=0}}},3266,[120,3245,3256,3257]);
15672
- __d(function(g,r,i,a,m,_e,d){"use strict";const t=["enabled"];function e(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return h}});var s=e(r(d[0])),n=r(d[1]),o=e(r(d[2]));class h extends o.default{minDurationMs=500;defaultMaxDistSq=100;maxDistSq=this.defaultMaxDistSq;numberOfPointers=1;startX=0;startY=0;startTime=0;previousTime=0;init(t,e){void 0===this.config.enableContextMenu&&(this.config.enableContextMenu=!1),super.init(t,e)}transformNativeEvent(){return Object.assign({},super.transformNativeEvent(),{duration:Date.now()-this.startTime})}updateGestureConfig(e){let{enabled:n=!0}=e,o=(0,s.default)(e,t);super.updateGestureConfig(Object.assign({enabled:n},o)),void 0!==this.config.minDurationMs&&(this.minDurationMs=this.config.minDurationMs),void 0!==this.config.maxDist&&(this.maxDistSq=this.config.maxDist*this.config.maxDist),void 0!==this.config.numberOfPointers&&(this.numberOfPointers=this.config.numberOfPointers)}resetConfig(){super.resetConfig(),this.minDurationMs=500,this.maxDistSq=this.defaultMaxDistSq}onStateChange(t,e){clearTimeout(this.activationTimeout)}onPointerDown(t){this.isButtonInConfig(t.button)&&(this.tracker.addToTracker(t),super.onPointerDown(t),this.startX=t.x,this.startY=t.y,this.tryBegin(),this.tryActivate(),this.tryToSendTouchEvent(t))}onPointerAdd(t){if(super.onPointerAdd(t),this.tracker.addToTracker(t),this.tracker.trackedPointersCount>this.numberOfPointers)return void this.fail();const e=this.tracker.getAbsoluteCoordsAverage();this.startX=e.x,this.startY=e.y,this.tryActivate()}onPointerMove(t){super.onPointerMove(t),this.tracker.track(t),this.checkDistanceFail()}onPointerOutOfBounds(t){super.onPointerOutOfBounds(t),this.tracker.track(t),this.checkDistanceFail()}onPointerUp(t){super.onPointerUp(t),this.tracker.removeFromTracker(t.pointerId),this.state===n.State.ACTIVE?this.end():this.fail()}onPointerRemove(t){super.onPointerRemove(t),this.tracker.removeFromTracker(t.pointerId),this.tracker.trackedPointersCount<this.numberOfPointers&&this.state!==n.State.ACTIVE&&this.fail()}tryBegin(){this.state===n.State.UNDETERMINED&&(this.previousTime=Date.now(),this.startTime=this.previousTime,this.begin())}tryActivate(){this.tracker.trackedPointersCount===this.numberOfPointers&&(this.minDurationMs>0?this.activationTimeout=setTimeout(()=>{this.activate()},this.minDurationMs):0===this.minDurationMs&&this.activate())}checkDistanceFail(){const t=this.tracker.getAbsoluteCoordsAverage(),e=t.x-this.startX,s=t.y-this.startY;e*e+s*s<=this.maxDistSq||(this.state===n.State.ACTIVE?this.cancel():this.fail())}}},3267,[120,3245,3257]);
15673
- __d(function(g,r,i,a,m,_e,d){"use strict";function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return c}});var e=r(d[0]),s=r(d[1]),o=t(r(d[2])),n=t(r(d[3]));class c extends o.default{scale=1;velocity=0;startingSpan=0;spanSlop=s.DEFAULT_TOUCH_SLOP;scaleDetectorListener={onScaleBegin:t=>(this.startingSpan=t.currentSpan,!0),onScale:t=>{const s=this.scale;this.scale*=t.calculateScaleFactor(this.tracker.trackedPointersCount);const o=t.timeDelta;return o>0&&(this.velocity=(this.scale-s)/o),Math.abs(this.startingSpan-t.currentSpan)>=this.spanSlop&&this.state===e.State.BEGAN&&this.activate(),!0},onScaleEnd:t=>{}};scaleGestureDetector=new n.default(this.scaleDetectorListener);init(t,e){super.init(t,e),this.shouldCancelWhenOutside=!1}transformNativeEvent(){return{focalX:this.scaleGestureDetector.focusX,focalY:this.scaleGestureDetector.focusY,velocity:this.velocity,scale:this.scale}}onPointerDown(t){this.tracker.addToTracker(t),super.onPointerDown(t),this.tryToSendTouchEvent(t)}onPointerAdd(t){this.tracker.addToTracker(t),super.onPointerAdd(t),this.tryBegin(),this.scaleGestureDetector.onTouchEvent(t,this.tracker)}onPointerUp(t){super.onPointerUp(t),this.tracker.removeFromTracker(t.pointerId),this.state===e.State.ACTIVE?(this.scaleGestureDetector.onTouchEvent(t,this.tracker),this.end()):this.fail()}onPointerRemove(t){super.onPointerRemove(t),this.scaleGestureDetector.onTouchEvent(t,this.tracker),this.tracker.removeFromTracker(t.pointerId),this.state===e.State.ACTIVE&&this.tracker.trackedPointersCount<2&&this.end()}onPointerMove(t){this.tracker.trackedPointersCount<2||(this.tracker.track(t),this.scaleGestureDetector.onTouchEvent(t,this.tracker),super.onPointerMove(t))}onPointerOutOfBounds(t){this.tracker.trackedPointersCount<2||(this.tracker.track(t),this.scaleGestureDetector.onTouchEvent(t,this.tracker),super.onPointerOutOfBounds(t))}tryBegin(){this.state===e.State.UNDETERMINED&&(this.resetProgress(),this.begin())}activate(t){this.state!==e.State.ACTIVE&&this.resetProgress(),super.activate(t)}onReset(){this.resetProgress()}resetProgress(){this.state!==e.State.ACTIVE&&(this.velocity=0,this.scale=1)}}},3268,[3245,3255,3257,3269]);
15674
- __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 n}});var t=r(d[0]),s=r(d[1]);class n{inProgress=!1;constructor(s){this.onScaleBegin=s.onScaleBegin,this.onScale=s.onScale,this.onScaleEnd=s.onScaleEnd,this.spanSlop=2*t.DEFAULT_TOUCH_SLOP,this.minSpan=0}onTouchEvent(t,n){this.currentTime=t.time;const o=t.eventType,h=n.trackedPointersCount,c=o===s.EventTypes.UP||o===s.EventTypes.ADDITIONAL_POINTER_UP||o===s.EventTypes.CANCEL;if((o===s.EventTypes.DOWN||c)&&(this.inProgress&&(this.onScaleEnd(this),this.inProgress=!1,this.initialSpan=0),c))return!0;const p=o===s.EventTypes.DOWN||o===s.EventTypes.ADDITIONAL_POINTER_UP||o===s.EventTypes.ADDITIONAL_POINTER_DOWN,u=o===s.EventTypes.ADDITIONAL_POINTER_UP,S=u?t.pointerId:void 0,l=u?h-1:h,T=n.getAbsoluteCoordsSum(),v=T.x/l,E=T.y/l;let P=0,_=0;n.trackedPointers.forEach((t,s)=>{s!==S&&(P+=Math.abs(t.abosoluteCoords.x-v),_+=Math.abs(t.abosoluteCoords.y-E))});const O=2*(P/l),y=2*(_/l),f=Math.hypot(O,y),D=this.inProgress;return this._focusX=v,this._focusY=E,this.inProgress&&(f<this.minSpan||p)&&(this.onScaleEnd(this),this.inProgress=!1,this.initialSpan=f),p&&(this.initialSpan=this.prevSpan=this._currentSpan=f),!this.inProgress&&f>=this.minSpan&&(D||Math.abs(f-this.initialSpan)>this.spanSlop)&&(this.prevSpan=this._currentSpan=f,this.prevTime=this.currentTime,this.inProgress=this.onScaleBegin(this)),o!==s.EventTypes.MOVE||(this._currentSpan=f,this.inProgress&&!this.onScale(this)||(this.prevSpan=this.currentSpan,this.prevTime=this.currentTime),!0)}calculateScaleFactor(t){return t<2?1:this.prevSpan>0?this.currentSpan/this.prevSpan:1}get currentSpan(){return this._currentSpan}get focusX(){return this._focusX}get focusY(){return this._focusY}get timeDelta(){return this.currentTime-this.prevTime}}},3269,[3255,3256]);
15675
- __d(function(g,r,i,a,m,_e,d){"use strict";function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return h}});var e=r(d[0]),o=t(r(d[1])),n=t(r(d[2]));const s=Math.PI/36;class h extends o.default{rotation=0;velocity=0;cachedAnchorX=0;cachedAnchorY=0;rotationGestureListener={onRotationBegin:t=>!0,onRotation:t=>{const o=this.rotation;this.rotation+=t.rotation;const n=t.timeDelta;return n>0&&(this.velocity=(this.rotation-o)/n),Math.abs(this.rotation)>=s&&this.state===e.State.BEGAN&&this.activate(),!0},onRotationEnd:t=>{this.state===e.State.ACTIVE?this.end():this.fail()}};rotationGestureDetector=new n.default(this.rotationGestureListener);init(t,e){super.init(t,e),this.shouldCancelWhenOutside=!1}transformNativeEvent(){return{rotation:this.rotation?this.rotation:0,anchorX:this.getAnchorX(),anchorY:this.getAnchorY(),velocity:this.velocity?this.velocity:0}}getAnchorX(){const t=this.rotationGestureDetector.anchorX;return t||this.cachedAnchorX}getAnchorY(){const t=this.rotationGestureDetector.anchorY;return t||this.cachedAnchorY}onPointerDown(t){this.tracker.addToTracker(t),super.onPointerDown(t),this.tryToSendTouchEvent(t)}onPointerAdd(t){this.tracker.addToTracker(t),super.onPointerAdd(t),this.tryBegin(),this.rotationGestureDetector.onTouchEvent(t,this.tracker)}onPointerMove(t){this.tracker.trackedPointersCount<2||(this.getAnchorX()&&(this.cachedAnchorX=this.getAnchorX()),this.getAnchorY()&&(this.cachedAnchorY=this.getAnchorY()),this.tracker.track(t),this.rotationGestureDetector.onTouchEvent(t,this.tracker),super.onPointerMove(t))}onPointerOutOfBounds(t){this.tracker.trackedPointersCount<2||(this.getAnchorX()&&(this.cachedAnchorX=this.getAnchorX()),this.getAnchorY()&&(this.cachedAnchorY=this.getAnchorY()),this.tracker.track(t),this.rotationGestureDetector.onTouchEvent(t,this.tracker),super.onPointerOutOfBounds(t))}onPointerUp(t){super.onPointerUp(t),this.tracker.removeFromTracker(t.pointerId),this.rotationGestureDetector.onTouchEvent(t,this.tracker)}onPointerRemove(t){super.onPointerRemove(t),this.rotationGestureDetector.onTouchEvent(t,this.tracker),this.tracker.removeFromTracker(t.pointerId)}tryBegin(){this.state===e.State.UNDETERMINED&&this.begin()}onReset(){this.state!==e.State.ACTIVE&&(this.rotation=0,this.velocity=0,this.rotationGestureDetector.reset())}}},3270,[3245,3257,3271]);
15676
- __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 s}});var t=r(d[0]);class s{currentTime=0;previousTime=0;previousAngle=0;_rotation=0;_anchorX=0;_anchorY=0;isInProgress=!1;keyPointers=[NaN,NaN];constructor(t){this.onRotationBegin=t.onRotationBegin,this.onRotation=t.onRotation,this.onRotationEnd=t.onRotationEnd}updateCurrent(t,s){this.previousTime=this.currentTime,this.currentTime=t.time;const[n,o]=this.keyPointers,h=s.getLastAbsoluteCoords(n),u=s.getLastAbsoluteCoords(o);if(!h||!u)return;const P=u.x-h.x,c=u.y-h.y;this._anchorX=(h.x+u.x)/2,this._anchorY=(h.y+u.y)/2;const y=-Math.atan2(c,P);this._rotation=Number.isNaN(this.previousAngle)?0:this.previousAngle-y,this.previousAngle=y,this.rotation>Math.PI?this._rotation-=Math.PI:this.rotation<-Math.PI&&(this._rotation+=Math.PI),this.rotation>Math.PI/2?this._rotation-=Math.PI:this.rotation<-Math.PI/2&&(this._rotation+=Math.PI)}finish(){this.isInProgress&&(this.isInProgress=!1,this.keyPointers=[NaN,NaN]),this.onRotationEnd(this)}setKeyPointers(t){if(this.keyPointers[0]&&this.keyPointers[1])return;const s=t.trackedPointers.keys();this.keyPointers[0]=s.next().value,this.keyPointers[1]=s.next().value}onTouchEvent(s,n){switch(s.eventType){case t.EventTypes.DOWN:this.isInProgress=!1;break;case t.EventTypes.ADDITIONAL_POINTER_DOWN:if(this.isInProgress)break;this.isInProgress=!0,this.previousTime=s.time,this.previousAngle=NaN,this.setKeyPointers(n),this.updateCurrent(s,n),this.onRotationBegin(this);break;case t.EventTypes.MOVE:if(!this.isInProgress)break;this.updateCurrent(s,n),this.onRotation(this);break;case t.EventTypes.ADDITIONAL_POINTER_UP:if(!this.isInProgress)break;this.keyPointers.indexOf(s.pointerId)>=0&&this.finish();break;case t.EventTypes.UP:this.finish()}return!0}reset(){this.keyPointers=[NaN,NaN],this.isInProgress=!1}get anchorX(){return this._anchorX}get anchorY(){return this._anchorY}get rotation(){return this._rotation}get timeDelta(){return this.currentTime+this.previousTime}}},3271,[3256]);
15677
- __d(function(g,r,i,a,m,_e,d){"use strict";const t=["enabled"];function e(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return p}});var n=e(r(d[0])),o=r(d[1]),s=r(d[2]),u=e(r(d[3])),c=e(r(d[4])),h=r(d[5]);const l=s.Directions.RIGHT,f=(0,h.coneToDeviation)(30),P=(0,h.coneToDeviation)(60);class p extends u.default{numberOfPointersRequired=1;direction=l;maxDurationMs=800;minVelocity=700;maxNumberOfPointersSimultaneously=0;keyPointer=NaN;updateGestureConfig(e){let{enabled:o=!0}=e,s=(0,n.default)(e,t);super.updateGestureConfig(Object.assign({enabled:o},s)),this.config.direction&&(this.direction=this.config.direction),this.config.numberOfPointers&&(this.numberOfPointersRequired=this.config.numberOfPointers)}startFling(){this.begin(),this.maxNumberOfPointersSimultaneously=1,this.delayTimeout=setTimeout(()=>this.fail(),this.maxDurationMs)}tryEndFling(){const t=c.default.fromVelocity(this.tracker,this.keyPointer);if(!t)return!1;const e=(e,n)=>(e&this.direction)===e&&t.isSimilar(c.default.fromDirection(e),n),n=Object.values(s.Directions),o=Object.values(s.DiagonalDirections),u=n.map(t=>e(t,f)),h=o.map(t=>e(t,P)),l=u.some(Boolean)||h.some(Boolean),p=t.magnitude>this.minVelocity;return!(this.maxNumberOfPointersSimultaneously!==this.numberOfPointersRequired||!l||!p)&&(clearTimeout(this.delayTimeout),this.activate(),!0)}endFling(){this.tryEndFling()||this.fail()}onPointerDown(t){this.isButtonInConfig(t.button)&&(this.tracker.addToTracker(t),this.keyPointer=t.pointerId,super.onPointerDown(t),this.newPointerAction(),this.tryToSendTouchEvent(t))}onPointerAdd(t){this.tracker.addToTracker(t),super.onPointerAdd(t),this.newPointerAction()}newPointerAction(){this.state===o.State.UNDETERMINED&&this.startFling(),this.state===o.State.BEGAN&&(this.tryEndFling(),this.tracker.trackedPointersCount>this.maxNumberOfPointersSimultaneously&&(this.maxNumberOfPointersSimultaneously=this.tracker.trackedPointersCount))}pointerMoveAction(t){this.tracker.track(t),this.state===o.State.BEGAN&&this.tryEndFling()}onPointerMove(t){this.pointerMoveAction(t),super.onPointerMove(t)}onPointerOutOfBounds(t){this.pointerMoveAction(t),super.onPointerOutOfBounds(t)}onPointerUp(t){super.onPointerUp(t),this.onUp(t),this.keyPointer=NaN}onPointerRemove(t){super.onPointerRemove(t),this.onUp(t)}onUp(t){this.state===o.State.BEGAN&&this.endFling(),this.tracker.removeFromTracker(t.pointerId)}activate(t){super.activate(t),this.end()}resetConfig(){super.resetConfig(),this.numberOfPointersRequired=1,this.direction=l}}},3272,[120,3245,3273,3257,3274,3275]);
15678
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"Directions",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"DiagonalDirections",{enumerable:!0,get:function(){return n}});const t={RIGHT:1,LEFT:2,UP:4,DOWN:8},n={UP_RIGHT:5,DOWN_RIGHT:9,UP_LEFT:6,DOWN_LEFT:10}},3273,[]);
15679
- __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 s}});var t=r(d[0]),n=r(d[1]);class s{constructor(t,s){this.x=t,this.y=s,this._magnitude=Math.hypot(this.x,this.y);const o=this._magnitude>n.MINIMAL_RECOGNIZABLE_MAGNITUDE;this.unitX=o?this.x/this._magnitude:0,this.unitY=o?this.y/this._magnitude:0}static fromDirection(t){return o.get(t)??new s(0,0)}static fromVelocity(t,n){const o=t.getVelocity(n);return o?new s(o.x,o.y):null}get magnitude(){return this._magnitude}computeSimilarity(t){return this.unitX*t.unitX+this.unitY*t.unitY}isSimilar(t,n){return this.computeSimilarity(t)>n}}const o=new Map([[t.Directions.LEFT,new s(-1,0)],[t.Directions.RIGHT,new s(1,0)],[t.Directions.UP,new s(0,-1)],[t.Directions.DOWN,new s(0,1)],[t.DiagonalDirections.UP_RIGHT,new s(1,-1)],[t.DiagonalDirections.DOWN_RIGHT,new s(1,1)],[t.DiagonalDirections.UP_LEFT,new s(-1,-1)],[t.DiagonalDirections.DOWN_LEFT,new s(-1,1)]])},3274,[3273,3255]);
15680
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.isPointerInBounds=function(t,{x:n,y:o}){const l=t.getBoundingClientRect();return n>=l.left&&n<=l.right&&o>=l.top&&o<=l.bottom},Object.defineProperty(e,"PointerTypeMapping",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"degToRad",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"coneToDeviation",{enumerable:!0,get:function(){return l}}),e.calculateViewScale=function(t){const n=getComputedStyle(t),o={scaleX:1,scaleY:1};if(void 0!==n.scale&&'none'!==n.scale){const t=n.scale.split(' ');t[0]&&(o.scaleX=parseFloat(t[0])),o.scaleY=t[1]?parseFloat(t[1]):parseFloat(t[0])}const l=new RegExp(/matrix\((.+)\)/).exec(n.transform)?.[1];if(l){const t=l.split(', ');o.scaleX*=parseFloat(t[0]),o.scaleY*=parseFloat(t[3])}return o},e.tryExtractStylusData=function(o){if(n.get(o.pointerType)!==t.PointerType.STYLUS)return;const l=o.azimuthAngle,M=o.altitudeAngle;if(0===o.tiltX&&0===o.tiltY){if(void 0===l||void 0===M)return{tiltX:0,tiltY:0,azimuthAngle:Math.PI/2,altitudeAngle:Math.PI/2,pressure:o.pressure};const{tiltX:t,tiltY:n}=h(M,l);return{tiltX:t,tiltY:n,azimuthAngle:l,altitudeAngle:M,pressure:o.pressure}}const{altitudeAngle:u,azimuthAngle:c}=s(o.tiltX,o.tiltY);return{tiltX:o.tiltX,tiltY:o.tiltY,azimuthAngle:c,altitudeAngle:u,pressure:o.pressure}},Object.defineProperty(e,"RNSVGElements",{enumerable:!0,get:function(){return M}}),e.isRNSVGElement=function(t){const n=Object.getPrototypeOf(t).constructor.name;return M.has(n)&&Object.hasOwn(t,'elementRef')},e.isRNSVGNode=function(t){if(t.props.ref?.rngh)return!1;return'WebShape'===Object.getPrototypeOf(t?.type)?.name||M.has(t?.type?.displayName)};var t=r(d[0]);const n=new Map([['mouse',t.PointerType.MOUSE],['touch',t.PointerType.TOUCH],['pen',t.PointerType.STYLUS],['none',t.PointerType.OTHER]]),o=t=>t*Math.PI/180,l=t=>Math.cos(o(t/2));function s(t,n){const o=t*Math.PI/180,l=n*Math.PI/180;let s=0;if(0===t)n>0?s=Math.PI/2:n<0&&(s=3*Math.PI/2);else if(0===n)t<0&&(s=Math.PI);else if(90===Math.abs(t)||90===Math.abs(n))s=0;else{const t=Math.tan(o),n=Math.tan(l);s=Math.atan2(n,t),s<0&&(s+=2*Math.PI)}let h=0;return h=90===Math.abs(t)||90===Math.abs(n)?0:0===t?Math.PI/2-Math.abs(l):0===n?Math.PI/2-Math.abs(o):Math.atan(1/Math.sqrt(Math.pow(Math.tan(o),2)+Math.pow(Math.tan(l),2))),{altitudeAngle:h,azimuthAngle:s}}function h(t,n){const o=180/Math.PI;let l=0,s=0;if(0===t&&(0!==n&&n!==2*Math.PI||(l=Math.PI/2),n===Math.PI/2&&(s=Math.PI/2),n===Math.PI&&(l=-Math.PI/2),n===3*Math.PI/2&&(s=-Math.PI/2),n>0&&n<Math.PI/2&&(l=Math.PI/2,s=Math.PI/2),n>Math.PI/2&&n<Math.PI&&(l=-Math.PI/2,s=Math.PI/2),n>Math.PI&&n<3*Math.PI/2&&(l=-Math.PI/2,s=-Math.PI/2),n>3*Math.PI/2&&n<2*Math.PI&&(l=Math.PI/2,s=-Math.PI/2)),0!==t){const o=Math.tan(t);l=Math.atan(Math.cos(n)/o),s=Math.atan(Math.sin(n)/o)}return{tiltX:Math.round(l*o),tiltY:Math.round(s*o)}}const M=new Set(['Circle','ClipPath','Ellipse','ForeignObject','G','Image','Line','Marker','Mask','Path','Pattern','Polygon','Polyline','Rect','Svg','Symbol','TSpan','Text','TextPath','Use'])},3275,[3259]);
15681
- __d(function(g,r,i,a,m,_e,d){"use strict";const t=["enabled"];function e(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return h}});var s=e(r(d[0]));r(d[1]);var n=r(d[2]),o=r(d[3]),u=e(r(d[4]));class h extends u.default{shouldActivateOnStart=!1;disallowInterruption=!1;startX=0;startY=0;minDistSq=o.DEFAULT_TOUCH_SLOP*o.DEFAULT_TOUCH_SLOP;init(t,e){super.init(t,e),this.shouldCancelWhenOutside=!0;const s=this.delegate.view;this.restoreViewStyles(s),this.buttonRole='button'===s.getAttribute('role')}updateGestureConfig(e){let{enabled:n=!0}=e,o=(0,s.default)(e,t);super.updateGestureConfig(Object.assign({enabled:n},o)),void 0!==this.config.shouldActivateOnStart&&(this.shouldActivateOnStart=this.config.shouldActivateOnStart),void 0!==this.config.disallowInterruption&&(this.disallowInterruption=this.config.disallowInterruption);const u=this.delegate.view;this.restoreViewStyles(u)}restoreViewStyles(t){t&&(t.style.touchAction='auto',t.style.WebkitTouchCallout='auto')}onPointerDown(t){this.tracker.addToTracker(t),super.onPointerDown(t),this.newPointerAction(),this.tryToSendTouchEvent(t)}onPointerAdd(t){this.tracker.addToTracker(t),super.onPointerAdd(t),this.newPointerAction()}newPointerAction(){const t=this.tracker.getAbsoluteCoordsAverage();if(this.startX=t.x,this.startY=t.y,this.state!==n.State.UNDETERMINED)return;this.begin();const e=this.delegate.view.hasAttribute('rnghtext');(this.buttonRole||e)&&this.activate()}onPointerMove(t){this.tracker.track(t);const e=this.tracker.getAbsoluteCoordsAverage(),s=this.startX-e.x,o=this.startY-e.y;s*s+o*o>=this.minDistSq&&(this.buttonRole&&this.state===n.State.ACTIVE?this.cancel():this.buttonRole||this.state!==n.State.BEGAN||this.activate())}onPointerLeave(){this.state!==n.State.BEGAN&&this.state!==n.State.ACTIVE||this.cancel()}onPointerUp(t){super.onPointerUp(t),this.onUp(t)}onPointerRemove(t){super.onPointerRemove(t),this.onUp(t)}onUp(t){this.tracker.removeFromTracker(t.pointerId),0===this.tracker.trackedPointersCount&&(this.state===n.State.ACTIVE?this.end():this.fail())}shouldRecognizeSimultaneously(t){if(super.shouldRecognizeSimultaneously(t))return!0;if(t instanceof h&&t.state===n.State.ACTIVE&&t.disallowsInterruption())return!1;const e=!this.disallowInterruption;return(this.state!==n.State.ACTIVE||t.state!==n.State.ACTIVE||!e)&&(this.state===n.State.ACTIVE&&e&&t.handlerTag>0)}shouldBeCancelledByOther(t){return!this.disallowInterruption}disallowsInterruption(){return this.disallowInterruption}isButton(){return this.buttonRole}}},3276,[120,136,3245,3255,3257]);
15682
- __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 n}});var e,o=r(d[0]),t=(e=o)&&e.__esModule?e:{default:e};class n extends t.default{onPointerDown(e){this.tracker.addToTracker(e),super.onPointerDown(e),this.begin(),this.tryToSendTouchEvent(e)}onPointerAdd(e){this.tracker.addToTracker(e),super.onPointerAdd(e)}onPointerMove(e){this.tracker.track(e),super.onPointerMove(e)}onPointerOutOfBounds(e){this.tracker.track(e),super.onPointerOutOfBounds(e)}onPointerUp(e){super.onPointerUp(e),this.tracker.removeFromTracker(e.pointerId)}onPointerRemove(e){super.onPointerRemove(e),this.tracker.removeFromTracker(e.pointerId)}}},3277,[3257]);
15683
- __d(function(g,r,i,a,m,_e,d){"use strict";function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return o}});var e=r(d[0]),s=t(r(d[1])),n=t(r(d[2]));class o extends n.default{transformNativeEvent(){return Object.assign({},super.transformNativeEvent(),{stylusData:this.stylusData})}onPointerMoveOver(t){s.default.instance.recordHandlerIfNotPresent(this),this.tracker.addToTracker(t),this.stylusData=t.stylusData,super.onPointerMoveOver(t),this.state===e.State.UNDETERMINED&&(this.begin(),this.activate())}onPointerMoveOut(t){this.tracker.removeFromTracker(t.pointerId),this.stylusData=t.stylusData,super.onPointerMoveOut(t),this.end()}onPointerMove(t){this.tracker.track(t),this.stylusData=t.stylusData,super.onPointerMove(t)}onPointerCancel(t){super.onPointerCancel(t),this.reset()}}},3278,[3245,3258,3257]);
15684
- __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,"default",{enumerable:!0,get:function(){return c}});var t=e(r(_d[0])),n=(function(e){if(e&&e.__esModule)return e;var t={};return 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,t})(r(_d[1])),u=e(r(_d[2])),o=r(_d[3]);class s extends u.default{get isNative(){return!0}onRawEvent(e){if(super.onRawEvent(e),!e.isFinal&&(0,o.TEST_MIN_IF_NOT_NAN)((0,o.VEC_LEN_SQ)({x:e.deltaX,y:e.deltaY}),10)&&this.config.disallowInterruption){const u=Object.values(n.getNodes()).filter(e=>{const{handlerTag:n,view:u,isGestureRunning:o}=e;return n!==this.handlerTag&&o&&e instanceof t.default&&u&&this.view.contains(u)});for(const t of u)t.forceInvalidate(e)}}}var c=s},3279,[3280,3284,3287,3286]);
15685
- __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 u}});var e,t=r(d[0]),s=(e=t)&&e.__esModule?e:{default:e},n=r(d[1]);class l extends s.default{get isDiscrete(){return!0}get shouldEnableGestureOnSetup(){return!0}shouldFailUnderCustomCriteria({x:e,y:t,deltaX:s,deltaY:l},{maxDeltaX:u,maxDeltaY:o,maxDistSq:c,shouldCancelWhenOutside:_}){return!(!_||this.isPointInView({x:e,y:t}))||((0,n.TEST_MAX_IF_NOT_NAN)(Math.abs(s),u)||(0,n.TEST_MAX_IF_NOT_NAN)(Math.abs(l),o)||(0,n.TEST_MAX_IF_NOT_NAN)(Math.abs(l*l+s*s),c))}transformNativeEvent({center:{x:e,y:t}}){const s=this.view.getBoundingClientRect();return{absoluteX:e,absoluteY:t,x:e-s.left,y:t-s.top}}isGestureEnabledForEvent({minPointers:e,maxPointers:t,maxDeltaX:s,maxDeltaY:n,maxDistSq:l,shouldCancelWhenOutside:u},o,{maxPointers:c,center:_,deltaX:h,deltaY:x}){const b=c>=e&&c<=t;return this.shouldFailUnderCustomCriteria(Object.assign({},_,{deltaX:h,deltaY:x}),{maxDeltaX:s,maxDeltaY:n,maxDistSq:l,shouldCancelWhenOutside:u})||!b&&this.isGestureRunning?{failed:!0}:{success:b}}}var u=l},3280,[3281,3286]);
15686
- __d(function(g,r,i,a,m,_e,_d){"use strict";const t=["enabled"];function e(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return E}});var s=e(r(_d[0])),n=e(r(_d[1])),o=e(r(_d[2])),u=r(_d[3]),h=r(_d[4]),l=(function(t){if(t&&t.__esModule)return t;var e={};return t&&Object.keys(t).forEach(function(s){var n=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(e,s,n.get?n:{enumerable:!0,get:function(){return t[s]}})}),e.default=t,e})(r(_d[5])),d=r(_d[6]);let f=0;function c(t,e){if(t)if('function'==typeof t)t(e);else if('__getHandler'in t&&'function'==typeof t.__getHandler){c(t.__getHandler(),e)}else if('__nodeConfig'in t){const{argMapping:s}=t.__nodeConfig;if(Array.isArray(s))for(const[n,[o,u]]of s.entries())if(o in e.nativeEvent){const s=e.nativeEvent[o];u&&u.setValue?u.setValue(s):t.__nodeConfig.argMapping[n]=[o,s]}}}function v(t){return null==t?[]:Array.isArray(t)?t:[t]}var E=class{isGestureRunning=!1;view=null;hasGestureFailed=!1;hammer=null;initialRotation=null;config={};previousState=u.State.UNDETERMINED;pendingGestures={};oldState=u.State.UNDETERMINED;lastSentState=null;get id(){return`${this.name}${this.gestureInstance}`}get isNative(){return!1}get isDiscrete(){return!1}get shouldEnableGestureOnSetup(){throw new Error('Must override GestureHandler.shouldEnableGestureOnSetup')}constructor(){this.gestureInstance=f++,this.hasCustomActivationCriteria=!1}getConfig(){return this.config}onWaitingEnded(t){}removePendingGesture(t){delete this.pendingGestures[t]}addPendingGesture(t){this.pendingGestures[t.id]=t}isGestureEnabledForEvent(t,e,s){return{success:!0}}get NativeGestureClass(){throw new Error('Must override GestureHandler.NativeGestureClass')}updateHasCustomActivationCriteria(t){return!0}clearSelfAsPending=()=>{if(Array.isArray(this.config.waitFor))for(const t of this.config.waitFor)t.removePendingGesture(this.id)};updateGestureConfig(e){let{enabled:n=!0}=e,o=(0,s.default)(e,t);if(this.clearSelfAsPending(),this.config=this.ensureConfig(Object.assign({enabled:n},o)),this.hasCustomActivationCriteria=this.updateHasCustomActivationCriteria(this.config),Array.isArray(this.config.waitFor))for(const t of this.config.waitFor)t.addPendingGesture(this);return this.hammer&&this.sync(),this.config}destroy=()=>{this.clearSelfAsPending(),this.hammer&&(this.hammer.stop(!1),this.hammer.destroy()),this.hammer=null};isPointInView=({x:t,y:e})=>{const s=this.view.getBoundingClientRect();return t>=s.left&&t<=s.right&&e>=s.top&&e<=s.bottom};getState(t){return 0==t?0:h.EventMap[t]}transformEventData(t){const{eventType:e,maxPointers:s}=t,n=t.changedPointers[0],o=this.isPointInView({x:n.clientX,y:n.clientY}),u=this.getState(e);return u!==this.previousState&&(this.oldState=this.previousState,this.previousState=u),{nativeEvent:Object.assign({numberOfPointers:s,state:u,pointerInside:o},this.transformNativeEvent(t),{handlerTag:this.handlerTag,target:this.ref,oldState:u!==this.previousState||4!=u?this.oldState:void 0}),timeStamp:Date.now()}}transformNativeEvent(t){return{}}sendEvent=t=>{const{onGestureHandlerEvent:e,onGestureHandlerStateChange:s}=this.propsRef.current,n=this.transformEventData(t);c(e,n),this.lastSentState!==n.nativeEvent.state&&(this.lastSentState=n.nativeEvent.state,c(s,n))};cancelPendingGestures(t){for(const e of Object.values(this.pendingGestures))e&&e.isGestureRunning&&(e.hasGestureFailed=!0,e.cancelEvent(t))}notifyPendingGestures(){for(const t of Object.values(this.pendingGestures))t&&t.onWaitingEnded(this)}onGestureEnded(t){this.isGestureRunning=!1,this.cancelPendingGestures(t)}forceInvalidate(t){this.isGestureRunning&&(this.hasGestureFailed=!0,this.cancelEvent(t))}cancelEvent(t){this.notifyPendingGestures(),this.sendEvent(Object.assign({},t,{eventType:n.default.INPUT_CANCEL,isFinal:!0})),this.onGestureEnded(t)}onRawEvent({isFirst:t}){t&&(this.hasGestureFailed=!1)}shouldUseTouchEvents(t){return t.simultaneousHandlers?.some(t=>t.isNative)??!1}setView(t,e){if(null==t)return this.destroy(),void(this.view=null);const s='ontouchstart'in window;this.propsRef=e,this.ref=t,this.view=(0,o.default)(t),this.hammer=s&&this.shouldUseTouchEvents(this.config)?new n.default.Manager(this.view,{inputClass:n.default.TouchInput}):new n.default.Manager(this.view),this.oldState=u.State.UNDETERMINED,this.previousState=u.State.UNDETERMINED,this.lastSentState=null;const{NativeGestureClass:h}=this,l=new h(this.getHammerConfig());this.hammer.add(l),this.hammer.on('hammer.input',t=>{if(!this.config.enabled)return this.hasGestureFailed=!1,void(this.isGestureRunning=!1);this.onRawEvent(t),null===this.initialRotation&&0!==t.rotation&&(this.initialRotation=t.rotation),t.isFinal&&setTimeout(()=>{this.initialRotation=null,this.hasGestureFailed=!1})}),this.setupEvents(),this.sync()}setupEvents(){this.isDiscrete||(this.hammer.on(`${this.name}start`,t=>this.onStart(t)),this.hammer.on(`${this.name}end ${this.name}cancel`,t=>{this.onGestureEnded(t)})),this.hammer.on(this.name,t=>this.onGestureActivated(t))}onStart({deltaX:t,deltaY:e,rotation:s}){this.oldState=u.State.UNDETERMINED,this.previousState=u.State.UNDETERMINED,this.lastSentState=null,this.isGestureRunning=!0,this.__initialX=t,this.__initialY=e,this.initialRotation=s}onGestureActivated(t){this.sendEvent(t)}onSuccess(){}_getPendingGestures(){if(Array.isArray(this.config.waitFor)&&this.config.waitFor.length){return this.config.waitFor.filter(({hasGestureFailed:t})=>!1===t)}return[]}getHammerConfig(){return{pointers:this.config.minPointers===this.config.maxPointers?this.config.minPointers:0}}sync=()=>{const t=this.hammer.get(this.name);if(!t)return;const e=this.getHammerConfig();t.set(Object.assign({},e,{enable:(t,e)=>{if(!this.config.enabled)return this.isGestureRunning=!1,this.hasGestureFailed=!1,!1;if(!e||!t.options||void 0===e.maxPointers)return this.shouldEnableGestureOnSetup;if(this.hasGestureFailed)return!1;if(!this.isDiscrete){if(this.isGestureRunning)return!0;if(this._stillWaiting=this._getPendingGestures(),this._stillWaiting.length){for(const t of this._stillWaiting)if(!t.isDiscrete&&t.isGestureRunning)return this.hasGestureFailed=!0,this.isGestureRunning=!1,!1;return!1}}if(!this.hasCustomActivationCriteria)return!0;const s=null==this.initialRotation?0:e.rotation-this.initialRotation,{success:n,failed:o}=this.isGestureEnabledForEvent(this.getConfig(),t,Object.assign({},e,{deltaRotation:s}));return o&&(this.simulateCancelEvent(e),this.hasGestureFailed=!0),n}}))};simulateCancelEvent(t){}ensureConfig(t){const e=Object.assign({},t);if('minDist'in t&&(e.minDist=t.minDist,e.minDistSq=e.minDist*e.minDist),'minVelocity'in t&&(e.minVelocity=t.minVelocity,e.minVelocitySq=e.minVelocity*e.minVelocity),'maxDist'in t&&(e.maxDist=t.maxDist,e.maxDistSq=t.maxDist*t.maxDist),e.waitFor='waitFor'in t?v(t.waitFor).map(({handlerTag:t})=>l.getHandler(t)).filter(t=>t):null,'simultaneousHandlers'in t){const s=this.shouldUseTouchEvents(this.config);e.simultaneousHandlers=v(t.simultaneousHandlers).map(t=>'number'==typeof t?l.getHandler(t):l.getHandler(t.handlerTag)).filter(t=>t),s!==this.shouldUseTouchEvents(e)&&(0,d.ghQueueMicrotask)(()=>{this.destroy(),this.setView(this.ref,this.propsRef)})}else e.simultaneousHandlers=null;return['minPointers','maxPointers','minDist','maxDist','maxDistSq','minVelocitySq','minDistSq','minVelocity','failOffsetXStart','failOffsetYStart','failOffsetXEnd','failOffsetYEnd','activeOffsetXStart','activeOffsetXEnd','activeOffsetYStart','activeOffsetYEnd'].forEach(t=>{void 0===e[t]&&(e[t]=Number.NaN)}),e}}},3281,[120,3282,122,3245,3283,3284,3285]);
15642
+ __d(function(g,_r,_i,_a,m,e,d){"use strict";function t(t){return'object'==typeof t&&null!==t&&!Array.isArray(t)}function n(t){return Array.isArray(t)?t.filter(t=>'string'==typeof t&&t.length>0):[]}function a(n){if(!Array.isArray(n))return[];const a=[];for(const r of n)t(r)&&'string'==typeof r.label&&r.label.length>0&&(a.includes(r.label)||a.push(r.label));return a}function r(t,n){return t.find(t=>t.kind===n)}function i(t){return t?`data:image/jpeg;base64,${t.base64}`:null}Object.defineProperty(e,'__esModule',{value:!0}),e.toTrackSummary=function(r,i){if(!t(r))return null;if('string'!=typeof r.trackId||0===r.trackId.length)return null;if('number'!=typeof r.deviceId)return null;if('string'!=typeof r.className||0===r.className.length)return null;if('number'!=typeof r.firstSeen||'number'!=typeof r.lastSeen)return null;const l='string'==typeof r.bestEventId&&r.bestEventId.length>0?r.bestEventId:r.trackId;return Object.assign({trackId:r.trackId,deviceId:r.deviceId,cameraName:i,className:r.className,label:'string'==typeof r.label&&r.label.length>0?r.label:void 0,importance:'number'==typeof r.importance?r.importance:void 0,importanceReason:'string'==typeof r.importanceReason?r.importanceReason:void 0,firstSeen:r.firstSeen,lastSeen:r.lastSeen,state:'string'==typeof r.state?r.state:'idle',active:!0===r.active,zonesVisited:n(r.zonesVisited),audioLabels:a(r.audioLabels),bestEventId:l},'string'==typeof r.producingDeviceName&&r.producingDeviceName.length>0?{producingDeviceName:r.producingDeviceName}:{})},e.trackLabels=function(t){const n=[t.className];void 0===t.label||n.includes(t.label)||n.push(t.label);for(const a of t.audioLabels)n.includes(a)||n.push(a);return n},e.trackLocationLabel=function(t){return t.producingDeviceName??t.cameraName},e.trackTitle=function(t,n){return t.producingDeviceName??t.label??n},e.passesImportanceFilter=function(t,n){return n<=0||(t??0)>=n},e.hasAnyImportance=function(t){return t.some(t=>'number'==typeof t.importance)},e.sortTracks=function(t,n){const a=[...t];return'time'===n?a.sort((t,n)=>n.lastSeen-t.lastSeen):a.sort((t,n)=>{const a=t.importance??Number.NEGATIVE_INFINITY,r=n.importance??Number.NEGATIVE_INFINITY;return a!==r?r-a:n.lastSeen-t.lastSeen})},e.parseMediaFiles=function(n){if(!Array.isArray(n))return[];const a=[];for(const r of n){if(!t(r))continue;const n='string'==typeof r.key&&r.key.length>0?r.key:null,i='string'==typeof r.kind&&r.kind.length>0?r.kind:null,l='string'==typeof r.base64&&r.base64.length>0?r.base64:null,s='number'==typeof r.timestamp?r.timestamp:0;null!==n&&null!==i&&null!==l&&a.push({key:n,kind:i,base64:l,timestamp:s})}return a},e.pickMediaByKind=r,e.mediaDataUri=i,e.resolveTrackDetailImages=function(t,n){const a=r(n,'thumbnail')??r(t,'crop'),l=r(t,'fullFrameBoxed'),s=r(n,'keyFrame')??r(n,'keyFrameSmall')??r(t,'fullFrame')??r(n,'firstFrame')??r(n,'lastFrame');return{cropUri:i(a),fullFrameUri:i(s),fullFrameBoxedUri:i(l),hasServerBoxed:void 0!==l}},e.buildTrackGallery=function(t,n){const a=new Map;for(const r of[...t,...n])a.has(r.key)||a.set(r.key,r);const r=t=>{const n=l.indexOf(t);return-1===n?l.length:n};return[...a.values()].sort((t,n)=>{const a=r(t.kind),i=r(n.kind);return a!==i?a-i:t.timestamp!==n.timestamp?t.timestamp-n.timestamp:t.key<n.key?-1:t.key>n.key?1:0})},e.cleanFrameKey=function(t){const n=r(t,'keyFrame')??r(t,'keyFrameSmall')??r(t,'fullFrame')??r(t,'firstFrame')??r(t,'lastFrame');return n?.key??null},Object.defineProperty(e,"FRAME_KINDS",{enumerable:!0,get:function(){return s}}),e.mediaKindLabel=function(t,n){const a=o[t];return void 0===a?t:n(a)},e.shouldRenderFaceSection=function(t){return null!=t},e.toScoredResult=function(n){if(!t(n))return null;if('string'!=typeof n.id||0===n.id.length)return null;if('number'!=typeof n.deviceId)return null;if('string'!=typeof n.className||0===n.className.length)return null;if('number'!=typeof n.timestamp)return null;if('number'!=typeof n.score)return null;const a='string'==typeof n.mediaKey&&n.mediaKey.length>0?n.mediaKey:null,r='string'==typeof n.trackId&&n.trackId.length>0?n.trackId:null,i=a??r??n.id;return Object.assign({id:n.id,deviceId:n.deviceId,timestamp:n.timestamp,className:n.className,label:'string'==typeof n.label&&n.label.length>0?n.label:void 0,score:n.score,thumbId:i},null!==r?{trackId:r}:{})},e.scoredToTrackSummary=function(t,n){return{trackId:t.trackId??t.id,deviceId:t.deviceId,cameraName:n,className:t.className,label:t.label,firstSeen:t.timestamp,lastSeen:t.timestamp,state:'idle',active:!1,zonesVisited:[],audioLabels:[],bestEventId:t.thumbId}};const l=['crop','thumbnail','thumbnailSmall','faceCrop','plateCrop','fullFrame','fullFrameBoxed','keyFrame','keyFrameSmall','firstFrame','lastFrame','snapshot'];const s=new Set(['fullFrame','fullFrameBoxed','keyFrame','keyFrameSmall']);const o={crop:'v2.mediaKind.crop',thumbnail:'v2.mediaKind.thumbnail',thumbnailSmall:'v2.mediaKind.thumbnail',faceCrop:'v2.mediaKind.faceCrop',plateCrop:'v2.mediaKind.plateCrop',fullFrame:'v2.mediaKind.fullFrame',fullFrameBoxed:'v2.mediaKind.fullFrameBoxed',keyFrame:'v2.mediaKind.keyFrame',keyFrameSmall:'v2.mediaKind.keyFrame',firstFrame:'v2.mediaKind.firstFrame',lastFrame:'v2.mediaKind.lastFrame',snapshot:'v2.mediaKind.snapshot'}},3237,[]);
15643
+ __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,"TrackDetailModal",{enumerable:!0,get:function(){return k}});var t=r(d[0]),n=r(d[1]),o=e(r(d[2])),l=e(r(d[3])),u=e(r(d[4])),c=r(d[5]),s=r(d[6]),f=r(d[7]),p=r(d[8]);const k=(0,n.memo)(function(e){const n=(0,t.c)(14),{track:u,onSeek:k,onClose:_}=e,{colors:j}=(0,s.useTheme)(),T=(0,c.useSafeAreaInsets)(),x=null!==u,y=j.background+"F2";let C,h,v,M;return n[0]!==T.top||n[1]!==y?(C=[b.backdrop,{backgroundColor:y,paddingTop:T.top}],n[0]=T.top,n[1]=y,n[2]=C):C=n[2],n[3]!==_||n[4]!==k||n[5]!==u?(h=null!==u?(0,p.jsx)(f.TrackDetailView,{track:u,onSeek:k,onClose:_}):null,n[3]=_,n[4]=k,n[5]=u,n[6]=h):h=n[6],n[7]!==C||n[8]!==h?(v=(0,p.jsx)(l.default,{style:C,children:h}),n[7]=C,n[8]=h,n[9]=v):v=n[9],n[10]!==_||n[11]!==x||n[12]!==v?(M=(0,p.jsx)(o.default,{visible:x,animationType:"slide",transparent:!0,onRequestClose:_,children:v}),n[10]=_,n[11]=x,n[12]=v,n[13]=M):M=n[13],M}),b=u.default.create({backdrop:{flex:1}})},3238,[15,17,245,20,33,466,2587,3239,10]);
15644
+ __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,"TrackDetailView",{enumerable:!0,get:function(){return T}});var t=r(d[0]),o=r(d[1]),n=e(r(d[2])),s=e(r(d[3])),l=e(r(d[4])),c=e(r(d[5])),u=e(r(d[6])),f=r(d[7]),g=r(d[8]),h=r(d[9]),b=r(d[10]),y=r(d[11]),S=r(d[12]),p=r(d[13]),x=r(d[14]),I=r(d[15]),j=r(d[16]),k=r(d[17]),v=r(d[18]),C=r(d[19]),A=r(d[20]),P=r(d[21]),w=r(d[22]),F=r(d[23]);const N=1.7777777777777777;function R(e){return new Date(e).toLocaleTimeString(void 0,{hour:'2-digit',minute:'2-digit',second:'2-digit'})}const z=(0,o.memo)(function(e){const c=(0,t.c)(30),{file:g,selected:S,onPress:p}=e,{colors:x}=(0,y.useTheme)(),{t:I}=(0,b.useTranslation)(),[j,k]=(0,o.useState)(!1);let v,C;c[0]===Symbol.for("react.memo_cache_sentinel")?(v=()=>k(!1),c[0]=v):v=c[0],c[1]!==g.base64?(C=[g.base64],c[1]=g.base64,c[2]=C):C=c[2],(0,o.useEffect)(v,C);const A=S?x.primary:x.border,P=S?2:u.default.hairlineWidth;let N;c[3]!==A||c[4]!==P?(N={borderColor:A,borderWidth:P},c[3]=A,c[4]=P,c[5]=N):N=c[5];const R=N;let z,T,L,E;c[6]!==x.surface?(z={backgroundColor:x.surface},c[6]=x.surface,c[7]=z):z=c[7],c[8]!==R||c[9]!==z?(T=[D.tile,R,z],c[8]=R,c[9]=z,c[10]=T):T=c[10],c[11]!==x.foregroundSubtle||c[12]!==j||c[13]!==g.base64?(L=j?(0,F.jsx)(n.default,{style:[u.default.absoluteFill,D.center],pointerEvents:"none",children:(0,F.jsx)(h.ImageOff,{size:18,color:x.foregroundSubtle})}):(0,F.jsx)(f.Image,{source:{uri:`data:image/jpeg;base64,${g.base64}`},style:u.default.absoluteFill,contentFit:"cover",cachePolicy:"memory",onError:()=>k(!0)}),c[11]=x.foregroundSubtle,c[12]=j,c[13]=g.base64,c[14]=L):L=c[14],c[15]!==T||c[16]!==L?(E=(0,F.jsx)(n.default,{style:T,children:L}),c[15]=T,c[16]=L,c[17]=E):E=c[17];const G=S?x.foreground:x.foregroundMuted;let M,_,V,B;return c[18]!==G?(M=[D.tileLabel,{color:G}],c[18]=G,c[19]=M):M=c[19],c[20]!==g.kind||c[21]!==I?(_=(0,w.mediaKindLabel)(g.kind,I),c[20]=g.kind,c[21]=I,c[22]=_):_=c[22],c[23]!==M||c[24]!==_?(V=(0,F.jsx)(s.default,{numberOfLines:1,style:M,children:_}),c[23]=M,c[24]=_,c[25]=V):V=c[25],c[26]!==p||c[27]!==V||c[28]!==E?(B=(0,F.jsxs)(l.default,{onPress:p,hitSlop:4,style:D.tileWrap,children:[E,V]}),c[26]=p,c[27]=V,c[28]=E,c[29]=B):B=c[29],B}),T=(0,o.memo)(function(e){const T=(0,t.c)(156),{track:E,onSeek:G,onClose:M,bottomInset:_}=e,{colors:V}=(0,y.useTheme)(),{t:B}=(0,b.useTranslation)(),W=(0,g.useSafeAreaInsets)();let K;T[0]!==E.className?(K=(0,p.colorForEventType)(E.className),T[0]=E.className,T[1]=K):K=T[1];const U=K;let O;T[2]!==E.deviceId?(O=[E.deviceId],T[2]=E.deviceId,T[3]=O):O=T[3];const $=(0,P.useEventKindResolver)(O);let H;T[4]!==$||T[5]!==E?(H=(0,w.trackTitle)(E,$.resolveLabel(E.className)),T[4]=$,T[5]=E,T[6]=H):H=T[6];const Z=H;let X;T[7]!==E?(X=void 0!==E.producingDeviceName?"":(0,w.trackLocationLabel)(E),T[7]=E,T[8]=X):X=T[8];const q=X,[J,Q]=(0,o.useState)(0),[Y,ee]=(0,o.useState)(!1),[te,re]=(0,o.useState)(!1),[oe,ne]=(0,o.useState)(null),[se,le]=(0,o.useState)(void 0),ae=(0,v.useTrackDetailMedia)(E.deviceId,E.bestEventId,E.trackId),ie=ae.gallery;let de,ce;T[9]!==E.label?(de=void 0!==E.label?{label:E.label}:{},T[9]=E.label,T[10]=de):de=T[10],T[11]!==de||T[12]!==E.bestEventId||T[13]!==E.className||T[14]!==E.firstSeen?(ce=Object.assign({id:E.bestEventId,timestamp:E.firstSeen,className:E.className},de),T[11]=de,T[12]=E.bestEventId,T[13]=E.className,T[14]=E.firstSeen,T[15]=ce):ce=T[15];const ue=ce,{data:fe}=(0,A.useTrackFace)(E.deviceId,E.trackId,!0),me=void 0===fe?null:fe;let ge;T[16]!==me?(ge=(0,w.shouldRenderFaceSection)(me),T[16]=me,T[17]=ge):ge=T[17];const he=ge;let be,ye,Se;T[18]===Symbol.for("react.memo_cache_sentinel")?(be=()=>{ne(null)},T[18]=be):be=T[18],T[19]!==E.trackId?(ye=[E.trackId],T[19]=E.trackId,T[20]=ye):ye=T[20],(0,o.useEffect)(be,ye),T[21]!==ie?(Se=(0,w.cleanFrameKey)(ie),T[21]=ie,T[22]=Se):Se=T[22];const pe=oe??Se??ie[0]?.key??null;let xe,Ie,je;T[23]===Symbol.for("react.memo_cache_sentinel")?(xe=()=>{le(void 0)},T[23]=xe):xe=T[23],T[24]!==pe?(Ie=[pe],T[24]=pe,T[25]=Ie):Ie=T[25],(0,o.useEffect)(xe,Ie),T[26]!==pe||T[27]!==ie?(je=ie.find(e=>e.key===pe)??null,T[26]=pe,T[27]=ie,T[28]=je):je=T[28];const ke=je,{detection:ve}=(0,C.useTrackBestDetection)(E.deviceId,E.trackId,E.bestEventId,E.firstSeen,E.lastSeen,te);let Ce;T[29]===Symbol.for("react.memo_cache_sentinel")?(Ce=e=>{e>0&&Q(e)},T[29]=Ce):Ce=T[29];const Ae=Ce;let Pe;T[30]!==J?(Pe=J>0?Math.round(J/N):0,T[30]=J,T[31]=Pe):Pe=T[31];const we=Pe,Fe=(_??W.bottom)+S.SPACING.md,Ne=null===ke?null:`data:image/jpeg;base64,${ke.base64}`;let Re,ze,Te,Le,De,Ee;T[32]!==U?(Re=(0,F.jsx)(n.default,{style:[D.classDot,{backgroundColor:U}]}),T[32]=U,T[33]=Re):Re=T[33],T[34]!==V.foreground?(ze=[D.title,{color:V.foreground}],T[34]=V.foreground,T[35]=ze):ze=T[35],T[36]!==Z||T[37]!==ze?(Te=(0,F.jsx)(s.default,{numberOfLines:1,style:ze,children:Z}),T[36]=Z,T[37]=ze,T[38]=Te):Te=T[38],T[39]!==V.primary||T[40]!==V.primaryForeground||T[41]!==E.importance?(Le="number"==typeof E.importance?(0,F.jsxs)(n.default,{style:[D.importance,{backgroundColor:V.primary}],children:[(0,F.jsx)(h.Star,{size:9,color:V.primaryForeground,fill:V.primaryForeground}),(0,F.jsx)(s.default,{style:[D.importanceText,{color:V.primaryForeground}],children:Math.round(100*E.importance)})]}):null,T[39]=V.primary,T[40]=V.primaryForeground,T[41]=E.importance,T[42]=Le):Le=T[42],T[43]!==Re||T[44]!==Te||T[45]!==Le?(De=(0,F.jsxs)(n.default,{style:D.titleRow,children:[Re,Te,Le]}),T[43]=Re,T[44]=Te,T[45]=Le,T[46]=De):De=T[46],T[47]!==V.foregroundMuted?(Ee=[D.subtitle,{color:V.foregroundMuted}],T[47]=V.foregroundMuted,T[48]=Ee):Ee=T[48];const Ge=q.length>0?`${q} \xb7 `:"";let Me,Ve,Be,We,Ke,Ue,Oe,$e,He,Ze,Xe,qe,Je,Qe,Ye,et,tt,rt,ot,nt,st,lt,at,it;T[49]!==E.firstSeen?(Me=R(E.firstSeen),T[49]=E.firstSeen,T[50]=Me):Me=T[50],T[51]!==E.firstSeen||T[52]!==E.lastSeen?(Ve=E.lastSeen>E.firstSeen?` \u2013 ${R(E.lastSeen)}`:"",T[51]=E.firstSeen,T[52]=E.lastSeen,T[53]=Ve):Ve=T[53],T[54]!==Ee||T[55]!==Ge||T[56]!==Me||T[57]!==Ve?(Be=(0,F.jsxs)(s.default,{style:Ee,children:[Ge,Me,Ve]}),T[54]=Ee,T[55]=Ge,T[56]=Me,T[57]=Ve,T[58]=Be):Be=T[58],T[59]!==De||T[60]!==Be?(We=(0,F.jsxs)(n.default,{style:D.headerText,children:[De,Be]}),T[59]=De,T[60]=Be,T[61]=We):We=T[61],T[62]===Symbol.for("react.memo_cache_sentinel")?(Ke=()=>re(!0),T[62]=Ke):Ke=T[62],T[63]!==B?(Ue=B("v2.tracks.metadata"),T[63]=B,T[64]=Ue):Ue=T[64],T[65]!==V.surface?(Oe=[D.iconBtn,{backgroundColor:V.surface}],T[65]=V.surface,T[66]=Oe):Oe=T[66],T[67]!==V.foreground?($e=(0,F.jsx)(h.Info,{size:18,color:V.foreground}),T[67]=V.foreground,T[68]=$e):$e=T[68],T[69]!==Ue||T[70]!==Oe||T[71]!==$e?(He=(0,F.jsx)(l.default,{onPress:Ke,hitSlop:10,accessibilityRole:"button",accessibilityLabel:Ue,style:Oe,children:$e}),T[69]=Ue,T[70]=Oe,T[71]=$e,T[72]=He):He=T[72],T[73]!==V.foreground||T[74]!==V.surface||T[75]!==M?(Ze=M?(0,F.jsx)(l.default,{onPress:M,hitSlop:10,style:[D.iconBtn,{backgroundColor:V.surface}],children:(0,F.jsx)(h.X,{size:20,color:V.foreground})}):null,T[73]=V.foreground,T[74]=V.surface,T[75]=M,T[76]=Ze):Ze=T[76],T[77]!==We||T[78]!==He||T[79]!==Ze?(Xe=(0,F.jsxs)(n.default,{style:D.header,children:[We,He,Ze]}),T[77]=We,T[78]=He,T[79]=Ze,T[80]=Xe):Xe=T[80],T[81]!==V.foregroundSubtle?(qe=[D.sectionLabel,{color:V.foregroundSubtle}],T[81]=V.foregroundSubtle,T[82]=qe):qe=T[82],T[83]!==B?(Je=B("v2.tracks.bestShot","Best shot"),T[83]=B,T[84]=Je):Je=T[84],T[85]!==qe||T[86]!==Je?(Qe=(0,F.jsx)(s.default,{style:qe,children:Je}),T[85]=qe,T[86]=Je,T[87]=Qe):Qe=T[87],T[88]===Symbol.for("react.memo_cache_sentinel")?(Ye=[D.hero,{backgroundColor:"#000"}],et=e=>Ae(e.nativeEvent.layout.width),T[88]=Ye,T[89]=et):(Ye=T[88],et=T[89]),T[90]!==J||T[91]!==we||T[92]!==ue||T[93]!==E.bestEventId?(tt=J>0&&we>0?(0,F.jsx)(x.ZoomableImage,{width:J,height:we,resetKey:`hero:${E.bestEventId}`,children:(0,F.jsx)(I.EventThumb,{event:ue,width:J,height:we,contentFit:"contain"})}):null,T[90]=J,T[91]=we,T[92]=ue,T[93]=E.bestEventId,T[94]=tt):tt=T[94],T[95]!==tt?(rt=(0,F.jsx)(n.default,{style:Ye,onLayout:et,children:tt}),T[95]=tt,T[96]=rt):rt=T[96],T[97]!==V.foregroundMuted||T[98]!==V.foregroundSubtle||T[99]!==J||T[100]!==pe||T[101]!==we||T[102]!==ie||T[103]!==se||T[104]!==Ne||T[105]!==B?(ot=ie.length>0?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(s.default,{style:[D.sectionLabel,{color:V.foregroundSubtle}],children:B("v2.tracks.media","Media")}),(0,F.jsx)(n.default,{style:[D.frame,{height:we,backgroundColor:"#000"}],children:null!==Ne&&we>0?(0,F.jsx)(x.ZoomableImage,{width:J,height:we,resetKey:`media:${pe??"none"}`,contentAspect:se,children:(0,F.jsx)(f.Image,{source:{uri:Ne},style:u.default.absoluteFill,contentFit:"contain",cachePolicy:"memory-disk",allowDownscaling:!0,recyclingKey:pe??void 0,onLoad:e=>{const{width:t,height:o}=e.source;t>0&&o>0&&le(t/o)}})}):(0,F.jsx)(n.default,{style:[u.default.absoluteFill,D.center],children:(0,F.jsx)(h.ImageOff,{size:40,color:V.foregroundSubtle})})}),ie.length>1?(0,F.jsxs)(s.default,{style:[D.counter,{color:V.foregroundMuted}],children:[Math.max(0,ie.findIndex(e=>e.key===pe))+1,"/",ie.length]}):null,(0,F.jsx)(c.default,{horizontal:!0,showsHorizontalScrollIndicator:!1,contentContainerStyle:D.strip,children:ie.map(e=>(0,F.jsx)(z,{file:e,selected:e.key===pe,onPress:()=>ne(e.key)},e.key))})]}):null,T[97]=V.foregroundMuted,T[98]=V.foregroundSubtle,T[99]=J,T[100]=pe,T[101]=we,T[102]=ie,T[103]=se,T[104]=Ne,T[105]=B,T[106]=ot):ot=T[106],T[107]!==V.backgroundElevated||T[108]!==V.foreground||T[109]!==V.foregroundMuted||T[110]!==V.foregroundSubtle||T[111]!==V.primary||T[112]!==V.primaryForeground||T[113]!==V.surface||T[114]!==me||T[115]!==he||T[116]!==B?(nt=he&&null!==me?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(s.default,{style:[D.sectionLabel,{color:V.foregroundSubtle}],children:B("v2.tracks.person")}),(0,F.jsxs)(n.default,{style:[D.personCard,{backgroundColor:V.surface}],children:[me.base64?(0,F.jsx)(f.Image,{source:{uri:`data:image/jpeg;base64,${me.base64}`},style:[D.personFace,{backgroundColor:V.backgroundElevated}],contentFit:"cover"}):(0,F.jsx)(n.default,{style:[D.personFace,D.personFaceEmpty,{backgroundColor:V.backgroundElevated}],children:(0,F.jsx)(h.UserRound,{size:20,color:V.foregroundMuted})}),(0,F.jsx)(s.default,{numberOfLines:1,style:[D.personName,{color:me.identityName?V.foreground:V.foregroundMuted}],children:me.identityName??B("v2.tracks.notAssigned")}),(0,F.jsxs)(l.default,{onPress:()=>ee(!0),accessibilityRole:"button",accessibilityLabel:B("v2.tracks.assignFaceTitle"),style:[D.assignBtn,{backgroundColor:V.primary}],children:[(0,F.jsx)(h.UserRoundPlus,{size:14,color:V.primaryForeground}),(0,F.jsx)(s.default,{style:[D.assignBtnText,{color:V.primaryForeground}],children:me.assigned?B("v2.tracks.changePerson"):B("v2.tracks.assignPerson")})]})]})]}):null,T[107]=V.backgroundElevated,T[108]=V.foreground,T[109]=V.foregroundMuted,T[110]=V.foregroundSubtle,T[111]=V.primary,T[112]=V.primaryForeground,T[113]=V.surface,T[114]=me,T[115]=he,T[116]=B,T[117]=nt):nt=T[117],T[118]!==V||T[119]!==B||T[120]!==E.zonesVisited?(st=E.zonesVisited.length>0?(0,F.jsx)(L,{label:B("v2.tracks.zones","Zones"),value:E.zonesVisited.join(", "),colors:V}):null,T[118]=V,T[119]=B,T[120]=E.zonesVisited,T[121]=st):st=T[121],T[122]!==V||T[123]!==B||T[124]!==E.audioLabels?(lt=E.audioLabels.length>0?(0,F.jsx)(L,{label:B("v2.tracks.audio","Audio"),value:E.audioLabels.join(", "),colors:V}):null,T[122]=V,T[123]=B,T[124]=E.audioLabels,T[125]=lt):lt=T[125],T[126]!==st||T[127]!==lt?(at=(0,F.jsxs)(n.default,{style:D.meta,children:[st,lt]}),T[126]=st,T[127]=lt,T[128]=at):at=T[128],T[129]!==Qe||T[130]!==rt||T[131]!==ot||T[132]!==nt||T[133]!==at?(it=(0,F.jsxs)(c.default,{contentContainerStyle:D.scroll,showsVerticalScrollIndicator:!1,children:[Qe,rt,ot,nt,at]}),T[129]=Qe,T[130]=rt,T[131]=ot,T[132]=nt,T[133]=at,T[134]=it):it=T[134];const dt=Y?me:null;let ct,ut;T[135]===Symbol.for("react.memo_cache_sentinel")?(ct=()=>ee(!1),T[135]=ct):ct=T[135],T[136]!==dt?(ut=(0,F.jsx)(j.FaceAssignSheet,{face:dt,onClose:ct}),T[136]=dt,T[137]=ut):ut=T[137];const ft=te?E:null,mt=ve?.confidence;let gt,ht,bt,yt;return T[138]===Symbol.for("react.memo_cache_sentinel")?(gt=()=>re(!1),T[138]=gt):gt=T[138],T[139]!==ae.mediaKeys||T[140]!==ft||T[141]!==mt?(ht=(0,F.jsx)(k.TrackMetadataSheet,{track:ft,confidence:mt,mediaKeys:ae.mediaKeys,onClose:gt}),T[139]=ae.mediaKeys,T[140]=ft,T[141]=mt,T[142]=ht):ht=T[142],T[143]!==V.primary||T[144]!==V.primaryForeground||T[145]!==Fe||T[146]!==G||T[147]!==B||T[148]!==E.firstSeen?(bt=G?(0,F.jsxs)(l.default,{onPress:()=>G(E.firstSeen),style:[D.seekBtn,{backgroundColor:V.primary,marginBottom:Fe}],children:[(0,F.jsx)(h.Crosshair,{size:18,color:V.primaryForeground}),(0,F.jsx)(s.default,{style:[D.seekText,{color:V.primaryForeground}],children:B("v2.theater.detailSeek","Go to this moment")})]}):null,T[143]=V.primary,T[144]=V.primaryForeground,T[145]=Fe,T[146]=G,T[147]=B,T[148]=E.firstSeen,T[149]=bt):bt=T[149],T[150]!==Xe||T[151]!==it||T[152]!==ut||T[153]!==ht||T[154]!==bt?(yt=(0,F.jsxs)(n.default,{style:D.root,children:[Xe,it,ut,ht,bt]}),T[150]=Xe,T[151]=it,T[152]=ut,T[153]=ht,T[154]=bt,T[155]=yt):yt=T[155],yt}),L=(0,o.memo)(function(e){const o=(0,t.c)(13),{label:l,value:c,colors:u}=e;let f,g,h,b,y;return o[0]!==u.foregroundMuted?(f=[D.metaLabel,{color:u.foregroundMuted}],o[0]=u.foregroundMuted,o[1]=f):f=o[1],o[2]!==l||o[3]!==f?(g=(0,F.jsx)(s.default,{style:f,children:l}),o[2]=l,o[3]=f,o[4]=g):g=o[4],o[5]!==u.foreground?(h=[D.metaValue,{color:u.foreground}],o[5]=u.foreground,o[6]=h):h=o[6],o[7]!==h||o[8]!==c?(b=(0,F.jsx)(s.default,{style:h,children:c}),o[7]=h,o[8]=c,o[9]=b):b=o[9],o[10]!==g||o[11]!==b?(y=(0,F.jsxs)(n.default,{style:D.metaRow,children:[g,b]}),o[10]=g,o[11]=b,o[12]=y):y=o[12],y}),D=u.default.create({root:{flex:1,paddingHorizontal:S.SPACING.md},header:{flexDirection:'row',alignItems:'center',justifyContent:'space-between',gap:S.SPACING.sm,paddingVertical:S.SPACING.sm},headerText:{flex:1},titleRow:{flexDirection:'row',alignItems:'center',gap:S.SPACING.sm},classDot:{width:8,height:8,borderRadius:4},title:{fontSize:16,fontWeight:'700',flexShrink:1},importance:{flexDirection:'row',alignItems:'center',gap:2,paddingHorizontal:5,paddingVertical:1,borderRadius:8},importanceText:{fontSize:10,fontWeight:'700',fontVariant:['tabular-nums']},subtitle:{fontSize:12,marginTop:2},iconBtn:{width:36,height:36,borderRadius:S.RADIUS.md,alignItems:'center',justifyContent:'center'},scroll:{paddingBottom:S.SPACING.md},sectionLabel:{fontSize:11,fontWeight:'700',textTransform:'uppercase',letterSpacing:.4,marginTop:S.SPACING.sm,marginBottom:S.SPACING.xs},hero:{width:'100%',aspectRatio:N,borderRadius:S.RADIUS.md,overflow:'hidden'},frame:{width:'100%',borderRadius:S.RADIUS.md,overflow:'hidden'},center:{alignItems:'center',justifyContent:'center'},counter:{fontSize:11,fontVariant:['tabular-nums'],textAlign:'center',marginTop:S.SPACING.xs},strip:{gap:S.SPACING.sm,paddingVertical:S.SPACING.sm,paddingRight:S.SPACING.md},tileWrap:{width:64,alignItems:'center',gap:2},tile:{width:64,height:64,borderRadius:S.RADIUS.sm,overflow:'hidden'},tileLabel:{fontSize:10,maxWidth:72,textAlign:'center'},personCard:{flexDirection:'row',alignItems:'center',gap:S.SPACING.md,padding:S.SPACING.sm,borderRadius:S.RADIUS.md},personFace:{width:44,height:44,borderRadius:S.RADIUS.md},personFaceEmpty:{alignItems:'center',justifyContent:'center'},personName:{flex:1,fontSize:14,fontWeight:'600'},assignBtn:{flexDirection:'row',alignItems:'center',gap:4,paddingHorizontal:S.SPACING.md,paddingVertical:S.SPACING.sm,borderRadius:S.RADIUS.md},assignBtnText:{fontSize:12,fontWeight:'700'},meta:{marginTop:S.SPACING.md,gap:S.SPACING.xs},metaRow:{flexDirection:'row',gap:S.SPACING.sm},metaLabel:{fontSize:12,width:92},metaValue:{fontSize:12,flex:1,fontWeight:'500'},seekBtn:{flexDirection:'row',alignItems:'center',justifyContent:'center',gap:S.SPACING.xs,paddingVertical:S.SPACING.sm+2,borderRadius:S.RADIUS.md},seekText:{fontSize:15,fontWeight:'700'}})},3239,[15,17,20,112,252,147,33,3053,466,813,786,2587,2589,3231,3240,3373,3374,3376,3380,3381,3375,3167,3237,10]);
15645
+ __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,"ZoomableImage",{enumerable:!0,get:function(){return O}});var t=r(d[0]);r(d[1]);var l=e(r(d[2])),s=e(r(d[3])),n=r(d[4]),u=r(d[5]),v=r(d[6]),c=e(v),o=r(d[7]),_=r(d[8]),h=r(d[9]);const x={code:"function ZoomableImageTsx1(){const{savedScale,scale,savedTx,tx,savedTy,ty}=this.__closure;savedScale.value=scale.value;savedTx.value=tx.value;savedTy.value=ty.value;}"},f={code:"function ZoomableImageTsx2(e_0){const{w,h,pinchStart,clampZoom,scale,MIN_ZOOM,tx,ty,aspect,savedTx,savedTy}=this.__closure;const vw=w.value;const vh=h.value;if(vw<=0||vh<=0)return;if(!Number.isFinite(e_0.focalX)||!Number.isFinite(e_0.focalY)||!Number.isFinite(e_0.scale))return;const s0=pinchStart.value;const s1=clampZoom(s0*e_0.scale);scale.value=s1;if(s1<=MIN_ZOOM){tx.value=0;ty.value=0;return;}const dx=e_0.focalX-vw/2;const dy=e_0.focalY-vh/2;const k=s1/s0;const cw=aspect.value>0?Math.min(vw,vh*aspect.value):vw;const ch=aspect.value>0?Math.min(vh,vw/aspect.value):vh;const limX=Math.max(0,(s1*cw-vw)/2);const limY=Math.max(0,(s1*ch-vh)/2);tx.value=Math.max(-limX,Math.min(limX,dx-k*(dx-savedTx.value)));ty.value=Math.max(-limY,Math.min(limY,dy-k*(dy-savedTy.value)));}"},y={code:"function ZoomableImageTsx3(){const{pinchStart,savedScale}=this.__closure;pinchStart.value=savedScale.value;}"},M={code:"function ZoomableImageTsx4(){const{savedTx,tx,savedTy,ty}=this.__closure;savedTx.value=tx.value;savedTy.value=ty.value;}"},T={code:"function ZoomableImageTsx5(e_1){const{scale,MIN_ZOOM,w,h,aspect,tx,savedTx,ty,savedTy}=this.__closure;if(scale.value<=MIN_ZOOM)return;if(!Number.isFinite(e_1.translationX)||!Number.isFinite(e_1.translationY))return;const s=scale.value;const vw_0=w.value;const vh_0=h.value;const cw_0=aspect.value>0?Math.min(vw_0,vh_0*aspect.value):vw_0;const ch_0=aspect.value>0?Math.min(vh_0,vw_0/aspect.value):vh_0;const limX_0=Math.max(0,(s*cw_0-vw_0)/2);const limY_0=Math.max(0,(s*ch_0-vh_0)/2);tx.value=Math.max(-limX_0,Math.min(limX_0,savedTx.value+e_1.translationX));ty.value=Math.max(-limY_0,Math.min(limY_0,savedTy.value+e_1.translationY));}"},w={code:"function ZoomableImageTsx6(){const{scale,MIN_ZOOM,withTiming,tx,ty,savedScale,savedTx,savedTy}=this.__closure;if(scale.value>MIN_ZOOM){scale.value=withTiming(1);tx.value=withTiming(0);ty.value=withTiming(0);savedScale.value=1;savedTx.value=0;savedTy.value=0;}else{scale.value=withTiming(2);savedScale.value=2;}}"},p={code:"function ZoomableImageTsx7(){const{tx,ty,scale}=this.__closure;return{transform:[{translateX:tx.value},{translateY:ty.value},{scale:scale.value}]};}"},O=(0,t.memo)(function({width:e,height:l,resetKey:O,contentAspect:Z,children:b}){const k=(0,v.useSharedValue)(1),I=(0,v.useSharedValue)(1),N=(0,v.useSharedValue)(0),Y=(0,v.useSharedValue)(0),X=(0,v.useSharedValue)(0),E=(0,v.useSharedValue)(0),D=(0,v.useSharedValue)(1),V=(0,v.useSharedValue)(0),F=(0,v.useSharedValue)(0),j=(0,v.useSharedValue)(0),H=(0,t.useRef)(null);(0,t.useEffect)(()=>{j.value='number'==typeof Z&&Z>0?Z:0},[Z,j]),(0,t.useEffect)(()=>{k.value=1,I.value=1,N.value=0,Y.value=0,X.value=0,E.value=0},[O,k,I,N,Y,X,E]);const P=(0,t.useCallback)(e=>{V.value=e.nativeEvent.layout.width,F.value=e.nativeEvent.layout.height},[V,F]),C=(0,t.useMemo)(()=>n.Gesture.Pinch().onStart((function({_worklet_13594186911682_init_data:e,pinchStart:t,savedScale:l}){const s=function(){t.value=l.value};return s.__closure={pinchStart:t,savedScale:l},s.__workletHash=0xc5d24ae8fc2,s.__initData=e,s})({_worklet_13594186911682_init_data:y,pinchStart:D,savedScale:I})).onUpdate((function({_worklet_6430336451063_init_data:e,w:t,h:l,pinchStart:s,clampZoom:n,scale:u,MIN_ZOOM:v,tx:c,ty:o,aspect:_,savedTx:h,savedTy:x}){const f=function(e){const f=t.value,y=l.value;if(f<=0||y<=0)return;if(!Number.isFinite(e.focalX)||!Number.isFinite(e.focalY)||!Number.isFinite(e.scale))return;const M=s.value,T=n(M*e.scale);if(u.value=T,T<=v)return c.value=0,void(o.value=0);const w=e.focalX-f/2,p=e.focalY-y/2,O=T/M,S=_.value>0?Math.min(f,y*_.value):f,Z=_.value>0?Math.min(y,f/_.value):y,b=Math.max(0,(T*S-f)/2),k=Math.max(0,(T*Z-y)/2);c.value=Math.max(-b,Math.min(b,w-O*(w-h.value))),o.value=Math.max(-k,Math.min(k,p-O*(p-x.value)))};return f.__closure={w:t,h:l,pinchStart:s,clampZoom:n,scale:u,MIN_ZOOM:v,tx:c,ty:o,aspect:_,savedTx:h,savedTy:x},f.__workletHash=6430336451063,f.__initData=e,f})({_worklet_6430336451063_init_data:f,w:V,h:F,pinchStart:D,clampZoom:_.clampZoom,scale:k,MIN_ZOOM:_.MIN_ZOOM,tx:N,ty:Y,aspect:j,savedTx:X,savedTy:E})).onEnd((function({_worklet_5046326524640_init_data:e,savedScale:t,scale:l,savedTx:s,tx:n,savedTy:u,ty:v}){const c=function(){t.value=l.value,s.value=n.value,u.value=v.value};return c.__closure={savedScale:t,scale:l,savedTx:s,tx:n,savedTy:u,ty:v},c.__workletHash=5046326524640,c.__initData=e,c})({_worklet_5046326524640_init_data:x,savedScale:I,scale:k,savedTx:X,tx:N,savedTy:E,ty:Y})),[D,I,V,F,j,k,N,Y,X,E]),G=(0,t.useMemo)(()=>n.Gesture.Pan().maxPointers(1).minDistance(2).onUpdate((function({_worklet_15203611771623_init_data:e,scale:t,MIN_ZOOM:l,w:s,h:n,aspect:u,tx:v,savedTx:c,ty:o,savedTy:_}){const h=function(e){if(t.value<=l)return;if(!Number.isFinite(e.translationX)||!Number.isFinite(e.translationY))return;const h=t.value,x=s.value,f=n.value,y=u.value>0?Math.min(x,f*u.value):x,M=u.value>0?Math.min(f,x/u.value):f,T=Math.max(0,(h*y-x)/2),w=Math.max(0,(h*M-f)/2);v.value=Math.max(-T,Math.min(T,c.value+e.translationX)),o.value=Math.max(-w,Math.min(w,_.value+e.translationY))};return h.__closure={scale:t,MIN_ZOOM:l,w:s,h:n,aspect:u,tx:v,savedTx:c,ty:o,savedTy:_},h.__workletHash=0xdd3dde102e7,h.__initData=e,h})({_worklet_15203611771623_init_data:T,scale:k,MIN_ZOOM:_.MIN_ZOOM,w:V,h:F,aspect:j,tx:N,savedTx:X,ty:Y,savedTy:E})).onEnd((function({_worklet_10215814461155_init_data:e,savedTx:t,tx:l,savedTy:s,ty:n}){const u=function(){t.value=l.value,s.value=n.value};return u.__closure={savedTx:t,tx:l,savedTy:s,ty:n},u.__workletHash=0x94a8dfdf6e3,u.__initData=e,u})({_worklet_10215814461155_init_data:M,savedTx:X,tx:N,savedTy:E,ty:Y})),[k,V,F,j,N,Y,X,E]),L=(0,t.useMemo)(()=>n.Gesture.Tap().numberOfTaps(2).maxDuration(300).onEnd((function({_worklet_358022219460_init_data:e,scale:t,MIN_ZOOM:l,withTiming:s,tx:n,ty:u,savedScale:v,savedTx:c,savedTy:o}){const _=function(){t.value>l?(t.value=s(1),n.value=s(0),u.value=s(0),v.value=1,c.value=0,o.value=0):(t.value=s(2),v.value=2)};return _.__closure={scale:t,MIN_ZOOM:l,withTiming:s,tx:n,ty:u,savedScale:v,savedTx:c,savedTy:o},_.__workletHash=358022219460,_.__initData=e,_})({_worklet_358022219460_init_data:w,scale:k,MIN_ZOOM:_.MIN_ZOOM,withTiming:v.withTiming,tx:N,ty:Y,savedScale:I,savedTx:X,savedTy:E})),[k,N,Y,I,X,E]),B=(0,t.useMemo)(()=>n.Gesture.Simultaneous(C,G,L),[C,G,L]);(0,t.useEffect)(()=>{const e=H.current;if(null===e||'function'!=typeof e.addEventListener)return;const t=e=>{e.preventDefault();const t=(0,_.zoomBy)(k.value,e.deltaY<0?1.12:.8928571428571428);k.value=t,I.value=t;const l=(0,_.containBox)(V.value,F.value,j.value);N.value=(0,_.clampPanContent)(N.value,V.value,l.width,t),Y.value=(0,_.clampPanContent)(Y.value,F.value,l.height,t),X.value=N.value,E.value=Y.value};return e.addEventListener('wheel',t,{passive:!1}),()=>e.removeEventListener('wheel',t)},[k,I,N,Y,X,E,V,F,j]);const z=(0,v.useAnimatedStyle)((function({_worklet_12060236268779_init_data:e,tx:t,ty:l,scale:s}){const n=()=>({transform:[{translateX:t.value},{translateY:l.value},{scale:s.value}]});return n.__closure={tx:t,ty:l,scale:s},n.__workletHash=0xaf7fe1944eb,n.__initData=e,n})({_worklet_12060236268779_init_data:p,tx:N,ty:Y,scale:k})),A=(0,h.jsx)(s.default,{style:[S.fallback,{width:e,height:l}],children:(0,h.jsx)(u.ImageOff,{size:40,color:"#6b7280"})});return(0,h.jsx)(s.default,{ref:H,onLayout:P,style:[S.container,{width:e,height:l}],children:(0,h.jsx)(n.GestureDetector,{gesture:B,children:(0,h.jsx)(c.default.View,{style:[{width:e,height:l},z],children:(0,h.jsx)(o.RenderErrorBoundary,{resetKey:O,fallback:A,children:b})})})})}),S=l.default.create({container:{overflow:'hidden',backgroundColor:'#000'},fallback:{alignItems:'center',justifyContent:'center',backgroundColor:'#000'}})},3240,[17,136,33,20,3241,813,2714,3371,3372,10]);
15646
+ __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,"Directions",{enumerable:!0,get:function(){return n.Directions}}),Object.defineProperty(_e,"State",{enumerable:!0,get:function(){return u.State}}),Object.defineProperty(_e,"PointerType",{enumerable:!0,get:function(){return o.PointerType}}),Object.defineProperty(_e,"gestureHandlerRootHOC",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(_e,"GestureHandlerRootView",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(_e,"MouseButton",{enumerable:!0,get:function(){return l.MouseButton}}),Object.defineProperty(_e,"TapGestureHandler",{enumerable:!0,get:function(){return f.TapGestureHandler}}),Object.defineProperty(_e,"ForceTouchGestureHandler",{enumerable:!0,get:function(){return p.ForceTouchGestureHandler}}),Object.defineProperty(_e,"LongPressGestureHandler",{enumerable:!0,get:function(){return P.LongPressGestureHandler}}),Object.defineProperty(_e,"PanGestureHandler",{enumerable:!0,get:function(){return y.PanGestureHandler}}),Object.defineProperty(_e,"PinchGestureHandler",{enumerable:!0,get:function(){return s.PinchGestureHandler}}),Object.defineProperty(_e,"RotationGestureHandler",{enumerable:!0,get:function(){return O.RotationGestureHandler}}),Object.defineProperty(_e,"FlingGestureHandler",{enumerable:!0,get:function(){return j.FlingGestureHandler}}),Object.defineProperty(_e,"createNativeWrapper",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(_e,"GestureDetector",{enumerable:!0,get:function(){return h.GestureDetector}}),Object.defineProperty(_e,"Gesture",{enumerable:!0,get:function(){return G.GestureObjects}}),Object.defineProperty(_e,"NativeViewGestureHandler",{enumerable:!0,get:function(){return T.NativeViewGestureHandler}}),Object.defineProperty(_e,"RawButton",{enumerable:!0,get:function(){return B.RawButton}}),Object.defineProperty(_e,"BaseButton",{enumerable:!0,get:function(){return B.BaseButton}}),Object.defineProperty(_e,"RectButton",{enumerable:!0,get:function(){return B.RectButton}}),Object.defineProperty(_e,"BorderlessButton",{enumerable:!0,get:function(){return B.BorderlessButton}}),Object.defineProperty(_e,"PureNativeButton",{enumerable:!0,get:function(){return B.PureNativeButton}}),Object.defineProperty(_e,"TouchableHighlight",{enumerable:!0,get:function(){return w.TouchableHighlight}}),Object.defineProperty(_e,"TouchableNativeFeedback",{enumerable:!0,get:function(){return w.TouchableNativeFeedback}}),Object.defineProperty(_e,"TouchableOpacity",{enumerable:!0,get:function(){return w.TouchableOpacity}}),Object.defineProperty(_e,"TouchableWithoutFeedback",{enumerable:!0,get:function(){return w.TouchableWithoutFeedback}}),Object.defineProperty(_e,"ScrollView",{enumerable:!0,get:function(){return v.ScrollView}}),Object.defineProperty(_e,"Switch",{enumerable:!0,get:function(){return v.Switch}}),Object.defineProperty(_e,"TextInput",{enumerable:!0,get:function(){return v.TextInput}}),Object.defineProperty(_e,"DrawerLayoutAndroid",{enumerable:!0,get:function(){return v.DrawerLayoutAndroid}}),Object.defineProperty(_e,"FlatList",{enumerable:!0,get:function(){return v.FlatList}}),Object.defineProperty(_e,"RefreshControl",{enumerable:!0,get:function(){return v.RefreshControl}}),Object.defineProperty(_e,"Text",{enumerable:!0,get:function(){return F.Text}}),Object.defineProperty(_e,"HoverEffect",{enumerable:!0,get:function(){return R.HoverEffect}}),Object.defineProperty(_e,"Swipeable",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(_e,"Pressable",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(_e,"DrawerLayout",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(_e,"enableExperimentalWebImplementation",{enumerable:!0,get:function(){return S.enableExperimentalWebImplementation}}),Object.defineProperty(_e,"enableLegacyWebImplementation",{enumerable:!0,get:function(){return S.enableLegacyWebImplementation}});var t=r(d[0]),n=r(d[1]),u=r(d[2]),o=r(d[3]),c=e(r(d[4])),b=e(r(d[5])),l=r(d[6]),f=r(d[7]),p=r(d[8]),P=r(d[9]),y=r(d[10]),s=r(d[11]),O=r(d[12]),j=r(d[13]),H=e(r(d[14])),h=r(d[15]),G=r(d[16]),T=r(d[17]),B=r(d[18]),w=r(d[19]),v=r(d[20]),F=r(d[21]),R=r(d[22]),L=e(r(d[23])),D=e(r(d[24])),N=e(r(d[25])),S=r(d[26]);(0,t.initialize)()},3241,[3242,3272,3244,3258,3302,3306,3264,3308,3316,3318,3319,3320,3321,3322,3323,3325,3341,3324,3352,3354,3360,3361,3331,3362,3363,3370,3251]);
15647
+ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.initialize=function(){(0,t.startListening)()},_e.maybeInitializeFabric=function(){(0,u.isFabric)()&&!s&&(l.default.install(),s=!0)};var e,t=r(d[0]),n=r(d[1]),l=(e=n)&&e.__esModule?e:{default:e},u=r(d[2]);let s=!1},3242,[3243,3250,3247]);
15648
+ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.onGestureHandlerEvent=C,_e.startListening=function(){f(),u=t.default.addListener('onGestureHandlerEvent',C),T=t.default.addListener('onGestureHandlerStateChange',C)},_e.stopListening=f;var e,n=r(d[0]),t=(e=n)&&e.__esModule?e:{default:e},l=r(d[1]),s=r(d[2]),o=r(d[3]),h=r(d[4]);let u=null,T=null;const E=new Map,c=[];function S(e){return null!=e.oldState}function v(e){return null!=e.eventType}function C(e){const n=(0,o.findHandler)(e.handlerTag);if(n)if(S(e))e.oldState===l.State.UNDETERMINED&&e.state===l.State.BEGAN?n.handlers.onBegin?.(e):e.oldState!==l.State.BEGAN&&e.oldState!==l.State.UNDETERMINED||e.state!==l.State.ACTIVE?e.oldState!==e.state&&e.state===l.State.END?(e.oldState===l.State.ACTIVE&&n.handlers.onEnd?.(e,!0),n.handlers.onFinalize?.(e,!0),c[n.handlers.handlerTag]=void 0):e.state!==l.State.FAILED&&e.state!==l.State.CANCELLED||e.oldState===e.state||(e.oldState===l.State.ACTIVE&&n.handlers.onEnd?.(e,!1),n.handlers.onFinalize?.(e,!1),E.delete(e.handlerTag),c[n.handlers.handlerTag]=void 0):(n.handlers.onStart?.(e),c[n.handlers.handlerTag]=e);else if(v(e)){E.has(e.handlerTag)||E.set(e.handlerTag,h.GestureStateManager.create(e.handlerTag));const t=E.get(e.handlerTag);switch(e.eventType){case s.TouchEventType.TOUCHES_DOWN:n.handlers?.onTouchesDown?.(e,t);break;case s.TouchEventType.TOUCHES_MOVE:n.handlers?.onTouchesMove?.(e,t);break;case s.TouchEventType.TOUCHES_UP:n.handlers?.onTouchesUp?.(e,t);break;case s.TouchEventType.TOUCHES_CANCELLED:n.handlers?.onTouchesCancelled?.(e,t)}}else n.handlers.onUpdate?.(e),n.handlers.onChange&&n.handlers.changeEventCalculator&&(n.handlers.onChange?.(n.handlers.changeEventCalculator?.(e,c[n.handlers.handlerTag])),c[n.handlers.handlerTag]=e);else{const n=(0,o.findOldGestureHandler)(e.handlerTag);if(n){const t={nativeEvent:e};return void(S(e)?n.onGestureStateChange(t):n.onGestureEvent(t))}}}function f(){u&&(u.remove(),u=null),T&&(T.remove(),T=null)}},3243,[274,3244,3245,3246,3248]);
15649
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"State",{enumerable:!0,get:function(){return t}});const t={UNDETERMINED:0,FAILED:1,BEGAN:2,CANCELLED:3,ACTIVE:4,END:5}},3244,[]);
15650
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"TouchEventType",{enumerable:!0,get:function(){return t}});const t={UNDETERMINED:0,TOUCHES_DOWN:1,TOUCHES_MOVE:2,TOUCHES_UP:3,TOUCHES_CANCELLED:4}},3245,[]);
15651
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"handlerIDToTag",{enumerable:!0,get:function(){return t}}),e.registerHandler=function(t,l,o){u.set(t,l),(0,n.isTestEnv)()&&o&&s.set(o,t)},e.registerOldGestureHandler=function(n,t){l.set(n,t)},e.unregisterOldGestureHandler=function(n){l.delete(n)},e.unregisterHandler=function(t,l){u.delete(t),(0,n.isTestEnv)()&&l&&s.delete(l)},e.findHandler=o,e.findOldGestureHandler=function(n){return l.get(n)},e.findHandlerByTestID=function(n){const t=s.get(n);if(void 0!==t)return o(t)??null;return null};var n=r(d[0]);const t={},u=new Map,l=new Map,s=new Map;function o(n){return u.get(n)}},3246,[3247]);
15652
+ __d(function(g,r,_i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.toArray=function(e){if(!Array.isArray(e))return[e];return e},_e.withPrevAndCurrent=function(e,t){const n=[null],u=[...e],o=[];return u.forEach((e,u)=>{const i=n[u],c=t(i,e);n.push(c),o.push(c)}),o},_e.hasProperty=u,_e.isTestEnv=function(){return u(g,'process')&&!1},_e.tagMessage=function(e){return`[react-native-gesture-handler] ${e}`},_e.isFabric=function(){return!!g?.nativeFabricUIManager},_e.isReact19=function(){return n.default.version.startsWith('19.')},_e.isRemoteDebuggingEnabled=function(){const e=g;return!(e.nativeCallSyncHook&&!e.__REMOTEDEV__||e.RN$Bridgeless)},_e.deepEqual=function e(t,n){if(t===n)return!0;if('object'!=typeof t||'object'!=typeof n||null===t||null===n)return!1;const u=Object.keys(t),o=Object.keys(n);if(u.length!==o.length)return!1;for(const i of u)if(!o.includes(i)||!e(t[i],n[i]))return!1;return!0},Object.defineProperty(_e,"INT32_MAX",{enumerable:!0,get:function(){return o}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e};function u(e,t){return Object.prototype.hasOwnProperty.call(e,t)}const o=2147483647},3247,[17]);
15653
+ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"GestureStateManager",{enumerable:!0,get:function(){return l}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e};const l={create:e=>({handlerTag:e,begin:()=>{n.default.getHandler(e).begin()},activate:()=>{n.default.getHandler(e).activate(!0)},fail:()=>{n.default.getHandler(e).fail()},end:()=>{n.default.getHandler(e).end()}})}},3248,[3249]);
15654
+ __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 t}});class t{static gestures={};static getHandler(t){if(t in this.gestures)return this.gestures[t];throw new Error(`No handler for tag ${t}`)}static createGestureHandler(t,s){if(t in this.gestures)throw new Error(`Handler with tag ${t} already exists. Please ensure that no Gesture instance is used across multiple GestureDetectors.`);this.gestures[t]=s,this.gestures[t].handlerTag=t}static dropGestureHandler(t){t in this.gestures&&(this.gestures[t].onDestroy(),delete this.gestures[t])}static get nodes(){return Object.assign({},this.gestures)}}},3249,[]);
15655
+ __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,"default",{enumerable:!0,get:function(){return f}});var t=e(r(_d[0])),n=r(_d[1]),d=r(_d[2]),l=e(r(_d[3])),o=e(r(_d[4])),s=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var d=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,d.get?d:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[5])),u=r(_d[6]);let c=!1;var f={handleSetJSResponder(e,t){console.warn('handleSetJSResponder: ',e,t)},handleClearJSResponder(){console.warn('handleClearJSResponder: ')},createGestureHandler(e,t,c){if((0,n.isNewWebImplementationEnabled)()){if(!(e in d.Gestures))throw new Error(`react-native-gesture-handler: ${e} is not supported on web.`);const n=d.Gestures[e];o.default.createGestureHandler(t,new n(new u.GestureHandlerWebDelegate)),l.default.instance.configureInteractions(o.default.getHandler(t),c)}else{if(!(e in d.HammerGestures))throw new Error(`react-native-gesture-handler: ${e} is not supported on web.`);const n=d.HammerGestures[e];s.createGestureHandler(t,new n)}this.updateGestureHandler(t,c)},attachGestureHandler(e,d,l,u){if(!(d instanceof Element||d instanceof t.default.Component)){c=!0;const t=((0,n.isNewWebImplementationEnabled)()?o.default.getHandler(e):s.getHandler(e)).constructor.name;throw new Error(`${t} with tag ${e} received child that is not valid HTML element.`)}(0,n.isNewWebImplementationEnabled)()?o.default.getHandler(e).init(d,u):s.getHandler(e).setView(d,u)},updateGestureHandler(e,t){(0,n.isNewWebImplementationEnabled)()?(o.default.getHandler(e).updateGestureConfig(t),l.default.instance.configureInteractions(o.default.getHandler(e),t)):s.getHandler(e).updateGestureConfig(t)},getGestureHandlerNode:e=>(0,n.isNewWebImplementationEnabled)()?o.default.getHandler(e):s.getHandler(e),dropGestureHandler(e){c||((0,n.isNewWebImplementationEnabled)()?o.default.dropGestureHandler(e):s.dropGestureHandler(e))},flushOperations(){}}},3250,[17,3251,3252,3263,3249,3283,3296]);
15656
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.enableExperimentalWebImplementation=function(t=!0){console.warn((0,n.tagMessage)('New web implementation is enabled by default. This function will be removed in Gesture Handler 3.'))},e.enableLegacyWebImplementation=function(o=!0){if(console.warn((0,n.tagMessage)('Legacy web implementation is deprecated. This function will be removed in Gesture Handler 3.')),t===!o)return;if(l)return void console.error('Some parts of this application have already started using the new gesture handler implementation. No changes will be applied. You can try enabling legacy implementation earlier.');t=!o},e.isNewWebImplementationEnabled=function(){return l=!0,t},r(d[0]);var n=r(d[1]);let t=!0,l=!1},3251,[136,3247]);
15657
+ __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,"Gestures",{enumerable:!0,get:function(){return y}}),Object.defineProperty(_e,"HammerGestures",{enumerable:!0,get:function(){return M}});var t=e(r(d[0])),u=e(r(d[1])),n=e(r(d[2])),l=e(r(d[3])),s=e(r(d[4])),f=e(r(d[5])),G=e(r(d[6])),H=e(r(d[7])),o=e(r(d[8])),c=e(r(d[9])),P=e(r(d[10])),_=e(r(d[11])),b=e(r(d[12])),p=e(r(d[13])),v=e(r(d[14])),j=e(r(d[15]));const y={NativeViewGestureHandler:G.default,PanGestureHandler:t.default,TapGestureHandler:u.default,LongPressGestureHandler:n.default,PinchGestureHandler:l.default,RotationGestureHandler:s.default,FlingGestureHandler:f.default,ManualGestureHandler:H.default,HoverGestureHandler:o.default},M={NativeViewGestureHandler:c.default,PanGestureHandler:P.default,TapGestureHandler:_.default,LongPressGestureHandler:b.default,PinchGestureHandler:p.default,RotationGestureHandler:v.default,FlingGestureHandler:j.default}},3252,[3253,3265,3266,3267,3269,3271,3275,3276,3277,3278,3287,3289,3290,3291,3293,3294]);
15658
+ __d(function(g,r,i,a,m,_e,d){"use strict";const t=["enabled"];function e(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return E}});var s=e(r(d[0])),n=r(d[1]),o=r(d[2]),h=r(d[3]),f=e(r(d[4]));const c=o.DEFAULT_TOUCH_SLOP*o.DEFAULT_TOUCH_SLOP;class E extends f.default{customActivationProperties=['activeOffsetXStart','activeOffsetXEnd','failOffsetXStart','failOffsetXEnd','activeOffsetYStart','activeOffsetYEnd','failOffsetYStart','failOffsetYEnd','minVelocityX','minVelocityY','minVelocity'];velocityX=0;velocityY=0;minDistSq=c;activeOffsetXStart=-Number.MAX_SAFE_INTEGER;activeOffsetXEnd=Number.MIN_SAFE_INTEGER;failOffsetXStart=Number.MIN_SAFE_INTEGER;failOffsetXEnd=Number.MAX_SAFE_INTEGER;activeOffsetYStart=Number.MAX_SAFE_INTEGER;activeOffsetYEnd=Number.MIN_SAFE_INTEGER;failOffsetYStart=Number.MIN_SAFE_INTEGER;failOffsetYEnd=Number.MAX_SAFE_INTEGER;minVelocityX=Number.MAX_SAFE_INTEGER;minVelocityY=Number.MAX_SAFE_INTEGER;minVelocitySq=Number.MAX_SAFE_INTEGER;minPointers=1;maxPointers=10;startX=0;startY=0;offsetX=0;offsetY=0;lastX=0;lastY=0;activateAfterLongPress=0;activationTimeout=0;enableTrackpadTwoFingerGesture=!1;endWheelTimeout=0;wheelDevice=h.WheelDevice.UNDETERMINED;updateGestureConfig(e){let{enabled:n=!0}=e,o=(0,s.default)(e,t);this.resetConfig(),super.updateGestureConfig(Object.assign({enabled:n},o)),this.checkCustomActivationCriteria(this.customActivationProperties),void 0!==this.config.minDist?this.minDistSq=this.config.minDist*this.config.minDist:this.hasCustomActivationCriteria&&(this.minDistSq=Number.MAX_SAFE_INTEGER),void 0!==this.config.minPointers&&(this.minPointers=this.config.minPointers),void 0!==this.config.maxPointers&&(this.maxPointers=this.config.maxPointers),void 0!==this.config.minVelocity&&(this.minVelocityX=this.config.minVelocity,this.minVelocityY=this.config.minVelocity),void 0!==this.config.minVelocityX&&(this.minVelocityX=this.config.minVelocityX),void 0!==this.config.minVelocityY&&(this.minVelocityY=this.config.minVelocityY),void 0!==this.config.activateAfterLongPress&&(this.activateAfterLongPress=this.config.activateAfterLongPress),void 0!==this.config.activeOffsetXStart&&(this.activeOffsetXStart=this.config.activeOffsetXStart,void 0===this.config.activeOffsetXEnd&&(this.activeOffsetXEnd=Number.MAX_SAFE_INTEGER)),void 0!==this.config.activeOffsetXEnd&&(this.activeOffsetXEnd=this.config.activeOffsetXEnd,void 0===this.config.activeOffsetXStart&&(this.activeOffsetXStart=Number.MIN_SAFE_INTEGER)),void 0!==this.config.failOffsetXStart&&(this.failOffsetXStart=this.config.failOffsetXStart,void 0===this.config.failOffsetXEnd&&(this.failOffsetXEnd=Number.MAX_SAFE_INTEGER)),void 0!==this.config.failOffsetXEnd&&(this.failOffsetXEnd=this.config.failOffsetXEnd,void 0===this.config.failOffsetXStart&&(this.failOffsetXStart=Number.MIN_SAFE_INTEGER)),void 0!==this.config.activeOffsetYStart&&(this.activeOffsetYStart=this.config.activeOffsetYStart,void 0===this.config.activeOffsetYEnd&&(this.activeOffsetYEnd=Number.MAX_SAFE_INTEGER)),void 0!==this.config.activeOffsetYEnd&&(this.activeOffsetYEnd=this.config.activeOffsetYEnd,void 0===this.config.activeOffsetYStart&&(this.activeOffsetYStart=Number.MIN_SAFE_INTEGER)),void 0!==this.config.failOffsetYStart&&(this.failOffsetYStart=this.config.failOffsetYStart,void 0===this.config.failOffsetYEnd&&(this.failOffsetYEnd=Number.MAX_SAFE_INTEGER)),void 0!==this.config.failOffsetYEnd&&(this.failOffsetYEnd=this.config.failOffsetYEnd,void 0===this.config.failOffsetYStart&&(this.failOffsetYStart=Number.MIN_SAFE_INTEGER)),void 0!==this.config.enableTrackpadTwoFingerGesture&&(this.enableTrackpadTwoFingerGesture=this.config.enableTrackpadTwoFingerGesture)}resetConfig(){super.resetConfig(),this.activeOffsetXStart=-Number.MAX_SAFE_INTEGER,this.activeOffsetXEnd=Number.MIN_SAFE_INTEGER,this.failOffsetXStart=Number.MIN_SAFE_INTEGER,this.failOffsetXEnd=Number.MAX_SAFE_INTEGER,this.activeOffsetYStart=Number.MAX_SAFE_INTEGER,this.activeOffsetYEnd=Number.MIN_SAFE_INTEGER,this.failOffsetYStart=Number.MIN_SAFE_INTEGER,this.failOffsetYEnd=Number.MAX_SAFE_INTEGER,this.minVelocityX=Number.MAX_SAFE_INTEGER,this.minVelocityY=Number.MAX_SAFE_INTEGER,this.minVelocitySq=Number.MAX_SAFE_INTEGER,this.minDistSq=c,this.minPointers=1,this.maxPointers=10,this.activateAfterLongPress=0}transformNativeEvent(){const t=this.getTranslationX(),e=this.getTranslationY();return Object.assign({},super.transformNativeEvent(),{translationX:isNaN(t)?0:t,translationY:isNaN(e)?0:e,velocityX:this.velocityX,velocityY:this.velocityY,stylusData:this.stylusData})}getTranslationX(){return this.lastX-this.startX+this.offsetX}getTranslationY(){return this.lastY-this.startY+this.offsetY}clearActivationTimeout(){clearTimeout(this.activationTimeout)}updateLastCoords(){const{x:t,y:e}=this.tracker.getAbsoluteCoordsAverage();this.lastX=t,this.lastY=e}updateVelocity(t){const e=this.tracker.getVelocity(t);this.velocityX=e?.x??0,this.velocityY=e?.y??0}onPointerDown(t){this.isButtonInConfig(t.button)&&(this.tracker.addToTracker(t),this.stylusData=t.stylusData,super.onPointerDown(t),this.updateLastCoords(),this.startX=this.lastX,this.startY=this.lastY,this.tryBegin(t),this.checkBegan(),this.tryToSendTouchEvent(t))}onPointerAdd(t){this.tracker.addToTracker(t),super.onPointerAdd(t),this.tryBegin(t),this.offsetX+=this.lastX-this.startX,this.offsetY+=this.lastY-this.startY,this.updateLastCoords(),this.startX=this.lastX,this.startY=this.lastY,this.tracker.trackedPointersCount>this.maxPointers?this.state===n.State.ACTIVE?this.cancel():this.fail():this.checkBegan()}onPointerUp(t){if(this.stylusData=t.stylusData,super.onPointerUp(t),this.state===n.State.ACTIVE){const t=this.tracker.getAbsoluteCoordsAverage();this.lastX=t.x,this.lastY=t.y}this.tracker.removeFromTracker(t.pointerId),0===this.tracker.trackedPointersCount&&this.clearActivationTimeout(),this.state===n.State.ACTIVE?this.end():(this.resetProgress(),this.fail())}onPointerRemove(t){super.onPointerRemove(t),this.tracker.removeFromTracker(t.pointerId),this.offsetX+=this.lastX-this.startX,this.offsetY+=this.lastY-this.startY,this.updateLastCoords(),this.startX=this.lastX,this.startY=this.lastY,this.state===n.State.ACTIVE&&this.tracker.trackedPointersCount<this.minPointers||this.checkBegan()}onPointerMove(t){this.tracker.track(t),this.stylusData=t.stylusData,this.updateLastCoords(),this.updateVelocity(t.pointerId),this.checkBegan(),super.onPointerMove(t)}onPointerOutOfBounds(t){this.shouldCancelWhenOutside||(this.tracker.track(t),this.stylusData=t.stylusData,this.updateLastCoords(),this.updateVelocity(t.pointerId),this.checkBegan(),this.state===n.State.ACTIVE&&super.onPointerOutOfBounds(t))}scheduleWheelEnd(t){clearTimeout(this.endWheelTimeout),this.endWheelTimeout=setTimeout(()=>{this.state===n.State.ACTIVE&&(this.end(),this.tracker.removeFromTracker(t.pointerId),this.state=n.State.UNDETERMINED),this.wheelDevice=h.WheelDevice.UNDETERMINED},30)}onWheel(t){if(this.wheelDevice!==h.WheelDevice.MOUSE&&this.enableTrackpadTwoFingerGesture){if(this.state===n.State.UNDETERMINED){if(this.wheelDevice=t.wheelDeltaY%120!=0?h.WheelDevice.TOUCHPAD:h.WheelDevice.MOUSE,this.wheelDevice===h.WheelDevice.MOUSE)return void this.scheduleWheelEnd(t);this.tracker.addToTracker(t),this.updateLastCoords(),this.startX=this.lastX,this.startY=this.lastY,this.begin(),this.activate()}this.tracker.track(t),this.updateLastCoords(),this.updateVelocity(t.pointerId),this.tryToSendMoveEvent(!1,t),this.scheduleWheelEnd(t)}}shouldActivate(){const t=this.getTranslationX();if(this.activeOffsetXStart!==Number.MAX_SAFE_INTEGER&&t<this.activeOffsetXStart)return!0;if(this.activeOffsetXEnd!==Number.MIN_SAFE_INTEGER&&t>this.activeOffsetXEnd)return!0;const e=this.getTranslationY();if(this.activeOffsetYStart!==Number.MAX_SAFE_INTEGER&&e<this.activeOffsetYStart)return!0;if(this.activeOffsetYEnd!==Number.MIN_SAFE_INTEGER&&e>this.activeOffsetYEnd)return!0;const s=t*t+e*e;if(this.minDistSq!==Number.MAX_SAFE_INTEGER&&s>=this.minDistSq)return!0;const n=this.velocityX;if(this.minVelocityX!==Number.MAX_SAFE_INTEGER&&(this.minVelocityX<0&&n<=this.minVelocityX||this.minVelocityX>=0&&this.minVelocityX<=n))return!0;const o=this.velocityY;if(this.minVelocityY!==Number.MAX_SAFE_INTEGER&&(this.minVelocityY<0&&o<=this.minVelocityY||this.minVelocityY>=0&&this.minVelocityY<=o))return!0;const h=n*n+o*o;return this.minVelocitySq!==Number.MAX_SAFE_INTEGER&&h>=this.minVelocitySq}shouldFail(){const t=this.getTranslationX(),e=this.getTranslationY(),s=t*t+e*e;return this.activateAfterLongPress>0&&s>c?(this.clearActivationTimeout(),!0):this.failOffsetXStart!==Number.MIN_SAFE_INTEGER&&t<this.failOffsetXStart||(this.failOffsetXEnd!==Number.MAX_SAFE_INTEGER&&t>this.failOffsetXEnd||(this.failOffsetYStart!==Number.MIN_SAFE_INTEGER&&e<this.failOffsetYStart||this.failOffsetYEnd!==Number.MAX_SAFE_INTEGER&&e>this.failOffsetYEnd))}tryBegin(t){this.state===n.State.UNDETERMINED&&this.tracker.trackedPointersCount>=this.minPointers?(this.resetProgress(),this.offsetX=0,this.offsetY=0,this.velocityX=0,this.velocityY=0,this.begin(),this.activateAfterLongPress>0&&(this.activationTimeout=setTimeout(()=>{this.activate()},this.activateAfterLongPress))):this.updateVelocity(t.pointerId)}checkBegan(){this.state===n.State.BEGAN&&(this.shouldFail()?this.fail():this.shouldActivate()&&this.activate())}activate(t=!1){this.state!==n.State.ACTIVE&&this.resetProgress(),super.activate(t)}onCancel(){this.clearActivationTimeout()}onReset(){this.clearActivationTimeout()}resetProgress(){this.state!==n.State.ACTIVE&&(this.startX=this.lastX,this.startY=this.lastY)}}},3253,[120,3244,3254,3255,3256]);
15659
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DEFAULT_TOUCH_SLOP",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"MINIMAL_RECOGNIZABLE_MAGNITUDE",{enumerable:!0,get:function(){return n}});const t=15,n=.1},3254,[]);
15660
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"EventTypes",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"TouchEventType",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"WheelDevice",{enumerable:!0,get:function(){return t}});let E=(function(E){return E[E.DOWN=0]="DOWN",E[E.ADDITIONAL_POINTER_DOWN=1]="ADDITIONAL_POINTER_DOWN",E[E.UP=2]="UP",E[E.ADDITIONAL_POINTER_UP=3]="ADDITIONAL_POINTER_UP",E[E.MOVE=4]="MOVE",E[E.ENTER=5]="ENTER",E[E.LEAVE=6]="LEAVE",E[E.CANCEL=7]="CANCEL",E})({}),n=(function(E){return E[E.UNDETERMINED=0]="UNDETERMINED",E[E.DOWN=1]="DOWN",E[E.MOVE=2]="MOVE",E[E.UP=3]="UP",E[E.CANCELLED=4]="CANCELLED",E})({}),t=(function(E){return E[E.UNDETERMINED=0]="UNDETERMINED",E[E.MOUSE=1]="MOUSE",E[E.TOUCHPAD=2]="TOUCHPAD",E})({})},3255,[]);
15661
+ __d(function(g,r,i,a,m,_e,d){"use strict";const t=["enabled"];function e(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return v}});var o=e(r(d[0])),s=r(d[1]),n=r(d[2]),h=e(r(d[3])),l=e(r(d[4])),c=e(r(d[5])),u=r(d[6]),p=r(d[7]);class v{lastSentState=null;_state=s.State.UNDETERMINED;_shouldCancelWhenOutside=!1;hasCustomActivationCriteria=!1;_enabled=!1;_config={enabled:!1};_tracker=new c.default;_activationIndex=0;_awaiting=!1;_active=!1;_shouldResetProgress=!1;_pointerType=p.PointerType.MOUSE;constructor(t){this._delegate=t}init(t,e){this.propsRef=e,this.viewRef=t,this.state=s.State.UNDETERMINED,this.delegate.init(t,this)}attachEventManager(t){t.setOnPointerDown(this.onPointerDown.bind(this)),t.setOnPointerAdd(this.onPointerAdd.bind(this)),t.setOnPointerUp(this.onPointerUp.bind(this)),t.setOnPointerRemove(this.onPointerRemove.bind(this)),t.setOnPointerMove(this.onPointerMove.bind(this)),t.setOnPointerEnter(this.onPointerEnter.bind(this)),t.setOnPointerLeave(this.onPointerLeave.bind(this)),t.setOnPointerCancel(this.onPointerCancel.bind(this)),t.setOnPointerOutOfBounds(this.onPointerOutOfBounds.bind(this)),t.setOnPointerMoveOver(this.onPointerMoveOver.bind(this)),t.setOnPointerMoveOut(this.onPointerMoveOut.bind(this)),t.setOnWheel(this.onWheel.bind(this)),t.registerListeners()}onCancel(){}onReset(){}resetProgress(){}reset(){this.tracker.resetTracker(),this.onReset(),this.resetProgress(),this.delegate.reset(),this.state=s.State.UNDETERMINED}moveToState(t,e){if(this.state===t)return;const o=this.state;this.state=t,this.tracker.trackedPointersCount>0&&this.config.needsPointerData&&this.isFinished()&&this.cancelTouches(),h.default.instance.onHandlerStateChange(this,t,o,e),this.onStateChange(t,o),!this.enabled&&this.isFinished()&&(this.state=s.State.UNDETERMINED)}onStateChange(t,e){}begin(){this.checkHitSlop()&&this.state===s.State.UNDETERMINED&&this.moveToState(s.State.BEGAN)}fail(t){this.state!==s.State.ACTIVE&&this.state!==s.State.BEGAN||(this.delegate.onFail(),this.moveToState(s.State.FAILED,t)),this.resetProgress()}cancel(t){this.state!==s.State.ACTIVE&&this.state!==s.State.UNDETERMINED&&this.state!==s.State.BEGAN||(this.onCancel(),this.delegate.onCancel(),this.moveToState(s.State.CANCELLED,t))}activate(t=!1){!0===this.config.manualActivation&&!t||this.state!==s.State.UNDETERMINED&&this.state!==s.State.BEGAN||(this.delegate.onActivate(),this.moveToState(s.State.ACTIVE))}end(){this.state!==s.State.BEGAN&&this.state!==s.State.ACTIVE||(this.delegate.onEnd(),this.moveToState(s.State.END)),this.resetProgress()}getShouldResetProgress(){return this.shouldResetProgress}setShouldResetProgress(t){this.shouldResetProgress=t}shouldWaitForHandlerFailure(t){return t!==this&&l.default.instance.shouldWaitForHandlerFailure(this,t)}shouldRequireToWaitForFailure(t){return t!==this&&l.default.instance.shouldRequireHandlerToWaitForFailure(this,t)}shouldRecognizeSimultaneously(t){return t===this||l.default.instance.shouldRecognizeSimultaneously(this,t)}shouldBeCancelledByOther(t){return t!==this&&l.default.instance.shouldHandlerBeCancelledBy(this,t)}onPointerDown(t){h.default.instance.recordHandlerIfNotPresent(this),this.pointerType=t.pointerType,this.pointerType===p.PointerType.TOUCH&&h.default.instance.cancelMouseAndPenGestures(this)}onPointerAdd(t){this.tryToSendTouchEvent(t)}onPointerUp(t){this.tryToSendTouchEvent(t)}onPointerRemove(t){this.tryToSendTouchEvent(t)}onPointerMove(t){this.tryToSendMoveEvent(!1,t)}onPointerLeave(t){if(this.shouldCancelWhenOutside)switch(this.state){case s.State.ACTIVE:this.cancel();break;case s.State.BEGAN:this.fail()}else this.tryToSendTouchEvent(t)}onPointerEnter(t){this.tryToSendTouchEvent(t)}onPointerCancel(t){this.tryToSendTouchEvent(t),this.cancel(),this.reset()}onPointerOutOfBounds(t){this.tryToSendMoveEvent(!0,t)}onPointerMoveOver(t){}onPointerMoveOut(t){}onWheel(t){}tryToSendMoveEvent(t,e){t&&this.shouldCancelWhenOutside||!this.enabled||(this.active&&this.sendEvent(this.state,this.state),this.tryToSendTouchEvent(e))}tryToSendTouchEvent(t){this.config.needsPointerData&&this.sendTouchEvent(t)}sendTouchEvent(t){if(!this.enabled)return;const{onGestureHandlerEvent:e}=this.propsRef.current,o=this.transformTouchEvent(t);o&&f(e,o)}sendEvent=(t,e)=>{const{onGestureHandlerEvent:o,onGestureHandlerStateChange:n}=this.propsRef.current,h=this.transformEventData(t,e);this.lastSentState!==t&&(this.lastSentState=t,f(n,h)),this.state===s.State.ACTIVE&&(h.nativeEvent.oldState=void 0,f(o,h))};transformEventData(t,e){return{nativeEvent:Object.assign({numberOfPointers:this.tracker.trackedPointersCount,state:t,pointerInside:this.delegate.isPointerInBounds(this.tracker.getAbsoluteCoordsAverage())},this.transformNativeEvent(),{handlerTag:this.handlerTag,target:this.viewRef,oldState:t!==e?e:void 0,pointerType:this.pointerType}),timeStamp:Date.now()}}transformTouchEvent(t){const e=this.delegate.measureView(),o=[],s=[],h=this.tracker.trackedPointers;if(0===h.size||!h.has(t.pointerId))return;h.forEach((t,s)=>{const n=this.tracker.getMappedTouchEventId(s);o.push({id:n,x:t.abosoluteCoords.x-e.pageX,y:t.abosoluteCoords.y-e.pageY,absoluteX:t.abosoluteCoords.x,absoluteY:t.abosoluteCoords.y})}),t.eventType!==n.EventTypes.CANCEL?s.push({id:this.tracker.getMappedTouchEventId(t.pointerId),x:t.x-e.pageX,y:t.y-e.pageY,absoluteX:t.x,absoluteY:t.y}):h.forEach((t,o)=>{const n=this.tracker.getMappedTouchEventId(o);s.push({id:n,x:t.abosoluteCoords.x-e.pageX,y:t.abosoluteCoords.y-e.pageY,absoluteX:t.abosoluteCoords.x,absoluteY:t.abosoluteCoords.y})});let l=n.TouchEventType.UNDETERMINED;switch(t.eventType){case n.EventTypes.DOWN:case n.EventTypes.ADDITIONAL_POINTER_DOWN:l=n.TouchEventType.DOWN;break;case n.EventTypes.UP:case n.EventTypes.ADDITIONAL_POINTER_UP:l=n.TouchEventType.UP;break;case n.EventTypes.MOVE:l=n.TouchEventType.MOVE;break;case n.EventTypes.CANCEL:l=n.TouchEventType.CANCELLED}let c=o.length;return t.eventType!==n.EventTypes.UP&&t.eventType!==n.EventTypes.ADDITIONAL_POINTER_UP||--c,{nativeEvent:{handlerTag:this.handlerTag,state:this.state,eventType:l,changedTouches:s,allTouches:o,numberOfTouches:c,pointerType:this.pointerType},timeStamp:Date.now()}}cancelTouches(){const t=this.delegate.measureView(),e=[],o=[],s=this.tracker.trackedPointers;if(0===s.size)return;s.forEach((s,n)=>{const h=this.tracker.getMappedTouchEventId(n);e.push({id:h,x:s.abosoluteCoords.x-t.pageX,y:s.abosoluteCoords.y-t.pageY,absoluteX:s.abosoluteCoords.x,absoluteY:s.abosoluteCoords.y}),o.push({id:h,x:s.abosoluteCoords.x-t.pageX,y:s.abosoluteCoords.y-t.pageY,absoluteX:s.abosoluteCoords.x,absoluteY:s.abosoluteCoords.y})});const h={nativeEvent:{handlerTag:this.handlerTag,state:this.state,eventType:n.TouchEventType.CANCELLED,changedTouches:o,allTouches:e,numberOfTouches:e.length,pointerType:this.pointerType},timeStamp:Date.now()},{onGestureHandlerEvent:l}=this.propsRef.current;f(l,h)}transformNativeEvent(){const t=this.tracker.getAbsoluteCoordsAverage(),e=this.tracker.getRelativeCoordsAverage();return{x:e.x,y:e.y,absoluteX:t.x,absoluteY:t.y}}updateGestureConfig(e){let{enabled:n=!0}=e,l=(0,o.default)(e,t);if(this._config=Object.assign({enabled:n},l),this.enabled!==n&&this.delegate.onEnabledChange(n),this.enabled=n,void 0!==this.config.shouldCancelWhenOutside&&(this.shouldCancelWhenOutside=this.config.shouldCancelWhenOutside),this.validateHitSlops(),!this.enabled)switch(this.state){case s.State.ACTIVE:this.fail(!0);break;case s.State.UNDETERMINED:h.default.instance.removeHandlerFromOrchestrator(this);break;default:this.cancel(!0)}}checkCustomActivationCriteria(t){for(const e in this.config)t.indexOf(e)>=0&&(this.hasCustomActivationCriteria=!0)}validateHitSlops(){if(this.config.hitSlop){if(void 0!==this.config.hitSlop.left&&void 0!==this.config.hitSlop.right&&void 0!==this.config.hitSlop.width)throw new Error('HitSlop Error: Cannot define left, right and width at the same time');if(void 0!==this.config.hitSlop.width&&void 0===this.config.hitSlop.left&&void 0===this.config.hitSlop.right)throw new Error('HitSlop Error: When width is defined, either left or right has to be defined');if(void 0!==this.config.hitSlop.height&&void 0!==this.config.hitSlop.top&&void 0!==this.config.hitSlop.bottom)throw new Error('HitSlop Error: Cannot define top, bottom and height at the same time');if(void 0!==this.config.hitSlop.height&&void 0===this.config.hitSlop.top&&void 0===this.config.hitSlop.bottom)throw new Error('HitSlop Error: When height is defined, either top or bottom has to be defined')}}checkHitSlop(){if(!this.config.hitSlop)return!0;const{width:t,height:e}=this.delegate.measureView();let o=0,s=0,n=t,h=e;void 0!==this.config.hitSlop.horizontal&&(o-=this.config.hitSlop.horizontal,n+=this.config.hitSlop.horizontal),void 0!==this.config.hitSlop.vertical&&(s-=this.config.hitSlop.vertical,h+=this.config.hitSlop.vertical),void 0!==this.config.hitSlop.left&&(o=-this.config.hitSlop.left),void 0!==this.config.hitSlop.right&&(n=t+this.config.hitSlop.right),void 0!==this.config.hitSlop.top&&(s=-this.config.hitSlop.top),void 0!==this.config.hitSlop.bottom&&(h=e+this.config.hitSlop.bottom),void 0!==this.config.hitSlop.width&&(void 0!==this.config.hitSlop.left?n=o+this.config.hitSlop.width:void 0!==this.config.hitSlop.right&&(o=n-this.config.hitSlop.width)),void 0!==this.config.hitSlop.height&&(void 0!==this.config.hitSlop.top?h=s+this.config.hitSlop.height:void 0!==this.config.hitSlop.bottom&&(s=h-this.config.hitSlop.height));const l=this.delegate.measureView(),c=this.tracker.getLastAbsoluteCoords();if(!c)return!1;const u=c.x-l.pageX,p=c.y-l.pageY;return u>=o&&u<=n&&p>=s&&p<=h}isButtonInConfig(t){return!t||!this.config.mouseButton&&t===u.MouseButton.LEFT||this.config.mouseButton&&t&this.config.mouseButton}resetConfig(){}onDestroy(){h.default.instance.removeHandlerFromOrchestrator(this),this.delegate.destroy(this.config)}get handlerTag(){return this._handlerTag}set handlerTag(t){this._handlerTag=t}get config(){return this._config}get delegate(){return this._delegate}get tracker(){return this._tracker}get state(){return this._state}set state(t){this._state=t}get shouldCancelWhenOutside(){return this._shouldCancelWhenOutside}set shouldCancelWhenOutside(t){this._shouldCancelWhenOutside=t}get enabled(){return this._enabled}set enabled(t){this._enabled=t}get pointerType(){return this._pointerType}set pointerType(t){this._pointerType=t}get active(){return this._active}set active(t){this._active=t}get awaiting(){return this._awaiting}set awaiting(t){this._awaiting=t}get activationIndex(){return this._activationIndex}set activationIndex(t){this._activationIndex=t}get shouldResetProgress(){return this._shouldResetProgress}set shouldResetProgress(t){this._shouldResetProgress=t}getTrackedPointersID(){return this.tracker.trackedPointersIDs}isFinished(){return this.state===s.State.END||this.state===s.State.FAILED||this.state===s.State.CANCELLED}}function f(t,e){if(!t)return;if('function'==typeof t)return void t(e);if('__getHandler'in t&&'function'==typeof t.__getHandler){return void f(t.__getHandler(),e)}if(!('__nodeConfig'in t))return;const{argMapping:o}=t.__nodeConfig;if(Array.isArray(o))for(const[s,[n,h]]of o.entries()){if(!(n in e.nativeEvent))continue;const o=e.nativeEvent[n];h?.setValue?h.setValue(o):t.__nodeConfig.argMapping[s]=[n,o]}}},3256,[120,3244,3255,3257,3263,3259,3264,3258]);
15662
+ __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 e,t=r(d[0]),n=r(d[1]),i=r(d[2]),s=(e=i)&&e.__esModule?e:{default:e};class l{gestureHandlers=[];awaitingHandlers=[];awaitingHandlersTags=new Set;handlingChangeSemaphore=0;activationIndex=0;constructor(){}scheduleFinishedHandlersCleanup(){0===this.handlingChangeSemaphore&&this.cleanupFinishedHandlers()}cleanHandler(e){e.reset(),e.active=!1,e.awaiting=!1,e.activationIndex=Number.MAX_VALUE}removeHandlerFromOrchestrator(e){const t=this.gestureHandlers.indexOf(e),n=this.awaitingHandlers.indexOf(e);t>=0&&this.gestureHandlers.splice(t,1),n>=0&&(this.awaitingHandlers.splice(n,1),this.awaitingHandlersTags.delete(e.handlerTag))}cleanupFinishedHandlers(){const e=new Set;for(let t=this.gestureHandlers.length-1;t>=0;--t){const n=this.gestureHandlers[t];this.isFinished(n.state)&&!n.awaiting&&(this.cleanHandler(n),e.add(n))}this.gestureHandlers=this.gestureHandlers.filter(t=>!e.has(t))}hasOtherHandlerToWaitFor(e){return this.gestureHandlers.some(t=>!this.isFinished(t.state)&&this.shouldHandlerWaitForOther(e,t))}shouldBeCancelledByFinishedHandler(e){return this.gestureHandlers.some(t=>this.shouldHandlerWaitForOther(e,t)&&t.state===n.State.END)}tryActivate(e){if(this.shouldBeCancelledByFinishedHandler(e))return void e.cancel();if(this.hasOtherHandlerToWaitFor(e))return void this.addAwaitingHandler(e);const t=e.state;t!==n.State.CANCELLED&&t!==n.State.FAILED&&(this.shouldActivate(e)?this.makeActive(e):t!==n.State.ACTIVE?t===n.State.BEGAN&&e.cancel():e.fail())}shouldActivate(e){return!this.gestureHandlers.some(t=>this.shouldHandlerBeCancelledBy(e,t))}cleanupAwaitingHandlers(e){const t=t=>!t.awaiting&&this.shouldHandlerWaitForOther(t,e);for(const e of this.awaitingHandlers)t(e)&&(this.cleanHandler(e),this.awaitingHandlersTags.delete(e.handlerTag));this.awaitingHandlers=this.awaitingHandlers.filter(e=>this.awaitingHandlersTags.has(e.handlerTag))}onHandlerStateChange(e,t,i,s){if(e.enabled||s){if(this.handlingChangeSemaphore+=1,this.isFinished(t))for(const i of this.awaitingHandlers)this.shouldHandlerWaitForOther(i,e)&&this.awaitingHandlersTags.has(i.handlerTag)&&(t===n.State.END?(i.cancel(),i.state===n.State.END&&i.sendEvent(n.State.CANCELLED,n.State.BEGAN),i.awaiting=!1):this.tryActivate(i));t===n.State.ACTIVE?this.tryActivate(e):i===n.State.ACTIVE||i===n.State.END?e.active?e.sendEvent(t,i):i!==n.State.ACTIVE||t!==n.State.CANCELLED&&t!==n.State.FAILED||e.sendEvent(t,n.State.BEGAN):i===n.State.UNDETERMINED&&t===n.State.CANCELLED||e.sendEvent(t,i),this.handlingChangeSemaphore-=1,this.scheduleFinishedHandlersCleanup(),this.awaitingHandlers.includes(e)||this.cleanupAwaitingHandlers(e)}}makeActive(e){const t=e.state;e.active=!0,e.shouldResetProgress=!0,e.activationIndex=this.activationIndex++;for(let t=this.gestureHandlers.length-1;t>=0;--t)this.shouldHandlerBeCancelledBy(this.gestureHandlers[t],e)&&this.gestureHandlers[t].cancel();for(const t of this.awaitingHandlers)this.shouldHandlerBeCancelledBy(t,e)&&(t.awaiting=!1);e.sendEvent(n.State.ACTIVE,n.State.BEGAN),t!==n.State.ACTIVE&&(e.sendEvent(n.State.END,n.State.ACTIVE),t!==n.State.END&&e.sendEvent(n.State.UNDETERMINED,n.State.END)),e.awaiting&&(e.awaiting=!1,this.awaitingHandlers=this.awaitingHandlers.filter(t=>t!==e))}addAwaitingHandler(e){this.awaitingHandlers.includes(e)||(this.awaitingHandlers.push(e),this.awaitingHandlersTags.add(e.handlerTag),e.awaiting=!0,e.activationIndex=this.activationIndex++)}recordHandlerIfNotPresent(e){this.gestureHandlers.includes(e)||(this.gestureHandlers.push(e),e.active=!1,e.awaiting=!1,e.activationIndex=Number.MAX_SAFE_INTEGER)}shouldHandlerWaitForOther(e,t){return e!==t&&(e.shouldWaitForHandlerFailure(t)||t.shouldRequireToWaitForFailure(e))}canRunSimultaneously(e,t){return e===t||e.shouldRecognizeSimultaneously(t)||t.shouldRecognizeSimultaneously(e)}shouldHandlerBeCancelledBy(e,t){if(this.canRunSimultaneously(e,t))return!1;if(e.awaiting||e.state===n.State.ACTIVE)return e.shouldBeCancelledByOther(t);const i=e.getTrackedPointersID(),l=t.getTrackedPointersID();return!(!s.default.shareCommonPointers(i,l)&&e.delegate.view!==t.delegate.view)||this.checkOverlap(e,t)}checkOverlap(e,t){return e.getTrackedPointersID().some(n=>{const i=e.tracker.getLastAbsoluteCoords(n);return i&&e.delegate.isPointerInBounds(i)&&t.delegate.isPointerInBounds(i)})}isFinished(e){return e===n.State.END||e===n.State.FAILED||e===n.State.CANCELLED}cancelMouseAndPenGestures(e){this.gestureHandlers.forEach(n=>{n.pointerType!==t.PointerType.MOUSE&&n.pointerType!==t.PointerType.STYLUS||(n!==e?n.cancel():n.tracker.resetTracker())})}static get instance(){return l._instance||(l._instance=new l),l._instance}}},3257,[3258,3244,3259]);
15663
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"PointerType",{enumerable:!0,get:function(){return t}});let t=(function(t){return t[t.TOUCH=0]="TOUCH",t[t.STYLUS=1]="STYLUS",t[t.MOUSE=2]="MOUSE",t[t.KEY=3]="KEY",t[t.OTHER=4]="OTHER",t})({})},3258,[]);
15664
+ __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 e,t=r(d[0]),s=(e=t)&&e.__esModule?e:{default:e};class o{velocityTracker=new s.default;_trackedPointers=new Map;touchEventsIds=new Map;cachedAbsoluteAverages={x:0,y:0};cachedRelativeAverages={x:0,y:0};constructor(){this.lastMovedPointerId=NaN;for(let e=0;e<20;++e)this.touchEventsIds.set(e,NaN)}addToTracker(e){if(this.trackedPointers.has(e.pointerId))return;this.lastMovedPointerId=e.pointerId;const t={abosoluteCoords:{x:e.x,y:e.y},relativeCoords:{x:e.offsetX,y:e.offsetY},timestamp:e.time,velocityX:0,velocityY:0};this.trackedPointers.set(e.pointerId,t),this.mapTouchEventId(e.pointerId),this.cachedAbsoluteAverages=this.getAbsoluteCoordsAverage(),this.cachedRelativeAverages=this.getRelativeCoordsAverage()}removeFromTracker(e){this.trackedPointers.delete(e),this.removeMappedTouchId(e)}track(e){const t=this.trackedPointers.get(e.pointerId);if(!t)return;this.lastMovedPointerId=e.pointerId,this.velocityTracker.add(e);const[s,o]=this.velocityTracker.velocity;t.velocityX=s,t.velocityY=o,t.abosoluteCoords={x:e.x,y:e.y},t.relativeCoords={x:e.offsetX,y:e.offsetY},this.trackedPointers.set(e.pointerId,t),this.cachedAbsoluteAverages=this.getAbsoluteCoordsAverage(),this.cachedRelativeAverages=this.getRelativeCoordsAverage()}mapTouchEventId(e){for(const[t,s]of this.touchEventsIds)if(isNaN(s)){this.touchEventsIds.set(t,e);break}}removeMappedTouchId(e){const t=this.getMappedTouchEventId(e);isNaN(t)||this.touchEventsIds.set(t,NaN)}getMappedTouchEventId(e){for(const[t,s]of this.touchEventsIds.entries())if(s===e)return t;return NaN}getVelocity(e){const t=this.trackedPointers.get(e);return t?{x:t.velocityX,y:t.velocityY}:null}getLastAbsoluteCoords(e){return this.trackedPointers.get(e??this.lastMovedPointerId)?.abosoluteCoords}getLastRelativeCoords(e){return this.trackedPointers.get(e??this.lastMovedPointerId)?.relativeCoords}getAbsoluteCoordsAverage(){const e=this.getAbsoluteCoordsSum(),t=e.x/this.trackedPointers.size,s=e.y/this.trackedPointers.size;return{x:isNaN(t)?this.cachedAbsoluteAverages.x:t,y:isNaN(s)?this.cachedAbsoluteAverages.y:s}}getRelativeCoordsAverage(){const e=this.getRelativeCoordsSum(),t=e.x/this.trackedPointers.size,s=e.y/this.trackedPointers.size;return{x:isNaN(t)?this.cachedRelativeAverages.x:t,y:isNaN(s)?this.cachedRelativeAverages.y:s}}getAbsoluteCoordsSum(e){const t={x:0,y:0};return this.trackedPointers.forEach((s,o)=>{o!==e&&(t.x+=s.abosoluteCoords.x,t.y+=s.abosoluteCoords.y)}),t}getRelativeCoordsSum(e){const t={x:0,y:0};return this.trackedPointers.forEach((s,o)=>{o!==e&&(t.x+=s.relativeCoords.x,t.y+=s.relativeCoords.y)}),t}resetTracker(){this.velocityTracker.reset(),this.trackedPointers.clear(),this.lastMovedPointerId=NaN;for(let e=0;e<20;++e)this.touchEventsIds.set(e,NaN)}static shareCommonPointers(e,t){return e.some(e=>t.includes(e))}get trackedPointersCount(){return this.trackedPointers.size}get trackedPointersIDs(){const e=[];return this.trackedPointers.forEach((t,s)=>{e.push(s)}),e}get trackedPointers(){return this._trackedPointers}}},3259,[3260]);
15665
+ __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,"default",{enumerable:!0,get:function(){return l}});var t=e(r(d[0])),s=e(r(d[1]));class l{assumePointerMoveStoppedMilliseconds=40;historySize=20;horizonMilliseconds=300;minSampleSize=3;constructor(){this.samples=new t.default(this.historySize)}add(e){this.samples.push(e)}getVelocityEstimate(){const e=[],t=[],l=[],n=[];let o=0,u=this.samples.size-1;const c=this.samples.get(u);if(!c)return null;let h=c;for(;o<this.samples.size;){const s=this.samples.get(u),f=c.time-s.time,p=Math.abs(s.time-h.time);if(h=s,f>this.horizonMilliseconds||p>this.assumePointerMoveStoppedMilliseconds)break;e.push(s.x),t.push(s.y),l.push(1),n.push(-f),o++,u--}if(o>=this.minSampleSize){const o=new s.default(n,e,l).solve(2);if(null!==o){const e=new s.default(n,t,l).solve(2);if(null!==e){return[1e3*o.coefficients[1],1e3*e.coefficients[1]]}}}return null}get velocity(){const e=this.getVelocityEstimate();return null!==e?e:[0,0]}reset(){this.samples.clear()}}},3260,[3261,3262]);
15666
+ __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 t}});class t{constructor(t){this.capacity=t,this.buffer=new Array(t),this.index=0,this._size=0}push(t){this.buffer[this.index]=t,this.index=(this.index+1)%this.capacity,this._size=Math.min(this.size+1,this.capacity)}get(t){if(this._size===this.capacity){let s=(this.index+t)%this.capacity;return s<0&&(s+=this.capacity),this.buffer[s]}return this.buffer[t]}clear(){this.buffer=new Array(this.capacity),this.index=0,this._size=0}get size(){return this._size}}},3261,[]);
15667
+ __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}});class t{constructor(t){this.offset=0,this.length=t,this.elements=new Array(t)}static fromVOL(s,n,o){const r=new t(0);return r.offset=n,r.length=o,r.elements=s,r}get(t){return this.elements[this.offset+t]}set(t,s){this.elements[this.offset+t]=s}dot(t){let s=0;for(let n=0;n<this.length;n++)s+=this.get(n)*t.get(n);return s}norm(){return Math.sqrt(this.dot(this))}}class s{constructor(t,s){this.columns=s,this.elements=new Array(t*s)}get(t,s){return this.elements[t*this.columns+s]}set(t,s,n){this.elements[t*this.columns+s]=n}getRow(s){return t.fromVOL(this.elements,s*this.columns,this.columns)}}class n{constructor(t){this.coefficients=new Array(t+1)}}class o{constructor(t,s,n){this.x=t,this.y=s,this.w=n}solve(o){if(o>this.x.length)return null;const r=new n(o),i=this.x.length,l=o+1,c=new s(l,i);for(let t=0;t<i;t++){c.set(0,t,this.w[t]);for(let s=1;s<l;s++)c.set(s,t,c.get(s-1,t)*this.x[t])}const f=new s(l,i),h=new s(l,i);for(let t=0;t<l;t+=1){for(let s=0;s<i;s+=1)f.set(t,s,c.get(t,s));for(let s=0;s<t;s+=1){const n=f.getRow(t).dot(f.getRow(s));for(let o=0;o<i;o+=1)f.set(t,o,f.get(t,o)-n*f.get(s,o))}const s=f.getRow(t).norm();if(s<1e-10)return null;const n=1/s;for(let s=0;s<i;s+=1)f.set(t,s,f.get(t,s)*n);for(let s=0;s<l;s+=1)h.set(t,s,s<t?0:f.getRow(t).dot(c.getRow(s)))}const u=new t(i);for(let t=0;t<i;t+=1)u.set(t,this.y[t]*this.w[t]);for(let t=l-1;t>=0;t-=1){r.coefficients[t]=f.getRow(t).dot(u);for(let s=l-1;s>t;s-=1)r.coefficients[t]-=h.get(t,s)*r.coefficients[s];r.coefficients[t]/=h.get(t,t)}return r}}},3262,[]);
15668
+ __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 t}});class t{waitForRelations=new Map;simultaneousRelations=new Map;blocksHandlersRelations=new Map;constructor(){}configureInteractions(t,n){if(this.dropRelationsForHandlerWithTag(t.handlerTag),n.waitFor){const s=[];n.waitFor.forEach(t=>{'number'==typeof t?s.push(t):s.push(t.handlerTag)}),this.waitForRelations.set(t.handlerTag,s)}if(n.simultaneousHandlers){const s=[];n.simultaneousHandlers.forEach(t=>{'number'==typeof t?s.push(t):s.push(t.handlerTag)}),this.simultaneousRelations.set(t.handlerTag,s)}if(n.blocksHandlers){const s=[];n.blocksHandlers.forEach(t=>{'number'==typeof t?s.push(t):s.push(t.handlerTag)}),this.blocksHandlersRelations.set(t.handlerTag,s)}}shouldWaitForHandlerFailure(t,n){const s=this.waitForRelations.get(t.handlerTag);return void 0!==s?.find(t=>t===n.handlerTag)}shouldRecognizeSimultaneously(t,n){const s=this.simultaneousRelations.get(t.handlerTag);return void 0!==s?.find(t=>t===n.handlerTag)}shouldRequireHandlerToWaitForFailure(t,n){const s=this.blocksHandlersRelations.get(t.handlerTag);return void 0!==s?.find(t=>t===n.handlerTag)}shouldHandlerBeCancelledBy(t,n){const s='NativeViewGestureHandler'===n.constructor.name,l=n.active,o=!0===n.isButton?.();return s&&l&&!o}dropRelationsForHandlerWithTag(t){this.waitForRelations.delete(t),this.simultaneousRelations.delete(t),this.blocksHandlersRelations.delete(t)}reset(){this.waitForRelations.clear(),this.simultaneousRelations.clear(),this.blocksHandlersRelations.clear()}static get instance(){return this._instance||(this._instance=new t),this._instance}}},3263,[]);
15669
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"baseGestureHandlerProps",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"baseGestureHandlerWithDetectorProps",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"MouseButton",{enumerable:!0,get:function(){return u}});const n=['id','enabled','shouldCancelWhenOutside','hitSlop','cancelsTouchesInView','userSelect','activeCursor','mouseButton','enableContextMenu','touchAction'],t=[...n,'waitFor','simultaneousHandlers','blocksHandlers','onBegan','onFailed','onCancelled','onActivated','onEnded','onGestureEvent','onHandlerStateChange'],o=[...n,'needsPointerData','manualActivation'];let u=(function(n){return n[n.LEFT=1]="LEFT",n[n.RIGHT=2]="RIGHT",n[n.MIDDLE=4]="MIDDLE",n[n.BUTTON_4=8]="BUTTON_4",n[n.BUTTON_5=16]="BUTTON_5",n[n.ALL=31]="ALL",n})({})},3264,[]);
15670
+ __d(function(g,r,i,a,m,_e,d){"use strict";const t=["enabled"];function s(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}});var e=s(r(d[0])),o=r(d[1]),n=r(d[2]),h=s(r(d[3]));class u extends h.default{maxDeltaX=Number.MIN_SAFE_INTEGER;maxDeltaY=Number.MIN_SAFE_INTEGER;maxDistSq=Number.MIN_SAFE_INTEGER;maxDurationMs=500;maxDelayMs=500;numberOfTaps=1;minNumberOfPointers=1;currentMaxNumberOfPointers=1;startX=0;startY=0;offsetX=0;offsetY=0;lastX=0;lastY=0;tapsSoFar=0;updateGestureConfig(s){let{enabled:o=!0}=s,n=(0,e.default)(s,t);super.updateGestureConfig(Object.assign({enabled:o},n)),void 0!==this.config.numberOfTaps&&(this.numberOfTaps=this.config.numberOfTaps),void 0!==this.config.maxDurationMs&&(this.maxDurationMs=this.config.maxDurationMs),void 0!==this.config.maxDelayMs&&(this.maxDelayMs=this.config.maxDelayMs),void 0!==this.config.maxDeltaX&&(this.maxDeltaX=this.config.maxDeltaX),void 0!==this.config.maxDeltaY&&(this.maxDeltaY=this.config.maxDeltaY),void 0!==this.config.maxDist&&(this.maxDistSq=this.config.maxDist*this.config.maxDist),void 0!==this.config.minPointers&&(this.minNumberOfPointers=this.config.minPointers)}resetConfig(){super.resetConfig(),this.maxDeltaX=Number.MIN_SAFE_INTEGER,this.maxDeltaY=Number.MIN_SAFE_INTEGER,this.maxDistSq=Number.MIN_SAFE_INTEGER,this.maxDurationMs=500,this.maxDelayMs=500,this.numberOfTaps=1,this.minNumberOfPointers=1}clearTimeouts(){clearTimeout(this.waitTimeout),clearTimeout(this.delayTimeout)}startTap(){this.clearTimeouts(),this.waitTimeout=setTimeout(()=>this.fail(),this.maxDurationMs)}endTap(){this.clearTimeouts(),++this.tapsSoFar===this.numberOfTaps&&this.currentMaxNumberOfPointers>=this.minNumberOfPointers?this.activate():this.delayTimeout=setTimeout(()=>this.fail(),this.maxDelayMs)}updateLastCoords(){const{x:t,y:s}=this.tracker.getAbsoluteCoordsAverage();this.lastX=t,this.lastY=s}onPointerDown(t){this.isButtonInConfig(t.button)&&(this.tracker.addToTracker(t),super.onPointerDown(t),this.trySettingPosition(t),this.startX=t.x,this.startY=t.y,this.lastX=t.x,this.lastY=t.y,this.updateState(t),this.tryToSendTouchEvent(t))}onPointerAdd(t){super.onPointerAdd(t),this.tracker.addToTracker(t),this.trySettingPosition(t),this.offsetX+=this.lastX-this.startX,this.offsetY+=this.lastY-this.startY,this.updateLastCoords(),this.startX=this.lastX,this.startY=this.lastY,this.updateState(t)}onPointerUp(t){super.onPointerUp(t),this.updateLastCoords(),this.tracker.removeFromTracker(t.pointerId),this.updateState(t)}onPointerRemove(t){super.onPointerRemove(t),this.tracker.removeFromTracker(t.pointerId),this.offsetX+=this.lastX-this.startX,this.offsetY+=this.lastY=this.startY,this.updateLastCoords(),this.startX=this.lastX,this.startY=this.lastY,this.updateState(t)}onPointerMove(t){this.trySettingPosition(t),this.tracker.track(t),this.updateLastCoords(),this.updateState(t),super.onPointerMove(t)}onPointerOutOfBounds(t){this.trySettingPosition(t),this.tracker.track(t),this.updateLastCoords(),this.updateState(t),super.onPointerOutOfBounds(t)}updateState(t){if(this.currentMaxNumberOfPointers<this.tracker.trackedPointersCount&&(this.currentMaxNumberOfPointers=this.tracker.trackedPointersCount),this.shouldFail())this.fail();else switch(this.state){case o.State.UNDETERMINED:t.eventType===n.EventTypes.DOWN&&this.begin(),this.startTap();break;case o.State.BEGAN:t.eventType===n.EventTypes.UP&&this.endTap(),t.eventType===n.EventTypes.DOWN&&this.startTap()}}trySettingPosition(t){this.state===o.State.UNDETERMINED&&(this.offsetX=0,this.offsetY=0,this.startX=t.x,this.startY=t.y)}shouldFail(){const t=this.lastX-this.startX+this.offsetX;if(this.maxDeltaX!==Number.MIN_SAFE_INTEGER&&Math.abs(t)>this.maxDeltaX)return!0;const s=this.lastY-this.startY+this.offsetY;if(this.maxDeltaY!==Number.MIN_SAFE_INTEGER&&Math.abs(s)>this.maxDeltaY)return!0;const e=s*s+t*t;return this.maxDistSq!==Number.MIN_SAFE_INTEGER&&e>this.maxDistSq}activate(){super.activate(),this.end()}onCancel(){this.resetProgress(),this.clearTimeouts()}resetProgress(){this.clearTimeouts(),this.tapsSoFar=0,this.currentMaxNumberOfPointers=0}}},3265,[120,3244,3255,3256]);
15671
+ __d(function(g,r,i,a,m,_e,d){"use strict";const t=["enabled"];function e(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return h}});var s=e(r(d[0])),n=r(d[1]),o=e(r(d[2]));class h extends o.default{minDurationMs=500;defaultMaxDistSq=100;maxDistSq=this.defaultMaxDistSq;numberOfPointers=1;startX=0;startY=0;startTime=0;previousTime=0;init(t,e){void 0===this.config.enableContextMenu&&(this.config.enableContextMenu=!1),super.init(t,e)}transformNativeEvent(){return Object.assign({},super.transformNativeEvent(),{duration:Date.now()-this.startTime})}updateGestureConfig(e){let{enabled:n=!0}=e,o=(0,s.default)(e,t);super.updateGestureConfig(Object.assign({enabled:n},o)),void 0!==this.config.minDurationMs&&(this.minDurationMs=this.config.minDurationMs),void 0!==this.config.maxDist&&(this.maxDistSq=this.config.maxDist*this.config.maxDist),void 0!==this.config.numberOfPointers&&(this.numberOfPointers=this.config.numberOfPointers)}resetConfig(){super.resetConfig(),this.minDurationMs=500,this.maxDistSq=this.defaultMaxDistSq}onStateChange(t,e){clearTimeout(this.activationTimeout)}onPointerDown(t){this.isButtonInConfig(t.button)&&(this.tracker.addToTracker(t),super.onPointerDown(t),this.startX=t.x,this.startY=t.y,this.tryBegin(),this.tryActivate(),this.tryToSendTouchEvent(t))}onPointerAdd(t){if(super.onPointerAdd(t),this.tracker.addToTracker(t),this.tracker.trackedPointersCount>this.numberOfPointers)return void this.fail();const e=this.tracker.getAbsoluteCoordsAverage();this.startX=e.x,this.startY=e.y,this.tryActivate()}onPointerMove(t){super.onPointerMove(t),this.tracker.track(t),this.checkDistanceFail()}onPointerOutOfBounds(t){super.onPointerOutOfBounds(t),this.tracker.track(t),this.checkDistanceFail()}onPointerUp(t){super.onPointerUp(t),this.tracker.removeFromTracker(t.pointerId),this.state===n.State.ACTIVE?this.end():this.fail()}onPointerRemove(t){super.onPointerRemove(t),this.tracker.removeFromTracker(t.pointerId),this.tracker.trackedPointersCount<this.numberOfPointers&&this.state!==n.State.ACTIVE&&this.fail()}tryBegin(){this.state===n.State.UNDETERMINED&&(this.previousTime=Date.now(),this.startTime=this.previousTime,this.begin())}tryActivate(){this.tracker.trackedPointersCount===this.numberOfPointers&&(this.minDurationMs>0?this.activationTimeout=setTimeout(()=>{this.activate()},this.minDurationMs):0===this.minDurationMs&&this.activate())}checkDistanceFail(){const t=this.tracker.getAbsoluteCoordsAverage(),e=t.x-this.startX,s=t.y-this.startY;e*e+s*s<=this.maxDistSq||(this.state===n.State.ACTIVE?this.cancel():this.fail())}}},3266,[120,3244,3256]);
15672
+ __d(function(g,r,i,a,m,_e,d){"use strict";function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return c}});var e=r(d[0]),s=r(d[1]),o=t(r(d[2])),n=t(r(d[3]));class c extends o.default{scale=1;velocity=0;startingSpan=0;spanSlop=s.DEFAULT_TOUCH_SLOP;scaleDetectorListener={onScaleBegin:t=>(this.startingSpan=t.currentSpan,!0),onScale:t=>{const s=this.scale;this.scale*=t.calculateScaleFactor(this.tracker.trackedPointersCount);const o=t.timeDelta;return o>0&&(this.velocity=(this.scale-s)/o),Math.abs(this.startingSpan-t.currentSpan)>=this.spanSlop&&this.state===e.State.BEGAN&&this.activate(),!0},onScaleEnd:t=>{}};scaleGestureDetector=new n.default(this.scaleDetectorListener);init(t,e){super.init(t,e),this.shouldCancelWhenOutside=!1}transformNativeEvent(){return{focalX:this.scaleGestureDetector.focusX,focalY:this.scaleGestureDetector.focusY,velocity:this.velocity,scale:this.scale}}onPointerDown(t){this.tracker.addToTracker(t),super.onPointerDown(t),this.tryToSendTouchEvent(t)}onPointerAdd(t){this.tracker.addToTracker(t),super.onPointerAdd(t),this.tryBegin(),this.scaleGestureDetector.onTouchEvent(t,this.tracker)}onPointerUp(t){super.onPointerUp(t),this.tracker.removeFromTracker(t.pointerId),this.state===e.State.ACTIVE?(this.scaleGestureDetector.onTouchEvent(t,this.tracker),this.end()):this.fail()}onPointerRemove(t){super.onPointerRemove(t),this.scaleGestureDetector.onTouchEvent(t,this.tracker),this.tracker.removeFromTracker(t.pointerId),this.state===e.State.ACTIVE&&this.tracker.trackedPointersCount<2&&this.end()}onPointerMove(t){this.tracker.trackedPointersCount<2||(this.tracker.track(t),this.scaleGestureDetector.onTouchEvent(t,this.tracker),super.onPointerMove(t))}onPointerOutOfBounds(t){this.tracker.trackedPointersCount<2||(this.tracker.track(t),this.scaleGestureDetector.onTouchEvent(t,this.tracker),super.onPointerOutOfBounds(t))}tryBegin(){this.state===e.State.UNDETERMINED&&(this.resetProgress(),this.begin())}activate(t){this.state!==e.State.ACTIVE&&this.resetProgress(),super.activate(t)}onReset(){this.resetProgress()}resetProgress(){this.state!==e.State.ACTIVE&&(this.velocity=0,this.scale=1)}}},3267,[3244,3254,3256,3268]);
15673
+ __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 n}});var t=r(d[0]),s=r(d[1]);class n{inProgress=!1;constructor(s){this.onScaleBegin=s.onScaleBegin,this.onScale=s.onScale,this.onScaleEnd=s.onScaleEnd,this.spanSlop=2*t.DEFAULT_TOUCH_SLOP,this.minSpan=0}onTouchEvent(t,n){this.currentTime=t.time;const o=t.eventType,h=n.trackedPointersCount,c=o===s.EventTypes.UP||o===s.EventTypes.ADDITIONAL_POINTER_UP||o===s.EventTypes.CANCEL;if((o===s.EventTypes.DOWN||c)&&(this.inProgress&&(this.onScaleEnd(this),this.inProgress=!1,this.initialSpan=0),c))return!0;const p=o===s.EventTypes.DOWN||o===s.EventTypes.ADDITIONAL_POINTER_UP||o===s.EventTypes.ADDITIONAL_POINTER_DOWN,u=o===s.EventTypes.ADDITIONAL_POINTER_UP,S=u?t.pointerId:void 0,l=u?h-1:h,T=n.getAbsoluteCoordsSum(),v=T.x/l,E=T.y/l;let P=0,_=0;n.trackedPointers.forEach((t,s)=>{s!==S&&(P+=Math.abs(t.abosoluteCoords.x-v),_+=Math.abs(t.abosoluteCoords.y-E))});const O=2*(P/l),y=2*(_/l),f=Math.hypot(O,y),D=this.inProgress;return this._focusX=v,this._focusY=E,this.inProgress&&(f<this.minSpan||p)&&(this.onScaleEnd(this),this.inProgress=!1,this.initialSpan=f),p&&(this.initialSpan=this.prevSpan=this._currentSpan=f),!this.inProgress&&f>=this.minSpan&&(D||Math.abs(f-this.initialSpan)>this.spanSlop)&&(this.prevSpan=this._currentSpan=f,this.prevTime=this.currentTime,this.inProgress=this.onScaleBegin(this)),o!==s.EventTypes.MOVE||(this._currentSpan=f,this.inProgress&&!this.onScale(this)||(this.prevSpan=this.currentSpan,this.prevTime=this.currentTime),!0)}calculateScaleFactor(t){return t<2?1:this.prevSpan>0?this.currentSpan/this.prevSpan:1}get currentSpan(){return this._currentSpan}get focusX(){return this._focusX}get focusY(){return this._focusY}get timeDelta(){return this.currentTime-this.prevTime}}},3268,[3254,3255]);
15674
+ __d(function(g,r,i,a,m,_e,d){"use strict";function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return h}});var e=r(d[0]),o=t(r(d[1])),n=t(r(d[2]));const s=Math.PI/36;class h extends o.default{rotation=0;velocity=0;cachedAnchorX=0;cachedAnchorY=0;rotationGestureListener={onRotationBegin:t=>!0,onRotation:t=>{const o=this.rotation;this.rotation+=t.rotation;const n=t.timeDelta;return n>0&&(this.velocity=(this.rotation-o)/n),Math.abs(this.rotation)>=s&&this.state===e.State.BEGAN&&this.activate(),!0},onRotationEnd:t=>{this.state===e.State.ACTIVE?this.end():this.fail()}};rotationGestureDetector=new n.default(this.rotationGestureListener);init(t,e){super.init(t,e),this.shouldCancelWhenOutside=!1}transformNativeEvent(){return{rotation:this.rotation?this.rotation:0,anchorX:this.getAnchorX(),anchorY:this.getAnchorY(),velocity:this.velocity?this.velocity:0}}getAnchorX(){const t=this.rotationGestureDetector.anchorX;return t||this.cachedAnchorX}getAnchorY(){const t=this.rotationGestureDetector.anchorY;return t||this.cachedAnchorY}onPointerDown(t){this.tracker.addToTracker(t),super.onPointerDown(t),this.tryToSendTouchEvent(t)}onPointerAdd(t){this.tracker.addToTracker(t),super.onPointerAdd(t),this.tryBegin(),this.rotationGestureDetector.onTouchEvent(t,this.tracker)}onPointerMove(t){this.tracker.trackedPointersCount<2||(this.getAnchorX()&&(this.cachedAnchorX=this.getAnchorX()),this.getAnchorY()&&(this.cachedAnchorY=this.getAnchorY()),this.tracker.track(t),this.rotationGestureDetector.onTouchEvent(t,this.tracker),super.onPointerMove(t))}onPointerOutOfBounds(t){this.tracker.trackedPointersCount<2||(this.getAnchorX()&&(this.cachedAnchorX=this.getAnchorX()),this.getAnchorY()&&(this.cachedAnchorY=this.getAnchorY()),this.tracker.track(t),this.rotationGestureDetector.onTouchEvent(t,this.tracker),super.onPointerOutOfBounds(t))}onPointerUp(t){super.onPointerUp(t),this.tracker.removeFromTracker(t.pointerId),this.rotationGestureDetector.onTouchEvent(t,this.tracker)}onPointerRemove(t){super.onPointerRemove(t),this.rotationGestureDetector.onTouchEvent(t,this.tracker),this.tracker.removeFromTracker(t.pointerId)}tryBegin(){this.state===e.State.UNDETERMINED&&this.begin()}onReset(){this.state!==e.State.ACTIVE&&(this.rotation=0,this.velocity=0,this.rotationGestureDetector.reset())}}},3269,[3244,3256,3270]);
15675
+ __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 s}});var t=r(d[0]);class s{currentTime=0;previousTime=0;previousAngle=0;_rotation=0;_anchorX=0;_anchorY=0;isInProgress=!1;keyPointers=[NaN,NaN];constructor(t){this.onRotationBegin=t.onRotationBegin,this.onRotation=t.onRotation,this.onRotationEnd=t.onRotationEnd}updateCurrent(t,s){this.previousTime=this.currentTime,this.currentTime=t.time;const[n,o]=this.keyPointers,h=s.getLastAbsoluteCoords(n),u=s.getLastAbsoluteCoords(o);if(!h||!u)return;const P=u.x-h.x,c=u.y-h.y;this._anchorX=(h.x+u.x)/2,this._anchorY=(h.y+u.y)/2;const y=-Math.atan2(c,P);this._rotation=Number.isNaN(this.previousAngle)?0:this.previousAngle-y,this.previousAngle=y,this.rotation>Math.PI?this._rotation-=Math.PI:this.rotation<-Math.PI&&(this._rotation+=Math.PI),this.rotation>Math.PI/2?this._rotation-=Math.PI:this.rotation<-Math.PI/2&&(this._rotation+=Math.PI)}finish(){this.isInProgress&&(this.isInProgress=!1,this.keyPointers=[NaN,NaN]),this.onRotationEnd(this)}setKeyPointers(t){if(this.keyPointers[0]&&this.keyPointers[1])return;const s=t.trackedPointers.keys();this.keyPointers[0]=s.next().value,this.keyPointers[1]=s.next().value}onTouchEvent(s,n){switch(s.eventType){case t.EventTypes.DOWN:this.isInProgress=!1;break;case t.EventTypes.ADDITIONAL_POINTER_DOWN:if(this.isInProgress)break;this.isInProgress=!0,this.previousTime=s.time,this.previousAngle=NaN,this.setKeyPointers(n),this.updateCurrent(s,n),this.onRotationBegin(this);break;case t.EventTypes.MOVE:if(!this.isInProgress)break;this.updateCurrent(s,n),this.onRotation(this);break;case t.EventTypes.ADDITIONAL_POINTER_UP:if(!this.isInProgress)break;this.keyPointers.indexOf(s.pointerId)>=0&&this.finish();break;case t.EventTypes.UP:this.finish()}return!0}reset(){this.keyPointers=[NaN,NaN],this.isInProgress=!1}get anchorX(){return this._anchorX}get anchorY(){return this._anchorY}get rotation(){return this._rotation}get timeDelta(){return this.currentTime+this.previousTime}}},3270,[3255]);
15676
+ __d(function(g,r,i,a,m,_e,d){"use strict";const t=["enabled"];function e(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return p}});var n=e(r(d[0])),o=r(d[1]),s=r(d[2]),u=e(r(d[3])),c=e(r(d[4])),h=r(d[5]);const l=s.Directions.RIGHT,f=(0,h.coneToDeviation)(30),P=(0,h.coneToDeviation)(60);class p extends u.default{numberOfPointersRequired=1;direction=l;maxDurationMs=800;minVelocity=700;maxNumberOfPointersSimultaneously=0;keyPointer=NaN;updateGestureConfig(e){let{enabled:o=!0}=e,s=(0,n.default)(e,t);super.updateGestureConfig(Object.assign({enabled:o},s)),this.config.direction&&(this.direction=this.config.direction),this.config.numberOfPointers&&(this.numberOfPointersRequired=this.config.numberOfPointers)}startFling(){this.begin(),this.maxNumberOfPointersSimultaneously=1,this.delayTimeout=setTimeout(()=>this.fail(),this.maxDurationMs)}tryEndFling(){const t=c.default.fromVelocity(this.tracker,this.keyPointer);if(!t)return!1;const e=(e,n)=>(e&this.direction)===e&&t.isSimilar(c.default.fromDirection(e),n),n=Object.values(s.Directions),o=Object.values(s.DiagonalDirections),u=n.map(t=>e(t,f)),h=o.map(t=>e(t,P)),l=u.some(Boolean)||h.some(Boolean),p=t.magnitude>this.minVelocity;return!(this.maxNumberOfPointersSimultaneously!==this.numberOfPointersRequired||!l||!p)&&(clearTimeout(this.delayTimeout),this.activate(),!0)}endFling(){this.tryEndFling()||this.fail()}onPointerDown(t){this.isButtonInConfig(t.button)&&(this.tracker.addToTracker(t),this.keyPointer=t.pointerId,super.onPointerDown(t),this.newPointerAction(),this.tryToSendTouchEvent(t))}onPointerAdd(t){this.tracker.addToTracker(t),super.onPointerAdd(t),this.newPointerAction()}newPointerAction(){this.state===o.State.UNDETERMINED&&this.startFling(),this.state===o.State.BEGAN&&(this.tryEndFling(),this.tracker.trackedPointersCount>this.maxNumberOfPointersSimultaneously&&(this.maxNumberOfPointersSimultaneously=this.tracker.trackedPointersCount))}pointerMoveAction(t){this.tracker.track(t),this.state===o.State.BEGAN&&this.tryEndFling()}onPointerMove(t){this.pointerMoveAction(t),super.onPointerMove(t)}onPointerOutOfBounds(t){this.pointerMoveAction(t),super.onPointerOutOfBounds(t)}onPointerUp(t){super.onPointerUp(t),this.onUp(t),this.keyPointer=NaN}onPointerRemove(t){super.onPointerRemove(t),this.onUp(t)}onUp(t){this.state===o.State.BEGAN&&this.endFling(),this.tracker.removeFromTracker(t.pointerId)}activate(t){super.activate(t),this.end()}resetConfig(){super.resetConfig(),this.numberOfPointersRequired=1,this.direction=l}}},3271,[120,3244,3272,3256,3273,3274]);
15677
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"Directions",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"DiagonalDirections",{enumerable:!0,get:function(){return n}});const t={RIGHT:1,LEFT:2,UP:4,DOWN:8},n={UP_RIGHT:5,DOWN_RIGHT:9,UP_LEFT:6,DOWN_LEFT:10}},3272,[]);
15678
+ __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 s}});var t=r(d[0]),n=r(d[1]);class s{constructor(t,s){this.x=t,this.y=s,this._magnitude=Math.hypot(this.x,this.y);const o=this._magnitude>n.MINIMAL_RECOGNIZABLE_MAGNITUDE;this.unitX=o?this.x/this._magnitude:0,this.unitY=o?this.y/this._magnitude:0}static fromDirection(t){return o.get(t)??new s(0,0)}static fromVelocity(t,n){const o=t.getVelocity(n);return o?new s(o.x,o.y):null}get magnitude(){return this._magnitude}computeSimilarity(t){return this.unitX*t.unitX+this.unitY*t.unitY}isSimilar(t,n){return this.computeSimilarity(t)>n}}const o=new Map([[t.Directions.LEFT,new s(-1,0)],[t.Directions.RIGHT,new s(1,0)],[t.Directions.UP,new s(0,-1)],[t.Directions.DOWN,new s(0,1)],[t.DiagonalDirections.UP_RIGHT,new s(1,-1)],[t.DiagonalDirections.DOWN_RIGHT,new s(1,1)],[t.DiagonalDirections.UP_LEFT,new s(-1,-1)],[t.DiagonalDirections.DOWN_LEFT,new s(-1,1)]])},3273,[3272,3254]);
15679
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.isPointerInBounds=function(t,{x:n,y:o}){const l=t.getBoundingClientRect();return n>=l.left&&n<=l.right&&o>=l.top&&o<=l.bottom},Object.defineProperty(e,"PointerTypeMapping",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"degToRad",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"coneToDeviation",{enumerable:!0,get:function(){return l}}),e.calculateViewScale=function(t){const n=getComputedStyle(t),o={scaleX:1,scaleY:1};if(void 0!==n.scale&&'none'!==n.scale){const t=n.scale.split(' ');t[0]&&(o.scaleX=parseFloat(t[0])),o.scaleY=t[1]?parseFloat(t[1]):parseFloat(t[0])}const l=new RegExp(/matrix\((.+)\)/).exec(n.transform)?.[1];if(l){const t=l.split(', ');o.scaleX*=parseFloat(t[0]),o.scaleY*=parseFloat(t[3])}return o},e.tryExtractStylusData=function(o){if(n.get(o.pointerType)!==t.PointerType.STYLUS)return;const l=o.azimuthAngle,M=o.altitudeAngle;if(0===o.tiltX&&0===o.tiltY){if(void 0===l||void 0===M)return{tiltX:0,tiltY:0,azimuthAngle:Math.PI/2,altitudeAngle:Math.PI/2,pressure:o.pressure};const{tiltX:t,tiltY:n}=h(M,l);return{tiltX:t,tiltY:n,azimuthAngle:l,altitudeAngle:M,pressure:o.pressure}}const{altitudeAngle:u,azimuthAngle:c}=s(o.tiltX,o.tiltY);return{tiltX:o.tiltX,tiltY:o.tiltY,azimuthAngle:c,altitudeAngle:u,pressure:o.pressure}},Object.defineProperty(e,"RNSVGElements",{enumerable:!0,get:function(){return M}}),e.isRNSVGElement=function(t){const n=Object.getPrototypeOf(t).constructor.name;return M.has(n)&&Object.hasOwn(t,'elementRef')},e.isRNSVGNode=function(t){if(t.props.ref?.rngh)return!1;return'WebShape'===Object.getPrototypeOf(t?.type)?.name||M.has(t?.type?.displayName)};var t=r(d[0]);const n=new Map([['mouse',t.PointerType.MOUSE],['touch',t.PointerType.TOUCH],['pen',t.PointerType.STYLUS],['none',t.PointerType.OTHER]]),o=t=>t*Math.PI/180,l=t=>Math.cos(o(t/2));function s(t,n){const o=t*Math.PI/180,l=n*Math.PI/180;let s=0;if(0===t)n>0?s=Math.PI/2:n<0&&(s=3*Math.PI/2);else if(0===n)t<0&&(s=Math.PI);else if(90===Math.abs(t)||90===Math.abs(n))s=0;else{const t=Math.tan(o),n=Math.tan(l);s=Math.atan2(n,t),s<0&&(s+=2*Math.PI)}let h=0;return h=90===Math.abs(t)||90===Math.abs(n)?0:0===t?Math.PI/2-Math.abs(l):0===n?Math.PI/2-Math.abs(o):Math.atan(1/Math.sqrt(Math.pow(Math.tan(o),2)+Math.pow(Math.tan(l),2))),{altitudeAngle:h,azimuthAngle:s}}function h(t,n){const o=180/Math.PI;let l=0,s=0;if(0===t&&(0!==n&&n!==2*Math.PI||(l=Math.PI/2),n===Math.PI/2&&(s=Math.PI/2),n===Math.PI&&(l=-Math.PI/2),n===3*Math.PI/2&&(s=-Math.PI/2),n>0&&n<Math.PI/2&&(l=Math.PI/2,s=Math.PI/2),n>Math.PI/2&&n<Math.PI&&(l=-Math.PI/2,s=Math.PI/2),n>Math.PI&&n<3*Math.PI/2&&(l=-Math.PI/2,s=-Math.PI/2),n>3*Math.PI/2&&n<2*Math.PI&&(l=Math.PI/2,s=-Math.PI/2)),0!==t){const o=Math.tan(t);l=Math.atan(Math.cos(n)/o),s=Math.atan(Math.sin(n)/o)}return{tiltX:Math.round(l*o),tiltY:Math.round(s*o)}}const M=new Set(['Circle','ClipPath','Ellipse','ForeignObject','G','Image','Line','Marker','Mask','Path','Pattern','Polygon','Polyline','Rect','Svg','Symbol','TSpan','Text','TextPath','Use'])},3274,[3258]);
15680
+ __d(function(g,r,i,a,m,_e,d){"use strict";const t=["enabled"];function e(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return h}});var s=e(r(d[0]));r(d[1]);var n=r(d[2]),o=r(d[3]),u=e(r(d[4]));class h extends u.default{shouldActivateOnStart=!1;disallowInterruption=!1;startX=0;startY=0;minDistSq=o.DEFAULT_TOUCH_SLOP*o.DEFAULT_TOUCH_SLOP;init(t,e){super.init(t,e),this.shouldCancelWhenOutside=!0;const s=this.delegate.view;this.restoreViewStyles(s),this.buttonRole='button'===s.getAttribute('role')}updateGestureConfig(e){let{enabled:n=!0}=e,o=(0,s.default)(e,t);super.updateGestureConfig(Object.assign({enabled:n},o)),void 0!==this.config.shouldActivateOnStart&&(this.shouldActivateOnStart=this.config.shouldActivateOnStart),void 0!==this.config.disallowInterruption&&(this.disallowInterruption=this.config.disallowInterruption);const u=this.delegate.view;this.restoreViewStyles(u)}restoreViewStyles(t){t&&(t.style.touchAction='auto',t.style.WebkitTouchCallout='auto')}onPointerDown(t){this.tracker.addToTracker(t),super.onPointerDown(t),this.newPointerAction(),this.tryToSendTouchEvent(t)}onPointerAdd(t){this.tracker.addToTracker(t),super.onPointerAdd(t),this.newPointerAction()}newPointerAction(){const t=this.tracker.getAbsoluteCoordsAverage();if(this.startX=t.x,this.startY=t.y,this.state!==n.State.UNDETERMINED)return;this.begin();const e=this.delegate.view.hasAttribute('rnghtext');(this.buttonRole||e)&&this.activate()}onPointerMove(t){this.tracker.track(t);const e=this.tracker.getAbsoluteCoordsAverage(),s=this.startX-e.x,o=this.startY-e.y;s*s+o*o>=this.minDistSq&&(this.buttonRole&&this.state===n.State.ACTIVE?this.cancel():this.buttonRole||this.state!==n.State.BEGAN||this.activate())}onPointerLeave(){this.state!==n.State.BEGAN&&this.state!==n.State.ACTIVE||this.cancel()}onPointerUp(t){super.onPointerUp(t),this.onUp(t)}onPointerRemove(t){super.onPointerRemove(t),this.onUp(t)}onUp(t){this.tracker.removeFromTracker(t.pointerId),0===this.tracker.trackedPointersCount&&(this.state===n.State.ACTIVE?this.end():this.fail())}shouldRecognizeSimultaneously(t){if(super.shouldRecognizeSimultaneously(t))return!0;if(t instanceof h&&t.state===n.State.ACTIVE&&t.disallowsInterruption())return!1;const e=!this.disallowInterruption;return(this.state!==n.State.ACTIVE||t.state!==n.State.ACTIVE||!e)&&(this.state===n.State.ACTIVE&&e&&t.handlerTag>0)}shouldBeCancelledByOther(t){return!this.disallowInterruption}disallowsInterruption(){return this.disallowInterruption}isButton(){return this.buttonRole}}},3275,[120,136,3244,3254,3256]);
15681
+ __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 n}});var e,o=r(d[0]),t=(e=o)&&e.__esModule?e:{default:e};class n extends t.default{onPointerDown(e){this.tracker.addToTracker(e),super.onPointerDown(e),this.begin(),this.tryToSendTouchEvent(e)}onPointerAdd(e){this.tracker.addToTracker(e),super.onPointerAdd(e)}onPointerMove(e){this.tracker.track(e),super.onPointerMove(e)}onPointerOutOfBounds(e){this.tracker.track(e),super.onPointerOutOfBounds(e)}onPointerUp(e){super.onPointerUp(e),this.tracker.removeFromTracker(e.pointerId)}onPointerRemove(e){super.onPointerRemove(e),this.tracker.removeFromTracker(e.pointerId)}}},3276,[3256]);
15682
+ __d(function(g,r,i,a,m,_e,d){"use strict";function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return o}});var e=r(d[0]),s=t(r(d[1])),n=t(r(d[2]));class o extends n.default{transformNativeEvent(){return Object.assign({},super.transformNativeEvent(),{stylusData:this.stylusData})}onPointerMoveOver(t){s.default.instance.recordHandlerIfNotPresent(this),this.tracker.addToTracker(t),this.stylusData=t.stylusData,super.onPointerMoveOver(t),this.state===e.State.UNDETERMINED&&(this.begin(),this.activate())}onPointerMoveOut(t){this.tracker.removeFromTracker(t.pointerId),this.stylusData=t.stylusData,super.onPointerMoveOut(t),this.end()}onPointerMove(t){this.tracker.track(t),this.stylusData=t.stylusData,super.onPointerMove(t)}onPointerCancel(t){super.onPointerCancel(t),this.reset()}}},3277,[3244,3257,3256]);
15683
+ __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,"default",{enumerable:!0,get:function(){return c}});var t=e(r(_d[0])),n=(function(e){if(e&&e.__esModule)return e;var t={};return 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,t})(r(_d[1])),u=e(r(_d[2])),o=r(_d[3]);class s extends u.default{get isNative(){return!0}onRawEvent(e){if(super.onRawEvent(e),!e.isFinal&&(0,o.TEST_MIN_IF_NOT_NAN)((0,o.VEC_LEN_SQ)({x:e.deltaX,y:e.deltaY}),10)&&this.config.disallowInterruption){const u=Object.values(n.getNodes()).filter(e=>{const{handlerTag:n,view:u,isGestureRunning:o}=e;return n!==this.handlerTag&&o&&e instanceof t.default&&u&&this.view.contains(u)});for(const t of u)t.forceInvalidate(e)}}}var c=s},3278,[3279,3283,3286,3285]);
15684
+ __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 u}});var e,t=r(d[0]),s=(e=t)&&e.__esModule?e:{default:e},n=r(d[1]);class l extends s.default{get isDiscrete(){return!0}get shouldEnableGestureOnSetup(){return!0}shouldFailUnderCustomCriteria({x:e,y:t,deltaX:s,deltaY:l},{maxDeltaX:u,maxDeltaY:o,maxDistSq:c,shouldCancelWhenOutside:_}){return!(!_||this.isPointInView({x:e,y:t}))||((0,n.TEST_MAX_IF_NOT_NAN)(Math.abs(s),u)||(0,n.TEST_MAX_IF_NOT_NAN)(Math.abs(l),o)||(0,n.TEST_MAX_IF_NOT_NAN)(Math.abs(l*l+s*s),c))}transformNativeEvent({center:{x:e,y:t}}){const s=this.view.getBoundingClientRect();return{absoluteX:e,absoluteY:t,x:e-s.left,y:t-s.top}}isGestureEnabledForEvent({minPointers:e,maxPointers:t,maxDeltaX:s,maxDeltaY:n,maxDistSq:l,shouldCancelWhenOutside:u},o,{maxPointers:c,center:_,deltaX:h,deltaY:x}){const b=c>=e&&c<=t;return this.shouldFailUnderCustomCriteria(Object.assign({},_,{deltaX:h,deltaY:x}),{maxDeltaX:s,maxDeltaY:n,maxDistSq:l,shouldCancelWhenOutside:u})||!b&&this.isGestureRunning?{failed:!0}:{success:b}}}var u=l},3279,[3280,3285]);
15685
+ __d(function(g,r,i,a,m,_e,_d){"use strict";const t=["enabled"];function e(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return E}});var s=e(r(_d[0])),n=e(r(_d[1])),o=e(r(_d[2])),u=r(_d[3]),h=r(_d[4]),l=(function(t){if(t&&t.__esModule)return t;var e={};return t&&Object.keys(t).forEach(function(s){var n=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(e,s,n.get?n:{enumerable:!0,get:function(){return t[s]}})}),e.default=t,e})(r(_d[5])),d=r(_d[6]);let f=0;function c(t,e){if(t)if('function'==typeof t)t(e);else if('__getHandler'in t&&'function'==typeof t.__getHandler){c(t.__getHandler(),e)}else if('__nodeConfig'in t){const{argMapping:s}=t.__nodeConfig;if(Array.isArray(s))for(const[n,[o,u]]of s.entries())if(o in e.nativeEvent){const s=e.nativeEvent[o];u&&u.setValue?u.setValue(s):t.__nodeConfig.argMapping[n]=[o,s]}}}function v(t){return null==t?[]:Array.isArray(t)?t:[t]}var E=class{isGestureRunning=!1;view=null;hasGestureFailed=!1;hammer=null;initialRotation=null;config={};previousState=u.State.UNDETERMINED;pendingGestures={};oldState=u.State.UNDETERMINED;lastSentState=null;get id(){return`${this.name}${this.gestureInstance}`}get isNative(){return!1}get isDiscrete(){return!1}get shouldEnableGestureOnSetup(){throw new Error('Must override GestureHandler.shouldEnableGestureOnSetup')}constructor(){this.gestureInstance=f++,this.hasCustomActivationCriteria=!1}getConfig(){return this.config}onWaitingEnded(t){}removePendingGesture(t){delete this.pendingGestures[t]}addPendingGesture(t){this.pendingGestures[t.id]=t}isGestureEnabledForEvent(t,e,s){return{success:!0}}get NativeGestureClass(){throw new Error('Must override GestureHandler.NativeGestureClass')}updateHasCustomActivationCriteria(t){return!0}clearSelfAsPending=()=>{if(Array.isArray(this.config.waitFor))for(const t of this.config.waitFor)t.removePendingGesture(this.id)};updateGestureConfig(e){let{enabled:n=!0}=e,o=(0,s.default)(e,t);if(this.clearSelfAsPending(),this.config=this.ensureConfig(Object.assign({enabled:n},o)),this.hasCustomActivationCriteria=this.updateHasCustomActivationCriteria(this.config),Array.isArray(this.config.waitFor))for(const t of this.config.waitFor)t.addPendingGesture(this);return this.hammer&&this.sync(),this.config}destroy=()=>{this.clearSelfAsPending(),this.hammer&&(this.hammer.stop(!1),this.hammer.destroy()),this.hammer=null};isPointInView=({x:t,y:e})=>{const s=this.view.getBoundingClientRect();return t>=s.left&&t<=s.right&&e>=s.top&&e<=s.bottom};getState(t){return 0==t?0:h.EventMap[t]}transformEventData(t){const{eventType:e,maxPointers:s}=t,n=t.changedPointers[0],o=this.isPointInView({x:n.clientX,y:n.clientY}),u=this.getState(e);return u!==this.previousState&&(this.oldState=this.previousState,this.previousState=u),{nativeEvent:Object.assign({numberOfPointers:s,state:u,pointerInside:o},this.transformNativeEvent(t),{handlerTag:this.handlerTag,target:this.ref,oldState:u!==this.previousState||4!=u?this.oldState:void 0}),timeStamp:Date.now()}}transformNativeEvent(t){return{}}sendEvent=t=>{const{onGestureHandlerEvent:e,onGestureHandlerStateChange:s}=this.propsRef.current,n=this.transformEventData(t);c(e,n),this.lastSentState!==n.nativeEvent.state&&(this.lastSentState=n.nativeEvent.state,c(s,n))};cancelPendingGestures(t){for(const e of Object.values(this.pendingGestures))e&&e.isGestureRunning&&(e.hasGestureFailed=!0,e.cancelEvent(t))}notifyPendingGestures(){for(const t of Object.values(this.pendingGestures))t&&t.onWaitingEnded(this)}onGestureEnded(t){this.isGestureRunning=!1,this.cancelPendingGestures(t)}forceInvalidate(t){this.isGestureRunning&&(this.hasGestureFailed=!0,this.cancelEvent(t))}cancelEvent(t){this.notifyPendingGestures(),this.sendEvent(Object.assign({},t,{eventType:n.default.INPUT_CANCEL,isFinal:!0})),this.onGestureEnded(t)}onRawEvent({isFirst:t}){t&&(this.hasGestureFailed=!1)}shouldUseTouchEvents(t){return t.simultaneousHandlers?.some(t=>t.isNative)??!1}setView(t,e){if(null==t)return this.destroy(),void(this.view=null);const s='ontouchstart'in window;this.propsRef=e,this.ref=t,this.view=(0,o.default)(t),this.hammer=s&&this.shouldUseTouchEvents(this.config)?new n.default.Manager(this.view,{inputClass:n.default.TouchInput}):new n.default.Manager(this.view),this.oldState=u.State.UNDETERMINED,this.previousState=u.State.UNDETERMINED,this.lastSentState=null;const{NativeGestureClass:h}=this,l=new h(this.getHammerConfig());this.hammer.add(l),this.hammer.on('hammer.input',t=>{if(!this.config.enabled)return this.hasGestureFailed=!1,void(this.isGestureRunning=!1);this.onRawEvent(t),null===this.initialRotation&&0!==t.rotation&&(this.initialRotation=t.rotation),t.isFinal&&setTimeout(()=>{this.initialRotation=null,this.hasGestureFailed=!1})}),this.setupEvents(),this.sync()}setupEvents(){this.isDiscrete||(this.hammer.on(`${this.name}start`,t=>this.onStart(t)),this.hammer.on(`${this.name}end ${this.name}cancel`,t=>{this.onGestureEnded(t)})),this.hammer.on(this.name,t=>this.onGestureActivated(t))}onStart({deltaX:t,deltaY:e,rotation:s}){this.oldState=u.State.UNDETERMINED,this.previousState=u.State.UNDETERMINED,this.lastSentState=null,this.isGestureRunning=!0,this.__initialX=t,this.__initialY=e,this.initialRotation=s}onGestureActivated(t){this.sendEvent(t)}onSuccess(){}_getPendingGestures(){if(Array.isArray(this.config.waitFor)&&this.config.waitFor.length){return this.config.waitFor.filter(({hasGestureFailed:t})=>!1===t)}return[]}getHammerConfig(){return{pointers:this.config.minPointers===this.config.maxPointers?this.config.minPointers:0}}sync=()=>{const t=this.hammer.get(this.name);if(!t)return;const e=this.getHammerConfig();t.set(Object.assign({},e,{enable:(t,e)=>{if(!this.config.enabled)return this.isGestureRunning=!1,this.hasGestureFailed=!1,!1;if(!e||!t.options||void 0===e.maxPointers)return this.shouldEnableGestureOnSetup;if(this.hasGestureFailed)return!1;if(!this.isDiscrete){if(this.isGestureRunning)return!0;if(this._stillWaiting=this._getPendingGestures(),this._stillWaiting.length){for(const t of this._stillWaiting)if(!t.isDiscrete&&t.isGestureRunning)return this.hasGestureFailed=!0,this.isGestureRunning=!1,!1;return!1}}if(!this.hasCustomActivationCriteria)return!0;const s=null==this.initialRotation?0:e.rotation-this.initialRotation,{success:n,failed:o}=this.isGestureEnabledForEvent(this.getConfig(),t,Object.assign({},e,{deltaRotation:s}));return o&&(this.simulateCancelEvent(e),this.hasGestureFailed=!0),n}}))};simulateCancelEvent(t){}ensureConfig(t){const e=Object.assign({},t);if('minDist'in t&&(e.minDist=t.minDist,e.minDistSq=e.minDist*e.minDist),'minVelocity'in t&&(e.minVelocity=t.minVelocity,e.minVelocitySq=e.minVelocity*e.minVelocity),'maxDist'in t&&(e.maxDist=t.maxDist,e.maxDistSq=t.maxDist*t.maxDist),e.waitFor='waitFor'in t?v(t.waitFor).map(({handlerTag:t})=>l.getHandler(t)).filter(t=>t):null,'simultaneousHandlers'in t){const s=this.shouldUseTouchEvents(this.config);e.simultaneousHandlers=v(t.simultaneousHandlers).map(t=>'number'==typeof t?l.getHandler(t):l.getHandler(t.handlerTag)).filter(t=>t),s!==this.shouldUseTouchEvents(e)&&(0,d.ghQueueMicrotask)(()=>{this.destroy(),this.setView(this.ref,this.propsRef)})}else e.simultaneousHandlers=null;return['minPointers','maxPointers','minDist','maxDist','maxDistSq','minVelocitySq','minDistSq','minVelocity','failOffsetXStart','failOffsetYStart','failOffsetXEnd','failOffsetYEnd','activeOffsetXStart','activeOffsetXEnd','activeOffsetYStart','activeOffsetYEnd'].forEach(t=>{void 0===e[t]&&(e[t]=Number.NaN)}),e}}},3280,[120,3281,122,3244,3282,3283,3284]);
15687
15686
  __d(function(g,r,_i,_a,m,_e,d){"use strict";
15688
15687
  /*! Hammer.JS - v2.0.17-rc - 2019-12-16
15689
15688
  * http://naver.github.io/egjs
@@ -15691,30 +15690,30 @@ __d(function(g,r,_i,_a,m,_e,d){"use strict";
15691
15690
  * Forked By Naver egjs
15692
15691
  * Copyright (c) hammerjs
15693
15692
  * Licensed under the MIT license */
15694
- function t(){return t=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},t.apply(this,arguments)}function e(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function n(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var i;Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return le}}),Object.defineProperty(_e,"INPUT_START",{enumerable:!0,get:function(){return N}}),Object.defineProperty(_e,"INPUT_MOVE",{enumerable:!0,get:function(){return w}}),Object.defineProperty(_e,"INPUT_END",{enumerable:!0,get:function(){return R}}),Object.defineProperty(_e,"INPUT_CANCEL",{enumerable:!0,get:function(){return x}}),Object.defineProperty(_e,"STATE_POSSIBLE",{enumerable:!0,get:function(){return Nt}}),Object.defineProperty(_e,"STATE_BEGAN",{enumerable:!0,get:function(){return wt}}),Object.defineProperty(_e,"STATE_CHANGED",{enumerable:!0,get:function(){return Rt}}),Object.defineProperty(_e,"STATE_ENDED",{enumerable:!0,get:function(){return xt}}),Object.defineProperty(_e,"STATE_RECOGNIZED",{enumerable:!0,get:function(){return Mt}}),Object.defineProperty(_e,"STATE_CANCELLED",{enumerable:!0,get:function(){return zt}}),Object.defineProperty(_e,"STATE_FAILED",{enumerable:!0,get:function(){return Lt}}),Object.defineProperty(_e,"DIRECTION_NONE",{enumerable:!0,get:function(){return M}}),Object.defineProperty(_e,"DIRECTION_LEFT",{enumerable:!0,get:function(){return z}}),Object.defineProperty(_e,"DIRECTION_RIGHT",{enumerable:!0,get:function(){return L}}),Object.defineProperty(_e,"DIRECTION_UP",{enumerable:!0,get:function(){return F}}),Object.defineProperty(_e,"DIRECTION_DOWN",{enumerable:!0,get:function(){return X}}),Object.defineProperty(_e,"DIRECTION_HORIZONTAL",{enumerable:!0,get:function(){return Y}}),Object.defineProperty(_e,"DIRECTION_VERTICAL",{enumerable:!0,get:function(){return W}}),Object.defineProperty(_e,"DIRECTION_ALL",{enumerable:!0,get:function(){return q}}),Object.defineProperty(_e,"Manager",{enumerable:!0,get:function(){return te}}),Object.defineProperty(_e,"Input",{enumerable:!0,get:function(){return pt}}),Object.defineProperty(_e,"TouchAction",{enumerable:!0,get:function(){return B}}),Object.defineProperty(_e,"TouchInput",{enumerable:!0,get:function(){return Pt}}),Object.defineProperty(_e,"MouseInput",{enumerable:!0,get:function(){return At}}),Object.defineProperty(_e,"PointerEventInput",{enumerable:!0,get:function(){return yt}}),Object.defineProperty(_e,"TouchMouseInput",{enumerable:!0,get:function(){return Dt}}),Object.defineProperty(_e,"SingleTouchInput",{enumerable:!0,get:function(){return ne}}),Object.defineProperty(_e,"Recognizer",{enumerable:!0,get:function(){return Wt}}),Object.defineProperty(_e,"AttrRecognizer",{enumerable:!0,get:function(){return Ht}}),Object.defineProperty(_e,"Tap",{enumerable:!0,get:function(){return qt}}),Object.defineProperty(_e,"Pan",{enumerable:!0,get:function(){return kt}}),Object.defineProperty(_e,"Swipe",{enumerable:!0,get:function(){return Vt}}),Object.defineProperty(_e,"Pinch",{enumerable:!0,get:function(){return Gt}}),Object.defineProperty(_e,"Rotate",{enumerable:!0,get:function(){return Zt}}),Object.defineProperty(_e,"Press",{enumerable:!0,get:function(){return Bt}}),Object.defineProperty(_e,"on",{enumerable:!0,get:function(){return ct}}),Object.defineProperty(_e,"off",{enumerable:!0,get:function(){return ht}}),Object.defineProperty(_e,"each",{enumerable:!0,get:function(){return k}}),Object.defineProperty(_e,"merge",{enumerable:!0,get:function(){return se}}),Object.defineProperty(_e,"extend",{enumerable:!0,get:function(){return oe}}),Object.defineProperty(_e,"assign",{enumerable:!0,get:function(){return s}}),Object.defineProperty(_e,"inherit",{enumerable:!0,get:function(){return ue}}),Object.defineProperty(_e,"bindFn",{enumerable:!0,get:function(){return ae}}),Object.defineProperty(_e,"prefixed",{enumerable:!0,get:function(){return f}}),Object.defineProperty(_e,"toArray",{enumerable:!0,get:function(){return Tt}}),Object.defineProperty(_e,"inArray",{enumerable:!0,get:function(){return ft}}),Object.defineProperty(_e,"uniqueArray",{enumerable:!0,get:function(){return bt}}),Object.defineProperty(_e,"splitStr",{enumerable:!0,get:function(){return at}}),Object.defineProperty(_e,"boolOrFn",{enumerable:!0,get:function(){return V}}),Object.defineProperty(_e,"hasParent",{enumerable:!0,get:function(){return $}}),Object.defineProperty(_e,"addEventListeners",{enumerable:!0,get:function(){return ct}}),Object.defineProperty(_e,"removeEventListeners",{enumerable:!0,get:function(){return ht}}),Object.defineProperty(_e,"defaults",{enumerable:!0,get:function(){return he}}),i='function'!=typeof Object.assign?function(t){if(null==t)throw new TypeError('Cannot convert undefined or null to object');for(var e=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(null!=i)for(var o in i)i.hasOwnProperty(o)&&(e[o]=i[o])}return e}:Object.assign;var o,s=i,u=['','webkit','Moz','MS','ms','o'],a="undefined"==typeof document?{style:{}}:document.createElement('div'),c='function',h=Math.round,l=Math.abs,p=Date.now;function f(t,e){for(var n,i,o=e[0].toUpperCase()+e.slice(1),s=0;s<u.length;){if((i=(n=u[s])?n+o:e)in t)return i;s++}}o="undefined"==typeof window?{}:window;var v=f(a.style,'touchAction'),y=void 0!==v;var T='compute',b='auto',E='manipulation',P='none',O='pan-x',I='pan-y',A=(function(){if(!y)return!1;var t={},e=o.CSS&&o.CSS.supports;return['auto','manipulation','pan-y','pan-x','pan-x pan-y','none'].forEach(function(n){return t[n]=!e||o.CSS.supports('touch-action',n)}),t})(),j='ontouchstart'in o,_=void 0!==f(o,'PointerEvent'),C=j&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),D='touch',S='mouse',N=1,w=2,R=4,x=8,M=1,z=2,L=4,F=8,X=16,Y=6,W=24,q=30,H=['x','y'],U=['clientX','clientY'];function k(t,e,n){var i;if(t)if(t.forEach)t.forEach(e,n);else if(void 0!==t.length)for(i=0;i<t.length;)e.call(n,t[i],i,t),i++;else for(i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i,t)}function V(t,e){return typeof t===c?t.apply(e&&e[0]||void 0,e):t}function G(t,e){return t.indexOf(e)>-1}function Z(t){if(G(t,P))return P;var e=G(t,O),n=G(t,I);return e&&n?P:e||n?e?O:I:G(t,E)?E:b}var B=(function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){t===T&&(t=this.compute()),y&&this.manager.element.style&&A[t]&&(this.manager.element.style[v]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return k(this.manager.recognizers,function(e){V(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),Z(t.join(' '))},e.preventDefaults=function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var i=this.actions,o=G(i,P)&&!A[P],s=G(i,I)&&!A[I],u=G(i,O)&&!A[O];if(o){var a=1===t.pointers.length,c=t.distance<2,h=t.deltaTime<250;if(a&&c&&h)return}if(!u||!s)return o||s&&n&Y||u&&n&W?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t})();function $(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function J(t){var e=t.length;if(1===e)return{x:h(t[0].clientX),y:h(t[0].clientY)};for(var n=0,i=0,o=0;o<e;)n+=t[o].clientX,i+=t[o].clientY,o++;return{x:h(n/e),y:h(i/e)}}function K(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:h(t.pointers[n].clientX),clientY:h(t.pointers[n].clientY)},n++;return{timeStamp:p(),pointers:e,center:J(e),deltaX:t.deltaX,deltaY:t.deltaY}}function Q(t,e,n){n||(n=H);var i=e[n[0]]-t[n[0]],o=e[n[1]]-t[n[1]];return Math.sqrt(i*i+o*o)}function tt(t,e,n){n||(n=H);var i=e[n[0]]-t[n[0]],o=e[n[1]]-t[n[1]];return 180*Math.atan2(o,i)/Math.PI}function et(t,e){return t===e?M:l(t)>=l(e)?t<0?z:L:e<0?F:X}function nt(t,e){var n=e.center,i=t.offsetDelta||{},o=t.prevDelta||{},s=t.prevInput||{};e.eventType!==N&&s.eventType!==R||(o=t.prevDelta={x:s.deltaX||0,y:s.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=o.x+(n.x-i.x),e.deltaY=o.y+(n.y-i.y)}function rt(t,e,n){return{x:e/t||0,y:n/t||0}}function it(t,e){return tt(e[1],e[0],U)+tt(t[1],t[0],U)}function ot(t,e){var n,i,o,s,u=t.lastInterval||e,a=e.timeStamp-u.timeStamp;if(e.eventType!==x&&(a>25||void 0===u.velocity)){var c=e.deltaX-u.deltaX,h=e.deltaY-u.deltaY,p=rt(a,c,h);i=p.x,o=p.y,n=l(p.x)>l(p.y)?p.x:p.y,s=et(c,h),t.lastInterval=e}else n=u.velocity,i=u.velocityX,o=u.velocityY,s=u.direction;e.velocity=n,e.velocityX=i,e.velocityY=o,e.direction=s}function st(t,e){var n=t.session,i=e.pointers,o=i.length;n.firstInput||(n.firstInput=K(e)),o>1&&!n.firstMultiple?n.firstMultiple=K(e):1===o&&(n.firstMultiple=!1);var s=n.firstInput,u=n.firstMultiple,a=u?u.center:s.center,c=e.center=J(i);e.timeStamp=p(),e.deltaTime=e.timeStamp-s.timeStamp,e.angle=tt(a,c),e.distance=Q(a,c),nt(n,e),e.offsetDirection=et(e.deltaX,e.deltaY);var h,f,v=rt(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=v.x,e.overallVelocityY=v.y,e.overallVelocity=l(v.x)>l(v.y)?v.x:v.y,e.scale=u?(h=u.pointers,Q((f=i)[0],f[1],U)/Q(h[0],h[1],U)):1,e.rotation=u?it(u.pointers,i):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,ot(n,e);var y,T=t.element,b=e.srcEvent;$(y=b.composedPath?b.composedPath()[0]:b.path?b.path[0]:b.target,T)&&(T=y),e.target=T}function ut(t,e,n){var i=n.pointers.length,o=n.changedPointers.length,s=e&N&&i-o===0,u=12&e&&i-o===0;n.isFirst=!!s,n.isFinal=!!u,s&&(t.session={}),n.eventType=e,st(t,n),t.emit('hammer.input',n),t.recognize(n),t.session.prevInput=n}function at(t){return t.trim().split(/\s+/g)}function ct(t,e,n){k(at(e),function(e){t.addEventListener(e,n,!1)})}function ht(t,e,n){k(at(e),function(e){t.removeEventListener(e,n,!1)})}function lt(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var pt=(function(){function t(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){V(t.options.enable,[t])&&n.handler(e)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&ct(this.element,this.evEl,this.domHandler),this.evTarget&&ct(this.target,this.evTarget,this.domHandler),this.evWin&&ct(lt(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&ht(this.element,this.evEl,this.domHandler),this.evTarget&&ht(this.target,this.evTarget,this.domHandler),this.evWin&&ht(lt(this.element),this.evWin,this.domHandler)},t})();function ft(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;i<t.length;){if(n&&t[i][n]==e||!n&&t[i]===e)return i;i++}return-1}var dt={pointerdown:N,pointermove:w,pointerup:R,pointercancel:x,pointerout:x},vt={2:D,3:'pen',4:S,5:'kinect'},mt='pointerdown',gt='pointermove pointerup pointercancel';o.MSPointerEvent&&!o.PointerEvent&&(mt='MSPointerDown',gt='MSPointerMove MSPointerUp MSPointerCancel');var yt=(function(t){function n(){var e,i=n.prototype;return i.evEl=mt,i.evWin=gt,(e=t.apply(this,arguments)||this).store=e.manager.session.pointerEvents=[],e}return e(n,t),n.prototype.handler=function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace('ms',''),o=dt[i],s=vt[t.pointerType]||t.pointerType,u=s===D,a=ft(e,t.pointerId,'pointerId');o&N&&(0===t.button||u)?a<0&&(e.push(t),a=e.length-1):12&o&&(n=!0),a<0||(e[a]=t,this.callback(this.manager,o,{pointers:e,changedPointers:[t],pointerType:s,srcEvent:t}),n&&e.splice(a,1))},n})(pt);function Tt(t){return Array.prototype.slice.call(t,0)}function bt(t,e,n){for(var i=[],o=[],s=0;s<t.length;){var u=e?t[s][e]:t[s];ft(o,u)<0&&i.push(t[s]),o[s]=u,s++}return n&&(i=e?i.sort(function(t,n){return t[e]>n[e]}):i.sort()),i}var Et={touchstart:N,touchmove:w,touchend:R,touchcancel:x},Pt=(function(t){function n(){var e;return n.prototype.evTarget="touchstart touchmove touchend touchcancel",(e=t.apply(this,arguments)||this).targetIds={},e}return e(n,t),n.prototype.handler=function(t){var e=Et[t.type],n=Ot.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:D,srcEvent:t})},n})(pt);function Ot(t,e){var n,i,o=Tt(t.touches),s=this.targetIds;if(3&e&&1===o.length)return s[o[0].identifier]=!0,[o,o];var u=Tt(t.changedTouches),a=[],c=this.target;if(i=o.filter(function(t){return $(t.target,c)}),e===N)for(n=0;n<i.length;)s[i[n].identifier]=!0,n++;for(n=0;n<u.length;)s[u[n].identifier]&&a.push(u[n]),12&e&&delete s[u[n].identifier],n++;return a.length?[bt(i.concat(a),'identifier',!0),a]:void 0}var It={mousedown:N,mousemove:w,mouseup:R},At=(function(t){function n(){var e,i=n.prototype;return i.evEl="mousedown",i.evWin="mousemove mouseup",(e=t.apply(this,arguments)||this).pressed=!1,e}return e(n,t),n.prototype.handler=function(t){var e=It[t.type];e&N&&0===t.button&&(this.pressed=!0),e&w&&1!==t.which&&(e=R),this.pressed&&(e&R&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:S,srcEvent:t}))},n})(pt);function jt(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY},i=this.lastTouches;this.lastTouches.push(n);setTimeout(function(){var t=i.indexOf(n);t>-1&&i.splice(t,1)},2500)}}function _t(t,e){t&N?(this.primaryTouch=e.changedPointers[0].identifier,jt.call(this,e)):12&t&&jt.call(this,e)}function Ct(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var o=this.lastTouches[i],s=Math.abs(e-o.x),u=Math.abs(n-o.y);if(s<=25&&u<=25)return!0}return!1}var Dt=(function(){return(function(t){function i(e,i){var o;return(o=t.call(this,e,i)||this).handler=function(t,e,i){var s=i.pointerType===D,u=i.pointerType===S;if(!(u&&i.sourceCapabilities&&i.sourceCapabilities.firesTouchEvents)){if(s)_t.call(n(n(o)),e,i);else if(u&&Ct.call(n(n(o)),i))return;o.callback(t,e,i)}},o.touch=new Pt(o.manager,o.handler),o.mouse=new At(o.manager,o.handler),o.primaryTouch=null,o.lastTouches=[],o}return e(i,t),i.prototype.destroy=function(){this.touch.destroy(),this.mouse.destroy()},i})(pt)})();function St(t,e,n){return!!Array.isArray(t)&&(k(t,n[e],n),!0)}var Nt=1,wt=2,Rt=4,xt=8,Mt=xt,zt=16,Lt=32,Ft=1;function Xt(t,e){var n=e.manager;return n?n.get(t):t}function Yt(t){return t&zt?'cancel':t&xt?'end':t&Rt?'move':t&wt?'start':''}var Wt=(function(){function e(e){void 0===e&&(e={}),this.options=t({enable:!0},e),this.id=Ft++,this.manager=null,this.state=Nt,this.simultaneous={},this.requireFail=[]}var n=e.prototype;return n.set=function(t){return s(this.options,t),this.manager&&this.manager.touchAction.update(),this},n.recognizeWith=function(t){if(St(t,'recognizeWith',this))return this;var e=this.simultaneous;return e[(t=Xt(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},n.dropRecognizeWith=function(t){return St(t,'dropRecognizeWith',this)||(t=Xt(t,this),delete this.simultaneous[t.id]),this},n.requireFailure=function(t){if(St(t,'requireFailure',this))return this;var e=this.requireFail;return-1===ft(e,t=Xt(t,this))&&(e.push(t),t.requireFailure(this)),this},n.dropRequireFailure=function(t){if(St(t,'dropRequireFailure',this))return this;t=Xt(t,this);var e=ft(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},n.hasRequireFailures=function(){return this.requireFail.length>0},n.canRecognizeWith=function(t){return!!this.simultaneous[t.id]},n.emit=function(t){var e=this,n=this.state;function i(n){e.manager.emit(n,t)}n<xt&&i(e.options.event+Yt(n)),i(e.options.event),t.additionalEvent&&i(t.additionalEvent),n>=xt&&i(e.options.event+Yt(n))},n.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=Lt},n.canEmit=function(){for(var t=0;t<this.requireFail.length;){if(!(33&this.requireFail[t].state))return!1;t++}return!0},n.recognize=function(t){var e=s({},t);if(!V(this.options.enable,[this,e]))return this.reset(),void(this.state=Lt);56&this.state&&(this.state=Nt),this.state=this.process(e),30&this.state&&this.tryEmit(e)},n.process=function(t){},n.getTouchAction=function(){},n.reset=function(){},e})(),qt=(function(n){function i(e){var i;return void 0===e&&(e={}),(i=n.call(this,t({event:'tap',pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},e))||this).pTime=!1,i.pCenter=!1,i._timer=null,i._input=null,i.count=0,i}e(i,n);var o=i.prototype;return o.getTouchAction=function(){return[E]},o.process=function(t){var e=this,n=this.options,i=t.pointers.length===n.pointers,o=t.distance<n.threshold,s=t.deltaTime<n.time;if(this.reset(),t.eventType&N&&0===this.count)return this.failTimeout();if(o&&s&&i){if(t.eventType!==R)return this.failTimeout();var u=!this.pTime||t.timeStamp-this.pTime<n.interval,a=!this.pCenter||Q(this.pCenter,t.center)<n.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,a&&u?this.count+=1:this.count=1,this._input=t,0===this.count%n.taps)return this.hasRequireFailures()?(this._timer=setTimeout(function(){e.state=Mt,e.tryEmit()},n.interval),wt):Mt}return Lt},o.failTimeout=function(){var t=this;return this._timer=setTimeout(function(){t.state=Lt},this.options.interval),Lt},o.reset=function(){clearTimeout(this._timer)},o.emit=function(){this.state===Mt&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},i})(Wt),Ht=(function(n){function i(e){return void 0===e&&(e={}),n.call(this,t({pointers:1},e))||this}e(i,n);var o=i.prototype;return o.attrTest=function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},o.process=function(t){var e=this.state,n=t.eventType,i=6&e,o=this.attrTest(t);return i&&(n&x||!o)?e|zt:i||o?n&R?e|xt:e&wt?e|Rt:wt:Lt},i})(Wt);function Ut(t){return t===X?'down':t===F?'up':t===z?'left':t===L?'right':''}var kt=(function(n){function i(e){var i;return void 0===e&&(e={}),(i=n.call(this,t({event:'pan',threshold:10,pointers:1,direction:q},e))||this).pX=null,i.pY=null,i}e(i,n);var o=i.prototype;return o.getTouchAction=function(){var t=this.options.direction,e=[];return t&Y&&e.push(I),t&W&&e.push(O),e},o.directionTest=function(t){var e=this.options,n=!0,i=t.distance,o=t.direction,s=t.deltaX,u=t.deltaY;return o&e.direction||(e.direction&Y?(o=0===s?M:s<0?z:L,n=s!==this.pX,i=Math.abs(t.deltaX)):(o=0===u?M:u<0?F:X,n=u!==this.pY,i=Math.abs(t.deltaY))),t.direction=o,n&&i>e.threshold&&o&e.direction},o.attrTest=function(t){return Ht.prototype.attrTest.call(this,t)&&(this.state&wt||!(this.state&wt)&&this.directionTest(t))},o.emit=function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=Ut(t.direction);e&&(t.additionalEvent=this.options.event+e),n.prototype.emit.call(this,t)},i})(Ht),Vt=(function(n){function i(e){return void 0===e&&(e={}),n.call(this,t({event:'swipe',threshold:10,velocity:.3,direction:30,pointers:1},e))||this}e(i,n);var o=i.prototype;return o.getTouchAction=function(){return kt.prototype.getTouchAction.call(this)},o.attrTest=function(t){var e,i=this.options.direction;return 30&i?e=t.overallVelocity:i&Y?e=t.overallVelocityX:i&W&&(e=t.overallVelocityY),n.prototype.attrTest.call(this,t)&&i&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers===this.options.pointers&&l(e)>this.options.velocity&&t.eventType&R},o.emit=function(t){var e=Ut(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)},i})(Ht),Gt=(function(n){function i(e){return void 0===e&&(e={}),n.call(this,t({event:'pinch',threshold:0,pointers:2},e))||this}e(i,n);var o=i.prototype;return o.getTouchAction=function(){return[P]},o.attrTest=function(t){return n.prototype.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&wt)},o.emit=function(t){if(1!==t.scale){var e=t.scale<1?'in':'out';t.additionalEvent=this.options.event+e}n.prototype.emit.call(this,t)},i})(Ht),Zt=(function(n){function i(e){return void 0===e&&(e={}),n.call(this,t({event:'rotate',threshold:0,pointers:2},e))||this}e(i,n);var o=i.prototype;return o.getTouchAction=function(){return[P]},o.attrTest=function(t){return n.prototype.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&wt)},i})(Ht),Bt=(function(n){function i(e){var i;return void 0===e&&(e={}),(i=n.call(this,t({event:'press',pointers:1,time:251,threshold:9},e))||this)._timer=null,i._input=null,i}e(i,n);var o=i.prototype;return o.getTouchAction=function(){return[b]},o.process=function(t){var e=this,n=this.options,i=t.pointers.length===n.pointers,o=t.distance<n.threshold,s=t.deltaTime>n.time;if(this._input=t,!o||!i||12&t.eventType&&!s)this.reset();else if(t.eventType&N)this.reset(),this._timer=setTimeout(function(){e.state=Mt,e.tryEmit()},n.time);else if(t.eventType&R)return Mt;return Lt},o.reset=function(){clearTimeout(this._timer)},o.emit=function(t){this.state===Mt&&(t&&t.eventType&R?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=p(),this.manager.emit(this.options.event,this._input)))},i})(Wt),$t={domEvents:!1,touchAction:T,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Jt=[[Zt,{enable:!1}],[Gt,{enable:!1},['rotate']],[Vt,{direction:Y}],[kt,{direction:Y},['swipe']],[qt],[qt,{event:'doubletap',taps:2},['tap']],[Bt]];function Kt(t,e){var n,i=t.element;i.style&&(k(t.options.cssProps,function(o,s){n=f(i.style,s),e?(t.oldCssProps[n]=i.style[n],i.style[n]=o):i.style[n]=t.oldCssProps[n]||""}),e||(t.oldCssProps={}))}function Qt(t,e){var n=document.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}var te=(function(){function t(t,e){var n,i=this;this.options=s({},$t,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((n=this).options.inputClass||(_?yt:C?Pt:j?Dt:At))(n,ut),this.touchAction=new B(this,this.options.touchAction),Kt(this,!0),k(this.options.recognizers,function(t){var e=i.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}var e=t.prototype;return e.set=function(t){return s(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},e.stop=function(t){this.session.stopped=t?2:1},e.recognize=function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var i=this.recognizers,o=e.curRecognizer;(!o||o&&o.state&Mt)&&(e.curRecognizer=null,o=null);for(var s=0;s<i.length;)n=i[s],2===e.stopped||o&&n!==o&&!n.canRecognizeWith(o)?n.reset():n.recognize(t),!o&&14&n.state&&(e.curRecognizer=n,o=n),s++}},e.get=function(t){if(t instanceof Wt)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event===t)return e[n];return null},e.add=function(t){if(St(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},e.remove=function(t){if(St(t,"remove",this))return this;var e=this.get(t);if(t){var n=this.recognizers,i=ft(n,e);-1!==i&&(n.splice(i,1),this.touchAction.update())}return this},e.on=function(t,e){if(void 0===t||void 0===e)return this;var n=this.handlers;return k(at(t),function(t){n[t]=n[t]||[],n[t].push(e)}),this},e.off=function(t,e){if(void 0===t)return this;var n=this.handlers;return k(at(t),function(t){e?n[t]&&n[t].splice(ft(n[t],e),1):delete n[t]}),this},e.emit=function(t,e){this.options.domEvents&&Qt(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var i=0;i<n.length;)n[i](e),i++}},e.destroy=function(){this.element&&Kt(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},t})(),ee={touchstart:N,touchmove:w,touchend:R,touchcancel:x},ne=(function(t){function n(){var e,i=n.prototype;return i.evTarget="touchstart",i.evWin="touchstart touchmove touchend touchcancel",(e=t.apply(this,arguments)||this).started=!1,e}return e(n,t),n.prototype.handler=function(t){var e=ee[t.type];if(e===N&&(this.started=!0),this.started){var n=re.call(this,t,e);12&e&&n[0].length-n[1].length===0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:D,srcEvent:t})}},n})(pt);function re(t,e){var n=Tt(t.touches),i=Tt(t.changedTouches);return 12&e&&(n=bt(n.concat(i),'identifier',!0)),[n,i]}function ie(t,e,n){var i="DEPRECATED METHOD: "+e+"\n"+n+" AT \n";return function(){var e=new Error('get-stack-trace'),n=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,'').replace(/^\s+at\s+/gm,'').replace(/^Object.<anonymous>\s*\(/gm,'{anonymous}()@'):'Unknown Stack Trace',o=window.console&&(window.console.warn||window.console.log);return o&&o.call(window.console,i,n),t.apply(this,arguments)}}var oe=ie(function(t,e,n){for(var i=Object.keys(e),o=0;o<i.length;)(!n||n&&void 0===t[i[o]])&&(t[i[o]]=e[i[o]]),o++;return t},'extend','Use `assign`.'),se=ie(function(t,e){return oe(t,e,!0)},'merge','Use `assign`.');function ue(t,e,n){var i,o=e.prototype;(i=t.prototype=Object.create(o)).constructor=t,i._super=o,n&&s(i,n)}function ae(t,e){return function(){return t.apply(e,arguments)}}var ce=(function(){var e=function(e,n){return void 0===n&&(n={}),new te(e,t({recognizers:Jt.concat()},n))};return e.VERSION="2.0.17-rc",e.DIRECTION_ALL=q,e.DIRECTION_DOWN=X,e.DIRECTION_LEFT=z,e.DIRECTION_RIGHT=L,e.DIRECTION_UP=F,e.DIRECTION_HORIZONTAL=Y,e.DIRECTION_VERTICAL=W,e.DIRECTION_NONE=M,e.DIRECTION_DOWN=X,e.INPUT_START=N,e.INPUT_MOVE=w,e.INPUT_END=R,e.INPUT_CANCEL=x,e.STATE_POSSIBLE=Nt,e.STATE_BEGAN=wt,e.STATE_CHANGED=Rt,e.STATE_ENDED=xt,e.STATE_RECOGNIZED=Mt,e.STATE_CANCELLED=zt,e.STATE_FAILED=Lt,e.Manager=te,e.Input=pt,e.TouchAction=B,e.TouchInput=Pt,e.MouseInput=At,e.PointerEventInput=yt,e.TouchMouseInput=Dt,e.SingleTouchInput=ne,e.Recognizer=Wt,e.AttrRecognizer=Ht,e.Tap=qt,e.Pan=kt,e.Swipe=Vt,e.Pinch=Gt,e.Rotate=Zt,e.Press=Bt,e.on=ct,e.off=ht,e.each=k,e.merge=se,e.extend=oe,e.bindFn=ae,e.assign=s,e.inherit=ue,e.bindFn=ae,e.prefixed=f,e.toArray=Tt,e.inArray=ft,e.uniqueArray=bt,e.splitStr=at,e.boolOrFn=V,e.hasParent=$,e.addEventListeners=ct,e.removeEventListeners=ht,e.defaults=s({},$t,{preset:Jt}),e})(),he=ce.defaults,le=ce},3282,[]);
15695
- __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"CONTENT_TOUCHES_DELAY",{enumerable:!0,get:function(){return T}}),Object.defineProperty(_e,"CONTENT_TOUCHES_QUICK_TAP_END_DELAY",{enumerable:!0,get:function(){return I}}),Object.defineProperty(_e,"MULTI_FINGER_PAN_MAX_PINCH_THRESHOLD",{enumerable:!0,get:function(){return N}}),Object.defineProperty(_e,"MULTI_FINGER_PAN_MAX_ROTATION_THRESHOLD",{enumerable:!0,get:function(){return E}}),Object.defineProperty(_e,"DEG_RAD",{enumerable:!0,get:function(){return O}}),Object.defineProperty(_e,"EventMap",{enumerable:!0,get:function(){return _}}),Object.defineProperty(_e,"Direction",{enumerable:!0,get:function(){return f}}),Object.defineProperty(_e,"DirectionMap",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e,"HammerInputNames",{enumerable:!0,get:function(){return D}}),Object.defineProperty(_e,"HammerDirectionNames",{enumerable:!0,get:function(){return R}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e},u=r(d[1]);const T=240,I=50,N=.1,E=7,O=Math.PI/180,_={[n.default.INPUT_START]:u.State.BEGAN,[n.default.INPUT_MOVE]:u.State.ACTIVE,[n.default.INPUT_END]:u.State.END,[n.default.INPUT_CANCEL]:u.State.FAILED},f={RIGHT:1,LEFT:2,UP:4,DOWN:8},l={[n.default.DIRECTION_RIGHT]:f.RIGHT,[n.default.DIRECTION_LEFT]:f.LEFT,[n.default.DIRECTION_UP]:f.UP,[n.default.DIRECTION_DOWN]:f.DOWN},D={[n.default.INPUT_START]:'START',[n.default.INPUT_MOVE]:'MOVE',[n.default.INPUT_END]:'END',[n.default.INPUT_CANCEL]:'CANCEL'},R={[n.default.DIRECTION_HORIZONTAL]:'HORIZONTAL',[n.default.DIRECTION_UP]:'UP',[n.default.DIRECTION_DOWN]:'DOWN',[n.default.DIRECTION_VERTICAL]:'VERTICAL',[n.default.DIRECTION_NONE]:'NONE',[n.default.DIRECTION_ALL]:'ALL',[n.default.DIRECTION_RIGHT]:'RIGHT',[n.default.DIRECTION_LEFT]:'LEFT'}},3283,[3282,3245]);
15696
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"gestures",{enumerable:!0,get:function(){return t}}),e.getHandler=n,e.createGestureHandler=function(n,o){if(n in t)throw new Error(`Handler with tag ${n} already exists`);t[n]=o,t[n].handlerTag=n},e.dropGestureHandler=function(o){if(!(o in t))return;n(o).destroy(),delete t[o]},e.getNodes=function(){return Object.assign({},t)};const t={};function n(n){if(n in t)return t[n];throw new Error(`No handler for tag ${n}`)}},3284,[]);
15697
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ghQueueMicrotask",{enumerable:!0,get:function(){return t}});const t='function'==typeof setImmediate?setImmediate.bind(null):'function'==typeof requestAnimationFrame?requestAnimationFrame.bind(null):queueMicrotask.bind(null)},3285,[]);
15698
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isnan",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"isValidNumber",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"TEST_MIN_IF_NOT_NAN",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"VEC_LEN_SQ",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"TEST_MAX_IF_NOT_NAN",{enumerable:!0,get:function(){return o}}),e.fireAfterInterval=function(t,n){if(!n)return t(),null;return setTimeout(()=>t(),n)};const t=t=>Number.isNaN(t),n=t=>'number'==typeof t&&!Number.isNaN(t),u=(n,u)=>!t(u)&&(u<0&&n<=u||u>=0&&n>=u),f=({x:t=0,y:n=0}={})=>t*t+n*n,o=(n,u)=>!t(u)&&(u<0&&n<u||u>=0&&n>u)},3286,[]);
15699
- __d(function(g,r,i,a,m,_e,d){"use strict";const e=["shouldActivateOnStart","disallowInterruption","shouldCancelWhenOutside","minDurationMs","maxDist","minPointers","maxPointers"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return v}});var n=t(r(d[0])),s=t(r(d[1])),u=r(d[2]),l=r(d[3]),o=t(r(d[4])),h=r(d[5]);class c extends o.default{initialEvent=null;get name(){return'press'}get minDurationMs(){return(0,h.isnan)(this.config.minDurationMs)?5:this.config.minDurationMs}get maxDist(){return(0,h.isnan)(this.config.maxDist)?9:this.config.maxDist}get NativeGestureClass(){return s.default.Press}shouldDelayTouches=!0;simulateCancelEvent(e){this.hasGestureFailed=!0,this.cancelEvent(e)}updateHasCustomActivationCriteria({shouldCancelWhenOutside:e,maxDistSq:t}){return e||!(0,h.isValidNumber)(t)}getState(e){return{[s.default.INPUT_START]:u.State.BEGAN,[s.default.INPUT_MOVE]:u.State.ACTIVE,[s.default.INPUT_END]:u.State.END,[s.default.INPUT_CANCEL]:u.State.CANCELLED}[e]}getConfig(){return this.hasCustomActivationCriteria?this.config:{shouldCancelWhenOutside:!0,maxDistSq:10}}getHammerConfig(){return Object.assign({},super.getHammerConfig(),{time:this.minDurationMs})}onGestureActivated(e){this.onGestureStart(e)}shouldDelayTouchForEvent({pointerType:e}){return this.shouldDelayTouches&&'touch'===e}onGestureStart(e){this.isGestureRunning=!0,clearTimeout(this.visualFeedbackTimer),this.initialEvent=e,this.visualFeedbackTimer=(0,h.fireAfterInterval)(()=>{this.sendGestureStartedEvent(this.initialEvent),this.initialEvent=null},this.shouldDelayTouchForEvent(e)&&l.CONTENT_TOUCHES_DELAY)}sendGestureStartedEvent(e){clearTimeout(this.visualFeedbackTimer),this.visualFeedbackTimer=null,this.sendEvent(Object.assign({},e,{eventType:s.default.INPUT_MOVE,isFirst:!0}))}forceInvalidate(e){super.forceInvalidate(e),clearTimeout(this.visualFeedbackTimer),this.visualFeedbackTimer=null,this.initialEvent=null}onRawEvent(e){if(super.onRawEvent(e),this.isGestureRunning)if(e.isFinal){let t;this.visualFeedbackTimer&&(t=l.CONTENT_TOUCHES_QUICK_TAP_END_DELAY,this.sendGestureStartedEvent(this.initialEvent),this.initialEvent=null),(0,h.fireAfterInterval)(()=>{this.sendEvent(Object.assign({},e,{eventType:s.default.INPUT_END,isFinal:!0})),this.onGestureEnded()},t)}else this.sendEvent(Object.assign({},e,{eventType:s.default.INPUT_MOVE,isFinal:!1}))}updateGestureConfig(t){let{shouldActivateOnStart:s=!1,disallowInterruption:u=!1,shouldCancelWhenOutside:l=!0,minDurationMs:o=Number.NaN,maxDist:h=Number.NaN,minPointers:c=1,maxPointers:v=1}=t,E=(0,n.default)(t,e);return super.updateGestureConfig(Object.assign({shouldActivateOnStart:s,disallowInterruption:u,shouldCancelWhenOutside:l,minDurationMs:o,maxDist:h,minPointers:c,maxPointers:v},E))}}var v=c},3287,[120,3282,3245,3283,3280,3286]);
15700
- __d(function(g,r,i,a,m,_e,d){"use strict";function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return c}});var e=t(r(d[0])),n=r(d[1]),s=t(r(d[2])),f=r(d[3]),l=r(d[4]);class u extends s.default{get name(){return'pan'}get NativeGestureClass(){return e.default.Pan}getHammerConfig(){return Object.assign({},super.getHammerConfig(),{direction:this.getDirection()})}getState(t){const e=super.getState(t);return this.previousState===l.State.UNDETERMINED&&e===l.State.ACTIVE?l.State.BEGAN:e}getDirection(){const t=this.getConfig(),{activeOffsetXStart:n,activeOffsetXEnd:s,activeOffsetYStart:l,activeOffsetYEnd:u,minDist:c}=t;let o=[],N=[];if(!(0,f.isnan)(c))return e.default.DIRECTION_ALL;(0,f.isnan)(n)||N.push(e.default.DIRECTION_LEFT),(0,f.isnan)(s)||N.push(e.default.DIRECTION_RIGHT),2===N.length&&(N=[e.default.DIRECTION_HORIZONTAL]),o=o.concat(N);let O=[];return(0,f.isnan)(l)||O.push(e.default.DIRECTION_UP),(0,f.isnan)(u)||O.push(e.default.DIRECTION_DOWN),2===O.length&&(O=[e.default.DIRECTION_VERTICAL]),o=o.concat(O),o.length?o[0]===e.default.DIRECTION_HORIZONTAL&&o[1]===e.default.DIRECTION_VERTICAL||N.length&&O.length?e.default.DIRECTION_ALL:o[0]:e.default.DIRECTION_NONE}getConfig(){return this.hasCustomActivationCriteria?this.config:{minDistSq:10}}shouldFailUnderCustomCriteria({deltaX:t,deltaY:e},n){return!(0,f.isnan)(n.failOffsetXStart)&&t<n.failOffsetXStart||!(0,f.isnan)(n.failOffsetXEnd)&&t>n.failOffsetXEnd||!(0,f.isnan)(n.failOffsetYStart)&&e<n.failOffsetYStart||!(0,f.isnan)(n.failOffsetYEnd)&&e>n.failOffsetYEnd}shouldActivateUnderCustomCriteria({deltaX:t,deltaY:e,velocity:n},s){return!(0,f.isnan)(s.activeOffsetXStart)&&t<s.activeOffsetXStart||!(0,f.isnan)(s.activeOffsetXEnd)&&t>s.activeOffsetXEnd||!(0,f.isnan)(s.activeOffsetYStart)&&e<s.activeOffsetYStart||!(0,f.isnan)(s.activeOffsetYEnd)&&e>s.activeOffsetYEnd||(0,f.TEST_MIN_IF_NOT_NAN)((0,f.VEC_LEN_SQ)({x:t,y:e}),s.minDistSq)||(0,f.TEST_MIN_IF_NOT_NAN)(n.x,s.minVelocityX)||(0,f.TEST_MIN_IF_NOT_NAN)(n.y,s.minVelocityY)||(0,f.TEST_MIN_IF_NOT_NAN)((0,f.VEC_LEN_SQ)(n),s.minVelocitySq)}shouldMultiFingerPanFail({pointerLength:t,scale:e,deltaRotation:s}){if(t<=1)return!1;const f=Math.abs(e-1),l=Math.abs(s);return f>n.MULTI_FINGER_PAN_MAX_PINCH_THRESHOLD||l>n.MULTI_FINGER_PAN_MAX_ROTATION_THRESHOLD}updateHasCustomActivationCriteria(t){return(0,f.isValidNumber)(t.minDistSq)||(0,f.isValidNumber)(t.minVelocityX)||(0,f.isValidNumber)(t.minVelocityY)||(0,f.isValidNumber)(t.minVelocitySq)||(0,f.isValidNumber)(t.activeOffsetXStart)||(0,f.isValidNumber)(t.activeOffsetXEnd)||(0,f.isValidNumber)(t.activeOffsetYStart)||(0,f.isValidNumber)(t.activeOffsetYEnd)}isGestureEnabledForEvent(t,e,n){if(this.shouldFailUnderCustomCriteria(n,t))return{failed:!0};const s={x:n.velocityX,y:n.velocityY};return this.hasCustomActivationCriteria&&this.shouldActivateUnderCustomCriteria({deltaX:n.deltaX,deltaY:n.deltaY,velocity:s},t)?this.shouldMultiFingerPanFail({pointerLength:n.maxPointers,scale:n.scale,deltaRotation:n.deltaRotation})?{failed:!0}:{success:!0}:{success:!1}}}var c=u},3288,[3282,3283,3289,3286,3245]);
15701
- __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,"default",{enumerable:!0,get:function(){return u}});var t=e(r(d[0])),n=e(r(d[1]));class l extends t.default{get shouldEnableGestureOnSetup(){return!0}transformNativeEvent({deltaX:e,deltaY:t,velocityX:l,velocityY:u,center:{x:o,y:s}}){const c=this.view.getBoundingClientRect(),f=n.default.get();return{translationX:e-(this.__initialX||0),translationY:t-(this.__initialY||0),absoluteX:o,absoluteY:s,velocityX:l*f,velocityY:u*f,x:o-c.left,y:s-c.top}}}var u=l},3289,[3281,195]);
15702
- __d(function(g,r,i,a,m,_e,d){"use strict";const e=["shouldCancelWhenOutside","maxDeltaX","maxDeltaY","numberOfTaps","minDurationMs","maxDelayMs","maxDurationMs","maxDist","minPointers","maxPointers"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return h}});var s=t(r(d[0])),n=t(r(d[1])),u=t(r(d[2])),l=r(d[3]);class o extends u.default{_shouldFireEndEvent=null;get name(){return'tap'}get NativeGestureClass(){return n.default.Tap}get maxDelayMs(){return(0,l.isnan)(this.config.maxDelayMs)?300:this.config.maxDelayMs}simulateCancelEvent(e){this.isGestureRunning&&this.cancelEvent(e)}onGestureActivated(e){this.isGestureRunning&&this.onSuccessfulTap(e)}onSuccessfulTap=e=>{this._getPendingGestures().length?this._shouldFireEndEvent=e:(e.eventType===n.default.INPUT_END&&this.sendEvent(Object.assign({},e,{eventType:n.default.INPUT_MOVE})),this.sendEvent(Object.assign({},e,{isFinal:!0})),this.onGestureEnded(e))};onRawEvent(e){if(super.onRawEvent(e),!this.hasGestureFailed&&!this.isGestureRunning&&!e.isFinal){const t=this.hammer.get(this.name);t.options.enable(t,e)&&(clearTimeout(this._multiTapTimer),this.onStart(e),this.sendEvent(e))}if(e.isFinal&&e.maxPointers>1&&setTimeout(()=>{this.isGestureRunning&&this.cancelEvent(e)}),!this.hasGestureFailed)if(e.isFinal)e.maxPointers>1&&setTimeout(()=>{this.isGestureRunning&&this.cancelEvent(e)}),clearTimeout(this._timer),this._timer=setTimeout(()=>{this.hasGestureFailed=!0,this.cancelEvent(e)},this.maxDelayMs);else if(!this.hasGestureFailed&&!this.isGestureRunning){const t=this.hammer.get(this.name);t.options.enable(t,e)&&(clearTimeout(this._multiTapTimer),this.onStart(e),this.sendEvent(e))}}getHammerConfig(){return Object.assign({},super.getHammerConfig(),{event:this.name,taps:(0,l.isnan)(this.config.numberOfTaps)?1:this.config.numberOfTaps,interval:this.maxDelayMs,time:(0,l.isnan)(this.config.maxDurationMs)||null==this.config.maxDurationMs?250:this.config.maxDurationMs})}updateGestureConfig(t){let{shouldCancelWhenOutside:n=!0,maxDeltaX:u=Number.NaN,maxDeltaY:l=Number.NaN,numberOfTaps:o=1,minDurationMs:h=525,maxDelayMs:c=Number.NaN,maxDurationMs:f=Number.NaN,maxDist:x=2,minPointers:E=1,maxPointers:D=1}=t,p=(0,s.default)(t,e);return super.updateGestureConfig(Object.assign({shouldCancelWhenOutside:n,numberOfTaps:o,maxDeltaX:u,maxDeltaY:l,minDurationMs:h,maxDelayMs:c,maxDist:x,minPointers:E,maxPointers:D},p))}onGestureEnded(...e){clearTimeout(this._timer),super.onGestureEnded(...e)}onWaitingEnded(e){this._shouldFireEndEvent&&(this.onSuccessfulTap(this._shouldFireEndEvent),this._shouldFireEndEvent=null)}}var h=o},3290,[120,3282,3280,3286]);
15703
- __d(function(g,r,i,a,m,_e,d){"use strict";function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return f}});var e=t(r(d[0])),n=r(d[1]),s=t(r(d[2])),u=r(d[3]);class o extends s.default{get minDurationMs(){return(0,u.isnan)(this.config.minDurationMs)?251:this.config.minDurationMs}get maxDist(){return(0,u.isnan)(this.config.maxDist)?9:this.config.maxDist}updateHasCustomActivationCriteria({maxDistSq:t}){return!(0,u.isValidNumber)(t)}getConfig(){return this.hasCustomActivationCriteria?this.config:{shouldCancelWhenOutside:!0,maxDistSq:10}}getHammerConfig(){return Object.assign({},super.getHammerConfig(),{time:this.minDurationMs})}getState(t){return{[e.default.INPUT_START]:n.State.ACTIVE,[e.default.INPUT_MOVE]:n.State.ACTIVE,[e.default.INPUT_END]:n.State.END,[e.default.INPUT_CANCEL]:n.State.FAILED}[t]}}var f=o},3291,[3282,3245,3287,3286]);
15704
- __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,"default",{enumerable:!0,get:function(){return c}});var t=e(r(d[0])),n=e(r(d[1]));class u extends n.default{get name(){return'pinch'}get NativeGestureClass(){return t.default.Pinch}transformNativeEvent({scale:e,velocity:t,center:n}){return{focalX:n.x,focalY:n.y,velocity:t,scale:e}}}var c=u},3292,[3282,3293]);
15705
- __d(function(g,r,i,a,m,_e,d){"use strict";const e=["minPointers","maxPointers"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return o}});var n=t(r(d[0])),s=t(r(d[1]));class u extends s.default{get shouldEnableGestureOnSetup(){return!1}updateGestureConfig(t){let{minPointers:s=2,maxPointers:u=2}=t,o=(0,n.default)(t,e);return super.updateGestureConfig(Object.assign({minPointers:s,maxPointers:u},o))}isGestureEnabledForEvent({minPointers:e,maxPointers:t},n,{maxPointers:s}){if(s>t)return{failed:!0};return{success:s>=e}}}var o=u},3293,[120,3281]);
15706
- __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,"default",{enumerable:!0,get:function(){return l}});var t=e(r(d[0])),n=r(d[1]),o=e(r(d[2]));class u extends o.default{get name(){return'rotate'}get NativeGestureClass(){return t.default.Rotate}transformNativeEvent({rotation:e,velocity:t,center:o}){return{rotation:(e-(this.initialRotation??0))*n.DEG_RAD,anchorX:o.x,anchorY:o.y,velocity:t}}}var l=u},3294,[3282,3283,3293]);
15707
- __d(function(g,r,i,a,m,_e,d){"use strict";const e=["numberOfPointers","direction"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return h}});var n=t(r(d[0])),s=t(r(d[1])),u=r(d[2]),o=r(d[3]),c=t(r(d[4])),f=r(d[5]);class l extends c.default{get name(){return'swipe'}get NativeGestureClass(){return s.default.Swipe}onGestureActivated(e){this.sendEvent(Object.assign({},e,{eventType:s.default.INPUT_MOVE,isFinal:!1,isFirst:!0})),this.isGestureRunning=!1,this.hasGestureFailed=!1,this.sendEvent(Object.assign({},e,{eventType:s.default.INPUT_END,isFinal:!0}))}onRawEvent(e){if(super.onRawEvent(e),!this.hasGestureFailed)if(e.isFinal)setTimeout(()=>{this.isGestureRunning&&this.cancelEvent(e)});else if(!this.hasGestureFailed&&!this.isGestureRunning){const t=this.hammer.get(this.name);t.options.enable(t,e)&&(this.onStart(e),this.sendEvent(e))}}getHammerConfig(){return{pointers:this.config.numberOfPointers,direction:this.getDirection()}}getTargetDirections(e){const t=[];return e&u.Direction.RIGHT&&t.push(s.default.DIRECTION_RIGHT),e&u.Direction.LEFT&&t.push(s.default.DIRECTION_LEFT),e&u.Direction.UP&&t.push(s.default.DIRECTION_UP),e&u.Direction.DOWN&&t.push(s.default.DIRECTION_DOWN),t}getDirection(){const{direction:e}=this.getConfig();let t=[];return e&u.Direction.RIGHT&&t.push(s.default.DIRECTION_HORIZONTAL),e&u.Direction.LEFT&&t.push(s.default.DIRECTION_HORIZONTAL),e&u.Direction.UP&&t.push(s.default.DIRECTION_VERTICAL),e&u.Direction.DOWN&&t.push(s.default.DIRECTION_VERTICAL),t=[...new Set(t)],0===t.length?s.default.DIRECTION_NONE:1===t.length?t[0]:s.default.DIRECTION_ALL}isGestureEnabledForEvent({numberOfPointers:e},t,{maxPointers:n}){const s=n===e;return!s&&this.isGestureRunning?{failed:!0}:{success:s}}updateGestureConfig(t){let{numberOfPointers:s=1,direction:u}=t,c=(0,n.default)(t,e);if((0,f.isnan)(u)||'number'!=typeof u)throw new o.GesturePropError('direction',u,'number');return super.updateGestureConfig(Object.assign({numberOfPointers:s,direction:u},c))}}var h=l},3295,[120,3282,3283,3296,3289,3286]);
15708
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"GesturePropError",{enumerable:!0,get:function(){return t}});class t extends Error{constructor(t,n,o){super(`Invalid property \`${t}: ${n}\` expected \`${o}\``)}}},3296,[]);
15709
- __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,"GestureHandlerWebDelegate",{enumerable:!0,get:function(){return c}});var t=e(r(d[0])),s=e(r(d[1])),n=r(d[2]),o=r(d[3]),u=r(d[4]),h=e(r(d[5])),l=e(r(d[6]));class c{isInitialized=!1;eventManagers=[];defaultViewStyles={userSelect:'',touchAction:''};init(e,n){if(!e)throw new Error(`Cannot find HTML Element for handler ${n.handlerTag}`);this.isInitialized=!0,this.gestureHandler=n,this.view=(0,t.default)(e),this.defaultViewStyles={userSelect:this.view.style.userSelect,touchAction:this.view.style.touchAction};const o=n.config;this.setUserSelect(o.enabled),this.setTouchAction(o.enabled),this.setContextMenu(o.enabled),this.eventManagers.push(new s.default(this.view)),this.eventManagers.push(new h.default(this.view)),this.eventManagers.push(new l.default(this.view)),this.eventManagers.forEach(e=>this.gestureHandler.attachEventManager(e))}isPointerInBounds({x:e,y:t}){return(0,o.isPointerInBounds)(this.view,{x:e,y:t})}measureView(){const e=this.view.getBoundingClientRect();return{pageX:e.left,pageY:e.top,width:e.width,height:e.height}}reset(){this.eventManagers.forEach(e=>e.resetManager())}tryResetCursor(){const e=this.gestureHandler.config;e.activeCursor&&'auto'!==e.activeCursor&&this.gestureHandler.state===n.State.ACTIVE&&(this.view.style.cursor='auto')}shouldDisableContextMenu(e){return void 0===e.enableContextMenu&&this.gestureHandler.isButtonInConfig(u.MouseButton.RIGHT)||!1===e.enableContextMenu}addContextMenuListeners(e){this.shouldDisableContextMenu(e)?this.view.addEventListener('contextmenu',this.disableContextMenu):e.enableContextMenu&&this.view.addEventListener('contextmenu',this.enableContextMenu)}removeContextMenuListeners(e){this.shouldDisableContextMenu(e)?this.view.removeEventListener('contextmenu',this.disableContextMenu):e.enableContextMenu&&this.view.removeEventListener('contextmenu',this.enableContextMenu)}disableContextMenu(e){e.preventDefault()}enableContextMenu(e){e.stopPropagation()}setUserSelect(e){const{userSelect:t}=this.gestureHandler.config;this.view.style.userSelect=e?t??'none':this.defaultViewStyles.userSelect,this.view.style.webkitUserSelect=e?t??'none':this.defaultViewStyles.userSelect}setTouchAction(e){const{touchAction:t}=this.gestureHandler.config;this.view.style.touchAction=e?t??'none':this.defaultViewStyles.touchAction,this.view.style.WebkitTouchCallout=e?t??'none':this.defaultViewStyles.touchAction}setContextMenu(e){const t=this.gestureHandler.config;e?this.addContextMenuListeners(t):this.removeContextMenuListeners(t)}onEnabledChange(e){this.isInitialized&&(this.setUserSelect(e),this.setTouchAction(e),this.setContextMenu(e),e?this.eventManagers.forEach(e=>{e.registerListeners()}):this.eventManagers.forEach(e=>{e.unregisterListeners()}))}onBegin(){}onActivate(){const e=this.gestureHandler.config;this.view.style.cursor&&'auto'!==this.view.style.cursor||!e.activeCursor||(this.view.style.cursor=e.activeCursor)}onEnd(){this.tryResetCursor()}onCancel(){this.tryResetCursor()}onFail(){this.tryResetCursor()}destroy(e){this.removeContextMenuListeners(e),this.eventManagers.forEach(e=>{e.unregisterListeners()})}get view(){return this._view}set view(e){this._view=e}}},3297,[3298,3299,3245,3275,3265,3301,3302]);
15710
- __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 e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e},f=r(d[1]);function l(e){if(e instanceof n.default)return e._listRef._scrollRef.firstChild;if(void 0!==e?.viewTag)return l(e.viewTag);if(e instanceof Element)return'contents'===e.style.display?l(e.firstChild):e;if((0,f.isRNSVGElement)(e))return e.elementRef.current;let t=e?.current;for(;t&&'contents'===t.style.display;)t=t.firstChild;return t}},3298,[138,3275]);
15711
- __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 h}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e},s=r(d[1]),o=r(d[2]),p=r(d[3]),l=r(d[4]);const v=new Set(['SELECT','INPUT']);class h extends n.default{trackedPointers=new Set;mouseButtonsMapper=new Map;constructor(e){super(e),this.mouseButtonsMapper.set(0,s.MouseButton.LEFT),this.mouseButtonsMapper.set(1,s.MouseButton.MIDDLE),this.mouseButtonsMapper.set(2,s.MouseButton.RIGHT),this.mouseButtonsMapper.set(3,s.MouseButton.BUTTON_4),this.mouseButtonsMapper.set(4,s.MouseButton.BUTTON_5),this.lastPosition={x:-1/0,y:-1/0}}pointerDownCallback=e=>{if(!(0,p.isPointerInBounds)(this.view,{x:e.clientX,y:e.clientY}))return;const t=this.mapEvent(e,o.EventTypes.DOWN),n=e.target;v.has(n.tagName)||n.setPointerCapture(t.pointerId),this.markAsInBounds(t.pointerId),this.trackedPointers.add(t.pointerId),++this.activePointersCounter>1?(t.eventType=o.EventTypes.ADDITIONAL_POINTER_DOWN,this.onPointerAdd(t)):this.onPointerDown(t)};pointerUpCallback=e=>{if(0===this.activePointersCounter)return;const t=this.mapEvent(e,o.EventTypes.UP),n=e.target;v.has(n.tagName)||n.releasePointerCapture(t.pointerId),this.markAsOutOfBounds(t.pointerId),this.trackedPointers.delete(t.pointerId),--this.activePointersCounter>0?(t.eventType=o.EventTypes.ADDITIONAL_POINTER_UP,this.onPointerRemove(t)):this.onPointerUp(t)};pointerMoveCallback=e=>{const t=this.mapEvent(e,o.EventTypes.MOVE),n=e.target;n?.hasPointerCapture(e.pointerId)||v.has(n.tagName)||n.setPointerCapture(e.pointerId);const s=(0,p.isPointerInBounds)(this.view,{x:t.x,y:t.y}),l=this.pointersInBounds.indexOf(t.pointerId);s?l<0?(t.eventType=o.EventTypes.ENTER,this.onPointerEnter(t),this.markAsInBounds(t.pointerId)):this.onPointerMove(t):l>=0?(t.eventType=o.EventTypes.LEAVE,this.onPointerLeave(t),this.markAsOutOfBounds(t.pointerId)):this.onPointerOutOfBounds(t),this.lastPosition.x=e.x,this.lastPosition.y=e.y};pointerCancelCallback=e=>{const t=this.mapEvent(e,o.EventTypes.CANCEL);this.onPointerCancel(t),this.markAsOutOfBounds(t.pointerId),this.activePointersCounter=0,this.trackedPointers.clear()};pointerEnterCallback=e=>{const t=this.mapEvent(e,o.EventTypes.ENTER);this.onPointerMoveOver(t)};pointerLeaveCallback=e=>{const t=this.mapEvent(e,o.EventTypes.LEAVE);this.onPointerMoveOut(t)};lostPointerCaptureCallback=e=>{const t=this.mapEvent(e,o.EventTypes.CANCEL);this.trackedPointers.has(t.pointerId)&&(this.onPointerCancel(t),this.activePointersCounter=0,this.trackedPointers.clear())};registerListeners(){this.view.addEventListener('pointerdown',this.pointerDownCallback),this.view.addEventListener('pointerup',this.pointerUpCallback),this.view.addEventListener('pointermove',this.pointerMoveCallback),this.view.addEventListener('pointercancel',this.pointerCancelCallback),this.view.addEventListener('pointerenter',this.pointerEnterCallback),this.view.addEventListener('pointerleave',this.pointerLeaveCallback),this.view.addEventListener('lostpointercapture',this.lostPointerCaptureCallback)}unregisterListeners(){this.view.removeEventListener('pointerdown',this.pointerDownCallback),this.view.removeEventListener('pointerup',this.pointerUpCallback),this.view.removeEventListener('pointermove',this.pointerMoveCallback),this.view.removeEventListener('pointercancel',this.pointerCancelCallback),this.view.removeEventListener('pointerenter',this.pointerEnterCallback),this.view.removeEventListener('pointerleave',this.pointerLeaveCallback),this.view.removeEventListener('lostpointercapture',this.lostPointerCaptureCallback)}mapEvent(e,t){const n=this.view.getBoundingClientRect(),{scaleX:s,scaleY:o}=(0,p.calculateViewScale)(this.view);return{x:e.clientX,y:e.clientY,offsetX:(e.clientX-n.left)/s,offsetY:(e.clientY-n.top)/o,pointerId:e.pointerId,eventType:t,pointerType:p.PointerTypeMapping.get(e.pointerType)??l.PointerType.OTHER,button:this.mouseButtonsMapper.get(e.button),time:e.timeStamp,stylusData:(0,p.tryExtractStylusData)(e)}}resetManager(){super.resetManager(),this.trackedPointers.clear()}}},3299,[3300,3265,3256,3275,3259]);
15712
- __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 n}});class n{pointersInBounds=[];constructor(n){this.view=n,this.activePointersCounter=0}onPointerDown(n){}onPointerAdd(n){}onPointerUp(n){}onPointerRemove(n){}onPointerMove(n){}onPointerLeave(n){}onPointerEnter(n){}onPointerCancel(n){}onPointerOutOfBounds(n){}onPointerMoveOver(n){}onPointerMoveOut(n){}onWheel(n){}setOnPointerDown(n){this.onPointerDown=n}setOnPointerAdd(n){this.onPointerAdd=n}setOnPointerUp(n){this.onPointerUp=n}setOnPointerRemove(n){this.onPointerRemove=n}setOnPointerMove(n){this.onPointerMove=n}setOnPointerLeave(n){this.onPointerLeave=n}setOnPointerEnter(n){this.onPointerEnter=n}setOnPointerCancel(n){this.onPointerCancel=n}setOnPointerOutOfBounds(n){this.onPointerOutOfBounds=n}setOnPointerMoveOver(n){this.onPointerMoveOver=n}setOnPointerMoveOut(n){this.onPointerMoveOut=n}setOnWheel(n){this.onWheel=n}markAsInBounds(n){this.pointersInBounds.indexOf(n)>=0||this.pointersInBounds.push(n)}markAsOutOfBounds(n){const t=this.pointersInBounds.indexOf(n);t<0||this.pointersInBounds.splice(t,1)}resetManager(){this.activePointersCounter=0,this.pointersInBounds=[]}}},3300,[]);
15713
- __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 e,t=r(d[0]),s=r(d[1]),n=(e=s)&&e.__esModule?e:{default:e},c=r(d[2]);class o extends n.default{static activationKeys=['Enter',' '];static cancelationKeys=['Tab'];isPressed=!1;static registeredStaticListeners=!1;static instances=new Set;static keyUpStaticCallback=e=>{-1!==this.activationKeys.indexOf(e.key)&&this.instances.forEach(t=>{t.onKeyUp(e)})};keyDownCallback=e=>{-1!==o.cancelationKeys.indexOf(e.key)&&this.isPressed?this.dispatchEvent(e,t.EventTypes.CANCEL):-1!==o.activationKeys.indexOf(e.key)&&this.dispatchEvent(e,t.EventTypes.DOWN)};onKeyUp=e=>{-1!==o.activationKeys.indexOf(e.key)&&this.isPressed&&this.dispatchEvent(e,t.EventTypes.UP)};dispatchEvent(e,s){if(!(e.target instanceof HTMLElement))return;const n=this.mapEvent(e,s);switch(s){case t.EventTypes.UP:this.isPressed=!1,this.onPointerUp(n);break;case t.EventTypes.DOWN:this.isPressed=!0,this.onPointerDown(n);break;case t.EventTypes.CANCEL:this.isPressed=!1,this.onPointerCancel(n)}}registerListeners(){this.view.addEventListener('keydown',this.keyDownCallback),o.instances.add(this),o.registeredStaticListeners||(o.registeredStaticListeners=!0,document.addEventListener('keyup',o.keyUpStaticCallback,{capture:!0}))}unregisterListeners(){this.view.removeEventListener('keydown',this.keyDownCallback),o.instances.delete(this),0===o.instances.size&&(document.removeEventListener('keyup',o.keyUpStaticCallback,{capture:!0}),o.registeredStaticListeners=!1)}mapEvent(e,t){const s=e.target.getBoundingClientRect(),n={x:s?.x+s?.width/2,y:s?.y+s?.height/2},o={x:s?.width/2,y:s?.height/2};return{x:n.x,y:n.y,offsetX:o.x,offsetY:o.y,pointerId:0,eventType:t,pointerType:c.PointerType.KEY,time:e.timeStamp}}}},3301,[3256,3300,3259]);
15714
- __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 h}});var e,t=r(d[0]),l=(e=t)&&e.__esModule?e:{default:e},s=r(d[1]),n=r(d[2]);class h extends l.default{wheelDelta={x:0,y:0};resetDelta=e=>{this.wheelDelta={x:0,y:0}};wheelCallback=e=>{this.wheelDelta.x+=e.deltaX,this.wheelDelta.y+=e.deltaY;const t=this.mapEvent(e);this.onWheel(t)};registerListeners(){this.view.addEventListener('pointermove',this.resetDelta),this.view.addEventListener('wheel',this.wheelCallback)}unregisterListeners(){this.view.removeEventListener('pointermove',this.resetDelta),this.view.removeEventListener('wheel',this.wheelCallback)}mapEvent(e){return{x:e.clientX+this.wheelDelta.x,y:e.clientY+this.wheelDelta.y,offsetX:e.offsetX-e.deltaX,offsetY:e.offsetY-e.deltaY,pointerId:-1,eventType:s.EventTypes.MOVE,pointerType:n.PointerType.OTHER,time:e.timeStamp,wheelDeltaY:e.wheelDeltaY}}resetManager(){super.resetManager()}}},3302,[3300,3256,3259]);
15715
- __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,"default",{enumerable:!0,get:function(){return c}}),r(d[0]);var t=e(r(d[1])),n=e(r(d[2])),u=e(r(d[3])),l=r(d[4]);function c(e,t){function c(n){return(0,l.jsx)(u.default,{style:[o.container,t],children:(0,l.jsx)(e,Object.assign({},n))})}return c.displayName=`gestureHandlerRootHOC(${e.displayName||e.name})`,(0,n.default)(c,e),c}const o=t.default.create({container:{flex:1}})},3303,[17,33,3304,3307,10]);
15716
- __d(function(g,r,_i,a,m,_e,d){'use strict';var e=r(d[0]),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},p={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},y={};function n(o){return e.isMemo(o)?p:y[o.$$typeof]||t}y[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},y[e.Memo]=p;var s=Object.defineProperty,c=Object.getOwnPropertyNames,i=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,l=Object.getPrototypeOf,u=Object.prototype;m.exports=function e(t,p,y){if('string'!=typeof p){if(u){var O=l(p);O&&O!==u&&e(t,O,y)}var P=c(p);i&&(P=P.concat(i(p)));for(var v=n(t),b=n(p),j=0;j<P.length;++j){var T=P[j];if(!(o[T]||y&&y[T]||b&&b[T]||v&&v[T])){var $=f(p,T);try{s(t,T,$)}catch(e){}}}}return t}},3304,[3305]);
15717
- __d(function(g,r,i,a,m,e,d){'use strict';m.exports=r(d[0])},3305,[3306]);
15693
+ function t(){return t=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},t.apply(this,arguments)}function e(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function n(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var i;Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return le}}),Object.defineProperty(_e,"INPUT_START",{enumerable:!0,get:function(){return N}}),Object.defineProperty(_e,"INPUT_MOVE",{enumerable:!0,get:function(){return w}}),Object.defineProperty(_e,"INPUT_END",{enumerable:!0,get:function(){return R}}),Object.defineProperty(_e,"INPUT_CANCEL",{enumerable:!0,get:function(){return x}}),Object.defineProperty(_e,"STATE_POSSIBLE",{enumerable:!0,get:function(){return Nt}}),Object.defineProperty(_e,"STATE_BEGAN",{enumerable:!0,get:function(){return wt}}),Object.defineProperty(_e,"STATE_CHANGED",{enumerable:!0,get:function(){return Rt}}),Object.defineProperty(_e,"STATE_ENDED",{enumerable:!0,get:function(){return xt}}),Object.defineProperty(_e,"STATE_RECOGNIZED",{enumerable:!0,get:function(){return Mt}}),Object.defineProperty(_e,"STATE_CANCELLED",{enumerable:!0,get:function(){return zt}}),Object.defineProperty(_e,"STATE_FAILED",{enumerable:!0,get:function(){return Lt}}),Object.defineProperty(_e,"DIRECTION_NONE",{enumerable:!0,get:function(){return M}}),Object.defineProperty(_e,"DIRECTION_LEFT",{enumerable:!0,get:function(){return z}}),Object.defineProperty(_e,"DIRECTION_RIGHT",{enumerable:!0,get:function(){return L}}),Object.defineProperty(_e,"DIRECTION_UP",{enumerable:!0,get:function(){return F}}),Object.defineProperty(_e,"DIRECTION_DOWN",{enumerable:!0,get:function(){return X}}),Object.defineProperty(_e,"DIRECTION_HORIZONTAL",{enumerable:!0,get:function(){return Y}}),Object.defineProperty(_e,"DIRECTION_VERTICAL",{enumerable:!0,get:function(){return W}}),Object.defineProperty(_e,"DIRECTION_ALL",{enumerable:!0,get:function(){return q}}),Object.defineProperty(_e,"Manager",{enumerable:!0,get:function(){return te}}),Object.defineProperty(_e,"Input",{enumerable:!0,get:function(){return pt}}),Object.defineProperty(_e,"TouchAction",{enumerable:!0,get:function(){return B}}),Object.defineProperty(_e,"TouchInput",{enumerable:!0,get:function(){return Pt}}),Object.defineProperty(_e,"MouseInput",{enumerable:!0,get:function(){return At}}),Object.defineProperty(_e,"PointerEventInput",{enumerable:!0,get:function(){return yt}}),Object.defineProperty(_e,"TouchMouseInput",{enumerable:!0,get:function(){return Dt}}),Object.defineProperty(_e,"SingleTouchInput",{enumerable:!0,get:function(){return ne}}),Object.defineProperty(_e,"Recognizer",{enumerable:!0,get:function(){return Wt}}),Object.defineProperty(_e,"AttrRecognizer",{enumerable:!0,get:function(){return Ht}}),Object.defineProperty(_e,"Tap",{enumerable:!0,get:function(){return qt}}),Object.defineProperty(_e,"Pan",{enumerable:!0,get:function(){return kt}}),Object.defineProperty(_e,"Swipe",{enumerable:!0,get:function(){return Vt}}),Object.defineProperty(_e,"Pinch",{enumerable:!0,get:function(){return Gt}}),Object.defineProperty(_e,"Rotate",{enumerable:!0,get:function(){return Zt}}),Object.defineProperty(_e,"Press",{enumerable:!0,get:function(){return Bt}}),Object.defineProperty(_e,"on",{enumerable:!0,get:function(){return ct}}),Object.defineProperty(_e,"off",{enumerable:!0,get:function(){return ht}}),Object.defineProperty(_e,"each",{enumerable:!0,get:function(){return k}}),Object.defineProperty(_e,"merge",{enumerable:!0,get:function(){return se}}),Object.defineProperty(_e,"extend",{enumerable:!0,get:function(){return oe}}),Object.defineProperty(_e,"assign",{enumerable:!0,get:function(){return s}}),Object.defineProperty(_e,"inherit",{enumerable:!0,get:function(){return ue}}),Object.defineProperty(_e,"bindFn",{enumerable:!0,get:function(){return ae}}),Object.defineProperty(_e,"prefixed",{enumerable:!0,get:function(){return f}}),Object.defineProperty(_e,"toArray",{enumerable:!0,get:function(){return Tt}}),Object.defineProperty(_e,"inArray",{enumerable:!0,get:function(){return ft}}),Object.defineProperty(_e,"uniqueArray",{enumerable:!0,get:function(){return bt}}),Object.defineProperty(_e,"splitStr",{enumerable:!0,get:function(){return at}}),Object.defineProperty(_e,"boolOrFn",{enumerable:!0,get:function(){return V}}),Object.defineProperty(_e,"hasParent",{enumerable:!0,get:function(){return $}}),Object.defineProperty(_e,"addEventListeners",{enumerable:!0,get:function(){return ct}}),Object.defineProperty(_e,"removeEventListeners",{enumerable:!0,get:function(){return ht}}),Object.defineProperty(_e,"defaults",{enumerable:!0,get:function(){return he}}),i='function'!=typeof Object.assign?function(t){if(null==t)throw new TypeError('Cannot convert undefined or null to object');for(var e=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(null!=i)for(var o in i)i.hasOwnProperty(o)&&(e[o]=i[o])}return e}:Object.assign;var o,s=i,u=['','webkit','Moz','MS','ms','o'],a="undefined"==typeof document?{style:{}}:document.createElement('div'),c='function',h=Math.round,l=Math.abs,p=Date.now;function f(t,e){for(var n,i,o=e[0].toUpperCase()+e.slice(1),s=0;s<u.length;){if((i=(n=u[s])?n+o:e)in t)return i;s++}}o="undefined"==typeof window?{}:window;var v=f(a.style,'touchAction'),y=void 0!==v;var T='compute',b='auto',E='manipulation',P='none',O='pan-x',I='pan-y',A=(function(){if(!y)return!1;var t={},e=o.CSS&&o.CSS.supports;return['auto','manipulation','pan-y','pan-x','pan-x pan-y','none'].forEach(function(n){return t[n]=!e||o.CSS.supports('touch-action',n)}),t})(),j='ontouchstart'in o,_=void 0!==f(o,'PointerEvent'),C=j&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),D='touch',S='mouse',N=1,w=2,R=4,x=8,M=1,z=2,L=4,F=8,X=16,Y=6,W=24,q=30,H=['x','y'],U=['clientX','clientY'];function k(t,e,n){var i;if(t)if(t.forEach)t.forEach(e,n);else if(void 0!==t.length)for(i=0;i<t.length;)e.call(n,t[i],i,t),i++;else for(i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i,t)}function V(t,e){return typeof t===c?t.apply(e&&e[0]||void 0,e):t}function G(t,e){return t.indexOf(e)>-1}function Z(t){if(G(t,P))return P;var e=G(t,O),n=G(t,I);return e&&n?P:e||n?e?O:I:G(t,E)?E:b}var B=(function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){t===T&&(t=this.compute()),y&&this.manager.element.style&&A[t]&&(this.manager.element.style[v]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return k(this.manager.recognizers,function(e){V(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),Z(t.join(' '))},e.preventDefaults=function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var i=this.actions,o=G(i,P)&&!A[P],s=G(i,I)&&!A[I],u=G(i,O)&&!A[O];if(o){var a=1===t.pointers.length,c=t.distance<2,h=t.deltaTime<250;if(a&&c&&h)return}if(!u||!s)return o||s&&n&Y||u&&n&W?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t})();function $(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function J(t){var e=t.length;if(1===e)return{x:h(t[0].clientX),y:h(t[0].clientY)};for(var n=0,i=0,o=0;o<e;)n+=t[o].clientX,i+=t[o].clientY,o++;return{x:h(n/e),y:h(i/e)}}function K(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:h(t.pointers[n].clientX),clientY:h(t.pointers[n].clientY)},n++;return{timeStamp:p(),pointers:e,center:J(e),deltaX:t.deltaX,deltaY:t.deltaY}}function Q(t,e,n){n||(n=H);var i=e[n[0]]-t[n[0]],o=e[n[1]]-t[n[1]];return Math.sqrt(i*i+o*o)}function tt(t,e,n){n||(n=H);var i=e[n[0]]-t[n[0]],o=e[n[1]]-t[n[1]];return 180*Math.atan2(o,i)/Math.PI}function et(t,e){return t===e?M:l(t)>=l(e)?t<0?z:L:e<0?F:X}function nt(t,e){var n=e.center,i=t.offsetDelta||{},o=t.prevDelta||{},s=t.prevInput||{};e.eventType!==N&&s.eventType!==R||(o=t.prevDelta={x:s.deltaX||0,y:s.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=o.x+(n.x-i.x),e.deltaY=o.y+(n.y-i.y)}function rt(t,e,n){return{x:e/t||0,y:n/t||0}}function it(t,e){return tt(e[1],e[0],U)+tt(t[1],t[0],U)}function ot(t,e){var n,i,o,s,u=t.lastInterval||e,a=e.timeStamp-u.timeStamp;if(e.eventType!==x&&(a>25||void 0===u.velocity)){var c=e.deltaX-u.deltaX,h=e.deltaY-u.deltaY,p=rt(a,c,h);i=p.x,o=p.y,n=l(p.x)>l(p.y)?p.x:p.y,s=et(c,h),t.lastInterval=e}else n=u.velocity,i=u.velocityX,o=u.velocityY,s=u.direction;e.velocity=n,e.velocityX=i,e.velocityY=o,e.direction=s}function st(t,e){var n=t.session,i=e.pointers,o=i.length;n.firstInput||(n.firstInput=K(e)),o>1&&!n.firstMultiple?n.firstMultiple=K(e):1===o&&(n.firstMultiple=!1);var s=n.firstInput,u=n.firstMultiple,a=u?u.center:s.center,c=e.center=J(i);e.timeStamp=p(),e.deltaTime=e.timeStamp-s.timeStamp,e.angle=tt(a,c),e.distance=Q(a,c),nt(n,e),e.offsetDirection=et(e.deltaX,e.deltaY);var h,f,v=rt(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=v.x,e.overallVelocityY=v.y,e.overallVelocity=l(v.x)>l(v.y)?v.x:v.y,e.scale=u?(h=u.pointers,Q((f=i)[0],f[1],U)/Q(h[0],h[1],U)):1,e.rotation=u?it(u.pointers,i):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,ot(n,e);var y,T=t.element,b=e.srcEvent;$(y=b.composedPath?b.composedPath()[0]:b.path?b.path[0]:b.target,T)&&(T=y),e.target=T}function ut(t,e,n){var i=n.pointers.length,o=n.changedPointers.length,s=e&N&&i-o===0,u=12&e&&i-o===0;n.isFirst=!!s,n.isFinal=!!u,s&&(t.session={}),n.eventType=e,st(t,n),t.emit('hammer.input',n),t.recognize(n),t.session.prevInput=n}function at(t){return t.trim().split(/\s+/g)}function ct(t,e,n){k(at(e),function(e){t.addEventListener(e,n,!1)})}function ht(t,e,n){k(at(e),function(e){t.removeEventListener(e,n,!1)})}function lt(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var pt=(function(){function t(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){V(t.options.enable,[t])&&n.handler(e)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&ct(this.element,this.evEl,this.domHandler),this.evTarget&&ct(this.target,this.evTarget,this.domHandler),this.evWin&&ct(lt(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&ht(this.element,this.evEl,this.domHandler),this.evTarget&&ht(this.target,this.evTarget,this.domHandler),this.evWin&&ht(lt(this.element),this.evWin,this.domHandler)},t})();function ft(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;i<t.length;){if(n&&t[i][n]==e||!n&&t[i]===e)return i;i++}return-1}var dt={pointerdown:N,pointermove:w,pointerup:R,pointercancel:x,pointerout:x},vt={2:D,3:'pen',4:S,5:'kinect'},mt='pointerdown',gt='pointermove pointerup pointercancel';o.MSPointerEvent&&!o.PointerEvent&&(mt='MSPointerDown',gt='MSPointerMove MSPointerUp MSPointerCancel');var yt=(function(t){function n(){var e,i=n.prototype;return i.evEl=mt,i.evWin=gt,(e=t.apply(this,arguments)||this).store=e.manager.session.pointerEvents=[],e}return e(n,t),n.prototype.handler=function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace('ms',''),o=dt[i],s=vt[t.pointerType]||t.pointerType,u=s===D,a=ft(e,t.pointerId,'pointerId');o&N&&(0===t.button||u)?a<0&&(e.push(t),a=e.length-1):12&o&&(n=!0),a<0||(e[a]=t,this.callback(this.manager,o,{pointers:e,changedPointers:[t],pointerType:s,srcEvent:t}),n&&e.splice(a,1))},n})(pt);function Tt(t){return Array.prototype.slice.call(t,0)}function bt(t,e,n){for(var i=[],o=[],s=0;s<t.length;){var u=e?t[s][e]:t[s];ft(o,u)<0&&i.push(t[s]),o[s]=u,s++}return n&&(i=e?i.sort(function(t,n){return t[e]>n[e]}):i.sort()),i}var Et={touchstart:N,touchmove:w,touchend:R,touchcancel:x},Pt=(function(t){function n(){var e;return n.prototype.evTarget="touchstart touchmove touchend touchcancel",(e=t.apply(this,arguments)||this).targetIds={},e}return e(n,t),n.prototype.handler=function(t){var e=Et[t.type],n=Ot.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:D,srcEvent:t})},n})(pt);function Ot(t,e){var n,i,o=Tt(t.touches),s=this.targetIds;if(3&e&&1===o.length)return s[o[0].identifier]=!0,[o,o];var u=Tt(t.changedTouches),a=[],c=this.target;if(i=o.filter(function(t){return $(t.target,c)}),e===N)for(n=0;n<i.length;)s[i[n].identifier]=!0,n++;for(n=0;n<u.length;)s[u[n].identifier]&&a.push(u[n]),12&e&&delete s[u[n].identifier],n++;return a.length?[bt(i.concat(a),'identifier',!0),a]:void 0}var It={mousedown:N,mousemove:w,mouseup:R},At=(function(t){function n(){var e,i=n.prototype;return i.evEl="mousedown",i.evWin="mousemove mouseup",(e=t.apply(this,arguments)||this).pressed=!1,e}return e(n,t),n.prototype.handler=function(t){var e=It[t.type];e&N&&0===t.button&&(this.pressed=!0),e&w&&1!==t.which&&(e=R),this.pressed&&(e&R&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:S,srcEvent:t}))},n})(pt);function jt(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY},i=this.lastTouches;this.lastTouches.push(n);setTimeout(function(){var t=i.indexOf(n);t>-1&&i.splice(t,1)},2500)}}function _t(t,e){t&N?(this.primaryTouch=e.changedPointers[0].identifier,jt.call(this,e)):12&t&&jt.call(this,e)}function Ct(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var o=this.lastTouches[i],s=Math.abs(e-o.x),u=Math.abs(n-o.y);if(s<=25&&u<=25)return!0}return!1}var Dt=(function(){return(function(t){function i(e,i){var o;return(o=t.call(this,e,i)||this).handler=function(t,e,i){var s=i.pointerType===D,u=i.pointerType===S;if(!(u&&i.sourceCapabilities&&i.sourceCapabilities.firesTouchEvents)){if(s)_t.call(n(n(o)),e,i);else if(u&&Ct.call(n(n(o)),i))return;o.callback(t,e,i)}},o.touch=new Pt(o.manager,o.handler),o.mouse=new At(o.manager,o.handler),o.primaryTouch=null,o.lastTouches=[],o}return e(i,t),i.prototype.destroy=function(){this.touch.destroy(),this.mouse.destroy()},i})(pt)})();function St(t,e,n){return!!Array.isArray(t)&&(k(t,n[e],n),!0)}var Nt=1,wt=2,Rt=4,xt=8,Mt=xt,zt=16,Lt=32,Ft=1;function Xt(t,e){var n=e.manager;return n?n.get(t):t}function Yt(t){return t&zt?'cancel':t&xt?'end':t&Rt?'move':t&wt?'start':''}var Wt=(function(){function e(e){void 0===e&&(e={}),this.options=t({enable:!0},e),this.id=Ft++,this.manager=null,this.state=Nt,this.simultaneous={},this.requireFail=[]}var n=e.prototype;return n.set=function(t){return s(this.options,t),this.manager&&this.manager.touchAction.update(),this},n.recognizeWith=function(t){if(St(t,'recognizeWith',this))return this;var e=this.simultaneous;return e[(t=Xt(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},n.dropRecognizeWith=function(t){return St(t,'dropRecognizeWith',this)||(t=Xt(t,this),delete this.simultaneous[t.id]),this},n.requireFailure=function(t){if(St(t,'requireFailure',this))return this;var e=this.requireFail;return-1===ft(e,t=Xt(t,this))&&(e.push(t),t.requireFailure(this)),this},n.dropRequireFailure=function(t){if(St(t,'dropRequireFailure',this))return this;t=Xt(t,this);var e=ft(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},n.hasRequireFailures=function(){return this.requireFail.length>0},n.canRecognizeWith=function(t){return!!this.simultaneous[t.id]},n.emit=function(t){var e=this,n=this.state;function i(n){e.manager.emit(n,t)}n<xt&&i(e.options.event+Yt(n)),i(e.options.event),t.additionalEvent&&i(t.additionalEvent),n>=xt&&i(e.options.event+Yt(n))},n.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=Lt},n.canEmit=function(){for(var t=0;t<this.requireFail.length;){if(!(33&this.requireFail[t].state))return!1;t++}return!0},n.recognize=function(t){var e=s({},t);if(!V(this.options.enable,[this,e]))return this.reset(),void(this.state=Lt);56&this.state&&(this.state=Nt),this.state=this.process(e),30&this.state&&this.tryEmit(e)},n.process=function(t){},n.getTouchAction=function(){},n.reset=function(){},e})(),qt=(function(n){function i(e){var i;return void 0===e&&(e={}),(i=n.call(this,t({event:'tap',pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},e))||this).pTime=!1,i.pCenter=!1,i._timer=null,i._input=null,i.count=0,i}e(i,n);var o=i.prototype;return o.getTouchAction=function(){return[E]},o.process=function(t){var e=this,n=this.options,i=t.pointers.length===n.pointers,o=t.distance<n.threshold,s=t.deltaTime<n.time;if(this.reset(),t.eventType&N&&0===this.count)return this.failTimeout();if(o&&s&&i){if(t.eventType!==R)return this.failTimeout();var u=!this.pTime||t.timeStamp-this.pTime<n.interval,a=!this.pCenter||Q(this.pCenter,t.center)<n.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,a&&u?this.count+=1:this.count=1,this._input=t,0===this.count%n.taps)return this.hasRequireFailures()?(this._timer=setTimeout(function(){e.state=Mt,e.tryEmit()},n.interval),wt):Mt}return Lt},o.failTimeout=function(){var t=this;return this._timer=setTimeout(function(){t.state=Lt},this.options.interval),Lt},o.reset=function(){clearTimeout(this._timer)},o.emit=function(){this.state===Mt&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},i})(Wt),Ht=(function(n){function i(e){return void 0===e&&(e={}),n.call(this,t({pointers:1},e))||this}e(i,n);var o=i.prototype;return o.attrTest=function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},o.process=function(t){var e=this.state,n=t.eventType,i=6&e,o=this.attrTest(t);return i&&(n&x||!o)?e|zt:i||o?n&R?e|xt:e&wt?e|Rt:wt:Lt},i})(Wt);function Ut(t){return t===X?'down':t===F?'up':t===z?'left':t===L?'right':''}var kt=(function(n){function i(e){var i;return void 0===e&&(e={}),(i=n.call(this,t({event:'pan',threshold:10,pointers:1,direction:q},e))||this).pX=null,i.pY=null,i}e(i,n);var o=i.prototype;return o.getTouchAction=function(){var t=this.options.direction,e=[];return t&Y&&e.push(I),t&W&&e.push(O),e},o.directionTest=function(t){var e=this.options,n=!0,i=t.distance,o=t.direction,s=t.deltaX,u=t.deltaY;return o&e.direction||(e.direction&Y?(o=0===s?M:s<0?z:L,n=s!==this.pX,i=Math.abs(t.deltaX)):(o=0===u?M:u<0?F:X,n=u!==this.pY,i=Math.abs(t.deltaY))),t.direction=o,n&&i>e.threshold&&o&e.direction},o.attrTest=function(t){return Ht.prototype.attrTest.call(this,t)&&(this.state&wt||!(this.state&wt)&&this.directionTest(t))},o.emit=function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=Ut(t.direction);e&&(t.additionalEvent=this.options.event+e),n.prototype.emit.call(this,t)},i})(Ht),Vt=(function(n){function i(e){return void 0===e&&(e={}),n.call(this,t({event:'swipe',threshold:10,velocity:.3,direction:30,pointers:1},e))||this}e(i,n);var o=i.prototype;return o.getTouchAction=function(){return kt.prototype.getTouchAction.call(this)},o.attrTest=function(t){var e,i=this.options.direction;return 30&i?e=t.overallVelocity:i&Y?e=t.overallVelocityX:i&W&&(e=t.overallVelocityY),n.prototype.attrTest.call(this,t)&&i&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers===this.options.pointers&&l(e)>this.options.velocity&&t.eventType&R},o.emit=function(t){var e=Ut(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)},i})(Ht),Gt=(function(n){function i(e){return void 0===e&&(e={}),n.call(this,t({event:'pinch',threshold:0,pointers:2},e))||this}e(i,n);var o=i.prototype;return o.getTouchAction=function(){return[P]},o.attrTest=function(t){return n.prototype.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&wt)},o.emit=function(t){if(1!==t.scale){var e=t.scale<1?'in':'out';t.additionalEvent=this.options.event+e}n.prototype.emit.call(this,t)},i})(Ht),Zt=(function(n){function i(e){return void 0===e&&(e={}),n.call(this,t({event:'rotate',threshold:0,pointers:2},e))||this}e(i,n);var o=i.prototype;return o.getTouchAction=function(){return[P]},o.attrTest=function(t){return n.prototype.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&wt)},i})(Ht),Bt=(function(n){function i(e){var i;return void 0===e&&(e={}),(i=n.call(this,t({event:'press',pointers:1,time:251,threshold:9},e))||this)._timer=null,i._input=null,i}e(i,n);var o=i.prototype;return o.getTouchAction=function(){return[b]},o.process=function(t){var e=this,n=this.options,i=t.pointers.length===n.pointers,o=t.distance<n.threshold,s=t.deltaTime>n.time;if(this._input=t,!o||!i||12&t.eventType&&!s)this.reset();else if(t.eventType&N)this.reset(),this._timer=setTimeout(function(){e.state=Mt,e.tryEmit()},n.time);else if(t.eventType&R)return Mt;return Lt},o.reset=function(){clearTimeout(this._timer)},o.emit=function(t){this.state===Mt&&(t&&t.eventType&R?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=p(),this.manager.emit(this.options.event,this._input)))},i})(Wt),$t={domEvents:!1,touchAction:T,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Jt=[[Zt,{enable:!1}],[Gt,{enable:!1},['rotate']],[Vt,{direction:Y}],[kt,{direction:Y},['swipe']],[qt],[qt,{event:'doubletap',taps:2},['tap']],[Bt]];function Kt(t,e){var n,i=t.element;i.style&&(k(t.options.cssProps,function(o,s){n=f(i.style,s),e?(t.oldCssProps[n]=i.style[n],i.style[n]=o):i.style[n]=t.oldCssProps[n]||""}),e||(t.oldCssProps={}))}function Qt(t,e){var n=document.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}var te=(function(){function t(t,e){var n,i=this;this.options=s({},$t,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((n=this).options.inputClass||(_?yt:C?Pt:j?Dt:At))(n,ut),this.touchAction=new B(this,this.options.touchAction),Kt(this,!0),k(this.options.recognizers,function(t){var e=i.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}var e=t.prototype;return e.set=function(t){return s(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},e.stop=function(t){this.session.stopped=t?2:1},e.recognize=function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var i=this.recognizers,o=e.curRecognizer;(!o||o&&o.state&Mt)&&(e.curRecognizer=null,o=null);for(var s=0;s<i.length;)n=i[s],2===e.stopped||o&&n!==o&&!n.canRecognizeWith(o)?n.reset():n.recognize(t),!o&&14&n.state&&(e.curRecognizer=n,o=n),s++}},e.get=function(t){if(t instanceof Wt)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event===t)return e[n];return null},e.add=function(t){if(St(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},e.remove=function(t){if(St(t,"remove",this))return this;var e=this.get(t);if(t){var n=this.recognizers,i=ft(n,e);-1!==i&&(n.splice(i,1),this.touchAction.update())}return this},e.on=function(t,e){if(void 0===t||void 0===e)return this;var n=this.handlers;return k(at(t),function(t){n[t]=n[t]||[],n[t].push(e)}),this},e.off=function(t,e){if(void 0===t)return this;var n=this.handlers;return k(at(t),function(t){e?n[t]&&n[t].splice(ft(n[t],e),1):delete n[t]}),this},e.emit=function(t,e){this.options.domEvents&&Qt(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var i=0;i<n.length;)n[i](e),i++}},e.destroy=function(){this.element&&Kt(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},t})(),ee={touchstart:N,touchmove:w,touchend:R,touchcancel:x},ne=(function(t){function n(){var e,i=n.prototype;return i.evTarget="touchstart",i.evWin="touchstart touchmove touchend touchcancel",(e=t.apply(this,arguments)||this).started=!1,e}return e(n,t),n.prototype.handler=function(t){var e=ee[t.type];if(e===N&&(this.started=!0),this.started){var n=re.call(this,t,e);12&e&&n[0].length-n[1].length===0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:D,srcEvent:t})}},n})(pt);function re(t,e){var n=Tt(t.touches),i=Tt(t.changedTouches);return 12&e&&(n=bt(n.concat(i),'identifier',!0)),[n,i]}function ie(t,e,n){var i="DEPRECATED METHOD: "+e+"\n"+n+" AT \n";return function(){var e=new Error('get-stack-trace'),n=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,'').replace(/^\s+at\s+/gm,'').replace(/^Object.<anonymous>\s*\(/gm,'{anonymous}()@'):'Unknown Stack Trace',o=window.console&&(window.console.warn||window.console.log);return o&&o.call(window.console,i,n),t.apply(this,arguments)}}var oe=ie(function(t,e,n){for(var i=Object.keys(e),o=0;o<i.length;)(!n||n&&void 0===t[i[o]])&&(t[i[o]]=e[i[o]]),o++;return t},'extend','Use `assign`.'),se=ie(function(t,e){return oe(t,e,!0)},'merge','Use `assign`.');function ue(t,e,n){var i,o=e.prototype;(i=t.prototype=Object.create(o)).constructor=t,i._super=o,n&&s(i,n)}function ae(t,e){return function(){return t.apply(e,arguments)}}var ce=(function(){var e=function(e,n){return void 0===n&&(n={}),new te(e,t({recognizers:Jt.concat()},n))};return e.VERSION="2.0.17-rc",e.DIRECTION_ALL=q,e.DIRECTION_DOWN=X,e.DIRECTION_LEFT=z,e.DIRECTION_RIGHT=L,e.DIRECTION_UP=F,e.DIRECTION_HORIZONTAL=Y,e.DIRECTION_VERTICAL=W,e.DIRECTION_NONE=M,e.DIRECTION_DOWN=X,e.INPUT_START=N,e.INPUT_MOVE=w,e.INPUT_END=R,e.INPUT_CANCEL=x,e.STATE_POSSIBLE=Nt,e.STATE_BEGAN=wt,e.STATE_CHANGED=Rt,e.STATE_ENDED=xt,e.STATE_RECOGNIZED=Mt,e.STATE_CANCELLED=zt,e.STATE_FAILED=Lt,e.Manager=te,e.Input=pt,e.TouchAction=B,e.TouchInput=Pt,e.MouseInput=At,e.PointerEventInput=yt,e.TouchMouseInput=Dt,e.SingleTouchInput=ne,e.Recognizer=Wt,e.AttrRecognizer=Ht,e.Tap=qt,e.Pan=kt,e.Swipe=Vt,e.Pinch=Gt,e.Rotate=Zt,e.Press=Bt,e.on=ct,e.off=ht,e.each=k,e.merge=se,e.extend=oe,e.bindFn=ae,e.assign=s,e.inherit=ue,e.bindFn=ae,e.prefixed=f,e.toArray=Tt,e.inArray=ft,e.uniqueArray=bt,e.splitStr=at,e.boolOrFn=V,e.hasParent=$,e.addEventListeners=ct,e.removeEventListeners=ht,e.defaults=s({},$t,{preset:Jt}),e})(),he=ce.defaults,le=ce},3281,[]);
15694
+ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"CONTENT_TOUCHES_DELAY",{enumerable:!0,get:function(){return T}}),Object.defineProperty(_e,"CONTENT_TOUCHES_QUICK_TAP_END_DELAY",{enumerable:!0,get:function(){return I}}),Object.defineProperty(_e,"MULTI_FINGER_PAN_MAX_PINCH_THRESHOLD",{enumerable:!0,get:function(){return N}}),Object.defineProperty(_e,"MULTI_FINGER_PAN_MAX_ROTATION_THRESHOLD",{enumerable:!0,get:function(){return E}}),Object.defineProperty(_e,"DEG_RAD",{enumerable:!0,get:function(){return O}}),Object.defineProperty(_e,"EventMap",{enumerable:!0,get:function(){return _}}),Object.defineProperty(_e,"Direction",{enumerable:!0,get:function(){return f}}),Object.defineProperty(_e,"DirectionMap",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e,"HammerInputNames",{enumerable:!0,get:function(){return D}}),Object.defineProperty(_e,"HammerDirectionNames",{enumerable:!0,get:function(){return R}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e},u=r(d[1]);const T=240,I=50,N=.1,E=7,O=Math.PI/180,_={[n.default.INPUT_START]:u.State.BEGAN,[n.default.INPUT_MOVE]:u.State.ACTIVE,[n.default.INPUT_END]:u.State.END,[n.default.INPUT_CANCEL]:u.State.FAILED},f={RIGHT:1,LEFT:2,UP:4,DOWN:8},l={[n.default.DIRECTION_RIGHT]:f.RIGHT,[n.default.DIRECTION_LEFT]:f.LEFT,[n.default.DIRECTION_UP]:f.UP,[n.default.DIRECTION_DOWN]:f.DOWN},D={[n.default.INPUT_START]:'START',[n.default.INPUT_MOVE]:'MOVE',[n.default.INPUT_END]:'END',[n.default.INPUT_CANCEL]:'CANCEL'},R={[n.default.DIRECTION_HORIZONTAL]:'HORIZONTAL',[n.default.DIRECTION_UP]:'UP',[n.default.DIRECTION_DOWN]:'DOWN',[n.default.DIRECTION_VERTICAL]:'VERTICAL',[n.default.DIRECTION_NONE]:'NONE',[n.default.DIRECTION_ALL]:'ALL',[n.default.DIRECTION_RIGHT]:'RIGHT',[n.default.DIRECTION_LEFT]:'LEFT'}},3282,[3281,3244]);
15695
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"gestures",{enumerable:!0,get:function(){return t}}),e.getHandler=n,e.createGestureHandler=function(n,o){if(n in t)throw new Error(`Handler with tag ${n} already exists`);t[n]=o,t[n].handlerTag=n},e.dropGestureHandler=function(o){if(!(o in t))return;n(o).destroy(),delete t[o]},e.getNodes=function(){return Object.assign({},t)};const t={};function n(n){if(n in t)return t[n];throw new Error(`No handler for tag ${n}`)}},3283,[]);
15696
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ghQueueMicrotask",{enumerable:!0,get:function(){return t}});const t='function'==typeof setImmediate?setImmediate.bind(null):'function'==typeof requestAnimationFrame?requestAnimationFrame.bind(null):queueMicrotask.bind(null)},3284,[]);
15697
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isnan",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"isValidNumber",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"TEST_MIN_IF_NOT_NAN",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"VEC_LEN_SQ",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"TEST_MAX_IF_NOT_NAN",{enumerable:!0,get:function(){return o}}),e.fireAfterInterval=function(t,n){if(!n)return t(),null;return setTimeout(()=>t(),n)};const t=t=>Number.isNaN(t),n=t=>'number'==typeof t&&!Number.isNaN(t),u=(n,u)=>!t(u)&&(u<0&&n<=u||u>=0&&n>=u),f=({x:t=0,y:n=0}={})=>t*t+n*n,o=(n,u)=>!t(u)&&(u<0&&n<u||u>=0&&n>u)},3285,[]);
15698
+ __d(function(g,r,i,a,m,_e,d){"use strict";const e=["shouldActivateOnStart","disallowInterruption","shouldCancelWhenOutside","minDurationMs","maxDist","minPointers","maxPointers"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return v}});var n=t(r(d[0])),s=t(r(d[1])),u=r(d[2]),l=r(d[3]),o=t(r(d[4])),h=r(d[5]);class c extends o.default{initialEvent=null;get name(){return'press'}get minDurationMs(){return(0,h.isnan)(this.config.minDurationMs)?5:this.config.minDurationMs}get maxDist(){return(0,h.isnan)(this.config.maxDist)?9:this.config.maxDist}get NativeGestureClass(){return s.default.Press}shouldDelayTouches=!0;simulateCancelEvent(e){this.hasGestureFailed=!0,this.cancelEvent(e)}updateHasCustomActivationCriteria({shouldCancelWhenOutside:e,maxDistSq:t}){return e||!(0,h.isValidNumber)(t)}getState(e){return{[s.default.INPUT_START]:u.State.BEGAN,[s.default.INPUT_MOVE]:u.State.ACTIVE,[s.default.INPUT_END]:u.State.END,[s.default.INPUT_CANCEL]:u.State.CANCELLED}[e]}getConfig(){return this.hasCustomActivationCriteria?this.config:{shouldCancelWhenOutside:!0,maxDistSq:10}}getHammerConfig(){return Object.assign({},super.getHammerConfig(),{time:this.minDurationMs})}onGestureActivated(e){this.onGestureStart(e)}shouldDelayTouchForEvent({pointerType:e}){return this.shouldDelayTouches&&'touch'===e}onGestureStart(e){this.isGestureRunning=!0,clearTimeout(this.visualFeedbackTimer),this.initialEvent=e,this.visualFeedbackTimer=(0,h.fireAfterInterval)(()=>{this.sendGestureStartedEvent(this.initialEvent),this.initialEvent=null},this.shouldDelayTouchForEvent(e)&&l.CONTENT_TOUCHES_DELAY)}sendGestureStartedEvent(e){clearTimeout(this.visualFeedbackTimer),this.visualFeedbackTimer=null,this.sendEvent(Object.assign({},e,{eventType:s.default.INPUT_MOVE,isFirst:!0}))}forceInvalidate(e){super.forceInvalidate(e),clearTimeout(this.visualFeedbackTimer),this.visualFeedbackTimer=null,this.initialEvent=null}onRawEvent(e){if(super.onRawEvent(e),this.isGestureRunning)if(e.isFinal){let t;this.visualFeedbackTimer&&(t=l.CONTENT_TOUCHES_QUICK_TAP_END_DELAY,this.sendGestureStartedEvent(this.initialEvent),this.initialEvent=null),(0,h.fireAfterInterval)(()=>{this.sendEvent(Object.assign({},e,{eventType:s.default.INPUT_END,isFinal:!0})),this.onGestureEnded()},t)}else this.sendEvent(Object.assign({},e,{eventType:s.default.INPUT_MOVE,isFinal:!1}))}updateGestureConfig(t){let{shouldActivateOnStart:s=!1,disallowInterruption:u=!1,shouldCancelWhenOutside:l=!0,minDurationMs:o=Number.NaN,maxDist:h=Number.NaN,minPointers:c=1,maxPointers:v=1}=t,E=(0,n.default)(t,e);return super.updateGestureConfig(Object.assign({shouldActivateOnStart:s,disallowInterruption:u,shouldCancelWhenOutside:l,minDurationMs:o,maxDist:h,minPointers:c,maxPointers:v},E))}}var v=c},3286,[120,3281,3244,3282,3279,3285]);
15699
+ __d(function(g,r,i,a,m,_e,d){"use strict";function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return c}});var e=t(r(d[0])),n=r(d[1]),s=t(r(d[2])),f=r(d[3]),l=r(d[4]);class u extends s.default{get name(){return'pan'}get NativeGestureClass(){return e.default.Pan}getHammerConfig(){return Object.assign({},super.getHammerConfig(),{direction:this.getDirection()})}getState(t){const e=super.getState(t);return this.previousState===l.State.UNDETERMINED&&e===l.State.ACTIVE?l.State.BEGAN:e}getDirection(){const t=this.getConfig(),{activeOffsetXStart:n,activeOffsetXEnd:s,activeOffsetYStart:l,activeOffsetYEnd:u,minDist:c}=t;let o=[],N=[];if(!(0,f.isnan)(c))return e.default.DIRECTION_ALL;(0,f.isnan)(n)||N.push(e.default.DIRECTION_LEFT),(0,f.isnan)(s)||N.push(e.default.DIRECTION_RIGHT),2===N.length&&(N=[e.default.DIRECTION_HORIZONTAL]),o=o.concat(N);let O=[];return(0,f.isnan)(l)||O.push(e.default.DIRECTION_UP),(0,f.isnan)(u)||O.push(e.default.DIRECTION_DOWN),2===O.length&&(O=[e.default.DIRECTION_VERTICAL]),o=o.concat(O),o.length?o[0]===e.default.DIRECTION_HORIZONTAL&&o[1]===e.default.DIRECTION_VERTICAL||N.length&&O.length?e.default.DIRECTION_ALL:o[0]:e.default.DIRECTION_NONE}getConfig(){return this.hasCustomActivationCriteria?this.config:{minDistSq:10}}shouldFailUnderCustomCriteria({deltaX:t,deltaY:e},n){return!(0,f.isnan)(n.failOffsetXStart)&&t<n.failOffsetXStart||!(0,f.isnan)(n.failOffsetXEnd)&&t>n.failOffsetXEnd||!(0,f.isnan)(n.failOffsetYStart)&&e<n.failOffsetYStart||!(0,f.isnan)(n.failOffsetYEnd)&&e>n.failOffsetYEnd}shouldActivateUnderCustomCriteria({deltaX:t,deltaY:e,velocity:n},s){return!(0,f.isnan)(s.activeOffsetXStart)&&t<s.activeOffsetXStart||!(0,f.isnan)(s.activeOffsetXEnd)&&t>s.activeOffsetXEnd||!(0,f.isnan)(s.activeOffsetYStart)&&e<s.activeOffsetYStart||!(0,f.isnan)(s.activeOffsetYEnd)&&e>s.activeOffsetYEnd||(0,f.TEST_MIN_IF_NOT_NAN)((0,f.VEC_LEN_SQ)({x:t,y:e}),s.minDistSq)||(0,f.TEST_MIN_IF_NOT_NAN)(n.x,s.minVelocityX)||(0,f.TEST_MIN_IF_NOT_NAN)(n.y,s.minVelocityY)||(0,f.TEST_MIN_IF_NOT_NAN)((0,f.VEC_LEN_SQ)(n),s.minVelocitySq)}shouldMultiFingerPanFail({pointerLength:t,scale:e,deltaRotation:s}){if(t<=1)return!1;const f=Math.abs(e-1),l=Math.abs(s);return f>n.MULTI_FINGER_PAN_MAX_PINCH_THRESHOLD||l>n.MULTI_FINGER_PAN_MAX_ROTATION_THRESHOLD}updateHasCustomActivationCriteria(t){return(0,f.isValidNumber)(t.minDistSq)||(0,f.isValidNumber)(t.minVelocityX)||(0,f.isValidNumber)(t.minVelocityY)||(0,f.isValidNumber)(t.minVelocitySq)||(0,f.isValidNumber)(t.activeOffsetXStart)||(0,f.isValidNumber)(t.activeOffsetXEnd)||(0,f.isValidNumber)(t.activeOffsetYStart)||(0,f.isValidNumber)(t.activeOffsetYEnd)}isGestureEnabledForEvent(t,e,n){if(this.shouldFailUnderCustomCriteria(n,t))return{failed:!0};const s={x:n.velocityX,y:n.velocityY};return this.hasCustomActivationCriteria&&this.shouldActivateUnderCustomCriteria({deltaX:n.deltaX,deltaY:n.deltaY,velocity:s},t)?this.shouldMultiFingerPanFail({pointerLength:n.maxPointers,scale:n.scale,deltaRotation:n.deltaRotation})?{failed:!0}:{success:!0}:{success:!1}}}var c=u},3287,[3281,3282,3288,3285,3244]);
15700
+ __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,"default",{enumerable:!0,get:function(){return u}});var t=e(r(d[0])),n=e(r(d[1]));class l extends t.default{get shouldEnableGestureOnSetup(){return!0}transformNativeEvent({deltaX:e,deltaY:t,velocityX:l,velocityY:u,center:{x:o,y:s}}){const c=this.view.getBoundingClientRect(),f=n.default.get();return{translationX:e-(this.__initialX||0),translationY:t-(this.__initialY||0),absoluteX:o,absoluteY:s,velocityX:l*f,velocityY:u*f,x:o-c.left,y:s-c.top}}}var u=l},3288,[3280,195]);
15701
+ __d(function(g,r,i,a,m,_e,d){"use strict";const e=["shouldCancelWhenOutside","maxDeltaX","maxDeltaY","numberOfTaps","minDurationMs","maxDelayMs","maxDurationMs","maxDist","minPointers","maxPointers"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return h}});var s=t(r(d[0])),n=t(r(d[1])),u=t(r(d[2])),l=r(d[3]);class o extends u.default{_shouldFireEndEvent=null;get name(){return'tap'}get NativeGestureClass(){return n.default.Tap}get maxDelayMs(){return(0,l.isnan)(this.config.maxDelayMs)?300:this.config.maxDelayMs}simulateCancelEvent(e){this.isGestureRunning&&this.cancelEvent(e)}onGestureActivated(e){this.isGestureRunning&&this.onSuccessfulTap(e)}onSuccessfulTap=e=>{this._getPendingGestures().length?this._shouldFireEndEvent=e:(e.eventType===n.default.INPUT_END&&this.sendEvent(Object.assign({},e,{eventType:n.default.INPUT_MOVE})),this.sendEvent(Object.assign({},e,{isFinal:!0})),this.onGestureEnded(e))};onRawEvent(e){if(super.onRawEvent(e),!this.hasGestureFailed&&!this.isGestureRunning&&!e.isFinal){const t=this.hammer.get(this.name);t.options.enable(t,e)&&(clearTimeout(this._multiTapTimer),this.onStart(e),this.sendEvent(e))}if(e.isFinal&&e.maxPointers>1&&setTimeout(()=>{this.isGestureRunning&&this.cancelEvent(e)}),!this.hasGestureFailed)if(e.isFinal)e.maxPointers>1&&setTimeout(()=>{this.isGestureRunning&&this.cancelEvent(e)}),clearTimeout(this._timer),this._timer=setTimeout(()=>{this.hasGestureFailed=!0,this.cancelEvent(e)},this.maxDelayMs);else if(!this.hasGestureFailed&&!this.isGestureRunning){const t=this.hammer.get(this.name);t.options.enable(t,e)&&(clearTimeout(this._multiTapTimer),this.onStart(e),this.sendEvent(e))}}getHammerConfig(){return Object.assign({},super.getHammerConfig(),{event:this.name,taps:(0,l.isnan)(this.config.numberOfTaps)?1:this.config.numberOfTaps,interval:this.maxDelayMs,time:(0,l.isnan)(this.config.maxDurationMs)||null==this.config.maxDurationMs?250:this.config.maxDurationMs})}updateGestureConfig(t){let{shouldCancelWhenOutside:n=!0,maxDeltaX:u=Number.NaN,maxDeltaY:l=Number.NaN,numberOfTaps:o=1,minDurationMs:h=525,maxDelayMs:c=Number.NaN,maxDurationMs:f=Number.NaN,maxDist:x=2,minPointers:E=1,maxPointers:D=1}=t,p=(0,s.default)(t,e);return super.updateGestureConfig(Object.assign({shouldCancelWhenOutside:n,numberOfTaps:o,maxDeltaX:u,maxDeltaY:l,minDurationMs:h,maxDelayMs:c,maxDist:x,minPointers:E,maxPointers:D},p))}onGestureEnded(...e){clearTimeout(this._timer),super.onGestureEnded(...e)}onWaitingEnded(e){this._shouldFireEndEvent&&(this.onSuccessfulTap(this._shouldFireEndEvent),this._shouldFireEndEvent=null)}}var h=o},3289,[120,3281,3279,3285]);
15702
+ __d(function(g,r,i,a,m,_e,d){"use strict";function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return f}});var e=t(r(d[0])),n=r(d[1]),s=t(r(d[2])),u=r(d[3]);class o extends s.default{get minDurationMs(){return(0,u.isnan)(this.config.minDurationMs)?251:this.config.minDurationMs}get maxDist(){return(0,u.isnan)(this.config.maxDist)?9:this.config.maxDist}updateHasCustomActivationCriteria({maxDistSq:t}){return!(0,u.isValidNumber)(t)}getConfig(){return this.hasCustomActivationCriteria?this.config:{shouldCancelWhenOutside:!0,maxDistSq:10}}getHammerConfig(){return Object.assign({},super.getHammerConfig(),{time:this.minDurationMs})}getState(t){return{[e.default.INPUT_START]:n.State.ACTIVE,[e.default.INPUT_MOVE]:n.State.ACTIVE,[e.default.INPUT_END]:n.State.END,[e.default.INPUT_CANCEL]:n.State.FAILED}[t]}}var f=o},3290,[3281,3244,3286,3285]);
15703
+ __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,"default",{enumerable:!0,get:function(){return c}});var t=e(r(d[0])),n=e(r(d[1]));class u extends n.default{get name(){return'pinch'}get NativeGestureClass(){return t.default.Pinch}transformNativeEvent({scale:e,velocity:t,center:n}){return{focalX:n.x,focalY:n.y,velocity:t,scale:e}}}var c=u},3291,[3281,3292]);
15704
+ __d(function(g,r,i,a,m,_e,d){"use strict";const e=["minPointers","maxPointers"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return o}});var n=t(r(d[0])),s=t(r(d[1]));class u extends s.default{get shouldEnableGestureOnSetup(){return!1}updateGestureConfig(t){let{minPointers:s=2,maxPointers:u=2}=t,o=(0,n.default)(t,e);return super.updateGestureConfig(Object.assign({minPointers:s,maxPointers:u},o))}isGestureEnabledForEvent({minPointers:e,maxPointers:t},n,{maxPointers:s}){if(s>t)return{failed:!0};return{success:s>=e}}}var o=u},3292,[120,3280]);
15705
+ __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,"default",{enumerable:!0,get:function(){return l}});var t=e(r(d[0])),n=r(d[1]),o=e(r(d[2]));class u extends o.default{get name(){return'rotate'}get NativeGestureClass(){return t.default.Rotate}transformNativeEvent({rotation:e,velocity:t,center:o}){return{rotation:(e-(this.initialRotation??0))*n.DEG_RAD,anchorX:o.x,anchorY:o.y,velocity:t}}}var l=u},3293,[3281,3282,3292]);
15706
+ __d(function(g,r,i,a,m,_e,d){"use strict";const e=["numberOfPointers","direction"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return h}});var n=t(r(d[0])),s=t(r(d[1])),u=r(d[2]),o=r(d[3]),c=t(r(d[4])),f=r(d[5]);class l extends c.default{get name(){return'swipe'}get NativeGestureClass(){return s.default.Swipe}onGestureActivated(e){this.sendEvent(Object.assign({},e,{eventType:s.default.INPUT_MOVE,isFinal:!1,isFirst:!0})),this.isGestureRunning=!1,this.hasGestureFailed=!1,this.sendEvent(Object.assign({},e,{eventType:s.default.INPUT_END,isFinal:!0}))}onRawEvent(e){if(super.onRawEvent(e),!this.hasGestureFailed)if(e.isFinal)setTimeout(()=>{this.isGestureRunning&&this.cancelEvent(e)});else if(!this.hasGestureFailed&&!this.isGestureRunning){const t=this.hammer.get(this.name);t.options.enable(t,e)&&(this.onStart(e),this.sendEvent(e))}}getHammerConfig(){return{pointers:this.config.numberOfPointers,direction:this.getDirection()}}getTargetDirections(e){const t=[];return e&u.Direction.RIGHT&&t.push(s.default.DIRECTION_RIGHT),e&u.Direction.LEFT&&t.push(s.default.DIRECTION_LEFT),e&u.Direction.UP&&t.push(s.default.DIRECTION_UP),e&u.Direction.DOWN&&t.push(s.default.DIRECTION_DOWN),t}getDirection(){const{direction:e}=this.getConfig();let t=[];return e&u.Direction.RIGHT&&t.push(s.default.DIRECTION_HORIZONTAL),e&u.Direction.LEFT&&t.push(s.default.DIRECTION_HORIZONTAL),e&u.Direction.UP&&t.push(s.default.DIRECTION_VERTICAL),e&u.Direction.DOWN&&t.push(s.default.DIRECTION_VERTICAL),t=[...new Set(t)],0===t.length?s.default.DIRECTION_NONE:1===t.length?t[0]:s.default.DIRECTION_ALL}isGestureEnabledForEvent({numberOfPointers:e},t,{maxPointers:n}){const s=n===e;return!s&&this.isGestureRunning?{failed:!0}:{success:s}}updateGestureConfig(t){let{numberOfPointers:s=1,direction:u}=t,c=(0,n.default)(t,e);if((0,f.isnan)(u)||'number'!=typeof u)throw new o.GesturePropError('direction',u,'number');return super.updateGestureConfig(Object.assign({numberOfPointers:s,direction:u},c))}}var h=l},3294,[120,3281,3282,3295,3288,3285]);
15707
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"GesturePropError",{enumerable:!0,get:function(){return t}});class t extends Error{constructor(t,n,o){super(`Invalid property \`${t}: ${n}\` expected \`${o}\``)}}},3295,[]);
15708
+ __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,"GestureHandlerWebDelegate",{enumerable:!0,get:function(){return c}});var t=e(r(d[0])),s=e(r(d[1])),n=r(d[2]),o=r(d[3]),u=r(d[4]),h=e(r(d[5])),l=e(r(d[6]));class c{isInitialized=!1;eventManagers=[];defaultViewStyles={userSelect:'',touchAction:''};init(e,n){if(!e)throw new Error(`Cannot find HTML Element for handler ${n.handlerTag}`);this.isInitialized=!0,this.gestureHandler=n,this.view=(0,t.default)(e),this.defaultViewStyles={userSelect:this.view.style.userSelect,touchAction:this.view.style.touchAction};const o=n.config;this.setUserSelect(o.enabled),this.setTouchAction(o.enabled),this.setContextMenu(o.enabled),this.eventManagers.push(new s.default(this.view)),this.eventManagers.push(new h.default(this.view)),this.eventManagers.push(new l.default(this.view)),this.eventManagers.forEach(e=>this.gestureHandler.attachEventManager(e))}isPointerInBounds({x:e,y:t}){return(0,o.isPointerInBounds)(this.view,{x:e,y:t})}measureView(){const e=this.view.getBoundingClientRect();return{pageX:e.left,pageY:e.top,width:e.width,height:e.height}}reset(){this.eventManagers.forEach(e=>e.resetManager())}tryResetCursor(){const e=this.gestureHandler.config;e.activeCursor&&'auto'!==e.activeCursor&&this.gestureHandler.state===n.State.ACTIVE&&(this.view.style.cursor='auto')}shouldDisableContextMenu(e){return void 0===e.enableContextMenu&&this.gestureHandler.isButtonInConfig(u.MouseButton.RIGHT)||!1===e.enableContextMenu}addContextMenuListeners(e){this.shouldDisableContextMenu(e)?this.view.addEventListener('contextmenu',this.disableContextMenu):e.enableContextMenu&&this.view.addEventListener('contextmenu',this.enableContextMenu)}removeContextMenuListeners(e){this.shouldDisableContextMenu(e)?this.view.removeEventListener('contextmenu',this.disableContextMenu):e.enableContextMenu&&this.view.removeEventListener('contextmenu',this.enableContextMenu)}disableContextMenu(e){e.preventDefault()}enableContextMenu(e){e.stopPropagation()}setUserSelect(e){const{userSelect:t}=this.gestureHandler.config;this.view.style.userSelect=e?t??'none':this.defaultViewStyles.userSelect,this.view.style.webkitUserSelect=e?t??'none':this.defaultViewStyles.userSelect}setTouchAction(e){const{touchAction:t}=this.gestureHandler.config;this.view.style.touchAction=e?t??'none':this.defaultViewStyles.touchAction,this.view.style.WebkitTouchCallout=e?t??'none':this.defaultViewStyles.touchAction}setContextMenu(e){const t=this.gestureHandler.config;e?this.addContextMenuListeners(t):this.removeContextMenuListeners(t)}onEnabledChange(e){this.isInitialized&&(this.setUserSelect(e),this.setTouchAction(e),this.setContextMenu(e),e?this.eventManagers.forEach(e=>{e.registerListeners()}):this.eventManagers.forEach(e=>{e.unregisterListeners()}))}onBegin(){}onActivate(){const e=this.gestureHandler.config;this.view.style.cursor&&'auto'!==this.view.style.cursor||!e.activeCursor||(this.view.style.cursor=e.activeCursor)}onEnd(){this.tryResetCursor()}onCancel(){this.tryResetCursor()}onFail(){this.tryResetCursor()}destroy(e){this.removeContextMenuListeners(e),this.eventManagers.forEach(e=>{e.unregisterListeners()})}get view(){return this._view}set view(e){this._view=e}}},3296,[3297,3298,3244,3274,3264,3300,3301]);
15709
+ __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 e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e},f=r(d[1]);function l(e){if(e instanceof n.default)return e._listRef._scrollRef.firstChild;if(void 0!==e?.viewTag)return l(e.viewTag);if(e instanceof Element)return'contents'===e.style.display?l(e.firstChild):e;if((0,f.isRNSVGElement)(e))return e.elementRef.current;let t=e?.current;for(;t&&'contents'===t.style.display;)t=t.firstChild;return t}},3297,[138,3274]);
15710
+ __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 h}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e},s=r(d[1]),o=r(d[2]),p=r(d[3]),l=r(d[4]);const v=new Set(['SELECT','INPUT']);class h extends n.default{trackedPointers=new Set;mouseButtonsMapper=new Map;constructor(e){super(e),this.mouseButtonsMapper.set(0,s.MouseButton.LEFT),this.mouseButtonsMapper.set(1,s.MouseButton.MIDDLE),this.mouseButtonsMapper.set(2,s.MouseButton.RIGHT),this.mouseButtonsMapper.set(3,s.MouseButton.BUTTON_4),this.mouseButtonsMapper.set(4,s.MouseButton.BUTTON_5),this.lastPosition={x:-1/0,y:-1/0}}pointerDownCallback=e=>{if(!(0,p.isPointerInBounds)(this.view,{x:e.clientX,y:e.clientY}))return;const t=this.mapEvent(e,o.EventTypes.DOWN),n=e.target;v.has(n.tagName)||n.setPointerCapture(t.pointerId),this.markAsInBounds(t.pointerId),this.trackedPointers.add(t.pointerId),++this.activePointersCounter>1?(t.eventType=o.EventTypes.ADDITIONAL_POINTER_DOWN,this.onPointerAdd(t)):this.onPointerDown(t)};pointerUpCallback=e=>{if(0===this.activePointersCounter)return;const t=this.mapEvent(e,o.EventTypes.UP),n=e.target;v.has(n.tagName)||n.releasePointerCapture(t.pointerId),this.markAsOutOfBounds(t.pointerId),this.trackedPointers.delete(t.pointerId),--this.activePointersCounter>0?(t.eventType=o.EventTypes.ADDITIONAL_POINTER_UP,this.onPointerRemove(t)):this.onPointerUp(t)};pointerMoveCallback=e=>{const t=this.mapEvent(e,o.EventTypes.MOVE),n=e.target;n?.hasPointerCapture(e.pointerId)||v.has(n.tagName)||n.setPointerCapture(e.pointerId);const s=(0,p.isPointerInBounds)(this.view,{x:t.x,y:t.y}),l=this.pointersInBounds.indexOf(t.pointerId);s?l<0?(t.eventType=o.EventTypes.ENTER,this.onPointerEnter(t),this.markAsInBounds(t.pointerId)):this.onPointerMove(t):l>=0?(t.eventType=o.EventTypes.LEAVE,this.onPointerLeave(t),this.markAsOutOfBounds(t.pointerId)):this.onPointerOutOfBounds(t),this.lastPosition.x=e.x,this.lastPosition.y=e.y};pointerCancelCallback=e=>{const t=this.mapEvent(e,o.EventTypes.CANCEL);this.onPointerCancel(t),this.markAsOutOfBounds(t.pointerId),this.activePointersCounter=0,this.trackedPointers.clear()};pointerEnterCallback=e=>{const t=this.mapEvent(e,o.EventTypes.ENTER);this.onPointerMoveOver(t)};pointerLeaveCallback=e=>{const t=this.mapEvent(e,o.EventTypes.LEAVE);this.onPointerMoveOut(t)};lostPointerCaptureCallback=e=>{const t=this.mapEvent(e,o.EventTypes.CANCEL);this.trackedPointers.has(t.pointerId)&&(this.onPointerCancel(t),this.activePointersCounter=0,this.trackedPointers.clear())};registerListeners(){this.view.addEventListener('pointerdown',this.pointerDownCallback),this.view.addEventListener('pointerup',this.pointerUpCallback),this.view.addEventListener('pointermove',this.pointerMoveCallback),this.view.addEventListener('pointercancel',this.pointerCancelCallback),this.view.addEventListener('pointerenter',this.pointerEnterCallback),this.view.addEventListener('pointerleave',this.pointerLeaveCallback),this.view.addEventListener('lostpointercapture',this.lostPointerCaptureCallback)}unregisterListeners(){this.view.removeEventListener('pointerdown',this.pointerDownCallback),this.view.removeEventListener('pointerup',this.pointerUpCallback),this.view.removeEventListener('pointermove',this.pointerMoveCallback),this.view.removeEventListener('pointercancel',this.pointerCancelCallback),this.view.removeEventListener('pointerenter',this.pointerEnterCallback),this.view.removeEventListener('pointerleave',this.pointerLeaveCallback),this.view.removeEventListener('lostpointercapture',this.lostPointerCaptureCallback)}mapEvent(e,t){const n=this.view.getBoundingClientRect(),{scaleX:s,scaleY:o}=(0,p.calculateViewScale)(this.view);return{x:e.clientX,y:e.clientY,offsetX:(e.clientX-n.left)/s,offsetY:(e.clientY-n.top)/o,pointerId:e.pointerId,eventType:t,pointerType:p.PointerTypeMapping.get(e.pointerType)??l.PointerType.OTHER,button:this.mouseButtonsMapper.get(e.button),time:e.timeStamp,stylusData:(0,p.tryExtractStylusData)(e)}}resetManager(){super.resetManager(),this.trackedPointers.clear()}}},3298,[3299,3264,3255,3274,3258]);
15711
+ __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 n}});class n{pointersInBounds=[];constructor(n){this.view=n,this.activePointersCounter=0}onPointerDown(n){}onPointerAdd(n){}onPointerUp(n){}onPointerRemove(n){}onPointerMove(n){}onPointerLeave(n){}onPointerEnter(n){}onPointerCancel(n){}onPointerOutOfBounds(n){}onPointerMoveOver(n){}onPointerMoveOut(n){}onWheel(n){}setOnPointerDown(n){this.onPointerDown=n}setOnPointerAdd(n){this.onPointerAdd=n}setOnPointerUp(n){this.onPointerUp=n}setOnPointerRemove(n){this.onPointerRemove=n}setOnPointerMove(n){this.onPointerMove=n}setOnPointerLeave(n){this.onPointerLeave=n}setOnPointerEnter(n){this.onPointerEnter=n}setOnPointerCancel(n){this.onPointerCancel=n}setOnPointerOutOfBounds(n){this.onPointerOutOfBounds=n}setOnPointerMoveOver(n){this.onPointerMoveOver=n}setOnPointerMoveOut(n){this.onPointerMoveOut=n}setOnWheel(n){this.onWheel=n}markAsInBounds(n){this.pointersInBounds.indexOf(n)>=0||this.pointersInBounds.push(n)}markAsOutOfBounds(n){const t=this.pointersInBounds.indexOf(n);t<0||this.pointersInBounds.splice(t,1)}resetManager(){this.activePointersCounter=0,this.pointersInBounds=[]}}},3299,[]);
15712
+ __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 e,t=r(d[0]),s=r(d[1]),n=(e=s)&&e.__esModule?e:{default:e},c=r(d[2]);class o extends n.default{static activationKeys=['Enter',' '];static cancelationKeys=['Tab'];isPressed=!1;static registeredStaticListeners=!1;static instances=new Set;static keyUpStaticCallback=e=>{-1!==this.activationKeys.indexOf(e.key)&&this.instances.forEach(t=>{t.onKeyUp(e)})};keyDownCallback=e=>{-1!==o.cancelationKeys.indexOf(e.key)&&this.isPressed?this.dispatchEvent(e,t.EventTypes.CANCEL):-1!==o.activationKeys.indexOf(e.key)&&this.dispatchEvent(e,t.EventTypes.DOWN)};onKeyUp=e=>{-1!==o.activationKeys.indexOf(e.key)&&this.isPressed&&this.dispatchEvent(e,t.EventTypes.UP)};dispatchEvent(e,s){if(!(e.target instanceof HTMLElement))return;const n=this.mapEvent(e,s);switch(s){case t.EventTypes.UP:this.isPressed=!1,this.onPointerUp(n);break;case t.EventTypes.DOWN:this.isPressed=!0,this.onPointerDown(n);break;case t.EventTypes.CANCEL:this.isPressed=!1,this.onPointerCancel(n)}}registerListeners(){this.view.addEventListener('keydown',this.keyDownCallback),o.instances.add(this),o.registeredStaticListeners||(o.registeredStaticListeners=!0,document.addEventListener('keyup',o.keyUpStaticCallback,{capture:!0}))}unregisterListeners(){this.view.removeEventListener('keydown',this.keyDownCallback),o.instances.delete(this),0===o.instances.size&&(document.removeEventListener('keyup',o.keyUpStaticCallback,{capture:!0}),o.registeredStaticListeners=!1)}mapEvent(e,t){const s=e.target.getBoundingClientRect(),n={x:s?.x+s?.width/2,y:s?.y+s?.height/2},o={x:s?.width/2,y:s?.height/2};return{x:n.x,y:n.y,offsetX:o.x,offsetY:o.y,pointerId:0,eventType:t,pointerType:c.PointerType.KEY,time:e.timeStamp}}}},3300,[3255,3299,3258]);
15713
+ __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 h}});var e,t=r(d[0]),l=(e=t)&&e.__esModule?e:{default:e},s=r(d[1]),n=r(d[2]);class h extends l.default{wheelDelta={x:0,y:0};resetDelta=e=>{this.wheelDelta={x:0,y:0}};wheelCallback=e=>{this.wheelDelta.x+=e.deltaX,this.wheelDelta.y+=e.deltaY;const t=this.mapEvent(e);this.onWheel(t)};registerListeners(){this.view.addEventListener('pointermove',this.resetDelta),this.view.addEventListener('wheel',this.wheelCallback)}unregisterListeners(){this.view.removeEventListener('pointermove',this.resetDelta),this.view.removeEventListener('wheel',this.wheelCallback)}mapEvent(e){return{x:e.clientX+this.wheelDelta.x,y:e.clientY+this.wheelDelta.y,offsetX:e.offsetX-e.deltaX,offsetY:e.offsetY-e.deltaY,pointerId:-1,eventType:s.EventTypes.MOVE,pointerType:n.PointerType.OTHER,time:e.timeStamp,wheelDeltaY:e.wheelDeltaY}}resetManager(){super.resetManager()}}},3301,[3299,3255,3258]);
15714
+ __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,"default",{enumerable:!0,get:function(){return c}}),r(d[0]);var t=e(r(d[1])),n=e(r(d[2])),u=e(r(d[3])),l=r(d[4]);function c(e,t){function c(n){return(0,l.jsx)(u.default,{style:[o.container,t],children:(0,l.jsx)(e,Object.assign({},n))})}return c.displayName=`gestureHandlerRootHOC(${e.displayName||e.name})`,(0,n.default)(c,e),c}const o=t.default.create({container:{flex:1}})},3302,[17,33,3303,3306,10]);
15715
+ __d(function(g,r,_i,a,m,_e,d){'use strict';var e=r(d[0]),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},p={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},y={};function n(o){return e.isMemo(o)?p:y[o.$$typeof]||t}y[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},y[e.Memo]=p;var s=Object.defineProperty,c=Object.getOwnPropertyNames,i=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,l=Object.getPrototypeOf,u=Object.prototype;m.exports=function e(t,p,y){if('string'!=typeof p){if(u){var O=l(p);O&&O!==u&&e(t,O,y)}var P=c(p);i&&(P=P.concat(i(p)));for(var v=n(t),b=n(p),j=0;j<P.length;++j){var T=P[j];if(!(o[T]||y&&y[T]||b&&b[T]||v&&v[T])){var $=f(p,T);try{s(t,T,$)}catch(e){}}}}return t}},3303,[3304]);
15716
+ __d(function(g,r,i,a,m,e,d){'use strict';m.exports=r(d[0])},3304,[3305]);
15718
15717
  __d(function(_g,_r,i,_a,_m,_e,_d){
15719
15718
  /** @license React v16.13.1
15720
15719
  * react-is.production.min.js
@@ -15724,100 +15723,101 @@ __d(function(_g,_r,i,_a,_m,_e,_d){
15724
15723
  * This source code is licensed under the MIT license found in the
15725
15724
  * LICENSE file in the root directory of this source tree.
15726
15725
  */
15727
- 'use strict';var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,o=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,f=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,a=e?Symbol.for("react.concurrent_mode"):60111,y=e?Symbol.for("react.forward_ref"):60112,l=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,S=e?Symbol.for("react.block"):60121,$=e?Symbol.for("react.fundamental"):60117,d=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function M(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:switch(e=e.type){case u:case a:case r:case c:case n:case l:return e;default:switch(e=e&&e.$$typeof){case s:case y:case b:case p:case f:return e;default:return m}}case o:return m}}}function _(e){return M(e)===a}_e.AsyncMode=u,_e.ConcurrentMode=a,_e.ContextConsumer=s,_e.ContextProvider=f,_e.Element=t,_e.ForwardRef=y,_e.Fragment=r,_e.Lazy=b,_e.Memo=p,_e.Portal=o,_e.Profiler=c,_e.StrictMode=n,_e.Suspense=l,_e.isAsyncMode=function(e){return _(e)||M(e)===u},_e.isConcurrentMode=_,_e.isContextConsumer=function(e){return M(e)===s},_e.isContextProvider=function(e){return M(e)===f},_e.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},_e.isForwardRef=function(e){return M(e)===y},_e.isFragment=function(e){return M(e)===r},_e.isLazy=function(e){return M(e)===b},_e.isMemo=function(e){return M(e)===p},_e.isPortal=function(e){return M(e)===o},_e.isProfiler=function(e){return M(e)===c},_e.isStrictMode=function(e){return M(e)===n},_e.isSuspense=function(e){return M(e)===l},_e.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===a||e===c||e===n||e===l||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===b||e.$$typeof===p||e.$$typeof===f||e.$$typeof===s||e.$$typeof===y||e.$$typeof===$||e.$$typeof===d||e.$$typeof===C||e.$$typeof===S)},_e.typeOf=M},3306,[]);
15728
- __d(function(g,r,i,a,m,_e,d){"use strict";const e=["style"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return o}});var n=t(r(d[0]));r(d[1]);var u=t(r(d[2])),l=t(r(d[3])),c=t(r(d[4])),f=r(d[5]);function o(t){let{style:l}=t,o=(0,n.default)(t,e);return(0,f.jsx)(c.default.Provider,{value:!0,children:(0,f.jsx)(u.default,Object.assign({style:l??s.container},o))})}const s=l.default.create({container:{flex:1}})},3307,[120,17,20,33,3308,10]);
15729
- __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 u}});var e,t=r(d[0]),u=((e=t)&&e.__esModule?e:{default:e}).default.createContext(!1)},3308,[17]);
15730
- __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"tapGestureHandlerProps",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e,"tapHandlerName",{enumerable:!0,get:function(){return s}}),Object.defineProperty(_e,"TapGestureHandler",{enumerable:!0,get:function(){return o}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e},u=r(d[1]);const l=['maxDurationMs','maxDelayMs','numberOfTaps','maxDeltaX','maxDeltaY','maxDist','minPointers'],s='TapGestureHandler',o=(0,n.default)({name:s,allowedProps:[...u.baseGestureHandlerProps,...l],config:{shouldCancelWhenOutside:!0}})},3309,[3310,3265]);
15731
- __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,"default",{enumerable:!0,get:function(){return R}});var t=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(_r(_d[0]));_r(_d[1]);var n=e(_r(_d[2]));_r(_d[3]);var r=_r(_d[4]),s=e(_r(_d[5])),o=_r(_d[6]),d=_r(_d[7]),l=_r(_d[8]),h=_r(_d[9]),u=e(_r(_d[10])),p=_r(_d[11]),c=_r(_d[12]);_r(_d[13]);var f=e(_r(_d[14])),v=_r(_d[15]),E=_r(_d[16]);_r(_d[17]);const w=n.default;r.customDirectEventTypes.topGestureHandlerEvent={registrationName:'onGestureHandlerEvent'};const H=Object.assign({onGestureHandlerEvent:{registrationName:'onGestureHandlerEvent'},onGestureHandlerStateChange:{registrationName:'onGestureHandlerStateChange'}},(0,p.isFabric)()&&!1);w.genericDirectEventTypes=Object.assign({},w.genericDirectEventTypes,H);const T=w.getViewManagerConfig?.('getConstants');T&&(T.genericDirectEventTypes=Object.assign({},T.genericDirectEventTypes,H));const{setJSResponder:y=()=>{},clearJSResponder:G=()=>{}}=w;w.setJSResponder=(e,t)=>{s.default.handleSetJSResponder(e,t),y(e,t)},w.clearJSResponder=()=>{s.default.handleClearJSResponder(),G()};let C=!0;function N(e){const t=e=>Array.isArray(e)?e.some(e=>e&&null===e.current):e&&null===e.current;return t(e.simultaneousHandlers)||t(e.waitFor)}const S={[o.State.UNDETERMINED]:void 0,[o.State.BEGAN]:'onBegan',[o.State.FAILED]:'onFailed',[o.State.CANCELLED]:'onCancelled',[o.State.ACTIVE]:'onActivated',[o.State.END]:'onEnded'},D=1;function R({name:e,allowedProps:n=[],config:r={},transformProps:o,customNativeProps:w=[]}){class H extends t.Component{static displayName=e;static contextType=f.default;handlerTag=-1;constructor(e){if(super(e),this.config={},this.propsRef=t.createRef(),this.isMountedRef=t.createRef(),this.state={allowTouches:C},e.id){if(void 0!==d.handlerIDToTag[e.id])throw new Error(`Handler with ID "${e.id}" already registered`);d.handlerIDToTag[e.id]=this.handlerTag}}componentDidMount(){const e=this.props;if(this.isMountedRef.current=!0,N(e)&&(0,v.ghQueueMicrotask)(()=>{this.update(D)}),this.createGestureHandler((0,h.filterConfig)(o?o(this.props):this.props,[...n,...w],r)),!this.viewNode)throw new Error(`[Gesture Handler] Failed to obtain view for ${H.displayName}. Note that old API doesn't support functional components.`);this.attachGestureHandler((0,u.default)(this.viewNode))}componentDidUpdate(){const e=(0,u.default)(this.viewNode);this.viewTag!==e&&this.attachGestureHandler(e),this.update(D)}componentWillUnmount(){this.inspectorToggleListener?.remove(),this.isMountedRef.current=!1,s.default.dropGestureHandler(this.handlerTag),(0,h.scheduleFlushOperations)();const e=this.props.id;e&&delete d.handlerIDToTag[e],E.MountRegistry.gestureHandlerWillUnmount(this)}onGestureHandlerEvent=e=>{e.nativeEvent.handlerTag===this.handlerTag?'function'==typeof this.props.onGestureEvent&&this.props.onGestureEvent?.(e):this.props.onGestureHandlerEvent?.(e)};onGestureHandlerStateChange=e=>{if(e.nativeEvent.handlerTag===this.handlerTag){'function'==typeof this.props.onHandlerStateChange&&this.props.onHandlerStateChange?.(e);const t=e.nativeEvent.state,n=S[t],r=n&&this.props[n];r&&'function'==typeof r&&r(e)}else this.props.onGestureHandlerStateChange?.(e)};refHandler=e=>{this.viewNode=e;const n=t.Children.only(this.props.children),r=(0,p.isReact19)()?n.props?.ref:n?.ref;r&&('function'==typeof r?r(e):r.current=e)};createGestureHandler=t=>{this.handlerTag=(0,l.getNextHandlerTag)(),this.config=t,s.default.createGestureHandler(e,this.handlerTag,t)};attachGestureHandler=e=>{this.viewTag=e,s.default.attachGestureHandler(this.handlerTag,e,c.ActionType.JS_FUNCTION_OLD_API,this.propsRef),(0,h.scheduleFlushOperations)(),(0,v.ghQueueMicrotask)(()=>{E.MountRegistry.gestureHandlerWillMount(this)})};updateGestureHandler=e=>{this.config=e,s.default.updateGestureHandler(this.handlerTag,e),(0,h.scheduleFlushOperations)()};update(e){if(!this.isMountedRef.current)return;if(N(this.props)&&e>0)(0,v.ghQueueMicrotask)(()=>{this.update(e-1)});else{const e=(0,h.filterConfig)(o?o(this.props):this.props,[...n,...w],r);(0,p.deepEqual)(this.config,e)||this.updateGestureHandler(e)}}setNativeProps(e){const t=Object.assign({},this.props,e),s=(0,h.filterConfig)(o?o(t):t,[...n,...w],r);this.updateGestureHandler(s)}render(){let n=this.onGestureHandlerEvent;const{onGestureEvent:r,onGestureHandlerEvent:s}=this.props;if(r&&'function'!=typeof r){if(s)throw new Error('Nesting touch handlers with native animated driver is not supported yet');n=r}else if(s&&'function'!=typeof s)throw new Error('Nesting touch handlers with native animated driver is not supported yet');let o=this.onGestureHandlerStateChange;const{onHandlerStateChange:d,onGestureHandlerStateChange:l}=this.props;if(d&&'function'!=typeof d){if(l)throw new Error('Nesting touch handlers with native animated driver is not supported yet');o=d}else if(l&&'function'!=typeof l)throw new Error('Nesting touch handlers with native animated driver is not supported yet');const h={onGestureHandlerEvent:this.state.allowTouches?n:void 0,onGestureHandlerStateChange:this.state.allowTouches?o:void 0};this.propsRef.current=h;let u=null;try{u=t.Children.only(this.props.children)}catch(t){throw new Error((0,p.tagMessage)(`${e} got more than one view as a child. If you want the gesture to work on multiple views, wrap them with a common parent and attach the gesture to that view.`))}let c=u.props.children;return t.cloneElement(u,Object.assign({ref:this.refHandler,collapsable:!1},(0,p.isTestEnv)()?{handlerType:e,handlerTag:this.handlerTag,enabled:this.props.enabled}:{},{testID:this.props.testID??u.props.testID},h),c)}}return H}},3310,[17,136,95,274,3311,3251,3245,3247,3312,3313,3298,3248,3314,3315,3308,3285,3316,10]);
15732
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"customDirectEventTypes",{enumerable:!0,get:function(){return t}});const t={}},3311,[]);
15733
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.getNextHandlerTag=function(){return t++};let t=1},3312,[]);
15734
- __d(function(g,r,i,a,m,_e,d){"use strict";function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.filterConfig=function(t,e,n={}){const o=Object.assign({},n);for(const n of e){let e=t[n];u(e,n)&&('simultaneousHandlers'===n||'waitFor'===n?e=s(t[n]):'hitSlop'===n&&'object'!=typeof e&&(e={top:e,left:e,bottom:e,right:e}),o[n]=e)}return o},_e.transformIntoHandlerTags=s,_e.findNodeHandle=function(t){return t},_e.scheduleFlushOperations=function(){f||(f=!0,(0,o.ghQueueMicrotask)(()=>{n.default.flushOperations(),f=!1}))},r(d[0]);t(r(d[1])),r(d[2]);var e=r(d[3]),n=t(r(d[4])),o=r(d[5]);function u(t,e){return void 0!==t&&(t!==Object(t)||!('__isNative'in t))&&'onHandlerStateChange'!==e&&'onGestureEvent'!==e}function s(t){return(t=(0,e.toArray)(t)).map(({current:t})=>t).filter(t=>t)}let f=!1},3313,[136,122,3247,3248,3251,3285]);
15735
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ActionType",{enumerable:!0,get:function(){return _}});const _={REANIMATED_WORKLET:1,NATIVE_ANIMATED_EVENT:2,JS_FUNCTION_OLD_API:3,JS_FUNCTION_NEW_API:4}},3314,[]);
15736
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.PressabilityDebugView=function(){return null}},3315,[]);
15737
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"MountRegistry",{enumerable:!0,get:function(){return t}});class t{static mountListeners=new Set;static unmountListeners=new Set;static addMountListener(t){return this.mountListeners.add(t),()=>{this.mountListeners.delete(t)}}static addUnmountListener(t){return this.unmountListeners.add(t),()=>{this.unmountListeners.delete(t)}}static gestureHandlerWillMount(t){this.mountListeners.forEach(n=>n(t))}static gestureHandlerWillUnmount(t){this.unmountListeners.forEach(n=>n(t))}static gestureWillMount(t){this.mountListeners.forEach(n=>n(t))}static gestureWillUnmount(t){this.unmountListeners.forEach(n=>n(t))}}},3316,[]);
15738
- __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,"forceTouchGestureHandlerProps",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e,"forceTouchHandlerName",{enumerable:!0,get:function(){return f}}),Object.defineProperty(_e,"ForceTouchGestureHandler",{enumerable:!0,get:function(){return b}});var o=e(r(d[0])),t=r(d[1]),n=e(r(d[2])),c=e(r(d[3])),u=r(d[4]);const l=['minForce','maxForce','feedbackOnActivation'];class s extends o.default.Component{static forceTouchAvailable=!1;componentDidMount(){console.warn((0,t.tagMessage)('ForceTouchGestureHandler is not available on this platform. Please use ForceTouchGestureHandler.forceTouchAvailable to conditionally render other components that would provide a fallback behavior specific to your usecase'))}render(){return this.props.children}}const f='ForceTouchGestureHandler',b=n.default?.forceTouchAvailable?(0,c.default)({name:f,allowedProps:[...u.baseGestureHandlerProps,...l],config:{}}):s;b.forceTouchAvailable=n.default?.forceTouchAvailable||!1},3317,[17,3248,3318,3310,3265]);
15739
- __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 t}});var t={get forceTouchAvailable(){return!1}}},3318,[]);
15740
- __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"longPressGestureHandlerProps",{enumerable:!0,get:function(){return u}}),Object.defineProperty(_e,"longPressHandlerName",{enumerable:!0,get:function(){return o}}),Object.defineProperty(_e,"LongPressGestureHandler",{enumerable:!0,get:function(){return l}});var e,n=r(d[0]),t=(e=n)&&e.__esModule?e:{default:e},s=r(d[1]);const u=['minDurationMs','maxDist','numberOfPointers'],o='LongPressGestureHandler',l=(0,t.default)({name:o,allowedProps:[...s.baseGestureHandlerProps,...u],config:{shouldCancelWhenOutside:!0}})},3319,[3310,3265]);
15741
- __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"panGestureHandlerProps",{enumerable:!0,get:function(){return n}}),Object.defineProperty(_e,"panGestureHandlerCustomNativeProps",{enumerable:!0,get:function(){return O}}),Object.defineProperty(_e,"panHandlerName",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e,"PanGestureHandler",{enumerable:!0,get:function(){return c}}),_e.managePanProps=v;var e,t=r(d[0]),f=(e=t)&&e.__esModule?e:{default:e},s=r(d[1]);const n=['activeOffsetY','activeOffsetX','failOffsetY','failOffsetX','minDist','minVelocity','minVelocityX','minVelocityY','minPointers','maxPointers','avgTouches','enableTrackpadTwoFingerGesture','activateAfterLongPress'],O=['activeOffsetYStart','activeOffsetYEnd','activeOffsetXStart','activeOffsetXEnd','failOffsetYStart','failOffsetYEnd','failOffsetXStart','failOffsetXEnd'],l='PanGestureHandler',c=(0,f.default)({name:l,allowedProps:[...s.baseGestureHandlerProps,...n],config:{},transformProps:v,customNativeProps:O});function o(e){const t=Object.assign({},e);return void 0!==e.activeOffsetX&&(delete t.activeOffsetX,Array.isArray(e.activeOffsetX)?(t.activeOffsetXStart=e.activeOffsetX[0],t.activeOffsetXEnd=e.activeOffsetX[1]):e.activeOffsetX<0?t.activeOffsetXStart=e.activeOffsetX:t.activeOffsetXEnd=e.activeOffsetX),void 0!==e.activeOffsetY&&(delete t.activeOffsetY,Array.isArray(e.activeOffsetY)?(t.activeOffsetYStart=e.activeOffsetY[0],t.activeOffsetYEnd=e.activeOffsetY[1]):e.activeOffsetY<0?t.activeOffsetYStart=e.activeOffsetY:t.activeOffsetYEnd=e.activeOffsetY),void 0!==e.failOffsetX&&(delete t.failOffsetX,Array.isArray(e.failOffsetX)?(t.failOffsetXStart=e.failOffsetX[0],t.failOffsetXEnd=e.failOffsetX[1]):e.failOffsetX<0?t.failOffsetXStart=e.failOffsetX:t.failOffsetXEnd=e.failOffsetX),void 0!==e.failOffsetY&&(delete t.failOffsetY,Array.isArray(e.failOffsetY)?(t.failOffsetYStart=e.failOffsetY[0],t.failOffsetYEnd=e.failOffsetY[1]):e.failOffsetY<0?t.failOffsetYStart=e.failOffsetY:t.failOffsetYEnd=e.failOffsetY),t}function v(e){return o(e)}},3320,[3310,3265]);
15742
- __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"pinchHandlerName",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e,"PinchGestureHandler",{enumerable:!0,get:function(){return o}});var e,n=r(d[0]),t=(e=n)&&e.__esModule?e:{default:e},u=r(d[1]);const l='PinchGestureHandler',o=(0,t.default)({name:l,allowedProps:u.baseGestureHandlerProps,config:{}})},3321,[3310,3265]);
15743
- __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"rotationHandlerName",{enumerable:!0,get:function(){return u}}),Object.defineProperty(_e,"RotationGestureHandler",{enumerable:!0,get:function(){return l}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e},o=r(d[1]);const u='RotationGestureHandler',l=(0,n.default)({name:u,allowedProps:o.baseGestureHandlerProps,config:{}})},3322,[3310,3265]);
15744
- __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"flingGestureHandlerProps",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e,"flingHandlerName",{enumerable:!0,get:function(){return o}}),Object.defineProperty(_e,"FlingGestureHandler",{enumerable:!0,get:function(){return f}});var e,n=r(d[0]),t=(e=n)&&e.__esModule?e:{default:e},u=r(d[1]);const l=['numberOfPointers','direction'],o='FlingGestureHandler',f=(0,t.default)({name:o,allowedProps:[...u.baseGestureHandlerProps,...l],config:{}})},3323,[3310,3265]);
15745
- __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 e=r(_d[0]),t=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(e),n=r(_d[1]),s=r(_d[2]);const u=[...n.nativeViewProps,'onGestureHandlerEvent','onGestureHandlerStateChange'];function l(l,o={}){const c=t.forwardRef((t,c)=>{const{gestureHandlerProps:d,childProps:p}=Object.keys(t).reduce((e,n)=>(u.includes(n)?e.gestureHandlerProps[n]=t[n]:e.childProps[n]=t[n],e),{gestureHandlerProps:Object.assign({},o),childProps:{enabled:t.enabled,hitSlop:t.hitSlop,testID:t.testID}}),f=(0,e.useRef)(null),b=(0,e.useRef)(null);return(0,e.useImperativeHandle)(c,()=>{const e=b.current;return f.current&&e?(f.current.handlerTag=e.handlerTag,f.current):null},[f,b]),(0,s.jsx)(n.NativeViewGestureHandler,Object.assign({},d,{ref:b,children:(0,s.jsx)(l,Object.assign({},p,{ref:f}))}))});return c.displayName=l?.displayName||l?.render?.name||'string'==typeof l&&l||'ComponentWrapper',c}},3324,[17,3325,10]);
15746
- __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"nativeViewGestureHandlerProps",{enumerable:!0,get:function(){return o}}),Object.defineProperty(_e,"nativeViewProps",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e,"nativeViewHandlerName",{enumerable:!0,get:function(){return s}}),Object.defineProperty(_e,"NativeViewGestureHandler",{enumerable:!0,get:function(){return c}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e},u=r(d[1]);const o=['shouldActivateOnStart','disallowInterruption'],l=[...u.baseGestureHandlerProps,...o],s='NativeViewGestureHandler',c=(0,n.default)({name:s,allowedProps:l,config:{}})},3325,[3310,3265]);
15747
- __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,"GestureDetector",{enumerable:!0,get:function(){return w}});var t=r(d[0]),n=e(t);r(d[1]);var s=e(r(d[2]));r(d[3]);var u=e(r(d[4])),o=r(d[5]),c=r(d[6]),f=r(d[7]),l=r(d[8]),R=r(d[9]),v=r(d[10]),h=r(d[11]),p=r(d[12]),E=r(d[13]),g=r(d[14]),b=r(d[15]);function H(e,t){const n=['userSelect','enableContextMenu','touchAction'];for(const s of n){const n=e[s];if(void 0!==n)for(const e of t.toGestureArray()){e.config[s]=n}}}const w=e=>{(0,t.useContext)(u.default);if(!e.gesture)throw new Error('GestureDetector must have a gesture prop provided.');const w=e.gesture;H(e,w);const G=(0,t.useMemo)(()=>w.toGestureArray(),[w]),M=G.some(e=>e.shouldUseReanimated),A=(0,R.useWebEventHandlers)(),_=(0,t.useRef)({firstRender:!0,viewRef:null,previousViewTag:-1,forceRebuildReanimatedEvent:!1}).current,y=n.default.useRef({attachedGestures:[],animatedEventHandler:null,animatedHandlers:null,shouldUseReanimated:M,isMounted:!1}).current,j=(0,h.useDetectorUpdater)(_,y,G,w,A),x=(0,p.useViewRefHandler)(_,j),T=_.firstRender||_.forceRebuildReanimatedEvent||(0,f.needsToReattach)(y,G);return _.forceRebuildReanimatedEvent=!1,(0,o.useAnimatedGesture)(y,T),(0,g.useIsomorphicLayoutEffect)(()=>{const e=(0,s.default)(_.viewRef);return y.isMounted=!0,(0,c.attachHandlers)({preparedGesture:y,gestureConfig:w,gesturesToAttach:G,webEventHandlersRef:A,viewTag:e}),()=>{y.isMounted=!1,(0,l.dropHandlers)(y)}},[]),(0,t.useEffect)(()=>{_.firstRender?_.firstRender=!1:j()},[e]),(0,E.useMountReactions)(j,y),M?(0,b.jsx)(v.AnimatedWrap,{ref:x,onGestureHandlerEvent:y.animatedEventHandler,children:e.children}):(0,b.jsx)(v.Wrap,{ref:x,children:e.children})}},3326,[17,136,3298,3248,3308,3327,3330,3333,3334,3331,3335,3336,3338,3340,3341,10]);
15748
- __d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useAnimatedGesture=function(o,E){if(!n.Reanimated)return;const A=n.Reanimated.useSharedValue(null),v=n.Reanimated.useSharedValue([]),L=(function({_worklet_1288419065602_init_data:t,sharedHandlersCallbacks:n,isStateChangeEvent:s,State:u,runWorklet:l,CALLBACK_TYPE:o,lastUpdateEvent:E,isTouchEvent:c,stateControllers:_,GestureStateManager:T,TouchEventType:C,touchEventTypeToCallbackType:i}){const A=function(t){const A=n.value;if(A)for(let n=0;n<A.length;n++){const v=A[n];t.handlerTag===v.handlerTag&&(s(t)?t.oldState===u.UNDETERMINED&&t.state===u.BEGAN?l(o.BEGAN,v,t):t.oldState!==u.BEGAN&&t.oldState!==u.UNDETERMINED||t.state!==u.ACTIVE?t.oldState!==t.state&&t.state===u.END?(t.oldState===u.ACTIVE&&l(o.END,v,t,!0),l(o.FINALIZE,v,t,!0)):t.state!==u.FAILED&&t.state!==u.CANCELLED||t.state===t.oldState||(t.oldState===u.ACTIVE&&l(o.END,v,t,!1),l(o.FINALIZE,v,t,!1)):(l(o.START,v,t),E.value[v.handlerTag]=void 0):c(t)?(_[n]&&_[n].handlerTag===t.handlerTag||(_[n]=T.create(t.handlerTag)),t.eventType!==C.UNDETERMINED&&l(i(t.eventType),v,t,_[n])):(l(o.UPDATE,v,t),v.onChange&&v.changeEventCalculator&&(l(o.CHANGE,v,v.changeEventCalculator?.(t,E.value[v.handlerTag])),E.value[v.handlerTag]=t)))}};return A.__closure={sharedHandlersCallbacks:n,isStateChangeEvent:s,State:u,runWorklet:l,CALLBACK_TYPE:o,lastUpdateEvent:E,isTouchEvent:c,stateControllers:_,GestureStateManager:T,TouchEventType:C,touchEventTypeToCallbackType:i},A.__workletHash=1288419065602,A.__initData=t,A})({_worklet_1288419065602_init_data:i,sharedHandlersCallbacks:A,isStateChangeEvent:T,State:u.State,runWorklet:_,CALLBACK_TYPE:t.CALLBACK_TYPE,lastUpdateEvent:v,isTouchEvent:C,stateControllers:[],GestureStateManager:s.GestureStateManager,TouchEventType:l.TouchEventType,touchEventTypeToCallbackType:c}),h=n.Reanimated.useEvent(L,['onGestureHandlerStateChange','onGestureHandlerEvent'],E);o.animatedEventHandler=h,o.animatedHandlers=A};var t=r(d[0]),n=r(d[1]),s=r(d[2]),u=r(d[3]),l=r(d[4]),o=r(d[5]);const E=(function({_worklet_4317557963300_init_data:t,CALLBACK_TYPE:n}){const s=function(t,s){switch(t){case n.BEGAN:return s.onBegin;case n.START:return s.onStart;case n.UPDATE:return s.onUpdate;case n.CHANGE:return s.onChange;case n.END:return s.onEnd;case n.FINALIZE:return s.onFinalize;case n.TOUCHES_DOWN:return s.onTouchesDown;case n.TOUCHES_MOVE:return s.onTouchesMove;case n.TOUCHES_UP:return s.onTouchesUp;case n.TOUCHES_CANCELLED:return s.onTouchesCancelled}};return s.__closure={CALLBACK_TYPE:n},s.__workletHash=4317557963300,s.__initData=t,s})({_worklet_4317557963300_init_data:{code:"function getHandler_reactNativeGestureHandler_useAnimatedGestureJs1(type,gesture){const{CALLBACK_TYPE}=this.__closure;switch(type){case CALLBACK_TYPE.BEGAN:return gesture.onBegin;case CALLBACK_TYPE.START:return gesture.onStart;case CALLBACK_TYPE.UPDATE:return gesture.onUpdate;case CALLBACK_TYPE.CHANGE:return gesture.onChange;case CALLBACK_TYPE.END:return gesture.onEnd;case CALLBACK_TYPE.FINALIZE:return gesture.onFinalize;case CALLBACK_TYPE.TOUCHES_DOWN:return gesture.onTouchesDown;case CALLBACK_TYPE.TOUCHES_MOVE:return gesture.onTouchesMove;case CALLBACK_TYPE.TOUCHES_UP:return gesture.onTouchesUp;case CALLBACK_TYPE.TOUCHES_CANCELLED:return gesture.onTouchesCancelled;}}"},CALLBACK_TYPE:t.CALLBACK_TYPE}),c=(function({_worklet_2039840524711_init_data:t,TouchEventType:n,CALLBACK_TYPE:s}){const u=function(t){switch(t){case n.TOUCHES_DOWN:return s.TOUCHES_DOWN;case n.TOUCHES_MOVE:return s.TOUCHES_MOVE;case n.TOUCHES_UP:return s.TOUCHES_UP;case n.TOUCHES_CANCELLED:return s.TOUCHES_CANCELLED}return s.UNDEFINED};return u.__closure={TouchEventType:n,CALLBACK_TYPE:s},u.__workletHash=2039840524711,u.__initData=t,u})({_worklet_2039840524711_init_data:{code:"function touchEventTypeToCallbackType_reactNativeGestureHandler_useAnimatedGestureJs2(eventType){const{TouchEventType,CALLBACK_TYPE}=this.__closure;switch(eventType){case TouchEventType.TOUCHES_DOWN:return CALLBACK_TYPE.TOUCHES_DOWN;case TouchEventType.TOUCHES_MOVE:return CALLBACK_TYPE.TOUCHES_MOVE;case TouchEventType.TOUCHES_UP:return CALLBACK_TYPE.TOUCHES_UP;case TouchEventType.TOUCHES_CANCELLED:return CALLBACK_TYPE.TOUCHES_CANCELLED;}return CALLBACK_TYPE.UNDEFINED;}"},TouchEventType:l.TouchEventType,CALLBACK_TYPE:t.CALLBACK_TYPE}),_=(function({_worklet_5108402624264_init_data:t,getHandler:n,tagMessage:s}){const u=function(t,u,l,...o){const E=n(t,u);u.isWorklet[t]?E?.(l,...o):E&&console.warn(s('Animated gesture callback must be a worklet'))};return u.__closure={getHandler:n,tagMessage:s},u.__workletHash=5108402624264,u.__initData=t,u})({_worklet_5108402624264_init_data:{code:"function runWorklet_reactNativeGestureHandler_useAnimatedGestureJs3(type,gesture,event,...args){const{getHandler,tagMessage}=this.__closure;const handler=getHandler(type,gesture);if(gesture.isWorklet[type]){handler===null||handler===void 0||handler(event,...args);}else if(handler){console.warn(tagMessage('Animated gesture callback must be a worklet'));}}"},getHandler:E,tagMessage:o.tagMessage}),T=(function({_worklet_7889847699524_init_data:t}){const n=function(t){return null!=t.oldState};return n.__closure={},n.__workletHash=7889847699524,n.__initData=t,n})({_worklet_7889847699524_init_data:{code:"function isStateChangeEvent_reactNativeGestureHandler_useAnimatedGestureJs4(event){return event.oldState!=null;}"}}),C=(function({_worklet_13087507825621_init_data:t}){const n=function(t){return null!=t.eventType};return n.__closure={},n.__workletHash=0xbe72c4143d5,n.__initData=t,n})({_worklet_13087507825621_init_data:{code:"function isTouchEvent_reactNativeGestureHandler_useAnimatedGestureJs5(event){return event.eventType!=null;}"}}),i={code:"function reactNativeGestureHandler_useAnimatedGestureJs6(event){const{sharedHandlersCallbacks,isStateChangeEvent,State,runWorklet,CALLBACK_TYPE,lastUpdateEvent,isTouchEvent,stateControllers,GestureStateManager,TouchEventType,touchEventTypeToCallbackType}=this.__closure;const currentCallback=sharedHandlersCallbacks.value;if(!currentCallback){return;}for(let i=0;i<currentCallback.length;i++){const gesture=currentCallback[i];if(event.handlerTag!==gesture.handlerTag){continue;}if(isStateChangeEvent(event)){if(event.oldState===State.UNDETERMINED&&event.state===State.BEGAN){runWorklet(CALLBACK_TYPE.BEGAN,gesture,event);}else if((event.oldState===State.BEGAN||event.oldState===State.UNDETERMINED)&&event.state===State.ACTIVE){runWorklet(CALLBACK_TYPE.START,gesture,event);lastUpdateEvent.value[gesture.handlerTag]=undefined;}else if(event.oldState!==event.state&&event.state===State.END){if(event.oldState===State.ACTIVE){runWorklet(CALLBACK_TYPE.END,gesture,event,true);}runWorklet(CALLBACK_TYPE.FINALIZE,gesture,event,true);}else if((event.state===State.FAILED||event.state===State.CANCELLED)&&event.state!==event.oldState){if(event.oldState===State.ACTIVE){runWorklet(CALLBACK_TYPE.END,gesture,event,false);}runWorklet(CALLBACK_TYPE.FINALIZE,gesture,event,false);}}else if(isTouchEvent(event)){if(!stateControllers[i]||stateControllers[i].handlerTag!==event.handlerTag){stateControllers[i]=GestureStateManager.create(event.handlerTag);}if(event.eventType!==TouchEventType.UNDETERMINED){runWorklet(touchEventTypeToCallbackType(event.eventType),gesture,event,stateControllers[i]);}}else{runWorklet(CALLBACK_TYPE.UPDATE,gesture,event);if(gesture.onChange&&gesture.changeEventCalculator){var _gesture$changeEventC;runWorklet(CALLBACK_TYPE.CHANGE,gesture,(_gesture$changeEventC=gesture.changeEventCalculator)===null||_gesture$changeEventC===void 0?void 0:_gesture$changeEventC.call(gesture,event,lastUpdateEvent.value[gesture.handlerTag]));lastUpdateEvent.value[gesture.handlerTag]=event;}}}}"}},3327,[3328,3329,3249,3245,3246,3248]);
15749
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"CALLBACK_TYPE",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"Gesture",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"BaseGesture",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"ContinousBaseGesture",{enumerable:!0,get:function(){return u}});var t=r(d[0]),s=r(d[1]);const n={UNDEFINED:0,BEGAN:1,START:2,UPDATE:3,CHANGE:4,END:5,FINALIZE:6,TOUCHES_DOWN:7,TOUCHES_MOVE:8,TOUCHES_UP:9,TOUCHES_CANCELLED:10};class h{}let o=0;class l extends h{gestureId=-1;handlerTag=-1;handlerName='';config={};handlers={gestureId:-1,handlerTag:-1,isWorklet:[]};constructor(){super(),this.gestureId=o++,this.handlers.gestureId=this.gestureId}addDependency(t,s){const n=this.config[t];this.config[t]=n?Array().concat(n,s):[s]}withRef(t){return this.config.ref=t,this}isWorklet(t){return void 0!==t.__workletHash}onBegin(t){return this.handlers.onBegin=t,this.handlers.isWorklet[n.BEGAN]=this.isWorklet(t),this}onStart(t){return this.handlers.onStart=t,this.handlers.isWorklet[n.START]=this.isWorklet(t),this}onEnd(t){return this.handlers.onEnd=t,this.handlers.isWorklet[n.END]=this.isWorklet(t),this}onFinalize(t){return this.handlers.onFinalize=t,this.handlers.isWorklet[n.FINALIZE]=this.isWorklet(t),this}onTouchesDown(t){return this.config.needsPointerData=!0,this.handlers.onTouchesDown=t,this.handlers.isWorklet[n.TOUCHES_DOWN]=this.isWorklet(t),this}onTouchesMove(t){return this.config.needsPointerData=!0,this.handlers.onTouchesMove=t,this.handlers.isWorklet[n.TOUCHES_MOVE]=this.isWorklet(t),this}onTouchesUp(t){return this.config.needsPointerData=!0,this.handlers.onTouchesUp=t,this.handlers.isWorklet[n.TOUCHES_UP]=this.isWorklet(t),this}onTouchesCancelled(t){return this.config.needsPointerData=!0,this.handlers.onTouchesCancelled=t,this.handlers.isWorklet[n.TOUCHES_CANCELLED]=this.isWorklet(t),this}enabled(t){return this.config.enabled=t,this}shouldCancelWhenOutside(t){return this.config.shouldCancelWhenOutside=t,this}hitSlop(t){return this.config.hitSlop=t,this}activeCursor(t){return this.config.activeCursor=t,this}mouseButton(t){return this.config.mouseButton=t,this}runOnJS(t){return this.config.runOnJS=t,this}simultaneousWithExternalGesture(...t){for(const s of t)s&&this.addDependency('simultaneousWith',s);return this}requireExternalGestureToFail(...t){for(const s of t)s&&this.addDependency('requireToFail',s);return this}blocksExternalGesture(...t){for(const s of t)s&&this.addDependency('blocksHandlers',s);return this}withTestId(t){return this.config.testId=t,this}cancelsTouchesInView(t){return this.config.cancelsTouchesInView=t,this}initialize(){this.handlerTag=(0,t.getNextHandlerTag)(),this.handlers=Object.assign({},this.handlers,{handlerTag:this.handlerTag}),this.config.ref&&(this.config.ref.current=this)}toGestureArray(){return[this]}prepare(){}get shouldUseReanimated(){return!0!==this.config.runOnJS&&!this.handlers.isWorklet.includes(!1)&&!(0,s.isRemoteDebuggingEnabled)()}}class u extends l{onUpdate(t){return this.handlers.onUpdate=t,this.handlers.isWorklet[n.UPDATE]=this.isWorklet(t),this}onChange(t){return this.handlers.onChange=t,this.handlers.isWorklet[n.CHANGE]=this.isWorklet(t),this}manualActivation(t){return this.config.manualActivation=t,this}}},3328,[3312,3248]);
15750
- __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Reanimated",{enumerable:!0,get:function(){return t}});var e=r(d[0]);let t;try{t=r(d[1],"react-native-reanimated")}catch(e){t=void 0}t?.useSharedValue||(t=void 0);const s={code:"function reactNativeGestureHandler_reanimatedWrapperJs1(){const{tagMessage}=this.__closure;console.warn(tagMessage('Please use newer version of react-native-reanimated in order to control state of the gestures.'));}"};void 0===t||t.setGestureState||(t.setGestureState=(function({_worklet_7298969188432_init_data:e,tagMessage:t}){const s=function(){console.warn(t('Please use newer version of react-native-reanimated in order to control state of the gestures.'))};return s.__closure={tagMessage:t},s.__workletHash=7298969188432,s.__initData=e,s})({_worklet_7298969188432_init_data:s,tagMessage:e.tagMessage}))},3329,[3248,2714]);
15751
- __d(function(_g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.attachHandlers=function({preparedGesture:e,gestureConfig:n,gesturesToAttach:g,viewTag:h,webEventHandlersRef:_}){n.initialize(),(0,u.ghQueueMicrotask)(()=>{e.isMounted&&n.prepare()});for(const e of g)(0,c.checkGestureCallbacksForWorklets)(e),s.default.createGestureHandler(e.handlerName,e.handlerTag,(0,o.filterConfig)(e.config,c.ALLOWED_PROPS)),(0,t.registerHandler)(e.handlerTag,e,e.config.testId);(0,u.ghQueueMicrotask)(()=>{if(e.isMounted){for(const e of g)s.default.updateGestureHandler(e.handlerTag,(0,o.filterConfig)(e.config,c.ALLOWED_PROPS,(0,c.extractGestureRelations)(e)));(0,o.scheduleFlushOperations)()}});for(const e of g){e.shouldUseReanimated?l.ActionType.REANIMATED_WORKLET:l.ActionType.JS_FUNCTION_NEW_API;s.default.attachGestureHandler(e.handlerTag,h,l.ActionType.JS_FUNCTION_OLD_API,_),f.MountRegistry.gestureWillMount(e)}if(e.attachedGestures=g,e.animatedHandlers){const t=e=>e.shouldUseReanimated;e.animatedHandlers.value=g.filter(t).map(e=>e.handlers)}};var e,t=r(d[0]),n=r(d[1]),s=(e=n)&&e.__esModule?e:{default:e},o=r(d[2]),l=r(d[3]);r(d[4]);var u=r(d[5]),c=r(d[6]),f=r(d[7])},3330,[3247,3251,3313,3314,136,3285,3331,3316]);
15752
- __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"ALLOWED_PROPS",{enumerable:!0,get:function(){return G}}),_e.extractGestureRelations=function(e){return e.config.requireToFail=P(e.config.requireToFail),e.config.simultaneousWith=P(e.config.simultaneousWith),e.config.blocksHandlers=P(e.config.blocksHandlers),{waitFor:e.config.requireToFail,simultaneousHandlers:e.config.simultaneousWith,blocksHandlers:e.config.blocksHandlers}},_e.checkGestureCallbacksForWorklets=function(e){return},_e.useForceRender=function(){const[n,t]=(0,e.useState)(!1);return(0,e.useCallback)(()=>{t(!n)},[n,t])},_e.useWebEventHandlers=function(){return(0,e.useRef)({onGestureHandlerEvent:e=>{(0,p.onGestureHandlerEvent)(e.nativeEvent)},onGestureHandlerStateChange:(0,H.isNewWebImplementationEnabled)()?e=>{(0,p.onGestureHandlerEvent)(e.nativeEvent)}:void 0})};var e=r(d[0]),n=(r(d[1]),r(d[2])),t=r(d[3]),o=r(d[4]),s=r(d[5]),u=r(d[6]),l=r(d[7]),c=r(d[8]),f=r(d[9]),_=r(d[10]),H=r(d[11]),p=(r(d[12]),r(d[13]));const G=[..._.baseGestureHandlerWithDetectorProps,...l.tapGestureHandlerProps,...u.panGestureHandlerProps,...u.panGestureHandlerCustomNativeProps,...s.longPressGestureHandlerProps,...o.forceTouchGestureHandlerProps,...t.flingGestureHandlerProps,...c.hoverGestureHandlerProps,...f.nativeViewGestureHandlerProps],b=(function({_worklet_15931153665387_init_data:e}){const n=function(){};return n.__closure={},n.__workletHash=0xe7d42c14d6b,n.__initData=e,n})({_worklet_15931153665387_init_data:{code:"function emptyWorklet_reactNativeGestureHandler_utilsJs1(){}"}});b.__workletHash;function v(e){return'number'==typeof e?e:e instanceof n.BaseGesture?e.handlerTag:e.current?.handlerTag??-1}function P(e){return Array.from(new Set(e?.map(v)?.filter(e=>e>0)??[]))}},3331,[17,3248,3328,3323,3317,3319,3320,3309,3332,3325,3265,3252,3329,3244]);
15753
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"HoverEffect",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"hoverGestureHandlerProps",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"HoverGesture",{enumerable:!0,get:function(){return u}});var n=r(d[0]);let t=(function(n){return n[n.NONE=0]="NONE",n[n.LIFT=1]="LIFT",n[n.HIGHLIGHT=2]="HIGHLIGHT",n})({});const c=['hoverEffect'],o=(function({_worklet_15895574323364_init_data:n}){const t=function(n,t){let c;return c=void 0===t?{changeX:n.x,changeY:n.y}:{changeX:n.x-t.x,changeY:n.y-t.y},Object.assign({},n,c)};return t.__closure={},t.__workletHash=0xe74fa0fa0a4,t.__initData=n,t})({_worklet_15895574323364_init_data:{code:"function changeEventCalculator_reactNativeGestureHandler_hoverGestureJs1(current,previous){let changePayload;if(previous===undefined){changePayload={changeX:current.x,changeY:current.y};}else{changePayload={changeX:current.x-previous.x,changeY:current.y-previous.y};}return{...current,...changePayload};}"}});class u extends n.ContinousBaseGesture{config={};constructor(){super(),this.handlerName='HoverGestureHandler'}effect(n){return this.config.hoverEffect=n,this}onChange(n){return this.handlers.changeEventCalculator=o,super.onChange(n)}}},3332,[3328]);
15754
- __d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.needsToReattach=function(t,n){if(n.length!==t.attachedGestures.length)return!0;for(let s=0;s<n.length;s++)if(n[s].handlerName!==t.attachedGestures[s].handlerName||n[s].shouldUseReanimated!==t.attachedGestures[s].shouldUseReanimated)return!0;return!1}},3333,[]);
15755
- __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.dropHandlers=function(e){for(const n of e.attachedGestures)s.default.dropGestureHandler(n.handlerTag),(0,t.unregisterHandler)(n.handlerTag,n.config.testId),l.MountRegistry.gestureWillUnmount(n);(0,u.scheduleFlushOperations)()};var e,t=r(d[0]),n=r(d[1]),s=(e=n)&&e.__esModule?e:{default:e},u=r(d[2]),l=r(d[3])},3334,[3247,3251,3313,3316]);
15756
- __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Wrap",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e,"AnimatedWrap",{enumerable:!0,get:function(){return s}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e},o=r(d[1]),u=r(d[2]),c=r(d[3]);const l=(0,t.forwardRef)(({children:e},t)=>{try{const o=n.default.Children.only(e);if((0,u.isRNSVGNode)(o)){return n.default.cloneElement(o,{ref:t},o.props.children)}return(0,c.jsx)("div",{ref:t,style:{display:'contents'},children:o})}catch(e){throw new Error((0,o.tagMessage)("GestureDetector got more than one view as a child. If you want the gesture to work on multiple views, wrap them with a common parent and attach the gesture to that view."))}}),s=l},3335,[17,3248,3275,10]);
15757
- __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useDetectorUpdater=function(e,c,p,v,R){const _=(0,f.useForceRender)();return(0,t.useCallback)(t=>{const f=(0,l.default)(e.viewRef),w=f!==e.previousViewTag;w||(0,n.needsToReattach)(c,p)?((0,o.dropHandlers)(c),(0,s.attachHandlers)({preparedGesture:c,gestureConfig:v,gesturesToAttach:p,webEventHandlersRef:R,viewTag:f}),w&&(e.previousViewTag=f,e.forceRebuildReanimatedEvent=!0,_())):t||(0,u.updateHandlers)(c,v,p)},[_,v,p,c,e,R])};var e,t=r(d[0]),s=r(d[1]),u=r(d[2]),n=r(d[3]),o=r(d[4]),c=r(d[5]),l=(e=c)&&e.__esModule?e:{default:e},f=r(d[6])},3336,[17,3330,3337,3333,3334,3298,3331]);
15758
- __d(function(_g,r,_i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.updateHandlers=function(e,n,o){n.prepare();for(let t=0;t<o.length;t++){const n=e.attachedGestures[t];(0,h.checkGestureCallbacksForWorklets)(n),o[t].handlerTag!==n.handlerTag&&(o[t].handlerTag=n.handlerTag,o[t].handlers.handlerTag=n.handlerTag)}const i=e.attachedGestures;(0,u.ghQueueMicrotask)(()=>{if(!e.isMounted)return;if(i!==e.attachedGestures)return;let n=i.length!==o.length;for(let e=0;e<o.length;e++){const u=i[e];u.handlers.gestureId!==o[e].handlers.gestureId&&(o[e].shouldUseReanimated||u.shouldUseReanimated)&&(n=!0),u.config=o[e].config,u.handlers=o[e].handlers,s.default.updateGestureHandler(u.handlerTag,(0,l.filterConfig)(u.config,h.ALLOWED_PROPS,(0,h.extractGestureRelations)(u))),(0,t.registerHandler)(u.handlerTag,u,u.config.testId)}if(e.animatedHandlers&&n){const t=i.filter(e=>e.shouldUseReanimated).map(e=>e.handlers);e.animatedHandlers.value=t}(0,l.scheduleFlushOperations)()})};var e,t=r(d[0]),n=r(d[1]),s=(e=n)&&e.__esModule?e:{default:e},l=r(d[2]),u=r(d[3]),h=r(d[4])},3337,[3247,3251,3313,3285,3331]);
15759
- __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useViewRefHandler=function(e,l){return(0,u.useCallback)(u=>{null!==u&&(e.viewRef=u,-1===e.previousViewTag&&(e.previousViewTag=(0,t.default)(e.viewRef)),e.firstRender||l(!0))},[e,l])},r(d[0]),r(d[1]);var e,u=r(d[2]),l=r(d[3]),t=(e=l)&&e.__esModule?e:{default:e}},3338,[3248,3339,17,3298]);
15760
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.getShadowNodeFromRef=function(t){return null}},3339,[]);
15761
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useMountReactions=function(n,u){(0,o.useEffect)(()=>t.MountRegistry.addMountListener(t=>{for(const o of u.attachedGestures){const u=o.config.blocksHandlers,f=o.config.requireToFail,c=o.config.simultaneousWith;if(s(u,t)||s(f,t)||s(c,t))return void n()}}),[n,u])};var n=r(d[0]),t=r(d[1]),o=r(d[2]);function s(t,o){if(void 0===t)return!1;for(const s of(0,n.transformIntoHandlerTags)(t))if(s===o.handlerTag)return!0;return!1}},3340,[3313,3316,17]);
15762
- __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"useIsomorphicLayoutEffect",{enumerable:!0,get:function(){return f}});var e,t=r(d[0]),o=(e=t)&&e.__esModule?e:{default:e};const n=!('undefined'==typeof window||void 0===window.document||void 0===window.document.createElement),u='undefined'!=typeof navigator&&'ReactNative'===navigator.product,f=n||u?o.default.useLayoutEffect:o.default.useEffect},3341,[17]);
15763
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"GestureObjects",{enumerable:!0,get:function(){return p}});var n=r(d[0]),t=r(d[1]),u=r(d[2]),s=r(d[3]),o=r(d[4]),c=r(d[5]),G=r(d[6]),w=r(d[7]),l=r(d[8]),v=r(d[9]),P=r(d[10]);const p={Tap:()=>new w.TapGesture,Pan:()=>new o.PanGesture,Pinch:()=>new c.PinchGesture,Rotation:()=>new G.RotationGesture,Fling:()=>new n.FlingGesture,LongPress:()=>new s.LongPressGesture,ForceTouch:()=>new t.ForceTouchGesture,Native:()=>new l.NativeGesture,Manual:()=>new v.ManualGesture,Hover:()=>new P.HoverGesture,Race:(...n)=>new u.ComposedGesture(...n),Simultaneous:(...n)=>new u.SimultaneousGesture(...n),Exclusive:(...n)=>new u.ExclusiveGesture(...n)}},3342,[3343,3344,3345,3346,3347,3348,3349,3350,3351,3352,3332]);
15764
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"FlingGesture",{enumerable:!0,get:function(){return n}});var t=r(d[0]);class n extends t.BaseGesture{config={};constructor(){super(),this.handlerName='FlingGestureHandler'}numberOfPointers(t){return this.config.numberOfPointers=t,this}direction(t){return this.config.direction=t,this}}},3343,[3328]);
15765
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ForceTouchGesture",{enumerable:!0,get:function(){return c}});var n=r(d[0]);const t=(function({_worklet_6555184671956_init_data:n}){const t=function(n,t){let c;return c=void 0===t?{forceChange:n.force}:{forceChange:n.force-t.force},Object.assign({},n,c)};return t.__closure={},t.__workletHash=6555184671956,t.__initData=n,t})({_worklet_6555184671956_init_data:{code:"function changeEventCalculator_reactNativeGestureHandler_forceTouchGestureJs1(current,previous){let changePayload;if(previous===undefined){changePayload={forceChange:current.force};}else{changePayload={forceChange:current.force-previous.force};}return{...current,...changePayload};}"}});class c extends n.ContinousBaseGesture{config={};constructor(){super(),this.handlerName='ForceTouchGestureHandler'}minForce(n){return this.config.minForce=n,this}maxForce(n){return this.config.maxForce=n,this}feedbackOnActivation(n){return this.config.feedbackOnActivation=n,this}onChange(n){return this.handlers.changeEventCalculator=t,super.onChange(n)}}},3344,[3328]);
15766
- __d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ComposedGesture",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"SimultaneousGesture",{enumerable:!0,get:function(){return i}}),Object.defineProperty(e,"ExclusiveGesture",{enumerable:!0,get:function(){return n}});var s=r(d[0]);function t(s,t){return void 0===s?[...t]:[...s,...t]}class u extends s.Gesture{gestures=[];simultaneousGestures=[];requireGesturesToFail=[];constructor(...s){super(),this.gestures=s}prepareSingleGesture(i,n,o){if(i instanceof s.BaseGesture){const s=Object.assign({},i.config);s.simultaneousWith=t(s.simultaneousWith,n),s.requireToFail=t(s.requireToFail,o),i.config=s}else i instanceof u&&(i.simultaneousGestures=n,i.requireGesturesToFail=o,i.prepare())}prepare(){for(const s of this.gestures)this.prepareSingleGesture(s,this.simultaneousGestures,this.requireGesturesToFail)}initialize(){for(const s of this.gestures)s.initialize()}toGestureArray(){return this.gestures.flatMap(s=>s.toGestureArray())}}class i extends u{prepare(){const s=this.gestures.map(s=>this.gestures.filter(t=>t!==s).flatMap(s=>s.toGestureArray()));for(let t=0;t<this.gestures.length;t++)this.prepareSingleGesture(this.gestures[t],s[t],this.requireGesturesToFail)}}class n extends u{prepare(){const s=this.gestures.map(s=>s.toGestureArray());let t=[];for(let u=0;u<this.gestures.length;u++)this.prepareSingleGesture(this.gestures[u],this.simultaneousGestures,this.requireGesturesToFail.concat(t)),t=t.concat(s[u])}}},3345,[3328]);
15767
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"LongPressGesture",{enumerable:!0,get:function(){return n}});var t=r(d[0]);class n extends t.BaseGesture{config={};constructor(){super(),this.handlerName='LongPressGestureHandler',this.shouldCancelWhenOutside(!0)}minDuration(t){return this.config.minDurationMs=t,this}maxDistance(t){return this.config.maxDist=t,this}numberOfPointers(t){return this.config.numberOfPointers=t,this}}},3346,[3328]);
15768
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"PanGesture",{enumerable:!0,get:function(){return s}});var t=r(d[0]);const n=(function({_worklet_6591024890621_init_data:t}){const n=function(t,n){let s;return s=void 0===n?{changeX:t.translationX,changeY:t.translationY}:{changeX:t.translationX-n.translationX,changeY:t.translationY-n.translationY},Object.assign({},t,s)};return n.__closure={},n.__workletHash=6591024890621,n.__initData=t,n})({_worklet_6591024890621_init_data:{code:"function changeEventCalculator_reactNativeGestureHandler_panGestureJs1(current,previous){let changePayload;if(previous===undefined){changePayload={changeX:current.translationX,changeY:current.translationY};}else{changePayload={changeX:current.translationX-previous.translationX,changeY:current.translationY-previous.translationY};}return{...current,...changePayload};}"}});class s extends t.ContinousBaseGesture{config={};constructor(){super(),this.handlerName='PanGestureHandler'}activeOffsetY(t){return Array.isArray(t)?(this.config.activeOffsetYStart=t[0],this.config.activeOffsetYEnd=t[1]):t<0?this.config.activeOffsetYStart=t:this.config.activeOffsetYEnd=t,this}activeOffsetX(t){return Array.isArray(t)?(this.config.activeOffsetXStart=t[0],this.config.activeOffsetXEnd=t[1]):t<0?this.config.activeOffsetXStart=t:this.config.activeOffsetXEnd=t,this}failOffsetY(t){return Array.isArray(t)?(this.config.failOffsetYStart=t[0],this.config.failOffsetYEnd=t[1]):t<0?this.config.failOffsetYStart=t:this.config.failOffsetYEnd=t,this}failOffsetX(t){return Array.isArray(t)?(this.config.failOffsetXStart=t[0],this.config.failOffsetXEnd=t[1]):t<0?this.config.failOffsetXStart=t:this.config.failOffsetXEnd=t,this}minPointers(t){return this.config.minPointers=t,this}maxPointers(t){return this.config.maxPointers=t,this}minDistance(t){return this.config.minDist=t,this}minVelocity(t){return this.config.minVelocity=t,this}minVelocityX(t){return this.config.minVelocityX=t,this}minVelocityY(t){return this.config.minVelocityY=t,this}averageTouches(t){return this.config.avgTouches=t,this}enableTrackpadTwoFingerGesture(t){return this.config.enableTrackpadTwoFingerGesture=t,this}activateAfterLongPress(t){return this.config.activateAfterLongPress=t,this}onChange(t){return this.handlers.changeEventCalculator=n,super.onChange(t)}}},3347,[3328]);
15769
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"PinchGesture",{enumerable:!0,get:function(){return c}});var n=r(d[0]);const t=(function({_worklet_168466708215_init_data:n}){const t=function(n,t){let c;return c=void 0===t?{scaleChange:n.scale}:{scaleChange:n.scale/t.scale},Object.assign({},n,c)};return t.__closure={},t.__workletHash=168466708215,t.__initData=n,t})({_worklet_168466708215_init_data:{code:"function changeEventCalculator_reactNativeGestureHandler_pinchGestureJs1(current,previous){let changePayload;if(previous===undefined){changePayload={scaleChange:current.scale};}else{changePayload={scaleChange:current.scale/previous.scale};}return{...current,...changePayload};}"}});class c extends n.ContinousBaseGesture{constructor(){super(),this.handlerName='PinchGestureHandler'}onChange(n){return this.handlers.changeEventCalculator=t,super.onChange(n)}}},3348,[3328]);
15770
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"RotationGesture",{enumerable:!0,get:function(){return o}});var t=r(d[0]);const n=(function({_worklet_3631609729009_init_data:t}){const n=function(t,n){let o;return o=void 0===n?{rotationChange:t.rotation}:{rotationChange:t.rotation-n.rotation},Object.assign({},t,o)};return n.__closure={},n.__workletHash=3631609729009,n.__initData=t,n})({_worklet_3631609729009_init_data:{code:"function changeEventCalculator_reactNativeGestureHandler_rotationGestureJs1(current,previous){let changePayload;if(previous===undefined){changePayload={rotationChange:current.rotation};}else{changePayload={rotationChange:current.rotation-previous.rotation};}return{...current,...changePayload};}"}});class o extends t.ContinousBaseGesture{constructor(){super(),this.handlerName='RotationGestureHandler'}onChange(t){return this.handlers.changeEventCalculator=n,super.onChange(t)}}},3349,[3328]);
15771
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"TapGesture",{enumerable:!0,get:function(){return n}});var t=r(d[0]);class n extends t.BaseGesture{config={};constructor(){super(),this.handlerName='TapGestureHandler',this.shouldCancelWhenOutside(!0)}minPointers(t){return this.config.minPointers=t,this}numberOfTaps(t){return this.config.numberOfTaps=t,this}maxDistance(t){return this.config.maxDist=t,this}maxDuration(t){return this.config.maxDurationMs=t,this}maxDelay(t){return this.config.maxDelayMs=t,this}maxDeltaX(t){return this.config.maxDeltaX=t,this}maxDeltaY(t){return this.config.maxDeltaY=t,this}}},3350,[3328]);
15772
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"NativeGesture",{enumerable:!0,get:function(){return n}});var t=r(d[0]);class n extends t.BaseGesture{config={};constructor(){super(),this.handlerName='NativeViewGestureHandler'}shouldActivateOnStart(t){return this.config.shouldActivateOnStart=t,this}disallowInterruption(t){return this.config.disallowInterruption=t,this}}},3351,[3328]);
15773
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ManualGesture",{enumerable:!0,get:function(){return u}});var t=r(d[0]);const n=(function({_worklet_8341633256781_init_data:t}){const n=function(t,n){return t};return n.__closure={},n.__workletHash=8341633256781,n.__initData=t,n})({_worklet_8341633256781_init_data:{code:"function changeEventCalculator_reactNativeGestureHandler_manualGestureJs1(current,_previous){return current;}"}});class u extends t.ContinousBaseGesture{constructor(){super(),this.handlerName='ManualGestureHandler'}onChange(t){return this.handlers.changeEventCalculator=n,super.onChange(t)}}},3352,[3328]);
15774
- __d(function(g,r,i,a,m,_e,_d){"use strict";const e=["rippleColor","style"],t=["children","style"],s=["children","style","innerRef"];function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"PureNativeButton",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(_e,"RawButton",{enumerable:!0,get:function(){return y}}),Object.defineProperty(_e,"BaseButton",{enumerable:!0,get:function(){return j}}),Object.defineProperty(_e,"RectButton",{enumerable:!0,get:function(){return E}}),Object.defineProperty(_e,"BorderlessButton",{enumerable:!0,get:function(){return T}});var o=n(r(_d[0])),l=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(s){var n=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(t,s,n.get?n:{enumerable:!0,get:function(){return e[s]}})}),t.default=e,t})(r(_d[1])),c=n(r(_d[2]));r(_d[3]);var u=n(r(_d[4])),d=n(r(_d[5])),p=n(r(_d[6])),h=n(r(_d[7])),f=r(_d[8]),v=r(_d[9]),b=r(_d[10]);const y=(0,p.default)(h.default,{shouldCancelWhenOutside:!1,shouldActivateOnStart:!1});let C=null;class P extends l.Component{static defaultProps={delayLongPress:600};constructor(e){super(e),this.lastActive=!1,this.longPressDetected=!1}handleEvent=({nativeEvent:e})=>{const{state:t,oldState:s,pointerInside:n}=e,o=n&&t===f.State.ACTIVE;o!==this.lastActive&&this.props.onActiveStateChange&&this.props.onActiveStateChange(o),!this.longPressDetected&&s===f.State.ACTIVE&&t!==f.State.CANCELLED&&this.lastActive&&this.props.onPress&&this.props.onPress(n),!this.lastActive&&t===f.State.ACTIVE&&n?(this.longPressDetected=!1,this.props.onLongPress&&(this.longPressTimeout=setTimeout(this.onLongPress,this.props.delayLongPress))):(t!==f.State.ACTIVE||n||void 0===this.longPressTimeout)&&(void 0===this.longPressTimeout||t!==f.State.END&&t!==f.State.CANCELLED&&t!==f.State.FAILED)||(clearTimeout(this.longPressTimeout),this.longPressTimeout=void 0),this.lastActive=o};onLongPress=()=>{this.longPressDetected=!0,this.props.onLongPress?.()};onHandlerStateChange=e=>{this.props.onHandlerStateChange?.(e),this.handleEvent(e)};onGestureEvent=e=>{this.props.onGestureEvent?.(e),this.handleEvent(e)};render(){const t=this.props,{rippleColor:s,style:n}=t,l=(0,o.default)(t,e);null===C&&(C=(0,v.isFabric)());const c=C?s:(0,u.default)(s??void 0);return(0,b.jsx)(y,Object.assign({ref:this.props.innerRef,rippleColor:c,style:[n,!1]},l,{onGestureEvent:this.onGestureEvent,onHandlerStateChange:this.onHandlerStateChange}))}}const R=c.default.createAnimatedComponent(P),j=l.forwardRef((e,t)=>(0,b.jsx)(P,Object.assign({innerRef:t},e))),A=l.forwardRef((e,t)=>(0,b.jsx)(R,Object.assign({innerRef:t},e))),S=d.default.create({underlay:{position:'absolute',left:0,right:0,bottom:0,top:0}});class O extends l.Component{static defaultProps={activeOpacity:.105,underlayColor:'black'};constructor(e){super(e),this.opacity=new c.default.Value(0)}onActiveStateChange=e=>{this.opacity.setValue(e?this.props.activeOpacity:0),this.props.onActiveStateChange?.(e)};render(){const e=this.props,{children:s,style:n}=e,l=(0,o.default)(e,t),u=d.default.flatten(n)??{};return(0,b.jsxs)(j,Object.assign({},l,{ref:this.props.innerRef,style:u,onActiveStateChange:this.onActiveStateChange,children:[(0,b.jsx)(c.default.View,{style:[S.underlay,{opacity:this.opacity,backgroundColor:this.props.underlayColor,borderRadius:u.borderRadius,borderTopLeftRadius:u.borderTopLeftRadius,borderTopRightRadius:u.borderTopRightRadius,borderBottomLeftRadius:u.borderBottomLeftRadius,borderBottomRightRadius:u.borderBottomRightRadius}]}),s]}))}}const E=l.forwardRef((e,t)=>(0,b.jsx)(O,Object.assign({innerRef:t},e)));class L extends l.Component{static defaultProps={activeOpacity:.3,borderless:!0};constructor(e){super(e),this.opacity=new c.default.Value(1)}onActiveStateChange=e=>{this.opacity.setValue(e?this.props.activeOpacity:1),this.props.onActiveStateChange?.(e)};render(){const e=this.props,{children:t,style:n,innerRef:l}=e,c=(0,o.default)(e,s);return(0,b.jsx)(A,Object.assign({},c,{innerRef:l,onActiveStateChange:this.onActiveStateChange,style:[n,!1],children:t}))}}const T=l.forwardRef((e,t)=>(0,b.jsx)(L,Object.assign({innerRef:t},e)))},3353,[120,17,134,136,40,33,3324,3354,3245,3248,10]);
15775
- __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 e,t=(function(e){if(e&&e.__esModule)return e;var t={};return 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,t})(r(_d[0])),n=r(_d[1]),u=(e=n)&&e.__esModule?e:{default:e},f=r(_d[2]),o=t.forwardRef((e,t)=>(0,f.jsx)(u.default,Object.assign({ref:t,accessibilityRole:"button"},e)))},3354,[17,20,10]);
15776
- __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,"TouchableNativeFeedback",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(_e,"TouchableWithoutFeedback",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(_e,"TouchableOpacity",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(_e,"TouchableHighlight",{enumerable:!0,get:function(){return c.default}});var t=e(r(d[0])),u=e(r(d[1])),n=e(r(d[2])),c=e(r(d[3]))},3355,[3356,3357,3359,3360]);
15777
- __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 u}});var e,t=r(d[0]);var u=((e=t)&&e.__esModule?e:{default:e}).default},3356,[268]);
15778
- __d(function(g,r,i,a,m,_e,_d){"use strict";const e=["delayLongPress","extraButtonProps"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return f}});var n=t(r(_d[0])),o=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[1])),u=t(r(_d[2])),s=r(_d[3]);var f=o.forwardRef((t,o)=>{let{delayLongPress:f=600,extraButtonProps:l={rippleColor:'transparent',exclusive:!0}}=t,c=(0,n.default)(t,e);return(0,s.jsx)(u.default,Object.assign({ref:o,delayLongPress:f,extraButtonProps:l},c))})},3357,[120,17,3358,10]);
15779
- __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 u}}),Object.defineProperty(_e,"TOUCHABLE_STATE",{enumerable:!0,get:function(){return l}});var t,s=r(d[0]),e=r(d[1]),o=(t=e)&&t.__esModule?t:{default:t};r(d[2]);var n=r(d[3]),p=r(d[4]),h=r(d[5]);const l={UNDETERMINED:0,BEGAN:1,MOVED_OUTSIDE:2};class u extends s.Component{static defaultProps={delayLongPress:600,extraButtonProps:{rippleColor:'transparent',exclusive:!0}};longPressDetected=!1;pointerInside=!0;STATE=l.UNDETERMINED;handlePressIn(){if(this.props.delayPressIn?this.pressInTimeout=setTimeout(()=>{this.moveToState(l.BEGAN),this.pressInTimeout=void 0},this.props.delayPressIn):this.moveToState(l.BEGAN),this.props.onLongPress){const t=(this.props.delayPressIn||0)+(this.props.delayLongPress||0);this.longPressTimeout=setTimeout(this.onLongPressDetected,t)}}handleMoveOutside(){this.props.delayPressOut?this.pressOutTimeout=this.pressOutTimeout||setTimeout(()=>{this.moveToState(l.MOVED_OUTSIDE),this.pressOutTimeout=void 0},this.props.delayPressOut):this.moveToState(l.MOVED_OUTSIDE)}handleGoToUndetermined(){clearTimeout(this.pressOutTimeout),this.props.delayPressOut?this.pressOutTimeout=setTimeout(()=>{this.STATE===l.UNDETERMINED&&this.moveToState(l.BEGAN),this.moveToState(l.UNDETERMINED),this.pressOutTimeout=void 0},this.props.delayPressOut):(this.STATE===l.UNDETERMINED&&this.moveToState(l.BEGAN),this.moveToState(l.UNDETERMINED))}componentDidMount(){this.reset()}reset(){this.longPressDetected=!1,this.pointerInside=!0,clearTimeout(this.pressInTimeout),clearTimeout(this.pressOutTimeout),clearTimeout(this.longPressTimeout),this.pressOutTimeout=void 0,this.longPressTimeout=void 0,this.pressInTimeout=void 0}moveToState(t){t!==this.STATE&&(t===l.BEGAN?this.props.onPressIn?.():t===l.MOVED_OUTSIDE?this.props.onPressOut?.():t===l.UNDETERMINED&&(this.reset(),this.STATE===l.BEGAN&&this.props.onPressOut?.()),this.props.onStateChange?.(this.STATE,t),this.STATE=t)}onGestureEvent=({nativeEvent:{pointerInside:t}})=>{this.pointerInside!==t&&(t?this.onMoveIn():this.onMoveOut()),this.pointerInside=t};onHandlerStateChange=({nativeEvent:t})=>{const{state:s}=t;if(s===n.State.CANCELLED||s===n.State.FAILED)this.moveToState(l.UNDETERMINED);else if(s===n.State.ACTIVE&&this.STATE===l.UNDETERMINED)this.handlePressIn();else if(s===n.State.END){const t=!this.longPressDetected&&this.STATE!==l.MOVED_OUTSIDE&&void 0===this.pressOutTimeout;this.handleGoToUndetermined(),t&&this.props.onPress?.()}};onLongPressDetected=()=>{this.longPressDetected=!0,this.props.onLongPress?.()};componentWillUnmount(){this.reset()}onMoveIn(){this.STATE===l.MOVED_OUTSIDE&&this.moveToState(l.BEGAN)}onMoveOut(){clearTimeout(this.longPressTimeout),this.longPressTimeout=void 0,this.STATE===l.BEGAN&&this.handleMoveOutside()}render(){const t=('number'==typeof this.props.hitSlop?{top:this.props.hitSlop,left:this.props.hitSlop,bottom:this.props.hitSlop,right:this.props.hitSlop}:this.props.hitSlop)??void 0,s={accessible:!1!==this.props.accessible,accessibilityLabel:this.props.accessibilityLabel,accessibilityHint:this.props.accessibilityHint,accessibilityRole:this.props.accessibilityRole,accessibilityState:this.props.accessibilityState,accessibilityActions:this.props.accessibilityActions,onAccessibilityAction:this.props.onAccessibilityAction,nativeID:this.props.nativeID,onLayout:this.props.onLayout};return(0,h.jsx)(p.BaseButton,Object.assign({style:this.props.containerStyle,onHandlerStateChange:this.props.disabled?void 0:this.onHandlerStateChange,onGestureEvent:this.onGestureEvent,hitSlop:t,userSelect:this.props.userSelect,shouldActivateOnStart:this.props.shouldActivateOnStart,disallowInterruption:this.props.disallowInterruption,testID:this.props.testID,touchSoundDisabled:this.props.touchSoundDisabled??!1,enabled:!this.props.disabled},this.props.extraButtonProps,{children:(0,h.jsx)(o.default.View,Object.assign({},s,{style:this.props.style,children:this.props.children}))}))}}},3358,[17,134,136,3245,3353,10]);
15780
- __d(function(g,r,i,a,m,_e,d){"use strict";const t=["style"];function e(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return y}});var s=e(r(d[0])),l=e(r(d[1])),n=e(r(d[2])),u=e(r(d[3])),o=e(r(d[4])),c=r(d[5]),p=e(c),h=r(d[6]),f=r(d[7]);class y extends h.Component{static defaultProps=Object.assign({},p.default.defaultProps,{activeOpacity:.2});getChildStyleOpacityWithDefault=()=>{const t=u.default.flatten(this.props.style)||{};return null==t.opacity?1:t.opacity.valueOf()};opacity=new l.default.Value(this.getChildStyleOpacityWithDefault());setOpacityTo=(t,e)=>{l.default.timing(this.opacity,{toValue:t,duration:e,easing:n.default.inOut(n.default.quad),useNativeDriver:this.props.useNativeAnimations??!0}).start()};onStateChange=(t,e)=>{e===c.TOUCHABLE_STATE.BEGAN?this.setOpacityTo(this.props.activeOpacity,0):e!==c.TOUCHABLE_STATE.UNDETERMINED&&e!==c.TOUCHABLE_STATE.MOVED_OUTSIDE||this.setOpacityTo(this.getChildStyleOpacityWithDefault(),150)};render(){const e=this.props,{style:l={}}=e,n=(0,s.default)(e,t);return(0,f.jsx)(p.default,Object.assign({},n,{style:[l,{opacity:this.opacity}],onStateChange:this.onStateChange,children:this.props.children?this.props.children:(0,f.jsx)(o.default,{})}))}}},3359,[120,134,219,33,20,3358,17,10]);
15781
- __d(function(g,r,i,a,m,_e,_d){"use strict";const e=["style"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return c}});var s=t(r(_d[0])),n=r(_d[1]),l=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(s){var n=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(t,s,n.get?n:{enumerable:!0,get:function(){return e[s]}})}),t.default=e,t})(n),o=r(_d[2]),d=t(o),h=t(r(_d[3])),u=t(r(_d[4])),p=r(_d[5]);class c extends n.Component{static defaultProps=Object.assign({},d.default.defaultProps,{activeOpacity:.85,delayPressOut:100,underlayColor:'black'});constructor(e){super(e),this.state={extraChildStyle:null,extraUnderlayStyle:null}}showUnderlay=()=>{this.hasPressHandler()&&(this.setState({extraChildStyle:{opacity:this.props.activeOpacity},extraUnderlayStyle:{backgroundColor:this.props.underlayColor}}),this.props.onShowUnderlay?.())};hasPressHandler=()=>this.props.onPress||this.props.onPressIn||this.props.onPressOut||this.props.onLongPress;hideUnderlay=()=>{this.setState({extraChildStyle:null,extraUnderlayStyle:null}),this.props.onHideUnderlay?.()};renderChildren(){if(!this.props.children)return(0,p.jsx)(u.default,{});const e=l.Children.only(this.props.children);return l.cloneElement(e,{style:h.default.compose(e.props.style,this.state.extraChildStyle)})}onStateChange=(e,t)=>{t===o.TOUCHABLE_STATE.BEGAN?this.showUnderlay():t!==o.TOUCHABLE_STATE.UNDETERMINED&&t!==o.TOUCHABLE_STATE.MOVED_OUTSIDE||this.hideUnderlay()};render(){const t=this.props,{style:n={}}=t,l=(0,s.default)(t,e),{extraUnderlayStyle:o}=this.state;return(0,p.jsx)(d.default,Object.assign({},l,{style:[n,o],onStateChange:this.onStateChange,children:this.renderChildren()}))}}},3360,[120,17,3358,33,20,10]);
15782
- __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,"ScrollView",{enumerable:!0,get:function(){return s}}),Object.defineProperty(_e,"Switch",{enumerable:!0,get:function(){return b}}),Object.defineProperty(_e,"TextInput",{enumerable:!0,get:function(){return p}}),Object.defineProperty(_e,"DrawerLayoutAndroid",{enumerable:!0,get:function(){return j}}),Object.defineProperty(_e,"RefreshControl",{enumerable:!0,get:function(){return O}}),Object.defineProperty(_e,"FlatList",{enumerable:!0,get:function(){return y}});var t=(function(e){if(e&&e.__esModule)return e;var t={};return 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,t})(r(_d[0])),n=e(r(_d[1])),u=e(r(_d[2])),o=e(r(_d[3])),f=e(r(_d[4])),l=e(r(_d[5])),d=e(r(_d[6])),c=r(_d[7]);const s=(0,d.default)(f.default,{disallowInterruption:!1}),b=(0,d.default)(u.default,{shouldCancelWhenOutside:!1,shouldActivateOnStart:!0,disallowInterruption:!0}),p=(0,d.default)(o.default),j=()=>(console.warn('DrawerLayoutAndroid is not supported on web!'),(0,c.jsx)(l.default,{})),O=(0,d.default)(l.default),y=t.forwardRef((e,t)=>(0,c.jsx)(n.default,Object.assign({ref:t},e,{renderScrollComponent:e=>(0,c.jsx)(s,Object.assign({},e))})))},3361,[17,138,260,262,147,20,3324,10]);
15783
- __d(function(g,r,i,a,m,_e,d){"use strict";const e=["onPress","onLongPress","ref"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Text",{enumerable:!0,get:function(){return l}});var n=t(r(d[0])),s=r(d[1]);r(d[2]);var u=t(r(d[3])),o=r(d[4]),c=r(d[5]),f=r(d[6]);const l=t=>{const{onPress:l,onLongPress:j,ref:P}=t,b=(0,n.default)(t,e),O=(0,s.useRef)(null),_=(0,s.useMemo)(()=>o.GestureObjects.Native().runOnJS(!0),[]),x=(0,s.useMemo)(()=>{const e=e=>{O.current=e,P&&('function'==typeof P?P(e):P.current=e)};return e.rngh=!0,e},[P]);return(0,s.useEffect)(()=>{O.current?.setAttribute('rnghtext','true')},[]),l||j?(0,f.jsx)(c.GestureDetector,{gesture:_,children:(0,f.jsx)(u.default,Object.assign({onPress:l,onLongPress:j,ref:x},b))}):(0,f.jsx)(u.default,Object.assign({ref:x},b))}},3362,[120,17,136,112,3342,3326,10]);
15784
- __d(function(g,r,i,a,m,_e,d){"use strict";function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return c}});var e=r(d[0]),s=t(r(d[1])),n=t(r(d[2])),o=t(r(d[3])),h=t(r(d[4])),l=r(d[5]),p=r(d[6]),f=r(d[7]),u=r(d[8]);class c extends e.Component{static defaultProps={friction:1,overshootFriction:1,useNativeAnimations:!0};constructor(t){super(t);const e=new s.default.Value(0);this.state={dragX:e,rowTranslation:new s.default.Value(0),rowState:0,leftWidth:void 0,rightOffset:void 0,rowWidth:void 0},this.updateAnimatedEvent(t,this.state),this.onGestureEvent=s.default.event([{nativeEvent:{translationX:e}}],{useNativeDriver:t.useNativeAnimations})}shouldComponentUpdate(t,e){return this.props.friction===t.friction&&this.props.overshootLeft===t.overshootLeft&&this.props.overshootRight===t.overshootRight&&this.props.overshootFriction===t.overshootFriction&&this.state.leftWidth===e.leftWidth&&this.state.rightOffset===e.rightOffset&&this.state.rowWidth===e.rowWidth||this.updateAnimatedEvent(t,e),!0}updateAnimatedEvent=(t,e)=>{const{friction:n,overshootFriction:o}=t,{dragX:h,rowTranslation:l,leftWidth:p=0,rowWidth:f=0}=e,{rightOffset:u=f}=e,c=Math.max(0,f-u),{overshootLeft:w=p>0,overshootRight:v=c>0}=t,S=s.default.add(l,h.interpolate({inputRange:[0,n],outputRange:[0,1]})).interpolate({inputRange:[-c-1,-c,p,p+1],outputRange:[-c-(v?1/o:0),-c,p,p+(w?1/o:0)]});this.transX=S,this.showLeftAction=p>0?S.interpolate({inputRange:[-1,0,p],outputRange:[0,0,1]}):new s.default.Value(0),this.leftActionTranslate=this.showLeftAction.interpolate({inputRange:[0,Number.MIN_VALUE],outputRange:[-1e4,0],extrapolate:'clamp'}),this.showRightAction=c>0?S.interpolate({inputRange:[-c,0,1],outputRange:[1,0,0]}):new s.default.Value(0),this.rightActionTranslate=this.showRightAction.interpolate({inputRange:[0,Number.MIN_VALUE],outputRange:[-1e4,0],extrapolate:'clamp'})};onTapHandlerStateChange=({nativeEvent:t})=>{t.oldState===f.State.ACTIVE&&this.close()};onHandlerStateChange=t=>{if(t.nativeEvent.oldState===f.State.ACTIVE&&this.handleRelease(t),t.nativeEvent.state===f.State.ACTIVE){const{velocityX:e,translationX:s}=t.nativeEvent,{rowState:n}=this.state,{friction:o}=this.props,h=-1===n?'right':1===n||(s+.05*e)/o>0?'left':'right';0===n?this.props.onSwipeableOpenStartDrag?.(h):this.props.onSwipeableCloseStartDrag?.(h)}};handleRelease=t=>{const{velocityX:e,translationX:s}=t.nativeEvent,{leftWidth:n=0,rowWidth:o=0,rowState:h}=this.state,{rightOffset:l=o}=this.state,p=o-l,{friction:f,leftThreshold:u=n/2,rightThreshold:c=p/2}=this.props,w=this.currentOffset()+s/f,v=(s+.05*e)/f;let S=0;0===h?v>u?S=n:v<-c&&(S=-p):1===h?v>-u&&(S=n):v<c&&(S=-p),this.animateRow(w,S,e/f)};animateRow=(t,e,n)=>{const{dragX:o,rowTranslation:h}=this.state;if(o.setValue(0),h.setValue(t),this.setState({rowState:Math.sign(e)}),s.default.spring(h,Object.assign({restSpeedThreshold:1.7,restDisplacementThreshold:.4,velocity:n,bounciness:0,toValue:e,useNativeDriver:this.props.useNativeAnimations},this.props.animationOptions)).start(({finished:s})=>{if(s)if(e>0)this.props.onSwipeableLeftOpen?.(),this.props.onSwipeableOpen?.('left',this);else if(e<0)this.props.onSwipeableRightOpen?.(),this.props.onSwipeableOpen?.('right',this);else{const e=t>0?'left':'right';this.props.onSwipeableClose?.(e,this)}}),e>0)this.props.onSwipeableLeftWillOpen?.(),this.props.onSwipeableWillOpen?.('left');else if(e<0)this.props.onSwipeableRightWillOpen?.(),this.props.onSwipeableWillOpen?.('right');else{const e=t>0?'left':'right';this.props.onSwipeableWillClose?.(e)}};onRowLayout=({nativeEvent:t})=>{this.setState({rowWidth:t.layout.width})};currentOffset=()=>{const{leftWidth:t=0,rowWidth:e=0,rowState:s}=this.state,{rightOffset:n=e}=this.state;return 1===s?t:-1===s?-(e-n):0};close=()=>{this.animateRow(this.currentOffset(),0)};openLeft=()=>{const{leftWidth:t=0}=this.state;this.animateRow(this.currentOffset(),t)};openRight=()=>{const{rowWidth:t=0}=this.state,{rightOffset:e=t}=this.state,s=t-e;this.animateRow(this.currentOffset(),-s)};reset=()=>{const{dragX:t,rowTranslation:e}=this.state;t.setValue(0),e.setValue(0),this.setState({rowState:0})};render(){const{rowState:t}=this.state,{children:e,renderLeftActions:n,renderRightActions:h,dragOffsetFromLeftEdge:f=10,dragOffsetFromRightEdge:c=10}=this.props,v=n&&(0,u.jsxs)(s.default.View,{style:[w.leftActions,{transform:[{translateX:this.leftActionTranslate}]}],children:[n(this.showLeftAction,this.transX,this),(0,u.jsx)(o.default,{onLayout:({nativeEvent:t})=>this.setState({leftWidth:t.layout.x})})]}),S=h&&(0,u.jsxs)(s.default.View,{style:[w.rightActions,{transform:[{translateX:this.rightActionTranslate}]}],children:[h(this.showRightAction,this.transX,this),(0,u.jsx)(o.default,{onLayout:({nativeEvent:t})=>this.setState({rightOffset:t.layout.x})})]});return(0,u.jsx)(l.PanGestureHandler,Object.assign({activeOffsetX:[-c,f],touchAction:"pan-y"},this.props,{onGestureEvent:this.onGestureEvent,onHandlerStateChange:this.onHandlerStateChange,children:(0,u.jsxs)(s.default.View,{onLayout:this.onRowLayout,style:[w.container,this.props.containerStyle],children:[v,S,(0,u.jsx)(p.TapGestureHandler,{enabled:0!==t,touchAction:"pan-y",onHandlerStateChange:this.onTapHandlerStateChange,children:(0,u.jsx)(s.default.View,{pointerEvents:0===t?'auto':'box-only',style:[{transform:[{translateX:this.transX}]},this.props.childrenContainerStyle],children:e})})]})}))}}const w=n.default.create({container:{overflow:'hidden'},leftActions:Object.assign({},n.default.absoluteFill,{flexDirection:h.default.isRTL?'row-reverse':'row'}),rightActions:Object.assign({},n.default.absoluteFill,{flexDirection:h.default.isRTL?'row':'row-reverse'})})},3363,[17,134,33,20,229,3320,3309,3245,10]);
15785
- __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 u.default}});var e,t=r(d[0]),u=(e=t)&&e.__esModule?e:{default:e}},3364,[3365]);
15786
- __d(function(g,r,i,a,m,_e,d){"use strict";const e=["testOnly_pressed","hitSlop","pressRetentionOffset","delayHoverIn","delayHoverOut","delayLongPress","unstable_pressDelay","onHoverIn","onHoverOut","onPress","onPressIn","onPressOut","onLongPress","onLayout","style","children","android_disableSound","android_ripple","disabled","accessible","simultaneousWithExternalGesture","requireExternalGestureToFail","blocksExternalGesture"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return R}});var n=t(r(d[0])),s=r(d[1]),o=r(d[2]),u=r(d[3]),l=t(r(d[4])),c=t(r(d[5])),_=t(r(d[6])),v=r(d[7]);r(d[8]);var h=r(d[9]),E=r(d[10]),f=r(d[11]),T=r(d[12]),P=r(d[13]),b=r(d[14]);const M=(0,h.isTestEnv)();let O=null;const H={code:"function reactNativeGestureHandler_PressableJs1(event){const{hoverInTimeout,delayHoverOut,hoverOutTimeout,onHoverOut,gestureToPressableEvent}=this.__closure;var _onHoverOut2;if(hoverInTimeout.current){clearTimeout(hoverInTimeout.current);}if(delayHoverOut){hoverOutTimeout.current=setTimeout(function(){var _onHoverOut;return(_onHoverOut=onHoverOut)===null||_onHoverOut===void 0?void 0:_onHoverOut(gestureToPressableEvent(event));},delayHoverOut);return;}(_onHoverOut2=onHoverOut)===null||_onHoverOut2===void 0||_onHoverOut2(gestureToPressableEvent(event));}"},S={code:"function reactNativeGestureHandler_PressableJs2(event){const{hoverOutTimeout,delayHoverIn,hoverInTimeout,onHoverIn,gestureToPressableEvent}=this.__closure;var _onHoverIn2;if(hoverOutTimeout.current){clearTimeout(hoverOutTimeout.current);}if(delayHoverIn){hoverInTimeout.current=setTimeout(function(){var _onHoverIn;return(_onHoverIn=onHoverIn)===null||_onHoverIn===void 0?void 0:_onHoverIn(gestureToPressableEvent(event));},delayHoverIn);return;}(_onHoverIn2=onHoverIn)===null||_onHoverIn2===void 0||_onHoverIn2(gestureToPressableEvent(event));}"},I={code:"function reactNativeGestureHandler_PressableJs3(_event,success){const{Platform,stateMachine,StateMachineEvent,handleFinalize}=this.__closure;if(Platform.OS==='web'){if(success){stateMachine.handleEvent(StateMachineEvent.FINALIZE);}else{stateMachine.handleEvent(StateMachineEvent.CANCEL);}handleFinalize();}}"},k={code:"function reactNativeGestureHandler_PressableJs4(event){const{gestureTouchToPressableEvent,stateMachine,handlePressOut}=this.__closure;const pressableEvent=gestureTouchToPressableEvent(event);stateMachine.reset();handlePressOut(pressableEvent,false);}"},y={code:"function reactNativeGestureHandler_PressableJs5(){const{Platform,isScreenReaderEnabled,stateMachine,handleFinalize}=this.__closure;if(Platform.OS==='android'&&!isScreenReaderEnabled){stateMachine.reset();handleFinalize();}}"},p={code:"function reactNativeGestureHandler_PressableJs6(event){const{gestureTouchToPressableEvent,stateMachine,StateMachineEvent}=this.__closure;const pressableEvent=gestureTouchToPressableEvent(event);stateMachine.handleEvent(StateMachineEvent.LONG_PRESS_TOUCHES_DOWN,pressableEvent);}"},w={code:"function reactNativeGestureHandler_PressableJs7(_event,success){const{Platform,stateMachine,StateMachineEvent,handleFinalize}=this.__closure;if(Platform.OS!=='web'){if(success){stateMachine.handleEvent(StateMachineEvent.FINALIZE);}else{stateMachine.handleEvent(StateMachineEvent.CANCEL);}if(Platform.OS!=='ios'){handleFinalize();}}}"},G={code:"function reactNativeGestureHandler_PressableJs8(){const{Platform,stateMachine,StateMachineEvent}=this.__closure;if(Platform.OS!=='android'){stateMachine.handleEvent(StateMachineEvent.NATIVE_START);}}"},N={code:"function reactNativeGestureHandler_PressableJs9(){const{stateMachine,StateMachineEvent}=this.__closure;stateMachine.handleEvent(StateMachineEvent.NATIVE_BEGIN);}"},F={code:"function reactNativeGestureHandler_PressableJs10(event){const{Platform,gestureTouchToPressableEvent,stateMachine,handlePressOut}=this.__closure;if(Platform.OS!=='macos'&&Platform.OS!=='web'){const pressableEvent=gestureTouchToPressableEvent(event);stateMachine.reset();handlePressOut(pressableEvent,false);}}"};var R=t=>{const{testOnly_pressed:R,hitSlop:C,pressRetentionOffset:D,delayHoverIn:z,delayHoverOut:L,delayLongPress:A,unstable_pressDelay:x,onHoverIn:J,onHoverOut:j,onPress:V,onPressIn:W,onPressOut:B,onLongPress:q,onLayout:U,style:Z,children:X,android_disableSound:K,android_ripple:Q,disabled:Y,accessible:$,simultaneousWithExternalGesture:ee,requireExternalGestureToFail:te,blocksExternalGesture:ne}=t,ae=(0,n.default)(t,e),re={simultaneousWithExternalGesture:ee,requireExternalGestureToFail:te,blocksExternalGesture:ne},[se,oe]=(0,s.useState)(R??!1),ie=(0,s.useRef)(null),ue=(0,s.useRef)(null),le=(0,s.useRef)(!0),ce=(0,s.useRef)(!1),ve=(0,s.useRef)({width:0,height:0}),he=(0,s.useMemo)(()=>'number'==typeof C?(0,v.numberAsInset)(C):C??{},[C]),de=(0,s.useMemo)(()=>'number'==typeof D?(0,v.numberAsInset)(D):D??{},[D]),Ee=(0,v.addInsets)(he,de),fe=(0,s.useCallback)(()=>{ie.current&&(clearTimeout(ie.current),ie.current=null,le.current=!0)},[]),Te=(0,s.useCallback)(()=>{ue.current&&(clearTimeout(ue.current),ue.current=null)},[]),Pe=(0,s.useCallback)(e=>{q&&(fe(),ie.current=setTimeout(()=>{le.current=!1,q(e)},A??500))},[q,fe,A]),be=(0,s.useCallback)(e=>{W?.(e),Pe(e),oe(!0),ue.current&&(clearTimeout(ue.current),ue.current=null)},[W,Pe]),Me=(0,s.useCallback)(()=>{ce.current=!1,fe(),Te(),oe(!1)},[Te,fe]),me=(0,s.useCallback)(e=>{(0,v.isTouchWithinInset)(ve.current,he,e.nativeEvent.changedTouches.at(-1))&&(ce.current=!0,x?ue.current=setTimeout(()=>{be(e)},x):be(e))},[be,he,x]),Oe=(0,s.useCallback)((e,t=!0)=>{ce.current&&(ce.current=!1,ue.current&&be(e),B?.(e),le.current&&t&&V?.(e),Me())},[Me,be,V,B]),He=(0,s.useMemo)(()=>new T.PressableStateMachine,[]),Se=(0,P.useIsScreenReaderEnabled)();(0,s.useEffect)(()=>{const e=(0,f.getStatesConfig)(me,Oe,Se);He.setStates(e)},[me,Oe,He,Se]);const Ie=(0,s.useRef)(null),ge=(0,s.useRef)(null),ke=(0,s.useMemo)(()=>o.GestureObjects.Hover().manualActivation(!0).cancelsTouchesInView(!1).onBegin((function({_worklet_6909381456988_init_data:e,hoverOutTimeout:t,delayHoverIn:n,hoverInTimeout:s,onHoverIn:o,gestureToPressableEvent:u}){const l=function(e){t.current&&clearTimeout(t.current),n?s.current=setTimeout(()=>o?.(u(e)),n):o?.(u(e))};return l.__closure={hoverOutTimeout:t,delayHoverIn:n,hoverInTimeout:s,onHoverIn:o,gestureToPressableEvent:u},l.__workletHash=6909381456988,l.__initData=e,l})({_worklet_6909381456988_init_data:S,hoverOutTimeout:ge,delayHoverIn:z,hoverInTimeout:Ie,onHoverIn:J,gestureToPressableEvent:v.gestureToPressableEvent})).onFinalize((function({_worklet_4785699502742_init_data:e,hoverInTimeout:t,delayHoverOut:n,hoverOutTimeout:s,onHoverOut:o,gestureToPressableEvent:u}){const l=function(e){t.current&&clearTimeout(t.current),n?s.current=setTimeout(()=>o?.(u(e)),n):o?.(u(e))};return l.__closure={hoverInTimeout:t,delayHoverOut:n,hoverOutTimeout:s,onHoverOut:o,gestureToPressableEvent:u},l.__workletHash=4785699502742,l.__initData=e,l})({_worklet_4785699502742_init_data:H,hoverInTimeout:Ie,delayHoverOut:L,hoverOutTimeout:ge,onHoverOut:j,gestureToPressableEvent:v.gestureToPressableEvent})),[z,L,J,j]),ye=(0,s.useMemo)(()=>o.GestureObjects.LongPress().minDuration(0).maxDistance(h.INT32_MAX).cancelsTouchesInView(!1).onTouchesDown((function({_worklet_937333984765_init_data:e,gestureTouchToPressableEvent:t,stateMachine:n,StateMachineEvent:s}){const o=function(e){const o=t(e);n.handleEvent(s.LONG_PRESS_TOUCHES_DOWN,o)};return o.__closure={gestureTouchToPressableEvent:t,stateMachine:n,StateMachineEvent:s},o.__workletHash=937333984765,o.__initData=e,o})({_worklet_937333984765_init_data:p,gestureTouchToPressableEvent:v.gestureTouchToPressableEvent,stateMachine:He,StateMachineEvent:f.StateMachineEvent})).onTouchesUp((function({_worklet_5558085794677_init_data:e,Platform:t,isScreenReaderEnabled:n,stateMachine:s,handleFinalize:o}){const u=function(){};return u.__closure={Platform:t,isScreenReaderEnabled:n,stateMachine:s,handleFinalize:o},u.__workletHash=5558085794677,u.__initData=e,u})({_worklet_5558085794677_init_data:y,Platform:l.default,isScreenReaderEnabled:Se,stateMachine:He,handleFinalize:Me})).onTouchesCancelled((function({_worklet_14743782876118_init_data:e,gestureTouchToPressableEvent:t,stateMachine:n,handlePressOut:s}){const o=function(e){const o=t(e);n.reset(),s(o,!1)};return o.__closure={gestureTouchToPressableEvent:t,stateMachine:n,handlePressOut:s},o.__workletHash=0xd68cdf0e3d6,o.__initData=e,o})({_worklet_14743782876118_init_data:k,gestureTouchToPressableEvent:v.gestureTouchToPressableEvent,stateMachine:He,handlePressOut:Oe})).onFinalize((function({_worklet_6239736927046_init_data:e,Platform:t,stateMachine:n,StateMachineEvent:s,handleFinalize:o}){const u=function(e,t){t?n.handleEvent(s.FINALIZE):n.handleEvent(s.CANCEL),o()};return u.__closure={Platform:t,stateMachine:n,StateMachineEvent:s,handleFinalize:o},u.__workletHash=6239736927046,u.__initData=e,u})({_worklet_6239736927046_init_data:I,Platform:l.default,stateMachine:He,StateMachineEvent:f.StateMachineEvent,handleFinalize:Me})),[He,Me,Oe,Se]),pe=(0,s.useMemo)(()=>o.GestureObjects.Native().onTouchesCancelled((function({_worklet_5326040157275_init_data:e,Platform:t,gestureTouchToPressableEvent:n,stateMachine:s,handlePressOut:o}){const u=function(e){};return u.__closure={Platform:t,gestureTouchToPressableEvent:n,stateMachine:s,handlePressOut:o},u.__workletHash=5326040157275,u.__initData=e,u})({_worklet_5326040157275_init_data:F,Platform:l.default,gestureTouchToPressableEvent:v.gestureTouchToPressableEvent,stateMachine:He,handlePressOut:Oe})).onBegin((function({_worklet_14189070085146_init_data:e,stateMachine:t,StateMachineEvent:n}){const s=function(){t.handleEvent(n.NATIVE_BEGIN)};return s.__closure={stateMachine:t,StateMachineEvent:n},s.__workletHash=0xce7a67b6c1a,s.__initData=e,s})({_worklet_14189070085146_init_data:N,stateMachine:He,StateMachineEvent:f.StateMachineEvent})).onStart((function({_worklet_7492686327600_init_data:e,Platform:t,stateMachine:n,StateMachineEvent:s}){const o=function(){n.handleEvent(s.NATIVE_START)};return o.__closure={Platform:t,stateMachine:n,StateMachineEvent:s},o.__workletHash=7492686327600,o.__initData=e,o})({_worklet_7492686327600_init_data:G,Platform:l.default,stateMachine:He,StateMachineEvent:f.StateMachineEvent})).onFinalize((function({_worklet_10634809083311_init_data:e,Platform:t,stateMachine:n,StateMachineEvent:s,handleFinalize:o}){const u=function(e,t){};return u.__closure={Platform:t,stateMachine:n,StateMachineEvent:s,handleFinalize:o},u.__workletHash=0x9ac1c0485af,u.__initData=e,u})({_worklet_10634809083311_init_data:w,Platform:l.default,stateMachine:He,StateMachineEvent:f.StateMachineEvent,handleFinalize:Me})),[He,Oe,Me]),we=!0!==Y,Ge=[pe,ye,ke];for(const e of Ge)e.enabled(we),e.runOnJS(!0),e.hitSlop(Ee),Object.entries(re).forEach(([t,n])=>{(0,E.applyRelationProp)(e,t,n)});const Ne=o.GestureObjects.Simultaneous(...Ge),Fe='function'==typeof Z?Z({pressed:se}):Z,Re='function'==typeof X?X({pressed:se}):X,Ce=(0,s.useMemo)(()=>{null===O&&(O=(0,h.isFabric)());const e=Q?void 0:'transparent',t=Q?.color??e;return O?t:(0,c.default)(t)},[Q]),De=(0,s.useCallback)(e=>{U?.(e),ve.current=e.nativeEvent.layout},[U]);return(0,b.jsx)(u.GestureDetector,{gesture:Ne,children:(0,b.jsxs)(_.default,Object.assign({},ae,{onLayout:De,accessible:!1!==$,hitSlop:Ee,enabled:we,touchSoundDisabled:K??void 0,rippleColor:Ce,rippleRadius:Q?.radius??void 0,style:[{cursor:'pointer'},Fe],testOnly_onPress:M?V:void 0,testOnly_onPressIn:M?W:void 0,testOnly_onPressOut:M?B:void 0,testOnly_onLongPress:M?q:void 0,children:[Re,null]}))})}},3365,[120,17,3342,3326,136,40,3354,3366,3315,3248,3367,3368,3369,3370,10]);
15787
- __d(function(g,r,i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"numberAsInset",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"addInsets",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"isTouchWithinInset",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"gestureToPressableEvent",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"gestureTouchToPressableEvent",{enumerable:!0,get:function(){return l}});const t=t=>({left:t,right:t,top:t,bottom:t}),o=(t,o)=>({left:(t.left??0)+(o.left??0),right:(t.right??0)+(o.right??0),top:(t.top??0)+(o.top??0),bottom:(t.bottom??0)+(o.bottom??0)}),n=(t,o,n)=>({identifier:t.id,locationX:t.x,locationY:t.y,pageX:t.absoluteX,pageY:t.absoluteY,target:n,timestamp:o,touches:[],changedTouches:[]}),a=(t,o,n)=>({identifier:t.handlerTag,locationX:t.x,locationY:t.y,pageX:t.absoluteX,pageY:t.absoluteY,target:n,timestamp:o,touches:[],changedTouches:[]}),c=(t,o,n)=>(n?.locationX??0)<(o.right??0)+t.width&&(n?.locationY??0)<(o.bottom??0)+t.height&&(n?.locationX??0)>-(o.left??0)&&(n?.locationY??0)>-(o.top??0),u=t=>{const o=Date.now(),n=a(t,o,0);return{nativeEvent:{touches:[n],changedTouches:[n],identifier:n.identifier,locationX:t.x,locationY:t.y,pageX:t.absoluteX,pageY:t.absoluteY,target:0,timestamp:o,force:void 0}}},l=t=>{const o=Date.now();return{nativeEvent:{touches:t.allTouches.map(t=>n(t,o,0)),changedTouches:t.changedTouches.map(t=>n(t,o,0)),identifier:t.handlerTag,locationX:t.allTouches.at(0)?.x??-1,locationY:t.allTouches.at(0)?.y??-1,pageX:t.allTouches.at(0)?.absoluteX??-1,pageY:t.allTouches.at(0)?.absoluteY??-1,target:0,timestamp:o,force:void 0}}}},3366,[]);
15788
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.applyRelationProp=function(t,n,o){if(!o)return;Array.isArray(o)?t[n](...o):t[n](o)}},3367,[]);
15789
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"StateMachineEvent",{enumerable:!0,get:function(){return n}}),e.getStatesConfig=function(n,N,c){return t(n,N)},r(d[0]);let n=(function(n){return n.NATIVE_BEGIN="nativeBegin",n.NATIVE_START="nativeStart",n.FINALIZE="finalize",n.LONG_PRESS_TOUCHES_DOWN="longPressTouchesDown",n.CANCEL="cancel",n})({});function t(t,N){return[{eventName:n.NATIVE_BEGIN},{eventName:n.NATIVE_START},{eventName:n.LONG_PRESS_TOUCHES_DOWN,callback:t},{eventName:n.FINALIZE,callback:N}]}},3368,[136]);
15790
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"PressableStateMachine",{enumerable:!0,get:function(){return t}});class t{constructor(){this.states=null,this.currentStepIndex=0,this.eventPayload=null}setStates(t){this.states=t}reset(){this.currentStepIndex=0,this.eventPayload=null}handleEvent(t,s){if(!this.states)return;const n=this.states[this.currentStepIndex];this.eventPayload=s||this.eventPayload,n.eventName===t?(this.eventPayload&&n.callback&&n.callback(this.eventPayload),this.currentStepIndex++,this.currentStepIndex===this.states.length&&this.reset()):this.currentStepIndex>0&&(this.reset(),this.handleEvent(t,s))}}},3369,[]);
15791
- __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useIsScreenReaderEnabled=function(){const[e,n]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{(async()=>{try{const e=await s.default.isScreenReaderEnabled();n(e)}catch(e){console.warn('Could not read accessibility info: defaulting to false')}})();const e=s.default.addEventListener('screenReaderChanged',e=>{n(e)});return()=>{e.remove()}},[]),e};var e,t=r(d[0]),n=r(d[1]),s=(e=n)&&e.__esModule?e:{default:e}},3370,[17,132]);
15792
- __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,"default",{enumerable:!0,get:function(){return V}});var t=r(_d[0]),n=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(t),s=e(r(_d[1])),o=e(r(_d[2])),d=e(r(_d[3])),l=e(r(_d[4])),h=e(r(_d[5])),u=e(r(_d[6])),p=e(r(_d[7])),c=r(_d[8]),w=r(_d[9]),f=r(_d[10]),v=r(_d[11]);const S='Idle',y='Dragging',b='Settling';class V extends t.Component{static defaultProps={drawerWidth:200,drawerPosition:'left',useNativeAnimations:!0,drawerType:'front',edgeWidth:20,minSwipeDistance:3,overlayColor:'rgba(0, 0, 0, 0.7)',drawerLockMode:'unlocked',enableTrackpadTwoFingerGesture:!1};constructor(e){super(e);const t=new o.default.Value(0),n=new o.default.Value(0),s=new o.default.Value(0);this.state={dragX:t,touchX:n,drawerTranslation:s,containerWidth:0,drawerState:S,drawerOpened:!1},this.updateAnimatedEvent(e,this.state)}shouldComponentUpdate(e,t){return this.props.drawerPosition===e.drawerPosition&&this.props.drawerWidth===e.drawerWidth&&this.props.drawerType===e.drawerType&&this.state.containerWidth===t.containerWidth||this.updateAnimatedEvent(e,t),!0}accessibilityIsModalView=n.createRef();pointerEventsView=n.createRef();panGestureHandler=n.createRef();drawerShown=!1;static positions={Left:'left',Right:'right'};updateAnimatedEvent=(e,t)=>{const{drawerPosition:n,drawerWidth:s,drawerType:d}=e,{dragX:l,touchX:h,drawerTranslation:u,containerWidth:p}=t;let c=l,w=h;'left'!==n?(c=o.default.multiply(new o.default.Value(-1),l),w=o.default.add(new o.default.Value(p),o.default.multiply(new o.default.Value(-1),h)),h.setValue(p)):h.setValue(0);let f=c;if('front'===d){const e=o.default.add(w,o.default.multiply(new o.default.Value(-1),c)).interpolate({inputRange:[s-1,s,s+1],outputRange:[0,0,1]});f=o.default.add(c,e)}this.openValue=o.default.add(f,u).interpolate({inputRange:[0,s],outputRange:[0,1],extrapolate:'clamp'});const v={useNativeDriver:e.useNativeAnimations};this.props.onDrawerSlide&&(v.listener=e=>{const t=Math.floor(Math.abs(e.nativeEvent.translationX))/this.state.containerWidth;this.props.onDrawerSlide?.(t)}),this.onGestureEvent=o.default.event([{nativeEvent:{translationX:l,x:h}}],v)};handleContainerLayout=({nativeEvent:e})=>{this.setState({containerWidth:e.layout.width})};emitStateChanged=(e,t)=>{this.props.onDrawerStateChanged?.(e,t)};openingHandlerStateChange=({nativeEvent:e})=>{e.oldState===f.State.ACTIVE?this.handleRelease({nativeEvent:e}):e.state===f.State.ACTIVE&&(this.emitStateChanged(y,!1),this.setState({drawerState:y}),'on-drag'===this.props.keyboardDismissMode&&h.default.dismiss(),this.props.hideStatusBar&&u.default.setHidden(!0,this.props.statusBarAnimation||'slide'))};onTapHandlerStateChange=({nativeEvent:e})=>{this.drawerShown&&e.oldState===f.State.ACTIVE&&'locked-open'!==this.props.drawerLockMode&&this.closeDrawer()};handleRelease=({nativeEvent:e})=>{const{drawerWidth:t,drawerPosition:n,drawerType:s}=this.props,{containerWidth:o}=this.state;let{translationX:d,velocityX:l,x:h}=e;'left'!==n&&(d=-d,h=o-h,l=-l);const u=h-d;let p=0;'front'===s&&(p=u>t?u-t:0);const c=d+p+(this.drawerShown?t:0);c+.05*l>t/2?this.animateDrawer(c,t,l):this.animateDrawer(c,0,l)};updateShowing=e=>{this.drawerShown=e,this.accessibilityIsModalView.current?.setNativeProps({accessibilityViewIsModal:e}),this.pointerEventsView.current?.setNativeProps({pointerEvents:e?'auto':'none'});const{drawerPosition:t,minSwipeDistance:n,edgeWidth:s}=this.props,o='left'===t,d=(o?1:-1)*(this.drawerShown?-1:1),l=o?{left:0,width:e?void 0:s}:{right:0,width:e?void 0:s};this.panGestureHandler.current?.setNativeProps({hitSlop:l,activeOffsetX:d*n})};animateDrawer=(e,t,n,s)=>{if(this.state.dragX.setValue(0),this.state.touchX.setValue('left'===this.props.drawerPosition?0:this.state.containerWidth),null!=e){let s=e;this.props.useNativeAnimations&&(e<t&&n>0?s=Math.min(e+n/60,t):e>t&&n<0&&(s=Math.max(e+n/60,t))),this.state.drawerTranslation.setValue(s)}const d=0!==t;this.updateShowing(d),this.emitStateChanged(b,d),this.setState({drawerState:b}),this.props.hideStatusBar&&u.default.setHidden(d,this.props.statusBarAnimation||'slide'),o.default.spring(this.state.drawerTranslation,{velocity:n,bounciness:0,toValue:t,useNativeDriver:this.props.useNativeAnimations,speed:s??void 0}).start(({finished:e})=>{e&&(this.emitStateChanged(S,d),this.setState({drawerOpened:d}),this.state.drawerState!==y&&this.setState({drawerState:S}),d?this.props.onDrawerOpen?.():this.props.onDrawerClose?.())})};openDrawer=(e={})=>{this.animateDrawer(void 0,this.props.drawerWidth,e.velocity?e.velocity:0,e.speed),this.forceUpdate()};closeDrawer=(e={})=>{this.animateDrawer(void 0,0,e.velocity?e.velocity:0,e.speed),this.forceUpdate()};renderOverlay=()=>{let e;(0,s.default)(this.openValue,'should be set'),e=this.state.drawerState!==S?this.openValue:this.state.drawerOpened?1:0;const t={opacity:e,backgroundColor:this.props.overlayColor};return(0,v.jsx)(w.TapGestureHandler,{onHandlerStateChange:this.onTapHandlerStateChange,children:(0,v.jsx)(o.default.View,{pointerEvents:this.drawerShown?'auto':'none',ref:this.pointerEventsView,style:[C.overlay,t]})})};renderDrawer=()=>{const{drawerBackgroundColor:e,drawerWidth:t,drawerPosition:n,drawerType:d,drawerContainerStyle:h,contentContainerStyle:u}=this.props,c='left'===n,w='back'!==d,f='front'!==d,y=p.default.isRTL?c:!c,b={backgroundColor:e,width:t},V=this.openValue;let D;if((0,s.default)(V,'should be set'),f){D={transform:[{translateX:V.interpolate({inputRange:[0,1],outputRange:c?[0,t]:[0,-t],extrapolate:'clamp'})}]}}let x=0;if(w){const e=c?-t:t;x=this.state.drawerState!==S?V.interpolate({inputRange:[0,1],outputRange:[e,0],extrapolate:'clamp'}):this.state.drawerOpened?0:e}const E={transform:[{translateX:x}],flexDirection:y?'row-reverse':'row'};return(0,v.jsxs)(o.default.View,{style:C.main,onLayout:this.handleContainerLayout,children:[(0,v.jsxs)(o.default.View,{style:['front'===d?C.containerOnBack:C.containerInFront,D,u],importantForAccessibility:this.drawerShown?'no-hide-descendants':'yes',children:['function'==typeof this.props.children?this.props.children(this.openValue):this.props.children,this.renderOverlay()]}),(0,v.jsx)(o.default.View,{pointerEvents:"box-none",ref:this.accessibilityIsModalView,accessibilityViewIsModal:this.drawerShown,style:[C.drawerContainer,E,h],children:(0,v.jsx)(l.default,{style:b,children:this.props.renderNavigationView(this.openValue)})})]})};setPanGestureRef=e=>{this.panGestureHandler.current=e,this.props.onGestureRef?.(e)};render(){const{drawerPosition:e,drawerLockMode:t,edgeWidth:n,minSwipeDistance:s}=this.props,o='left'===e,d=(o?1:-1)*(this.drawerShown?-1:1),l=o?{left:0,width:this.drawerShown?void 0:n}:{right:0,width:this.drawerShown?void 0:n};return(0,v.jsx)(c.PanGestureHandler,{userSelect:this.props.userSelect,activeCursor:this.props.activeCursor,mouseButton:this.props.mouseButton,enableContextMenu:this.props.enableContextMenu,ref:this.setPanGestureRef,hitSlop:l,activeOffsetX:d*s,failOffsetY:[-15,15],onGestureEvent:this.onGestureEvent,onHandlerStateChange:this.openingHandlerStateChange,enableTrackpadTwoFingerGesture:this.props.enableTrackpadTwoFingerGesture,enabled:'locked-closed'!==t&&'locked-open'!==t,children:this.renderDrawer()})}}const C=d.default.create({drawerContainer:Object.assign({},d.default.absoluteFill,{zIndex:1001,flexDirection:'row'}),containerInFront:Object.assign({},d.default.absoluteFill,{zIndex:1002}),containerOnBack:Object.assign({},d.default.absoluteFill),main:{flex:1,zIndex:0,overflow:'hidden'},overlay:Object.assign({},d.default.absoluteFill,{zIndex:1e3})})},3371,[17,323,134,33,20,230,259,229,3320,3309,3245,10]);
15726
+ 'use strict';var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,o=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,f=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,a=e?Symbol.for("react.concurrent_mode"):60111,y=e?Symbol.for("react.forward_ref"):60112,l=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,S=e?Symbol.for("react.block"):60121,$=e?Symbol.for("react.fundamental"):60117,d=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function M(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:switch(e=e.type){case u:case a:case r:case c:case n:case l:return e;default:switch(e=e&&e.$$typeof){case s:case y:case b:case p:case f:return e;default:return m}}case o:return m}}}function _(e){return M(e)===a}_e.AsyncMode=u,_e.ConcurrentMode=a,_e.ContextConsumer=s,_e.ContextProvider=f,_e.Element=t,_e.ForwardRef=y,_e.Fragment=r,_e.Lazy=b,_e.Memo=p,_e.Portal=o,_e.Profiler=c,_e.StrictMode=n,_e.Suspense=l,_e.isAsyncMode=function(e){return _(e)||M(e)===u},_e.isConcurrentMode=_,_e.isContextConsumer=function(e){return M(e)===s},_e.isContextProvider=function(e){return M(e)===f},_e.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},_e.isForwardRef=function(e){return M(e)===y},_e.isFragment=function(e){return M(e)===r},_e.isLazy=function(e){return M(e)===b},_e.isMemo=function(e){return M(e)===p},_e.isPortal=function(e){return M(e)===o},_e.isProfiler=function(e){return M(e)===c},_e.isStrictMode=function(e){return M(e)===n},_e.isSuspense=function(e){return M(e)===l},_e.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===a||e===c||e===n||e===l||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===b||e.$$typeof===p||e.$$typeof===f||e.$$typeof===s||e.$$typeof===y||e.$$typeof===$||e.$$typeof===d||e.$$typeof===C||e.$$typeof===S)},_e.typeOf=M},3305,[]);
15727
+ __d(function(g,r,i,a,m,_e,d){"use strict";const e=["style"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return o}});var n=t(r(d[0]));r(d[1]);var u=t(r(d[2])),l=t(r(d[3])),c=t(r(d[4])),f=r(d[5]);function o(t){let{style:l}=t,o=(0,n.default)(t,e);return(0,f.jsx)(c.default.Provider,{value:!0,children:(0,f.jsx)(u.default,Object.assign({style:l??s.container},o))})}const s=l.default.create({container:{flex:1}})},3306,[120,17,20,33,3307,10]);
15728
+ __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 u}});var e,t=r(d[0]),u=((e=t)&&e.__esModule?e:{default:e}).default.createContext(!1)},3307,[17]);
15729
+ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"tapGestureHandlerProps",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e,"tapHandlerName",{enumerable:!0,get:function(){return s}}),Object.defineProperty(_e,"TapGestureHandler",{enumerable:!0,get:function(){return o}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e},u=r(d[1]);const l=['maxDurationMs','maxDelayMs','numberOfTaps','maxDeltaX','maxDeltaY','maxDist','minPointers'],s='TapGestureHandler',o=(0,n.default)({name:s,allowedProps:[...u.baseGestureHandlerProps,...l],config:{shouldCancelWhenOutside:!0}})},3308,[3309,3264]);
15730
+ __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,"default",{enumerable:!0,get:function(){return R}});var t=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(_r(_d[0]));_r(_d[1]);var n=e(_r(_d[2]));_r(_d[3]);var r=_r(_d[4]),s=e(_r(_d[5])),o=_r(_d[6]),d=_r(_d[7]),l=_r(_d[8]),h=_r(_d[9]),u=e(_r(_d[10])),p=_r(_d[11]),c=_r(_d[12]);_r(_d[13]);var f=e(_r(_d[14])),v=_r(_d[15]),E=_r(_d[16]);_r(_d[17]);const w=n.default;r.customDirectEventTypes.topGestureHandlerEvent={registrationName:'onGestureHandlerEvent'};const H=Object.assign({onGestureHandlerEvent:{registrationName:'onGestureHandlerEvent'},onGestureHandlerStateChange:{registrationName:'onGestureHandlerStateChange'}},(0,p.isFabric)()&&!1);w.genericDirectEventTypes=Object.assign({},w.genericDirectEventTypes,H);const T=w.getViewManagerConfig?.('getConstants');T&&(T.genericDirectEventTypes=Object.assign({},T.genericDirectEventTypes,H));const{setJSResponder:y=()=>{},clearJSResponder:G=()=>{}}=w;w.setJSResponder=(e,t)=>{s.default.handleSetJSResponder(e,t),y(e,t)},w.clearJSResponder=()=>{s.default.handleClearJSResponder(),G()};let C=!0;function N(e){const t=e=>Array.isArray(e)?e.some(e=>e&&null===e.current):e&&null===e.current;return t(e.simultaneousHandlers)||t(e.waitFor)}const S={[o.State.UNDETERMINED]:void 0,[o.State.BEGAN]:'onBegan',[o.State.FAILED]:'onFailed',[o.State.CANCELLED]:'onCancelled',[o.State.ACTIVE]:'onActivated',[o.State.END]:'onEnded'},D=1;function R({name:e,allowedProps:n=[],config:r={},transformProps:o,customNativeProps:w=[]}){class H extends t.Component{static displayName=e;static contextType=f.default;handlerTag=-1;constructor(e){if(super(e),this.config={},this.propsRef=t.createRef(),this.isMountedRef=t.createRef(),this.state={allowTouches:C},e.id){if(void 0!==d.handlerIDToTag[e.id])throw new Error(`Handler with ID "${e.id}" already registered`);d.handlerIDToTag[e.id]=this.handlerTag}}componentDidMount(){const e=this.props;if(this.isMountedRef.current=!0,N(e)&&(0,v.ghQueueMicrotask)(()=>{this.update(D)}),this.createGestureHandler((0,h.filterConfig)(o?o(this.props):this.props,[...n,...w],r)),!this.viewNode)throw new Error(`[Gesture Handler] Failed to obtain view for ${H.displayName}. Note that old API doesn't support functional components.`);this.attachGestureHandler((0,u.default)(this.viewNode))}componentDidUpdate(){const e=(0,u.default)(this.viewNode);this.viewTag!==e&&this.attachGestureHandler(e),this.update(D)}componentWillUnmount(){this.inspectorToggleListener?.remove(),this.isMountedRef.current=!1,s.default.dropGestureHandler(this.handlerTag),(0,h.scheduleFlushOperations)();const e=this.props.id;e&&delete d.handlerIDToTag[e],E.MountRegistry.gestureHandlerWillUnmount(this)}onGestureHandlerEvent=e=>{e.nativeEvent.handlerTag===this.handlerTag?'function'==typeof this.props.onGestureEvent&&this.props.onGestureEvent?.(e):this.props.onGestureHandlerEvent?.(e)};onGestureHandlerStateChange=e=>{if(e.nativeEvent.handlerTag===this.handlerTag){'function'==typeof this.props.onHandlerStateChange&&this.props.onHandlerStateChange?.(e);const t=e.nativeEvent.state,n=S[t],r=n&&this.props[n];r&&'function'==typeof r&&r(e)}else this.props.onGestureHandlerStateChange?.(e)};refHandler=e=>{this.viewNode=e;const n=t.Children.only(this.props.children),r=(0,p.isReact19)()?n.props?.ref:n?.ref;r&&('function'==typeof r?r(e):r.current=e)};createGestureHandler=t=>{this.handlerTag=(0,l.getNextHandlerTag)(),this.config=t,s.default.createGestureHandler(e,this.handlerTag,t)};attachGestureHandler=e=>{this.viewTag=e,s.default.attachGestureHandler(this.handlerTag,e,c.ActionType.JS_FUNCTION_OLD_API,this.propsRef),(0,h.scheduleFlushOperations)(),(0,v.ghQueueMicrotask)(()=>{E.MountRegistry.gestureHandlerWillMount(this)})};updateGestureHandler=e=>{this.config=e,s.default.updateGestureHandler(this.handlerTag,e),(0,h.scheduleFlushOperations)()};update(e){if(!this.isMountedRef.current)return;if(N(this.props)&&e>0)(0,v.ghQueueMicrotask)(()=>{this.update(e-1)});else{const e=(0,h.filterConfig)(o?o(this.props):this.props,[...n,...w],r);(0,p.deepEqual)(this.config,e)||this.updateGestureHandler(e)}}setNativeProps(e){const t=Object.assign({},this.props,e),s=(0,h.filterConfig)(o?o(t):t,[...n,...w],r);this.updateGestureHandler(s)}render(){let n=this.onGestureHandlerEvent;const{onGestureEvent:r,onGestureHandlerEvent:s}=this.props;if(r&&'function'!=typeof r){if(s)throw new Error('Nesting touch handlers with native animated driver is not supported yet');n=r}else if(s&&'function'!=typeof s)throw new Error('Nesting touch handlers with native animated driver is not supported yet');let o=this.onGestureHandlerStateChange;const{onHandlerStateChange:d,onGestureHandlerStateChange:l}=this.props;if(d&&'function'!=typeof d){if(l)throw new Error('Nesting touch handlers with native animated driver is not supported yet');o=d}else if(l&&'function'!=typeof l)throw new Error('Nesting touch handlers with native animated driver is not supported yet');const h={onGestureHandlerEvent:this.state.allowTouches?n:void 0,onGestureHandlerStateChange:this.state.allowTouches?o:void 0};this.propsRef.current=h;let u=null;try{u=t.Children.only(this.props.children)}catch(t){throw new Error((0,p.tagMessage)(`${e} got more than one view as a child. If you want the gesture to work on multiple views, wrap them with a common parent and attach the gesture to that view.`))}let c=u.props.children;return t.cloneElement(u,Object.assign({ref:this.refHandler,collapsable:!1},(0,p.isTestEnv)()?{handlerType:e,handlerTag:this.handlerTag,enabled:this.props.enabled}:{},{testID:this.props.testID??u.props.testID},h),c)}}return H}},3309,[17,136,95,274,3310,3250,3244,3246,3311,3312,3297,3247,3313,3314,3307,3284,3315,10]);
15731
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"customDirectEventTypes",{enumerable:!0,get:function(){return t}});const t={}},3310,[]);
15732
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.getNextHandlerTag=function(){return t++};let t=1},3311,[]);
15733
+ __d(function(g,r,i,a,m,_e,d){"use strict";function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.filterConfig=function(t,e,n={}){const o=Object.assign({},n);for(const n of e){let e=t[n];u(e,n)&&('simultaneousHandlers'===n||'waitFor'===n?e=s(t[n]):'hitSlop'===n&&'object'!=typeof e&&(e={top:e,left:e,bottom:e,right:e}),o[n]=e)}return o},_e.transformIntoHandlerTags=s,_e.findNodeHandle=function(t){return t},_e.scheduleFlushOperations=function(){f||(f=!0,(0,o.ghQueueMicrotask)(()=>{n.default.flushOperations(),f=!1}))},r(d[0]);t(r(d[1])),r(d[2]);var e=r(d[3]),n=t(r(d[4])),o=r(d[5]);function u(t,e){return void 0!==t&&(t!==Object(t)||!('__isNative'in t))&&'onHandlerStateChange'!==e&&'onGestureEvent'!==e}function s(t){return(t=(0,e.toArray)(t)).map(({current:t})=>t).filter(t=>t)}let f=!1},3312,[136,122,3246,3247,3250,3284]);
15734
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ActionType",{enumerable:!0,get:function(){return _}});const _={REANIMATED_WORKLET:1,NATIVE_ANIMATED_EVENT:2,JS_FUNCTION_OLD_API:3,JS_FUNCTION_NEW_API:4}},3313,[]);
15735
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.PressabilityDebugView=function(){return null}},3314,[]);
15736
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"MountRegistry",{enumerable:!0,get:function(){return t}});class t{static mountListeners=new Set;static unmountListeners=new Set;static addMountListener(t){return this.mountListeners.add(t),()=>{this.mountListeners.delete(t)}}static addUnmountListener(t){return this.unmountListeners.add(t),()=>{this.unmountListeners.delete(t)}}static gestureHandlerWillMount(t){this.mountListeners.forEach(n=>n(t))}static gestureHandlerWillUnmount(t){this.unmountListeners.forEach(n=>n(t))}static gestureWillMount(t){this.mountListeners.forEach(n=>n(t))}static gestureWillUnmount(t){this.unmountListeners.forEach(n=>n(t))}}},3315,[]);
15737
+ __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,"forceTouchGestureHandlerProps",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e,"forceTouchHandlerName",{enumerable:!0,get:function(){return f}}),Object.defineProperty(_e,"ForceTouchGestureHandler",{enumerable:!0,get:function(){return b}});var o=e(r(d[0])),t=r(d[1]),n=e(r(d[2])),c=e(r(d[3])),u=r(d[4]);const l=['minForce','maxForce','feedbackOnActivation'];class s extends o.default.Component{static forceTouchAvailable=!1;componentDidMount(){console.warn((0,t.tagMessage)('ForceTouchGestureHandler is not available on this platform. Please use ForceTouchGestureHandler.forceTouchAvailable to conditionally render other components that would provide a fallback behavior specific to your usecase'))}render(){return this.props.children}}const f='ForceTouchGestureHandler',b=n.default?.forceTouchAvailable?(0,c.default)({name:f,allowedProps:[...u.baseGestureHandlerProps,...l],config:{}}):s;b.forceTouchAvailable=n.default?.forceTouchAvailable||!1},3316,[17,3247,3317,3309,3264]);
15738
+ __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 t}});var t={get forceTouchAvailable(){return!1}}},3317,[]);
15739
+ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"longPressGestureHandlerProps",{enumerable:!0,get:function(){return u}}),Object.defineProperty(_e,"longPressHandlerName",{enumerable:!0,get:function(){return o}}),Object.defineProperty(_e,"LongPressGestureHandler",{enumerable:!0,get:function(){return l}});var e,n=r(d[0]),t=(e=n)&&e.__esModule?e:{default:e},s=r(d[1]);const u=['minDurationMs','maxDist','numberOfPointers'],o='LongPressGestureHandler',l=(0,t.default)({name:o,allowedProps:[...s.baseGestureHandlerProps,...u],config:{shouldCancelWhenOutside:!0}})},3318,[3309,3264]);
15740
+ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"panGestureHandlerProps",{enumerable:!0,get:function(){return n}}),Object.defineProperty(_e,"panGestureHandlerCustomNativeProps",{enumerable:!0,get:function(){return O}}),Object.defineProperty(_e,"panHandlerName",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e,"PanGestureHandler",{enumerable:!0,get:function(){return c}}),_e.managePanProps=v;var e,t=r(d[0]),f=(e=t)&&e.__esModule?e:{default:e},s=r(d[1]);const n=['activeOffsetY','activeOffsetX','failOffsetY','failOffsetX','minDist','minVelocity','minVelocityX','minVelocityY','minPointers','maxPointers','avgTouches','enableTrackpadTwoFingerGesture','activateAfterLongPress'],O=['activeOffsetYStart','activeOffsetYEnd','activeOffsetXStart','activeOffsetXEnd','failOffsetYStart','failOffsetYEnd','failOffsetXStart','failOffsetXEnd'],l='PanGestureHandler',c=(0,f.default)({name:l,allowedProps:[...s.baseGestureHandlerProps,...n],config:{},transformProps:v,customNativeProps:O});function o(e){const t=Object.assign({},e);return void 0!==e.activeOffsetX&&(delete t.activeOffsetX,Array.isArray(e.activeOffsetX)?(t.activeOffsetXStart=e.activeOffsetX[0],t.activeOffsetXEnd=e.activeOffsetX[1]):e.activeOffsetX<0?t.activeOffsetXStart=e.activeOffsetX:t.activeOffsetXEnd=e.activeOffsetX),void 0!==e.activeOffsetY&&(delete t.activeOffsetY,Array.isArray(e.activeOffsetY)?(t.activeOffsetYStart=e.activeOffsetY[0],t.activeOffsetYEnd=e.activeOffsetY[1]):e.activeOffsetY<0?t.activeOffsetYStart=e.activeOffsetY:t.activeOffsetYEnd=e.activeOffsetY),void 0!==e.failOffsetX&&(delete t.failOffsetX,Array.isArray(e.failOffsetX)?(t.failOffsetXStart=e.failOffsetX[0],t.failOffsetXEnd=e.failOffsetX[1]):e.failOffsetX<0?t.failOffsetXStart=e.failOffsetX:t.failOffsetXEnd=e.failOffsetX),void 0!==e.failOffsetY&&(delete t.failOffsetY,Array.isArray(e.failOffsetY)?(t.failOffsetYStart=e.failOffsetY[0],t.failOffsetYEnd=e.failOffsetY[1]):e.failOffsetY<0?t.failOffsetYStart=e.failOffsetY:t.failOffsetYEnd=e.failOffsetY),t}function v(e){return o(e)}},3319,[3309,3264]);
15741
+ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"pinchHandlerName",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e,"PinchGestureHandler",{enumerable:!0,get:function(){return o}});var e,n=r(d[0]),t=(e=n)&&e.__esModule?e:{default:e},u=r(d[1]);const l='PinchGestureHandler',o=(0,t.default)({name:l,allowedProps:u.baseGestureHandlerProps,config:{}})},3320,[3309,3264]);
15742
+ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"rotationHandlerName",{enumerable:!0,get:function(){return u}}),Object.defineProperty(_e,"RotationGestureHandler",{enumerable:!0,get:function(){return l}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e},o=r(d[1]);const u='RotationGestureHandler',l=(0,n.default)({name:u,allowedProps:o.baseGestureHandlerProps,config:{}})},3321,[3309,3264]);
15743
+ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"flingGestureHandlerProps",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e,"flingHandlerName",{enumerable:!0,get:function(){return o}}),Object.defineProperty(_e,"FlingGestureHandler",{enumerable:!0,get:function(){return f}});var e,n=r(d[0]),t=(e=n)&&e.__esModule?e:{default:e},u=r(d[1]);const l=['numberOfPointers','direction'],o='FlingGestureHandler',f=(0,t.default)({name:o,allowedProps:[...u.baseGestureHandlerProps,...l],config:{}})},3322,[3309,3264]);
15744
+ __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 e=r(_d[0]),t=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(e),n=r(_d[1]),s=r(_d[2]);const u=[...n.nativeViewProps,'onGestureHandlerEvent','onGestureHandlerStateChange'];function l(l,o={}){const c=t.forwardRef((t,c)=>{const{gestureHandlerProps:d,childProps:p}=Object.keys(t).reduce((e,n)=>(u.includes(n)?e.gestureHandlerProps[n]=t[n]:e.childProps[n]=t[n],e),{gestureHandlerProps:Object.assign({},o),childProps:{enabled:t.enabled,hitSlop:t.hitSlop,testID:t.testID}}),f=(0,e.useRef)(null),b=(0,e.useRef)(null);return(0,e.useImperativeHandle)(c,()=>{const e=b.current;return f.current&&e?(f.current.handlerTag=e.handlerTag,f.current):null},[f,b]),(0,s.jsx)(n.NativeViewGestureHandler,Object.assign({},d,{ref:b,children:(0,s.jsx)(l,Object.assign({},p,{ref:f}))}))});return c.displayName=l?.displayName||l?.render?.name||'string'==typeof l&&l||'ComponentWrapper',c}},3323,[17,3324,10]);
15745
+ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"nativeViewGestureHandlerProps",{enumerable:!0,get:function(){return o}}),Object.defineProperty(_e,"nativeViewProps",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e,"nativeViewHandlerName",{enumerable:!0,get:function(){return s}}),Object.defineProperty(_e,"NativeViewGestureHandler",{enumerable:!0,get:function(){return c}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e},u=r(d[1]);const o=['shouldActivateOnStart','disallowInterruption'],l=[...u.baseGestureHandlerProps,...o],s='NativeViewGestureHandler',c=(0,n.default)({name:s,allowedProps:l,config:{}})},3324,[3309,3264]);
15746
+ __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,"GestureDetector",{enumerable:!0,get:function(){return w}});var t=r(d[0]),n=e(t);r(d[1]);var s=e(r(d[2]));r(d[3]);var u=e(r(d[4])),o=r(d[5]),c=r(d[6]),f=r(d[7]),l=r(d[8]),R=r(d[9]),v=r(d[10]),h=r(d[11]),p=r(d[12]),E=r(d[13]),g=r(d[14]),b=r(d[15]);function H(e,t){const n=['userSelect','enableContextMenu','touchAction'];for(const s of n){const n=e[s];if(void 0!==n)for(const e of t.toGestureArray()){e.config[s]=n}}}const w=e=>{(0,t.useContext)(u.default);if(!e.gesture)throw new Error('GestureDetector must have a gesture prop provided.');const w=e.gesture;H(e,w);const G=(0,t.useMemo)(()=>w.toGestureArray(),[w]),M=G.some(e=>e.shouldUseReanimated),A=(0,R.useWebEventHandlers)(),_=(0,t.useRef)({firstRender:!0,viewRef:null,previousViewTag:-1,forceRebuildReanimatedEvent:!1}).current,y=n.default.useRef({attachedGestures:[],animatedEventHandler:null,animatedHandlers:null,shouldUseReanimated:M,isMounted:!1}).current,j=(0,h.useDetectorUpdater)(_,y,G,w,A),x=(0,p.useViewRefHandler)(_,j),T=_.firstRender||_.forceRebuildReanimatedEvent||(0,f.needsToReattach)(y,G);return _.forceRebuildReanimatedEvent=!1,(0,o.useAnimatedGesture)(y,T),(0,g.useIsomorphicLayoutEffect)(()=>{const e=(0,s.default)(_.viewRef);return y.isMounted=!0,(0,c.attachHandlers)({preparedGesture:y,gestureConfig:w,gesturesToAttach:G,webEventHandlersRef:A,viewTag:e}),()=>{y.isMounted=!1,(0,l.dropHandlers)(y)}},[]),(0,t.useEffect)(()=>{_.firstRender?_.firstRender=!1:j()},[e]),(0,E.useMountReactions)(j,y),M?(0,b.jsx)(v.AnimatedWrap,{ref:x,onGestureHandlerEvent:y.animatedEventHandler,children:e.children}):(0,b.jsx)(v.Wrap,{ref:x,children:e.children})}},3325,[17,136,3297,3247,3307,3326,3329,3332,3333,3330,3334,3335,3337,3339,3340,10]);
15747
+ __d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useAnimatedGesture=function(o,E){if(!n.Reanimated)return;const A=n.Reanimated.useSharedValue(null),v=n.Reanimated.useSharedValue([]),L=(function({_worklet_1288419065602_init_data:t,sharedHandlersCallbacks:n,isStateChangeEvent:s,State:u,runWorklet:l,CALLBACK_TYPE:o,lastUpdateEvent:E,isTouchEvent:c,stateControllers:_,GestureStateManager:T,TouchEventType:C,touchEventTypeToCallbackType:i}){const A=function(t){const A=n.value;if(A)for(let n=0;n<A.length;n++){const v=A[n];t.handlerTag===v.handlerTag&&(s(t)?t.oldState===u.UNDETERMINED&&t.state===u.BEGAN?l(o.BEGAN,v,t):t.oldState!==u.BEGAN&&t.oldState!==u.UNDETERMINED||t.state!==u.ACTIVE?t.oldState!==t.state&&t.state===u.END?(t.oldState===u.ACTIVE&&l(o.END,v,t,!0),l(o.FINALIZE,v,t,!0)):t.state!==u.FAILED&&t.state!==u.CANCELLED||t.state===t.oldState||(t.oldState===u.ACTIVE&&l(o.END,v,t,!1),l(o.FINALIZE,v,t,!1)):(l(o.START,v,t),E.value[v.handlerTag]=void 0):c(t)?(_[n]&&_[n].handlerTag===t.handlerTag||(_[n]=T.create(t.handlerTag)),t.eventType!==C.UNDETERMINED&&l(i(t.eventType),v,t,_[n])):(l(o.UPDATE,v,t),v.onChange&&v.changeEventCalculator&&(l(o.CHANGE,v,v.changeEventCalculator?.(t,E.value[v.handlerTag])),E.value[v.handlerTag]=t)))}};return A.__closure={sharedHandlersCallbacks:n,isStateChangeEvent:s,State:u,runWorklet:l,CALLBACK_TYPE:o,lastUpdateEvent:E,isTouchEvent:c,stateControllers:_,GestureStateManager:T,TouchEventType:C,touchEventTypeToCallbackType:i},A.__workletHash=1288419065602,A.__initData=t,A})({_worklet_1288419065602_init_data:i,sharedHandlersCallbacks:A,isStateChangeEvent:T,State:u.State,runWorklet:_,CALLBACK_TYPE:t.CALLBACK_TYPE,lastUpdateEvent:v,isTouchEvent:C,stateControllers:[],GestureStateManager:s.GestureStateManager,TouchEventType:l.TouchEventType,touchEventTypeToCallbackType:c}),h=n.Reanimated.useEvent(L,['onGestureHandlerStateChange','onGestureHandlerEvent'],E);o.animatedEventHandler=h,o.animatedHandlers=A};var t=r(d[0]),n=r(d[1]),s=r(d[2]),u=r(d[3]),l=r(d[4]),o=r(d[5]);const E=(function({_worklet_4317557963300_init_data:t,CALLBACK_TYPE:n}){const s=function(t,s){switch(t){case n.BEGAN:return s.onBegin;case n.START:return s.onStart;case n.UPDATE:return s.onUpdate;case n.CHANGE:return s.onChange;case n.END:return s.onEnd;case n.FINALIZE:return s.onFinalize;case n.TOUCHES_DOWN:return s.onTouchesDown;case n.TOUCHES_MOVE:return s.onTouchesMove;case n.TOUCHES_UP:return s.onTouchesUp;case n.TOUCHES_CANCELLED:return s.onTouchesCancelled}};return s.__closure={CALLBACK_TYPE:n},s.__workletHash=4317557963300,s.__initData=t,s})({_worklet_4317557963300_init_data:{code:"function getHandler_reactNativeGestureHandler_useAnimatedGestureJs1(type,gesture){const{CALLBACK_TYPE}=this.__closure;switch(type){case CALLBACK_TYPE.BEGAN:return gesture.onBegin;case CALLBACK_TYPE.START:return gesture.onStart;case CALLBACK_TYPE.UPDATE:return gesture.onUpdate;case CALLBACK_TYPE.CHANGE:return gesture.onChange;case CALLBACK_TYPE.END:return gesture.onEnd;case CALLBACK_TYPE.FINALIZE:return gesture.onFinalize;case CALLBACK_TYPE.TOUCHES_DOWN:return gesture.onTouchesDown;case CALLBACK_TYPE.TOUCHES_MOVE:return gesture.onTouchesMove;case CALLBACK_TYPE.TOUCHES_UP:return gesture.onTouchesUp;case CALLBACK_TYPE.TOUCHES_CANCELLED:return gesture.onTouchesCancelled;}}"},CALLBACK_TYPE:t.CALLBACK_TYPE}),c=(function({_worklet_2039840524711_init_data:t,TouchEventType:n,CALLBACK_TYPE:s}){const u=function(t){switch(t){case n.TOUCHES_DOWN:return s.TOUCHES_DOWN;case n.TOUCHES_MOVE:return s.TOUCHES_MOVE;case n.TOUCHES_UP:return s.TOUCHES_UP;case n.TOUCHES_CANCELLED:return s.TOUCHES_CANCELLED}return s.UNDEFINED};return u.__closure={TouchEventType:n,CALLBACK_TYPE:s},u.__workletHash=2039840524711,u.__initData=t,u})({_worklet_2039840524711_init_data:{code:"function touchEventTypeToCallbackType_reactNativeGestureHandler_useAnimatedGestureJs2(eventType){const{TouchEventType,CALLBACK_TYPE}=this.__closure;switch(eventType){case TouchEventType.TOUCHES_DOWN:return CALLBACK_TYPE.TOUCHES_DOWN;case TouchEventType.TOUCHES_MOVE:return CALLBACK_TYPE.TOUCHES_MOVE;case TouchEventType.TOUCHES_UP:return CALLBACK_TYPE.TOUCHES_UP;case TouchEventType.TOUCHES_CANCELLED:return CALLBACK_TYPE.TOUCHES_CANCELLED;}return CALLBACK_TYPE.UNDEFINED;}"},TouchEventType:l.TouchEventType,CALLBACK_TYPE:t.CALLBACK_TYPE}),_=(function({_worklet_5108402624264_init_data:t,getHandler:n,tagMessage:s}){const u=function(t,u,l,...o){const E=n(t,u);u.isWorklet[t]?E?.(l,...o):E&&console.warn(s('Animated gesture callback must be a worklet'))};return u.__closure={getHandler:n,tagMessage:s},u.__workletHash=5108402624264,u.__initData=t,u})({_worklet_5108402624264_init_data:{code:"function runWorklet_reactNativeGestureHandler_useAnimatedGestureJs3(type,gesture,event,...args){const{getHandler,tagMessage}=this.__closure;const handler=getHandler(type,gesture);if(gesture.isWorklet[type]){handler===null||handler===void 0||handler(event,...args);}else if(handler){console.warn(tagMessage('Animated gesture callback must be a worklet'));}}"},getHandler:E,tagMessage:o.tagMessage}),T=(function({_worklet_7889847699524_init_data:t}){const n=function(t){return null!=t.oldState};return n.__closure={},n.__workletHash=7889847699524,n.__initData=t,n})({_worklet_7889847699524_init_data:{code:"function isStateChangeEvent_reactNativeGestureHandler_useAnimatedGestureJs4(event){return event.oldState!=null;}"}}),C=(function({_worklet_13087507825621_init_data:t}){const n=function(t){return null!=t.eventType};return n.__closure={},n.__workletHash=0xbe72c4143d5,n.__initData=t,n})({_worklet_13087507825621_init_data:{code:"function isTouchEvent_reactNativeGestureHandler_useAnimatedGestureJs5(event){return event.eventType!=null;}"}}),i={code:"function reactNativeGestureHandler_useAnimatedGestureJs6(event){const{sharedHandlersCallbacks,isStateChangeEvent,State,runWorklet,CALLBACK_TYPE,lastUpdateEvent,isTouchEvent,stateControllers,GestureStateManager,TouchEventType,touchEventTypeToCallbackType}=this.__closure;const currentCallback=sharedHandlersCallbacks.value;if(!currentCallback){return;}for(let i=0;i<currentCallback.length;i++){const gesture=currentCallback[i];if(event.handlerTag!==gesture.handlerTag){continue;}if(isStateChangeEvent(event)){if(event.oldState===State.UNDETERMINED&&event.state===State.BEGAN){runWorklet(CALLBACK_TYPE.BEGAN,gesture,event);}else if((event.oldState===State.BEGAN||event.oldState===State.UNDETERMINED)&&event.state===State.ACTIVE){runWorklet(CALLBACK_TYPE.START,gesture,event);lastUpdateEvent.value[gesture.handlerTag]=undefined;}else if(event.oldState!==event.state&&event.state===State.END){if(event.oldState===State.ACTIVE){runWorklet(CALLBACK_TYPE.END,gesture,event,true);}runWorklet(CALLBACK_TYPE.FINALIZE,gesture,event,true);}else if((event.state===State.FAILED||event.state===State.CANCELLED)&&event.state!==event.oldState){if(event.oldState===State.ACTIVE){runWorklet(CALLBACK_TYPE.END,gesture,event,false);}runWorklet(CALLBACK_TYPE.FINALIZE,gesture,event,false);}}else if(isTouchEvent(event)){if(!stateControllers[i]||stateControllers[i].handlerTag!==event.handlerTag){stateControllers[i]=GestureStateManager.create(event.handlerTag);}if(event.eventType!==TouchEventType.UNDETERMINED){runWorklet(touchEventTypeToCallbackType(event.eventType),gesture,event,stateControllers[i]);}}else{runWorklet(CALLBACK_TYPE.UPDATE,gesture,event);if(gesture.onChange&&gesture.changeEventCalculator){var _gesture$changeEventC;runWorklet(CALLBACK_TYPE.CHANGE,gesture,(_gesture$changeEventC=gesture.changeEventCalculator)===null||_gesture$changeEventC===void 0?void 0:_gesture$changeEventC.call(gesture,event,lastUpdateEvent.value[gesture.handlerTag]));lastUpdateEvent.value[gesture.handlerTag]=event;}}}}"}},3326,[3327,3328,3248,3244,3245,3247]);
15748
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"CALLBACK_TYPE",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"Gesture",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"BaseGesture",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"ContinousBaseGesture",{enumerable:!0,get:function(){return u}});var t=r(d[0]),s=r(d[1]);const n={UNDEFINED:0,BEGAN:1,START:2,UPDATE:3,CHANGE:4,END:5,FINALIZE:6,TOUCHES_DOWN:7,TOUCHES_MOVE:8,TOUCHES_UP:9,TOUCHES_CANCELLED:10};class h{}let o=0;class l extends h{gestureId=-1;handlerTag=-1;handlerName='';config={};handlers={gestureId:-1,handlerTag:-1,isWorklet:[]};constructor(){super(),this.gestureId=o++,this.handlers.gestureId=this.gestureId}addDependency(t,s){const n=this.config[t];this.config[t]=n?Array().concat(n,s):[s]}withRef(t){return this.config.ref=t,this}isWorklet(t){return void 0!==t.__workletHash}onBegin(t){return this.handlers.onBegin=t,this.handlers.isWorklet[n.BEGAN]=this.isWorklet(t),this}onStart(t){return this.handlers.onStart=t,this.handlers.isWorklet[n.START]=this.isWorklet(t),this}onEnd(t){return this.handlers.onEnd=t,this.handlers.isWorklet[n.END]=this.isWorklet(t),this}onFinalize(t){return this.handlers.onFinalize=t,this.handlers.isWorklet[n.FINALIZE]=this.isWorklet(t),this}onTouchesDown(t){return this.config.needsPointerData=!0,this.handlers.onTouchesDown=t,this.handlers.isWorklet[n.TOUCHES_DOWN]=this.isWorklet(t),this}onTouchesMove(t){return this.config.needsPointerData=!0,this.handlers.onTouchesMove=t,this.handlers.isWorklet[n.TOUCHES_MOVE]=this.isWorklet(t),this}onTouchesUp(t){return this.config.needsPointerData=!0,this.handlers.onTouchesUp=t,this.handlers.isWorklet[n.TOUCHES_UP]=this.isWorklet(t),this}onTouchesCancelled(t){return this.config.needsPointerData=!0,this.handlers.onTouchesCancelled=t,this.handlers.isWorklet[n.TOUCHES_CANCELLED]=this.isWorklet(t),this}enabled(t){return this.config.enabled=t,this}shouldCancelWhenOutside(t){return this.config.shouldCancelWhenOutside=t,this}hitSlop(t){return this.config.hitSlop=t,this}activeCursor(t){return this.config.activeCursor=t,this}mouseButton(t){return this.config.mouseButton=t,this}runOnJS(t){return this.config.runOnJS=t,this}simultaneousWithExternalGesture(...t){for(const s of t)s&&this.addDependency('simultaneousWith',s);return this}requireExternalGestureToFail(...t){for(const s of t)s&&this.addDependency('requireToFail',s);return this}blocksExternalGesture(...t){for(const s of t)s&&this.addDependency('blocksHandlers',s);return this}withTestId(t){return this.config.testId=t,this}cancelsTouchesInView(t){return this.config.cancelsTouchesInView=t,this}initialize(){this.handlerTag=(0,t.getNextHandlerTag)(),this.handlers=Object.assign({},this.handlers,{handlerTag:this.handlerTag}),this.config.ref&&(this.config.ref.current=this)}toGestureArray(){return[this]}prepare(){}get shouldUseReanimated(){return!0!==this.config.runOnJS&&!this.handlers.isWorklet.includes(!1)&&!(0,s.isRemoteDebuggingEnabled)()}}class u extends l{onUpdate(t){return this.handlers.onUpdate=t,this.handlers.isWorklet[n.UPDATE]=this.isWorklet(t),this}onChange(t){return this.handlers.onChange=t,this.handlers.isWorklet[n.CHANGE]=this.isWorklet(t),this}manualActivation(t){return this.config.manualActivation=t,this}}},3327,[3311,3247]);
15749
+ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Reanimated",{enumerable:!0,get:function(){return t}});var e=r(d[0]);let t;try{t=r(d[1],"react-native-reanimated")}catch(e){t=void 0}t?.useSharedValue||(t=void 0);const s={code:"function reactNativeGestureHandler_reanimatedWrapperJs1(){const{tagMessage}=this.__closure;console.warn(tagMessage('Please use newer version of react-native-reanimated in order to control state of the gestures.'));}"};void 0===t||t.setGestureState||(t.setGestureState=(function({_worklet_7298969188432_init_data:e,tagMessage:t}){const s=function(){console.warn(t('Please use newer version of react-native-reanimated in order to control state of the gestures.'))};return s.__closure={tagMessage:t},s.__workletHash=7298969188432,s.__initData=e,s})({_worklet_7298969188432_init_data:s,tagMessage:e.tagMessage}))},3328,[3247,2714]);
15750
+ __d(function(_g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.attachHandlers=function({preparedGesture:e,gestureConfig:n,gesturesToAttach:g,viewTag:h,webEventHandlersRef:_}){n.initialize(),(0,u.ghQueueMicrotask)(()=>{e.isMounted&&n.prepare()});for(const e of g)(0,c.checkGestureCallbacksForWorklets)(e),s.default.createGestureHandler(e.handlerName,e.handlerTag,(0,o.filterConfig)(e.config,c.ALLOWED_PROPS)),(0,t.registerHandler)(e.handlerTag,e,e.config.testId);(0,u.ghQueueMicrotask)(()=>{if(e.isMounted){for(const e of g)s.default.updateGestureHandler(e.handlerTag,(0,o.filterConfig)(e.config,c.ALLOWED_PROPS,(0,c.extractGestureRelations)(e)));(0,o.scheduleFlushOperations)()}});for(const e of g){e.shouldUseReanimated?l.ActionType.REANIMATED_WORKLET:l.ActionType.JS_FUNCTION_NEW_API;s.default.attachGestureHandler(e.handlerTag,h,l.ActionType.JS_FUNCTION_OLD_API,_),f.MountRegistry.gestureWillMount(e)}if(e.attachedGestures=g,e.animatedHandlers){const t=e=>e.shouldUseReanimated;e.animatedHandlers.value=g.filter(t).map(e=>e.handlers)}};var e,t=r(d[0]),n=r(d[1]),s=(e=n)&&e.__esModule?e:{default:e},o=r(d[2]),l=r(d[3]);r(d[4]);var u=r(d[5]),c=r(d[6]),f=r(d[7])},3329,[3246,3250,3312,3313,136,3284,3330,3315]);
15751
+ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"ALLOWED_PROPS",{enumerable:!0,get:function(){return G}}),_e.extractGestureRelations=function(e){return e.config.requireToFail=P(e.config.requireToFail),e.config.simultaneousWith=P(e.config.simultaneousWith),e.config.blocksHandlers=P(e.config.blocksHandlers),{waitFor:e.config.requireToFail,simultaneousHandlers:e.config.simultaneousWith,blocksHandlers:e.config.blocksHandlers}},_e.checkGestureCallbacksForWorklets=function(e){return},_e.useForceRender=function(){const[n,t]=(0,e.useState)(!1);return(0,e.useCallback)(()=>{t(!n)},[n,t])},_e.useWebEventHandlers=function(){return(0,e.useRef)({onGestureHandlerEvent:e=>{(0,p.onGestureHandlerEvent)(e.nativeEvent)},onGestureHandlerStateChange:(0,H.isNewWebImplementationEnabled)()?e=>{(0,p.onGestureHandlerEvent)(e.nativeEvent)}:void 0})};var e=r(d[0]),n=(r(d[1]),r(d[2])),t=r(d[3]),o=r(d[4]),s=r(d[5]),u=r(d[6]),l=r(d[7]),c=r(d[8]),f=r(d[9]),_=r(d[10]),H=r(d[11]),p=(r(d[12]),r(d[13]));const G=[..._.baseGestureHandlerWithDetectorProps,...l.tapGestureHandlerProps,...u.panGestureHandlerProps,...u.panGestureHandlerCustomNativeProps,...s.longPressGestureHandlerProps,...o.forceTouchGestureHandlerProps,...t.flingGestureHandlerProps,...c.hoverGestureHandlerProps,...f.nativeViewGestureHandlerProps],b=(function({_worklet_15931153665387_init_data:e}){const n=function(){};return n.__closure={},n.__workletHash=0xe7d42c14d6b,n.__initData=e,n})({_worklet_15931153665387_init_data:{code:"function emptyWorklet_reactNativeGestureHandler_utilsJs1(){}"}});b.__workletHash;function v(e){return'number'==typeof e?e:e instanceof n.BaseGesture?e.handlerTag:e.current?.handlerTag??-1}function P(e){return Array.from(new Set(e?.map(v)?.filter(e=>e>0)??[]))}},3330,[17,3247,3327,3322,3316,3318,3319,3308,3331,3324,3264,3251,3328,3243]);
15752
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"HoverEffect",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"hoverGestureHandlerProps",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"HoverGesture",{enumerable:!0,get:function(){return u}});var n=r(d[0]);let t=(function(n){return n[n.NONE=0]="NONE",n[n.LIFT=1]="LIFT",n[n.HIGHLIGHT=2]="HIGHLIGHT",n})({});const c=['hoverEffect'],o=(function({_worklet_15895574323364_init_data:n}){const t=function(n,t){let c;return c=void 0===t?{changeX:n.x,changeY:n.y}:{changeX:n.x-t.x,changeY:n.y-t.y},Object.assign({},n,c)};return t.__closure={},t.__workletHash=0xe74fa0fa0a4,t.__initData=n,t})({_worklet_15895574323364_init_data:{code:"function changeEventCalculator_reactNativeGestureHandler_hoverGestureJs1(current,previous){let changePayload;if(previous===undefined){changePayload={changeX:current.x,changeY:current.y};}else{changePayload={changeX:current.x-previous.x,changeY:current.y-previous.y};}return{...current,...changePayload};}"}});class u extends n.ContinousBaseGesture{config={};constructor(){super(),this.handlerName='HoverGestureHandler'}effect(n){return this.config.hoverEffect=n,this}onChange(n){return this.handlers.changeEventCalculator=o,super.onChange(n)}}},3331,[3327]);
15753
+ __d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.needsToReattach=function(t,n){if(n.length!==t.attachedGestures.length)return!0;for(let s=0;s<n.length;s++)if(n[s].handlerName!==t.attachedGestures[s].handlerName||n[s].shouldUseReanimated!==t.attachedGestures[s].shouldUseReanimated)return!0;return!1}},3332,[]);
15754
+ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.dropHandlers=function(e){for(const n of e.attachedGestures)s.default.dropGestureHandler(n.handlerTag),(0,t.unregisterHandler)(n.handlerTag,n.config.testId),l.MountRegistry.gestureWillUnmount(n);(0,u.scheduleFlushOperations)()};var e,t=r(d[0]),n=r(d[1]),s=(e=n)&&e.__esModule?e:{default:e},u=r(d[2]),l=r(d[3])},3333,[3246,3250,3312,3315]);
15755
+ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Wrap",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e,"AnimatedWrap",{enumerable:!0,get:function(){return s}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e},o=r(d[1]),u=r(d[2]),c=r(d[3]);const l=(0,t.forwardRef)(({children:e},t)=>{try{const o=n.default.Children.only(e);if((0,u.isRNSVGNode)(o)){return n.default.cloneElement(o,{ref:t},o.props.children)}return(0,c.jsx)("div",{ref:t,style:{display:'contents'},children:o})}catch(e){throw new Error((0,o.tagMessage)("GestureDetector got more than one view as a child. If you want the gesture to work on multiple views, wrap them with a common parent and attach the gesture to that view."))}}),s=l},3334,[17,3247,3274,10]);
15756
+ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useDetectorUpdater=function(e,c,p,v,R){const _=(0,f.useForceRender)();return(0,t.useCallback)(t=>{const f=(0,l.default)(e.viewRef),w=f!==e.previousViewTag;w||(0,n.needsToReattach)(c,p)?((0,o.dropHandlers)(c),(0,s.attachHandlers)({preparedGesture:c,gestureConfig:v,gesturesToAttach:p,webEventHandlersRef:R,viewTag:f}),w&&(e.previousViewTag=f,e.forceRebuildReanimatedEvent=!0,_())):t||(0,u.updateHandlers)(c,v,p)},[_,v,p,c,e,R])};var e,t=r(d[0]),s=r(d[1]),u=r(d[2]),n=r(d[3]),o=r(d[4]),c=r(d[5]),l=(e=c)&&e.__esModule?e:{default:e},f=r(d[6])},3335,[17,3329,3336,3332,3333,3297,3330]);
15757
+ __d(function(_g,r,_i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.updateHandlers=function(e,n,o){n.prepare();for(let t=0;t<o.length;t++){const n=e.attachedGestures[t];(0,h.checkGestureCallbacksForWorklets)(n),o[t].handlerTag!==n.handlerTag&&(o[t].handlerTag=n.handlerTag,o[t].handlers.handlerTag=n.handlerTag)}const i=e.attachedGestures;(0,u.ghQueueMicrotask)(()=>{if(!e.isMounted)return;if(i!==e.attachedGestures)return;let n=i.length!==o.length;for(let e=0;e<o.length;e++){const u=i[e];u.handlers.gestureId!==o[e].handlers.gestureId&&(o[e].shouldUseReanimated||u.shouldUseReanimated)&&(n=!0),u.config=o[e].config,u.handlers=o[e].handlers,s.default.updateGestureHandler(u.handlerTag,(0,l.filterConfig)(u.config,h.ALLOWED_PROPS,(0,h.extractGestureRelations)(u))),(0,t.registerHandler)(u.handlerTag,u,u.config.testId)}if(e.animatedHandlers&&n){const t=i.filter(e=>e.shouldUseReanimated).map(e=>e.handlers);e.animatedHandlers.value=t}(0,l.scheduleFlushOperations)()})};var e,t=r(d[0]),n=r(d[1]),s=(e=n)&&e.__esModule?e:{default:e},l=r(d[2]),u=r(d[3]),h=r(d[4])},3336,[3246,3250,3312,3284,3330]);
15758
+ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useViewRefHandler=function(e,l){return(0,u.useCallback)(u=>{null!==u&&(e.viewRef=u,-1===e.previousViewTag&&(e.previousViewTag=(0,t.default)(e.viewRef)),e.firstRender||l(!0))},[e,l])},r(d[0]),r(d[1]);var e,u=r(d[2]),l=r(d[3]),t=(e=l)&&e.__esModule?e:{default:e}},3337,[3247,3338,17,3297]);
15759
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.getShadowNodeFromRef=function(t){return null}},3338,[]);
15760
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useMountReactions=function(n,u){(0,o.useEffect)(()=>t.MountRegistry.addMountListener(t=>{for(const o of u.attachedGestures){const u=o.config.blocksHandlers,f=o.config.requireToFail,c=o.config.simultaneousWith;if(s(u,t)||s(f,t)||s(c,t))return void n()}}),[n,u])};var n=r(d[0]),t=r(d[1]),o=r(d[2]);function s(t,o){if(void 0===t)return!1;for(const s of(0,n.transformIntoHandlerTags)(t))if(s===o.handlerTag)return!0;return!1}},3339,[3312,3315,17]);
15761
+ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"useIsomorphicLayoutEffect",{enumerable:!0,get:function(){return f}});var e,t=r(d[0]),o=(e=t)&&e.__esModule?e:{default:e};const n=!('undefined'==typeof window||void 0===window.document||void 0===window.document.createElement),u='undefined'!=typeof navigator&&'ReactNative'===navigator.product,f=n||u?o.default.useLayoutEffect:o.default.useEffect},3340,[17]);
15762
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"GestureObjects",{enumerable:!0,get:function(){return p}});var n=r(d[0]),t=r(d[1]),u=r(d[2]),s=r(d[3]),o=r(d[4]),c=r(d[5]),G=r(d[6]),w=r(d[7]),l=r(d[8]),v=r(d[9]),P=r(d[10]);const p={Tap:()=>new w.TapGesture,Pan:()=>new o.PanGesture,Pinch:()=>new c.PinchGesture,Rotation:()=>new G.RotationGesture,Fling:()=>new n.FlingGesture,LongPress:()=>new s.LongPressGesture,ForceTouch:()=>new t.ForceTouchGesture,Native:()=>new l.NativeGesture,Manual:()=>new v.ManualGesture,Hover:()=>new P.HoverGesture,Race:(...n)=>new u.ComposedGesture(...n),Simultaneous:(...n)=>new u.SimultaneousGesture(...n),Exclusive:(...n)=>new u.ExclusiveGesture(...n)}},3341,[3342,3343,3344,3345,3346,3347,3348,3349,3350,3351,3331]);
15763
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"FlingGesture",{enumerable:!0,get:function(){return n}});var t=r(d[0]);class n extends t.BaseGesture{config={};constructor(){super(),this.handlerName='FlingGestureHandler'}numberOfPointers(t){return this.config.numberOfPointers=t,this}direction(t){return this.config.direction=t,this}}},3342,[3327]);
15764
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ForceTouchGesture",{enumerable:!0,get:function(){return c}});var n=r(d[0]);const t=(function({_worklet_6555184671956_init_data:n}){const t=function(n,t){let c;return c=void 0===t?{forceChange:n.force}:{forceChange:n.force-t.force},Object.assign({},n,c)};return t.__closure={},t.__workletHash=6555184671956,t.__initData=n,t})({_worklet_6555184671956_init_data:{code:"function changeEventCalculator_reactNativeGestureHandler_forceTouchGestureJs1(current,previous){let changePayload;if(previous===undefined){changePayload={forceChange:current.force};}else{changePayload={forceChange:current.force-previous.force};}return{...current,...changePayload};}"}});class c extends n.ContinousBaseGesture{config={};constructor(){super(),this.handlerName='ForceTouchGestureHandler'}minForce(n){return this.config.minForce=n,this}maxForce(n){return this.config.maxForce=n,this}feedbackOnActivation(n){return this.config.feedbackOnActivation=n,this}onChange(n){return this.handlers.changeEventCalculator=t,super.onChange(n)}}},3343,[3327]);
15765
+ __d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ComposedGesture",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"SimultaneousGesture",{enumerable:!0,get:function(){return i}}),Object.defineProperty(e,"ExclusiveGesture",{enumerable:!0,get:function(){return n}});var s=r(d[0]);function t(s,t){return void 0===s?[...t]:[...s,...t]}class u extends s.Gesture{gestures=[];simultaneousGestures=[];requireGesturesToFail=[];constructor(...s){super(),this.gestures=s}prepareSingleGesture(i,n,o){if(i instanceof s.BaseGesture){const s=Object.assign({},i.config);s.simultaneousWith=t(s.simultaneousWith,n),s.requireToFail=t(s.requireToFail,o),i.config=s}else i instanceof u&&(i.simultaneousGestures=n,i.requireGesturesToFail=o,i.prepare())}prepare(){for(const s of this.gestures)this.prepareSingleGesture(s,this.simultaneousGestures,this.requireGesturesToFail)}initialize(){for(const s of this.gestures)s.initialize()}toGestureArray(){return this.gestures.flatMap(s=>s.toGestureArray())}}class i extends u{prepare(){const s=this.gestures.map(s=>this.gestures.filter(t=>t!==s).flatMap(s=>s.toGestureArray()));for(let t=0;t<this.gestures.length;t++)this.prepareSingleGesture(this.gestures[t],s[t],this.requireGesturesToFail)}}class n extends u{prepare(){const s=this.gestures.map(s=>s.toGestureArray());let t=[];for(let u=0;u<this.gestures.length;u++)this.prepareSingleGesture(this.gestures[u],this.simultaneousGestures,this.requireGesturesToFail.concat(t)),t=t.concat(s[u])}}},3344,[3327]);
15766
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"LongPressGesture",{enumerable:!0,get:function(){return n}});var t=r(d[0]);class n extends t.BaseGesture{config={};constructor(){super(),this.handlerName='LongPressGestureHandler',this.shouldCancelWhenOutside(!0)}minDuration(t){return this.config.minDurationMs=t,this}maxDistance(t){return this.config.maxDist=t,this}numberOfPointers(t){return this.config.numberOfPointers=t,this}}},3345,[3327]);
15767
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"PanGesture",{enumerable:!0,get:function(){return s}});var t=r(d[0]);const n=(function({_worklet_6591024890621_init_data:t}){const n=function(t,n){let s;return s=void 0===n?{changeX:t.translationX,changeY:t.translationY}:{changeX:t.translationX-n.translationX,changeY:t.translationY-n.translationY},Object.assign({},t,s)};return n.__closure={},n.__workletHash=6591024890621,n.__initData=t,n})({_worklet_6591024890621_init_data:{code:"function changeEventCalculator_reactNativeGestureHandler_panGestureJs1(current,previous){let changePayload;if(previous===undefined){changePayload={changeX:current.translationX,changeY:current.translationY};}else{changePayload={changeX:current.translationX-previous.translationX,changeY:current.translationY-previous.translationY};}return{...current,...changePayload};}"}});class s extends t.ContinousBaseGesture{config={};constructor(){super(),this.handlerName='PanGestureHandler'}activeOffsetY(t){return Array.isArray(t)?(this.config.activeOffsetYStart=t[0],this.config.activeOffsetYEnd=t[1]):t<0?this.config.activeOffsetYStart=t:this.config.activeOffsetYEnd=t,this}activeOffsetX(t){return Array.isArray(t)?(this.config.activeOffsetXStart=t[0],this.config.activeOffsetXEnd=t[1]):t<0?this.config.activeOffsetXStart=t:this.config.activeOffsetXEnd=t,this}failOffsetY(t){return Array.isArray(t)?(this.config.failOffsetYStart=t[0],this.config.failOffsetYEnd=t[1]):t<0?this.config.failOffsetYStart=t:this.config.failOffsetYEnd=t,this}failOffsetX(t){return Array.isArray(t)?(this.config.failOffsetXStart=t[0],this.config.failOffsetXEnd=t[1]):t<0?this.config.failOffsetXStart=t:this.config.failOffsetXEnd=t,this}minPointers(t){return this.config.minPointers=t,this}maxPointers(t){return this.config.maxPointers=t,this}minDistance(t){return this.config.minDist=t,this}minVelocity(t){return this.config.minVelocity=t,this}minVelocityX(t){return this.config.minVelocityX=t,this}minVelocityY(t){return this.config.minVelocityY=t,this}averageTouches(t){return this.config.avgTouches=t,this}enableTrackpadTwoFingerGesture(t){return this.config.enableTrackpadTwoFingerGesture=t,this}activateAfterLongPress(t){return this.config.activateAfterLongPress=t,this}onChange(t){return this.handlers.changeEventCalculator=n,super.onChange(t)}}},3346,[3327]);
15768
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"PinchGesture",{enumerable:!0,get:function(){return c}});var n=r(d[0]);const t=(function({_worklet_168466708215_init_data:n}){const t=function(n,t){let c;return c=void 0===t?{scaleChange:n.scale}:{scaleChange:n.scale/t.scale},Object.assign({},n,c)};return t.__closure={},t.__workletHash=168466708215,t.__initData=n,t})({_worklet_168466708215_init_data:{code:"function changeEventCalculator_reactNativeGestureHandler_pinchGestureJs1(current,previous){let changePayload;if(previous===undefined){changePayload={scaleChange:current.scale};}else{changePayload={scaleChange:current.scale/previous.scale};}return{...current,...changePayload};}"}});class c extends n.ContinousBaseGesture{constructor(){super(),this.handlerName='PinchGestureHandler'}onChange(n){return this.handlers.changeEventCalculator=t,super.onChange(n)}}},3347,[3327]);
15769
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"RotationGesture",{enumerable:!0,get:function(){return o}});var t=r(d[0]);const n=(function({_worklet_3631609729009_init_data:t}){const n=function(t,n){let o;return o=void 0===n?{rotationChange:t.rotation}:{rotationChange:t.rotation-n.rotation},Object.assign({},t,o)};return n.__closure={},n.__workletHash=3631609729009,n.__initData=t,n})({_worklet_3631609729009_init_data:{code:"function changeEventCalculator_reactNativeGestureHandler_rotationGestureJs1(current,previous){let changePayload;if(previous===undefined){changePayload={rotationChange:current.rotation};}else{changePayload={rotationChange:current.rotation-previous.rotation};}return{...current,...changePayload};}"}});class o extends t.ContinousBaseGesture{constructor(){super(),this.handlerName='RotationGestureHandler'}onChange(t){return this.handlers.changeEventCalculator=n,super.onChange(t)}}},3348,[3327]);
15770
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"TapGesture",{enumerable:!0,get:function(){return n}});var t=r(d[0]);class n extends t.BaseGesture{config={};constructor(){super(),this.handlerName='TapGestureHandler',this.shouldCancelWhenOutside(!0)}minPointers(t){return this.config.minPointers=t,this}numberOfTaps(t){return this.config.numberOfTaps=t,this}maxDistance(t){return this.config.maxDist=t,this}maxDuration(t){return this.config.maxDurationMs=t,this}maxDelay(t){return this.config.maxDelayMs=t,this}maxDeltaX(t){return this.config.maxDeltaX=t,this}maxDeltaY(t){return this.config.maxDeltaY=t,this}}},3349,[3327]);
15771
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"NativeGesture",{enumerable:!0,get:function(){return n}});var t=r(d[0]);class n extends t.BaseGesture{config={};constructor(){super(),this.handlerName='NativeViewGestureHandler'}shouldActivateOnStart(t){return this.config.shouldActivateOnStart=t,this}disallowInterruption(t){return this.config.disallowInterruption=t,this}}},3350,[3327]);
15772
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ManualGesture",{enumerable:!0,get:function(){return u}});var t=r(d[0]);const n=(function({_worklet_8341633256781_init_data:t}){const n=function(t,n){return t};return n.__closure={},n.__workletHash=8341633256781,n.__initData=t,n})({_worklet_8341633256781_init_data:{code:"function changeEventCalculator_reactNativeGestureHandler_manualGestureJs1(current,_previous){return current;}"}});class u extends t.ContinousBaseGesture{constructor(){super(),this.handlerName='ManualGestureHandler'}onChange(t){return this.handlers.changeEventCalculator=n,super.onChange(t)}}},3351,[3327]);
15773
+ __d(function(g,r,i,a,m,_e,_d){"use strict";const e=["rippleColor","style"],t=["children","style"],s=["children","style","innerRef"];function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"PureNativeButton",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(_e,"RawButton",{enumerable:!0,get:function(){return y}}),Object.defineProperty(_e,"BaseButton",{enumerable:!0,get:function(){return j}}),Object.defineProperty(_e,"RectButton",{enumerable:!0,get:function(){return E}}),Object.defineProperty(_e,"BorderlessButton",{enumerable:!0,get:function(){return T}});var o=n(r(_d[0])),l=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(s){var n=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(t,s,n.get?n:{enumerable:!0,get:function(){return e[s]}})}),t.default=e,t})(r(_d[1])),c=n(r(_d[2]));r(_d[3]);var u=n(r(_d[4])),d=n(r(_d[5])),p=n(r(_d[6])),h=n(r(_d[7])),f=r(_d[8]),v=r(_d[9]),b=r(_d[10]);const y=(0,p.default)(h.default,{shouldCancelWhenOutside:!1,shouldActivateOnStart:!1});let C=null;class P extends l.Component{static defaultProps={delayLongPress:600};constructor(e){super(e),this.lastActive=!1,this.longPressDetected=!1}handleEvent=({nativeEvent:e})=>{const{state:t,oldState:s,pointerInside:n}=e,o=n&&t===f.State.ACTIVE;o!==this.lastActive&&this.props.onActiveStateChange&&this.props.onActiveStateChange(o),!this.longPressDetected&&s===f.State.ACTIVE&&t!==f.State.CANCELLED&&this.lastActive&&this.props.onPress&&this.props.onPress(n),!this.lastActive&&t===f.State.ACTIVE&&n?(this.longPressDetected=!1,this.props.onLongPress&&(this.longPressTimeout=setTimeout(this.onLongPress,this.props.delayLongPress))):(t!==f.State.ACTIVE||n||void 0===this.longPressTimeout)&&(void 0===this.longPressTimeout||t!==f.State.END&&t!==f.State.CANCELLED&&t!==f.State.FAILED)||(clearTimeout(this.longPressTimeout),this.longPressTimeout=void 0),this.lastActive=o};onLongPress=()=>{this.longPressDetected=!0,this.props.onLongPress?.()};onHandlerStateChange=e=>{this.props.onHandlerStateChange?.(e),this.handleEvent(e)};onGestureEvent=e=>{this.props.onGestureEvent?.(e),this.handleEvent(e)};render(){const t=this.props,{rippleColor:s,style:n}=t,l=(0,o.default)(t,e);null===C&&(C=(0,v.isFabric)());const c=C?s:(0,u.default)(s??void 0);return(0,b.jsx)(y,Object.assign({ref:this.props.innerRef,rippleColor:c,style:[n,!1]},l,{onGestureEvent:this.onGestureEvent,onHandlerStateChange:this.onHandlerStateChange}))}}const R=c.default.createAnimatedComponent(P),j=l.forwardRef((e,t)=>(0,b.jsx)(P,Object.assign({innerRef:t},e))),A=l.forwardRef((e,t)=>(0,b.jsx)(R,Object.assign({innerRef:t},e))),S=d.default.create({underlay:{position:'absolute',left:0,right:0,bottom:0,top:0}});class O extends l.Component{static defaultProps={activeOpacity:.105,underlayColor:'black'};constructor(e){super(e),this.opacity=new c.default.Value(0)}onActiveStateChange=e=>{this.opacity.setValue(e?this.props.activeOpacity:0),this.props.onActiveStateChange?.(e)};render(){const e=this.props,{children:s,style:n}=e,l=(0,o.default)(e,t),u=d.default.flatten(n)??{};return(0,b.jsxs)(j,Object.assign({},l,{ref:this.props.innerRef,style:u,onActiveStateChange:this.onActiveStateChange,children:[(0,b.jsx)(c.default.View,{style:[S.underlay,{opacity:this.opacity,backgroundColor:this.props.underlayColor,borderRadius:u.borderRadius,borderTopLeftRadius:u.borderTopLeftRadius,borderTopRightRadius:u.borderTopRightRadius,borderBottomLeftRadius:u.borderBottomLeftRadius,borderBottomRightRadius:u.borderBottomRightRadius}]}),s]}))}}const E=l.forwardRef((e,t)=>(0,b.jsx)(O,Object.assign({innerRef:t},e)));class L extends l.Component{static defaultProps={activeOpacity:.3,borderless:!0};constructor(e){super(e),this.opacity=new c.default.Value(1)}onActiveStateChange=e=>{this.opacity.setValue(e?this.props.activeOpacity:1),this.props.onActiveStateChange?.(e)};render(){const e=this.props,{children:t,style:n,innerRef:l}=e,c=(0,o.default)(e,s);return(0,b.jsx)(A,Object.assign({},c,{innerRef:l,onActiveStateChange:this.onActiveStateChange,style:[n,!1],children:t}))}}const T=l.forwardRef((e,t)=>(0,b.jsx)(L,Object.assign({innerRef:t},e)))},3352,[120,17,134,136,40,33,3323,3353,3244,3247,10]);
15774
+ __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 e,t=(function(e){if(e&&e.__esModule)return e;var t={};return 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,t})(r(_d[0])),n=r(_d[1]),u=(e=n)&&e.__esModule?e:{default:e},f=r(_d[2]),o=t.forwardRef((e,t)=>(0,f.jsx)(u.default,Object.assign({ref:t,accessibilityRole:"button"},e)))},3353,[17,20,10]);
15775
+ __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,"TouchableNativeFeedback",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(_e,"TouchableWithoutFeedback",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(_e,"TouchableOpacity",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(_e,"TouchableHighlight",{enumerable:!0,get:function(){return c.default}});var t=e(r(d[0])),u=e(r(d[1])),n=e(r(d[2])),c=e(r(d[3]))},3354,[3355,3356,3358,3359]);
15776
+ __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 u}});var e,t=r(d[0]);var u=((e=t)&&e.__esModule?e:{default:e}).default},3355,[268]);
15777
+ __d(function(g,r,i,a,m,_e,_d){"use strict";const e=["delayLongPress","extraButtonProps"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return f}});var n=t(r(_d[0])),o=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[1])),u=t(r(_d[2])),s=r(_d[3]);var f=o.forwardRef((t,o)=>{let{delayLongPress:f=600,extraButtonProps:l={rippleColor:'transparent',exclusive:!0}}=t,c=(0,n.default)(t,e);return(0,s.jsx)(u.default,Object.assign({ref:o,delayLongPress:f,extraButtonProps:l},c))})},3356,[120,17,3357,10]);
15778
+ __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 u}}),Object.defineProperty(_e,"TOUCHABLE_STATE",{enumerable:!0,get:function(){return l}});var t,s=r(d[0]),e=r(d[1]),o=(t=e)&&t.__esModule?t:{default:t};r(d[2]);var n=r(d[3]),p=r(d[4]),h=r(d[5]);const l={UNDETERMINED:0,BEGAN:1,MOVED_OUTSIDE:2};class u extends s.Component{static defaultProps={delayLongPress:600,extraButtonProps:{rippleColor:'transparent',exclusive:!0}};longPressDetected=!1;pointerInside=!0;STATE=l.UNDETERMINED;handlePressIn(){if(this.props.delayPressIn?this.pressInTimeout=setTimeout(()=>{this.moveToState(l.BEGAN),this.pressInTimeout=void 0},this.props.delayPressIn):this.moveToState(l.BEGAN),this.props.onLongPress){const t=(this.props.delayPressIn||0)+(this.props.delayLongPress||0);this.longPressTimeout=setTimeout(this.onLongPressDetected,t)}}handleMoveOutside(){this.props.delayPressOut?this.pressOutTimeout=this.pressOutTimeout||setTimeout(()=>{this.moveToState(l.MOVED_OUTSIDE),this.pressOutTimeout=void 0},this.props.delayPressOut):this.moveToState(l.MOVED_OUTSIDE)}handleGoToUndetermined(){clearTimeout(this.pressOutTimeout),this.props.delayPressOut?this.pressOutTimeout=setTimeout(()=>{this.STATE===l.UNDETERMINED&&this.moveToState(l.BEGAN),this.moveToState(l.UNDETERMINED),this.pressOutTimeout=void 0},this.props.delayPressOut):(this.STATE===l.UNDETERMINED&&this.moveToState(l.BEGAN),this.moveToState(l.UNDETERMINED))}componentDidMount(){this.reset()}reset(){this.longPressDetected=!1,this.pointerInside=!0,clearTimeout(this.pressInTimeout),clearTimeout(this.pressOutTimeout),clearTimeout(this.longPressTimeout),this.pressOutTimeout=void 0,this.longPressTimeout=void 0,this.pressInTimeout=void 0}moveToState(t){t!==this.STATE&&(t===l.BEGAN?this.props.onPressIn?.():t===l.MOVED_OUTSIDE?this.props.onPressOut?.():t===l.UNDETERMINED&&(this.reset(),this.STATE===l.BEGAN&&this.props.onPressOut?.()),this.props.onStateChange?.(this.STATE,t),this.STATE=t)}onGestureEvent=({nativeEvent:{pointerInside:t}})=>{this.pointerInside!==t&&(t?this.onMoveIn():this.onMoveOut()),this.pointerInside=t};onHandlerStateChange=({nativeEvent:t})=>{const{state:s}=t;if(s===n.State.CANCELLED||s===n.State.FAILED)this.moveToState(l.UNDETERMINED);else if(s===n.State.ACTIVE&&this.STATE===l.UNDETERMINED)this.handlePressIn();else if(s===n.State.END){const t=!this.longPressDetected&&this.STATE!==l.MOVED_OUTSIDE&&void 0===this.pressOutTimeout;this.handleGoToUndetermined(),t&&this.props.onPress?.()}};onLongPressDetected=()=>{this.longPressDetected=!0,this.props.onLongPress?.()};componentWillUnmount(){this.reset()}onMoveIn(){this.STATE===l.MOVED_OUTSIDE&&this.moveToState(l.BEGAN)}onMoveOut(){clearTimeout(this.longPressTimeout),this.longPressTimeout=void 0,this.STATE===l.BEGAN&&this.handleMoveOutside()}render(){const t=('number'==typeof this.props.hitSlop?{top:this.props.hitSlop,left:this.props.hitSlop,bottom:this.props.hitSlop,right:this.props.hitSlop}:this.props.hitSlop)??void 0,s={accessible:!1!==this.props.accessible,accessibilityLabel:this.props.accessibilityLabel,accessibilityHint:this.props.accessibilityHint,accessibilityRole:this.props.accessibilityRole,accessibilityState:this.props.accessibilityState,accessibilityActions:this.props.accessibilityActions,onAccessibilityAction:this.props.onAccessibilityAction,nativeID:this.props.nativeID,onLayout:this.props.onLayout};return(0,h.jsx)(p.BaseButton,Object.assign({style:this.props.containerStyle,onHandlerStateChange:this.props.disabled?void 0:this.onHandlerStateChange,onGestureEvent:this.onGestureEvent,hitSlop:t,userSelect:this.props.userSelect,shouldActivateOnStart:this.props.shouldActivateOnStart,disallowInterruption:this.props.disallowInterruption,testID:this.props.testID,touchSoundDisabled:this.props.touchSoundDisabled??!1,enabled:!this.props.disabled},this.props.extraButtonProps,{children:(0,h.jsx)(o.default.View,Object.assign({},s,{style:this.props.style,children:this.props.children}))}))}}},3357,[17,134,136,3244,3352,10]);
15779
+ __d(function(g,r,i,a,m,_e,d){"use strict";const t=["style"];function e(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return y}});var s=e(r(d[0])),l=e(r(d[1])),n=e(r(d[2])),u=e(r(d[3])),o=e(r(d[4])),c=r(d[5]),p=e(c),h=r(d[6]),f=r(d[7]);class y extends h.Component{static defaultProps=Object.assign({},p.default.defaultProps,{activeOpacity:.2});getChildStyleOpacityWithDefault=()=>{const t=u.default.flatten(this.props.style)||{};return null==t.opacity?1:t.opacity.valueOf()};opacity=new l.default.Value(this.getChildStyleOpacityWithDefault());setOpacityTo=(t,e)=>{l.default.timing(this.opacity,{toValue:t,duration:e,easing:n.default.inOut(n.default.quad),useNativeDriver:this.props.useNativeAnimations??!0}).start()};onStateChange=(t,e)=>{e===c.TOUCHABLE_STATE.BEGAN?this.setOpacityTo(this.props.activeOpacity,0):e!==c.TOUCHABLE_STATE.UNDETERMINED&&e!==c.TOUCHABLE_STATE.MOVED_OUTSIDE||this.setOpacityTo(this.getChildStyleOpacityWithDefault(),150)};render(){const e=this.props,{style:l={}}=e,n=(0,s.default)(e,t);return(0,f.jsx)(p.default,Object.assign({},n,{style:[l,{opacity:this.opacity}],onStateChange:this.onStateChange,children:this.props.children?this.props.children:(0,f.jsx)(o.default,{})}))}}},3358,[120,134,219,33,20,3357,17,10]);
15780
+ __d(function(g,r,i,a,m,_e,_d){"use strict";const e=["style"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return c}});var s=t(r(_d[0])),n=r(_d[1]),l=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(s){var n=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(t,s,n.get?n:{enumerable:!0,get:function(){return e[s]}})}),t.default=e,t})(n),o=r(_d[2]),d=t(o),h=t(r(_d[3])),u=t(r(_d[4])),p=r(_d[5]);class c extends n.Component{static defaultProps=Object.assign({},d.default.defaultProps,{activeOpacity:.85,delayPressOut:100,underlayColor:'black'});constructor(e){super(e),this.state={extraChildStyle:null,extraUnderlayStyle:null}}showUnderlay=()=>{this.hasPressHandler()&&(this.setState({extraChildStyle:{opacity:this.props.activeOpacity},extraUnderlayStyle:{backgroundColor:this.props.underlayColor}}),this.props.onShowUnderlay?.())};hasPressHandler=()=>this.props.onPress||this.props.onPressIn||this.props.onPressOut||this.props.onLongPress;hideUnderlay=()=>{this.setState({extraChildStyle:null,extraUnderlayStyle:null}),this.props.onHideUnderlay?.()};renderChildren(){if(!this.props.children)return(0,p.jsx)(u.default,{});const e=l.Children.only(this.props.children);return l.cloneElement(e,{style:h.default.compose(e.props.style,this.state.extraChildStyle)})}onStateChange=(e,t)=>{t===o.TOUCHABLE_STATE.BEGAN?this.showUnderlay():t!==o.TOUCHABLE_STATE.UNDETERMINED&&t!==o.TOUCHABLE_STATE.MOVED_OUTSIDE||this.hideUnderlay()};render(){const t=this.props,{style:n={}}=t,l=(0,s.default)(t,e),{extraUnderlayStyle:o}=this.state;return(0,p.jsx)(d.default,Object.assign({},l,{style:[n,o],onStateChange:this.onStateChange,children:this.renderChildren()}))}}},3359,[120,17,3357,33,20,10]);
15781
+ __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,"ScrollView",{enumerable:!0,get:function(){return s}}),Object.defineProperty(_e,"Switch",{enumerable:!0,get:function(){return b}}),Object.defineProperty(_e,"TextInput",{enumerable:!0,get:function(){return p}}),Object.defineProperty(_e,"DrawerLayoutAndroid",{enumerable:!0,get:function(){return j}}),Object.defineProperty(_e,"RefreshControl",{enumerable:!0,get:function(){return O}}),Object.defineProperty(_e,"FlatList",{enumerable:!0,get:function(){return y}});var t=(function(e){if(e&&e.__esModule)return e;var t={};return 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,t})(r(_d[0])),n=e(r(_d[1])),u=e(r(_d[2])),o=e(r(_d[3])),f=e(r(_d[4])),l=e(r(_d[5])),d=e(r(_d[6])),c=r(_d[7]);const s=(0,d.default)(f.default,{disallowInterruption:!1}),b=(0,d.default)(u.default,{shouldCancelWhenOutside:!1,shouldActivateOnStart:!0,disallowInterruption:!0}),p=(0,d.default)(o.default),j=()=>(console.warn('DrawerLayoutAndroid is not supported on web!'),(0,c.jsx)(l.default,{})),O=(0,d.default)(l.default),y=t.forwardRef((e,t)=>(0,c.jsx)(n.default,Object.assign({ref:t},e,{renderScrollComponent:e=>(0,c.jsx)(s,Object.assign({},e))})))},3360,[17,138,260,262,147,20,3323,10]);
15782
+ __d(function(g,r,i,a,m,_e,d){"use strict";const e=["onPress","onLongPress","ref"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Text",{enumerable:!0,get:function(){return l}});var n=t(r(d[0])),s=r(d[1]);r(d[2]);var u=t(r(d[3])),o=r(d[4]),c=r(d[5]),f=r(d[6]);const l=t=>{const{onPress:l,onLongPress:j,ref:P}=t,b=(0,n.default)(t,e),O=(0,s.useRef)(null),_=(0,s.useMemo)(()=>o.GestureObjects.Native().runOnJS(!0),[]),x=(0,s.useMemo)(()=>{const e=e=>{O.current=e,P&&('function'==typeof P?P(e):P.current=e)};return e.rngh=!0,e},[P]);return(0,s.useEffect)(()=>{O.current?.setAttribute('rnghtext','true')},[]),l||j?(0,f.jsx)(c.GestureDetector,{gesture:_,children:(0,f.jsx)(u.default,Object.assign({onPress:l,onLongPress:j,ref:x},b))}):(0,f.jsx)(u.default,Object.assign({ref:x},b))}},3361,[120,17,136,112,3341,3325,10]);
15783
+ __d(function(g,r,i,a,m,_e,d){"use strict";function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return c}});var e=r(d[0]),s=t(r(d[1])),n=t(r(d[2])),o=t(r(d[3])),h=t(r(d[4])),l=r(d[5]),p=r(d[6]),f=r(d[7]),u=r(d[8]);class c extends e.Component{static defaultProps={friction:1,overshootFriction:1,useNativeAnimations:!0};constructor(t){super(t);const e=new s.default.Value(0);this.state={dragX:e,rowTranslation:new s.default.Value(0),rowState:0,leftWidth:void 0,rightOffset:void 0,rowWidth:void 0},this.updateAnimatedEvent(t,this.state),this.onGestureEvent=s.default.event([{nativeEvent:{translationX:e}}],{useNativeDriver:t.useNativeAnimations})}shouldComponentUpdate(t,e){return this.props.friction===t.friction&&this.props.overshootLeft===t.overshootLeft&&this.props.overshootRight===t.overshootRight&&this.props.overshootFriction===t.overshootFriction&&this.state.leftWidth===e.leftWidth&&this.state.rightOffset===e.rightOffset&&this.state.rowWidth===e.rowWidth||this.updateAnimatedEvent(t,e),!0}updateAnimatedEvent=(t,e)=>{const{friction:n,overshootFriction:o}=t,{dragX:h,rowTranslation:l,leftWidth:p=0,rowWidth:f=0}=e,{rightOffset:u=f}=e,c=Math.max(0,f-u),{overshootLeft:w=p>0,overshootRight:v=c>0}=t,S=s.default.add(l,h.interpolate({inputRange:[0,n],outputRange:[0,1]})).interpolate({inputRange:[-c-1,-c,p,p+1],outputRange:[-c-(v?1/o:0),-c,p,p+(w?1/o:0)]});this.transX=S,this.showLeftAction=p>0?S.interpolate({inputRange:[-1,0,p],outputRange:[0,0,1]}):new s.default.Value(0),this.leftActionTranslate=this.showLeftAction.interpolate({inputRange:[0,Number.MIN_VALUE],outputRange:[-1e4,0],extrapolate:'clamp'}),this.showRightAction=c>0?S.interpolate({inputRange:[-c,0,1],outputRange:[1,0,0]}):new s.default.Value(0),this.rightActionTranslate=this.showRightAction.interpolate({inputRange:[0,Number.MIN_VALUE],outputRange:[-1e4,0],extrapolate:'clamp'})};onTapHandlerStateChange=({nativeEvent:t})=>{t.oldState===f.State.ACTIVE&&this.close()};onHandlerStateChange=t=>{if(t.nativeEvent.oldState===f.State.ACTIVE&&this.handleRelease(t),t.nativeEvent.state===f.State.ACTIVE){const{velocityX:e,translationX:s}=t.nativeEvent,{rowState:n}=this.state,{friction:o}=this.props,h=-1===n?'right':1===n||(s+.05*e)/o>0?'left':'right';0===n?this.props.onSwipeableOpenStartDrag?.(h):this.props.onSwipeableCloseStartDrag?.(h)}};handleRelease=t=>{const{velocityX:e,translationX:s}=t.nativeEvent,{leftWidth:n=0,rowWidth:o=0,rowState:h}=this.state,{rightOffset:l=o}=this.state,p=o-l,{friction:f,leftThreshold:u=n/2,rightThreshold:c=p/2}=this.props,w=this.currentOffset()+s/f,v=(s+.05*e)/f;let S=0;0===h?v>u?S=n:v<-c&&(S=-p):1===h?v>-u&&(S=n):v<c&&(S=-p),this.animateRow(w,S,e/f)};animateRow=(t,e,n)=>{const{dragX:o,rowTranslation:h}=this.state;if(o.setValue(0),h.setValue(t),this.setState({rowState:Math.sign(e)}),s.default.spring(h,Object.assign({restSpeedThreshold:1.7,restDisplacementThreshold:.4,velocity:n,bounciness:0,toValue:e,useNativeDriver:this.props.useNativeAnimations},this.props.animationOptions)).start(({finished:s})=>{if(s)if(e>0)this.props.onSwipeableLeftOpen?.(),this.props.onSwipeableOpen?.('left',this);else if(e<0)this.props.onSwipeableRightOpen?.(),this.props.onSwipeableOpen?.('right',this);else{const e=t>0?'left':'right';this.props.onSwipeableClose?.(e,this)}}),e>0)this.props.onSwipeableLeftWillOpen?.(),this.props.onSwipeableWillOpen?.('left');else if(e<0)this.props.onSwipeableRightWillOpen?.(),this.props.onSwipeableWillOpen?.('right');else{const e=t>0?'left':'right';this.props.onSwipeableWillClose?.(e)}};onRowLayout=({nativeEvent:t})=>{this.setState({rowWidth:t.layout.width})};currentOffset=()=>{const{leftWidth:t=0,rowWidth:e=0,rowState:s}=this.state,{rightOffset:n=e}=this.state;return 1===s?t:-1===s?-(e-n):0};close=()=>{this.animateRow(this.currentOffset(),0)};openLeft=()=>{const{leftWidth:t=0}=this.state;this.animateRow(this.currentOffset(),t)};openRight=()=>{const{rowWidth:t=0}=this.state,{rightOffset:e=t}=this.state,s=t-e;this.animateRow(this.currentOffset(),-s)};reset=()=>{const{dragX:t,rowTranslation:e}=this.state;t.setValue(0),e.setValue(0),this.setState({rowState:0})};render(){const{rowState:t}=this.state,{children:e,renderLeftActions:n,renderRightActions:h,dragOffsetFromLeftEdge:f=10,dragOffsetFromRightEdge:c=10}=this.props,v=n&&(0,u.jsxs)(s.default.View,{style:[w.leftActions,{transform:[{translateX:this.leftActionTranslate}]}],children:[n(this.showLeftAction,this.transX,this),(0,u.jsx)(o.default,{onLayout:({nativeEvent:t})=>this.setState({leftWidth:t.layout.x})})]}),S=h&&(0,u.jsxs)(s.default.View,{style:[w.rightActions,{transform:[{translateX:this.rightActionTranslate}]}],children:[h(this.showRightAction,this.transX,this),(0,u.jsx)(o.default,{onLayout:({nativeEvent:t})=>this.setState({rightOffset:t.layout.x})})]});return(0,u.jsx)(l.PanGestureHandler,Object.assign({activeOffsetX:[-c,f],touchAction:"pan-y"},this.props,{onGestureEvent:this.onGestureEvent,onHandlerStateChange:this.onHandlerStateChange,children:(0,u.jsxs)(s.default.View,{onLayout:this.onRowLayout,style:[w.container,this.props.containerStyle],children:[v,S,(0,u.jsx)(p.TapGestureHandler,{enabled:0!==t,touchAction:"pan-y",onHandlerStateChange:this.onTapHandlerStateChange,children:(0,u.jsx)(s.default.View,{pointerEvents:0===t?'auto':'box-only',style:[{transform:[{translateX:this.transX}]},this.props.childrenContainerStyle],children:e})})]})}))}}const w=n.default.create({container:{overflow:'hidden'},leftActions:Object.assign({},n.default.absoluteFill,{flexDirection:h.default.isRTL?'row-reverse':'row'}),rightActions:Object.assign({},n.default.absoluteFill,{flexDirection:h.default.isRTL?'row':'row-reverse'})})},3362,[17,134,33,20,229,3319,3308,3244,10]);
15784
+ __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 u.default}});var e,t=r(d[0]),u=(e=t)&&e.__esModule?e:{default:e}},3363,[3364]);
15785
+ __d(function(g,r,i,a,m,_e,d){"use strict";const e=["testOnly_pressed","hitSlop","pressRetentionOffset","delayHoverIn","delayHoverOut","delayLongPress","unstable_pressDelay","onHoverIn","onHoverOut","onPress","onPressIn","onPressOut","onLongPress","onLayout","style","children","android_disableSound","android_ripple","disabled","accessible","simultaneousWithExternalGesture","requireExternalGestureToFail","blocksExternalGesture"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return R}});var n=t(r(d[0])),s=r(d[1]),o=r(d[2]),u=r(d[3]),l=t(r(d[4])),c=t(r(d[5])),_=t(r(d[6])),v=r(d[7]);r(d[8]);var h=r(d[9]),E=r(d[10]),f=r(d[11]),T=r(d[12]),P=r(d[13]),b=r(d[14]);const M=(0,h.isTestEnv)();let O=null;const H={code:"function reactNativeGestureHandler_PressableJs1(event){const{hoverInTimeout,delayHoverOut,hoverOutTimeout,onHoverOut,gestureToPressableEvent}=this.__closure;var _onHoverOut2;if(hoverInTimeout.current){clearTimeout(hoverInTimeout.current);}if(delayHoverOut){hoverOutTimeout.current=setTimeout(function(){var _onHoverOut;return(_onHoverOut=onHoverOut)===null||_onHoverOut===void 0?void 0:_onHoverOut(gestureToPressableEvent(event));},delayHoverOut);return;}(_onHoverOut2=onHoverOut)===null||_onHoverOut2===void 0||_onHoverOut2(gestureToPressableEvent(event));}"},S={code:"function reactNativeGestureHandler_PressableJs2(event){const{hoverOutTimeout,delayHoverIn,hoverInTimeout,onHoverIn,gestureToPressableEvent}=this.__closure;var _onHoverIn2;if(hoverOutTimeout.current){clearTimeout(hoverOutTimeout.current);}if(delayHoverIn){hoverInTimeout.current=setTimeout(function(){var _onHoverIn;return(_onHoverIn=onHoverIn)===null||_onHoverIn===void 0?void 0:_onHoverIn(gestureToPressableEvent(event));},delayHoverIn);return;}(_onHoverIn2=onHoverIn)===null||_onHoverIn2===void 0||_onHoverIn2(gestureToPressableEvent(event));}"},I={code:"function reactNativeGestureHandler_PressableJs3(_event,success){const{Platform,stateMachine,StateMachineEvent,handleFinalize}=this.__closure;if(Platform.OS==='web'){if(success){stateMachine.handleEvent(StateMachineEvent.FINALIZE);}else{stateMachine.handleEvent(StateMachineEvent.CANCEL);}handleFinalize();}}"},k={code:"function reactNativeGestureHandler_PressableJs4(event){const{gestureTouchToPressableEvent,stateMachine,handlePressOut}=this.__closure;const pressableEvent=gestureTouchToPressableEvent(event);stateMachine.reset();handlePressOut(pressableEvent,false);}"},y={code:"function reactNativeGestureHandler_PressableJs5(){const{Platform,isScreenReaderEnabled,stateMachine,handleFinalize}=this.__closure;if(Platform.OS==='android'&&!isScreenReaderEnabled){stateMachine.reset();handleFinalize();}}"},p={code:"function reactNativeGestureHandler_PressableJs6(event){const{gestureTouchToPressableEvent,stateMachine,StateMachineEvent}=this.__closure;const pressableEvent=gestureTouchToPressableEvent(event);stateMachine.handleEvent(StateMachineEvent.LONG_PRESS_TOUCHES_DOWN,pressableEvent);}"},w={code:"function reactNativeGestureHandler_PressableJs7(_event,success){const{Platform,stateMachine,StateMachineEvent,handleFinalize}=this.__closure;if(Platform.OS!=='web'){if(success){stateMachine.handleEvent(StateMachineEvent.FINALIZE);}else{stateMachine.handleEvent(StateMachineEvent.CANCEL);}if(Platform.OS!=='ios'){handleFinalize();}}}"},G={code:"function reactNativeGestureHandler_PressableJs8(){const{Platform,stateMachine,StateMachineEvent}=this.__closure;if(Platform.OS!=='android'){stateMachine.handleEvent(StateMachineEvent.NATIVE_START);}}"},N={code:"function reactNativeGestureHandler_PressableJs9(){const{stateMachine,StateMachineEvent}=this.__closure;stateMachine.handleEvent(StateMachineEvent.NATIVE_BEGIN);}"},F={code:"function reactNativeGestureHandler_PressableJs10(event){const{Platform,gestureTouchToPressableEvent,stateMachine,handlePressOut}=this.__closure;if(Platform.OS!=='macos'&&Platform.OS!=='web'){const pressableEvent=gestureTouchToPressableEvent(event);stateMachine.reset();handlePressOut(pressableEvent,false);}}"};var R=t=>{const{testOnly_pressed:R,hitSlop:C,pressRetentionOffset:D,delayHoverIn:z,delayHoverOut:L,delayLongPress:A,unstable_pressDelay:x,onHoverIn:J,onHoverOut:j,onPress:V,onPressIn:W,onPressOut:B,onLongPress:q,onLayout:U,style:Z,children:X,android_disableSound:K,android_ripple:Q,disabled:Y,accessible:$,simultaneousWithExternalGesture:ee,requireExternalGestureToFail:te,blocksExternalGesture:ne}=t,ae=(0,n.default)(t,e),re={simultaneousWithExternalGesture:ee,requireExternalGestureToFail:te,blocksExternalGesture:ne},[se,oe]=(0,s.useState)(R??!1),ie=(0,s.useRef)(null),ue=(0,s.useRef)(null),le=(0,s.useRef)(!0),ce=(0,s.useRef)(!1),ve=(0,s.useRef)({width:0,height:0}),he=(0,s.useMemo)(()=>'number'==typeof C?(0,v.numberAsInset)(C):C??{},[C]),de=(0,s.useMemo)(()=>'number'==typeof D?(0,v.numberAsInset)(D):D??{},[D]),Ee=(0,v.addInsets)(he,de),fe=(0,s.useCallback)(()=>{ie.current&&(clearTimeout(ie.current),ie.current=null,le.current=!0)},[]),Te=(0,s.useCallback)(()=>{ue.current&&(clearTimeout(ue.current),ue.current=null)},[]),Pe=(0,s.useCallback)(e=>{q&&(fe(),ie.current=setTimeout(()=>{le.current=!1,q(e)},A??500))},[q,fe,A]),be=(0,s.useCallback)(e=>{W?.(e),Pe(e),oe(!0),ue.current&&(clearTimeout(ue.current),ue.current=null)},[W,Pe]),Me=(0,s.useCallback)(()=>{ce.current=!1,fe(),Te(),oe(!1)},[Te,fe]),me=(0,s.useCallback)(e=>{(0,v.isTouchWithinInset)(ve.current,he,e.nativeEvent.changedTouches.at(-1))&&(ce.current=!0,x?ue.current=setTimeout(()=>{be(e)},x):be(e))},[be,he,x]),Oe=(0,s.useCallback)((e,t=!0)=>{ce.current&&(ce.current=!1,ue.current&&be(e),B?.(e),le.current&&t&&V?.(e),Me())},[Me,be,V,B]),He=(0,s.useMemo)(()=>new T.PressableStateMachine,[]),Se=(0,P.useIsScreenReaderEnabled)();(0,s.useEffect)(()=>{const e=(0,f.getStatesConfig)(me,Oe,Se);He.setStates(e)},[me,Oe,He,Se]);const Ie=(0,s.useRef)(null),ge=(0,s.useRef)(null),ke=(0,s.useMemo)(()=>o.GestureObjects.Hover().manualActivation(!0).cancelsTouchesInView(!1).onBegin((function({_worklet_6909381456988_init_data:e,hoverOutTimeout:t,delayHoverIn:n,hoverInTimeout:s,onHoverIn:o,gestureToPressableEvent:u}){const l=function(e){t.current&&clearTimeout(t.current),n?s.current=setTimeout(()=>o?.(u(e)),n):o?.(u(e))};return l.__closure={hoverOutTimeout:t,delayHoverIn:n,hoverInTimeout:s,onHoverIn:o,gestureToPressableEvent:u},l.__workletHash=6909381456988,l.__initData=e,l})({_worklet_6909381456988_init_data:S,hoverOutTimeout:ge,delayHoverIn:z,hoverInTimeout:Ie,onHoverIn:J,gestureToPressableEvent:v.gestureToPressableEvent})).onFinalize((function({_worklet_4785699502742_init_data:e,hoverInTimeout:t,delayHoverOut:n,hoverOutTimeout:s,onHoverOut:o,gestureToPressableEvent:u}){const l=function(e){t.current&&clearTimeout(t.current),n?s.current=setTimeout(()=>o?.(u(e)),n):o?.(u(e))};return l.__closure={hoverInTimeout:t,delayHoverOut:n,hoverOutTimeout:s,onHoverOut:o,gestureToPressableEvent:u},l.__workletHash=4785699502742,l.__initData=e,l})({_worklet_4785699502742_init_data:H,hoverInTimeout:Ie,delayHoverOut:L,hoverOutTimeout:ge,onHoverOut:j,gestureToPressableEvent:v.gestureToPressableEvent})),[z,L,J,j]),ye=(0,s.useMemo)(()=>o.GestureObjects.LongPress().minDuration(0).maxDistance(h.INT32_MAX).cancelsTouchesInView(!1).onTouchesDown((function({_worklet_937333984765_init_data:e,gestureTouchToPressableEvent:t,stateMachine:n,StateMachineEvent:s}){const o=function(e){const o=t(e);n.handleEvent(s.LONG_PRESS_TOUCHES_DOWN,o)};return o.__closure={gestureTouchToPressableEvent:t,stateMachine:n,StateMachineEvent:s},o.__workletHash=937333984765,o.__initData=e,o})({_worklet_937333984765_init_data:p,gestureTouchToPressableEvent:v.gestureTouchToPressableEvent,stateMachine:He,StateMachineEvent:f.StateMachineEvent})).onTouchesUp((function({_worklet_5558085794677_init_data:e,Platform:t,isScreenReaderEnabled:n,stateMachine:s,handleFinalize:o}){const u=function(){};return u.__closure={Platform:t,isScreenReaderEnabled:n,stateMachine:s,handleFinalize:o},u.__workletHash=5558085794677,u.__initData=e,u})({_worklet_5558085794677_init_data:y,Platform:l.default,isScreenReaderEnabled:Se,stateMachine:He,handleFinalize:Me})).onTouchesCancelled((function({_worklet_14743782876118_init_data:e,gestureTouchToPressableEvent:t,stateMachine:n,handlePressOut:s}){const o=function(e){const o=t(e);n.reset(),s(o,!1)};return o.__closure={gestureTouchToPressableEvent:t,stateMachine:n,handlePressOut:s},o.__workletHash=0xd68cdf0e3d6,o.__initData=e,o})({_worklet_14743782876118_init_data:k,gestureTouchToPressableEvent:v.gestureTouchToPressableEvent,stateMachine:He,handlePressOut:Oe})).onFinalize((function({_worklet_6239736927046_init_data:e,Platform:t,stateMachine:n,StateMachineEvent:s,handleFinalize:o}){const u=function(e,t){t?n.handleEvent(s.FINALIZE):n.handleEvent(s.CANCEL),o()};return u.__closure={Platform:t,stateMachine:n,StateMachineEvent:s,handleFinalize:o},u.__workletHash=6239736927046,u.__initData=e,u})({_worklet_6239736927046_init_data:I,Platform:l.default,stateMachine:He,StateMachineEvent:f.StateMachineEvent,handleFinalize:Me})),[He,Me,Oe,Se]),pe=(0,s.useMemo)(()=>o.GestureObjects.Native().onTouchesCancelled((function({_worklet_5326040157275_init_data:e,Platform:t,gestureTouchToPressableEvent:n,stateMachine:s,handlePressOut:o}){const u=function(e){};return u.__closure={Platform:t,gestureTouchToPressableEvent:n,stateMachine:s,handlePressOut:o},u.__workletHash=5326040157275,u.__initData=e,u})({_worklet_5326040157275_init_data:F,Platform:l.default,gestureTouchToPressableEvent:v.gestureTouchToPressableEvent,stateMachine:He,handlePressOut:Oe})).onBegin((function({_worklet_14189070085146_init_data:e,stateMachine:t,StateMachineEvent:n}){const s=function(){t.handleEvent(n.NATIVE_BEGIN)};return s.__closure={stateMachine:t,StateMachineEvent:n},s.__workletHash=0xce7a67b6c1a,s.__initData=e,s})({_worklet_14189070085146_init_data:N,stateMachine:He,StateMachineEvent:f.StateMachineEvent})).onStart((function({_worklet_7492686327600_init_data:e,Platform:t,stateMachine:n,StateMachineEvent:s}){const o=function(){n.handleEvent(s.NATIVE_START)};return o.__closure={Platform:t,stateMachine:n,StateMachineEvent:s},o.__workletHash=7492686327600,o.__initData=e,o})({_worklet_7492686327600_init_data:G,Platform:l.default,stateMachine:He,StateMachineEvent:f.StateMachineEvent})).onFinalize((function({_worklet_10634809083311_init_data:e,Platform:t,stateMachine:n,StateMachineEvent:s,handleFinalize:o}){const u=function(e,t){};return u.__closure={Platform:t,stateMachine:n,StateMachineEvent:s,handleFinalize:o},u.__workletHash=0x9ac1c0485af,u.__initData=e,u})({_worklet_10634809083311_init_data:w,Platform:l.default,stateMachine:He,StateMachineEvent:f.StateMachineEvent,handleFinalize:Me})),[He,Oe,Me]),we=!0!==Y,Ge=[pe,ye,ke];for(const e of Ge)e.enabled(we),e.runOnJS(!0),e.hitSlop(Ee),Object.entries(re).forEach(([t,n])=>{(0,E.applyRelationProp)(e,t,n)});const Ne=o.GestureObjects.Simultaneous(...Ge),Fe='function'==typeof Z?Z({pressed:se}):Z,Re='function'==typeof X?X({pressed:se}):X,Ce=(0,s.useMemo)(()=>{null===O&&(O=(0,h.isFabric)());const e=Q?void 0:'transparent',t=Q?.color??e;return O?t:(0,c.default)(t)},[Q]),De=(0,s.useCallback)(e=>{U?.(e),ve.current=e.nativeEvent.layout},[U]);return(0,b.jsx)(u.GestureDetector,{gesture:Ne,children:(0,b.jsxs)(_.default,Object.assign({},ae,{onLayout:De,accessible:!1!==$,hitSlop:Ee,enabled:we,touchSoundDisabled:K??void 0,rippleColor:Ce,rippleRadius:Q?.radius??void 0,style:[{cursor:'pointer'},Fe],testOnly_onPress:M?V:void 0,testOnly_onPressIn:M?W:void 0,testOnly_onPressOut:M?B:void 0,testOnly_onLongPress:M?q:void 0,children:[Re,null]}))})}},3364,[120,17,3341,3325,136,40,3353,3365,3314,3247,3366,3367,3368,3369,10]);
15786
+ __d(function(g,r,i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"numberAsInset",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"addInsets",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"isTouchWithinInset",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"gestureToPressableEvent",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"gestureTouchToPressableEvent",{enumerable:!0,get:function(){return l}});const t=t=>({left:t,right:t,top:t,bottom:t}),o=(t,o)=>({left:(t.left??0)+(o.left??0),right:(t.right??0)+(o.right??0),top:(t.top??0)+(o.top??0),bottom:(t.bottom??0)+(o.bottom??0)}),n=(t,o,n)=>({identifier:t.id,locationX:t.x,locationY:t.y,pageX:t.absoluteX,pageY:t.absoluteY,target:n,timestamp:o,touches:[],changedTouches:[]}),a=(t,o,n)=>({identifier:t.handlerTag,locationX:t.x,locationY:t.y,pageX:t.absoluteX,pageY:t.absoluteY,target:n,timestamp:o,touches:[],changedTouches:[]}),c=(t,o,n)=>(n?.locationX??0)<(o.right??0)+t.width&&(n?.locationY??0)<(o.bottom??0)+t.height&&(n?.locationX??0)>-(o.left??0)&&(n?.locationY??0)>-(o.top??0),u=t=>{const o=Date.now(),n=a(t,o,0);return{nativeEvent:{touches:[n],changedTouches:[n],identifier:n.identifier,locationX:t.x,locationY:t.y,pageX:t.absoluteX,pageY:t.absoluteY,target:0,timestamp:o,force:void 0}}},l=t=>{const o=Date.now();return{nativeEvent:{touches:t.allTouches.map(t=>n(t,o,0)),changedTouches:t.changedTouches.map(t=>n(t,o,0)),identifier:t.handlerTag,locationX:t.allTouches.at(0)?.x??-1,locationY:t.allTouches.at(0)?.y??-1,pageX:t.allTouches.at(0)?.absoluteX??-1,pageY:t.allTouches.at(0)?.absoluteY??-1,target:0,timestamp:o,force:void 0}}}},3365,[]);
15787
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.applyRelationProp=function(t,n,o){if(!o)return;Array.isArray(o)?t[n](...o):t[n](o)}},3366,[]);
15788
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"StateMachineEvent",{enumerable:!0,get:function(){return n}}),e.getStatesConfig=function(n,N,c){return t(n,N)},r(d[0]);let n=(function(n){return n.NATIVE_BEGIN="nativeBegin",n.NATIVE_START="nativeStart",n.FINALIZE="finalize",n.LONG_PRESS_TOUCHES_DOWN="longPressTouchesDown",n.CANCEL="cancel",n})({});function t(t,N){return[{eventName:n.NATIVE_BEGIN},{eventName:n.NATIVE_START},{eventName:n.LONG_PRESS_TOUCHES_DOWN,callback:t},{eventName:n.FINALIZE,callback:N}]}},3367,[136]);
15789
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"PressableStateMachine",{enumerable:!0,get:function(){return t}});class t{constructor(){this.states=null,this.currentStepIndex=0,this.eventPayload=null}setStates(t){this.states=t}reset(){this.currentStepIndex=0,this.eventPayload=null}handleEvent(t,s){if(!this.states)return;const n=this.states[this.currentStepIndex];this.eventPayload=s||this.eventPayload,n.eventName===t?(this.eventPayload&&n.callback&&n.callback(this.eventPayload),this.currentStepIndex++,this.currentStepIndex===this.states.length&&this.reset()):this.currentStepIndex>0&&(this.reset(),this.handleEvent(t,s))}}},3368,[]);
15790
+ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useIsScreenReaderEnabled=function(){const[e,n]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{(async()=>{try{const e=await s.default.isScreenReaderEnabled();n(e)}catch(e){console.warn('Could not read accessibility info: defaulting to false')}})();const e=s.default.addEventListener('screenReaderChanged',e=>{n(e)});return()=>{e.remove()}},[]),e};var e,t=r(d[0]),n=r(d[1]),s=(e=n)&&e.__esModule?e:{default:e}},3369,[17,132]);
15791
+ __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,"default",{enumerable:!0,get:function(){return V}});var t=r(_d[0]),n=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(t),s=e(r(_d[1])),o=e(r(_d[2])),d=e(r(_d[3])),l=e(r(_d[4])),h=e(r(_d[5])),u=e(r(_d[6])),p=e(r(_d[7])),c=r(_d[8]),w=r(_d[9]),f=r(_d[10]),v=r(_d[11]);const S='Idle',y='Dragging',b='Settling';class V extends t.Component{static defaultProps={drawerWidth:200,drawerPosition:'left',useNativeAnimations:!0,drawerType:'front',edgeWidth:20,minSwipeDistance:3,overlayColor:'rgba(0, 0, 0, 0.7)',drawerLockMode:'unlocked',enableTrackpadTwoFingerGesture:!1};constructor(e){super(e);const t=new o.default.Value(0),n=new o.default.Value(0),s=new o.default.Value(0);this.state={dragX:t,touchX:n,drawerTranslation:s,containerWidth:0,drawerState:S,drawerOpened:!1},this.updateAnimatedEvent(e,this.state)}shouldComponentUpdate(e,t){return this.props.drawerPosition===e.drawerPosition&&this.props.drawerWidth===e.drawerWidth&&this.props.drawerType===e.drawerType&&this.state.containerWidth===t.containerWidth||this.updateAnimatedEvent(e,t),!0}accessibilityIsModalView=n.createRef();pointerEventsView=n.createRef();panGestureHandler=n.createRef();drawerShown=!1;static positions={Left:'left',Right:'right'};updateAnimatedEvent=(e,t)=>{const{drawerPosition:n,drawerWidth:s,drawerType:d}=e,{dragX:l,touchX:h,drawerTranslation:u,containerWidth:p}=t;let c=l,w=h;'left'!==n?(c=o.default.multiply(new o.default.Value(-1),l),w=o.default.add(new o.default.Value(p),o.default.multiply(new o.default.Value(-1),h)),h.setValue(p)):h.setValue(0);let f=c;if('front'===d){const e=o.default.add(w,o.default.multiply(new o.default.Value(-1),c)).interpolate({inputRange:[s-1,s,s+1],outputRange:[0,0,1]});f=o.default.add(c,e)}this.openValue=o.default.add(f,u).interpolate({inputRange:[0,s],outputRange:[0,1],extrapolate:'clamp'});const v={useNativeDriver:e.useNativeAnimations};this.props.onDrawerSlide&&(v.listener=e=>{const t=Math.floor(Math.abs(e.nativeEvent.translationX))/this.state.containerWidth;this.props.onDrawerSlide?.(t)}),this.onGestureEvent=o.default.event([{nativeEvent:{translationX:l,x:h}}],v)};handleContainerLayout=({nativeEvent:e})=>{this.setState({containerWidth:e.layout.width})};emitStateChanged=(e,t)=>{this.props.onDrawerStateChanged?.(e,t)};openingHandlerStateChange=({nativeEvent:e})=>{e.oldState===f.State.ACTIVE?this.handleRelease({nativeEvent:e}):e.state===f.State.ACTIVE&&(this.emitStateChanged(y,!1),this.setState({drawerState:y}),'on-drag'===this.props.keyboardDismissMode&&h.default.dismiss(),this.props.hideStatusBar&&u.default.setHidden(!0,this.props.statusBarAnimation||'slide'))};onTapHandlerStateChange=({nativeEvent:e})=>{this.drawerShown&&e.oldState===f.State.ACTIVE&&'locked-open'!==this.props.drawerLockMode&&this.closeDrawer()};handleRelease=({nativeEvent:e})=>{const{drawerWidth:t,drawerPosition:n,drawerType:s}=this.props,{containerWidth:o}=this.state;let{translationX:d,velocityX:l,x:h}=e;'left'!==n&&(d=-d,h=o-h,l=-l);const u=h-d;let p=0;'front'===s&&(p=u>t?u-t:0);const c=d+p+(this.drawerShown?t:0);c+.05*l>t/2?this.animateDrawer(c,t,l):this.animateDrawer(c,0,l)};updateShowing=e=>{this.drawerShown=e,this.accessibilityIsModalView.current?.setNativeProps({accessibilityViewIsModal:e}),this.pointerEventsView.current?.setNativeProps({pointerEvents:e?'auto':'none'});const{drawerPosition:t,minSwipeDistance:n,edgeWidth:s}=this.props,o='left'===t,d=(o?1:-1)*(this.drawerShown?-1:1),l=o?{left:0,width:e?void 0:s}:{right:0,width:e?void 0:s};this.panGestureHandler.current?.setNativeProps({hitSlop:l,activeOffsetX:d*n})};animateDrawer=(e,t,n,s)=>{if(this.state.dragX.setValue(0),this.state.touchX.setValue('left'===this.props.drawerPosition?0:this.state.containerWidth),null!=e){let s=e;this.props.useNativeAnimations&&(e<t&&n>0?s=Math.min(e+n/60,t):e>t&&n<0&&(s=Math.max(e+n/60,t))),this.state.drawerTranslation.setValue(s)}const d=0!==t;this.updateShowing(d),this.emitStateChanged(b,d),this.setState({drawerState:b}),this.props.hideStatusBar&&u.default.setHidden(d,this.props.statusBarAnimation||'slide'),o.default.spring(this.state.drawerTranslation,{velocity:n,bounciness:0,toValue:t,useNativeDriver:this.props.useNativeAnimations,speed:s??void 0}).start(({finished:e})=>{e&&(this.emitStateChanged(S,d),this.setState({drawerOpened:d}),this.state.drawerState!==y&&this.setState({drawerState:S}),d?this.props.onDrawerOpen?.():this.props.onDrawerClose?.())})};openDrawer=(e={})=>{this.animateDrawer(void 0,this.props.drawerWidth,e.velocity?e.velocity:0,e.speed),this.forceUpdate()};closeDrawer=(e={})=>{this.animateDrawer(void 0,0,e.velocity?e.velocity:0,e.speed),this.forceUpdate()};renderOverlay=()=>{let e;(0,s.default)(this.openValue,'should be set'),e=this.state.drawerState!==S?this.openValue:this.state.drawerOpened?1:0;const t={opacity:e,backgroundColor:this.props.overlayColor};return(0,v.jsx)(w.TapGestureHandler,{onHandlerStateChange:this.onTapHandlerStateChange,children:(0,v.jsx)(o.default.View,{pointerEvents:this.drawerShown?'auto':'none',ref:this.pointerEventsView,style:[C.overlay,t]})})};renderDrawer=()=>{const{drawerBackgroundColor:e,drawerWidth:t,drawerPosition:n,drawerType:d,drawerContainerStyle:h,contentContainerStyle:u}=this.props,c='left'===n,w='back'!==d,f='front'!==d,y=p.default.isRTL?c:!c,b={backgroundColor:e,width:t},V=this.openValue;let D;if((0,s.default)(V,'should be set'),f){D={transform:[{translateX:V.interpolate({inputRange:[0,1],outputRange:c?[0,t]:[0,-t],extrapolate:'clamp'})}]}}let x=0;if(w){const e=c?-t:t;x=this.state.drawerState!==S?V.interpolate({inputRange:[0,1],outputRange:[e,0],extrapolate:'clamp'}):this.state.drawerOpened?0:e}const E={transform:[{translateX:x}],flexDirection:y?'row-reverse':'row'};return(0,v.jsxs)(o.default.View,{style:C.main,onLayout:this.handleContainerLayout,children:[(0,v.jsxs)(o.default.View,{style:['front'===d?C.containerOnBack:C.containerInFront,D,u],importantForAccessibility:this.drawerShown?'no-hide-descendants':'yes',children:['function'==typeof this.props.children?this.props.children(this.openValue):this.props.children,this.renderOverlay()]}),(0,v.jsx)(o.default.View,{pointerEvents:"box-none",ref:this.accessibilityIsModalView,accessibilityViewIsModal:this.drawerShown,style:[C.drawerContainer,E,h],children:(0,v.jsx)(l.default,{style:b,children:this.props.renderNavigationView(this.openValue)})})]})};setPanGestureRef=e=>{this.panGestureHandler.current=e,this.props.onGestureRef?.(e)};render(){const{drawerPosition:e,drawerLockMode:t,edgeWidth:n,minSwipeDistance:s}=this.props,o='left'===e,d=(o?1:-1)*(this.drawerShown?-1:1),l=o?{left:0,width:this.drawerShown?void 0:n}:{right:0,width:this.drawerShown?void 0:n};return(0,v.jsx)(c.PanGestureHandler,{userSelect:this.props.userSelect,activeCursor:this.props.activeCursor,mouseButton:this.props.mouseButton,enableContextMenu:this.props.enableContextMenu,ref:this.setPanGestureRef,hitSlop:l,activeOffsetX:d*s,failOffsetY:[-15,15],onGestureEvent:this.onGestureEvent,onHandlerStateChange:this.openingHandlerStateChange,enableTrackpadTwoFingerGesture:this.props.enableTrackpadTwoFingerGesture,enabled:'locked-closed'!==t&&'locked-open'!==t,children:this.renderDrawer()})}}const C=d.default.create({drawerContainer:Object.assign({},d.default.absoluteFill,{zIndex:1001,flexDirection:'row'}),containerInFront:Object.assign({},d.default.absoluteFill,{zIndex:1002}),containerOnBack:Object.assign({},d.default.absoluteFill),main:{flex:1,zIndex:0,overflow:'hidden'},overlay:Object.assign({},d.default.absoluteFill,{zIndex:1e3})})},3370,[17,323,134,33,20,230,259,229,3319,3308,3244,10]);
15792
+ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.reconcileBoundaryState=o,Object.defineProperty(_e,"RenderErrorBoundary",{enumerable:!0,get:function(){return n}});var e,t=r(d[0]),s=(e=t)&&e.__esModule?e:{default:e};function o(e,t){return t===e.lastResetKey?null:{hasError:!1,lastResetKey:t}}class n extends s.default.Component{constructor(e){super(e),this.state={hasError:!1,lastResetKey:e.resetKey}}static getDerivedStateFromError(){return{hasError:!0}}static getDerivedStateFromProps(e,t){return o(t,e.resetKey)}componentDidCatch(e){this.props.onError?.(e)}render(){return this.state.hasError?this.props.fallback:this.props.children}}},3371,[17]);
15793
15793
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"MIN_ZOOM",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"MAX_ZOOM",{enumerable:!0,get:function(){return n}}),e.clampZoom=u,e.panLimit=o,e.clampPan=function(t,n,u){const c=o(n,u);return Number.isFinite(t)?Math.max(-c,Math.min(c,t)):0},e.containBox=function(t,n,u){const o=Number.isFinite(t)&&t>0?t:0,c=Number.isFinite(n)&&n>0?n:0;if(!Number.isFinite(u)||u<=0)return{width:o,height:c};const s=Math.min(o,c*u),h=Math.min(c,o/u);return{width:s,height:h}},e.panExtent=c,e.clampPanContent=function(t,n,u,o){if(!Number.isFinite(t))return 0;const s=c(n,u,o);return Math.max(-s,Math.min(s,t))},e.zoomBy=function(t,n){return u(t*n)};const t=1,n=4;function u(u){return Number.isFinite(u)?Math.max(t,Math.min(n,u)):t}function o(t,n){return!Number.isFinite(t)||t<=0?0:Math.max(0,t*(u(n)-1)/2)}function c(t,n,o){return Number.isFinite(t)&&Number.isFinite(n)&&Number.isFinite(o)?Math.max(0,(u(o)*n-t)/2):0}},3372,[]);
15794
- __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,"EventThumb",{enumerable:!0,get:function(){return y}});var t=r(d[0]),n=r(d[1]),o=e(r(d[2])),c=e(r(d[3])),l=r(d[4]),s=r(d[5]),u=r(d[6]),f=r(d[7]),h=r(d[8]),v=r(d[9]);function b(e){const t=e.toLowerCase();return'person'===t||'face'===t?s.User:'car'===t||'truck'===t||'bus'===t||'vehicle'===t||'motorcycle'===t||'bicycle'===t?s.Car:'dog'===t||'cat'===t||'animal'===t?s.Dog:'bird'===t?s.Bird:s.HelpCircle}const y=(0,n.memo)(function(e){const n=(0,t.c)(33),{event:s,width:y,height:_}=e,{token:j}=(0,u.useServer)();let p;n[0]===Symbol.for("react.memo_cache_sentinel")?(p={variant:"full",directDefaultKind:!0},n[0]=p):p=n[0];const{uri:k,isData:E,failed:w,onError:x}=(0,f.useEventMedia)(s.id,void 0,"crop",p),M=(0,h.colorForEventType)(s.className);let N;n[1]!==s.className?(N=b(s.className),n[1]=s.className,n[2]=N):N=n[2];const D=N;let F;n[3]!==_||n[4]!==y?(F={width:y,height:_},n[3]=_,n[4]=y,n[5]=F):F=n[5];const P=F;let z;n[6]!==E||n[7]!==j||n[8]!==k?(z=j&&k&&!E?{Authorization:`Bearer ${j}`}:void 0,n[6]=E,n[7]=j,n[8]=k,n[9]=z):z=n[9];const A=z;if(w||null===k){const e=.45*Math.min(y,_),t=M+"1A";let c,l,s,u;return n[10]!==t?(c={backgroundColor:t},n[10]=t,n[11]=c):c=n[11],n[12]!==P||n[13]!==c?(l=[C.container,P,C.iconContainer,c],n[12]=P,n[13]=c,n[14]=l):l=n[14],n[15]!==D||n[16]!==M||n[17]!==e?(s=(0,v.jsx)(D,{size:e,color:M}),n[15]=D,n[16]=M,n[17]=e,n[18]=s):s=n[18],n[19]!==l||n[20]!==s?(u=(0,v.jsx)(o.default,{style:l,children:s}),n[19]=l,n[20]=s,n[21]=u):u=n[21],u}let B,I,O,S;return n[22]!==P?(B=[C.container,P],n[22]=P,n[23]=B):B=n[23],n[24]!==A||n[25]!==k?(I=A?{uri:k,headers:A}:{uri:k},n[24]=A,n[25]=k,n[26]=I):I=n[26],n[27]!==x||n[28]!==I?(O=(0,v.jsx)(l.Image,{source:I,style:c.default.absoluteFill,contentFit:"cover",cachePolicy:"memory-disk",onError:x}),n[27]=x,n[28]=I,n[29]=O):O=n[29],n[30]!==B||n[31]!==O?(S=(0,v.jsx)(o.default,{style:B,children:O}),n[30]=B,n[31]=O,n[32]=S):S=n[32],S}),C=c.default.create({container:{overflow:'hidden',backgroundColor:'rgba(0,0,0,0.3)'},iconContainer:{alignItems:'center',justifyContent:'center'}})},3373,[15,17,20,33,3053,813,3144,3234,3231,10]);
15794
+ __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,"EventThumb",{enumerable:!0,get:function(){return y}});var t=r(d[0]),n=r(d[1]),o=e(r(d[2])),c=e(r(d[3])),l=r(d[4]),s=r(d[5]),u=r(d[6]),f=r(d[7]),h=r(d[8]),v=r(d[9]);function b(e){const t=e.toLowerCase();return'person'===t||'face'===t?s.User:'car'===t||'truck'===t||'bus'===t||'vehicle'===t||'motorcycle'===t||'bicycle'===t?s.Car:'dog'===t||'cat'===t||'animal'===t?s.Dog:'bird'===t?s.Bird:s.HelpCircle}const y=(0,n.memo)(function(e){const n=(0,t.c)(34),{event:s,width:y,height:_,contentFit:j}=e,p=void 0===j?"cover":j,{token:k}=(0,u.useServer)();let E;n[0]===Symbol.for("react.memo_cache_sentinel")?(E={variant:"full",directDefaultKind:!0},n[0]=E):E=n[0];const{uri:w,isData:x,failed:F,onError:M}=(0,f.useEventMedia)(s.id,void 0,"crop",E),N=(0,h.colorForEventType)(s.className);let D;n[1]!==s.className?(D=b(s.className),n[1]=s.className,n[2]=D):D=n[2];const P=D;let z;n[3]!==_||n[4]!==y?(z={width:y,height:_},n[3]=_,n[4]=y,n[5]=z):z=n[5];const A=z;let B;n[6]!==x||n[7]!==k||n[8]!==w?(B=k&&w&&!x?{Authorization:`Bearer ${k}`}:void 0,n[6]=x,n[7]=k,n[8]=w,n[9]=B):B=n[9];const I=B;if(F||null===w){const e=.45*Math.min(y,_),t=N+"1A";let c,l,s,u;return n[10]!==t?(c={backgroundColor:t},n[10]=t,n[11]=c):c=n[11],n[12]!==A||n[13]!==c?(l=[C.container,A,C.iconContainer,c],n[12]=A,n[13]=c,n[14]=l):l=n[14],n[15]!==P||n[16]!==N||n[17]!==e?(s=(0,v.jsx)(P,{size:e,color:N}),n[15]=P,n[16]=N,n[17]=e,n[18]=s):s=n[18],n[19]!==l||n[20]!==s?(u=(0,v.jsx)(o.default,{style:l,children:s}),n[19]=l,n[20]=s,n[21]=u):u=n[21],u}let O,S,T,H;return n[22]!==A?(O=[C.container,A],n[22]=A,n[23]=O):O=n[23],n[24]!==I||n[25]!==w?(S=I?{uri:w,headers:I}:{uri:w},n[24]=I,n[25]=w,n[26]=S):S=n[26],n[27]!==p||n[28]!==M||n[29]!==S?(T=(0,v.jsx)(l.Image,{source:S,style:c.default.absoluteFill,contentFit:p,cachePolicy:"memory-disk",onError:M}),n[27]=p,n[28]=M,n[29]=S,n[30]=T):T=n[30],n[31]!==O||n[32]!==T?(H=(0,v.jsx)(o.default,{style:O,children:T}),n[31]=O,n[32]=T,n[33]=H):H=n[33],H}),C=c.default.create({container:{overflow:'hidden',backgroundColor:'rgba(0,0,0,0.3)'},iconContainer:{alignItems:'center',justifyContent:'center'}})},3373,[15,17,20,33,3053,813,3144,3234,3231,10]);
15795
15795
  __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,"FaceAssignSheet",{enumerable:!0,get:function(){return j}});var t=r(d[0]),o=r(d[1]),n=e(r(d[2])),s=e(r(d[3])),l=e(r(d[4])),c=e(r(d[5])),u=e(r(d[6])),f=e(r(d[7])),y=e(r(d[8])),p=e(r(d[9])),b=e(r(d[10])),x=r(d[11]),h=r(d[12]),v=r(d[13]),I=r(d[14]),S=r(d[15]),C=r(d[16]),A=r(d[17]),P=r(d[18]);const j=(0,o.memo)(function(e){const b=(0,t.c)(156),{face:j,onClose:N}=e,{colors:B}=(0,S.useTheme)(),{t:G}=(0,h.useTranslation)(),w=(0,x.useSafeAreaInsets)(),T=null!==j,{data:z,isLoading:F}=(0,A.useIdentities)(T);let D;b[0]!==z?(D=void 0===z?[]:z,b[0]=z,b[1]=D):D=b[1];const U=D,M=(0,A.useAssignFace)(),L=(0,A.useUnassignFace)(),W=(0,A.useUnassignAllForIdentity)(),H=(0,A.useCreateIdentity)(),[V,_]=(0,o.useState)(""),[E,O]=(0,o.useState)(null),X=M.isPending||L.isPending||W.isPending||H.isPending;let $;b[2]!==N?($=()=>{_(""),O(null),N()},b[2]=N,b[3]=$):$=b[3];const q=$;let J;b[4]!==M||b[5]!==X||b[6]!==q||b[7]!==j||b[8]!==G?(J=async e=>{if(j&&!X){O(null);try{await M.mutateAsync({faceId:j.faceId,identityId:e}),q()}catch{O(G("v2.tracks.assignFailed"))}}},b[4]=M,b[5]=X,b[6]=q,b[7]=j,b[8]=G,b[9]=J):J=b[9];const K=J;let Q;b[10]!==X||b[11]!==q||b[12]!==j||b[13]!==G||b[14]!==L?(Q=async()=>{if(j&&!X){O(null);try{await L.mutateAsync({faceId:j.faceId}),q()}catch{O(G("v2.tracks.disassociateFailed"))}}},b[10]=X,b[11]=q,b[12]=j,b[13]=G,b[14]=L,b[15]=Q):Q=b[15];const Y=Q;let Z;b[16]!==X||b[17]!==Y||b[18]!==j||b[19]!==G?(Z=()=>{j&&!X&&n.default.alert(G("v2.tracks.removePersonConfirmTitle"),G("v2.tracks.removePersonConfirmBody"),[{text:G("v2.settings.cancel"),style:"cancel"},{text:G("v2.tracks.removePerson"),style:"destructive",onPress:()=>{Y()}}])},b[16]=X,b[17]=Y,b[18]=j,b[19]=G,b[20]=Z):Z=b[20];const ee=Z;let te;b[21]!==X||b[22]!==q||b[23]!==j||b[24]!==G||b[25]!==W?(te=async()=>{const e=j?.identityId;if(j&&void 0!==e&&!X){O(null);try{await W.mutateAsync({identityId:e}),q()}catch{O(G("v2.tracks.disassociateAllFailed"))}}},b[21]=X,b[22]=q,b[23]=j,b[24]=G,b[25]=W,b[26]=te):te=b[26];const re=te;let oe;b[27]!==X||b[28]!==re||b[29]!==j||b[30]!==G?(oe=()=>{const e=j?.identityId;j&&void 0!==e&&!X&&n.default.alert(G("v2.tracks.removePersonAllConfirmTitle"),G("v2.tracks.removePersonAllConfirmBody"),[{text:G("v2.settings.cancel"),style:"cancel"},{text:G("v2.tracks.removePersonAll"),style:"destructive",onPress:()=>{re()}}])},b[27]=X,b[28]=re,b[29]=j,b[30]=G,b[31]=oe):oe=b[31];const ne=oe;let se;b[32]!==M||b[33]!==X||b[34]!==q||b[35]!==H||b[36]!==j||b[37]!==V||b[38]!==G?(se=async()=>{const e=V.trim();if(j&&!X&&0!==e.length){O(null);try{const t=await H.mutateAsync({name:e});await M.mutateAsync({faceId:j.faceId,identityId:t.id}),q()}catch{O(G("v2.tracks.assignFailed"))}}},b[32]=M,b[33]=X,b[34]=q,b[35]=H,b[36]=j,b[37]=V,b[38]=G,b[39]=se):se=b[39];const ae=se;let ie,le,de,ce,ue,ge,fe,me,ye,pe,be,xe;b[40]!==q?(ie=(0,P.jsx)(f.default,{style:R.scrim,onPress:q,accessibilityRole:"button"}),b[40]=q,b[41]=ie):ie=b[41],b[42]!==B.backgroundElevated?(le=[R.sheet,{backgroundColor:B.backgroundElevated}],b[42]=B.backgroundElevated,b[43]=le):le=b[43],b[44]!==B.foreground?(de=[R.title,{color:B.foreground}],b[44]=B.foreground,b[45]=de):de=b[45],b[46]!==G?(ce=G("v2.tracks.assignFaceTitle"),b[46]=G,b[47]=ce):ce=b[47],b[48]!==de||b[49]!==ce?(ue=(0,P.jsx)(c.default,{style:de,children:ce}),b[48]=de,b[49]=ce,b[50]=ue):ue=b[50],b[51]!==B.surface?(ge=[R.iconBtn,{backgroundColor:B.surface}],b[51]=B.surface,b[52]=ge):ge=b[52],b[53]!==B.foreground?(fe=(0,P.jsx)(v.X,{size:18,color:B.foreground}),b[53]=B.foreground,b[54]=fe):fe=b[54],b[55]!==q||b[56]!==ge||b[57]!==fe?(me=(0,P.jsx)(f.default,{onPress:q,hitSlop:10,style:ge,children:fe}),b[55]=q,b[56]=ge,b[57]=fe,b[58]=me):me=b[58],b[59]!==ue||b[60]!==me?(ye=(0,P.jsxs)(l.default,{style:R.header,children:[ue,me]}),b[59]=ue,b[60]=me,b[61]=ye):ye=b[61],b[62]!==X||b[63]!==B.danger||b[64]!==B.foregroundMuted||b[65]!==B.surface||b[66]!==ee||b[67]!==j||b[68]!==G?(pe=j?.base64?(0,P.jsxs)(l.default,{style:R.faceRow,children:[(0,P.jsx)(I.Image,{source:{uri:`data:image/jpeg;base64,${j.base64}`},style:[R.faceCrop,{backgroundColor:B.surface}],contentFit:"cover"}),(0,P.jsx)(c.default,{style:[R.faceHint,{color:B.foregroundMuted}],children:j.identityName??G("v2.tracks.notAssigned")}),j.assigned?(0,P.jsxs)(f.default,{onPress:ee,disabled:X,accessibilityRole:"button",accessibilityLabel:G("v2.tracks.removePerson"),style:[R.removeBtn,{backgroundColor:B.danger+"22",opacity:X?.5:1}],children:[(0,P.jsx)(v.UserRoundX,{size:16,color:B.danger}),(0,P.jsx)(c.default,{style:[R.removeBtnText,{color:B.danger}],children:G("v2.tracks.removePerson")})]}):null]}):null,b[62]=X,b[63]=B.danger,b[64]=B.foregroundMuted,b[65]=B.surface,b[66]=ee,b[67]=j,b[68]=G,b[69]=pe):pe=b[69],b[70]!==X||b[71]!==B.danger||b[72]!==ne||b[73]!==j||b[74]!==G?(be=j?.assigned&&void 0!==j.identityId?(0,P.jsxs)(f.default,{onPress:ne,disabled:X,accessibilityRole:"button",accessibilityLabel:G("v2.tracks.removePersonAll"),style:[R.removeAllBtn,{borderColor:B.danger,opacity:X?.5:1}],children:[(0,P.jsx)(v.Users,{size:16,color:B.danger}),(0,P.jsx)(c.default,{style:[R.removeAllBtnText,{color:B.danger}],children:G("v2.tracks.removePersonAll")})]}):null,b[70]=X,b[71]=B.danger,b[72]=ne,b[73]=j,b[74]=G,b[75]=be):be=b[75],b[76]!==G?(xe=G("v2.tracks.newPersonPlaceholder"),b[76]=G,b[77]=xe):xe=b[77];const he=!X;let ve,Ie,Se,Ce;b[78]!==B.foreground||b[79]!==B.surface?(ve=[R.input,{backgroundColor:B.surface,color:B.foreground}],b[78]=B.foreground,b[79]=B.surface,b[80]=ve):ve=b[80],b[81]!==B.foregroundSubtle||b[82]!==V||b[83]!==xe||b[84]!==he||b[85]!==ve?(Ie=(0,P.jsx)(u.default,{value:V,onChangeText:_,placeholder:xe,placeholderTextColor:B.foregroundSubtle,editable:he,style:ve}),b[81]=B.foregroundSubtle,b[82]=V,b[83]=xe,b[84]=he,b[85]=ve,b[86]=Ie):Ie=b[86],b[87]!==ae?(Se=()=>{ae()},b[87]=ae,b[88]=Se):Se=b[88],b[89]!==X||b[90]!==V?(Ce=X||0===V.trim().length,b[89]=X,b[90]=V,b[91]=Ce):Ce=b[91];const Ae=X||0===V.trim().length?.5:1;let Pe,je,ke,Re,Ne,Be,Ge,we,Te,ze,Fe,De;b[92]!==B.primary||b[93]!==Ae?(Pe=[R.createBtn,{backgroundColor:B.primary,opacity:Ae}],b[92]=B.primary,b[93]=Ae,b[94]=Pe):Pe=b[94],b[95]!==G?(je=G("v2.tracks.createAndAssign"),b[95]=G,b[96]=je):je=b[96],b[97]!==B.primaryForeground?(ke=(0,P.jsx)(v.UserRoundPlus,{size:16,color:B.primaryForeground}),b[97]=B.primaryForeground,b[98]=ke):ke=b[98],b[99]!==B.primaryForeground?(Re=[R.createBtnText,{color:B.primaryForeground}],b[99]=B.primaryForeground,b[100]=Re):Re=b[100],b[101]!==G?(Ne=G("v2.tracks.createAndAssign"),b[101]=G,b[102]=Ne):Ne=b[102],b[103]!==Re||b[104]!==Ne?(Be=(0,P.jsx)(c.default,{style:Re,children:Ne}),b[103]=Re,b[104]=Ne,b[105]=Be):Be=b[105],b[106]!==Se||b[107]!==Ce||b[108]!==Pe||b[109]!==je||b[110]!==ke||b[111]!==Be?(Ge=(0,P.jsxs)(f.default,{onPress:Se,disabled:Ce,style:Pe,accessibilityRole:"button",accessibilityLabel:je,children:[ke,Be]}),b[106]=Se,b[107]=Ce,b[108]=Pe,b[109]=je,b[110]=ke,b[111]=Be,b[112]=Ge):Ge=b[112],b[113]!==Ie||b[114]!==Ge?(we=(0,P.jsxs)(l.default,{style:R.createRow,children:[Ie,Ge]}),b[113]=Ie,b[114]=Ge,b[115]=we):we=b[115],b[116]!==B.danger||b[117]!==E?(Te=null!==E?(0,P.jsx)(c.default,{style:[R.error,{color:B.danger}],children:E}):null,b[116]=B.danger,b[117]=E,b[118]=Te):Te=b[118],b[119]!==B.foregroundSubtle?(ze=[R.sectionLabel,{color:B.foregroundSubtle}],b[119]=B.foregroundSubtle,b[120]=ze):ze=b[120],b[121]!==G?(Fe=G("v2.tracks.existingPersons"),b[121]=G,b[122]=Fe):Fe=b[122],b[123]!==ze||b[124]!==Fe?(De=(0,P.jsx)(c.default,{style:ze,children:Fe}),b[123]=ze,b[124]=Fe,b[125]=De):De=b[125];const Ue=w.bottom+C.SPACING.md;let Me,Le,We,He,Ve,Ee;return b[126]!==Ue?(Me={paddingBottom:Ue},b[126]=Ue,b[127]=Me):Me=b[127],b[128]!==K||b[129]!==X||b[130]!==B.foregroundMuted||b[131]!==B.primary||b[132]!==j?.identityId||b[133]!==F||b[134]!==U||b[135]!==G?(Le=F?(0,P.jsx)(p.default,{color:B.primary,style:R.loader}):0===U.length?(0,P.jsx)(c.default,{style:[R.empty,{color:B.foregroundMuted}],children:G("v2.tracks.noPersons")}):U.map(e=>(0,P.jsx)(k,{person:e,current:j?.identityId===e.id,disabled:X,onPress:()=>{K(e.id)}},e.id)),b[128]=K,b[129]=X,b[130]=B.foregroundMuted,b[131]=B.primary,b[132]=j?.identityId,b[133]=F,b[134]=U,b[135]=G,b[136]=Le):Le=b[136],b[137]!==Me||b[138]!==Le?(We=(0,P.jsx)(y.default,{style:R.list,contentContainerStyle:Me,children:Le}),b[137]=Me,b[138]=Le,b[139]=We):We=b[139],b[140]!==le||b[141]!==ye||b[142]!==pe||b[143]!==be||b[144]!==we||b[145]!==Te||b[146]!==De||b[147]!==We?(He=(0,P.jsxs)(l.default,{style:le,children:[ye,pe,be,we,Te,De,We]}),b[140]=le,b[141]=ye,b[142]=pe,b[143]=be,b[144]=we,b[145]=Te,b[146]=De,b[147]=We,b[148]=He):He=b[148],b[149]!==ie||b[150]!==He?(Ve=(0,P.jsxs)(l.default,{style:R.backdrop,children:[ie,He]}),b[149]=ie,b[150]=He,b[151]=Ve):Ve=b[151],b[152]!==q||b[153]!==Ve||b[154]!==T?(Ee=(0,P.jsx)(s.default,{visible:T,animationType:"slide",transparent:!0,onRequestClose:q,children:Ve}),b[152]=q,b[153]=Ve,b[154]=T,b[155]=Ee):Ee=b[155],Ee}),k=(0,o.memo)(function(e){const o=(0,t.c)(30),{person:n,current:s,disabled:u,onPress:y}=e,{colors:p}=(0,S.useTheme)(),b=u||s,x=s?p.primary+"22":"transparent";let h,C,A,j,k,N,B,G,w;return o[0]!==x?(h=[R.personRow,{backgroundColor:x}],o[0]=x,o[1]=h):h=o[1],o[2]!==p.foregroundMuted||o[3]!==p.surface||o[4]!==n.coverBase64?(C=n.coverBase64?(0,P.jsx)(I.Image,{source:{uri:`data:image/jpeg;base64,${n.coverBase64}`},style:[R.avatar,{backgroundColor:p.surface}],contentFit:"cover"}):(0,P.jsx)(l.default,{style:[R.avatar,R.avatarEmpty,{backgroundColor:p.surface}],children:(0,P.jsx)(v.UserRound,{size:18,color:p.foregroundMuted})}),o[2]=p.foregroundMuted,o[3]=p.surface,o[4]=n.coverBase64,o[5]=C):C=o[5],o[6]!==p.foreground?(A=[R.personName,{color:p.foreground}],o[6]=p.foreground,o[7]=A):A=o[7],o[8]!==n.name||o[9]!==A?(j=(0,P.jsx)(c.default,{numberOfLines:1,style:A,children:n.name}),o[8]=n.name,o[9]=A,o[10]=j):j=o[10],o[11]!==p.foregroundSubtle?(k=[R.personCount,{color:p.foregroundSubtle}],o[11]=p.foregroundSubtle,o[12]=k):k=o[12],o[13]!==n.sampleCount||o[14]!==k?(N=(0,P.jsx)(c.default,{style:k,children:n.sampleCount}),o[13]=n.sampleCount,o[14]=k,o[15]=N):N=o[15],o[16]!==j||o[17]!==N?(B=(0,P.jsxs)(l.default,{style:R.personText,children:[j,N]}),o[16]=j,o[17]=N,o[18]=B):B=o[18],o[19]!==p.primary||o[20]!==s?(G=s?(0,P.jsx)(v.Check,{size:18,color:p.primary}):null,o[19]=p.primary,o[20]=s,o[21]=G):G=o[21],o[22]!==y||o[23]!==n.name||o[24]!==b||o[25]!==G||o[26]!==h||o[27]!==C||o[28]!==B?(w=(0,P.jsxs)(f.default,{onPress:y,disabled:b,accessibilityRole:"button",accessibilityLabel:n.name,style:h,children:[C,B,G]}),o[22]=y,o[23]=n.name,o[24]=b,o[25]=G,o[26]=h,o[27]=C,o[28]=B,o[29]=w):w=o[29],w}),R=b.default.create({backdrop:{flex:1,justifyContent:'flex-end'},scrim:{position:'absolute',top:0,left:0,right:0,bottom:0,backgroundColor:'rgba(0,0,0,0.5)'},sheet:{maxHeight:'80%',borderTopLeftRadius:C.RADIUS.xl,borderTopRightRadius:C.RADIUS.xl,paddingHorizontal:C.SPACING.md,paddingTop:C.SPACING.md},header:{flexDirection:'row',alignItems:'center',justifyContent:'space-between',paddingBottom:C.SPACING.sm},title:{fontSize:18,fontWeight:'700'},iconBtn:{width:32,height:32,borderRadius:C.RADIUS.md,alignItems:'center',justifyContent:'center'},faceRow:{flexDirection:'row',alignItems:'center',gap:C.SPACING.md,paddingBottom:C.SPACING.sm},faceCrop:{width:56,height:56,borderRadius:C.RADIUS.md},faceHint:{flex:1,fontSize:13,fontWeight:'500'},removeBtn:{flexDirection:'row',alignItems:'center',gap:4,paddingHorizontal:C.SPACING.md,paddingVertical:C.SPACING.sm,borderRadius:C.RADIUS.md},removeBtnText:{fontSize:13,fontWeight:'700'},removeAllBtn:{flexDirection:'row',alignItems:'center',justifyContent:'center',gap:C.SPACING.xs,paddingVertical:C.SPACING.sm,borderRadius:C.RADIUS.md,borderWidth:1,marginBottom:C.SPACING.sm},removeAllBtnText:{fontSize:13,fontWeight:'700'},createRow:{flexDirection:'row',gap:C.SPACING.sm,alignItems:'center'},input:{flex:1,borderRadius:C.RADIUS.md,paddingHorizontal:C.SPACING.sm,paddingVertical:C.SPACING.sm,fontSize:14},createBtn:{flexDirection:'row',alignItems:'center',gap:4,paddingHorizontal:C.SPACING.md,paddingVertical:C.SPACING.sm+2,borderRadius:C.RADIUS.md},createBtnText:{fontSize:13,fontWeight:'700'},error:{fontSize:12,fontWeight:'600',marginTop:C.SPACING.xs},sectionLabel:{fontSize:11,fontWeight:'700',textTransform:'uppercase',letterSpacing:.4,marginTop:C.SPACING.md,marginBottom:C.SPACING.xs},list:{flexGrow:0},loader:{marginVertical:C.SPACING.lg},empty:{fontSize:13,paddingVertical:C.SPACING.md},personRow:{flexDirection:'row',alignItems:'center',gap:C.SPACING.md,paddingVertical:C.SPACING.sm,paddingHorizontal:C.SPACING.sm,borderRadius:C.RADIUS.md},avatar:{width:40,height:40,borderRadius:20},avatarEmpty:{alignItems:'center',justifyContent:'center'},personText:{flex:1},personName:{fontSize:15,fontWeight:'600'},personCount:{fontSize:11}})},3374,[15,17,133,245,20,112,262,252,147,240,33,466,786,813,3053,2587,2589,3375,10]);
15796
15796
  __d(function(g,r,i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.toFaceInfo=c,e.toIdentity=o,e.sortIdentities=u,e.collectFaceIdsForIdentity=l,e.toMassUnassignResult=y,e.useTrackFace=function(o,u,l){const y=(0,t.c)(11),{controller:I,state:v}=(0,a.useConnection)();let p;y[0]!==o||y[1]!==u?(p=["v2",f,o,u],y[0]=o,y[1]=u,y[2]=p):p=y[2];const w=l&&"connected"===v;let C,h;y[3]!==I||y[4]!==o||y[5]!==u?(C=async()=>{const t=I.getSystem();if(!t)return null;return c(await(0,s.capQuery)(t.trpcClient,"faceGallery","getFaceByTrack",{deviceId:o,trackId:u}))},y[3]=I,y[4]=o,y[5]=u,y[6]=C):C=y[6];y[7]!==p||y[8]!==w||y[9]!==C?(h={queryKey:p,enabled:w,staleTime:3e4,queryFn:C},y[7]=p,y[8]=w,y[9]=C,y[10]=h):h=y[10];return(0,n.useQuery)(h)},e.useIdentities=function(c){const l=(0,t.c)(6),{controller:y,state:f}=(0,a.useConnection)();let v;l[0]===Symbol.for("react.memo_cache_sentinel")?(v=["v2",I],l[0]=v):v=l[0];const p=c&&"connected"===f;let w,C;l[1]!==y?(w=async()=>{const t=y.getSystem();if(!t)return[];const n=await(0,s.capQuery)(t.trpcClient,"faceGallery","listIdentities");if(!Array.isArray(n))return[];const a=[];for(const t of n){const n=o(t);null!==n&&a.push(n)}return u(a)},l[1]=y,l[2]=w):w=l[2];l[3]!==p||l[4]!==w?(C={queryKey:v,enabled:p,staleTime:3e4,queryFn:w},l[3]=p,l[4]=w,l[5]=C):C=l[5];return(0,n.useQuery)(C)},e.useAssignFace=function(){const s=(0,t.c)(7),{controller:c}=(0,a.useConnection)(),o=(0,n.useQueryClient)();let u,l,y;s[0]!==c?(u=async t=>{const{faceId:n,identityId:a}=t,s=c.getSystem();if(!s)throw new Error("not connected");await p(s.trpcClient,"faceGallery","assignFace",{faceId:n,identityId:a})},s[0]=c,s[1]=u):u=s[1];s[2]!==o?(l=async()=>{await o.invalidateQueries({queryKey:["v2",f]}),await o.invalidateQueries({queryKey:["v2",I]}),await o.invalidateQueries({queryKey:["v2",v]})},s[2]=o,s[3]=l):l=s[3];s[4]!==u||s[5]!==l?(y={mutationFn:u,onSuccess:l},s[4]=u,s[5]=l,s[6]=y):y=s[6];return(0,n.useMutation)(y)},e.useUnassignFace=function(){const s=(0,t.c)(7),{controller:c}=(0,a.useConnection)(),o=(0,n.useQueryClient)();let u,l,y;s[0]!==c?(u=async t=>{const{faceId:n}=t,a=c.getSystem();if(!a)throw new Error("not connected");await p(a.trpcClient,"faceGallery","unassignFace",{faceId:n})},s[0]=c,s[1]=u):u=s[1];s[2]!==o?(l=async()=>{await o.invalidateQueries({queryKey:["v2",f]}),await o.invalidateQueries({queryKey:["v2",I]}),await o.invalidateQueries({queryKey:["v2",v]})},s[2]=o,s[3]=l):l=s[3];s[4]!==u||s[5]!==l?(y={mutationFn:u,onSuccess:l},s[4]=u,s[5]=l,s[6]=y):y=s[6];return(0,n.useMutation)(y)},e.useUnassignAllForIdentity=function(){const c=(0,t.c)(7),{controller:o}=(0,a.useConnection)(),u=(0,n.useQueryClient)();let w,C,h;c[0]!==o?(w=async t=>{const{identityId:n}=t,a=o.getSystem();if(!a)throw new Error("not connected");const c=a.trpcClient,u=l(await(0,s.capQuery)(c,"faceGallery","listRecentFaces",{filter:"all"}),n);if(0===u.length)return{unassigned:0,failed:[]};return y(await p(a.trpcClient,"faceGallery","unassignFaces",{faceIds:u}))},c[0]=o,c[1]=w):w=c[1];c[2]!==u?(C=async()=>{await u.invalidateQueries({queryKey:["v2",f]}),await u.invalidateQueries({queryKey:["v2",I]}),await u.invalidateQueries({queryKey:["v2",v]})},c[2]=u,c[3]=C):C=c[3];c[4]!==w||c[5]!==C?(h={mutationFn:w,onSuccess:C},c[4]=w,c[5]=C,c[6]=h):h=c[6];return(0,n.useMutation)(h)},e.useCreateIdentity=function(){const s=(0,t.c)(7),{controller:c}=(0,a.useConnection)(),u=(0,n.useQueryClient)();let l,y,f;s[0]!==c?(l=async t=>{const{name:n}=t,a=c.getSystem();if(!a)throw new Error("not connected");const s=o(await p(a.trpcClient,"faceGallery","createIdentity",{name:n}));if(null===s)throw new Error("createIdentity failed");return s},s[0]=c,s[1]=l):l=s[1];s[2]!==u?(y=async()=>{await u.invalidateQueries({queryKey:["v2",I]})},s[2]=u,s[3]=y):y=s[3];s[4]!==l||s[5]!==y?(f={mutationFn:l,onSuccess:y},s[4]=l,s[5]=y,s[6]=f):f=s[6];return(0,n.useMutation)(f)};var t=r(d[0]),n=r(d[1]),a=r(d[2]),s=r(d[3]);function c(t){return(0,s.isRecord)(t)?'string'!=typeof t.faceId||0===t.faceId.length||'number'!=typeof t.deviceId||'string'!=typeof t.trackId||0===t.trackId.length?null:{faceId:t.faceId,deviceId:t.deviceId,trackId:t.trackId,timestamp:'number'==typeof t.timestamp?t.timestamp:0,assigned:!0===t.assigned,identityId:'string'==typeof t.recognizedIdentityId&&t.recognizedIdentityId.length>0?t.recognizedIdentityId:void 0,identityName:'string'==typeof t.identityName&&t.identityName.length>0?t.identityName:void 0,base64:'string'==typeof t.base64&&t.base64.length>0?t.base64:void 0}:null}function o(t){return(0,s.isRecord)(t)?'string'!=typeof t.id||0===t.id.length||'string'!=typeof t.name||0===t.name.length?null:{id:t.id,name:t.name,sampleCount:'number'==typeof t.sampleCount?t.sampleCount:0,coverBase64:'string'==typeof t.coverBase64&&t.coverBase64.length>0?t.coverBase64:void 0}:null}function u(t){return[...t].sort((t,n)=>t.name.toLowerCase().localeCompare(n.name.toLowerCase()))}function l(t,n){if(!Array.isArray(t)||0===n.length)return[];const a=[];for(const s of t){const t=c(s);null!==t&&t.identityId===n&&a.push(t.faceId)}return a}function y(t){if(!(0,s.isRecord)(t))return{unassigned:0,failed:[]};return{unassigned:'number'==typeof t.unassigned?t.unassigned:0,failed:Array.isArray(t.failed)?t.failed.filter(t=>'string'==typeof t):[]}}const f='track-face',I='face-identities',v='tracks-feed';async function p(t,n,a,c){const o=t[n],u=(0,s.isRecord)(o)||'function'==typeof o?o[a]:void 0,l=null!=u?u.mutate:void 0;if('function'!=typeof l)throw new Error(`${n}.${a} unavailable`);return await l(c)}},3375,[15,3081,2594,3162]);
15797
15797
  __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,"TrackMetadataSheet",{enumerable:!0,get:function(){return j}});var t=r(d[0]),o=r(d[1]),l=e(r(d[2])),n=e(r(d[3])),s=e(r(d[4])),c=e(r(d[5])),u=e(r(d[6])),f=e(r(d[7])),b=r(d[8]),m=r(d[9]),y=r(d[10]),p=r(d[11]),k=r(d[12]),v=r(d[13]),h=r(d[14]);function S(e){return`${new Date(e).toLocaleString()} (${e})`}function x(e,t,o){return[{key:'trackId',label:o('v2.tracks.meta.trackId'),value:e.trackId},{key:'bestEventId',label:o('v2.tracks.meta.eventId'),value:e.bestEventId},{key:'deviceId',label:o('v2.tracks.meta.deviceId'),value:String(e.deviceId)},{key:'camera',label:o('v2.tracks.meta.camera'),value:e.cameraName},{key:'className',label:o('v2.tracks.meta.className'),value:e.className},...void 0!==e.label?[{key:'label',label:o('v2.tracks.meta.label'),value:e.label}]:[],{key:'firstSeen',label:o('v2.tracks.meta.firstSeen'),value:S(e.firstSeen),copyValue:String(e.firstSeen)},{key:'lastSeen',label:o('v2.tracks.meta.lastSeen'),value:S(e.lastSeen),copyValue:String(e.lastSeen)},{key:'state',label:o('v2.tracks.meta.state'),value:e.state},...'number'==typeof e.importance?[{key:'importance',label:o('v2.tracks.meta.importance'),value:`${Math.round(100*e.importance)}%`,copyValue:String(e.importance)}]:[],...void 0!==e.importanceReason?[{key:'reason',label:o('v2.tracks.reason'),value:e.importanceReason}]:[],...'number'==typeof t?[{key:'confidence',label:o('v2.tracks.meta.confidence'),value:`${Math.round(100*t)}%`,copyValue:String(t)}]:[],...e.zonesVisited.length>0?[{key:'zones',label:o('v2.tracks.zones'),value:e.zonesVisited.join(', ')}]:[],...e.audioLabels.length>0?[{key:'audio',label:o('v2.tracks.audio'),value:e.audioLabels.join(', ')}]:[]]}const j=(0,o.memo)(function(e){const o=(0,t.c)(47),{track:f,confidence:v,mediaKeys:S,onClose:j}=e,{colors:I}=(0,p.useTheme)(),{t:R}=(0,m.useTranslation)(),A=(0,b.useSafeAreaInsets)(),P=null!==f;let V,z,N,M,B,L,G,D,E;o[0]!==j?(V=(0,h.jsx)(c.default,{style:C.scrim,onPress:j,accessibilityRole:"button"}),o[0]=j,o[1]=V):V=o[1],o[2]!==I.backgroundElevated?(z=[C.sheet,{backgroundColor:I.backgroundElevated}],o[2]=I.backgroundElevated,o[3]=z):z=o[3],o[4]!==I.foreground?(N=[C.title,{color:I.foreground}],o[4]=I.foreground,o[5]=N):N=o[5],o[6]!==R?(M=R("v2.tracks.metadata"),o[6]=R,o[7]=M):M=o[7],o[8]!==N||o[9]!==M?(B=(0,h.jsx)(s.default,{style:N,children:M}),o[8]=N,o[9]=M,o[10]=B):B=o[10],o[11]!==I.surface?(L=[C.iconBtn,{backgroundColor:I.surface}],o[11]=I.surface,o[12]=L):L=o[12],o[13]!==I.foreground?(G=(0,h.jsx)(y.X,{size:18,color:I.foreground}),o[13]=I.foreground,o[14]=G):G=o[14],o[15]!==j||o[16]!==L||o[17]!==G?(D=(0,h.jsx)(c.default,{onPress:j,hitSlop:10,style:L,children:G}),o[15]=j,o[16]=L,o[17]=G,o[18]=D):D=o[18],o[19]!==B||o[20]!==D?(E=(0,h.jsxs)(n.default,{style:C.header,children:[B,D]}),o[19]=B,o[20]=D,o[21]=E):E=o[21];const _=A.bottom+k.SPACING.md;let W,U,$,H,K,O,q;return o[22]!==_?(W={paddingBottom:_},o[22]=_,o[23]=W):W=o[23],o[24]!==v||o[25]!==R||o[26]!==f?(U=null!==f?x(f,v,R).map(T):null,o[24]=v,o[25]=R,o[26]=f,o[27]=U):U=o[27],o[28]!==I.foregroundSubtle||o[29]!==S||o[30]!==R?($=S.length>0?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(s.default,{style:[C.sectionLabel,{color:I.foregroundSubtle}],children:R("v2.tracks.meta.mediaKeys")}),S.map(w)]}):null,o[28]=I.foregroundSubtle,o[29]=S,o[30]=R,o[31]=$):$=o[31],o[32]!==W||o[33]!==U||o[34]!==$?(H=(0,h.jsxs)(u.default,{contentContainerStyle:W,children:[U,$]}),o[32]=W,o[33]=U,o[34]=$,o[35]=H):H=o[35],o[36]!==E||o[37]!==H||o[38]!==z?(K=(0,h.jsxs)(n.default,{style:z,children:[E,H]}),o[36]=E,o[37]=H,o[38]=z,o[39]=K):K=o[39],o[40]!==K||o[41]!==V?(O=(0,h.jsxs)(n.default,{style:C.backdrop,children:[V,K]}),o[40]=K,o[41]=V,o[42]=O):O=o[42],o[43]!==j||o[44]!==P||o[45]!==O?(q=(0,h.jsx)(l.default,{visible:P,animationType:"slide",transparent:!0,onRequestClose:j,children:O}),o[43]=j,o[44]=P,o[45]=O,o[46]=q):q=o[46],q}),I=(0,o.memo)(function(e){const l=(0,t.c)(40),{label:u,value:f,copyValue:b}=e,{colors:k}=(0,p.useTheme)(),{t:S}=(0,m.useTranslation)(),[x,j]=(0,o.useState)(!1);let I,T,w;l[0]!==x?(I=()=>{if(!x)return;const e=setTimeout(()=>j(!1),1500);return()=>clearTimeout(e)},T=[x],l[0]=x,l[1]=I,l[2]=T):(I=l[1],T=l[2]),(0,o.useEffect)(I,T),l[3]!==b?(w=async()=>{await(0,v.copyText)(b)&&j(!0)},l[3]=b,l[4]=w):w=l[4];const R=w;let A,P,V,z,N,M,B,L,G,D,E,_;return l[5]!==k.borderSubtle?(A=[C.row,{borderBottomColor:k.borderSubtle}],l[5]=k.borderSubtle,l[6]=A):A=l[6],l[7]!==k.foregroundMuted?(P=[C.rowLabel,{color:k.foregroundMuted}],l[7]=k.foregroundMuted,l[8]=P):P=l[8],l[9]!==u||l[10]!==P?(V=(0,h.jsx)(s.default,{style:P,children:u}),l[9]=u,l[10]=P,l[11]=V):V=l[11],l[12]!==k.foreground?(z=[C.rowValue,{color:k.foreground}],l[12]=k.foreground,l[13]=z):z=l[13],l[14]!==z||l[15]!==f?(N=(0,h.jsx)(s.default,{selectable:!0,style:z,children:f}),l[14]=z,l[15]=f,l[16]=N):N=l[16],l[17]!==V||l[18]!==N?(M=(0,h.jsxs)(n.default,{style:C.rowText,children:[V,N]}),l[17]=V,l[18]=N,l[19]=M):M=l[19],l[20]!==R?(B=()=>{R()},l[20]=R,l[21]=B):B=l[21],l[22]!==x||l[23]!==S?(L=S(x?"v2.tracks.copied":"v2.tracks.copy"),l[22]=x,l[23]=S,l[24]=L):L=l[24],l[25]!==k.surface?(G=[C.copyBtn,{backgroundColor:k.surface}],l[25]=k.surface,l[26]=G):G=l[26],l[27]!==k.foregroundMuted||l[28]!==k.success||l[29]!==x?(D=x?(0,h.jsx)(y.Check,{size:14,color:k.success}):(0,h.jsx)(y.Copy,{size:14,color:k.foregroundMuted}),l[27]=k.foregroundMuted,l[28]=k.success,l[29]=x,l[30]=D):D=l[30],l[31]!==B||l[32]!==L||l[33]!==G||l[34]!==D?(E=(0,h.jsx)(c.default,{onPress:B,hitSlop:8,accessibilityRole:"button",accessibilityLabel:L,style:G,children:D}),l[31]=B,l[32]=L,l[33]=G,l[34]=D,l[35]=E):E=l[35],l[36]!==E||l[37]!==A||l[38]!==M?(_=(0,h.jsxs)(n.default,{style:A,children:[M,E]}),l[36]=E,l[37]=A,l[38]=M,l[39]=_):_=l[39],_}),C=f.default.create({backdrop:{flex:1,justifyContent:'flex-end'},scrim:{position:'absolute',top:0,left:0,right:0,bottom:0,backgroundColor:'rgba(0,0,0,0.5)'},sheet:{maxHeight:'80%',borderTopLeftRadius:k.RADIUS.xl,borderTopRightRadius:k.RADIUS.xl,paddingHorizontal:k.SPACING.md,paddingTop:k.SPACING.md},header:{flexDirection:'row',alignItems:'center',justifyContent:'space-between',paddingBottom:k.SPACING.sm},title:{fontSize:18,fontWeight:'700'},iconBtn:{width:32,height:32,borderRadius:k.RADIUS.md,alignItems:'center',justifyContent:'center'},sectionLabel:{fontSize:11,fontWeight:'700',textTransform:'uppercase',letterSpacing:.4,marginTop:k.SPACING.md,marginBottom:k.SPACING.xs},row:{flexDirection:'row',alignItems:'center',gap:k.SPACING.sm,paddingVertical:k.SPACING.sm,borderBottomWidth:f.default.hairlineWidth},rowText:{flex:1},rowLabel:{fontSize:11,fontWeight:'600',textTransform:'uppercase',letterSpacing:.3},rowValue:{fontSize:13,marginTop:1},copyBtn:{width:30,height:30,borderRadius:k.RADIUS.md,alignItems:'center',justifyContent:'center'}});function T(e){return(0,h.jsx)(I,{label:e.label,value:e.value,copyValue:e.copyValue??e.value},e.key)}function w(e){return(0,h.jsx)(I,{label:e.kind,value:e.key,copyValue:e.key},e.key)}},3376,[15,17,245,20,112,252,147,33,466,786,813,2587,2589,3377,10]);
15798
15798
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.copyText=async function(t){if(null==t)return!1;const n='string'==typeof t?t:String(t);try{{const t='undefined'!=typeof navigator?navigator.clipboard:void 0;return!!t?.writeText&&(await t.writeText(n),!0)}}catch{return!1}},r(d[0])},3377,{"0":136,"1":3599,"2":3378,"paths":{"3599":"/viewer/camstack/_expo/static/js/web/Clipboard-2b3a3b41457cedb4c92b5b20a05806d2.js"}});
15799
15799
  __d(function(g,r,i,a,m,e,d){m.exports=r(d[0])},3378,[3379]);
15800
15800
  __d(function(g,r,i,a,m,e,d){function n(n,t){const o=globalThis[`${__METRO_GLOBAL_PREFIX__??''}__loadBundleAsync`];if(null!=o){const s=String(n);if(null!=t){const n=t[s];if(null!=n)return o(n)}}}function t(t,o,s){const u=()=>r.importAll(t,s);try{return u()}catch(s){const c=n(t,o);if(null!=c)return c.then(u);throw s}const c=n(t,o);return null!=c?c.then(u):u()}function o(n,o,s){const u=t(n,o,s);return u instanceof Promise?{_result:u,then:(n,t)=>u.then(n,t)}:{_result:u,then:(n,t)=>Promise.resolve(u).then(n,t)}}o.unstable_importMaybeSync=function(n,o){return t(n,o)},o.prefetch=function(t,o,s){n(t,o)?.then(()=>{},()=>{})},o.unstable_resolve=function(n,t){if(!t)throw new Error('Bundle splitting is required for Web Worker imports');const o=t[n];if(!o)throw new Error('Worker import is missing from split bundle paths: '+o);return o},o.unstable_createWorker=function(n,t){if('undefined'==typeof crossOriginIsolated||!crossOriginIsolated)return new Worker(n,t);try{const s=(o=n,`\n const ASYNC_WORKER_BASE = ${JSON.stringify(o)};\n const IMPORT_SCRIPTS = importScripts;\n const FETCH = fetch;\n const fromBaseURL = (input) => new URL(input, ASYNC_WORKER_BASE).href;\n self.fetch = function(input, init) {\n return FETCH(typeof input === 'string' ? fromBaseURL(input) : input, init);\n };\n self.importScripts = function(...urls) {\n return IMPORT_SCRIPTS.apply(self, urls.map(fromBaseURL));\n };\n importScripts(ASYNC_WORKER_BASE);\n `);return n=URL.createObjectURL(new Blob([s],{type:'text/javascript'})),new Worker(n,t)}finally{URL.revokeObjectURL(n)}var o},m.exports=o},3379,[]);
15801
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useTrackDetailMedia=function(u,k,y){const v=(0,t.c)(26),{controller:f,state:p}=(0,l.useConnection)(),b=k??"none",M=y??"none";let _;v[0]!==u||v[1]!==b||v[2]!==M?(_=["v2","analytics","track-detail-media",u,b,M],v[0]=u,v[1]=b,v[2]=M,v[3]=_):_=v[3];const F="connected"===p&&null!==k;let T,h;v[4]!==k||v[5]!==f||v[6]!==y?(T=async()=>{const t=f.getSystem();if(!t||null===k)return{event:[],track:[]};const n=t.trpcClient,[l,o]=await Promise.all([(0,c.capQuery)(n,"pipelineAnalytics","getEventMedia",{eventId:k}),null!==y?(0,c.capQuery)(n,"pipelineAnalytics","getTrackMedia",{trackId:y}):Promise.resolve(null)]);return{event:(0,s.parseMediaFiles)(l),track:(0,s.parseMediaFiles)(o)}},v[4]=k,v[5]=f,v[6]=y,v[7]=T):T=v[7];v[8]!==_||v[9]!==F||v[10]!==T?(h={queryKey:_,enabled:F,staleTime:6e4,queryFn:T},v[8]=_,v[9]=F,v[10]=T,v[11]=h):h=v[11];const S=(0,n.useQuery)(h);let I;e:{if(!S.data){I=o;break e}let t;v[12]!==S.data.event||v[13]!==S.data.track?(t=(0,s.resolveTrackDetailImages)(S.data.event,S.data.track),v[12]=S.data.event,v[13]=S.data.track,v[14]=t):t=v[14],I=t}const L=I;let P;e:{if(!S.data){let t;v[15]===Symbol.for("react.memo_cache_sentinel")?(t=[],v[15]=t):t=v[15],P=t;break e}let t;if(v[16]!==S.data.event||v[17]!==S.data.track){const n=new Set;t=[];for(const l of[...S.data.event,...S.data.track])n.has(l.key)||(n.add(l.key),t.push({key:l.key,kind:l.kind}));v[16]=S.data.event,v[17]=S.data.track,v[18]=t}else t=v[18];P=t}const Q=P;let U;v[19]!==S.data?(U=S.data?(0,s.buildTrackGallery)(S.data.event,S.data.track):[],v[19]=S.data,v[20]=U):U=v[20];const j=U;let q;v[21]!==j||v[22]!==L||v[23]!==Q||v[24]!==S.isLoading?(q=Object.assign({},L,{loading:S.isLoading,mediaKeys:Q,gallery:j}),v[21]=j,v[22]=L,v[23]=Q,v[24]=S.isLoading,v[25]=q):q=v[25];return q};var t=r(d[0]);r(d[1]);var n=r(d[2]),l=r(d[3]),c=r(d[4]),s=r(d[5]);const o={cropUri:null,fullFrameUri:null,fullFrameBoxedUri:null,hasServerBoxed:!1}},3380,[15,17,3081,2594,3162,3381]);
15802
- __d(function(g,_r,_i,_a,m,e,d){"use strict";function t(t){return'object'==typeof t&&null!==t&&!Array.isArray(t)}function n(t){return Array.isArray(t)?t.filter(t=>'string'==typeof t&&t.length>0):[]}function r(n){if(!Array.isArray(n))return[];const r=[];for(const a of n)t(a)&&'string'==typeof a.label&&a.label.length>0&&(r.includes(a.label)||r.push(a.label));return r}function a(t,n){return t.find(t=>t.kind===n)}function l(t){return t?`data:image/jpeg;base64,${t.base64}`:null}Object.defineProperty(e,'__esModule',{value:!0}),e.toTrackSummary=function(a,l){if(!t(a))return null;if('string'!=typeof a.trackId||0===a.trackId.length)return null;if('number'!=typeof a.deviceId)return null;if('string'!=typeof a.className||0===a.className.length)return null;if('number'!=typeof a.firstSeen||'number'!=typeof a.lastSeen)return null;const s='string'==typeof a.bestEventId&&a.bestEventId.length>0?a.bestEventId:a.trackId;return{trackId:a.trackId,deviceId:a.deviceId,cameraName:l,className:a.className,label:'string'==typeof a.label&&a.label.length>0?a.label:void 0,importance:'number'==typeof a.importance?a.importance:void 0,importanceReason:'string'==typeof a.importanceReason?a.importanceReason:void 0,firstSeen:a.firstSeen,lastSeen:a.lastSeen,state:'string'==typeof a.state?a.state:'idle',active:!0===a.active,zonesVisited:n(a.zonesVisited),audioLabels:r(a.audioLabels),bestEventId:s}},e.trackLabels=function(t){const n=[t.className];void 0===t.label||n.includes(t.label)||n.push(t.label);for(const r of t.audioLabels)n.includes(r)||n.push(r);return n},e.hasAnyImportance=function(t){return t.some(t=>'number'==typeof t.importance)},e.sortTracks=function(t,n){const r=[...t];return'time'===n?r.sort((t,n)=>n.lastSeen-t.lastSeen):r.sort((t,n)=>{const r=t.importance??Number.NEGATIVE_INFINITY,a=n.importance??Number.NEGATIVE_INFINITY;return r!==a?a-r:n.lastSeen-t.lastSeen})},e.parseMediaFiles=function(n){if(!Array.isArray(n))return[];const r=[];for(const a of n){if(!t(a))continue;const n='string'==typeof a.key&&a.key.length>0?a.key:null,l='string'==typeof a.kind&&a.kind.length>0?a.kind:null,s='string'==typeof a.base64&&a.base64.length>0?a.base64:null,i='number'==typeof a.timestamp?a.timestamp:0;null!==n&&null!==l&&null!==s&&r.push({key:n,kind:l,base64:s,timestamp:i})}return r},e.pickMediaByKind=a,e.mediaDataUri=l,e.resolveTrackDetailImages=function(t,n){const r=a(t,'crop')??a(n,'thumbnail'),s=a(t,'fullFrameBoxed'),i=a(t,'fullFrame')??a(n,'keyFrame')??a(n,'firstFrame')??a(n,'lastFrame');return{cropUri:l(r),fullFrameUri:l(i),fullFrameBoxedUri:l(s),hasServerBoxed:void 0!==s}},e.buildTrackGallery=function(t,n){const r=new Map;for(const a of[...t,...n])r.has(a.key)||r.set(a.key,a);const a=t=>{const n=s.indexOf(t);return-1===n?s.length:n};return[...r.values()].sort((t,n)=>{const r=a(t.kind),l=a(n.kind);return r!==l?r-l:t.timestamp!==n.timestamp?t.timestamp-n.timestamp:t.key<n.key?-1:t.key>n.key?1:0})},e.cleanFrameKey=function(t){const n=a(t,'fullFrame')??a(t,'keyFrame')??a(t,'firstFrame')??a(t,'lastFrame');return n?.key??null},e.shouldRenderFaceSection=function(t){return null!=t},e.toScoredResult=function(n){if(!t(n))return null;if('string'!=typeof n.id||0===n.id.length)return null;if('number'!=typeof n.deviceId)return null;if('string'!=typeof n.className||0===n.className.length)return null;if('number'!=typeof n.timestamp)return null;if('number'!=typeof n.score)return null;const r='string'==typeof n.mediaKey&&n.mediaKey.length>0?n.mediaKey:null,a='string'==typeof n.trackId&&n.trackId.length>0?n.trackId:null,l=r??a??n.id;return Object.assign({id:n.id,deviceId:n.deviceId,timestamp:n.timestamp,className:n.className,label:'string'==typeof n.label&&n.label.length>0?n.label:void 0,score:n.score,thumbId:l},null!==a?{trackId:a}:{})},e.scoredToTrackSummary=function(t,n){return{trackId:t.trackId??t.id,deviceId:t.deviceId,cameraName:n,className:t.className,label:t.label,firstSeen:t.timestamp,lastSeen:t.timestamp,state:'idle',active:!1,zonesVisited:[],audioLabels:[],bestEventId:t.thumbId}};const s=['crop','thumbnail','faceCrop','plateCrop','fullFrame','fullFrameBoxed','keyFrame','firstFrame','lastFrame','snapshot']},3381,[]);
15803
- __d(function(g,r,i,a,m,e,_d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useTrackBestDetection=function(u,d,f,y,v,b){const p=(0,n.c)(17),{controller:_,state:j}=(0,l.useConnection)(),k=d??"none";let A;p[0]!==u||p[1]!==k?(A=["v2","analytics","track-best-detection",u,k],p[0]=u,p[1]=k,p[2]=A):A=p[2];const D=b&&"connected"===j&&null!==d;let L,q;p[3]!==f||p[4]!==_||p[5]!==u||p[6]!==y||p[7]!==v||p[8]!==d?(L=async()=>{const n=_.getSystem();if(!n||null===d)return null;const t=await(0,c.capQuery)(n.trpcClient,"pipelineAnalytics","getObjectEvents",{deviceId:u,since:y-s,until:v+s,limit:500,projection:"full"});if(!Array.isArray(t))return null;let l=null;for(const n of t){const t=(0,o.toDetailDetection)(n);if(null!==t&&t.trackId===d&&void 0!==t.bbox){if(null!==f&&t.id===f)return t;(null===l||(t.confidence??0)>(l.confidence??0))&&(l=t)}}return l},p[3]=f,p[4]=_,p[5]=u,p[6]=y,p[7]=v,p[8]=d,p[9]=L):L=p[9];p[10]!==A||p[11]!==D||p[12]!==L?(q={queryKey:A,enabled:D,staleTime:6e4,queryFn:L},p[10]=A,p[11]=D,p[12]=L,p[13]=q):q=p[13];const C=(0,t.useQuery)(q),I=C.data??null;let O;p[14]!==C.isLoading||p[15]!==I?(O={detection:I,loading:C.isLoading},p[14]=C.isLoading,p[15]=I,p[16]=O):O=p[16];return O};var n=r(_d[0]);r(_d[1]);var t=r(_d[2]),l=r(_d[3]),c=r(_d[4]),o=r(_d[5]);const s=2e3},3382,[15,17,3081,2594,3162,3240]);
15804
- __d(function(g,r,i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"WINDOW_MS",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"FLOOR_MS",{enumerable:!0,get:function(){return h}}),e.trackWindow=P,e.nextWindowStart=y,e.useTracksFeed=function(f,S,I){const L=(0,t.c)(50),{controller:v,state:C}=(0,s.useConnection)(),{data:F}=(0,c.useCameras)(),O=I?.perCameraLimit??p,_=I?.maxAgeMs??h;let D,T;L[0]!==F?(D=F??[],L[0]=F,L[1]=D):D=L[1];L[2]!==D?(T=D.map(x),L[2]=D,L[3]=T):T=L[3];const j=T;let A;L[4]!==j?(A=j.map(k).join(","),L[4]=j,L[5]=A):A=L[5];const W=A,[q]=(0,a.useState)(b),Q=S??q;let $;L[6]!==Q||L[7]!==W||L[8]!==_||L[9]!==O?($=["v2","tracks-feed",W,Q,O,_],L[6]=Q,L[7]=W,L[8]=_,L[9]=O,L[10]=$):$=L[10];const K="connected"===C&&j.length>0;let R,z,B;L[11]!==Q||L[12]!==j||L[13]!==v||L[14]!==_||L[15]!==O?(R=async t=>{const{pageParam:a}=t,{untilMs:n,sinceMs:s}=P(a,Q,_),c=v.getSystem();if(!c)return{tracks:[],untilMs:n,sinceMs:s};const f=c.trpcClient,h=Date.now(),p=(await Promise.all(j.map(async t=>{const a=await(0,l.capQuery)(f,"pipelineAnalytics","listTracks",{deviceId:t.id,since:s,until:n,limit:O}).catch(a=>(o.log.warn("tracks-feed","listTracks failed",{cameraId:t.id,error:String(a)}),null));if(!Array.isArray(a))return[];const c=[];for(const n of a){const a=(0,u.toTrackSummary)(n,t.name);null!==a&&c.push(a)}return c}))).flat().sort(w);return o.log.debug("tracks-feed","page loaded",{ms:Date.now()-h,cameras:j.length,rows:p.length,limit:O}),{tracks:p,untilMs:n,sinceMs:s}},L[11]=Q,L[12]=j,L[13]=v,L[14]=_,L[15]=O,L[16]=R):R=L[16];L[17]!==Q||L[18]!==_?(z=t=>y(t.sinceMs,Q,_),L[17]=Q,L[18]=_,L[19]=z):z=L[19];L[20]!==Q||L[21]!==$||L[22]!==K||L[23]!==R||L[24]!==z?(B={queryKey:$,enabled:K,staleTime:3e4,placeholderData:N,initialPageParam:Q,queryFn:R,getNextPageParam:z},L[20]=Q,L[21]=$,L[22]=K,L[23]=R,L[24]=z,L[25]=B):B=L[25];const E=(0,n.useInfiniteQuery)(B);let G,H;L[26]!==E.data?.pages?(G=E.data?.pages??[],L[26]=E.data?.pages,L[27]=G):G=L[27];L[28]!==G?(H=G.flatMap(M),L[28]=G,L[29]=H):H=L[29];const J=H;let U;if(L[30]!==J){const t=new Set;for(const a of J)t.add(a.className);U=[...t].sort(),L[30]=J,L[31]=U}else U=L[31];const V=U;let X;if(L[32]!==J||L[33]!==f.cameraIds||L[34]!==f.classes||L[35]!==f.label){const t=f.cameraIds.length>0?new Set(f.cameraIds):null,a=f.classes.length>0?new Set(f.classes):null,n=f.label.trim().toLowerCase();X=J.filter(s=>{if(t&&!t.has(s.deviceId))return!1;if(a&&!a.has(s.className))return!1;if(n.length>0){if(!`${s.label??""} ${s.className}`.toLowerCase().includes(n))return!1}return!0}),L[32]=J,L[33]=f.cameraIds,L[34]=f.classes,L[35]=f.label,L[36]=X}else X=L[36];const Y=X;let Z;L[37]!==E?(Z=()=>{E.fetchNextPage()},L[37]=E,L[38]=Z):Z=L[38];const ee=E.hasNextPage??!1;let te,ae;L[39]!==E?(te=()=>{E.refetch()},L[39]=E,L[40]=te):te=L[40];L[41]!==J.length||L[42]!==V||L[43]!==E.isFetchingNextPage||L[44]!==E.isLoading||L[45]!==Z||L[46]!==ee||L[47]!==te||L[48]!==Y?(ae={tracks:Y,loading:E.isLoading,fetchNextPage:Z,hasNextPage:ee,isFetchingNextPage:E.isFetchingNextPage,refetch:te,totalLoaded:J.length,availableClasses:V},L[41]=J.length,L[42]=V,L[43]=E.isFetchingNextPage,L[44]=E.isLoading,L[45]=Z,L[46]=ee,L[47]=te,L[48]=Y,L[49]=ae):ae=L[49];return ae};var t=r(d[0]),a=r(d[1]),n=r(d[2]),s=r(d[3]),c=r(d[4]),l=r(d[5]),o=r(d[6]),u=r(d[7]);const f=432e5,h=7776e6,p=60;function P(t,a,n){const s=a-n;return{untilMs:t,sinceMs:Math.max(s,t-f)}}function y(t,a,n){return t>a-n?t:void 0}function M(t){return t.tracks}function w(t,a){return a.lastSeen-t.lastSeen}function N(t){return t}function b(){return Date.now()}function k(t){return t.id}function x(t){return{id:t.id,name:t.name}}},3383,[15,17,3081,2594,3080,3162,2705,3381]);
15801
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useTrackDetailMedia=function(u,k,y){const v=(0,t.c)(26),{controller:f,state:p}=(0,l.useConnection)(),b=k??"none",M=y??"none";let _;v[0]!==u||v[1]!==b||v[2]!==M?(_=["v2","analytics","track-detail-media",u,b,M],v[0]=u,v[1]=b,v[2]=M,v[3]=_):_=v[3];const F="connected"===p&&null!==k;let T,h;v[4]!==k||v[5]!==f||v[6]!==y?(T=async()=>{const t=f.getSystem();if(!t||null===k)return{event:[],track:[]};const n=t.trpcClient,[l,o]=await Promise.all([(0,c.capQuery)(n,"pipelineAnalytics","getEventMedia",{eventId:k}),null!==y?(0,c.capQuery)(n,"pipelineAnalytics","getTrackMedia",{trackId:y}):Promise.resolve(null)]);return{event:(0,s.parseMediaFiles)(l),track:(0,s.parseMediaFiles)(o)}},v[4]=k,v[5]=f,v[6]=y,v[7]=T):T=v[7];v[8]!==_||v[9]!==F||v[10]!==T?(h={queryKey:_,enabled:F,staleTime:6e4,queryFn:T},v[8]=_,v[9]=F,v[10]=T,v[11]=h):h=v[11];const S=(0,n.useQuery)(h);let I;e:{if(!S.data){I=o;break e}let t;v[12]!==S.data.event||v[13]!==S.data.track?(t=(0,s.resolveTrackDetailImages)(S.data.event,S.data.track),v[12]=S.data.event,v[13]=S.data.track,v[14]=t):t=v[14],I=t}const L=I;let P;e:{if(!S.data){let t;v[15]===Symbol.for("react.memo_cache_sentinel")?(t=[],v[15]=t):t=v[15],P=t;break e}let t;if(v[16]!==S.data.event||v[17]!==S.data.track){const n=new Set;t=[];for(const l of[...S.data.event,...S.data.track])n.has(l.key)||(n.add(l.key),t.push({key:l.key,kind:l.kind}));v[16]=S.data.event,v[17]=S.data.track,v[18]=t}else t=v[18];P=t}const Q=P;let U;v[19]!==S.data?(U=S.data?(0,s.buildTrackGallery)(S.data.event,S.data.track):[],v[19]=S.data,v[20]=U):U=v[20];const j=U;let q;v[21]!==j||v[22]!==L||v[23]!==Q||v[24]!==S.isLoading?(q=Object.assign({},L,{loading:S.isLoading,mediaKeys:Q,gallery:j}),v[21]=j,v[22]=L,v[23]=Q,v[24]=S.isLoading,v[25]=q):q=v[25];return q};var t=r(d[0]);r(d[1]);var n=r(d[2]),l=r(d[3]),c=r(d[4]),s=r(d[5]);const o={cropUri:null,fullFrameUri:null,fullFrameBoxedUri:null,hasServerBoxed:!1}},3380,[15,17,3081,2594,3162,3237]);
15802
+ __d(function(g,r,i,a,m,e,_d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useTrackBestDetection=function(u,d,f,y,v,b){const p=(0,n.c)(17),{controller:_,state:j}=(0,l.useConnection)(),k=d??"none";let A;p[0]!==u||p[1]!==k?(A=["v2","analytics","track-best-detection",u,k],p[0]=u,p[1]=k,p[2]=A):A=p[2];const D=b&&"connected"===j&&null!==d;let L,q;p[3]!==f||p[4]!==_||p[5]!==u||p[6]!==y||p[7]!==v||p[8]!==d?(L=async()=>{const n=_.getSystem();if(!n||null===d)return null;const t=await(0,c.capQuery)(n.trpcClient,"pipelineAnalytics","getObjectEvents",{deviceId:u,since:y-s,until:v+s,limit:500,projection:"full"});if(!Array.isArray(t))return null;let l=null;for(const n of t){const t=(0,o.toDetailDetection)(n);if(null!==t&&t.trackId===d&&void 0!==t.bbox){if(null!==f&&t.id===f)return t;(null===l||(t.confidence??0)>(l.confidence??0))&&(l=t)}}return l},p[3]=f,p[4]=_,p[5]=u,p[6]=y,p[7]=v,p[8]=d,p[9]=L):L=p[9];p[10]!==A||p[11]!==D||p[12]!==L?(q={queryKey:A,enabled:D,staleTime:6e4,queryFn:L},p[10]=A,p[11]=D,p[12]=L,p[13]=q):q=p[13];const C=(0,t.useQuery)(q),I=C.data??null;let O;p[14]!==C.isLoading||p[15]!==I?(O={detection:I,loading:C.isLoading},p[14]=C.isLoading,p[15]=I,p[16]=O):O=p[16];return O};var n=r(_d[0]);r(_d[1]);var t=r(_d[2]),l=r(_d[3]),c=r(_d[4]),o=r(_d[5]);const s=2e3},3381,[15,17,3081,2594,3162,3382]);
15803
+ __d(function(g,r,i,_a,m,e,_d){"use strict";function t(t){return t.frameId??String(t.timestamp)}function n(n){const o=new Map;for(const s of n){const n=t(s),a=o.get(n);a?a.push(s):o.set(n,[s])}return[...o.keys()].sort((t,n)=>o.get(n)[0].timestamp-o.get(t)[0].timestamp).map(t=>{const n=o.get(t)??[],s=n.find(t=>Boolean(t.mediaUrl)),a=s??n[0];return{key:t,frameId:n[0]?.frameId,timestamp:n[0]?.timestamp??0,imageDetectionId:a?.id,imageMediaUrl:s?.mediaUrl,detections:n}})}function o(t){return'object'==typeof t&&null!==t&&!Array.isArray(t)}function s(t){if(!o(t))return;const{x:n,y:s,w:a,h:f}=t;return'number'==typeof n&&'number'==typeof s&&'number'==typeof a&&'number'==typeof f?{x:n,y:s,w:a,h:f}:void 0}Object.defineProperty(e,'__esModule',{value:!0}),e.frameKey=t,e.groupEventsByFrame=n,e.groupByTrack=function(n){const o=new Map;for(const t of n){if(void 0===t.trackId)continue;const n=o.get(t.trackId);n?n.push(t):o.set(t.trackId,[t])}const s=[];for(const[n,a]of o){let o=a[0];for(const t of a){const n=t.confidence??0,s=o.confidence??0;(n>s||n===s&&Boolean(t.mediaUrl)&&!o.mediaUrl)&&(o=t)}const f=a.find(t=>void 0!==t.label)?.label,c=new Set(a.map(t));let d=Number.POSITIVE_INFINITY,u=Number.NEGATIVE_INFINITY;for(const t of a)t.timestamp<d&&(d=t.timestamp),t.timestamp>u&&(u=t.timestamp);s.push(Object.assign({trackId:n,className:o.className},void 0!==f?{label:f}:{},{representative:o,frameCount:c.size,startMs:d,endMs:u}))}return s.sort((t,n)=>n.endMs-t.endMs)},e.scenesForTrack=function(o,s){const a=new Set(o.filter(t=>t.trackId===s).map(t));return n(o).filter(t=>a.has(t.key))},e.toDetailDetection=function(t){if(!o(t))return null;if('string'!=typeof t.id||0===t.id.length)return null;if('number'!=typeof t.timestamp)return null;if('string'!=typeof t.className||0===t.className.length)return null;const n=Array.isArray(t.zones)?t.zones.filter(t=>'string'==typeof t):[];return{id:t.id,timestamp:t.timestamp,className:t.className,label:'string'==typeof t.label?t.label:void 0,confidence:'number'==typeof t.confidence?t.confidence:void 0,zones:n,state:'string'==typeof t.state?t.state:void 0,trackId:'string'==typeof t.trackId?t.trackId:void 0,frameId:'string'==typeof t.frameId?t.frameId:void 0,mediaUrl:'string'==typeof t.mediaUrl?t.mediaUrl:void 0,bbox:s(t.bbox),frameWidth:'number'==typeof t.frameWidth?t.frameWidth:void 0,frameHeight:'number'==typeof t.frameHeight?t.frameHeight:void 0}},e.containRect=function(t,n,o,s){if(t<=0||n<=0||o<=0||s<=0)return{left:0,top:0,width:Math.max(0,o),height:Math.max(0,s)};const a=Math.min(o/t,s/n),f=t*a,c=n*a;return{left:(o-f)/2,top:(s-c)/2,width:f,height:c}},e.bboxToScreen=function(t,n,o,s){if(n<=0||o<=0)return{left:s.left,top:s.top,width:0,height:0};const a=s.width/n,f=s.height/o;return{left:s.left+t.x*a,top:s.top+t.y*f,width:t.w*a,height:t.h*f}},e.summarizeCluster=function(t){const n=[];let o=0,s=Number.POSITIVE_INFINITY,a=Number.NEGATIVE_INFINITY;for(const f of t)for(const t of f.detections)o+=1,n.includes(t.className)||n.push(t.className),t.timestamp<s&&(s=t.timestamp),t.timestamp>a&&(a=t.timestamp);return 0===o?{classes:[],detectionCount:0,startMs:0,endMs:0}:{classes:n,detectionCount:o,startMs:s,endMs:a}}},3382,[]);
15804
+ __d(function(g,r,i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"WINDOW_MS",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"FLOOR_MS",{enumerable:!0,get:function(){return h}}),e.trackWindow=P,e.nextWindowStart=y,e.useTracksFeed=function(f,S,I){const L=(0,t.c)(50),{controller:v,state:C}=(0,s.useConnection)(),{data:F}=(0,c.useCameras)(),O=I?.perCameraLimit??p,_=I?.maxAgeMs??h;let D,T;L[0]!==F?(D=F??[],L[0]=F,L[1]=D):D=L[1];L[2]!==D?(T=D.map(x),L[2]=D,L[3]=T):T=L[3];const j=T;let A;L[4]!==j?(A=j.map(k).join(","),L[4]=j,L[5]=A):A=L[5];const W=A,[q]=(0,a.useState)(b),Q=S??q;let $;L[6]!==Q||L[7]!==W||L[8]!==_||L[9]!==O?($=["v2","tracks-feed",W,Q,O,_],L[6]=Q,L[7]=W,L[8]=_,L[9]=O,L[10]=$):$=L[10];const K="connected"===C&&j.length>0;let R,z,B;L[11]!==Q||L[12]!==j||L[13]!==v||L[14]!==_||L[15]!==O?(R=async t=>{const{pageParam:a}=t,{untilMs:n,sinceMs:s}=P(a,Q,_),c=v.getSystem();if(!c)return{tracks:[],untilMs:n,sinceMs:s};const f=c.trpcClient,h=Date.now(),p=(await Promise.all(j.map(async t=>{const a=await(0,l.capQuery)(f,"pipelineAnalytics","listTracks",{deviceId:t.id,since:s,until:n,limit:O}).catch(a=>(o.log.warn("tracks-feed","listTracks failed",{cameraId:t.id,error:String(a)}),null));if(!Array.isArray(a))return[];const c=[];for(const n of a){const a=(0,u.toTrackSummary)(n,t.name);null!==a&&c.push(a)}return c}))).flat().sort(w);return o.log.debug("tracks-feed","page loaded",{ms:Date.now()-h,cameras:j.length,rows:p.length,limit:O}),{tracks:p,untilMs:n,sinceMs:s}},L[11]=Q,L[12]=j,L[13]=v,L[14]=_,L[15]=O,L[16]=R):R=L[16];L[17]!==Q||L[18]!==_?(z=t=>y(t.sinceMs,Q,_),L[17]=Q,L[18]=_,L[19]=z):z=L[19];L[20]!==Q||L[21]!==$||L[22]!==K||L[23]!==R||L[24]!==z?(B={queryKey:$,enabled:K,staleTime:3e4,placeholderData:N,initialPageParam:Q,queryFn:R,getNextPageParam:z},L[20]=Q,L[21]=$,L[22]=K,L[23]=R,L[24]=z,L[25]=B):B=L[25];const E=(0,n.useInfiniteQuery)(B);let G,H;L[26]!==E.data?.pages?(G=E.data?.pages??[],L[26]=E.data?.pages,L[27]=G):G=L[27];L[28]!==G?(H=G.flatMap(M),L[28]=G,L[29]=H):H=L[29];const J=H;let U;if(L[30]!==J){const t=new Set;for(const a of J)t.add(a.className);U=[...t].sort(),L[30]=J,L[31]=U}else U=L[31];const V=U;let X;if(L[32]!==J||L[33]!==f.cameraIds||L[34]!==f.classes||L[35]!==f.label){const t=f.cameraIds.length>0?new Set(f.cameraIds):null,a=f.classes.length>0?new Set(f.classes):null,n=f.label.trim().toLowerCase();X=J.filter(s=>{if(t&&!t.has(s.deviceId))return!1;if(a&&!a.has(s.className))return!1;if(n.length>0){if(!`${s.label??""} ${s.className}`.toLowerCase().includes(n))return!1}return!0}),L[32]=J,L[33]=f.cameraIds,L[34]=f.classes,L[35]=f.label,L[36]=X}else X=L[36];const Y=X;let Z;L[37]!==E?(Z=()=>{E.fetchNextPage()},L[37]=E,L[38]=Z):Z=L[38];const ee=E.hasNextPage??!1;let te,ae;L[39]!==E?(te=()=>{E.refetch()},L[39]=E,L[40]=te):te=L[40];L[41]!==J.length||L[42]!==V||L[43]!==E.isFetchingNextPage||L[44]!==E.isLoading||L[45]!==Z||L[46]!==ee||L[47]!==te||L[48]!==Y?(ae={tracks:Y,loading:E.isLoading,fetchNextPage:Z,hasNextPage:ee,isFetchingNextPage:E.isFetchingNextPage,refetch:te,totalLoaded:J.length,availableClasses:V},L[41]=J.length,L[42]=V,L[43]=E.isFetchingNextPage,L[44]=E.isLoading,L[45]=Z,L[46]=ee,L[47]=te,L[48]=Y,L[49]=ae):ae=L[49];return ae};var t=r(d[0]),a=r(d[1]),n=r(d[2]),s=r(d[3]),c=r(d[4]),l=r(d[5]),o=r(d[6]),u=r(d[7]);const f=432e5,h=7776e6,p=60;function P(t,a,n){const s=a-n;return{untilMs:t,sinceMs:Math.max(s,t-f)}}function y(t,a,n){return t>a-n?t:void 0}function M(t){return t.tracks}function w(t,a){return a.lastSeen-t.lastSeen}function N(t){return t}function b(){return Date.now()}function k(t){return t.id}function x(t){return{id:t.id,name:t.name}}},3383,[15,17,3081,2594,3080,3162,2705,3237]);
15805
15805
  __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"REEL_EVENT_THROTTLE_MS",{enumerable:!0,get:function(){return o}}),_e.useReelAutoRefresh=function(e,n){const{controller:f,state:E}=(0,u.useConnection)(),l=(0,t.useRef)(n);l.current=n;const v=(0,t.useRef)(0),b=(0,t.useRef)(void 0),R=(0,t.useRef)(c.default.currentState),T=(0,t.useCallback)(()=>{b.current&&(clearTimeout(b.current),b.current=void 0)},[]),_=(0,t.useCallback)(()=>{v.current=Date.now(),T(),l.current()},[T]);(0,t.useEffect)(()=>{const e=c.default.addEventListener('change',e=>{const t=R.current;R.current=e,'active'===e&&'active'!==t&&_()});return()=>e.remove()},[_]),(0,t.useEffect)(()=>{if('connected'!==E)return;const t=f.getSystem();if(!t)return;const n=t=>void 0===e||t===e,c=e=>{if(!e||'active'!==R.current)return;const t=Date.now()-v.current;t>=o?_():b.current||(b.current=setTimeout(()=>{b.current=void 0,'active'===R.current&&(v.current=Date.now(),l.current())},o-t))},u=t.subscribeEvent(s.FRAME_TRACKED_CATEGORY,e=>{const t=(0,s.parseFrameTrackedEvent)(e);t&&0!==t.boxes.length&&c(n(t.deviceId))}),C=t.subscribeEvent(s.DETECTION_CATEGORY,e=>{const t=(0,s.parseDetectionEvent)(e);t&&0!==t.boxes.length&&c(n(Number(t.sourceId)))});return()=>{u(),C(),T()}},[f,E,e,_,T])};var e,t=r(d[0]),n=r(d[1]),c=(e=n)&&e.__esModule?e:{default:e},u=r(d[2]),s=r(d[3]);const o=2e4},3384,[17,226,2594,3385]);
15806
15806
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DETECTION_CATEGORY",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"FRAME_TRACKED_CATEGORY",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"DETECTION_FADE_MS",{enumerable:!0,get:function(){return l}}),e.parseDetectionEvent=p,e.parseFrameTrackedEvent=x,e.shouldSuppressRaw=v,e.useDetections=function(f,b){const h=(0,t.c)(6),{controller:y,state:E}=(0,o.useConnection)(),[A,T]=(0,n.useState)(c),O=(0,n.useRef)(void 0);let w,C;h[0]!==E||h[1]!==y||h[2]!==f||h[3]!==b?(w=()=>{if(!b||"connected"!==E)return void T(c);const t=y.getSystem();if(!t)return;const n=()=>{O.current&&clearTimeout(O.current),O.current=void 0},o={current:0},h=t.subscribeEvent(u,t=>{const u=p(t);u&&Number(u.sourceId)===f&&(v(o.current,Date.now())||(T({boxes:u.boxes,frameWidth:u.width,frameHeight:u.height}),n(),O.current=setTimeout(()=>T(c),l)))}),A=t.subscribeEvent(s,t=>{const u=x(t);u&&u.deviceId===f&&0!==u.boxes.length&&(o.current=Date.now(),T({boxes:u.boxes,frameWidth:u.width,frameHeight:u.height}),n(),O.current=setTimeout(()=>T(c),l))});return()=>{h(),A(),n(),T(c)}},C=[y,E,f,b],h[0]=E,h[1]=y,h[2]=f,h[3]=b,h[4]=w,h[5]=C):(w=h[4],C=h[5]);return(0,n.useEffect)(w,C),A};var t=r(d[0]),n=r(d[1]),o=r(d[2]);const u='detection.result',s='pipeline-analytics.frame-tracked',l=2500,c={boxes:[],frameWidth:0,frameHeight:0};function f(t){return'object'==typeof t&&null!==t}function b(t){return'number'==typeof t&&Number.isFinite(t)?t:null}function h(t,n,o){if(!f(t))return null;const u=b(t.x),s=b(t.y),l=b(t.width),c=b(t.height);if(null!==u&&null!==s&&null!==l&&null!==c&&n>0&&o>0)return{x1:u/n,y1:s/o,x2:(u+l)/n,y2:(s+c)/o};const h=b(t.x1),y=b(t.y1),p=b(t.x2),x=b(t.y2);return null!==h&&null!==y&&null!==p&&null!==x?{x1:h,y1:y,x2:p,y2:x}:null}function y(t){return'string'==typeof t.macroClass&&t.macroClass?t.macroClass:'string'==typeof t.class&&t.class?t.class:'string'==typeof t.label&&t.label?t.label:'object'}function p(t){if(!f(t))return null;const n=t.source;if(!f(n))return null;const o=n.id;if('string'!=typeof o&&'number'!=typeof o)return null;const u=t.data;if(!f(u))return null;const s=u.frame;if(!f(s))return null;const l=b(s.width)??0,c=b(s.height)??0,p=s.detections;if(!Array.isArray(p))return null;const x=[];for(const t of p){if(!f(t))continue;const n=b(t.score);if(null===n)continue;const o=h(t.bbox??t.boundingBox??t.region,l,c);o&&x.push(Object.assign({label:y(t),score:n},o))}return{sourceId:o,boxes:x,width:l,height:c}}function x(t){if(!f(t))return null;const n=t.data;if(!f(n))return null;const o=b(n.deviceId),u=b(n.frameWidth)??0,s=b(n.frameHeight)??0,l=n.detections;if(null===o||!Array.isArray(l))return null;const c=[];for(const t of l){if(!f(t))continue;const n=b(t.score);if(null===n)continue;const o=h(t.bbox,u,s);if(!o)continue;const l=(Array.isArray(t.labels)?t.labels:[]).find(t=>f(t)&&'string'==typeof t.label),p='string'==typeof l?.label&&l.label.length>0?l.label:void 0;c.push(Object.assign({label:y(t),score:n},o,void 0!==p?{name:p}:{},'detail'===t.kind?{detail:!0}:{}))}return{deviceId:o,boxes:c,width:u,height:s}}function v(t,n){return n-t<l}},3385,[15,17,2594]);
15807
15807
  __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.EventsScreen,{}),o[0]=u):u=o[0],u}},3386,[15,3387,10]);
15808
- __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.EventsScreen=function(){const e=(0,t.c)(151),{t:c}=(0,d.useTranslation)(),{colors:f}=(0,u.useTheme)(),q=(0,i.useRouter)(),J=(0,b.useEventsLayout)(),K=(0,h.useEventsFilterStore)($),Q=(0,h.useEventsFilterStore)(B),X=(0,h.useEventsFilterStore)(z),Y=(0,h.useEventsFilterStore)(V),{settings:Z,setEvents:ee}=(0,S.useSettings)(),te=Z.events.gridDensity;let se,ne;e[0]!==K?(se=()=>{K()},ne=[K],e[0]=K,e[1]=se,e[2]=ne):(se=e[1],ne=e[2]);(0,s.useEffect)(se,ne);const[le]=(0,s.useState)(H),[ae,oe]=(0,s.useState)(0),re=le-ae*F;let ce;e[3]===Symbol.for("react.memo_cache_sentinel")?(ce=()=>oe(O),e[3]=ce):ce=e[3];const de=ce;let ie;e[4]===Symbol.for("react.memo_cache_sentinel")?(ie=()=>oe(W),e[4]=ie):ie=e[4];const ue=ie,[me,fe]=(0,s.useState)(null),[he,ge]=(0,s.useState)(!1),[Se,xe]=(0,s.useState)(!1),[ye,be]=(0,s.useState)(""),ve=(0,v.useDebouncedValue)(ye,G),{data:Ce}=(0,y.useCameras)();let ke,Ie;e[5]!==Ce?(ke=Ce??[],e[5]=Ce,e[6]=ke):ke=e[6];e[7]!==ke?(Ie=ke.map(L),e[7]=ke,e[8]=Ie):Ie=e[8];const je=Ie;let Me;if(e[9]!==je){Me=new Map;for(const e of je)Me.set(e.id,e.name);e[9]=je,e[10]=Me}else Me=e[10];const pe=Me;let De;e[11]!==pe?(De=e=>pe.get(e)??`#${e}`,e[11]=pe,e[12]=De):De=e[12];const we=De,Ee=1===Q.cameraIds.length?Q.cameraIds[0]:void 0;let Pe;e[13]!==Ee?(Pe=void 0!==Ee?{deviceId:Ee}:{},e[13]=Ee,e[14]=Pe):Pe=e[14];const Re=(0,k.useSemanticSearch)(ve,Pe);let Ne;e[15]!==Q.cameraIds||e[16]!==Q.classes||e[17]!==Q.label?(Ne={cameraIds:Q.cameraIds,classes:Q.classes,label:Q.label},e[15]=Q.cameraIds,e[16]=Q.classes,e[17]=Q.label,e[18]=Ne):Ne=e[18];const Te=Ne,{tracks:Ae,loading:Fe,fetchNextPage:Ge,hasNextPage:Le,isFetchingNextPage:We,totalLoaded:Oe,availableClasses:He}=(0,C.useTracksFeed)(Te,re);let Ve;e[19]!==Ae?(Ve=(0,I.hasAnyImportance)(Ae),e[19]=Ae,e[20]=Ve):Ve=e[20];const ze=Ve,Be=Z.clusters.minImportance;let $e;e[21]!==Be||e[22]!==Ae?($e=Be>0?Ae.filter(e=>(e.importance??0)>=Be):Ae,e[21]=Be,e[22]=Ae,e[23]=$e):$e=e[23];const Ue=$e;let qe;e[24]!==Ue||e[25]!==Q.sortMode?(qe=(0,I.sortTracks)(Ue,Q.sortMode),e[24]=Ue,e[25]=Q.sortMode,e[26]=qe):qe=e[26];const Je=qe;let Ke;e[27]!==Ge||e[28]!==Le||e[29]!==We?(Ke=()=>{Le&&!We&&Ge()},e[27]=Ge,e[28]=Le,e[29]=We,e[30]=Ke):Ke=e[30];const Qe=Ke,[Xe,Ye]=(0,s.useState)(0),Ze=Math.min(Xe,J.maxContentWidth);let et;e[31]!==te||e[32]!==Ze?(et=(0,x.densityColumns)(Ze,te),e[31]=te,e[32]=Ze,e[33]=et):et=e[33];const tt=et;let st;e[34]!==q||e[35]!==me?(st=e=>{me&&q.push(`/camera/${me.deviceId}?at=${Math.round(e)}`),fe(null)},e[34]=q,e[35]=me,e[36]=st):st=e[36];const nt=st;let lt;e[37]!==re||e[38]!==ae||e[39]!==c?(lt=0===ae?c("v2.events.today","Today"):new Date(re).toLocaleDateString(),e[37]=re,e[38]=ae,e[39]=c,e[40]=lt):lt=e[40];const at=lt,ot=(Q.cameraIds.length>0?1:0)+(Q.classes.length>0?1:0)+(Q.label.trim().length>0?1:0);let rt,ct,dt,it,ut;e[41]!==Q.sortMode||e[42]!==X?(rt=()=>X("importance"===Q.sortMode?"time":"importance"),e[41]=Q.sortMode,e[42]=X,e[43]=rt):rt=e[43];e[44]===Symbol.for("react.memo_cache_sentinel")?(ct=()=>ge(!0),dt=()=>xe(!0),e[44]=ct,e[45]=dt):(ct=e[44],dt=e[45]);e[46]!==ee?(it=e=>ee("gridDensity",e),e[46]=ee,e[47]=it):it=e[47];e[48]!==ot||e[49]!==at||e[50]!==ae||e[51]!==te||e[52]!==Q.cameraIds.length||e[53]!==Q.classes.length||e[54]!==Q.sortMode||e[55]!==ze||e[56]!==rt||e[57]!==it?(ut=(0,A.jsx)(p.EventsFilterBar,{dateLabel:at,dayOffset:ae,onPrevDay:de,onNextDay:ue,selectedCameras:Q.cameraIds.length,selectedClasses:Q.classes.length,showSort:ze,sortMode:Q.sortMode,onToggleSort:rt,activeCount:ot,onOpenSheet:ct,onOpenDisplay:dt,density:te,onSetDensity:it}),e[48]=ot,e[49]=at,e[50]=ae,e[51]=te,e[52]=Q.cameraIds.length,e[53]=Q.classes.length,e[54]=Q.sortMode,e[55]=ze,e[56]=rt,e[57]=it,e[58]=ut):ut=e[58];const mt=ut;let ft,ht;e[59]===Symbol.for("react.memo_cache_sentinel")?(ft=()=>xe(!1),e[59]=ft):ft=e[59];e[60]!==Se?(ht=(0,A.jsx)(D.EventsDisplaySheet,{visible:Se,onClose:ft}),e[60]=Se,e[61]=ht):ht=e[61];const gt=ht;let St;e[62]!==ye?(St=(0,A.jsx)(E.SemanticSearchBar,{value:ye,onChange:be}),e[62]=ye,e[63]=St):St=e[63];const xt=St;let yt;e[64]!==tt||e[65]!==Je||e[66]!==Le||e[67]!==We||e[68]!==Fe||e[69]!==Qe||e[70]!==me?.trackId||e[71]!==Oe?(yt=Fe&&0===Je.length?(0,A.jsx)(n.default,{style:U.skeletonGrid,children:Array.from({length:3*Math.max(1,tt)},(e,t)=>(0,A.jsx)(n.default,{style:[U.skeletonCell,{width:100/Math.max(1,tt)+"%"}],children:(0,A.jsx)(n.default,{style:U.skeletonTile,children:(0,A.jsx)(M.SkeletonBox,{})})},t))}):0===Je.length?(0,A.jsx)(j.EventsEmpty,{filteredOut:Oe>0,canLoadMore:Le,busy:We,onLoadMore:Qe}):(0,A.jsx)(R.TracksGallery,{tracks:Je,columns:tt,onSelect:fe,onEndReached:Qe,isFetchingNextPage:We,selectedTrackId:me?.trackId??null}),e[64]=tt,e[65]=Je,e[66]=Le,e[67]=We,e[68]=Fe,e[69]=Qe,e[70]=me?.trackId,e[71]=Oe,e[72]=yt):yt=e[72];const bt=yt;let vt;e[73]!==we||e[74]!==tt||e[75]!==bt||e[76]!==Re.enabled||e[77]!==Re.loading||e[78]!==Re.results?(vt=Re.enabled?(0,A.jsx)(P.SemanticSearchResults,{results:Re.results,loading:Re.loading,columns:tt,cameraName:we}):bt,e[73]=we,e[74]=tt,e[75]=bt,e[76]=Re.enabled,e[77]=Re.loading,e[78]=Re.results,e[79]=vt):vt=e[79];const Ct=vt;let kt,It,jt,Mt;e[80]===Symbol.for("react.memo_cache_sentinel")?(kt=e=>{const t=Math.round(e.nativeEvent.layout.width);Ye(e=>e===t?e:t)},e[80]=kt):kt=e[80];e[81]!==J.maxContentWidth?(It=[U.centered,{maxWidth:J.maxContentWidth}],e[81]=J.maxContentWidth,e[82]=It):It=e[82];e[83]!==Ct||e[84]!==mt||e[85]!==xt||e[86]!==It?(jt=(0,A.jsxs)(n.default,{style:It,children:[mt,xt,Ct]}),e[83]=Ct,e[84]=mt,e[85]=xt,e[86]=It,e[87]=jt):jt=e[87];e[88]!==gt||e[89]!==jt?(Mt=(0,A.jsxs)(n.default,{style:U.galleryColumn,onLayout:kt,children:[jt,gt]}),e[88]=gt,e[89]=jt,e[90]=Mt):Mt=e[90];const pt=Mt;if("split"===J.mode){let t,s,d,i,u,h,S,x,y,b,v,C,k;return e[91]!==f.background?(t={flex:1,backgroundColor:f.background},e[91]=f.background,e[92]=t):t=e[92],e[93]===Symbol.for("react.memo_cache_sentinel")?(s=(0,A.jsx)(m.ScreenHeader,{}),e[93]=s):s=e[93],e[94]!==f.border?(d=[U.rail,{borderColor:f.border}],e[94]=f.border,e[95]=d):d=e[95],e[96]!==He||e[97]!==je||e[98]!==at||e[99]!==ae||e[100]!==ze?(i=(0,A.jsx)(w.EventsFilterPanel,{cameras:je,availableClasses:He,showSort:ze,dateLabel:at,dayOffset:ae,onPrevDay:de,onNextDay:ue}),e[96]=He,e[97]=je,e[98]=at,e[99]=ae,e[100]=ze,e[101]=i):i=e[101],e[102]!==f.surface?(u=[U.railReset,{backgroundColor:f.surface}],e[102]=f.surface,e[103]=u):u=e[103],e[104]!==f.foregroundMuted?(h=[U.railResetText,{color:f.foregroundMuted}],e[104]=f.foregroundMuted,e[105]=h):h=e[105],e[106]!==c?(S=c("common.reset","Reset"),e[106]=c,e[107]=S):S=e[107],e[108]!==h||e[109]!==S?(x=(0,A.jsx)(o.default,{style:h,children:S}),e[108]=h,e[109]=S,e[110]=x):x=e[110],e[111]!==Y||e[112]!==u||e[113]!==x?(y=(0,A.jsx)(l.default,{onPress:Y,style:u,children:x}),e[111]=Y,e[112]=u,e[113]=x,e[114]=y):y=e[114],e[115]!==d||e[116]!==i||e[117]!==y?(b=(0,A.jsxs)(n.default,{style:d,children:[i,y]}),e[115]=d,e[116]=i,e[117]=y,e[118]=b):b=e[118],e[119]!==f.foregroundSubtle||e[120]!==nt||e[121]!==me||e[122]!==c?(v=(0,A.jsx)(n.default,{style:U.detailColumn,children:me?(0,A.jsx)(T.TrackDetailView,{track:me,onSeek:nt,onClose:()=>fe(null),bottomInset:0}):(0,A.jsx)(n.default,{style:U.center,children:(0,A.jsx)(o.default,{style:{color:f.foregroundSubtle,fontSize:13},children:c("v2.events.selectHint","Select an event")})})}),e[119]=f.foregroundSubtle,e[120]=nt,e[121]=me,e[122]=c,e[123]=v):v=e[123],e[124]!==pt||e[125]!==b||e[126]!==v?(C=(0,A.jsxs)(n.default,{style:U.splitRow,children:[b,pt,v]}),e[124]=pt,e[125]=b,e[126]=v,e[127]=C):C=e[127],e[128]!==t||e[129]!==C?(k=(0,A.jsxs)(n.default,{style:t,children:[s,C]}),e[128]=t,e[129]=C,e[130]=k):k=e[130],k}let _t,Dt,wt,Et,Pt,Rt,Nt;e[131]!==f.background?(_t={flex:1,backgroundColor:f.background},e[131]=f.background,e[132]=_t):_t=e[132];e[133]===Symbol.for("react.memo_cache_sentinel")?(Dt=(0,A.jsx)(m.ScreenHeader,{}),e[133]=Dt):Dt=e[133];e[134]===Symbol.for("react.memo_cache_sentinel")?(wt=()=>fe(null),e[134]=wt):wt=e[134];e[135]!==nt||e[136]!==me?(Et=(0,A.jsx)(N.TrackDetailModal,{track:me,onSeek:nt,onClose:wt}),e[135]=nt,e[136]=me,e[137]=Et):Et=e[137];e[138]===Symbol.for("react.memo_cache_sentinel")?(Pt=()=>ge(!1),e[138]=Pt):Pt=e[138];e[139]!==He||e[140]!==je||e[141]!==at||e[142]!==ae||e[143]!==he||e[144]!==ze?(Rt=(0,A.jsx)(_.EventsFilterSheet,{visible:he,onClose:Pt,cameras:je,availableClasses:He,showSort:ze,dateLabel:at,dayOffset:ae,onPrevDay:de,onNextDay:ue}),e[139]=He,e[140]=je,e[141]=at,e[142]=ae,e[143]=he,e[144]=ze,e[145]=Rt):Rt=e[145];e[146]!==pt||e[147]!==_t||e[148]!==Et||e[149]!==Rt?(Nt=(0,A.jsxs)(n.default,{style:_t,children:[Dt,pt,Et,Rt]}),e[146]=pt,e[147]=_t,e[148]=Et,e[149]=Rt,e[150]=Nt):Nt=e[150];return Nt};var t=r(_d[0]),s=r(_d[1]),n=e(r(_d[2])),l=e(r(_d[3])),o=e(r(_d[4])),c=e(r(_d[5])),d=r(_d[6]),i=r(_d[7]),u=r(_d[8]),m=r(_d[9]),f=r(_d[10]),h=r(_d[11]),S=r(_d[12]),x=r(_d[13]),y=r(_d[14]),b=r(_d[15]),v=r(_d[16]),C=r(_d[17]),k=r(_d[18]),I=r(_d[19]),j=r(_d[20]),M=r(_d[21]),p=r(_d[22]),_=r(_d[23]),D=r(_d[24]),w=r(_d[25]),E=r(_d[26]),P=r(_d[27]),R=r(_d[28]),N=r(_d[29]),T=r(_d[30]),A=r(_d[31]);const F=864e5,G=350;function L(e){return{id:e.id,name:e.name}}function W(e){return Math.max(0,e-1)}function O(e){return e+1}function H(){return Date.now()}function V(e){return e.reset}function z(e){return e.setSortMode}function B(e){return e.filter}function $(e){return e.hydrate}const U=c.default.create({center:{flex:1,alignItems:'center',justifyContent:'center'},splitRow:{flex:1,flexDirection:'row'},rail:{width:300,borderRightWidth:c.default.hairlineWidth,paddingHorizontal:f.SPACING.md},railReset:{alignItems:'center',paddingVertical:f.SPACING.md,borderRadius:f.RADIUS.md,marginVertical:f.SPACING.sm},railResetText:{fontSize:14,fontWeight:'600'},galleryColumn:{flex:1,alignItems:'center'},skeletonGrid:{flexDirection:'row',flexWrap:'wrap',padding:f.SPACING.md/2},skeletonCell:{padding:f.SPACING.md/2},skeletonTile:{aspectRatio:1,borderRadius:f.RADIUS.md,overflow:'hidden'},centered:{flex:1,width:'100%'},detailColumn:{width:420,padding:f.SPACING.md}})},3387,[15,17,20,252,112,33,786,743,2587,3050,2589,3388,3177,3140,3080,3389,3391,3383,3392,3381,3393,3151,3394,3395,3397,3396,3398,3399,3400,3237,3238,10]);
15808
+ __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.EventsScreen=function(){const e=(0,t.c)(151),{t:c}=(0,d.useTranslation)(),{colors:f}=(0,u.useTheme)(),q=(0,i.useRouter)(),J=(0,b.useEventsLayout)(),K=(0,h.useEventsFilterStore)($),Q=(0,h.useEventsFilterStore)(B),X=(0,h.useEventsFilterStore)(z),Y=(0,h.useEventsFilterStore)(V),{settings:Z,setEvents:ee}=(0,S.useSettings)(),te=Z.events.gridDensity;let se,ne;e[0]!==K?(se=()=>{K()},ne=[K],e[0]=K,e[1]=se,e[2]=ne):(se=e[1],ne=e[2]);(0,s.useEffect)(se,ne);const[ae]=(0,s.useState)(H),[le,oe]=(0,s.useState)(0),re=ae-le*A;let ce;e[3]===Symbol.for("react.memo_cache_sentinel")?(ce=()=>oe(O),e[3]=ce):ce=e[3];const de=ce;let ie;e[4]===Symbol.for("react.memo_cache_sentinel")?(ie=()=>oe(W),e[4]=ie):ie=e[4];const ue=ie,[me,fe]=(0,s.useState)(null),[he,ge]=(0,s.useState)(!1),[Se,xe]=(0,s.useState)(!1),[ye,be]=(0,s.useState)(""),ve=(0,v.useDebouncedValue)(ye,G),{data:Ce}=(0,y.useCameras)();let ke,Ie;e[5]!==Ce?(ke=Ce??[],e[5]=Ce,e[6]=ke):ke=e[6];e[7]!==ke?(Ie=ke.map(L),e[7]=ke,e[8]=Ie):Ie=e[8];const je=Ie;let pe;if(e[9]!==je){pe=new Map;for(const e of je)pe.set(e.id,e.name);e[9]=je,e[10]=pe}else pe=e[10];const Me=pe;let De;e[11]!==Me?(De=e=>Me.get(e)??`#${e}`,e[11]=Me,e[12]=De):De=e[12];const we=De,Ee=1===Q.cameraIds.length?Q.cameraIds[0]:void 0;let Pe;e[13]!==Ee?(Pe=void 0!==Ee?{deviceId:Ee}:{},e[13]=Ee,e[14]=Pe):Pe=e[14];const Re=(0,k.useSemanticSearch)(ve,Pe);let Ne;e[15]!==Q.cameraIds||e[16]!==Q.classes||e[17]!==Q.label?(Ne={cameraIds:Q.cameraIds,classes:Q.classes,label:Q.label},e[15]=Q.cameraIds,e[16]=Q.classes,e[17]=Q.label,e[18]=Ne):Ne=e[18];const Te=Ne,{tracks:Fe,loading:Ae,fetchNextPage:Ge,hasNextPage:Le,isFetchingNextPage:We,totalLoaded:Oe,availableClasses:He}=(0,C.useTracksFeed)(Te,re);let Ve;e[19]!==Fe?(Ve=(0,I.hasAnyImportance)(Fe),e[19]=Fe,e[20]=Ve):Ve=e[20];const ze=Ve,Be=Z.clusters.minImportance;let $e;e[21]!==Be||e[22]!==Fe?($e=Be>0?Fe.filter(e=>(0,I.passesImportanceFilter)(e.importance,Be)):Fe,e[21]=Be,e[22]=Fe,e[23]=$e):$e=e[23];const Ue=$e;let qe;e[24]!==Ue||e[25]!==Q.sortMode?(qe=(0,I.sortTracks)(Ue,Q.sortMode),e[24]=Ue,e[25]=Q.sortMode,e[26]=qe):qe=e[26];const Je=qe;let Ke;e[27]!==Ge||e[28]!==Le||e[29]!==We?(Ke=()=>{Le&&!We&&Ge()},e[27]=Ge,e[28]=Le,e[29]=We,e[30]=Ke):Ke=e[30];const Qe=Ke,[Xe,Ye]=(0,s.useState)(0),Ze=Math.min(Xe,J.maxContentWidth);let et;e[31]!==te||e[32]!==Ze?(et=(0,x.densityColumns)(Ze,te),e[31]=te,e[32]=Ze,e[33]=et):et=e[33];const tt=et;let st;e[34]!==q||e[35]!==me?(st=e=>{me&&q.push(`/camera/${me.deviceId}?at=${Math.round(e)}`),fe(null)},e[34]=q,e[35]=me,e[36]=st):st=e[36];const nt=st;let at;e[37]!==re||e[38]!==le||e[39]!==c?(at=0===le?c("v2.events.today","Today"):new Date(re).toLocaleDateString(),e[37]=re,e[38]=le,e[39]=c,e[40]=at):at=e[40];const lt=at,ot=(Q.cameraIds.length>0?1:0)+(Q.classes.length>0?1:0)+(Q.label.trim().length>0?1:0);let rt,ct,dt,it,ut;e[41]!==Q.sortMode||e[42]!==X?(rt=()=>X("importance"===Q.sortMode?"time":"importance"),e[41]=Q.sortMode,e[42]=X,e[43]=rt):rt=e[43];e[44]===Symbol.for("react.memo_cache_sentinel")?(ct=()=>ge(!0),dt=()=>xe(!0),e[44]=ct,e[45]=dt):(ct=e[44],dt=e[45]);e[46]!==ee?(it=e=>ee("gridDensity",e),e[46]=ee,e[47]=it):it=e[47];e[48]!==ot||e[49]!==lt||e[50]!==le||e[51]!==te||e[52]!==Q.cameraIds.length||e[53]!==Q.classes.length||e[54]!==Q.sortMode||e[55]!==ze||e[56]!==rt||e[57]!==it?(ut=(0,F.jsx)(M.EventsFilterBar,{dateLabel:lt,dayOffset:le,onPrevDay:de,onNextDay:ue,selectedCameras:Q.cameraIds.length,selectedClasses:Q.classes.length,showSort:ze,sortMode:Q.sortMode,onToggleSort:rt,activeCount:ot,onOpenSheet:ct,onOpenDisplay:dt,density:te,onSetDensity:it}),e[48]=ot,e[49]=lt,e[50]=le,e[51]=te,e[52]=Q.cameraIds.length,e[53]=Q.classes.length,e[54]=Q.sortMode,e[55]=ze,e[56]=rt,e[57]=it,e[58]=ut):ut=e[58];const mt=ut;let ft,ht;e[59]===Symbol.for("react.memo_cache_sentinel")?(ft=()=>xe(!1),e[59]=ft):ft=e[59];e[60]!==Se?(ht=(0,F.jsx)(D.EventsDisplaySheet,{visible:Se,onClose:ft}),e[60]=Se,e[61]=ht):ht=e[61];const gt=ht;let St;e[62]!==ye?(St=(0,F.jsx)(E.SemanticSearchBar,{value:ye,onChange:be}),e[62]=ye,e[63]=St):St=e[63];const xt=St;let yt;e[64]!==tt||e[65]!==Je||e[66]!==Le||e[67]!==We||e[68]!==Ae||e[69]!==Qe||e[70]!==me?.trackId||e[71]!==Oe?(yt=Ae&&0===Je.length?(0,F.jsx)(n.default,{style:U.skeletonGrid,children:Array.from({length:3*Math.max(1,tt)},(e,t)=>(0,F.jsx)(n.default,{style:[U.skeletonCell,{width:100/Math.max(1,tt)+"%"}],children:(0,F.jsx)(n.default,{style:U.skeletonTile,children:(0,F.jsx)(p.SkeletonBox,{})})},t))}):0===Je.length?(0,F.jsx)(j.EventsEmpty,{filteredOut:Oe>0,canLoadMore:Le,busy:We,onLoadMore:Qe}):(0,F.jsx)(R.TracksGallery,{tracks:Je,columns:tt,onSelect:fe,onEndReached:Qe,isFetchingNextPage:We,selectedTrackId:me?.trackId??null}),e[64]=tt,e[65]=Je,e[66]=Le,e[67]=We,e[68]=Ae,e[69]=Qe,e[70]=me?.trackId,e[71]=Oe,e[72]=yt):yt=e[72];const bt=yt;let vt;e[73]!==we||e[74]!==tt||e[75]!==bt||e[76]!==Re.enabled||e[77]!==Re.loading||e[78]!==Re.results?(vt=Re.enabled?(0,F.jsx)(P.SemanticSearchResults,{results:Re.results,loading:Re.loading,columns:tt,cameraName:we}):bt,e[73]=we,e[74]=tt,e[75]=bt,e[76]=Re.enabled,e[77]=Re.loading,e[78]=Re.results,e[79]=vt):vt=e[79];const Ct=vt;let kt,It,jt,pt;e[80]===Symbol.for("react.memo_cache_sentinel")?(kt=e=>{const t=Math.round(e.nativeEvent.layout.width);Ye(e=>e===t?e:t)},e[80]=kt):kt=e[80];e[81]!==J.maxContentWidth?(It=[U.centered,{maxWidth:J.maxContentWidth}],e[81]=J.maxContentWidth,e[82]=It):It=e[82];e[83]!==Ct||e[84]!==mt||e[85]!==xt||e[86]!==It?(jt=(0,F.jsxs)(n.default,{style:It,children:[mt,xt,Ct]}),e[83]=Ct,e[84]=mt,e[85]=xt,e[86]=It,e[87]=jt):jt=e[87];e[88]!==gt||e[89]!==jt?(pt=(0,F.jsxs)(n.default,{style:U.galleryColumn,onLayout:kt,children:[jt,gt]}),e[88]=gt,e[89]=jt,e[90]=pt):pt=e[90];const Mt=pt;if("split"===J.mode){let t,s,d,i,u,h,S,x,y,b,v,C,k;return e[91]!==f.background?(t={flex:1,backgroundColor:f.background},e[91]=f.background,e[92]=t):t=e[92],e[93]===Symbol.for("react.memo_cache_sentinel")?(s=(0,F.jsx)(m.ScreenHeader,{}),e[93]=s):s=e[93],e[94]!==f.border?(d=[U.rail,{borderColor:f.border}],e[94]=f.border,e[95]=d):d=e[95],e[96]!==He||e[97]!==je||e[98]!==lt||e[99]!==le||e[100]!==ze?(i=(0,F.jsx)(w.EventsFilterPanel,{cameras:je,availableClasses:He,showSort:ze,dateLabel:lt,dayOffset:le,onPrevDay:de,onNextDay:ue}),e[96]=He,e[97]=je,e[98]=lt,e[99]=le,e[100]=ze,e[101]=i):i=e[101],e[102]!==f.surface?(u=[U.railReset,{backgroundColor:f.surface}],e[102]=f.surface,e[103]=u):u=e[103],e[104]!==f.foregroundMuted?(h=[U.railResetText,{color:f.foregroundMuted}],e[104]=f.foregroundMuted,e[105]=h):h=e[105],e[106]!==c?(S=c("common.reset","Reset"),e[106]=c,e[107]=S):S=e[107],e[108]!==h||e[109]!==S?(x=(0,F.jsx)(o.default,{style:h,children:S}),e[108]=h,e[109]=S,e[110]=x):x=e[110],e[111]!==Y||e[112]!==u||e[113]!==x?(y=(0,F.jsx)(l.default,{onPress:Y,style:u,children:x}),e[111]=Y,e[112]=u,e[113]=x,e[114]=y):y=e[114],e[115]!==d||e[116]!==i||e[117]!==y?(b=(0,F.jsxs)(n.default,{style:d,children:[i,y]}),e[115]=d,e[116]=i,e[117]=y,e[118]=b):b=e[118],e[119]!==f.foregroundSubtle||e[120]!==nt||e[121]!==me||e[122]!==c?(v=(0,F.jsx)(n.default,{style:U.detailColumn,children:me?(0,F.jsx)(T.TrackDetailView,{track:me,onSeek:nt,onClose:()=>fe(null),bottomInset:0}):(0,F.jsx)(n.default,{style:U.center,children:(0,F.jsx)(o.default,{style:{color:f.foregroundSubtle,fontSize:13},children:c("v2.events.selectHint","Select an event")})})}),e[119]=f.foregroundSubtle,e[120]=nt,e[121]=me,e[122]=c,e[123]=v):v=e[123],e[124]!==Mt||e[125]!==b||e[126]!==v?(C=(0,F.jsxs)(n.default,{style:U.splitRow,children:[b,Mt,v]}),e[124]=Mt,e[125]=b,e[126]=v,e[127]=C):C=e[127],e[128]!==t||e[129]!==C?(k=(0,F.jsxs)(n.default,{style:t,children:[s,C]}),e[128]=t,e[129]=C,e[130]=k):k=e[130],k}let _t,Dt,wt,Et,Pt,Rt,Nt;e[131]!==f.background?(_t={flex:1,backgroundColor:f.background},e[131]=f.background,e[132]=_t):_t=e[132];e[133]===Symbol.for("react.memo_cache_sentinel")?(Dt=(0,F.jsx)(m.ScreenHeader,{}),e[133]=Dt):Dt=e[133];e[134]===Symbol.for("react.memo_cache_sentinel")?(wt=()=>fe(null),e[134]=wt):wt=e[134];e[135]!==nt||e[136]!==me?(Et=(0,F.jsx)(N.TrackDetailModal,{track:me,onSeek:nt,onClose:wt}),e[135]=nt,e[136]=me,e[137]=Et):Et=e[137];e[138]===Symbol.for("react.memo_cache_sentinel")?(Pt=()=>ge(!1),e[138]=Pt):Pt=e[138];e[139]!==He||e[140]!==je||e[141]!==lt||e[142]!==le||e[143]!==he||e[144]!==ze?(Rt=(0,F.jsx)(_.EventsFilterSheet,{visible:he,onClose:Pt,cameras:je,availableClasses:He,showSort:ze,dateLabel:lt,dayOffset:le,onPrevDay:de,onNextDay:ue}),e[139]=He,e[140]=je,e[141]=lt,e[142]=le,e[143]=he,e[144]=ze,e[145]=Rt):Rt=e[145];e[146]!==Mt||e[147]!==_t||e[148]!==Et||e[149]!==Rt?(Nt=(0,F.jsxs)(n.default,{style:_t,children:[Dt,Mt,Et,Rt]}),e[146]=Mt,e[147]=_t,e[148]=Et,e[149]=Rt,e[150]=Nt):Nt=e[150];return Nt};var t=r(_d[0]),s=r(_d[1]),n=e(r(_d[2])),l=e(r(_d[3])),o=e(r(_d[4])),c=e(r(_d[5])),d=r(_d[6]),i=r(_d[7]),u=r(_d[8]),m=r(_d[9]),f=r(_d[10]),h=r(_d[11]),S=r(_d[12]),x=r(_d[13]),y=r(_d[14]),b=r(_d[15]),v=r(_d[16]),C=r(_d[17]),k=r(_d[18]),I=r(_d[19]),j=r(_d[20]),p=r(_d[21]),M=r(_d[22]),_=r(_d[23]),D=r(_d[24]),w=r(_d[25]),E=r(_d[26]),P=r(_d[27]),R=r(_d[28]),N=r(_d[29]),T=r(_d[30]),F=r(_d[31]);const A=864e5,G=350;function L(e){return{id:e.id,name:e.name}}function W(e){return Math.max(0,e-1)}function O(e){return e+1}function H(){return Date.now()}function V(e){return e.reset}function z(e){return e.setSortMode}function B(e){return e.filter}function $(e){return e.hydrate}const U=c.default.create({center:{flex:1,alignItems:'center',justifyContent:'center'},splitRow:{flex:1,flexDirection:'row'},rail:{width:300,borderRightWidth:c.default.hairlineWidth,paddingHorizontal:f.SPACING.md},railReset:{alignItems:'center',paddingVertical:f.SPACING.md,borderRadius:f.RADIUS.md,marginVertical:f.SPACING.sm},railResetText:{fontSize:14,fontWeight:'600'},galleryColumn:{flex:1,alignItems:'center'},skeletonGrid:{flexDirection:'row',flexWrap:'wrap',padding:f.SPACING.md/2},skeletonCell:{padding:f.SPACING.md/2},skeletonTile:{aspectRatio:1,borderRadius:f.RADIUS.md,overflow:'hidden'},centered:{flex:1,width:'100%'},detailColumn:{width:420,padding:f.SPACING.md}})},3387,[15,17,20,252,112,33,786,743,2587,3050,2589,3388,3177,3140,3080,3389,3391,3383,3392,3237,3393,3151,3394,3395,3397,3396,3398,3399,3400,3238,3239,10]);
15809
15809
  __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"DEFAULTS",{enumerable:!0,get:function(){return n}}),_e.parseFilter=u,Object.defineProperty(_e,"useEventsFilterStore",{enumerable:!0,get:function(){return p}});var e,t=r(d[0]),s=r(d[1]),l=(e=s)&&e.__esModule?e:{default:e};const n=Object.freeze({cameraIds:[],classes:[],label:'',sortMode:'time'}),c='camstack.v2.events-filter';function o(e){return Array.isArray(e)?e.filter(e=>'number'==typeof e):[]}function f(e){return Array.isArray(e)?e.filter(e=>'string'==typeof e):[]}function u(e){if('object'!=typeof(t=e)||null===t||Array.isArray(t))return n;var t;const s='importance'===e.sortMode?'importance':n.sortMode;return{cameraIds:o(e.cameraIds),classes:f(e.classes),label:'string'==typeof e.label?e.label:n.label,sortMode:s}}function y(e,t){return e.includes(t)?e.filter(e=>e!==t):[...e,t]}function b(e){l.default.setItem(c,JSON.stringify(e)).catch(()=>{})}const p=(0,t.create)((e,t)=>({filter:n,hydrated:!1,hydrate:async()=>{if(!t().hydrated)try{const t=await l.default.getItem(c);e({filter:t?u(JSON.parse(t)):n,hydrated:!0})}catch{e({filter:n,hydrated:!0})}},toggleCamera:s=>{const l=Object.assign({},t().filter,{cameraIds:y(t().filter.cameraIds,s)});e({filter:l}),b(l)},toggleClass:s=>{const l=Object.assign({},t().filter,{classes:(n=t().filter.classes,c=s,n.includes(c)?n.filter(e=>e!==c):[...n,c])});var n,c;e({filter:l}),b(l)},setClasses:s=>{const l=Object.assign({},t().filter,{classes:[...new Set(s)]});e({filter:l}),b(l)},setLabel:s=>{const l=Object.assign({},t().filter,{label:s});e({filter:l}),b(l)},setSortMode:s=>{const l=Object.assign({},t().filter,{sortMode:s});e({filter:l}),b(l)},reset:()=>{e({filter:n}),b(n)}}))},3388,[2706,3133]);
15810
15810
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"resolveEventsLayout",{enumerable:!0,get:function(){return u.resolveEventsLayout}}),Object.defineProperty(e,"EVENTS_MAX_CONTENT_WIDTH",{enumerable:!0,get:function(){return u.EVENTS_MAX_CONTENT_WIDTH}}),e.useEventsLayout=function(){const o=(0,t.c)(3),s=(0,n.useGridColumns)(),c=(0,n.useWideDetailLayout)();let l;o[0]!==s||o[1]!==c?(l=(0,u.resolveEventsLayout)({columns:s,wide:c}),o[0]=s,o[1]=c,o[2]=l):l=o[2];return l};var t=r(d[0]),n=r(d[1]),u=r(d[2])},3389,[15,2590,3390]);
15811
15811
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"EVENTS_MAX_CONTENT_WIDTH",{enumerable:!0,get:function(){return t}}),e.resolveEventsLayout=function({columns:o,wide:u}){if(o<=1)return{mode:'phone',columns:1,showDetailPane:!1,maxContentWidth:t};if(u)return{mode:'split',columns:Math.max(n,o-1),showDetailPane:!0,maxContentWidth:t};return{mode:'grid',columns:o,showDetailPane:!1,maxContentWidth:t}};const t=1600,n=2},3390,[]);
15812
15812
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useDebouncedValue=function(c,n){const o=(0,t.c)(4),[s,f]=(0,u.useState)(c);let l,_;o[0]!==n||o[1]!==c?(l=()=>{const t=setTimeout(()=>f(c),n);return()=>clearTimeout(t)},_=[c,n],o[0]=n,o[1]=c,o[2]=l,o[3]=_):(l=o[2],_=o[3]);return(0,u.useEffect)(l,_),s};var t=r(d[0]),u=r(d[1])},3391,[15,17]);
15813
- __d(function(g,_r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useSemanticSearch=function(u,v){const y=(0,t.c)(31);let S;y[0]!==v?(S=void 0===v?{}:v,y[0]=v,y[1]=S):S=y[1];const f=S,{controller:F,state:p}=(0,c.useConnection)();let I;y[2]!==u?(I=u.trim(),y[2]=u,y[3]=I):I=y[3];const h=I,b=h.length>0,_=f.deviceId??"all",A=f.classFilter??"any",j=f.since??0,q=f.until??0,C=f.limit??r,O=f.minScore??o;let Q;y[4]!==_||y[5]!==A||y[6]!==j||y[7]!==q||y[8]!==C||y[9]!==O||y[10]!==h?(Q=["v2","analytics","semantic-search",h,_,A,j,q,C,O],y[4]=_,y[5]=A,y[6]=j,y[7]=q,y[8]=C,y[9]=O,y[10]=h,y[11]=Q):Q=y[11];const w=Q,x=b&&"connected"===p;let E,K;y[12]!==F||y[13]!==f.classFilter||y[14]!==f.deviceId||y[15]!==f.limit||y[16]!==f.minScore||y[17]!==f.since||y[18]!==f.until||y[19]!==h?(E=async()=>{const t=F.getSystem();if(!t)return[];const n={text:h,limit:f.limit??r,minScore:f.minScore??o};void 0!==f.deviceId&&(n.deviceId=f.deviceId),void 0!==f.since&&(n.since=f.since),void 0!==f.until&&(n.until=f.until),void 0!==f.classFilter&&(n.classFilter=f.classFilter);const c=await(0,s.capQuery)(t.trpcClient,"pipelineAnalytics","searchObjectEvents",n);if(!Array.isArray(c))return[];const u=[];for(const t of c){const n=(0,l.toScoredResult)(t);null!==n&&u.push(n)}return u},y[12]=F,y[13]=f.classFilter,y[14]=f.deviceId,y[15]=f.limit,y[16]=f.minScore,y[17]=f.since,y[18]=f.until,y[19]=h,y[20]=E):E=y[20];y[21]!==w||y[22]!==x||y[23]!==E?(K={queryKey:w,enabled:x,staleTime:3e4,queryFn:E},y[21]=w,y[22]=x,y[23]=E,y[24]=K):K=y[24];const L=(0,n.useQuery)(K);let M;y[25]!==L.data?(M=L.data??[],y[25]=L.data,y[26]=M):M=y[26];const P=b&&L.isLoading;let R;y[27]!==b||y[28]!==M||y[29]!==P?(R={results:M,loading:P,enabled:b},y[27]=b,y[28]=M,y[29]=P,y[30]=R):R=y[30];return R};var t=_r(d[0]);_r(d[1]);var n=_r(d[2]),c=_r(d[3]),s=_r(d[4]),l=_r(d[5]);const r=50,o=.2},3392,[15,17,3081,2594,3162,3381]);
15813
+ __d(function(g,_r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useSemanticSearch=function(u,v){const y=(0,t.c)(31);let S;y[0]!==v?(S=void 0===v?{}:v,y[0]=v,y[1]=S):S=y[1];const f=S,{controller:F,state:p}=(0,c.useConnection)();let I;y[2]!==u?(I=u.trim(),y[2]=u,y[3]=I):I=y[3];const h=I,b=h.length>0,_=f.deviceId??"all",A=f.classFilter??"any",j=f.since??0,q=f.until??0,C=f.limit??r,O=f.minScore??o;let Q;y[4]!==_||y[5]!==A||y[6]!==j||y[7]!==q||y[8]!==C||y[9]!==O||y[10]!==h?(Q=["v2","analytics","semantic-search",h,_,A,j,q,C,O],y[4]=_,y[5]=A,y[6]=j,y[7]=q,y[8]=C,y[9]=O,y[10]=h,y[11]=Q):Q=y[11];const w=Q,x=b&&"connected"===p;let E,K;y[12]!==F||y[13]!==f.classFilter||y[14]!==f.deviceId||y[15]!==f.limit||y[16]!==f.minScore||y[17]!==f.since||y[18]!==f.until||y[19]!==h?(E=async()=>{const t=F.getSystem();if(!t)return[];const n={text:h,limit:f.limit??r,minScore:f.minScore??o};void 0!==f.deviceId&&(n.deviceId=f.deviceId),void 0!==f.since&&(n.since=f.since),void 0!==f.until&&(n.until=f.until),void 0!==f.classFilter&&(n.classFilter=f.classFilter);const c=await(0,s.capQuery)(t.trpcClient,"pipelineAnalytics","searchObjectEvents",n);if(!Array.isArray(c))return[];const u=[];for(const t of c){const n=(0,l.toScoredResult)(t);null!==n&&u.push(n)}return u},y[12]=F,y[13]=f.classFilter,y[14]=f.deviceId,y[15]=f.limit,y[16]=f.minScore,y[17]=f.since,y[18]=f.until,y[19]=h,y[20]=E):E=y[20];y[21]!==w||y[22]!==x||y[23]!==E?(K={queryKey:w,enabled:x,staleTime:3e4,queryFn:E},y[21]=w,y[22]=x,y[23]=E,y[24]=K):K=y[24];const L=(0,n.useQuery)(K);let M;y[25]!==L.data?(M=L.data??[],y[25]=L.data,y[26]=M):M=y[26];const P=b&&L.isLoading;let R;y[27]!==b||y[28]!==M||y[29]!==P?(R={results:M,loading:P,enabled:b},y[27]=b,y[28]=M,y[29]=P,y[30]=R):R=y[30];return R};var t=_r(d[0]);_r(d[1]);var n=_r(d[2]),c=_r(d[3]),s=_r(d[4]),l=_r(d[5]);const r=50,o=.2},3392,[15,17,3081,2594,3162,3237]);
15814
15814
  __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.EventsEmpty=function(e){const u=(0,t.c)(19),{filteredOut:y,canLoadMore:x,busy:b,onLoadMore:h}=e,{t:j}=(0,c.useTranslation)(),{colors:M}=(0,f.useTheme)();let S;u[0]!==y||u[1]!==j?(S=y?j("v2.events.filteredEmpty","No matches in the loaded range"):j("v2.events.empty","No events"),u[0]=y,u[1]=j,u[2]=S):S=u[2];const A=S;let C,I,N,P;u[3]!==M.foregroundMuted?(C=[v.message,{color:M.foregroundMuted}],u[3]=M.foregroundMuted,u[4]=C):C=u[4];u[5]!==A||u[6]!==C?(I=(0,p.jsx)(n.default,{style:C,children:A}),u[5]=A,u[6]=C,u[7]=I):I=u[7];u[8]!==b||u[9]!==x||u[10]!==M.foreground||u[11]!==M.primary||u[12]!==M.surface||u[13]!==h||u[14]!==j?(N=x?(0,p.jsx)(l.default,{onPress:h,disabled:b,style:[v.button,{backgroundColor:M.surface,opacity:b?.5:1}],children:b?(0,p.jsx)(s.default,{color:M.primary,size:"small"}):(0,p.jsx)(n.default,{style:[v.buttonText,{color:M.foreground}],children:j("v2.events.loadOlder","Load older")})}):null,u[8]=b,u[9]=x,u[10]=M.foreground,u[11]=M.primary,u[12]=M.surface,u[13]=h,u[14]=j,u[15]=N):N=u[15];u[16]!==I||u[17]!==N?(P=(0,p.jsxs)(o.default,{style:v.center,children:[I,N]}),u[16]=I,u[17]=N,u[18]=P):P=u[18];return P};var t=r(d[0]);r(d[1]);var o=e(r(d[2])),n=e(r(d[3])),l=e(r(d[4])),s=e(r(d[5])),u=e(r(d[6])),c=r(d[7]),f=r(d[8]),y=r(d[9]),p=r(d[10]);const v=u.default.create({center:{flex:1,alignItems:'center',justifyContent:'center',gap:y.SPACING.md,padding:y.SPACING['2xl']},message:{fontSize:15,textAlign:'center'},button:{paddingHorizontal:y.SPACING.xl,paddingVertical:y.SPACING.md,borderRadius:y.RADIUS.md},buttonText:{fontSize:14,fontWeight:'600'}})},3393,[15,17,20,112,252,240,33,786,2587,2589,10]);
15815
15815
  __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,"EventsFilterBar",{enumerable:!0,get:function(){return v}});var o=r(d[0]),n=r(d[1]),t=e(r(d[2])),s=e(r(d[3])),l=e(r(d[4])),u=e(r(d[5])),c=e(r(d[6])),f=r(d[7]),p=r(d[8]),y=r(d[9]),h=r(d[10]),x=r(d[11]),b=r(d[12]);const j=Object.freeze({compact:'S',medium:'M',large:'L'}),v=(0,n.memo)(function(e){const n=(0,o.c)(137),{dateLabel:c,dayOffset:h,onPrevDay:v,onNextDay:S,selectedCameras:I,selectedClasses:M,showSort:z,sortMode:P,onToggleSort:T,activeCount:w,onOpenSheet:D,onOpenDisplay:F,density:N,onSetDensity:R}=e,{colors:k}=(0,y.useTheme)(),{t:A}=(0,f.useTranslation)();let G;n[0]!==A?(G=e=>e>0?String(e):A("v2.events.all","All"),n[0]=A,n[1]=G):G=n[1];const O=G;let H,L,_,B,W;n[2]!==k.surface?(H=[C.navBtn,{backgroundColor:k.surface}],n[2]=k.surface,n[3]=H):H=n[3],n[4]!==k.foreground?(L=(0,b.jsx)(p.ChevronLeft,{size:18,color:k.foreground}),n[4]=k.foreground,n[5]=L):L=n[5],n[6]!==v||n[7]!==H||n[8]!==L?(_=(0,b.jsx)(l.default,{onPress:v,hitSlop:8,style:H,children:L}),n[6]=v,n[7]=H,n[8]=L,n[9]=_):_=n[9],n[10]!==k.foreground?(B=[C.dateText,{color:k.foreground}],n[10]=k.foreground,n[11]=B):B=n[11],n[12]!==c||n[13]!==B?(W=(0,b.jsx)(s.default,{numberOfLines:1,style:B,children:c}),n[12]=c,n[13]=B,n[14]=W):W=n[14];const E=0===h,V=0===h?.4:1;let $,U,q,J,K,Q,X,Y,Z,ee,re,oe,ne,te,se,de,ie,ae,le,ue,ce,fe,ge,pe,ye,he,me,xe,be,je,ve,Ce,Se,Ie,Me,ze,Pe;return n[15]!==k.surface||n[16]!==V?($=[C.navBtn,{backgroundColor:k.surface,opacity:V}],n[15]=k.surface,n[16]=V,n[17]=$):$=n[17],n[18]!==k.foreground?(U=(0,b.jsx)(p.ChevronRight,{size:18,color:k.foreground}),n[18]=k.foreground,n[19]=U):U=n[19],n[20]!==S||n[21]!==U||n[22]!==E||n[23]!==$?(q=(0,b.jsx)(l.default,{onPress:S,hitSlop:8,disabled:E,style:$,children:U}),n[20]=S,n[21]=U,n[22]=E,n[23]=$,n[24]=q):q=n[24],n[25]!==q||n[26]!==_||n[27]!==W?(J=(0,b.jsxs)(t.default,{style:C.dayNav,children:[_,W,q]}),n[25]=q,n[26]=_,n[27]=W,n[28]=J):J=n[28],n[29]!==k.surface?(K=[C.chip,C.iconChip,{backgroundColor:k.surface}],n[29]=k.surface,n[30]=K):K=n[30],n[31]!==k.foreground?(Q=(0,b.jsx)(p.SlidersHorizontal,{size:14,color:k.foreground}),n[31]=k.foreground,n[32]=Q):Q=n[32],n[33]!==k.foreground?(X=[C.chipText,{color:k.foreground}],n[33]=k.foreground,n[34]=X):X=n[34],n[35]!==A?(Y=A("v2.events.filters","Filters"),n[35]=A,n[36]=Y):Y=n[36],n[37]!==X||n[38]!==Y?(Z=(0,b.jsx)(s.default,{style:X,children:Y}),n[37]=X,n[38]=Y,n[39]=Z):Z=n[39],n[40]!==w||n[41]!==k.primary||n[42]!==k.primaryForeground?(ee=w>0?(0,b.jsx)(t.default,{style:[C.badge,{backgroundColor:k.primary}],children:(0,b.jsx)(s.default,{style:[C.badgeText,{color:k.primaryForeground}],children:w})}):null,n[40]=w,n[41]=k.primary,n[42]=k.primaryForeground,n[43]=ee):ee=n[43],n[44]!==D||n[45]!==K||n[46]!==Q||n[47]!==Z||n[48]!==ee?(re=(0,b.jsxs)(l.default,{onPress:D,style:K,children:[Q,Z,ee]}),n[44]=D,n[45]=K,n[46]=Q,n[47]=Z,n[48]=ee,n[49]=re):re=n[49],n[50]!==k.surface?(oe=[C.chip,{backgroundColor:k.surface}],n[50]=k.surface,n[51]=oe):oe=n[51],n[52]!==k.foregroundMuted?(ne=[C.chipText,{color:k.foregroundMuted}],n[52]=k.foregroundMuted,n[53]=ne):ne=n[53],n[54]!==A?(te=A("v2.events.cameras","Cameras"),n[54]=A,n[55]=te):te=n[55],n[56]!==O||n[57]!==I?(se=O(I),n[56]=O,n[57]=I,n[58]=se):se=n[58],n[59]!==ne||n[60]!==te||n[61]!==se?(de=(0,b.jsxs)(s.default,{style:ne,children:[te," \xb7 ",se]}),n[59]=ne,n[60]=te,n[61]=se,n[62]=de):de=n[62],n[63]!==D||n[64]!==oe||n[65]!==de?(ie=(0,b.jsx)(l.default,{onPress:D,style:oe,children:de}),n[63]=D,n[64]=oe,n[65]=de,n[66]=ie):ie=n[66],n[67]!==k.surface?(ae=[C.chip,{backgroundColor:k.surface}],n[67]=k.surface,n[68]=ae):ae=n[68],n[69]!==k.foregroundMuted?(le=[C.chipText,{color:k.foregroundMuted}],n[69]=k.foregroundMuted,n[70]=le):le=n[70],n[71]!==A?(ue=A("v2.events.classes","Classes"),n[71]=A,n[72]=ue):ue=n[72],n[73]!==O||n[74]!==M?(ce=O(M),n[73]=O,n[74]=M,n[75]=ce):ce=n[75],n[76]!==le||n[77]!==ue||n[78]!==ce?(fe=(0,b.jsxs)(s.default,{style:le,children:[ue," \xb7 ",ce]}),n[76]=le,n[77]=ue,n[78]=ce,n[79]=fe):fe=n[79],n[80]!==D||n[81]!==ae||n[82]!==fe?(ge=(0,b.jsx)(l.default,{onPress:D,style:ae,children:fe}),n[80]=D,n[81]=ae,n[82]=fe,n[83]=ge):ge=n[83],n[84]!==k.foregroundMuted||n[85]!==k.primary||n[86]!==k.primaryForeground||n[87]!==k.surface||n[88]!==T||n[89]!==z||n[90]!==P||n[91]!==A?(pe=z?(0,b.jsxs)(l.default,{onPress:T,style:[C.chip,C.iconChip,{backgroundColor:"importance"===P?k.primary:k.surface}],children:[(0,b.jsx)(p.ArrowDownWideNarrow,{size:14,color:"importance"===P?k.primaryForeground:k.foregroundMuted}),(0,b.jsx)(s.default,{style:[C.chipText,{color:"importance"===P?k.primaryForeground:k.foregroundMuted}],children:"importance"===P?A("v2.events.sortImportance","Importance"):A("v2.events.sortTime","Newest")})]}):null,n[84]=k.foregroundMuted,n[85]=k.primary,n[86]=k.primaryForeground,n[87]=k.surface,n[88]=T,n[89]=z,n[90]=P,n[91]=A,n[92]=pe):pe=n[92],n[93]!==k.surface?(ye=[C.chip,C.iconChip,{backgroundColor:k.surface}],n[93]=k.surface,n[94]=ye):ye=n[94],n[95]!==k.foreground?(he=(0,b.jsx)(p.Eye,{size:14,color:k.foreground}),n[95]=k.foreground,n[96]=he):he=n[96],n[97]!==k.foreground?(me=[C.chipText,{color:k.foreground}],n[97]=k.foreground,n[98]=me):me=n[98],n[99]!==A?(xe=A("v2.events.displayOptions"),n[99]=A,n[100]=xe):xe=n[100],n[101]!==me||n[102]!==xe?(be=(0,b.jsx)(s.default,{style:me,children:xe}),n[101]=me,n[102]=xe,n[103]=be):be=n[103],n[104]!==F||n[105]!==ye||n[106]!==he||n[107]!==be?(je=(0,b.jsxs)(l.default,{onPress:F,style:ye,children:[he,be]}),n[104]=F,n[105]=ye,n[106]=he,n[107]=be,n[108]=je):je=n[108],n[109]!==k.surface?(ve=[C.densityGroup,{backgroundColor:k.surface}],n[109]=k.surface,n[110]=ve):ve=n[110],n[111]!==A?(Ce=A("v2.events.density"),n[111]=A,n[112]=Ce):Ce=n[112],n[113]!==k.foregroundMuted?(Se=(0,b.jsx)(p.Grid3x3,{size:13,color:k.foregroundMuted,style:C.densityIcon}),n[113]=k.foregroundMuted,n[114]=Se):Se=n[114],n[115]!==k.foregroundMuted||n[116]!==k.primary||n[117]!==k.primaryForeground||n[118]!==N||n[119]!==R||n[120]!==A?(Ie=x.GRID_DENSITIES.map(e=>{const o=e===N;return(0,b.jsx)(l.default,{onPress:()=>R(e),accessibilityRole:"button",accessibilityLabel:`${A("v2.events.density")} ${j[e]}`,style:[C.densityBtn,{backgroundColor:o?k.primary:"transparent"}],children:(0,b.jsx)(s.default,{style:[C.chipText,{color:o?k.primaryForeground:k.foregroundMuted}],children:j[e]})},e)}),n[115]=k.foregroundMuted,n[116]=k.primary,n[117]=k.primaryForeground,n[118]=N,n[119]=R,n[120]=A,n[121]=Ie):Ie=n[121],n[122]!==ve||n[123]!==Ce||n[124]!==Se||n[125]!==Ie?(Me=(0,b.jsxs)(t.default,{style:ve,accessibilityLabel:Ce,children:[Se,Ie]}),n[122]=ve,n[123]=Ce,n[124]=Se,n[125]=Ie,n[126]=Me):Me=n[126],n[127]!==re||n[128]!==ie||n[129]!==ge||n[130]!==pe||n[131]!==je||n[132]!==Me?(ze=(0,b.jsxs)(u.default,{horizontal:!0,showsHorizontalScrollIndicator:!1,contentContainerStyle:C.chips,children:[re,ie,ge,pe,je,Me]}),n[127]=re,n[128]=ie,n[129]=ge,n[130]=pe,n[131]=je,n[132]=Me,n[133]=ze):ze=n[133],n[134]!==J||n[135]!==ze?(Pe=(0,b.jsxs)(t.default,{style:C.wrap,children:[J,ze]}),n[134]=J,n[135]=ze,n[136]=Pe):Pe=n[136],Pe}),C=c.default.create({wrap:{flexDirection:'row',alignItems:'center',gap:h.SPACING.sm,paddingHorizontal:h.SPACING.md,paddingTop:h.SPACING.xs},dayNav:{flexDirection:'row',alignItems:'center',gap:h.SPACING.xs},navBtn:{width:30,height:30,borderRadius:h.RADIUS.md,alignItems:'center',justifyContent:'center'},dateText:{fontSize:13,fontWeight:'600',minWidth:72,textAlign:'center',fontVariant:['tabular-nums']},chips:{gap:h.SPACING.xs,alignItems:'center',paddingRight:h.SPACING.md},chip:{paddingHorizontal:12,paddingVertical:6,borderRadius:999},iconChip:{flexDirection:'row',alignItems:'center',gap:4},chipText:{fontSize:12,fontWeight:'600'},badge:{minWidth:16,height:16,borderRadius:8,paddingHorizontal:4,alignItems:'center',justifyContent:'center'},badgeText:{fontSize:10,fontWeight:'700'},densityGroup:{flexDirection:'row',alignItems:'center',borderRadius:999,paddingHorizontal:4,paddingVertical:2,gap:2},densityIcon:{marginLeft:4,marginRight:2},densityBtn:{paddingHorizontal:8,paddingVertical:4,borderRadius:999}})},3394,[15,17,20,112,252,147,33,786,813,2587,2589,3140,10]);
15816
15816
  __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,"EventsFilterSheet",{enumerable:!0,get:function(){return S}});var t=r(d[0]),o=r(d[1]),n=e(r(d[2])),s=e(r(d[3])),l=e(r(d[4])),u=e(r(d[5])),f=e(r(d[6])),c=r(d[7]),y=r(d[8]),b=r(d[9]),h=r(d[10]),p=r(d[11]),x=r(d[12]),j=r(d[13]),C=r(d[14]);const S=(0,o.memo)(function(e){const o=(0,t.c)(74),{visible:f,onClose:S,cameras:I,availableClasses:A,showSort:D,dateLabel:R,dayOffset:k,onPrevDay:B,onNextDay:T}=e,{colors:N}=(0,h.useTheme)(),{t:F}=(0,y.useTranslation)(),G=(0,c.useSafeAreaInsets)(),w=(0,x.useEventsFilterStore)(P);let E,_,M,z,O,U,L,H,W,q;o[0]!==S?(E=(0,C.jsx)(u.default,{style:v.scrim,onPress:S}),o[0]=S,o[1]=E):E=o[1],o[2]!==N.backgroundElevated?(_=[v.sheet,{backgroundColor:N.backgroundElevated}],o[2]=N.backgroundElevated,o[3]=_):_=o[3],o[4]!==N.foreground?(M=[v.title,{color:N.foreground}],o[4]=N.foreground,o[5]=M):M=o[5],o[6]!==F?(z=F("v2.events.filters","Filters"),o[6]=F,o[7]=z):z=o[7],o[8]!==M||o[9]!==z?(O=(0,C.jsx)(l.default,{style:M,children:z}),o[8]=M,o[9]=z,o[10]=O):O=o[10],o[11]!==N.surface?(U=[v.iconBtn,{backgroundColor:N.surface}],o[11]=N.surface,o[12]=U):U=o[12],o[13]!==N.foreground?(L=(0,C.jsx)(b.X,{size:18,color:N.foreground}),o[13]=N.foreground,o[14]=L):L=o[14],o[15]!==S||o[16]!==U||o[17]!==L?(H=(0,C.jsx)(u.default,{onPress:S,hitSlop:10,style:U,children:L}),o[15]=S,o[16]=U,o[17]=L,o[18]=H):H=o[18],o[19]!==O||o[20]!==H?(W=(0,C.jsxs)(s.default,{style:v.header,children:[O,H]}),o[19]=O,o[20]=H,o[21]=W):W=o[21],o[22]!==A||o[23]!==I||o[24]!==R||o[25]!==k||o[26]!==T||o[27]!==B||o[28]!==D?(q=(0,C.jsx)(j.EventsFilterPanel,{cameras:I,availableClasses:A,showSort:D,dateLabel:R,dayOffset:k,onPrevDay:B,onNextDay:T}),o[22]=A,o[23]=I,o[24]=R,o[25]=k,o[26]=T,o[27]=B,o[28]=D,o[29]=q):q=o[29];const V=G.bottom+p.SPACING.md;let X,J,K,Q,Y,Z,$,ee,te,re,oe,ne,se,ae,de;return o[30]!==V?(X=[v.footer,{paddingBottom:V}],o[30]=V,o[31]=X):X=o[31],o[32]!==N.surface?(J=[v.footerBtn,{backgroundColor:N.surface}],o[32]=N.surface,o[33]=J):J=o[33],o[34]!==N.foregroundMuted?(K=[v.footerBtnText,{color:N.foregroundMuted}],o[34]=N.foregroundMuted,o[35]=K):K=o[35],o[36]!==F?(Q=F("common.reset","Reset"),o[36]=F,o[37]=Q):Q=o[37],o[38]!==K||o[39]!==Q?(Y=(0,C.jsx)(l.default,{style:K,children:Q}),o[38]=K,o[39]=Q,o[40]=Y):Y=o[40],o[41]!==w||o[42]!==J||o[43]!==Y?(Z=(0,C.jsx)(u.default,{onPress:w,style:J,children:Y}),o[41]=w,o[42]=J,o[43]=Y,o[44]=Z):Z=o[44],o[45]!==N.primary?($=[v.footerBtn,{backgroundColor:N.primary}],o[45]=N.primary,o[46]=$):$=o[46],o[47]!==N.primaryForeground?(ee=[v.footerBtnText,{color:N.primaryForeground}],o[47]=N.primaryForeground,o[48]=ee):ee=o[48],o[49]!==F?(te=F("v2.events.done","Done"),o[49]=F,o[50]=te):te=o[50],o[51]!==ee||o[52]!==te?(re=(0,C.jsx)(l.default,{style:ee,children:te}),o[51]=ee,o[52]=te,o[53]=re):re=o[53],o[54]!==S||o[55]!==$||o[56]!==re?(oe=(0,C.jsx)(u.default,{onPress:S,style:$,children:re}),o[54]=S,o[55]=$,o[56]=re,o[57]=oe):oe=o[57],o[58]!==X||o[59]!==Z||o[60]!==oe?(ne=(0,C.jsxs)(s.default,{style:X,children:[Z,oe]}),o[58]=X,o[59]=Z,o[60]=oe,o[61]=ne):ne=o[61],o[62]!==q||o[63]!==_||o[64]!==ne||o[65]!==W?(se=(0,C.jsxs)(s.default,{style:_,children:[W,q,ne]}),o[62]=q,o[63]=_,o[64]=ne,o[65]=W,o[66]=se):se=o[66],o[67]!==E||o[68]!==se?(ae=(0,C.jsxs)(s.default,{style:v.backdrop,children:[E,se]}),o[67]=E,o[68]=se,o[69]=ae):ae=o[69],o[70]!==S||o[71]!==ae||o[72]!==f?(de=(0,C.jsx)(n.default,{visible:f,animationType:"slide",transparent:!0,onRequestClose:S,children:ae}),o[70]=S,o[71]=ae,o[72]=f,o[73]=de):de=o[73],de}),v=f.default.create({backdrop:{flex:1,justifyContent:'flex-end'},scrim:{position:'absolute',top:0,left:0,right:0,bottom:0,backgroundColor:'rgba(0,0,0,0.5)'},sheet:{maxHeight:'85%',borderTopLeftRadius:p.RADIUS.xl,borderTopRightRadius:p.RADIUS.xl,paddingHorizontal:p.SPACING.md,paddingTop:p.SPACING.md},header:{flexDirection:'row',alignItems:'center',justifyContent:'space-between',paddingBottom:p.SPACING.sm},title:{fontSize:18,fontWeight:'700'},iconBtn:{width:32,height:32,borderRadius:p.RADIUS.md,alignItems:'center',justifyContent:'center'},footer:{flexDirection:'row',gap:p.SPACING.sm,paddingTop:p.SPACING.sm},footerBtn:{flex:1,alignItems:'center',paddingVertical:p.SPACING.md,borderRadius:p.RADIUS.md},footerBtnText:{fontSize:15,fontWeight:'700'}});function P(e){return e.reset}},3395,[15,17,245,20,112,252,33,466,786,813,2587,2589,3388,3396,10]);
15817
15817
  __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,"EventsFilterPanel",{enumerable:!0,get:function(){return v}});var o=r(_d[0]),t=r(_d[1]),n=e(r(_d[2])),s=e(r(_d[3])),l=e(r(_d[4])),d=e(r(_d[5])),c=e(r(_d[6])),u=e(r(_d[7])),i=r(_d[8]),f=r(_d[9]),h=r(_d[10]),b=r(_d[11]),S=r(_d[12]),x=r(_d[13]),p=r(_d[14]),y=r(_d[15]),C=r(_d[16]);const v=(0,t.memo)(function(e){const u=(0,o.c)(107),{cameras:p,availableClasses:y,showSort:v,dateLabel:I,dayOffset:G,onPrevDay:D,onNextDay:M,contentBottomInset:E}=e,F=void 0===E?0:E,{colors:_}=(0,h.useTheme)(),{t:B}=(0,i.useTranslation)(),H=(0,S.useEventsFilterStore)(k),K=(0,S.useEventsFilterStore)(T),V=(0,S.useEventsFilterStore)(L),W=(0,S.useEventsFilterStore)(N),O=(0,S.useEventsFilterStore)(R),U=(0,S.useEventsFilterStore)(A),[q,Q]=(0,t.useState)("");let $;if(u[0]!==q||u[1]!==p){const e=q.trim().toLowerCase();$=e?p.filter(o=>o.name.toLowerCase().includes(e)):p,u[0]=q,u[1]=p,u[2]=$}else $=u[2];const J=$;let X;u[3]!==p||u[4]!==H.cameraIds?(X=H.cameraIds.length>0?H.cameraIds:p.map(z),u[3]=p,u[4]=H.cameraIds,u[5]=X):X=u[5];const Y=X,Z=(0,x.useEventKinds)(Y),ee=F+b.SPACING.md;let re,oe,te,ne,se,le,ae,de,ce;u[6]!==ee?(re=[P.body,{paddingBottom:ee}],u[6]=ee,u[7]=re):re=u[7],u[8]!==_.foregroundSubtle?(oe=[P.sectionLabel,{color:_.foregroundSubtle}],u[8]=_.foregroundSubtle,u[9]=oe):oe=u[9],u[10]!==B?(te=B("v2.events.day","Day"),u[10]=B,u[11]=te):te=u[11],u[12]!==oe||u[13]!==te?(ne=(0,C.jsx)(s.default,{style:oe,children:te}),u[12]=oe,u[13]=te,u[14]=ne):ne=u[14],u[15]!==_.surface?(se=[P.navBtn,{backgroundColor:_.surface}],u[15]=_.surface,u[16]=se):se=u[16],u[17]!==_.foreground?(le=(0,C.jsx)(f.ChevronLeft,{size:18,color:_.foreground}),u[17]=_.foreground,u[18]=le):le=u[18],u[19]!==D||u[20]!==le||u[21]!==se?(ae=(0,C.jsx)(d.default,{onPress:D,style:se,children:le}),u[19]=D,u[20]=le,u[21]=se,u[22]=ae):ae=u[22],u[23]!==_.foreground?(de=[P.dateText,{color:_.foreground}],u[23]=_.foreground,u[24]=de):de=u[24],u[25]!==I||u[26]!==de?(ce=(0,C.jsx)(s.default,{style:de,children:I}),u[25]=I,u[26]=de,u[27]=ce):ce=u[27];const ue=0===G,ie=0===G?.4:1;let fe,ge,me,he,be,Se,xe;u[28]!==_.surface||u[29]!==ie?(fe=[P.navBtn,{backgroundColor:_.surface,opacity:ie}],u[28]=_.surface,u[29]=ie,u[30]=fe):fe=u[30],u[31]!==_.foreground?(ge=(0,C.jsx)(f.ChevronRight,{size:18,color:_.foreground}),u[31]=_.foreground,u[32]=ge):ge=u[32],u[33]!==M||u[34]!==ue||u[35]!==fe||u[36]!==ge?(me=(0,C.jsx)(d.default,{onPress:M,disabled:ue,style:fe,children:ge}),u[33]=M,u[34]=ue,u[35]=fe,u[36]=ge,u[37]=me):me=u[37],u[38]!==ae||u[39]!==ce||u[40]!==me?(he=(0,C.jsxs)(n.default,{style:P.dayNav,children:[ae,ce,me]}),u[38]=ae,u[39]=ce,u[40]=me,u[41]=he):he=u[41],u[42]!==_.foregroundSubtle?(be=[P.sectionLabel,{color:_.foregroundSubtle}],u[42]=_.foregroundSubtle,u[43]=be):be=u[43],u[44]!==B?(Se=B("v2.events.search","Search"),u[44]=B,u[45]=Se):Se=u[45],u[46]!==be||u[47]!==Se?(xe=(0,C.jsx)(s.default,{style:be,children:Se}),u[46]=be,u[47]=Se,u[48]=xe):xe=u[48];const pe=H.label;let ye,Ce,ve,je,Ie,we,Pe,ke,Te,Le,Ne,Re,Ae;if(u[49]!==B?(ye=B("v2.events.searchLabel","Search label\u2026"),u[49]=B,u[50]=ye):ye=u[50],u[51]!==_.foreground||u[52]!==_.surface?(Ce=[P.search,{backgroundColor:_.surface,color:_.foreground}],u[51]=_.foreground,u[52]=_.surface,u[53]=Ce):Ce=u[53],u[54]!==_.foregroundSubtle||u[55]!==H.label||u[56]!==O||u[57]!==ye||u[58]!==Ce?(ve=(0,C.jsx)(l.default,{value:pe,onChangeText:O,placeholder:ye,placeholderTextColor:_.foregroundSubtle,style:Ce}),u[54]=_.foregroundSubtle,u[55]=H.label,u[56]=O,u[57]=ye,u[58]=Ce,u[59]=ve):ve=u[59],u[60]!==_.foregroundMuted||u[61]!==_.foregroundSubtle||u[62]!==_.primary||u[63]!==_.primaryForeground||u[64]!==_.surface||u[65]!==H.sortMode||u[66]!==U||u[67]!==v||u[68]!==B?(je=v?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(s.default,{style:[P.sectionLabel,{color:_.foregroundSubtle}],children:B("v2.events.sort","Sort")}),(0,C.jsx)(n.default,{style:P.chipRow,children:["time","importance"].map(e=>{const o=H.sortMode===e;return(0,C.jsx)(d.default,{onPress:()=>U(e),style:[P.chip,{backgroundColor:o?_.primary:_.surface}],children:(0,C.jsx)(s.default,{style:[P.chipText,{color:o?_.primaryForeground:_.foregroundMuted}],children:"time"===e?B("v2.events.sortTime","Newest"):B("v2.events.sortImportance","Importance")})},e)})})]}):null,u[60]=_.foregroundMuted,u[61]=_.foregroundSubtle,u[62]=_.primary,u[63]=_.primaryForeground,u[64]=_.surface,u[65]=H.sortMode,u[66]=U,u[67]=v,u[68]=B,u[69]=je):je=u[69],u[70]!==B?(Ie=B("v2.events.cameras","Cameras"),u[70]=B,u[71]=Ie):Ie=u[71],u[72]!==B?(we=B("v2.events.searchCameras","Search cameras\u2026"),u[72]=B,u[73]=we):we=u[73],u[74]!==H.cameraIds||u[75]!==J){let e;u[77]!==H.cameraIds?(e=e=>({key:String(e.id),label:e.name,selected:H.cameraIds.includes(e.id)}),u[77]=H.cameraIds,u[78]=e):e=u[78],Pe=J.map(e),u[74]=H.cameraIds,u[75]=J,u[76]=Pe}else Pe=u[76];return u[79]!==K?(ke=e=>K(Number(e)),u[79]=K,u[80]=ke):ke=u[80],u[81]!==B?(Te=B("v2.events.allCamerasHint","None = all"),u[81]=B,u[82]=Te):Te=u[82],u[83]!==q||u[84]!==Ie||u[85]!==we||u[86]!==Pe||u[87]!==ke||u[88]!==Te?(Le=(0,C.jsx)(w,{title:Ie,query:q,onQuery:Q,placeholder:we,items:Pe,onToggle:ke,emptyLabel:Te}),u[83]=q,u[84]=Ie,u[85]=we,u[86]=Pe,u[87]=ke,u[88]=Te,u[89]=Le):Le=u[89],u[90]!==Z.data?(Ne=Z.data??[],u[90]=Z.data,u[91]=Ne):Ne=u[91],u[92]!==y||u[93]!==H.classes||u[94]!==W||u[95]!==Ne||u[96]!==V?(Re=(0,C.jsx)(j,{descriptors:Ne,fallbackClasses:y,selected:H.classes,onToggleClass:V,onSetClasses:W}),u[92]=y,u[93]=H.classes,u[94]=W,u[95]=Ne,u[96]=V,u[97]=Re):Re=u[97],u[98]!==he||u[99]!==xe||u[100]!==ve||u[101]!==je||u[102]!==Le||u[103]!==Re||u[104]!==re||u[105]!==ne?(Ae=(0,C.jsxs)(c.default,{contentContainerStyle:re,showsVerticalScrollIndicator:!1,keyboardShouldPersistTaps:"handled",children:[ne,he,xe,ve,je,Le,Re]}),u[98]=he,u[99]=xe,u[100]=ve,u[101]=je,u[102]=Le,u[103]=Re,u[104]=re,u[105]=ne,u[106]=Ae):Ae=u[106],Ae}),j=(0,t.memo)(function(e){const c=(0,o.c)(52),{descriptors:u,fallbackClasses:b,selected:S,onToggleClass:x,onSetClasses:v}=e,{colors:j}=(0,h.useTheme)(),{t:w}=(0,i.useTranslation)(),[k,T]=(0,t.useState)("");let L;c[0]===Symbol.for("react.memo_cache_sentinel")?(L=new Set,c[0]=L):L=c[0];const[N,R]=(0,t.useState)(L);let A;c[1]!==S?(A=new Set(S),c[1]=S,c[2]=A):A=c[2];const z=A;let G;c[3]!==u?(G=(0,p.buildEventKindTree)(u),c[3]=u,c[4]=G):G=c[4];const D=G,M=0===D.length;let E;if(c[5]!==j.foreground||c[6]!==j.foregroundSubtle||c[7]!==j.surface||c[8]!==u||c[9]!==N||c[10]!==b||c[11]!==v||c[12]!==x||c[13]!==k||c[14]!==z||c[15]!==w||c[16]!==D||c[17]!==M){const e=k.trim().toLowerCase(),o=o=>0===e.length||(0,y.eventKindLabel)(o,w).toLowerCase().includes(e);let t;c[19]!==u||c[20]!==v||c[21]!==z?(t=e=>{const o=(0,p.expandMacroSelection)(e.macro.kind,u),t=new Set(z);if(z.has(e.macro.kind))for(const e of o)t.delete(e);else for(const e of o)t.add(e);v([...t])},c[19]=u,c[20]=v,c[21]=z,c[22]=t):t=c[22];const i=t;let h;c[23]===Symbol.for("react.memo_cache_sentinel")?(h=e=>{R(o=>{const t=new Set(o);return t.has(e)?t.delete(e):t.add(e),t})},c[23]=h):h=c[23];const S=h,L=z.size;let A,G,F,_,B,H,K,V,W,O;c[24]!==j.foregroundSubtle?(A=[P.sectionLabel,{color:j.foregroundSubtle}],c[24]=j.foregroundSubtle,c[25]=A):A=c[25],c[26]!==w?(G=w("v2.events.eventKinds","Event types"),c[26]=w,c[27]=G):G=c[27],c[28]!==A||c[29]!==G?(F=(0,C.jsx)(s.default,{style:A,children:G}),c[28]=A,c[29]=G,c[30]=F):F=c[30],c[31]!==j.foregroundSubtle?(_=[P.sectionCount,{color:j.foregroundSubtle}],c[31]=j.foregroundSubtle,c[32]=_):_=c[32],c[33]!==L||c[34]!==w?(B=L>0?`${L}`:w("v2.events.allClassesHint","None = all"),c[33]=L,c[34]=w,c[35]=B):B=c[35],c[36]!==_||c[37]!==B?(H=(0,C.jsx)(s.default,{style:_,children:B}),c[36]=_,c[37]=B,c[38]=H):H=c[38],c[39]!==H||c[40]!==F?(K=(0,C.jsxs)(n.default,{style:P.sectionHead,children:[F,H]}),c[39]=H,c[40]=F,c[41]=K):K=c[41],c[42]!==w?(V=w("v2.events.searchClasses","Search classes\u2026"),c[42]=w,c[43]=V):V=c[43],c[44]!==j.foreground||c[45]!==j.surface?(W=[P.search,{backgroundColor:j.surface,color:j.foreground}],c[44]=j.foreground,c[45]=j.surface,c[46]=W):W=c[46],c[47]!==j.foregroundSubtle||c[48]!==k||c[49]!==V||c[50]!==W?(O=(0,C.jsx)(l.default,{value:k,onChangeText:T,placeholder:V,placeholderTextColor:j.foregroundSubtle,style:W}),c[47]=j.foregroundSubtle,c[48]=k,c[49]=V,c[50]=W,c[51]=O):O=c[51],E=(0,C.jsxs)(n.default,{style:P.section,children:[K,O,M?(0,C.jsx)(n.default,{style:P.list,children:b.filter(o=>0===e.length||o.toLowerCase().includes(e)).map(e=>(0,C.jsx)(I,{label:e,selected:z.has(e),onPress:()=>x(e)},e))}):(0,C.jsx)(n.default,{style:P.list,children:D.map(t=>{const s=o(t.macro),l=t.subs.filter(o);if(!s&&0===l.length)return null;const c=N.has(t.macro.kind)||e.length>0,u=(0,y.resolveEventKindIcon)(t.macro.iconId),h=t.subs.length>0;return(0,C.jsxs)(n.default,{children:[(0,C.jsxs)(n.default,{style:P.macroRow,children:[h?(0,C.jsx)(d.default,{onPress:()=>S(t.macro.kind),hitSlop:8,style:P.expandBtn,children:c?(0,C.jsx)(f.ChevronDown,{size:16,color:j.foregroundSubtle}):(0,C.jsx)(f.ChevronRight,{size:16,color:j.foregroundSubtle})}):(0,C.jsx)(n.default,{style:P.expandBtn}),(0,C.jsx)(I,{label:(0,y.eventKindLabel)(t.macro,w),icon:u,iconColor:t.macro.color,selected:z.has(t.macro.kind),onPress:()=>i(t),style:P.macroCheck})]}),c?l.map(e=>{const o=(0,y.resolveEventKindIcon)(e.iconId);return(0,C.jsx)(n.default,{style:P.subRow,children:(0,C.jsx)(I,{label:(0,y.eventKindLabel)(e,w),icon:o,iconColor:e.color,selected:z.has(e.kind),onPress:()=>x(e.kind)})},e.kind)}):null]},t.macro.kind)})})]}),c[5]=j.foreground,c[6]=j.foregroundSubtle,c[7]=j.surface,c[8]=u,c[9]=N,c[10]=b,c[11]=v,c[12]=x,c[13]=k,c[14]=z,c[15]=w,c[16]=D,c[17]=M,c[18]=E}else E=c[18];return E});function I(e){const t=(0,o.c)(28),{label:l,selected:c,onPress:u,icon:i,iconColor:b,style:S}=e,{colors:x}=(0,h.useTheme)(),p=c?x.primary+"22":"transparent";let y,v,j,I,w;t[0]!==p?(y={backgroundColor:p},t[0]=p,t[1]=y):y=t[1],t[2]!==S||t[3]!==y?(v=[P.optionRow,y,S],t[2]=S,t[3]=y,t[4]=v):v=t[4],t[5]!==i||t[6]!==x.foregroundMuted||t[7]!==b?(j=i?(0,C.jsx)(i,{size:16,color:b??x.foregroundMuted}):null,t[5]=i,t[6]=x.foregroundMuted,t[7]=b,t[8]=j):j=t[8],t[9]!==x.foreground?(I=[P.optionLabel,{color:x.foreground}],t[9]=x.foreground,t[10]=I):I=t[10],t[11]!==l||t[12]!==I?(w=(0,C.jsx)(s.default,{numberOfLines:1,style:I,children:l}),t[11]=l,t[12]=I,t[13]=w):w=t[13];const k=c?x.primary:x.border;let T,L,N,R;return t[14]!==k?(T=[P.checkbox,{borderColor:k}],t[14]=k,t[15]=T):T=t[15],t[16]!==x.primary||t[17]!==c?(L=c?(0,C.jsx)(f.Check,{size:14,color:x.primary}):null,t[16]=x.primary,t[17]=c,t[18]=L):L=t[18],t[19]!==T||t[20]!==L?(N=(0,C.jsx)(n.default,{style:T,children:L}),t[19]=T,t[20]=L,t[21]=N):N=t[21],t[22]!==u||t[23]!==N||t[24]!==v||t[25]!==j||t[26]!==w?(R=(0,C.jsxs)(d.default,{onPress:u,style:v,children:[j,w,N]}),t[22]=u,t[23]=N,t[24]=v,t[25]=j,t[26]=w,t[27]=R):R=t[27],R}const w=(0,t.memo)(function(e){const t=(0,o.c)(35),{title:d,query:c,onQuery:u,placeholder:i,items:f,onToggle:b,emptyLabel:S}=e,{colors:x}=(0,h.useTheme)();let p;t[0]!==f?(p=f.filter(G),t[0]=f,t[1]=p):p=t[1];const y=p.length;let v,j,w;t[2]!==x.foregroundSubtle?(v=[P.sectionLabel,{color:x.foregroundSubtle}],t[2]=x.foregroundSubtle,t[3]=v):v=t[3],t[4]!==v||t[5]!==d?(j=(0,C.jsx)(s.default,{style:v,children:d}),t[4]=v,t[5]=d,t[6]=j):j=t[6],t[7]!==x.foregroundSubtle?(w=[P.sectionCount,{color:x.foregroundSubtle}],t[7]=x.foregroundSubtle,t[8]=w):w=t[8];const k=y>0?`${y}`:S;let T,L,N,R,A,z,D;if(t[9]!==w||t[10]!==k?(T=(0,C.jsx)(s.default,{style:w,children:k}),t[9]=w,t[10]=k,t[11]=T):T=t[11],t[12]!==j||t[13]!==T?(L=(0,C.jsxs)(n.default,{style:P.sectionHead,children:[j,T]}),t[12]=j,t[13]=T,t[14]=L):L=t[14],t[15]!==x.foreground||t[16]!==x.surface?(N=[P.search,{backgroundColor:x.surface,color:x.foreground}],t[15]=x.foreground,t[16]=x.surface,t[17]=N):N=t[17],t[18]!==x.foregroundSubtle||t[19]!==u||t[20]!==i||t[21]!==c||t[22]!==N?(R=(0,C.jsx)(l.default,{value:c,onChangeText:u,placeholder:i,placeholderTextColor:x.foregroundSubtle,style:N}),t[18]=x.foregroundSubtle,t[19]=u,t[20]=i,t[21]=c,t[22]=N,t[23]=R):R=t[23],t[24]!==f||t[25]!==b){let e;t[27]!==b?(e=e=>(0,C.jsx)(I,{label:e.label,selected:e.selected,onPress:()=>b(e.key)},e.key),t[27]=b,t[28]=e):e=t[28],A=f.map(e),t[24]=f,t[25]=b,t[26]=A}else A=t[26];return t[29]!==A?(z=(0,C.jsx)(n.default,{style:P.list,children:A}),t[29]=A,t[30]=z):z=t[30],t[31]!==z||t[32]!==L||t[33]!==R?(D=(0,C.jsxs)(n.default,{style:P.section,children:[L,R,z]}),t[31]=z,t[32]=L,t[33]=R,t[34]=D):D=t[34],D}),P=u.default.create({body:{gap:b.SPACING.sm},sectionLabel:{fontSize:11,textTransform:'uppercase',marginTop:b.SPACING.sm},dayNav:{flexDirection:'row',alignItems:'center',gap:b.SPACING.md},navBtn:{width:34,height:34,borderRadius:b.RADIUS.md,alignItems:'center',justifyContent:'center'},dateText:{fontSize:14,fontWeight:'600',minWidth:110,textAlign:'center',fontVariant:['tabular-nums']},chipRow:{flexDirection:'row',flexWrap:'wrap',gap:b.SPACING.xs},chip:{paddingHorizontal:12,paddingVertical:6,borderRadius:999},chipText:{fontSize:12,fontWeight:'600'},checkbox:{width:22,height:22,borderRadius:b.RADIUS.sm,borderWidth:2,alignItems:'center',justifyContent:'center'},section:{gap:b.SPACING.xs},sectionHead:{flexDirection:'row',alignItems:'center',justifyContent:'space-between'},sectionCount:{fontSize:11,marginTop:b.SPACING.sm},search:{borderRadius:b.RADIUS.md,paddingHorizontal:b.SPACING.sm,paddingVertical:b.SPACING.sm,fontSize:14},list:{gap:1},optionRow:{flexDirection:'row',alignItems:'center',gap:b.SPACING.sm,justifyContent:'space-between',paddingHorizontal:b.SPACING.sm,paddingVertical:b.SPACING.sm+2,borderRadius:b.RADIUS.md},optionLabel:{fontSize:14,flexShrink:1,marginRight:b.SPACING.sm,flex:1},macroRow:{flexDirection:'row',alignItems:'center'},expandBtn:{width:24,height:24,alignItems:'center',justifyContent:'center'},macroCheck:{flex:1},subRow:{paddingLeft:b.SPACING['2xl']}});function k(e){return e.filter}function T(e){return e.toggleCamera}function L(e){return e.toggleClass}function N(e){return e.setClasses}function R(e){return e.setLabel}function A(e){return e.setSortMode}function z(e){return e.id}function G(e){return e.selected}},3396,[15,17,20,112,262,252,147,33,786,813,2587,2589,3388,3168,3169,3170,10]);
15818
- __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,"EventsDisplaySheet",{enumerable:!0,get:function(){return N}});var t=r(d[0]),n=r(d[1]),o=e(r(d[2])),l=e(r(d[3])),s=e(r(d[4])),c=e(r(d[5])),u=e(r(d[6])),S=e(r(d[7])),f=r(d[8]),h=r(d[9]),p=r(d[10]),v=r(d[11]),b=r(d[12]),C=r(d[13]),I=r(d[14]),x=r(d[15]),y=r(d[16]),w=r(d[17]),j=r(d[18]);const N=(0,n.memo)(function(e){const n=(0,t.c)(123),{visible:S,onClose:N}=e,{colors:T}=(0,v.useTheme)(),{t:A}=(0,h.useTranslation)(),P=(0,f.useSafeAreaInsets)(),{settings:R,setEvents:k,setCluster:B}=(0,y.useSettings)();let E;n[0]!==A?(E=w.TILE_LABEL_STYLES.map(e=>({value:e,label:A("v2.settings.tileLabelStyle"+("icon"===e?"Icon":"Text"))})),n[0]=A,n[1]=E):E=n[1];const _=E;let G;n[2]!==A?(G=w.MIN_IMPORTANCE_CHOICES.map(e=>({value:String(e),label:0===e?A("v2.events.minImportanceOff"):`\u2265${Math.round(100*e)}%`})),n[2]=A,n[3]=G):G=n[3];const D=G;let H,M,O,V,z,U,F,W,q,X,Y;n[4]!==N?(H=(0,j.jsx)(c.default,{style:L.scrim,onPress:N}),n[4]=N,n[5]=H):H=n[5],n[6]!==T.backgroundElevated?(M=[L.sheet,{backgroundColor:T.backgroundElevated}],n[6]=T.backgroundElevated,n[7]=M):M=n[7],n[8]!==T.foreground?(O=[L.title,{color:T.foreground}],n[8]=T.foreground,n[9]=O):O=n[9],n[10]!==A?(V=A("v2.events.displayTitle"),n[10]=A,n[11]=V):V=n[11],n[12]!==O||n[13]!==V?(z=(0,j.jsx)(s.default,{style:O,children:V}),n[12]=O,n[13]=V,n[14]=z):z=n[14],n[15]!==T.surface?(U=[L.iconBtn,{backgroundColor:T.surface}],n[15]=T.surface,n[16]=U):U=n[16],n[17]!==T.foreground?(F=(0,j.jsx)(p.X,{size:18,color:T.foreground}),n[17]=T.foreground,n[18]=F):F=n[18],n[19]!==N||n[20]!==U||n[21]!==F?(W=(0,j.jsx)(c.default,{onPress:N,hitSlop:10,style:U,children:F}),n[19]=N,n[20]=U,n[21]=F,n[22]=W):W=n[22],n[23]!==W||n[24]!==z?(q=(0,j.jsxs)(l.default,{style:L.header,children:[z,W]}),n[23]=W,n[24]=z,n[25]=q):q=n[25],n[26]!==A?(X=A("v2.events.minImportance"),n[26]=A,n[27]=X):X=n[27],n[28]!==A?(Y=A("v2.events.minImportance"),n[28]=A,n[29]=Y):Y=n[29];const $=String(R.clusters.minImportance);let J,K,Q,Z,ee,te,ne,oe,le,se,re,ae,ie,de,ce,ue,me,ge,Se,fe,he;n[30]!==B?(J=e=>B("minImportance",Number(e)),n[30]=B,n[31]=J):J=n[31],n[32]!==D||n[33]!==Y||n[34]!==$||n[35]!==J?(K=(0,j.jsx)(x.SegmentBlock,{label:Y,options:D,value:$,onChange:J}),n[32]=D,n[33]=Y,n[34]=$,n[35]=J,n[36]=K):K=n[36],n[37]!==X||n[38]!==K?(Q=(0,j.jsx)(C.Section,{title:X,children:K}),n[37]=X,n[38]=K,n[39]=Q):Q=n[39],n[40]!==A?(Z=A("v2.settings.eventsPage"),n[40]=A,n[41]=Z):Z=n[41],n[42]!==A?(ee=A("v2.settings.tileShowLabels"),n[42]=A,n[43]=ee):ee=n[43],n[44]!==A?(te=A("v2.settings.tileShowLabelsHint"),n[44]=A,n[45]=te):te=n[45],n[46]!==k?(ne=e=>k("tileShowLabels",e),n[46]=k,n[47]=ne):ne=n[47],n[48]!==R.events.tileShowLabels||n[49]!==ee||n[50]!==te||n[51]!==ne?(oe=(0,j.jsx)(I.ToggleRow,{label:ee,description:te,value:R.events.tileShowLabels,onValueChange:ne}),n[48]=R.events.tileShowLabels,n[49]=ee,n[50]=te,n[51]=ne,n[52]=oe):oe=n[52],n[53]!==A?(le=A("v2.settings.tileShowImportance"),n[53]=A,n[54]=le):le=n[54],n[55]!==A?(se=A("v2.settings.tileShowImportanceHint"),n[55]=A,n[56]=se):se=n[56],n[57]!==k?(re=e=>k("tileShowImportance",e),n[57]=k,n[58]=re):re=n[58],n[59]!==R.events.tileShowImportance||n[60]!==le||n[61]!==se||n[62]!==re?(ae=(0,j.jsx)(I.ToggleRow,{label:le,description:se,value:R.events.tileShowImportance,onValueChange:re}),n[59]=R.events.tileShowImportance,n[60]=le,n[61]=se,n[62]=re,n[63]=ae):ae=n[63],n[64]!==A?(ie=A("v2.settings.tileShowCameraName"),n[64]=A,n[65]=ie):ie=n[65],n[66]!==A?(de=A("v2.settings.tileShowCameraNameHint"),n[66]=A,n[67]=de):de=n[67],n[68]!==k?(ce=e=>k("tileShowCameraName",e),n[68]=k,n[69]=ce):ce=n[69],n[70]!==R.events.tileShowCameraName||n[71]!==ie||n[72]!==de||n[73]!==ce?(ue=(0,j.jsx)(I.ToggleRow,{label:ie,description:de,value:R.events.tileShowCameraName,onValueChange:ce}),n[70]=R.events.tileShowCameraName,n[71]=ie,n[72]=de,n[73]=ce,n[74]=ue):ue=n[74],n[75]!==A?(me=A("v2.settings.tileLabelStyle"),n[75]=A,n[76]=me):me=n[76],n[77]!==k?(ge=e=>k("tileLabelStyle",e),n[77]=k,n[78]=ge):ge=n[78],n[79]!==_||n[80]!==R.events.tileLabelStyle||n[81]!==me||n[82]!==ge?(Se=(0,j.jsx)(x.SegmentBlock,{label:me,options:_,value:R.events.tileLabelStyle,onChange:ge}),n[79]=_,n[80]=R.events.tileLabelStyle,n[81]=me,n[82]=ge,n[83]=Se):Se=n[83],n[84]!==Z||n[85]!==oe||n[86]!==ae||n[87]!==ue||n[88]!==Se?(fe=(0,j.jsxs)(C.Section,{title:Z,children:[oe,ae,ue,Se]}),n[84]=Z,n[85]=oe,n[86]=ae,n[87]=ue,n[88]=Se,n[89]=fe):fe=n[89],n[90]!==Q||n[91]!==fe?(he=(0,j.jsxs)(u.default,{contentContainerStyle:L.scroll,children:[Q,fe]}),n[90]=Q,n[91]=fe,n[92]=he):he=n[92];const pe=P.bottom+b.SPACING.md;let ve,be,Ce,Ie,xe,ye,we,je,Ne,Le;return n[93]!==pe?(ve=[L.footer,{paddingBottom:pe}],n[93]=pe,n[94]=ve):ve=n[94],n[95]!==T.primary?(be=[L.footerBtn,{backgroundColor:T.primary}],n[95]=T.primary,n[96]=be):be=n[96],n[97]!==T.primaryForeground?(Ce=[L.footerBtnText,{color:T.primaryForeground}],n[97]=T.primaryForeground,n[98]=Ce):Ce=n[98],n[99]!==A?(Ie=A("v2.events.done","Done"),n[99]=A,n[100]=Ie):Ie=n[100],n[101]!==Ce||n[102]!==Ie?(xe=(0,j.jsx)(s.default,{style:Ce,children:Ie}),n[101]=Ce,n[102]=Ie,n[103]=xe):xe=n[103],n[104]!==N||n[105]!==be||n[106]!==xe?(ye=(0,j.jsx)(c.default,{onPress:N,style:be,children:xe}),n[104]=N,n[105]=be,n[106]=xe,n[107]=ye):ye=n[107],n[108]!==ve||n[109]!==ye?(we=(0,j.jsx)(l.default,{style:ve,children:ye}),n[108]=ve,n[109]=ye,n[110]=we):we=n[110],n[111]!==q||n[112]!==he||n[113]!==M||n[114]!==we?(je=(0,j.jsxs)(l.default,{style:M,children:[q,he,we]}),n[111]=q,n[112]=he,n[113]=M,n[114]=we,n[115]=je):je=n[115],n[116]!==H||n[117]!==je?(Ne=(0,j.jsxs)(l.default,{style:L.backdrop,children:[H,je]}),n[116]=H,n[117]=je,n[118]=Ne):Ne=n[118],n[119]!==N||n[120]!==Ne||n[121]!==S?(Le=(0,j.jsx)(o.default,{visible:S,animationType:"slide",transparent:!0,onRequestClose:N,children:Ne}),n[119]=N,n[120]=Ne,n[121]=S,n[122]=Le):Le=n[122],Le}),L=S.default.create({backdrop:{flex:1,justifyContent:'flex-end'},scrim:{position:'absolute',top:0,left:0,right:0,bottom:0,backgroundColor:'rgba(0,0,0,0.5)'},sheet:{maxHeight:'85%',borderTopLeftRadius:b.RADIUS.xl,borderTopRightRadius:b.RADIUS.xl,paddingHorizontal:b.SPACING.md,paddingTop:b.SPACING.md},header:{flexDirection:'row',alignItems:'center',justifyContent:'space-between',paddingBottom:b.SPACING.sm},title:{fontSize:18,fontWeight:'700'},iconBtn:{width:32,height:32,borderRadius:b.RADIUS.md,alignItems:'center',justifyContent:'center'},scroll:{gap:b.SPACING.xl,paddingVertical:b.SPACING.sm},footer:{flexDirection:'row',gap:b.SPACING.sm,paddingTop:b.SPACING.sm},footerBtn:{flex:1,alignItems:'center',paddingVertical:b.SPACING.md,borderRadius:b.RADIUS.md},footerBtnText:{fontSize:15,fontWeight:'700'}})},3397,[15,17,245,20,112,252,147,33,466,786,813,2587,2589,3173,3174,3175,3177,3140,10]);
15818
+ __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,"EventsDisplaySheet",{enumerable:!0,get:function(){return L}});var t=r(d[0]),o=r(d[1]),n=e(r(d[2])),l=e(r(d[3])),s=e(r(d[4])),c=e(r(d[5])),u=e(r(d[6])),f=e(r(d[7])),h=r(d[8]),S=r(d[9]),p=r(d[10]),b=r(d[11]),v=r(d[12]),y=r(d[13]),x=r(d[14]),C=r(d[15]),w=r(d[16]),I=r(d[17]),j=r(d[18]);const L=(0,o.memo)(function(e){const o=(0,t.c)(104),{visible:f,onClose:L}=e,{colors:A}=(0,b.useTheme)(),{t:N}=(0,S.useTranslation)(),P=(0,h.useSafeAreaInsets)(),{settings:R,setEvents:k}=(0,w.useSettings)();let B;o[0]!==N?(B=I.TILE_LABEL_STYLES.map(e=>({value:e,label:N("v2.settings.tileLabelStyle"+("icon"===e?"Icon":"Text"))})),o[0]=N,o[1]=B):B=o[1];const G=B;let D,E,_,H,V,z,U,F,M,O,W,q,X,Y,J,K,Q,Z,$,ee,te,oe,ne,le,se,re;o[2]!==L?(D=(0,j.jsx)(c.default,{style:T.scrim,onPress:L}),o[2]=L,o[3]=D):D=o[3],o[4]!==A.backgroundElevated?(E=[T.sheet,{backgroundColor:A.backgroundElevated}],o[4]=A.backgroundElevated,o[5]=E):E=o[5],o[6]!==A.foreground?(_=[T.title,{color:A.foreground}],o[6]=A.foreground,o[7]=_):_=o[7],o[8]!==N?(H=N("v2.events.displayTitle"),o[8]=N,o[9]=H):H=o[9],o[10]!==_||o[11]!==H?(V=(0,j.jsx)(s.default,{style:_,children:H}),o[10]=_,o[11]=H,o[12]=V):V=o[12],o[13]!==A.surface?(z=[T.iconBtn,{backgroundColor:A.surface}],o[13]=A.surface,o[14]=z):z=o[14],o[15]!==A.foreground?(U=(0,j.jsx)(p.X,{size:18,color:A.foreground}),o[15]=A.foreground,o[16]=U):U=o[16],o[17]!==L||o[18]!==z||o[19]!==U?(F=(0,j.jsx)(c.default,{onPress:L,hitSlop:10,style:z,children:U}),o[17]=L,o[18]=z,o[19]=U,o[20]=F):F=o[20],o[21]!==V||o[22]!==F?(M=(0,j.jsxs)(l.default,{style:T.header,children:[V,F]}),o[21]=V,o[22]=F,o[23]=M):M=o[23],o[24]!==N?(O=N("v2.settings.eventsPage"),o[24]=N,o[25]=O):O=o[25],o[26]!==N?(W=N("v2.settings.tileShowLabels"),o[26]=N,o[27]=W):W=o[27],o[28]!==N?(q=N("v2.settings.tileShowLabelsHint"),o[28]=N,o[29]=q):q=o[29],o[30]!==k?(X=e=>k("tileShowLabels",e),o[30]=k,o[31]=X):X=o[31],o[32]!==R.events.tileShowLabels||o[33]!==W||o[34]!==q||o[35]!==X?(Y=(0,j.jsx)(x.ToggleRow,{label:W,description:q,value:R.events.tileShowLabels,onValueChange:X}),o[32]=R.events.tileShowLabels,o[33]=W,o[34]=q,o[35]=X,o[36]=Y):Y=o[36],o[37]!==N?(J=N("v2.settings.tileShowImportance"),o[37]=N,o[38]=J):J=o[38],o[39]!==N?(K=N("v2.settings.tileShowImportanceHint"),o[39]=N,o[40]=K):K=o[40],o[41]!==k?(Q=e=>k("tileShowImportance",e),o[41]=k,o[42]=Q):Q=o[42],o[43]!==R.events.tileShowImportance||o[44]!==J||o[45]!==K||o[46]!==Q?(Z=(0,j.jsx)(x.ToggleRow,{label:J,description:K,value:R.events.tileShowImportance,onValueChange:Q}),o[43]=R.events.tileShowImportance,o[44]=J,o[45]=K,o[46]=Q,o[47]=Z):Z=o[47],o[48]!==N?($=N("v2.settings.tileShowCameraName"),o[48]=N,o[49]=$):$=o[49],o[50]!==N?(ee=N("v2.settings.tileShowCameraNameHint"),o[50]=N,o[51]=ee):ee=o[51],o[52]!==k?(te=e=>k("tileShowCameraName",e),o[52]=k,o[53]=te):te=o[53],o[54]!==R.events.tileShowCameraName||o[55]!==$||o[56]!==ee||o[57]!==te?(oe=(0,j.jsx)(x.ToggleRow,{label:$,description:ee,value:R.events.tileShowCameraName,onValueChange:te}),o[54]=R.events.tileShowCameraName,o[55]=$,o[56]=ee,o[57]=te,o[58]=oe):oe=o[58],o[59]!==N?(ne=N("v2.settings.tileLabelStyle"),o[59]=N,o[60]=ne):ne=o[60],o[61]!==k?(le=e=>k("tileLabelStyle",e),o[61]=k,o[62]=le):le=o[62],o[63]!==G||o[64]!==R.events.tileLabelStyle||o[65]!==ne||o[66]!==le?(se=(0,j.jsx)(C.SegmentBlock,{label:ne,options:G,value:R.events.tileLabelStyle,onChange:le}),o[63]=G,o[64]=R.events.tileLabelStyle,o[65]=ne,o[66]=le,o[67]=se):se=o[67],o[68]!==O||o[69]!==Y||o[70]!==Z||o[71]!==oe||o[72]!==se?(re=(0,j.jsx)(u.default,{contentContainerStyle:T.scroll,children:(0,j.jsxs)(y.Section,{title:O,children:[Y,Z,oe,se]})}),o[68]=O,o[69]=Y,o[70]=Z,o[71]=oe,o[72]=se,o[73]=re):re=o[73];const ae=P.bottom+v.SPACING.md;let ie,de,ce,ue,ge,me,fe,he,Se,pe;return o[74]!==ae?(ie=[T.footer,{paddingBottom:ae}],o[74]=ae,o[75]=ie):ie=o[75],o[76]!==A.primary?(de=[T.footerBtn,{backgroundColor:A.primary}],o[76]=A.primary,o[77]=de):de=o[77],o[78]!==A.primaryForeground?(ce=[T.footerBtnText,{color:A.primaryForeground}],o[78]=A.primaryForeground,o[79]=ce):ce=o[79],o[80]!==N?(ue=N("v2.events.done","Done"),o[80]=N,o[81]=ue):ue=o[81],o[82]!==ce||o[83]!==ue?(ge=(0,j.jsx)(s.default,{style:ce,children:ue}),o[82]=ce,o[83]=ue,o[84]=ge):ge=o[84],o[85]!==L||o[86]!==de||o[87]!==ge?(me=(0,j.jsx)(c.default,{onPress:L,style:de,children:ge}),o[85]=L,o[86]=de,o[87]=ge,o[88]=me):me=o[88],o[89]!==ie||o[90]!==me?(fe=(0,j.jsx)(l.default,{style:ie,children:me}),o[89]=ie,o[90]=me,o[91]=fe):fe=o[91],o[92]!==M||o[93]!==re||o[94]!==E||o[95]!==fe?(he=(0,j.jsxs)(l.default,{style:E,children:[M,re,fe]}),o[92]=M,o[93]=re,o[94]=E,o[95]=fe,o[96]=he):he=o[96],o[97]!==D||o[98]!==he?(Se=(0,j.jsxs)(l.default,{style:T.backdrop,children:[D,he]}),o[97]=D,o[98]=he,o[99]=Se):Se=o[99],o[100]!==L||o[101]!==Se||o[102]!==f?(pe=(0,j.jsx)(n.default,{visible:f,animationType:"slide",transparent:!0,onRequestClose:L,children:Se}),o[100]=L,o[101]=Se,o[102]=f,o[103]=pe):pe=o[103],pe}),T=f.default.create({backdrop:{flex:1,justifyContent:'flex-end'},scrim:{position:'absolute',top:0,left:0,right:0,bottom:0,backgroundColor:'rgba(0,0,0,0.5)'},sheet:{maxHeight:'85%',borderTopLeftRadius:v.RADIUS.xl,borderTopRightRadius:v.RADIUS.xl,paddingHorizontal:v.SPACING.md,paddingTop:v.SPACING.md},header:{flexDirection:'row',alignItems:'center',justifyContent:'space-between',paddingBottom:v.SPACING.sm},title:{fontSize:18,fontWeight:'700'},iconBtn:{width:32,height:32,borderRadius:v.RADIUS.md,alignItems:'center',justifyContent:'center'},scroll:{gap:v.SPACING.xl,paddingVertical:v.SPACING.sm},footer:{flexDirection:'row',gap:v.SPACING.sm,paddingTop:v.SPACING.sm},footerBtn:{flex:1,alignItems:'center',paddingVertical:v.SPACING.md,borderRadius:v.RADIUS.md},footerBtnText:{fontSize:15,fontWeight:'700'}})},3397,[15,17,245,20,112,252,147,33,466,786,813,2587,2589,3173,3174,3175,3177,3140,10]);
15819
15819
  __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,"SemanticSearchBar",{enumerable:!0,get:function(){return p}});var o=r(d[0]),t=r(d[1]),n=e(r(d[2])),u=e(r(d[3])),l=e(r(d[4])),c=e(r(d[5])),s=r(d[6]),f=r(d[7]),h=r(d[8]),b=r(d[9]),S=r(d[10]);const p=(0,t.memo)(function(e){const t=(0,o.c)(24),{value:c,onChange:b}=e,{colors:p}=(0,h.useTheme)(),{t:x}=(0,f.useTranslation)();let P,M,j,y,I,v,z;return t[0]!==p.border||t[1]!==p.surface?(P=[C.bar,{backgroundColor:p.surface,borderColor:p.border}],t[0]=p.border,t[1]=p.surface,t[2]=P):P=t[2],t[3]!==p.foregroundMuted?(M=(0,S.jsx)(s.Search,{size:16,color:p.foregroundMuted}),t[3]=p.foregroundMuted,t[4]=M):M=t[4],t[5]!==x?(j=x("v2.tracks.searchPlaceholder","Search events (e.g. \"person in red\")"),t[5]=x,t[6]=j):j=t[6],t[7]!==p.foreground?(y=[C.input,{color:p.foreground}],t[7]=p.foreground,t[8]=y):y=t[8],t[9]!==p.foregroundSubtle||t[10]!==b||t[11]!==j||t[12]!==y||t[13]!==c?(I=(0,S.jsx)(u.default,{value:c,onChangeText:b,placeholder:j,placeholderTextColor:p.foregroundSubtle,style:y,returnKeyType:"search",autoCapitalize:"none",autoCorrect:!1}),t[9]=p.foregroundSubtle,t[10]=b,t[11]=j,t[12]=y,t[13]=c,t[14]=I):I=t[14],t[15]!==p.foregroundMuted||t[16]!==b||t[17]!==c.length?(v=c.length>0?(0,S.jsx)(l.default,{onPress:()=>b(""),hitSlop:8,accessibilityRole:"button",children:(0,S.jsx)(s.X,{size:16,color:p.foregroundMuted})}):null,t[15]=p.foregroundMuted,t[16]=b,t[17]=c.length,t[18]=v):v=t[18],t[19]!==P||t[20]!==M||t[21]!==I||t[22]!==v?(z=(0,S.jsxs)(n.default,{style:P,children:[M,I,v]}),t[19]=P,t[20]=M,t[21]=I,t[22]=v,t[23]=z):z=t[23],z}),C=c.default.create({bar:{flexDirection:'row',alignItems:'center',gap:b.SPACING.sm,paddingHorizontal:b.SPACING.md,paddingVertical:b.SPACING.sm,borderRadius:b.RADIUS.md,borderWidth:1,marginHorizontal:b.SPACING.md,marginBottom:b.SPACING.sm},input:{flex:1,fontSize:15,paddingVertical:2}})},3398,[15,17,20,262,252,33,813,786,2587,2589,10]);
15820
- __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,"SemanticSearchResults",{enumerable:!0,get:function(){return C}});var t=_r(d[0]),r=_r(d[1]),o=e(_r(d[2])),n=e(_r(d[3])),s=e(_r(d[4])),l=e(_r(d[5])),c=e(_r(d[6])),i=_r(d[7]),u=_r(d[8]),f=_r(d[9]),h=_r(d[10]),p=_r(d[11]),y=_r(d[12]),x=_r(d[13]),b=_r(d[14]),j=_r(d[15]),N=_r(d[16]);const I=h.SPACING.md,S=(0,r.memo)(function(e){const r=(0,t.c)(45),{result:l,cameraName:c,resolver:i,onPress:u}=e,{colors:h}=(0,f.useTheme)(),x=(0,p.colorForEventType)(l.className);let b;r[0]!==i||r[1]!==l.className||r[2]!==l.label?(b=l.label??i.resolveLabel(l.className),r[0]=i,r[1]=l.className,r[2]=l.label,r[3]=b):b=r[3];const j=b;let I,S,C,P,M,T,k,A;r[4]!==u||r[5]!==l?(I=()=>u(l),r[4]=u,r[5]=l,r[6]=I):I=r[6],r[7]!==h.surface?(S=[v.card,{backgroundColor:h.surface}],r[7]=h.surface,r[8]=S):S=r[8],r[9]!==l.className||r[10]!==l.thumbId?(C=(0,N.jsx)(y.TrackCropImage,{eventId:l.thumbId,className:l.className}),r[9]=l.className,r[10]=l.thumbId,r[11]=C):C=r[11],r[12]!==h.primary?(P=[v.score,{backgroundColor:h.primary}],r[12]=h.primary,r[13]=P):P=r[13],r[14]!==h.primaryForeground?(M=[v.scoreText,{color:h.primaryForeground}],r[14]=h.primaryForeground,r[15]=M):M=r[15],r[16]!==l.score?(T=Math.round(100*l.score),r[16]=l.score,r[17]=T):T=r[17],r[18]!==M||r[19]!==T?(k=(0,N.jsxs)(n.default,{style:M,children:[T,"%"]}),r[18]=M,r[19]=T,r[20]=k):k=r[20],r[21]!==P||r[22]!==k?(A=(0,N.jsx)(o.default,{style:P,children:k}),r[21]=P,r[22]=k,r[23]=A):A=r[23];const G=x+"E6";let R,_,z,F,E,V,W;return r[24]!==G?(R=[v.caption,{backgroundColor:G}],r[24]=G,r[25]=R):R=r[25],r[26]!==j?(_=(0,N.jsx)(n.default,{numberOfLines:1,style:v.captionText,children:j}),r[26]=j,r[27]=_):_=r[27],r[28]!==R||r[29]!==_?(z=(0,N.jsx)(o.default,{style:v.captionWrap,pointerEvents:"none",children:(0,N.jsx)(o.default,{style:R,children:_})}),r[28]=R,r[29]=_,r[30]=z):z=r[30],r[31]!==z||r[32]!==C||r[33]!==A?(F=(0,N.jsxs)(o.default,{style:v.hero,children:[C,A,z]}),r[31]=z,r[32]=C,r[33]=A,r[34]=F):F=r[34],r[35]!==h.foregroundMuted?(E=[v.camera,{color:h.foregroundMuted}],r[35]=h.foregroundMuted,r[36]=E):E=r[36],r[37]!==c||r[38]!==E?(V=(0,N.jsx)(n.default,{numberOfLines:1,style:E,children:c}),r[37]=c,r[38]=E,r[39]=V):V=r[39],r[40]!==F||r[41]!==V||r[42]!==I||r[43]!==S?(W=(0,N.jsxs)(s.default,{onPress:I,style:S,children:[F,V]}),r[40]=F,r[41]=V,r[42]=I,r[43]=S,r[44]=W):W=r[44],W}),C=(0,r.memo)(function(e){const s=(0,t.c)(27),{results:c,loading:h,columns:p,cameraName:y}=e,{colors:I}=(0,f.useTheme)(),{t:C}=(0,u.useTranslation)(),[M,T]=(0,r.useState)(null),k=(0,b.useEventKindResolver)();let A;s[0]!==y?(A=e=>T((0,j.scoredToTrackSummary)(e,y(e.deviceId))),s[0]=y,s[1]=A):A=s[1];const G=A;let R;s[2]!==y||s[3]!==G||s[4]!==k?(R=e=>{const{item:t}=e;return(0,N.jsx)(o.default,{style:v.cell,children:(0,N.jsx)(S,{result:t,cameraName:y(t.deviceId),resolver:k,onPress:G})})},s[2]=y,s[3]=G,s[4]=k,s[5]=R):R=s[5];const _=R,z=P;if(h&&0===c.length){let e;return s[6]!==I.primary?(e=(0,N.jsx)(o.default,{style:v.state,children:(0,N.jsx)(l.default,{color:I.primary})}),s[6]=I.primary,s[7]=e):e=s[7],e}if(0===c.length){let e,t,r;return s[8]!==I.foregroundMuted?(e={color:I.foregroundMuted},s[8]=I.foregroundMuted,s[9]=e):e=s[9],s[10]!==C?(t=C("v2.tracks.noMatches","No matching events"),s[10]=C,s[11]=t):t=s[11],s[12]!==e||s[13]!==t?(r=(0,N.jsx)(o.default,{style:v.state,children:(0,N.jsx)(n.default,{style:e,children:t})}),s[12]=e,s[13]=t,s[14]=r):r=s[14],r}const F=`scols-${p}`,E=c,V=Math.max(1,p),W=p>1;let L,O,D,H;return s[15]!==_||s[16]!==F||s[17]!==E||s[18]!==V||s[19]!==W?(L=(0,N.jsx)(i.FlashList,{data:E,keyExtractor:z,renderItem:_,numColumns:V,masonry:W,contentContainerStyle:v.content},F),s[15]=_,s[16]=F,s[17]=E,s[18]=V,s[19]=W,s[20]=L):L=s[20],s[21]===Symbol.for("react.memo_cache_sentinel")?(O=()=>T(null),s[21]=O):O=s[21],s[22]!==M?(D=(0,N.jsx)(x.TrackDetailModal,{track:M,onClose:O}),s[22]=M,s[23]=D):D=s[23],s[24]!==L||s[25]!==D?(H=(0,N.jsxs)(N.Fragment,{children:[L,D]}),s[24]=L,s[25]=D,s[26]=H):H=s[26],H}),v=c.default.create({state:{flex:1,alignItems:'center',justifyContent:'center',paddingVertical:h.SPACING['2xl']},content:{padding:I/2},cell:{flex:1,padding:I/2},card:{borderRadius:h.RADIUS.md,overflow:'hidden'},hero:{width:'100%',aspectRatio:1,backgroundColor:'rgba(0,0,0,0.3)'},score:{position:'absolute',top:h.SPACING.sm,right:h.SPACING.sm,paddingHorizontal:6,paddingVertical:1,borderRadius:8},scoreText:{fontSize:10,fontWeight:'700',fontVariant:['tabular-nums']},captionWrap:{position:'absolute',left:h.SPACING.sm,bottom:h.SPACING.sm,maxWidth:'80%'},caption:{paddingHorizontal:6,paddingVertical:2,borderRadius:h.RADIUS.sm},captionText:{color:'#fff',fontSize:11,fontWeight:'700'},camera:{fontSize:11,paddingHorizontal:h.SPACING.sm,paddingVertical:h.SPACING.xs}});function P(e,t){return`${e.id}:${t}`}},3399,[15,17,20,112,252,240,33,3179,786,2587,2589,3231,3233,3237,3167,3381,10]);
15820
+ __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,"SemanticSearchResults",{enumerable:!0,get:function(){return C}});var t=_r(d[0]),r=_r(d[1]),o=e(_r(d[2])),n=e(_r(d[3])),s=e(_r(d[4])),l=e(_r(d[5])),c=e(_r(d[6])),i=_r(d[7]),u=_r(d[8]),f=_r(d[9]),h=_r(d[10]),p=_r(d[11]),y=_r(d[12]),x=_r(d[13]),b=_r(d[14]),j=_r(d[15]),N=_r(d[16]);const I=h.SPACING.md,S=(0,r.memo)(function(e){const r=(0,t.c)(45),{result:l,cameraName:c,resolver:i,onPress:u}=e,{colors:h}=(0,f.useTheme)(),x=(0,p.colorForEventType)(l.className);let b;r[0]!==i||r[1]!==l.className||r[2]!==l.label?(b=l.label??i.resolveLabel(l.className),r[0]=i,r[1]=l.className,r[2]=l.label,r[3]=b):b=r[3];const j=b;let I,S,C,P,M,T,k,A;r[4]!==u||r[5]!==l?(I=()=>u(l),r[4]=u,r[5]=l,r[6]=I):I=r[6],r[7]!==h.surface?(S=[v.card,{backgroundColor:h.surface}],r[7]=h.surface,r[8]=S):S=r[8],r[9]!==l.className||r[10]!==l.thumbId?(C=(0,N.jsx)(y.TrackCropImage,{eventId:l.thumbId,className:l.className}),r[9]=l.className,r[10]=l.thumbId,r[11]=C):C=r[11],r[12]!==h.primary?(P=[v.score,{backgroundColor:h.primary}],r[12]=h.primary,r[13]=P):P=r[13],r[14]!==h.primaryForeground?(M=[v.scoreText,{color:h.primaryForeground}],r[14]=h.primaryForeground,r[15]=M):M=r[15],r[16]!==l.score?(T=Math.round(100*l.score),r[16]=l.score,r[17]=T):T=r[17],r[18]!==M||r[19]!==T?(k=(0,N.jsxs)(n.default,{style:M,children:[T,"%"]}),r[18]=M,r[19]=T,r[20]=k):k=r[20],r[21]!==P||r[22]!==k?(A=(0,N.jsx)(o.default,{style:P,children:k}),r[21]=P,r[22]=k,r[23]=A):A=r[23];const G=x+"E6";let R,_,z,F,E,V,W;return r[24]!==G?(R=[v.caption,{backgroundColor:G}],r[24]=G,r[25]=R):R=r[25],r[26]!==j?(_=(0,N.jsx)(n.default,{numberOfLines:1,style:v.captionText,children:j}),r[26]=j,r[27]=_):_=r[27],r[28]!==R||r[29]!==_?(z=(0,N.jsx)(o.default,{style:v.captionWrap,pointerEvents:"none",children:(0,N.jsx)(o.default,{style:R,children:_})}),r[28]=R,r[29]=_,r[30]=z):z=r[30],r[31]!==z||r[32]!==C||r[33]!==A?(F=(0,N.jsxs)(o.default,{style:v.hero,children:[C,A,z]}),r[31]=z,r[32]=C,r[33]=A,r[34]=F):F=r[34],r[35]!==h.foregroundMuted?(E=[v.camera,{color:h.foregroundMuted}],r[35]=h.foregroundMuted,r[36]=E):E=r[36],r[37]!==c||r[38]!==E?(V=(0,N.jsx)(n.default,{numberOfLines:1,style:E,children:c}),r[37]=c,r[38]=E,r[39]=V):V=r[39],r[40]!==F||r[41]!==V||r[42]!==I||r[43]!==S?(W=(0,N.jsxs)(s.default,{onPress:I,style:S,children:[F,V]}),r[40]=F,r[41]=V,r[42]=I,r[43]=S,r[44]=W):W=r[44],W}),C=(0,r.memo)(function(e){const s=(0,t.c)(27),{results:c,loading:h,columns:p,cameraName:y}=e,{colors:I}=(0,f.useTheme)(),{t:C}=(0,u.useTranslation)(),[M,T]=(0,r.useState)(null),k=(0,b.useEventKindResolver)();let A;s[0]!==y?(A=e=>T((0,j.scoredToTrackSummary)(e,y(e.deviceId))),s[0]=y,s[1]=A):A=s[1];const G=A;let R;s[2]!==y||s[3]!==G||s[4]!==k?(R=e=>{const{item:t}=e;return(0,N.jsx)(o.default,{style:v.cell,children:(0,N.jsx)(S,{result:t,cameraName:y(t.deviceId),resolver:k,onPress:G})})},s[2]=y,s[3]=G,s[4]=k,s[5]=R):R=s[5];const _=R,z=P;if(h&&0===c.length){let e;return s[6]!==I.primary?(e=(0,N.jsx)(o.default,{style:v.state,children:(0,N.jsx)(l.default,{color:I.primary})}),s[6]=I.primary,s[7]=e):e=s[7],e}if(0===c.length){let e,t,r;return s[8]!==I.foregroundMuted?(e={color:I.foregroundMuted},s[8]=I.foregroundMuted,s[9]=e):e=s[9],s[10]!==C?(t=C("v2.tracks.noMatches","No matching events"),s[10]=C,s[11]=t):t=s[11],s[12]!==e||s[13]!==t?(r=(0,N.jsx)(o.default,{style:v.state,children:(0,N.jsx)(n.default,{style:e,children:t})}),s[12]=e,s[13]=t,s[14]=r):r=s[14],r}const F=`scols-${p}`,E=c,V=Math.max(1,p),W=p>1;let L,O,D,H;return s[15]!==_||s[16]!==F||s[17]!==E||s[18]!==V||s[19]!==W?(L=(0,N.jsx)(i.FlashList,{data:E,keyExtractor:z,renderItem:_,numColumns:V,masonry:W,contentContainerStyle:v.content},F),s[15]=_,s[16]=F,s[17]=E,s[18]=V,s[19]=W,s[20]=L):L=s[20],s[21]===Symbol.for("react.memo_cache_sentinel")?(O=()=>T(null),s[21]=O):O=s[21],s[22]!==M?(D=(0,N.jsx)(x.TrackDetailModal,{track:M,onClose:O}),s[22]=M,s[23]=D):D=s[23],s[24]!==L||s[25]!==D?(H=(0,N.jsxs)(N.Fragment,{children:[L,D]}),s[24]=L,s[25]=D,s[26]=H):H=s[26],H}),v=c.default.create({state:{flex:1,alignItems:'center',justifyContent:'center',paddingVertical:h.SPACING['2xl']},content:{padding:I/2},cell:{flex:1,padding:I/2},card:{borderRadius:h.RADIUS.md,overflow:'hidden'},hero:{width:'100%',aspectRatio:1,backgroundColor:'rgba(0,0,0,0.3)'},score:{position:'absolute',top:h.SPACING.sm,right:h.SPACING.sm,paddingHorizontal:6,paddingVertical:1,borderRadius:8},scoreText:{fontSize:10,fontWeight:'700',fontVariant:['tabular-nums']},captionWrap:{position:'absolute',left:h.SPACING.sm,bottom:h.SPACING.sm,maxWidth:'80%'},caption:{paddingHorizontal:6,paddingVertical:2,borderRadius:h.RADIUS.sm},captionText:{color:'#fff',fontSize:11,fontWeight:'700'},camera:{fontSize:11,paddingHorizontal:h.SPACING.sm,paddingVertical:h.SPACING.xs}});function P(e,t){return`${e.id}:${t}`}},3399,[15,17,20,112,252,240,33,3179,786,2587,2589,3231,3233,3238,3167,3237,10]);
15821
15821
  __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,"TracksGallery",{enumerable:!0,get:function(){return y}});var t=r(d[0]),n=r(d[1]),o=e(r(d[2])),l=e(r(d[3])),c=r(d[4]),s=r(d[5]),i=r(d[6]),u=r(d[7]),f=r(d[8]),h=r(d[9]);const x=s.SPACING.md,y=(0,n.memo)(function(e){const n=(0,t.c)(16),{tracks:l,columns:s,onSelect:u,onEndReached:x,isFetchingNextPage:y,selectedTrackId:R,header:p}=e,C=(0,f.useEventKindResolver)();let T;n[0]!==u||n[1]!==C||n[2]!==R?(T=e=>{const{item:t}=e;return(0,h.jsx)(o.default,{style:j.cell,children:(0,h.jsx)(i.TrackCard,{track:t,variant:"tile",selected:R===t.trackId,resolver:C,onPress:u})})},n[0]=u,n[1]=C,n[2]=R,n[3]=T):T=n[3];const _=T;let E;n[4]!==s||n[5]!==y?(E=y?(0,h.jsx)(o.default,{style:j.footerRow,children:Array.from({length:Math.max(1,s)},k)}):null,n[4]=s,n[5]=y,n[6]=E):E=n[6];const I=E,P=`tcols-${s}`,b=l,w=Math.max(1,s),M=s>1,S=p??void 0;let F;return n[7]!==I||n[8]!==x||n[9]!==_||n[10]!==P||n[11]!==b||n[12]!==w||n[13]!==M||n[14]!==S?(F=(0,h.jsx)(c.FlashList,{data:b,keyExtractor:v,renderItem:_,numColumns:w,masonry:M,onEndReached:x,onEndReachedThreshold:.6,ListHeaderComponent:S,ListFooterComponent:I,contentContainerStyle:j.content},P),n[7]=I,n[8]=x,n[9]=_,n[10]=P,n[11]=b,n[12]=w,n[13]=M,n[14]=S,n[15]=F):F=n[15],F}),j=l.default.create({content:{padding:x/2},cell:{flex:1,padding:x/2},footerRow:{flexDirection:'row'},footerTile:{aspectRatio:1,borderRadius:6,overflow:'hidden'}});function k(e,t){return(0,h.jsx)(o.default,{style:j.cell,children:(0,h.jsx)(o.default,{style:j.footerTile,children:(0,h.jsx)(u.SkeletonBox,{})})},t)}function v(e){return e.trackId}},3400,[15,17,20,33,3179,2589,3230,3151,3167,10]);
15822
15822
  __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.GridsScreen,{}),o[0]=u):u=o[0],u}},3401,[15,3402,10]);
15823
15823
  __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.GridsScreen=function(){const e=(0,o.c)(72),{t:c}=(0,b.useTranslation)(),{colors:g}=(0,p.useTheme)(),v=(0,h.useRouter)(),k=(0,f.useSafeAreaInsets)(),{server:W}=(0,j.useServer)(),E=W?.serverUrl??null,F=(0,S.useGridStore)(T),O=(0,S.useGridStore)(D),B=(0,S.useGridStore)(H),V=(0,S.useGridStore)(z),{data:q}=(0,I.useCameras)();let $;e[0]!==q?($=void 0===q?[]:q,e[0]=q,e[1]=$):$=e[1];const J=$;let K;e[2]!==J?(K=new Map(J.map(w)),e[2]=J,e[3]=K):K=e[3];const Q=K,X=Math.min(R,(0,P.useGridColumns)()),[Y,Z]=(0,t.useState)(null),[ee,re]=(0,t.useState)(null),[oe,te]=(0,t.useState)(null);let de,ne,le;e[4]!==O?(de=()=>{O()},ne=[O],e[4]=O,e[5]=de,e[6]=ne):(de=e[5],ne=e[6]);(0,t.useEffect)(de,ne),e[7]!==v?(le=e=>{te(e)},e[7]=v,e[8]=le):le=e[8];const se=le;let ie;e[9]!==B||e[10]!==se||e[11]!==c?(ie=()=>{const e=B("",c("v2.grids.defaultName"));se(e)},e[9]=B,e[10]=se,e[11]=c,e[12]=ie):ie=e[12];const ae=ie;let ue;e[13]!==V||e[14]!==Y?(ue=()=>{Y&&V(Y.id),Z(null)},e[13]=V,e[14]=Y,e[15]=ue):ue=e[15];const ce=ue;let fe;e[16]!==E?(fe=e=>{E&&re(e)},e[16]=E,e[17]=fe):fe=e[17];const ge=fe;let me;if(e[18]!==X||e[19]!==F){if(me=F.map(M),X>1){const e=me.length%X;if(e>0)for(let o=0;o<X-e;o++)me.push({kind:"pad",id:`pad-${o}`})}e[18]=X,e[19]=F,e[20]=me}else me=e[20];const be=me;let he,ye,pe,xe,Se,Ce,je,Ie,ve,Pe,Ae,Ge;e[21]!==g.background||e[22]!==k.top?(he={flex:1,backgroundColor:g.background,paddingTop:k.top},e[21]=g.background,e[22]=k.top,e[23]=he):he=e[23];e[24]!==Q||e[25]!==be||e[26]!==g.foregroundMuted||e[27]!==g.foregroundSubtle||e[28]!==g.primary||e[29]!==g.primaryForeground||e[30]!==g.surfaceHover||e[31]!==X||e[32]!==F.length||e[33]!==ae||e[34]!==k.bottom||e[35]!==se||e[36]!==v||e[37]!==E||e[38]!==ge||e[39]!==c?(ye=0===F.length?(0,G.jsxs)(n.default,{style:U.empty,children:[(0,G.jsx)(y.LayoutGrid,{size:40,color:g.foregroundSubtle}),(0,G.jsx)(l.default,{style:{color:g.foregroundMuted,fontSize:15},children:c("v2.grids.empty")}),(0,G.jsx)(l.default,{style:{color:g.foregroundSubtle,fontSize:12,textAlign:"center"},children:c("v2.grids.emptyHint")}),(0,G.jsxs)(i.default,{onPress:ae,accessibilityRole:"button",accessibilityLabel:c("v2.grids.createA11y"),style:e=>{const{pressed:o}=e;return{flexDirection:"row",alignItems:"center",gap:x.SPACING.sm,marginTop:x.SPACING.md,paddingVertical:x.SPACING.md,paddingHorizontal:x.SPACING.xl,borderRadius:x.RADIUS.md,backgroundColor:o?g.surfaceHover:g.primary}},children:[(0,G.jsx)(y.Plus,{size:18,color:g.primaryForeground}),(0,G.jsx)(l.default,{style:{color:g.primaryForeground,fontSize:15,fontWeight:"600"},children:c("v2.common.create")})]})]}):(0,G.jsx)(s.default,{data:be,numColumns:X,keyExtractor:N,columnWrapperStyle:X>1?{gap:x.SPACING.md}:void 0,contentContainerStyle:{padding:x.SPACING.md,paddingBottom:k.bottom+88,gap:x.SPACING.md},renderItem:e=>{const{item:o}=e;return"pad"===o.kind?(0,G.jsx)(n.default,{style:{flex:1}}):(0,G.jsx)(_,{grid:o.grid,camerasById:Q,onPress:()=>v.push(`/grid/${o.grid.id}`),onShare:()=>ge(o.grid),onEdit:()=>se(o.grid.id),onDelete:()=>Z(o.grid),canShare:null!==E})}},X),e[24]=Q,e[25]=be,e[26]=g.foregroundMuted,e[27]=g.foregroundSubtle,e[28]=g.primary,e[29]=g.primaryForeground,e[30]=g.surfaceHover,e[31]=X,e[32]=F.length,e[33]=ae,e[34]=k.bottom,e[35]=se,e[36]=v,e[37]=E,e[38]=ge,e[39]=c,e[40]=ye):ye=e[40];e[41]!==c?(pe=c("v2.grids.createA11y"),e[41]=c,e[42]=pe):pe=e[42];e[43]!==g.primary||e[44]!==g.surfaceHover||e[45]!==k.bottom?(xe=e=>{const{pressed:o}=e;return[U.fab,{bottom:k.bottom+x.SPACING.lg,backgroundColor:o?g.surfaceHover:g.primary,shadowColor:"#000"}]},e[43]=g.primary,e[44]=g.surfaceHover,e[45]=k.bottom,e[46]=xe):xe=e[46];e[47]!==g.primaryForeground?(Se=(0,G.jsx)(y.Plus,{size:26,color:g.primaryForeground}),e[47]=g.primaryForeground,e[48]=Se):Se=e[48];e[49]!==ae||e[50]!==pe||e[51]!==xe||e[52]!==Se?(Ce=(0,G.jsx)(i.default,{onPress:ae,accessibilityRole:"button",accessibilityLabel:pe,style:xe,hitSlop:8,children:Se}),e[49]=ae,e[50]=pe,e[51]=xe,e[52]=Se,e[53]=Ce):Ce=e[53];e[54]===Symbol.for("react.memo_cache_sentinel")?(je=()=>Z(null),e[54]=je):je=e[54];e[55]!==ce||e[56]!==Y?(Ie=(0,G.jsx)(L,{grid:Y,onCancel:je,onConfirm:ce}),e[55]=ce,e[56]=Y,e[57]=Ie):Ie=e[57];e[58]===Symbol.for("react.memo_cache_sentinel")?(ve=()=>re(null),e[58]=ve):ve=e[58];e[59]!==ee?(Pe=(0,G.jsx)(C.GridShareDialog,{grid:ee,onClose:ve}),e[59]=ee,e[60]=Pe):Pe=e[60];e[61]!==oe||e[62]!==g.background||e[63]!==g.border?(Ae=oe?(0,G.jsx)(u.default,{visible:!0,transparent:!0,animationType:"fade",onRequestClose:()=>te(null),children:(0,G.jsx)(n.default,{style:U.builderBackdrop,children:(0,G.jsx)(n.default,{style:[U.builderCard,{backgroundColor:g.background,borderColor:g.border}],children:(0,G.jsx)(A.GridBuilderScreen,{gridId:oe,onClose:()=>te(null)})})})}):null,e[61]=oe,e[62]=g.background,e[63]=g.border,e[64]=Ae):Ae=e[64];e[65]!==ye||e[66]!==Ce||e[67]!==Ie||e[68]!==Pe||e[69]!==Ae||e[70]!==he?(Ge=(0,G.jsxs)(n.default,{style:he,children:[ye,Ce,Ie,Pe,Ae]}),e[65]=ye,e[66]=Ce,e[67]=Ie,e[68]=Pe,e[69]=Ae,e[70]=he,e[71]=Ge):Ge=e[71];return Ge};var o=r(d[0]),t=r(d[1]),n=e(r(d[2])),l=e(r(d[3])),s=e(r(d[4])),i=e(r(d[5])),u=e(r(d[6])),c=e(r(d[7]));r(d[8]);var f=r(d[9]),g=r(d[10]),b=r(d[11]),h=r(d[12]),y=r(d[13]),p=r(d[14]),x=r(d[15]),S=r(d[16]),C=r(d[17]),j=r(d[18]),I=r(d[19]),v=r(d[20]),P=r(d[21]),A=r(d[22]),G=r(d[23]);const k=4,R=3;function N(e){return"grid"===e.kind?e.grid.id:e.id}function M(e){return{kind:"grid",grid:e}}function w(e){return[e.id,e]}function z(e){return e.deleteGrid}function H(e){return e.createGrid}function D(e){return e.hydrate}function T(e){return e.grids}function _(e){const t=(0,o.c)(84),{grid:s,camerasById:u,onPress:c,onShare:f,onEdit:g,onDelete:h,canShare:x}=e,{t:C}=(0,b.useTranslation)(),{colors:j}=(0,p.useTheme)();let I;if(t[0]!==u||t[1]!==s.cameraIds){I=[];for(const e of s.cameraIds){const o=u.get(e);o&&I.push(o)}t[0]=u,t[1]=s.cameraIds,t[2]=I}else I=t[2];const v=I,P=s.cameraIds.length;let A;t[3]!==P||t[4]!==C?(A=0===P?C("v2.grids.countNone"):1===P?C("v2.grids.countOne"):C("v2.grids.countOther",{count:P}),t[3]=P,t[4]=C,t[5]=A):A=t[5];const R=A;let N;if(t[6]!==s.options||t[7]!==C){const e=(0,S.resolveGridOptions)(s.options).layout;N="auto"===e?C("v2.grids.layoutAuto"):C("v2.grids.layoutColumns",{count:e}),t[6]=s.options,t[7]=C,t[8]=N}else N=t[8];const M=N,w=s.audioOnIds?.length??0;let z;t[9]!==v?(z=v.slice(0,k),t[9]=v,t[10]=z):z=t[10];const H=z,D=v.length-H.length;let T,_,E,L,F,O,B,V,q,$,J,K,Q,X,Y,Z,ee,re,oe,te,de,ne;return t[11]!==j.border||t[12]!==j.surface||t[13]!==j.surfaceHover?(T=e=>{const{pressed:o}=e;return[U.card,{flex:1,backgroundColor:o?j.surfaceHover:j.surface,borderColor:j.border}]},t[11]=j.border,t[12]=j.surface,t[13]=j.surfaceHover,t[14]=T):T=t[14],t[15]!==j.border||t[16]!==j.foreground||t[17]!==j.foregroundSubtle||t[18]!==D||t[19]!==H?(_=(0,G.jsx)(n.default,{style:U.strip,children:0===H.length?(0,G.jsx)(n.default,{style:[U.thumb,U.stripEmpty,{borderColor:j.border}],children:(0,G.jsx)(y.LayoutGrid,{size:22,color:j.foregroundSubtle})}):(0,G.jsxs)(G.Fragment,{children:[H.map(W),D>0?(0,G.jsx)(n.default,{style:[U.thumb,U.overflowTile,{borderColor:j.border}],children:(0,G.jsxs)(l.default,{style:{color:j.foreground,fontSize:15,fontWeight:"700"},children:["+",D]})}):null]})}),t[15]=j.border,t[16]=j.foreground,t[17]=j.foregroundSubtle,t[18]=D,t[19]=H,t[20]=_):_=t[20],t[21]!==j.foreground?(E={flex:1,color:j.foreground,fontSize:16,fontWeight:"600"},t[21]=j.foreground,t[22]=E):E=t[22],t[23]!==s.name||t[24]!==E?(L=(0,G.jsx)(l.default,{style:E,numberOfLines:1,children:s.name}),t[23]=s.name,t[24]=E,t[25]=L):L=t[25],t[26]!==x||t[27]!==j.foreground||t[28]!==f||t[29]!==C?(F=x?(0,G.jsx)(i.default,{onPress:f,hitSlop:8,accessibilityRole:"button",accessibilityLabel:C("v2.grids.shareA11y"),children:(0,G.jsx)(y.Share2,{size:18,color:j.foreground})}):null,t[26]=x,t[27]=j.foreground,t[28]=f,t[29]=C,t[30]=F):F=t[30],t[31]!==C?(O=C("v2.grids.editA11y"),t[31]=C,t[32]=O):O=t[32],t[33]!==j.foreground?(B=(0,G.jsx)(y.Pencil,{size:18,color:j.foreground}),t[33]=j.foreground,t[34]=B):B=t[34],t[35]!==g||t[36]!==B||t[37]!==O?(V=(0,G.jsx)(i.default,{onPress:g,hitSlop:8,accessibilityRole:"button",accessibilityLabel:O,children:B}),t[35]=g,t[36]=B,t[37]=O,t[38]=V):V=t[38],t[39]!==C?(q=C("v2.grids.deleteA11y"),t[39]=C,t[40]=q):q=t[40],t[41]!==j.danger?($=(0,G.jsx)(y.Trash2,{size:18,color:j.danger}),t[41]=j.danger,t[42]=$):$=t[42],t[43]!==h||t[44]!==q||t[45]!==$?(J=(0,G.jsx)(i.default,{onPress:h,hitSlop:8,accessibilityRole:"button",accessibilityLabel:q,children:$}),t[43]=h,t[44]=q,t[45]=$,t[46]=J):J=t[46],t[47]!==V||t[48]!==J||t[49]!==L||t[50]!==F?(K=(0,G.jsxs)(n.default,{style:U.cardHeaderRow,children:[L,F,V,J]}),t[47]=V,t[48]=J,t[49]=L,t[50]=F,t[51]=K):K=t[51],t[52]!==j.foregroundMuted?(Q={color:j.foregroundMuted,fontSize:12},t[52]=j.foregroundMuted,t[53]=Q):Q=t[53],t[54]!==R||t[55]!==Q?(X=(0,G.jsx)(l.default,{style:Q,children:R}),t[54]=R,t[55]=Q,t[56]=X):X=t[56],t[57]!==j.border?(Y=[U.chip,{borderColor:j.border}],t[57]=j.border,t[58]=Y):Y=t[58],t[59]!==j.foregroundMuted?(Z=(0,G.jsx)(y.LayoutGrid,{size:12,color:j.foregroundMuted}),t[59]=j.foregroundMuted,t[60]=Z):Z=t[60],t[61]!==j.foregroundMuted?(ee={color:j.foregroundMuted,fontSize:11},t[61]=j.foregroundMuted,t[62]=ee):ee=t[62],t[63]!==M||t[64]!==ee?(re=(0,G.jsx)(l.default,{style:ee,children:M}),t[63]=M,t[64]=ee,t[65]=re):re=t[65],t[66]!==Y||t[67]!==Z||t[68]!==re?(oe=(0,G.jsxs)(n.default,{style:Y,children:[Z,re]}),t[66]=Y,t[67]=Z,t[68]=re,t[69]=oe):oe=t[69],t[70]!==w||t[71]!==j.border||t[72]!==j.foregroundMuted?(te=w>0?(0,G.jsxs)(n.default,{style:[U.chip,{borderColor:j.border}],children:[(0,G.jsx)(y.Volume2,{size:12,color:j.foregroundMuted}),(0,G.jsx)(l.default,{style:{color:j.foregroundMuted,fontSize:11},children:w})]}):null,t[70]=w,t[71]=j.border,t[72]=j.foregroundMuted,t[73]=te):te=t[73],t[74]!==X||t[75]!==oe||t[76]!==te?(de=(0,G.jsxs)(n.default,{style:U.metaRow,children:[X,oe,te]}),t[74]=X,t[75]=oe,t[76]=te,t[77]=de):de=t[77],t[78]!==c||t[79]!==K||t[80]!==de||t[81]!==T||t[82]!==_?(ne=(0,G.jsxs)(i.default,{onPress:c,accessibilityRole:"button",style:T,children:[_,K,de]}),t[78]=c,t[79]=K,t[80]=de,t[81]=T,t[82]=_,t[83]=ne):ne=t[83],ne}function W(e){return(0,G.jsx)(E,{camera:e},e.id)}function E(e){const t=(0,o.c)(10),{camera:l}=e,{colors:s}=(0,p.useTheme)(),{uri:i,headers:u,onLoad:c,onError:f}=(0,v.useSnapshot)(l.id,l.online);let b,h,y;return t[0]!==s.border?(b=[U.thumb,{borderColor:s.border,backgroundColor:"#000"}],t[0]=s.border,t[1]=b):b=t[1],t[2]!==u||t[3]!==f||t[4]!==c||t[5]!==i?(h=i?(0,G.jsx)(g.Image,{source:u?{uri:i,headers:u}:{uri:i},style:U.thumbImg,contentFit:"cover",cachePolicy:"memory-disk",transition:120,onLoad:c,onError:f}):(0,G.jsx)(n.default,{style:[U.thumbImg,{backgroundColor:"#111"}]}),t[2]=u,t[3]=f,t[4]=c,t[5]=i,t[6]=h):h=t[6],t[7]!==b||t[8]!==h?(y=(0,G.jsx)(n.default,{style:b,children:h}),t[7]=b,t[8]=h,t[9]=y):y=t[9],y}function L(e){const t=(0,o.c)(59),{grid:s,onCancel:c,onConfirm:f}=e,{t:g}=(0,b.useTranslation)(),{colors:h}=(0,p.useTheme)(),y=null!==s;let S,C,j,I,v;t[0]!==h.backgroundElevated||t[1]!==h.border?(S=[U.modalCard,{backgroundColor:h.backgroundElevated,borderColor:h.border}],t[0]=h.backgroundElevated,t[1]=h.border,t[2]=S):S=t[2],t[3]!==h.foreground?(C={color:h.foreground,fontSize:17,fontWeight:"700"},t[3]=h.foreground,t[4]=C):C=t[4],t[5]!==g?(j=g("v2.grids.deleteTitle"),t[5]=g,t[6]=j):j=t[6],t[7]!==C||t[8]!==j?(I=(0,G.jsx)(l.default,{style:C,children:j}),t[7]=C,t[8]=j,t[9]=I):I=t[9],t[10]!==h.foregroundMuted?(v={color:h.foregroundMuted,fontSize:14},t[10]=h.foregroundMuted,t[11]=v):v=t[11];const P=s?.name??"";let A,k,R,N,M,w,z,H,D,T,_,W,E,L,O,B,V;return t[12]!==g||t[13]!==P?(A=g("v2.grids.deleteConfirm",{name:P}),t[12]=g,t[13]=P,t[14]=A):A=t[14],t[15]!==v||t[16]!==A?(k=(0,G.jsx)(l.default,{style:v,children:A}),t[15]=v,t[16]=A,t[17]=k):k=t[17],t[18]===Symbol.for("react.memo_cache_sentinel")?(R={flexDirection:"row",justifyContent:"flex-end",gap:x.SPACING.md},t[18]=R):R=t[18],t[19]!==h.surfaceHover?(N=e=>{const{pressed:o}=e;return{paddingVertical:x.SPACING.md,paddingHorizontal:x.SPACING.xl,borderRadius:x.RADIUS.md,backgroundColor:o?h.surfaceHover:"transparent"}},t[19]=h.surfaceHover,t[20]=N):N=t[20],t[21]!==h.foregroundMuted?(M={color:h.foregroundMuted,fontSize:15},t[21]=h.foregroundMuted,t[22]=M):M=t[22],t[23]!==g?(w=g("common.cancel"),t[23]=g,t[24]=w):w=t[24],t[25]!==M||t[26]!==w?(z=(0,G.jsx)(l.default,{style:M,children:w}),t[25]=M,t[26]=w,t[27]=z):z=t[27],t[28]!==c||t[29]!==N||t[30]!==z?(H=(0,G.jsx)(i.default,{onPress:c,style:N,children:z}),t[28]=c,t[29]=N,t[30]=z,t[31]=H):H=t[31],t[32]!==h.danger||t[33]!==h.surfaceHover?(D=e=>{const{pressed:o}=e;return{paddingVertical:x.SPACING.md,paddingHorizontal:x.SPACING.xl,borderRadius:x.RADIUS.md,backgroundColor:o?h.surfaceHover:h.danger}},t[32]=h.danger,t[33]=h.surfaceHover,t[34]=D):D=t[34],t[35]===Symbol.for("react.memo_cache_sentinel")?(T={color:"#fff",fontSize:15,fontWeight:"600"},t[35]=T):T=t[35],t[36]!==g?(_=g("common.delete"),t[36]=g,t[37]=_):_=t[37],t[38]!==_?(W=(0,G.jsx)(l.default,{style:T,children:_}),t[38]=_,t[39]=W):W=t[39],t[40]!==f||t[41]!==D||t[42]!==W?(E=(0,G.jsx)(i.default,{onPress:f,style:D,children:W}),t[40]=f,t[41]=D,t[42]=W,t[43]=E):E=t[43],t[44]!==H||t[45]!==E?(L=(0,G.jsxs)(n.default,{style:R,children:[H,E]}),t[44]=H,t[45]=E,t[46]=L):L=t[46],t[47]!==S||t[48]!==L||t[49]!==I||t[50]!==k?(O=(0,G.jsxs)(i.default,{style:S,onPress:F,children:[I,k,L]}),t[47]=S,t[48]=L,t[49]=I,t[50]=k,t[51]=O):O=t[51],t[52]!==c||t[53]!==O?(B=(0,G.jsx)(i.default,{style:U.backdrop,onPress:c,children:O}),t[52]=c,t[53]=O,t[54]=B):B=t[54],t[55]!==c||t[56]!==y||t[57]!==B?(V=(0,G.jsx)(u.default,{visible:y,transparent:!0,animationType:"fade",onRequestClose:c,children:B}),t[55]=c,t[56]=y,t[57]=B,t[58]=V):V=t[58],V}function F(){}const U=c.default.create({empty:{flex:1,alignItems:'center',justifyContent:'center',padding:x.SPACING['2xl'],gap:x.SPACING.md},fab:{position:'absolute',right:x.SPACING.lg,width:56,height:56,borderRadius:28,alignItems:'center',justifyContent:'center',shadowOpacity:.35,shadowRadius:8,shadowOffset:{width:0,height:3},elevation:6},card:{borderWidth:1,borderRadius:x.RADIUS.md,padding:x.SPACING.md,gap:x.SPACING.md},strip:{flexDirection:'row',gap:x.SPACING.xs,height:72},thumb:{flex:1,height:'100%',borderRadius:x.RADIUS.sm,borderWidth:1,overflow:'hidden',alignItems:'center',justifyContent:'center'},thumbImg:{width:'100%',height:'100%'},stripEmpty:{backgroundColor:'#0000'},overflowTile:{backgroundColor:'#0006',flex:0,width:56},cardHeaderRow:{flexDirection:'row',alignItems:'center',gap:x.SPACING.lg},metaRow:{flexDirection:'row',alignItems:'center',gap:x.SPACING.sm},chip:{flexDirection:'row',alignItems:'center',gap:4,paddingHorizontal:x.SPACING.sm,paddingVertical:2,borderRadius:x.RADIUS.sm,borderWidth:1},backdrop:{flex:1,backgroundColor:'#0009',alignItems:'center',justifyContent:'center',padding:x.SPACING['2xl']},modalCard:{width:'100%',maxWidth:380,borderWidth:1,borderRadius:x.RADIUS.xl,padding:x.SPACING.xl,gap:x.SPACING.lg},builderBackdrop:{flex:1,backgroundColor:'#0009',alignItems:'center',justifyContent:'center',padding:x.SPACING.xl},builderCard:{width:'100%',maxWidth:960,height:'88%',borderWidth:1,borderRadius:x.RADIUS.xl,overflow:'hidden'}})},3402,[15,17,20,112,138,252,245,33,136,466,3053,786,743,813,2587,2589,3139,3403,3144,3080,3143,2590,3411,10]);
@@ -15837,7 +15837,7 @@ __d(function(g,r,_i,_a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule
15837
15837
  __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.GridBuilderHeader=function(e){const u=(0,o.c)(54),{name:x,onChangeName:P,onCommitName:v,options:A,onSetOption:G,onExport:I,selectedCount:T}=e,{t:j}=(0,s.useTranslation)(),{colors:w}=(0,f.useTheme)();let y,B,M,z,R,_,H,L,E,O,V,k,D,K,U,W,q,F;u[0]!==w.foregroundMuted?(y={color:w.foregroundMuted,fontSize:12},u[0]=w.foregroundMuted,u[1]=y):y=u[1];u[2]!==j?(B=j("v2.gridBuilder.nameLabel"),u[2]=j,u[3]=B):B=u[3];u[4]!==y||u[5]!==B?(M=(0,C.jsx)(l.default,{style:y,children:B}),u[4]=y,u[5]=B,u[6]=M):M=u[6];u[7]!==j?(z=j("v2.gridBuilder.namePlaceholder"),u[7]=j,u[8]=z):z=u[8];u[9]!==w.border||u[10]!==w.foreground||u[11]!==w.surface?(R={color:w.foreground,backgroundColor:w.surface,borderColor:w.border,borderWidth:1,borderRadius:b.RADIUS.md,paddingHorizontal:b.SPACING.lg,paddingVertical:b.SPACING.md,fontSize:16},u[9]=w.border,u[10]=w.foreground,u[11]=w.surface,u[12]=R):R=u[12];u[13]!==w.foregroundSubtle||u[14]!==x||u[15]!==P||u[16]!==v||u[17]!==z||u[18]!==R?(_=(0,C.jsx)(t.default,{value:x,onChangeText:P,onBlur:v,placeholder:z,placeholderTextColor:w.foregroundSubtle,returnKeyType:"done",onSubmitEditing:v,style:R}),u[13]=w.foregroundSubtle,u[14]=x,u[15]=P,u[16]=v,u[17]=z,u[18]=R,u[19]=_):_=u[19];u[20]!==M||u[21]!==_?(H=(0,C.jsxs)(n.default,{style:N.nameRow,children:[M,_]}),u[20]=M,u[21]=_,u[22]=H):H=u[22];u[23]!==j?(L=j("v2.gridBuilder.optionsTitle"),u[23]=j,u[24]=L):L=u[24];u[25]!==j?(E=j("v2.gridBuilder.showName"),u[25]=j,u[26]=E):E=u[26];u[27]!==G?(O=e=>G({showName:e}),u[27]=G,u[28]=O):O=u[28];u[29]!==A.showName||u[30]!==O||u[31]!==E?(V=(0,C.jsx)(S.ToggleRow,{icon:c.Tag,label:E,value:A.showName,onValueChange:O}),u[29]=A.showName,u[30]=O,u[31]=E,u[32]=V):V=u[32];u[33]!==j?(k=j("v2.gridBuilder.export"),u[33]=j,u[34]=k):k=u[34];u[35]!==I||u[36]!==k?(D=(0,C.jsx)(p.Row,{icon:c.Share2,label:k,onPress:I,last:!0}),u[35]=I,u[36]=k,u[37]=D):D=u[37];u[38]!==V||u[39]!==D||u[40]!==L?(K=(0,C.jsxs)(h.Section,{title:L,children:[V,D]}),u[38]=V,u[39]=D,u[40]=L,u[41]=K):K=u[41];u[42]!==w.foregroundMuted?(U=[N.sectionLabel,{color:w.foregroundMuted}],u[42]=w.foregroundMuted,u[43]=U):U=u[43];u[44]!==T||u[45]!==j?(W=j("v2.gridBuilder.camerasSelected",{count:T}),u[44]=T,u[45]=j,u[46]=W):W=u[46];u[47]!==U||u[48]!==W?(q=(0,C.jsx)(l.default,{style:U,children:W}),u[47]=U,u[48]=W,u[49]=q):q=u[49];u[50]!==K||u[51]!==q||u[52]!==H?(F=(0,C.jsxs)(n.default,{style:N.header,children:[H,K,q]}),u[50]=K,u[51]=q,u[52]=H,u[53]=F):F=u[53];return F};var o=r(d[0]);r(d[1]);var n=e(r(d[2])),l=e(r(d[3])),t=e(r(d[4])),u=e(r(d[5])),s=r(d[6]),c=r(d[7]),f=r(d[8]),h=r(d[9]),S=r(d[10]),p=r(d[11]),b=r(d[12]),C=r(d[13]);const N=u.default.create({header:{gap:b.SPACING.lg,paddingHorizontal:b.SPACING.md,paddingTop:b.SPACING.lg},nameRow:{paddingHorizontal:b.SPACING.sm,gap:b.SPACING.sm},sectionLabel:{fontSize:12,paddingHorizontal:b.SPACING.sm,paddingTop:b.SPACING.md}})},3416,[15,17,20,112,262,33,786,813,2587,3173,3174,3417,2589,10]);
15838
15838
  __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.Row=function(e){const b=(0,o.c)(33),{label:h,value:v,icon:S,onPress:x,danger:p,right:j,last:y}=e,_=void 0!==p&&p,C=void 0!==y&&y,{colors:M}=(0,s.useTheme)(),P=_?M.danger:M.foreground,z=_?M.danger:M.foregroundMuted,H="function"==typeof x,I=C?0:1;let A,G,N,O,R,W,w;b[0]!==M.borderSubtle||b[1]!==I?(A={flexDirection:"row",alignItems:"center",gap:c.SPACING.lg,paddingHorizontal:c.SPACING.xl,paddingVertical:c.SPACING.lg,borderBottomWidth:I,borderBottomColor:M.borderSubtle},b[0]=M.borderSubtle,b[1]=I,b[2]=A):A=b[2];b[3]!==S||b[4]!==z?(G=S?(0,f.jsx)(S,{size:18,color:z}):null,b[3]=S,b[4]=z,b[5]=G):G=b[5];b[6]!==P?(N={flex:1,color:P,fontSize:15,fontWeight:"500"},b[6]=P,b[7]=N):N=b[7];b[8]!==h||b[9]!==N?(O=(0,f.jsx)(n.default,{style:N,numberOfLines:1,children:h}),b[8]=h,b[9]=N,b[10]=O):O=b[10];b[11]!==M.foregroundMuted||b[12]!==j||b[13]!==v?(R=j??(v?(0,f.jsx)(n.default,{style:{color:M.foregroundMuted,fontSize:14,maxWidth:"55%"},numberOfLines:1,children:v}):null),b[11]=M.foregroundMuted,b[12]=j,b[13]=v,b[14]=R):R=b[14];b[15]!==M.foregroundSubtle||b[16]!==H||b[17]!==j?(W=H&&!j?(0,f.jsx)(u.ChevronRight,{size:18,color:M.foregroundSubtle}):null,b[15]=M.foregroundSubtle,b[16]=H,b[17]=j,b[18]=W):W=b[18];b[19]!==A||b[20]!==G||b[21]!==O||b[22]!==R||b[23]!==W?(w=(0,f.jsxs)(l.default,{style:A,children:[G,O,R,W]}),b[19]=A,b[20]=G,b[21]=O,b[22]=R,b[23]=W,b[24]=w):w=b[24];const B=w;if(!H)return B;let L,k,D;b[25]!==M.surfaceHover?(L={color:M.surfaceHover},k=e=>{const{pressed:o}=e;return{backgroundColor:o?M.surfaceHover:"transparent"}},b[25]=M.surfaceHover,b[26]=L,b[27]=k):(L=b[26],k=b[27]);b[28]!==B||b[29]!==x||b[30]!==L||b[31]!==k?(D=(0,f.jsx)(t.default,{accessibilityRole:"button",onPress:x,android_ripple:L,style:k,children:B}),b[28]=B,b[29]=x,b[30]=L,b[31]=k,b[32]=D):D=b[32];return D};var o=r(d[0]);r(d[1]);var t=e(r(d[2])),n=e(r(d[3])),l=e(r(d[4])),u=r(d[5]),s=r(d[6]),c=r(d[7]),f=r(d[8])},3417,[15,17,252,112,20,813,2587,2589,10]);
15839
15839
  __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}},3418,[15,3419,10]);
15840
- __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.SettingsScreen=function(){const e=(0,t.c)(348),{t:s}=(0,f.useTranslation)(),l=(0,v.useRouter)(),T=(0,p.useQueryClient)(),{server:L,signOut:B,endpoints:U}=(0,S.useServer)(),{controller:W}=(0,C.useConnection)(),[Z,$]=(0,n.useState)(!1),{colors:F,preference:K,setPreference:q}=(0,j.useTheme)(),{preference:J,setPreference:Q}=(0,_.useLanguage)(),{settings:X,setGridDefault:Y,setStreamDefault:ee,setAdvanced:te,setHighlightAppearance:ne,setHaptics:oe,resetSettings:se}=(0,O.useSettings)(),[le,ie]=(0,n.useState)(!1);let re;e[0]!==B?(re=()=>{B()},e[0]=B,e[1]=re):re=e[1];const ae=re;let ce;e[2]!==W||e[3]!==Z?(ce=()=>{Z||($(!0),W.reprobe().finally(()=>$(!1)))},e[2]=W,e[3]=Z,e[4]=ce):ce=e[4];const ge=ce,de=G;let ue,he,fe,ve,pe,be,xe;e[5]!==s?(ue=s("v2.settings.themeSystem"),e[5]=s,e[6]=ue):ue=e[6];e[7]!==ue?(he={value:"system",label:ue},e[7]=ue,e[8]=he):he=e[8];e[9]!==s?(fe=s("v2.settings.themeDark"),e[9]=s,e[10]=fe):fe=e[10];e[11]!==fe?(ve={value:"dark",label:fe},e[11]=fe,e[12]=ve):ve=e[12];e[13]!==s?(pe=s("v2.settings.themeLight"),e[13]=s,e[14]=pe):pe=e[14];e[15]!==pe?(be={value:"light",label:pe},e[15]=pe,e[16]=be):be=e[16];e[17]!==he||e[18]!==ve||e[19]!==be?(xe=[he,ve,be],e[17]=he,e[18]=ve,e[19]=be,e[20]=xe):xe=e[20];const me=xe;let Se,Ce,je,ye,we;e[21]!==s?(Se=s("v2.settings.langSystem"),e[21]=s,e[22]=Se):Se=e[22];e[23]!==Se?(Ce={value:"system",label:Se},e[23]=Se,e[24]=Ce):Ce=e[24];e[25]===Symbol.for("react.memo_cache_sentinel")?(je={value:"it",label:"Italiano"},ye={value:"en",label:"English"},e[25]=je,e[26]=ye):(je=e[25],ye=e[26]);e[27]!==Ce?(we=[Ce,je,ye],e[27]=Ce,e[28]=we):we=e[28];const Re=we;let Pe;e[29]===Symbol.for("react.memo_cache_sentinel")?(Pe=[1,2,3,4,6,8].map(E),e[29]=Pe):Pe=e[29];const Me=Pe;let ke;e[30]!==s?(ke=N.MOTION_HOLD_SECONDS.map(e=>({value:e,label:0===e?s("v2.settings.motionHoldOff"):s("v2.settings.secondsValue",{count:e})})),e[30]=s,e[31]=ke):ke=e[31];const He=ke,Oe=b.default.expoConfig?.version??"\u2014";let Te;e[32]!==L?.serverUrl||e[33]!==s?(Te=L?.serverUrl??s("v2.settings.noServer"),e[32]=L?.serverUrl,e[33]=s,e[34]=Te):Te=e[34];const Ae=Te;let Ne;e[35]!==T||e[36]!==s?(Ne=()=>{o.default.alert(s("v2.settings.clearCacheConfirmTitle"),s("v2.settings.clearCacheConfirmBody"),[{text:s("v2.settings.cancel"),style:"cancel"},{text:s("v2.settings.confirm"),style:"destructive",onPress:()=>{(0,A.clearAppCache)(T).then(()=>{o.default.alert(s("v2.settings.clearCacheDone"))})}}])},e[35]=T,e[36]=s,e[37]=Ne):Ne=e[37];const Ie=Ne;let De;e[38]!==X?(De=()=>{const e=JSON.stringify(X,null,2);c.default.share({message:e}).catch(z)},e[38]=X,e[39]=De):De=e[39];const ze=De;let Ee;e[40]!==se||e[41]!==s?(Ee=()=>{o.default.alert(s("v2.settings.resetConfirmTitle"),s("v2.settings.resetConfirmBody"),[{text:s("v2.settings.cancel"),style:"cancel"},{text:s("v2.settings.confirm"),style:"destructive",onPress:se}])},e[40]=se,e[41]=s,e[42]=Ee):Ee=e[42];const Ge=Ee;let Ve,Le,Be,Ue,We,Ze,$e,Fe,Ke,qe,Je,Qe,Xe,Ye,et,tt,nt,ot,st,lt,it,rt,at,ct,gt,dt,ut,ht,ft,vt,pt,bt,xt,mt,St,Ct,jt,yt,wt,Rt,Pt,Mt,kt,Ht,_t,Ot,Tt,At,Nt,It,Dt,zt,Et,Gt,Vt,Lt,Bt,Ut,Wt,Zt,$t,Ft,Kt,qt,Jt,Qt,Xt,Yt,en,tn,nn,on,sn,ln,rn,an,cn,gn,dn,un,hn,fn,vn,pn,bn,xn,mn,Sn,Cn,jn,yn,wn,Rn,Pn,Mn,kn,Hn,_n,On,Tn,An,Nn,In,Dn,zn,En,Gn,Vn,Ln,Bn;e[43]!==F.background?(Ve={flex:1,backgroundColor:F.background},e[43]=F.background,e[44]=Ve):Ve=e[44];e[45]===Symbol.for("react.memo_cache_sentinel")?(Le=(0,D.jsx)(y.ScreenHeader,{bordered:!0}),e[45]=Le):Le=e[45];e[46]===Symbol.for("react.memo_cache_sentinel")?(Be={padding:I.SPACING.xl,paddingBottom:I.SPACING["3xl"],gap:I.SPACING["2xl"]},e[46]=Be):Be=e[46];e[47]!==s?(Ue=s("v2.settings.server"),e[47]=s,e[48]=Ue):Ue=e[48];e[49]!==s?(We=s("v2.settings.hubActive"),e[49]=s,e[50]=We):We=e[50];e[51]!==Ae||e[52]!==We?(Ze=(0,D.jsx)(R.Row,{icon:x.Server,label:We,value:Ae}),e[51]=Ae,e[52]=We,e[53]=Ze):Ze=e[53];e[54]!==s?($e=s("v2.settings.changeServer"),e[54]=s,e[55]=$e):$e=e[55];e[56]!==ae||e[57]!==$e?(Fe=(0,D.jsx)(R.Row,{icon:x.RefreshCcw,label:$e,onPress:ae}),e[56]=ae,e[57]=$e,e[58]=Fe):Fe=e[58];e[59]!==s?(Ke=s("v2.settings.signOut"),e[59]=s,e[60]=Ke):Ke=e[60];e[61]!==ae||e[62]!==Ke?(qe=(0,D.jsx)(R.Row,{icon:x.LogOut,label:Ke,danger:!0,onPress:ae,last:!0}),e[61]=ae,e[62]=Ke,e[63]=qe):qe=e[63];e[64]!==Ue||e[65]!==Ze||e[66]!==Fe||e[67]!==qe?(Je=(0,D.jsxs)(w.Section,{title:Ue,children:[Ze,Fe,qe]}),e[64]=Ue,e[65]=Ze,e[66]=Fe,e[67]=qe,e[68]=Je):Je=e[68];e[69]!==s?(Qe=s("v2.settings.network"),e[69]=s,e[70]=Qe):Qe=e[70];e[71]!==U||e[72]!==s?(Xe=0===U.length?(0,D.jsx)(R.Row,{icon:x.Network,label:s("v2.settings.networkNone")}):U.map((e,t)=>(0,D.jsx)(R.Row,{icon:de(e),label:e.label,value:e.plausible?e.baseUrl:s("v2.settings.endpointUnlikely")},`${e.baseUrl}-${t}`)),e[71]=U,e[72]=s,e[73]=Xe):Xe=e[73];e[74]!==Z||e[75]!==s?(Ye=s(Z?"v2.settings.reprobing":"v2.settings.reprobe"),e[74]=Z,e[75]=s,e[76]=Ye):Ye=e[76];e[77]!==ge||e[78]!==Ye?(et=(0,D.jsx)(R.Row,{icon:x.RefreshCcw,label:Ye,onPress:ge,last:!0}),e[77]=ge,e[78]=Ye,e[79]=et):et=e[79];e[80]!==Qe||e[81]!==Xe||e[82]!==et?(tt=(0,D.jsxs)(w.Section,{title:Qe,children:[Xe,et]}),e[80]=Qe,e[81]=Xe,e[82]=et,e[83]=tt):tt=e[83];e[84]!==s?(nt=s("v2.settings.cameras"),e[84]=s,e[85]=nt):nt=e[85];e[86]!==s?(ot=s("v2.settings.manageCameras"),e[86]=s,e[87]=ot):ot=e[87];e[88]!==s?(st=s("v2.settings.manageCamerasHint"),e[88]=s,e[89]=st):st=e[89];e[90]!==l?(lt=()=>l.push("/settings/cameras"),e[90]=l,e[91]=lt):lt=e[91];e[92]!==ot||e[93]!==st||e[94]!==lt?(it=(0,D.jsx)(R.Row,{icon:x.Video,label:ot,value:st,onPress:lt}),e[92]=ot,e[93]=st,e[94]=lt,e[95]=it):it=e[95];e[96]!==s?(rt=s("v2.exports.title"),e[96]=s,e[97]=rt):rt=e[97];e[98]!==s?(at=s("v2.exports.settingsHint"),e[98]=s,e[99]=at):at=e[99];e[100]!==l?(ct=()=>l.push("/exports"),e[100]=l,e[101]=ct):ct=e[101];e[102]!==rt||e[103]!==at||e[104]!==ct?(gt=(0,D.jsx)(R.Row,{icon:x.Download,label:rt,value:at,onPress:ct,last:!0}),e[102]=rt,e[103]=at,e[104]=ct,e[105]=gt):gt=e[105];e[106]!==nt||e[107]!==it||e[108]!==gt?(dt=(0,D.jsxs)(w.Section,{title:nt,children:[it,gt]}),e[106]=nt,e[107]=it,e[108]=gt,e[109]=dt):dt=e[109];e[110]!==s?(ut=s("v2.settings.gridDefaults"),e[110]=s,e[111]=ut):ut=e[111];e[112]!==s?(ht=s("v2.settings.motionHold"),e[112]=s,e[113]=ht):ht=e[113];e[114]!==Y?(ft=e=>Y("motionHoldSec",e),e[114]=Y,e[115]=ft):ft=e[115];e[116]!==He||e[117]!==X.grid.motionHoldSec||e[118]!==ht||e[119]!==ft?(vt=(0,D.jsx)(M.SelectRow,{icon:x.Zap,label:ht,options:He,value:X.grid.motionHoldSec,onChange:ft,last:!0}),e[116]=He,e[117]=X.grid.motionHoldSec,e[118]=ht,e[119]=ft,e[120]=vt):vt=e[120];e[121]!==ut||e[122]!==vt?(pt=(0,D.jsx)(w.Section,{title:ut,children:vt}),e[121]=ut,e[122]=vt,e[123]=pt):pt=e[123];e[124]!==s?(bt=s("v2.settings.highlightAppearance"),e[124]=s,e[125]=bt):bt=e[125];e[126]!==s?(xt=s("v2.settings.highlightMotionColor"),e[126]=s,e[127]=xt):xt=e[127];e[128]!==ne?(mt=e=>ne("motionColor",e),e[128]=ne,e[129]=mt):mt=e[129];e[130]!==X.highlight.motionColor||e[131]!==xt||e[132]!==mt?(St=(0,D.jsx)(H.ColorPickerRow,{icon:x.Zap,label:xt,value:X.highlight.motionColor,onChange:mt}),e[130]=X.highlight.motionColor,e[131]=xt,e[132]=mt,e[133]=St):St=e[133];e[134]!==s?(Ct=s("v2.settings.highlightAudioColor"),e[134]=s,e[135]=Ct):Ct=e[135];e[136]!==ne?(jt=e=>ne("audioColor",e),e[136]=ne,e[137]=jt):jt=e[137];e[138]!==X.highlight.audioColor||e[139]!==Ct||e[140]!==jt?(yt=(0,D.jsx)(H.ColorPickerRow,{icon:x.Volume2,label:Ct,value:X.highlight.audioColor,onChange:jt}),e[138]=X.highlight.audioColor,e[139]=Ct,e[140]=jt,e[141]=yt):yt=e[141];e[142]!==s?(wt=s("v2.settings.highlightDetectionColor"),e[142]=s,e[143]=wt):wt=e[143];e[144]!==ne?(Rt=e=>ne("detectionColor",e),e[144]=ne,e[145]=Rt):Rt=e[145];e[146]!==X.highlight.detectionColor||e[147]!==wt||e[148]!==Rt?(Pt=(0,D.jsx)(H.ColorPickerRow,{icon:x.Box,label:wt,value:X.highlight.detectionColor,onChange:Rt}),e[146]=X.highlight.detectionColor,e[147]=wt,e[148]=Rt,e[149]=Pt):Pt=e[149];e[150]!==s?(Mt=s("v2.settings.highlightThickness"),e[150]=s,e[151]=Mt):Mt=e[151];e[152]!==ne?(kt=e=>ne("thickness",e),e[152]=ne,e[153]=kt):kt=e[153];e[154]!==X.highlight.thickness||e[155]!==Mt||e[156]!==kt?(Ht=(0,D.jsx)(M.SelectRow,{icon:x.Maximize2,label:Mt,options:Me,value:X.highlight.thickness,onChange:kt,last:!0}),e[154]=X.highlight.thickness,e[155]=Mt,e[156]=kt,e[157]=Ht):Ht=e[157];e[158]!==bt||e[159]!==St||e[160]!==yt||e[161]!==Pt||e[162]!==Ht?(_t=(0,D.jsxs)(w.Section,{title:bt,children:[St,yt,Pt,Ht]}),e[158]=bt,e[159]=St,e[160]=yt,e[161]=Pt,e[162]=Ht,e[163]=_t):_t=e[163];e[164]!==s?(Ot=s("v2.settings.haptics"),e[164]=s,e[165]=Ot):Ot=e[165];e[166]!==s?(Tt=s("v2.settings.hapticsEnabled"),e[166]=s,e[167]=Tt):Tt=e[167];e[168]!==s?(At=s("v2.settings.hapticsEnabledHint"),e[168]=s,e[169]=At):At=e[169];e[170]!==oe?(Nt=e=>oe("enabled",e),e[170]=oe,e[171]=Nt):Nt=e[171];e[172]!==X.haptics.enabled||e[173]!==Tt||e[174]!==At||e[175]!==Nt?(It=(0,D.jsx)(P.ToggleRow,{icon:x.Vibrate,label:Tt,description:At,value:X.haptics.enabled,onValueChange:Nt}),e[172]=X.haptics.enabled,e[173]=Tt,e[174]=At,e[175]=Nt,e[176]=It):It=e[176];e[177]!==s?(Dt=s("v2.settings.hapticsMotion"),e[177]=s,e[178]=Dt):Dt=e[178];e[179]!==oe?(zt=e=>oe("motion",e),e[179]=oe,e[180]=zt):zt=e[180];e[181]!==X.haptics.motion||e[182]!==Dt||e[183]!==zt?(Et=(0,D.jsx)(P.ToggleRow,{icon:x.Zap,label:Dt,value:X.haptics.motion,onValueChange:zt}),e[181]=X.haptics.motion,e[182]=Dt,e[183]=zt,e[184]=Et):Et=e[184];e[185]!==s?(Gt=s("v2.settings.hapticsDetection"),e[185]=s,e[186]=Gt):Gt=e[186];e[187]!==oe?(Vt=e=>oe("detection",e),e[187]=oe,e[188]=Vt):Vt=e[188];e[189]!==X.haptics.detection||e[190]!==Gt||e[191]!==Vt?(Lt=(0,D.jsx)(P.ToggleRow,{icon:x.Box,label:Gt,value:X.haptics.detection,onValueChange:Vt}),e[189]=X.haptics.detection,e[190]=Gt,e[191]=Vt,e[192]=Lt):Lt=e[192];e[193]!==s?(Bt=s("v2.settings.hapticsPerson"),e[193]=s,e[194]=Bt):Bt=e[194];e[195]!==oe?(Ut=e=>oe("person",e),e[195]=oe,e[196]=Ut):Ut=e[196];e[197]!==X.haptics.person||e[198]!==Bt||e[199]!==Ut?(Wt=(0,D.jsx)(P.ToggleRow,{icon:x.User,label:Bt,value:X.haptics.person,onValueChange:Ut,last:!0}),e[197]=X.haptics.person,e[198]=Bt,e[199]=Ut,e[200]=Wt):Wt=e[200];e[201]!==Ot||e[202]!==It||e[203]!==Et||e[204]!==Lt||e[205]!==Wt?(Zt=(0,D.jsxs)(w.Section,{title:Ot,children:[It,Et,Lt,Wt]}),e[201]=Ot,e[202]=It,e[203]=Et,e[204]=Lt,e[205]=Wt,e[206]=Zt):Zt=e[206];e[207]!==s?($t=s("v2.settings.streamDefaults"),e[207]=s,e[208]=$t):$t=e[208];e[209]!==s?(Ft=s("v2.settings.audioOnOpen"),e[209]=s,e[210]=Ft):Ft=e[210];e[211]!==s?(Kt=s("v2.settings.audioOnOpenHint"),e[211]=s,e[212]=Kt):Kt=e[212];e[213]!==ee?(qt=e=>ee("audioOnOpen",e),e[213]=ee,e[214]=qt):qt=e[214];e[215]!==X.stream.audioOnOpen||e[216]!==Ft||e[217]!==Kt||e[218]!==qt?(Jt=(0,D.jsx)(P.ToggleRow,{icon:x.Volume2,label:Ft,description:Kt,value:X.stream.audioOnOpen,onValueChange:qt}),e[215]=X.stream.audioOnOpen,e[216]=Ft,e[217]=Kt,e[218]=qt,e[219]=Jt):Jt=e[219];e[220]!==s?(Qt=s("v2.settings.pinchExpandsHeight"),e[220]=s,e[221]=Qt):Qt=e[221];e[222]!==s?(Xt=s("v2.settings.pinchExpandsHeightHint"),e[222]=s,e[223]=Xt):Xt=e[223];e[224]!==ee?(Yt=e=>ee("pinchExpandsHeight",e),e[224]=ee,e[225]=Yt):Yt=e[225];e[226]!==X.stream.pinchExpandsHeight||e[227]!==Qt||e[228]!==Xt||e[229]!==Yt?(en=(0,D.jsx)(P.ToggleRow,{icon:x.Maximize2,label:Qt,description:Xt,value:X.stream.pinchExpandsHeight,onValueChange:Yt,last:!0}),e[226]=X.stream.pinchExpandsHeight,e[227]=Qt,e[228]=Xt,e[229]=Yt,e[230]=en):en=e[230];e[231]!==$t||e[232]!==Jt||e[233]!==en?(tn=(0,D.jsxs)(w.Section,{title:$t,children:[Jt,en]}),e[231]=$t,e[232]=Jt,e[233]=en,e[234]=tn):tn=e[234];e[235]!==s?(nn=s("v2.settings.appearance"),e[235]=s,e[236]=nn):nn=e[236];e[237]===Symbol.for("react.memo_cache_sentinel")?(on={padding:I.SPACING.xl,gap:I.SPACING.md},e[237]=on):on=e[237];e[238]!==F.foregroundMuted?(sn={color:F.foregroundMuted,fontSize:13},e[238]=F.foregroundMuted,e[239]=sn):sn=e[239];e[240]!==s?(ln=s("v2.settings.theme"),e[240]=s,e[241]=ln):ln=e[241];e[242]!==sn||e[243]!==ln?(rn=(0,D.jsx)(u.default,{style:sn,children:ln}),e[242]=sn,e[243]=ln,e[244]=rn):rn=e[244];e[245]!==K||e[246]!==q||e[247]!==me?(an=(0,D.jsx)(k.SegmentedControl,{options:me,value:K,onChange:q}),e[245]=K,e[246]=q,e[247]=me,e[248]=an):an=e[248];e[249]!==F.foregroundMuted?(cn={color:F.foregroundMuted,fontSize:13,marginTop:I.SPACING.md},e[249]=F.foregroundMuted,e[250]=cn):cn=e[250];e[251]!==s?(gn=s("v2.settings.language"),e[251]=s,e[252]=gn):gn=e[252];e[253]!==cn||e[254]!==gn?(dn=(0,D.jsx)(u.default,{style:cn,children:gn}),e[253]=cn,e[254]=gn,e[255]=dn):dn=e[255];e[256]!==J||e[257]!==Re||e[258]!==Q?(un=(0,D.jsx)(k.SegmentedControl,{options:Re,value:J,onChange:Q}),e[256]=J,e[257]=Re,e[258]=Q,e[259]=un):un=e[259];e[260]!==rn||e[261]!==an||e[262]!==dn||e[263]!==un?(hn=(0,D.jsxs)(h.default,{style:on,children:[rn,an,dn,un]}),e[260]=rn,e[261]=an,e[262]=dn,e[263]=un,e[264]=hn):hn=e[264];e[265]!==hn||e[266]!==nn?(fn=(0,D.jsx)(w.Section,{title:nn,children:hn}),e[265]=hn,e[266]=nn,e[267]=fn):fn=e[267];e[268]!==s?(vn=s("v2.settings.advanced"),e[268]=s,e[269]=vn):vn=e[269];e[270]!==s?(pn=s("v2.settings.debugMode"),e[270]=s,e[271]=pn):pn=e[271];e[272]!==s?(bn=s("v2.settings.debugModeHint"),e[272]=s,e[273]=bn):bn=e[273];e[274]!==te?(xn=e=>te("debugMode",e),e[274]=te,e[275]=xn):xn=e[275];e[276]!==X.advanced.debugMode||e[277]!==pn||e[278]!==bn||e[279]!==xn?(mn=(0,D.jsx)(P.ToggleRow,{icon:x.Bug,label:pn,description:bn,value:X.advanced.debugMode,onValueChange:xn}),e[276]=X.advanced.debugMode,e[277]=pn,e[278]=bn,e[279]=xn,e[280]=mn):mn=e[280];e[281]!==s?(Sn=s("v2.settings.viewLogs"),e[281]=s,e[282]=Sn):Sn=e[282];e[283]===Symbol.for("react.memo_cache_sentinel")?(Cn=()=>ie(!0),e[283]=Cn):Cn=e[283];e[284]!==Sn?(jn=(0,D.jsx)(R.Row,{icon:x.ScrollText,label:Sn,onPress:Cn}),e[284]=Sn,e[285]=jn):jn=e[285];e[286]!==s?(yn=s("v2.settings.exportSettings"),e[286]=s,e[287]=yn):yn=e[287];e[288]!==ze||e[289]!==yn?(wn=(0,D.jsx)(R.Row,{icon:x.Download,label:yn,onPress:ze}),e[288]=ze,e[289]=yn,e[290]=wn):wn=e[290];e[291]!==s?(Rn=s("v2.settings.clearCache"),e[291]=s,e[292]=Rn):Rn=e[292];e[293]!==Ie||e[294]!==Rn?(Pn=(0,D.jsx)(R.Row,{icon:x.Trash2,label:Rn,onPress:Ie}),e[293]=Ie,e[294]=Rn,e[295]=Pn):Pn=e[295];e[296]!==s?(Mn=s("v2.settings.resetSettings"),e[296]=s,e[297]=Mn):Mn=e[297];e[298]!==Ge||e[299]!==Mn?(kn=(0,D.jsx)(R.Row,{icon:x.RotateCcw,label:Mn,danger:!0,onPress:Ge,last:!0}),e[298]=Ge,e[299]=Mn,e[300]=kn):kn=e[300];e[301]!==vn||e[302]!==mn||e[303]!==jn||e[304]!==wn||e[305]!==Pn||e[306]!==kn?(Hn=(0,D.jsxs)(w.Section,{title:vn,children:[mn,jn,wn,Pn,kn]}),e[301]=vn,e[302]=mn,e[303]=jn,e[304]=wn,e[305]=Pn,e[306]=kn,e[307]=Hn):Hn=e[307];e[308]!==s?(_n=s("v2.settings.info"),e[308]=s,e[309]=_n):_n=e[309];e[310]!==s?(On=s("v2.settings.app"),e[310]=s,e[311]=On):On=e[311];e[312]!==On?(Tn=(0,D.jsx)(R.Row,{icon:x.Info,label:On,value:"CamStack Viewer"}),e[312]=On,e[313]=Tn):Tn=e[313];e[314]!==s?(An=s("v2.settings.version"),e[314]=s,e[315]=An):An=e[315];e[316]!==An?(Nn=(0,D.jsx)(R.Row,{label:An,value:Oe,last:!0}),e[316]=An,e[317]=Nn):Nn=e[317];e[318]!==_n||e[319]!==Tn||e[320]!==Nn?(In=(0,D.jsxs)(w.Section,{title:_n,children:[Tn,Nn]}),e[318]=_n,e[319]=Tn,e[320]=Nn,e[321]=In):In=e[321];e[322]!==F.foregroundSubtle?(Dn={color:F.foregroundSubtle,fontSize:12,textAlign:"center",lineHeight:17,paddingHorizontal:I.SPACING.lg},e[322]=F.foregroundSubtle,e[323]=Dn):Dn=e[323];e[324]!==s?(zn=s("v2.settings.footerNote"),e[324]=s,e[325]=zn):zn=e[325];e[326]!==Dn||e[327]!==zn?(En=(0,D.jsx)(u.default,{style:Dn,children:zn}),e[326]=Dn,e[327]=zn,e[328]=En):En=e[328];e[329]!==fn||e[330]!==Hn||e[331]!==In||e[332]!==En||e[333]!==Je||e[334]!==tt||e[335]!==dt||e[336]!==pt||e[337]!==_t||e[338]!==Zt||e[339]!==tn?(Gn=(0,D.jsxs)(i.default,{contentContainerStyle:Be,children:[Je,tt,dt,pt,_t,Zt,tn,fn,Hn,In,En]}),e[329]=fn,e[330]=Hn,e[331]=In,e[332]=En,e[333]=Je,e[334]=tt,e[335]=dt,e[336]=pt,e[337]=_t,e[338]=Zt,e[339]=tn,e[340]=Gn):Gn=e[340];e[341]===Symbol.for("react.memo_cache_sentinel")?(Vn=()=>ie(!1),e[341]=Vn):Vn=e[341];e[342]!==le?(Ln=(0,D.jsx)(V,{open:le,onClose:Vn}),e[342]=le,e[343]=Ln):Ln=e[343];e[344]!==Gn||e[345]!==Ln||e[346]!==Ve?(Bn=(0,D.jsxs)(h.default,{style:Ve,children:[Le,Gn,Ln]}),e[344]=Gn,e[345]=Ln,e[346]=Ve,e[347]=Bn):Bn=e[347];return Bn};var t=r(d[0]),n=r(d[1]),o=e(r(d[2])),s=e(r(d[3])),l=e(r(d[4])),i=e(r(d[5])),c=e(r(d[6])),u=e(r(d[7])),h=e(r(d[8])),f=r(d[9]),v=r(d[10]),p=r(d[11]),b=e(r(d[12])),x=r(d[13]),S=r(d[14]),C=r(d[15]),j=r(d[16]),y=r(d[17]),w=r(d[18]),R=r(d[19]),P=r(d[20]),M=r(d[21]),k=r(d[22]),H=r(d[23]),_=r(d[24]),O=r(d[25]),T=r(d[26]),A=r(d[27]),N=r(d[28]),I=r(d[29]),D=r(d[30]);function z(e){console.error("[settings] export share failed",e)}function E(e){return{value:e,label:`${e}px`}}function G(e){return"public"===e.kind?x.Globe:"wifi"===e.interfaceKind||"lan"===e.interfaceKind?x.Wifi:x.Network}function V(e){const n=(0,t.c)(66),{open:o,onClose:v}=e,{t:p}=(0,f.useTranslation)(),{colors:b}=(0,j.useTheme)(),S=(0,T.useLogStore)(B),C=(0,T.useLogStore)(L);let y,w,R,P,M,k,H,_,O,A,N;if(n[0]!==C||n[1]!==b.background||n[2]!==b.border||n[3]!==b.foreground||n[4]!==b.foregroundMuted||n[5]!==b.foregroundSubtle||n[6]!==S||n[7]!==v||n[8]!==o||n[9]!==p){const e=S.slice(-500).reverse();let t;n[19]!==b.foregroundMuted||n[20]!==b.foregroundSubtle?(t=e=>"error"===e?"#f87171":"warn"===e?"#fbbf24":"info"===e?b.foregroundMuted:b.foregroundSubtle,n[19]=b.foregroundMuted,n[20]=b.foregroundSubtle,n[21]=t):t=n[21];const f=t;let j;n[22]!==S?(j=()=>{c.default.share({message:S.map(T.logEntryToLine).join("\n")})},n[22]=S,n[23]=j):j=n[23];const A=j;let N,z,E,G,V,L,B,U,W;w=s.default,k=o,H="slide",_="pageSheet",O=v,y=h.default,n[24]!==b.background?(R={flex:1,backgroundColor:b.background},n[24]=b.background,n[25]=R):R=n[25],n[26]!==b.border?(N={flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:I.SPACING.xl,borderBottomWidth:1,borderBottomColor:b.border},n[26]=b.border,n[27]=N):N=n[27],n[28]!==b.foreground?(z={color:b.foreground,fontSize:17,fontWeight:"700"},n[28]=b.foreground,n[29]=z):z=n[29],n[30]!==p?(E=p("v2.settings.viewLogs"),n[30]=p,n[31]=E):E=n[31],n[32]!==z||n[33]!==E?(G=(0,D.jsx)(u.default,{style:z,children:E}),n[32]=z,n[33]=E,n[34]=G):G=n[34],n[35]===Symbol.for("react.memo_cache_sentinel")?(V={flexDirection:"row",alignItems:"center",gap:I.SPACING.xl},n[35]=V):V=n[35],n[36]!==C||n[37]!==b.foregroundMuted||n[38]!==S.length||n[39]!==A||n[40]!==p?(L=S.length>0?(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(l.default,{accessibilityRole:"button",onPress:A,hitSlop:8,children:(0,D.jsx)(x.Download,{size:20,color:b.foregroundMuted})}),(0,D.jsx)(l.default,{accessibilityRole:"button",onPress:C,hitSlop:8,children:(0,D.jsx)(u.default,{style:{color:b.foregroundMuted,fontSize:14},children:p("v2.settings.logsClear")})})]}):null,n[36]=C,n[37]=b.foregroundMuted,n[38]=S.length,n[39]=A,n[40]=p,n[41]=L):L=n[41],n[42]!==b.foregroundMuted?(B=(0,D.jsx)(x.X,{size:22,color:b.foregroundMuted}),n[42]=b.foregroundMuted,n[43]=B):B=n[43],n[44]!==v||n[45]!==B?(U=(0,D.jsx)(l.default,{accessibilityRole:"button",onPress:v,hitSlop:8,children:B}),n[44]=v,n[45]=B,n[46]=U):U=n[46],n[47]!==L||n[48]!==U?(W=(0,D.jsxs)(h.default,{style:V,children:[L,U]}),n[47]=L,n[48]=U,n[49]=W):W=n[49],n[50]!==N||n[51]!==G||n[52]!==W?(P=(0,D.jsxs)(h.default,{style:N,children:[G,W]}),n[50]=N,n[51]=G,n[52]=W,n[53]=P):P=n[53],M=0===e.length?(0,D.jsxs)(h.default,{style:{flex:1,alignItems:"center",justifyContent:"center",gap:I.SPACING.lg},children:[(0,D.jsx)(x.Clapperboard,{size:28,color:b.foregroundSubtle}),(0,D.jsx)(u.default,{style:{color:b.foregroundSubtle,fontSize:14},children:p("v2.settings.logsEmpty")})]}):(0,D.jsx)(i.default,{contentContainerStyle:{padding:I.SPACING.xl,gap:3},children:e.map(e=>(0,D.jsx)(u.default,{selectable:!0,style:{color:f(e.level),fontSize:11,lineHeight:15,fontFamily:"monospace"},children:(0,T.logEntryToLine)(e)},e.id))}),n[0]=C,n[1]=b.background,n[2]=b.border,n[3]=b.foreground,n[4]=b.foregroundMuted,n[5]=b.foregroundSubtle,n[6]=S,n[7]=v,n[8]=o,n[9]=p,n[10]=y,n[11]=w,n[12]=R,n[13]=P,n[14]=M,n[15]=k,n[16]=H,n[17]=_,n[18]=O}else y=n[10],w=n[11],R=n[12],P=n[13],M=n[14],k=n[15],H=n[16],_=n[17],O=n[18];return n[54]!==y||n[55]!==R||n[56]!==P||n[57]!==M?(A=(0,D.jsxs)(y,{style:R,children:[P,M]}),n[54]=y,n[55]=R,n[56]=P,n[57]=M,n[58]=A):A=n[58],n[59]!==w||n[60]!==k||n[61]!==H||n[62]!==_||n[63]!==O||n[64]!==A?(N=(0,D.jsx)(w,{visible:k,animationType:H,presentationStyle:_,onRequestClose:O,children:A}),n[59]=w,n[60]=k,n[61]=H,n[62]=_,n[63]=O,n[64]=A,n[65]=N):N=n[65],N}function L(e){return e.clear}function B(e){return e.entries}},3419,[15,17,133,245,252,147,238,112,20,786,743,3081,288,813,3144,2594,2587,3050,3173,3417,3174,3409,3176,3420,3421,3177,2705,3425,3140,2589,10]);
15840
+ __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.SettingsScreen=function(){const e=(0,t.c)(365),{t:s}=(0,f.useTranslation)(),l=(0,v.useRouter)(),O=(0,p.useQueryClient)(),{server:L,signOut:B,endpoints:U}=(0,S.useServer)(),{controller:$}=(0,C.useConnection)(),[W,Z]=(0,n.useState)(!1),{colors:F,preference:K,setPreference:q}=(0,j.useTheme)(),{preference:J,setPreference:Q}=(0,I.useLanguage)(),{settings:X,setGridDefault:Y,setStreamDefault:ee,setAdvanced:te,setHighlightAppearance:ne,setCluster:oe,setHaptics:se,resetSettings:le}=(0,_.useSettings)(),[ie,re]=(0,n.useState)(!1);let ae;e[0]!==B?(ae=()=>{B()},e[0]=B,e[1]=ae):ae=e[1];const ce=ae;let ge;e[2]!==$||e[3]!==W?(ge=()=>{W||(Z(!0),$.reprobe().finally(()=>Z(!1)))},e[2]=$,e[3]=W,e[4]=ge):ge=e[4];const de=ge,ue=G;let he,fe,ve,pe,me,be,xe;e[5]!==s?(he=s("v2.settings.themeSystem"),e[5]=s,e[6]=he):he=e[6];e[7]!==he?(fe={value:"system",label:he},e[7]=he,e[8]=fe):fe=e[8];e[9]!==s?(ve=s("v2.settings.themeDark"),e[9]=s,e[10]=ve):ve=e[10];e[11]!==ve?(pe={value:"dark",label:ve},e[11]=ve,e[12]=pe):pe=e[12];e[13]!==s?(me=s("v2.settings.themeLight"),e[13]=s,e[14]=me):me=e[14];e[15]!==me?(be={value:"light",label:me},e[15]=me,e[16]=be):be=e[16];e[17]!==fe||e[18]!==pe||e[19]!==be?(xe=[fe,pe,be],e[17]=fe,e[18]=pe,e[19]=be,e[20]=xe):xe=e[20];const Se=xe;let Ce,je,ye,we,Re;e[21]!==s?(Ce=s("v2.settings.langSystem"),e[21]=s,e[22]=Ce):Ce=e[22];e[23]!==Ce?(je={value:"system",label:Ce},e[23]=Ce,e[24]=je):je=e[24];e[25]===Symbol.for("react.memo_cache_sentinel")?(ye={value:"it",label:"Italiano"},we={value:"en",label:"English"},e[25]=ye,e[26]=we):(ye=e[25],we=e[26]);e[27]!==je?(Re=[je,ye,we],e[27]=je,e[28]=Re):Re=e[28];const Me=Re;let Pe;e[29]===Symbol.for("react.memo_cache_sentinel")?(Pe=[1,2,3,4,6,8].map(z),e[29]=Pe):Pe=e[29];const ke=Pe;let He;e[30]!==s?(He=N.MOTION_HOLD_SECONDS.map(e=>({value:e,label:0===e?s("v2.settings.motionHoldOff"):s("v2.settings.secondsValue",{count:e})})),e[30]=s,e[31]=He):He=e[31];const Ie=He;let Oe;e[32]!==s?(Oe=N.MIN_IMPORTANCE_CHOICES.map(e=>({value:e,label:0===e?s("v2.settings.minImportanceOff"):`\u2265${Math.round(100*e)}%`})),e[32]=s,e[33]=Oe):Oe=e[33];const Te=Oe,Ne=b.default.expoConfig?.version??"\u2014";let Ae;e[34]!==L?.serverUrl||e[35]!==s?(Ae=L?.serverUrl??s("v2.settings.noServer"),e[34]=L?.serverUrl,e[35]=s,e[36]=Ae):Ae=e[36];const De=Ae;let Ee;e[37]!==O||e[38]!==s?(Ee=()=>{o.default.alert(s("v2.settings.clearCacheConfirmTitle"),s("v2.settings.clearCacheConfirmBody"),[{text:s("v2.settings.cancel"),style:"cancel"},{text:s("v2.settings.confirm"),style:"destructive",onPress:()=>{(0,T.clearAppCache)(O).then(()=>{o.default.alert(s("v2.settings.clearCacheDone"))})}}])},e[37]=O,e[38]=s,e[39]=Ee):Ee=e[39];const ze=Ee;let Ge;e[40]!==X?(Ge=()=>{const e=JSON.stringify(X,null,2);c.default.share({message:e}).catch(E)},e[40]=X,e[41]=Ge):Ge=e[41];const Ve=Ge;let Le;e[42]!==le||e[43]!==s?(Le=()=>{o.default.alert(s("v2.settings.resetConfirmTitle"),s("v2.settings.resetConfirmBody"),[{text:s("v2.settings.cancel"),style:"cancel"},{text:s("v2.settings.confirm"),style:"destructive",onPress:le}])},e[42]=le,e[43]=s,e[44]=Le):Le=e[44];const Be=Le;let Ue,$e,We,Ze,Fe,Ke,qe,Je,Qe,Xe,Ye,et,tt,nt,ot,st,lt,it,rt,at,ct,gt,dt,ut,ht,ft,vt,pt,mt,bt,xt,St,Ct,jt,yt,wt,Rt,Mt,Pt,kt,Ht,It,_t,Ot,Tt,Nt,At,Dt,Et,zt,Gt,Vt,Lt,Bt,Ut,$t,Wt,Zt,Ft,Kt,qt,Jt,Qt,Xt,Yt,en,tn,nn,on,sn,ln,rn,an,cn,gn,dn,un,hn,fn,vn,pn,mn,bn,xn,Sn,Cn,jn,yn,wn,Rn,Mn,Pn,kn,Hn,In,_n,On,Tn,Nn,An,Dn,En,zn,Gn,Vn,Ln,Bn,Un,$n,Wn,Zn,Fn,Kn,qn,Jn;e[45]!==F.background?(Ue={flex:1,backgroundColor:F.background},e[45]=F.background,e[46]=Ue):Ue=e[46];e[47]===Symbol.for("react.memo_cache_sentinel")?($e=(0,D.jsx)(y.ScreenHeader,{bordered:!0}),e[47]=$e):$e=e[47];e[48]===Symbol.for("react.memo_cache_sentinel")?(We={padding:A.SPACING.xl,paddingBottom:A.SPACING["3xl"],gap:A.SPACING["2xl"]},e[48]=We):We=e[48];e[49]!==s?(Ze=s("v2.settings.server"),e[49]=s,e[50]=Ze):Ze=e[50];e[51]!==s?(Fe=s("v2.settings.hubActive"),e[51]=s,e[52]=Fe):Fe=e[52];e[53]!==De||e[54]!==Fe?(Ke=(0,D.jsx)(R.Row,{icon:x.Server,label:Fe,value:De}),e[53]=De,e[54]=Fe,e[55]=Ke):Ke=e[55];e[56]!==s?(qe=s("v2.settings.changeServer"),e[56]=s,e[57]=qe):qe=e[57];e[58]!==ce||e[59]!==qe?(Je=(0,D.jsx)(R.Row,{icon:x.RefreshCcw,label:qe,onPress:ce}),e[58]=ce,e[59]=qe,e[60]=Je):Je=e[60];e[61]!==s?(Qe=s("v2.settings.signOut"),e[61]=s,e[62]=Qe):Qe=e[62];e[63]!==ce||e[64]!==Qe?(Xe=(0,D.jsx)(R.Row,{icon:x.LogOut,label:Qe,danger:!0,onPress:ce,last:!0}),e[63]=ce,e[64]=Qe,e[65]=Xe):Xe=e[65];e[66]!==Ze||e[67]!==Ke||e[68]!==Je||e[69]!==Xe?(Ye=(0,D.jsxs)(w.Section,{title:Ze,children:[Ke,Je,Xe]}),e[66]=Ze,e[67]=Ke,e[68]=Je,e[69]=Xe,e[70]=Ye):Ye=e[70];e[71]!==s?(et=s("v2.settings.network"),e[71]=s,e[72]=et):et=e[72];e[73]!==U||e[74]!==s?(tt=0===U.length?(0,D.jsx)(R.Row,{icon:x.Network,label:s("v2.settings.networkNone")}):U.map((e,t)=>(0,D.jsx)(R.Row,{icon:ue(e),label:e.label,value:e.plausible?e.baseUrl:s("v2.settings.endpointUnlikely")},`${e.baseUrl}-${t}`)),e[73]=U,e[74]=s,e[75]=tt):tt=e[75];e[76]!==W||e[77]!==s?(nt=s(W?"v2.settings.reprobing":"v2.settings.reprobe"),e[76]=W,e[77]=s,e[78]=nt):nt=e[78];e[79]!==de||e[80]!==nt?(ot=(0,D.jsx)(R.Row,{icon:x.RefreshCcw,label:nt,onPress:de,last:!0}),e[79]=de,e[80]=nt,e[81]=ot):ot=e[81];e[82]!==et||e[83]!==tt||e[84]!==ot?(st=(0,D.jsxs)(w.Section,{title:et,children:[tt,ot]}),e[82]=et,e[83]=tt,e[84]=ot,e[85]=st):st=e[85];e[86]!==s?(lt=s("v2.settings.cameras"),e[86]=s,e[87]=lt):lt=e[87];e[88]!==s?(it=s("v2.settings.manageCameras"),e[88]=s,e[89]=it):it=e[89];e[90]!==s?(rt=s("v2.settings.manageCamerasHint"),e[90]=s,e[91]=rt):rt=e[91];e[92]!==l?(at=()=>l.push("/settings/cameras"),e[92]=l,e[93]=at):at=e[93];e[94]!==it||e[95]!==rt||e[96]!==at?(ct=(0,D.jsx)(R.Row,{icon:x.Video,label:it,value:rt,onPress:at}),e[94]=it,e[95]=rt,e[96]=at,e[97]=ct):ct=e[97];e[98]!==s?(gt=s("v2.exports.title"),e[98]=s,e[99]=gt):gt=e[99];e[100]!==s?(dt=s("v2.exports.settingsHint"),e[100]=s,e[101]=dt):dt=e[101];e[102]!==l?(ut=()=>l.push("/exports"),e[102]=l,e[103]=ut):ut=e[103];e[104]!==gt||e[105]!==dt||e[106]!==ut?(ht=(0,D.jsx)(R.Row,{icon:x.Download,label:gt,value:dt,onPress:ut,last:!0}),e[104]=gt,e[105]=dt,e[106]=ut,e[107]=ht):ht=e[107];e[108]!==lt||e[109]!==ct||e[110]!==ht?(ft=(0,D.jsxs)(w.Section,{title:lt,children:[ct,ht]}),e[108]=lt,e[109]=ct,e[110]=ht,e[111]=ft):ft=e[111];e[112]!==s?(vt=s("v2.settings.events"),e[112]=s,e[113]=vt):vt=e[113];e[114]!==s?(pt=s("v2.settings.minImportance"),e[114]=s,e[115]=pt):pt=e[115];e[116]!==oe?(mt=e=>oe("minImportance",e),e[116]=oe,e[117]=mt):mt=e[117];e[118]!==Te||e[119]!==X.clusters.minImportance||e[120]!==pt||e[121]!==mt?(bt=(0,D.jsx)(P.SelectRow,{icon:x.Star,label:pt,options:Te,value:X.clusters.minImportance,onChange:mt,last:!0}),e[118]=Te,e[119]=X.clusters.minImportance,e[120]=pt,e[121]=mt,e[122]=bt):bt=e[122];e[123]!==vt||e[124]!==bt?(xt=(0,D.jsx)(w.Section,{title:vt,children:bt}),e[123]=vt,e[124]=bt,e[125]=xt):xt=e[125];e[126]!==s?(St=s("v2.settings.gridDefaults"),e[126]=s,e[127]=St):St=e[127];e[128]!==s?(Ct=s("v2.settings.motionHold"),e[128]=s,e[129]=Ct):Ct=e[129];e[130]!==Y?(jt=e=>Y("motionHoldSec",e),e[130]=Y,e[131]=jt):jt=e[131];e[132]!==Ie||e[133]!==X.grid.motionHoldSec||e[134]!==Ct||e[135]!==jt?(yt=(0,D.jsx)(P.SelectRow,{icon:x.Zap,label:Ct,options:Ie,value:X.grid.motionHoldSec,onChange:jt,last:!0}),e[132]=Ie,e[133]=X.grid.motionHoldSec,e[134]=Ct,e[135]=jt,e[136]=yt):yt=e[136];e[137]!==St||e[138]!==yt?(wt=(0,D.jsx)(w.Section,{title:St,children:yt}),e[137]=St,e[138]=yt,e[139]=wt):wt=e[139];e[140]!==s?(Rt=s("v2.settings.highlightAppearance"),e[140]=s,e[141]=Rt):Rt=e[141];e[142]!==s?(Mt=s("v2.settings.highlightMotionColor"),e[142]=s,e[143]=Mt):Mt=e[143];e[144]!==ne?(Pt=e=>ne("motionColor",e),e[144]=ne,e[145]=Pt):Pt=e[145];e[146]!==X.highlight.motionColor||e[147]!==Mt||e[148]!==Pt?(kt=(0,D.jsx)(H.ColorPickerRow,{icon:x.Zap,label:Mt,value:X.highlight.motionColor,onChange:Pt}),e[146]=X.highlight.motionColor,e[147]=Mt,e[148]=Pt,e[149]=kt):kt=e[149];e[150]!==s?(Ht=s("v2.settings.highlightAudioColor"),e[150]=s,e[151]=Ht):Ht=e[151];e[152]!==ne?(It=e=>ne("audioColor",e),e[152]=ne,e[153]=It):It=e[153];e[154]!==X.highlight.audioColor||e[155]!==Ht||e[156]!==It?(_t=(0,D.jsx)(H.ColorPickerRow,{icon:x.Volume2,label:Ht,value:X.highlight.audioColor,onChange:It}),e[154]=X.highlight.audioColor,e[155]=Ht,e[156]=It,e[157]=_t):_t=e[157];e[158]!==s?(Ot=s("v2.settings.highlightDetectionColor"),e[158]=s,e[159]=Ot):Ot=e[159];e[160]!==ne?(Tt=e=>ne("detectionColor",e),e[160]=ne,e[161]=Tt):Tt=e[161];e[162]!==X.highlight.detectionColor||e[163]!==Ot||e[164]!==Tt?(Nt=(0,D.jsx)(H.ColorPickerRow,{icon:x.Box,label:Ot,value:X.highlight.detectionColor,onChange:Tt}),e[162]=X.highlight.detectionColor,e[163]=Ot,e[164]=Tt,e[165]=Nt):Nt=e[165];e[166]!==s?(At=s("v2.settings.highlightThickness"),e[166]=s,e[167]=At):At=e[167];e[168]!==ne?(Dt=e=>ne("thickness",e),e[168]=ne,e[169]=Dt):Dt=e[169];e[170]!==X.highlight.thickness||e[171]!==At||e[172]!==Dt?(Et=(0,D.jsx)(P.SelectRow,{icon:x.Maximize2,label:At,options:ke,value:X.highlight.thickness,onChange:Dt,last:!0}),e[170]=X.highlight.thickness,e[171]=At,e[172]=Dt,e[173]=Et):Et=e[173];e[174]!==Rt||e[175]!==kt||e[176]!==_t||e[177]!==Nt||e[178]!==Et?(zt=(0,D.jsxs)(w.Section,{title:Rt,children:[kt,_t,Nt,Et]}),e[174]=Rt,e[175]=kt,e[176]=_t,e[177]=Nt,e[178]=Et,e[179]=zt):zt=e[179];e[180]!==s?(Gt=s("v2.settings.haptics"),e[180]=s,e[181]=Gt):Gt=e[181];e[182]!==s?(Vt=s("v2.settings.hapticsEnabled"),e[182]=s,e[183]=Vt):Vt=e[183];e[184]!==s?(Lt=s("v2.settings.hapticsEnabledHint"),e[184]=s,e[185]=Lt):Lt=e[185];e[186]!==se?(Bt=e=>se("enabled",e),e[186]=se,e[187]=Bt):Bt=e[187];e[188]!==X.haptics.enabled||e[189]!==Vt||e[190]!==Lt||e[191]!==Bt?(Ut=(0,D.jsx)(M.ToggleRow,{icon:x.Vibrate,label:Vt,description:Lt,value:X.haptics.enabled,onValueChange:Bt}),e[188]=X.haptics.enabled,e[189]=Vt,e[190]=Lt,e[191]=Bt,e[192]=Ut):Ut=e[192];e[193]!==s?($t=s("v2.settings.hapticsMotion"),e[193]=s,e[194]=$t):$t=e[194];e[195]!==se?(Wt=e=>se("motion",e),e[195]=se,e[196]=Wt):Wt=e[196];e[197]!==X.haptics.motion||e[198]!==$t||e[199]!==Wt?(Zt=(0,D.jsx)(M.ToggleRow,{icon:x.Zap,label:$t,value:X.haptics.motion,onValueChange:Wt}),e[197]=X.haptics.motion,e[198]=$t,e[199]=Wt,e[200]=Zt):Zt=e[200];e[201]!==s?(Ft=s("v2.settings.hapticsDetection"),e[201]=s,e[202]=Ft):Ft=e[202];e[203]!==se?(Kt=e=>se("detection",e),e[203]=se,e[204]=Kt):Kt=e[204];e[205]!==X.haptics.detection||e[206]!==Ft||e[207]!==Kt?(qt=(0,D.jsx)(M.ToggleRow,{icon:x.Box,label:Ft,value:X.haptics.detection,onValueChange:Kt}),e[205]=X.haptics.detection,e[206]=Ft,e[207]=Kt,e[208]=qt):qt=e[208];e[209]!==s?(Jt=s("v2.settings.hapticsPerson"),e[209]=s,e[210]=Jt):Jt=e[210];e[211]!==se?(Qt=e=>se("person",e),e[211]=se,e[212]=Qt):Qt=e[212];e[213]!==X.haptics.person||e[214]!==Jt||e[215]!==Qt?(Xt=(0,D.jsx)(M.ToggleRow,{icon:x.User,label:Jt,value:X.haptics.person,onValueChange:Qt,last:!0}),e[213]=X.haptics.person,e[214]=Jt,e[215]=Qt,e[216]=Xt):Xt=e[216];e[217]!==Gt||e[218]!==Ut||e[219]!==Zt||e[220]!==qt||e[221]!==Xt?(Yt=(0,D.jsxs)(w.Section,{title:Gt,children:[Ut,Zt,qt,Xt]}),e[217]=Gt,e[218]=Ut,e[219]=Zt,e[220]=qt,e[221]=Xt,e[222]=Yt):Yt=e[222];e[223]!==s?(en=s("v2.settings.streamDefaults"),e[223]=s,e[224]=en):en=e[224];e[225]!==s?(tn=s("v2.settings.audioOnOpen"),e[225]=s,e[226]=tn):tn=e[226];e[227]!==s?(nn=s("v2.settings.audioOnOpenHint"),e[227]=s,e[228]=nn):nn=e[228];e[229]!==ee?(on=e=>ee("audioOnOpen",e),e[229]=ee,e[230]=on):on=e[230];e[231]!==X.stream.audioOnOpen||e[232]!==tn||e[233]!==nn||e[234]!==on?(sn=(0,D.jsx)(M.ToggleRow,{icon:x.Volume2,label:tn,description:nn,value:X.stream.audioOnOpen,onValueChange:on}),e[231]=X.stream.audioOnOpen,e[232]=tn,e[233]=nn,e[234]=on,e[235]=sn):sn=e[235];e[236]!==s?(ln=s("v2.settings.pinchExpandsHeight"),e[236]=s,e[237]=ln):ln=e[237];e[238]!==s?(rn=s("v2.settings.pinchExpandsHeightHint"),e[238]=s,e[239]=rn):rn=e[239];e[240]!==ee?(an=e=>ee("pinchExpandsHeight",e),e[240]=ee,e[241]=an):an=e[241];e[242]!==X.stream.pinchExpandsHeight||e[243]!==ln||e[244]!==rn||e[245]!==an?(cn=(0,D.jsx)(M.ToggleRow,{icon:x.Maximize2,label:ln,description:rn,value:X.stream.pinchExpandsHeight,onValueChange:an,last:!0}),e[242]=X.stream.pinchExpandsHeight,e[243]=ln,e[244]=rn,e[245]=an,e[246]=cn):cn=e[246];e[247]!==en||e[248]!==sn||e[249]!==cn?(gn=(0,D.jsxs)(w.Section,{title:en,children:[sn,cn]}),e[247]=en,e[248]=sn,e[249]=cn,e[250]=gn):gn=e[250];e[251]!==s?(dn=s("v2.settings.appearance"),e[251]=s,e[252]=dn):dn=e[252];e[253]===Symbol.for("react.memo_cache_sentinel")?(un={padding:A.SPACING.xl,gap:A.SPACING.md},e[253]=un):un=e[253];e[254]!==F.foregroundMuted?(hn={color:F.foregroundMuted,fontSize:13},e[254]=F.foregroundMuted,e[255]=hn):hn=e[255];e[256]!==s?(fn=s("v2.settings.theme"),e[256]=s,e[257]=fn):fn=e[257];e[258]!==hn||e[259]!==fn?(vn=(0,D.jsx)(u.default,{style:hn,children:fn}),e[258]=hn,e[259]=fn,e[260]=vn):vn=e[260];e[261]!==K||e[262]!==q||e[263]!==Se?(pn=(0,D.jsx)(k.SegmentedControl,{options:Se,value:K,onChange:q}),e[261]=K,e[262]=q,e[263]=Se,e[264]=pn):pn=e[264];e[265]!==F.foregroundMuted?(mn={color:F.foregroundMuted,fontSize:13,marginTop:A.SPACING.md},e[265]=F.foregroundMuted,e[266]=mn):mn=e[266];e[267]!==s?(bn=s("v2.settings.language"),e[267]=s,e[268]=bn):bn=e[268];e[269]!==mn||e[270]!==bn?(xn=(0,D.jsx)(u.default,{style:mn,children:bn}),e[269]=mn,e[270]=bn,e[271]=xn):xn=e[271];e[272]!==J||e[273]!==Me||e[274]!==Q?(Sn=(0,D.jsx)(k.SegmentedControl,{options:Me,value:J,onChange:Q}),e[272]=J,e[273]=Me,e[274]=Q,e[275]=Sn):Sn=e[275];e[276]!==vn||e[277]!==pn||e[278]!==xn||e[279]!==Sn?(Cn=(0,D.jsxs)(h.default,{style:un,children:[vn,pn,xn,Sn]}),e[276]=vn,e[277]=pn,e[278]=xn,e[279]=Sn,e[280]=Cn):Cn=e[280];e[281]!==Cn||e[282]!==dn?(jn=(0,D.jsx)(w.Section,{title:dn,children:Cn}),e[281]=Cn,e[282]=dn,e[283]=jn):jn=e[283];e[284]!==s?(yn=s("v2.settings.advanced"),e[284]=s,e[285]=yn):yn=e[285];e[286]!==s?(wn=s("v2.settings.debugMode"),e[286]=s,e[287]=wn):wn=e[287];e[288]!==s?(Rn=s("v2.settings.debugModeHint"),e[288]=s,e[289]=Rn):Rn=e[289];e[290]!==te?(Mn=e=>te("debugMode",e),e[290]=te,e[291]=Mn):Mn=e[291];e[292]!==X.advanced.debugMode||e[293]!==wn||e[294]!==Rn||e[295]!==Mn?(Pn=(0,D.jsx)(M.ToggleRow,{icon:x.Bug,label:wn,description:Rn,value:X.advanced.debugMode,onValueChange:Mn}),e[292]=X.advanced.debugMode,e[293]=wn,e[294]=Rn,e[295]=Mn,e[296]=Pn):Pn=e[296];e[297]!==s?(kn=s("v2.settings.viewLogs"),e[297]=s,e[298]=kn):kn=e[298];e[299]===Symbol.for("react.memo_cache_sentinel")?(Hn=()=>re(!0),e[299]=Hn):Hn=e[299];e[300]!==kn?(In=(0,D.jsx)(R.Row,{icon:x.ScrollText,label:kn,onPress:Hn}),e[300]=kn,e[301]=In):In=e[301];e[302]!==s?(_n=s("v2.settings.exportSettings"),e[302]=s,e[303]=_n):_n=e[303];e[304]!==Ve||e[305]!==_n?(On=(0,D.jsx)(R.Row,{icon:x.Download,label:_n,onPress:Ve}),e[304]=Ve,e[305]=_n,e[306]=On):On=e[306];e[307]!==s?(Tn=s("v2.settings.clearCache"),e[307]=s,e[308]=Tn):Tn=e[308];e[309]!==ze||e[310]!==Tn?(Nn=(0,D.jsx)(R.Row,{icon:x.Trash2,label:Tn,onPress:ze}),e[309]=ze,e[310]=Tn,e[311]=Nn):Nn=e[311];e[312]!==s?(An=s("v2.settings.resetSettings"),e[312]=s,e[313]=An):An=e[313];e[314]!==Be||e[315]!==An?(Dn=(0,D.jsx)(R.Row,{icon:x.RotateCcw,label:An,danger:!0,onPress:Be,last:!0}),e[314]=Be,e[315]=An,e[316]=Dn):Dn=e[316];e[317]!==yn||e[318]!==Pn||e[319]!==In||e[320]!==On||e[321]!==Nn||e[322]!==Dn?(En=(0,D.jsxs)(w.Section,{title:yn,children:[Pn,In,On,Nn,Dn]}),e[317]=yn,e[318]=Pn,e[319]=In,e[320]=On,e[321]=Nn,e[322]=Dn,e[323]=En):En=e[323];e[324]!==s?(zn=s("v2.settings.info"),e[324]=s,e[325]=zn):zn=e[325];e[326]!==s?(Gn=s("v2.settings.app"),e[326]=s,e[327]=Gn):Gn=e[327];e[328]!==Gn?(Vn=(0,D.jsx)(R.Row,{icon:x.Info,label:Gn,value:"CamStack Viewer"}),e[328]=Gn,e[329]=Vn):Vn=e[329];e[330]!==s?(Ln=s("v2.settings.version"),e[330]=s,e[331]=Ln):Ln=e[331];e[332]!==Ln?(Bn=(0,D.jsx)(R.Row,{label:Ln,value:Ne,last:!0}),e[332]=Ln,e[333]=Bn):Bn=e[333];e[334]!==zn||e[335]!==Vn||e[336]!==Bn?(Un=(0,D.jsxs)(w.Section,{title:zn,children:[Vn,Bn]}),e[334]=zn,e[335]=Vn,e[336]=Bn,e[337]=Un):Un=e[337];e[338]!==F.foregroundSubtle?($n={color:F.foregroundSubtle,fontSize:12,textAlign:"center",lineHeight:17,paddingHorizontal:A.SPACING.lg},e[338]=F.foregroundSubtle,e[339]=$n):$n=e[339];e[340]!==s?(Wn=s("v2.settings.footerNote"),e[340]=s,e[341]=Wn):Wn=e[341];e[342]!==$n||e[343]!==Wn?(Zn=(0,D.jsx)(u.default,{style:$n,children:Wn}),e[342]=$n,e[343]=Wn,e[344]=Zn):Zn=e[344];e[345]!==jn||e[346]!==En||e[347]!==Un||e[348]!==Zn||e[349]!==Ye||e[350]!==st||e[351]!==ft||e[352]!==xt||e[353]!==wt||e[354]!==zt||e[355]!==Yt||e[356]!==gn?(Fn=(0,D.jsxs)(i.default,{contentContainerStyle:We,children:[Ye,st,ft,xt,wt,zt,Yt,gn,jn,En,Un,Zn]}),e[345]=jn,e[346]=En,e[347]=Un,e[348]=Zn,e[349]=Ye,e[350]=st,e[351]=ft,e[352]=xt,e[353]=wt,e[354]=zt,e[355]=Yt,e[356]=gn,e[357]=Fn):Fn=e[357];e[358]===Symbol.for("react.memo_cache_sentinel")?(Kn=()=>re(!1),e[358]=Kn):Kn=e[358];e[359]!==ie?(qn=(0,D.jsx)(V,{open:ie,onClose:Kn}),e[359]=ie,e[360]=qn):qn=e[360];e[361]!==Fn||e[362]!==qn||e[363]!==Ue?(Jn=(0,D.jsxs)(h.default,{style:Ue,children:[$e,Fn,qn]}),e[361]=Fn,e[362]=qn,e[363]=Ue,e[364]=Jn):Jn=e[364];return Jn};var t=r(d[0]),n=r(d[1]),o=e(r(d[2])),s=e(r(d[3])),l=e(r(d[4])),i=e(r(d[5])),c=e(r(d[6])),u=e(r(d[7])),h=e(r(d[8])),f=r(d[9]),v=r(d[10]),p=r(d[11]),b=e(r(d[12])),x=r(d[13]),S=r(d[14]),C=r(d[15]),j=r(d[16]),y=r(d[17]),w=r(d[18]),R=r(d[19]),M=r(d[20]),P=r(d[21]),k=r(d[22]),H=r(d[23]),I=r(d[24]),_=r(d[25]),O=r(d[26]),T=r(d[27]),N=r(d[28]),A=r(d[29]),D=r(d[30]);function E(e){console.error("[settings] export share failed",e)}function z(e){return{value:e,label:`${e}px`}}function G(e){return"public"===e.kind?x.Globe:"wifi"===e.interfaceKind||"lan"===e.interfaceKind?x.Wifi:x.Network}function V(e){const n=(0,t.c)(66),{open:o,onClose:v}=e,{t:p}=(0,f.useTranslation)(),{colors:b}=(0,j.useTheme)(),S=(0,O.useLogStore)(B),C=(0,O.useLogStore)(L);let y,w,R,M,P,k,H,I,_,T,N;if(n[0]!==C||n[1]!==b.background||n[2]!==b.border||n[3]!==b.foreground||n[4]!==b.foregroundMuted||n[5]!==b.foregroundSubtle||n[6]!==S||n[7]!==v||n[8]!==o||n[9]!==p){const e=S.slice(-500).reverse();let t;n[19]!==b.foregroundMuted||n[20]!==b.foregroundSubtle?(t=e=>"error"===e?"#f87171":"warn"===e?"#fbbf24":"info"===e?b.foregroundMuted:b.foregroundSubtle,n[19]=b.foregroundMuted,n[20]=b.foregroundSubtle,n[21]=t):t=n[21];const f=t;let j;n[22]!==S?(j=()=>{c.default.share({message:S.map(O.logEntryToLine).join("\n")})},n[22]=S,n[23]=j):j=n[23];const T=j;let N,E,z,G,V,L,B,U,$;w=s.default,k=o,H="slide",I="pageSheet",_=v,y=h.default,n[24]!==b.background?(R={flex:1,backgroundColor:b.background},n[24]=b.background,n[25]=R):R=n[25],n[26]!==b.border?(N={flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:A.SPACING.xl,borderBottomWidth:1,borderBottomColor:b.border},n[26]=b.border,n[27]=N):N=n[27],n[28]!==b.foreground?(E={color:b.foreground,fontSize:17,fontWeight:"700"},n[28]=b.foreground,n[29]=E):E=n[29],n[30]!==p?(z=p("v2.settings.viewLogs"),n[30]=p,n[31]=z):z=n[31],n[32]!==E||n[33]!==z?(G=(0,D.jsx)(u.default,{style:E,children:z}),n[32]=E,n[33]=z,n[34]=G):G=n[34],n[35]===Symbol.for("react.memo_cache_sentinel")?(V={flexDirection:"row",alignItems:"center",gap:A.SPACING.xl},n[35]=V):V=n[35],n[36]!==C||n[37]!==b.foregroundMuted||n[38]!==S.length||n[39]!==T||n[40]!==p?(L=S.length>0?(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(l.default,{accessibilityRole:"button",onPress:T,hitSlop:8,children:(0,D.jsx)(x.Download,{size:20,color:b.foregroundMuted})}),(0,D.jsx)(l.default,{accessibilityRole:"button",onPress:C,hitSlop:8,children:(0,D.jsx)(u.default,{style:{color:b.foregroundMuted,fontSize:14},children:p("v2.settings.logsClear")})})]}):null,n[36]=C,n[37]=b.foregroundMuted,n[38]=S.length,n[39]=T,n[40]=p,n[41]=L):L=n[41],n[42]!==b.foregroundMuted?(B=(0,D.jsx)(x.X,{size:22,color:b.foregroundMuted}),n[42]=b.foregroundMuted,n[43]=B):B=n[43],n[44]!==v||n[45]!==B?(U=(0,D.jsx)(l.default,{accessibilityRole:"button",onPress:v,hitSlop:8,children:B}),n[44]=v,n[45]=B,n[46]=U):U=n[46],n[47]!==L||n[48]!==U?($=(0,D.jsxs)(h.default,{style:V,children:[L,U]}),n[47]=L,n[48]=U,n[49]=$):$=n[49],n[50]!==N||n[51]!==G||n[52]!==$?(M=(0,D.jsxs)(h.default,{style:N,children:[G,$]}),n[50]=N,n[51]=G,n[52]=$,n[53]=M):M=n[53],P=0===e.length?(0,D.jsxs)(h.default,{style:{flex:1,alignItems:"center",justifyContent:"center",gap:A.SPACING.lg},children:[(0,D.jsx)(x.Clapperboard,{size:28,color:b.foregroundSubtle}),(0,D.jsx)(u.default,{style:{color:b.foregroundSubtle,fontSize:14},children:p("v2.settings.logsEmpty")})]}):(0,D.jsx)(i.default,{contentContainerStyle:{padding:A.SPACING.xl,gap:3},children:e.map(e=>(0,D.jsx)(u.default,{selectable:!0,style:{color:f(e.level),fontSize:11,lineHeight:15,fontFamily:"monospace"},children:(0,O.logEntryToLine)(e)},e.id))}),n[0]=C,n[1]=b.background,n[2]=b.border,n[3]=b.foreground,n[4]=b.foregroundMuted,n[5]=b.foregroundSubtle,n[6]=S,n[7]=v,n[8]=o,n[9]=p,n[10]=y,n[11]=w,n[12]=R,n[13]=M,n[14]=P,n[15]=k,n[16]=H,n[17]=I,n[18]=_}else y=n[10],w=n[11],R=n[12],M=n[13],P=n[14],k=n[15],H=n[16],I=n[17],_=n[18];return n[54]!==y||n[55]!==R||n[56]!==M||n[57]!==P?(T=(0,D.jsxs)(y,{style:R,children:[M,P]}),n[54]=y,n[55]=R,n[56]=M,n[57]=P,n[58]=T):T=n[58],n[59]!==w||n[60]!==k||n[61]!==H||n[62]!==I||n[63]!==_||n[64]!==T?(N=(0,D.jsx)(w,{visible:k,animationType:H,presentationStyle:I,onRequestClose:_,children:T}),n[59]=w,n[60]=k,n[61]=H,n[62]=I,n[63]=_,n[64]=T,n[65]=N):N=n[65],N}function L(e){return e.clear}function B(e){return e.entries}},3419,[15,17,133,245,252,147,238,112,20,786,743,3081,288,813,3144,2594,2587,3050,3173,3417,3174,3409,3176,3420,3421,3177,2705,3425,3140,2589,10]);
15841
15841
  __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}})},3420,[15,17,20,112,252,33,813,2587,2589,10]);
15842
15842
  __d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"LANGUAGE_KEY",{enumerable:!0,get:function(){return f}}),_e.resolveLanguage=_,_e.useLanguage=function(){const e=(0,t.c)(7),{i18n:c}=(0,u.useTranslation)(),[s,l]=(0,n.useState)("system");let d,y,b;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{o.default.getItem(f).then(e=>{"system"!==e&&"it"!==e&&"en"!==e||l(e)})},y=[],e[0]=d,e[1]=y):(d=e[0],y=e[1]);(0,n.useEffect)(d,y),e[2]!==c?(b=e=>{l(e),o.default.setItem(f,e),c.changeLanguage(_(e))},e[2]=c,e[3]=b):b=e[3];const p=b;let v;e[4]!==s||e[5]!==p?(v={preference:s,setPreference:p},e[4]=s,e[5]=p,e[6]=v):v=e[6];return v};var e,t=r(_d[0]),n=r(_d[1]),u=r(_d[2]),c=(function(e){if(e&&e.__esModule)return e;var t={};return 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,t})(r(_d[3])),s=r(_d[4]),o=(e=s)&&e.__esModule?e:{default:e};const f='v2.language',l=['it','en'];function d(){const e=c.getLocales()[0]?.languageCode?.slice(0,2)??'en';return l.includes(e)?e:'en'}function _(e){return'system'===e?d():e}},3421,[15,17,786,3422,3133]);
15843
15843
  __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"getLocales",{enumerable:!0,get:function(){return c}}),Object.defineProperty(_e,"getCalendars",{enumerable:!0,get:function(){return s}}),_e.useLocales=function(){const[e,u]=(0,t.useReducer)(e=>e+1,0),o=(0,t.useMemo)(()=>c(),[e]);return(0,t.useEffect)(()=>{const e=(0,n.addLocaleListener)(u);return()=>{(0,n.removeSubscription)(e)}},[]),o},_e.useCalendars=function(){const[e,u]=(0,t.useReducer)(e=>e+1,0),o=(0,t.useMemo)(()=>s(),[e]);return(0,t.useEffect)(()=>{const e=(0,n.addCalendarListener)(u);return()=>{(0,n.removeSubscription)(e)}},[]),o};var e,t=r(d[0]),n=r(d[1]),u=(e=n)&&e.__esModule?e:{default:e},o=r(d[2]);Object.keys(o).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return o[e]}})});const c=u.default.getLocales,s=u.default.getCalendars},3422,[17,3423,3424]);
@@ -15846,7 +15846,7 @@ __d(function(g,r,i,a,m,e,d){"use strict";var A,I;Object.defineProperty(e,'__esMo
15846
15846
  __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/']},3425,[3133,3053]);
15847
15847
  __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]);r(d[1]);var t=r(d[2]),o=r(d[3]),c=r(d[4]),s=r(d[5]);function l(){const l=(0,n.c)(13),{server:u,token:f,initialCandidates:v,onEndpointsDiscovered:h,clearToken:_,persistToken:k}=(0,o.useServer)(),p=u?.serverUrl;let b;l[0]!==v||l[1]!==h||l[2]!==p||l[3]!==f?(b=p?{serverUrl:p,token:f??void 0,candidates:v.length>0?[...v]:[p],onEndpointsDiscovered:h}:null,l[0]=v,l[1]=h,l[2]=p,l[3]=f,l[4]=b):b=l[4];const j=b;if(!u||!f||!j){let n;return l[5]===Symbol.for("react.memo_cache_sentinel")?(n=(0,s.jsx)(t.Redirect,{href:"/"}),l[5]=n):n=l[5],n}let S,y,x;return l[6]!==_?(S=()=>{_()},l[6]=_,l[7]=S):S=l[7],l[8]===Symbol.for("react.memo_cache_sentinel")?(y=(0,s.jsx)(t.Stack,{screenOptions:{headerShown:!1}}),l[8]=y):y=l[8],l[9]!==j||l[10]!==k||l[11]!==S?(x=(0,s.jsx)(c.ConnectionProvider,{config:j,onUnauthorized:S,onTokenRefreshed:k,children:y}),l[9]=j,l[10]=k,l[11]=S,l[12]=x):x=l[12],x}},3426,[15,17,743,3144,2594,10]);
15848
15848
  __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 t=r(d[0]),n=r(d[1]),u=r(d[2]),c=r(d[3]);function l(){const l=(0,t.c)(5),{id:o,at:s}=(0,n.useLocalSearchParams)(),b=Number(o),f=void 0!==s?Number(s):Number.NaN;if(!Number.isFinite(b))return null;let N,v;return l[0]!==f?(N=Number.isFinite(f)&&f>0?f:void 0,l[0]=f,l[1]=N):N=l[1],l[2]!==b||l[3]!==N?(v=(0,c.jsx)(u.CameraDetailScreen,{deviceId:b,initialSeekMs:N},b),l[2]=b,l[3]=N,l[4]=v):v=l[4],v}},3427,[15,743,3428,10]);
15849
- __d(function(g,r,i,a,_m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}function t(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(o){var n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:function(){return e[o]}})}),t.default=e,t}Object.defineProperty(_e,'__esModule',{value:!0}),_e.CameraDetailScreen=function({deviceId:e,initialSeekMs:t}){const{t:o}=(0,h.useTranslation)(),T=(0,_.useRouter)(),{colors:X,mode:We}=(0,O.useTheme)(),Be=(0,m.useSafeAreaInsets)(),{width:Ae,height:Pe}=(0,d.default)(),{controller:Le}=(0,ae.useConnection)(),{name:Re,features:Me,online:ze,disabled:Fe}=ke(e),{settings:Ge,hydrated:Je}=(0,oe.useSettings)(),Ve=Me.includes(ee.FEATURE.ptz),Ke=Me.includes(ee.FEATURE.twoWayAudio),qe=Me.includes(ee.FEATURE.doorbell),Ye=(0,ge.useCameraPrefsStore)(t=>t.prefs.byId[e]?.quality),Ne=(0,ge.useCameraPrefsStore)(e=>e.setCameraQuality),[Ze,$e]=(0,n.useState)(Ye??'auto'),Qe=(0,n.useRef)(!1);(0,n.useEffect)(()=>{Ye&&!Qe.current&&(Qe.current=!0,$e(Ye))},[Ye]);const Ue=(0,n.useMemo)(()=>(0,fe.qualityToTarget)(Ze),[Ze]),Xe=(0,n.useCallback)(t=>{$e(t),Ne(e,t)},[e,Ne]),[et,tt]=(0,n.useState)(null),at=(0,n.useCallback)(e=>tt(t=>t===e?null:e),[]),ot=(0,n.useCallback)(()=>tt(null),[]),nt='quality'===et,it=(0,n.useCallback)(()=>at('quality'),[at]),lt=ot,st=(0,ne.useMotionHighlight)(e,!0);(0,ce.useEventHaptics)([e],!0);const rt=(0,ge.useCameraPrefsStore)(t=>t.prefs.byId[e]?.highlight),ut=(0,n.useMemo)(()=>(0,me.withHighlightDefaults)(rt),[rt]),ct=(0,ge.useCameraPrefsStore)(e=>e.setCameraHighlight),dt=(0,ge.useCameraPrefsStore)(e=>e.hydrate);(0,n.useEffect)(()=>{dt()},[dt]);const ht=(0,ue.useDetections)(e,ut.detection&&!0),gt=ut.detection&&ht.boxes.some(e=>0===ut.detectionClasses.length||ut.detectionClasses.includes(e.label)),_t=(0,he.useHeld)(gt,1e3*ut.detectionHoldSec),mt=(0,de.useAudioActive)(e,ut.audio,ut.audioDb),ft=(0,he.useHeld)('off'!==ut.audio&&mt,1e3*ut.audioHoldSec),pt=_t?'detection':ft?'audio':ut.motion&&st?'motion':null,vt=(0,n.useMemo)(()=>Object.assign({enabled:!0},ut,{appearance:Ge.highlight,motionHoldSec:Ge.grid.motionHoldSec}),[ut,Ge.highlight,Ge.grid.motionHoldSec]),[St,Ct]=(0,n.useState)(!1),bt=(0,n.useCallback)(()=>Ct(e=>!e),[]),[xt,kt]=(0,n.useState)(1),[Et,Ot]=(0,n.useState)(!1),Tt=(0,n.useRef)(null),[Ht,yt]=(0,n.useState)(0),wt=(0,n.useMemo)(()=>({scrubStart:()=>Tt.current?.scrubStart(),scrubTo:e=>Tt.current?.scrubTo(e),scrubCommit:e=>Tt.current?.scrubCommit(e),seek:e=>Tt.current?.seek(e),goLive:()=>{Tt.current?.goLive(),yt(e=>e+1),Ot(!1),kt(1)}}),[]),jt=(0,k.usePlaybackMachine)(wt),Dt='live'!==jt.state.mode,It=(0,n.useCallback)(()=>{Ot(e=>(Tt.current?.setRate(e?xt:0),!e))},[xt]),Wt=(0,n.useCallback)(e=>{kt(e),Et||Tt.current?.setRate(e)},[Et]),Bt=(0,n.useCallback)(e=>{Et||(Tt.current?.setRate(0),Ot(!0)),Tt.current?.stepFrame(e)},[Et]),At=(0,n.useRef)(t??null),Pt=(0,n.useCallback)(e=>{jt.reportEmbedState(e);const t=At.current;null!==t&&(At.current=null,jt.seek(t,'cluster'))},[jt]),[Lt,Rt]=(0,n.useState)(!0),Mt=(0,n.useRef)(!1);(0,n.useEffect)(()=>{Je&&!Mt.current&&(Mt.current=!0,Rt(!Ge.stream.audioOnOpen))},[Je,Ge.stream.audioOnOpen]);const zt='ptz'===et,Ft='devices'===et,Gt='export'===et,Jt='switcher'===et,Vt='menu'===et,[Kt,qt]=(0,n.useState)(!1),[Yt,Nt]=(0,n.useState)(()=>Date.now()),[Zt,$t]=(0,n.useState)(!1),[Qt,Ut]=(0,n.useState)(!1),[Xt,ea]=(0,n.useState)(!1),[ta,aa]=(0,n.useState)(!1),[oa,na]=(0,n.useState)(!1),[ia,la]=(0,n.useState)(!1),[sa,ra]=(0,n.useState)(!1),[ua,ca]=(0,n.useState)(!0),[da,ha]=(0,n.useState)(null),[ga,_a]=(0,n.useState)(!1),[ma,fa]=(0,n.useState)(e);ma!==e&&(fa(e),ha(null),_a(!1));const pa=(0,n.useCallback)(()=>_a(!0),[]),va=(0,n.useCallback)(()=>ha(null),[]),Sa=(0,n.useCallback)(e=>{ha(e),_a(!1)},[]),Ca=(0,n.useCallback)(()=>_a(!1),[]),ba=(0,n.useCallback)(()=>Rt(e=>!e),[]),xa=(0,n.useCallback)(()=>at('ptz'),[at]),ka=(0,n.useCallback)(()=>at('devices'),[at]),Ea=(0,n.useCallback)(()=>at('switcher'),[at]),Oa=(0,n.useCallback)(t=>{ot(),t!==e&&T.replace(`/camera/${t}`)},[T,e,ot]),Ta=(0,n.useCallback)(e=>{ot(),T.push(`/grid/adhoc?devices=${(0,N.serializeAdhocDeviceIds)(e)}`)},[T,ot]),Ha=(0,n.useCallback)(()=>$t(e=>!e),[]),ya=(0,n.useCallback)(()=>at('menu'),[at]),wa=ot,ja=(0,n.useCallback)(()=>aa(e=>!e),[]),Da=(0,n.useCallback)(()=>na(e=>!e),[]),Ia=(0,n.useCallback)(()=>at('export'),[at]),Wa=ot,Ba=(0,n.useCallback)(()=>{ot(),Nt((0,k.selectActiveEpoch)(jt.state)??Date.now()),qt(!0)},[jt.state,ot]),Aa=(0,n.useCallback)(()=>qt(!1),[]),Pa=(0,n.useCallback)(()=>{qt(!1),T.push('/exports')},[T]),La=(0,n.useCallback)(()=>ca(e=>!e),[]),Ra=(0,n.useCallback)(()=>ca(!1),[]),Ma=(0,n.useCallback)(()=>Tt.current?.startPip(),[]),za=(0,n.useCallback)(()=>Tt.current?.getStats()??Promise.resolve(null),[]),{talking:Fa,error:Ga,toggle:Ja}=(0,w.useIntercom)(e);(0,n.useEffect)(()=>{Ga&&u.default.alert(o('v2.cameraDetail.talk'),o('v2.cameraDetail.talkFailed'))},[Ga,o]);const Va=(0,$.useWideDetailLayout)(),Ka=Ae>Pe,qa=ia||Ka&&!Va,[Ya,Na]=(0,n.useState)(null),Za=(0,n.useCallback)(e=>{Na(e.nativeEvent.layout.width)},[]),$a=(0,n.useMemo)(()=>(0,U.computeWideDetailSizes)({containerWidth:Ya??Ae,viewportHeight:Pe}),[Ya,Ae,Pe]),Qa=(0,n.useMemo)(()=>9*Ae/16,[Ae]),Ua=(0,n.useMemo)(()=>Pe*ve,[Pe]),Xa=(0,y.useStreamZoom)(),eo=Xa.resetZoom;(0,n.useEffect)(()=>{eo()},[qa,eo]);const to=(0,n.useCallback)(()=>T.back(),[T]),ao=(0,n.useMemo)(()=>{const e=p.Gesture.Tap().numberOfTaps(1).onEnd((function({_worklet_6602635544675_init_data:e,runOnJS:t,onToggleControls:o}){const n=function(){t(o)()};return n.__closure={runOnJS:t,onToggleControls:o},n.__workletHash=6602635544675,n.__initData=e,n})({_worklet_6602635544675_init_data:Ee,runOnJS:v.runOnJS,onToggleControls:La})),t=p.Gesture.Tap().numberOfTaps(2).onEnd((function({_worklet_2914560570860_init_data:e,runOnJS:t,zoom:o}){const n=function(){t(o.resetZoom)()};return n.__closure={runOnJS:t,zoom:o},n.__workletHash=2914560570860,n.__initData=e,n})({_worklet_2914560570860_init_data:Oe,runOnJS:v.runOnJS,zoom:Xa})),o=p.Gesture.Exclusive(t,e),n=p.Gesture.Pan().minPointers(2).onEnd((function({_worklet_928138019551_init_data:e,BACK_SWIPE_DISTANCE:t,BACK_SWIPE_VELOCITY:o,runOnJS:n,onSwipeBack:l}){const s=function(e){e.translationY>t&&e.velocityY>o&&n(l)()};return s.__closure={BACK_SWIPE_DISTANCE:t,BACK_SWIPE_VELOCITY:o,runOnJS:n,onSwipeBack:l},s.__workletHash=928138019551,s.__initData=e,s})({_worklet_928138019551_init_data:Te,BACK_SWIPE_DISTANCE:Ce,BACK_SWIPE_VELOCITY:be,runOnJS:v.runOnJS,onSwipeBack:to}));return p.Gesture.Simultaneous(Xa.composeWith(n),o)},[Xa,La,to]),oo=Ge.stream.pinchExpandsHeight,no=(0,v.useDerivedValue)((function({_worklet_4062045311480_init_data:e,pinchExpandsHeight:t,defaultHeight:o,interpolate:n,zoom:l,HEIGHT_GROW_SCALE:s,maxHeight:u,Extrapolation:c}){const d=function(){return t?n(l.scale.value,[1,s],[o,u],c.CLAMP):o};return d.__closure={pinchExpandsHeight:t,defaultHeight:o,interpolate:n,zoom:l,HEIGHT_GROW_SCALE:s,maxHeight:u,Extrapolation:c},d.__workletHash=4062045311480,d.__initData=e,d})({_worklet_4062045311480_init_data:He,pinchExpandsHeight:oo,defaultHeight:Qa,interpolate:v.interpolate,zoom:Xa,HEIGHT_GROW_SCALE:Se,maxHeight:Ua,Extrapolation:v.Extrapolation}),[Qa,Ua,oo]),io=(0,v.useAnimatedStyle)((function({_worklet_8575313032359_init_data:e,liveBoxHeight:t}){const o=()=>({height:t.value});return o.__closure={liveBoxHeight:t},o.__workletHash=8575313032359,o.__initData=e,o})({_worklet_8575313032359_init_data:ye,liveBoxHeight:no})),lo=(0,v.useAnimatedStyle)((function({_worklet_15146728279256_init_data:e,liveBoxHeight:t,winWidth:o}){const n=function(){const e=t.value,n=Math.max(o,16*e/9);return{position:'absolute',top:0,left:(o-n)/2,width:n,height:e}};return n.__closure={liveBoxHeight:t,winWidth:o},n.__workletHash=0xdc69f5bccd8,n.__initData=e,n})({_worklet_15146728279256_init_data:we,liveBoxHeight:no,winWidth:Ae}),[Ae]),so=(0,v.useDerivedValue)((function({_worklet_12291157125883_init_data:e,isWideDetail:t,insets:o,TOOLBAR_HEIGHT:n,liveBoxHeight:l}){const s=()=>t?o.top+n:o.top+l.value+n;return s.__closure={isWideDetail:t,insets:o,TOOLBAR_HEIGHT:n,liveBoxHeight:l},s.__workletHash=0xb2dc20deafb,s.__initData=e,s})({_worklet_12291157125883_init_data:je,isWideDetail:Va,insets:Be,TOOLBAR_HEIGHT:xe,liveBoxHeight:no}),[Be.top,Va]),{ref:ro,isFullscreen:uo,toggle:co}=(0,x.useWebFullscreen)(),ho=(0,n.useCallback)(()=>{co()},[co]);(0,n.useEffect)(()=>{la(uo)},[uo]),(0,n.useEffect)(()=>{},[ia]);const go=(0,n.useCallback)(async()=>{const t=Le.getSystem();if(t){ra(!0);try{const n=await t.trpcClient.snapshot.getSnapshot.query({deviceId:e,force:!0});if(!n?.base64)return void u.default.alert(o('v2.cameraDetail.snapshot'),o('v2.cameraDetail.snapshotFailed'));const l=n.contentType.includes('png')?'png':'jpg',s=`${C.cacheDirectory}snapshot-${e}-${Date.now()}.${l}`;await C.writeAsStringAsync(s,n.base64,{encoding:C.EncodingType.Base64}),await b.isAvailableAsync()&&await b.shareAsync(s,{mimeType:n.contentType})}catch{u.default.alert(o('v2.cameraDetail.snapshot'),o('v2.cameraDetail.snapshotFailed'))}finally{ra(!1)}}},[Le,e,o]),_o=(0,n.useCallback)(()=>{ot(),go()},[go,ot]),mo=(0,k.selectPlaybackStatus)(jt.state),fo=mo.isLive&&!St,po=((0,n.useMemo)(()=>fo?vt:Object.assign({},vt,{enabled:!1,motion:!1,detection:!1,audio:'off'}),[vt,fo]),(0,n.useCallback)(()=>{const e=(0,E.jogTarget)(jt.state.playhead,-1);null!=e&&jt.seek(e,'timeline')},[jt])),vo=(0,n.useCallback)(()=>{const e=(0,E.jogTarget)(jt.state.playhead,1);null!=e&&jt.seek(e,'timeline')},[jt]),So=(0,pe.jsx)(S.default.View,{style:qa?Ie.videoWrapFull:Va?[Ie.videoWrap,{width:$a.streamWidth,height:$a.streamHeight}]:oo?[Ie.videoWrap,io]:[Ie.videoWrap,{height:Qa}],children:(0,pe.jsxs)(l.default,{style:Ie.videoContent,children:[(0,pe.jsxs)(S.default.View,{style:qa||Va?[c.default.absoluteFill,Xa.videoStyle]:[lo,Xa.videoStyle],children:[St&&!Dt?(0,pe.jsx)(De,{deviceId:e}):(0,pe.jsx)(H.LiveView,{ref:Tt,deviceId:e,muted:Lt,target:Ue,showStats:ta&&!1,highlight:void 0,onPlaybackState:Pt,onPosition:jt.reportPosition},Ht),Zt&&fo?(0,pe.jsx)(V.MotionBoxesOverlay,{deviceId:e,enabled:Zt}):null,oa&&fo?(0,pe.jsx)(K.AudioLevelMeter,{deviceId:e,enabled:oa}):null]}),(0,pe.jsx)(p.GestureDetector,{gesture:ao,children:(0,pe.jsx)(S.default.View,{style:c.default.absoluteFill,onLayout:Xa.onLayout})}),null===da||ga?null:(0,pe.jsx)(Y.ZoneActiveOverlay,{zone:da}),'seeking'===jt.state.mode?(0,pe.jsx)(W.ScrubPlayerPreview,{deviceId:e,atMs:(0,k.selectActiveEpoch)(jt.state)}):null,'gap'===jt.state.mode?(0,pe.jsxs)(l.default,{pointerEvents:"none",style:[c.default.absoluteFill,Ie.noRecOverlay],children:[(0,pe.jsx)(te.VideoOff,{size:28,color:"#9aa0a6"}),(0,pe.jsx)(s.default,{style:Ie.noRecTitle,children:o('v2.theater.noRecording')}),(0,pe.jsx)(s.default,{style:Ie.noRecHint,children:o('v2.theater.noRecordingHint')})]}):null,pt&&fo?(0,pe.jsx)(l.default,{pointerEvents:"none",style:[c.default.absoluteFill,{borderWidth:Ge.highlight.thickness,borderColor:'motion'===pt?Ge.highlight.motionColor:'audio'===pt?Ge.highlight.audioColor:Ge.highlight.detectionColor}]}):null,ua?(0,pe.jsxs)(l.default,{style:Ie.nameTag,pointerEvents:"none",children:[(0,pe.jsx)(le.CameraStatusDot,{deviceId:e,online:ze,disabled:Fe,size:9}),(0,pe.jsx)(s.default,{style:Ie.nameText,numberOfLines:1,children:Re})]}):null,st&&fo?(0,pe.jsx)(ie.MotionBadge,{}):null,(0,pe.jsx)(re.DoorbellBadge,{deviceId:e,enabled:qe}),(0,pe.jsx)(se.OccupancyBadge,{deviceId:e,enabled:mo.isLive&&!St}),ua&&!mo.isLive?(0,pe.jsx)(l.default,{style:Ie.jogRow,children:(0,pe.jsx)(D.RecordedTransportBar,{rate:xt,paused:Et,onJogBack:po,onJogForward:vo,onStepFrame:Bt,onSelectRate:Wt})}):null,ta?(0,pe.jsx)(J.StreamStatsOverlay,{getStats:za}):null,(0,pe.jsx)(j.StreamOverlayControls,{visible:ua,onRequestHide:Ra,paused:Dt?Et:St,onTogglePause:Dt?It:bt,muted:Lt,onToggleMute:ba,hasTwoWayAudio:Ke,talking:Fa,onToggleTalk:Ja,onStartPip:Ma,fullscreen:ia,onToggleFullscreen:ho}),ga?(0,pe.jsx)(q.ZoneDrawOverlay,{zone:da,onConfirm:Sa,onCancel:Ca}):null]})}),Co=Va?'right':void 0,bo=Va?$a.railWidth:void 0,xo=(0,pe.jsx)(Z.TheaterTimeline,{deviceId:e,hideBack:Va,name:Re,onBack:()=>T.back(),hasPtz:Ve,ptzOpen:zt,onTogglePtz:xa,devicesOpen:Ft,onToggleDevices:ka,menuOpen:Vt,onToggleMenu:ya,exportMenuOpen:Gt,onToggleExportMenu:Ia,snapshotBusy:sa,quality:Ze,qualityOpen:nt,onToggleQuality:it,mode:jt.state.mode,activeEpoch:(0,k.selectActiveEpoch)(jt.state),onSeek:jt.seek,onScrubBegin:jt.beginScrub,onScrubMove:jt.moveScrub,onScrubCommit:jt.commitScrub,onGoLive:jt.goLive,zoneRect:da,onRequestZoneDraw:pa,onClearZone:va,onPickCamera:Ea});return(0,pe.jsxs)(l.default,{ref:ro,onLayout:Za,style:{flex:1,backgroundColor:X.background,paddingTop:qa?0:Be.top},children:[(0,pe.jsx)(f.StatusBar,{hidden:qa,style:qa||'dark'===We?'light':'dark'}),qa?So:Va?(0,pe.jsx)(Q.WideDetailLayout,{railWidth:$a.railWidth,stream:So,timeline:xo}):(0,pe.jsxs)(pe.Fragment,{children:[So,xo]}),zt?(0,pe.jsx)(A.FloatingPanel,{title:o('v2.ptz.title'),onClose:xa,closeLabel:o('v2.cameraDetail.close'),topOffset:so,align:Co,maxWidth:bo,children:(0,pe.jsx)(B.PtzControls,{deviceId:e,hasFeature:Ve})}):null,Ft?(0,pe.jsx)(A.FloatingPanel,{title:o('v2.cameraDetail.devices'),onClose:ka,closeLabel:o('v2.cameraDetail.close'),topOffset:so,align:Co,maxWidth:bo,children:(0,pe.jsx)(P.DevicesPanel,{deviceId:e})}):null,Jt?(0,pe.jsx)(A.FloatingPanel,{title:o('v2.cameraSwitcher.title'),onClose:Ea,closeLabel:o('v2.cameraDetail.close'),topOffset:so,align:Co,maxWidth:bo,children:(0,pe.jsx)(L.CameraSwitcherPanel,{currentId:e,onSwitch:Oa,onOpenGrid:Ta})}):null,Vt?(0,pe.jsx)(R.CameraMenuPanel,{boundingBoxesOn:Zt,onToggleBoundingBoxes:Ha,statsOn:ta,onToggleStats:ja,audioMeterOn:oa,onToggleAudioMeter:Da,highlight:ut,onSetHighlight:t=>ct(e,Object.assign({},ut,t)),onOpenStorage:()=>{ot(),Ut(!0)},onOpenEvents:()=>{ot(),ea(!0)},onClose:wa,topOffset:so,align:Co,maxWidth:bo}):null,nt?(0,pe.jsx)(I.QualityPicker,{value:Ze,onChange:Xe,onClose:lt,topOffset:so,align:Co,maxWidth:bo}):null,Gt?(0,pe.jsx)(z.ExportActionsPanel,{onSnapshot:_o,snapshotBusy:sa,onOpenExport:Ba,onClose:Wa,topOffset:so,align:Co,maxWidth:bo}):null,(0,pe.jsx)(M.ExportModal,{visible:Kt,deviceId:e,anchorEpoch:Yt,onClose:Aa,onCreated:Pa}),(0,pe.jsx)(F.StorageManagementModal,{visible:Qt,deviceId:e,cameraName:Re,onClose:()=>Ut(!1)}),(0,pe.jsx)(G.EventsManagementModal,{visible:Xt,deviceId:e,cameraName:Re,onClose:()=>ea(!1)})]})};var o=r(_d[0]),n=r(_d[1]),l=e(r(_d[2])),s=e(r(_d[3])),u=e(r(_d[4])),c=e(r(_d[5])),d=e(r(_d[6]));r(_d[7]);var h=r(_d[8]),_=r(_d[9]),m=r(_d[10]),f=r(_d[11]),p=r(_d[12]),v=r(_d[13]),S=e(v),C=(t(r(_d[14])),t(r(_d[15]))),b=t(r(_d[16])),x=r(_d[17]),k=r(_d[18]),E=r(_d[19]),O=r(_d[20]),T=r(_d[21]),H=r(_d[22]),y=r(_d[23]),w=r(_d[24]),j=r(_d[25]),D=r(_d[26]),I=r(_d[27]),W=r(_d[28]),B=r(_d[29]),A=r(_d[30]),P=r(_d[31]),L=r(_d[32]),R=r(_d[33]),M=r(_d[34]),z=r(_d[35]),F=r(_d[36]),G=r(_d[37]),J=r(_d[38]),V=r(_d[39]),K=r(_d[40]),q=r(_d[41]),Y=r(_d[42]),N=r(_d[43]),Z=r(_d[44]),$=r(_d[45]),Q=r(_d[46]),U=r(_d[47]),X=r(_d[48]),ee=r(_d[49]),te=r(_d[50]),ae=r(_d[51]),oe=r(_d[52]),ne=r(_d[53]),ie=r(_d[54]),le=r(_d[55]),se=r(_d[56]),re=r(_d[57]),ue=r(_d[58]),ce=r(_d[59]),de=r(_d[60]),he=r(_d[61]),ge=r(_d[62]),me=r(_d[63]),fe=r(_d[64]),pe=r(_d[65]);const ve=.5,Se=2.5,Ce=80,be=400,xe=47;function ke(e){const t=(0,o.c)(18),{t:n}=(0,h.useTranslation)(),{data:l}=(0,ee.useCameras)();let s;t[0]!==l?(s=void 0===l?[]:l,t[0]=l,t[1]=s):s=t[1];const u=s;let c;if(t[2]!==u||t[3]!==e){let o;t[5]!==e?(o=t=>t.id===e,t[5]=e,t[6]=o):o=t[6],c=u.find(o),t[2]=u,t[3]=e,t[4]=c}else c=t[4];const d=c;let _,m;t[7]!==d?.name||t[8]!==e||t[9]!==n?(_=d?.name??n("v2.cameraDetail.fallbackName",{id:e}),t[7]=d?.name,t[8]=e,t[9]=n,t[10]=_):_=t[10],t[11]!==d?.features?(m=d?.features??[],t[11]=d?.features,t[12]=m):m=t[12];const f=d?.online??!1,p=d?.disabled??!1;let v;return t[13]!==_||t[14]!==m||t[15]!==f||t[16]!==p?(v={name:_,features:m,online:f,disabled:p},t[13]=_,t[14]=m,t[15]=f,t[16]=p,t[17]=v):v=t[17],v}const Ee={code:"function CameraDetailScreenTsx1(){const{runOnJS,onToggleControls}=this.__closure;runOnJS(onToggleControls)();}"},Oe={code:"function CameraDetailScreenTsx2(){const{runOnJS,zoom}=this.__closure;runOnJS(zoom.resetZoom)();}"},Te={code:"function CameraDetailScreenTsx3(e_0){const{BACK_SWIPE_DISTANCE,BACK_SWIPE_VELOCITY,runOnJS,onSwipeBack}=this.__closure;if(e_0.translationY>BACK_SWIPE_DISTANCE&&e_0.velocityY>BACK_SWIPE_VELOCITY){runOnJS(onSwipeBack)();}}"},He={code:"function CameraDetailScreenTsx4(){const{pinchExpandsHeight,defaultHeight,interpolate,zoom,HEIGHT_GROW_SCALE,maxHeight,Extrapolation}=this.__closure;if(!pinchExpandsHeight)return defaultHeight;return interpolate(zoom.scale.value,[1,HEIGHT_GROW_SCALE],[defaultHeight,maxHeight],Extrapolation.CLAMP);}"},ye={code:"function CameraDetailScreenTsx5(){const{liveBoxHeight}=this.__closure;return{height:liveBoxHeight.value};}"},we={code:"function CameraDetailScreenTsx6(){const{liveBoxHeight,winWidth}=this.__closure;const h=liveBoxHeight.value;const coverWidth=Math.max(winWidth,h*16/9);return{position:'absolute',top:0,left:(winWidth-coverWidth)/2,width:coverWidth,height:h};}"},je={code:"function CameraDetailScreenTsx7(){const{isWideDetail,insets,TOOLBAR_HEIGHT,liveBoxHeight}=this.__closure;return isWideDetail?insets.top+TOOLBAR_HEIGHT:insets.top+liveBoxHeight.value+TOOLBAR_HEIGHT;}"};function De(e){const t=(0,o.c)(7),{deviceId:n}=e,{uri:s,headers:u,onLoad:d,onError:h}=(0,X.useSnapshot)(n,!0);let _,m;return t[0]!==u||t[1]!==h||t[2]!==d||t[3]!==s?(_=s?(0,pe.jsx)(T.Image,{source:u?{uri:s,headers:u}:{uri:s},style:c.default.absoluteFill,contentFit:"cover",cachePolicy:"memory-disk",onLoad:d,onError:h}):null,t[0]=u,t[1]=h,t[2]=d,t[3]=s,t[4]=_):_=t[4],t[5]!==_?(m=(0,pe.jsx)(l.default,{style:Ie.poster,children:_}),t[5]=_,t[6]=m):m=t[6],m}const Ie=c.default.create({videoWrap:{position:'relative',width:'100%',overflow:'hidden',backgroundColor:'#000'},videoWrapFull:Object.assign({},c.default.absoluteFill,{zIndex:50,backgroundColor:'#000'}),videoContent:{flex:1,overflow:'hidden'},noRecOverlay:{alignItems:'center',justifyContent:'center',gap:6,backgroundColor:'rgba(0,0,0,0.55)'},noRecTitle:{color:'#e8eaed',fontSize:15,fontWeight:'600'},noRecHint:{color:'#9aa0a6',fontSize:12},poster:{flex:1,backgroundColor:'#000'},nameTag:{position:'absolute',top:8,left:8,maxWidth:'70%',flexDirection:'row',alignItems:'center',gap:6,paddingHorizontal:8,paddingVertical:4,borderRadius:6,backgroundColor:'#00000080'},nameText:{color:'#fafaf9',fontSize:13,fontWeight:'600'},jogRow:{position:'absolute',bottom:56,alignSelf:'center'}})},3428,[15,17,20,112,133,33,277,136,786,743,466,3429,3242,2714,3431,3434,3439,3443,3444,3445,2587,3053,3446,3454,3455,3456,3457,3459,3462,3466,3460,3468,3485,3486,3487,3491,3492,3494,3495,3496,3497,3500,3502,3503,3504,2590,3525,3526,3143,3080,813,2594,3177,3156,3527,3158,3164,3528,3385,3530,3498,3532,3132,3139,3533,10]);
15849
+ __d(function(g,r,i,a,_m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}function t(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(o){var n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:function(){return e[o]}})}),t.default=e,t}Object.defineProperty(_e,'__esModule',{value:!0}),_e.CameraDetailScreen=function({deviceId:e,initialSeekMs:t}){const{t:o}=(0,h.useTranslation)(),T=(0,_.useRouter)(),{colors:X,mode:We}=(0,O.useTheme)(),Be=(0,m.useSafeAreaInsets)(),{width:Ae,height:Pe}=(0,d.default)(),{controller:Le}=(0,ae.useConnection)(),{name:Re,features:Me,online:ze,disabled:Fe}=ke(e),{settings:Ge,hydrated:Je}=(0,oe.useSettings)(),Ve=Me.includes(ee.FEATURE.ptz),Ke=Me.includes(ee.FEATURE.twoWayAudio),qe=Me.includes(ee.FEATURE.doorbell),Ye=(0,ge.useCameraPrefsStore)(t=>t.prefs.byId[e]?.quality),Ne=(0,ge.useCameraPrefsStore)(e=>e.setCameraQuality),[Ze,$e]=(0,n.useState)(Ye??'auto'),Qe=(0,n.useRef)(!1);(0,n.useEffect)(()=>{Ye&&!Qe.current&&(Qe.current=!0,$e(Ye))},[Ye]);const Ue=(0,n.useMemo)(()=>(0,fe.qualityToTarget)(Ze),[Ze]),Xe=(0,n.useCallback)(t=>{$e(t),Ne(e,t)},[e,Ne]),[et,tt]=(0,n.useState)(null),at=(0,n.useCallback)(e=>tt(t=>t===e?null:e),[]),ot=(0,n.useCallback)(()=>tt(null),[]),nt='quality'===et,it=(0,n.useCallback)(()=>at('quality'),[at]),lt=ot,st=(0,ne.useMotionHighlight)(e,!0);(0,ce.useEventHaptics)([e],!0);const rt=(0,ge.useCameraPrefsStore)(t=>t.prefs.byId[e]?.highlight),ut=(0,n.useMemo)(()=>(0,me.withHighlightDefaults)(rt),[rt]),ct=(0,ge.useCameraPrefsStore)(e=>e.setCameraHighlight),dt=(0,ge.useCameraPrefsStore)(e=>e.hydrate);(0,n.useEffect)(()=>{dt()},[dt]);const ht=(0,ue.useDetections)(e,ut.detection&&!0),gt=ut.detection&&ht.boxes.some(e=>0===ut.detectionClasses.length||ut.detectionClasses.includes(e.label)),_t=(0,he.useHeld)(gt,1e3*ut.detectionHoldSec),mt=(0,de.useAudioActive)(e,ut.audio,ut.audioDb),ft=(0,he.useHeld)('off'!==ut.audio&&mt,1e3*ut.audioHoldSec),pt=_t?'detection':ft?'audio':ut.motion&&st?'motion':null,vt=(0,n.useMemo)(()=>Object.assign({enabled:!0},ut,{appearance:Ge.highlight,motionHoldSec:Ge.grid.motionHoldSec}),[ut,Ge.highlight,Ge.grid.motionHoldSec]),[St,Ct]=(0,n.useState)(!1),bt=(0,n.useCallback)(()=>Ct(e=>!e),[]),[xt,kt]=(0,n.useState)(1),[Et,Ot]=(0,n.useState)(!1),Tt=(0,n.useRef)(null),[Ht,yt]=(0,n.useState)(0),wt=(0,n.useMemo)(()=>({scrubStart:()=>Tt.current?.scrubStart(),scrubTo:e=>Tt.current?.scrubTo(e),scrubCommit:e=>Tt.current?.scrubCommit(e),seek:e=>Tt.current?.seek(e),goLive:()=>{Tt.current?.goLive(),yt(e=>e+1),Ot(!1),kt(1)}}),[]),jt=(0,k.usePlaybackMachine)(wt),Dt='live'!==jt.state.mode,It=(0,n.useCallback)(()=>{Ot(e=>(Tt.current?.setRate(e?xt:0),!e))},[xt]),Wt=(0,n.useCallback)(e=>{kt(e),Et||Tt.current?.setRate(e)},[Et]),Bt=(0,n.useCallback)(e=>{Et||(Tt.current?.setRate(0),Ot(!0)),Tt.current?.stepFrame(e)},[Et]),At=(0,n.useRef)(t??null),Pt=(0,n.useCallback)(e=>{jt.reportEmbedState(e);const t=At.current;null!==t&&(At.current=null,jt.seek(t,'cluster'))},[jt]),[Lt,Rt]=(0,n.useState)(!0),Mt=(0,n.useRef)(!1);(0,n.useEffect)(()=>{Je&&!Mt.current&&(Mt.current=!0,Rt(!Ge.stream.audioOnOpen))},[Je,Ge.stream.audioOnOpen]);const zt='ptz'===et,Ft='devices'===et,Gt='export'===et,Jt='switcher'===et,Vt='menu'===et,[Kt,qt]=(0,n.useState)(!1),[Yt,Nt]=(0,n.useState)(()=>Date.now()),[Zt,$t]=(0,n.useState)(!1),[Qt,Ut]=(0,n.useState)(!1),[Xt,ea]=(0,n.useState)(!1),[ta,aa]=(0,n.useState)(!1),[oa,na]=(0,n.useState)(!1),[ia,la]=(0,n.useState)(!1),[sa,ra]=(0,n.useState)(!1),[ua,ca]=(0,n.useState)(!0),[da,ha]=(0,n.useState)(null),[ga,_a]=(0,n.useState)(!1),[ma,fa]=(0,n.useState)(e);ma!==e&&(fa(e),ha(null),_a(!1));const pa=(0,n.useCallback)(()=>_a(!0),[]),va=(0,n.useCallback)(()=>ha(null),[]),Sa=(0,n.useCallback)(e=>{ha(e),_a(!1)},[]),Ca=(0,n.useCallback)(()=>_a(!1),[]),ba=(0,n.useCallback)(()=>Rt(e=>!e),[]),xa=(0,n.useCallback)(()=>at('ptz'),[at]),ka=(0,n.useCallback)(()=>at('devices'),[at]),Ea=(0,n.useCallback)(()=>at('switcher'),[at]),Oa=(0,n.useCallback)(t=>{ot(),t!==e&&T.replace(`/camera/${t}`)},[T,e,ot]),Ta=(0,n.useCallback)(e=>{ot(),T.push(`/grid/adhoc?devices=${(0,N.serializeAdhocDeviceIds)(e)}`)},[T,ot]),Ha=(0,n.useCallback)(()=>$t(e=>!e),[]),ya=(0,n.useCallback)(()=>at('menu'),[at]),wa=ot,ja=(0,n.useCallback)(()=>aa(e=>!e),[]),Da=(0,n.useCallback)(()=>na(e=>!e),[]),Ia=(0,n.useCallback)(()=>at('export'),[at]),Wa=ot,Ba=(0,n.useCallback)(()=>{ot(),Nt((0,k.selectActiveEpoch)(jt.state)??Date.now()),qt(!0)},[jt.state,ot]),Aa=(0,n.useCallback)(()=>qt(!1),[]),Pa=(0,n.useCallback)(()=>{qt(!1),T.push('/exports')},[T]),La=(0,n.useCallback)(()=>ca(e=>!e),[]),Ra=(0,n.useCallback)(()=>ca(!1),[]),Ma=(0,n.useCallback)(()=>Tt.current?.startPip(),[]),za=(0,n.useCallback)(()=>Tt.current?.getStats()??Promise.resolve(null),[]),{talking:Fa,error:Ga,toggle:Ja}=(0,w.useIntercom)(e);(0,n.useEffect)(()=>{Ga&&u.default.alert(o('v2.cameraDetail.talk'),o('v2.cameraDetail.talkFailed'))},[Ga,o]);const Va=(0,$.useWideDetailLayout)(),Ka=Ae>Pe,qa=ia||Ka&&!Va,[Ya,Na]=(0,n.useState)(null),Za=(0,n.useCallback)(e=>{Na(e.nativeEvent.layout.width)},[]),$a=(0,n.useMemo)(()=>(0,U.computeWideDetailSizes)({containerWidth:Ya??Ae,viewportHeight:Pe}),[Ya,Ae,Pe]),Qa=(0,n.useMemo)(()=>9*Ae/16,[Ae]),Ua=(0,n.useMemo)(()=>Pe*ve,[Pe]),Xa=(0,y.useStreamZoom)(),eo=Xa.resetZoom;(0,n.useEffect)(()=>{eo()},[qa,eo]);const to=(0,n.useCallback)(()=>T.back(),[T]),ao=(0,n.useMemo)(()=>{const e=p.Gesture.Tap().numberOfTaps(1).onEnd((function({_worklet_6602635544675_init_data:e,runOnJS:t,onToggleControls:o}){const n=function(){t(o)()};return n.__closure={runOnJS:t,onToggleControls:o},n.__workletHash=6602635544675,n.__initData=e,n})({_worklet_6602635544675_init_data:Ee,runOnJS:v.runOnJS,onToggleControls:La})),t=p.Gesture.Tap().numberOfTaps(2).onEnd((function({_worklet_2914560570860_init_data:e,runOnJS:t,zoom:o}){const n=function(){t(o.resetZoom)()};return n.__closure={runOnJS:t,zoom:o},n.__workletHash=2914560570860,n.__initData=e,n})({_worklet_2914560570860_init_data:Oe,runOnJS:v.runOnJS,zoom:Xa})),o=p.Gesture.Exclusive(t,e),n=p.Gesture.Pan().minPointers(2).onEnd((function({_worklet_928138019551_init_data:e,BACK_SWIPE_DISTANCE:t,BACK_SWIPE_VELOCITY:o,runOnJS:n,onSwipeBack:l}){const s=function(e){e.translationY>t&&e.velocityY>o&&n(l)()};return s.__closure={BACK_SWIPE_DISTANCE:t,BACK_SWIPE_VELOCITY:o,runOnJS:n,onSwipeBack:l},s.__workletHash=928138019551,s.__initData=e,s})({_worklet_928138019551_init_data:Te,BACK_SWIPE_DISTANCE:Ce,BACK_SWIPE_VELOCITY:be,runOnJS:v.runOnJS,onSwipeBack:to}));return p.Gesture.Simultaneous(Xa.composeWith(n),o)},[Xa,La,to]),oo=Ge.stream.pinchExpandsHeight,no=(0,v.useDerivedValue)((function({_worklet_4062045311480_init_data:e,pinchExpandsHeight:t,defaultHeight:o,interpolate:n,zoom:l,HEIGHT_GROW_SCALE:s,maxHeight:u,Extrapolation:c}){const d=function(){return t?n(l.scale.value,[1,s],[o,u],c.CLAMP):o};return d.__closure={pinchExpandsHeight:t,defaultHeight:o,interpolate:n,zoom:l,HEIGHT_GROW_SCALE:s,maxHeight:u,Extrapolation:c},d.__workletHash=4062045311480,d.__initData=e,d})({_worklet_4062045311480_init_data:He,pinchExpandsHeight:oo,defaultHeight:Qa,interpolate:v.interpolate,zoom:Xa,HEIGHT_GROW_SCALE:Se,maxHeight:Ua,Extrapolation:v.Extrapolation}),[Qa,Ua,oo]),io=(0,v.useAnimatedStyle)((function({_worklet_8575313032359_init_data:e,liveBoxHeight:t}){const o=()=>({height:t.value});return o.__closure={liveBoxHeight:t},o.__workletHash=8575313032359,o.__initData=e,o})({_worklet_8575313032359_init_data:ye,liveBoxHeight:no})),lo=(0,v.useAnimatedStyle)((function({_worklet_15146728279256_init_data:e,liveBoxHeight:t,winWidth:o}){const n=function(){const e=t.value,n=Math.max(o,16*e/9);return{position:'absolute',top:0,left:(o-n)/2,width:n,height:e}};return n.__closure={liveBoxHeight:t,winWidth:o},n.__workletHash=0xdc69f5bccd8,n.__initData=e,n})({_worklet_15146728279256_init_data:we,liveBoxHeight:no,winWidth:Ae}),[Ae]),so=(0,v.useDerivedValue)((function({_worklet_12291157125883_init_data:e,isWideDetail:t,insets:o,TOOLBAR_HEIGHT:n,liveBoxHeight:l}){const s=()=>t?o.top+n:o.top+l.value+n;return s.__closure={isWideDetail:t,insets:o,TOOLBAR_HEIGHT:n,liveBoxHeight:l},s.__workletHash=0xb2dc20deafb,s.__initData=e,s})({_worklet_12291157125883_init_data:je,isWideDetail:Va,insets:Be,TOOLBAR_HEIGHT:xe,liveBoxHeight:no}),[Be.top,Va]),{ref:ro,isFullscreen:uo,toggle:co}=(0,x.useWebFullscreen)(),ho=(0,n.useCallback)(()=>{co()},[co]);(0,n.useEffect)(()=>{la(uo)},[uo]),(0,n.useEffect)(()=>{},[ia]);const go=(0,n.useCallback)(async()=>{const t=Le.getSystem();if(t){ra(!0);try{const n=await t.trpcClient.snapshot.getSnapshot.query({deviceId:e,force:!0});if(!n?.base64)return void u.default.alert(o('v2.cameraDetail.snapshot'),o('v2.cameraDetail.snapshotFailed'));const l=n.contentType.includes('png')?'png':'jpg',s=`${C.cacheDirectory}snapshot-${e}-${Date.now()}.${l}`;await C.writeAsStringAsync(s,n.base64,{encoding:C.EncodingType.Base64}),await b.isAvailableAsync()&&await b.shareAsync(s,{mimeType:n.contentType})}catch{u.default.alert(o('v2.cameraDetail.snapshot'),o('v2.cameraDetail.snapshotFailed'))}finally{ra(!1)}}},[Le,e,o]),_o=(0,n.useCallback)(()=>{ot(),go()},[go,ot]),mo=(0,k.selectPlaybackStatus)(jt.state),fo=mo.isLive&&!St,po=((0,n.useMemo)(()=>fo?vt:Object.assign({},vt,{enabled:!1,motion:!1,detection:!1,audio:'off'}),[vt,fo]),(0,n.useCallback)(()=>{const e=(0,E.jogTarget)(jt.state.playhead,-1);null!=e&&jt.seek(e,'timeline')},[jt])),vo=(0,n.useCallback)(()=>{const e=(0,E.jogTarget)(jt.state.playhead,1);null!=e&&jt.seek(e,'timeline')},[jt]),So=(0,pe.jsx)(S.default.View,{style:qa?Ie.videoWrapFull:Va?[Ie.videoWrap,{width:$a.streamWidth,height:$a.streamHeight}]:oo?[Ie.videoWrap,io]:[Ie.videoWrap,{height:Qa}],children:(0,pe.jsxs)(l.default,{style:Ie.videoContent,children:[(0,pe.jsxs)(S.default.View,{style:qa||Va?[c.default.absoluteFill,Xa.videoStyle]:[lo,Xa.videoStyle],children:[St&&!Dt?(0,pe.jsx)(De,{deviceId:e}):(0,pe.jsx)(H.LiveView,{ref:Tt,deviceId:e,muted:Lt,target:Ue,showStats:ta&&!1,highlight:void 0,onPlaybackState:Pt,onPosition:jt.reportPosition},Ht),Zt&&fo?(0,pe.jsx)(V.MotionBoxesOverlay,{deviceId:e,enabled:Zt}):null,oa&&fo?(0,pe.jsx)(K.AudioLevelMeter,{deviceId:e,enabled:oa}):null]}),(0,pe.jsx)(p.GestureDetector,{gesture:ao,children:(0,pe.jsx)(S.default.View,{style:c.default.absoluteFill,onLayout:Xa.onLayout})}),null===da||ga?null:(0,pe.jsx)(Y.ZoneActiveOverlay,{zone:da}),'seeking'===jt.state.mode?(0,pe.jsx)(W.ScrubPlayerPreview,{deviceId:e,atMs:(0,k.selectActiveEpoch)(jt.state)}):null,'gap'===jt.state.mode?(0,pe.jsxs)(l.default,{pointerEvents:"none",style:[c.default.absoluteFill,Ie.noRecOverlay],children:[(0,pe.jsx)(te.VideoOff,{size:28,color:"#9aa0a6"}),(0,pe.jsx)(s.default,{style:Ie.noRecTitle,children:o('v2.theater.noRecording')}),(0,pe.jsx)(s.default,{style:Ie.noRecHint,children:o('v2.theater.noRecordingHint')})]}):null,pt&&fo?(0,pe.jsx)(l.default,{pointerEvents:"none",style:[c.default.absoluteFill,{borderWidth:Ge.highlight.thickness,borderColor:'motion'===pt?Ge.highlight.motionColor:'audio'===pt?Ge.highlight.audioColor:Ge.highlight.detectionColor}]}):null,ua?(0,pe.jsxs)(l.default,{style:Ie.nameTag,pointerEvents:"none",children:[(0,pe.jsx)(le.CameraStatusDot,{deviceId:e,online:ze,disabled:Fe,size:9}),(0,pe.jsx)(s.default,{style:Ie.nameText,numberOfLines:1,children:Re})]}):null,st&&fo?(0,pe.jsx)(ie.MotionBadge,{}):null,(0,pe.jsx)(re.DoorbellBadge,{deviceId:e,enabled:qe}),(0,pe.jsx)(se.OccupancyBadge,{deviceId:e,enabled:mo.isLive&&!St}),ua&&!mo.isLive?(0,pe.jsx)(l.default,{style:Ie.jogRow,children:(0,pe.jsx)(D.RecordedTransportBar,{rate:xt,paused:Et,onJogBack:po,onJogForward:vo,onStepFrame:Bt,onSelectRate:Wt})}):null,ta?(0,pe.jsx)(J.StreamStatsOverlay,{getStats:za}):null,(0,pe.jsx)(j.StreamOverlayControls,{visible:ua,onRequestHide:Ra,paused:Dt?Et:St,onTogglePause:Dt?It:bt,muted:Lt,onToggleMute:ba,hasTwoWayAudio:Ke,talking:Fa,onToggleTalk:Ja,onStartPip:Ma,fullscreen:ia,onToggleFullscreen:ho}),ga?(0,pe.jsx)(q.ZoneDrawOverlay,{zone:da,onConfirm:Sa,onCancel:Ca}):null]})}),Co=Va?'right':void 0,bo=Va?$a.railWidth:void 0,xo=(0,pe.jsx)(Z.TheaterTimeline,{deviceId:e,hideBack:Va,name:Re,onBack:()=>T.back(),hasPtz:Ve,ptzOpen:zt,onTogglePtz:xa,devicesOpen:Ft,onToggleDevices:ka,menuOpen:Vt,onToggleMenu:ya,exportMenuOpen:Gt,onToggleExportMenu:Ia,snapshotBusy:sa,quality:Ze,qualityOpen:nt,onToggleQuality:it,mode:jt.state.mode,activeEpoch:(0,k.selectActiveEpoch)(jt.state),onSeek:jt.seek,onScrubBegin:jt.beginScrub,onScrubMove:jt.moveScrub,onScrubCommit:jt.commitScrub,onGoLive:jt.goLive,zoneRect:da,onRequestZoneDraw:pa,onClearZone:va,onPickCamera:Ea});return(0,pe.jsxs)(l.default,{ref:ro,onLayout:Za,style:{flex:1,backgroundColor:X.background,paddingTop:qa?0:Be.top},children:[(0,pe.jsx)(f.StatusBar,{hidden:qa,style:qa||'dark'===We?'light':'dark'}),qa?So:Va?(0,pe.jsx)(Q.WideDetailLayout,{railWidth:$a.railWidth,stream:So,timeline:xo}):(0,pe.jsxs)(pe.Fragment,{children:[So,xo]}),zt?(0,pe.jsx)(A.FloatingPanel,{title:o('v2.ptz.title'),onClose:xa,closeLabel:o('v2.cameraDetail.close'),topOffset:so,align:Co,maxWidth:bo,children:(0,pe.jsx)(B.PtzControls,{deviceId:e,hasFeature:Ve})}):null,Ft?(0,pe.jsx)(A.FloatingPanel,{title:o('v2.cameraDetail.devices'),onClose:ka,closeLabel:o('v2.cameraDetail.close'),topOffset:so,align:Co,maxWidth:bo,children:(0,pe.jsx)(P.DevicesPanel,{deviceId:e})}):null,Jt?(0,pe.jsx)(A.FloatingPanel,{title:o('v2.cameraSwitcher.title'),onClose:Ea,closeLabel:o('v2.cameraDetail.close'),topOffset:so,align:Co,maxWidth:bo,children:(0,pe.jsx)(L.CameraSwitcherPanel,{currentId:e,onSwitch:Oa,onOpenGrid:Ta})}):null,Vt?(0,pe.jsx)(R.CameraMenuPanel,{boundingBoxesOn:Zt,onToggleBoundingBoxes:Ha,statsOn:ta,onToggleStats:ja,audioMeterOn:oa,onToggleAudioMeter:Da,highlight:ut,onSetHighlight:t=>ct(e,Object.assign({},ut,t)),onOpenStorage:()=>{ot(),Ut(!0)},onOpenEvents:()=>{ot(),ea(!0)},onClose:wa,topOffset:so,align:Co,maxWidth:bo}):null,nt?(0,pe.jsx)(I.QualityPicker,{value:Ze,onChange:Xe,onClose:lt,topOffset:so,align:Co,maxWidth:bo}):null,Gt?(0,pe.jsx)(z.ExportActionsPanel,{onSnapshot:_o,snapshotBusy:sa,onOpenExport:Ba,onClose:Wa,topOffset:so,align:Co,maxWidth:bo}):null,(0,pe.jsx)(M.ExportModal,{visible:Kt,deviceId:e,anchorEpoch:Yt,onClose:Aa,onCreated:Pa}),(0,pe.jsx)(F.StorageManagementModal,{visible:Qt,deviceId:e,cameraName:Re,onClose:()=>Ut(!1)}),(0,pe.jsx)(G.EventsManagementModal,{visible:Xt,deviceId:e,cameraName:Re,onClose:()=>ea(!1)})]})};var o=r(_d[0]),n=r(_d[1]),l=e(r(_d[2])),s=e(r(_d[3])),u=e(r(_d[4])),c=e(r(_d[5])),d=e(r(_d[6]));r(_d[7]);var h=r(_d[8]),_=r(_d[9]),m=r(_d[10]),f=r(_d[11]),p=r(_d[12]),v=r(_d[13]),S=e(v),C=(t(r(_d[14])),t(r(_d[15]))),b=t(r(_d[16])),x=r(_d[17]),k=r(_d[18]),E=r(_d[19]),O=r(_d[20]),T=r(_d[21]),H=r(_d[22]),y=r(_d[23]),w=r(_d[24]),j=r(_d[25]),D=r(_d[26]),I=r(_d[27]),W=r(_d[28]),B=r(_d[29]),A=r(_d[30]),P=r(_d[31]),L=r(_d[32]),R=r(_d[33]),M=r(_d[34]),z=r(_d[35]),F=r(_d[36]),G=r(_d[37]),J=r(_d[38]),V=r(_d[39]),K=r(_d[40]),q=r(_d[41]),Y=r(_d[42]),N=r(_d[43]),Z=r(_d[44]),$=r(_d[45]),Q=r(_d[46]),U=r(_d[47]),X=r(_d[48]),ee=r(_d[49]),te=r(_d[50]),ae=r(_d[51]),oe=r(_d[52]),ne=r(_d[53]),ie=r(_d[54]),le=r(_d[55]),se=r(_d[56]),re=r(_d[57]),ue=r(_d[58]),ce=r(_d[59]),de=r(_d[60]),he=r(_d[61]),ge=r(_d[62]),me=r(_d[63]),fe=r(_d[64]),pe=r(_d[65]);const ve=.5,Se=2.5,Ce=80,be=400,xe=47;function ke(e){const t=(0,o.c)(18),{t:n}=(0,h.useTranslation)(),{data:l}=(0,ee.useCameras)();let s;t[0]!==l?(s=void 0===l?[]:l,t[0]=l,t[1]=s):s=t[1];const u=s;let c;if(t[2]!==u||t[3]!==e){let o;t[5]!==e?(o=t=>t.id===e,t[5]=e,t[6]=o):o=t[6],c=u.find(o),t[2]=u,t[3]=e,t[4]=c}else c=t[4];const d=c;let _,m;t[7]!==d?.name||t[8]!==e||t[9]!==n?(_=d?.name??n("v2.cameraDetail.fallbackName",{id:e}),t[7]=d?.name,t[8]=e,t[9]=n,t[10]=_):_=t[10],t[11]!==d?.features?(m=d?.features??[],t[11]=d?.features,t[12]=m):m=t[12];const f=d?.online??!1,p=d?.disabled??!1;let v;return t[13]!==_||t[14]!==m||t[15]!==f||t[16]!==p?(v={name:_,features:m,online:f,disabled:p},t[13]=_,t[14]=m,t[15]=f,t[16]=p,t[17]=v):v=t[17],v}const Ee={code:"function CameraDetailScreenTsx1(){const{runOnJS,onToggleControls}=this.__closure;runOnJS(onToggleControls)();}"},Oe={code:"function CameraDetailScreenTsx2(){const{runOnJS,zoom}=this.__closure;runOnJS(zoom.resetZoom)();}"},Te={code:"function CameraDetailScreenTsx3(e_0){const{BACK_SWIPE_DISTANCE,BACK_SWIPE_VELOCITY,runOnJS,onSwipeBack}=this.__closure;if(e_0.translationY>BACK_SWIPE_DISTANCE&&e_0.velocityY>BACK_SWIPE_VELOCITY){runOnJS(onSwipeBack)();}}"},He={code:"function CameraDetailScreenTsx4(){const{pinchExpandsHeight,defaultHeight,interpolate,zoom,HEIGHT_GROW_SCALE,maxHeight,Extrapolation}=this.__closure;if(!pinchExpandsHeight)return defaultHeight;return interpolate(zoom.scale.value,[1,HEIGHT_GROW_SCALE],[defaultHeight,maxHeight],Extrapolation.CLAMP);}"},ye={code:"function CameraDetailScreenTsx5(){const{liveBoxHeight}=this.__closure;return{height:liveBoxHeight.value};}"},we={code:"function CameraDetailScreenTsx6(){const{liveBoxHeight,winWidth}=this.__closure;const h=liveBoxHeight.value;const coverWidth=Math.max(winWidth,h*16/9);return{position:'absolute',top:0,left:(winWidth-coverWidth)/2,width:coverWidth,height:h};}"},je={code:"function CameraDetailScreenTsx7(){const{isWideDetail,insets,TOOLBAR_HEIGHT,liveBoxHeight}=this.__closure;return isWideDetail?insets.top+TOOLBAR_HEIGHT:insets.top+liveBoxHeight.value+TOOLBAR_HEIGHT;}"};function De(e){const t=(0,o.c)(7),{deviceId:n}=e,{uri:s,headers:u,onLoad:d,onError:h}=(0,X.useSnapshot)(n,!0);let _,m;return t[0]!==u||t[1]!==h||t[2]!==d||t[3]!==s?(_=s?(0,pe.jsx)(T.Image,{source:u?{uri:s,headers:u}:{uri:s},style:c.default.absoluteFill,contentFit:"cover",cachePolicy:"memory-disk",onLoad:d,onError:h}):null,t[0]=u,t[1]=h,t[2]=d,t[3]=s,t[4]=_):_=t[4],t[5]!==_?(m=(0,pe.jsx)(l.default,{style:Ie.poster,children:_}),t[5]=_,t[6]=m):m=t[6],m}const Ie=c.default.create({videoWrap:{position:'relative',width:'100%',overflow:'hidden',backgroundColor:'#000'},videoWrapFull:Object.assign({},c.default.absoluteFill,{zIndex:50,backgroundColor:'#000'}),videoContent:{flex:1,overflow:'hidden'},noRecOverlay:{alignItems:'center',justifyContent:'center',gap:6,backgroundColor:'rgba(0,0,0,0.55)'},noRecTitle:{color:'#e8eaed',fontSize:15,fontWeight:'600'},noRecHint:{color:'#9aa0a6',fontSize:12},poster:{flex:1,backgroundColor:'#000'},nameTag:{position:'absolute',top:8,left:8,maxWidth:'70%',flexDirection:'row',alignItems:'center',gap:6,paddingHorizontal:8,paddingVertical:4,borderRadius:6,backgroundColor:'#00000080'},nameText:{color:'#fafaf9',fontSize:13,fontWeight:'600'},jogRow:{position:'absolute',bottom:56,alignSelf:'center'}})},3428,[15,17,20,112,133,33,277,136,786,743,466,3429,3241,2714,3431,3434,3439,3443,3444,3445,2587,3053,3446,3454,3455,3456,3457,3459,3462,3466,3460,3468,3485,3486,3487,3491,3492,3494,3495,3496,3497,3500,3502,3503,3504,2590,3525,3526,3143,3080,813,2594,3177,3156,3527,3158,3164,3528,3385,3530,3498,3532,3132,3139,3533,10]);
15850
15850
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"StatusBar",{enumerable:!0,get:function(){return t.StatusBar}}),Object.defineProperty(e,"setStatusBarStyle",{enumerable:!0,get:function(){return t.setStatusBarStyle}}),Object.defineProperty(e,"setStatusBarHidden",{enumerable:!0,get:function(){return t.setStatusBarHidden}});var t=r(d[0])},3429,[3430]);
15851
15851
  __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.StatusBar=s,Object.defineProperty(_e,"setStatusBarStyle",{enumerable:!0,get:function(){return c}}),Object.defineProperty(_e,"setStatusBarHidden",{enumerable:!0,get:function(){return f}});var t=e(r(d[0])),n=e(r(d[1])),u=e(r(d[2])),l=e(r(d[3])),o=r(d[4]);function s({style:e,hideTransitionAnimation:n,animated:s,hidden:c}){const f=(0,l.default)(),y=t.default.useMemo(()=>h(e,f),[e,f]);return(0,o.jsx)(u.default,{animated:s,hidden:c,barStyle:y,showHideTransition:'none'===n?void 0:n})}s.setStyle=(e,t)=>u.default.setBarStyle(h(e),t);const c=s.setStyle;s.setHidden=(e,t)=>u.default.setHidden(e,t);const f=s.setHidden;function h(e="auto",t=n.default?.getColorScheme()??'light'){t||(t='light');let u=e;return'auto'===e?u='light'===t?'dark':'light':'inverted'===e&&(u='light'===t?'light':'dark'),'light'===u?'light-content':'dark-content'}},3430,[17,222,259,275,10]);
15852
15852
  __d(function(g,r,_i,a,m,_e,d){"use strict";function n(n){return n&&n.__esModule?n:{default:n}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Orientation",{enumerable:!0,get:function(){return i.Orientation}}),Object.defineProperty(_e,"OrientationLock",{enumerable:!0,get:function(){return i.OrientationLock}}),Object.defineProperty(_e,"WebOrientationLock",{enumerable:!0,get:function(){return i.WebOrientationLock}}),Object.defineProperty(_e,"WebOrientation",{enumerable:!0,get:function(){return i.WebOrientation}}),Object.defineProperty(_e,"SizeClassIOS",{enumerable:!0,get:function(){return i.SizeClassIOS}}),_e.lockAsync=async function(n){if(!t.default.lockAsync)throw new e.UnavailabilityError('ScreenOrientation','lockAsync');if(!Object.values(i.OrientationLock).includes(n))throw new TypeError(`Invalid Orientation Lock: ${n}`);if(n===i.OrientationLock.OTHER)return;await t.default.lockAsync(n),c=n},_e.lockPlatformAsync=async function(n){if(!t.default.lockPlatformAsync)throw new e.UnavailabilityError('ScreenOrientation','lockPlatformAsync');const{screenOrientationConstantAndroid:o,screenOrientationArrayIOS:s,screenOrientationLockWeb:l}=n;let u;if(l){if(!Object.values(i.WebOrientationLock).includes(l))throw new TypeError(`Invalid Web Orientation Lock: ${l}`);u=l}if(!u)throw new TypeError('lockPlatformAsync cannot be called with undefined option properties');await t.default.lockPlatformAsync(u),c=i.OrientationLock.OTHER},_e.unlockAsync=async function(){if(!t.default.lockAsync)throw new e.UnavailabilityError('ScreenOrientation','lockAsync');await t.default.lockAsync(i.OrientationLock.DEFAULT)},_e.getOrientationAsync=s,_e.getOrientationLockAsync=l,_e.getPlatformOrientationLockAsync=async function(){return{screenOrientationLockWeb:await t.default.getPlatformOrientationLockAsync()}},_e.supportsOrientationLockAsync=async function(n){if(!t.default.supportsOrientationLockAsync)throw new e.UnavailabilityError('ScreenOrientation','supportsOrientationLockAsync');if(!Object.values(i.OrientationLock).includes(n))throw new TypeError(`Invalid Orientation Lock: ${n}`);return await t.default.supportsOrientationLockAsync(n)},_e.addOrientationChangeListener=function(n){if('function'!=typeof n)throw new TypeError(`addOrientationChangeListener cannot be called with ${n}`);const e=u(n);return o.push(e),e},_e.removeOrientationChangeListeners=function(){let n=o.length;for(;n--;){const e=o[n];e?.remove(),o.pop()}},_e.removeOrientationChangeListener=function(n){if(!n||!n.remove)throw new TypeError("Must pass in a valid subscription");n.remove(),o=o.filter(e=>e!==n)};var e=r(d[0]),t=(n(r(d[1])),n(r(d[2]))),i=r(d[3]);let o=[],c=i.OrientationLock.UNKNOWN;async function s(){if(!t.default.getOrientationAsync)throw new e.UnavailabilityError('ScreenOrientation','getOrientationAsync');return await t.default.getOrientationAsync()}async function l(){return t.default.getOrientationLockAsync?await t.default.getOrientationLockAsync():c}function u(n){return t.default.addListener('expoDidUpdateDimensions',async e=>{n(e)})}},3431,[289,148,3432,3433]);
@@ -15872,13 +15872,13 @@ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{v
15872
15872
  __d(function(g,r,i,a,_m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.handleBridgeMessage=o,_e.useEmbedIframe=function(s){const{serverUrl:t,mode:u}=s,c=(0,e.useRef)(null),d=t?new URL(t).origin:null,l=t?(0,n.buildGridEmbedUrl)(t,u):null,f=(0,e.useRef)(s.buildConfig);f.current=s.buildConfig;const m=(0,e.useRef)(s.onHostMessage);m.current=s.onHostMessage;const b=(0,e.useCallback)(e=>{c.current?.contentWindow?.postMessage(e,d??'*')},[d]);(0,e.useEffect)(()=>{const e=e=>{e.source===c.current?.contentWindow&&(d&&e.origin!==d||o(e.data,{postToEmbed:b,onHostMessage:e=>m.current(e),buildConfig:()=>f.current()}))};return window.addEventListener('message',e),()=>window.removeEventListener('message',e)},[d,b]);const p=(0,e.useCallback)(e=>{b({type:'embed-command',command:e})},[b]),C=(0,e.useCallback)(()=>{c.current&&l&&(c.current.src=l)},[l]);return{iframeRef:c,src:l,postCommand:p,reload:C}};var e=r(_d[0]),n=r(_d[1]);function o(e,n){if('object'!=typeof e||null===e)return;'embed-ready'!==e.type?n.onHostMessage(e):n.postToEmbed({type:'embed-config',config:n.buildConfig()})}},3451,[17,3452]);
15873
15873
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.buildGridEmbedUrl=function(t,n,o){let s=`${t.replace(/\/+$/,'')}${c}?mode=${n}`;o?.devices&&o.devices.length>0&&(s+=`&devices=${o.devices.join(',')}`);o?.cacheBust&&(s+=`&_cb=${encodeURIComponent(o.cacheBust)}`);return s};const c='/addon/stream-broker/embed/'},3452,[]);
15874
15874
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.playbackCommandToScript=function(c){return`try{${(()=>{switch(c.kind){case'playRecorded':return`window.__camstackEmbed.playRecorded(${c.deviceId},${c.epochMs},${JSON.stringify(c.profile)})`;case'seek':return`window.__camstackEmbed.seek(${c.epochMs})`;case'scrubStart':return"window.__camstackEmbed.scrubStart()";case'scrubTo':return`window.__camstackEmbed.scrubTo(${c.epochMs})`;case'scrubEnd':return`window.__camstackEmbed.scrubEnd(${c.epochMs})`;case'scrubCommit':return`window.__camstackEmbed.scrubCommit(${c.epochMs})`;case'setRate':return`window.__camstackEmbed.setRate(${c.rate})`;case'stepFrame':return`window.__camstackEmbed.stepFrame(${c.dir})`;case'goLive':return"window.__camstackEmbed.goLive()"}})()}}catch(e){}; true;`},e.playbackCommandToMessage=function(c){switch(c.kind){case'playRecorded':return{kind:'playRecorded',deviceId:c.deviceId,epochMs:c.epochMs,profile:c.profile};case'seek':return{kind:'seek',value:c.epochMs};case'scrubStart':return{kind:'scrubStart'};case'scrubTo':return{kind:'scrubTo',value:c.epochMs};case'scrubEnd':return{kind:'scrubEnd',value:c.epochMs};case'scrubCommit':return{kind:'scrubCommit',value:c.epochMs};case'setRate':return{kind:'setRate',value:c.rate};case'stepFrame':return{kind:'stepFrame',dir:c.dir};case'goLive':return{kind:'goLive'}}}},3453,[]);
15875
- __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useStreamZoom=function(){const S=(0,l.useSharedValue)(0),x=(0,l.useSharedValue)(0),T=(0,l.useSharedValue)(1),M=(0,l.useSharedValue)(1),f=(0,l.useSharedValue)(0),w=(0,l.useSharedValue)(0),A=(0,l.useSharedValue)(0),k=(0,l.useSharedValue)(0),L=(0,l.useSharedValue)(1),E=(0,e.useCallback)(e=>{S.value=e.nativeEvent.layout.width,x.value=e.nativeEvent.layout.height},[S,x]),C=(0,e.useMemo)(()=>t.Gesture.Pinch().onStart((function({_worklet_4354627337672_init_data:e,pinchStartScale:t,savedScale:l}){const s=function(){t.value=l.value};return s.__closure={pinchStartScale:t,savedScale:l},s.__workletHash=4354627337672,s.__initData=e,s})({_worklet_4354627337672_init_data:_,pinchStartScale:L,savedScale:M})).onUpdate((function({_worklet_8635015198446_init_data:e,layoutWidth:t,layoutHeight:l,MIN_LAYOUT:s,pinchStartScale:u,MIN_SCALE:n,MAX_SCALE:o,scale:c,tx:_,ty:v,savedTx:h,savedTy:y}){const S=function(e){const S=t.value,x=l.value;if(S<s||x<s)return;const T=u.value,M=Math.max(n,Math.min(o,T*e.scale));if(c.value=M,M<=n)_.value=0,v.value=0;else{const t=e.focalX-S/2,l=e.focalY-x/2,s=M/T,u=t-s*(t-h.value),n=l-s*(l-y.value),o=S*(M-1)/2,c=x*(M-1)/2;_.value=Math.max(-o,Math.min(o,u)),v.value=Math.max(-c,Math.min(c,n))}};return S.__closure={layoutWidth:t,layoutHeight:l,MIN_LAYOUT:s,pinchStartScale:u,MIN_SCALE:n,MAX_SCALE:o,scale:c,tx:_,ty:v,savedTx:h,savedTy:y},S.__workletHash=8635015198446,S.__initData=e,S})({_worklet_8635015198446_init_data:c,layoutWidth:S,layoutHeight:x,MIN_LAYOUT:n,pinchStartScale:L,MIN_SCALE:s,MAX_SCALE:u,scale:T,tx:f,ty:w,savedTx:A,savedTy:k})).onEnd((function({_worklet_12142156306058_init_data:e,savedScale:t,scale:l,savedTx:s,tx:u,savedTy:n,ty:o}){const c=function(){t.value=l.value,s.value=u.value,n.value=o.value};return c.__closure={savedScale:t,scale:l,savedTx:s,tx:u,savedTy:n,ty:o},c.__workletHash=0xb0b10e9d68a,c.__initData=e,c})({_worklet_12142156306058_init_data:o,savedScale:M,scale:T,savedTx:A,tx:f,savedTy:k,ty:w})),[L,M,S,x,T,f,w,A,k]),p=(0,e.useMemo)(()=>t.Gesture.Pan().maxPointers(1).minDistance(4).onUpdate((function({_worklet_13257920290229_init_data:e,scale:t,MIN_SCALE:l,layoutWidth:s,layoutHeight:u,tx:n,savedTx:o,ty:c,savedTy:_}){const v=function(e){if(t.value<=l)return;const v=s.value,h=u.value,y=t.value,S=v*(y-1)/2,x=h*(y-1)/2;n.value=Math.max(-S,Math.min(S,o.value+e.translationX)),c.value=Math.max(-x,Math.min(x,_.value+e.translationY))};return v.__closure={scale:t,MIN_SCALE:l,layoutWidth:s,layoutHeight:u,tx:n,savedTx:o,ty:c,savedTy:_},v.__workletHash=0xc0ed9a11db5,v.__initData=e,v})({_worklet_13257920290229_init_data:h,scale:T,MIN_SCALE:s,layoutWidth:S,layoutHeight:x,tx:f,savedTx:A,ty:w,savedTy:k})).onEnd((function({_worklet_1622766134377_init_data:e,savedTx:t,tx:l,savedTy:s,ty:u}){const n=function(){t.value=l.value,s.value=u.value};return n.__closure={savedTx:t,tx:l,savedTy:s,ty:u},n.__workletHash=1622766134377,n.__initData=e,n})({_worklet_1622766134377_init_data:v,savedTx:A,tx:f,savedTy:k,ty:w})),[T,S,x,f,w,A,k]),Y=(0,l.useAnimatedStyle)((function({_worklet_8154600780768_init_data:e,tx:t,ty:l,scale:s}){const u=()=>({transform:[{translateX:t.value},{translateY:l.value},{scale:s.value}]});return u.__closure={tx:t,ty:l,scale:s},u.__workletHash=8154600780768,u.__initData=e,u})({_worklet_8154600780768_init_data:y,tx:f,ty:w,scale:T})),I=(0,e.useCallback)(()=>{T.value=(0,l.withTiming)(1),M.value=1,f.value=(0,l.withTiming)(0),w.value=(0,l.withTiming)(0),A.value=0,k.value=0},[T,M,f,w,A,k]),N=(0,e.useCallback)((...e)=>t.Gesture.Simultaneous(C,p,...e),[C,p]);return{scale:T,videoStyle:Y,onLayout:E,resetZoom:I,composeWith:N}};var e=r(d[0]),t=r(d[1]),l=r(d[2]);const s=1,u=4,n=10,o={code:"function useStreamZoomTs1(){const{savedScale,scale,savedTx,tx,savedTy,ty}=this.__closure;savedScale.value=scale.value;savedTx.value=tx.value;savedTy.value=ty.value;}"},c={code:"function useStreamZoomTs2(e_0){const{layoutWidth,layoutHeight,MIN_LAYOUT,pinchStartScale,MIN_SCALE,MAX_SCALE,scale,tx,ty,savedTx,savedTy}=this.__closure;const w=layoutWidth.value;const h=layoutHeight.value;if(w<MIN_LAYOUT||h<MIN_LAYOUT)return;const s0=pinchStartScale.value;const s1=Math.max(MIN_SCALE,Math.min(MAX_SCALE,s0*e_0.scale));scale.value=s1;if(s1<=MIN_SCALE){tx.value=0;ty.value=0;}else{const dx=e_0.focalX-w/2;const dy=e_0.focalY-h/2;const k=s1/s0;const ptx=dx-k*(dx-savedTx.value);const pty=dy-k*(dy-savedTy.value);const limX=w*(s1-1)/2;const limY=h*(s1-1)/2;tx.value=Math.max(-limX,Math.min(limX,ptx));ty.value=Math.max(-limY,Math.min(limY,pty));}}"},_={code:"function useStreamZoomTs3(){const{pinchStartScale,savedScale}=this.__closure;pinchStartScale.value=savedScale.value;}"},v={code:"function useStreamZoomTs4(){const{savedTx,tx,savedTy,ty}=this.__closure;savedTx.value=tx.value;savedTy.value=ty.value;}"},h={code:"function useStreamZoomTs5(e_1){const{scale,MIN_SCALE,layoutWidth,layoutHeight,tx,savedTx,ty,savedTy}=this.__closure;if(scale.value<=MIN_SCALE)return;const w_0=layoutWidth.value;const h_0=layoutHeight.value;const s=scale.value;const limX_0=w_0*(s-1)/2;const limY_0=h_0*(s-1)/2;tx.value=Math.max(-limX_0,Math.min(limX_0,savedTx.value+e_1.translationX));ty.value=Math.max(-limY_0,Math.min(limY_0,savedTy.value+e_1.translationY));}"},y={code:"function useStreamZoomTs6(){const{tx,ty,scale}=this.__closure;return{transform:[{translateX:tx.value},{translateY:ty.value},{scale:scale.value}]};}"}},3454,[17,3242,2714]);
15875
+ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useStreamZoom=function(){const S=(0,l.useSharedValue)(0),x=(0,l.useSharedValue)(0),T=(0,l.useSharedValue)(1),M=(0,l.useSharedValue)(1),f=(0,l.useSharedValue)(0),w=(0,l.useSharedValue)(0),A=(0,l.useSharedValue)(0),k=(0,l.useSharedValue)(0),L=(0,l.useSharedValue)(1),E=(0,e.useCallback)(e=>{S.value=e.nativeEvent.layout.width,x.value=e.nativeEvent.layout.height},[S,x]),C=(0,e.useMemo)(()=>t.Gesture.Pinch().onStart((function({_worklet_4354627337672_init_data:e,pinchStartScale:t,savedScale:l}){const s=function(){t.value=l.value};return s.__closure={pinchStartScale:t,savedScale:l},s.__workletHash=4354627337672,s.__initData=e,s})({_worklet_4354627337672_init_data:_,pinchStartScale:L,savedScale:M})).onUpdate((function({_worklet_8635015198446_init_data:e,layoutWidth:t,layoutHeight:l,MIN_LAYOUT:s,pinchStartScale:u,MIN_SCALE:n,MAX_SCALE:o,scale:c,tx:_,ty:v,savedTx:h,savedTy:y}){const S=function(e){const S=t.value,x=l.value;if(S<s||x<s)return;const T=u.value,M=Math.max(n,Math.min(o,T*e.scale));if(c.value=M,M<=n)_.value=0,v.value=0;else{const t=e.focalX-S/2,l=e.focalY-x/2,s=M/T,u=t-s*(t-h.value),n=l-s*(l-y.value),o=S*(M-1)/2,c=x*(M-1)/2;_.value=Math.max(-o,Math.min(o,u)),v.value=Math.max(-c,Math.min(c,n))}};return S.__closure={layoutWidth:t,layoutHeight:l,MIN_LAYOUT:s,pinchStartScale:u,MIN_SCALE:n,MAX_SCALE:o,scale:c,tx:_,ty:v,savedTx:h,savedTy:y},S.__workletHash=8635015198446,S.__initData=e,S})({_worklet_8635015198446_init_data:c,layoutWidth:S,layoutHeight:x,MIN_LAYOUT:n,pinchStartScale:L,MIN_SCALE:s,MAX_SCALE:u,scale:T,tx:f,ty:w,savedTx:A,savedTy:k})).onEnd((function({_worklet_12142156306058_init_data:e,savedScale:t,scale:l,savedTx:s,tx:u,savedTy:n,ty:o}){const c=function(){t.value=l.value,s.value=u.value,n.value=o.value};return c.__closure={savedScale:t,scale:l,savedTx:s,tx:u,savedTy:n,ty:o},c.__workletHash=0xb0b10e9d68a,c.__initData=e,c})({_worklet_12142156306058_init_data:o,savedScale:M,scale:T,savedTx:A,tx:f,savedTy:k,ty:w})),[L,M,S,x,T,f,w,A,k]),p=(0,e.useMemo)(()=>t.Gesture.Pan().maxPointers(1).minDistance(4).onUpdate((function({_worklet_13257920290229_init_data:e,scale:t,MIN_SCALE:l,layoutWidth:s,layoutHeight:u,tx:n,savedTx:o,ty:c,savedTy:_}){const v=function(e){if(t.value<=l)return;const v=s.value,h=u.value,y=t.value,S=v*(y-1)/2,x=h*(y-1)/2;n.value=Math.max(-S,Math.min(S,o.value+e.translationX)),c.value=Math.max(-x,Math.min(x,_.value+e.translationY))};return v.__closure={scale:t,MIN_SCALE:l,layoutWidth:s,layoutHeight:u,tx:n,savedTx:o,ty:c,savedTy:_},v.__workletHash=0xc0ed9a11db5,v.__initData=e,v})({_worklet_13257920290229_init_data:h,scale:T,MIN_SCALE:s,layoutWidth:S,layoutHeight:x,tx:f,savedTx:A,ty:w,savedTy:k})).onEnd((function({_worklet_1622766134377_init_data:e,savedTx:t,tx:l,savedTy:s,ty:u}){const n=function(){t.value=l.value,s.value=u.value};return n.__closure={savedTx:t,tx:l,savedTy:s,ty:u},n.__workletHash=1622766134377,n.__initData=e,n})({_worklet_1622766134377_init_data:v,savedTx:A,tx:f,savedTy:k,ty:w})),[T,S,x,f,w,A,k]),Y=(0,l.useAnimatedStyle)((function({_worklet_8154600780768_init_data:e,tx:t,ty:l,scale:s}){const u=()=>({transform:[{translateX:t.value},{translateY:l.value},{scale:s.value}]});return u.__closure={tx:t,ty:l,scale:s},u.__workletHash=8154600780768,u.__initData=e,u})({_worklet_8154600780768_init_data:y,tx:f,ty:w,scale:T})),I=(0,e.useCallback)(()=>{T.value=(0,l.withTiming)(1),M.value=1,f.value=(0,l.withTiming)(0),w.value=(0,l.withTiming)(0),A.value=0,k.value=0},[T,M,f,w,A,k]),N=(0,e.useCallback)((...e)=>t.Gesture.Simultaneous(C,p,...e),[C,p]);return{scale:T,videoStyle:Y,onLayout:E,resetZoom:I,composeWith:N}};var e=r(d[0]),t=r(d[1]),l=r(d[2]);const s=1,u=4,n=10,o={code:"function useStreamZoomTs1(){const{savedScale,scale,savedTx,tx,savedTy,ty}=this.__closure;savedScale.value=scale.value;savedTx.value=tx.value;savedTy.value=ty.value;}"},c={code:"function useStreamZoomTs2(e_0){const{layoutWidth,layoutHeight,MIN_LAYOUT,pinchStartScale,MIN_SCALE,MAX_SCALE,scale,tx,ty,savedTx,savedTy}=this.__closure;const w=layoutWidth.value;const h=layoutHeight.value;if(w<MIN_LAYOUT||h<MIN_LAYOUT)return;const s0=pinchStartScale.value;const s1=Math.max(MIN_SCALE,Math.min(MAX_SCALE,s0*e_0.scale));scale.value=s1;if(s1<=MIN_SCALE){tx.value=0;ty.value=0;}else{const dx=e_0.focalX-w/2;const dy=e_0.focalY-h/2;const k=s1/s0;const ptx=dx-k*(dx-savedTx.value);const pty=dy-k*(dy-savedTy.value);const limX=w*(s1-1)/2;const limY=h*(s1-1)/2;tx.value=Math.max(-limX,Math.min(limX,ptx));ty.value=Math.max(-limY,Math.min(limY,pty));}}"},_={code:"function useStreamZoomTs3(){const{pinchStartScale,savedScale}=this.__closure;pinchStartScale.value=savedScale.value;}"},v={code:"function useStreamZoomTs4(){const{savedTx,tx,savedTy,ty}=this.__closure;savedTx.value=tx.value;savedTy.value=ty.value;}"},h={code:"function useStreamZoomTs5(e_1){const{scale,MIN_SCALE,layoutWidth,layoutHeight,tx,savedTx,ty,savedTy}=this.__closure;if(scale.value<=MIN_SCALE)return;const w_0=layoutWidth.value;const h_0=layoutHeight.value;const s=scale.value;const limX_0=w_0*(s-1)/2;const limY_0=h_0*(s-1)/2;tx.value=Math.max(-limX_0,Math.min(limX_0,savedTx.value+e_1.translationX));ty.value=Math.max(-limY_0,Math.min(limY_0,savedTy.value+e_1.translationY));}"},y={code:"function useStreamZoomTs6(){const{tx,ty,scale}=this.__closure;return{transform:[{translateX:tx.value},{translateY:ty.value},{scale:scale.value}]};}"}},3454,[17,3241,2714]);
15876
15876
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useIntercom=function(s){const o=(0,t.c)(10),[u,l]=(0,n.useState)("idle");let f,b,M;o[0]!==s?(f=()=>{const t=(0,c.getEmbedChannel)(s);if(t)return l(t.getMicState()),t.subscribeMicState(l)},b=[s],o[0]=s,o[1]=f,o[2]=b):(f=o[1],b=o[2]);(0,n.useEffect)(f,b),o[3]!==s?(M=()=>{const t=(0,c.getEmbedChannel)(s);if(!t)return;const n=t.getMicState();"starting"!==n&&t.postCommand({kind:"setMic",value:"talking"!==n})},o[3]=s,o[4]=M):M=o[4];const k=M,S="talking"===u,_="starting"===u,v="error"===u?"intercom error":null;let C;o[5]!==S||o[6]!==_||o[7]!==v||o[8]!==k?(C={talking:S,busy:_,error:v,toggle:k},o[5]=S,o[6]=_,o[7]=v,o[8]=k,o[9]=C):C=o[9];return C};var t=r(d[0]),n=r(d[1]),c=r(d[2])},3455,[15,17,3450]);
15877
15877
  __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.StreamOverlayControls=function(e){const s=(0,t.c)(58),{visible:l,onRequestHide:d,paused:p,onTogglePause:h,muted:x,onToggleMute:j,hasTwoWayAudio:T,talking:S,onToggleTalk:B,onStartPip:C,fullscreen:M,onToggleFullscreen:R}=e,{t:_}=(0,b.useTranslation)(),k=(0,n.useRef)(null);let I,z,A;s[0]!==d||s[1]!==p||s[2]!==l?(I=()=>(k.current&&clearTimeout(k.current),l&&!p&&(k.current=setTimeout(d,v)),()=>{k.current&&clearTimeout(k.current)}),z=[l,p,d],s[0]=d,s[1]=p,s[2]=l,s[3]=I,s[4]=z):(I=s[3],z=s[4]);(0,n.useEffect)(I,z),s[5]!==d||s[6]!==p?(A=e=>()=>{e(),k.current&&clearTimeout(k.current),p||(k.current=setTimeout(d,v))},s[5]=d,s[6]=p,s[7]=A):A=s[7];const E=A;if(!l)return null;const w=p?u.Play:u.Pause;let F,G,N;s[8]!==p||s[9]!==_?(F=_(p?"v2.streamBar.play":"v2.streamBar.pause"),s[8]=p,s[9]=_,s[10]=F):F=s[10];s[11]!==h||s[12]!==E?(G=E(h),s[11]=h,s[12]=E,s[13]=G):G=s[13];s[14]!==w||s[15]!==F||s[16]!==G?(N=(0,f.jsx)(o.default,{style:P.center,pointerEvents:"box-none",children:(0,f.jsx)(y,{icon:w,label:F,big:!0,onPress:G})}),s[14]=w,s[15]=F,s[16]=G,s[17]=N):N=s[17];const O=x?u.VolumeX:u.Volume2;let V;s[18]!==x||s[19]!==_?(V=_(x?"v2.streamBar.unmute":"v2.streamBar.mute"),s[18]=x,s[19]=_,s[20]=V):V=s[20];const W=!x;let q,D,H,L;s[21]!==j||s[22]!==E?(q=E(j),s[21]=j,s[22]=E,s[23]=q):q=s[23];s[24]!==W||s[25]!==q||s[26]!==O||s[27]!==V?(D=(0,f.jsx)(y,{icon:O,label:V,active:W,onPress:q}),s[24]=W,s[25]=q,s[26]=O,s[27]=V,s[28]=D):D=s[28];s[29]!==T||s[30]!==B||s[31]!==E||s[32]!==_||s[33]!==S?(H=T?(0,f.jsx)(y,{icon:S?u.Mic:u.MicOff,label:_(S?"v2.streamBar.talkStop":"v2.streamBar.talkStart"),active:S,onPress:E(B)}):null,s[29]=T,s[30]=B,s[31]=E,s[32]=_,s[33]=S,s[34]=H):H=s[34];s[35]!==C||s[36]!==E||s[37]!==_?(L=null,s[35]=C,s[36]=E,s[37]=_,s[38]=L):L=s[38];const X=M?u.Minimize2:u.Maximize2;let J,K,Q,U,Y;s[39]!==M||s[40]!==_?(J=_(M?"v2.streamBar.exitFullscreen":"v2.streamBar.fullscreen"),s[39]=M,s[40]=_,s[41]=J):J=s[41];s[42]!==R||s[43]!==E?(K=E(R),s[42]=R,s[43]=E,s[44]=K):K=s[44];s[45]!==M||s[46]!==X||s[47]!==J||s[48]!==K?(Q=(0,f.jsx)(y,{icon:X,label:J,active:M,onPress:K}),s[45]=M,s[46]=X,s[47]=J,s[48]=K,s[49]=Q):Q=s[49];s[50]!==D||s[51]!==H||s[52]!==L||s[53]!==Q?(U=(0,f.jsxs)(o.default,{style:P.bottomRight,pointerEvents:"box-none",children:[D,H,L,Q]}),s[50]=D,s[51]=H,s[52]=L,s[53]=Q,s[54]=U):U=s[54];s[55]!==U||s[56]!==N?(Y=(0,f.jsxs)(o.default,{style:c.default.absoluteFill,pointerEvents:"box-none",children:[N,U]}),s[55]=U,s[56]=N,s[57]=Y):Y=s[57];return Y};var t=r(_d[0]),n=r(_d[1]),o=e(r(_d[2])),s=e(r(_d[3])),l=e(r(_d[4]));r(_d[5]);var c=e(r(_d[6])),u=r(_d[7]),b=r(_d[8]),d=r(_d[9]),f=r(_d[10]);const v=3500,p='rgba(0,0,0,0.55)',h='rgba(59,130,246,0.85)',x='#fafaf9';function y(e){const n=(0,t.c)(17),{icon:o,label:c,onPress:u,big:b,active:d,badge:v}=e,y=void 0!==b&&b,j=void 0!==d&&d,T=y?52:40;let S,B;n[0]!==j?(S={selected:j},n[0]=j,n[1]=S):S=n[1],n[2]!==j||n[3]!==T?(B=e=>{const{pressed:t}=e;return[P.btn,{width:T,height:T,borderRadius:T/2,backgroundColor:j?h:p,opacity:t?.7:1}]},n[2]=j,n[3]=T,n[4]=B):B=n[4];const C=y?22:18;let M,R,_;return n[5]!==o||n[6]!==C?(M=(0,f.jsx)(o,{size:C,color:x}),n[5]=o,n[6]=C,n[7]=M):M=n[7],n[8]!==v?(R=v?(0,f.jsx)(s.default,{style:P.badge,children:v}):null,n[8]=v,n[9]=R):R=n[9],n[10]!==c||n[11]!==u||n[12]!==S||n[13]!==B||n[14]!==M||n[15]!==R?(_=(0,f.jsxs)(l.default,{onPress:u,accessibilityRole:"button",accessibilityLabel:c,accessibilityState:S,hitSlop:6,style:B,children:[M,R]}),n[10]=c,n[11]=u,n[12]=S,n[13]=B,n[14]=M,n[15]=R,n[16]=_):_=n[16],_}const P=c.default.create({center:{position:'absolute',top:0,left:0,right:0,bottom:0,alignItems:'center',justifyContent:'center'},bottomRight:{position:'absolute',right:d.SPACING.md,bottom:d.SPACING.md,flexDirection:'row',gap:d.SPACING.md},btn:{alignItems:'center',justifyContent:'center'},badge:{position:'absolute',right:2,bottom:2,color:x,fontSize:9,fontWeight:'700'}})},3456,[15,17,20,112,252,136,33,813,786,2589,10]);
15878
15878
  __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.RecordedTransportBar=function(e){const c=(0,t.c)(51),{rate:p,paused:h,onJogBack:x,onJogForward:S,onStepFrame:R,onSelectRate:_}=e,{t:v}=(0,u.useTranslation)(),[B,T]=(0,l.useState)(!1),I=1!==p;let k;c[0]!==h?(k=(0,f.shouldShowStepControls)(h),c[0]=h,c[1]=k):k=c[1];const A=k;let L,P,C,z,w,H;c[2]===Symbol.for("react.memo_cache_sentinel")?(L=(0,b.jsx)(o.default,{style:j.jogText,children:"\u221210s"}),c[2]=L):L=c[2];c[3]!==x?(P=(0,b.jsx)(s.default,{onPress:x,style:j.jogButton,accessibilityRole:"button",accessibilityLabel:"-10s",children:L}),c[3]=x,c[4]=P):P=c[4];c[5]!==R||c[6]!==A||c[7]!==v?(C=A?(0,b.jsx)(s.default,{onPress:()=>R(-1),style:j.jogButton,accessibilityRole:"button",accessibilityLabel:v("v2.playback.prevFrame"),children:(0,b.jsx)(o.default,{style:j.jogText,children:"\u2039|"})}):null,c[5]=R,c[6]=A,c[7]=v,c[8]=C):C=c[8];c[9]!==C?(z=(0,b.jsx)(n.default,{style:j.stepSlot,children:C}),c[9]=C,c[10]=z):z=c[10];c[11]!==I||c[12]!==B||c[13]!==_||c[14]!==p||c[15]!==v?(w=B?(0,b.jsxs)(n.default,{style:j.menu,accessibilityRole:"menu",children:[f.PLAYBACK_RATE_OPTIONS.map(e=>{const t=e===p;return(0,b.jsx)(s.default,{onPress:()=>{_(e),T(!1)},style:[j.menuItem,t?j.menuItemActive:null],accessibilityRole:"menuitem",accessibilityState:{selected:t},accessibilityLabel:(0,f.formatRateLabel)(e),children:(0,b.jsx)(o.default,{style:j.menuItemText,children:(0,f.formatRateLabel)(e)})},e)}),(0,b.jsx)(o.default,{style:j.menuHint,children:v(I?"v2.playback.audioMuted":"v2.playback.audioOn")})]}):null,c[11]=I,c[12]=B,c[13]=_,c[14]=p,c[15]=v,c[16]=w):w=c[16];c[17]===Symbol.for("react.memo_cache_sentinel")?(H=()=>T(y),c[17]=H):H=c[17];const V=1!==p?j.jogButtonActive:null;let W,F,O,M;c[18]!==V?(W=[j.jogButton,V],c[18]=V,c[19]=W):W=c[19];c[20]!==B?(F={expanded:B},c[20]=B,c[21]=F):F=c[21];c[22]!==v?(O=v("v2.playback.speed"),c[22]=v,c[23]=O):O=c[23];c[24]!==p?(M=(0,f.formatRateLabel)(p),c[24]=p,c[25]=M):M=c[25];const J=`${M} \u25be`;let D,E,K,N,Y,$,q,G;c[26]!==J?(D=(0,b.jsx)(o.default,{style:j.jogText,children:J}),c[26]=J,c[27]=D):D=c[27];c[28]!==F||c[29]!==O||c[30]!==D||c[31]!==W?(E=(0,b.jsx)(s.default,{onPress:H,style:W,accessibilityRole:"button",accessibilityState:F,accessibilityLabel:O,children:D}),c[28]=F,c[29]=O,c[30]=D,c[31]=W,c[32]=E):E=c[32];c[33]!==E||c[34]!==w?(K=(0,b.jsxs)(n.default,{style:j.speedAnchor,children:[w,E]}),c[33]=E,c[34]=w,c[35]=K):K=c[35];c[36]!==R||c[37]!==A||c[38]!==v?(N=A?(0,b.jsx)(s.default,{onPress:()=>R(1),style:j.jogButton,accessibilityRole:"button",accessibilityLabel:v("v2.playback.nextFrame"),children:(0,b.jsx)(o.default,{style:j.jogText,children:"|\u203a"})}):null,c[36]=R,c[37]=A,c[38]=v,c[39]=N):N=c[39];c[40]!==N?(Y=(0,b.jsx)(n.default,{style:j.stepSlot,children:N}),c[40]=N,c[41]=Y):Y=c[41];c[42]===Symbol.for("react.memo_cache_sentinel")?($=(0,b.jsx)(o.default,{style:j.jogText,children:"+10s"}),c[42]=$):$=c[42];c[43]!==S?(q=(0,b.jsx)(s.default,{onPress:S,style:j.jogButton,accessibilityRole:"button",accessibilityLabel:"+10s",children:$}),c[43]=S,c[44]=q):q=c[44];c[45]!==K||c[46]!==Y||c[47]!==q||c[48]!==P||c[49]!==z?(G=(0,b.jsxs)(n.default,{style:j.row,children:[P,z,K,Y,q]}),c[45]=K,c[46]=Y,c[47]=q,c[48]=P,c[49]=z,c[50]=G):G=c[50];return G};var t=r(d[0]),l=r(d[1]),n=e(r(d[2])),o=e(r(d[3])),s=e(r(d[4])),c=e(r(d[5])),u=r(d[6]),f=r(d[7]),b=r(d[8]);function y(e){return!e}const j=c.default.create({row:{flexDirection:'row',alignItems:'center',gap:10},jogButton:{paddingHorizontal:12,paddingVertical:6,borderRadius:14,backgroundColor:'#00000099'},jogButtonActive:{backgroundColor:'rgba(59,130,246,0.85)'},jogText:{color:'#ffffff',fontSize:12,fontWeight:'700',fontVariant:['tabular-nums']},stepSlot:{minWidth:44,alignItems:'center',justifyContent:'center'},speedAnchor:{position:'relative',alignItems:'center'},menu:{position:'absolute',bottom:'100%',marginBottom:8,alignSelf:'center',minWidth:96,paddingVertical:4,borderRadius:12,backgroundColor:'#000000cc'},menuItem:{paddingHorizontal:14,paddingVertical:8,alignItems:'center'},menuItemActive:{backgroundColor:'rgba(59,130,246,0.85)'},menuItemText:{color:'#ffffff',fontSize:13,fontWeight:'700',fontVariant:['tabular-nums']},menuHint:{color:'#d4d4d8',fontSize:10,fontWeight:'600',textAlign:'center',paddingHorizontal:10,paddingTop:4,paddingBottom:2}})},3457,[15,17,20,112,252,33,786,3458,10]);
15879
15879
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"PLAYBACK_RATE_OPTIONS",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"MIN_PLAYBACK_RATE",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"MAX_PLAYBACK_RATE",{enumerable:!0,get:function(){return u}}),e.formatRateLabel=function(t){return`${t}\xd7`},e.shouldShowStepControls=function(t){return t},e.isSupportedPlaybackRate=function(t){return Number.isFinite(t)&&t>=n&&t<=u};const t=[.25,.5,1,1.5,2,4],n=.25,u=4},3458,[]);
15880
15880
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.QualityPicker=function(h){const v=(0,t.c)(21),{value:f,onChange:p,onClose:y,topOffset:C,align:b,maxWidth:x}=h,{t:_}=(0,l.useTranslation)();let j;v[0]!==_?(j=c.map(t=>({value:t,label:_((0,s.qualityLabelKey)(t))})),v[0]=_,v[1]=j):j=v[1];const O=j;let P,q,L,W,k;v[2]!==_?(P=_("v2.theater.quality"),v[2]=_,v[3]=P):P=v[3];v[4]!==_?(q=_("v2.cameraDetail.close"),v[4]=_,v[5]=q):q=v[5];v[6]!==p||v[7]!==y?(L=t=>{p(t),y()},v[6]=p,v[7]=y,v[8]=L):L=v[8];v[9]!==O||v[10]!==L||v[11]!==f?(W=(0,u.jsx)(o.SegmentedControl,{options:O,value:f,onChange:L}),v[9]=O,v[10]=L,v[11]=f,v[12]=W):W=v[12];v[13]!==b||v[14]!==x||v[15]!==y||v[16]!==P||v[17]!==q||v[18]!==W||v[19]!==C?(k=(0,u.jsx)(n.FloatingPanel,{title:P,onClose:y,closeLabel:q,topOffset:C,align:b,maxWidth:x,children:W}),v[13]=b,v[14]=x,v[15]=y,v[16]=P,v[17]=q,v[18]=W,v[19]=C,v[20]=k):k=v[20];return k};var t=r(d[0]);r(d[1]);var l=r(d[2]),n=r(d[3]),o=r(d[4]),s=r(d[5]),u=r(d[6]);const c=['auto','high','mid','low']},3459,[15,17,786,3460,3176,3461,10]);
15881
- __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.FloatingPanel=function(e){const s=(0,t.c)(37),{title:b,onClose:C,closeLabel:j,topOffset:I,align:v,maxWidth:w,children:P}=e,S=void 0===v?"center":v,{colors:O}=(0,h.useTheme)(),A=(0,c.useAnimatedStyle)((function({_worklet_4446473903605_init_data:e,topOffset:t}){const o=()=>({top:t.value});return o.__closure={topOffset:t},o.__workletHash=4446473903605,o.__initData=e,o})({_worklet_4446473903605_init_data:p,topOffset:I})),W="right"===S?y.anchorRight:null;let G,M,N,R,k,z,B,D,H,L,T,F,V;s[0]!==A||s[1]!==W?(G=[y.anchor,W,A],s[0]=A,s[1]=W,s[2]=G):G=s[2];s[3]!==w?(M=void 0!==w?{maxWidth:w}:null,s[3]=w,s[4]=M):M=s[4];s[5]!==O.border||s[6]!==O.surface?(N={backgroundColor:O.surface,borderColor:O.border},s[5]=O.border,s[6]=O.surface,s[7]=N):N=s[7];s[8]!==M||s[9]!==N?(R=[y.card,M,N],s[8]=M,s[9]=N,s[10]=R):R=s[10];s[11]!==O.border?(k=[y.header,{borderBottomColor:O.border}],s[11]=O.border,s[12]=k):k=s[12];s[13]!==O.foreground?(z=[y.title,{color:O.foreground}],s[13]=O.foreground,s[14]=z):z=s[14];s[15]!==z||s[16]!==b?(B=(0,_.jsx)(n.default,{style:z,numberOfLines:1,children:b}),s[15]=z,s[16]=b,s[17]=B):B=s[17];s[18]!==O.foregroundMuted?(D=(0,_.jsx)(f.X,{size:18,color:O.foregroundMuted}),s[18]=O.foregroundMuted,s[19]=D):D=s[19];s[20]!==j||s[21]!==C||s[22]!==D?(H=(0,_.jsx)(l.default,{onPress:C,hitSlop:8,accessibilityLabel:j,style:x,children:D}),s[20]=j,s[21]=C,s[22]=D,s[23]=H):H=s[23];s[24]!==H||s[25]!==k||s[26]!==B?(L=(0,_.jsxs)(o.default,{style:k,children:[B,H]}),s[24]=H,s[25]=k,s[26]=B,s[27]=L):L=s[27];s[28]!==P?(T=(0,_.jsx)(o.default,{style:y.body,children:P}),s[28]=P,s[29]=T):T=s[29];s[30]!==L||s[31]!==T||s[32]!==R?(F=(0,_.jsxs)(o.default,{style:R,children:[L,T]}),s[30]=L,s[31]=T,s[32]=R,s[33]=F):F=s[33];s[34]!==F||s[35]!==G?(V=(0,_.jsx)(u.default.View,{style:G,pointerEvents:"box-none",children:F}),s[34]=F,s[35]=G,s[36]=V):V=s[36];return V};var t=r(d[0]);r(d[1]);var o=e(r(d[2])),n=e(r(d[3])),l=e(r(d[4])),s=e(r(d[5])),c=r(d[6]),u=e(c),f=r(d[7]),h=r(d[8]),b=r(d[9]),_=r(d[10]);const p={code:"function FloatingPanelTsx1(){const{topOffset}=this.__closure;return{top:topOffset.value};}"};function x(e){const{pressed:t}=e;return[y.closeBtn,{opacity:t?.6:1}]}const y=s.default.create({anchor:{position:'absolute',left:0,right:0,alignItems:'center',paddingHorizontal:b.SPACING.md},anchorRight:{alignItems:'flex-end'},card:{width:'100%',maxWidth:420,marginTop:b.SPACING.sm,borderRadius:b.RADIUS.xl,borderWidth:1,overflow:'hidden'},header:{flexDirection:'row',alignItems:'center',justifyContent:'space-between',paddingHorizontal:b.SPACING.lg,paddingVertical:b.SPACING.md,borderBottomWidth:1},title:{fontSize:14,fontWeight:'700',flex:1},closeBtn:{width:32,height:32,borderRadius:16,alignItems:'center',justifyContent:'center'},body:{padding:b.SPACING.md}})},3460,[15,17,20,112,252,33,2714,813,2587,2589,10]);
15881
+ __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.FloatingPanel=function(e){const c=(0,t.c)(38),{title:S,onClose:C,closeLabel:G,topOffset:y,align:O,maxWidth:M,children:v}=e,E=void 0===O?"center":O,{colors:j}=(0,b.useTheme)(),{height:T}=(0,f.default)(),k=(0,h.useSafeAreaInsets)(),L=(0,u.useAnimatedStyle)((function({_worklet_4446473903605_init_data:e,topOffset:t}){const o=()=>({top:t.value});return o.__closure={topOffset:t},o.__workletHash=4446473903605,o.__initData=e,o})({_worklet_4446473903605_init_data:N,topOffset:y})),W=(0,u.useAnimatedStyle)((function({_worklet_13270622034148_init_data:e,MIN_PANEL_HEIGHT:t,windowHeight:o,topOffset:n,insets:s,SPACING:l}){const c=()=>({maxHeight:Math.max(t,o-n.value-s.bottom-l.sm-l.lg)});return c.__closure={MIN_PANEL_HEIGHT:t,windowHeight:o,topOffset:n,insets:s,SPACING:l},c.__workletHash=0xc11ceb658e4,c.__initData=e,c})({_worklet_13270622034148_init_data:P,MIN_PANEL_HEIGHT:x,windowHeight:T,topOffset:y,insets:k,SPACING:p.SPACING})),R="right"===E?H.anchorRight:null;let z,B,D,V,F,U,X,q,J,K,Q,Y,Z;c[0]!==L||c[1]!==R?(z=[H.anchor,R,L],c[0]=L,c[1]=R,c[2]=z):z=c[2];c[3]!==M?(B=void 0!==M?{maxWidth:M}:null,c[3]=M,c[4]=B):B=c[4];c[5]!==j.border||c[6]!==j.surface?(D={backgroundColor:j.surface,borderColor:j.border},c[5]=j.border,c[6]=j.surface,c[7]=D):D=c[7];c[8]!==W||c[9]!==B||c[10]!==D?(V=[H.card,B,W,D],c[8]=W,c[9]=B,c[10]=D,c[11]=V):V=c[11];c[12]!==j.border?(F=[H.header,{borderBottomColor:j.border}],c[12]=j.border,c[13]=F):F=c[13];c[14]!==j.foreground?(U=[H.title,{color:j.foreground}],c[14]=j.foreground,c[15]=U):U=c[15];c[16]!==U||c[17]!==S?(X=(0,w.jsx)(n.default,{style:U,numberOfLines:1,children:S}),c[16]=U,c[17]=S,c[18]=X):X=c[18];c[19]!==j.foregroundMuted?(q=(0,w.jsx)(I.X,{size:18,color:j.foregroundMuted}),c[19]=j.foregroundMuted,c[20]=q):q=c[20];c[21]!==G||c[22]!==C||c[23]!==q?(J=(0,w.jsx)(s.default,{onPress:C,hitSlop:8,accessibilityLabel:G,style:A,children:q}),c[21]=G,c[22]=C,c[23]=q,c[24]=J):J=c[24];c[25]!==J||c[26]!==F||c[27]!==X?(K=(0,w.jsxs)(o.default,{style:F,children:[X,J]}),c[25]=J,c[26]=F,c[27]=X,c[28]=K):K=c[28];c[29]!==v?(Q=(0,w.jsx)(l.default,{style:H.scroll,contentContainerStyle:H.body,showsVerticalScrollIndicator:!0,children:v}),c[29]=v,c[30]=Q):Q=c[30];c[31]!==K||c[32]!==Q||c[33]!==V?(Y=(0,w.jsxs)(_.default.View,{style:V,children:[K,Q]}),c[31]=K,c[32]=Q,c[33]=V,c[34]=Y):Y=c[34];c[35]!==Y||c[36]!==z?(Z=(0,w.jsx)(_.default.View,{style:z,pointerEvents:"box-none",children:Y}),c[35]=Y,c[36]=z,c[37]=Z):Z=c[37];return Z};var t=r(d[0]);r(d[1]);var o=e(r(d[2])),n=e(r(d[3])),s=e(r(d[4])),l=e(r(d[5])),c=e(r(d[6])),f=e(r(d[7])),u=r(d[8]),_=e(u),h=r(d[9]),I=r(d[10]),b=r(d[11]),p=r(d[12]),w=r(d[13]);const x=160,N={code:"function FloatingPanelTsx1(){const{topOffset}=this.__closure;return{top:topOffset.value};}"},P={code:"function FloatingPanelTsx2(){const{MIN_PANEL_HEIGHT,windowHeight,topOffset,insets,SPACING}=this.__closure;return{maxHeight:Math.max(MIN_PANEL_HEIGHT,windowHeight-topOffset.value-insets.bottom-SPACING.sm-SPACING.lg)};}"};function A(e){const{pressed:t}=e;return[H.closeBtn,{opacity:t?.6:1}]}const H=c.default.create({anchor:{position:'absolute',left:0,right:0,alignItems:'center',paddingHorizontal:p.SPACING.md},anchorRight:{alignItems:'flex-end'},card:{width:'100%',maxWidth:420,marginTop:p.SPACING.sm,borderRadius:p.RADIUS.xl,borderWidth:1,overflow:'hidden'},header:{flexDirection:'row',alignItems:'center',justifyContent:'space-between',paddingHorizontal:p.SPACING.lg,paddingVertical:p.SPACING.md,borderBottomWidth:1},title:{fontSize:14,fontWeight:'700',flex:1},closeBtn:{width:32,height:32,borderRadius:16,alignItems:'center',justifyContent:'center'},scroll:{flexShrink:1},body:{padding:p.SPACING.md}})},3460,[15,17,20,112,252,147,33,277,2714,466,813,2587,2589,10]);
15882
15882
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.qualityLabelKey=function(t){switch(t){case'auto':return'v2.settings.qualityAuto';case'high':return'v2.settings.qualityHigh';case'mid':return'v2.settings.qualityMid';case'low':return'v2.settings.qualityLow'}}},3461,[]);
15883
15883
  __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.ScrubPlayerPreview=function({deviceId:e,atMs:n}){const[f,v]=(0,t.useState)(0),p=(0,s.useScrubThumbnail)(e,n),{token:b}=(0,o.useServer)(),U=(0,t.useRef)(null);null!==p&&(U.current={deviceId:e,result:p});const w=p??(U.current?.deviceId===e?U.current.result:null),[I,j]=(0,t.useState)(null),x=(0,t.useRef)(null);null!==w&&(x.current={deviceId:e,entry:w});const S=I?.deviceId===e?I.entry:null,P=(0,c.planScrubPreview)(S,w);(0,t.useEffect)(()=>{null!==w&&j(t=>t?.deviceId===e&&t.entry.sheetUrl===w.sheetUrl&&t.entry!==w?{deviceId:e,entry:w}:t)},[w,e]);const[_,k]=(0,t.useState)(null),M=(0,t.useRef)(null),W=b?{Authorization:`Bearer ${b}`}:void 0,A=e=>{const t=x.current;t&&t.entry.sheetUrl===e&&(null!==S&&S.sheetUrl!==e&&k(S),j(t))};if(null===P.show&&null===P.preloadUrl)return null;const C=P.show;M.current=C?.sheetUrl??null;const E=(e,t)=>{const n=f/e.thumb.tileWidth;return(0,h.jsx)(l.default,{style:[y.tileWindow,{width:f,height:e.thumb.tileHeight*n}],children:(0,h.jsx)(u.Image,{source:W?{uri:e.sheetUrl,headers:W}:{uri:e.sheetUrl},style:{position:'absolute',width:e.thumb.sheetWidth*n,height:e.thumb.sheetHeight*n,left:-e.thumb.x*n,top:-e.thumb.y*n},contentFit:"fill",cachePolicy:"memory-disk",onDisplay:t})})};return(0,h.jsxs)(l.default,{style:[y.cover,null!==C?y.coverActive:null],pointerEvents:"none",onLayout:e=>{const t=Math.round(e.nativeEvent.layout.width);v(e=>e===t?e:t)},children:[null!==_&&f>0?(0,h.jsx)(l.default,{style:y.layer,children:E(_)}):null,null!==C&&f>0?(0,h.jsx)(l.default,{style:y.layer,children:E(C,()=>{M.current===C.sheetUrl&&k(null)})}):null,null!==P.preloadUrl?(0,h.jsx)(u.Image,{source:W?{uri:P.preloadUrl,headers:W}:{uri:P.preloadUrl},style:y.preload,cachePolicy:"memory-disk",onLoad:()=>A(P.preloadUrl)}):null]})};var t=r(d[0]),l=e(r(d[1])),n=e(r(d[2])),u=r(d[3]),o=r(d[4]),s=r(d[5]),c=r(d[6]),h=r(d[7]);const y=n.default.create({cover:{position:'absolute',top:0,left:0,right:0,bottom:0,alignItems:'center',justifyContent:'center'},coverActive:{backgroundColor:'#000'},layer:{position:'absolute',top:0,left:0,right:0,bottom:0,alignItems:'center',justifyContent:'center'},tileWindow:{overflow:'hidden'},preload:{position:'absolute',width:1,height:1,opacity:0}})},3462,[17,20,33,3053,3144,3463,3465,10]);
15884
15884
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useScrubThumbnail=function(c,b){const y=(0,t.c)(33),{controller:w,state:S}=(0,u.useConnection)(),{token:x}=(0,s.useServer)();let U;y[0]!==w||y[1]!==S?(U="connected"===S?w.getSystem()?.serverUrl??null:null,y[0]=w,y[1]=S,y[2]=U):U=y[2];const _=U;let I;y[3]!==b?(I=null!==b?(0,o.windowStartFor)(b):null,y[3]=b,y[4]=I):I=y[4];const T=I;let p;y[5]!==c||y[6]!==T?(p=["scrub-thumb-index",c,T],y[5]=c,y[6]=T,y[7]=p):p=y[7];const v=null!==_&&null!==T;let M,B;y[8]!==b||y[9]!==c||y[10]!==_||y[11]!==x?(M=async()=>null===_||null===b?null:h((0,o.buildIndexUrl)(_,c,b),x),y[8]=b,y[9]=c,y[10]=_,y[11]=x,y[12]=M):M=y[12];y[13]!==p||y[14]!==v||y[15]!==M?(B={queryKey:p,enabled:v,staleTime:1/0,gcTime:6e5,retry:!1,queryFn:M},y[13]=p,y[14]=v,y[15]=M,y[16]=B):B=y[16];const W=(0,n.useQuery)(B).data??null;let $,k,O;y[17]!==c||y[18]!==W||y[19]!==_||y[20]!==x||y[21]!==T?($=()=>{null!==W&&null!==_&&null!==T&&f(_,x,c,T)},k=[W,_,x,c,T],y[17]=c,y[18]=W,y[19]=_,y[20]=x,y[21]=T,y[22]=$,y[23]=k):($=y[22],k=y[23]);if((0,l.useEffect)($,k),null===W||null===_||null===b)return null;y[24]!==b||y[25]!==W?(O=(0,o.selectThumb)(W,b),y[24]=b,y[25]=W,y[26]=O):O=y[26];const j=O;if(null===j)return null;let q,z;y[27]!==W||y[28]!==_?(q=(0,o.buildSheetUrl)(_,W),y[27]=W,y[28]=_,y[29]=q):q=y[29];y[30]!==q||y[31]!==j?(z={sheetUrl:q,thumb:j},y[30]=q,y[31]=j,y[32]=z):z=y[32];return z};var t=r(d[0]),l=r(d[1]),n=r(d[2]),u=r(d[3]),s=r(d[4]),c=r(d[5]),o=r(d[6]);async function h(t,l){const n={};l&&(n.Authorization=`Bearer ${l}`);try{const l=await fetch(t,{headers:n});if(!l.ok)return c.log.debug('scrub-thumb','index miss',{url:t,status:l.status}),null;const u=await l.json(),s=(0,o.parseThumbnailIndex)(u);return c.log.debug('scrub-thumb','index hit',{url:t,tiles:s?.tiles.length??-1}),s}catch(l){return c.log.warn('scrub-thumb','index fetch failed',{url:t,error:l instanceof Error?l.message:String(l)}),null}}const b=new Set;function f(t,l,n,u){for(const s of[u-o.THUMB_WINDOW_MS,u+o.THUMB_WINDOW_MS]){const u=`${n}:${s}`;b.has(u)||(b.add(u),(async()=>{const f=await h((0,o.buildIndexUrl)(t,n,s),l);if(null!==f)try{const{Image:u}=await r(d[8])(d[7],d.paths,"expo-image"),h={};l&&(h.Authorization=`Bearer ${l}`),await u.prefetch((0,o.buildSheetUrl)(t,f),{headers:h,cachePolicy:'disk'}),c.log.debug('scrub-thumb','neighbor sheet prefetched',{deviceId:n,ws:s})}catch{b.delete(u)}else b.delete(u)})())}}},3463,{"0":15,"1":17,"2":3081,"3":2594,"4":3144,"5":2705,"6":3464,"7":3053,"8":3378,"paths":{}});
@@ -15892,10 +15892,10 @@ __d(function(g,r,i,_a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule'
15892
15892
  __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.AccessoryControl=function(e){const s=(0,t.c)(13),{device:o}=e,u=(0,l.pickAccessoryControl)(o);if(!(0,l.hasMotionTrigger)(o.features)){let e;return s[0]!==o?(e=(0,b.jsx)(O,{device:o}),s[0]=o,s[1]=e):e=s[1],e}if("none"===u.kind){let e;return s[2]!==o.id||s[3]!==o.online?(e=(0,b.jsx)(c.MotionTriggerToggle,{deviceId:o.id,online:o.online}),s[2]=o.id,s[3]=o.online,s[4]=e):e=s[4],e}let j,C,x;s[5]!==o.id||s[6]!==o.online?(j=(0,b.jsx)(c.MotionTriggerToggle,{deviceId:o.id,online:o.online}),s[5]=o.id,s[6]=o.online,s[7]=j):j=s[7];s[8]!==o?(C=(0,b.jsx)(O,{device:o}),s[8]=o,s[9]=C):C=s[9];s[10]!==j||s[11]!==C?(x=(0,b.jsxs)(n.default,{style:v.row,children:[j,C]}),s[10]=j,s[11]=C,s[12]=x):x=s[12];return x};var t=r(d[0]);r(d[1]);var n=e(r(d[2])),s=e(r(d[3])),o=r(d[4]),l=r(d[5]),c=r(d[6]),u=r(d[7]),j=r(d[8]),C=r(d[9]),x=r(d[10]),b=r(d[11]);function O(e){const n=(0,t.c)(46),{device:s}=e;let o;n[0]!==s?(o=(0,l.pickAccessoryControl)(s),n[0]=s,n[1]=o):o=n[1];const c=o;let O;n[2]!==s.id||n[3]!==s.online?(O={deviceId:s.id,online:s.online},n[2]=s.id,n[3]=s.online,n[4]=O):O=n[4];const v=O;switch(c.kind){case"cover":{let e;return n[5]!==v?(e=(0,b.jsx)(u.CoverControl,Object.assign({},v,{capKey:"cover"})),n[5]=v,n[6]=e):e=n[6],e}case"valve":{let e;return n[7]!==v?(e=(0,b.jsx)(u.CoverControl,Object.assign({},v,{capKey:"valve"})),n[7]=v,n[8]=e):e=n[8],e}case"lock":{let e;return n[9]!==v?(e=(0,b.jsx)(u.LockControl,Object.assign({},v)),n[9]=v,n[10]=e):e=n[10],e}case"alarm":{let e;return n[11]!==v?(e=(0,b.jsx)(u.AlarmControl,Object.assign({},v)),n[11]=v,n[12]=e):e=n[12],e}case"climate":{let e;return n[13]!==v?(e=(0,b.jsx)(u.ClimateControl,Object.assign({},v)),n[13]=v,n[14]=e):e=n[14],e}case"fan":{let e;return n[15]!==v?(e=(0,b.jsx)(u.FanControl,Object.assign({},v)),n[15]=v,n[16]=e):e=n[16],e}case"brightness":{let e;return n[17]!==v?(e=(0,b.jsx)(u.BrightnessControl,Object.assign({},v)),n[17]=v,n[18]=e):e=n[18],e}case"switch":{let e;return n[19]!==v?(e=(0,b.jsx)(u.SwitchControl,Object.assign({},v)),n[19]=v,n[20]=e):e=n[20],e}case"button":{let e;return n[21]!==v?(e=(0,b.jsx)(u.ButtonControl,Object.assign({},v)),n[21]=v,n[22]=e):e=n[22],e}case"media-player":{let e;return n[23]!==v?(e=(0,b.jsx)(j.MediaPlayerControl,Object.assign({},v)),n[23]=v,n[24]=e):e=n[24],e}case"vacuum":{let e;return n[25]!==v?(e=(0,b.jsx)(j.VacuumControl,Object.assign({},v)),n[25]=v,n[26]=e):e=n[26],e}case"lawn-mower":{let e;return n[27]!==v?(e=(0,b.jsx)(j.LawnMowerControl,Object.assign({},v)),n[27]=v,n[28]=e):e=n[28],e}case"pet-feeder":{let e;return n[29]!==v?(e=(0,b.jsx)(j.PetFeederControl,Object.assign({},v)),n[29]=v,n[30]=e):e=n[30],e}case"humidifier":{let e;return n[31]!==v?(e=(0,b.jsx)(C.HumidifierControl,Object.assign({},v)),n[31]=v,n[32]=e):e=n[32],e}case"water-heater":{let e;return n[33]!==v?(e=(0,b.jsx)(C.WaterHeaterControl,Object.assign({},v)),n[33]=v,n[34]=e):e=n[34],e}case"update":{let e;return n[35]!==v?(e=(0,b.jsx)(x.UpdateControl,Object.assign({},v)),n[35]=v,n[36]=e):e=n[36],e}case"weather":{let e;return n[37]!==v?(e=(0,b.jsx)(x.WeatherControl,Object.assign({},v)),n[37]=v,n[38]=e):e=n[38],e}case"image":{let e;return n[39]!==v?(e=(0,b.jsx)(x.ImageControl,Object.assign({},v)),n[39]=v,n[40]=e):e=n[40],e}case"input":{let e;return n[41]!==v?(e=(0,b.jsx)(x.InputControl,Object.assign({},v)),n[41]=v,n[42]=e):e=n[42],e}case"sensor":{let e;return n[43]!==v||n[44]!==c.sensorFeature?(e=c.sensorFeature?(0,b.jsx)(u.SensorValueControl,Object.assign({},v,{feature:c.sensorFeature})):null,n[43]=v,n[44]=c.sensorFeature,n[45]=e):e=n[45],e}case"none":return null;default:return c.kind}}const v=s.default.create({row:{flexDirection:'row',alignItems:'center',gap:o.SPACING.sm}})},3471,[15,17,20,33,2589,3472,3473,3477,3480,3482,3484,10]);
15893
15893
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"MOTION_TRIGGER_FEATURE",{enumerable:!0,get:function(){return t}}),e.hasMotionTrigger=function(n){return n.includes(t)},Object.defineProperty(e,"SENSOR_FEATURES",{enumerable:!0,get:function(){return c}}),e.pickAccessoryControl=function(n){const t=new Set(n.features),o=p(n.type);if('switch'===o)return{kind:t.has('brightness')?'brightness':'switch'};if('sensor'===o){const n=c.find(n=>t.has(n));return n?{kind:'sensor',sensorFeature:n}:{kind:'none'}}return{kind:o}};var n=r(d[0]);const t='motion-trigger';const c=['temperature-sensor','humidity-sensor','ambient-light-sensor','numeric-sensor','enum-sensor'],o={[n.DeviceType.Camera]:'none',[n.DeviceType.Hub]:'none',[n.DeviceType.Light]:'switch',[n.DeviceType.Siren]:'switch',[n.DeviceType.Switch]:'switch',[n.DeviceType.Sensor]:'sensor',[n.DeviceType.Thermostat]:'climate',[n.DeviceType.Button]:'button',[n.DeviceType.EventEmitter]:'none',[n.DeviceType.Update]:'update',[n.DeviceType.Generic]:'none',[n.DeviceType.Notifier]:'none',[n.DeviceType.Script]:'none',[n.DeviceType.Automation]:'none',[n.DeviceType.Lock]:'lock',[n.DeviceType.Cover]:'cover',[n.DeviceType.Valve]:'valve',[n.DeviceType.Humidifier]:'humidifier',[n.DeviceType.WaterHeater]:'water-heater',[n.DeviceType.Fan]:'fan',[n.DeviceType.MediaPlayer]:'media-player',[n.DeviceType.AlarmPanel]:'alarm',[n.DeviceType.Control]:'input',[n.DeviceType.Presence]:'sensor',[n.DeviceType.Weather]:'weather',[n.DeviceType.Vacuum]:'vacuum',[n.DeviceType.LawnMower]:'lawn-mower',[n.DeviceType.Container]:'none',[n.DeviceType.Image]:'image'},s={climate:'climate','pet-feeder':'pet-feeder'};function p(n){return Object.prototype.hasOwnProperty.call(o,n)?o[n]:s[n]??'none'}},3472,[2621]);
15894
15894
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.MotionTriggerToggle=function(u){const v=(0,t.c)(14),{deviceId:b,online:f}=u,{t:M}=(0,o.useTranslation)(),T=(0,s.useMotionTriggerStatus)(b,f),_=(0,s.useCapMutator)(b),p=T.data?.enabled??!1;let y;v[0]!==_||v[1]!==p||v[2]!==T?(y=async()=>{await _.run("motionTrigger","setMotionTrigger",{enabled:!p}),T.refetch()},v[0]=_,v[1]=p,v[2]=T,v[3]=y):y=v[3];const j=y;if(T.isLoading&&!T.data){let t;return v[4]===Symbol.for("react.memo_cache_sentinel")?(t=(0,l.jsx)(c.ControlSpinner,{}),v[4]=t):t=v[4],t}let P;v[5]!==M?(P=M("v2.accessories.onMotion"),v[5]=M,v[6]=P):P=v[6];const S=!f||_.pending;let h,x;v[7]!==j?(h=()=>{j()},v[7]=j,v[8]=h):h=v[8];v[9]!==p||v[10]!==P||v[11]!==S||v[12]!==h?(x=(0,l.jsx)(c.PillButton,{label:P,icon:n.Activity,active:p,disabled:S,onPress:h}),v[9]=p,v[10]=P,v[11]=S,v[12]=h,v[13]=x):x=v[13];return x};var t=r(d[0]);r(d[1]);var n=r(d[2]),o=r(d[3]),s=r(d[4]),c=r(d[5]),l=r(d[6])},3473,[15,17,813,786,3474,3476,10]);
15895
- __d(function(g,r,i,a,_m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useSwitchStatus=function(t,n){return(0,o.useCapStatus)("switch",t,c,n)},e.useMotionTriggerStatus=function(t,n){return(0,o.useCapStatus)("motionTrigger",t,l,n)},e.useBrightnessStatus=function(t,n){return(0,o.useCapStatus)("brightness",t,f,n)},e.useLockStatus=function(t,n){return(0,o.useCapStatus)("lockControl",t,y,n)},e.useCoverStatus=function(t,n){return(0,o.useCapStatus)("cover",t,b,n)},e.useAlarmStatus=function(t,n){return(0,o.useCapStatus)("alarmPanel",t,C,n)},e.useClimateStatus=function(t,n){return(0,o.useCapStatus)("climateControl",t,M,n)},e.useFanStatus=function(t,n){return(0,o.useCapStatus)("fanControl",t,j,n)},e.useSensorValue=function(n,u,c){const l=(0,t.c)(12),f=w[n],p="enum-sensor"===n;let y;l[0]!==p||l[1]!==f?(y=t=>p?s(t)&&"string"==typeof t.value:!!f&&(s(t)&&"number"==typeof t[f.field]),l[0]=p,l[1]=f,l[2]=y):y=l[2];const m=y,b=p?"enumSensor":f?.capKey??"";let S;l[3]!==m?(S=t=>m(t),l[3]=m,l[4]=S):S=l[4];const v=(0,o.useCapStatus)(b,u,S,c&&b.length>0),C=v.data;let h;l[5]!==p||l[6]!==f||l[7]!==C?(h=C?p?{kind:"enum",value:String(C.value)}:{kind:"number",value:Number(C[f.field]),unit:"string"==typeof C.unit?C.unit:f.fallbackUnit,precision:"number"==typeof C.precision?C.precision:void 0}:null,l[5]=p,l[6]=f,l[7]=C,l[8]=h):h=l[8];const k=h;let _;l[9]!==k||l[10]!==v?(_=Object.assign({},v,{data:k}),l[9]=k,l[10]=v,l[11]=_):_=l[11];return _},e.useCapMutator=function(t){const{controller:o}=(0,u.useConnection)(),[s,c]=(0,n.useState)(!1),l=(0,n.useCallback)(async(n,u,s)=>{const l=o.getSystem();if(!l)return;const f=K(l.trpcClient[n],u);if(f){c(!0);try{await f(Object.assign({deviceId:t},s))}catch{}finally{c(!1)}}},[o,t]);return{pending:s,run:l}},e.resolveMutate=K;var t=r(d[0]),n=r(d[1]),u=r(d[2]),o=r(d[3]);function s(t){return'object'==typeof t&&null!==t}function c(t){return s(t)&&'boolean'==typeof t.on}function l(t){return s(t)&&'boolean'==typeof t.enabled}function f(t){return s(t)&&'number'==typeof t.percentage}const p=['locked','unlocked','locking','unlocking','jammed'];function y(t){return s(t)&&'string'==typeof t.state&&p.includes(t.state)}const m=['open','opening','closing','closed','stopped'];function b(t){return!(!s(t)||'string'!=typeof t.state)&&(!!m.includes(t.state)&&(null===t.position||'number'==typeof t.position))}const S=['disarmed','armed_home','armed_away','armed_night','armed_vacation','armed_custom_bypass','arming','disarming','pending','triggered'],v=['home','away','night','vacation','custom_bypass'];function C(t){return!(!s(t)||'string'!=typeof t.state)&&(!!S.includes(t.state)&&('boolean'==typeof t.requiresCode&&(!!Array.isArray(t.availableModes)&&t.availableModes.every(t=>'string'==typeof t&&v.includes(t)))))}const h=['off','heat','cool','auto','heat_cool','fan_only','dry'];function k(t){return'string'==typeof t&&h.includes(t)}function _(t){return null===t||'number'==typeof t}function M(t){return!(!s(t)||!k(t.mode))&&(!(!Array.isArray(t.availableModes)||!t.availableModes.every(k))&&(_(t.target)&&_(t.targetLow)&&_(t.targetHigh)&&_(t.currentTemp)))}function j(t){return!!s(t)&&((null===t.percentage||'number'==typeof t.percentage)&&((null===t.oscillating||'boolean'==typeof t.oscillating)&&(void 0===t.percentageStep||'number'==typeof t.percentageStep)))}const w={'temperature-sensor':{capKey:'temperatureSensor',field:'celsius',fallbackUnit:'\xb0C'},'humidity-sensor':{capKey:'humiditySensor',field:'percent',fallbackUnit:'%'},'ambient-light-sensor':{capKey:'ambientLightSensor',field:'lux',fallbackUnit:'lx'},'numeric-sensor':{capKey:'numericSensor',field:'value'}};function A(t){return null!==t&&('object'==typeof t||'function'==typeof t)}function K(t,n){if(!A(t))return null;const u=t[n];if(!A(u))return null;const o=u.mutate;return'function'==typeof o?o:null}},3474,[15,17,2594,3475]);
15895
+ __d(function(g,r,i,a,_m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useSwitchStatus=function(t,n){return(0,o.useCapStatus)("switch",t,c,n)},e.useMotionTriggerStatus=function(t,n){return(0,o.useCapStatus)("motionTrigger",t,l,n)},e.useBrightnessStatus=function(t,n){return(0,o.useCapStatus)("brightness",t,f,n)},e.useLockStatus=function(t,n){return(0,o.useCapStatus)("lockControl",t,y,n)},e.useCoverStatus=function(t,n){return(0,o.useCapStatus)("cover",t,b,n)},e.useAlarmStatus=function(t,n){return(0,o.useCapStatus)("alarmPanel",t,C,n)},e.useClimateStatus=function(t,n){return(0,o.useCapStatus)("climateControl",t,M,n)},e.useFanStatus=function(t,n){return(0,o.useCapStatus)("fanControl",t,j,n)},e.useSensorValue=function(n,u,c){const l=(0,t.c)(12),f=w[n],p="enum-sensor"===n;let y;l[0]!==p||l[1]!==f?(y=t=>p?s(t)&&"string"==typeof t.value:!!f&&(s(t)&&"number"==typeof t[f.field]),l[0]=p,l[1]=f,l[2]=y):y=l[2];const m=y,b=p?"enumSensor":f?.capKey??"";let S;l[3]!==m?(S=t=>m(t),l[3]=m,l[4]=S):S=l[4];const v=(0,o.useCapStatus)(b,u,S,c&&b.length>0),C=v.data;let h;l[5]!==p||l[6]!==f||l[7]!==C?(h=C?p?{kind:"enum",value:String(C.value)}:{kind:"number",value:Number(C[f.field]),unit:"string"==typeof C.unit?C.unit:f.fallbackUnit,precision:"number"==typeof C.precision?C.precision:void 0}:null,l[5]=p,l[6]=f,l[7]=C,l[8]=h):h=l[8];const k=h;let _;l[9]!==k||l[10]!==v?(_=Object.assign({},v,{data:k}),l[9]=k,l[10]=v,l[11]=_):_=l[11];return _},e.useCapMutator=function(t){const{controller:o}=(0,u.useConnection)(),[s,c]=(0,n.useState)(!1),l=(0,n.useCallback)(async(n,u,s)=>{const l=o.getSystem();if(!l)return;const f=K(l.trpcClient[n],u);if(f){c(!0);try{await f(Object.assign({deviceId:t},s))}catch{}finally{c(!1)}}},[o,t]);return{pending:s,run:l}},e.resolveMutate=K;var t=r(d[0]),n=r(d[1]),u=r(d[2]),o=r(d[3]);function s(t){return'object'==typeof t&&null!==t}function c(t){return s(t)&&'boolean'==typeof t.on}function l(t){return s(t)&&'boolean'==typeof t.enabled}function f(t){return s(t)&&'number'==typeof t.percentage}const p=['locked','unlocked','locking','unlocking','jammed'];function y(t){return s(t)&&'string'==typeof t.state&&p.includes(t.state)}const m=['open','opening','closing','closed','stopped'];function b(t){return!(!s(t)||'string'!=typeof t.state)&&(!!m.includes(t.state)&&(null===t.position||'number'==typeof t.position))}const S=['disarmed','armed_home','armed_away','armed_night','armed_vacation','armed_custom_bypass','arming','disarming','pending','triggered'],v=['home','away','night','vacation','custom_bypass'];function C(t){return!(!s(t)||'string'!=typeof t.state)&&(!!S.includes(t.state)&&('boolean'==typeof t.requiresCode&&(!!Array.isArray(t.availableModes)&&t.availableModes.every(t=>'string'==typeof t&&v.includes(t)))))}const h=['off','heat','cool','auto','heat_cool','fan_only','dry'];function k(t){return'string'==typeof t&&h.includes(t)}function _(t){return null===t||'number'==typeof t}function M(t){return!(!s(t)||!k(t.mode))&&(!(!Array.isArray(t.availableModes)||!t.availableModes.every(k))&&(_(t.target)&&_(t.targetLow)&&_(t.targetHigh)&&_(t.currentTemp)&&_(t.currentHumidity)))}function j(t){return!!s(t)&&((null===t.percentage||'number'==typeof t.percentage)&&((null===t.oscillating||'boolean'==typeof t.oscillating)&&(void 0===t.percentageStep||'number'==typeof t.percentageStep)))}const w={'temperature-sensor':{capKey:'temperatureSensor',field:'celsius',fallbackUnit:'\xb0C'},'humidity-sensor':{capKey:'humiditySensor',field:'percent',fallbackUnit:'%'},'ambient-light-sensor':{capKey:'ambientLightSensor',field:'lux',fallbackUnit:'lx'},'numeric-sensor':{capKey:'numericSensor',field:'value'}};function A(t){return null!==t&&('object'==typeof t||'function'==typeof t)}function K(t,n){if(!A(t))return null;const u=t[n];if(!A(u))return null;const o=u.mutate;return'function'==typeof o?o:null}},3474,[15,17,2594,3475]);
15896
15896
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"CAP_STATUS_REFETCH_MS",{enumerable:!0,get:function(){return c}}),e.useCapStatus=function(o,l,f,y){const p=(0,t.c)(14),{controller:S,state:_}=(0,u.useConnection)();let v;p[0]!==f?(v=t=>f(t)?t:null,p[0]=f,p[1]=v):v=p[1];const b=v;let C;p[2]!==o||p[3]!==l?(C=["v2","cap-status",o,l],p[2]=o,p[3]=l,p[4]=C):C=p[4];const q=y&&"connected"===_;let j,P;p[5]!==o||p[6]!==S||p[7]!==l||p[8]!==b?(j=async()=>{const t=S.getSystem();if(!t)return null;try{const n=t.trpcClient[o];if(!s(n))return null;const u=await n.getStatus.query({deviceId:l});return b(u)}catch{return null}},p[5]=o,p[6]=S,p[7]=l,p[8]=b,p[9]=j):j=p[9];p[10]!==C||p[11]!==q||p[12]!==j?(P={queryKey:C,enabled:q,refetchInterval:c,queryFn:j},p[10]=C,p[11]=q,p[12]=j,p[13]=P):P=p[13];return(0,n.useQuery)(P)},e.isStatusRouter=s;var t=r(d[0]);r(d[1]);var n=r(d[2]),u=r(d[3]);const c=5e3;function o(t){return null!==t&&('object'==typeof t||'function'==typeof t)}function s(t){if(!o(t))return!1;const n=t.getStatus;return!!o(n)&&'function'==typeof n.query}},3475,[15,17,3081,2594]);
15897
15897
  __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.PillButton=function(e){const n=(0,o.c)(19),{label:s,onPress:c,disabled:b,active:h,icon:y}=e,{colors:C}=(0,u.useTheme)(),P=h?C.primary:C.backgroundElevated,S=h?C.primaryForeground:C.foreground,j=b?.45:1;let x,I,v,z,_;n[0]!==P||n[1]!==C.border||n[2]!==j?(x=[p.pill,{backgroundColor:P,borderColor:C.border,opacity:j}],n[0]=P,n[1]=C.border,n[2]=j,n[3]=x):x=n[3];n[4]!==y||n[5]!==S?(I=y?(0,f.jsx)(y,{size:14,color:S}):null,n[4]=y,n[5]=S,n[6]=I):I=n[6];n[7]!==S?(v=[p.pillLabel,{color:S}],n[7]=S,n[8]=v):v=n[8];n[9]!==s||n[10]!==v?(z=(0,f.jsx)(t.default,{style:v,numberOfLines:1,children:s}),n[9]=s,n[10]=v,n[11]=z):z=n[11];n[12]!==b||n[13]!==s||n[14]!==c||n[15]!==x||n[16]!==I||n[17]!==z?(_=(0,f.jsxs)(l.default,{accessibilityRole:"button",accessibilityLabel:s,onPress:c,disabled:b,style:x,children:[I,z]}),n[12]=b,n[13]=s,n[14]=c,n[15]=x,n[16]=I,n[17]=z,n[18]=_):_=n[18];return _},_e.IconButton=function(e){const t=(0,o.c)(13),{icon:n,label:s,onPress:c,disabled:b,active:h}=e,{colors:y}=(0,u.useTheme)(),C=h?y.primary:y.backgroundElevated,P=h?y.primaryForeground:y.foreground,S=b?.45:1;let j,x,I;t[0]!==C||t[1]!==y.border||t[2]!==S?(j=[p.icon,{backgroundColor:C,borderColor:y.border,opacity:S}],t[0]=C,t[1]=y.border,t[2]=S,t[3]=j):j=t[3];t[4]!==n||t[5]!==P?(x=(0,f.jsx)(n,{size:16,color:P}),t[4]=n,t[5]=P,t[6]=x):x=t[6];t[7]!==b||t[8]!==s||t[9]!==c||t[10]!==j||t[11]!==x?(I=(0,f.jsx)(l.default,{accessibilityRole:"button",accessibilityLabel:s,onPress:c,disabled:b,style:j,children:x}),t[7]=b,t[8]=s,t[9]=c,t[10]=j,t[11]=x,t[12]=I):I=t[12];return I},_e.ControlSpinner=function(){const e=(0,o.c)(2),{colors:l}=(0,u.useTheme)();let t;e[0]!==l.foregroundSubtle?(t=(0,f.jsx)(c.default,{style:p.spinner,children:(0,f.jsx)(s.default,{size:"small",color:l.foregroundSubtle})}),e[0]=l.foregroundSubtle,e[1]=t):t=e[1];return t};var o=r(d[0]);r(d[1]);var l=e(r(d[2])),t=e(r(d[3])),n=e(r(d[4])),s=e(r(d[5])),c=e(r(d[6])),u=r(d[7]),b=r(d[8]),f=r(d[9]);const p=n.default.create({pill:{flexDirection:'row',alignItems:'center',gap:b.SPACING.xs,paddingHorizontal:b.SPACING.md,paddingVertical:b.SPACING.sm,borderRadius:b.RADIUS.lg,borderWidth:n.default.hairlineWidth},pillLabel:{fontSize:12,fontWeight:'600'},icon:{width:32,height:32,borderRadius:16,alignItems:'center',justifyContent:'center',borderWidth:n.default.hairlineWidth},spinner:{paddingHorizontal:b.SPACING.sm}})},3476,[15,17,252,112,33,240,20,2587,2589,10]);
15898
- __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.SwitchControl=function(e){const n=(0,t.c)(15),{deviceId:o,online:s}=e,{t:u}=(0,l.useTranslation)(),f=(0,h.useSwitchStatus)(o,s),v=(0,h.useCapMutator)(o),p=f.data?.on??!1;let S;n[0]!==v||n[1]!==p||n[2]!==f?(S=async()=>{await v.run("switch","setState",{on:!p}),f.refetch()},n[0]=v,n[1]=p,n[2]=f,n[3]=S):S=n[3];const x=S;if(f.isLoading&&!f.data){let e;return n[4]===Symbol.for("react.memo_cache_sentinel")?(e=(0,C.jsx)(b.ControlSpinner,{}),n[4]=e):e=n[4],e}let j;n[5]!==p||n[6]!==u?(j=u(p?"v2.accessories.on":"v2.accessories.off"),n[5]=p,n[6]=u,n[7]=j):j=n[7];const w=!s||v.pending;let y,P;n[8]!==x?(y=()=>{x()},n[8]=x,n[9]=y):y=n[9];n[10]!==p||n[11]!==j||n[12]!==w||n[13]!==y?(P=(0,C.jsx)(b.PillButton,{label:j,icon:c.Power,active:p,disabled:w,onPress:y}),n[10]=p,n[11]=j,n[12]=w,n[13]=y,n[14]=P):P=n[14];return P},_e.BrightnessControl=function(e){const s=(0,t.c)(50),{deviceId:f,online:v}=e,{t:p}=(0,l.useTranslation)(),{colors:x}=(0,u.useTheme)(),j=(0,h.useBrightnessStatus)(f,v),y=(0,h.useSwitchStatus)(f,v),P=(0,h.useCapMutator)(f),M=j.data?.percentage??0,k=y.data?.on??M>0;let I;s[0]!==j||s[1]!==P||s[2]!==y?(I=async e=>{const t=Math.max(0,Math.min(100,e));await P.run("brightness","setBrightness",{percentage:t}),j.refetch(),y.refetch()},s[0]=j,s[1]=P,s[2]=y,s[3]=I):I=s[3];const T=I;let _;s[4]!==j||s[5]!==P||s[6]!==k||s[7]!==y?(_=async()=>{await P.run("switch","setState",{on:!k}),y.refetch(),j.refetch()},s[4]=j,s[5]=P,s[6]=k,s[7]=y,s[8]=_):_=s[8];const B=_;if(j.isLoading&&!j.data){let e;return s[9]===Symbol.for("react.memo_cache_sentinel")?(e=(0,C.jsx)(b.ControlSpinner,{}),s[9]=e):e=s[9],e}const L=!v||P.pending;let O,D,F,A,U,$,W,E;s[10]!==k||s[11]!==p?(O=p(k?"v2.accessories.off":"v2.accessories.on"),s[10]=k,s[11]=p,s[12]=O):O=s[12];s[13]!==B?(D=()=>{B()},s[13]=B,s[14]=D):D=s[14];s[15]!==L||s[16]!==k||s[17]!==O||s[18]!==D?(F=(0,C.jsx)(b.IconButton,{icon:c.Sun,label:O,active:k,disabled:L,onPress:D}),s[15]=L,s[16]=k,s[17]=O,s[18]=D,s[19]=F):F=s[19];s[20]!==p?(A=p("v2.accessories.dimDown"),s[20]=p,s[21]=A):A=s[21];s[22]!==M||s[23]!==T?(U=()=>{T(M-S)},s[22]=M,s[23]=T,s[24]=U):U=s[24];s[25]!==L||s[26]!==A||s[27]!==U?($=(0,C.jsx)(b.IconButton,{icon:c.ChevronDown,label:A,disabled:L,onPress:U}),s[25]=L,s[26]=A,s[27]=U,s[28]=$):$=s[28];s[29]!==x.foregroundMuted?(W=[w.readout,{color:x.foregroundMuted}],s[29]=x.foregroundMuted,s[30]=W):W=s[30];s[31]!==M?(E=Math.round(M),s[31]=M,s[32]=E):E=s[32];const N=`${E}%`;let V,q,z,G,H;s[33]!==N||s[34]!==W?(V=(0,C.jsx)(o.default,{style:W,numberOfLines:1,children:N}),s[33]=N,s[34]=W,s[35]=V):V=s[35];s[36]!==p?(q=p("v2.accessories.dimUp"),s[36]=p,s[37]=q):q=s[37];s[38]!==M||s[39]!==T?(z=()=>{T(M+S)},s[38]=M,s[39]=T,s[40]=z):z=s[40];s[41]!==L||s[42]!==q||s[43]!==z?(G=(0,C.jsx)(b.IconButton,{icon:c.ChevronUp,label:q,disabled:L,onPress:z}),s[41]=L,s[42]=q,s[43]=z,s[44]=G):G=s[44];s[45]!==V||s[46]!==G||s[47]!==F||s[48]!==$?(H=(0,C.jsxs)(n.default,{style:w.cluster,children:[F,$,V,G]}),s[45]=V,s[46]=G,s[47]=F,s[48]=$,s[49]=H):H=s[49];return H},_e.LockControl=function(e){const o=(0,t.c)(25),{deviceId:s,online:u}=e,{t:f}=(0,l.useTranslation)(),v=(0,h.useLockStatus)(s,u),p=(0,h.useCapMutator)(s),S=v.data?.state??"unlocked",x="locking"===S||"unlocking"===S,j="locked"===S;let y;o[0]!==p||o[1]!==v?(y=async e=>{await p.run("lockControl",e,{}),v.refetch()},o[0]=p,o[1]=v,o[2]=y):y=o[2];const P=y;if(v.isLoading&&!v.data){let e;return o[3]===Symbol.for("react.memo_cache_sentinel")?(e=(0,C.jsx)(b.ControlSpinner,{}),o[3]=e):e=o[3],e}const M=!u||p.pending||x;let k,I,T,_;o[4]!==f?(k=f("v2.accessories.lock"),o[4]=f,o[5]=k):k=o[5];o[6]!==P?(I=()=>{P("lock")},o[6]=P,o[7]=I):I=o[7];o[8]!==M||o[9]!==j||o[10]!==k||o[11]!==I?(T=(0,C.jsx)(b.PillButton,{label:k,icon:c.Lock,active:j,disabled:M,onPress:I}),o[8]=M,o[9]=j,o[10]=k,o[11]=I,o[12]=T):T=o[12];o[13]!==f?(_=f("v2.accessories.unlock"),o[13]=f,o[14]=_):_=o[14];const B=!j;let L,O,D;o[15]!==P?(L=()=>{P("unlock")},o[15]=P,o[16]=L):L=o[16];o[17]!==M||o[18]!==_||o[19]!==B||o[20]!==L?(O=(0,C.jsx)(b.PillButton,{label:_,icon:c.LockOpen,active:B,disabled:M,onPress:L}),o[17]=M,o[18]=_,o[19]=B,o[20]=L,o[21]=O):O=o[21];o[22]!==T||o[23]!==O?(D=(0,C.jsxs)(n.default,{style:w.cluster,children:[T,O]}),o[22]=T,o[23]=O,o[24]=D):D=o[24];return D},_e.CoverControl=function(e){const o=(0,t.c)(35),{deviceId:s,online:u,capKey:f}=e,{t:v}=(0,l.useTranslation)(),p=(0,h.useCoverStatus)(s,u),S=(0,h.useCapMutator)(s),x=p.data?.state??"stopped";let j;o[0]!==f||o[1]!==S||o[2]!==p?(j=async e=>{await S.run(f,e,{}),p.refetch()},o[0]=f,o[1]=S,o[2]=p,o[3]=j):j=o[3];const y=j;if(p.isLoading&&!p.data){let e;return o[4]===Symbol.for("react.memo_cache_sentinel")?(e=(0,C.jsx)(b.ControlSpinner,{}),o[4]=e):e=o[4],e}const P=!u||S.pending;let M;o[5]!==v?(M=v("v2.accessories.open"),o[5]=v,o[6]=M):M=o[6];const k="open"===x||"opening"===x;let I,T,_,B,L,O;o[7]!==y?(I=()=>{y("open")},o[7]=y,o[8]=I):I=o[8];o[9]!==P||o[10]!==M||o[11]!==k||o[12]!==I?(T=(0,C.jsx)(b.IconButton,{icon:c.ChevronUp,label:M,active:k,disabled:P,onPress:I}),o[9]=P,o[10]=M,o[11]=k,o[12]=I,o[13]=T):T=o[13];o[14]!==v?(_=v("v2.accessories.stop"),o[14]=v,o[15]=_):_=o[15];o[16]!==y?(B=()=>{y("stop")},o[16]=y,o[17]=B):B=o[17];o[18]!==P||o[19]!==_||o[20]!==B?(L=(0,C.jsx)(b.IconButton,{icon:c.Square,label:_,disabled:P,onPress:B}),o[18]=P,o[19]=_,o[20]=B,o[21]=L):L=o[21];o[22]!==v?(O=v("v2.accessories.close"),o[22]=v,o[23]=O):O=o[23];const D="closed"===x||"closing"===x;let F,A,U;o[24]!==y?(F=()=>{y("close")},o[24]=y,o[25]=F):F=o[25];o[26]!==P||o[27]!==D||o[28]!==F||o[29]!==O?(A=(0,C.jsx)(b.IconButton,{icon:c.ChevronDown,label:O,active:D,disabled:P,onPress:F}),o[26]=P,o[27]=D,o[28]=F,o[29]=O,o[30]=A):A=o[30];o[31]!==A||o[32]!==T||o[33]!==L?(U=(0,C.jsxs)(n.default,{style:w.cluster,children:[T,L,A]}),o[31]=A,o[32]=T,o[33]=L,o[34]=U):U=o[34];return U},_e.AlarmControl=function(e){const o=(0,t.c)(25),{deviceId:s,online:u}=e,{t:f}=(0,l.useTranslation)(),v=(0,h.useAlarmStatus)(s,u),p=(0,h.useCapMutator)(s),S=v.data?.state??"disarmed";let x;o[0]!==S?(x=S.startsWith("armed")||"arming"===S||"pending"===S||"triggered"===S,o[0]=S,o[1]=x):x=o[1];const j=x,y=v.data?.availableModes[0],P=v.data?.requiresCode??!1;let M;o[2]!==y||o[3]!==p||o[4]!==v?(M=async e=>{const t="arm"===e&&y?{mode:y}:{};await p.run("alarmPanel",e,t),v.refetch()},o[2]=y,o[3]=p,o[4]=v,o[5]=M):M=o[5];const k=M;if(v.isLoading&&!v.data){let e;return o[6]===Symbol.for("react.memo_cache_sentinel")?(e=(0,C.jsx)(b.ControlSpinner,{}),o[6]=e):e=o[6],e}const I=!u||p.pending,T=!P&&void 0!==y;let _,B;o[7]!==j||o[8]!==T||o[9]!==I||o[10]!==k||o[11]!==f?(_=T?(0,C.jsx)(b.PillButton,{label:f("v2.accessories.arm"),icon:c.ShieldCheck,active:j,disabled:I||j,onPress:()=>{k("arm")}}):null,o[7]=j,o[8]=T,o[9]=I,o[10]=k,o[11]=f,o[12]=_):_=o[12];o[13]!==f?(B=f("v2.accessories.disarm"),o[13]=f,o[14]=B):B=o[14];const L=!j,O=I||!j&&!P;let D,F,A;o[15]!==k?(D=()=>{k("disarm")},o[15]=k,o[16]=D):D=o[16];o[17]!==B||o[18]!==L||o[19]!==O||o[20]!==D?(F=(0,C.jsx)(b.PillButton,{label:B,icon:c.ShieldOff,active:L,disabled:O,onPress:D}),o[17]=B,o[18]=L,o[19]=O,o[20]=D,o[21]=F):F=o[21];o[22]!==_||o[23]!==F?(A=(0,C.jsxs)(n.default,{style:w.cluster,children:[_,F]}),o[22]=_,o[23]=F,o[24]=A):A=o[24];return A},_e.SensorValueControl=function(e){const n=(0,t.c)(6),{deviceId:s,online:l,feature:c}=e,{colors:f}=(0,u.useTheme)(),v=(0,h.useSensorValue)(c,s,l),p=v.data;if(v.isLoading&&!p){let e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,C.jsx)(b.ControlSpinner,{}),n[0]=e):e=n[0],e}if(!p)return null;const S="number"===p.kind?x(p.value,p.precision)+(p.unit?`\u202f${p.unit}`:""):String(p.value);let j,y;n[1]!==f.foreground?(j=[w.sensor,{color:f.foreground}],n[1]=f.foreground,n[2]=j):j=n[2];n[3]!==j||n[4]!==S?(y=(0,C.jsx)(o.default,{style:j,numberOfLines:1,children:S}),n[3]=j,n[4]=S,n[5]=y):y=n[5];return y},_e.ClimateControl=function(e){const s=(0,t.c)(65),{deviceId:f,online:p}=e,{t:S}=(0,l.useTranslation)(),{colors:x}=(0,u.useTheme)(),y=(0,h.useClimateStatus)(f,p),P=(0,h.useCapMutator)(f),M=y.data,k=M?.mode??"off";let I;s[0]!==M?.availableModes?(I=M?.availableModes??[],s[0]=M?.availableModes,s[1]=I):I=s[1];const T=I;let _;s[2]!==M?(_=M?(0,v.setpointModel)(M):{kind:"none"},s[2]=M,s[3]=_):_=s[3];const B=_;let L;s[4]!==T||s[5]!==k||s[6]!==P||s[7]!==y?(L=async()=>{const e=(0,v.nextMode)(k,T);e!==k&&(await P.run("climateControl","setMode",{mode:e}),y.refetch())},s[4]=T,s[5]=k,s[6]=P,s[7]=y,s[8]=L):L=s[8];const O=L;let D;s[9]!==B.high||s[10]!==B.kind||s[11]!==B.low||s[12]!==B.value||s[13]!==P||s[14]!==y?(D=async e=>{const t=e*v.CLIMATE_STEP_C;"single"===B.kind?await P.run("climateControl","setTarget",{target:(0,v.clampTarget)(B.value+t)}):"range"===B.kind&&await P.run("climateControl","setTargetRange",{targetLow:(0,v.clampTarget)(B.low+t),targetHigh:(0,v.clampTarget)(B.high+t)}),y.refetch()},s[9]=B.high,s[10]=B.kind,s[11]=B.low,s[12]=B.value,s[13]=P,s[14]=y,s[15]=D):D=s[15];const F=D;if(y.isLoading&&!M){let e;return s[16]===Symbol.for("react.memo_cache_sentinel")?(e=(0,C.jsx)(b.ControlSpinner,{}),s[16]=e):e=s[16],e}const A=!p||P.pending,U="none"!==B.kind;let $;s[17]!==M||s[18]!==B.high||s[19]!==B.kind||s[20]!==B.low||s[21]!==B.value?($="single"===B.kind?j(B.value):"range"===B.kind?`${j(B.low)}\u2013${j(B.high)}`:null!=M?.currentTemp?j(M.currentTemp):"--",s[17]=M,s[18]=B.high,s[19]=B.kind,s[20]=B.low,s[21]=B.value,s[22]=$):$=s[22];const W=$,E=`v2.accessories.climateModes.${k}`;let N;s[23]!==k||s[24]!==S||s[25]!==E?(N=S(E,{defaultValue:k}),s[23]=k,s[24]=S,s[25]=E,s[26]=N):N=s[26];const V=N;let q;s[27]!==x.foregroundMuted||s[28]!==M||s[29]!==B.kind?(q=null!=M?.currentTemp&&"none"!==B.kind?(0,C.jsx)(o.default,{style:[w.readout,{color:x.foregroundMuted}],numberOfLines:1,children:j(M.currentTemp)}):null,s[27]=x.foregroundMuted,s[28]=M,s[29]=B.kind,s[30]=q):q=s[30];const z="off"!==k,G=A||T.length<=1;let H,K,R;s[31]!==O?(H=()=>{O()},s[31]=O,s[32]=H):H=s[32];s[33]!==V||s[34]!==G||s[35]!==H||s[36]!==z?(K=(0,C.jsx)(b.PillButton,{label:V,icon:c.Thermometer,active:z,disabled:G,onPress:H}),s[33]=V,s[34]=G,s[35]=H,s[36]=z,s[37]=K):K=s[37];s[38]!==S?(R=S("v2.accessories.cooler"),s[38]=S,s[39]=R):R=s[39];const Z=A||!U;let J,Q,X,Y,ee;s[40]!==F?(J=()=>{F(-1)},s[40]=F,s[41]=J):J=s[41];s[42]!==R||s[43]!==Z||s[44]!==J?(Q=(0,C.jsx)(b.IconButton,{icon:c.ChevronDown,label:R,disabled:Z,onPress:J}),s[42]=R,s[43]=Z,s[44]=J,s[45]=Q):Q=s[45];s[46]!==x.foreground?(X=[w.readout,{color:x.foreground}],s[46]=x.foreground,s[47]=X):X=s[47];s[48]!==W||s[49]!==X?(Y=(0,C.jsx)(o.default,{style:X,numberOfLines:1,children:W}),s[48]=W,s[49]=X,s[50]=Y):Y=s[50];s[51]!==S?(ee=S("v2.accessories.warmer"),s[51]=S,s[52]=ee):ee=s[52];const te=A||!U;let ne,oe,se;s[53]!==F?(ne=()=>{F(1)},s[53]=F,s[54]=ne):ne=s[54];s[55]!==ee||s[56]!==te||s[57]!==ne?(oe=(0,C.jsx)(b.IconButton,{icon:c.ChevronUp,label:ee,disabled:te,onPress:ne}),s[55]=ee,s[56]=te,s[57]=ne,s[58]=oe):oe=s[58];s[59]!==K||s[60]!==Q||s[61]!==Y||s[62]!==oe||s[63]!==q?(se=(0,C.jsxs)(n.default,{style:w.cluster,children:[q,K,Q,Y,oe]}),s[59]=K,s[60]=Q,s[61]=Y,s[62]=oe,s[63]=q,s[64]=se):se=s[64];return se},_e.FanControl=function(e){const s=(0,t.c)(60),{deviceId:f,online:v}=e,{t:S}=(0,l.useTranslation)(),{colors:x}=(0,u.useTheme)(),j=(0,h.useSwitchStatus)(f,v),y=(0,h.useFanStatus)(f,v),P=(0,h.useCapMutator)(f),M=y.data?.percentage??0,k=y.data?.percentageStep??p.FAN_DEFAULT_STEP,I=j.data?.on??M>0,T=y.data?.oscillating??null;let _;s[0]!==y||s[1]!==P||s[2]!==I||s[3]!==j?(_=async()=>{await P.run("switch","setState",{on:!I}),j.refetch(),y.refetch()},s[0]=y,s[1]=P,s[2]=I,s[3]=j,s[4]=_):_=s[4];const B=_;let L;s[5]!==y||s[6]!==P||s[7]!==M||s[8]!==k||s[9]!==j?(L=async e=>{await P.run("fanControl","setPercentage",{percentage:(0,p.stepPercentage)(M,e,k)}),y.refetch(),j.refetch()},s[5]=y,s[6]=P,s[7]=M,s[8]=k,s[9]=j,s[10]=L):L=s[10];const O=L;let D;s[11]!==y||s[12]!==P||s[13]!==T?(D=async()=>{await P.run("fanControl","setOscillating",{oscillating:!T}),y.refetch()},s[11]=y,s[12]=P,s[13]=T,s[14]=D):D=s[14];const F=D;if(y.isLoading&&!y.data){let e;return s[15]===Symbol.for("react.memo_cache_sentinel")?(e=(0,C.jsx)(b.ControlSpinner,{}),s[15]=e):e=s[15],e}const A=!v||P.pending;let U,$,W,E,N,V,q,z;s[16]!==I||s[17]!==S?(U=S(I?"v2.accessories.off":"v2.accessories.on"),s[16]=I,s[17]=S,s[18]=U):U=s[18];s[19]!==B?($=()=>{B()},s[19]=B,s[20]=$):$=s[20];s[21]!==A||s[22]!==I||s[23]!==U||s[24]!==$?(W=(0,C.jsx)(b.IconButton,{icon:c.Fan,label:U,active:I,disabled:A,onPress:$}),s[21]=A,s[22]=I,s[23]=U,s[24]=$,s[25]=W):W=s[25];s[26]!==S?(E=S("v2.accessories.speedDown"),s[26]=S,s[27]=E):E=s[27];s[28]!==O?(N=()=>{O(-1)},s[28]=O,s[29]=N):N=s[29];s[30]!==A||s[31]!==E||s[32]!==N?(V=(0,C.jsx)(b.IconButton,{icon:c.ChevronDown,label:E,disabled:A,onPress:N}),s[30]=A,s[31]=E,s[32]=N,s[33]=V):V=s[33];s[34]!==x.foregroundMuted?(q=[w.readout,{color:x.foregroundMuted}],s[34]=x.foregroundMuted,s[35]=q):q=s[35];s[36]!==M?(z=Math.round(M),s[36]=M,s[37]=z):z=s[37];const G=`${z}%`;let H,K,R,Z,J,Q;s[38]!==q||s[39]!==G?(H=(0,C.jsx)(o.default,{style:q,numberOfLines:1,children:G}),s[38]=q,s[39]=G,s[40]=H):H=s[40];s[41]!==S?(K=S("v2.accessories.speedUp"),s[41]=S,s[42]=K):K=s[42];s[43]!==O?(R=()=>{O(1)},s[43]=O,s[44]=R):R=s[44];s[45]!==A||s[46]!==K||s[47]!==R?(Z=(0,C.jsx)(b.IconButton,{icon:c.ChevronUp,label:K,disabled:A,onPress:R}),s[45]=A,s[46]=K,s[47]=R,s[48]=Z):Z=s[48];s[49]!==A||s[50]!==T||s[51]!==S||s[52]!==F?(J=null!==T?(0,C.jsx)(b.IconButton,{icon:c.Wind,label:S("v2.accessories.oscillate"),active:T,disabled:A,onPress:()=>{F()}}):null,s[49]=A,s[50]=T,s[51]=S,s[52]=F,s[53]=J):J=s[53];s[54]!==H||s[55]!==Z||s[56]!==J||s[57]!==W||s[58]!==V?(Q=(0,C.jsxs)(n.default,{style:w.cluster,children:[W,V,H,Z,J]}),s[54]=H,s[55]=Z,s[56]=J,s[57]=W,s[58]=V,s[59]=Q):Q=s[59];return Q},_e.ButtonControl=function(e){const n=(0,t.c)(10),{deviceId:o,online:s}=e,{t:u}=(0,l.useTranslation)(),f=(0,h.useCapMutator)(o);let v;n[0]!==f?(v=async()=>{await f.run("button","press",{})},n[0]=f,n[1]=v):v=n[1];const p=v;let S;n[2]!==u?(S=u("v2.accessories.press"),n[2]=u,n[3]=S):S=n[3];const x=!s||f.pending;let j,w;n[4]!==p?(j=()=>{p()},n[4]=p,n[5]=j):j=n[5];n[6]!==S||n[7]!==x||n[8]!==j?(w=(0,C.jsx)(b.PillButton,{label:S,icon:c.Zap,disabled:x,onPress:j}),n[6]=S,n[7]=x,n[8]=j,n[9]=w):w=n[9];return w};var t=r(d[0]);r(d[1]);var n=e(r(d[2])),o=e(r(d[3])),s=e(r(d[4])),l=r(d[5]),c=r(d[6]),u=r(d[7]),f=r(d[8]),h=r(d[9]),v=r(d[10]),p=r(d[11]),b=r(d[12]),C=r(d[13]);const S=20;function x(e,t){return'number'==typeof t?e.toFixed(t):Number.isInteger(e)?String(e):e.toFixed(1)}function j(e){return(Number.isInteger(e)?String(e):e.toFixed(1))+'\xb0'}const w=s.default.create({cluster:{flexDirection:'row',alignItems:'center',gap:f.SPACING.sm},readout:{fontSize:12,fontWeight:'600',minWidth:34,textAlign:'center'},sensor:{fontSize:14,fontWeight:'600'}})},3477,[15,17,20,112,33,786,813,2587,2589,3474,3478,3479,3476,10]);
15898
+ __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.SwitchControl=function(e){const n=(0,t.c)(15),{deviceId:o,online:s}=e,{t:u}=(0,l.useTranslation)(),f=(0,h.useSwitchStatus)(o,s),v=(0,h.useCapMutator)(o),p=f.data?.on??!1;let C;n[0]!==v||n[1]!==p||n[2]!==f?(C=async()=>{await v.run("switch","setState",{on:!p}),f.refetch()},n[0]=v,n[1]=p,n[2]=f,n[3]=C):C=n[3];const S=C;if(f.isLoading&&!f.data){let e;return n[4]===Symbol.for("react.memo_cache_sentinel")?(e=(0,x.jsx)(b.ControlSpinner,{}),n[4]=e):e=n[4],e}let j;n[5]!==p||n[6]!==u?(j=u(p?"v2.accessories.on":"v2.accessories.off"),n[5]=p,n[6]=u,n[7]=j):j=n[7];const y=!s||v.pending;let w,M;n[8]!==S?(w=()=>{S()},n[8]=S,n[9]=w):w=n[9];n[10]!==p||n[11]!==j||n[12]!==y||n[13]!==w?(M=(0,x.jsx)(b.PillButton,{label:j,icon:c.Power,active:p,disabled:y,onPress:w}),n[10]=p,n[11]=j,n[12]=y,n[13]=w,n[14]=M):M=n[14];return M},_e.BrightnessControl=function(e){const s=(0,t.c)(50),{deviceId:f,online:v}=e,{t:p}=(0,l.useTranslation)(),{colors:S}=(0,u.useTheme)(),j=(0,h.useBrightnessStatus)(f,v),w=(0,h.useSwitchStatus)(f,v),M=(0,h.useCapMutator)(f),P=j.data?.percentage??0,k=w.data?.on??P>0;let T;s[0]!==j||s[1]!==M||s[2]!==w?(T=async e=>{const t=Math.max(0,Math.min(100,e));await M.run("brightness","setBrightness",{percentage:t}),j.refetch(),w.refetch()},s[0]=j,s[1]=M,s[2]=w,s[3]=T):T=s[3];const I=T;let _;s[4]!==j||s[5]!==M||s[6]!==k||s[7]!==w?(_=async()=>{await M.run("switch","setState",{on:!k}),w.refetch(),j.refetch()},s[4]=j,s[5]=M,s[6]=k,s[7]=w,s[8]=_):_=s[8];const B=_;if(j.isLoading&&!j.data){let e;return s[9]===Symbol.for("react.memo_cache_sentinel")?(e=(0,x.jsx)(b.ControlSpinner,{}),s[9]=e):e=s[9],e}const L=!v||M.pending;let D,O,F,A,U,$,W,z;s[10]!==k||s[11]!==p?(D=p(k?"v2.accessories.off":"v2.accessories.on"),s[10]=k,s[11]=p,s[12]=D):D=s[12];s[13]!==B?(O=()=>{B()},s[13]=B,s[14]=O):O=s[14];s[15]!==L||s[16]!==k||s[17]!==D||s[18]!==O?(F=(0,x.jsx)(b.IconButton,{icon:c.Sun,label:D,active:k,disabled:L,onPress:O}),s[15]=L,s[16]=k,s[17]=D,s[18]=O,s[19]=F):F=s[19];s[20]!==p?(A=p("v2.accessories.dimDown"),s[20]=p,s[21]=A):A=s[21];s[22]!==P||s[23]!==I?(U=()=>{I(P-C)},s[22]=P,s[23]=I,s[24]=U):U=s[24];s[25]!==L||s[26]!==A||s[27]!==U?($=(0,x.jsx)(b.IconButton,{icon:c.ChevronDown,label:A,disabled:L,onPress:U}),s[25]=L,s[26]=A,s[27]=U,s[28]=$):$=s[28];s[29]!==S.foregroundMuted?(W=[y.readout,{color:S.foregroundMuted}],s[29]=S.foregroundMuted,s[30]=W):W=s[30];s[31]!==P?(z=Math.round(P),s[31]=P,s[32]=z):z=s[32];const E=`${z}%`;let N,H,V,q,G;s[33]!==E||s[34]!==W?(N=(0,x.jsx)(o.default,{style:W,numberOfLines:1,children:E}),s[33]=E,s[34]=W,s[35]=N):N=s[35];s[36]!==p?(H=p("v2.accessories.dimUp"),s[36]=p,s[37]=H):H=s[37];s[38]!==P||s[39]!==I?(V=()=>{I(P+C)},s[38]=P,s[39]=I,s[40]=V):V=s[40];s[41]!==L||s[42]!==H||s[43]!==V?(q=(0,x.jsx)(b.IconButton,{icon:c.ChevronUp,label:H,disabled:L,onPress:V}),s[41]=L,s[42]=H,s[43]=V,s[44]=q):q=s[44];s[45]!==N||s[46]!==q||s[47]!==F||s[48]!==$?(G=(0,x.jsxs)(n.default,{style:y.cluster,children:[F,$,N,q]}),s[45]=N,s[46]=q,s[47]=F,s[48]=$,s[49]=G):G=s[49];return G},_e.LockControl=function(e){const o=(0,t.c)(25),{deviceId:s,online:u}=e,{t:f}=(0,l.useTranslation)(),v=(0,h.useLockStatus)(s,u),p=(0,h.useCapMutator)(s),C=v.data?.state??"unlocked",S="locking"===C||"unlocking"===C,j="locked"===C;let w;o[0]!==p||o[1]!==v?(w=async e=>{await p.run("lockControl",e,{}),v.refetch()},o[0]=p,o[1]=v,o[2]=w):w=o[2];const M=w;if(v.isLoading&&!v.data){let e;return o[3]===Symbol.for("react.memo_cache_sentinel")?(e=(0,x.jsx)(b.ControlSpinner,{}),o[3]=e):e=o[3],e}const P=!u||p.pending||S;let k,T,I,_;o[4]!==f?(k=f("v2.accessories.lock"),o[4]=f,o[5]=k):k=o[5];o[6]!==M?(T=()=>{M("lock")},o[6]=M,o[7]=T):T=o[7];o[8]!==P||o[9]!==j||o[10]!==k||o[11]!==T?(I=(0,x.jsx)(b.PillButton,{label:k,icon:c.Lock,active:j,disabled:P,onPress:T}),o[8]=P,o[9]=j,o[10]=k,o[11]=T,o[12]=I):I=o[12];o[13]!==f?(_=f("v2.accessories.unlock"),o[13]=f,o[14]=_):_=o[14];const B=!j;let L,D,O;o[15]!==M?(L=()=>{M("unlock")},o[15]=M,o[16]=L):L=o[16];o[17]!==P||o[18]!==_||o[19]!==B||o[20]!==L?(D=(0,x.jsx)(b.PillButton,{label:_,icon:c.LockOpen,active:B,disabled:P,onPress:L}),o[17]=P,o[18]=_,o[19]=B,o[20]=L,o[21]=D):D=o[21];o[22]!==I||o[23]!==D?(O=(0,x.jsxs)(n.default,{style:y.cluster,children:[I,D]}),o[22]=I,o[23]=D,o[24]=O):O=o[24];return O},_e.CoverControl=function(e){const o=(0,t.c)(35),{deviceId:s,online:u,capKey:f}=e,{t:v}=(0,l.useTranslation)(),p=(0,h.useCoverStatus)(s,u),C=(0,h.useCapMutator)(s),S=p.data?.state??"stopped";let j;o[0]!==f||o[1]!==C||o[2]!==p?(j=async e=>{await C.run(f,e,{}),p.refetch()},o[0]=f,o[1]=C,o[2]=p,o[3]=j):j=o[3];const w=j;if(p.isLoading&&!p.data){let e;return o[4]===Symbol.for("react.memo_cache_sentinel")?(e=(0,x.jsx)(b.ControlSpinner,{}),o[4]=e):e=o[4],e}const M=!u||C.pending;let P;o[5]!==v?(P=v("v2.accessories.open"),o[5]=v,o[6]=P):P=o[6];const k="open"===S||"opening"===S;let T,I,_,B,L,D;o[7]!==w?(T=()=>{w("open")},o[7]=w,o[8]=T):T=o[8];o[9]!==M||o[10]!==P||o[11]!==k||o[12]!==T?(I=(0,x.jsx)(b.IconButton,{icon:c.ChevronUp,label:P,active:k,disabled:M,onPress:T}),o[9]=M,o[10]=P,o[11]=k,o[12]=T,o[13]=I):I=o[13];o[14]!==v?(_=v("v2.accessories.stop"),o[14]=v,o[15]=_):_=o[15];o[16]!==w?(B=()=>{w("stop")},o[16]=w,o[17]=B):B=o[17];o[18]!==M||o[19]!==_||o[20]!==B?(L=(0,x.jsx)(b.IconButton,{icon:c.Square,label:_,disabled:M,onPress:B}),o[18]=M,o[19]=_,o[20]=B,o[21]=L):L=o[21];o[22]!==v?(D=v("v2.accessories.close"),o[22]=v,o[23]=D):D=o[23];const O="closed"===S||"closing"===S;let F,A,U;o[24]!==w?(F=()=>{w("close")},o[24]=w,o[25]=F):F=o[25];o[26]!==M||o[27]!==O||o[28]!==F||o[29]!==D?(A=(0,x.jsx)(b.IconButton,{icon:c.ChevronDown,label:D,active:O,disabled:M,onPress:F}),o[26]=M,o[27]=O,o[28]=F,o[29]=D,o[30]=A):A=o[30];o[31]!==A||o[32]!==I||o[33]!==L?(U=(0,x.jsxs)(n.default,{style:y.cluster,children:[I,L,A]}),o[31]=A,o[32]=I,o[33]=L,o[34]=U):U=o[34];return U},_e.AlarmControl=function(e){const o=(0,t.c)(25),{deviceId:s,online:u}=e,{t:f}=(0,l.useTranslation)(),v=(0,h.useAlarmStatus)(s,u),p=(0,h.useCapMutator)(s),C=v.data?.state??"disarmed";let S;o[0]!==C?(S=C.startsWith("armed")||"arming"===C||"pending"===C||"triggered"===C,o[0]=C,o[1]=S):S=o[1];const j=S,w=v.data?.availableModes[0],M=v.data?.requiresCode??!1;let P;o[2]!==w||o[3]!==p||o[4]!==v?(P=async e=>{const t="arm"===e&&w?{mode:w}:{};await p.run("alarmPanel",e,t),v.refetch()},o[2]=w,o[3]=p,o[4]=v,o[5]=P):P=o[5];const k=P;if(v.isLoading&&!v.data){let e;return o[6]===Symbol.for("react.memo_cache_sentinel")?(e=(0,x.jsx)(b.ControlSpinner,{}),o[6]=e):e=o[6],e}const T=!u||p.pending,I=!M&&void 0!==w;let _,B;o[7]!==j||o[8]!==I||o[9]!==T||o[10]!==k||o[11]!==f?(_=I?(0,x.jsx)(b.PillButton,{label:f("v2.accessories.arm"),icon:c.ShieldCheck,active:j,disabled:T||j,onPress:()=>{k("arm")}}):null,o[7]=j,o[8]=I,o[9]=T,o[10]=k,o[11]=f,o[12]=_):_=o[12];o[13]!==f?(B=f("v2.accessories.disarm"),o[13]=f,o[14]=B):B=o[14];const L=!j,D=T||!j&&!M;let O,F,A;o[15]!==k?(O=()=>{k("disarm")},o[15]=k,o[16]=O):O=o[16];o[17]!==B||o[18]!==L||o[19]!==D||o[20]!==O?(F=(0,x.jsx)(b.PillButton,{label:B,icon:c.ShieldOff,active:L,disabled:D,onPress:O}),o[17]=B,o[18]=L,o[19]=D,o[20]=O,o[21]=F):F=o[21];o[22]!==_||o[23]!==F?(A=(0,x.jsxs)(n.default,{style:y.cluster,children:[_,F]}),o[22]=_,o[23]=F,o[24]=A):A=o[24];return A},_e.SensorValueControl=function(e){const n=(0,t.c)(6),{deviceId:s,online:l,feature:c}=e,{colors:f}=(0,u.useTheme)(),v=(0,h.useSensorValue)(c,s,l),p=v.data;if(v.isLoading&&!p){let e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,x.jsx)(b.ControlSpinner,{}),n[0]=e):e=n[0],e}if(!p)return null;const C="number"===p.kind?S(p.value,p.precision)+(p.unit?`\u202f${p.unit}`:""):String(p.value);let j,w;n[1]!==f.foreground?(j=[y.sensor,{color:f.foreground}],n[1]=f.foreground,n[2]=j):j=n[2];n[3]!==j||n[4]!==C?(w=(0,x.jsx)(o.default,{style:j,numberOfLines:1,children:C}),n[3]=j,n[4]=C,n[5]=w):w=n[5];return w},_e.ClimateControl=function(e){const s=(0,t.c)(69),{deviceId:f,online:p}=e,{t:C}=(0,l.useTranslation)(),{colors:S}=(0,u.useTheme)(),w=(0,h.useClimateStatus)(f,p),M=(0,h.useCapMutator)(f),P=w.data,k=P?.mode??"off";let T;s[0]!==P?.availableModes?(T=P?.availableModes??[],s[0]=P?.availableModes,s[1]=T):T=s[1];const I=T;let _;s[2]!==P?(_=P?(0,v.setpointModel)(P):{kind:"none"},s[2]=P,s[3]=_):_=s[3];const B=_;let L;s[4]!==I||s[5]!==k||s[6]!==M||s[7]!==w?(L=async()=>{const e=(0,v.nextMode)(k,I);e!==k&&(await M.run("climateControl","setMode",{mode:e}),w.refetch())},s[4]=I,s[5]=k,s[6]=M,s[7]=w,s[8]=L):L=s[8];const D=L;let O;s[9]!==B.high||s[10]!==B.kind||s[11]!==B.low||s[12]!==B.value||s[13]!==M||s[14]!==w?(O=async e=>{const t=e*v.CLIMATE_STEP_C;"single"===B.kind?await M.run("climateControl","setTarget",{target:(0,v.clampTarget)(B.value+t)}):"range"===B.kind&&await M.run("climateControl","setTargetRange",{targetLow:(0,v.clampTarget)(B.low+t),targetHigh:(0,v.clampTarget)(B.high+t)}),w.refetch()},s[9]=B.high,s[10]=B.kind,s[11]=B.low,s[12]=B.value,s[13]=M,s[14]=w,s[15]=O):O=s[15];const F=O;if(w.isLoading&&!P){let e;return s[16]===Symbol.for("react.memo_cache_sentinel")?(e=(0,x.jsx)(b.ControlSpinner,{}),s[16]=e):e=s[16],e}const A=!p||M.pending,U="none"!==B.kind;let $;s[17]!==P||s[18]!==B.high||s[19]!==B.kind||s[20]!==B.low||s[21]!==B.value?($="single"===B.kind?j(B.value):"range"===B.kind?`${j(B.low)}\u2013${j(B.high)}`:null!=P?.currentTemp?j(P.currentTemp):"--",s[17]=P,s[18]=B.high,s[19]=B.kind,s[20]=B.low,s[21]=B.value,s[22]=$):$=s[22];const W=$,z=`v2.accessories.climateModes.${k}`;let E;s[23]!==k||s[24]!==C||s[25]!==z?(E=C(z,{defaultValue:k}),s[23]=k,s[24]=C,s[25]=z,s[26]=E):E=s[26];const N=E;let H,V;s[27]!==S.foregroundMuted||s[28]!==P||s[29]!==B.kind?(H=null!=P?.currentTemp&&"none"!==B.kind?(0,x.jsx)(o.default,{style:[y.readout,{color:S.foregroundMuted}],numberOfLines:1,children:j(P.currentTemp)}):null,s[27]=S.foregroundMuted,s[28]=P,s[29]=B.kind,s[30]=H):H=s[30];s[31]!==S.foregroundMuted||s[32]!==P?(V=null!=P?.currentHumidity?(0,x.jsxs)(n.default,{style:y.humidity,children:[(0,x.jsx)(c.Droplet,{size:12,color:S.foregroundMuted}),(0,x.jsx)(o.default,{style:[y.humidityText,{color:S.foregroundMuted}],numberOfLines:1,children:(q=P.currentHumidity,`${Math.round(q)}%`)})]}):null,s[31]=S.foregroundMuted,s[32]=P,s[33]=V):V=s[33];var q;const G="off"!==k,K=A||I.length<=1;let R,Z,J;s[34]!==D?(R=()=>{D()},s[34]=D,s[35]=R):R=s[35];s[36]!==N||s[37]!==G||s[38]!==K||s[39]!==R?(Z=(0,x.jsx)(b.PillButton,{label:N,icon:c.Thermometer,active:G,disabled:K,onPress:R}),s[36]=N,s[37]=G,s[38]=K,s[39]=R,s[40]=Z):Z=s[40];s[41]!==C?(J=C("v2.accessories.cooler"),s[41]=C,s[42]=J):J=s[42];const Q=A||!U;let X,Y,ee,te,ne;s[43]!==F?(X=()=>{F(-1)},s[43]=F,s[44]=X):X=s[44];s[45]!==J||s[46]!==Q||s[47]!==X?(Y=(0,x.jsx)(b.IconButton,{icon:c.ChevronDown,label:J,disabled:Q,onPress:X}),s[45]=J,s[46]=Q,s[47]=X,s[48]=Y):Y=s[48];s[49]!==S.foreground?(ee=[y.readout,{color:S.foreground}],s[49]=S.foreground,s[50]=ee):ee=s[50];s[51]!==W||s[52]!==ee?(te=(0,x.jsx)(o.default,{style:ee,numberOfLines:1,children:W}),s[51]=W,s[52]=ee,s[53]=te):te=s[53];s[54]!==C?(ne=C("v2.accessories.warmer"),s[54]=C,s[55]=ne):ne=s[55];const oe=A||!U;let se,re,ae;s[56]!==F?(se=()=>{F(1)},s[56]=F,s[57]=se):se=s[57];s[58]!==ne||s[59]!==oe||s[60]!==se?(re=(0,x.jsx)(b.IconButton,{icon:c.ChevronUp,label:ne,disabled:oe,onPress:se}),s[58]=ne,s[59]=oe,s[60]=se,s[61]=re):re=s[61];s[62]!==Z||s[63]!==Y||s[64]!==te||s[65]!==re||s[66]!==H||s[67]!==V?(ae=(0,x.jsxs)(n.default,{style:y.cluster,children:[H,V,Z,Y,te,re]}),s[62]=Z,s[63]=Y,s[64]=te,s[65]=re,s[66]=H,s[67]=V,s[68]=ae):ae=s[68];return ae},_e.FanControl=function(e){const s=(0,t.c)(60),{deviceId:f,online:v}=e,{t:C}=(0,l.useTranslation)(),{colors:S}=(0,u.useTheme)(),j=(0,h.useSwitchStatus)(f,v),w=(0,h.useFanStatus)(f,v),M=(0,h.useCapMutator)(f),P=w.data?.percentage??0,k=w.data?.percentageStep??p.FAN_DEFAULT_STEP,T=j.data?.on??P>0,I=w.data?.oscillating??null;let _;s[0]!==w||s[1]!==M||s[2]!==T||s[3]!==j?(_=async()=>{await M.run("switch","setState",{on:!T}),j.refetch(),w.refetch()},s[0]=w,s[1]=M,s[2]=T,s[3]=j,s[4]=_):_=s[4];const B=_;let L;s[5]!==w||s[6]!==M||s[7]!==P||s[8]!==k||s[9]!==j?(L=async e=>{await M.run("fanControl","setPercentage",{percentage:(0,p.stepPercentage)(P,e,k)}),w.refetch(),j.refetch()},s[5]=w,s[6]=M,s[7]=P,s[8]=k,s[9]=j,s[10]=L):L=s[10];const D=L;let O;s[11]!==w||s[12]!==M||s[13]!==I?(O=async()=>{await M.run("fanControl","setOscillating",{oscillating:!I}),w.refetch()},s[11]=w,s[12]=M,s[13]=I,s[14]=O):O=s[14];const F=O;if(w.isLoading&&!w.data){let e;return s[15]===Symbol.for("react.memo_cache_sentinel")?(e=(0,x.jsx)(b.ControlSpinner,{}),s[15]=e):e=s[15],e}const A=!v||M.pending;let U,$,W,z,E,N,H,V;s[16]!==T||s[17]!==C?(U=C(T?"v2.accessories.off":"v2.accessories.on"),s[16]=T,s[17]=C,s[18]=U):U=s[18];s[19]!==B?($=()=>{B()},s[19]=B,s[20]=$):$=s[20];s[21]!==A||s[22]!==T||s[23]!==U||s[24]!==$?(W=(0,x.jsx)(b.IconButton,{icon:c.Fan,label:U,active:T,disabled:A,onPress:$}),s[21]=A,s[22]=T,s[23]=U,s[24]=$,s[25]=W):W=s[25];s[26]!==C?(z=C("v2.accessories.speedDown"),s[26]=C,s[27]=z):z=s[27];s[28]!==D?(E=()=>{D(-1)},s[28]=D,s[29]=E):E=s[29];s[30]!==A||s[31]!==z||s[32]!==E?(N=(0,x.jsx)(b.IconButton,{icon:c.ChevronDown,label:z,disabled:A,onPress:E}),s[30]=A,s[31]=z,s[32]=E,s[33]=N):N=s[33];s[34]!==S.foregroundMuted?(H=[y.readout,{color:S.foregroundMuted}],s[34]=S.foregroundMuted,s[35]=H):H=s[35];s[36]!==P?(V=Math.round(P),s[36]=P,s[37]=V):V=s[37];const q=`${V}%`;let G,K,R,Z,J,Q;s[38]!==H||s[39]!==q?(G=(0,x.jsx)(o.default,{style:H,numberOfLines:1,children:q}),s[38]=H,s[39]=q,s[40]=G):G=s[40];s[41]!==C?(K=C("v2.accessories.speedUp"),s[41]=C,s[42]=K):K=s[42];s[43]!==D?(R=()=>{D(1)},s[43]=D,s[44]=R):R=s[44];s[45]!==A||s[46]!==K||s[47]!==R?(Z=(0,x.jsx)(b.IconButton,{icon:c.ChevronUp,label:K,disabled:A,onPress:R}),s[45]=A,s[46]=K,s[47]=R,s[48]=Z):Z=s[48];s[49]!==A||s[50]!==I||s[51]!==C||s[52]!==F?(J=null!==I?(0,x.jsx)(b.IconButton,{icon:c.Wind,label:C("v2.accessories.oscillate"),active:I,disabled:A,onPress:()=>{F()}}):null,s[49]=A,s[50]=I,s[51]=C,s[52]=F,s[53]=J):J=s[53];s[54]!==G||s[55]!==Z||s[56]!==J||s[57]!==W||s[58]!==N?(Q=(0,x.jsxs)(n.default,{style:y.cluster,children:[W,N,G,Z,J]}),s[54]=G,s[55]=Z,s[56]=J,s[57]=W,s[58]=N,s[59]=Q):Q=s[59];return Q},_e.ButtonControl=function(e){const n=(0,t.c)(10),{deviceId:o,online:s}=e,{t:u}=(0,l.useTranslation)(),f=(0,h.useCapMutator)(o);let v;n[0]!==f?(v=async()=>{await f.run("button","press",{})},n[0]=f,n[1]=v):v=n[1];const p=v;let C;n[2]!==u?(C=u("v2.accessories.press"),n[2]=u,n[3]=C):C=n[3];const S=!s||f.pending;let j,y;n[4]!==p?(j=()=>{p()},n[4]=p,n[5]=j):j=n[5];n[6]!==C||n[7]!==S||n[8]!==j?(y=(0,x.jsx)(b.PillButton,{label:C,icon:c.Zap,disabled:S,onPress:j}),n[6]=C,n[7]=S,n[8]=j,n[9]=y):y=n[9];return y};var t=r(d[0]);r(d[1]);var n=e(r(d[2])),o=e(r(d[3])),s=e(r(d[4])),l=r(d[5]),c=r(d[6]),u=r(d[7]),f=r(d[8]),h=r(d[9]),v=r(d[10]),p=r(d[11]),b=r(d[12]),x=r(d[13]);const C=20;function S(e,t){return'number'==typeof t?e.toFixed(t):Number.isInteger(e)?String(e):e.toFixed(1)}function j(e){return(Number.isInteger(e)?String(e):e.toFixed(1))+'\xb0'}const y=s.default.create({cluster:{flexDirection:'row',alignItems:'center',gap:f.SPACING.sm},readout:{fontSize:12,fontWeight:'600',minWidth:34,textAlign:'center'},humidity:{flexDirection:'row',alignItems:'center',gap:2},humidityText:{fontSize:12,fontWeight:'600'},sensor:{fontSize:14,fontWeight:'600'}})},3477,[15,17,20,112,33,786,813,2587,2589,3474,3478,3479,3476,10]);
15899
15899
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"CLIMATE_MIN_C",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"CLIMATE_MAX_C",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"CLIMATE_STEP_C",{enumerable:!0,get:function(){return o}}),e.clampTarget=function(u){const l=Math.max(t,Math.min(n,u)),c=Math.round(l/o)*o;return Math.round(100*c)/100},e.nextMode=function(t,n){if(0===n.length)return t;const o=n.indexOf(t);return-1===o?n[0]:n[(o+1)%n.length]},e.setpointModel=function(t){if('heat_cool'===t.mode&&null!==t.targetLow&&null!==t.targetHigh)return{kind:'range',low:t.targetLow,high:t.targetHigh};return null!==t.target?{kind:'single',value:t.target}:{kind:'none'}};const t=5,n=35,o=.5},3478,[]);
15900
15900
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"FAN_DEFAULT_STEP",{enumerable:!0,get:function(){return t}}),e.clampPercentage=n,e.stepPercentage=function(c,o,u){const f=c??0,l=u>0?u:t;return n(f%l===0?f+o*l:1===o?Math.ceil(f/l)*l:Math.floor(f/l)*l)};const t=25;function n(t){return Math.max(0,Math.min(100,Math.round(t)))}},3479,[]);
15901
15901
  __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.MediaPlayerControl=function(e){const n=(0,s.c)(45),{deviceId:l,online:b}=e,{t:y}=(0,o.useTranslation)(),x=(0,p.useMediaPlayerStatus)(l,b),j=(0,u.useCapMutator)(l),w=x.data?.state??"idle",I="playing"===w||"buffering"===w;let C;n[0]!==j||n[1]!==x?(C=async e=>{await j.run("mediaPlayer",e,{}),x.refetch()},n[0]=j,n[1]=x,n[2]=C):C=n[2];const S=C;if(x.isLoading&&!x.data){let e;return n[3]===Symbol.for("react.memo_cache_sentinel")?(e=(0,f.jsx)(v.ControlSpinner,{}),n[3]=e):e=n[3],e}const M=!b||j.pending;let B,_,h;n[4]!==y?(B=y("v2.accessories.previous"),n[4]=y,n[5]=B):B=n[5];n[6]!==S?(_=()=>{S("previous")},n[6]=S,n[7]=_):_=n[7];n[8]!==M||n[9]!==B||n[10]!==_?(h=(0,f.jsx)(v.IconButton,{icon:c.SkipBack,label:B,disabled:M,onPress:_}),n[8]=M,n[9]=B,n[10]=_,n[11]=h):h=n[11];const k=I?c.Pause:c.Play;let F,L,T,H,V,q,A,D,G,N;n[12]!==I||n[13]!==y?(F=y(I?"v2.accessories.pause":"v2.accessories.play"),n[12]=I,n[13]=y,n[14]=F):F=n[14];n[15]!==I||n[16]!==S?(L=()=>{S(I?"pause":"play")},n[15]=I,n[16]=S,n[17]=L):L=n[17];n[18]!==M||n[19]!==I||n[20]!==k||n[21]!==F||n[22]!==L?(T=(0,f.jsx)(v.IconButton,{icon:k,label:F,active:I,disabled:M,onPress:L}),n[18]=M,n[19]=I,n[20]=k,n[21]=F,n[22]=L,n[23]=T):T=n[23];n[24]!==y?(H=y("v2.accessories.stop"),n[24]=y,n[25]=H):H=n[25];n[26]!==S?(V=()=>{S("stop")},n[26]=S,n[27]=V):V=n[27];n[28]!==M||n[29]!==V||n[30]!==H?(q=(0,f.jsx)(v.IconButton,{icon:c.Square,label:H,disabled:M,onPress:V}),n[28]=M,n[29]=V,n[30]=H,n[31]=q):q=n[31];n[32]!==y?(A=y("v2.accessories.next"),n[32]=y,n[33]=A):A=n[33];n[34]!==S?(D=()=>{S("next")},n[34]=S,n[35]=D):D=n[35];n[36]!==M||n[37]!==A||n[38]!==D?(G=(0,f.jsx)(v.IconButton,{icon:c.SkipForward,label:A,disabled:M,onPress:D}),n[36]=M,n[37]=A,n[38]=D,n[39]=G):G=n[39];n[40]!==q||n[41]!==G||n[42]!==h||n[43]!==T?(N=(0,f.jsxs)(t.default,{style:P.cluster,children:[h,T,q,G]}),n[40]=q,n[41]=G,n[42]=h,n[43]=T,n[44]=N):N=n[44];return N},_e.VacuumControl=function(e){const n=(0,s.c)(37),{deviceId:l,online:b}=e,{t:y}=(0,o.useTranslation)(),x=(0,p.useVacuumStatus)(l,b),j=(0,u.useCapMutator)(l),w=x.data?.state??"idle",I="cleaning"===w;let C;n[0]!==j||n[1]!==x?(C=async e=>{await j.run("vacuumControl",e,{}),x.refetch()},n[0]=j,n[1]=x,n[2]=C):C=n[2];const S=C;if(x.isLoading&&!x.data){let e;return n[3]===Symbol.for("react.memo_cache_sentinel")?(e=(0,f.jsx)(v.ControlSpinner,{}),n[3]=e):e=n[3],e}const M=!b||j.pending,B=I?c.Pause:c.Play;let _,h,k,F;n[4]!==I||n[5]!==y?(_=y(I?"v2.accessories.pause":"v2.accessories.start"),n[4]=I,n[5]=y,n[6]=_):_=n[6];n[7]!==I||n[8]!==S?(h=()=>{S(I?"pause":"start")},n[7]=I,n[8]=S,n[9]=h):h=n[9];n[10]!==I||n[11]!==M||n[12]!==B||n[13]!==_||n[14]!==h?(k=(0,f.jsx)(v.IconButton,{icon:B,label:_,active:I,disabled:M,onPress:h}),n[10]=I,n[11]=M,n[12]=B,n[13]=_,n[14]=h,n[15]=k):k=n[15];n[16]!==y?(F=y("v2.accessories.dock"),n[16]=y,n[17]=F):F=n[17];const L="returning"===w||"docked"===w;let T,H,V,q,A,D;n[18]!==S?(T=()=>{S("returnToBase")},n[18]=S,n[19]=T):T=n[19];n[20]!==M||n[21]!==F||n[22]!==L||n[23]!==T?(H=(0,f.jsx)(v.IconButton,{icon:c.House,label:F,active:L,disabled:M,onPress:T}),n[20]=M,n[21]=F,n[22]=L,n[23]=T,n[24]=H):H=n[24];n[25]!==y?(V=y("v2.accessories.locate"),n[25]=y,n[26]=V):V=n[26];n[27]!==S?(q=()=>{S("locate")},n[27]=S,n[28]=q):q=n[28];n[29]!==M||n[30]!==V||n[31]!==q?(A=(0,f.jsx)(v.IconButton,{icon:c.MapPin,label:V,disabled:M,onPress:q}),n[29]=M,n[30]=V,n[31]=q,n[32]=A):A=n[32];n[33]!==A||n[34]!==k||n[35]!==H?(D=(0,f.jsxs)(t.default,{style:P.cluster,children:[k,H,A]}),n[33]=A,n[34]=k,n[35]=H,n[36]=D):D=n[36];return D},_e.LawnMowerControl=function(e){const n=(0,s.c)(28),{deviceId:l,online:b}=e,{t:y}=(0,o.useTranslation)(),x=(0,p.useLawnMowerStatus)(l,b),j=(0,u.useCapMutator)(l),w=x.data?.activity??"idle",I="mowing"===w;let C;n[0]!==j||n[1]!==x?(C=async e=>{await j.run("lawnMowerControl",e,{}),x.refetch()},n[0]=j,n[1]=x,n[2]=C):C=n[2];const S=C;if(x.isLoading&&!x.data){let e;return n[3]===Symbol.for("react.memo_cache_sentinel")?(e=(0,f.jsx)(v.ControlSpinner,{}),n[3]=e):e=n[3],e}const M=!b||j.pending,B=I?c.Pause:c.Play;let _,h,k,F;n[4]!==I||n[5]!==y?(_=y(I?"v2.accessories.pause":"v2.accessories.start"),n[4]=I,n[5]=y,n[6]=_):_=n[6];n[7]!==I||n[8]!==S?(h=()=>{S(I?"pause":"startMowing")},n[7]=I,n[8]=S,n[9]=h):h=n[9];n[10]!==M||n[11]!==I||n[12]!==B||n[13]!==_||n[14]!==h?(k=(0,f.jsx)(v.IconButton,{icon:B,label:_,active:I,disabled:M,onPress:h}),n[10]=M,n[11]=I,n[12]=B,n[13]=_,n[14]=h,n[15]=k):k=n[15];n[16]!==y?(F=y("v2.accessories.dock"),n[16]=y,n[17]=F):F=n[17];const L="docked"===w;let T,H,V;n[18]!==S?(T=()=>{S("dock")},n[18]=S,n[19]=T):T=n[19];n[20]!==M||n[21]!==F||n[22]!==L||n[23]!==T?(H=(0,f.jsx)(v.IconButton,{icon:c.House,label:F,active:L,disabled:M,onPress:T}),n[20]=M,n[21]=F,n[22]=L,n[23]=T,n[24]=H):H=n[24];n[25]!==k||n[26]!==H?(V=(0,f.jsxs)(t.default,{style:P.cluster,children:[k,H]}),n[25]=k,n[26]=H,n[27]=V):V=n[27];return V},_e.PetFeederControl=function(e){const t=(0,s.c)(18),{deviceId:n,online:l}=e,{t:P}=(0,o.useTranslation)(),y=(0,p.usePetFeederStatus)(n,l),x=(0,u.useCapMutator)(n),j=y.data?.feeding??!1;let w;t[0]!==x||t[1]!==y?(w=async()=>{await x.run("petFeeder","feed",{grams:b}),y.refetch()},t[0]=x,t[1]=y,t[2]=w):w=t[2];const I=w;let C;t[3]!==x||t[4]!==y?(C=async()=>{await x.run("petFeeder","cancelFeed",{}),y.refetch()},t[3]=x,t[4]=y,t[5]=C):C=t[5];const S=C,M=!l||x.pending;let B,_,h;t[6]!==j||t[7]!==P?(B=P(j?"v2.accessories.feeding":"v2.accessories.feed"),t[6]=j,t[7]=P,t[8]=B):B=t[8];t[9]!==S||t[10]!==I||t[11]!==j?(_=()=>{j?S():I()},t[9]=S,t[10]=I,t[11]=j,t[12]=_):_=t[12];t[13]!==M||t[14]!==j||t[15]!==B||t[16]!==_?(h=(0,f.jsx)(v.PillButton,{label:B,icon:c.Utensils,active:j,disabled:M,onPress:_}),t[13]=M,t[14]=j,t[15]=B,t[16]=_,t[17]=h):h=t[17];return h};var s=r(d[0]);r(d[1]);var t=e(r(d[2])),n=e(r(d[3])),o=r(d[4]),c=r(d[5]),l=r(d[6]),u=r(d[7]),p=r(d[8]),v=r(d[9]),f=r(d[10]);const b=10;const P=n.default.create({cluster:{flexDirection:'row',alignItems:'center',gap:l.SPACING.sm}})},3480,[15,17,20,33,786,813,2589,3474,3481,3476,10]);
@@ -15904,7 +15904,7 @@ __d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e
15904
15904
  __d(function(g,r,i,a,m,e,d){"use strict";function n(n,t,u){return Math.max(t,Math.min(u,n))}Object.defineProperty(e,'__esModule',{value:!0}),e.clampRange=n,e.stepValue=function(t,u,c,o,f){return l=n((t??o)+u*(c>0?c:1),o,f),Math.round(100*l)/100;var l},e.nextInList=function(n,t){if(0===t.length)return n;const u=t.indexOf(n);return-1===u?t[0]:t[(u+1)%t.length]}},3483,[]);
15905
15905
  __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.UpdateControl=function(e){const n=(0,t.c)(22),{deviceId:s,online:l}=e,{t:h}=(0,u.useTranslation)(),{colors:y}=(0,f.useTheme)(),C=(0,v.useUpdateStatus)(s,l),j=(0,p.useCapMutator)(s),S=C.data;let I;n[0]!==j||n[1]!==C?(I=async()=>{await j.run("update","installUpdate",{}),C.refetch()},n[0]=j,n[1]=C,n[2]=I):I=n[2];const P=I;if(C.isLoading&&!S){let e;return n[3]===Symbol.for("react.memo_cache_sentinel")?(e=(0,x.jsx)(b.ControlSpinner,{}),n[3]=e):e=n[3],e}const L=!l||j.pending||(S?.inProgress??!1);if(S?.updatable){let e;n[4]!==S.inProgress||n[5]!==h?(e=S.inProgress?h("v2.accessories.installing"):h("v2.accessories.install"),n[4]=S.inProgress,n[5]=h,n[6]=e):e=n[6];const t=S.inProgress?c.RefreshCw:c.Download;let o,s;return n[7]!==P?(o=()=>{P()},n[7]=P,n[8]=o):o=n[8],n[9]!==L||n[10]!==e||n[11]!==t||n[12]!==o?(s=(0,x.jsx)(b.PillButton,{label:e,icon:t,active:!0,disabled:L,onPress:o}),n[9]=L,n[10]=e,n[11]=t,n[12]=o,n[13]=s):s=n[13],s}let M,w,T;n[14]!==y.foregroundMuted?(M=[_.readonly,{color:y.foregroundMuted}],n[14]=y.foregroundMuted,n[15]=M):M=n[15];n[16]!==S?.currentVersion||n[17]!==h?(w=S?.currentVersion??h("v2.accessories.upToDate"),n[16]=S?.currentVersion,n[17]=h,n[18]=w):w=n[18];n[19]!==M||n[20]!==w?(T=(0,x.jsx)(o.default,{style:M,numberOfLines:1,children:w}),n[19]=M,n[20]=w,n[21]=T):T=n[21];return T},_e.WeatherControl=function(e){const n=(0,t.c)(12),{deviceId:s,online:l}=e,{colors:u}=(0,f.useTheme)(),c=(0,v.useWeatherStatus)(s,l),h=c.data;if(c.isLoading&&!h){let e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,x.jsx)(b.ControlSpinner,{}),n[0]=e):e=n[0],e}if(!h)return null;let p;n[1]!==h.temperature||n[2]!==h.temperatureUnit?(p=null!==h.temperature?`${Math.round(h.temperature)}${h.temperatureUnit??"\xb0"}`:"",n[1]=h.temperature,n[2]=h.temperatureUnit,n[3]=p):p=n[3];const y=p,C=h.condition??"";let j;n[4]!==C||n[5]!==y?(j=[y,C].filter(I),n[4]=C,n[5]=y,n[6]=j):j=n[6];const S=j.join(" \xb7 ");if(!S)return null;let P,L;n[7]!==u.foreground?(P=[_.readonly,{color:u.foreground}],n[7]=u.foreground,n[8]=P):P=n[8];n[9]!==P||n[10]!==S?(L=(0,x.jsx)(o.default,{style:P,numberOfLines:1,children:S}),n[9]=P,n[10]=S,n[11]=L):L=n[11];return L},_e.ImageControl=function(e){const n=(0,t.c)(8),{deviceId:o,online:l}=e,{colors:u}=(0,f.useTheme)(),c=(0,v.useImageStatus)(o,l),h=c.data?.url??null;if(c.isLoading&&!c.data){let e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,x.jsx)(b.ControlSpinner,{}),n[0]=e):e=n[0],e}if(!h)return null;let p,y,C;n[1]!==h?(p={uri:h},n[1]=h,n[2]=p):p=n[2];n[3]!==u.border?(y=[_.thumb,{borderColor:u.border}],n[3]=u.border,n[4]=y):y=n[4];n[5]!==p||n[6]!==y?(C=(0,x.jsx)(s.default,{source:p,style:y,resizeMode:"cover",accessibilityIgnoresInvertColors:!0}),n[5]=p,n[6]=y,n[7]=C):C=n[7];return C},_e.InputControl=function(e){const s=(0,t.c)(48),{deviceId:l,online:h}=e,{t:I}=(0,u.useTranslation)(),{colors:P}=(0,f.useTheme)(),L=(0,v.useControlStatus)(l,h),M=(0,p.useCapMutator)(l),w=L.data;let T;s[0]!==w||s[1]!==M||s[2]!==L?(T=async e=>{if(!w||"number"!=typeof w.value)return;const t=(0,y.stepValue)(w.value,e,w.step??S,w.min??C,w.max??j);await M.run("control","setValue",{control:{kind:"numeric",value:t}}),L.refetch()},s[0]=w,s[1]=M,s[2]=L,s[3]=T):T=s[3];const U=T;let W;s[4]!==w||s[5]!==M||s[6]!==L?(W=async()=>{if(!w||"string"!=typeof w.value||0===w.options.length)return;const e=(0,y.nextInList)(w.value,w.options);e!==w.value&&(await M.run("control","setValue",{control:{kind:"select",value:e}}),L.refetch())},s[4]=w,s[5]=M,s[6]=L,s[7]=W):W=s[7];const V=W;if(L.isLoading&&!w){let e;return s[8]===Symbol.for("react.memo_cache_sentinel")?(e=(0,x.jsx)(b.ControlSpinner,{}),s[8]=e):e=s[8],e}if(!w)return null;const O=!h||M.pending;if("numeric"===w.kind&&"number"==typeof w.value){const e=w.unit?` ${w.unit}`:"";let t,l,u,f;s[9]!==I?(t=I("v2.accessories.decrease"),s[9]=I,s[10]=t):t=s[10],s[11]!==U?(l=()=>{U(-1)},s[11]=U,s[12]=l):l=s[12],s[13]!==O||s[14]!==t||s[15]!==l?(u=(0,x.jsx)(b.IconButton,{icon:c.ChevronDown,label:t,disabled:O,onPress:l}),s[13]=O,s[14]=t,s[15]=l,s[16]=u):u=s[16],s[17]!==P.foreground?(f=[_.readout,{color:P.foreground}],s[17]=P.foreground,s[18]=f):f=s[18];const h=`${w.value}${e}`;let p,v,y,C,j;return s[19]!==f||s[20]!==h?(p=(0,x.jsx)(o.default,{style:f,numberOfLines:1,children:h}),s[19]=f,s[20]=h,s[21]=p):p=s[21],s[22]!==I?(v=I("v2.accessories.increase"),s[22]=I,s[23]=v):v=s[23],s[24]!==U?(y=()=>{U(1)},s[24]=U,s[25]=y):y=s[25],s[26]!==O||s[27]!==y||s[28]!==v?(C=(0,x.jsx)(b.IconButton,{icon:c.ChevronUp,label:v,disabled:O,onPress:y}),s[26]=O,s[27]=y,s[28]=v,s[29]=C):C=s[29],s[30]!==C||s[31]!==u||s[32]!==p?(j=(0,x.jsxs)(n.default,{style:_.cluster,children:[u,p,C]}),s[30]=C,s[31]=u,s[32]=p,s[33]=j):j=s[33],j}if("select"===w.kind&&"string"==typeof w.value){let e;s[34]!==w.value||s[35]!==I?(e=w.value||I("v2.accessories.select"),s[34]=w.value,s[35]=I,s[36]=e):e=s[36];const t=O||w.options.length<=1;let n,o;return s[37]!==V?(n=()=>{V()},s[37]=V,s[38]=n):n=s[38],s[39]!==e||s[40]!==t||s[41]!==n?(o=(0,x.jsx)(b.PillButton,{label:e,active:!0,disabled:t,onPress:n}),s[39]=e,s[40]=t,s[41]=n,s[42]=o):o=s[42],o}let $;s[43]!==P.foreground?($=[_.readonly,{color:P.foreground}],s[43]=P.foreground,s[44]=$):$=s[44];const k=String(w.value);let B;s[45]!==$||s[46]!==k?(B=(0,x.jsx)(o.default,{style:$,numberOfLines:1,children:k}),s[45]=$,s[46]=k,s[47]=B):B=s[47];return B};var t=r(d[0]);r(d[1]);var n=e(r(d[2])),o=e(r(d[3])),s=e(r(d[4])),l=e(r(d[5])),u=r(d[6]),c=r(d[7]),f=r(d[8]),h=r(d[9]),p=r(d[10]),v=r(d[11]),b=r(d[12]),y=r(d[13]),x=r(d[14]);const C=0,j=100,S=1;function I(e){return e.length>0}const _=l.default.create({cluster:{flexDirection:'row',alignItems:'center',gap:h.SPACING.sm},readout:{fontSize:12,fontWeight:'600',minWidth:40,textAlign:'center'},readonly:{fontSize:14,fontWeight:'600'},thumb:{width:44,height:28,borderRadius:6,borderWidth:l.default.hairlineWidth}})},3484,[15,17,20,112,192,33,786,813,2587,2589,3474,3481,3476,3483,10]);
15906
15906
  __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.CameraSwitcherPanel=function(e){const u=(0,t.c)(45),{currentId:S,onSwitch:I,onOpenGrid:w}=e,{t:P}=(0,h.useTranslation)(),{colors:A}=(0,y.useTheme)(),{data:G,isLoading:_}=(0,p.useCameras)();let k;u[0]!==G?(k=void 0===G?[]:G,u[0]=G,u[1]=k):k=u[1];const z=k;let D;u[2]===Symbol.for("react.memo_cache_sentinel")?(D=new Set,u[2]=D):D=u[2];const[N,R]=(0,o.useState)(D),v=N.size>0;let B;u[3]===Symbol.for("react.memo_cache_sentinel")?(B=e=>R(t=>{const o=new Set(t);return o.has(e)?o.delete(e):o.add(e),o}),u[3]=B):B=u[3];const V=B;let W;if(u[4]!==z||u[5]!==N){let e;u[7]!==N?(e=e=>N.has(e.id),u[7]=N,u[8]=e):e=u[8],W=z.filter(e).map(C),u[4]=z,u[5]=N,u[6]=W}else W=u[6];const L=W,T=L.length>=2;if(_&&0===z.length){let e;return u[9]!==A.primary?(e=(0,x.jsx)(n.default,{style:j.center,children:(0,x.jsx)(f.default,{color:A.primary})}),u[9]=A.primary,u[10]=e):e=u[10],e}if(0===z.length){let e,t,o;return u[11]!==A.foregroundSubtle?(e=[j.empty,{color:A.foregroundSubtle}],u[11]=A.foregroundSubtle,u[12]=e):e=u[12],u[13]!==P?(t=P("v2.cameraSwitcher.empty"),u[13]=P,u[14]=t):t=u[14],u[15]!==e||u[16]!==t?(o=(0,x.jsx)(l.default,{style:e,children:t}),u[15]=e,u[16]=t,u[17]=o):o=u[17],o}let O,q,F,H;if(u[18]!==z||u[19]!==A||u[20]!==S||u[21]!==I||u[22]!==N||u[23]!==v||u[24]!==P){let e;u[26]!==A||u[27]!==S||u[28]!==I||u[29]!==N||u[30]!==v||u[31]!==P?(e=e=>{const t=e.id===S,o=N.has(e.id);return(0,x.jsxs)(s.default,{onPress:()=>v?V(e.id):I(e.id),accessibilityRole:"button",accessibilityState:{selected:t},style:[j.row,{borderBottomColor:A.borderSubtle},t&&{backgroundColor:`${A.primary}14`}],children:[(0,x.jsx)(s.default,{onPress:()=>V(e.id),hitSlop:8,accessibilityRole:"checkbox",accessibilityState:{checked:o},accessibilityLabel:P("v2.cameraSwitcher.selectA11y",{name:e.name}),children:o?(0,x.jsx)(b.CheckSquare,{size:18,color:A.primary}):(0,x.jsx)(b.Square,{size:18,color:A.foregroundSubtle})}),(0,x.jsx)(n.default,{style:[j.onlineDot,{backgroundColor:e.online?A.success:A.foregroundSubtle}]}),(0,x.jsx)(l.default,{style:[j.name,{color:t?A.primary:A.foreground},t&&j.nameCurrent],numberOfLines:1,children:e.name}),t?(0,x.jsx)(b.Check,{size:16,color:A.primary}):null]},e.id)},u[26]=A,u[27]=S,u[28]=I,u[29]=N,u[30]=v,u[31]=P,u[32]=e):e=u[32],O=z.map(e),u[18]=z,u[19]=A,u[20]=S,u[21]=I,u[22]=N,u[23]=v,u[24]=P,u[25]=O}else O=u[25];u[33]!==O?(q=(0,x.jsx)(c.default,{style:j.list,showsVerticalScrollIndicator:!1,children:O}),u[33]=O,u[34]=q):q=u[34];u[35]!==T||u[36]!==A||u[37]!==w||u[38]!==L||u[39]!==v||u[40]!==P?(F=v?(0,x.jsxs)(s.default,{onPress:()=>{T&&w(L)},disabled:!T,accessibilityRole:"button",accessibilityState:{disabled:!T},style:[j.gridButton,T?{backgroundColor:A.primary}:{backgroundColor:A.backgroundElevated}],children:[(0,x.jsx)(b.LayoutGrid,{size:15,color:T?A.primaryForeground:A.foregroundDisabled}),(0,x.jsx)(l.default,{style:[j.gridButtonText,{color:T?A.primaryForeground:A.foregroundDisabled}],children:P("v2.cameraSwitcher.openGrid",{n:L.length})})]}):null,u[35]=T,u[36]=A,u[37]=w,u[38]=L,u[39]=v,u[40]=P,u[41]=F):F=u[41];u[42]!==q||u[43]!==F?(H=(0,x.jsxs)(n.default,{style:j.body,children:[q,F]}),u[42]=q,u[43]=F,u[44]=H):H=u[44];return H};var t=r(d[0]),o=r(d[1]),n=e(r(d[2])),l=e(r(d[3])),s=e(r(d[4])),c=e(r(d[5])),u=e(r(d[6])),f=e(r(d[7])),h=r(d[8]),b=r(d[9]),y=r(d[10]),S=r(d[11]),p=r(d[12]),x=r(d[13]);function C(e){return e.id}const j=u.default.create({center:{paddingVertical:S.SPACING.lg,alignItems:'center'},empty:{fontSize:13,paddingVertical:S.SPACING.md,textAlign:'center'},body:{gap:S.SPACING.sm},list:{maxHeight:360},row:{flexDirection:'row',alignItems:'center',gap:S.SPACING.md,paddingVertical:S.SPACING.sm+2,paddingHorizontal:S.SPACING.sm,borderBottomWidth:u.default.hairlineWidth,borderRadius:S.RADIUS.sm},onlineDot:{width:7,height:7,borderRadius:4},name:{flex:1,fontSize:14,fontWeight:'500'},nameCurrent:{fontWeight:'700'},gridButton:{flexDirection:'row',alignItems:'center',justifyContent:'center',gap:S.SPACING.sm,paddingVertical:S.SPACING.md,borderRadius:S.RADIUS.md},gridButtonText:{fontSize:13,fontWeight:'600'}})},3485,[15,17,20,112,252,147,33,240,786,813,2587,2589,3080,10]);
15907
- __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.CameraMenuPanel=function(e){const n=(0,o.c)(134),{boundingBoxesOn:s,onToggleBoundingBoxes:l,statsOn:h,onToggleStats:y,audioMeterOn:R,onToggleAudioMeter:L,highlight:E,onSetHighlight:N,onOpenStorage:_,onOpenEvents:A,onClose:O,topOffset:D,align:V,maxWidth:W}=e,{t:z}=(0,u.useTranslation)(),{colors:B}=(0,f.useTheme)(),{settings:G,setCluster:H}=(0,x.useSettings)();let k;n[0]!==G.clusters?(k=(0,C.matchTimelineDensityPreset)(G.clusters),n[0]=G.clusters,n[1]=k):k=n[1];const F=k;let Y;n[2]!==z?(Y=C.TIMELINE_DENSITY_PRESET_ORDER.map(e=>({value:e,label:z(`v2.cameraMenu.density_${e}`)})),n[2]=z,n[3]=Y):Y=n[3];const $=Y;let q;n[4]!==H?(q=e=>{if("custom"===e)return;const o=C.TIMELINE_DENSITY_PRESETS[e];H("gapPercent",o.gapPercent),H("cardWidthFraction",o.cardWidthFraction)},n[4]=H,n[5]=q):q=n[5];const U=q;let J;n[6]!==z?(J=C.MIN_IMPORTANCE_CHOICES.map(e=>({value:String(e),label:0===e?z("v2.cameraMenu.minImportanceOff"):`\u2265${Math.round(100*e)}%`})),n[6]=z,n[7]=J):J=n[7];const K=J;let Q,X,Z,ee,oe,te,ne,re,se,le,ae;n[8]!==z?(Q=z("v2.cameraMenu.title"),n[8]=z,n[9]=Q):Q=n[9];n[10]!==z?(X=z("v2.cameraDetail.close"),n[10]=z,n[11]=X):X=n[11];n[12]!==z?(Z=z("v2.cameraMenu.boundingBoxes"),n[12]=z,n[13]=Z):Z=n[13];n[14]!==s||n[15]!==l||n[16]!==Z?(ee=(0,v.jsx)(M.PanelToggleRow,{icon:c.SquareDashed,label:Z,value:s,onValueChange:l}),n[14]=s,n[15]=l,n[16]=Z,n[17]=ee):ee=n[17];n[18]!==z?(oe=z("v2.cameraMenu.streamStats"),n[18]=z,n[19]=oe):oe=n[19];n[20]!==y||n[21]!==h||n[22]!==oe?(te=(0,v.jsx)(M.PanelToggleRow,{icon:c.Activity,label:oe,value:h,onValueChange:y}),n[20]=y,n[21]=h,n[22]=oe,n[23]=te):te=n[23];n[24]!==z?(ne=z("v2.cameraMenu.audioLevel"),n[24]=z,n[25]=ne):ne=n[25];n[26]!==R||n[27]!==L||n[28]!==ne?(re=(0,v.jsx)(M.PanelToggleRow,{icon:c.AudioLines,label:ne,value:R,onValueChange:L}),n[26]=R,n[27]=L,n[28]=ne,n[29]=re):re=n[29];n[30]!==B.foregroundMuted?(se=[T.sectionLabel,{color:B.foregroundMuted}],n[30]=B.foregroundMuted,n[31]=se):se=n[31];n[32]!==z?(le=z("v2.cameraMenu.densityTitle"),n[32]=z,n[33]=le):le=n[33];n[34]!==se||n[35]!==le?(ae=(0,v.jsx)(t.default,{style:se,children:le}),n[34]=se,n[35]=le,n[36]=ae):ae=n[36];const ie=F??"custom";let ue,ce,de,ge,fe,he,me,pe,Me,be,xe,Ce,ve,Pe;n[37]!==U||n[38]!==$||n[39]!==ie?(ue=(0,v.jsx)(b.SegmentedControl,{options:$,value:ie,onChange:U}),n[37]=U,n[38]=$,n[39]=ie,n[40]=ue):ue=n[40];n[41]!==B.foregroundMuted||n[42]!==F||n[43]!==z?(ce=null===F?(0,v.jsx)(t.default,{style:[T.densityCustom,{color:B.foregroundMuted}],children:z("v2.cameraMenu.densityCustom")}):null,n[41]=B.foregroundMuted,n[42]=F,n[43]=z,n[44]=ce):ce=n[44];n[45]!==z?(de=z("v2.cameraMenu.indicatorPosition"),n[45]=z,n[46]=de):de=n[46];n[47]!==H?(ge=e=>H("indicatorPositionPct",e),n[47]=H,n[48]=ge):ge=n[48];n[49]!==G.clusters.indicatorPositionPct||n[50]!==de||n[51]!==ge?(fe=(0,v.jsx)(w,{icon:c.Crosshair,label:de,value:G.clusters.indicatorPositionPct,min:P,max:S,step:I,suffix:"%",onChange:ge}),n[49]=G.clusters.indicatorPositionPct,n[50]=de,n[51]=ge,n[52]=fe):fe=n[52];n[53]!==z?(he=z("v2.cameraMenu.showImportance"),n[53]=z,n[54]=he):he=n[54];n[55]!==H||n[56]!==G.clusters.showImportance?(me=()=>H("showImportance",!G.clusters.showImportance),n[55]=H,n[56]=G.clusters.showImportance,n[57]=me):me=n[57];n[58]!==G.clusters.showImportance||n[59]!==he||n[60]!==me?(pe=(0,v.jsx)(M.PanelToggleRow,{icon:c.Layers,label:he,value:G.clusters.showImportance,onValueChange:me}),n[58]=G.clusters.showImportance,n[59]=he,n[60]=me,n[61]=pe):pe=n[61];n[62]!==z?(Me=z("v2.cameraMenu.showClass"),n[62]=z,n[63]=Me):Me=n[63];n[64]!==H||n[65]!==G.clusters.showClass?(be=()=>H("showClass",!G.clusters.showClass),n[64]=H,n[65]=G.clusters.showClass,n[66]=be):be=n[66];n[67]!==G.clusters.showClass||n[68]!==Me||n[69]!==be?(xe=(0,v.jsx)(M.PanelToggleRow,{icon:c.List,label:Me,value:G.clusters.showClass,onValueChange:be}),n[67]=G.clusters.showClass,n[68]=Me,n[69]=be,n[70]=xe):xe=n[70];n[71]!==B.foregroundMuted?(Ce=[T.sectionLabel,{color:B.foregroundMuted}],n[71]=B.foregroundMuted,n[72]=Ce):Ce=n[72];n[73]!==z?(ve=z("v2.cameraMenu.minImportanceTitle"),n[73]=z,n[74]=ve):ve=n[74];n[75]!==Ce||n[76]!==ve?(Pe=(0,v.jsx)(t.default,{style:Ce,children:ve}),n[75]=Ce,n[76]=ve,n[77]=Pe):Pe=n[77];const Se=String(G.clusters.minImportance);let Ie,je,we,Te,ye,Re,Le,Ee,Ne,Ae,Oe,De,Ve,We;n[78]!==H?(Ie=e=>H("minImportance",Number(e)),n[78]=H,n[79]=Ie):Ie=n[79];n[80]!==K||n[81]!==Se||n[82]!==Ie?(je=(0,v.jsx)(b.SegmentedControl,{options:K,value:Se,onChange:Ie}),n[80]=K,n[81]=Se,n[82]=Ie,n[83]=je):je=n[83];n[84]!==B.foregroundMuted?(we=[T.sectionLabel,{color:B.foregroundMuted}],n[84]=B.foregroundMuted,n[85]=we):we=n[85];n[86]!==z?(Te=z("v2.gridBuilder.highlightTitle"),n[86]=z,n[87]=Te):Te=n[87];n[88]!==we||n[89]!==Te?(ye=(0,v.jsx)(t.default,{style:we,children:Te}),n[88]=we,n[89]=Te,n[90]=ye):ye=n[90];n[91]!==E||n[92]!==N?(Re=(0,v.jsx)(M.HighlightTriggerRows,{highlight:E,onSetHighlight:N}),n[91]=E,n[92]=N,n[93]=Re):Re=n[93];n[94]!==B.foregroundMuted?(Le=[T.sectionLabel,{color:B.foregroundMuted}],n[94]=B.foregroundMuted,n[95]=Le):Le=n[95];n[96]!==z?(Ee=z("v2.cameraMenu.managementTitle"),n[96]=z,n[97]=Ee):Ee=n[97];n[98]!==Le||n[99]!==Ee?(Ne=(0,v.jsx)(t.default,{style:Le,children:Ee}),n[98]=Le,n[99]=Ee,n[100]=Ne):Ne=n[100];n[101]!==z?(Ae=z("v2.storage.title"),n[101]=z,n[102]=Ae):Ae=n[102];n[103]!==_||n[104]!==Ae?(Oe=(0,v.jsx)(j,{icon:c.HardDrive,label:Ae,onPress:_}),n[103]=_,n[104]=Ae,n[105]=Oe):Oe=n[105];n[106]!==z?(De=z("v2.eventsMgmt.title"),n[106]=z,n[107]=De):De=n[107];n[108]!==A||n[109]!==De?(Ve=(0,v.jsx)(j,{icon:c.ListTree,label:De,onPress:A}),n[108]=A,n[109]=De,n[110]=Ve):Ve=n[110];n[111]!==V||n[112]!==W||n[113]!==O||n[114]!==te||n[115]!==re||n[116]!==ae||n[117]!==ue||n[118]!==ce||n[119]!==fe||n[120]!==pe||n[121]!==xe||n[122]!==Pe||n[123]!==je||n[124]!==ye||n[125]!==Re||n[126]!==Ne||n[127]!==Oe||n[128]!==Ve||n[129]!==Q||n[130]!==X||n[131]!==ee||n[132]!==D?(We=(0,v.jsxs)(p.FloatingPanel,{title:Q,onClose:O,closeLabel:X,topOffset:D,align:V,maxWidth:W,children:[ee,te,re,ae,ue,ce,fe,pe,xe,Pe,je,ye,Re,Ne,Oe,Ve]}),n[111]=V,n[112]=W,n[113]=O,n[114]=te,n[115]=re,n[116]=ae,n[117]=ue,n[118]=ce,n[119]=fe,n[120]=pe,n[121]=xe,n[122]=Pe,n[123]=je,n[124]=ye,n[125]=Re,n[126]=Ne,n[127]=Oe,n[128]=Ve,n[129]=Q,n[130]=X,n[131]=ee,n[132]=D,n[133]=We):We=n[133];return We};var o=r(d[0]);r(d[1]);var t=e(r(d[2])),n=e(r(d[3])),s=e(r(d[4])),l=e(r(d[5])),u=r(d[6]),c=r(d[7]),f=r(d[8]),h=r(d[9]),p=r(d[10]),M=r(d[11]),b=r(d[12]),x=r(d[13]),C=r(d[14]),v=r(d[15]);const P=0,S=100,I=5;function j(e){const s=(0,o.c)(15),{icon:l,label:u,onPress:h}=e,{colors:p}=(0,f.useTheme)();let M,b,x,C,P;return s[0]!==l||s[1]!==p.foregroundMuted?(M=(0,v.jsx)(l,{size:18,color:p.foregroundMuted}),s[0]=l,s[1]=p.foregroundMuted,s[2]=M):M=s[2],s[3]!==p.foreground?(b=[T.actionLabel,{color:p.foreground}],s[3]=p.foreground,s[4]=b):b=s[4],s[5]!==u||s[6]!==b?(x=(0,v.jsx)(t.default,{style:b,children:u}),s[5]=u,s[6]=b,s[7]=x):x=s[7],s[8]!==p.foregroundSubtle?(C=(0,v.jsx)(c.ChevronRight,{size:18,color:p.foregroundSubtle}),s[8]=p.foregroundSubtle,s[9]=C):C=s[9],s[10]!==h||s[11]!==M||s[12]!==x||s[13]!==C?(P=(0,v.jsxs)(n.default,{accessibilityRole:"button",onPress:h,style:T.actionRow,children:[M,x,C]}),s[10]=h,s[11]=M,s[12]=x,s[13]=C,s[14]=P):P=s[14],P}function w(e){const l=(0,o.c)(42),{icon:u,label:h,value:p,min:M,max:b,step:x,suffix:C,onChange:P}=e,{colors:S}=(0,f.useTheme)(),I=p>M,j=p<b;let w;l[0]!==S.background||l[1]!==S.border||l[2]!==S.foreground?(w=(e,o,t)=>(0,v.jsx)(n.default,{accessibilityRole:"button",disabled:!e,onPress:t,style:[T.stepBtn,{borderColor:S.border,backgroundColor:S.background,opacity:e?1:.4}],children:(0,v.jsx)(o,{size:15,color:S.foreground})}),l[0]=S.background,l[1]=S.border,l[2]=S.foreground,l[3]=w):w=l[3];const y=w;let R,L,E,N,_,A;l[4]!==u||l[5]!==S.foregroundMuted?(R=(0,v.jsx)(u,{size:18,color:S.foregroundMuted}),l[4]=u,l[5]=S.foregroundMuted,l[6]=R):R=l[6],l[7]!==S.foreground?(L=[T.stepperLabel,{color:S.foreground}],l[7]=S.foreground,l[8]=L):L=l[8],l[9]!==h||l[10]!==L?(E=(0,v.jsx)(t.default,{style:L,numberOfLines:1,children:h}),l[9]=h,l[10]=L,l[11]=E):E=l[11],l[12]!==M||l[13]!==P||l[14]!==x||l[15]!==p?(N=()=>P(Math.max(M,p-x)),l[12]=M,l[13]=P,l[14]=x,l[15]=p,l[16]=N):N=l[16],l[17]!==I||l[18]!==y||l[19]!==N?(_=y(I,c.Minus,N),l[17]=I,l[18]=y,l[19]=N,l[20]=_):_=l[20],l[21]!==S.foreground?(A=[T.stepperValue,{color:S.foreground}],l[21]=S.foreground,l[22]=A):A=l[22];const O=C??"";let D,V,W,z;return l[23]!==A||l[24]!==O||l[25]!==p?(D=(0,v.jsxs)(t.default,{style:A,children:[p,O]}),l[23]=A,l[24]=O,l[25]=p,l[26]=D):D=l[26],l[27]!==b||l[28]!==P||l[29]!==x||l[30]!==p?(V=()=>P(Math.min(b,p+x)),l[27]=b,l[28]=P,l[29]=x,l[30]=p,l[31]=V):V=l[31],l[32]!==j||l[33]!==y||l[34]!==V?(W=y(j,c.Plus,V),l[32]=j,l[33]=y,l[34]=V,l[35]=W):W=l[35],l[36]!==W||l[37]!==R||l[38]!==E||l[39]!==_||l[40]!==D?(z=(0,v.jsxs)(s.default,{style:T.stepperRow,children:[R,E,_,D,W]}),l[36]=W,l[37]=R,l[38]=E,l[39]=_,l[40]=D,l[41]=z):z=l[41],z}const T=l.default.create({sectionLabel:{fontSize:12,fontWeight:'600',paddingTop:h.SPACING.md,paddingBottom:h.SPACING.xs},densityCustom:{fontSize:11,paddingTop:h.SPACING.xs},actionRow:{flexDirection:'row',alignItems:'center',gap:h.SPACING.md,paddingVertical:h.SPACING.sm},actionLabel:{flex:1,fontSize:14,fontWeight:'500'},stepperRow:{flexDirection:'row',alignItems:'center',gap:h.SPACING.md,paddingVertical:h.SPACING.sm},stepperLabel:{flex:1,fontSize:14,fontWeight:'500'},stepperValue:{minWidth:44,textAlign:'center',fontSize:14,fontWeight:'600',fontVariant:['tabular-nums']},stepBtn:{width:30,height:30,alignItems:'center',justifyContent:'center',borderRadius:h.RADIUS.md,borderWidth:1}})},3486,[15,17,112,252,20,33,786,813,2587,2589,3460,3408,3176,3177,3140,10]);
15907
+ __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.CameraMenuPanel=function(e){const n=(0,o.c)(117),{boundingBoxesOn:s,onToggleBoundingBoxes:l,statsOn:h,onToggleStats:y,audioMeterOn:R,onToggleAudioMeter:L,highlight:A,onSetHighlight:E,onOpenStorage:_,onOpenEvents:N,onClose:D,topOffset:O,align:V,maxWidth:W}=e,{t:z}=(0,u.useTranslation)(),{colors:B}=(0,f.useTheme)(),{settings:G,setCluster:k}=(0,M.useSettings)();let H;n[0]!==G.clusters?(H=(0,C.matchTimelineDensityPreset)(G.clusters),n[0]=G.clusters,n[1]=H):H=n[1];const F=H;let Y;n[2]!==z?(Y=C.TIMELINE_DENSITY_PRESET_ORDER.map(e=>({value:e,label:z(`v2.cameraMenu.density_${e}`)})),n[2]=z,n[3]=Y):Y=n[3];const q=Y;let U;n[4]!==k?(U=e=>{if("custom"===e)return;const o=C.TIMELINE_DENSITY_PRESETS[e];k("gapPercent",o.gapPercent),k("cardWidthFraction",o.cardWidthFraction)},n[4]=k,n[5]=U):U=n[5];const $=U;let J,K,Q,X,Z,ee,oe,te,ne,se,re;n[6]!==z?(J=z("v2.cameraMenu.title"),n[6]=z,n[7]=J):J=n[7];n[8]!==z?(K=z("v2.cameraDetail.close"),n[8]=z,n[9]=K):K=n[9];n[10]!==z?(Q=z("v2.cameraMenu.boundingBoxes"),n[10]=z,n[11]=Q):Q=n[11];n[12]!==s||n[13]!==l||n[14]!==Q?(X=(0,P.jsx)(b.PanelToggleRow,{icon:c.SquareDashed,label:Q,value:s,onValueChange:l}),n[12]=s,n[13]=l,n[14]=Q,n[15]=X):X=n[15];n[16]!==z?(Z=z("v2.cameraMenu.streamStats"),n[16]=z,n[17]=Z):Z=n[17];n[18]!==y||n[19]!==h||n[20]!==Z?(ee=(0,P.jsx)(b.PanelToggleRow,{icon:c.Activity,label:Z,value:h,onValueChange:y}),n[18]=y,n[19]=h,n[20]=Z,n[21]=ee):ee=n[21];n[22]!==z?(oe=z("v2.cameraMenu.audioLevel"),n[22]=z,n[23]=oe):oe=n[23];n[24]!==R||n[25]!==L||n[26]!==oe?(te=(0,P.jsx)(b.PanelToggleRow,{icon:c.AudioLines,label:oe,value:R,onValueChange:L}),n[24]=R,n[25]=L,n[26]=oe,n[27]=te):te=n[27];n[28]!==B.foregroundMuted?(ne=[I.sectionLabel,{color:B.foregroundMuted}],n[28]=B.foregroundMuted,n[29]=ne):ne=n[29];n[30]!==z?(se=z("v2.cameraMenu.densityTitle"),n[30]=z,n[31]=se):se=n[31];n[32]!==ne||n[33]!==se?(re=(0,P.jsx)(t.default,{style:ne,children:se}),n[32]=ne,n[33]=se,n[34]=re):re=n[34];const le=F??"custom";let ae,ie,ue,ce,de,ge,fe,he,me,xe,be,pe,Me,Ce,Pe,ve,we,Se,je,Te,Ie,ye,Re;n[35]!==$||n[36]!==q||n[37]!==le?(ae=(0,P.jsx)(p.SegmentedControl,{options:q,value:le,onChange:$}),n[35]=$,n[36]=q,n[37]=le,n[38]=ae):ae=n[38];n[39]!==B.foregroundMuted||n[40]!==F||n[41]!==z?(ie=null===F?(0,P.jsx)(t.default,{style:[I.densityCustom,{color:B.foregroundMuted}],children:z("v2.cameraMenu.densityCustom")}):null,n[39]=B.foregroundMuted,n[40]=F,n[41]=z,n[42]=ie):ie=n[42];n[43]!==z?(ue=z("v2.cameraMenu.indicatorPosition"),n[43]=z,n[44]=ue):ue=n[44];n[45]!==k?(ce=e=>k("indicatorPositionPct",e),n[45]=k,n[46]=ce):ce=n[46];n[47]!==G.clusters.indicatorPositionPct||n[48]!==ue||n[49]!==ce?(de=(0,P.jsx)(T,{icon:c.Crosshair,label:ue,value:G.clusters.indicatorPositionPct,min:v,max:w,step:S,suffix:"%",onChange:ce}),n[47]=G.clusters.indicatorPositionPct,n[48]=ue,n[49]=ce,n[50]=de):de=n[50];n[51]!==z?(ge=z("v2.cameraMenu.showImportance"),n[51]=z,n[52]=ge):ge=n[52];n[53]!==k||n[54]!==G.clusters.showImportance?(fe=()=>k("showImportance",!G.clusters.showImportance),n[53]=k,n[54]=G.clusters.showImportance,n[55]=fe):fe=n[55];n[56]!==G.clusters.showImportance||n[57]!==ge||n[58]!==fe?(he=(0,P.jsx)(b.PanelToggleRow,{icon:c.Layers,label:ge,value:G.clusters.showImportance,onValueChange:fe}),n[56]=G.clusters.showImportance,n[57]=ge,n[58]=fe,n[59]=he):he=n[59];n[60]!==z?(me=z("v2.cameraMenu.showClass"),n[60]=z,n[61]=me):me=n[61];n[62]!==k||n[63]!==G.clusters.showClass?(xe=()=>k("showClass",!G.clusters.showClass),n[62]=k,n[63]=G.clusters.showClass,n[64]=xe):xe=n[64];n[65]!==G.clusters.showClass||n[66]!==me||n[67]!==xe?(be=(0,P.jsx)(b.PanelToggleRow,{icon:c.List,label:me,value:G.clusters.showClass,onValueChange:xe}),n[65]=G.clusters.showClass,n[66]=me,n[67]=xe,n[68]=be):be=n[68];n[69]!==B.foregroundMuted?(pe=[I.sectionLabel,{color:B.foregroundMuted}],n[69]=B.foregroundMuted,n[70]=pe):pe=n[70];n[71]!==z?(Me=z("v2.gridBuilder.highlightTitle"),n[71]=z,n[72]=Me):Me=n[72];n[73]!==pe||n[74]!==Me?(Ce=(0,P.jsx)(t.default,{style:pe,children:Me}),n[73]=pe,n[74]=Me,n[75]=Ce):Ce=n[75];n[76]!==A||n[77]!==E?(Pe=(0,P.jsx)(b.HighlightTriggerRows,{highlight:A,onSetHighlight:E}),n[76]=A,n[77]=E,n[78]=Pe):Pe=n[78];n[79]!==B.foregroundMuted?(ve=[I.sectionLabel,{color:B.foregroundMuted}],n[79]=B.foregroundMuted,n[80]=ve):ve=n[80];n[81]!==z?(we=z("v2.cameraMenu.managementTitle"),n[81]=z,n[82]=we):we=n[82];n[83]!==ve||n[84]!==we?(Se=(0,P.jsx)(t.default,{style:ve,children:we}),n[83]=ve,n[84]=we,n[85]=Se):Se=n[85];n[86]!==z?(je=z("v2.storage.title"),n[86]=z,n[87]=je):je=n[87];n[88]!==_||n[89]!==je?(Te=(0,P.jsx)(j,{icon:c.HardDrive,label:je,onPress:_}),n[88]=_,n[89]=je,n[90]=Te):Te=n[90];n[91]!==z?(Ie=z("v2.eventsMgmt.title"),n[91]=z,n[92]=Ie):Ie=n[92];n[93]!==N||n[94]!==Ie?(ye=(0,P.jsx)(j,{icon:c.ListTree,label:Ie,onPress:N}),n[93]=N,n[94]=Ie,n[95]=ye):ye=n[95];n[96]!==V||n[97]!==W||n[98]!==D||n[99]!==te||n[100]!==re||n[101]!==ae||n[102]!==ie||n[103]!==de||n[104]!==he||n[105]!==be||n[106]!==Ce||n[107]!==Pe||n[108]!==Se||n[109]!==Te||n[110]!==ye||n[111]!==J||n[112]!==K||n[113]!==X||n[114]!==ee||n[115]!==O?(Re=(0,P.jsxs)(x.FloatingPanel,{title:J,onClose:D,closeLabel:K,topOffset:O,align:V,maxWidth:W,children:[X,ee,te,re,ae,ie,de,he,be,Ce,Pe,Se,Te,ye]}),n[96]=V,n[97]=W,n[98]=D,n[99]=te,n[100]=re,n[101]=ae,n[102]=ie,n[103]=de,n[104]=he,n[105]=be,n[106]=Ce,n[107]=Pe,n[108]=Se,n[109]=Te,n[110]=ye,n[111]=J,n[112]=K,n[113]=X,n[114]=ee,n[115]=O,n[116]=Re):Re=n[116];return Re};var o=r(d[0]);r(d[1]);var t=e(r(d[2])),n=e(r(d[3])),s=e(r(d[4])),l=e(r(d[5])),u=r(d[6]),c=r(d[7]),f=r(d[8]),h=r(d[9]),x=r(d[10]),b=r(d[11]),p=r(d[12]),M=r(d[13]),C=r(d[14]),P=r(d[15]);const v=0,w=100,S=5;function j(e){const s=(0,o.c)(15),{icon:l,label:u,onPress:h}=e,{colors:x}=(0,f.useTheme)();let b,p,M,C,v;return s[0]!==l||s[1]!==x.foregroundMuted?(b=(0,P.jsx)(l,{size:18,color:x.foregroundMuted}),s[0]=l,s[1]=x.foregroundMuted,s[2]=b):b=s[2],s[3]!==x.foreground?(p=[I.actionLabel,{color:x.foreground}],s[3]=x.foreground,s[4]=p):p=s[4],s[5]!==u||s[6]!==p?(M=(0,P.jsx)(t.default,{style:p,children:u}),s[5]=u,s[6]=p,s[7]=M):M=s[7],s[8]!==x.foregroundSubtle?(C=(0,P.jsx)(c.ChevronRight,{size:18,color:x.foregroundSubtle}),s[8]=x.foregroundSubtle,s[9]=C):C=s[9],s[10]!==h||s[11]!==b||s[12]!==M||s[13]!==C?(v=(0,P.jsxs)(n.default,{accessibilityRole:"button",onPress:h,style:I.actionRow,children:[b,M,C]}),s[10]=h,s[11]=b,s[12]=M,s[13]=C,s[14]=v):v=s[14],v}function T(e){const l=(0,o.c)(42),{icon:u,label:h,value:x,min:b,max:p,step:M,suffix:C,onChange:v}=e,{colors:w}=(0,f.useTheme)(),S=x>b,j=x<p;let T;l[0]!==w.background||l[1]!==w.border||l[2]!==w.foreground?(T=(e,o,t)=>(0,P.jsx)(n.default,{accessibilityRole:"button",disabled:!e,onPress:t,style:[I.stepBtn,{borderColor:w.border,backgroundColor:w.background,opacity:e?1:.4}],children:(0,P.jsx)(o,{size:15,color:w.foreground})}),l[0]=w.background,l[1]=w.border,l[2]=w.foreground,l[3]=T):T=l[3];const y=T;let R,L,A,E,_,N;l[4]!==u||l[5]!==w.foregroundMuted?(R=(0,P.jsx)(u,{size:18,color:w.foregroundMuted}),l[4]=u,l[5]=w.foregroundMuted,l[6]=R):R=l[6],l[7]!==w.foreground?(L=[I.stepperLabel,{color:w.foreground}],l[7]=w.foreground,l[8]=L):L=l[8],l[9]!==h||l[10]!==L?(A=(0,P.jsx)(t.default,{style:L,numberOfLines:1,children:h}),l[9]=h,l[10]=L,l[11]=A):A=l[11],l[12]!==b||l[13]!==v||l[14]!==M||l[15]!==x?(E=()=>v(Math.max(b,x-M)),l[12]=b,l[13]=v,l[14]=M,l[15]=x,l[16]=E):E=l[16],l[17]!==S||l[18]!==y||l[19]!==E?(_=y(S,c.Minus,E),l[17]=S,l[18]=y,l[19]=E,l[20]=_):_=l[20],l[21]!==w.foreground?(N=[I.stepperValue,{color:w.foreground}],l[21]=w.foreground,l[22]=N):N=l[22];const D=C??"";let O,V,W,z;return l[23]!==N||l[24]!==D||l[25]!==x?(O=(0,P.jsxs)(t.default,{style:N,children:[x,D]}),l[23]=N,l[24]=D,l[25]=x,l[26]=O):O=l[26],l[27]!==p||l[28]!==v||l[29]!==M||l[30]!==x?(V=()=>v(Math.min(p,x+M)),l[27]=p,l[28]=v,l[29]=M,l[30]=x,l[31]=V):V=l[31],l[32]!==j||l[33]!==y||l[34]!==V?(W=y(j,c.Plus,V),l[32]=j,l[33]=y,l[34]=V,l[35]=W):W=l[35],l[36]!==W||l[37]!==R||l[38]!==A||l[39]!==_||l[40]!==O?(z=(0,P.jsxs)(s.default,{style:I.stepperRow,children:[R,A,_,O,W]}),l[36]=W,l[37]=R,l[38]=A,l[39]=_,l[40]=O,l[41]=z):z=l[41],z}const I=l.default.create({sectionLabel:{fontSize:12,fontWeight:'600',paddingTop:h.SPACING.sm,paddingBottom:h.SPACING.xs},densityCustom:{fontSize:11,paddingTop:h.SPACING.xs},actionRow:{flexDirection:'row',alignItems:'center',gap:h.SPACING.md,paddingVertical:h.SPACING.xs},actionLabel:{flex:1,fontSize:14,fontWeight:'500'},stepperRow:{flexDirection:'row',alignItems:'center',gap:h.SPACING.md,paddingVertical:h.SPACING.xs},stepperLabel:{flex:1,fontSize:14,fontWeight:'500'},stepperValue:{minWidth:44,textAlign:'center',fontSize:14,fontWeight:'600',fontVariant:['tabular-nums']},stepBtn:{width:30,height:30,alignItems:'center',justifyContent:'center',borderRadius:h.RADIUS.md,borderWidth:1}})},3486,[15,17,112,252,20,33,786,813,2587,2589,3460,3408,3176,3177,3140,10]);
15908
15908
  __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.ExportModal=function(e){const f=(0,t.c)(182),{t:V}=(0,x.useTranslation)(),{colors:L}=(0,v.useTheme)(),[H,U]=(0,o.useState)(k),[q,O]=(0,o.useState)(1),[X,$]=(0,o.useState)(!1),[J,K]=(0,o.useState)(2e3),[Q,Y]=(0,o.useState)(!1),[Z,ee]=(0,o.useState)(T),[te,oe]=(0,o.useState)(!1),[le,re]=(0,o.useState)(null),ne=e.anchorEpoch,se=ne-H,{data:ie}=(0,y.useRecordingProfiles)(e.deviceId,se,ne,e.visible);let de;f[0]!==ie?(de=void 0===ie?[]:ie,f[0]=ie,f[1]=de):de=f[1];const ae=de,ce=le??ae[0]??null,ue=(0,C.useCreateExport)();let fe;f[2]!==q||f[3]!==X?(fe=N(X,q),f[2]=q,f[3]=X,f[4]=fe):fe=f[4];const pe=fe,xe=null===ce||ue.isPending;let ge;f[5]!==J||f[6]!==pe||f[7]!==ue||f[8]!==te||f[9]!==ce||f[10]!==se||f[11]!==Q||f[12]!==Z||f[13]!==e||f[14]!==q||f[15]!==V||f[16]!==X||f[17]!==ne?(ge=async()=>{if(null===ce)return;const t=X?{timelapse:{everyMs:J,outputFps:G},includeAudio:!1,maxLifeMs:Z,deleteAfterDownload:te}:{speed:q,includeAudio:pe&&Q,maxLifeMs:Z,deleteAfterDownload:te};try{await ue.mutateAsync({deviceId:e.deviceId,profile:ce,fromMs:se,toMs:ne,options:t}),e.onCreated()}catch(e){const t=e;p.default.alert(V("v2.exports.title"),t instanceof Error?t.message:V("v2.exports.createFailed"))}},f[5]=J,f[6]=pe,f[7]=ue,f[8]=te,f[9]=ce,f[10]=se,f[11]=Q,f[12]=Z,f[13]=e,f[14]=q,f[15]=V,f[16]=X,f[17]=ne,f[18]=ge):ge=f[18];const be=ge;let ve,he,Se,me;f[19]!==V?(ve=V("v2.exports.life24h"),f[19]=V,f[20]=ve):ve=f[20];f[21]!==V?(he=V("v2.exports.life7d"),f[21]=V,f[22]=he):he=f[22];f[23]!==V?(Se=V("v2.exports.life30d"),f[23]=V,f[24]=Se):Se=f[24];f[25]!==ve||f[26]!==he||f[27]!==Se?(me={[D[0]]:ve,[D[1]]:he,[D[2]]:Se},f[25]=ve,f[26]=he,f[27]=Se,f[28]=me):me=f[28];const je=me,ye=e.visible,Ce=e.onClose;let Ie,we,Ae,Pe,Me,Re,De,ke,Te,Ge,Ne,ze,Fe,We,Be;f[29]!==L.background?(Ie={flex:1,backgroundColor:L.background},f[29]=L.background,f[30]=Ie):Ie=f[30];f[31]!==L.border?(we=[E.header,{borderBottomColor:L.border}],f[31]=L.border,f[32]=we):we=f[32];f[33]!==L.foreground?(Ae={color:L.foreground,fontSize:17,fontWeight:"700"},f[33]=L.foreground,f[34]=Ae):Ae=f[34];f[35]!==V?(Pe=V("v2.exports.title"),f[35]=V,f[36]=Pe):Pe=f[36];f[37]!==Ae||f[38]!==Pe?(Me=(0,A.jsx)(s.default,{style:Ae,children:Pe}),f[37]=Ae,f[38]=Pe,f[39]=Me):Me=f[39];f[40]!==L.foregroundMuted?(Re=(0,A.jsx)(b.X,{size:22,color:L.foregroundMuted}),f[40]=L.foregroundMuted,f[41]=Re):Re=f[41];f[42]!==e.onClose||f[43]!==Re?(De=(0,A.jsx)(c.default,{accessibilityRole:"button",onPress:e.onClose,hitSlop:8,children:Re}),f[42]=e.onClose,f[43]=Re,f[44]=De):De=f[44];f[45]!==we||f[46]!==Me||f[47]!==De?(ke=(0,A.jsxs)(n.default,{style:we,children:[Me,De]}),f[45]=we,f[46]=Me,f[47]=De,f[48]=ke):ke=f[48];f[49]===Symbol.for("react.memo_cache_sentinel")?(Te={padding:h.SPACING.xl,gap:h.SPACING["2xl"],paddingBottom:h.SPACING["3xl"]},f[49]=Te):Te=f[49];f[50]!==V?(Ge=V("v2.exports.range"),f[50]=V,f[51]=Ge):Ge=f[51];f[52]===Symbol.for("react.memo_cache_sentinel")?(Ne=P.map(W),f[52]=Ne):Ne=f[52];f[53]!==H?(ze=(0,A.jsx)(B,{options:Ne,value:H,onChange:U}),f[53]=H,f[54]=ze):ze=f[54];f[55]!==L.foregroundMuted?(Fe=[E.rangeText,{color:L.foregroundMuted}],f[55]=L.foregroundMuted,f[56]=Fe):Fe=f[56];f[57]!==se||f[58]!==ne?(We=(0,I.rangeLabel)(se,ne),f[57]=se,f[58]=ne,f[59]=We):We=f[59];f[60]!==Fe||f[61]!==We?(Be=(0,A.jsx)(s.default,{style:Fe,children:We}),f[60]=Fe,f[61]=We,f[62]=Be):Be=f[62];const Ee=e.deviceId;let Ve,Le;f[63]!==V?(Ve=V("v2.exports.rangeStart"),f[63]=V,f[64]=Ve):Ve=f[64];f[65]!==se||f[66]!==e.deviceId||f[67]!==Ve?(Le=(0,A.jsx)(w.ExportFramePreview,{deviceId:Ee,atMs:se,caption:Ve}),f[65]=se,f[66]=e.deviceId,f[67]=Ve,f[68]=Le):Le=f[68];const He=e.deviceId;let Ue,qe,Oe,Xe,$e,Je,Ke,Qe,Ye,Ze;f[69]!==V?(Ue=V("v2.exports.rangeEnd"),f[69]=V,f[70]=Ue):Ue=f[70];f[71]!==e.deviceId||f[72]!==Ue||f[73]!==ne?(qe=(0,A.jsx)(w.ExportFramePreview,{deviceId:He,atMs:ne,caption:Ue}),f[71]=e.deviceId,f[72]=Ue,f[73]=ne,f[74]=qe):qe=f[74];f[75]!==Le||f[76]!==qe?(Oe=(0,A.jsxs)(n.default,{style:E.previewRow,children:[Le,qe]}),f[75]=Le,f[76]=qe,f[77]=Oe):Oe=f[77];f[78]!==ze||f[79]!==Be||f[80]!==Oe?(Xe=(0,A.jsxs)(n.default,{style:E.block,children:[ze,Be,Oe]}),f[78]=ze,f[79]=Be,f[80]=Oe,f[81]=Xe):Xe=f[81];f[82]!==Ge||f[83]!==Xe?($e=(0,A.jsx)(S.Section,{title:Ge,children:Xe}),f[82]=Ge,f[83]=Xe,f[84]=$e):$e=f[84];f[85]!==L.foregroundSubtle||f[86]!==ce||f[87]!==ae||f[88]!==V?(Je=ae.length>0?(0,A.jsx)(S.Section,{title:V("v2.exports.profile"),children:(0,A.jsx)(n.default,{style:E.block,children:(0,A.jsx)(B,{options:ae.map(F),value:ce,onChange:re})})}):(0,A.jsx)(S.Section,{title:V("v2.exports.profile"),children:(0,A.jsx)(n.default,{style:E.block,children:(0,A.jsx)(s.default,{style:{color:L.foregroundSubtle,fontSize:13},children:V("v2.exports.noFootage")})})}),f[85]=L.foregroundSubtle,f[86]=ce,f[87]=ae,f[88]=V,f[89]=Je):Je=f[89];f[90]!==V?(Ke=V("v2.exports.speed"),f[90]=V,f[91]=Ke):Ke=f[91];f[92]===Symbol.for("react.memo_cache_sentinel")?(Qe=M.map(z),f[92]=Qe):Qe=f[92];f[93]!==q||f[94]!==X?(Ye=(0,A.jsx)(n.default,{style:E.block,children:(0,A.jsx)(B,{options:Qe,value:q,onChange:O,disabled:X})}),f[93]=q,f[94]=X,f[95]=Ye):Ye=f[95];f[96]!==V?(Ze=V("v2.exports.timelapse"),f[96]=V,f[97]=Ze):Ze=f[97];const et=!X;let tt,ot,lt,rt,nt,st;f[98]!==Ze||f[99]!==et||f[100]!==X?(tt=(0,A.jsx)(j.ToggleRow,{label:Ze,value:X,onValueChange:$,last:et}),f[98]=Ze,f[99]=et,f[100]=X,f[101]=tt):tt=f[101];f[102]!==J||f[103]!==L.borderSubtle||f[104]!==L.foregroundMuted||f[105]!==V||f[106]!==X?(ot=X?(0,A.jsxs)(n.default,{style:[E.block,{borderTopWidth:1,borderTopColor:L.borderSubtle}],children:[(0,A.jsx)(s.default,{style:[E.subLabel,{color:L.foregroundMuted}],children:V("v2.exports.cadence")}),(0,A.jsx)(B,{options:R.map(_),value:J,onChange:K})]}):null,f[102]=J,f[103]=L.borderSubtle,f[104]=L.foregroundMuted,f[105]=V,f[106]=X,f[107]=ot):ot=f[107];f[108]!==Ke||f[109]!==Ye||f[110]!==tt||f[111]!==ot?(lt=(0,A.jsxs)(S.Section,{title:Ke,children:[Ye,tt,ot]}),f[108]=Ke,f[109]=Ye,f[110]=tt,f[111]=ot,f[112]=lt):lt=f[112];f[113]!==V?(rt=V("v2.exports.audio"),f[113]=V,f[114]=rt):rt=f[114];f[115]!==V?(nt=V("v2.exports.includeAudio"),f[115]=V,f[116]=nt):nt=f[116];f[117]!==pe||f[118]!==V?(st=pe?void 0:V("v2.exports.audioUnavailable"),f[117]=pe,f[118]=V,f[119]=st):st=f[119];const it=pe&&Q,dt=!pe;let at,ct,ut,ft,pt,xt,gt,bt,vt,ht;f[120]!==nt||f[121]!==st||f[122]!==it||f[123]!==dt?(at=(0,A.jsx)(j.ToggleRow,{label:nt,description:st,value:it,onValueChange:Y,disabled:dt,last:!0}),f[120]=nt,f[121]=st,f[122]=it,f[123]=dt,f[124]=at):at=f[124];f[125]!==rt||f[126]!==at?(ct=(0,A.jsx)(S.Section,{title:rt,children:at}),f[125]=rt,f[126]=at,f[127]=ct):ct=f[127];f[128]!==V?(ut=V("v2.exports.retention"),f[128]=V,f[129]=ut):ut=f[129];f[130]!==je?(ft=D.map(e=>({value:e,label:je[e]})),f[130]=je,f[131]=ft):ft=f[131];f[132]!==Z||f[133]!==ft?(pt=(0,A.jsx)(n.default,{style:E.block,children:(0,A.jsx)(B,{options:ft,value:Z,onChange:ee})}),f[132]=Z,f[133]=ft,f[134]=pt):pt=f[134];f[135]!==V?(xt=V("v2.exports.deleteAfterDownload"),f[135]=V,f[136]=xt):xt=f[136];f[137]!==V?(gt=V("v2.exports.deleteAfterDownloadHint"),f[137]=V,f[138]=gt):gt=f[138];f[139]!==te||f[140]!==xt||f[141]!==gt?(bt=(0,A.jsx)(j.ToggleRow,{label:xt,description:gt,value:te,onValueChange:oe,last:!0}),f[139]=te,f[140]=xt,f[141]=gt,f[142]=bt):bt=f[142];f[143]!==ut||f[144]!==pt||f[145]!==bt?(vt=(0,A.jsxs)(S.Section,{title:ut,children:[pt,bt]}),f[143]=ut,f[144]=pt,f[145]=bt,f[146]=vt):vt=f[146];f[147]!==be?(ht=()=>{be()},f[147]=be,f[148]=ht):ht=f[148];const St=xe?L.surfaceHover:L.primary;let mt;f[149]!==St?(mt=[E.exportBtn,{backgroundColor:St}],f[149]=St,f[150]=mt):mt=f[150];const jt=xe?L.foregroundDisabled:L.primaryForeground;let yt;f[151]!==jt?(yt=(0,A.jsx)(b.Download,{size:18,color:jt}),f[151]=jt,f[152]=yt):yt=f[152];const Ct=xe?L.foregroundDisabled:L.primaryForeground;let It,wt,At,Pt,Mt,Rt,Dt;f[153]!==Ct?(It=[E.exportBtnText,{color:Ct}],f[153]=Ct,f[154]=It):It=f[154];f[155]!==ue.isPending||f[156]!==V?(wt=ue.isPending?V("v2.exports.creating"):V("v2.exports.createAction"),f[155]=ue.isPending,f[156]=V,f[157]=wt):wt=f[157];f[158]!==It||f[159]!==wt?(At=(0,A.jsx)(s.default,{style:It,children:wt}),f[158]=It,f[159]=wt,f[160]=At):At=f[160];f[161]!==xe||f[162]!==ht||f[163]!==mt||f[164]!==yt||f[165]!==At?(Pt=(0,A.jsxs)(c.default,{accessibilityRole:"button",disabled:xe,onPress:ht,style:mt,children:[yt,At]}),f[161]=xe,f[162]=ht,f[163]=mt,f[164]=yt,f[165]=At,f[166]=Pt):Pt=f[166];f[167]!==$e||f[168]!==Je||f[169]!==lt||f[170]!==ct||f[171]!==vt||f[172]!==Pt?(Mt=(0,A.jsxs)(u.default,{contentContainerStyle:Te,children:[$e,Je,lt,ct,vt,Pt]}),f[167]=$e,f[168]=Je,f[169]=lt,f[170]=ct,f[171]=vt,f[172]=Pt,f[173]=Mt):Mt=f[173];f[174]!==Ie||f[175]!==ke||f[176]!==Mt?(Rt=(0,A.jsxs)(n.default,{style:Ie,children:[ke,Mt]}),f[174]=Ie,f[175]=ke,f[176]=Mt,f[177]=Rt):Rt=f[177];f[178]!==e.onClose||f[179]!==e.visible||f[180]!==Rt?(Dt=(0,A.jsx)(l.default,{visible:ye,animationType:"slide",presentationStyle:"pageSheet",onRequestClose:Ce,children:Rt}),f[178]=e.onClose,f[179]=e.visible,f[180]=Rt,f[181]=Dt):Dt=f[181];return Dt};var t=r(d[0]),o=r(d[1]),l=e(r(d[2])),n=e(r(d[3])),s=e(r(d[4])),c=e(r(d[5])),u=e(r(d[6])),f=e(r(d[7])),p=e(r(d[8])),x=r(d[9]),b=r(d[10]),v=r(d[11]),h=r(d[12]),S=r(d[13]),j=r(d[14]),y=r(d[15]),C=r(d[16]),I=r(d[17]),w=r(d[18]),A=r(d[19]);const P=[6e4,3e5,9e5,18e5,36e5],M=[.25,.5,1,2,4,8],R=[1e3,2e3,5e3,1e4],D=[864e5,6048e5,2592e6],k=3e5,T=6048e5,G=30;function N(e,t){return!e&&t>=.5&&t<=2}function _(e){return{value:e,label:(0,I.formatDuration)(e)}}function z(e){return{value:e,label:`${e}\xd7`}}function F(e){return{value:e,label:e}}function W(e){return{value:e,label:(0,I.formatDuration)(e)}}function B(e){const o=(0,t.c)(13),{options:l,value:u,onChange:f,disabled:p}=e,x=void 0!==p&&p,{colors:b}=(0,v.useTheme)();let h,S;if(o[0]!==b||o[1]!==x||o[2]!==f||o[3]!==l||o[4]!==u){let e;o[6]!==b||o[7]!==x||o[8]!==f||o[9]!==u?(e=e=>{const t=e.value===u;return(0,A.jsx)(c.default,{accessibilityRole:"button",accessibilityState:{selected:t,disabled:x},disabled:x,onPress:()=>f(e.value),style:[E.chip,{backgroundColor:t?b.primary:b.background,borderColor:t?b.primary:b.border,opacity:x?.4:1}],children:(0,A.jsx)(s.default,{style:{color:t?b.primaryForeground:b.foregroundMuted,fontSize:13,fontWeight:t?"700":"500"},children:e.label})},String(e.value))},o[6]=b,o[7]=x,o[8]=f,o[9]=u,o[10]=e):e=o[10],h=l.map(e),o[0]=b,o[1]=x,o[2]=f,o[3]=l,o[4]=u,o[5]=h}else h=o[5];return o[11]!==h?(S=(0,A.jsx)(n.default,{style:E.chipRow,children:h}),o[11]=h,o[12]=S):S=o[12],S}const E=f.default.create({header:{flexDirection:'row',alignItems:'center',justifyContent:'space-between',padding:h.SPACING.xl,borderBottomWidth:1},block:{padding:h.SPACING.xl,gap:h.SPACING.md},subLabel:{fontSize:13,fontWeight:'500'},rangeText:{fontSize:13,fontVariant:['tabular-nums']},previewRow:{flexDirection:'row',gap:h.SPACING.md},chipRow:{flexDirection:'row',flexWrap:'wrap',gap:h.SPACING.md},chip:{paddingHorizontal:h.SPACING.lg,paddingVertical:h.SPACING.md,borderRadius:h.RADIUS.lg,borderWidth:1},exportBtn:{flexDirection:'row',alignItems:'center',justifyContent:'center',gap:h.SPACING.md,paddingVertical:h.SPACING.lg,borderRadius:h.RADIUS.lg},exportBtnText:{fontSize:15,fontWeight:'700'}})},3487,[15,17,245,20,112,252,147,33,133,786,813,2587,2589,3173,3174,3159,3488,3489,3490,10]);
15909
15909
  __d(function(g,_r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.toExportRecord=y,_e.isExportActive=v,_e.useExportsList=function(t){const u=(0,e.c)(9),{controller:l,state:p}=(0,n.useConnection)(),f=t??"all";let y;u[0]!==f?(y=[...c,"list",f],u[0]=f,u[1]=y):y=u[1];const v="connected"===p;let E,w;u[2]!==l||u[3]!==t?(E=async()=>{const e=l.getSystem();if(!e)return[];const r=void 0!==t?{deviceId:t}:{},n=x(await(0,o.capQuery)(e.trpcClient,"recordingExport","listExports",r));return s.log.info("exports","listExports",{deviceId:t??null,count:n.length}),n},u[2]=l,u[3]=t,u[4]=E):E=u[4];u[5]!==y||u[6]!==v||u[7]!==E?(w={queryKey:y,enabled:v,staleTime:5e3,refetchInterval:b,queryFn:E},u[5]=y,u[6]=v,u[7]=E,u[8]=w):w=u[8];return(0,r.useQuery)(w)},_e.useExport=function(t,s){const u=(0,e.c)(9),l=void 0===s||s,{controller:p,state:f}=(0,n.useConnection)(),x=t??"";let v;u[0]!==x?(v=[...c,"one",x],u[0]=x,u[1]=v):v=u[1];const E=l&&null!==t&&"connected"===f;let b,A;u[2]!==p||u[3]!==t?(b=async()=>{const e=p.getSystem();if(!e||null===t)return null;return y(await(0,o.capQuery)(e.trpcClient,"recordingExport","getExport",{exportId:t}))},u[2]=p,u[3]=t,u[4]=b):b=u[4];u[5]!==v||u[6]!==E||u[7]!==b?(A={queryKey:v,enabled:E,refetchInterval:w,queryFn:b},u[5]=v,u[6]=E,u[7]=b,u[8]=A):A=u[8];return(0,r.useQuery)(A)},_e.useCreateExport=function(){const t=(0,e.c)(7),{controller:s}=(0,n.useConnection)(),u=(0,r.useQueryClient)();let l,p,f;t[0]!==s?(l=async e=>{const t=s.getSystem();if(!t)throw new Error("not connected");return y(await(0,o.capMutate)(t.trpcClient,"recordingExport","createExport",Object.assign({},e)))},t[0]=s,t[1]=l):l=t[1];t[2]!==u?(p=()=>{u.invalidateQueries({queryKey:c})},t[2]=u,t[3]=p):p=t[3];t[4]!==l||t[5]!==p?(f={mutationFn:l,onSuccess:p},t[4]=l,t[5]=p,t[6]=f):f=t[6];return(0,r.useMutation)(f)},_e.useCancelExport=function(){const t=(0,e.c)(7),{controller:s}=(0,n.useConnection)(),u=(0,r.useQueryClient)();let l,p,f;t[0]!==s?(l=async e=>{const t=s.getSystem();if(!t)throw new Error("not connected");return y(await(0,o.capMutate)(t.trpcClient,"recordingExport","cancelExport",{exportId:e}))},t[0]=s,t[1]=l):l=t[1];t[2]!==u?(p=()=>{u.invalidateQueries({queryKey:c})},t[2]=u,t[3]=p):p=t[3];t[4]!==l||t[5]!==p?(f={mutationFn:l,onSuccess:p},t[4]=l,t[5]=p,t[6]=f):f=t[6];return(0,r.useMutation)(f)},_e.useDeleteExport=function(){const t=(0,e.c)(7),{controller:s}=(0,n.useConnection)(),u=(0,r.useQueryClient)();let l,p,f;t[0]!==s?(l=async e=>{const t=s.getSystem();if(!t)throw new Error("not connected");return y(await(0,o.capMutate)(t.trpcClient,"recordingExport","deleteExport",{exportId:e}))},t[0]=s,t[1]=l):l=t[1];t[2]!==u?(p=()=>{u.invalidateQueries({queryKey:c})},t[2]=u,t[3]=p):p=t[3];t[4]!==l||t[5]!==p?(f={mutationFn:l,onSuccess:p},t[4]=l,t[5]=p,t[6]=f):f=t[6];return(0,r.useMutation)(f)},_e.useResolveDownloadUrl=function(){const t=(0,e.c)(2),{controller:r}=(0,n.useConnection)();let s;t[0]!==r?(s=async e=>{const t=r.getSystem();if(!t)return null;const n=await(0,o.capQuery)(t.trpcClient,"recordingExport","getDownloadUrl",{exportId:e});if(!(0,o.isRecord)(n)||"string"!=typeof n.url||0===n.url.length)return null;const s=n.url;if(s.startsWith("http://")||s.startsWith("https://"))return s;const c=t.serverUrl.replace(/\/$/,"");return s.startsWith("/")?`${c}${s}`:`${c}/${s}`},t[0]=r,t[1]=s):s=t[1];return s},_e.useExportEvents=function(){const s=(0,e.c)(6),{controller:u,state:l}=(0,n.useConnection)(),p=(0,r.useQueryClient)();let f;s[0]===Symbol.for("react.memo_cache_sentinel")?(f={},s[0]=f):f=s[0];const[y,x]=(0,t.useState)(f);let v,E;s[1]!==l||s[2]!==u||s[3]!==p?(v=()=>{if("connected"!==l)return;const e=u.getSystem();if(!e)return;const t=A,r=e=>r=>{const n=t(r);null!==n&&x(t=>Object.assign({},t,{[n]:{progressPct:null,state:e}})),p.invalidateQueries({queryKey:c})},n=[e.subscribeEvent("recording.export.progress",e=>{const r=t(e);if(null===r)return;const n=(0,o.isRecord)(e)&&"number"==typeof e.progressPct?e.progressPct:null;x(e=>Object.assign({},e,{[r]:{progressPct:n,state:"rendering"}}))}),e.subscribeEvent("recording.export.completed",r("ready")),e.subscribeEvent("recording.export.failed",r("failed"))];return()=>{for(const e of n)e();x({})}},E=[u,l,p],s[1]=l,s[2]=u,s[3]=p,s[4]=v,s[5]=E):(v=s[4],E=s[5]);return(0,t.useEffect)(v,E),y};var e=_r(d[0]),t=_r(d[1]),r=_r(d[2]),n=_r(d[3]),o=_r(d[4]),s=_r(d[5]);const c=['v2','exports'],u=new Set(['queued','rendering','ready','failed','expired','deleted']);function l(e){return'string'==typeof e&&u.has(e)?e:'failed'}function p(e){return'number'==typeof e?e:null}function f(e){if((0,o.isRecord)(e)&&'number'==typeof e.everyMs)return{everyMs:e.everyMs,outputFps:'number'==typeof e.outputFps?e.outputFps:void 0}}function y(e){if(!(0,o.isRecord)(e))return null;const{id:t,deviceId:r,profile:n,fromMs:s,toMs:c}=e;return'string'!=typeof t||'number'!=typeof r?null:{id:t,deviceId:r,profile:'string'==typeof n?n:'unknown',fromMs:'number'==typeof s?s:0,toMs:'number'==typeof c?c:0,options:(u=e.options,(0,o.isRecord)(u)?{speed:'number'==typeof u.speed?u.speed:void 0,timelapse:f(u.timelapse),includeAudio:!0===u.includeAudio,maxLifeMs:'number'==typeof u.maxLifeMs?u.maxLifeMs:0,deleteAfterDownload:!0===u.deleteAfterDownload,title:'string'==typeof u.title?u.title:void 0}:{includeAudio:!1,maxLifeMs:0,deleteAfterDownload:!1}),state:l(e.state),progressPct:p(e.progressPct),fileBytes:p(e.fileBytes),expiresAt:'number'==typeof e.expiresAt?e.expiresAt:0,deleteAfterDownload:!0===e.deleteAfterDownload,downloadedAt:p(e.downloadedAt),createdAt:'number'==typeof e.createdAt?e.createdAt:0,createdBy:'string'==typeof e.createdBy?e.createdBy:'',error:'string'==typeof e.error?e.error:null};var u}function x(e){if(!Array.isArray(e))return[];const t=[];for(const r of e){const e=y(r);e&&t.push(e)}return t}function v(e){return'queued'===e.state||'rendering'===e.state}const E=2e3;function b(e){return!!(e.state.data??[]).some(v)&&E}function w(e){const t=e.state.data;return!(!t||!v(t))&&E}function A(e){return(0,o.isRecord)(e)?"string"==typeof e.exportId?e.exportId:"string"==typeof e.id?e.id:null:null}},3488,[15,17,3081,2594,3162,2705]);
15910
15910
  __d(function(g,r,i,a,_m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.formatBytes=function(t){if(null===t||t<=0)return'\u2014';const n=['B','KB','MB','GB','TB'];let o=t,s=0;for(;o>=1024&&s<n.length-1;)o/=1024,s+=1;return`${o>=100||0===s?Math.round(o):o.toFixed(1)} ${n[s]}`},e.formatDuration=s,e.rangeLabel=function(t,n){const o=new Date(t).toLocaleDateString(void 0,{day:'numeric',month:'short'}),c=new Date(t).toDateString()===new Date(n).toDateString()?u(n):`${new Date(n).toLocaleDateString(void 0,{day:'numeric',month:'short'})} ${u(n)}`;return`${o}, ${u(t)} \u2192 ${c} (${s(n-t)})`},e.variantLabel=function(t,n){let o;if(void 0!==t.timelapse)o=n('v2.exports.variantTimelapse');else{const s=t.speed??1;o=1===s?n('v2.exports.variantRegular'):n(s>1?'v2.exports.variantAccelerated':'v2.exports.variantSlow',{speed:s})}return void 0===t.timelapse&&t.includeAudio?`${o} \xb7 ${n('v2.exports.withAudio')}`:o},e.expiryLabel=function(s,u,c){const l=s-u;return l<=0?c('v2.exports.expired'):l>=o?c('v2.exports.expiresInDays',{count:Math.floor(l/o)}):l>=n?c('v2.exports.expiresInHours',{count:Math.floor(l/n)}):c('v2.exports.expiresInMinutes',{count:Math.max(1,Math.floor(l/t))})},e.stateLabel=function(t,n){return n(`v2.exports.state.${t}`)},e.effectiveProgress=function(t,n){return'rendering'!==t.state&&'queued'!==t.state?null:'number'==typeof n?Math.max(0,Math.min(100,n)):'number'==typeof t.progressPct?Math.max(0,Math.min(100,t.progressPct)):null};const t=6e4,n=36e5,o=864e5;function s(t){if(t<=0)return'0s';const n=Math.round(t/1e3),o=Math.floor(n/3600),s=Math.floor(n%3600/60),u=n%60;return o>0?`${o}h ${String(s).padStart(2,'0')}m`:s>0?`${s}m ${String(u).padStart(2,'0')}s`:`${u}s`}function u(t){return new Date(t).toLocaleTimeString(void 0,{hour:'2-digit',minute:'2-digit'})}},3489,[]);
@@ -15922,11 +15922,11 @@ __d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e
15922
15922
  __d(function(g,r,i,_a,m,_e,d){"use strict";function n(n,t){return n.x<t.x+t.w&&t.x<n.x+n.w&&n.y<t.y+t.h&&t.y<n.y+n.h}function t(n,t){return t.w<=0||t.h<=0?null:{x:n.x/t.w,y:n.y/t.h,w:n.w/t.w,h:n.h/t.h}}function e(n){let t=0,e=0;for(const o of n)for(const n of o)n.x+n.w>t&&(t=n.x+n.w),n.y+n.h>e&&(e=n.y+n.h);return t>0&&e>0?{w:t,h:e}:null}function o(n){return'object'==typeof n&&null!==n&&!Array.isArray(n)}function u(n){if(!o(n))return null;const{x:t,y:e,w:u,h:f}=n;return'number'!=typeof t||'number'!=typeof e||'number'!=typeof u||'number'!=typeof f?null:u>0&&f>0?{x:t,y:e,w:u,h:f}:null}function f(e,o,u){if(void 0===e||0===e.length)return!0;for(const f of e){const e=t(f,o);if(null!==e&&n(e,u))return!0}return!1}Object.defineProperty(_e,'__esModule',{value:!0}),_e.rectsIntersect=n,_e.normalizeRect=t,_e.estimateFrameSize=e,_e.parsePositionBoxes=function(n){if(!o(n)||!Array.isArray(n.positions))return[];const t=[];for(const e of n.positions){if(!o(e))continue;const n=u(e.bbox);null!==n&&t.push(n)}return t},_e.trackMatchesZone=f,_e.filterEventsByZone=function(n,t){if(null===t)return n;const o=e(n.map(n=>n.positionBoxes??[]));return null===o?n:n.filter(n=>f(n.positionBoxes,o,t))},Object.defineProperty(_e,"MIN_ZONE_FRACTION",{enumerable:!0,get:function(){return s}}),_e.dragToRect=function(n,t,e,o,u,f){if(u<=0||f<=0)return null;const s=n=>Math.min(1,Math.max(0,n)),c=s(Math.min(n,e)/u),l=s(Math.min(t,o)/f),a=s(Math.max(n,e)/u),h=s(Math.max(t,o)/f);return{x:c,y:l,w:a-c,h:h-l}},_e.isZoneUsable=function(n){return n.w>=s&&n.h>=s};const s=.02},3501,[]);
15923
15923
  __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,"ZoneActiveOverlay",{enumerable:!0,get:function(){return u}});var t=r(d[0]),o=r(d[1]),n=e(r(d[2])),h=e(r(d[3])),l=r(d[4]),c=r(d[5]);const u=(0,o.memo)(function(e){const u=(0,t.c)(9),{zone:f}=e,{colors:w}=(0,l.useTheme)();let b;u[0]===Symbol.for("react.memo_cache_sentinel")?(b={width:0,height:0},u[0]=b):b=u[0];const[y,_]=(0,o.useState)(b);let v;u[1]===Symbol.for("react.memo_cache_sentinel")?(v=e=>{const{width:t,height:o}=e.nativeEvent.layout;_({width:t,height:o})},u[1]=v):v=u[1];const p=v;let j,x;return u[2]!==y.height||u[3]!==y.width||u[4]!==w||u[5]!==f?(j=y.width>0&&y.height>0?(0,c.jsx)(n.default,{style:[s.zoneRect,{borderColor:w.warning,backgroundColor:`${w.warning}14`,left:f.x*y.width,top:f.y*y.height,width:f.w*y.width,height:f.h*y.height}]}):null,u[2]=y.height,u[3]=y.width,u[4]=w,u[5]=f,u[6]=j):j=u[6],u[7]!==j?(x=(0,c.jsx)(n.default,{style:h.default.absoluteFill,onLayout:p,pointerEvents:"none",children:j}),u[7]=j,u[8]=x):x=u[8],x}),s=h.default.create({zoneRect:{position:'absolute',borderWidth:1.5,borderRadius:2}})},3502,[15,17,20,33,2587,10]);
15924
15924
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.serializeAdhocDeviceIds=function(t){return t.filter(t=>Number.isInteger(t)&&t>0).join(',')},e.parseAdhocDeviceIds=function(t){if(void 0===t)return[];const n='string'==typeof t?t:t.join(','),o=new Set,s=[];for(const t of n.split(',')){const n=Number(t.trim());Number.isInteger(n)&&n>0&&!o.has(n)&&(o.add(n),s.push(n))}return s}},3503,[]);
15925
- __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,"TheaterTimeline",{enumerable:!0,get:function(){return U}});var t=r(_d[0]),o=e(r(_d[1])),n=e(r(_d[2])),s=e(r(_d[3])),l=e(r(_d[4])),c=r(_d[5]),u=r(_d[6]),d=r(_d[7]),f=r(_d[8]),h=r(_d[9]),p=r(_d[10]),v=r(_d[11]),b=r(_d[12]),M=r(_d[13]),C=r(_d[14]),T=r(_d[15]),S=r(_d[16]),x=r(_d[17]),y=r(_d[18]),I=r(_d[19]),P=r(_d[20]),k=r(_d[21]),L=r(_d[22]),D=r(_d[23]),E=r(_d[24]),w=r(_d[25]),A=r(_d[26]),R=r(_d[27]),O=r(_d[28]),j=r(_d[29]),z=r(_d[30]),B=r(_d[31]),F=r(_d[32]),W=r(_d[33]),_=r(_d[34]),K=r(_d[35]),Z=r(_d[36]),H=r(_d[37]),N=r(_d[38]);const G=864e5,q=h.SPACING.lg+36+h.SPACING.md,V='#ffffff',U=(0,t.memo)(function(e){const{t:s}=(0,c.useTranslation)(),{colors:U}=(0,f.useTheme)(),Q=(0,u.useSafeAreaInsets)(),[X,$]=(0,t.useState)(()=>Date.now());(0,t.useEffect)(()=>{const e=setInterval(()=>$(Date.now()),1e3);return()=>clearInterval(e)},[]);const J=(0,B.useSettings)().settings.clusters,[ee,te]=(0,t.useState)(T.DEFAULT_ZOOM_INDEX),oe=ee<T.ZOOM_LEVELS.length-1,ne=ee>0,ie=(0,t.useCallback)(()=>te(e=>(0,T.clampZoomIndex)(e+1)),[]),re=(0,t.useCallback)(()=>te(e=>(0,T.clampZoomIndex)(e-1)),[]),[ae,se]=(0,t.useState)(0),[le,ce]=(0,t.useState)(0),[ue,de]=(0,t.useState)(0),me=(0,t.useCallback)(e=>{const{height:t,width:o}=e.nativeEvent.layout;t>0&&ce(t),o>0&&de(o)},[]),ge=(0,t.useMemo)(()=>(0,y.indicatorOffsetPx)(le,J.indicatorPositionPct),[le,J.indicatorPositionPct]),fe=(0,t.useRef)(ge),he=(0,t.useRef)(le);(0,t.useEffect)(()=>{fe.current=ge,he.current=le},[ge,le]);const pe=(0,F.useCameraPrefsStore)(t=>t.prefs.byId[e.deviceId]?.timelineKinds),ve=(0,F.useCameraPrefsStore)(t=>t.prefs.byId[e.deviceId]?.timelineClasses),be=(0,F.useCameraPrefsStore)(e=>e.setCameraTimelineKinds),Me=(0,F.useCameraPrefsStore)(e=>e.setCameraTimelineClasses),Ce=(0,F.useCameraPrefsStore)(e=>e.toggleCameraTimelineKind),Te=(0,F.useCameraPrefsStore)(e=>e.toggleCameraTimelineClass),Se=(0,F.useCameraPrefsStore)(e=>e.hydrate);(0,t.useEffect)(()=>{Se()},[Se]);const xe=(0,t.useMemo)(()=>new Set(pe??T.ALL_BAR_KINDS),[pe]),ye=(0,t.useMemo)(()=>new Set(ve??[]),[ve]),[Ie,Pe]=(0,t.useState)(!1),ke=!(0,T.isFilterAll)(xe)||ye.size>0,Le=(0,w.useEventKinds)([e.deviceId]),De=(0,t.useMemo)(()=>(0,A.classToMacroMap)(Le.data??[]),[Le.data]),Ee=(0,F.useCameraPrefsStore)(t=>t.prefs.byId[e.deviceId]?.highlight),we=(0,t.useMemo)(()=>(0,R.withHighlightDefaults)(Ee).clusterLabel,[Ee]),Ae=(0,t.useCallback)(()=>Pe(e=>!e),[]),Re=(0,t.useCallback)(()=>{be(e.deviceId,[...T.ALL_BAR_KINDS]),Me(e.deviceId,[])},[be,Me,e.deviceId]),Oe=(0,t.useCallback)(t=>Ce(e.deviceId,t),[Ce,e.deviceId]),je=(0,t.useCallback)(t=>Te(e.deviceId,t),[Te,e.deviceId]),ze=e.zoneRect,Be=X,Fe='live'===e.mode,We=e.activeEpoch??X,Ke=(0,t.useMemo)(()=>{const e=new Date(We);return e.setHours(0,0,0,0),e.getTime()},[We]),Ze=(0,t.useMemo)(()=>({from:Ke,to:Ke+G}),[Ke]),[He,Ne]=(0,t.useState)(1),Ge=Ke-(He-1)*G,qe=(0,t.useRef)(1);(0,t.useEffect)(()=>{qe.current=He},[He]);const Ve=(0,t.useRef)(Ge);(0,t.useEffect)(()=>{Ve.current=Ge},[Ge]);const Ue=(0,t.useRef)(0);(0,t.useEffect)(()=>{Ne(1)},[Ke]);const Ye=(0,t.useMemo)(()=>{const e=new Date(X);return e.setHours(0,0,0,0),e.getTime()},[X]),[Qe,Xe]=(0,t.useState)(!1),[$e,Je]=(0,t.useState)(Ke),{fromMs:et,toMs:tt}=(0,t.useMemo)(()=>(0,j.monthBoundsForMs)($e),[$e]),{data:ot}=(0,P.useDaysWithRecordings)(e.deviceId,et,tt,Qe),nt=e.onSeek,it=(0,t.useCallback)(()=>{nt((0,z.dayAtSameTime)(We,Ke-G,X),'timeline')},[nt,We,Ke,X]),rt=(0,t.useCallback)(()=>{Ke>=Ye||nt((0,z.dayAtSameTime)(We,Ke+G,X),'timeline')},[nt,We,Ke,Ye,X]),at=(0,t.useCallback)(()=>{Je(Ke),Xe(!0)},[Ke]),st=(0,t.useCallback)(e=>{Xe(!1),nt((0,z.dayAtSameTime)(We,e,X),'timeline')},[nt,We,X]),lt=(0,t.useCallback)(e=>{Je(t=>{const o=new Date(t);return new Date(o.getFullYear(),o.getMonth()+e,1,0,0,0,0).getTime()})},[]),{data:ct=[]}=(0,W.useDeviceTracks)(e.deviceId,Ge,Ze.to),ut=(0,t.useMemo)(()=>{const e=J.minImportance;return e<=0?ct:ct.filter(t=>(t.importance??0)>=e)},[ct,J.minImportance]),dt=(0,t.useMemo)(()=>{const e=new Set;for(const t of ut)t.className.length>0&&e.add(t.className);return[...(0,A.collapseToMacro)([...e],De)].sort()},[ut,De]),mt=(0,T.isFilterAll)(xe),gt=(0,t.useMemo)(()=>(0,E.filterEventsByZone)(ut,ze),[ut,ze]),ft=(0,t.useMemo)(()=>(0,D.filterDetectionsByKind)(gt,xe,ye,De),[gt,xe,ye,De]),ht=(0,_.useTimelineActivity)(e.deviceId,Ge,Ze.to),pt=(0,t.useMemo)(()=>ue>0?Math.round(ue*J.cardWidthFraction):0,[ue,J.cardWidthFraction]),vt=(0,t.useMemo)(()=>pt>0?Math.round(.5625*pt):0,[pt]),{sizePx:bt,gapPx:Mt}=(0,t.useMemo)(()=>{const e=Math.max(8,vt);return{sizePx:e,gapPx:J.gapPercent/100*e}},[vt,J.gapPercent]),Ct=(0,t.useMemo)(()=>(0,K.clusterByZoom)(ft,{topMs:Be,zoomIndex:ee,sizePx:bt,gapPx:Mt}),[ft,Be,ee,bt,Mt]),Tt=Ct.filter(e=>e.topPx>=ae-80-e.heightPx&&e.topPx<=ae+le+80).length;(0,t.useEffect)(()=>{const t=e=>new Date(e).toLocaleTimeString(),o=ut.map(e=>e.timestamp);L.log.info('theater:clusters','render state',{deviceId:e.deviceId,objectEvents:ut.length,objectEventRange:o.length>0?{first:t(Math.min(...o)),last:t(Math.max(...o))}:null,clusters:Ct.length,clusterSpans:Ct.slice(0,8).map(e=>({s:t(e.startMs),e:t(e.endMs),n:e.events.length,topPx:Math.round(e.topPx)})),visibleClusters:Tt,activity:{recording:ht.recording.length,motion:ht.motion.length,audio:ht.audio.length},geometry:{cardWidth:pt,viewportHeight:le,listWrapWidth:ue,scrollOffsetY:ae,sizePx:bt,gapPx:Mt,zoomIndex:ee},dayWindow:Ze})},[e.deviceId,ut,Ct,Tt,ht.recording.length,ht.motion.length,ht.audio.length,pt,le,ue,ae,bt,Mt,ee,Ze]);const{data:St=[]}=(0,P.useRecordingAvailability)(e.deviceId,Ze.from,Ze.to,!0);(0,t.useEffect)(()=>{L.log.info('timeline','coverage',{deviceId:e.deviceId,count:St.length})},[e.deviceId,St.length]);const xt=(0,t.useMemo)(()=>{const t=e.activeEpoch;return null===t?(0,T.heatmapCursorFraction)(X):(0,x.epochToDayFraction)(t,Ze.from,Ze.to)},[e.activeEpoch,Ze,X]),yt=(0,t.useRef)(null),[It,Pt]=(0,t.useState)(null),kt=(0,t.useRef)(0),Lt=(0,t.useRef)(!1),Dt=(0,t.useRef)(null),Et=(0,t.useRef)(null),wt=(0,t.useRef)(Fe);wt.current=Fe;const At=(0,t.useRef)(!1),Rt=(0,t.useRef)(0),Ot=(0,t.useRef)(null),jt=(0,t.useCallback)(()=>{At.current=!1,Ot.current&&(clearTimeout(Ot.current),Ot.current=null)},[]),zt=(0,t.useCallback)((e,t)=>{At.current=!0,Rt.current=e,Ot.current&&clearTimeout(Ot.current),Ot.current=setTimeout(()=>{At.current=!1,Ot.current=null},500),yt.current?.scrollToOffset({offset:e,animated:t})},[]),Bt=(0,t.useCallback)(t=>{const o=t.nativeEvent.contentOffset.y;se(o);const n=fe.current,s=he.current,l=(0,S.epochToOffset)(Ve.current,Be,ee);if(o>=n+Math.max(s,l)-s-s)if(qe.current<30)Ne(e=>Math.min(30,e+1));else{const t=Date.now();t-Ue.current>=5e3&&(Ue.current=t,L.log.info('theater','back-scroll capped at MAX_LOOKBACK_DAYS',{deviceId:e.deviceId,days:30}))}if(At.current)return void(Math.abs(o-Rt.current)<=2&&jt());const c=Math.round((0,S.offsetToEpoch)(o,Be,ee)),u=Be-c;if((0,I.atLiveEdge)(u,15e3))return Dt.current&&(clearTimeout(Dt.current),Dt.current=null),Et.current=null,Lt.current=!1,void(wt.current||(L.log.debug('theater:live-edge','go-live (scrolled into live edge)',{behindLiveMs:u,epoch:c,topMs:Be}),e.onGoLive()));Lt.current||(Lt.current=!0,Dt.current&&(clearTimeout(Dt.current),Dt.current=null),e.onScrubBegin('timeline'));const d=Date.now();d-kt.current<100||(kt.current=d,Et.current=c,e.onScrubMove(c,'timeline'),Dt.current&&clearTimeout(Dt.current),Dt.current=setTimeout(()=>{Dt.current=null;const t=Et.current;null!=t&&(e.onScrubCommit(t,'timeline'),Lt.current=!1)},220))},[Be,ee,e,jt]),Ft=(0,t.useCallback)(()=>{zt(0,!0),e.onGoLive()},[e,zt]);(0,t.useEffect)(()=>{if('playback'!==e.mode)return;const t=e.activeEpoch;if(null===t)return;const o=(0,S.epochToOffset)(t,Be,ee);zt(o,!1)},[e.mode,e.activeEpoch,Be,ee,zt]);const Wt=(0,t.useCallback)(t=>{L.log.info('theater:clusters','tap',{epoch:t.representative.timestamp,topPx:Math.round(t.topPx)}),e.onSeek(t.representative.timestamp,'cluster')},[e]),_t=(0,t.useCallback)(e=>{Pt(e)},[]),Kt=(0,t.useCallback)(t=>{e.onSeek(t,'cluster'),Pt(null)},[e]),Zt=(0,t.useCallback)(e=>(0,x.dayFractionToEpoch)(e,Ze.from,Ze.to),[Ze.from,Ze.to]),Ht=(0,t.useCallback)(e=>{const t=Zt(e);L.log.debug('timeline','heatmap seek',{fraction:e,snapped:t}),nt(t,'heatmap')},[Zt,nt]),Nt=e.onScrubBegin,Gt=e.onScrubMove,qt=e.onScrubCommit,Vt=(0,t.useCallback)(()=>Nt('heatmap'),[Nt]),Ut=(0,t.useCallback)(e=>{const t=Zt(e);L.log.debug('timeline','heatmap scrub',{fraction:e,snapped:t}),Gt(t,'heatmap')},[Zt,Gt]),Yt=(0,t.useCallback)(e=>{const t=Zt(e);L.log.debug('timeline','heatmap scrubEnd',{fraction:e,snapped:t}),qt(t,'heatmap')},[Zt,qt]),Qt=mt||xe.has('motion'),Xt=mt||xe.has('audio'),$t=(0,t.useMemo)(()=>Qt?ft:[],[Qt,ft]),Jt=(0,t.useMemo)(()=>{const e=(0,D.objectEventsToHeatmapBins)($t,Ke);return Xt?(0,D.mergeAudioIntoHeatmapBins)(e,ht.audio,Ke):e},[$t,Ke,Xt,ht.audio]),eo=(0,t.useMemo)(()=>(0,D.objectEventsToHeatmapHighlights)($t,Ke),[$t,Ke]),to=(0,t.useMemo)(()=>e.activeEpoch??X,[e.activeEpoch,X]),oo=(0,t.useMemo)(()=>new Date(to).toLocaleTimeString(void 0,{hour:'2-digit',minute:'2-digit',second:'2-digit'}),[to]);return(0,N.jsxs)(o.default,{style:[Y.container,{backgroundColor:U.background}],children:[(0,N.jsx)(p.TimelineToolbarInline,{onBack:e.onBack,hideBack:e.hideBack,dateLabel:(0,z.dateLabel)(Ke,X,s),onPrevDay:it,onOpenDatePicker:at,onNextDay:rt,nextDayDisabled:Ke>=Ye,hasPtz:e.hasPtz,ptzOpen:e.ptzOpen,onTogglePtz:e.onTogglePtz,devicesOpen:e.devicesOpen,onToggleDevices:e.onToggleDevices,menuOpen:e.menuOpen,onToggleMenu:e.onToggleMenu,qualityOpen:e.qualityOpen,onToggleQuality:e.onToggleQuality,qualityLabel:s((0,v.qualityLabelKey)(e.quality)),exportMenuOpen:e.exportMenuOpen,onToggleExportMenu:e.onToggleExportMenu,snapshotBusy:e.snapshotBusy,exportMenuLabel:s('v2.exportActions.title')}),(0,N.jsx)(b.HeatmapBar,{bins:Jt,cursorFraction:xt,eventMarkers:eo,coverage:St,dayStartMs:Ze.from,dayEndMs:Ze.to,onSeekFraction:Ht,onScrubStart:Vt,onScrubFraction:Ut,onScrubEnd:Yt}),Fe?(0,N.jsxs)(o.default,{style:[Y.livePill,{backgroundColor:`${U.live}26`}],children:[(0,N.jsx)(o.default,{style:[Y.liveDot,{backgroundColor:U.live}]}),(0,N.jsx)(n.default,{style:[Y.liveText,{color:U.live}],children:s('v2.theater.live')})]}):(0,N.jsxs)(l.default,{style:[Y.goLivePill,{backgroundColor:U.danger}],onPress:Ft,accessibilityRole:"button",accessibilityLabel:s('v2.theater.goToLive'),children:[(0,N.jsx)(d.ArrowUp,{size:13,color:V}),(0,N.jsx)(n.default,{style:[Y.goLiveText,{color:V}],children:s('v2.theater.goToLive')})]}),(0,N.jsxs)(o.default,{style:Y.listWrap,onLayout:me,children:[(0,N.jsx)(H.TimelineScroller,{ref:yt,topMs:Be,zoomIndex:ee,dayWindow:{from:Ge,to:Ze.to},clusters:Ct,activity:ht,showMotionLane:Qt,showAudioLane:Xt,cardWidth:pt,viewportHeight:le,indicatorOffsetPx:ge,isLive:Fe,onScroll:Bt,onClusterPress:Wt,onClusterOpenDetail:_t,clusterLabel:we,eventKinds:Le.data}),le>0?(0,N.jsxs)(o.default,{style:[Y.indicator,{top:ge}],pointerEvents:"none",children:[(0,N.jsx)(o.default,{style:[Y.indicatorLine,{backgroundColor:Fe?U.live:U.danger}]}),(0,N.jsx)(o.default,{style:[Y.indicatorPill,{backgroundColor:Fe?U.live:U.danger}],children:(0,N.jsx)(n.default,{style:[Y.indicatorLabel,h.TABULAR,{color:V}],children:Fe?s('v2.theater.live'):oo})})]}):null,Ie?(0,N.jsx)(C.TimelineFilterPanel,{filter:xe,onToggleKind:Oe,classes:dt,classFilter:ye,onToggleClass:je,onReset:Re,eventKinds:Le.data,bottomInset:Q.bottom+q}):null,(0,N.jsx)(M.TimelineFabControls,{onZoomIn:ie,onZoomOut:re,onFilter:Ae,onZoneFilter:null!==ze?e.onClearZone:e.onRequestZoneDraw,onPickCamera:e.onPickCamera,canZoomIn:oe,canZoomOut:ne,filterActive:ke,filterOpen:Ie,zoneActive:null!==ze,bottomInset:Q.bottom})]}),(0,N.jsx)(O.DatePickerModal,{visible:Qe,monthAnchorMs:$e,selectedDayMs:Ke,daysSet:ot??new Set,nowMs:X,onChangeMonth:lt,onPick:st,onClose:()=>Xe(!1)}),(0,N.jsx)(Z.ClusterDetailModal,{deviceId:e.deviceId,cluster:It,onSeek:Kt,onClose:()=>Pt(null),seekAvailable:null===It||'absent'!==(0,k.recordingKnownAt)(St,Ze.from,Ze.to,It.representative.timestamp)})]})}),Y=s.default.create({container:{flex:1},livePill:{flexDirection:'row',alignItems:'center',justifyContent:'center',gap:5,paddingVertical:5},liveDot:{width:6,height:6,borderRadius:3},liveText:{fontSize:11,fontWeight:'700'},goLivePill:{flexDirection:'row',alignItems:'center',justifyContent:'center',gap:5,paddingVertical:5},goLiveText:{fontSize:11,fontWeight:'700'},listWrap:{flex:1,position:'relative'},indicator:{position:'absolute',left:0,right:0,flexDirection:'row',alignItems:'center',paddingLeft:h.SPACING.md},indicatorLine:{position:'absolute',left:0,right:0,height:1.5},indicatorPill:{paddingHorizontal:h.SPACING.sm,paddingVertical:1,borderRadius:4},indicatorLabel:{fontSize:10,fontWeight:'700',letterSpacing:.3},drawerHandle:{position:'absolute',left:0,top:'50%',marginTop:-16,width:16,height:32,borderTopRightRadius:8,borderBottomRightRadius:8,borderWidth:1,borderLeftWidth:0,alignItems:'center',justifyContent:'center'},scrollIndicatorTrack:{position:'absolute',right:2,top:h.SPACING.lg,bottom:h.SPACING.lg,width:3,alignItems:'center'},scrollIndicatorThumb:{width:3,height:48,borderRadius:2,opacity:.7}})},3504,[17,20,112,33,252,786,466,813,2587,2589,3505,3461,3506,3508,3509,3142,3510,3507,3511,3512,3159,3160,2705,3231,3501,3168,3169,3139,3513,3514,3515,3177,3132,3516,3517,3519,3520,3522,10]);
15925
+ __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,"TheaterTimeline",{enumerable:!0,get:function(){return Y}});var t=r(_d[0]),o=e(r(_d[1])),n=e(r(_d[2])),s=e(r(_d[3])),l=e(r(_d[4])),c=r(_d[5]),u=r(_d[6]),d=r(_d[7]),f=r(_d[8]),h=r(_d[9]),p=r(_d[10]),v=r(_d[11]),b=r(_d[12]),M=r(_d[13]),C=r(_d[14]),T=r(_d[15]),S=r(_d[16]),x=r(_d[17]),y=r(_d[18]),I=r(_d[19]),P=r(_d[20]),k=r(_d[21]),L=r(_d[22]),D=r(_d[23]),E=r(_d[24]),w=r(_d[25]),A=r(_d[26]),R=r(_d[27]),O=r(_d[28]),j=r(_d[29]),z=r(_d[30]),B=r(_d[31]),F=r(_d[32]),W=r(_d[33]),_=r(_d[34]),K=r(_d[35]),Z=r(_d[36]),H=r(_d[37]),N=r(_d[38]),G=r(_d[39]);const q=864e5,V=h.SPACING.lg+36+h.SPACING.md,U='#ffffff',Y=(0,t.memo)(function(e){const{t:s}=(0,c.useTranslation)(),{colors:Y}=(0,f.useTheme)(),X=(0,u.useSafeAreaInsets)(),[$,J]=(0,t.useState)(()=>Date.now());(0,t.useEffect)(()=>{const e=setInterval(()=>J(Date.now()),1e3);return()=>clearInterval(e)},[]);const ee=(0,B.useSettings)().settings.clusters,[te,oe]=(0,t.useState)(T.DEFAULT_ZOOM_INDEX),ne=te<T.ZOOM_LEVELS.length-1,re=te>0,ie=(0,t.useCallback)(()=>oe(e=>(0,T.clampZoomIndex)(e+1)),[]),ae=(0,t.useCallback)(()=>oe(e=>(0,T.clampZoomIndex)(e-1)),[]),[se,le]=(0,t.useState)(0),[ce,ue]=(0,t.useState)(0),[de,me]=(0,t.useState)(0),ge=(0,t.useCallback)(e=>{const{height:t,width:o}=e.nativeEvent.layout;t>0&&ue(t),o>0&&me(o)},[]),fe=(0,t.useMemo)(()=>(0,y.indicatorOffsetPx)(ce,ee.indicatorPositionPct),[ce,ee.indicatorPositionPct]),he=(0,t.useRef)(fe),pe=(0,t.useRef)(ce);(0,t.useEffect)(()=>{he.current=fe,pe.current=ce},[fe,ce]);const ve=(0,F.useCameraPrefsStore)(t=>t.prefs.byId[e.deviceId]?.timelineKinds),be=(0,F.useCameraPrefsStore)(t=>t.prefs.byId[e.deviceId]?.timelineClasses),Me=(0,F.useCameraPrefsStore)(e=>e.setCameraTimelineKinds),Ce=(0,F.useCameraPrefsStore)(e=>e.setCameraTimelineClasses),Te=(0,F.useCameraPrefsStore)(e=>e.toggleCameraTimelineKind),Se=(0,F.useCameraPrefsStore)(e=>e.toggleCameraTimelineClass),xe=(0,F.useCameraPrefsStore)(e=>e.hydrate);(0,t.useEffect)(()=>{xe()},[xe]);const ye=(0,t.useMemo)(()=>new Set(ve??T.ALL_BAR_KINDS),[ve]),Ie=(0,t.useMemo)(()=>new Set(be??[]),[be]),[Pe,ke]=(0,t.useState)(!1),Le=!(0,T.isFilterAll)(ye)||Ie.size>0,De=(0,w.useEventKinds)([e.deviceId]),Ee=(0,t.useMemo)(()=>(0,A.classToMacroMap)(De.data??[]),[De.data]),we=(0,F.useCameraPrefsStore)(t=>t.prefs.byId[e.deviceId]?.highlight),Ae=(0,t.useMemo)(()=>(0,R.withHighlightDefaults)(we).clusterLabel,[we]),Re=(0,t.useCallback)(()=>ke(e=>!e),[]),Oe=(0,t.useCallback)(()=>{Me(e.deviceId,[...T.ALL_BAR_KINDS]),Ce(e.deviceId,[])},[Me,Ce,e.deviceId]),je=(0,t.useCallback)(t=>Te(e.deviceId,t),[Te,e.deviceId]),ze=(0,t.useCallback)(t=>Se(e.deviceId,t),[Se,e.deviceId]),Be=e.zoneRect,Fe=$,We='live'===e.mode,Ke=e.activeEpoch??$,Ze=(0,t.useMemo)(()=>{const e=new Date(Ke);return e.setHours(0,0,0,0),e.getTime()},[Ke]),He=(0,t.useMemo)(()=>({from:Ze,to:Ze+q}),[Ze]),[Ne,Ge]=(0,t.useState)(1),qe=Ze-(Ne-1)*q,Ve=(0,t.useRef)(1);(0,t.useEffect)(()=>{Ve.current=Ne},[Ne]);const Ue=(0,t.useRef)(qe);(0,t.useEffect)(()=>{Ue.current=qe},[qe]);const Ye=(0,t.useRef)(0);(0,t.useEffect)(()=>{Ge(1)},[Ze]);const Qe=(0,t.useMemo)(()=>{const e=new Date($);return e.setHours(0,0,0,0),e.getTime()},[$]),[Xe,$e]=(0,t.useState)(!1),[Je,et]=(0,t.useState)(Ze),{fromMs:tt,toMs:ot}=(0,t.useMemo)(()=>(0,j.monthBoundsForMs)(Je),[Je]),{data:nt}=(0,P.useDaysWithRecordings)(e.deviceId,tt,ot,Xe),rt=e.onSeek,it=(0,t.useCallback)(()=>{rt((0,z.dayAtSameTime)(Ke,Ze-q,$),'timeline')},[rt,Ke,Ze,$]),at=(0,t.useCallback)(()=>{Ze>=Qe||rt((0,z.dayAtSameTime)(Ke,Ze+q,$),'timeline')},[rt,Ke,Ze,Qe,$]),st=(0,t.useCallback)(()=>{et(Ze),$e(!0)},[Ze]),lt=(0,t.useCallback)(e=>{$e(!1),rt((0,z.dayAtSameTime)(Ke,e,$),'timeline')},[rt,Ke,$]),ct=(0,t.useCallback)(e=>{et(t=>{const o=new Date(t);return new Date(o.getFullYear(),o.getMonth()+e,1,0,0,0,0).getTime()})},[]),{data:ut=[]}=(0,W.useDeviceTracks)(e.deviceId,qe,He.to),dt=(0,t.useMemo)(()=>{const e=ee.minImportance;return e<=0?ut:ut.filter(t=>(0,_.passesImportanceFilter)(t.importance,e))},[ut,ee.minImportance]),mt=(0,t.useMemo)(()=>{const e=new Set;for(const t of dt)t.className.length>0&&e.add(t.className);return[...(0,A.collapseToMacro)([...e],Ee)].sort()},[dt,Ee]),gt=(0,T.isFilterAll)(ye),ft=(0,t.useMemo)(()=>(0,E.filterEventsByZone)(dt,Be),[dt,Be]),ht=(0,t.useMemo)(()=>(0,D.filterDetectionsByKind)(ft,ye,Ie,Ee),[ft,ye,Ie,Ee]),pt=(0,K.useTimelineActivity)(e.deviceId,qe,He.to),vt=(0,t.useMemo)(()=>de>0?Math.round(de*ee.cardWidthFraction):0,[de,ee.cardWidthFraction]),bt=(0,t.useMemo)(()=>vt>0?Math.round(.5625*vt):0,[vt]),{sizePx:Mt,gapPx:Ct}=(0,t.useMemo)(()=>{const e=Math.max(8,bt);return{sizePx:e,gapPx:ee.gapPercent/100*e}},[bt,ee.gapPercent]),Tt=(0,t.useMemo)(()=>(0,Z.clusterByZoom)(ht,{topMs:Fe,zoomIndex:te,sizePx:Mt,gapPx:Ct}),[ht,Fe,te,Mt,Ct]),St=Tt.filter(e=>e.topPx>=se-80-e.heightPx&&e.topPx<=se+ce+80).length;(0,t.useEffect)(()=>{const t=e=>new Date(e).toLocaleTimeString(),o=dt.map(e=>e.timestamp);L.log.info('theater:clusters','render state',{deviceId:e.deviceId,objectEvents:dt.length,objectEventRange:o.length>0?{first:t(Math.min(...o)),last:t(Math.max(...o))}:null,clusters:Tt.length,clusterSpans:Tt.slice(0,8).map(e=>({s:t(e.startMs),e:t(e.endMs),n:e.events.length,topPx:Math.round(e.topPx)})),visibleClusters:St,activity:{recording:pt.recording.length,motion:pt.motion.length,audio:pt.audio.length},geometry:{cardWidth:vt,viewportHeight:ce,listWrapWidth:de,scrollOffsetY:se,sizePx:Mt,gapPx:Ct,zoomIndex:te},dayWindow:He})},[e.deviceId,dt,Tt,St,pt.recording.length,pt.motion.length,pt.audio.length,vt,ce,de,se,Mt,Ct,te,He]);const{data:xt=[]}=(0,P.useRecordingAvailability)(e.deviceId,He.from,He.to,!0);(0,t.useEffect)(()=>{L.log.info('timeline','coverage',{deviceId:e.deviceId,count:xt.length})},[e.deviceId,xt.length]);const yt=(0,t.useMemo)(()=>{const t=e.activeEpoch;return null===t?(0,T.heatmapCursorFraction)($):(0,x.epochToDayFraction)(t,He.from,He.to)},[e.activeEpoch,He,$]),It=(0,t.useRef)(null),[Pt,kt]=(0,t.useState)(null),Lt=(0,t.useRef)(0),Dt=(0,t.useRef)(!1),Et=(0,t.useRef)(null),wt=(0,t.useRef)(null),At=(0,t.useRef)(We);At.current=We;const Rt=(0,t.useRef)(!1),Ot=(0,t.useRef)(0),jt=(0,t.useRef)(null),zt=(0,t.useCallback)(()=>{Rt.current=!1,jt.current&&(clearTimeout(jt.current),jt.current=null)},[]),Bt=(0,t.useCallback)((e,t)=>{Rt.current=!0,Ot.current=e,jt.current&&clearTimeout(jt.current),jt.current=setTimeout(()=>{Rt.current=!1,jt.current=null},500),It.current?.scrollToOffset({offset:e,animated:t})},[]),Ft=(0,t.useCallback)(t=>{const o=t.nativeEvent.contentOffset.y;le(o);const n=he.current,s=pe.current,l=(0,S.epochToOffset)(Ue.current,Fe,te);if(o>=n+Math.max(s,l)-s-s)if(Ve.current<30)Ge(e=>Math.min(30,e+1));else{const t=Date.now();t-Ye.current>=5e3&&(Ye.current=t,L.log.info('theater','back-scroll capped at MAX_LOOKBACK_DAYS',{deviceId:e.deviceId,days:30}))}if(Rt.current)return void(Math.abs(o-Ot.current)<=2&&zt());const c=Math.round((0,S.offsetToEpoch)(o,Fe,te)),u=Fe-c;if((0,I.atLiveEdge)(u,15e3))return Et.current&&(clearTimeout(Et.current),Et.current=null),wt.current=null,Dt.current=!1,void(At.current||(L.log.debug('theater:live-edge','go-live (scrolled into live edge)',{behindLiveMs:u,epoch:c,topMs:Fe}),e.onGoLive()));Dt.current||(Dt.current=!0,Et.current&&(clearTimeout(Et.current),Et.current=null),e.onScrubBegin('timeline'));const d=Date.now();d-Lt.current<100||(Lt.current=d,wt.current=c,e.onScrubMove(c,'timeline'),Et.current&&clearTimeout(Et.current),Et.current=setTimeout(()=>{Et.current=null;const t=wt.current;null!=t&&(e.onScrubCommit(t,'timeline'),Dt.current=!1)},220))},[Fe,te,e,zt]),Wt=(0,t.useCallback)(()=>{Bt(0,!0),e.onGoLive()},[e,Bt]);(0,t.useEffect)(()=>{if('playback'!==e.mode)return;const t=e.activeEpoch;if(null===t)return;const o=(0,S.epochToOffset)(t,Fe,te);Bt(o,!1)},[e.mode,e.activeEpoch,Fe,te,Bt]);const _t=(0,t.useCallback)(t=>{L.log.info('theater:clusters','tap',{epoch:t.representative.timestamp,topPx:Math.round(t.topPx)}),e.onSeek(t.representative.timestamp,'cluster')},[e]),Kt=(0,t.useCallback)(e=>{kt(e)},[]),Zt=(0,t.useCallback)(t=>{e.onSeek(t,'cluster'),kt(null)},[e]),Ht=(0,t.useCallback)(e=>(0,x.dayFractionToEpoch)(e,He.from,He.to),[He.from,He.to]),Nt=(0,t.useCallback)(e=>{const t=Ht(e);L.log.debug('timeline','heatmap seek',{fraction:e,snapped:t}),rt(t,'heatmap')},[Ht,rt]),Gt=e.onScrubBegin,qt=e.onScrubMove,Vt=e.onScrubCommit,Ut=(0,t.useCallback)(()=>Gt('heatmap'),[Gt]),Yt=(0,t.useCallback)(e=>{const t=Ht(e);L.log.debug('timeline','heatmap scrub',{fraction:e,snapped:t}),qt(t,'heatmap')},[Ht,qt]),Qt=(0,t.useCallback)(e=>{const t=Ht(e);L.log.debug('timeline','heatmap scrubEnd',{fraction:e,snapped:t}),Vt(t,'heatmap')},[Ht,Vt]),Xt=gt||ye.has('motion'),$t=gt||ye.has('audio'),Jt=(0,t.useMemo)(()=>Xt?ht:[],[Xt,ht]),eo=(0,t.useMemo)(()=>{const e=(0,D.objectEventsToHeatmapBins)(Jt,Ze);return $t?(0,D.mergeAudioIntoHeatmapBins)(e,pt.audio,Ze):e},[Jt,Ze,$t,pt.audio]),to=(0,t.useMemo)(()=>(0,D.objectEventsToHeatmapHighlights)(Jt,Ze),[Jt,Ze]),oo=(0,t.useMemo)(()=>e.activeEpoch??$,[e.activeEpoch,$]),no=(0,t.useMemo)(()=>new Date(oo).toLocaleTimeString(void 0,{hour:'2-digit',minute:'2-digit',second:'2-digit'}),[oo]);return(0,G.jsxs)(o.default,{style:[Q.container,{backgroundColor:Y.background}],children:[(0,G.jsx)(p.TimelineToolbarInline,{onBack:e.onBack,hideBack:e.hideBack,dateLabel:(0,z.dateLabel)(Ze,$,s),onPrevDay:it,onOpenDatePicker:st,onNextDay:at,nextDayDisabled:Ze>=Qe,hasPtz:e.hasPtz,ptzOpen:e.ptzOpen,onTogglePtz:e.onTogglePtz,devicesOpen:e.devicesOpen,onToggleDevices:e.onToggleDevices,menuOpen:e.menuOpen,onToggleMenu:e.onToggleMenu,qualityOpen:e.qualityOpen,onToggleQuality:e.onToggleQuality,qualityLabel:s((0,v.qualityLabelKey)(e.quality)),exportMenuOpen:e.exportMenuOpen,onToggleExportMenu:e.onToggleExportMenu,snapshotBusy:e.snapshotBusy,exportMenuLabel:s('v2.exportActions.title')}),(0,G.jsx)(b.HeatmapBar,{bins:eo,cursorFraction:yt,eventMarkers:to,coverage:xt,dayStartMs:He.from,dayEndMs:He.to,onSeekFraction:Nt,onScrubStart:Ut,onScrubFraction:Yt,onScrubEnd:Qt}),We?(0,G.jsxs)(o.default,{style:[Q.livePill,{backgroundColor:`${Y.live}26`}],children:[(0,G.jsx)(o.default,{style:[Q.liveDot,{backgroundColor:Y.live}]}),(0,G.jsx)(n.default,{style:[Q.liveText,{color:Y.live}],children:s('v2.theater.live')})]}):(0,G.jsxs)(l.default,{style:[Q.goLivePill,{backgroundColor:Y.danger}],onPress:Wt,accessibilityRole:"button",accessibilityLabel:s('v2.theater.goToLive'),children:[(0,G.jsx)(d.ArrowUp,{size:13,color:U}),(0,G.jsx)(n.default,{style:[Q.goLiveText,{color:U}],children:s('v2.theater.goToLive')})]}),(0,G.jsxs)(o.default,{style:Q.listWrap,onLayout:ge,children:[(0,G.jsx)(N.TimelineScroller,{ref:It,topMs:Fe,zoomIndex:te,dayWindow:{from:qe,to:He.to},clusters:Tt,activity:pt,showMotionLane:Xt,showAudioLane:$t,cardWidth:vt,viewportHeight:ce,indicatorOffsetPx:fe,isLive:We,onScroll:Ft,onClusterPress:_t,onClusterOpenDetail:Kt,clusterLabel:Ae,eventKinds:De.data}),ce>0?(0,G.jsxs)(o.default,{style:[Q.indicator,{top:fe}],pointerEvents:"none",children:[(0,G.jsx)(o.default,{style:[Q.indicatorLine,{backgroundColor:We?Y.live:Y.danger}]}),(0,G.jsx)(o.default,{style:[Q.indicatorPill,{backgroundColor:We?Y.live:Y.danger}],children:(0,G.jsx)(n.default,{style:[Q.indicatorLabel,h.TABULAR,{color:U}],children:We?s('v2.theater.live'):no})})]}):null,Pe?(0,G.jsx)(C.TimelineFilterPanel,{filter:ye,onToggleKind:je,classes:mt,classFilter:Ie,onToggleClass:ze,onReset:Oe,eventKinds:De.data,bottomInset:X.bottom+V}):null,(0,G.jsx)(M.TimelineFabControls,{onZoomIn:ie,onZoomOut:ae,onFilter:Re,onZoneFilter:null!==Be?e.onClearZone:e.onRequestZoneDraw,onPickCamera:e.onPickCamera,canZoomIn:ne,canZoomOut:re,filterActive:Le,filterOpen:Pe,zoneActive:null!==Be,bottomInset:X.bottom})]}),(0,G.jsx)(O.DatePickerModal,{visible:Xe,monthAnchorMs:Je,selectedDayMs:Ze,daysSet:nt??new Set,nowMs:$,onChangeMonth:ct,onPick:lt,onClose:()=>$e(!1)}),(0,G.jsx)(H.ClusterDetailModal,{deviceId:e.deviceId,cluster:Pt,onSeek:Zt,onClose:()=>kt(null),seekAvailable:null===Pt||'absent'!==(0,k.recordingKnownAt)(xt,He.from,He.to,Pt.representative.timestamp)})]})}),Q=s.default.create({container:{flex:1},livePill:{flexDirection:'row',alignItems:'center',justifyContent:'center',gap:5,paddingVertical:5},liveDot:{width:6,height:6,borderRadius:3},liveText:{fontSize:11,fontWeight:'700'},goLivePill:{flexDirection:'row',alignItems:'center',justifyContent:'center',gap:5,paddingVertical:5},goLiveText:{fontSize:11,fontWeight:'700'},listWrap:{flex:1,position:'relative'},indicator:{position:'absolute',left:0,right:0,flexDirection:'row',alignItems:'center',paddingLeft:h.SPACING.md},indicatorLine:{position:'absolute',left:0,right:0,height:1.5},indicatorPill:{paddingHorizontal:h.SPACING.sm,paddingVertical:1,borderRadius:4},indicatorLabel:{fontSize:10,fontWeight:'700',letterSpacing:.3},drawerHandle:{position:'absolute',left:0,top:'50%',marginTop:-16,width:16,height:32,borderTopRightRadius:8,borderBottomRightRadius:8,borderWidth:1,borderLeftWidth:0,alignItems:'center',justifyContent:'center'},scrollIndicatorTrack:{position:'absolute',right:2,top:h.SPACING.lg,bottom:h.SPACING.lg,width:3,alignItems:'center'},scrollIndicatorThumb:{width:3,height:48,borderRadius:2,opacity:.7}})},3504,[17,20,112,33,252,786,466,813,2587,2589,3505,3461,3506,3508,3509,3142,3510,3507,3511,3512,3159,3160,2705,3231,3501,3168,3169,3139,3513,3514,3515,3177,3132,3516,3237,3517,3519,3520,3522,10]);
15926
15926
  __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,"TimelineToolbarInline",{enumerable:!0,get:function(){return b}});var o=r(d[0]),n=r(d[1]),t=e(r(d[2])),l=e(r(d[3])),s=e(r(d[4])),u=e(r(d[5])),c=e(r(d[6])),p=r(d[7]),f=r(d[8]),y=r(d[9]),x=r(d[10]),h=r(d[11]);const b=(0,n.memo)(function(e){const n=(0,o.c)(109),{t:u}=(0,p.useTranslation)(),{colors:x}=(0,y.useTheme)();let b;n[0]!==x.primary?(b=e=>[P.iconBtn,{backgroundColor:e?x.primary:"transparent"}],n[0]=x.primary,n[1]=b):b=n[1];const O=b;let j;n[2]!==x.foregroundMuted||n[3]!==x.primaryForeground?(j=e=>e?x.primaryForeground:x.foregroundMuted,n[2]=x.foregroundMuted,n[3]=x.primaryForeground,n[4]=j):j=n[4];const z=j;let S,D,M,T,v,C,k,I,B,L,A;n[5]!==x.background||n[6]!==x.border?(S=[P.container,{backgroundColor:x.background,borderBottomColor:x.border}],n[5]=x.background,n[6]=x.border,n[7]=S):S=n[7],n[8]!==x.foreground||n[9]!==e.hideBack||n[10]!==e.onBack||n[11]!==u?(D=e.hideBack?null:(0,h.jsx)(s.default,{style:P.backBtn,onPress:e.onBack,hitSlop:6,accessibilityLabel:u("v2.common.back"),children:(0,h.jsx)(f.ArrowLeft,{size:18,color:x.foreground})}),n[8]=x.foreground,n[9]=e.hideBack,n[10]=e.onBack,n[11]=u,n[12]=D):D=n[12],n[13]!==x.foregroundMuted?(M=(0,h.jsx)(f.ChevronLeft,{size:16,color:x.foregroundMuted}),n[13]=x.foregroundMuted,n[14]=M):M=n[14],n[15]!==e.onPrevDay||n[16]!==M?(T=(0,h.jsx)(s.default,{style:P.dateArrow,onPress:e.onPrevDay,hitSlop:6,children:M}),n[15]=e.onPrevDay,n[16]=M,n[17]=T):T=n[17],n[18]!==x.surface?(v=[P.datePill,{backgroundColor:x.surface}],n[18]=x.surface,n[19]=v):v=n[19],n[20]!==x.foregroundSubtle?(C=(0,h.jsx)(f.Calendar,{size:12,color:x.foregroundSubtle}),n[20]=x.foregroundSubtle,n[21]=C):C=n[21],n[22]!==x.foreground?(k=[P.dateText,{color:x.foreground}],n[22]=x.foreground,n[23]=k):k=n[23],n[24]!==e.dateLabel||n[25]!==k?(I=(0,h.jsx)(l.default,{style:k,children:e.dateLabel}),n[24]=e.dateLabel,n[25]=k,n[26]=I):I=n[26],n[27]!==x.foregroundSubtle?(B=(0,h.jsx)(f.ChevronDown,{size:10,color:x.foregroundSubtle}),n[27]=x.foregroundSubtle,n[28]=B):B=n[28],n[29]!==B||n[30]!==v||n[31]!==C||n[32]!==I?(L=(0,h.jsxs)(t.default,{style:v,children:[C,I,B]}),n[29]=B,n[30]=v,n[31]=C,n[32]=I,n[33]=L):L=n[33],n[34]!==e.onOpenDatePicker||n[35]!==L?(A=(0,h.jsx)(s.default,{onPress:e.onOpenDatePicker,children:L}),n[34]=e.onOpenDatePicker,n[35]=L,n[36]=A):A=n[36];const q=e.nextDayDisabled?x.foregroundSubtle:x.foregroundMuted;let w,N,G,_,R,E;n[37]!==q?(w=(0,h.jsx)(f.ChevronRight,{size:16,color:q}),n[37]=q,n[38]=w):w=n[38],n[39]!==e.nextDayDisabled||n[40]!==e.onNextDay||n[41]!==w?(N=(0,h.jsx)(s.default,{style:P.dateArrow,onPress:e.onNextDay,disabled:e.nextDayDisabled,hitSlop:6,children:w}),n[39]=e.nextDayDisabled,n[40]=e.onNextDay,n[41]=w,n[42]=N):N=n[42],n[43]===Symbol.for("react.memo_cache_sentinel")?(G=(0,h.jsx)(t.default,{style:P.spacer}),n[43]=G):G=n[43],n[44]!==O||n[45]!==z||n[46]!==e.exportMenuLabel||n[47]!==e.exportMenuOpen||n[48]!==e.onToggleExportMenu||n[49]!==e.snapshotBusy?(_=e.onToggleExportMenu?(0,h.jsx)(s.default,{style:O(e.exportMenuOpen),onPress:e.onToggleExportMenu,hitSlop:6,accessibilityLabel:e.exportMenuLabel,children:e.snapshotBusy?(0,h.jsx)(c.default,{size:"small",color:z(e.exportMenuOpen)}):(0,h.jsx)(f.Camera,{size:14,color:z(e.exportMenuOpen)})}):null,n[44]=O,n[45]=z,n[46]=e.exportMenuLabel,n[47]=e.exportMenuOpen,n[48]=e.onToggleExportMenu,n[49]=e.snapshotBusy,n[50]=_):_=n[50],n[51]!==O||n[52]!==z||n[53]!==e.hasPtz||n[54]!==e.onTogglePtz||n[55]!==e.ptzOpen?(R=e.hasPtz&&e.onTogglePtz?(0,h.jsx)(s.default,{style:O(e.ptzOpen),onPress:e.onTogglePtz,hitSlop:6,children:(0,h.jsx)(f.Move,{size:14,color:z(e.ptzOpen)})}):null,n[51]=O,n[52]=z,n[53]=e.hasPtz,n[54]=e.onTogglePtz,n[55]=e.ptzOpen,n[56]=R):R=n[56],n[57]!==O||n[58]!==e.devicesOpen?(E=O(e.devicesOpen),n[57]=O,n[58]=e.devicesOpen,n[59]=E):E=n[59];const W=e.onToggleDevices;let F,H,Q,U;n[60]!==z||n[61]!==e.devicesOpen?(F=z(e.devicesOpen),n[60]=z,n[61]=e.devicesOpen,n[62]=F):F=n[62],n[63]!==F?(H=(0,h.jsx)(f.LayoutGrid,{size:14,color:F}),n[63]=F,n[64]=H):H=n[64],n[65]!==e.onToggleDevices||n[66]!==E||n[67]!==H?(Q=(0,h.jsx)(s.default,{style:E,onPress:W,hitSlop:6,children:H}),n[65]=e.onToggleDevices,n[66]=E,n[67]=H,n[68]=Q):Q=n[68],n[69]!==O||n[70]!==e.menuOpen?(U=O(e.menuOpen),n[69]=O,n[70]=e.menuOpen,n[71]=U):U=n[71];const V=e.onToggleMenu;let J,K,X,Y;n[72]!==z||n[73]!==e.menuOpen?(J=z(e.menuOpen),n[72]=z,n[73]=e.menuOpen,n[74]=J):J=n[74],n[75]!==J?(K=(0,h.jsx)(f.List,{size:14,color:J}),n[75]=J,n[76]=K):K=n[76],n[77]!==e.onToggleMenu||n[78]!==U||n[79]!==K?(X=(0,h.jsx)(s.default,{style:U,onPress:V,hitSlop:6,children:K}),n[77]=e.onToggleMenu,n[78]=U,n[79]=K,n[80]=X):X=n[80],n[81]!==O||n[82]!==e.qualityOpen?(Y=O(e.qualityOpen),n[81]=O,n[82]=e.qualityOpen,n[83]=Y):Y=n[83];const Z=e.onToggleQuality;let $,ee,oe,ne,te,re;return n[84]!==z||n[85]!==e.qualityOpen?($=z(e.qualityOpen),n[84]=z,n[85]=e.qualityOpen,n[86]=$):$=n[86],n[87]!==$?(ee=[P.qualityText,{color:$}],n[87]=$,n[88]=ee):ee=n[88],n[89]!==e.qualityLabel||n[90]!==ee?(oe=(0,h.jsx)(l.default,{style:ee,children:e.qualityLabel}),n[89]=e.qualityLabel,n[90]=ee,n[91]=oe):oe=n[91],n[92]!==e.onToggleQuality||n[93]!==Y||n[94]!==oe?(ne=(0,h.jsx)(s.default,{style:Y,onPress:Z,hitSlop:6,children:oe}),n[92]=e.onToggleQuality,n[93]=Y,n[94]=oe,n[95]=ne):ne=n[95],n[96]!==A||n[97]!==N||n[98]!==_||n[99]!==R||n[100]!==Q||n[101]!==X||n[102]!==D||n[103]!==ne||n[104]!==T?(te=(0,h.jsxs)(t.default,{style:P.row,children:[D,T,A,N,G,_,R,Q,X,ne]}),n[96]=A,n[97]=N,n[98]=_,n[99]=R,n[100]=Q,n[101]=X,n[102]=D,n[103]=ne,n[104]=T,n[105]=te):te=n[105],n[106]!==S||n[107]!==te?(re=(0,h.jsx)(t.default,{style:S,children:te}),n[106]=S,n[107]=te,n[108]=re):re=n[108],re}),P=u.default.create({container:{borderBottomWidth:1,zIndex:20},row:{flexDirection:'row',alignItems:'center',gap:x.SPACING.xs,paddingHorizontal:x.SPACING.md,paddingVertical:x.SPACING.sm+2},backBtn:{width:30,height:30,borderRadius:15,alignItems:'center',justifyContent:'center'},dateArrow:{width:28,height:28,borderRadius:14,alignItems:'center',justifyContent:'center'},datePill:{flexDirection:'row',alignItems:'center',gap:x.SPACING.sm,paddingHorizontal:x.SPACING.md,paddingVertical:x.SPACING.xs+2,borderRadius:x.RADIUS.lg},dateText:{fontSize:12,fontWeight:'600'},spacer:{flex:1},iconBtn:{minWidth:30,height:30,paddingHorizontal:x.SPACING.sm,borderRadius:x.RADIUS.lg,alignItems:'center',justifyContent:'center'},qualityText:{fontSize:10,fontWeight:'700'}})},3505,[15,17,20,112,252,33,240,786,813,2587,2589,10]);
15927
15927
  __d(function(g,_r,_i,_a,_m,_e,d){"use strict";function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"HeatmapBar",{enumerable:!0,get:function(){return p}});var e=_r(d[0]),n=_r(d[1]),o=t(_r(d[2])),r=t(_r(d[3])),a=_r(d[4]),i=_r(d[5]),c=_r(d[6]),s=_r(d[7]),l=_r(d[8]);function u(t,e,n){const o=n-e;if(o<=0)return[];const r=[];for(const a of t){const t=Math.max(a.startMs,e),i=Math.min(a.endMs,n);i<=t||r.push({leftPct:(t-e)/o*100,widthPct:(i-t)/o*100})}return r}function f(t){const e=t.length;if(0===e)return[];const n=[];let o=-1;for(let r=0;r<e;r++){const a=t[r].recorded;a&&o<0&&(o=r);if((!a||r===e-1)&&o>=0){const t=a?r:r-1;n.push({leftPct:o/e*100,widthPct:(t-o+1)/e*100}),o=-1}}return n}const p=(0,n.memo)(function(t){const r=(0,e.c)(45),{bins:c,cursorFraction:p,eventMarkers:v,coverage:y,dayStartMs:M,dayEndMs:x,onSeekFraction:R,onScrubStart:S,onScrubFraction:_,onScrubEnd:E}=t,{colors:k}=(0,a.useTheme)(),j=(0,n.useRef)(0),C=(0,n.useRef)(0),O=(0,n.useRef)(!1),w=!(!R&&!_);let P;t:{if(y&&void 0!==M&&void 0!==x){let t;r[0]!==y||r[1]!==x||r[2]!==M?(t=u(y,M,x),r[0]=y,r[1]=x,r[2]=M,r[3]=t):t=r[3],P=t;break t}let t;r[4]!==c?(t=f(c),r[4]=c,r[5]=t):t=r[5],P=t}const F=P;let H;r[6]===Symbol.for("react.memo_cache_sentinel")?(H=t=>{j.current=t.nativeEvent.layout.width},r[6]=H):H=r[6];const L=H;let X;r[7]===Symbol.for("react.memo_cache_sentinel")?(X=t=>(0,i.pointerFraction)(t.nativeEvent.locationX,j.current),r[7]=X):X=r[7];const $=X;let B;r[8]!==w?(B=t=>{C.current=t.nativeEvent.locationX,O.current=!1,s.log.debug("heatmap","grant",{interactive:w,x:t.nativeEvent.locationX})},r[8]=w,r[9]=B):B=r[9];const I=B;let z;r[10]!==_||r[11]!==S?(z=t=>{if(!O.current&&Math.abs(t.nativeEvent.locationX-C.current)>8&&(O.current=!0,S?.()),!O.current)return;const e=$(t);null!==e&&_?.(e)},r[10]=_,r[11]=S,r[12]=z):z=r[12];const D=z;let T;r[13]!==E||r[14]!==R?(T=t=>{const e=$(t);s.log.debug("heatmap","release",{moved:O.current,fraction:e}),null!==e&&(O.current?E?.(e):R?.(e))},r[13]=E,r[14]=R,r[15]=T):T=r[15];const W=T;let A,G,N,U,q,J;if(r[16]!==w?(A=()=>w,G=()=>w,r[16]=w,r[17]=A,r[18]=G):(A=r[17],G=r[18]),r[19]!==k.border||r[20]!==k.surface?(N=[b.bar,{backgroundColor:k.surface,borderBottomColor:k.border}],r[19]=k.border,r[20]=k.surface,r[21]=N):N=r[21],r[22]!==k.danger||r[23]!==F){let t;r[25]!==k.danger?(t=(t,e)=>(0,l.jsx)(o.default,{pointerEvents:"none",style:[b.recording,{left:`${t.leftPct}%`,width:`${t.widthPct}%`,backgroundColor:k.danger}]},`rec-${e}`),r[25]=k.danger,r[26]=t):t=r[26],U=F.map(t),r[22]=k.danger,r[23]=F,r[24]=U}else U=r[24];r[27]!==c?(q=c.map(m),r[27]=c,r[28]=q):q=r[28],r[29]!==v?(J=v?.map(h),r[29]=v,r[30]=J):J=r[30];const K=100*p+"%";let Q,V;return r[31]!==k.primary||r[32]!==K?(Q=(0,l.jsx)(o.default,{pointerEvents:"none",style:[b.cursor,{left:K,backgroundColor:k.primary}]}),r[31]=k.primary,r[32]=K,r[33]=Q):Q=r[33],r[34]!==I||r[35]!==D||r[36]!==W||r[37]!==U||r[38]!==q||r[39]!==J||r[40]!==Q||r[41]!==A||r[42]!==G||r[43]!==N?(V=(0,l.jsxs)(o.default,{onLayout:L,onStartShouldSetResponder:A,onMoveShouldSetResponder:G,onResponderGrant:I,onResponderMove:D,onResponderRelease:W,style:N,children:[U,q,J,Q]}),r[34]=I,r[35]=D,r[36]=W,r[37]=U,r[38]=q,r[39]=J,r[40]=Q,r[41]=A,r[42]=G,r[43]=N,r[44]=V):V=r[44],V}),b=r.default.create({bar:{flexDirection:'row',height:28,borderBottomWidth:1,alignItems:'flex-end',paddingHorizontal:2},bin:{flex:1,height:'100%',justifyContent:'flex-end',paddingHorizontal:.5},recording:{position:'absolute',top:0,bottom:0,minWidth:2,opacity:.15},fill:{borderRadius:1,minHeight:2},cursor:{position:'absolute',top:0,bottom:0,width:2,opacity:.85},eventMarker:{position:'absolute',top:1,bottom:1,width:2,marginLeft:-1,borderRadius:1,opacity:.95}});function m(t,e){const n=t.audio>0,r=n?t.audio:t.motion,a=t.motion>0||n,i=n?c.AUDIO_COLOR:c.MOTION_COLOR;return(0,l.jsx)(o.default,{pointerEvents:"none",style:b.bin,children:(0,l.jsx)(o.default,{style:[b.fill,{height:`${a?Math.max(15,100*r):0}%`,backgroundColor:a?i:"transparent",opacity:a?.5+.5*r:0}]})},e)}function h(t){return(0,l.jsx)(o.default,{pointerEvents:"none",style:[b.eventMarker,{left:100*t.fraction+"%",backgroundColor:t.color}]},t.id)}},3506,[15,17,20,33,2587,3507,3231,2705,10]);
15928
15928
  __d(function(g,r,i,a,m,e,d){"use strict";function n(n){return Math.max(0,Math.min(1,n))}Object.defineProperty(e,'__esModule',{value:!0}),e.dayFractionToEpoch=function(t,o,u){const c=u-o;return Math.round(o+n(t)*c)},e.epochToDayFraction=function(t,o,u){const c=u-o;return c<=0?0:n((t-o)/c)},e.pointerFraction=function(t,o){return!Number.isFinite(t)||!Number.isFinite(o)||o<=0?null:n(t/o)}},3507,[]);
15929
- __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,"TimelineFabControls",{enumerable:!0,get:function(){return y}});var o=r(d[0]),t=r(d[1]),n=e(r(d[2])),s=e(r(d[3])),l=e(r(d[4])),c=r(d[5]),u=r(d[6]),b=r(d[7]),f=r(d[8]);const y=(0,t.memo)(function(e){const t=(0,o.c)(72),{onZoomIn:l,onZoomOut:y,onFilter:j,onZoneFilter:x,onPickCamera:p,canZoomIn:C,canZoomOut:S,filterActive:v,filterOpen:P,zoneActive:w,bottomInset:I}=e,z=void 0===C||C,F=void 0===S||S,k=void 0!==v&&v,D=void 0!==P&&P,O=void 0!==w&&w,_=void 0===I?0:I,{colors:R}=(0,u.useTheme)();let Z;t[0]!==R.border||t[1]!==R.surface?(Z={backgroundColor:R.surface,borderColor:R.border},t[0]=R.border,t[1]=R.surface,t[2]=Z):Z=t[2];const A=Z,M=k||D,G=b.SPACING.lg+_;let N;t[3]!==G?(N=[h.stack,{bottom:G}],t[3]=G,t[4]=N):N=t[4];const T=!z&&h.fabDisabled;let E;t[5]!==A||t[6]!==T?(E=[h.fab,A,T],t[5]=A,t[6]=T,t[7]=E):E=t[7];const V=!z,W=!z;let q;t[8]!==W?(q={disabled:W},t[8]=W,t[9]=q):q=t[9];const B=z?R.foreground:R.foregroundDisabled;let H,J;t[10]!==B?(H=(0,f.jsx)(c.Plus,{size:18,color:B}),t[10]=B,t[11]=H):H=t[11],t[12]!==l||t[13]!==E||t[14]!==V||t[15]!==q||t[16]!==H?(J=(0,f.jsx)(s.default,{style:E,onPress:l,disabled:V,hitSlop:4,accessibilityRole:"button",accessibilityState:q,children:H}),t[12]=l,t[13]=E,t[14]=V,t[15]=q,t[16]=H,t[17]=J):J=t[17];const K=!F&&h.fabDisabled;let L;t[18]!==A||t[19]!==K?(L=[h.fab,A,K],t[18]=A,t[19]=K,t[20]=L):L=t[20];const Q=!F,U=!F;let X;t[21]!==U?(X={disabled:U},t[21]=U,t[22]=X):X=t[22];const Y=F?R.foreground:R.foregroundDisabled;let $,ee,oe,te;t[23]!==Y?($=(0,f.jsx)(c.Minus,{size:18,color:Y}),t[23]=Y,t[24]=$):$=t[24],t[25]!==y||t[26]!==L||t[27]!==Q||t[28]!==X||t[29]!==$?(ee=(0,f.jsx)(s.default,{style:L,onPress:y,disabled:Q,hitSlop:4,accessibilityRole:"button",accessibilityState:X,children:$}),t[25]=y,t[26]=L,t[27]=Q,t[28]=X,t[29]=$,t[30]=ee):ee=t[30],t[31]!==A||t[32]!==R.warning||t[33]!==M?(oe=[h.fab,M?{backgroundColor:R.warning,borderColor:R.warning}:A],t[31]=A,t[32]=R.warning,t[33]=M,t[34]=oe):oe=t[34],t[35]!==M?(te={selected:M},t[35]=M,t[36]=te):te=t[36];const re=M?R.primaryForeground:R.foreground;let ne,ie,se,le;t[37]!==re?(ne=(0,f.jsx)(c.Filter,{size:14,color:re}),t[37]=re,t[38]=ne):ne=t[38],t[39]!==j||t[40]!==oe||t[41]!==te||t[42]!==ne?(ie=(0,f.jsx)(s.default,{style:oe,onPress:j,hitSlop:4,accessibilityRole:"button",accessibilityState:te,children:ne}),t[39]=j,t[40]=oe,t[41]=te,t[42]=ne,t[43]=ie):ie=t[43],t[44]!==A||t[45]!==R.warning||t[46]!==O?(se=[h.fab,O?{backgroundColor:R.warning,borderColor:R.warning}:A],t[44]=A,t[45]=R.warning,t[46]=O,t[47]=se):se=t[47],t[48]!==O?(le={selected:O},t[48]=O,t[49]=le):le=t[49];const ae=O?R.primaryForeground:R.foreground;let ce,de,ue,be,fe,ge;return t[50]!==ae?(ce=(0,f.jsx)(c.Scan,{size:14,color:ae}),t[50]=ae,t[51]=ce):ce=t[51],t[52]!==x||t[53]!==se||t[54]!==le||t[55]!==ce?(de=(0,f.jsx)(s.default,{style:se,onPress:x,hitSlop:4,accessibilityRole:"button",accessibilityState:le,children:ce}),t[52]=x,t[53]=se,t[54]=le,t[55]=ce,t[56]=de):de=t[56],t[57]!==A?(ue=[h.fab,A],t[57]=A,t[58]=ue):ue=t[58],t[59]!==R.foreground?(be=(0,f.jsx)(c.Video,{size:14,color:R.foreground}),t[59]=R.foreground,t[60]=be):be=t[60],t[61]!==p||t[62]!==ue||t[63]!==be?(fe=(0,f.jsx)(s.default,{style:ue,onPress:p,hitSlop:4,children:be}),t[61]=p,t[62]=ue,t[63]=be,t[64]=fe):fe=t[64],t[65]!==J||t[66]!==ee||t[67]!==ie||t[68]!==de||t[69]!==fe||t[70]!==N?(ge=(0,f.jsx)(n.default,{style:h.container,pointerEvents:"box-none",children:(0,f.jsxs)(n.default,{style:N,children:[J,ee,ie,de,fe]})}),t[65]=J,t[66]=ee,t[67]=ie,t[68]=de,t[69]=fe,t[70]=N,t[71]=ge):ge=t[71],ge}),h=l.default.create({container:Object.assign({},l.default.absoluteFill,{zIndex:10}),stack:{position:'absolute',left:0,right:0,flexDirection:'row',justifyContent:'center',alignItems:'center',gap:b.SPACING.md},fab:{width:36,height:36,borderRadius:18,borderWidth:1,alignItems:'center',justifyContent:'center'},fabDisabled:{opacity:.4}})},3508,[15,17,20,252,33,813,2587,2589,10]);
15929
+ __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,"TimelineFabControls",{enumerable:!0,get:function(){return y}});var o=r(d[0]),t=r(d[1]),n=e(r(d[2])),s=e(r(d[3])),l=e(r(d[4])),c=r(d[5]),u=r(d[6]),b=r(d[7]),f=r(d[8]);const y=(0,t.memo)(function(e){const t=(0,o.c)(72),{onZoomIn:l,onZoomOut:y,onFilter:j,onZoneFilter:x,onPickCamera:p,canZoomIn:C,canZoomOut:S,filterActive:v,filterOpen:P,zoneActive:w,bottomInset:I}=e,z=void 0===C||C,F=void 0===S||S,k=void 0!==v&&v,D=void 0!==P&&P,O=void 0!==w&&w,_=void 0===I?0:I,{colors:R}=(0,u.useTheme)();let Z;t[0]!==R.border||t[1]!==R.surface?(Z={backgroundColor:R.surface,borderColor:R.border},t[0]=R.border,t[1]=R.surface,t[2]=Z):Z=t[2];const A=Z,M=k||D,G=b.SPACING.lg+_;let N;t[3]!==G?(N=[h.stack,{bottom:G}],t[3]=G,t[4]=N):N=t[4];const T=!z&&h.fabDisabled;let E;t[5]!==A||t[6]!==T?(E=[h.fab,A,T],t[5]=A,t[6]=T,t[7]=E):E=t[7];const V=!z,W=!z;let q;t[8]!==W?(q={disabled:W},t[8]=W,t[9]=q):q=t[9];const B=z?R.foreground:R.foregroundDisabled;let H,J;t[10]!==B?(H=(0,f.jsx)(c.Plus,{size:18,color:B}),t[10]=B,t[11]=H):H=t[11],t[12]!==l||t[13]!==E||t[14]!==V||t[15]!==q||t[16]!==H?(J=(0,f.jsx)(s.default,{style:E,onPress:l,disabled:V,hitSlop:4,accessibilityRole:"button",accessibilityState:q,children:H}),t[12]=l,t[13]=E,t[14]=V,t[15]=q,t[16]=H,t[17]=J):J=t[17];const K=!F&&h.fabDisabled;let L;t[18]!==A||t[19]!==K?(L=[h.fab,A,K],t[18]=A,t[19]=K,t[20]=L):L=t[20];const Q=!F,U=!F;let X;t[21]!==U?(X={disabled:U},t[21]=U,t[22]=X):X=t[22];const Y=F?R.foreground:R.foregroundDisabled;let $,ee,oe,te;t[23]!==Y?($=(0,f.jsx)(c.Minus,{size:18,color:Y}),t[23]=Y,t[24]=$):$=t[24],t[25]!==y||t[26]!==L||t[27]!==Q||t[28]!==X||t[29]!==$?(ee=(0,f.jsx)(s.default,{style:L,onPress:y,disabled:Q,hitSlop:4,accessibilityRole:"button",accessibilityState:X,children:$}),t[25]=y,t[26]=L,t[27]=Q,t[28]=X,t[29]=$,t[30]=ee):ee=t[30],t[31]!==A||t[32]!==R.warning||t[33]!==M?(oe=[h.fab,M?{backgroundColor:R.warning,borderColor:R.warning}:A],t[31]=A,t[32]=R.warning,t[33]=M,t[34]=oe):oe=t[34],t[35]!==M?(te={selected:M},t[35]=M,t[36]=te):te=t[36];const re=M?R.primaryForeground:R.foreground;let ne,ie,se,le;t[37]!==re?(ne=(0,f.jsx)(c.Filter,{size:14,color:re}),t[37]=re,t[38]=ne):ne=t[38],t[39]!==j||t[40]!==oe||t[41]!==te||t[42]!==ne?(ie=(0,f.jsx)(s.default,{style:oe,onPress:j,hitSlop:4,accessibilityRole:"button",accessibilityState:te,children:ne}),t[39]=j,t[40]=oe,t[41]=te,t[42]=ne,t[43]=ie):ie=t[43],t[44]!==A||t[45]!==R.warning||t[46]!==O?(se=[h.fab,O?{backgroundColor:R.warning,borderColor:R.warning}:A],t[44]=A,t[45]=R.warning,t[46]=O,t[47]=se):se=t[47],t[48]!==O?(le={selected:O},t[48]=O,t[49]=le):le=t[49];const ae=O?R.primaryForeground:R.foreground;let ce,de,ue,be,fe,ge;return t[50]!==ae?(ce=(0,f.jsx)(c.Scan,{size:14,color:ae}),t[50]=ae,t[51]=ce):ce=t[51],t[52]!==x||t[53]!==se||t[54]!==le||t[55]!==ce?(de=(0,f.jsx)(s.default,{style:se,onPress:x,hitSlop:4,accessibilityRole:"button",accessibilityState:le,children:ce}),t[52]=x,t[53]=se,t[54]=le,t[55]=ce,t[56]=de):de=t[56],t[57]!==A?(ue=[h.fab,A],t[57]=A,t[58]=ue):ue=t[58],t[59]!==R.foreground?(be=(0,f.jsx)(c.Video,{size:14,color:R.foreground}),t[59]=R.foreground,t[60]=be):be=t[60],t[61]!==p||t[62]!==ue||t[63]!==be?(fe=(0,f.jsx)(s.default,{style:ue,onPress:p,hitSlop:4,children:be}),t[61]=p,t[62]=ue,t[63]=be,t[64]=fe):fe=t[64],t[65]!==J||t[66]!==ee||t[67]!==ie||t[68]!==de||t[69]!==fe||t[70]!==N?(ge=(0,f.jsx)(n.default,{style:h.container,pointerEvents:"box-none",children:(0,f.jsxs)(n.default,{style:N,children:[J,ee,ie,de,fe]})}),t[65]=J,t[66]=ee,t[67]=ie,t[68]=de,t[69]=fe,t[70]=N,t[71]=ge):ge=t[71],ge}),h=l.default.create({container:Object.assign({},l.default.absoluteFill,{zIndex:12}),stack:{position:'absolute',left:0,right:0,flexDirection:'row',justifyContent:'center',alignItems:'center',gap:b.SPACING.md},fab:{width:36,height:36,borderRadius:18,borderWidth:1,alignItems:'center',justifyContent:'center'},fabDisabled:{opacity:.4}})},3508,[15,17,20,252,33,813,2587,2589,10]);
15930
15930
  __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,"TimelineFilterPanel",{enumerable:!0,get:function(){return v}});var o=r(_d[0]),t=r(_d[1]),d=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]),p=r(_d[10]),h=r(_d[11]),m=r(_d[12]),x=r(_d[13]),y=r(_d[14]);const C={motion:p.MOTION_COLOR,audio:p.AUDIO_COLOR},v=(0,t.memo)(function(e){const t=(0,o.c)(61),{filter:s,onToggleKind:b,classes:p,classFilter:v,onToggleClass:S,onReset:M,eventKinds:j,bottomInset:A}=e,{t:k}=(0,u.useTranslation)(),{colors:P}=(0,f.useTheme)();let E;t[0]!==s?(E=(0,x.isFilterAll)(s),t[0]=s,t[1]=E):E=t[1];const R=E,_=R&&0===v.size;let O;if(t[2]!==j){O=new Map;for(const e of j??[])O.set(e.kind,e);t[2]=j,t[3]=O}else O=t[3];const T=O;let N,z;t[4]!==A||t[5]!==P.border||t[6]!==P.surface?(N=[I.panel,{bottom:A,backgroundColor:P.surface,borderColor:P.border}],t[4]=A,t[5]=P.border,t[6]=P.surface,t[7]=N):N=t[7],t[8]!==_?(z={selected:_},t[8]=_,t[9]=z):z=t[9];const F=_?P.primary:P.backgroundElevated,G=_?P.primary:P.border;let D;t[10]!==F||t[11]!==G?(D=[I.chip,{backgroundColor:F,borderColor:G}],t[10]=F,t[11]=G,t[12]=D):D=t[12];const L=_?P.primaryForeground:P.foregroundMuted;let K;t[13]!==L?(K=(0,y.jsx)(c.ListFilter,{size:13,color:L}),t[13]=L,t[14]=K):K=t[14];const w=_?P.primaryForeground:P.foregroundMuted;let W,U,$,V,B,H,q;if(t[15]!==w?(W=[I.chipText,{color:w}],t[15]=w,t[16]=W):W=t[16],t[17]!==k?(U=k("v2.theater.filterAll"),t[17]=k,t[18]=U):U=t[18],t[19]!==W||t[20]!==U?($=(0,y.jsx)(l.default,{style:W,children:U}),t[19]=W,t[20]=U,t[21]=$):$=t[21],t[22]!==M||t[23]!==$||t[24]!==z||t[25]!==D||t[26]!==K?(V=(0,y.jsxs)(n.default,{onPress:M,hitSlop:4,accessibilityRole:"button",accessibilityState:z,style:D,children:[K,$]}),t[22]=M,t[23]=$,t[24]=z,t[25]=D,t[26]=K,t[27]=V):V=t[27],t[28]!==P.backgroundElevated||t[29]!==P.border||t[30]!==P.foreground||t[31]!==P.foregroundMuted||t[32]!==s||t[33]!==R||t[34]!==b||t[35]!==k?(B=x.ALL_BAR_KINDS.map(e=>{const o=!R&&s.has(e),t="audio"===e?c.Volume2:c.Activity,d=C[e];return(0,y.jsxs)(n.default,{onPress:()=>b(e),hitSlop:4,accessibilityRole:"button",accessibilityState:{selected:o},style:[I.chip,{backgroundColor:o?`${d}26`:P.backgroundElevated,borderColor:o?d:P.border}],children:[(0,y.jsx)(t,{size:13,color:o?d:P.foregroundMuted}),(0,y.jsx)(l.default,{style:[I.chipText,{color:o?P.foreground:P.foregroundMuted}],children:k(`v2.theater.filter_${e}`)})]},e)}),t[28]=P.backgroundElevated,t[29]=P.border,t[30]=P.foreground,t[31]=P.foregroundMuted,t[32]=s,t[33]=R,t[34]=b,t[35]=k,t[36]=B):B=t[36],t[37]!==v||t[38]!==p||t[39]!==P.backgroundElevated||t[40]!==P.border||t[41]!==P.foreground||t[42]!==P.foregroundMuted||t[43]!==T||t[44]!==S||t[45]!==k){let e;t[47]!==v||t[48]!==P.backgroundElevated||t[49]!==P.border||t[50]!==P.foreground||t[51]!==P.foregroundMuted||t[52]!==T||t[53]!==S||t[54]!==k?(e=e=>{const o=v.has(e),t=T.get(e),d=t?.color??(0,h.getClassColor)(e),s=t?(0,m.resolveEventKindIcon)(t.iconId):null,u=t?(0,m.eventKindLabel)(t,k):e;return(0,y.jsxs)(n.default,{onPress:()=>S(e),hitSlop:4,accessibilityRole:"button",accessibilityState:{selected:o},style:[I.chip,{backgroundColor:o?`${d}26`:P.backgroundElevated,borderColor:o?d:P.border}],children:[s?(0,y.jsx)(s,{size:13,color:o?d:P.foregroundMuted}):null,(0,y.jsx)(l.default,{style:[I.chipText,{color:o?P.foreground:P.foregroundMuted}],children:u})]},e)},t[47]=v,t[48]=P.backgroundElevated,t[49]=P.border,t[50]=P.foreground,t[51]=P.foregroundMuted,t[52]=T,t[53]=S,t[54]=k,t[55]=e):e=t[55],H=p.map(e),t[37]=v,t[38]=p,t[39]=P.backgroundElevated,t[40]=P.border,t[41]=P.foreground,t[42]=P.foregroundMuted,t[43]=T,t[44]=S,t[45]=k,t[46]=H}else H=t[46];return t[56]!==V||t[57]!==B||t[58]!==H||t[59]!==N?(q=(0,y.jsx)(d.default,{style:I.container,pointerEvents:"box-none",children:(0,y.jsxs)(d.default,{style:N,children:[V,B,H]})}),t[56]=V,t[57]=B,t[58]=H,t[59]=N,t[60]=q):q=t[60],q}),I=s.default.create({container:Object.assign({},s.default.absoluteFill,{zIndex:11}),panel:{position:'absolute',left:b.SPACING.md,right:b.SPACING.md,flexDirection:'row',flexWrap:'wrap',justifyContent:'center',gap:b.SPACING.sm,padding:b.SPACING.md,borderWidth:1,borderRadius:b.RADIUS.xl},chip:{flexDirection:'row',alignItems:'center',gap:b.SPACING.xs+2,paddingHorizontal:b.SPACING.md,paddingVertical:b.SPACING.sm+1,borderRadius:b.RADIUS.lg,borderWidth:1},chipText:{fontSize:12,fontWeight:'600'}})},3509,[15,17,20,112,252,33,786,813,2587,2589,3231,3232,3170,3142,10]);
15931
15931
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.pxPerHour=n,e.offsetToEpoch=function(o,u,c){const f=o/n(c);return Math.round(u-f*t)},e.epochToOffset=function(o,u,c){const f=(u-o)/t;return Math.max(0,f*n(c))};var o=r(d[0]);const t=36e5;function n(t){return 60/o.ZOOM_LEVELS[(0,o.clampZoomIndex)(t)].rowMinutes*o.TIMELINE_ROW_HEIGHT}},3510,[3142]);
15932
15932
  __d(function(g,r,i,a,m,e,d){"use strict";function t(t){return Number.isFinite(t)?Math.min(100,Math.max(0,t)):0}Object.defineProperty(e,'__esModule',{value:!0}),e.indicatorOffsetPx=function(n,u){return!Number.isFinite(n)||n<=0?0:Math.round(n*t(u)/100)}},3511,[]);
@@ -15934,12 +15934,12 @@ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{v
15934
15934
  __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,"DatePickerModal",{enumerable:!0,get:function(){return p}});var t=r(d[0]),o=e(r(d[1])),n=e(r(d[2])),l=e(r(d[3])),i=e(r(d[4])),s=e(r(d[5])),c=r(d[6]),u=r(d[7]),h=r(d[8]),f=r(d[9]),y=r(d[10]),b=r(d[11]);const p=(0,t.memo)(function(e){const{t:s}=(0,c.useTranslation)(),{colors:f}=(0,h.useTheme)(),p=new Date(e.monthAnchorMs),j=(0,t.useMemo)(()=>(0,y.buildMonthGrid)(p.getFullYear(),p.getMonth(),e.nowMs),[p.getFullYear(),p.getMonth(),e.nowMs]),w=p.toLocaleDateString(void 0,{month:'long',year:'numeric'}),C=new Date(e.nowMs);return C.setHours(0,0,0,0),(0,b.jsx)(o.default,{visible:e.visible,transparent:!0,animationType:"fade",onRequestClose:e.onClose,children:(0,b.jsx)(i.default,{style:x.backdrop,onPress:e.onClose,children:(0,b.jsxs)(i.default,{style:[x.card,{backgroundColor:f.background,borderColor:f.border}],children:[(0,b.jsxs)(n.default,{style:x.header,children:[(0,b.jsx)(i.default,{style:x.navBtn,onPress:()=>e.onChangeMonth(-1),hitSlop:8,children:(0,b.jsx)(u.ChevronLeft,{size:18,color:f.foregroundMuted})}),(0,b.jsx)(l.default,{style:[x.title,{color:f.foreground}],children:w}),(0,b.jsx)(i.default,{style:x.navBtn,onPress:()=>e.onChangeMonth(1),hitSlop:8,children:(0,b.jsx)(u.ChevronRight,{size:18,color:f.foregroundMuted})})]}),(0,b.jsx)(n.default,{style:x.weekRow,children:['L','M','M','G','V','S','D'].map((e,t)=>(0,b.jsx)(l.default,{style:[x.weekday,{color:f.foregroundSubtle}],children:e},t))}),(0,b.jsx)(n.default,{style:x.grid,children:j.map(t=>{const o=e.daysSet.has(t.epoch),s=t.epoch===e.selectedDayMs,c=t.epoch===C.getTime();return(0,b.jsxs)(i.default,{style:[x.cell,s&&{backgroundColor:f.primary},!s&&c&&{borderColor:f.primary,borderWidth:1}],disabled:t.isFuture,onPress:()=>e.onPick(t.epoch),children:[(0,b.jsx)(l.default,{style:[x.cellText,{color:t.isFuture?f.foregroundSubtle:s?f.primaryForeground:t.inMonth?f.foreground:f.foregroundMuted}],children:new Date(t.epoch).getDate()}),o&&!s?(0,b.jsx)(n.default,{style:[x.dot,{backgroundColor:f.primary}]}):null]},t.epoch)})}),(0,b.jsx)(l.default,{style:[x.hint,{color:f.foregroundSubtle}],children:s('v2.theater.selectDate')})]})})})}),x=s.default.create({backdrop:{flex:1,backgroundColor:'rgba(0,0,0,0.5)',alignItems:'center',justifyContent:'center'},card:{width:280+2*f.SPACING.md,borderRadius:f.RADIUS.lg,borderWidth:1,padding:f.SPACING.md},header:{flexDirection:'row',alignItems:'center',justifyContent:'space-between',marginBottom:f.SPACING.sm},navBtn:{width:32,height:32,alignItems:'center',justifyContent:'center'},title:{fontSize:15,fontWeight:'700',textTransform:'capitalize'},weekRow:{flexDirection:'row'},weekday:{width:40,textAlign:'center',fontSize:11,fontWeight:'600'},grid:{flexDirection:'row',flexWrap:'wrap'},cell:{width:40,height:40,alignItems:'center',justifyContent:'center',borderRadius:f.RADIUS.md},cellText:{fontSize:13,fontWeight:'600'},dot:{width:4,height:4,borderRadius:2,marginTop:2},hint:{fontSize:11,textAlign:'center',marginTop:f.SPACING.sm}})},3513,[17,245,20,112,252,33,786,813,2587,2589,3514,10]);
15935
15935
  __d(function(g,r,_i,a,m,e,_d){"use strict";function t(t,n){return{fromMs:new Date(t,n,1,0,0,0,0).getTime(),toMs:new Date(t,n+1,1,0,0,0,0).getTime()}}Object.defineProperty(e,'__esModule',{value:!0}),e.monthBounds=t,e.monthBoundsForMs=function(n){const o=new Date(n);return t(o.getFullYear(),o.getMonth())},e.buildMonthGrid=function(t,n,o){const u=(new Date(t,n,1,0,0,0,0).getDay()+6)%7,s=new Date(o);s.setHours(0,0,0,0);const i=[];for(let o=0;o<42;o++){const c=new Date(t,n,1-u+o,0,0,0,0);i.push({epoch:c.getTime(),inMonth:c.getMonth()===n,isFuture:c.getTime()>s.getTime()})}return i}},3514,[]);
15936
15936
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.dayAtSameTime=function(t,n,o){const s=new Date(t),c=new Date(n);c.setHours(s.getHours(),s.getMinutes(),s.getSeconds(),s.getMilliseconds());const u=c.getTime();return u>o?o:u},e.dateLabel=function(n,o,s){const c=new Date(n);c.setHours(0,0,0,0);const u=new Date(o);u.setHours(0,0,0,0);const y=Math.round((u.getTime()-c.getTime())/t);return 0===y?s('v2.theater.today'):1===y?s('v2.theater.yesterday'):new Date(n).toLocaleDateString(void 0,{weekday:'short',day:'numeric',month:'short'})};const t=864e5},3515,[]);
15937
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.trackToTimelineEvent=p,e.timelineEventToTrackSummary=function(t,n,s=""){return Object.assign({trackId:t.trackId??t.id,deviceId:n,cameraName:s,className:t.className},void 0!==t.label?{label:t.label}:{},void 0!==t.importance?{importance:t.importance}:{},{firstSeen:t.timestamp,lastSeen:t.endTimestamp??t.timestamp,state:'idle',active:!1,zonesVisited:[],audioLabels:void 0!==t.audioLabels?[...t.audioLabels]:[],bestEventId:t.id})},e.useDeviceTracks=function(b,y,f){const k=(0,t.c)(13),{controller:T,state:I}=(0,s.useConnection)();let S;k[0]!==b||k[1]!==y||k[2]!==f?(S=["v2","analytics","device-tracks",b,y,f],k[0]=b,k[1]=y,k[2]=f,k[3]=S):S=k[3];const L="connected"===I;let h,N;k[4]!==T||k[5]!==b||k[6]!==y||k[7]!==f?(h=async()=>{const t=T.getSystem();if(!t)return[];const n=await(0,o.capQuery)(t.trpcClient,"pipelineAnalytics","listTracks",{deviceId:b,since:y,until:f,limit:v});if(!Array.isArray(n))return[];const s=[];for(const t of n){const n=(0,l.toTrackSummary)(t,"");null!==n&&s.push(p(n,(0,u.parsePositionBoxes)(t)))}return c.log.info("device-tracks","listTracks",{deviceId:b,count:s.length}),s},k[4]=T,k[5]=b,k[6]=y,k[7]=f,k[8]=h):h=k[8];k[9]!==S||k[10]!==L||k[11]!==h?(N={queryKey:S,enabled:L,staleTime:3e4,refetchInterval:3e4,queryFn:h},k[9]=S,k[10]=L,k[11]=h,k[12]=N):N=k[12];return(0,n.useQuery)(N)};var t=r(d[0]),n=r(d[1]),s=r(d[2]),c=r(d[3]),o=r(d[4]),l=r(d[5]),u=r(d[6]);const v=500;function p(t,n){return Object.assign({id:t.bestEventId,timestamp:t.firstSeen,endTimestamp:t.lastSeen,className:t.className,label:t.label,importance:t.importance,trackId:t.trackId},t.audioLabels.length>0?{audioLabels:t.audioLabels}:{},void 0!==n&&n.length>0?{positionBoxes:n}:{})}},3516,[15,3081,2594,2705,3162,3381,3501]);
15937
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.trackToTimelineEvent=p,e.timelineEventToTrackSummary=function(t,n,s=""){return Object.assign({trackId:t.trackId??t.id,deviceId:n,cameraName:s,className:t.className},void 0!==t.label?{label:t.label}:{},void 0!==t.importance?{importance:t.importance}:{},{firstSeen:t.timestamp,lastSeen:t.endTimestamp??t.timestamp,state:'idle',active:!1,zonesVisited:[],audioLabels:void 0!==t.audioLabels?[...t.audioLabels]:[],bestEventId:t.id})},e.useDeviceTracks=function(b,y,f){const k=(0,t.c)(13),{controller:T,state:I}=(0,s.useConnection)();let S;k[0]!==b||k[1]!==y||k[2]!==f?(S=["v2","analytics","device-tracks",b,y,f],k[0]=b,k[1]=y,k[2]=f,k[3]=S):S=k[3];const L="connected"===I;let h,N;k[4]!==T||k[5]!==b||k[6]!==y||k[7]!==f?(h=async()=>{const t=T.getSystem();if(!t)return[];const n=await(0,o.capQuery)(t.trpcClient,"pipelineAnalytics","listTracks",{deviceId:b,since:y,until:f,limit:v});if(!Array.isArray(n))return[];const s=[];for(const t of n){const n=(0,l.toTrackSummary)(t,"");null!==n&&s.push(p(n,(0,u.parsePositionBoxes)(t)))}return c.log.info("device-tracks","listTracks",{deviceId:b,count:s.length}),s},k[4]=T,k[5]=b,k[6]=y,k[7]=f,k[8]=h):h=k[8];k[9]!==S||k[10]!==L||k[11]!==h?(N={queryKey:S,enabled:L,staleTime:3e4,refetchInterval:3e4,queryFn:h},k[9]=S,k[10]=L,k[11]=h,k[12]=N):N=k[12];return(0,n.useQuery)(N)};var t=r(d[0]),n=r(d[1]),s=r(d[2]),c=r(d[3]),o=r(d[4]),l=r(d[5]),u=r(d[6]);const v=500;function p(t,n){return Object.assign({id:t.bestEventId,timestamp:t.firstSeen,endTimestamp:t.lastSeen,className:t.className,label:t.label,importance:t.importance,trackId:t.trackId},t.audioLabels.length>0?{audioLabels:t.audioLabels}:{},void 0!==n&&n.length>0?{positionBoxes:n}:{})}},3516,[15,3081,2594,2705,3162,3237,3501]);
15938
15938
  __d(function(g,_r,i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useTimelineActivity=function(f,M,p){const b=(0,t.c)(13),{controller:v,state:h}=(0,s.useConnection)();let A;b[0]!==f||b[1]!==M||b[2]!==p?(A=["v2","analytics","activity",f,M,p],b[0]=f,b[1]=M,b[2]=p,b[3]=A):A=b[3];const k="connected"===h;let R,E;b[4]!==v||b[5]!==f||b[6]!==M||b[7]!==p?(R=async()=>{const t=v.getSystem();if(!t)return r.log.warn("timeline-activity","no system (not connected)"),a;const n=t.trpcClient,s=(0,c.pickBucketMs)(M,p),b=Math.round(Math.abs(p-M)/s),[h,A,k]=await Promise.all([(0,o.capQuery)(n,"pipelineAnalytics","getEventDensity",{deviceId:f,since:M,until:p,bucketMs:s}),(0,o.capQuery)(n,"pipelineAnalytics","getAudioEvents",{deviceId:f,since:M,until:p,limit:1e3}),(0,o.capQuery)(n,"recording","getAvailability",{deviceId:f,fromMs:M,toMs:p})]),R=y(h),E=l(A),I=u(k),Q=(0,c.densityToMotionBuckets)(R,s),S=(0,c.audioEventsToBuckets)(E,M,s,b);return r.log.info("timeline-activity","fetched",{deviceId:f,densityRows:R.length,audioEvents:E.length,recordingRanges:I.length,bucketCount:b}),{recording:I,motion:Q,audio:S}},b[4]=v,b[5]=f,b[6]=M,b[7]=p,b[8]=R):R=b[8];b[9]!==A||b[10]!==k||b[11]!==R?(E={queryKey:A,enabled:k,staleTime:3e4,queryFn:R},b[9]=A,b[10]=k,b[11]=R,b[12]=E):E=b[12];return(0,n.useQuery)(E).data??a};var t=_r(d[0]),n=_r(d[1]),s=_r(d[2]),r=_r(d[3]),o=_r(d[4]),c=_r(d[5]);const a={recording:[],motion:[],audio:[]};function u(t){if(!(0,o.isRecord)(t)||!Array.isArray(t.ranges))return[];const n=[];for(const s of t.ranges)(0,o.isRecord)(s)&&'number'==typeof s.startMs&&'number'==typeof s.endMs&&s.endMs>s.startMs&&n.push({startMs:s.startMs,endMs:s.endMs});n.sort((t,n)=>t.startMs-n.startMs);const s=[];for(const t of n){const n=s[s.length-1];void 0!==n&&t.startMs<=n.endMs?t.endMs>n.endMs&&(s[s.length-1]={startMs:n.startMs,endMs:t.endMs}):s.push({startMs:t.startMs,endMs:t.endMs})}return s}function y(t){if(!Array.isArray(t))return[];const n=[];for(const s of t)(0,o.isRecord)(s)&&'number'==typeof s.bucketStart&&'number'==typeof s.motion&&n.push({bucketStart:s.bucketStart,motion:s.motion});return n}function l(t){if(!Array.isArray(t))return[];const n=[];for(const s of t)(0,o.isRecord)(s)&&'number'==typeof s.timestamp&&'number'==typeof s.dbfs&&n.push({timestamp:s.timestamp,dbfs:s.dbfs});return n}},3517,[15,3081,2594,2705,3162,3518]);
15939
15939
  __d(function(g,_r,_i,a,_m,e,d){"use strict";function t(t,n=-60,o=0){const s=(t-n)/(o-n);return Math.min(1,Math.max(0,s))}Object.defineProperty(e,'__esModule',{value:!0}),e.dbfsToUnit=t,e.densityToMotionBuckets=function(t,n){if(0===t.length)return[];const o=t.reduce((t,n)=>Math.max(t,n.motion),0);return t.map(t=>({startMs:t.bucketStart,endMs:t.bucketStart+n,intensity:o>0?Math.min(1,Math.max(0,t.motion/o)):0}))},e.audioEventsToBuckets=function(n,o,s,i){const r=Array.from({length:i},()=>{});for(const t of n){const n=Math.floor((t.timestamp-o)/s);if(n<0||n>=i)continue;const c=r[n];r[n]=void 0===c?t.dbfs:Math.max(c,t.dbfs)}return r.map((n,i)=>({startMs:o+i*s,endMs:o+(i+1)*s,intensity:void 0!==n?t(n):0}))},e.pickBucketMs=function(t,s,i=240){const r=Math.abs(s-t),c=Math.round(r/i);return Math.min(o,Math.max(n,c))};const n=5e3,o=36e5},3518,[]);
15940
15940
  __d(function(_g,r,i,_a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.dedupeFragmentItems=p,_e.pickRepresentative=h,_e.clusterByZoom=function(t,{topMs:n,zoomIndex:s,sizePx:o,gapPx:a},c){if(0===t.length)return[];const l=[...t].sort((e,t)=>t.timestamp-e.timestamp),u=[];let f=[],b=0;function M(){if(0===f.length)return;const e=h(f,c),t=[...new Set(f.map(e=>e.className))],n=[...new Set(f.map(e=>e.label).filter(e=>'string'==typeof e&&e.length>0))],s=f.map(e=>e.timestamp);u.push({id:e.id,events:f,carouselEvents:p(f),representative:e,classes:t,labels:n,startMs:Math.min(...s),endMs:Math.max(...s),topPx:b,heightPx:o}),f=[]}for(const t of l){const c=(0,e.epochToOffset)(t.timestamp,n,s);0===f.length?(b=c,f.push(t)):(c<b+o+a||(M(),b=c),f.push(t))}return M(),u};var e=r(d[0]);const t=['label','person','vehicle','animal'],n={vehicle:['car','truck','bus','motorcycle'],animal:['dog','cat','bird']};function s(e){return'label'===e?[]:void 0!==n[e]?n[e]:[e]}function o(e,t){if('label'===t)return'string'==typeof e.label&&e.label.length>0;return s(t).includes(e.className)}const a=45e3,c=2e3;function l(e){return{start:e.timestamp,end:e.endTimestamp??e.timestamp}}function u(e,t){const{start:n}=l(t);return n>=e-c&&n<=e+a}function f(e,t){const n=e.importance??0,s=t.importance??0;return s>n?t:n>s?e:l(t).end>=l(e).end?t:e}function p(e){if(e.length<=1)return[...e];const t=new Map,n=[...e].sort((e,t)=>e.timestamp-t.timestamp);for(const e of n){const n=t.get(e.className)??[];let s;for(const t of n)u(t.endMs,e)&&(void 0===s||t.endMs>s.endMs)&&(s=t);void 0!==s?(s.best=f(s.best,e),s.endMs=Math.max(s.endMs,l(e).end)):n.push({best:e,endMs:l(e).end}),t.set(e.className,n)}const s=new Set;for(const e of t.values())for(const t of e)s.add(t.best);return e.filter(e=>s.has(e))}function h(e,n=t){for(const t of n){const n=e.find(e=>o(e,t));if(void 0!==n)return n}return e.reduce((e,t)=>t.timestamp>e.timestamp?t:e,e[0])}},3519,[3510]);
15941
15941
  __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,"ClusterDetailModal",{enumerable:!0,get:function(){return b}});var t=r(d[0]),o=r(d[1]),l=e(r(d[2])),n=e(r(d[3])),s=e(r(d[4])),u=r(d[5]),c=r(d[6]),f=r(d[7]),p=r(d[8]);const b=(0,o.memo)(function(e){const o=(0,t.c)(16),{deviceId:s,cluster:b,onSeek:v,onClose:C,seekAvailable:_}=e,{colors:j}=(0,c.useTheme)(),y=(0,u.useSafeAreaInsets)(),x=null!==b,h=j.background+"F2";let A,I,M,S;return o[0]!==y.top||o[1]!==h?(A=[k.backdrop,{backgroundColor:h,paddingTop:y.top}],o[0]=y.top,o[1]=h,o[2]=A):A=o[2],o[3]!==b||o[4]!==s||o[5]!==C||o[6]!==v||o[7]!==_?(I=(0,p.jsx)(f.ClusterDetailBody,{deviceId:s,cluster:b,onSeek:v,onClose:C,seekAvailable:_}),o[3]=b,o[4]=s,o[5]=C,o[6]=v,o[7]=_,o[8]=I):I=o[8],o[9]!==A||o[10]!==I?(M=(0,p.jsx)(n.default,{style:A,children:I}),o[9]=A,o[10]=I,o[11]=M):M=o[11],o[12]!==C||o[13]!==x||o[14]!==M?(S=(0,p.jsx)(l.default,{visible:x,animationType:"slide",transparent:!0,onRequestClose:C,children:M}),o[12]=C,o[13]=x,o[14]=M,o[15]=S):S=o[15],S}),k=s.default.create({backdrop:{flex:1}})},3520,[15,17,245,20,33,466,2587,3521,10]);
15942
- __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,"ClusterDetailBody",{enumerable:!0,get:function(){return C}});var t=r(d[0]),l=r(d[1]),n=e(r(d[2])),o=e(r(d[3])),s=e(r(d[4])),c=e(r(d[5])),u=e(r(d[6])),f=r(d[7]),h=r(d[8]),p=r(d[9]),x=r(d[10]),y=r(d[11]),k=r(d[12]),I=r(d[13]),b=r(d[14]);function j(e){return e.trackId??e.id}const C=(0,l.memo)(function(e){const u=(0,t.c)(32),{deviceId:x,cluster:C,onSeek:v,onClose:w,bottomInset:A,seekAvailable:P}=e,R=void 0===P||P,{colors:_}=(0,p.useTheme)(),{t:N}=(0,h.useTranslation)();let T;e:{if(null===C){let e;u[0]===Symbol.for("react.memo_cache_sentinel")?(e=[],u[0]=e):e=u[0],T=e;break e}const e=C.carouselEvents.length>0?C.carouselEvents:C.events;let t;u[1]!==e?(t=[...e],u[1]=e,u[2]=t):t=u[2],T=t}const E=T,[G,z]=(0,l.useState)(null);let B,D,M;u[3]!==E?(B=()=>{z(e=>null!==e&&E.some(t=>j(t)===e)?e:void 0!==E[0]?j(E[0]):null)},D=[E],u[3]=E,u[4]=B,u[5]=D):(B=u[4],D=u[5]),(0,l.useEffect)(B,D),u[6]!==G||u[7]!==E?(M=E.find(e=>j(e)===G)??E[0]??null,u[6]=G,u[7]=E,u[8]=M):M=u[8];const F=M;let L;u[9]!==x||u[10]!==F?(L=null!==F?(0,I.timelineEventToTrackSummary)(F,x):null,u[9]=x,u[10]=F,u[11]=L):L=u[11];const O=L;let H,U,V,W,X;return u[12]!==_||u[13]!==F||u[14]!==E?(H=E.length>1?(0,b.jsx)(c.default,{horizontal:!0,showsHorizontalScrollIndicator:!1,contentContainerStyle:S.trackRow,style:S.trackRowFlex,children:E.map(e=>{const t=j(e),l=t===(null!==F?j(F):null);return(0,b.jsxs)(s.default,{onPress:()=>z(t),style:S.trackChip,children:[(0,b.jsx)(n.default,{style:[S.chipImage,{borderColor:l?_.primary:"transparent",borderWidth:l?2:0}],children:(0,b.jsx)(y.EventThumb,{event:e,width:56,height:56})}),(0,b.jsx)(o.default,{numberOfLines:1,style:[S.trackChipLabel,{color:l?_.foreground:_.foregroundMuted}],children:(c=e,c.label??c.className)})]},t);var c})}):(0,b.jsx)(n.default,{style:S.trackRowFlex}),u[12]=_,u[13]=F,u[14]=E,u[15]=H):H=u[15],u[16]!==_||u[17]!==w?(U=w?(0,b.jsx)(s.default,{onPress:w,hitSlop:10,style:[S.iconBtn,{backgroundColor:_.surface}],children:(0,b.jsx)(f.X,{size:20,color:_.foreground})}):null,u[16]=_,u[17]=w,u[18]=U):U=u[18],u[19]!==H||u[20]!==U?(V=(0,b.jsxs)(n.default,{style:S.pickerBar,children:[H,U]}),u[19]=H,u[20]=U,u[21]=V):V=u[21],u[22]!==A||u[23]!==_||u[24]!==v||u[25]!==R||u[26]!==O||u[27]!==N?(W=null!==O?(0,b.jsx)(k.TrackDetailView,{track:O,onSeek:R?v:void 0,bottomInset:A}):(0,b.jsx)(n.default,{style:S.empty,children:(0,b.jsx)(o.default,{style:{color:_.foregroundMuted},children:N("v2.theater.detailEmpty")})}),u[22]=A,u[23]=_,u[24]=v,u[25]=R,u[26]=O,u[27]=N,u[28]=W):W=u[28],u[29]!==W||u[30]!==V?(X=(0,b.jsxs)(n.default,{style:S.root,children:[V,W]}),u[29]=W,u[30]=V,u[31]=X):X=u[31],X}),S=u.default.create({root:{flex:1},pickerBar:{flexDirection:'row',alignItems:'center',gap:x.SPACING.sm,paddingHorizontal:x.SPACING.md,paddingTop:x.SPACING.sm},trackRowFlex:{flex:1},trackRow:{gap:x.SPACING.sm,paddingVertical:x.SPACING.xs,paddingRight:x.SPACING.md,alignItems:'center'},trackChip:{width:56,alignItems:'center',gap:2},chipImage:{width:56,height:56,borderRadius:x.RADIUS.md,overflow:'hidden'},trackChipLabel:{fontSize:10,maxWidth:64,textAlign:'center'},iconBtn:{width:36,height:36,borderRadius:x.RADIUS.md,alignItems:'center',justifyContent:'center'},empty:{flex:1,alignItems:'center',justifyContent:'center'}})},3521,[15,17,20,112,252,147,33,813,786,2587,2589,3373,3238,3516,10]);
15942
+ __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,"ClusterDetailBody",{enumerable:!0,get:function(){return C}});var t=r(d[0]),l=r(d[1]),n=e(r(d[2])),o=e(r(d[3])),s=e(r(d[4])),c=e(r(d[5])),u=e(r(d[6])),f=r(d[7]),h=r(d[8]),p=r(d[9]),x=r(d[10]),y=r(d[11]),k=r(d[12]),I=r(d[13]),b=r(d[14]);function j(e){return e.trackId??e.id}const C=(0,l.memo)(function(e){const u=(0,t.c)(32),{deviceId:x,cluster:C,onSeek:v,onClose:w,bottomInset:A,seekAvailable:P}=e,R=void 0===P||P,{colors:_}=(0,p.useTheme)(),{t:N}=(0,h.useTranslation)();let T;e:{if(null===C){let e;u[0]===Symbol.for("react.memo_cache_sentinel")?(e=[],u[0]=e):e=u[0],T=e;break e}const e=C.carouselEvents.length>0?C.carouselEvents:C.events;let t;u[1]!==e?(t=[...e],u[1]=e,u[2]=t):t=u[2],T=t}const E=T,[G,z]=(0,l.useState)(null);let B,D,M;u[3]!==E?(B=()=>{z(e=>null!==e&&E.some(t=>j(t)===e)?e:void 0!==E[0]?j(E[0]):null)},D=[E],u[3]=E,u[4]=B,u[5]=D):(B=u[4],D=u[5]),(0,l.useEffect)(B,D),u[6]!==G||u[7]!==E?(M=E.find(e=>j(e)===G)??E[0]??null,u[6]=G,u[7]=E,u[8]=M):M=u[8];const F=M;let L;u[9]!==x||u[10]!==F?(L=null!==F?(0,I.timelineEventToTrackSummary)(F,x):null,u[9]=x,u[10]=F,u[11]=L):L=u[11];const O=L;let H,U,V,W,X;return u[12]!==_||u[13]!==F||u[14]!==E?(H=E.length>1?(0,b.jsx)(c.default,{horizontal:!0,showsHorizontalScrollIndicator:!1,contentContainerStyle:S.trackRow,style:S.trackRowFlex,children:E.map(e=>{const t=j(e),l=t===(null!==F?j(F):null);return(0,b.jsxs)(s.default,{onPress:()=>z(t),style:S.trackChip,children:[(0,b.jsx)(n.default,{style:[S.chipImage,{borderColor:l?_.primary:"transparent",borderWidth:l?2:0}],children:(0,b.jsx)(y.EventThumb,{event:e,width:56,height:56})}),(0,b.jsx)(o.default,{numberOfLines:1,style:[S.trackChipLabel,{color:l?_.foreground:_.foregroundMuted}],children:(c=e,c.label??c.className)})]},t);var c})}):(0,b.jsx)(n.default,{style:S.trackRowFlex}),u[12]=_,u[13]=F,u[14]=E,u[15]=H):H=u[15],u[16]!==_||u[17]!==w?(U=w?(0,b.jsx)(s.default,{onPress:w,hitSlop:10,style:[S.iconBtn,{backgroundColor:_.surface}],children:(0,b.jsx)(f.X,{size:20,color:_.foreground})}):null,u[16]=_,u[17]=w,u[18]=U):U=u[18],u[19]!==H||u[20]!==U?(V=(0,b.jsxs)(n.default,{style:S.pickerBar,children:[H,U]}),u[19]=H,u[20]=U,u[21]=V):V=u[21],u[22]!==A||u[23]!==_||u[24]!==v||u[25]!==R||u[26]!==O||u[27]!==N?(W=null!==O?(0,b.jsx)(k.TrackDetailView,{track:O,onSeek:R?v:void 0,bottomInset:A}):(0,b.jsx)(n.default,{style:S.empty,children:(0,b.jsx)(o.default,{style:{color:_.foregroundMuted},children:N("v2.theater.detailEmpty")})}),u[22]=A,u[23]=_,u[24]=v,u[25]=R,u[26]=O,u[27]=N,u[28]=W):W=u[28],u[29]!==W||u[30]!==V?(X=(0,b.jsxs)(n.default,{style:S.root,children:[V,W]}),u[29]=W,u[30]=V,u[31]=X):X=u[31],X}),S=u.default.create({root:{flex:1},pickerBar:{flexDirection:'row',alignItems:'center',gap:x.SPACING.sm,paddingHorizontal:x.SPACING.md,paddingTop:x.SPACING.sm},trackRowFlex:{flex:1},trackRow:{gap:x.SPACING.sm,paddingVertical:x.SPACING.xs,paddingRight:x.SPACING.md,alignItems:'center'},trackChip:{width:56,alignItems:'center',gap:2},chipImage:{width:56,height:56,borderRadius:x.RADIUS.md,overflow:'hidden'},trackChipLabel:{fontSize:10,maxWidth:64,textAlign:'center'},iconBtn:{width:36,height:36,borderRadius:x.RADIUS.md,alignItems:'center',justifyContent:'center'},empty:{flex:1,alignItems:'center',justifyContent:'center'}})},3521,[15,17,20,112,252,147,33,813,786,2587,2589,3373,3239,3516,10]);
15943
15943
  __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,"TimelineScroller",{enumerable:!0,get:function(){return L}});var t=r(d[0]),o=r(d[1]),l=e(r(d[2])),n=e(r(d[3])),s=e(r(d[4])),c=e(r(d[5])),u=r(d[6]),f=r(d[7]),h=r(d[8]),p=r(d[9]),v=r(d[10]),x=r(d[11]),y=r(d[12]),b=r(d[13]);const S=36e5,C=h.SPACING.sm+3+h.SPACING.xs;function w(e,t,o,l){const{rowMinutes:n}=p.ZOOM_LEVELS[(0,p.clampZoomIndex)(l)],s=6e4*n,c=[];let u=Math.ceil((e+o)/s)*s;for(;u>=t;)c.push(u),u-=s;return c}const L=(0,o.memo)((0,o.forwardRef)(function(e,c){const p=(0,t.c)(72),{topMs:L,zoomIndex:P,dayWindow:E,clusters:j,activity:A,showMotionLane:k,showAudioLane:M,cardWidth:_,viewportHeight:G,indicatorOffsetPx:N,isLive:O,onScroll:D,onClusterPress:T,onClusterOpenDetail:R,clusterLabel:V,eventKinds:W}=e,{colors:z}=(0,f.useTheme)(),{t:H}=(0,u.useTranslation)(),F=(0,o.useRef)(null),[K,Z]=(0,o.useState)(0);let U,Y,q;p[0]===Symbol.for("react.memo_cache_sentinel")?(U=()=>({scrollToOffset:e=>{const{offset:t,animated:o}=e;return F.current?.scrollTo({y:t,animated:o??!1})}}),Y=[],p[0]=U,p[1]=Y):(U=p[0],Y=p[1]),(0,o.useImperativeHandle)(c,U,Y),p[2]!==E.from||p[3]!==L||p[4]!==P?(q=(0,v.epochToOffset)(E.from,L,P),p[2]=E.from,p[3]=L,p[4]=P,p[5]=q):q=p[5];const B=Math.max(G,q),J=N+B,Q=(0,v.pxPerHour)(P),X=Q>0?N/Q*S:0;let $;p[6]!==N||p[7]!==Q||p[8]!==L?($=e=>(L-e)/S*Q+N,p[6]=N,p[7]=Q,p[8]=L,p[9]=$):$=p[9];const ee=$;let te,oe,ie,le,ne,re,se,ae,de,ce,ue,fe,he,pe;if(p[10]!==_||p[11]!==z||p[12]!==J||p[13]!==ee||p[14]!==E.from||p[15]!==X||p[16]!==D||p[17]!==K||p[18]!==L||p[19]!==P){const e=w(L,E.from,X,P),t=h.SPACING.md+38+h.SPACING.sm,o=K-C-18-t;let c;oe=K>0?Math.max(t,t+(o-_)/2):h.SPACING.lg,te=l.default,re=F,se=!1,ae=D,p[30]===Symbol.for("react.memo_cache_sentinel")?(de=e=>Z(e.nativeEvent.layout.width),p[30]=de):de=p[30],ce=16,ie=I.scrollView,p[31]!==J?(le={height:J,position:"relative"},p[31]=J,p[32]=le):le=p[32],p[33]!==z||p[34]!==J||p[35]!==ee?(c=e=>{const t=ee(e);return t<0||t>J?null:(0,b.jsxs)(n.default,{pointerEvents:"none",style:[I.tickRow,{top:t}],children:[(0,b.jsx)(s.default,{style:[I.tickLabel,{color:z.foregroundSubtle}],children:(o=e,new Date(o).toLocaleTimeString(void 0,{hour:'2-digit',minute:'2-digit'}))}),(0,b.jsx)(n.default,{style:[I.tickLine,{backgroundColor:z.borderSubtle}]})]},e);var o},p[33]=z,p[34]=J,p[35]=ee,p[36]=c):c=p[36],ne=e.map(c),p[10]=_,p[11]=z,p[12]=J,p[13]=ee,p[14]=E.from,p[15]=X,p[16]=D,p[17]=K,p[18]=L,p[19]=P,p[20]=te,p[21]=oe,p[22]=ie,p[23]=le,p[24]=ne,p[25]=re,p[26]=se,p[27]=ae,p[28]=de,p[29]=ce}else te=p[20],oe=p[21],ie=p[22],le=p[23],ne=p[24],re=p[25],se=p[26],ae=p[27],de=p[28],ce=p[29];return p[37]!==z||p[38]!==N||p[39]!==O||p[40]!==H?(ue=O?null:(0,b.jsxs)(n.default,{pointerEvents:"none",style:[I.liveEdge,{top:N}],children:[(0,b.jsx)(n.default,{style:[I.liveEdgeLine,{backgroundColor:z.live}]}),(0,b.jsxs)(n.default,{style:[I.liveEdgeCap,{backgroundColor:z.live}],children:[(0,b.jsx)(n.default,{style:[I.liveEdgeDot,{backgroundColor:z.primaryForeground}]}),(0,b.jsx)(s.default,{style:[I.liveEdgeLabel,{color:z.primaryForeground}],children:H("v2.theater.live")})]})]}),p[37]=z,p[38]=N,p[39]=O,p[40]=H,p[41]=ue):ue=p[41],p[42]!==oe||p[43]!==_||p[44]!==V||p[45]!==j||p[46]!==W||p[47]!==N||p[48]!==R||p[49]!==T?(fe=_>0&&j.map(e=>(0,b.jsx)(n.default,{style:[I.clusterWrapper,{top:e.topPx+N,left:oe,height:e.heightPx,width:_}],children:(0,b.jsx)(x.ClusterCard,{cluster:e,width:_,onPress:()=>{T(e)},onOpenDetail:R?()=>{R(e)}:void 0,clusterLabel:V,eventKinds:W})},e.id)),p[42]=oe,p[43]=_,p[44]=V,p[45]=j,p[46]=W,p[47]=N,p[48]=R,p[49]=T,p[50]=fe):fe=p[50],p[51]!==A||p[52]!==B||p[53]!==N||p[54]!==M||p[55]!==k||p[56]!==L||p[57]!==P?(he=B>0&&(0,b.jsx)(n.default,{pointerEvents:"none",style:[I.activityColumn,{top:N,height:B}],children:(0,b.jsx)(y.ActivityLanes,{model:A,topMs:L,zoomIndex:P,height:B,scrollOffsetY:0,width:18,showMotion:k,showAudio:M})}),p[51]=A,p[52]=B,p[53]=N,p[54]=M,p[55]=k,p[56]=L,p[57]=P,p[58]=he):he=p[58],p[59]!==te||p[60]!==ie||p[61]!==le||p[62]!==ne||p[63]!==ue||p[64]!==fe||p[65]!==he||p[66]!==re||p[67]!==se||p[68]!==ae||p[69]!==de||p[70]!==ce?(pe=(0,b.jsxs)(te,{ref:re,showsVerticalScrollIndicator:se,onScroll:ae,onLayout:de,scrollEventThrottle:ce,style:ie,contentContainerStyle:le,children:[ne,ue,fe,he]}),p[59]=te,p[60]=ie,p[61]=le,p[62]=ne,p[63]=ue,p[64]=fe,p[65]=he,p[66]=re,p[67]=se,p[68]=ae,p[69]=de,p[70]=ce,p[71]=pe):pe=p[71],pe})),I=c.default.create({scrollView:{flex:1},tickRow:{position:'absolute',left:0,right:0,flexDirection:'row',alignItems:'center',paddingLeft:h.SPACING.md,gap:h.SPACING.sm},tickLabel:{fontSize:9,fontVariant:['tabular-nums'],width:38,flexShrink:0},liveEdge:{position:'absolute',left:0,right:0,height:0,justifyContent:'center'},liveEdgeLine:{position:'absolute',left:0,right:0,height:1,opacity:.5},liveEdgeCap:{position:'absolute',right:h.SPACING.sm,top:-8,flexDirection:'row',alignItems:'center',gap:4,paddingHorizontal:6,paddingVertical:1.5,borderRadius:h.RADIUS.sm},liveEdgeDot:{width:5,height:5,borderRadius:2.5},liveEdgeLabel:{fontSize:9,fontWeight:'800',letterSpacing:.6},tickLine:{flex:1,height:c.default.hairlineWidth,opacity:.5},clusterWrapper:{position:'absolute',overflow:'hidden'},activityColumn:{position:'absolute',top:0,right:h.SPACING.sm+3+h.SPACING.xs}})},3522,[15,17,147,20,112,33,786,2587,2589,3142,3510,3523,3524,10]);
15944
15944
  __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,"ClusterCard",{enumerable:!0,get:function(){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])),i=e(r(_d[5])),d=e(r(_d[6])),c=r(_d[7]),u=r(_d[8]),h=r(_d[9]),f=r(_d[10]),p=r(_d[11]),m=r(_d[12]),b=r(_d[13]),v=r(_d[14]),x=r(_d[15]);function C(e){return e.carouselEvents.length>0?e.carouselEvents:e.events.length>0?e.events:[e.representative]}const y=(0,o.memo)(function(e){const y=(0,t.c)(136),{cluster:j,width:I,selected:w,onPress:A,onOpenDetail:R,clusterLabel:k,eventKinds:P}=e,L=void 0!==w&&w,O=void 0===k?"icon":k,{colors:T}=(0,h.useTheme)(),{t:_}=(0,u.useTranslation)();let N;if(y[0]!==P){N=new Map;for(const e of P??[])N.set(e.kind,e);y[0]=P,y[1]=N}else N=y[1];const B=N,{settings:D}=(0,f.useSettings)(),z=D.clusters.showClass,E=D.clusters.showImportance;let G;y[2]!==j.representative.className?(G=(0,m.colorForEventType)(j.representative.className),y[2]=j.representative.className,y[3]=G):G=y[3];const M=G;let U;y[4]!==j?(U=C(j),y[4]=j,y[5]=U):U=y[5];const W=U,$=W.length>1,F=j.events.length>0,[K,V]=(0,o.useState)(0),H=W[K]?.timestamp??j.representative.timestamp;let q;y[6]!==H?(q=new Date(H).toLocaleTimeString(void 0,{hour:'2-digit',minute:'2-digit'}),y[6]=H,y[7]=q):q=y[7];const J=q,Q=W[K]?.importance??j.representative.importance,[X,Y]=(0,o.useState)(I),Z=(0,o.useRef)(null);let ee;y[8]===Symbol.for("react.memo_cache_sentinel")?(ee=e=>{const t=e.nativeEvent.layout.width;t>0&&Y(t)},y[8]=ee):ee=y[8];const te=ee;let oe;y[9]!==X||y[10]!==W.length?(oe=e=>{const t=Math.max(0,Math.min(e,W.length-1));Z.current?.scrollTo({x:t*X,animated:!0}),V(t)},y[9]=X,y[10]=W.length,y[11]=oe):oe=y[11];const ne=oe;let re;y[12]!==X||y[13]!==W.length?(re=e=>{if(X<=0)return;const t=e.nativeEvent.contentOffset.x,o=Math.max(0,Math.min(Math.round(t/X),W.length-1));V(o)},y[12]=X,y[13]=W.length,y[14]=re):re=y[14];const le=re,se=j.heightPx,ie=L?3:2;let ae,de,ce,ue,he,ge,fe,pe,me,be,ve,xe,Ce,ye,Se,je,Ie,we,Ae,Re,ke,Pe,Le,Oe,Te,Ne;if(y[15]!==M||y[16]!==K||y[17]!==ie||y[18]!==se||y[19]!==X||y[20]!==j||y[21]!==O||y[22]!==T||y[23]!==W||y[24]!==ne||y[25]!==$||y[26]!==B||y[27]!==le||y[28]!==A||y[29]!==z||y[30]!==_||y[31]!==I){const e=j.classes.slice(0,3),t=j.classes.length-e.length;let o,u;if(y[47]!==j.events){o=new Set;for(const e of j.events)for(const t of e.audioLabels??[])o.add(t);y[47]=j.events,y[48]=o}else o=y[48];y[49]!==o?(u=[...o],y[49]=o,y[50]=u):u=y[50];const h=u,f=h.slice(0,2);ue=h.length-f.length,ce=s.default,y[51]!==M||y[52]!==ie||y[53]!==se||y[54]!==T.surface||y[55]!==I?(be=[S.container,{width:I,height:se,borderLeftWidth:ie,borderLeftColor:M,backgroundColor:T.surface,borderRadius:p.RADIUS.md}],y[51]=M,y[52]=ie,y[53]=se,y[54]=T.surface,y[55]=I,y[56]=be):be=y[56],ve=A,xe=te,y[57]!==K||y[58]!==se||y[59]!==X||y[60]!==j||y[61]!==W||y[62]!==$||y[63]!==le?(Ce=$&&X>0?(0,x.jsx)(d.default,{ref:Z,horizontal:!0,nestedScrollEnabled:!0,snapToInterval:X,decelerationRate:"fast",showsHorizontalScrollIndicator:!1,onScroll:le,scrollEventThrottle:16,style:i.default.absoluteFill,contentContainerStyle:{height:se},children:W.map((e,t)=>Math.abs(t-K)<=1?(0,x.jsx)(b.EventThumb,{event:e,width:X,height:se},`${e.id}_${t}`):(0,x.jsx)(n.default,{style:{width:X,height:se,backgroundColor:(0,m.colorForEventType)(e.className)+"1A"}},`${e.id}_${t}`))}):(0,x.jsx)(n.default,{style:i.default.absoluteFill,children:(0,x.jsx)(b.EventThumb,{event:j.representative,width:X,height:se})}),y[57]=K,y[58]=se,y[59]=X,y[60]=j,y[61]=W,y[62]=$,y[63]=le,y[64]=Ce):Ce=y[64],y[65]!==K||y[66]!==T.background||y[67]!==T.foreground||y[68]!==ne||y[69]!==$?(ye=$&&K>0&&(0,x.jsx)(s.default,{style:[S.navBtn,S.navBtnLeft,{backgroundColor:T.background+"B0"}],onPress:()=>ne(K-1),hitSlop:6,children:(0,x.jsx)(c.ChevronLeft,{size:14,color:T.foreground})}),y[65]=K,y[66]=T.background,y[67]=T.foreground,y[68]=ne,y[69]=$,y[70]=ye):ye=y[70],y[71]!==K||y[72]!==T.background||y[73]!==T.foreground||y[74]!==W||y[75]!==ne||y[76]!==$?(Se=$&&K<W.length-1&&(0,x.jsx)(s.default,{style:[S.navBtn,S.navBtnRight,{backgroundColor:T.background+"B0"}],onPress:()=>ne(K+1),hitSlop:6,children:(0,x.jsx)(c.ChevronRight,{size:14,color:T.foreground})}),y[71]=K,y[72]=T.background,y[73]=T.foreground,y[74]=W,y[75]=ne,y[76]=$,y[77]=Se):Se=y[77],de=n.default;const C=T.background+"B0";y[78]!==C?(me=[S.bottomOverlay,{backgroundColor:C}],y[78]=C,y[79]=me):me=y[79],ae=n.default,he=S.pillsRow,ge=z?e.map((e,t)=>{const o=B.get(e),s=o?.color??(0,m.colorForEventType)(e),i="icon"===O&&void 0!==o?(0,v.resolveEventKindIcon)(o.iconId):null;return(0,x.jsx)(n.default,{style:[S.pill,{backgroundColor:s+"2A",borderColor:s+"66"}],children:i?(0,x.jsx)(i,{size:10,color:s}):(0,x.jsx)(l.default,{style:[S.pillText,{color:s}],children:o?(0,v.eventKindLabel)(o,_):e})},`${e}_${t}`)}):null,y[80]!==M||y[81]!==t||y[82]!==z?(fe=z&&t>0&&(0,x.jsxs)(l.default,{style:[S.extraBadge,{color:M}],children:["+",t]}),y[80]=M,y[81]=t,y[82]=z,y[83]=fe):fe=y[83],pe=z?f.map((e,t)=>{const o=`audio-${e.toLowerCase()}`,s=B.get(o),i="icon"===O?(0,v.resolveEventKindIcon)(o):null;return(0,x.jsx)(n.default,{style:[S.pill,{backgroundColor:m.AUDIO_COLOR+"2A",borderColor:m.AUDIO_COLOR+"66"}],children:i?(0,x.jsx)(i,{size:10,color:m.AUDIO_COLOR}):(0,x.jsx)(l.default,{style:[S.pillText,{color:m.AUDIO_COLOR}],children:s?(0,v.eventKindLabel)(s,_):e})},`audio_${e}_${t}`)}):null,y[15]=M,y[16]=K,y[17]=ie,y[18]=se,y[19]=X,y[20]=j,y[21]=O,y[22]=T,y[23]=W,y[24]=ne,y[25]=$,y[26]=B,y[27]=le,y[28]=A,y[29]=z,y[30]=_,y[31]=I,y[32]=ae,y[33]=de,y[34]=ce,y[35]=ue,y[36]=he,y[37]=ge,y[38]=fe,y[39]=pe,y[40]=me,y[41]=be,y[42]=ve,y[43]=xe,y[44]=Ce,y[45]=ye,y[46]=Se}else ae=y[32],de=y[33],ce=y[34],ue=y[35],he=y[36],ge=y[37],fe=y[38],pe=y[39],me=y[40],be=y[41],ve=y[42],xe=y[43],Ce=y[44],ye=y[45],Se=y[46];return y[84]!==ue||y[85]!==z?(je=z&&ue>0&&(0,x.jsxs)(l.default,{style:[S.extraBadge,{color:m.AUDIO_COLOR}],children:["+",ue]}),y[84]=ue,y[85]=z,y[86]=je):je=y[86],y[87]!==ae||y[88]!==he||y[89]!==ge||y[90]!==fe||y[91]!==pe||y[92]!==je?(Ie=(0,x.jsxs)(ae,{style:he,children:[ge,fe,pe,je]}),y[87]=ae,y[88]=he,y[89]=ge,y[90]=fe,y[91]=pe,y[92]=je,y[93]=Ie):Ie=y[93],y[94]!==Q||y[95]!==T.primary||y[96]!==T.primaryForeground||y[97]!==E?(we=E&&"number"==typeof Q?(0,x.jsx)(n.default,{style:[S.importancePill,{backgroundColor:T.primary}],children:(0,x.jsx)(l.default,{style:[S.importanceText,{color:T.primaryForeground}],children:Math.round(100*Q)})}):null,y[94]=Q,y[95]=T.primary,y[96]=T.primaryForeground,y[97]=E,y[98]=we):we=y[98],y[99]!==M||y[100]!==K||y[101]!==W||y[102]!==$?(Ae=$&&(0,x.jsxs)(l.default,{style:[S.pageCounter,{color:M}],children:[K+1,"/",W.length]}),y[99]=M,y[100]=K,y[101]=W,y[102]=$,y[103]=Ae):Ae=y[103],y[104]!==T.foregroundMuted?(Re=[S.timeLabel,p.TABULAR,{color:T.foregroundMuted}],y[104]=T.foregroundMuted,y[105]=Re):Re=y[105],y[106]!==Re||y[107]!==J?(ke=(0,x.jsx)(l.default,{style:Re,children:J}),y[106]=Re,y[107]=J,y[108]=ke):ke=y[108],y[109]!==we||y[110]!==Ae||y[111]!==ke?(Pe=(0,x.jsxs)(n.default,{style:S.rightRow,children:[we,Ae,ke]}),y[109]=we,y[110]=Ae,y[111]=ke,y[112]=Pe):Pe=y[112],y[113]!==de||y[114]!==me||y[115]!==Ie||y[116]!==Pe?(Le=(0,x.jsxs)(de,{style:me,children:[Ie,Pe]}),y[113]=de,y[114]=me,y[115]=Ie,y[116]=Pe,y[117]=Le):Le=y[117],y[118]!==T.background||y[119]!==T.foreground||y[120]!==R?(Oe=R?(0,x.jsx)(s.default,{style:[S.lensBtn,{backgroundColor:T.background+"CC"}],onPress:R,hitSlop:8,children:(0,x.jsx)(c.Search,{size:12,color:T.foreground})}):null,y[118]=T.background,y[119]=T.foreground,y[120]=R,y[121]=Oe):Oe=y[121],y[122]!==M||y[123]!==F?(Te=F&&(0,x.jsx)(n.default,{style:[S.eventsDot,{backgroundColor:M}]}),y[122]=M,y[123]=F,y[124]=Te):Te=y[124],y[125]!==ce||y[126]!==be||y[127]!==ve||y[128]!==xe||y[129]!==Ce||y[130]!==ye||y[131]!==Se||y[132]!==Le||y[133]!==Oe||y[134]!==Te?(Ne=(0,x.jsxs)(ce,{style:be,onPress:ve,onLayout:xe,children:[Ce,ye,Se,Le,Oe,Te]}),y[125]=ce,y[126]=be,y[127]=ve,y[128]=xe,y[129]=Ce,y[130]=ye,y[131]=Se,y[132]=Le,y[133]=Oe,y[134]=Te,y[135]=Ne):Ne=y[135],Ne}),S=i.default.create({container:{overflow:'hidden',borderLeftWidth:2},bottomOverlay:{position:'absolute',bottom:0,left:0,right:0,flexDirection:'row',alignItems:'center',justifyContent:'space-between',paddingHorizontal:p.SPACING.sm,paddingVertical:p.SPACING.xs+1},pillsRow:{flexDirection:'row',alignItems:'center',gap:p.SPACING.xs,flexShrink:1,flexWrap:'nowrap'},pill:{paddingHorizontal:p.SPACING.xs+1,paddingVertical:1,borderRadius:p.RADIUS.sm,borderWidth:1},pillText:{fontSize:8,fontWeight:'600'},extraBadge:{fontSize:8,fontWeight:'700'},rightRow:{flexDirection:'row',alignItems:'center',gap:p.SPACING.xs,flexShrink:0},importancePill:{paddingHorizontal:5,paddingVertical:1,borderRadius:8},importanceText:{fontSize:8,fontWeight:'700',fontVariant:['tabular-nums']},pageCounter:{fontSize:9,fontWeight:'600',fontVariant:['tabular-nums']},timeLabel:{fontSize:9,flexShrink:0},carouselToggle:{position:'absolute',top:p.SPACING.sm,left:p.SPACING.sm,width:18,height:18,borderRadius:p.RADIUS.sm,borderWidth:1,alignItems:'center',justifyContent:'center'},eventsDot:{position:'absolute',top:p.SPACING.sm,right:p.SPACING.sm,width:6,height:6,borderRadius:3},lensBtn:{position:'absolute',top:p.SPACING.sm,left:p.SPACING.sm,width:20,height:20,borderRadius:p.RADIUS.sm,alignItems:'center',justifyContent:'center'},navBtn:{position:'absolute',top:'50%',marginTop:-11,width:22,height:22,borderRadius:11,alignItems:'center',justifyContent:'center'},navBtnLeft:{left:p.SPACING.xs},navBtnRight:{right:p.SPACING.xs}})},3523,[15,17,20,112,252,33,147,813,786,2587,3177,2589,3231,3373,3170,10]);
15945
15945
  __d(function(g,_r,i,a,m,_e,d){"use strict";function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"ActivityLanes",{enumerable:!0,get:function(){return w}});var e=_r(d[0]),o=_r(d[1]),n=t(_r(d[2])),s=t(_r(d[3])),l=_r(d[4]),r=_r(d[5]),c=_r(d[6]);const h=r.BAND.recording,u=r.BAND.motion,f=r.BAND.audioGradient[1];function p(t,e,o,n,s,r){const c=(0,l.epochToOffset)(e,o,n)-s,h=(0,l.epochToOffset)(t,o,n)-s,u=Math.max(0,c),f=Math.min(r,h)-u;return f<=0?null:{top:u,height:f}}function x(t){const o=(0,e.c)(16),{ranges:s,topMs:l,zoomIndex:r,scrollOffsetY:u,height:f,width:x}=t;let M,y,w;if(o[0]!==x?(M=[j.lane,{width:x}],o[0]=x,o[1]=M):M=o[1],o[2]!==s||o[3]!==u||o[4]!==l||o[5]!==f||o[6]!==r){let t;o[8]!==u||o[9]!==l||o[10]!==f||o[11]!==r?(t=t=>{const e=p(t.startMs,t.endMs,l,r,u,f);return null===e?null:(0,c.jsx)(n.default,{style:[j.segment,{top:e.top,height:e.height,backgroundColor:h,opacity:.32}]},`rec_${t.startMs}_${t.endMs}`)},o[8]=u,o[9]=l,o[10]=f,o[11]=r,o[12]=t):t=o[12],y=s.map(t),o[2]=s,o[3]=u,o[4]=l,o[5]=f,o[6]=r,o[7]=y}else y=o[7];return o[13]!==M||o[14]!==y?(w=(0,c.jsx)(n.default,{style:M,children:y}),o[13]=M,o[14]=y,o[15]=w):w=o[15],w}function M(t){const o=(0,e.c)(16),{buckets:s,topMs:l,zoomIndex:r,scrollOffsetY:h,height:f,width:x}=t;let M,y,w;if(o[0]!==x?(M=[j.lane,{width:x}],o[0]=x,o[1]=M):M=o[1],o[2]!==s||o[3]!==h||o[4]!==l||o[5]!==f||o[6]!==r){let t;o[8]!==h||o[9]!==l||o[10]!==f||o[11]!==r?(t=t=>{if(t.intensity<=0)return null;const e=p(t.startMs,t.endMs,l,r,h,f);return null===e?null:(0,c.jsx)(n.default,{style:[j.segment,{top:e.top,height:e.height,backgroundColor:u,opacity:Math.max(.1,t.intensity)}]},`mot_${t.startMs}`)},o[8]=h,o[9]=l,o[10]=f,o[11]=r,o[12]=t):t=o[12],y=s.map(t),o[2]=s,o[3]=h,o[4]=l,o[5]=f,o[6]=r,o[7]=y}else y=o[7];return o[13]!==M||o[14]!==y?(w=(0,c.jsx)(n.default,{style:M,children:y}),o[13]=M,o[14]=y,o[15]=w):w=o[15],w}function y(t){const o=(0,e.c)(16),{buckets:s,topMs:l,zoomIndex:r,scrollOffsetY:h,height:u,width:x}=t;let M,y,w;if(o[0]!==x?(M=[j.lane,{width:x}],o[0]=x,o[1]=M):M=o[1],o[2]!==s||o[3]!==h||o[4]!==l||o[5]!==u||o[6]!==r){let t;o[8]!==h||o[9]!==l||o[10]!==u||o[11]!==r?(t=t=>{if(t.intensity<=0)return null;const e=p(t.startMs,t.endMs,l,r,h,u);return null===e?null:(0,c.jsx)(n.default,{style:[j.segment,{top:e.top,height:e.height,backgroundColor:f,opacity:Math.max(.1,t.intensity)}]},`aud_${t.startMs}`)},o[8]=h,o[9]=l,o[10]=u,o[11]=r,o[12]=t):t=o[12],y=s.map(t),o[2]=s,o[3]=h,o[4]=l,o[5]=u,o[6]=r,o[7]=y}else y=o[7];return o[13]!==M||o[14]!==y?(w=(0,c.jsx)(n.default,{style:M,children:y}),o[13]=M,o[14]=y,o[15]=w):w=o[15],w}const w=(0,o.memo)(function(t){const o=(0,e.c)(33),{model:s,topMs:l,zoomIndex:r,height:h,scrollOffsetY:u,width:f,showMotion:p,showAudio:w}=t,_=void 0===p||p,b=void 0===w||w,O=Math.max(1,(f-4)/3);let v,k,z,I,Y,A,D;return o[0]!==h||o[1]!==f?(v=[j.container,{width:f,height:h}],o[0]=h,o[1]=f,o[2]=v):v=o[2],o[3]!==h||o[4]!==O||o[5]!==s.recording||o[6]!==u||o[7]!==l||o[8]!==r?(k=(0,c.jsx)(x,{ranges:s.recording,topMs:l,zoomIndex:r,scrollOffsetY:u,height:h,width:O}),o[3]=h,o[4]=O,o[5]=s.recording,o[6]=u,o[7]=l,o[8]=r,o[9]=k):k=o[9],o[10]===Symbol.for("react.memo_cache_sentinel")?(z=(0,c.jsx)(n.default,{style:{width:2}}),o[10]=z):z=o[10],o[11]!==h||o[12]!==O||o[13]!==s.motion||o[14]!==u||o[15]!==_||o[16]!==l||o[17]!==r?(I=_?(0,c.jsx)(M,{buckets:s.motion,topMs:l,zoomIndex:r,scrollOffsetY:u,height:h,width:O}):(0,c.jsx)(n.default,{style:{width:O}}),o[11]=h,o[12]=O,o[13]=s.motion,o[14]=u,o[15]=_,o[16]=l,o[17]=r,o[18]=I):I=o[18],o[19]===Symbol.for("react.memo_cache_sentinel")?(Y=(0,c.jsx)(n.default,{style:{width:2}}),o[19]=Y):Y=o[19],o[20]!==h||o[21]!==O||o[22]!==s.audio||o[23]!==u||o[24]!==b||o[25]!==l||o[26]!==r?(A=b?(0,c.jsx)(y,{buckets:s.audio,topMs:l,zoomIndex:r,scrollOffsetY:u,height:h,width:O}):(0,c.jsx)(n.default,{style:{width:O}}),o[20]=h,o[21]=O,o[22]=s.audio,o[23]=u,o[24]=b,o[25]=l,o[26]=r,o[27]=A):A=o[27],o[28]!==v||o[29]!==k||o[30]!==I||o[31]!==A?(D=(0,c.jsxs)(n.default,{pointerEvents:"none",style:v,children:[k,z,I,Y,A]}),o[28]=v,o[29]=k,o[30]=I,o[31]=A,o[32]=D):D=o[32],D}),j=s.default.create({container:{flexDirection:'row',overflow:'hidden'},lane:{position:'relative',overflow:'hidden'},segment:{position:'absolute',left:0,right:0}})},3524,[15,17,20,33,3510,2589,10]);
@@ -15972,12 +15972,12 @@ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{v
15972
15972
  __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.CamerasManageScreen,{}),o[0]=u):u=o[0],u}},3551,[15,3552,10]);
15973
15973
  __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.CamerasManageScreen=function(){const e=(0,o.c)(34),{t:s}=(0,S.useTranslation)(),{colors:u}=(0,C.useTheme)(),c=(0,h.useRouter)(),{data:f,isLoading:p}=(0,v.useAllCameras)();let y;e[0]!==f?(y=void 0===f?[]:f,e[0]=f,e[1]=y):y=e[1];const j=y,{setLocalName:H,setHidden:R,setOrder:T}=(0,A.useCameraPrefs)(),[D,E]=(0,n.useState)(j);let z,L,w;e[2]!==j?(z=()=>{E(j)},L=[j],e[2]=j,e[3]=z,e[4]=L):(z=e[3],L=e[4]);(0,n.useEffect)(z,L),e[5]!==T?(w=e=>{const{data:o}=e;E(o),T(o.map(k))},e[5]=T,e[6]=w):w=e[6];const _=w;let O;e[7]!==u||e[8]!==R||e[9]!==H?(O=e=>{const{item:o,drag:n,isActive:t}=e;return(0,I.jsx)(G,{camera:o,drag:n,isActive:t,colors:u,onRename:e=>H(o.id,e),onToggleHidden:e=>R(o.id,e)})},e[7]=u,e[8]=R,e[9]=H,e[10]=O):O=e[10];const V=O;let B,W,F,K,U,q;e[11]!==u.background?(B={flex:1,backgroundColor:u.background},e[11]=u.background,e[12]=B):B=e[12];e[13]!==s?(W=s("v2.cameras.manage"),e[13]=s,e[14]=W):W=e[14];e[15]!==c?(F=()=>c.back(),e[15]=c,e[16]=F):F=e[16];e[17]!==W||e[18]!==F?(K=(0,I.jsx)(N.ScreenHeader,{title:W,onBack:F,bordered:!0}),e[17]=W,e[18]=F,e[19]=K):K=e[19];e[20]!==j||e[21]!==u.foregroundMuted||e[22]!==u.foregroundSubtle||e[23]!==u.primary||e[24]!==D||e[25]!==_||e[26]!==p||e[27]!==V||e[28]!==s?(U=p?(0,I.jsx)(t.default,{style:M.centered,children:(0,I.jsx)(b.default,{color:u.primary})}):0===j.length?(0,I.jsx)(t.default,{style:M.centered,children:(0,I.jsx)(l.default,{style:{color:u.foregroundMuted,fontSize:15},children:s("v2.cameras.empty")})}):(0,I.jsx)(x.default,{data:D,keyExtractor:P,onDragEnd:_,renderItem:V,contentContainerStyle:M.content,activationDistance:12,ListHeaderComponent:(0,I.jsx)(l.default,{style:[M.hint,{color:u.foregroundSubtle}],children:s("v2.cameras.manageHint")})}),e[20]=j,e[21]=u.foregroundMuted,e[22]=u.foregroundSubtle,e[23]=u.primary,e[24]=D,e[25]=_,e[26]=p,e[27]=V,e[28]=s,e[29]=U):U=e[29];e[30]!==U||e[31]!==B||e[32]!==K?(q=(0,I.jsxs)(t.default,{style:B,children:[K,U]}),e[30]=U,e[31]=B,e[32]=K,e[33]=q):q=e[33];return q};var o=r(d[0]),n=r(d[1]),t=e(r(d[2])),l=e(r(d[3])),s=e(r(d[4])),u=e(r(d[5])),c=e(r(d[6])),f=e(r(d[7])),b=e(r(d[8]));r(d[9]);var S=r(d[10]),h=r(d[11]),p=r(d[12]),x=e(p),y=r(d[13]),C=r(d[14]),j=r(d[15]),N=r(d[16]),v=r(d[17]),A=r(d[18]),I=r(d[19]);function P(e){return String(e.id)}function k(e){return e.id}function G(e){const f=(0,o.c)(59),{camera:b,drag:h,isActive:x,colors:C,onRename:j,onToggleHidden:N}=e,{t:v}=(0,S.useTranslation)(),[A,P]=(0,n.useState)(b.name);let k,G,H;f[0]!==b.name?(k=()=>{P(b.name)},G=[b.name],f[0]=b.name,f[1]=k,f[2]=G):(k=f[1],G=f[2]),(0,n.useEffect)(k,G),f[3]!==b.name||f[4]!==A||f[5]!==j?(H=()=>{A!==b.name&&j(A)},f[3]=b.name,f[4]=A,f[5]=j,f[6]=H):H=f[6];const R=H,T=b.name!==b.originalName,D=x?C.surfaceHover:C.surface,E=b.hidden?.55:1;let z,L,w,_;f[7]!==C.border||f[8]!==D||f[9]!==E?(z=[M.row,{backgroundColor:D,borderColor:C.border,opacity:E}],f[7]=C.border,f[8]=D,f[9]=E,f[10]=z):z=f[10],f[11]!==v?(L=v("v2.cameras.reorderHandle"),f[11]=v,f[12]=L):L=f[12],f[13]!==C.foregroundMuted?(w=(0,I.jsx)(y.GripVertical,{size:20,color:C.foregroundMuted}),f[13]=C.foregroundMuted,f[14]=w):w=f[14],f[15]!==h||f[16]!==L||f[17]!==w?(_=(0,I.jsx)(c.default,{accessibilityRole:"button",accessibilityLabel:L,onLongPress:h,delayLongPress:150,style:M.handle,children:w}),f[15]=h,f[16]=L,f[17]=w,f[18]=_):_=f[18];const O=b.online?C.success:C.foregroundDisabled;let V,B,W,F,K,U,q;f[19]!==O?(V=(0,I.jsx)(t.default,{style:[M.statusDot,{backgroundColor:O}]}),f[19]=O,f[20]=V):V=f[20],f[21]!==C.foreground?(B=[M.input,{color:C.foreground}],f[21]=C.foreground,f[22]=B):B=f[22],f[23]!==b.originalName||f[24]!==C.foregroundSubtle||f[25]!==R||f[26]!==A||f[27]!==B?(W=(0,I.jsx)(s.default,{value:A,onChangeText:P,onBlur:R,onSubmitEditing:R,returnKeyType:"done",placeholder:b.originalName,placeholderTextColor:C.foregroundSubtle,selectTextOnFocus:!0,style:B}),f[23]=b.originalName,f[24]=C.foregroundSubtle,f[25]=R,f[26]=A,f[27]=B,f[28]=W):W=f[28],f[29]!==V||f[30]!==W?(F=(0,I.jsxs)(t.default,{style:M.nameRow,children:[V,W]}),f[29]=V,f[30]=W,f[31]=F):F=f[31],f[32]!==b.originalName||f[33]!==C.foregroundSubtle||f[34]!==T?(K=T?(0,I.jsx)(l.default,{style:[M.original,{color:C.foregroundSubtle}],numberOfLines:1,children:b.originalName}):null,f[32]=b.originalName,f[33]=C.foregroundSubtle,f[34]=T,f[35]=K):K=f[35],f[36]!==F||f[37]!==K?(U=(0,I.jsxs)(t.default,{style:M.body,children:[F,K]}),f[36]=F,f[37]=K,f[38]=U):U=f[38],f[39]!==b.hidden||f[40]!==C.foregroundMuted?(q=b.hidden?(0,I.jsx)(y.EyeOff,{size:16,color:C.foregroundMuted}):null,f[39]=b.hidden,f[40]=C.foregroundMuted,f[41]=q):q=f[41];const J=!b.hidden;let Q,X,Y,Z;return f[42]!==N?(Q=e=>N(!e),f[42]=N,f[43]=Q):Q=f[43],f[44]!==C.border||f[45]!==C.primary?(X={false:C.border,true:C.primary},f[44]=C.border,f[45]=C.primary,f[46]=X):X=f[46],f[47]!==C.backgroundElevated||f[48]!==C.border||f[49]!==J||f[50]!==Q||f[51]!==X?(Y=(0,I.jsx)(u.default,{value:J,onValueChange:Q,trackColor:X,thumbColor:C.backgroundElevated,ios_backgroundColor:C.border}),f[47]=C.backgroundElevated,f[48]=C.border,f[49]=J,f[50]=Q,f[51]=X,f[52]=Y):Y=f[52],f[53]!==U||f[54]!==q||f[55]!==Y||f[56]!==z||f[57]!==_?(Z=(0,I.jsx)(p.ScaleDecorator,{children:(0,I.jsxs)(t.default,{style:z,children:[_,U,q,Y]})}),f[53]=U,f[54]=q,f[55]=Y,f[56]=z,f[57]=_,f[58]=Z):Z=f[58],Z}const M=f.default.create({centered:{flex:1,alignItems:'center',justifyContent:'center',padding:j.SPACING['2xl']},content:{padding:j.SPACING.md,gap:j.SPACING.md},hint:{fontSize:13,lineHeight:18,paddingHorizontal:j.SPACING.sm,paddingTop:j.SPACING.sm,paddingBottom:j.SPACING.md},row:{flexDirection:'row',alignItems:'center',gap:j.SPACING.lg,borderWidth:1,borderRadius:j.RADIUS.md,paddingVertical:j.SPACING.md,paddingHorizontal:j.SPACING.lg},handle:{paddingVertical:j.SPACING.sm,paddingRight:j.SPACING.xs},body:{flex:1,gap:2},nameRow:{flexDirection:'row',alignItems:'center',gap:j.SPACING.md},statusDot:{width:8,height:8,borderRadius:4},input:{flex:1,fontSize:16,fontWeight:'600',paddingVertical:0},original:{fontSize:12,marginLeft:8+j.SPACING.md}})},3552,[15,17,20,112,262,260,252,33,240,136,786,743,3553,813,2587,2589,3050,3080,3131,10]);
15974
15974
  __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 e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e},o=r(d[1]);Object.keys(o).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return o[e]}})});var c=r(d[2]);Object.keys(c).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return c[e]}})});var u=r(d[3]);Object.keys(u).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return u[e]}})});var f=r(d[4]);Object.keys(f).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return f[e]}})});var l=n.default},3553,[3554,3569,3571,3574,3575]);
15975
- __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,"default",{enumerable:!0,get:function(){return H}});var t=r(_d[0]),n=e(t),l=e(r(_d[1])),i=r(_d[2]),o=r(_d[3]),u=e(o),s=e(r(_d[4])),c=r(_d[5]),d=e(r(_d[6])),v=e(r(_d[7])),_=e(r(_d[8])),f=r(_d[9]),h=e(f),S=r(_d[10]),b=e(S),D=e(r(_d[11])),p=r(_d[12]),A=r(_d[13]),O=e(r(_d[14])),x=r(_d[15]);function I(){return I=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e},I.apply(this,arguments)}const w=u.default.createAnimatedComponent(i.FlatList),J={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs1(){const{isTouchActiveNative}=this.__closure;return isTouchActiveNative.value;}"},C={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs2(cur,prev){const{touchTranslate,activeIndexAnim,disabled,runOnJS,onRelease,onDragEnd,spacerIndexAnim}=this.__closure;if(cur!==prev&&!cur){const hasMoved=!!touchTranslate.value;if(!hasMoved&&activeIndexAnim.value>=0&&!disabled.value){runOnJS(onRelease)(activeIndexAnim.value);runOnJS(onDragEnd)({from:activeIndexAnim.value,to:spacerIndexAnim.value});}}}"},E={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs3(){const{spacerIndexAnim}=this.__closure;return spacerIndexAnim.value;}"},k={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs4(cur,prev){const{runOnJS,onPlaceholderIndexChange}=this.__closure;if(prev!==null&&cur!==prev&&cur>=0&&prev>=0){runOnJS(onPlaceholderIndexChange)(cur);}}"},T={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs5(){const{runOnJS,onContainerTouchEnd}=this.__closure;runOnJS(onContainerTouchEnd)();}"},R={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs6(){const{runOnJS,onContainerTouchStart}=this.__closure;runOnJS(onContainerTouchStart)();}"},y={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs7(evt){const{gestureDisabled,isTouchActiveNative,horizontalAnim,touchTranslate,autoScrollDistance,panGestureState,activeIndexAnim,disabled,runOnJS,onRelease,placeholderOffset,activeCellOffset,withSpring,animationConfigRef,onDragEnd,spacerIndexAnim}=this.__closure;if(gestureDisabled.value)return;isTouchActiveNative.value=false;const translation=horizontalAnim.value?evt.translationX:evt.translationY;touchTranslate.value=translation+autoScrollDistance.value;panGestureState.value=evt.state;if(activeIndexAnim.value===-1||disabled.value)return;disabled.value=true;runOnJS(onRelease)(activeIndexAnim.value);const springTo=placeholderOffset.value-activeCellOffset.value;touchTranslate.value=withSpring(springTo,animationConfigRef.value,function(){runOnJS(onDragEnd)({from:activeIndexAnim.value,to:spacerIndexAnim.value});disabled.value=false;});}"},z={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs8(evt){const{gestureDisabled,panGestureState,horizontalAnim,touchTranslate}=this.__closure;if(gestureDisabled.value)return;panGestureState.value=evt.state;const translation=horizontalAnim.value?evt.translationX:evt.translationY;touchTranslate.value=translation;}"},F={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs9(evt){const{gestureDisabled,disabled,panGestureState}=this.__closure;gestureDisabled.value=disabled.value;if(gestureDisabled.value)return;panGestureState.value=evt.state;}"},L={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs10(){const{runOnJS,onDragEnd,activeIndexAnim,spacerIndexAnim,disabled}=this.__closure;runOnJS(onDragEnd)({from:activeIndexAnim.value,to:spacerIndexAnim.value});disabled.value=false;}"},N={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs11(evt){const{scrollOffset,horizontalAnim,runOnJS,onScroll}=this.__closure;scrollOffset.value=horizontalAnim.value?evt.contentOffset.x:evt.contentOffset.y;runOnJS(onScroll)(scrollOffset.value);}"};function P(e,t){return n.default.createElement(_.default,e,n.default.createElement(h.default,null,n.default.createElement(b.default,{flatListRef:t},n.default.createElement(G,e))))}const G=(0,x.typedMemo)(function(e){const{cellDataRef:_,containerRef:h,flatlistRef:b,keyToIndexRef:x,propsRef:P,animationConfigRef:G}=(0,S.useRefs)(),{activeCellOffset:H,activeCellSize:M,activeIndexAnim:V,containerSize:j,scrollOffset:Y,scrollViewSize:U,spacerIndexAnim:X,horizontalAnim:K,placeholderOffset:B,touchTranslate:q,autoScrollDistance:Q,panGestureState:W,isTouchActiveNative:Z,viewableIndexMin:$,viewableIndexMax:ee,disabled:te}=(0,f.useAnimatedValues)(),ae=(0,A.useStableCallback)(()=>{V.value=-1,X.value=-1,q.value=0,M.value=-1,H.value=-1,oe(null)}),{dragHitSlop:ne=c.DEFAULT_PROPS.dragHitSlop,scrollEnabled:le=c.DEFAULT_PROPS.scrollEnabled,activationDistance:re=c.DEFAULT_PROPS.activationDistance}=e;let[ie,oe]=(0,t.useState)(null);const[ue,se]=(0,t.useState)(!P.current.enableLayoutAnimationExperimental),ce=(0,A.useStableCallback)((t,n)=>{if(!e.keyExtractor)throw new Error("You must provide a keyExtractor to DraggableFlatList");return e.keyExtractor(t,n)}),de=(0,t.useRef)(e.data),ve=de.current.map(ce).join("")!==e.data.map(ce).join("");de.current=e.data,ve&&(ie=null,l.default.runAfterInteractions(()=>{ae()})),(0,t.useEffect)(()=>{P.current.enableLayoutAnimationExperimental&&(ie?se(!0):setTimeout(()=>{se(!1)},100))},[ie]),(0,t.useLayoutEffect)(()=>{e.data.forEach((e,t)=>{const n=ce(e,t);x.current.set(n,t)})},[e.data,ce,x]);const fe=(0,A.useStableCallback)(e=>{if(te.value)return;const t=x.current.get(e),n=_.current.get(e);n&&(H.value=n.measurements.offset,M.value=n.measurements.size);const{onDragBegin:l}=P.current;void 0!==t&&(X.value=t,V.value=t,oe(e),null==l||l(t))}),he=(0,t.useMemo)(()=>({activeKey:ie,extraData:e.extraData}),[ie,e.extraData]),me=(0,t.useCallback)(t=>{let{item:l,index:i}=t;const o=ce(l,i);return i!==x.current.get(o)&&x.current.set(o,i),n.default.createElement(v.default,{item:l,itemKey:o,renderItem:e.renderItem,drag:fe,extraData:e.extraData})},[e.renderItem,e.extraData,fe,ce]),ge=(0,A.useStableCallback)(t=>{var n;null===(n=e.onRelease)||void 0===n||n.call(e,t)}),Se=(0,A.useStableCallback)(t=>{let{from:n,to:l}=t;const{onDragEnd:i,data:o}=e,u=[...o];n!==l&&(u.splice(n,1),u.splice(l,0,o[n])),null==i||i({from:n,to:l,data:u}),oe(null)}),be=(0,A.useStableCallback)(t=>{var n;null===(n=e.onPlaceholderIndexChange)||void 0===n||n.call(e,t)});(0,o.useAnimatedReaction)((function({_worklet_12667785060637_init_data:e,isTouchActiveNative:t}){const n=function(){return t.value};return n.__closure={isTouchActiveNative:t},n.__workletHash=0xb8572d4211d,n.__initData=e,n})({_worklet_12667785060637_init_data:J,isTouchActiveNative:Z}),(function({_worklet_3017769988260_init_data:e,touchTranslate:t,activeIndexAnim:n,disabled:l,runOnJS:i,onRelease:o,onDragEnd:u,spacerIndexAnim:s}){const c=function(e,c){if(e!==c&&!e){!!!t.value&&n.value>=0&&!l.value&&(i(o)(n.value),i(u)({from:n.value,to:s.value}))}};return c.__closure={touchTranslate:t,activeIndexAnim:n,disabled:l,runOnJS:i,onRelease:o,onDragEnd:u,spacerIndexAnim:s},c.__workletHash=3017769988260,c.__initData=e,c})({_worklet_3017769988260_init_data:C,touchTranslate:q,activeIndexAnim:V,disabled:te,runOnJS:o.runOnJS,onRelease:ge,onDragEnd:Se,spacerIndexAnim:X}),[Z,Se,ge]),(0,o.useAnimatedReaction)((function({_worklet_6176791664127_init_data:e,spacerIndexAnim:t}){const n=function(){return t.value};return n.__closure={spacerIndexAnim:t},n.__workletHash=6176791664127,n.__initData=e,n})({_worklet_6176791664127_init_data:E,spacerIndexAnim:X}),(function({_worklet_2590604232580_init_data:e,runOnJS:t,onPlaceholderIndexChange:n}){const l=function(e,l){null!==l&&e!==l&&e>=0&&l>=0&&t(n)(e)};return l.__closure={runOnJS:t,onPlaceholderIndexChange:n},l.__workletHash=2590604232580,l.__initData=e,l})({_worklet_2590604232580_init_data:k,runOnJS:o.runOnJS,onPlaceholderIndexChange:be}),[X]);const De=(0,o.useSharedValue)(!1),pe=i.Gesture.Pan().onBegin((function({_worklet_7787583163440_init_data:e,gestureDisabled:t,disabled:n,panGestureState:l}){const i=function(e){t.value=n.value,t.value||(l.value=e.state)};return i.__closure={gestureDisabled:t,disabled:n,panGestureState:l},i.__workletHash=7787583163440,i.__initData=e,i})({_worklet_7787583163440_init_data:F,gestureDisabled:De,disabled:te,panGestureState:W})).onUpdate((function({_worklet_11677334153389_init_data:e,gestureDisabled:t,panGestureState:n,horizontalAnim:l,touchTranslate:i}){const o=function(e){if(t.value)return;n.value=e.state;const o=l.value?e.translationX:e.translationY;i.value=o};return o.__closure={gestureDisabled:t,panGestureState:n,horizontalAnim:l,touchTranslate:i},o.__workletHash=0xa9ed75aa8ad,o.__initData=e,o})({_worklet_11677334153389_init_data:z,gestureDisabled:De,panGestureState:W,horizontalAnim:K,touchTranslate:q})).onEnd((function({_worklet_13600115403067_init_data:e,gestureDisabled:t,isTouchActiveNative:n,horizontalAnim:l,touchTranslate:i,autoScrollDistance:o,panGestureState:u,activeIndexAnim:s,disabled:c,runOnJS:d,onRelease:v,placeholderOffset:_,activeCellOffset:f,withSpring:h,animationConfigRef:S,onDragEnd:b,spacerIndexAnim:D}){const p=function(e){if(t.value)return;n.value=!1;const p=l.value?e.translationX:e.translationY;if(i.value=p+o.value,u.value=e.state,-1===s.value||c.value)return;c.value=!0,d(v)(s.value);const A=_.value-f.value;i.value=h(A,S.value,(function({_worklet_9458151985595_init_data:e,runOnJS:t,onDragEnd:n,activeIndexAnim:l,spacerIndexAnim:i,disabled:o}){const u=function(){t(n)({from:l.value,to:i.value}),o.value=!1};return u.__closure={runOnJS:t,onDragEnd:n,activeIndexAnim:l,spacerIndexAnim:i,disabled:o},u.__workletHash=9458151985595,u.__initData=e,u})({_worklet_9458151985595_init_data:L,runOnJS:d,onDragEnd:b,activeIndexAnim:s,spacerIndexAnim:D,disabled:c}))};return p.__closure={gestureDisabled:t,isTouchActiveNative:n,horizontalAnim:l,touchTranslate:i,autoScrollDistance:o,panGestureState:u,activeIndexAnim:s,disabled:c,runOnJS:d,onRelease:v,placeholderOffset:_,activeCellOffset:f,withSpring:h,animationConfigRef:S,onDragEnd:b,spacerIndexAnim:D},p.__workletHash=0xc5e860c293b,p.__initData=e,p})({_worklet_13600115403067_init_data:y,gestureDisabled:De,isTouchActiveNative:Z,horizontalAnim:K,touchTranslate:q,autoScrollDistance:Q,panGestureState:W,activeIndexAnim:V,disabled:te,runOnJS:o.runOnJS,onRelease:ge,placeholderOffset:B,activeCellOffset:H,withSpring:o.withSpring,animationConfigRef:G,onDragEnd:Se,spacerIndexAnim:X})).onTouchesDown((function({_worklet_2544844199545_init_data:e,runOnJS:t,onContainerTouchStart:n}){const l=function(){t(n)()};return l.__closure={runOnJS:t,onContainerTouchStart:n},l.__workletHash=2544844199545,l.__initData=e,l})({_worklet_2544844199545_init_data:R,runOnJS:o.runOnJS,onContainerTouchStart:()=>(te.value||(Z.value=!0),!1)})).onTouchesUp((function({_worklet_8529291078106_init_data:e,runOnJS:t,onContainerTouchEnd:n}){const l=function(){t(n)()};return l.__closure={runOnJS:t,onContainerTouchEnd:n},l.__workletHash=8529291078106,l.__initData=e,l})({_worklet_8529291078106_init_data:T,runOnJS:o.runOnJS,onContainerTouchEnd:()=>{Z.value=!1}}));if(ne&&pe.hitSlop(ne),re){const t=[-re,re];e.horizontal?pe.activeOffsetX(t):pe.activeOffsetY(t)}const Ae=(0,A.useStableCallback)(t=>{var n;null===(n=e.onScrollOffsetChange)||void 0===n||n.call(e,t)}),Oe=(0,o.useAnimatedScrollHandler)({onScroll:(function({_worklet_11729156081231_init_data:e,scrollOffset:t,horizontalAnim:n,runOnJS:l,onScroll:i}){const o=function(e){t.value=n.value?e.contentOffset.x:e.contentOffset.y,l(i)(t.value)};return o.__closure={scrollOffset:t,horizontalAnim:n,runOnJS:l,onScroll:i},o.__workletHash=0xaaae82e864f,o.__initData=e,o})({_worklet_11729156081231_init_data:N,scrollOffset:Y,horizontalAnim:K,runOnJS:o.runOnJS,onScroll:Ae})},[K]);(0,p.useAutoScroll)();const xe=(0,A.useStableCallback)(t=>{var n;const l=t.viewableItems.filter(e=>e.isViewable).map(e=>e.index).filter(e=>"number"==typeof e),i=Math.min(...l),o=Math.max(...l);$.value=i,ee.value=o,null===(n=e.onViewableItemsChanged)||void 0===n||n.call(e,t)});return n.default.createElement(D.default,{activeKey:ie,keyExtractor:ce,horizontal:!!e.horizontal,layoutAnimationDisabled:ue},n.default.createElement(i.GestureDetector,{gesture:pe},n.default.createElement(u.default.View,{style:e.containerStyle,ref:h,onLayout:t=>{var n;let{nativeEvent:{layout:l}}=t;const{width:i,height:o}=l;j.value=e.horizontal?i:o,null===(n=e.onContainerLayout)||void 0===n||n.call(e,{layout:l,containerRef:h})}},e.renderPlaceholder&&n.default.createElement(d.default,{renderPlaceholder:e.renderPlaceholder}),n.default.createElement(w,I({},e,{data:e.data,onViewableItemsChanged:xe,CellRendererComponent:s.default,ref:b,onContentSizeChange:(t,n)=>{var l;U.value=e.horizontal?t:n,null===(l=e.onContentSizeChange)||void 0===l||l.call(e,t,n)},scrollEnabled:!ie&&le,renderItem:me,extraData:he,keyExtractor:ce,onScroll:Oe,scrollEventThrottle:16,simultaneousHandlers:e.simultaneousHandlers,removeClippedSubviews:!1})),!!e.onScrollOffsetChange&&n.default.createElement(O.default,{onScrollOffsetChange:e.onScrollOffsetChange,scrollOffset:Y}))))});var H=n.default.forwardRef(P)},3554,[17,155,3242,2714,3555,3557,3565,3566,3560,3559,3561,3556,3567,3564,3568,3562]);
15975
+ __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,"default",{enumerable:!0,get:function(){return H}});var t=r(_d[0]),n=e(t),l=e(r(_d[1])),i=r(_d[2]),o=r(_d[3]),u=e(o),s=e(r(_d[4])),c=r(_d[5]),d=e(r(_d[6])),v=e(r(_d[7])),_=e(r(_d[8])),f=r(_d[9]),h=e(f),S=r(_d[10]),b=e(S),D=e(r(_d[11])),p=r(_d[12]),A=r(_d[13]),O=e(r(_d[14])),x=r(_d[15]);function I(){return I=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e},I.apply(this,arguments)}const w=u.default.createAnimatedComponent(i.FlatList),J={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs1(){const{isTouchActiveNative}=this.__closure;return isTouchActiveNative.value;}"},C={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs2(cur,prev){const{touchTranslate,activeIndexAnim,disabled,runOnJS,onRelease,onDragEnd,spacerIndexAnim}=this.__closure;if(cur!==prev&&!cur){const hasMoved=!!touchTranslate.value;if(!hasMoved&&activeIndexAnim.value>=0&&!disabled.value){runOnJS(onRelease)(activeIndexAnim.value);runOnJS(onDragEnd)({from:activeIndexAnim.value,to:spacerIndexAnim.value});}}}"},E={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs3(){const{spacerIndexAnim}=this.__closure;return spacerIndexAnim.value;}"},k={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs4(cur,prev){const{runOnJS,onPlaceholderIndexChange}=this.__closure;if(prev!==null&&cur!==prev&&cur>=0&&prev>=0){runOnJS(onPlaceholderIndexChange)(cur);}}"},T={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs5(){const{runOnJS,onContainerTouchEnd}=this.__closure;runOnJS(onContainerTouchEnd)();}"},R={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs6(){const{runOnJS,onContainerTouchStart}=this.__closure;runOnJS(onContainerTouchStart)();}"},y={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs7(evt){const{gestureDisabled,isTouchActiveNative,horizontalAnim,touchTranslate,autoScrollDistance,panGestureState,activeIndexAnim,disabled,runOnJS,onRelease,placeholderOffset,activeCellOffset,withSpring,animationConfigRef,onDragEnd,spacerIndexAnim}=this.__closure;if(gestureDisabled.value)return;isTouchActiveNative.value=false;const translation=horizontalAnim.value?evt.translationX:evt.translationY;touchTranslate.value=translation+autoScrollDistance.value;panGestureState.value=evt.state;if(activeIndexAnim.value===-1||disabled.value)return;disabled.value=true;runOnJS(onRelease)(activeIndexAnim.value);const springTo=placeholderOffset.value-activeCellOffset.value;touchTranslate.value=withSpring(springTo,animationConfigRef.value,function(){runOnJS(onDragEnd)({from:activeIndexAnim.value,to:spacerIndexAnim.value});disabled.value=false;});}"},z={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs8(evt){const{gestureDisabled,panGestureState,horizontalAnim,touchTranslate}=this.__closure;if(gestureDisabled.value)return;panGestureState.value=evt.state;const translation=horizontalAnim.value?evt.translationX:evt.translationY;touchTranslate.value=translation;}"},F={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs9(evt){const{gestureDisabled,disabled,panGestureState}=this.__closure;gestureDisabled.value=disabled.value;if(gestureDisabled.value)return;panGestureState.value=evt.state;}"},L={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs10(){const{runOnJS,onDragEnd,activeIndexAnim,spacerIndexAnim,disabled}=this.__closure;runOnJS(onDragEnd)({from:activeIndexAnim.value,to:spacerIndexAnim.value});disabled.value=false;}"},N={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs11(evt){const{scrollOffset,horizontalAnim,runOnJS,onScroll}=this.__closure;scrollOffset.value=horizontalAnim.value?evt.contentOffset.x:evt.contentOffset.y;runOnJS(onScroll)(scrollOffset.value);}"};function P(e,t){return n.default.createElement(_.default,e,n.default.createElement(h.default,null,n.default.createElement(b.default,{flatListRef:t},n.default.createElement(G,e))))}const G=(0,x.typedMemo)(function(e){const{cellDataRef:_,containerRef:h,flatlistRef:b,keyToIndexRef:x,propsRef:P,animationConfigRef:G}=(0,S.useRefs)(),{activeCellOffset:H,activeCellSize:M,activeIndexAnim:V,containerSize:j,scrollOffset:Y,scrollViewSize:U,spacerIndexAnim:X,horizontalAnim:K,placeholderOffset:B,touchTranslate:q,autoScrollDistance:Q,panGestureState:W,isTouchActiveNative:Z,viewableIndexMin:$,viewableIndexMax:ee,disabled:te}=(0,f.useAnimatedValues)(),ae=(0,A.useStableCallback)(()=>{V.value=-1,X.value=-1,q.value=0,M.value=-1,H.value=-1,oe(null)}),{dragHitSlop:ne=c.DEFAULT_PROPS.dragHitSlop,scrollEnabled:le=c.DEFAULT_PROPS.scrollEnabled,activationDistance:re=c.DEFAULT_PROPS.activationDistance}=e;let[ie,oe]=(0,t.useState)(null);const[ue,se]=(0,t.useState)(!P.current.enableLayoutAnimationExperimental),ce=(0,A.useStableCallback)((t,n)=>{if(!e.keyExtractor)throw new Error("You must provide a keyExtractor to DraggableFlatList");return e.keyExtractor(t,n)}),de=(0,t.useRef)(e.data),ve=de.current.map(ce).join("")!==e.data.map(ce).join("");de.current=e.data,ve&&(ie=null,l.default.runAfterInteractions(()=>{ae()})),(0,t.useEffect)(()=>{P.current.enableLayoutAnimationExperimental&&(ie?se(!0):setTimeout(()=>{se(!1)},100))},[ie]),(0,t.useLayoutEffect)(()=>{e.data.forEach((e,t)=>{const n=ce(e,t);x.current.set(n,t)})},[e.data,ce,x]);const fe=(0,A.useStableCallback)(e=>{if(te.value)return;const t=x.current.get(e),n=_.current.get(e);n&&(H.value=n.measurements.offset,M.value=n.measurements.size);const{onDragBegin:l}=P.current;void 0!==t&&(X.value=t,V.value=t,oe(e),null==l||l(t))}),he=(0,t.useMemo)(()=>({activeKey:ie,extraData:e.extraData}),[ie,e.extraData]),me=(0,t.useCallback)(t=>{let{item:l,index:i}=t;const o=ce(l,i);return i!==x.current.get(o)&&x.current.set(o,i),n.default.createElement(v.default,{item:l,itemKey:o,renderItem:e.renderItem,drag:fe,extraData:e.extraData})},[e.renderItem,e.extraData,fe,ce]),ge=(0,A.useStableCallback)(t=>{var n;null===(n=e.onRelease)||void 0===n||n.call(e,t)}),Se=(0,A.useStableCallback)(t=>{let{from:n,to:l}=t;const{onDragEnd:i,data:o}=e,u=[...o];n!==l&&(u.splice(n,1),u.splice(l,0,o[n])),null==i||i({from:n,to:l,data:u}),oe(null)}),be=(0,A.useStableCallback)(t=>{var n;null===(n=e.onPlaceholderIndexChange)||void 0===n||n.call(e,t)});(0,o.useAnimatedReaction)((function({_worklet_12667785060637_init_data:e,isTouchActiveNative:t}){const n=function(){return t.value};return n.__closure={isTouchActiveNative:t},n.__workletHash=0xb8572d4211d,n.__initData=e,n})({_worklet_12667785060637_init_data:J,isTouchActiveNative:Z}),(function({_worklet_3017769988260_init_data:e,touchTranslate:t,activeIndexAnim:n,disabled:l,runOnJS:i,onRelease:o,onDragEnd:u,spacerIndexAnim:s}){const c=function(e,c){if(e!==c&&!e){!!!t.value&&n.value>=0&&!l.value&&(i(o)(n.value),i(u)({from:n.value,to:s.value}))}};return c.__closure={touchTranslate:t,activeIndexAnim:n,disabled:l,runOnJS:i,onRelease:o,onDragEnd:u,spacerIndexAnim:s},c.__workletHash=3017769988260,c.__initData=e,c})({_worklet_3017769988260_init_data:C,touchTranslate:q,activeIndexAnim:V,disabled:te,runOnJS:o.runOnJS,onRelease:ge,onDragEnd:Se,spacerIndexAnim:X}),[Z,Se,ge]),(0,o.useAnimatedReaction)((function({_worklet_6176791664127_init_data:e,spacerIndexAnim:t}){const n=function(){return t.value};return n.__closure={spacerIndexAnim:t},n.__workletHash=6176791664127,n.__initData=e,n})({_worklet_6176791664127_init_data:E,spacerIndexAnim:X}),(function({_worklet_2590604232580_init_data:e,runOnJS:t,onPlaceholderIndexChange:n}){const l=function(e,l){null!==l&&e!==l&&e>=0&&l>=0&&t(n)(e)};return l.__closure={runOnJS:t,onPlaceholderIndexChange:n},l.__workletHash=2590604232580,l.__initData=e,l})({_worklet_2590604232580_init_data:k,runOnJS:o.runOnJS,onPlaceholderIndexChange:be}),[X]);const De=(0,o.useSharedValue)(!1),pe=i.Gesture.Pan().onBegin((function({_worklet_7787583163440_init_data:e,gestureDisabled:t,disabled:n,panGestureState:l}){const i=function(e){t.value=n.value,t.value||(l.value=e.state)};return i.__closure={gestureDisabled:t,disabled:n,panGestureState:l},i.__workletHash=7787583163440,i.__initData=e,i})({_worklet_7787583163440_init_data:F,gestureDisabled:De,disabled:te,panGestureState:W})).onUpdate((function({_worklet_11677334153389_init_data:e,gestureDisabled:t,panGestureState:n,horizontalAnim:l,touchTranslate:i}){const o=function(e){if(t.value)return;n.value=e.state;const o=l.value?e.translationX:e.translationY;i.value=o};return o.__closure={gestureDisabled:t,panGestureState:n,horizontalAnim:l,touchTranslate:i},o.__workletHash=0xa9ed75aa8ad,o.__initData=e,o})({_worklet_11677334153389_init_data:z,gestureDisabled:De,panGestureState:W,horizontalAnim:K,touchTranslate:q})).onEnd((function({_worklet_13600115403067_init_data:e,gestureDisabled:t,isTouchActiveNative:n,horizontalAnim:l,touchTranslate:i,autoScrollDistance:o,panGestureState:u,activeIndexAnim:s,disabled:c,runOnJS:d,onRelease:v,placeholderOffset:_,activeCellOffset:f,withSpring:h,animationConfigRef:S,onDragEnd:b,spacerIndexAnim:D}){const p=function(e){if(t.value)return;n.value=!1;const p=l.value?e.translationX:e.translationY;if(i.value=p+o.value,u.value=e.state,-1===s.value||c.value)return;c.value=!0,d(v)(s.value);const A=_.value-f.value;i.value=h(A,S.value,(function({_worklet_9458151985595_init_data:e,runOnJS:t,onDragEnd:n,activeIndexAnim:l,spacerIndexAnim:i,disabled:o}){const u=function(){t(n)({from:l.value,to:i.value}),o.value=!1};return u.__closure={runOnJS:t,onDragEnd:n,activeIndexAnim:l,spacerIndexAnim:i,disabled:o},u.__workletHash=9458151985595,u.__initData=e,u})({_worklet_9458151985595_init_data:L,runOnJS:d,onDragEnd:b,activeIndexAnim:s,spacerIndexAnim:D,disabled:c}))};return p.__closure={gestureDisabled:t,isTouchActiveNative:n,horizontalAnim:l,touchTranslate:i,autoScrollDistance:o,panGestureState:u,activeIndexAnim:s,disabled:c,runOnJS:d,onRelease:v,placeholderOffset:_,activeCellOffset:f,withSpring:h,animationConfigRef:S,onDragEnd:b,spacerIndexAnim:D},p.__workletHash=0xc5e860c293b,p.__initData=e,p})({_worklet_13600115403067_init_data:y,gestureDisabled:De,isTouchActiveNative:Z,horizontalAnim:K,touchTranslate:q,autoScrollDistance:Q,panGestureState:W,activeIndexAnim:V,disabled:te,runOnJS:o.runOnJS,onRelease:ge,placeholderOffset:B,activeCellOffset:H,withSpring:o.withSpring,animationConfigRef:G,onDragEnd:Se,spacerIndexAnim:X})).onTouchesDown((function({_worklet_2544844199545_init_data:e,runOnJS:t,onContainerTouchStart:n}){const l=function(){t(n)()};return l.__closure={runOnJS:t,onContainerTouchStart:n},l.__workletHash=2544844199545,l.__initData=e,l})({_worklet_2544844199545_init_data:R,runOnJS:o.runOnJS,onContainerTouchStart:()=>(te.value||(Z.value=!0),!1)})).onTouchesUp((function({_worklet_8529291078106_init_data:e,runOnJS:t,onContainerTouchEnd:n}){const l=function(){t(n)()};return l.__closure={runOnJS:t,onContainerTouchEnd:n},l.__workletHash=8529291078106,l.__initData=e,l})({_worklet_8529291078106_init_data:T,runOnJS:o.runOnJS,onContainerTouchEnd:()=>{Z.value=!1}}));if(ne&&pe.hitSlop(ne),re){const t=[-re,re];e.horizontal?pe.activeOffsetX(t):pe.activeOffsetY(t)}const Ae=(0,A.useStableCallback)(t=>{var n;null===(n=e.onScrollOffsetChange)||void 0===n||n.call(e,t)}),Oe=(0,o.useAnimatedScrollHandler)({onScroll:(function({_worklet_11729156081231_init_data:e,scrollOffset:t,horizontalAnim:n,runOnJS:l,onScroll:i}){const o=function(e){t.value=n.value?e.contentOffset.x:e.contentOffset.y,l(i)(t.value)};return o.__closure={scrollOffset:t,horizontalAnim:n,runOnJS:l,onScroll:i},o.__workletHash=0xaaae82e864f,o.__initData=e,o})({_worklet_11729156081231_init_data:N,scrollOffset:Y,horizontalAnim:K,runOnJS:o.runOnJS,onScroll:Ae})},[K]);(0,p.useAutoScroll)();const xe=(0,A.useStableCallback)(t=>{var n;const l=t.viewableItems.filter(e=>e.isViewable).map(e=>e.index).filter(e=>"number"==typeof e),i=Math.min(...l),o=Math.max(...l);$.value=i,ee.value=o,null===(n=e.onViewableItemsChanged)||void 0===n||n.call(e,t)});return n.default.createElement(D.default,{activeKey:ie,keyExtractor:ce,horizontal:!!e.horizontal,layoutAnimationDisabled:ue},n.default.createElement(i.GestureDetector,{gesture:pe},n.default.createElement(u.default.View,{style:e.containerStyle,ref:h,onLayout:t=>{var n;let{nativeEvent:{layout:l}}=t;const{width:i,height:o}=l;j.value=e.horizontal?i:o,null===(n=e.onContainerLayout)||void 0===n||n.call(e,{layout:l,containerRef:h})}},e.renderPlaceholder&&n.default.createElement(d.default,{renderPlaceholder:e.renderPlaceholder}),n.default.createElement(w,I({},e,{data:e.data,onViewableItemsChanged:xe,CellRendererComponent:s.default,ref:b,onContentSizeChange:(t,n)=>{var l;U.value=e.horizontal?t:n,null===(l=e.onContentSizeChange)||void 0===l||l.call(e,t,n)},scrollEnabled:!ie&&le,renderItem:me,extraData:he,keyExtractor:ce,onScroll:Oe,scrollEventThrottle:16,simultaneousHandlers:e.simultaneousHandlers,removeClippedSubviews:!1})),!!e.onScrollOffsetChange&&n.default.createElement(O.default,{onScrollOffsetChange:e.onScrollOffsetChange,scrollOffset:Y}))))});var H=n.default.forwardRef(P)},3554,[17,155,3241,2714,3555,3557,3565,3566,3560,3559,3561,3556,3567,3564,3568,3562]);
15976
15976
  __d(function(g,r,_i,a,m,_e,d){"use strict";const t=["item","index","onLayout","children"];function e(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return R}});var n=e(r(d[0])),o=r(d[1]),i=e(o),l=e(r(d[2])),s=r(d[3]),u=e(s),c=r(d[4]),f=r(d[5]),_=r(d[6]),h=r(d[7]),y=r(d[8]),C=r(d[9]),b=e(r(d[10])),v=r(d[11]);function L(){return L=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},L.apply(this,arguments)}const A={code:"function reactNativeDraggableFlatlist_CellRendererComponentJs1(){const{translate,isWeb,heldTanslate,activeKey,horizontalAnim}=this.__closure;if(translate.value&&!isWeb){heldTanslate.value=translate.value;}const t=activeKey?translate.value:heldTanslate.value;return{transform:[horizontalAnim.value?{translateX:t}:{translateY:t}]};}"},D={code:"function reactNativeDraggableFlatlist_CellRendererComponentJs2(t,_layoutDisabled){const{stashConfig,getStashedConfig}=this.__closure;if(!t)return;const config=global.LayoutAnimationRepository.configs[t];if(config)stashConfig(t,config);const stashedConfig=getStashedConfig(t);if(_layoutDisabled){global.LayoutAnimationRepository.removeConfig(t);}else if(stashedConfig){global.LayoutAnimationRepository.registerConfig(t,stashedConfig);}}"};var R=(0,h.typedMemo)(function(e){const{item:h,index:R,onLayout:F,children:k}=e,w=(0,n.default)(e,t),N=(0,o.useRef)(null),{cellDataRef:x,propsRef:z,containerRef:E}=(0,y.useRefs)(),{horizontalAnim:O,scrollOffset:W}=(0,C.useAnimatedValues)(),{activeKey:T,keyExtractor:K,horizontal:H,layoutAnimationDisabled:J}=(0,c.useDraggableFlatListContext)(),V=K(h,R),j=(0,s.useSharedValue)(-1),I=(0,s.useSharedValue)(-1),M=(0,s.useSharedValue)(0),P=(0,_.useCellTranslate)({cellOffset:j,cellSize:I,cellIndex:R}),U=T===V,X=(0,s.useAnimatedStyle)((function({_worklet_9493151677458_init_data:t,translate:e,isWeb:n,heldTanslate:o,activeKey:i,horizontalAnim:l}){const s=function(){e.value&&!n&&(o.value=e.value);const t=i?e.value:o.value;return{transform:[l.value?{translateX:t}:{translateY:t}]}};return s.__closure={translate:e,isWeb:n,heldTanslate:o,activeKey:i,horizontalAnim:l},s.__workletHash=9493151677458,s.__initData=t,s})({_worklet_9493151677458_init_data:A,translate:P,isWeb:f.isWeb,heldTanslate:M,activeKey:T,horizontalAnim:O}),[P,T]),Y=(0,v.useStableCallback)(()=>{const t=(t,e,n,o)=>{f.isWeb&&H&&(t+=W.value);const i=H?t:e,l=H?n:o;x.current.set(V,{measurements:{size:l,offset:i}}),I.value=l,j.value=i},e=()=>{var t;null!==(t=z.current)&&void 0!==t&&t.debug&&console.log(`## on measure fail, index: ${R}`)},n=E.current,o=N.current,i=n;o&&i&&o.measureLayout(i,t,e)}),q=(0,v.useStableCallback)(t=>{M.value=0,Y(),F&&t&&F(t)});(0,o.useEffect)(()=>{f.isWeb&&requestAnimationFrame(()=>{q()})},[R,q]);const $=(0,o.useMemo)(()=>({elevation:U?1:0,zIndex:U?999:0,flexDirection:H?"row":"column"}),[U,H]),{itemEnteringAnimation:B,itemExitingAnimation:G,itemLayoutAnimation:Q}=z.current;return(0,o.useEffect)(()=>{if(!z.current.enableLayoutAnimationExperimental)return;const t=(0,l.default)(N.current);(0,s.runOnUI)((function({_worklet_10702969925975_init_data:t,stashConfig:e,getStashedConfig:n}){const o=function(t,o){if(!t)return;const i=g.LayoutAnimationRepository.configs[t];i&&e(t,i);const l=n(t);o?g.LayoutAnimationRepository.removeConfig(t):l&&g.LayoutAnimationRepository.registerConfig(t,l)};return o.__closure={stashConfig:e,getStashedConfig:n},o.__workletHash=0x9bbfab87157,o.__initData=t,o})({_worklet_10702969925975_init_data:D,stashConfig:S,getStashedConfig:p}))(t,J)},[J]),i.default.createElement(u.default.View,L({},w,{ref:N,onLayout:q,entering:B,exiting:G,layout:z.current.enableLayoutAnimationExperimental?Q:void 0,style:[e.style,$,X],pointerEvents:T?"none":"auto"}),i.default.createElement(b.default,{isActive:U},k))});(0,s.runOnUI)((function({_worklet_4071045011151_init_data:t}){const e=function(){g.RNDFLLayoutAnimationConfigStash={}};return e.__closure={},e.__workletHash=4071045011151,e.__initData=t,e})({_worklet_4071045011151_init_data:{code:"function reactNativeDraggableFlatlist_CellRendererComponentJs3(){global.RNDFLLayoutAnimationConfigStash={};}"}}))();const S=(function({_worklet_17335747121283_init_data:t}){const e=function(t,e){g.RNDFLLayoutAnimationConfigStash||(g.RNDFLLayoutAnimationConfigStash={}),g.RNDFLLayoutAnimationConfigStash[t]=e};return e.__closure={},e.__workletHash=0xfc44b0c9083,e.__initData=t,e})({_worklet_17335747121283_init_data:{code:"function stashConfig_reactNativeDraggableFlatlist_CellRendererComponentJs4(tag,config){if(!global.RNDFLLayoutAnimationConfigStash)global.RNDFLLayoutAnimationConfigStash={};global.RNDFLLayoutAnimationConfigStash[tag]=config;}"}}),p=(function({_worklet_1208922414792_init_data:t}){const e=function(t){return g.RNDFLLayoutAnimationConfigStash?g.RNDFLLayoutAnimationConfigStash[t]:null};return e.__closure={},e.__workletHash=1208922414792,e.__initData=t,e})({_worklet_1208922414792_init_data:{code:"function getStashedConfig_reactNativeDraggableFlatlist_CellRendererComponentJs5(tag){if(!global.RNDFLLayoutAnimationConfigStash)return null;return global.RNDFLLayoutAnimationConfigStash[tag];}"}})},3555,[120,17,122,2714,3556,3557,3558,3562,3561,3559,3563,3564]);
15977
15977
  __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}}),_e.useDraggableFlatListContext=function(){const e=(0,t.useContext)(o);if(!e)throw new Error("useDraggableFlatListContext must be called within DraggableFlatListProvider");return e};var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e};const o=n.default.createContext(void 0);function l(e){let{activeKey:l,keyExtractor:u,horizontal:c,layoutAnimationDisabled:s,children:f}=e;const b=(0,t.useMemo)(()=>({activeKey:l,keyExtractor:u,horizontal:c,layoutAnimationDisabled:s}),[l,u,c,s]);return n.default.createElement(o.Provider,{value:b},f)}},3556,[17]);
15978
15978
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SCROLL_POSITION_TOLERANCE",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"DEFAULT_ANIMATION_CONFIG",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"DEFAULT_PROPS",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"isIOS",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"isAndroid",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"isWeb",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"isReanimatedV2",{enumerable:!0,get:function(){return f}}),r(d[0]);var t=r(d[1]);const n=2,o={damping:20,mass:.2,stiffness:100,overshootClamping:!1,restSpeedThreshold:.2,restDisplacementThreshold:.2},u={autoscrollThreshold:30,autoscrollSpeed:100,animationConfig:o,scrollEnabled:!0,dragHitSlop:0,activationDistance:0,dragItemOverflow:!1},l=!1,s=!1,c=!0,f=!!t.useSharedValue;if(!f)throw new Error("Your version of react-native-reanimated is too old for react-native-draggable-flatlist!")},3557,[136,2714]);
15979
15979
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useCellTranslate=function(c){let{cellIndex:f,cellSize:u,cellOffset:o}=c;const{activeIndexAnim:x,activeCellSize:A,hoverOffset:I,spacerIndexAnim:h,placeholderOffset:S,hoverAnim:O,viewableIndexMin:z,viewableIndexMax:w}=(0,t.useAnimatedValues)(),{activeKey:p}=(0,n.useDraggableFlatListContext)(),{animationConfigRef:_}=(0,v.useRefs)(),C=(0,l.useDerivedValue)((function({_worklet_14653729795643_init_data:l,cellIndex:t,activeIndexAnim:n,viewableIndexMin:v,viewableIndexMax:s,activeKey:c,hoverOffset:f,activeCellSize:u,cellOffset:o,cellSize:x,spacerIndexAnim:A,placeholderOffset:I,hoverAnim:h,withSpring:S,animationConfigRef:O}){const z=function(){const l=t===n.value,z=!l&&(t<v.value||t>s.value);if(!c||n.value<0||z)return 0;const w=t<n.value,p=t>n.value,_=f.value+u.value,C=o.value+x.value/2,b=o.value+x.value;let P=-1;if(p?_>=o.value&&_<C?P=t-1:_>=C&&_<b&&(P=t):w&&(f.value<b&&f.value>=C?P=t+1:f.value>=o.value&&f.value<C&&(P=t)),-1!==P&&P!==A.value&&(A.value=P),A.value===t){const l=p?x.value+(o.value-u.value):o.value;I.value=l}if(l)return h.value;const M=(p?t<=A.value:t>=A.value)?u.value*(p?-1:1):0;return S(M,O.value)};return z.__closure={cellIndex:t,activeIndexAnim:n,viewableIndexMin:v,viewableIndexMax:s,activeKey:c,hoverOffset:f,activeCellSize:u,cellOffset:o,cellSize:x,spacerIndexAnim:A,placeholderOffset:I,hoverAnim:h,withSpring:S,animationConfigRef:O},z.__workletHash=0xd53d65bee3b,z.__initData=l,z})({_worklet_14653729795643_init_data:s,cellIndex:f,activeIndexAnim:x,viewableIndexMin:z,viewableIndexMax:w,activeKey:p,hoverOffset:I,activeCellSize:A,cellOffset:o,cellSize:u,spacerIndexAnim:h,placeholderOffset:S,hoverAnim:O,withSpring:l.withSpring,animationConfigRef:_}),[p,f]);return C};var l=r(d[0]),t=r(d[1]),n=r(d[2]),v=r(d[3]);const s={code:"function reactNativeDraggableFlatlist_useCellTranslateJs1(){const{cellIndex,activeIndexAnim,viewableIndexMin,viewableIndexMax,activeKey,hoverOffset,activeCellSize,cellOffset,cellSize,spacerIndexAnim,placeholderOffset,hoverAnim,withSpring,animationConfigRef}=this.__closure;const isActiveCell=cellIndex===activeIndexAnim.value;const isOutsideViewableRange=!isActiveCell&&(cellIndex<viewableIndexMin.value||cellIndex>viewableIndexMax.value);if(!activeKey||activeIndexAnim.value<0||isOutsideViewableRange){return 0;}const isBeforeActive=cellIndex<activeIndexAnim.value;const isAfterActive=cellIndex>activeIndexAnim.value;const hoverPlusActiveSize=hoverOffset.value+activeCellSize.value;const offsetPlusHalfSize=cellOffset.value+cellSize.value/2;const offsetPlusSize=cellOffset.value+cellSize.value;let result=-1;if(isAfterActive){if(hoverPlusActiveSize>=cellOffset.value&&hoverPlusActiveSize<offsetPlusHalfSize){result=cellIndex-1;}else if(hoverPlusActiveSize>=offsetPlusHalfSize&&hoverPlusActiveSize<offsetPlusSize){result=cellIndex;}}else if(isBeforeActive){if(hoverOffset.value<offsetPlusSize&&hoverOffset.value>=offsetPlusHalfSize){result=cellIndex+1;}else if(hoverOffset.value>=cellOffset.value&&hoverOffset.value<offsetPlusHalfSize){result=cellIndex;}}if(result!==-1&&result!==spacerIndexAnim.value){spacerIndexAnim.value=result;}if(spacerIndexAnim.value===cellIndex){const newPlaceholderOffset=isAfterActive?cellSize.value+(cellOffset.value-activeCellSize.value):cellOffset.value;placeholderOffset.value=newPlaceholderOffset;}if(isActiveCell){return hoverAnim.value;}const shouldTranslate=isAfterActive?cellIndex<=spacerIndexAnim.value:cellIndex>=spacerIndexAnim.value;const translationAmt=shouldTranslate?activeCellSize.value*(isAfterActive?-1:1):0;return withSpring(translationAmt,animationConfigRef.value);}"}},3558,[2714,3559,3556,3561]);
15980
- __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 s}}),_e.useAnimatedValues=function(){const e=(0,t.useContext)(u);if(!e)throw new Error("useAnimatedValues must be called from within AnimatedValueProvider!");return e};var e,t=r(d[0]),l=(e=t)&&e.__esModule?e:{default:e},n=r(d[1]),o=r(d[2]),c=r(d[3]);const u=l.default.createContext(void 0);function s(e){let{children:t}=e;const n=O();return l.default.createElement(u.Provider,{value:n},t)}const v={code:"function reactNativeDraggableFlatlist_animatedValueContextJs1(){const{activeIndexAnim}=this.__closure;return activeIndexAnim.value;}"},f={code:"function reactNativeDraggableFlatlist_animatedValueContextJs2(cur,prev){const{scrollInit,scrollOffset,outerScrollInit,outerScrollOffset}=this.__closure;if(cur!==prev&&cur>=0){scrollInit.value=scrollOffset.value;outerScrollInit.value=outerScrollOffset.value;}}"},_={code:"function reactNativeDraggableFlatlist_animatedValueContextJs3(){const{isTouchActiveNative,activeIndexAnim}=this.__closure;return isTouchActiveNative.value&&activeIndexAnim.value>=0;}"},h={code:"function reactNativeDraggableFlatlist_animatedValueContextJs4(){const{isDraggingCell,scrollOffset,scrollInit,outerScrollOffset,outerScrollInit}=this.__closure;if(!isDraggingCell.value)return 0;const innerScrollDiff=scrollOffset.value-scrollInit.value;const outerScrollDiff=outerScrollOffset.value-outerScrollInit.value;const scrollDiff=innerScrollDiff+outerScrollDiff;return scrollDiff;}"},S={code:"function reactNativeDraggableFlatlist_animatedValueContextJs5(){const{isTouchActiveNative,autoScrollDistance,touchTranslate}=this.__closure;const extraTranslate=isTouchActiveNative.value?autoScrollDistance.value:0;return touchTranslate.value+extraTranslate;}"},D={code:"function reactNativeDraggableFlatlist_animatedValueContextJs6(){const{containerSize,activeCellSize,scrollOffset,touchPositionDiff,activeCellOffset,scrollViewSize,isTouchActiveNative}=this.__closure;const containerMinusActiveCell=containerSize.value-activeCellSize.value+scrollOffset.value;const offsetRelativeToScrollTop=touchPositionDiff.value+activeCellOffset.value;const constrained=Math.min(containerMinusActiveCell,Math.max(scrollOffset.value,offsetRelativeToScrollTop));const maxTranslateNegative=-activeCellOffset.value;const maxTranslatePositive=scrollViewSize.value-(activeCellOffset.value+activeCellSize.value);const constrainedBase=isTouchActiveNative.value?constrained-activeCellOffset.value:touchPositionDiff.value;return Math.min(Math.max(constrainedBase,maxTranslateNegative),maxTranslatePositive);}"},A={code:"function reactNativeDraggableFlatlist_animatedValueContextJs7(){const{activeIndexAnim,dragItemOverflow,touchPositionDiff,touchPositionDiffConstrained}=this.__closure;if(activeIndexAnim.value<0)return 0;return dragItemOverflow?touchPositionDiff.value:touchPositionDiffConstrained.value;}"},I={code:"function reactNativeDraggableFlatlist_animatedValueContextJs8(){const{hoverAnim,activeCellOffset}=this.__closure;return hoverAnim.value+activeCellOffset.value;}"},x={code:"function reactNativeDraggableFlatlist_animatedValueContextJs9(){const{activeIndexAnim,spacerIndexAnim}=this.__closure;const isHovering=activeIndexAnim.value>=0;if(!isHovering&&spacerIndexAnim.value>=0){spacerIndexAnim.value=-1;}}"};function O(){const e=(0,c.useProps)(),l=(0,n.useSharedValue)(0),u=(0,n.useSharedValue)(0),s=(0,n.useSharedValue)(0),O=(0,n.useSharedValue)(o.State.UNDETERMINED),C=(0,n.useSharedValue)(0),V=(0,n.useSharedValue)(!1),w=(0,n.useSharedValue)(0),T=(0,n.useSharedValue)(!1),N=(0,n.useSharedValue)(!!e.horizontal),k=(0,n.useSharedValue)(-1),P=(0,n.useSharedValue)(-1),z=(0,n.useSharedValue)(0),b=(0,n.useSharedValue)(0),p=(0,n.useSharedValue)(0),M=(0,n.useSharedValue)(0),H=(0,n.useSharedValue)(0),F=(0,n.useSharedValue)(0),J=e.outerScrollOffset||l,E=(0,n.useSharedValue)(0);(0,n.useAnimatedReaction)((function({_worklet_9770780663126_init_data:e,activeIndexAnim:t}){const l=function(){return t.value};return l.__closure={activeIndexAnim:t},l.__workletHash=9770780663126,l.__initData=e,l})({_worklet_9770780663126_init_data:v,activeIndexAnim:k}),(function({_worklet_2669524968831_init_data:e,scrollInit:t,scrollOffset:l,outerScrollInit:n,outerScrollOffset:o}){const c=function(e,c){e!==c&&e>=0&&(t.value=l.value,n.value=o.value)};return c.__closure={scrollInit:t,scrollOffset:l,outerScrollInit:n,outerScrollOffset:o},c.__workletHash=2669524968831,c.__initData=e,c})({_worklet_2669524968831_init_data:f,scrollInit:M,scrollOffset:p,outerScrollInit:E,outerScrollOffset:J}),[J]);const R=(0,n.useSharedValue)(0),j=(0,n.useDerivedValue)((function({_worklet_13229976984046_init_data:e,isTouchActiveNative:t,activeIndexAnim:l}){const n=function(){return t.value&&l.value>=0};return n.__closure={isTouchActiveNative:t,activeIndexAnim:l},n.__workletHash=0xc08581419ee,n.__initData=e,n})({_worklet_13229976984046_init_data:_,isTouchActiveNative:V,activeIndexAnim:k}),[]),y=(0,n.useDerivedValue)((function({_worklet_163796717909_init_data:e,isDraggingCell:t,scrollOffset:l,scrollInit:n,outerScrollOffset:o,outerScrollInit:c}){const u=function(){if(!t.value)return 0;return l.value-n.value+(o.value-c.value)};return u.__closure={isDraggingCell:t,scrollOffset:l,scrollInit:n,outerScrollOffset:o,outerScrollInit:c},u.__workletHash=163796717909,u.__initData=e,u})({_worklet_163796717909_init_data:h,isDraggingCell:j,scrollOffset:p,scrollInit:M,outerScrollOffset:J,outerScrollInit:E}),[]),B=(0,n.useDerivedValue)((function({_worklet_14268807456143_init_data:e,isTouchActiveNative:t,autoScrollDistance:l,touchTranslate:n}){const o=function(){const e=t.value?l.value:0;return n.value+e};return o.__closure={isTouchActiveNative:t,autoScrollDistance:l,touchTranslate:n},o.__workletHash=0xcfa3733258f,o.__initData=e,o})({_worklet_14268807456143_init_data:S,isTouchActiveNative:V,autoScrollDistance:y,touchTranslate:C}),[]),G=(0,n.useDerivedValue)((function({_worklet_2161134542663_init_data:e,containerSize:t,activeCellSize:l,scrollOffset:n,touchPositionDiff:o,activeCellOffset:c,scrollViewSize:u,isTouchActiveNative:s}){const v=function(){const e=t.value-l.value+n.value,v=o.value+c.value,f=Math.min(e,Math.max(n.value,v)),_=-c.value,h=u.value-(c.value+l.value),S=s.value?f-c.value:o.value;return Math.min(Math.max(S,_),h)};return v.__closure={containerSize:t,activeCellSize:l,scrollOffset:n,touchPositionDiff:o,activeCellOffset:c,scrollViewSize:u,isTouchActiveNative:s},v.__workletHash=2161134542663,v.__initData=e,v})({_worklet_2161134542663_init_data:D,containerSize:u,activeCellSize:z,scrollOffset:p,touchPositionDiff:B,activeCellOffset:b,scrollViewSize:s,isTouchActiveNative:V}),[]),U=e.dragItemOverflow,q=(0,n.useDerivedValue)((function({_worklet_5411143051866_init_data:e,activeIndexAnim:t,dragItemOverflow:l,touchPositionDiff:n,touchPositionDiffConstrained:o}){const c=function(){return t.value<0?0:l?n.value:o.value};return c.__closure={activeIndexAnim:t,dragItemOverflow:l,touchPositionDiff:n,touchPositionDiffConstrained:o},c.__workletHash=5411143051866,c.__initData=e,c})({_worklet_5411143051866_init_data:A,activeIndexAnim:k,dragItemOverflow:U,touchPositionDiff:B,touchPositionDiffConstrained:G}),[]),K=(0,n.useDerivedValue)((function({_worklet_7836450724061_init_data:e,hoverAnim:t,activeCellOffset:l}){const n=function(){return t.value+l.value};return n.__closure={hoverAnim:t,activeCellOffset:l},n.__workletHash=7836450724061,n.__initData=e,n})({_worklet_7836450724061_init_data:I,hoverAnim:q,activeCellOffset:b}),[q,b]);(0,n.useDerivedValue)((function({_worklet_12000071238288_init_data:e,activeIndexAnim:t,spacerIndexAnim:l}){const n=function(){!(t.value>=0)&&l.value>=0&&(l.value=-1)};return n.__closure={activeIndexAnim:t,spacerIndexAnim:l},n.__workletHash=0xae9fbfbc290,n.__initData=e,n})({_worklet_12000071238288_init_data:x,activeIndexAnim:k,spacerIndexAnim:P}),[]);const L=(0,t.useCallback)(()=>{b.value=0,w.value=0},[]),Q=(0,t.useMemo)(()=>({activeCellOffset:b,activeCellSize:z,activeIndexAnim:k,containerSize:u,disabled:T,horizontalAnim:N,hoverAnim:q,hoverOffset:K,isDraggingCell:j,isTouchActiveNative:V,panGestureState:O,placeholderOffset:R,resetTouchedCell:L,scrollOffset:p,scrollViewSize:s,spacerIndexAnim:P,touchPositionDiff:B,touchTranslate:C,autoScrollDistance:y,viewableIndexMin:H,viewableIndexMax:F}),[b,z,k,u,T,N,q,K,j,V,O,R,L,p,s,P,B,C,y,H,F]);return(0,t.useEffect)(()=>{var t;null===(t=e.onAnimValInit)||void 0===t||t.call(e,Q)},[Q]),Q}},3559,[17,2714,3242,3560]);
15980
+ __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 s}}),_e.useAnimatedValues=function(){const e=(0,t.useContext)(u);if(!e)throw new Error("useAnimatedValues must be called from within AnimatedValueProvider!");return e};var e,t=r(d[0]),l=(e=t)&&e.__esModule?e:{default:e},n=r(d[1]),o=r(d[2]),c=r(d[3]);const u=l.default.createContext(void 0);function s(e){let{children:t}=e;const n=O();return l.default.createElement(u.Provider,{value:n},t)}const v={code:"function reactNativeDraggableFlatlist_animatedValueContextJs1(){const{activeIndexAnim}=this.__closure;return activeIndexAnim.value;}"},f={code:"function reactNativeDraggableFlatlist_animatedValueContextJs2(cur,prev){const{scrollInit,scrollOffset,outerScrollInit,outerScrollOffset}=this.__closure;if(cur!==prev&&cur>=0){scrollInit.value=scrollOffset.value;outerScrollInit.value=outerScrollOffset.value;}}"},_={code:"function reactNativeDraggableFlatlist_animatedValueContextJs3(){const{isTouchActiveNative,activeIndexAnim}=this.__closure;return isTouchActiveNative.value&&activeIndexAnim.value>=0;}"},h={code:"function reactNativeDraggableFlatlist_animatedValueContextJs4(){const{isDraggingCell,scrollOffset,scrollInit,outerScrollOffset,outerScrollInit}=this.__closure;if(!isDraggingCell.value)return 0;const innerScrollDiff=scrollOffset.value-scrollInit.value;const outerScrollDiff=outerScrollOffset.value-outerScrollInit.value;const scrollDiff=innerScrollDiff+outerScrollDiff;return scrollDiff;}"},S={code:"function reactNativeDraggableFlatlist_animatedValueContextJs5(){const{isTouchActiveNative,autoScrollDistance,touchTranslate}=this.__closure;const extraTranslate=isTouchActiveNative.value?autoScrollDistance.value:0;return touchTranslate.value+extraTranslate;}"},D={code:"function reactNativeDraggableFlatlist_animatedValueContextJs6(){const{containerSize,activeCellSize,scrollOffset,touchPositionDiff,activeCellOffset,scrollViewSize,isTouchActiveNative}=this.__closure;const containerMinusActiveCell=containerSize.value-activeCellSize.value+scrollOffset.value;const offsetRelativeToScrollTop=touchPositionDiff.value+activeCellOffset.value;const constrained=Math.min(containerMinusActiveCell,Math.max(scrollOffset.value,offsetRelativeToScrollTop));const maxTranslateNegative=-activeCellOffset.value;const maxTranslatePositive=scrollViewSize.value-(activeCellOffset.value+activeCellSize.value);const constrainedBase=isTouchActiveNative.value?constrained-activeCellOffset.value:touchPositionDiff.value;return Math.min(Math.max(constrainedBase,maxTranslateNegative),maxTranslatePositive);}"},A={code:"function reactNativeDraggableFlatlist_animatedValueContextJs7(){const{activeIndexAnim,dragItemOverflow,touchPositionDiff,touchPositionDiffConstrained}=this.__closure;if(activeIndexAnim.value<0)return 0;return dragItemOverflow?touchPositionDiff.value:touchPositionDiffConstrained.value;}"},I={code:"function reactNativeDraggableFlatlist_animatedValueContextJs8(){const{hoverAnim,activeCellOffset}=this.__closure;return hoverAnim.value+activeCellOffset.value;}"},x={code:"function reactNativeDraggableFlatlist_animatedValueContextJs9(){const{activeIndexAnim,spacerIndexAnim}=this.__closure;const isHovering=activeIndexAnim.value>=0;if(!isHovering&&spacerIndexAnim.value>=0){spacerIndexAnim.value=-1;}}"};function O(){const e=(0,c.useProps)(),l=(0,n.useSharedValue)(0),u=(0,n.useSharedValue)(0),s=(0,n.useSharedValue)(0),O=(0,n.useSharedValue)(o.State.UNDETERMINED),C=(0,n.useSharedValue)(0),V=(0,n.useSharedValue)(!1),w=(0,n.useSharedValue)(0),T=(0,n.useSharedValue)(!1),N=(0,n.useSharedValue)(!!e.horizontal),k=(0,n.useSharedValue)(-1),P=(0,n.useSharedValue)(-1),z=(0,n.useSharedValue)(0),b=(0,n.useSharedValue)(0),p=(0,n.useSharedValue)(0),M=(0,n.useSharedValue)(0),H=(0,n.useSharedValue)(0),F=(0,n.useSharedValue)(0),J=e.outerScrollOffset||l,E=(0,n.useSharedValue)(0);(0,n.useAnimatedReaction)((function({_worklet_9770780663126_init_data:e,activeIndexAnim:t}){const l=function(){return t.value};return l.__closure={activeIndexAnim:t},l.__workletHash=9770780663126,l.__initData=e,l})({_worklet_9770780663126_init_data:v,activeIndexAnim:k}),(function({_worklet_2669524968831_init_data:e,scrollInit:t,scrollOffset:l,outerScrollInit:n,outerScrollOffset:o}){const c=function(e,c){e!==c&&e>=0&&(t.value=l.value,n.value=o.value)};return c.__closure={scrollInit:t,scrollOffset:l,outerScrollInit:n,outerScrollOffset:o},c.__workletHash=2669524968831,c.__initData=e,c})({_worklet_2669524968831_init_data:f,scrollInit:M,scrollOffset:p,outerScrollInit:E,outerScrollOffset:J}),[J]);const R=(0,n.useSharedValue)(0),j=(0,n.useDerivedValue)((function({_worklet_13229976984046_init_data:e,isTouchActiveNative:t,activeIndexAnim:l}){const n=function(){return t.value&&l.value>=0};return n.__closure={isTouchActiveNative:t,activeIndexAnim:l},n.__workletHash=0xc08581419ee,n.__initData=e,n})({_worklet_13229976984046_init_data:_,isTouchActiveNative:V,activeIndexAnim:k}),[]),y=(0,n.useDerivedValue)((function({_worklet_163796717909_init_data:e,isDraggingCell:t,scrollOffset:l,scrollInit:n,outerScrollOffset:o,outerScrollInit:c}){const u=function(){if(!t.value)return 0;return l.value-n.value+(o.value-c.value)};return u.__closure={isDraggingCell:t,scrollOffset:l,scrollInit:n,outerScrollOffset:o,outerScrollInit:c},u.__workletHash=163796717909,u.__initData=e,u})({_worklet_163796717909_init_data:h,isDraggingCell:j,scrollOffset:p,scrollInit:M,outerScrollOffset:J,outerScrollInit:E}),[]),B=(0,n.useDerivedValue)((function({_worklet_14268807456143_init_data:e,isTouchActiveNative:t,autoScrollDistance:l,touchTranslate:n}){const o=function(){const e=t.value?l.value:0;return n.value+e};return o.__closure={isTouchActiveNative:t,autoScrollDistance:l,touchTranslate:n},o.__workletHash=0xcfa3733258f,o.__initData=e,o})({_worklet_14268807456143_init_data:S,isTouchActiveNative:V,autoScrollDistance:y,touchTranslate:C}),[]),G=(0,n.useDerivedValue)((function({_worklet_2161134542663_init_data:e,containerSize:t,activeCellSize:l,scrollOffset:n,touchPositionDiff:o,activeCellOffset:c,scrollViewSize:u,isTouchActiveNative:s}){const v=function(){const e=t.value-l.value+n.value,v=o.value+c.value,f=Math.min(e,Math.max(n.value,v)),_=-c.value,h=u.value-(c.value+l.value),S=s.value?f-c.value:o.value;return Math.min(Math.max(S,_),h)};return v.__closure={containerSize:t,activeCellSize:l,scrollOffset:n,touchPositionDiff:o,activeCellOffset:c,scrollViewSize:u,isTouchActiveNative:s},v.__workletHash=2161134542663,v.__initData=e,v})({_worklet_2161134542663_init_data:D,containerSize:u,activeCellSize:z,scrollOffset:p,touchPositionDiff:B,activeCellOffset:b,scrollViewSize:s,isTouchActiveNative:V}),[]),U=e.dragItemOverflow,q=(0,n.useDerivedValue)((function({_worklet_5411143051866_init_data:e,activeIndexAnim:t,dragItemOverflow:l,touchPositionDiff:n,touchPositionDiffConstrained:o}){const c=function(){return t.value<0?0:l?n.value:o.value};return c.__closure={activeIndexAnim:t,dragItemOverflow:l,touchPositionDiff:n,touchPositionDiffConstrained:o},c.__workletHash=5411143051866,c.__initData=e,c})({_worklet_5411143051866_init_data:A,activeIndexAnim:k,dragItemOverflow:U,touchPositionDiff:B,touchPositionDiffConstrained:G}),[]),K=(0,n.useDerivedValue)((function({_worklet_7836450724061_init_data:e,hoverAnim:t,activeCellOffset:l}){const n=function(){return t.value+l.value};return n.__closure={hoverAnim:t,activeCellOffset:l},n.__workletHash=7836450724061,n.__initData=e,n})({_worklet_7836450724061_init_data:I,hoverAnim:q,activeCellOffset:b}),[q,b]);(0,n.useDerivedValue)((function({_worklet_12000071238288_init_data:e,activeIndexAnim:t,spacerIndexAnim:l}){const n=function(){!(t.value>=0)&&l.value>=0&&(l.value=-1)};return n.__closure={activeIndexAnim:t,spacerIndexAnim:l},n.__workletHash=0xae9fbfbc290,n.__initData=e,n})({_worklet_12000071238288_init_data:x,activeIndexAnim:k,spacerIndexAnim:P}),[]);const L=(0,t.useCallback)(()=>{b.value=0,w.value=0},[]),Q=(0,t.useMemo)(()=>({activeCellOffset:b,activeCellSize:z,activeIndexAnim:k,containerSize:u,disabled:T,horizontalAnim:N,hoverAnim:q,hoverOffset:K,isDraggingCell:j,isTouchActiveNative:V,panGestureState:O,placeholderOffset:R,resetTouchedCell:L,scrollOffset:p,scrollViewSize:s,spacerIndexAnim:P,touchPositionDiff:B,touchTranslate:C,autoScrollDistance:y,viewableIndexMin:H,viewableIndexMax:F}),[b,z,k,u,T,N,q,K,j,V,O,R,L,p,s,P,B,C,y,H,F]);return(0,t.useEffect)(()=>{var t;null===(t=e.onAnimValInit)||void 0===t||t.call(e,Q)},[Q]),Q}},3559,[17,2714,3241,3560]);
15981
15981
  __d(function(g,r,i,a,m,_e,d){"use strict";const e=["children"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return l}}),_e.useProps=function(){const e=(0,u.useContext)(c);if(!e)throw new Error("useProps must be called from within PropsProvider!");return e};var n=t(r(d[0])),u=r(d[1]),o=t(u);const c=o.default.createContext(void 0);function l(t){let{children:u}=t,l=(0,n.default)(t,e);return o.default.createElement(c.Provider,{value:l},u)}},3560,[120,17]);
15982
15982
  __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}}),_e.useRefs=function(){const e=(0,t.useContext)(s);if(!e)throw new Error("useRefs must be called from within a RefContext.Provider!");return e};var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e},f=r(d[1]),u=r(d[2]),o=r(d[3]);const s=n.default.createContext(void 0);function l(e){let{children:t,flatListRef:f}=e;const u=c({flatListRef:f});return n.default.createElement(s.Provider,{value:u},t)}function c(e){let{flatListRef:n}=e;const s=(0,o.useProps)(),{animationConfig:l=u.DEFAULT_PROPS.animationConfig}=s,c=(0,t.useRef)(s);c.current=s;const R=(0,t.useMemo)(()=>Object.assign({},u.DEFAULT_PROPS.animationConfig,l),[l]),P=(0,f.useSharedValue)(R);(0,t.useEffect)(()=>{P.value=R},[R]);const _=(0,t.useRef)(new Map),p=(0,t.useRef)(new Map),v=(0,t.useRef)(null),C=(0,t.useRef)(null),w=n||C,M=(0,t.useRef)(null);return(0,t.useMemo)(()=>({animationConfigRef:P,cellDataRef:_,containerRef:v,flatlistRef:w,keyToIndexRef:p,propsRef:c,scrollViewRef:M}),[])}},3561,[17,2714,3557,3560]);
15983
15983
  __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"typedMemo",{enumerable:!0,get:function(){return u}});var e,t=r(d[0]);const u=((e=t)&&e.__esModule?e:{default:e}).default.memo},3562,[17]);
@@ -15992,13 +15992,13 @@ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{v
15992
15992
  __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,"NestableDraggableFlatList",{enumerable:!0,get:function(){return _}});var t=r(d[0]),l=e(t),n=e(r(d[1])),s=e(r(d[2])),o=r(d[3]),i=e(r(d[4])),u=r(d[5]),c=r(d[6]),f=r(d[7]);function v(){return v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e},v.apply(this,arguments)}const b={code:"function reactNativeDraggableFlatlist_NestableDraggableFlatListJs1(){const{listHoverOffset,listVerticalOffset}=this.__closure;return listHoverOffset.value+listVerticalOffset.value;}"};function O(e,O){const _=(0,t.useRef)(!1);_.current||(s.default.ignoreLogs(["VirtualizedLists should never be nested inside plain ScrollViews with the same orientation because it can break windowing"]),console.reportErrorsAsExceptions=!1,_.current=!0);const{scrollableRef:S,outerScrollOffset:h,setOuterScrollEnabled:V}=(0,u.useSafeNestableScrollContainerContext)(),D=(0,o.useSharedValue)(0),[p,w]=(0,t.useState)({}),k=(0,o.useSharedValue)(0),[y,C]=(0,t.useState)(k),E=(0,o.useDerivedValue)((function({_worklet_13500071611033_init_data:e,listHoverOffset:t,listVerticalOffset:l}){const n=function(){return t.value+l.value};return n.__closure={listHoverOffset:t,listVerticalOffset:l},n.__workletHash=0xc473af90a99,n.__initData=e,n})({_worklet_13500071611033_init_data:b,listHoverOffset:y,listVerticalOffset:D}),[y]);(0,c.useNestedAutoScroll)(Object.assign({},p,{hoverOffset:E}));const j=(0,f.useStableCallback)(async e=>{let{containerRef:t}=e;const l=(0,n.default)(S.current);t.current.measureLayout(l,(e,t)=>{D.value=t},()=>{console.log("## nested draggable list measure fail")})}),H=(0,f.useStableCallback)(t=>{var l;V(!1),null===(l=e.onDragBegin)||void 0===l||l.call(e,t)}),L=(0,f.useStableCallback)(t=>{var l;V(!0),null===(l=e.onDragEnd)||void 0===l||l.call(e,t)}),N=(0,f.useStableCallback)(t=>{var l;C(t.hoverOffset),w(Object.assign({},t,{hoverOffset:E})),null===(l=e.onAnimValInit)||void 0===l||l.call(e,t)});return l.default.createElement(i.default,v({ref:O,onContainerLayout:j,activationDistance:e.activationDistance||20,scrollEnabled:!1},e,{outerScrollOffset:h,onDragBegin:H,onDragEnd:L,onAnimValInit:N}))}const _=l.default.forwardRef(O)},3571,[17,122,273,2714,3554,3572,3573,3564]);
15993
15993
  __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.NestableScrollContainerProvider=function(e){let{children:t,forwardedRef:o}=e;const s=u({forwardedRef:o});return l.default.createElement(n.Provider,{value:s},t)},_e.useNestableScrollContainerContext=s,_e.useSafeNestableScrollContainerContext=function(){const e=s();if(!e)throw new Error("useSafeNestableScrollContainerContext must be called within a NestableScrollContainerContext.Provider");return e};var e,t=r(d[0]),l=(e=t)&&e.__esModule?e:{default:e},o=r(d[1]);const n=l.default.createContext(void 0);function u(e){let{forwardedRef:l}=e;const[n,u]=(0,t.useState)(!0),s=(0,o.useSharedValue)(0),c=(0,t.useRef)(null),f=l||c,S=(0,o.useSharedValue)(0),C=(0,o.useSharedValue)(0);return(0,t.useMemo)(()=>({outerScrollEnabled:n,setOuterScrollEnabled:u,outerScrollOffset:S,scrollViewSize:s,scrollableRef:f,containerSize:C}),[n])}function s(){return(0,t.useContext)(n)}},3572,[17,2714]);
15994
15994
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useNestedAutoScroll=function(h){const{outerScrollOffset:E,containerSize:N,scrollableRef:C,scrollViewSize:L}=(0,o.useSafeNestableScrollContainerContext)(),A=(0,t.useSharedValue)(0),{hoverOffset:D=A,activeCellSize:I=A,autoscrollSpeed:w=100,autoscrollThreshold:R=30,isDraggingCell:p=A,isTouchActiveNative:k=A}=h,b=(0,t.useDerivedValue)((function({_worklet_1881896633941_init_data:t,hoverOffset:o,outerScrollOffset:l}){const s=function(){return o.value-l.value};return s.__closure={hoverOffset:o,outerScrollOffset:l},s.__workletHash=1881896633941,s.__initData=t,s})({_worklet_1881896633941_init_data:s,hoverOffset:D,outerScrollOffset:E}),[]),z=(0,t.useDerivedValue)((function({_worklet_4729636409762_init_data:t,outerScrollOffset:o,SCROLL_POSITION_TOLERANCE:l}){const s=function(){return o.value-l<=0};return s.__closure={outerScrollOffset:o,SCROLL_POSITION_TOLERANCE:l},s.__workletHash=4729636409762,s.__initData=t,s})({_worklet_4729636409762_init_data:c,outerScrollOffset:E,SCROLL_POSITION_TOLERANCE:l.SCROLL_POSITION_TOLERANCE}),[]),P=(0,t.useDerivedValue)((function({_worklet_6931217787228_init_data:t,outerScrollOffset:o,containerSize:l,SCROLL_POSITION_TOLERANCE:s,scrollViewSize:c}){const u=function(){return o.value+l.value+s>=c.value};return u.__closure={outerScrollOffset:o,containerSize:l,SCROLL_POSITION_TOLERANCE:s,scrollViewSize:c},u.__workletHash=6931217787228,u.__initData=t,u})({_worklet_6931217787228_init_data:u,outerScrollOffset:E,containerSize:N,SCROLL_POSITION_TOLERANCE:l.SCROLL_POSITION_TOLERANCE,scrollViewSize:L}),[]),B=(0,t.useDerivedValue)((function({_worklet_14157162290883_init_data:t,hoverScreenOffset:o}){const l=function(){return Math.max(0,o.value)};return l.__closure={hoverScreenOffset:o},l.__workletHash=0xce038a11ec3,l.__initData=t,l})({_worklet_14157162290883_init_data:n,hoverScreenOffset:b}),[b]),J=(0,t.useDerivedValue)((function({_worklet_6156973048070_init_data:t,containerSize:o,hoverScreenOffset:l,activeCellSize:s}){const c=function(){const t=o.value-(l.value+s.value);return Math.max(0,t)};return c.__closure={containerSize:o,hoverScreenOffset:l,activeCellSize:s},c.__workletHash=6156973048070,c.__initData=t,c})({_worklet_6156973048070_init_data:_,containerSize:N,hoverScreenOffset:b,activeCellSize:I}),[b,I,N]),V=(0,t.useDerivedValue)((function({_worklet_11726045427259_init_data:t,distToTopEdge:o,autoscrollThreshold:l}){const s=function(){return o.value<=l};return s.__closure={distToTopEdge:o,autoscrollThreshold:l},s.__workletHash=0xaaa2ec5b63b,s.__initData=t,s})({_worklet_11726045427259_init_data:f,distToTopEdge:B,autoscrollThreshold:R}),[]),x=(0,t.useDerivedValue)((function({_worklet_7914873790874_init_data:t,distToBottomEdge:o,autoscrollThreshold:l}){const s=function(){return o.value<=l};return s.__closure={distToBottomEdge:o,autoscrollThreshold:l},s.__workletHash=7914873790874,s.__initData=t,s})({_worklet_7914873790874_init_data:S,distToBottomEdge:J,autoscrollThreshold:R})),F=(0,t.useSharedValue)(0);return(0,t.useAnimatedReaction)((function({_worklet_14021221439128_init_data:t,isDraggingCell:o}){const l=function(){return o.value};return l.__closure={isDraggingCell:o},l.__workletHash=0xcc091ec5698,l.__initData=t,l})({_worklet_14021221439128_init_data:O,isDraggingCell:p}),(function({_worklet_17362022355714_init_data:t,scrollTarget:o,outerScrollOffset:l}){const s=function(t,s){t&&!s&&(o.value=l.value)};return s.__closure={scrollTarget:o,outerScrollOffset:l},s.__workletHash=0xfca692cd302,s.__initData=t,s})({_worklet_17362022355714_init_data:v,scrollTarget:F,outerScrollOffset:E}),[I]),(0,t.useDerivedValue)((function({_worklet_15221845355323_init_data:t,isAtTopEdge:o,isAtBottomEdge:l,isScrolledUp:s,isScrolledDown:c,scrollTarget:u,outerScrollOffset:n,SCROLL_POSITION_TOLERANCE:_,isDraggingCell:f,isTouchActiveNative:S,distToTopEdge:O,distToBottomEdge:v,autoscrollThreshold:T,autoscrollSpeed:h,runOnJS:E,scrollToInternal:N}){const C=function(){const t=o.value||l.value,C=o.value&&s.value,L=l.value&&c.value,A=C||L,D=Math.abs(u.value-n.value)>_,I=t&&!A&&f.value&&S.value&&!D,w=(1-(o.value?O.value:v.value)/T)*h,R=o.value?Math.max(0,n.value-w):n.value+w;I&&(u.value=R,E(N)(R))};return C.__closure={isAtTopEdge:o,isAtBottomEdge:l,isScrolledUp:s,isScrolledDown:c,scrollTarget:u,outerScrollOffset:n,SCROLL_POSITION_TOLERANCE:_,isDraggingCell:f,isTouchActiveNative:S,distToTopEdge:O,distToBottomEdge:v,autoscrollThreshold:T,autoscrollSpeed:h,runOnJS:E,scrollToInternal:N},C.__workletHash=0xdd81caf6b3b,C.__initData=t,C})({_worklet_15221845355323_init_data:T,isAtTopEdge:V,isAtBottomEdge:x,isScrolledUp:z,isScrolledDown:P,scrollTarget:F,outerScrollOffset:E,SCROLL_POSITION_TOLERANCE:l.SCROLL_POSITION_TOLERANCE,isDraggingCell:p,isTouchActiveNative:k,distToTopEdge:B,distToBottomEdge:J,autoscrollThreshold:R,autoscrollSpeed:w,runOnJS:t.runOnJS,scrollToInternal:function(t){var o;null===(o=C.current)||void 0===o||o.scrollTo({y:t,animated:!0})}}),[w,R,p]),null};var t=r(d[0]),o=r(d[1]),l=r(d[2]);const s={code:"function reactNativeDraggableFlatlist_useNestedAutoScrollJs1(){const{hoverOffset,outerScrollOffset}=this.__closure;return hoverOffset.value-outerScrollOffset.value;}"},c={code:"function reactNativeDraggableFlatlist_useNestedAutoScrollJs2(){const{outerScrollOffset,SCROLL_POSITION_TOLERANCE}=this.__closure;return outerScrollOffset.value-SCROLL_POSITION_TOLERANCE<=0;}"},u={code:"function reactNativeDraggableFlatlist_useNestedAutoScrollJs3(){const{outerScrollOffset,containerSize,SCROLL_POSITION_TOLERANCE,scrollViewSize}=this.__closure;return outerScrollOffset.value+containerSize.value+SCROLL_POSITION_TOLERANCE>=scrollViewSize.value;}"},n={code:"function reactNativeDraggableFlatlist_useNestedAutoScrollJs4(){const{hoverScreenOffset}=this.__closure;return Math.max(0,hoverScreenOffset.value);}"},_={code:"function reactNativeDraggableFlatlist_useNestedAutoScrollJs5(){const{containerSize,hoverScreenOffset,activeCellSize}=this.__closure;const dist=containerSize.value-(hoverScreenOffset.value+activeCellSize.value);return Math.max(0,dist);}"},f={code:"function reactNativeDraggableFlatlist_useNestedAutoScrollJs6(){const{distToTopEdge,autoscrollThreshold}=this.__closure;return distToTopEdge.value<=autoscrollThreshold;}"},S={code:"function reactNativeDraggableFlatlist_useNestedAutoScrollJs7(){const{distToBottomEdge,autoscrollThreshold}=this.__closure;return distToBottomEdge.value<=autoscrollThreshold;}"},O={code:"function reactNativeDraggableFlatlist_useNestedAutoScrollJs8(){const{isDraggingCell}=this.__closure;return isDraggingCell.value;}"},v={code:"function reactNativeDraggableFlatlist_useNestedAutoScrollJs9(cur,prev){const{scrollTarget,outerScrollOffset}=this.__closure;if(cur&&!prev){scrollTarget.value=outerScrollOffset.value;}}"},T={code:"function reactNativeDraggableFlatlist_useNestedAutoScrollJs10(){const{isAtTopEdge,isAtBottomEdge,isScrolledUp,isScrolledDown,scrollTarget,outerScrollOffset,SCROLL_POSITION_TOLERANCE,isDraggingCell,isTouchActiveNative,distToTopEdge,distToBottomEdge,autoscrollThreshold,autoscrollSpeed,runOnJS,scrollToInternal}=this.__closure;const isAtEdge=isAtTopEdge.value||isAtBottomEdge.value;const topDisabled=isAtTopEdge.value&&isScrolledUp.value;const bottomDisabled=isAtBottomEdge.value&&isScrolledDown.value;const isEdgeDisabled=topDisabled||bottomDisabled;const scrollTargetDiff=Math.abs(scrollTarget.value-outerScrollOffset.value);const scrollInProgress=scrollTargetDiff>SCROLL_POSITION_TOLERANCE;const shouldScroll=isAtEdge&&!isEdgeDisabled&&isDraggingCell.value&&isTouchActiveNative.value&&!scrollInProgress;const distFromEdge=isAtTopEdge.value?distToTopEdge.value:distToBottomEdge.value;const speedPct=1-distFromEdge/autoscrollThreshold;const offset=speedPct*autoscrollSpeed;const targetOffset=isAtTopEdge.value?Math.max(0,outerScrollOffset.value-offset):outerScrollOffset.value+offset;if(shouldScroll){scrollTarget.value=targetOffset;runOnJS(scrollToInternal)(targetOffset);}}"}},3573,[2714,3572,3557]);
15995
- __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,"NestableScrollContainer",{enumerable:!0,get:function(){return S}});var t=e(r(d[0])),l=r(d[1]),n=r(d[2]),o=e(n),c=r(d[3]),f=r(d[4]);function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e},u.apply(this,arguments)}const i=o.default.createAnimatedComponent(l.ScrollView),s={code:"function reactNativeDraggableFlatlist_NestableScrollContainerJs1(_ref){const{outerScrollOffset}=this.__closure;let{contentOffset:contentOffset}=_ref;outerScrollOffset.value=contentOffset.y;}"};function _(e){const{outerScrollOffset:l,containerSize:o,scrollViewSize:_,scrollableRef:S,outerScrollEnabled:b}=(0,c.useSafeNestableScrollContainerContext)(),v=(0,n.useAnimatedScrollHandler)({onScroll:(function({_worklet_8746208410386_init_data:e,outerScrollOffset:t}){const l=function(e){let{contentOffset:l}=e;t.value=l.y};return l.__closure={outerScrollOffset:t},l.__workletHash=8746208410386,l.__initData=e,l})({_worklet_8746208410386_init_data:s,outerScrollOffset:l})}),O=(0,f.useStableCallback)(e=>{const{nativeEvent:{layout:t}}=e;o.value=t.height}),C=(0,f.useStableCallback)((t,l)=>{var n;_.value=l,null===(n=e.onContentSizeChange)||void 0===n||n.call(e,t,l)});return t.default.createElement(i,u({},e,{onLayout:O,onContentSizeChange:C,scrollEnabled:b,ref:S,scrollEventThrottle:1,onScroll:v}))}const S=t.default.forwardRef((e,l)=>t.default.createElement(c.NestableScrollContainerProvider,{forwardedRef:l||void 0},t.default.createElement(_,e)))},3574,[17,3242,2714,3572,3564]);
15995
+ __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,"NestableScrollContainer",{enumerable:!0,get:function(){return S}});var t=e(r(d[0])),l=r(d[1]),n=r(d[2]),o=e(n),c=r(d[3]),f=r(d[4]);function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e},u.apply(this,arguments)}const i=o.default.createAnimatedComponent(l.ScrollView),s={code:"function reactNativeDraggableFlatlist_NestableScrollContainerJs1(_ref){const{outerScrollOffset}=this.__closure;let{contentOffset:contentOffset}=_ref;outerScrollOffset.value=contentOffset.y;}"};function _(e){const{outerScrollOffset:l,containerSize:o,scrollViewSize:_,scrollableRef:S,outerScrollEnabled:b}=(0,c.useSafeNestableScrollContainerContext)(),v=(0,n.useAnimatedScrollHandler)({onScroll:(function({_worklet_8746208410386_init_data:e,outerScrollOffset:t}){const l=function(e){let{contentOffset:l}=e;t.value=l.y};return l.__closure={outerScrollOffset:t},l.__workletHash=8746208410386,l.__initData=e,l})({_worklet_8746208410386_init_data:s,outerScrollOffset:l})}),O=(0,f.useStableCallback)(e=>{const{nativeEvent:{layout:t}}=e;o.value=t.height}),C=(0,f.useStableCallback)((t,l)=>{var n;_.value=l,null===(n=e.onContentSizeChange)||void 0===n||n.call(e,t,l)});return t.default.createElement(i,u({},e,{onLayout:O,onContentSizeChange:C,scrollEnabled:b,ref:S,scrollEventThrottle:1,onScroll:v}))}const S=t.default.forwardRef((e,l)=>t.default.createElement(c.NestableScrollContainerProvider,{forwardedRef:l||void 0},t.default.createElement(_,e)))},3574,[17,3241,2714,3572,3564]);
15996
15996
  __d(function(g,r,i,a,m,e,d){},3575,[]);
15997
15997
  __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 s}});var t=r(d[0]);r(d[1]);var n=r(d[2]),o=r(d[3]),c=r(d[4]);function s(){const s=(0,t.c)(1);let u;return s[0]===Symbol.for("react.memo_cache_sentinel")?(u=(0,c.jsx)(o.RootProviders,{children:(0,c.jsx)(n.Stack,{screenOptions:{headerShown:!1}})}),s[0]=u):u=s[0],u}},3576,[15,3577,743,3580,10]);
15998
15998
  __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,"default",{enumerable:!0,get:function(){return b}});var t=e(r(_d[0])),n=r(_d[1]),u=(function(e){if(e&&e.__esModule)return e;var t={};return 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,t})(r(_d[2])),l=e(r(_d[3])),c=e(r(_d[4])),o=e(r(_d[5]));const f={en:{translation:c.default},it:{translation:o.default}},d=u.getLocales()[0]?.languageCode?.slice(0,2)??"en",s=Object.keys(f).includes(d)?d:"en";t.default.use(n.initReactI18next).init({resources:f,lng:s,fallbackLng:"en",interpolation:{escapeValue:!1}}),l.default.getItem("v2.language").then(e=>{"it"!==e&&"en"!==e||t.default.changeLanguage(e)});var b=t.default},3577,[789,786,3422,3133,3578,3579]);
15999
- __d(function(e,t,a,o,i,n,r){i.exports={devices:{editDevice:"Edit device",originalName:"Original name",customName:"Custom name",customNamePlaceholder:"Leave empty to use original",icon:"Icon",typeLight:"Light",typeSwitch:"Switch",typeCover:"Cover",typeLock:"Lock",typeAlarm:"Alarm",typeButton:"Button",typeSelect:"Select",typeSiren:"Siren",typeSensor:"Sensor",typeEntry:"Entry",typeMediaPlayer:"Media Player",typeScript:"Script",run:"Run",sourceHA:"Home Assistant",sourceScrypted:"Scrypted",off:"Off",on:"On",mute:"Mute",unmute:"Unmute",stop:"Stop",locked:"Locked",unlocked:"Unlocked",open:"Open",closed:"Closed",disarmed:"Disarmed",disarm:"Disarm"},common:{error:"Error",save:"Save",cancel:"Cancel",loading:"Loading...",comingSoon:"Coming soon",back:"Back",fullscreen:"Fullscreen",exitFullscreen:"Exit fullscreen",reset:"Reset",selectAll:"Select all",deselectAll:"Deselect all",delete:"Delete",retry:"Retry"},grids:{newGrid:"New grid",deleteConfirm:"Delete this grid?",noGrids:"No grids yet. Create one to arrange cameras in a mosaic view.",createGrid:"Create grid",cameras:"cameras",notFound:"Grid not found.",noCameras:"No cameras in this grid. Edit the grid to add some.",edit:"Edit",addCamera:"Add camera",presets:"Presets",auto:"Auto",manual:"Manual",gridName:"Grid name",view:"View",addCameraHint:"Add at least one camera from the button above.",allCamerasAdded:"All cameras already in grid",cameraUnavailable:"Camera unavailable",camerasInGrid:"Cameras in grid",addAll:"Add all",addCameras:"Add Cameras",backToGrid:"Back to Grid",timelineNotSupported:"Timeline not supported"},nav:{cameras:"Cameras",grids:"Grids",events:"Events",videoclips:"Videoclips",list:"List",settings:"Settings"},cameras:{addCamera:"Add camera",pipActive:"PiP active",reorderEnable:"Reorder",reorderDisable:"Unlock",live:"Live",noCameras:"No cameras configured",noIntegrations:"No integrations configured. Add a system to get started.",createSystem:"Create system",importFrom:"Import cameras from",importSuccess:"Import complete",importCount:"{{count}} cameras imported",selectCamerasToImport:"Select cameras to import",selectAll:"Select all",deselectAll:"Deselect all",importSelected:"Import {{count}} selected",noCamerasFound:"No cameras found",play:"\u25b6 Play",paused:"Paused",noDataForDate:"No data for this date",recordingNotAvailable:"Recording not available",noEventsReel:"No recent events",settings:"Settings",highlightMotion:"Motion Highlight",highlightOnMotion:"Highlight on motion",highlightAudio:"Audio Highlight",audioMode:"Mode",audioModeOff:"Off",audioModeSensor:"Sensor",audioModeLevel:"Level",audioPreset:"Audio Preset",audioPresetCustom:"Custom",audioPresetCrying:"Crying / baby",audioPresetAlarm:"Alarm / siren",audioPresetDog:"Dog barking",audioPresetDoorbell:"Doorbell / knock",audioPresetGlass:"Glass break",audioWindow:"Window (s)",audioThreshold:"Threshold (dB)",audioHitPercentage:"Hit (%)",audioHoldSeconds:"Hold (s)",highlightDetection:"Object Detection Highlight",highlightOnDetection:"Highlight on detection",detectionClasses:"Classes",holdSeconds:"Hold (s)",rtspNotSupportedWeb:"RTSP streams are not supported on web. Use the mobile app.",liveDetections:"Live detections",filterTimeline:"Filter timeline",filterClasses:"Filter classes...",filterBySeverity:"Filter by severity",severityAlert:"Alert",severityDetection:"Detection",statusPosition:"Status Indicators Position",today:"Today",yesterday:"Yesterday",timeline:"Timeline",timelineEventsClusterEvents:"Events",selectDate:"Select a date",videoclipsNotSupported:"Videoclips not supported for this camera",noVideoclipsForDate:"No videoclips for this date",endOfList:"End of list",backToLive:"Back to live",goLive:"Go live",loadingClip:"Loading clip...",clusterDetailShowBbox:"Show bounding box on image",clusterDetailOpenVideoclip:"Open videoclip",clusterDetailLoadingEvents:"Loading events...",devices:"Devices",noAssociatedDevices:"No devices linked. Configure in Settings > Cameras.",timelineData:"Timeline data",timelineDataHint:"What to show on the timeline.",timelineDataVideoclips:"Videoclips",timelineDataAdvancedNotifier:"Advanced Notifier",timelineDataEvents:"Events",timelineEvents:"Timeline events",timelineEventsHint:"Which event types to show on the timeline, by severity.",timelinePresetAll:"All",timelinePresetImportant:"Important",timelinePresetCritical:"Critical",timelinePresetCustom:"Custom",statusBlock:"Status Block",sensorsBlock:"Sensors Block",position:"Position",indicators:"Indicators",downloadSnapshot:"Download Snapshot",exportDownloadClip:"Download Clip",exportRecordingWebOnly:"Recording export (web only)",exportSnapshot:"Export Snapshot",intercomError:"Intercom error",multiCam:"Multi-Camera",ptzNotSupported:"PTZ not supported",ptzSelectPreset:"Select PTZ Preset",snapshotFailed:"Snapshot failed"},events:{loading:"Loading events...",filterByLabel:"Filter by label",filterByLabelPlaceholder:"e.g. person, doorbell",filterByCamera:"Filter by camera",date:"Date",detectionTypes:"Detection types",source:"Source",cameras:"Cameras",groupingRange:"Grouping",groupingPresetMinutes:"{{m}} min",groupingCustom:"Custom",groupingCustomMinutes:"Minutes",groupingCustomApply:"Apply",today:"Today",noCamerasFromConfig:"Cameras loaded from EventsApp config",all:"All",typesCount:"{{count}} types",camerasCount:"{{count}} cameras",cols:"cols",sourceAuto:"Auto",sourceNVR:"NVR",sourceFrigate:"Frigate",sourceVideoClips:"VideoClips API",sourceRawDetection:"Raw",sourceAdvancedNotifier:"Advanced Notifier",detectionPerson:"Person",detectionVehicle:"Vehicle",detectionAnimal:"Animal",detectionAudio:"Audio",detectionFace:"Face",detectionPlate:"Plate",detectionPackage:"Package",detectionDoorbell:"Doorbell",detectionSensor:"Sensor",detectionMotion:"Motion",detectionRules:"Rules",noScryptedIntegration:"Add a Scrypted integration in Settings to view events.",frigateNoEvents:"Events are only available for Scrypted. Select a Scrypted instance in Settings.",noSource:"Add a Scrypted or Frigate integration in Settings, then select it as the Events/Videoclips source.",loadError:"Error loading events",noEvents:"No events for this date. Try changing the date or filters.",clearCacheTitle:"Clear cache",clearCacheMessage:"Clear all cached events and videoclips data? This will force a fresh fetch on next load.",clearCacheConfirm:"Clear",columnsPerRow:"Columns per row",onlyWithClips:"Only with clips",relatedClip:"Related Clip"},videoclips:{loading:"Loading videoclips...",noCamerasFromConfig:"Cameras loaded from config",noScryptedIntegration:"Add a Scrypted integration in Settings to view videoclips.",noFrigateIntegration:"Select a Frigate integration in Settings to view videoclips.",noSource:"Add a Scrypted or Frigate integration in Settings, then select it as the Events/Videoclips source.",loadError:"Error loading videoclips",noVideoclips:"No videoclips for this date. Try changing the date or filters.",openVideoclip:"Open videoclip",clearCacheTitle:"Clear cache",clearCacheMessage:"Clear all cached events and videoclips data? This will force a fresh fetch on next load.",clearCacheConfirm:"Clear"},settings:{integrations:"Integrations",camstackProxy:"CamStack Proxy",scrypted:"Scrypted",frigate:"Frigate",rtsp:"RTSP",homeAssistant:"Home Assistant",name:"Name",baseUrl:"Base URL",urlLocal:"Local URL",urlPublic:"Public URL",username:"Username",password:"Password",token:"Token (optional)",frigateTokenHint:"Token (optional): JWT from browser",tokenRequired:"Token",testConnection:"Test connection",testLocal:"Test Local",testPublic:"Test Public",testMqtt:"Test MQTT",connectionOk:"Connection successful",connectionError:"Connection failed",scryptedCredentialsPromptTitle:"Scrypted login",scryptedCredentialsPromptSubtitle:"Enter your Scrypted username and password to connect.",scryptedCredentialsPromptSkip:"Skip for now",usernamePlaceholder:"admin",save:"Save",tabStream:"Stream & playback",tabGeneral:"General",data:"Data",clearCacheEventsClips:"Clear events & videoclips cache",eventsClipsSourceHint:"Source for Events and Videoclips tabs.",hubReelTitle:"Hub & Reel",reelIntegrationsHint:"Choose which integrations to use for the reel.",reelScryptedSourceHint:"When using Scrypted: event source for reel.",eventsClipsAuto:"Auto",eventsClipsNoInstance:"Add a Scrypted or Frigate integration first.",exportBackup:"Export backup",exportError:"Export failed",importBackup:"Import backup",importConfirm:"This will replace all cameras, integrations and settings with the backup data. Continue?",importSuccess:"Backup restored successfully",importError:"Import failed",uiPrototypes:"UI Prototypes",uiPrototypesHint:"Explore experimental timeline designs",versions:"Versions",appVersion:"App",nativeVersion:"Native",updateNow:"Update now",updateError:"Update failed",updateAvailableTitle:"Update Available",updateAvailableMessage:"A new version of CamStack has been downloaded and is ready to install. The app will restart to apply the update.",updateInstall:"Install & Restart",updateLater:"Later",tabIntegrations:"Integrations",tabCameras:"Camera settings",theme:"Theme",themeSystem:"System",themeLight:"Light",themeDark:"Dark",language:"Language",languageSystem:"System",languageEn:"English",languageIt:"Italiano",timelineMode:"Timeline Mode",timelineModeClassic:"Classic",timelineModeTheater:"Theater",timeline:"Timeline",timelineVisible:"Show detection timeline",timelineVisibleDescription:"Display the detection timeline panel in the camera view.",clusterSize:"Cluster card size",snapshotInterval:"Snapshot refresh interval",clusterSizeXS:"XS",clusterSizeS:"S",clusterSizeM:"M",clusterSizeL:"L",clusterSizeXL:"XL",highlightAppearance:"Highlight appearance",highlightAppearanceHint:"Color and border thickness for motion, audio, and detection highlights on camera streams.",highlightMotion:"Motion",highlightAudio:"Audio",highlightDetection:"Detection",highlightColor:"Color",highlightThickness:"Thickness",selectSection:"Select section",addSystem:"Add system",selectPlatform:"Select platform",deleteInstance:"Delete instance",deleteInstanceConfirm:"Are you sure you want to delete this instance?",delete:"Delete",mqttEvents:"MQTT - Real-time events",mqttBrokerUrl:"MQTT broker URL",mqttUsername:"MQTT username",mqttPassword:"MQTT password",mqttTopicPrefix:"Topic prefix (default: frigate)",mqttOptional:"Optional",scryptedAddressAlreadyUsed:"This Scrypted address is already configured. Only one instance per address is allowed.",scryptedAdvancedNotifierRequired:"The Advanced Notifier plugin is required for the connection.",scryptedCorsTitle:"CORS configuration required (Web)",scryptedCorsBody:"In Scrypted, open the Cloud plugin settings and add your domain ({{domain}}) to the CORS Allowed Origins list. Without this, the browser will block requests to your Scrypted server.",scryptedUrlHint:"Local URL is tried first (e.g. on LAN), then public URL. At least one required.",gridLayout:"Grid layout",gridLayoutHint:"Display options for the cameras grid.",gridColumns:"Grid columns",gridColumnsHint:"Number of cameras per row. Auto = 1 on mobile, 4 on tablet.",gridShowName:"Show camera name",gridShowState:"Show state (battery, recording, sleeping)",reorderCameras:"Reorder cameras",reorderCamerasHint:"Drag to reorder cameras",reorderDone:"Done",manageCameras:"Manage cameras",manageCamerasHint:"Remove cameras from the app.",downloadSnapshot:"Download snapshot",snapshotFailed:"Could not fetch snapshot",exportSnapshot:"Snapshot",exportDownloadClip:"Download clip",exportStartRecording:"Start recording",exportStopRecording:"Stop recording",exportRecordingWebOnly:"Recording available on web",intercomError:"Intercom unavailable. Check camera credentials in Scrypted.",deleteCamera:"Remove camera",deleteCameraConfirm:"Remove {{name}} from the app?",streamPlayback:"Stream & playback",playOnOpen:"Start stream when opening camera",playOnOpenHint:"Automatically load the live stream when you open a camera.",audioOnOpen:"Unmute audio when opening",audioOnOpenHint:"Play audio when opening a camera (if supported).",streamWatchdog:"Stream watchdog",streamWatchdogHint:"Restart stream when no data received (helps with stalled connections).",cameraPlayer:"Camera player",webViewCameraDetail:"Use WebView player",webViewCameraDetailHint:"Use WebView for Scrypted cameras (faster first frame, more stable). PiP, fullscreen and intercom work. Default: native player.",streamQuality:"Stream quality",streamQualitySingle:"Single camera quality",streamQualityGrid:"Grid quality",qualityAuto:"Auto",qualityHigh:"High",qualityMedium:"Mid",qualityLow:"Sub",auto:"Auto",associatedDevices:"Associated devices",associatedDevicesHint:"Add actuators (lights, switches, covers, etc.) to control from the camera view.",linkedDevices:"Linked",reorderHint:"Use arrows to reorder",addDevice:"Add device",noEligibleDevices:"No Scrypted or Home Assistant configured. Add an integration first.",configureDevices:"Configure devices",cameraSettingsHint:"Choose a camera to configure its specific options.",noCamerasConfigured:"No cameras configured.",searchDevices:"Search devices...",source:"Source",type:"Type",all:"All",noMatchingDevices:"No devices match the filters.",frigateStream:"Frigate Stream",frigateStreamSourceHint:"Stream source: WebRTC (default), RTSP, or MJPEG.",frigateStreamMapping:"Stream mapping (go2rtc names from config)",frigateStreamMappingHint:"Select from available go2rtc streams. Order: Main, Sub, Low.",frigateSelectStream:"Select stream",frigateAddStream:"Add stream",frigateInfo:"Camera info",frigateShowConfig:"Show config",frigateShowGo2rtc:"Show go2rtc",frigateMissingConfig:"Missing baseUrl or cameraName in camera config.",tabLogs:"Logs",logsCount:"{{count}} entries",logsDownload:"Download",logsClear:"Clear",logsEmpty:"No logs yet. Console output will appear here.",logsExportError:"Export failed",logsExportTitle:"Export logs",logsClearConfirmTitle:"Clear logs",logsClearConfirmMessage:"Remove all log entries?",hubAppearanceTitle:"Appearance",hubAppearanceDesc:"Theme, language, timeline and highlights",hubCamerasTitle:"Cameras",hubCamerasDesc:"Grid layout, stream quality and camera management",hubIntegrationsTitle:"Integrations",hubIntegrationsDesc:"Manage Scrypted, Frigate and other systems",hubAdvancedTitle:"Advanced",hubAdvancedDesc:"Data backup and cache management",hubLogsTitle:"Logs",hubLogsDesc:"View and export application logs",hubCacheTitle:"Cache",frigateAutoSnap:"Auto Snapshot",frigateSegmentNav:"Segment Navigation",frigateShowGo:"Show Go2RTC",frigateTimeline:"Timeline",reelCameras:"Reel Cameras",reelCamerasHint:"Select which cameras appear in the events reel",reelDeselectAll:"Deselect All",reelDetectionClasses:"Detection Classes",reelDetectionClassesHint:"Filter events by detection class",reelIncludeRuleArtifacts:"Include Rule Artifacts",reelIncludeRuleArtifactsHint:"Show rule-based events in the reel",reelRuleArtifacts:"Rule Artifacts",reelSelectAll:"Select All",reelBadgeContent:"Badge content",reelBadgePosition:"Badge position",reelBadgeSize:"Badge size",reelBadgeBoth:"Time + Class",reelBadgeTime:"Time only",reelBadgeClass:"Class only",reelBadgeNone:"Hidden",reelBadgeSmall:"Small",reelBadgeMedium:"Medium",reelBadgeLarge:"Large"},reel:{filterMotion:"Motion",filterOnlyRules:"Only rules",filterOnlySensors:"Only sensors",goToMostRecent:"Go to most recent"},v2:{common:{connecting:"Connecting\u2026",online:"Online",offline:"Offline",loadError:"Loading error",create:"Create"},cameras:{empty:"No cameras",statusOnline:" \xb7 online",statusOffline:" \xb7 offline",sleeping:"Sleeping",unavailable:"Unavailable",motion:"Motion",doorbell:"Doorbell",doorbellRinging:"Ringing",doorbellLastRing:"Ring {{time}} ago",snapshotLoading:"Loading\u2026",manage:"Manage cameras",manageHint:"Drag to reorder. Rename inline. Toggle to show or hide a camera from the list.",reorderHandle:"Drag to reorder",appearance:"Appearance",editList:"Edit list",listOptions:"Camera list options"},cameraDetail:{fallbackName:"Camera #{{id}}",mute:"Mute",unmute:"Unmute",snapshot:"Snapshot",snapshotFailed:"Could not capture a snapshot.",ptz:"PTZ controls",talk:"Talk",fullscreen:"Fullscreen",talkFailed:"Could not start talk-back. Check microphone access.",pip:"Picture in Picture",exitFullscreen:"Exit fullscreen",devices:"Devices",devicesEmpty:"No connected devices.",linkedModeAuto:"Link: Auto (same location)",linkedModeManual:"Link: Manual",motionBoxes:"Motion boxes",close:"Close",deviceOnline:"Online",deviceOffline:"Offline"},grids:{createA11y:"Create grid",empty:"No grids",emptyHint:"Tap + to create your first grid",countNone:"No cameras",countOne:"1 camera",countOther:"{{count}} cameras",defaultName:"New grid",deleteTitle:"Delete grid",deleteConfirm:"Delete \"{{name}}\"? This cannot be undone.",export:"Export",exportAllA11y:"Export all grids",shareA11y:"Share grid",editA11y:"Edit grid",deleteA11y:"Delete grid",linkCopied:"Grid link copied to clipboard",layoutAuto:"Auto",layoutColumns:"{{count}} cols"},gridView:{editA11y:"Edit grid",fallbackTitle:"Grid",notFound:"Grid not found",emptyGrid:"This grid is empty",addCameras:"Add cameras",reorderTitle:"Reorder cameras",reorderA11y:"Reorder cameras",reorderDoneA11y:"Done reordering",allHidden:"All cameras are hidden. Use reorder mode to show some.",dragA11y:"Drag to reorder",hideA11y:"Hide from grid",showA11y:"Show in grid",removeA11y:"Remove from grid",adhocTitle:"Quick grid"},gridBuilder:{title:"Edit grid",nameLabel:"Name",namePlaceholder:"Grid name",camerasSelected:"Cameras ({{count}} selected)",optionsTitle:"Options",showName:"Show camera name",export:"Export grid",orderSection:"In the grid",orderHint:"Drag to reorder",emptyOrder:"No cameras yet \u2014 add some below.",addSection:"Add cameras",removeA11y:"Remove from grid",addA11y:"Add to grid",highlightTitle:"Highlight",highlightMotion:"On motion",highlightAudio:"On audio",highlightAudioOff:"Off",highlightAudioSensor:"Presence",highlightAudioLevel:"Level",highlightThreshold:"Threshold",highlightHold:"Hold",highlightDetection:"On detection",clusterLabel:"Cluster label",clusterLabelIcon:"Icon",clusterLabelText:"Text"},gridBar:{back:"Back",pauseAll:"Pause all",playAll:"Play all",audio:"Audio",quality:"Stream quality",layout:"Layout",highlightMenu:"Highlight & overlays",activeOnly:"Active only",share:"Share grid",edit:"Edit grid",hide:"Hide controls",show:"Show controls",muteAll:"Mute all",unmuteAll:"Unmute all"},gridMenu:{highlightMaster:"Highlight borders"},gridShare:{title:"Share \"{{name}}\"",quality:"Stream quality",layout:"Layout",showNames:"Show camera names",activeOnly:"Active cameras only",boxes:"Bounding boxes",highlightEnable:"Highlight",audioSummary:"Audio starts on for {{count}} camera(s)",ttlTitle:"Link expires",ttl_1d:"1 day",ttl_7d:"7 days",ttl_30d:"30 days",ttl_never:"Forever",tokenNotice:"The link includes a view-only access token limited to these cameras. Anyone with the link can watch until it expires or is revoked.",copyLink:"Copy link",creating:"Creating link\u2026",copiedExpires:"Link copied \u2014 expires {{date}}",copiedNever:"Link copied \u2014 never expires",error:"Could not create the share link. Check the connection and try again.",optionAuto:"Auto",optionHigh:"High",optionMedium:"Mid",optionLow:"Low"},gridControls:{play:"Play",pause:"Pause",mute:"Mute",unmute:"Unmute",quality:"Quality",layout:"Layout",layoutAuto:"Auto"},events:{comingSoon:"Events \u2014 coming soon",searchLabel:"Search label\u2026",empty:"No events",today:"Today",filteredEmpty:"No matches in the loaded range",loadOlder:"Load older",selectPrompt:"Select an event to see its detail",filters:"Filters",all:"All",day:"Day",sort:"Sort",sortTime:"Newest",sortImportance:"Importance",cameras:"Cameras",classes:"Classes",search:"Search",searchCameras:"Search cameras\u2026",searchClasses:"Search classes\u2026",allCamerasHint:"None = all",allClassesHint:"None = all",done:"Done",density:"Density",selectHint:"Select an event",eventKinds:"Event types",displayOptions:"Display",displayTitle:"Display options",minImportance:"Minimum importance",minImportanceOff:"Off"},settings:{themeSystem:"System",themeDark:"Dark",themeLight:"Light",server:"Server",hubActive:"Active hub",changeServer:"Change server",signOut:"Sign out",network:"Network",networkNone:"No routes probed yet",endpointUnlikely:"Unlikely usable",reprobe:"Re-probe routes",reprobing:"Probing\u2026",appearance:"Appearance",theme:"Theme",info:"Info",app:"App",version:"Version",noServer:"No server",footerNote:"CamStack Viewer connects to a single camstack hub. Cameras, grids and events are managed by the server.",language:"Language",langSystem:"System",gridDefaults:"Grid defaults",showName:"Show camera name",showNameHint:"Overlay the camera name on each tile",showState:"Show status badge",showStateHint:"Show online / recording state on each tile",columns:"Columns",cameraOrder:"Camera order",orderName:"By name",orderCustom:"Custom",motionHold:"Motion highlight linger",motionHoldHint:"Keep a tile's motion highlight lit this long after motion stops.",motionHoldOff:"Off",streamQuality:"Stream quality",streamDefaults:"Stream defaults",playOnOpen:"Play on open",playOnOpenHint:"Start the live stream when a camera opens",audioOnOpen:"Audio on open",audioOnOpenHint:"Unmute audio when a camera opens",snapshotInterval:"Snapshot refresh",highlightAppearance:"Highlight appearance",highlightMotionColor:"Motion color",highlightAudioColor:"Audio color",highlightDetectionColor:"Detection color",highlightThickness:"Border thickness",qualityAuto:"Auto",qualityHigh:"High",qualityMid:"Medium",qualityLow:"Low",secondsValue:"{{count}}s",advanced:"Advanced",clearCache:"Clear cache",clearCacheHint:"Free up snapshots and cached data (keeps your server and settings)",clearCacheConfirmTitle:"Clear cache?",clearCacheConfirmBody:"This removes cached images and query data. Your server, sign-in and settings are kept.",clearCacheDone:"Cache cleared",exportSettings:"Export settings",exportSettingsHint:"Copy your settings as JSON",exportSettingsDone:"Settings copied as JSON",viewLogs:"View logs",viewLogsHint:"Recent in-app log messages",logsEmpty:"No logs recorded yet",keepLogs:"Keep logs",keepLogsHint:"Record a rolling buffer of in-app log messages",debugMode:"Debug mode",debugModeHint:"Verbose logs across live, playback and scrub \u2014 sent to the server",logsClear:"Clear",resetSettings:"Reset settings",resetSettingsHint:"Restore all defaults",resetConfirmTitle:"Reset settings?",resetConfirmBody:"This restores all settings to their defaults.",cancel:"Cancel",confirm:"Confirm",timeline:"Timeline & highlights",reel:"Event reel",reelThumbSize:"Reel thumbnail size",reelThumbSizeHint:"Size of the tiles in the Recent events reel.",reelSizeSmall:"Small",reelSizeMedium:"Medium",reelSizeLarge:"Large",reelShowLabels:"Show labels",reelShowLabelsHint:"Show the class/identity label on reel items.",reelLabelStyle:"Class display",reelLabelStyleHint:"Show the detection class as an icon or as text on reel items.",reelShowImportance:"Show importance",reelShowImportanceHint:"Show the importance badge on reel items.",eventsPage:"Events page",tileShowLabels:"Show labels",tileShowLabelsHint:"Show the class / identity / audio labels on event cards.",tileShowImportance:"Show importance",tileShowImportanceHint:"Show the importance badge on event cards (when scored).",tileShowCameraName:"Show camera name",tileShowCameraNameHint:"Show the camera name in the event card footer.",tileLabelStyle:"Class display",tileLabelStyleHint:"Show the detection class as an icon or as text.",tileLabelStyleIcon:"Icon",tileLabelStyleText:"Text",comingSoon:"Coming soon",cameras:"Cameras",manageCameras:"Manage cameras",manageCamerasHint:"Rename, hide, reorder",pinchExpandsHeight:"Pinch enlarges the view",pinchExpandsHeightHint:"Pinching to zoom also grows the video taller (crops the side edges on 16:9 cameras).","timeline.gapPercent":"Cluster gap (%)","timeline.sizePercent":"Cluster size (%)","timeline.indicatorPositionPct":"Indicator position (%)","timeline.showImportance":"Show importance on items","timeline.showClass":"Show detection class on items","timeline.minImportance":"Minimum importance","timeline.minImportanceOff":"Off","timeline.cardWidthPct":"Card width (%)",haptics:"Event haptics",hapticsEnabled:"Vibrate on events",hapticsEnabledHint:"Small vibration pulses for key events on the camera you're watching. Native only (iOS/Android).",hapticsMotion:"Motion",hapticsDetection:"Detection",hapticsPerson:"Person / recognized"},login:{loginFailed:"Login failed",verifyFailed:"Verification failed",serverUrl:"Server URL",username:"Username",password:"Password",showPassword:"Show password",hidePassword:"Hide password",signIn:"Sign in",signingIn:"Signing in\u2026",twoFactor:"Two-factor authentication",totpHint:"Enter the 6-digit code from your authenticator app to sign in as ",verificationCode:"Verification code",verifyAndSignIn:"Verify and sign in",verifying:"Verifying\u2026",back:"Back",or:"or",signInWithCamStack:"Sign in with CamStack",hubSignInHint:"Opens your hub\u2019s login page and links this app without typing your password here.",handoffFailed:"Sign-in with CamStack failed \u2014 try again or use username and password",invalidServerUrl:"Enter a valid server URL (https://\u2026) first"},live:{webUnsupported:"Live view is not available on the web version yet.",connecting:"Connecting to live stream\u2026",error:"Unable to load the live stream.",retry:"Retry",noConnection:"No connection to the server",failed:"Connection failed"},ptz:{title:"PTZ",notAvailable:"PTZ controls are not available for this camera.",zoom:"Zoom",home:"Home position",presets:"Presets",noPresets:"No presets saved."},timeline:{activityTitle:"Activity",last24h:"Last 24h",loading:"Loading activity\u2026",noActivity:"No activity in the last 24 hours.",legendRecording:"Recorded",legendMotion:"Motion",legendAudio:"Audio"},theater:{back:"Back",today:"Today",yesterday:"Yesterday",selectDate:"Pick a date",live:"LIVE",now:"NOW",auto:"Auto",quality:"Stream quality",filterAll:"All",filter_motion:"Motion",filter_audio:"Audio",goToLive:"Go to live",noRecording:"No recording",noRecordingHint:"No footage at this time",detailCount:"{{frames}} frames \xb7 {{count}} detections",detailTracks:"{{tracks}} tracks \xb7 {{count}} detections",detailEmpty:"No detail images for this moment",detailSeek:"Go to this moment",zoneHint:"Drag a rectangle over the video to filter events by zone",zoneConfirm:"Confirm",zoneCancel:"Cancel"},tracks:{crop:"Crop",fullFrame:"Full frame",showBoundingBox:"Show bounding box",zones:"Zones",audio:"Audio",reason:"Why notable",empty:"No tracks",recent:"Recent",searchPlaceholder:"Search events (e.g. \"person in red\")",noMatches:"No matching events",person:"Person",assignPerson:"Assign to person",changePerson:"Change",notAssigned:"Not assigned",assignFaceTitle:"Assign face",newPersonPlaceholder:"New person name\u2026",createAndAssign:"Create & assign",assignFailed:"Couldn't assign the face",removePerson:"Remove person",removePersonConfirmTitle:"Remove person?",removePersonConfirmBody:"This unlinks the person from this face. The face returns to the unassigned buffer and can be reassigned later.",disassociateFailed:"Couldn't remove the person",removePersonAll:"Remove from all events",removePersonAllConfirmTitle:"Remove from all events?",removePersonAllConfirmBody:"This unlinks this person from EVERY event. All faces currently recognized as this person return to the unassigned buffer and can be reassigned later. The person is kept.",disassociateAllFailed:"Couldn't remove the person from all events",existingPersons:"People",noPersons:"No people yet",metadata:"Metadata",copy:"Copy",copied:"Copied","meta.trackId":"Track ID","meta.eventId":"Best event ID","meta.deviceId":"Device ID","meta.camera":"Camera","meta.className":"Class","meta.label":"Label","meta.firstSeen":"First seen","meta.lastSeen":"Last seen","meta.state":"State","meta.importance":"Importance","meta.confidence":"Confidence","meta.mediaKeys":"Media keys"},accessories:{on:"On",off:"Off",dimUp:"Brighter",dimDown:"Dimmer",lock:"Lock",unlock:"Unlock",open:"Open",close:"Close",stop:"Stop",arm:"Arm",disarm:"Disarm",onMotion:"On motion",warmer:"Warmer",cooler:"Cooler",speedUp:"Faster",speedDown:"Slower",oscillate:"Oscillate",press:"Press",play:"Play",pause:"Pause",previous:"Previous",next:"Next",start:"Start",dock:"Dock",locate:"Locate",feed:"Feed",feeding:"Feeding\u2026",install:"Install",installing:"Installing\u2026",upToDate:"Up to date",increase:"Increase",decrease:"Decrease",select:"Select",climateModes:{off:"Off",heat:"Heat",cool:"Cool",auto:"Auto",heat_cool:"Heat/Cool",fan_only:"Fan",dry:"Dry"}},cameraMenu:{title:"View options",boundingBoxes:"Bounding boxes",streamStats:"Stream stats",audioLevel:"Audio level",densityTitle:"Timeline density",density_compact:"Compact",density_medium:"Medium",density_wide:"Wide",densityCustom:"Custom",indicatorPosition:"Indicator position",showImportance:"Show importance",showClass:"Show detection class",minImportanceTitle:"Minimum importance",minImportanceOff:"Off",managementTitle:"Management"},stats:{title:"Stream stats",resolution:"Resolution",fps:"FPS",bitrate:"Bitrate",packetLoss:"Packet loss",jitter:"Jitter",codec:"Codec",frames:"Frames (dropped/total)",waiting:"Measuring\u2026",playbackHint:"Full WebRTC stats need the native player."},exportActions:{title:"Capture",recordingExport:"Recording export"},exports:{title:"Exports",empty:"No exports yet.",settingsHint:"Download recorded clips",range:"Range",rangeStart:"Start",rangeEnd:"End",profile:"Profile",noFootage:"No footage in this range.",speed:"Speed",timelapse:"Timelapse",cadence:"Frame every",audio:"Audio",includeAudio:"Include audio",audioUnavailable:"Audio is only available at 0.5\u20132\xd7 speed.",retention:"Keep for",life24h:"24 hours",life7d:"7 days",life30d:"30 days",deleteAfterDownload:"Delete after download",deleteAfterDownloadHint:"Remove the file once downloaded.",creating:"Creating\u2026",createAction:"Export",createFailed:"Could not create the export.",withAudio:"with audio",variantRegular:"1\xd7",variantAccelerated:"Accelerated {{speed}}\xd7",variantSlow:"Slow {{speed}}\xd7",variantTimelapse:"Timelapse",expired:"Expired",expiresInDays:"Expires in {{count}}d",expiresInHours:"Expires in {{count}}h",expiresInMinutes:"Expires in {{count}}m",downloadAction:"Download",downloadUnavailable:"Download not available.",downloadFailed:"Download failed.",cancelAction:"Cancel",cancelConfirmTitle:"Cancel export?",cancelConfirmBody:"This stops rendering and discards the partial file.",deleteAction:"Delete",deleteConfirmTitle:"Delete export?",deleteConfirmBody:"This removes the file. The history entry is kept.",dismiss:"Dismiss",state:{queued:"Queued",rendering:"Rendering",ready:"Ready",failed:"Failed",expired:"Expired",deleted:"Deleted"}},streamBar:{play:"Play",pause:"Pause",mute:"Mute",unmute:"Unmute",talkStart:"Start talking",talkStop:"Stop talking",quality:"Stream quality",menu:"View options",snapshot:"Snapshot",pip:"Picture in picture",fullscreen:"Fullscreen",exitFullscreen:"Exit fullscreen"},playback:{prevFrame:"Previous frame",nextFrame:"Next frame",speed:"Playback speed",audioMuted:"Audio off at \u2260 1\xd7",audioOn:"Audio on"},cameraSwitcher:{title:"Switch camera",empty:"No cameras available",openGrid:"Open grid ({{n}})",selectA11y:"Select {{name}}"},storage:{title:"Storage",usageTitle:"Usage",nodeTotal:"Node total",defaultLocation:"Default location",locationFree:"{{free}} free",retentionTitle:"Retention",pruneAction:"Apply retention now",pruneConfirmTitle:"Apply retention?",pruneConfirmBody:"Delete footage on {{name}} that exceeds its retention policy.",pruneResult:"Reclaimed {{bytes}} ({{buckets}} segments).",deleteTitle:"Delete footage",deleteAction:"Delete",deleteConfirmTitle:"Delete footage?",deleteConfirmBody:"Permanently delete {{range}} of footage on {{name}}. This cannot be undone.",deleteResult:"Reclaimed {{bytes}} ({{buckets}} segments).",cancel:"Cancel",window24h:"Last 24h",window7d:"Last 7 days",window30d:"Last 30 days",windowAll:"Everything"},eventsMgmt:{title:"Events",footprintTitle:"Footprint",rowsBytes:"{{rows}} events \xb7 {{bytes}}",clusterTotal:"Cluster total",pruneTitle:"Prune older than",pruneHint:"Applies to all cameras.",pruneAction:"Prune",pruneConfirmTitle:"Prune old events?",pruneConfirmBody:"Delete events older than {{range}} across ALL cameras. This cannot be undone.",pruneResult:"Deleted {{count}} events.",deleteTitle:"Delete camera events",deleteAction:"Delete all events for this camera",deleteConfirmTitle:"Delete all events?",deleteConfirmBody:"Permanently delete every event for {{name}}. This cannot be undone.",deleteResult:"Deleted {{count}} events.",cancel:"Cancel",older24h:"24 hours",older7d:"7 days",older30d:"30 days"}},prototype:{today:"Today",yesterday:"Yesterday",now:"NOW",endOfDay:"END OF DAY",loading:"Loading...",timeline:"Timeline",events:"Events",playClip:"Play clip",goToNow:"NOW",noEvents:"No events"},eventKind:{motion:"Motion",audio:"Audio",person:"Person",vehicle:"Vehicle",animal:"Animal",package:"Package",sensor:"Sensor",control:"Control",car:"Car",truck:"Truck",bus:"Bus",motorcycle:"Motorcycle",bicycle:"Bicycle",airplane:"Airplane",boat:"Boat",train:"Train",bird:"Bird",cat:"Cat",dog:"Dog",horse:"Horse",sheep:"Sheep",cow:"Cow",elephant:"Elephant",bear:"Bear",zebra:"Zebra",giraffe:"Giraffe",contact:"Contact","motion-sensor":"Motion sensor",smoke:"Smoke",flood:"Water leak",gas:"Gas","carbon-monoxide":"Carbon monoxide",vibration:"Vibration",tamper:"Tamper",presence:"Presence","enum-sensor":"Sensor state","device-event":"Device event",lock:"Lock",switch:"Switch",siren:"Siren",button:"Button",doorbell:"Doorbell","package-delivered":"Package delivered","package-picked-up":"Package picked up","audio-speech":"Speech","audio-music":"Music","audio-dog":"Dog","audio-doorbell":"Doorbell","audio-siren":"Siren","audio-alarm":"Alarm"}}},3578,[]);
16000
- __d(function(e,i,a,t,o,n,r){o.exports={devices:{editDevice:"Modifica dispositivo",originalName:"Nome originale",customName:"Nome personalizzato",customNamePlaceholder:"Lascia vuoto per usare l'originale",icon:"Icona",typeLight:"Luce",typeSwitch:"Interruttore",typeCover:"Tapparella",typeLock:"Serratura",typeAlarm:"Allarme",typeButton:"Pulsante",typeSelect:"Selezione",typeSiren:"Sirena",typeSensor:"Sensore",typeEntry:"Ingresso",typeMediaPlayer:"Media Player",typeScript:"Script",run:"Esegui",sourceHA:"Home Assistant",sourceScrypted:"Scrypted",off:"Off",on:"On",mute:"Muto",unmute:"Audio",stop:"Stop",locked:"Chiusa",unlocked:"Aperta",open:"Aperta",closed:"Chiusa",disarmed:"Disinserito",disarm:"Disinserisci"},common:{error:"Errore",save:"Salva",cancel:"Annulla",loading:"Caricamento...",comingSoon:"In arrivo",back:"Indietro",fullscreen:"Schermo intero",exitFullscreen:"Esci da schermo intero",reset:"Reimposta",selectAll:"Seleziona tutte",deselectAll:"Deseleziona tutte",delete:"Elimina",retry:"Riprova"},grids:{newGrid:"Nuova griglia",deleteConfirm:"Eliminare questa griglia?",noGrids:"Nessuna griglia. Creane una per disporre le telecamere in vista mosaico.",createGrid:"Crea griglia",cameras:"telecamere",notFound:"Griglia non trovata.",noCameras:"Nessuna telecamera in questa griglia. Modifica per aggiungerne.",edit:"Modifica",addCamera:"Aggiungi telecamera",presets:"Preset",auto:"Auto",manual:"Manuale",gridName:"Nome griglia",view:"Visualizza",addCameraHint:"Aggiungi almeno una telecamera dal pulsante sopra.",allCamerasAdded:"Tutte le telecamere sono gi\xe0 in griglia",cameraUnavailable:"Telecamera non disponibile",camerasInGrid:"Telecamere nella griglia",addAll:"Aggiungi tutte",addCameras:"Aggiungi Telecamere",backToGrid:"Torna alla Griglia",timelineNotSupported:"Timeline non supportata"},nav:{cameras:"Telecamere",grids:"Griglie",events:"Eventi",videoclips:"Videoclip",list:"Lista",settings:"Impostazioni"},cameras:{addCamera:"Aggiungi telecamera",pipActive:"PiP attivo",reorderEnable:"Riordina",reorderDisable:"Sblocca",live:"Live",noCameras:"Nessuna telecamera configurata",noIntegrations:"Nessuna integrazione configurata. Aggiungi un sistema per iniziare.",createSystem:"Crea sistema",importFrom:"Importa telecamere da",importSuccess:"Importazione completata",importCount:"{{count}} telecamere importate",selectCamerasToImport:"Seleziona telecamere da importare",selectAll:"Seleziona tutte",deselectAll:"Deseleziona tutte",importSelected:"Importa {{count}} selezionate",noCamerasFound:"Nessuna telecamera trovata",play:"\u25b6 Riproduci",paused:"In pausa",noDataForDate:"Nessun dato per questa data",recordingNotAvailable:"Registrazione non disponibile",noEventsReel:"Nessun evento recente",settings:"Impostazioni",highlightMotion:"Evidenza movimento",highlightOnMotion:"Evidenzia al movimento",highlightAudio:"Evidenza audio",audioMode:"Modalit\xe0",audioModeOff:"Off",audioModeSensor:"Sensore",audioModeLevel:"Livello",audioPreset:"Preset audio",audioPresetCustom:"Personalizzato",audioPresetCrying:"Pianto / neonato",audioPresetAlarm:"Allarme / sirena",audioPresetDog:"Abbaio cane",audioPresetDoorbell:"Campanello / bussata",audioPresetGlass:"Rottura vetro",audioWindow:"Finestra (s)",audioThreshold:"Soglia (dB)",audioHitPercentage:"Percentuale (%)",audioHoldSeconds:"Mantenimento (s)",highlightDetection:"Evidenza rilevamento oggetti",highlightOnDetection:"Evidenzia al rilevamento",detectionClasses:"Classi",holdSeconds:"Mantenimento (s)",rtspNotSupportedWeb:"Gli stream RTSP non sono supportati sul web. Usa l'app mobile.",liveDetections:"Detections live",filterTimeline:"Filtra timeline",filterClasses:"Filtra classi...",filterBySeverity:"Filtra per severit\xe0",severityAlert:"Allarme",severityDetection:"Rilevamento",statusPosition:"Posizione indicatori di stato",today:"Oggi",yesterday:"Ieri",timeline:"Timeline",timelineEventsClusterEvents:"Eventi",selectDate:"Seleziona una data",videoclipsNotSupported:"Videoclip non supportati per questa telecamera",noVideoclipsForDate:"Nessun videoclip per questa data",endOfList:"Fine elenco",backToLive:"Torna al live",goLive:"Vai al live",loadingClip:"Caricamento clip...",clusterDetailShowBbox:"Mostra bounding box sull'immagine",clusterDetailOpenVideoclip:"Apri videoclip",clusterDetailLoadingEvents:"Caricamento eventi...",devices:"Dispositivi",noAssociatedDevices:"Nessun dispositivo collegato. Configura in Impostazioni > Telecamere.",timelineData:"Dati timeline",timelineDataHint:"Cosa mostrare sulla timeline.",timelineDataVideoclips:"Videoclip",timelineDataAdvancedNotifier:"Advanced Notifier",timelineDataEvents:"Eventi",timelineEvents:"Eventi timeline",timelineEventsHint:"Quali tipi di eventi mostrare sulla timeline, in base alla severit\xe0.",timelinePresetAll:"Tutti",timelinePresetImportant:"Importanti",timelinePresetCritical:"Critici",timelinePresetCustom:"Personalizzato",statusBlock:"Blocco stato",sensorsBlock:"Blocco sensori",position:"Posizione",indicators:"Indicatori",downloadSnapshot:"Scarica Istantanea",exportDownloadClip:"Scarica Clip",exportRecordingWebOnly:"Esporta registrazione (solo web)",exportSnapshot:"Esporta Istantanea",intercomError:"Errore interfono",multiCam:"Multi-Camera",ptzNotSupported:"PTZ non supportato",ptzSelectPreset:"Seleziona Preset PTZ",snapshotFailed:"Istantanea fallita"},events:{loading:"Caricamento eventi...",filterByLabel:"Filtra per etichetta",filterByLabelPlaceholder:"es. person, doorbell",filterByCamera:"Filtra per telecamera",date:"Data",detectionTypes:"Tipi di rilevamento",source:"Sorgente",cameras:"Telecamere",groupingRange:"Raggruppamento",groupingPresetMinutes:"{{m}} min",groupingCustom:"Personalizzato",groupingCustomMinutes:"Minuti",groupingCustomApply:"Applica",today:"Oggi",noCamerasFromConfig:"Telecamere caricate dalla config EventsApp",all:"Tutti",typesCount:"{{count}} tipi",camerasCount:"{{count}} telecamere",cols:"col",sourceAuto:"Auto",sourceNVR:"NVR",sourceFrigate:"Frigate",sourceVideoClips:"API VideoClips",sourceRawDetection:"Raw",sourceAdvancedNotifier:"Advanced Notifier",detectionPerson:"Persona",detectionVehicle:"Veicolo",detectionAnimal:"Animale",detectionAudio:"Audio",detectionFace:"Volto",detectionPlate:"Targa",detectionPackage:"Pacco",detectionDoorbell:"Campanello",detectionSensor:"Sensore",detectionMotion:"Motion",detectionRules:"Regole",noScryptedIntegration:"Aggiungi un'integrazione Scrypted in Impostazioni per vedere gli eventi.",frigateNoEvents:"Gli eventi sono disponibili solo per Scrypted. Seleziona un'istanza Scrypted in Impostazioni.",noSource:"Aggiungi un'integrazione Scrypted o Frigate in Impostazioni, poi selezionala come sorgente per Eventi e Videoclip.",loadError:"Errore nel caricamento degli eventi",noEvents:"Nessun evento per questa data. Prova a cambiare data o filtri.",clearCacheTitle:"Svuota cache",clearCacheMessage:"Svuotare tutti i dati in cache di eventi e videoclip? Verr\xe0 effettuato un nuovo caricamento al prossimo accesso.",clearCacheConfirm:"Svuota",columnsPerRow:"Colonne per riga",onlyWithClips:"Solo con clip",relatedClip:"Clip Correlata"},videoclips:{loading:"Caricamento videoclip...",noCamerasFromConfig:"Telecamere caricate dalla config",noScryptedIntegration:"Aggiungi un'integrazione Scrypted in Impostazioni per vedere i videoclip.",noFrigateIntegration:"Seleziona un'integrazione Frigate in Impostazioni per vedere i videoclip.",noSource:"Aggiungi un'integrazione Scrypted o Frigate in Impostazioni, poi selezionala come sorgente per Eventi e Videoclip.",loadError:"Errore nel caricamento dei videoclip",noVideoclips:"Nessun videoclip per questa data. Prova a cambiare data o filtri.",openVideoclip:"Apri videoclip",clearCacheTitle:"Svuota cache",clearCacheMessage:"Svuotare tutti i dati in cache di eventi e videoclip? Verr\xe0 effettuato un nuovo caricamento al prossimo accesso.",clearCacheConfirm:"Svuota"},settings:{integrations:"Integrazioni",camstackProxy:"CamStack Proxy",scrypted:"Scrypted",frigate:"Frigate",rtsp:"RTSP",homeAssistant:"Home Assistant",name:"Nome",baseUrl:"URL base",urlLocal:"URL locale",urlPublic:"URL pubblico",username:"Username",password:"Password",token:"Token (opzionale)",frigateTokenHint:"Token (opzionale): JWT dal browser",tokenRequired:"Token",testConnection:"Test connessione",testLocal:"Test Local",testPublic:"Test Public",testMqtt:"Test MQTT",connectionOk:"Connessione riuscita",connectionError:"Connessione fallita",scryptedCredentialsPromptTitle:"Accesso Scrypted",scryptedCredentialsPromptSubtitle:"Inserisci username e password Scrypted per connettere.",scryptedCredentialsPromptSkip:"Salta per ora",usernamePlaceholder:"admin",save:"Salva",tabStream:"Stream e riproduzione",tabGeneral:"Generale",data:"Dati",clearCacheEventsClips:"Svuota cache eventi e videoclip",eventsClipsSourceHint:"Sorgente per le schede Eventi e Videoclip.",hubReelTitle:"Hub & Reel",reelIntegrationsHint:"Scegli quali integrazioni usare per il reel.",reelScryptedSourceHint:"Con Scrypted: sorgente eventi per il reel.",eventsClipsAuto:"Auto",eventsClipsNoInstance:"Aggiungi prima un'integrazione Scrypted o Frigate.",exportBackup:"Esporta backup",exportError:"Esportazione fallita",importBackup:"Importa backup",importConfirm:"Questo sostituir\xe0 tutte le telecamere, integrazioni e impostazioni con i dati del backup. Continuare?",importSuccess:"Backup ripristinato con successo",importError:"Importazione fallita",uiPrototypes:"Prototipi UI",uiPrototypesHint:"Esplora design sperimentali della timeline",versions:"Versioni",appVersion:"App",nativeVersion:"Nativa",updateNow:"Aggiorna ora",updateError:"Aggiornamento fallito",updateAvailableTitle:"Aggiornamento disponibile",updateAvailableMessage:"Una nuova versione di CamStack \xe8 stata scaricata ed \xe8 pronta per l'installazione. L'app verr\xe0 riavviata per applicare l'aggiornamento.",updateInstall:"Installa e riavvia",updateLater:"Pi\xf9 tardi",tabIntegrations:"Integrazioni",tabCameras:"Telecamere",theme:"Tema",themeSystem:"Sistema",themeLight:"Chiaro",themeDark:"Scuro",language:"Lingua",languageSystem:"Sistema",languageEn:"English",languageIt:"Italiano",timelineMode:"Modalit\xe0 timeline",timelineModeClassic:"Classica",timelineModeTheater:"Theater",timeline:"Timeline",timelineVisible:"Mostra timeline rilevamenti",timelineVisibleDescription:"Visualizza il pannello della timeline nella vista telecamera.",clusterSize:"Dimensione cluster",snapshotInterval:"Intervallo aggiornamento snapshot",clusterSizeXS:"Molto piccola",clusterSizeS:"Piccola",clusterSizeM:"Normale",clusterSizeL:"Grande",clusterSizeXL:"Molto grande",highlightAppearance:"Aspetto evidenze",highlightAppearanceHint:"Colore e spessore del bordo per evidenze movimento, audio e rilevamento sugli stream delle telecamere.",highlightMotion:"Movimento",highlightAudio:"Audio",highlightDetection:"Rilevamento",highlightColor:"Colore",highlightThickness:"Spessore",selectSection:"Seleziona sezione",addSystem:"Aggiungi sistema",selectPlatform:"Seleziona piattaforma",deleteInstance:"Elimina istanza",deleteInstanceConfirm:"Vuoi eliminare questa istanza?",delete:"Elimina",mqttEvents:"MQTT - Eventi in tempo reale",mqttBrokerUrl:"URL broker MQTT",mqttUsername:"Username MQTT",mqttPassword:"Password MQTT",mqttTopicPrefix:"Prefisso topic (default: frigate)",mqttOptional:"Opzionale",scryptedAddressAlreadyUsed:"Questo indirizzo Scrypted \xe8 gi\xe0 configurato. \xc8 consentita una sola istanza per indirizzo.",scryptedAdvancedNotifierRequired:"Il plugin Advanced Notifier \xe8 richiesto per la connessione.",scryptedCorsTitle:"Configurazione CORS richiesta (Web)",scryptedCorsBody:"In Scrypted, apri le impostazioni del plugin Cloud e aggiungi il tuo dominio ({{domain}}) alla lista CORS Allowed Origins. Senza questa configurazione, il browser bloccher\xe0 le richieste verso il server Scrypted.",scryptedUrlHint:"L'URL locale viene provato per primo (es. in LAN), poi quello pubblico. Ne serve almeno uno.",gridLayout:"Layout griglia",gridLayoutHint:"Opzioni di visualizzazione per la griglia telecamere.",gridColumns:"Colonne griglia",gridColumnsHint:"Numero di telecamere per riga. Auto = 1 su mobile, 4 su tablet.",gridShowName:"Mostra nome telecamera",gridShowState:"Mostra stato (batteria, registrazione, sleep)",reorderCameras:"Riordina telecamere",reorderCamerasHint:"Trascina per riordinare le telecamere",reorderDone:"Fatto",manageCameras:"Gestisci telecamere",manageCamerasHint:"Rimuovi telecamere dall'app.",downloadSnapshot:"Scarica snapshot",snapshotFailed:"Impossibile recuperare lo snapshot",exportSnapshot:"Snapshot",exportDownloadClip:"Scarica clip",exportStartRecording:"Avvia registrazione",exportStopRecording:"Ferma registrazione",exportRecordingWebOnly:"Registrazione disponibile su web",intercomError:"Intercom non disponibile. Verifica le credenziali della telecamera su Scrypted.",deleteCamera:"Rimuovi telecamera",deleteCameraConfirm:"Rimuovere {{name}} dall'app?",streamPlayback:"Stream e riproduzione",playOnOpen:"Avvia stream all'apertura telecamera",playOnOpenHint:"Carica automaticamente lo stream live quando apri una telecamera.",audioOnOpen:"Audio attivo all'apertura",audioOnOpenHint:"Riproduci audio quando apri una telecamera (se supportato).",streamWatchdog:"Stream watchdog",streamWatchdogHint:"Riavvia lo stream quando non arrivano dati (aiuta con connessioni bloccate).",cameraPlayer:"Player telecamera",webViewCameraDetail:"Usa player WebView",webViewCameraDetailHint:"Usa WebView per le telecamere Scrypted (primo frame pi\xf9 veloce, pi\xf9 stabile). PiP, fullscreen e intercom funzionano. Default: player nativo.",streamQuality:"Qualit\xe0 stream",streamQualitySingle:"Qualit\xe0 singola telecamera",streamQualityGrid:"Qualit\xe0 griglia",qualityAuto:"Auto",qualityHigh:"High",qualityMedium:"Mid",qualityLow:"Sub",auto:"Auto",associatedDevices:"Dispositivi associati",associatedDevicesHint:"Aggiungi attuatori (luci, interruttori, tapparelle, ecc.) per controllarli dalla vista telecamera.",linkedDevices:"Collegati",reorderHint:"Usa le frecce per riordinare",addDevice:"Aggiungi dispositivo",noEligibleDevices:"Nessun Scrypted o Home Assistant configurato. Aggiungi prima un'integrazione.",configureDevices:"Configura dispositivi",cameraSettingsHint:"Scegli una telecamera per configurarne le opzioni.",noCamerasConfigured:"Nessuna telecamera configurata.",searchDevices:"Cerca dispositivi...",source:"Sorgente",type:"Tipo",all:"Tutti",noMatchingDevices:"Nessun dispositivo corrisponde ai filtri.",frigateStream:"Stream Frigate",frigateStreamSourceHint:"Sorgente stream: WebRTC (default), RTSP o MJPEG.",frigateStreamMapping:"Mappatura stream (nomi go2rtc da config)",frigateStreamMappingHint:"Seleziona dagli stream go2rtc disponibili. Ordine: High, Mid, Sub.",frigateSelectStream:"Seleziona stream",frigateAddStream:"Aggiungi stream",frigateInfo:"Info telecamera",frigateShowConfig:"Mostra config",frigateShowGo2rtc:"Mostra go2rtc",frigateMissingConfig:"Mancano baseUrl o cameraName nella config della telecamera.",tabLogs:"Log",logsCount:"{{count}} voci",logsDownload:"Scarica",logsClear:"Svuota",logsEmpty:"Nessun log. L'output della console apparir\xe0 qui.",logsExportError:"Esportazione fallita",logsExportTitle:"Esporta log",logsClearConfirmTitle:"Svuota log",logsClearConfirmMessage:"Rimuovere tutte le voci di log?",hubAppearanceTitle:"Aspetto",hubAppearanceDesc:"Tema, lingua, timeline e evidenze",hubCamerasTitle:"Telecamere",hubCamerasDesc:"Layout griglia, qualit\xe0 stream e gestione telecamere",hubIntegrationsTitle:"Integrazioni",hubIntegrationsDesc:"Gestisci Scrypted, Frigate e altri sistemi",hubAdvancedTitle:"Avanzato",hubAdvancedDesc:"Backup dati e gestione cache",hubLogsTitle:"Log",hubLogsDesc:"Visualizza ed esporta i log dell'applicazione",hubCacheTitle:"Cache",frigateAutoSnap:"Istantanea Automatica",frigateSegmentNav:"Navigazione Segmenti",frigateShowGo:"Mostra Go2RTC",frigateTimeline:"Timeline",reelCameras:"Telecamere Reel",reelCamerasHint:"Seleziona quali telecamere appaiono nel reel eventi",reelDeselectAll:"Deseleziona Tutto",reelDetectionClasses:"Classi di Rilevamento",reelDetectionClassesHint:"Filtra gli eventi per classe di rilevamento",reelIncludeRuleArtifacts:"Includi Artefatti Regole",reelIncludeRuleArtifactsHint:"Mostra gli eventi basati su regole nel reel",reelRuleArtifacts:"Artefatti Regole",reelSelectAll:"Seleziona Tutto",reelBadgeContent:"Contenuto badge",reelBadgePosition:"Posizione badge",reelBadgeSize:"Dimensione badge",reelBadgeBoth:"Ora + Classe",reelBadgeTime:"Solo ora",reelBadgeClass:"Solo classe",reelBadgeNone:"Nascosto",reelBadgeSmall:"Piccolo",reelBadgeMedium:"Medio",reelBadgeLarge:"Grande"},reel:{filterMotion:"Motion",filterOnlyRules:"Solo rule",filterOnlySensors:"Solo sensori",goToMostRecent:"Vai al pi\xf9 recente"},v2:{common:{connecting:"Connessione\u2026",online:"Online",offline:"Offline",loadError:"Errore di caricamento",create:"Crea"},cameras:{empty:"Nessuna telecamera",statusOnline:" \xb7 online",statusOffline:" \xb7 offline",sleeping:"In standby",unavailable:"Non disponibile",motion:"Movimento",doorbell:"Campanello",doorbellRinging:"Sta suonando",doorbellLastRing:"Suonato {{time}} fa",snapshotLoading:"Caricamento\u2026",manage:"Gestisci telecamere",manageHint:"Trascina per riordinare. Rinomina al volo. Usa lo switch per mostrare o nascondere una telecamera dall\u2019elenco.",reorderHandle:"Trascina per riordinare",appearance:"Aspetto",editList:"Modifica elenco",listOptions:"Opzioni elenco telecamere"},cameraDetail:{fallbackName:"Camera #{{id}}",mute:"Disattiva audio",unmute:"Attiva audio",snapshot:"Istantanea",snapshotFailed:"Impossibile acquisire l'istantanea.",ptz:"Controlli PTZ",talk:"Parla",fullscreen:"Schermo intero",talkFailed:"Impossibile avviare la comunicazione. Verifica l'accesso al microfono.",pip:"Picture in Picture",exitFullscreen:"Esci da schermo intero",devices:"Dispositivi",devicesEmpty:"Nessun dispositivo collegato.",linkedModeAuto:"Collegamento: Auto (posizione)",linkedModeManual:"Collegamento: Manuale",motionBoxes:"Riquadri movimento",close:"Chiudi",deviceOnline:"Online",deviceOffline:"Offline"},grids:{createA11y:"Crea griglia",empty:"Nessuna griglia",emptyHint:"Tocca + per creare la tua prima griglia",countNone:"Nessuna telecamera",countOne:"1 telecamera",countOther:"{{count}} telecamere",defaultName:"Nuova griglia",deleteTitle:"Elimina griglia",deleteConfirm:"Eliminare \"{{name}}\"? L'operazione non \xe8 reversibile.",export:"Esporta",exportAllA11y:"Esporta tutte le griglie",shareA11y:"Condividi griglia",editA11y:"Modifica griglia",deleteA11y:"Elimina griglia",linkCopied:"Link della griglia copiato negli appunti",layoutAuto:"Auto",layoutColumns:"{{count}} col"},gridView:{editA11y:"Modifica griglia",fallbackTitle:"Griglia",notFound:"Griglia non trovata",emptyGrid:"Questa griglia \xe8 vuota",addCameras:"Aggiungi telecamere",reorderTitle:"Riordina telecamere",reorderA11y:"Riordina telecamere",reorderDoneA11y:"Fine riordino",allHidden:"Tutte le telecamere sono nascoste. Usa la modalit\xe0 riordino per mostrarne alcune.",dragA11y:"Trascina per riordinare",hideA11y:"Nascondi dalla griglia",showA11y:"Mostra nella griglia",removeA11y:"Rimuovi dalla griglia",adhocTitle:"Griglia rapida"},gridBuilder:{title:"Modifica griglia",nameLabel:"Nome",namePlaceholder:"Nome griglia",camerasSelected:"Telecamere ({{count}} selezionate)",optionsTitle:"Opzioni",showName:"Mostra nome telecamera",export:"Esporta griglia",orderSection:"Nella griglia",orderHint:"Trascina per riordinare",emptyOrder:"Nessuna telecamera \u2014 aggiungine qui sotto.",addSection:"Aggiungi telecamere",removeA11y:"Rimuovi dalla griglia",addA11y:"Aggiungi alla griglia",highlightTitle:"Evidenziazione",highlightMotion:"Su movimento",highlightAudio:"Su audio",highlightAudioOff:"Off",highlightAudioSensor:"Presenza",highlightAudioLevel:"Livello",highlightThreshold:"Soglia",highlightHold:"Mantieni",highlightDetection:"Su rilevamento",clusterLabel:"Etichetta cluster",clusterLabelIcon:"Icona",clusterLabelText:"Testo"},gridBar:{back:"Indietro",pauseAll:"Metti tutto in pausa",playAll:"Riproduci tutto",audio:"Audio",quality:"Qualit\xe0 stream",layout:"Layout",highlightMenu:"Evidenziazione e overlay",activeOnly:"Solo attive",share:"Condividi griglia",edit:"Modifica griglia",hide:"Nascondi controlli",show:"Mostra controlli",muteAll:"Silenzia tutte",unmuteAll:"Riattiva audio"},gridMenu:{highlightMaster:"Bordi di evidenziazione"},gridShare:{title:"Condividi \"{{name}}\"",quality:"Qualit\xe0 stream",layout:"Layout",showNames:"Mostra nomi delle camere",activeOnly:"Solo camere attive",boxes:"Bounding box",highlightEnable:"Evidenziazione",audioSummary:"Audio attivo all\u2019apertura per {{count}} camera/e",ttlTitle:"Scadenza del link",ttl_1d:"1 giorno",ttl_7d:"7 giorni",ttl_30d:"30 giorni",ttl_never:"Per sempre",tokenNotice:"Il link include un token di sola visualizzazione limitato a queste camere. Chiunque abbia il link pu\xf2 guardare finch\xe9 non scade o viene revocato.",copyLink:"Copia link",creating:"Creazione link\u2026",copiedExpires:"Link copiato \u2014 scade il {{date}}",copiedNever:"Link copiato \u2014 non scade mai",error:"Impossibile creare il link di condivisione. Controlla la connessione e riprova.",optionAuto:"Auto",optionHigh:"Alta",optionMedium:"Media",optionLow:"Bassa"},gridControls:{play:"Riproduci",pause:"Pausa",mute:"Muto",unmute:"Riattiva audio",quality:"Qualit\xe0",layout:"Layout",layoutAuto:"Auto"},events:{comingSoon:"Eventi \u2014 in arrivo",searchLabel:"Cerca etichetta\u2026",empty:"Nessun evento",today:"Oggi",filteredEmpty:"Nessuna corrispondenza nell'intervallo caricato",loadOlder:"Carica meno recenti",selectPrompt:"Seleziona un evento per vederne i dettagli",filters:"Filtri",all:"Tutte",day:"Giorno",sort:"Ordina",sortTime:"Recenti",sortImportance:"Importanza",cameras:"Telecamere",classes:"Classi",search:"Cerca",searchCameras:"Cerca telecamere\u2026",searchClasses:"Cerca classi\u2026",allCamerasHint:"Nessuna = tutte",allClassesHint:"Nessuna = tutte",done:"Fatto",density:"Densit\xe0",selectHint:"Seleziona un evento",eventKinds:"Tipi di evento",displayOptions:"Aspetto",displayTitle:"Opzioni di visualizzazione",minImportance:"Importanza minima",minImportanceOff:"Off"},settings:{themeSystem:"Sistema",themeDark:"Scuro",themeLight:"Chiaro",server:"Server",hubActive:"Hub attivo",changeServer:"Cambia server",signOut:"Esci",network:"Rete",networkNone:"Nessuna rotta ancora rilevata",endpointUnlikely:"Probabilmente non utilizzabile",reprobe:"Ri-rileva rotte",reprobing:"Rilevamento\u2026",appearance:"Aspetto",theme:"Tema",info:"Info",app:"App",version:"Versione",noServer:"Nessun server",footerNote:"CamStack Viewer si connette a un singolo hub camstack. Telecamere, griglie ed eventi sono gestiti dal server.",language:"Lingua",langSystem:"Sistema",gridDefaults:"Impostazioni griglia",showName:"Mostra nome telecamera",showNameHint:"Sovrapponi il nome della telecamera su ogni riquadro",showState:"Mostra stato",showStateHint:"Mostra lo stato online / registrazione su ogni riquadro",columns:"Colonne",cameraOrder:"Ordine telecamere",orderName:"Per nome",orderCustom:"Personalizzato",motionHold:"Persistenza evidenziazione movimento",motionHoldHint:"Mantieni accesa l'evidenziazione del movimento su una tile per questo tempo dopo che il movimento si ferma.",motionHoldOff:"Off",streamQuality:"Qualit\xe0 stream",streamDefaults:"Impostazioni stream",playOnOpen:"Riproduci all'apertura",playOnOpenHint:"Avvia lo stream live quando apri una telecamera",audioOnOpen:"Audio all'apertura",audioOnOpenHint:"Attiva l'audio quando apri una telecamera",snapshotInterval:"Aggiornamento snapshot",highlightAppearance:"Aspetto evidenziazione",highlightMotionColor:"Colore movimento",highlightAudioColor:"Colore audio",highlightDetectionColor:"Colore rilevamento",highlightThickness:"Spessore bordo",qualityAuto:"Auto",qualityHigh:"Alta",qualityMid:"Media",qualityLow:"Bassa",secondsValue:"{{count}}s",advanced:"Avanzate",clearCache:"Svuota cache",clearCacheHint:"Libera snapshot e dati in cache (mantiene server e impostazioni)",clearCacheConfirmTitle:"Svuotare la cache?",clearCacheConfirmBody:"Rimuove immagini e dati in cache. Server, accesso e impostazioni vengono mantenuti.",clearCacheDone:"Cache svuotata",exportSettings:"Esporta impostazioni",exportSettingsHint:"Copia le impostazioni in formato JSON",exportSettingsDone:"Impostazioni copiate in JSON",viewLogs:"Visualizza log",viewLogsHint:"Messaggi di log recenti dell'app",logsEmpty:"Nessun log registrato",keepLogs:"Mantieni log",keepLogsHint:"Registra un buffer dei messaggi di log dell'app",debugMode:"Modalit\xe0 debug",debugModeHint:"Log verbosi su live, playback e scrub \u2014 inviati al server",logsClear:"Pulisci",resetSettings:"Ripristina impostazioni",resetSettingsHint:"Ripristina tutti i valori predefiniti",resetConfirmTitle:"Ripristinare le impostazioni?",resetConfirmBody:"Ripristina tutte le impostazioni ai valori predefiniti.",cancel:"Annulla",confirm:"Conferma",timeline:"Timeline ed evidenziazioni",reel:"Sequenza eventi",reelThumbSize:"Dimensione miniature",reelThumbSizeHint:"Dimensione delle miniature nella sequenza eventi recenti.",reelSizeSmall:"Piccola",reelSizeMedium:"Media",reelSizeLarge:"Grande",reelShowLabels:"Mostra etichette",reelShowLabelsHint:"Mostra l'etichetta classe/identit\xe0 sugli elementi della sequenza.",reelLabelStyle:"Visualizzazione classe",reelLabelStyleHint:"Mostra la classe di rilevamento come icona o come testo negli elementi della sequenza.",reelShowImportance:"Mostra importanza",reelShowImportanceHint:"Mostra il badge di importanza sugli elementi della sequenza.",eventsPage:"Pagina eventi",tileShowLabels:"Mostra etichette",tileShowLabelsHint:"Mostra le etichette classe / identit\xe0 / audio sulle schede evento.",tileShowImportance:"Mostra importanza",tileShowImportanceHint:"Mostra il badge di importanza sulle schede evento (se valutato).",tileShowCameraName:"Mostra nome telecamera",tileShowCameraNameHint:"Mostra il nome della telecamera nel pi\xe8 di pagina della scheda evento.",tileLabelStyle:"Visualizzazione classe",tileLabelStyleHint:"Mostra la classe di rilevamento come icona o come testo.",tileLabelStyleIcon:"Icona",tileLabelStyleText:"Testo",comingSoon:"Prossimamente",cameras:"Telecamere",manageCameras:"Gestisci telecamere",manageCamerasHint:"Rinomina, nascondi, riordina",pinchExpandsHeight:"Il pizzico ingrandisce la vista",pinchExpandsHeightHint:"Pizzicando per lo zoom il video cresce in altezza (ritaglia i bordi laterali sulle camere 16:9).","timeline.gapPercent":"Gap cluster (%)","timeline.sizePercent":"Dimensione cluster (%)","timeline.indicatorPositionPct":"Posizione indicatore (%)","timeline.showImportance":"Mostra importanza sugli elementi","timeline.showClass":"Mostra classe di rilevamento sugli elementi","timeline.minImportance":"Importanza minima","timeline.minImportanceOff":"Off","timeline.cardWidthPct":"Larghezza card (%)",haptics:"Vibrazione eventi",hapticsEnabled:"Vibra sugli eventi",hapticsEnabledHint:"Brevi vibrazioni per gli eventi chiave sulla telecamera che stai guardando. Solo su dispositivo (iOS/Android).",hapticsMotion:"Movimento",hapticsDetection:"Rilevamento",hapticsPerson:"Persona / riconosciuta"},login:{loginFailed:"Accesso fallito",verifyFailed:"Verifica fallita",serverUrl:"Server URL",username:"Username",password:"Password",showPassword:"Mostra password",hidePassword:"Nascondi password",signIn:"Accedi",signingIn:"Accesso\u2026",twoFactor:"Autenticazione a due fattori",totpHint:"Inserisci il codice a 6 cifre dall'app di autenticazione per accedere come ",verificationCode:"Codice di verifica",verifyAndSignIn:"Verifica e accedi",verifying:"Verifica\u2026",back:"Indietro",or:"oppure",signInWithCamStack:"Accedi con CamStack",hubSignInHint:"Apre la pagina di accesso del tuo hub e collega questa app senza digitare qui la password.",handoffFailed:"Accesso con CamStack non riuscito \u2014 riprova oppure usa nome utente e password",invalidServerUrl:"Inserisci prima un URL server valido (https://\u2026)"},live:{webUnsupported:"La vista live non \xe8 ancora disponibile nella versione web.",connecting:"Connessione allo stream live\u2026",error:"Impossibile caricare lo stream live.",retry:"Riprova",noConnection:"Nessuna connessione al server",failed:"Connessione fallita"},ptz:{title:"PTZ",notAvailable:"I controlli PTZ non sono disponibili per questa telecamera.",zoom:"Zoom",home:"Posizione iniziale",presets:"Preset",noPresets:"Nessun preset salvato."},timeline:{activityTitle:"Attivit\xe0",last24h:"Ultime 24h",loading:"Caricamento attivit\xe0\u2026",noActivity:"Nessuna attivit\xe0 nelle ultime 24 ore.",legendRecording:"Registrato",legendMotion:"Movimento",legendAudio:"Audio"},theater:{back:"Indietro",today:"Oggi",yesterday:"Ieri",selectDate:"Seleziona una data",live:"LIVE",now:"ORA",auto:"Auto",quality:"Qualit\xe0 stream",filterAll:"Tutti",filter_motion:"Movimento",filter_audio:"Audio",goToLive:"Vai al live",noRecording:"Nessuna registrazione",noRecordingHint:"Nessun filmato per questo momento",detailCount:"{{frames}} frame \xb7 {{count}} rilevamenti",detailTracks:"{{tracks}} tracce \xb7 {{count}} rilevamenti",detailEmpty:"Nessuna immagine di dettaglio per questo istante",detailSeek:"Vai a questo momento",zoneHint:"Trascina un rettangolo sul video per filtrare gli eventi per zona",zoneConfirm:"Conferma",zoneCancel:"Annulla"},tracks:{crop:"Ritaglio",fullFrame:"Frame completo",showBoundingBox:"Mostra bounding box",zones:"Zone",audio:"Audio",reason:"Perch\xe9 rilevante",empty:"Nessuna traccia",recent:"Recenti",searchPlaceholder:"Cerca eventi (es. \"persona in rosso\")",noMatches:"Nessun evento corrispondente",person:"Persona",assignPerson:"Associa a persona",changePerson:"Cambia",notAssigned:"Non associata",assignFaceTitle:"Associa volto",newPersonPlaceholder:"Nome nuova persona\u2026",createAndAssign:"Crea e associa",assignFailed:"Associazione del volto non riuscita",removePerson:"Rimuovi persona",removePersonConfirmTitle:"Rimuovere la persona?",removePersonConfirmBody:"Questo scollega la persona da questo volto. Il volto torna tra quelli non associati e potr\xe0 essere riassociato in seguito.",disassociateFailed:"Rimozione della persona non riuscita",removePersonAll:"Rimuovi da tutti gli eventi",removePersonAllConfirmTitle:"Rimuovere da tutti gli eventi?",removePersonAllConfirmBody:"Questo scollega la persona da OGNI evento. Tutti i volti attualmente riconosciuti come questa persona tornano tra quelli non associati e potranno essere riassociati in seguito. La persona viene mantenuta.",disassociateAllFailed:"Rimozione della persona da tutti gli eventi non riuscita",existingPersons:"Persone",noPersons:"Ancora nessuna persona",metadata:"Metadati",copy:"Copia",copied:"Copiato","meta.trackId":"ID traccia","meta.eventId":"ID evento migliore","meta.deviceId":"ID dispositivo","meta.camera":"Telecamera","meta.className":"Classe","meta.label":"Etichetta","meta.firstSeen":"Prima apparizione","meta.lastSeen":"Ultima apparizione","meta.state":"Stato","meta.importance":"Importanza","meta.confidence":"Confidenza","meta.mediaKeys":"Chiavi media"},accessories:{on:"Acceso",off:"Spento",dimUp:"Pi\xf9 luminoso",dimDown:"Meno luminoso",lock:"Blocca",unlock:"Sblocca",open:"Apri",close:"Chiudi",stop:"Ferma",arm:"Attiva",disarm:"Disattiva",onMotion:"Su movimento",warmer:"Pi\xf9 caldo",cooler:"Pi\xf9 freddo",speedUp:"Pi\xf9 veloce",speedDown:"Pi\xf9 lento",oscillate:"Oscillazione",press:"Premi",play:"Riproduci",pause:"Pausa",previous:"Precedente",next:"Successivo",start:"Avvia",dock:"Rientra",locate:"Localizza",feed:"Eroga",feeding:"Erogazione\u2026",install:"Installa",installing:"Installazione\u2026",upToDate:"Aggiornato",increase:"Aumenta",decrease:"Diminuisci",select:"Seleziona",climateModes:{off:"Spento",heat:"Riscaldamento",cool:"Raffreddamento",auto:"Auto",heat_cool:"Caldo/Freddo",fan_only:"Ventola",dry:"Deumidificazione"}},cameraMenu:{title:"Opzioni vista",boundingBoxes:"Bounding box",streamStats:"Statistiche stream",audioLevel:"Livello audio",densityTitle:"Densit\xe0 timeline",density_compact:"Compatta",density_medium:"Media",density_wide:"Ampia",densityCustom:"Personalizzata",indicatorPosition:"Posizione indicatore",showImportance:"Mostra importanza",showClass:"Mostra classe rilevata",minImportanceTitle:"Importanza minima",minImportanceOff:"Off",managementTitle:"Gestione"},stats:{title:"Statistiche stream",resolution:"Risoluzione",fps:"FPS",bitrate:"Bitrate",packetLoss:"Pacchetti persi",jitter:"Jitter",codec:"Codec",frames:"Frame (persi/totali)",waiting:"Misurazione\u2026",playbackHint:"Le statistiche WebRTC complete richiedono il player nativo."},exportActions:{title:"Cattura",recordingExport:"Esporta registrazione"},exports:{title:"Esportazioni",empty:"Nessuna esportazione.",settingsHint:"Scarica clip registrate",range:"Intervallo",rangeStart:"Inizio",rangeEnd:"Fine",profile:"Profilo",noFootage:"Nessuna registrazione in questo intervallo.",speed:"Velocit\xe0",timelapse:"Timelapse",cadence:"Un fotogramma ogni",audio:"Audio",includeAudio:"Includi audio",audioUnavailable:"L'audio \xe8 disponibile solo a velocit\xe0 0,5\u20132\xd7.",retention:"Conserva per",life24h:"24 ore",life7d:"7 giorni",life30d:"30 giorni",deleteAfterDownload:"Elimina dopo il download",deleteAfterDownloadHint:"Rimuovi il file una volta scaricato.",creating:"Creazione\u2026",createAction:"Esporta",createFailed:"Impossibile creare l'esportazione.",withAudio:"con audio",variantRegular:"1\xd7",variantAccelerated:"Accelerato {{speed}}\xd7",variantSlow:"Rallentato {{speed}}\xd7",variantTimelapse:"Timelapse",expired:"Scaduto",expiresInDays:"Scade tra {{count}}g",expiresInHours:"Scade tra {{count}}h",expiresInMinutes:"Scade tra {{count}}m",downloadAction:"Scarica",downloadUnavailable:"Download non disponibile.",downloadFailed:"Download non riuscito.",cancelAction:"Annulla",cancelConfirmTitle:"Annullare l'esportazione?",cancelConfirmBody:"Interrompe il rendering ed elimina il file parziale.",deleteAction:"Elimina",deleteConfirmTitle:"Eliminare l'esportazione?",deleteConfirmBody:"Rimuove il file. La voce nella cronologia viene mantenuta.",dismiss:"Chiudi",state:{queued:"In coda",rendering:"Rendering",ready:"Pronto",failed:"Non riuscito",expired:"Scaduto",deleted:"Eliminato"}},streamBar:{play:"Riproduci",pause:"Pausa",mute:"Silenzia",unmute:"Riattiva audio",talkStart:"Inizia a parlare",talkStop:"Smetti di parlare",quality:"Qualit\xe0 stream",menu:"Opzioni vista",snapshot:"Istantanea",pip:"Picture in picture",fullscreen:"Schermo intero",exitFullscreen:"Esci da schermo intero"},playback:{prevFrame:"Frame precedente",nextFrame:"Frame successivo",speed:"Velocit\xe0 riproduzione",audioMuted:"Audio off a \u2260 1\xd7",audioOn:"Audio attivo"},cameraSwitcher:{title:"Cambia videocamera",empty:"Nessuna videocamera disponibile",openGrid:"Apri griglia ({{n}})",selectA11y:"Seleziona {{name}}"},storage:{title:"Archiviazione",usageTitle:"Utilizzo",nodeTotal:"Totale nodo",defaultLocation:"Posizione predefinita",locationFree:"{{free}} liberi",retentionTitle:"Conservazione",pruneAction:"Applica conservazione ora",pruneConfirmTitle:"Applicare la conservazione?",pruneConfirmBody:"Elimina le registrazioni su {{name}} che superano la policy di conservazione.",pruneResult:"Recuperati {{bytes}} ({{buckets}} segmenti).",deleteTitle:"Elimina registrazioni",deleteAction:"Elimina",deleteConfirmTitle:"Eliminare le registrazioni?",deleteConfirmBody:"Elimina definitivamente {{range}} di registrazioni su {{name}}. Operazione irreversibile.",deleteResult:"Recuperati {{bytes}} ({{buckets}} segmenti).",cancel:"Annulla",window24h:"Ultime 24h",window7d:"Ultimi 7 giorni",window30d:"Ultimi 30 giorni",windowAll:"Tutto"},eventsMgmt:{title:"Eventi",footprintTitle:"Ingombro",rowsBytes:"{{rows}} eventi \xb7 {{bytes}}",clusterTotal:"Totale cluster",pruneTitle:"Elimina pi\xf9 vecchi di",pruneHint:"Si applica a tutte le telecamere.",pruneAction:"Elimina",pruneConfirmTitle:"Eliminare gli eventi vecchi?",pruneConfirmBody:"Elimina gli eventi pi\xf9 vecchi di {{range}} su TUTTE le telecamere. Operazione irreversibile.",pruneResult:"Eliminati {{count}} eventi.",deleteTitle:"Elimina eventi telecamera",deleteAction:"Elimina tutti gli eventi di questa telecamera",deleteConfirmTitle:"Eliminare tutti gli eventi?",deleteConfirmBody:"Elimina definitivamente ogni evento di {{name}}. Operazione irreversibile.",deleteResult:"Eliminati {{count}} eventi.",cancel:"Annulla",older24h:"24 ore",older7d:"7 giorni",older30d:"30 giorni"}},prototype:{today:"Oggi",yesterday:"Ieri",now:"ORA",endOfDay:"FINE GIORNATA",loading:"Caricamento...",timeline:"Timeline",events:"Eventi",playClip:"Riproduci clip",goToNow:"ORA",noEvents:"Nessun evento"},eventKind:{motion:"Movimento",audio:"Audio",person:"Persona",vehicle:"Veicolo",animal:"Animale",package:"Pacco",sensor:"Sensore",control:"Controllo",car:"Auto",truck:"Camion",bus:"Autobus",motorcycle:"Motocicletta",bicycle:"Bicicletta",airplane:"Aereo",boat:"Barca",train:"Treno",bird:"Uccello",cat:"Gatto",dog:"Cane",horse:"Cavallo",sheep:"Pecora",cow:"Mucca",elephant:"Elefante",bear:"Orso",zebra:"Zebra",giraffe:"Giraffa",contact:"Contatto","motion-sensor":"Sensore movimento",smoke:"Fumo",flood:"Allagamento",gas:"Gas","carbon-monoxide":"Monossido di carbonio",vibration:"Vibrazione",tamper:"Manomissione",presence:"Presenza","enum-sensor":"Stato sensore","device-event":"Evento dispositivo",lock:"Serratura",switch:"Interruttore",siren:"Sirena",button:"Pulsante",doorbell:"Campanello","package-delivered":"Pacco consegnato","package-picked-up":"Pacco ritirato","audio-speech":"Voce","audio-music":"Musica","audio-dog":"Cane","audio-doorbell":"Campanello","audio-siren":"Sirena","audio-alarm":"Allarme"}}},3579,[]);
16001
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.RootProviders=function(v){const _=(0,t.c)(4),{children:f}=v;let y,P,S;_[0]===Symbol.for("react.memo_cache_sentinel")?(y={flex:1},_[0]=y):y=_[0];_[1]===Symbol.for("react.memo_cache_sentinel")?(P=(0,j.jsx)(s.ThemedStatusBar,{}),_[1]=P):P=_[1];_[2]!==f?(S=(0,j.jsx)(n.GestureHandlerRootView,{style:y,children:(0,j.jsx)(c.SafeAreaProvider,{initialMetrics:c.initialWindowMetrics,children:(0,j.jsx)(o.QueryClientProvider,{client:x,children:(0,j.jsxs)(l.ThemeProvider,{children:[P,(0,j.jsx)(h.ServerProvider,{children:(0,j.jsx)(u.LoggerBridge,{children:f})})]})})})}),_[2]=f,_[3]=S):S=_[3];return S};var t=r(d[0]);r(d[1]);var n=r(d[2]),c=r(d[3]),o=r(d[4]),l=r(d[5]),s=r(d[6]),h=r(d[7]),u=r(d[8]),v=r(d[9]),j=r(d[10]);const x=(0,v.createQueryClient)()},3580,[15,17,3242,466,3081,2587,3581,3144,3582,3149,10]);
15999
+ __d(function(e,t,a,o,i,n,r){i.exports={devices:{editDevice:"Edit device",originalName:"Original name",customName:"Custom name",customNamePlaceholder:"Leave empty to use original",icon:"Icon",typeLight:"Light",typeSwitch:"Switch",typeCover:"Cover",typeLock:"Lock",typeAlarm:"Alarm",typeButton:"Button",typeSelect:"Select",typeSiren:"Siren",typeSensor:"Sensor",typeEntry:"Entry",typeMediaPlayer:"Media Player",typeScript:"Script",run:"Run",sourceHA:"Home Assistant",sourceScrypted:"Scrypted",off:"Off",on:"On",mute:"Mute",unmute:"Unmute",stop:"Stop",locked:"Locked",unlocked:"Unlocked",open:"Open",closed:"Closed",disarmed:"Disarmed",disarm:"Disarm"},common:{error:"Error",save:"Save",cancel:"Cancel",loading:"Loading...",comingSoon:"Coming soon",back:"Back",fullscreen:"Fullscreen",exitFullscreen:"Exit fullscreen",reset:"Reset",selectAll:"Select all",deselectAll:"Deselect all",delete:"Delete",retry:"Retry"},grids:{newGrid:"New grid",deleteConfirm:"Delete this grid?",noGrids:"No grids yet. Create one to arrange cameras in a mosaic view.",createGrid:"Create grid",cameras:"cameras",notFound:"Grid not found.",noCameras:"No cameras in this grid. Edit the grid to add some.",edit:"Edit",addCamera:"Add camera",presets:"Presets",auto:"Auto",manual:"Manual",gridName:"Grid name",view:"View",addCameraHint:"Add at least one camera from the button above.",allCamerasAdded:"All cameras already in grid",cameraUnavailable:"Camera unavailable",camerasInGrid:"Cameras in grid",addAll:"Add all",addCameras:"Add Cameras",backToGrid:"Back to Grid",timelineNotSupported:"Timeline not supported"},nav:{cameras:"Cameras",grids:"Grids",events:"Events",videoclips:"Videoclips",list:"List",settings:"Settings"},cameras:{addCamera:"Add camera",pipActive:"PiP active",reorderEnable:"Reorder",reorderDisable:"Unlock",live:"Live",noCameras:"No cameras configured",noIntegrations:"No integrations configured. Add a system to get started.",createSystem:"Create system",importFrom:"Import cameras from",importSuccess:"Import complete",importCount:"{{count}} cameras imported",selectCamerasToImport:"Select cameras to import",selectAll:"Select all",deselectAll:"Deselect all",importSelected:"Import {{count}} selected",noCamerasFound:"No cameras found",play:"\u25b6 Play",paused:"Paused",noDataForDate:"No data for this date",recordingNotAvailable:"Recording not available",noEventsReel:"No recent events",settings:"Settings",highlightMotion:"Motion Highlight",highlightOnMotion:"Highlight on motion",highlightAudio:"Audio Highlight",audioMode:"Mode",audioModeOff:"Off",audioModeSensor:"Sensor",audioModeLevel:"Level",audioPreset:"Audio Preset",audioPresetCustom:"Custom",audioPresetCrying:"Crying / baby",audioPresetAlarm:"Alarm / siren",audioPresetDog:"Dog barking",audioPresetDoorbell:"Doorbell / knock",audioPresetGlass:"Glass break",audioWindow:"Window (s)",audioThreshold:"Threshold (dB)",audioHitPercentage:"Hit (%)",audioHoldSeconds:"Hold (s)",highlightDetection:"Object Detection Highlight",highlightOnDetection:"Highlight on detection",detectionClasses:"Classes",holdSeconds:"Hold (s)",rtspNotSupportedWeb:"RTSP streams are not supported on web. Use the mobile app.",liveDetections:"Live detections",filterTimeline:"Filter timeline",filterClasses:"Filter classes...",filterBySeverity:"Filter by severity",severityAlert:"Alert",severityDetection:"Detection",statusPosition:"Status Indicators Position",today:"Today",yesterday:"Yesterday",timeline:"Timeline",timelineEventsClusterEvents:"Events",selectDate:"Select a date",videoclipsNotSupported:"Videoclips not supported for this camera",noVideoclipsForDate:"No videoclips for this date",endOfList:"End of list",backToLive:"Back to live",goLive:"Go live",loadingClip:"Loading clip...",clusterDetailShowBbox:"Show bounding box on image",clusterDetailOpenVideoclip:"Open videoclip",clusterDetailLoadingEvents:"Loading events...",devices:"Devices",noAssociatedDevices:"No devices linked. Configure in Settings > Cameras.",timelineData:"Timeline data",timelineDataHint:"What to show on the timeline.",timelineDataVideoclips:"Videoclips",timelineDataAdvancedNotifier:"Advanced Notifier",timelineDataEvents:"Events",timelineEvents:"Timeline events",timelineEventsHint:"Which event types to show on the timeline, by severity.",timelinePresetAll:"All",timelinePresetImportant:"Important",timelinePresetCritical:"Critical",timelinePresetCustom:"Custom",statusBlock:"Status Block",sensorsBlock:"Sensors Block",position:"Position",indicators:"Indicators",downloadSnapshot:"Download Snapshot",exportDownloadClip:"Download Clip",exportRecordingWebOnly:"Recording export (web only)",exportSnapshot:"Export Snapshot",intercomError:"Intercom error",multiCam:"Multi-Camera",ptzNotSupported:"PTZ not supported",ptzSelectPreset:"Select PTZ Preset",snapshotFailed:"Snapshot failed"},events:{loading:"Loading events...",filterByLabel:"Filter by label",filterByLabelPlaceholder:"e.g. person, doorbell",filterByCamera:"Filter by camera",date:"Date",detectionTypes:"Detection types",source:"Source",cameras:"Cameras",groupingRange:"Grouping",groupingPresetMinutes:"{{m}} min",groupingCustom:"Custom",groupingCustomMinutes:"Minutes",groupingCustomApply:"Apply",today:"Today",noCamerasFromConfig:"Cameras loaded from EventsApp config",all:"All",typesCount:"{{count}} types",camerasCount:"{{count}} cameras",cols:"cols",sourceAuto:"Auto",sourceNVR:"NVR",sourceFrigate:"Frigate",sourceVideoClips:"VideoClips API",sourceRawDetection:"Raw",sourceAdvancedNotifier:"Advanced Notifier",detectionPerson:"Person",detectionVehicle:"Vehicle",detectionAnimal:"Animal",detectionAudio:"Audio",detectionFace:"Face",detectionPlate:"Plate",detectionPackage:"Package",detectionDoorbell:"Doorbell",detectionSensor:"Sensor",detectionMotion:"Motion",detectionRules:"Rules",noScryptedIntegration:"Add a Scrypted integration in Settings to view events.",frigateNoEvents:"Events are only available for Scrypted. Select a Scrypted instance in Settings.",noSource:"Add a Scrypted or Frigate integration in Settings, then select it as the Events/Videoclips source.",loadError:"Error loading events",noEvents:"No events for this date. Try changing the date or filters.",clearCacheTitle:"Clear cache",clearCacheMessage:"Clear all cached events and videoclips data? This will force a fresh fetch on next load.",clearCacheConfirm:"Clear",columnsPerRow:"Columns per row",onlyWithClips:"Only with clips",relatedClip:"Related Clip"},videoclips:{loading:"Loading videoclips...",noCamerasFromConfig:"Cameras loaded from config",noScryptedIntegration:"Add a Scrypted integration in Settings to view videoclips.",noFrigateIntegration:"Select a Frigate integration in Settings to view videoclips.",noSource:"Add a Scrypted or Frigate integration in Settings, then select it as the Events/Videoclips source.",loadError:"Error loading videoclips",noVideoclips:"No videoclips for this date. Try changing the date or filters.",openVideoclip:"Open videoclip",clearCacheTitle:"Clear cache",clearCacheMessage:"Clear all cached events and videoclips data? This will force a fresh fetch on next load.",clearCacheConfirm:"Clear"},settings:{integrations:"Integrations",camstackProxy:"CamStack Proxy",scrypted:"Scrypted",frigate:"Frigate",rtsp:"RTSP",homeAssistant:"Home Assistant",name:"Name",baseUrl:"Base URL",urlLocal:"Local URL",urlPublic:"Public URL",username:"Username",password:"Password",token:"Token (optional)",frigateTokenHint:"Token (optional): JWT from browser",tokenRequired:"Token",testConnection:"Test connection",testLocal:"Test Local",testPublic:"Test Public",testMqtt:"Test MQTT",connectionOk:"Connection successful",connectionError:"Connection failed",scryptedCredentialsPromptTitle:"Scrypted login",scryptedCredentialsPromptSubtitle:"Enter your Scrypted username and password to connect.",scryptedCredentialsPromptSkip:"Skip for now",usernamePlaceholder:"admin",save:"Save",tabStream:"Stream & playback",tabGeneral:"General",data:"Data",clearCacheEventsClips:"Clear events & videoclips cache",eventsClipsSourceHint:"Source for Events and Videoclips tabs.",hubReelTitle:"Hub & Reel",reelIntegrationsHint:"Choose which integrations to use for the reel.",reelScryptedSourceHint:"When using Scrypted: event source for reel.",eventsClipsAuto:"Auto",eventsClipsNoInstance:"Add a Scrypted or Frigate integration first.",exportBackup:"Export backup",exportError:"Export failed",importBackup:"Import backup",importConfirm:"This will replace all cameras, integrations and settings with the backup data. Continue?",importSuccess:"Backup restored successfully",importError:"Import failed",uiPrototypes:"UI Prototypes",uiPrototypesHint:"Explore experimental timeline designs",versions:"Versions",appVersion:"App",nativeVersion:"Native",updateNow:"Update now",updateError:"Update failed",updateAvailableTitle:"Update Available",updateAvailableMessage:"A new version of CamStack has been downloaded and is ready to install. The app will restart to apply the update.",updateInstall:"Install & Restart",updateLater:"Later",tabIntegrations:"Integrations",tabCameras:"Camera settings",theme:"Theme",themeSystem:"System",themeLight:"Light",themeDark:"Dark",language:"Language",languageSystem:"System",languageEn:"English",languageIt:"Italiano",timelineMode:"Timeline Mode",timelineModeClassic:"Classic",timelineModeTheater:"Theater",timeline:"Timeline",timelineVisible:"Show detection timeline",timelineVisibleDescription:"Display the detection timeline panel in the camera view.",clusterSize:"Cluster card size",snapshotInterval:"Snapshot refresh interval",clusterSizeXS:"XS",clusterSizeS:"S",clusterSizeM:"M",clusterSizeL:"L",clusterSizeXL:"XL",highlightAppearance:"Highlight appearance",highlightAppearanceHint:"Color and border thickness for motion, audio, and detection highlights on camera streams.",highlightMotion:"Motion",highlightAudio:"Audio",highlightDetection:"Detection",highlightColor:"Color",highlightThickness:"Thickness",selectSection:"Select section",addSystem:"Add system",selectPlatform:"Select platform",deleteInstance:"Delete instance",deleteInstanceConfirm:"Are you sure you want to delete this instance?",delete:"Delete",mqttEvents:"MQTT - Real-time events",mqttBrokerUrl:"MQTT broker URL",mqttUsername:"MQTT username",mqttPassword:"MQTT password",mqttTopicPrefix:"Topic prefix (default: frigate)",mqttOptional:"Optional",scryptedAddressAlreadyUsed:"This Scrypted address is already configured. Only one instance per address is allowed.",scryptedAdvancedNotifierRequired:"The Advanced Notifier plugin is required for the connection.",scryptedCorsTitle:"CORS configuration required (Web)",scryptedCorsBody:"In Scrypted, open the Cloud plugin settings and add your domain ({{domain}}) to the CORS Allowed Origins list. Without this, the browser will block requests to your Scrypted server.",scryptedUrlHint:"Local URL is tried first (e.g. on LAN), then public URL. At least one required.",gridLayout:"Grid layout",gridLayoutHint:"Display options for the cameras grid.",gridColumns:"Grid columns",gridColumnsHint:"Number of cameras per row. Auto = 1 on mobile, 4 on tablet.",gridShowName:"Show camera name",gridShowState:"Show state (battery, recording, sleeping)",reorderCameras:"Reorder cameras",reorderCamerasHint:"Drag to reorder cameras",reorderDone:"Done",manageCameras:"Manage cameras",manageCamerasHint:"Remove cameras from the app.",downloadSnapshot:"Download snapshot",snapshotFailed:"Could not fetch snapshot",exportSnapshot:"Snapshot",exportDownloadClip:"Download clip",exportStartRecording:"Start recording",exportStopRecording:"Stop recording",exportRecordingWebOnly:"Recording available on web",intercomError:"Intercom unavailable. Check camera credentials in Scrypted.",deleteCamera:"Remove camera",deleteCameraConfirm:"Remove {{name}} from the app?",streamPlayback:"Stream & playback",playOnOpen:"Start stream when opening camera",playOnOpenHint:"Automatically load the live stream when you open a camera.",audioOnOpen:"Unmute audio when opening",audioOnOpenHint:"Play audio when opening a camera (if supported).",streamWatchdog:"Stream watchdog",streamWatchdogHint:"Restart stream when no data received (helps with stalled connections).",cameraPlayer:"Camera player",webViewCameraDetail:"Use WebView player",webViewCameraDetailHint:"Use WebView for Scrypted cameras (faster first frame, more stable). PiP, fullscreen and intercom work. Default: native player.",streamQuality:"Stream quality",streamQualitySingle:"Single camera quality",streamQualityGrid:"Grid quality",qualityAuto:"Auto",qualityHigh:"High",qualityMedium:"Mid",qualityLow:"Sub",auto:"Auto",associatedDevices:"Associated devices",associatedDevicesHint:"Add actuators (lights, switches, covers, etc.) to control from the camera view.",linkedDevices:"Linked",reorderHint:"Use arrows to reorder",addDevice:"Add device",noEligibleDevices:"No Scrypted or Home Assistant configured. Add an integration first.",configureDevices:"Configure devices",cameraSettingsHint:"Choose a camera to configure its specific options.",noCamerasConfigured:"No cameras configured.",searchDevices:"Search devices...",source:"Source",type:"Type",all:"All",noMatchingDevices:"No devices match the filters.",frigateStream:"Frigate Stream",frigateStreamSourceHint:"Stream source: WebRTC (default), RTSP, or MJPEG.",frigateStreamMapping:"Stream mapping (go2rtc names from config)",frigateStreamMappingHint:"Select from available go2rtc streams. Order: Main, Sub, Low.",frigateSelectStream:"Select stream",frigateAddStream:"Add stream",frigateInfo:"Camera info",frigateShowConfig:"Show config",frigateShowGo2rtc:"Show go2rtc",frigateMissingConfig:"Missing baseUrl or cameraName in camera config.",tabLogs:"Logs",logsCount:"{{count}} entries",logsDownload:"Download",logsClear:"Clear",logsEmpty:"No logs yet. Console output will appear here.",logsExportError:"Export failed",logsExportTitle:"Export logs",logsClearConfirmTitle:"Clear logs",logsClearConfirmMessage:"Remove all log entries?",hubAppearanceTitle:"Appearance",hubAppearanceDesc:"Theme, language, timeline and highlights",hubCamerasTitle:"Cameras",hubCamerasDesc:"Grid layout, stream quality and camera management",hubIntegrationsTitle:"Integrations",hubIntegrationsDesc:"Manage Scrypted, Frigate and other systems",hubAdvancedTitle:"Advanced",hubAdvancedDesc:"Data backup and cache management",hubLogsTitle:"Logs",hubLogsDesc:"View and export application logs",hubCacheTitle:"Cache",frigateAutoSnap:"Auto Snapshot",frigateSegmentNav:"Segment Navigation",frigateShowGo:"Show Go2RTC",frigateTimeline:"Timeline",reelCameras:"Reel Cameras",reelCamerasHint:"Select which cameras appear in the events reel",reelDeselectAll:"Deselect All",reelDetectionClasses:"Detection Classes",reelDetectionClassesHint:"Filter events by detection class",reelIncludeRuleArtifacts:"Include Rule Artifacts",reelIncludeRuleArtifactsHint:"Show rule-based events in the reel",reelRuleArtifacts:"Rule Artifacts",reelSelectAll:"Select All",reelBadgeContent:"Badge content",reelBadgePosition:"Badge position",reelBadgeSize:"Badge size",reelBadgeBoth:"Time + Class",reelBadgeTime:"Time only",reelBadgeClass:"Class only",reelBadgeNone:"Hidden",reelBadgeSmall:"Small",reelBadgeMedium:"Medium",reelBadgeLarge:"Large"},reel:{filterMotion:"Motion",filterOnlyRules:"Only rules",filterOnlySensors:"Only sensors",goToMostRecent:"Go to most recent"},v2:{common:{connecting:"Connecting\u2026",online:"Online",offline:"Offline",loadError:"Loading error",create:"Create"},cameras:{empty:"No cameras",statusOnline:" \xb7 online",statusOffline:" \xb7 offline",sleeping:"Sleeping",unavailable:"Unavailable",motion:"Motion",doorbell:"Doorbell",doorbellRinging:"Ringing",doorbellLastRing:"Ring {{time}} ago",snapshotLoading:"Loading\u2026",manage:"Manage cameras",manageHint:"Drag to reorder. Rename inline. Toggle to show or hide a camera from the list.",reorderHandle:"Drag to reorder",appearance:"Appearance",editList:"Edit list",listOptions:"Camera list options"},cameraDetail:{fallbackName:"Camera #{{id}}",mute:"Mute",unmute:"Unmute",snapshot:"Snapshot",snapshotFailed:"Could not capture a snapshot.",ptz:"PTZ controls",talk:"Talk",fullscreen:"Fullscreen",talkFailed:"Could not start talk-back. Check microphone access.",pip:"Picture in Picture",exitFullscreen:"Exit fullscreen",devices:"Devices",devicesEmpty:"No connected devices.",linkedModeAuto:"Link: Auto (same location)",linkedModeManual:"Link: Manual",motionBoxes:"Motion boxes",close:"Close",deviceOnline:"Online",deviceOffline:"Offline"},grids:{createA11y:"Create grid",empty:"No grids",emptyHint:"Tap + to create your first grid",countNone:"No cameras",countOne:"1 camera",countOther:"{{count}} cameras",defaultName:"New grid",deleteTitle:"Delete grid",deleteConfirm:"Delete \"{{name}}\"? This cannot be undone.",export:"Export",exportAllA11y:"Export all grids",shareA11y:"Share grid",editA11y:"Edit grid",deleteA11y:"Delete grid",linkCopied:"Grid link copied to clipboard",layoutAuto:"Auto",layoutColumns:"{{count}} cols"},gridView:{editA11y:"Edit grid",fallbackTitle:"Grid",notFound:"Grid not found",emptyGrid:"This grid is empty",addCameras:"Add cameras",reorderTitle:"Reorder cameras",reorderA11y:"Reorder cameras",reorderDoneA11y:"Done reordering",allHidden:"All cameras are hidden. Use reorder mode to show some.",dragA11y:"Drag to reorder",hideA11y:"Hide from grid",showA11y:"Show in grid",removeA11y:"Remove from grid",adhocTitle:"Quick grid"},gridBuilder:{title:"Edit grid",nameLabel:"Name",namePlaceholder:"Grid name",camerasSelected:"Cameras ({{count}} selected)",optionsTitle:"Options",showName:"Show camera name",export:"Export grid",orderSection:"In the grid",orderHint:"Drag to reorder",emptyOrder:"No cameras yet \u2014 add some below.",addSection:"Add cameras",removeA11y:"Remove from grid",addA11y:"Add to grid",highlightTitle:"Highlight",highlightMotion:"On motion",highlightAudio:"On audio",highlightAudioOff:"Off",highlightAudioSensor:"Presence",highlightAudioLevel:"Level",highlightThreshold:"Threshold",highlightHold:"Hold",highlightDetection:"On detection",clusterLabel:"Cluster label",clusterLabelIcon:"Icon",clusterLabelText:"Text"},gridBar:{back:"Back",pauseAll:"Pause all",playAll:"Play all",audio:"Audio",quality:"Stream quality",layout:"Layout",highlightMenu:"Highlight & overlays",activeOnly:"Active only",share:"Share grid",edit:"Edit grid",hide:"Hide controls",show:"Show controls",muteAll:"Mute all",unmuteAll:"Unmute all"},gridMenu:{highlightMaster:"Highlight borders"},gridShare:{title:"Share \"{{name}}\"",quality:"Stream quality",layout:"Layout",showNames:"Show camera names",activeOnly:"Active cameras only",boxes:"Bounding boxes",highlightEnable:"Highlight",audioSummary:"Audio starts on for {{count}} camera(s)",ttlTitle:"Link expires",ttl_1d:"1 day",ttl_7d:"7 days",ttl_30d:"30 days",ttl_never:"Forever",tokenNotice:"The link includes a view-only access token limited to these cameras. Anyone with the link can watch until it expires or is revoked.",copyLink:"Copy link",creating:"Creating link\u2026",copiedExpires:"Link copied \u2014 expires {{date}}",copiedNever:"Link copied \u2014 never expires",error:"Could not create the share link. Check the connection and try again.",optionAuto:"Auto",optionHigh:"High",optionMedium:"Mid",optionLow:"Low"},gridControls:{play:"Play",pause:"Pause",mute:"Mute",unmute:"Unmute",quality:"Quality",layout:"Layout",layoutAuto:"Auto"},events:{comingSoon:"Events \u2014 coming soon",searchLabel:"Search label\u2026",empty:"No events",today:"Today",filteredEmpty:"No matches in the loaded range",loadOlder:"Load older",selectPrompt:"Select an event to see its detail",filters:"Filters",all:"All",day:"Day",sort:"Sort",sortTime:"Newest",sortImportance:"Importance",cameras:"Cameras",classes:"Classes",search:"Search",searchCameras:"Search cameras\u2026",searchClasses:"Search classes\u2026",allCamerasHint:"None = all",allClassesHint:"None = all",done:"Done",density:"Density",selectHint:"Select an event",eventKinds:"Event types",displayOptions:"Display",displayTitle:"Display options"},settings:{themeSystem:"System",themeDark:"Dark",themeLight:"Light",server:"Server",hubActive:"Active hub",changeServer:"Change server",signOut:"Sign out",network:"Network",networkNone:"No routes probed yet",endpointUnlikely:"Unlikely usable",reprobe:"Re-probe routes",reprobing:"Probing\u2026",appearance:"Appearance",theme:"Theme",info:"Info",app:"App",version:"Version",noServer:"No server",footerNote:"CamStack Viewer connects to a single camstack hub. Cameras, grids and events are managed by the server.",language:"Language",langSystem:"System",gridDefaults:"Grid defaults",showName:"Show camera name",showNameHint:"Overlay the camera name on each tile",showState:"Show status badge",showStateHint:"Show online / recording state on each tile",columns:"Columns",cameraOrder:"Camera order",orderName:"By name",orderCustom:"Custom",motionHold:"Motion highlight linger",motionHoldHint:"Keep a tile's motion highlight lit this long after motion stops.",motionHoldOff:"Off",streamQuality:"Stream quality",streamDefaults:"Stream defaults",playOnOpen:"Play on open",playOnOpenHint:"Start the live stream when a camera opens",audioOnOpen:"Audio on open",audioOnOpenHint:"Unmute audio when a camera opens",snapshotInterval:"Snapshot refresh",highlightAppearance:"Highlight appearance",highlightMotionColor:"Motion color",highlightAudioColor:"Audio color",highlightDetectionColor:"Detection color",highlightThickness:"Border thickness",qualityAuto:"Auto",qualityHigh:"High",qualityMid:"Medium",qualityLow:"Low",secondsValue:"{{count}}s",advanced:"Advanced",clearCache:"Clear cache",clearCacheHint:"Free up snapshots and cached data (keeps your server and settings)",clearCacheConfirmTitle:"Clear cache?",clearCacheConfirmBody:"This removes cached images and query data. Your server, sign-in and settings are kept.",clearCacheDone:"Cache cleared",exportSettings:"Export settings",exportSettingsHint:"Copy your settings as JSON",exportSettingsDone:"Settings copied as JSON",viewLogs:"View logs",viewLogsHint:"Recent in-app log messages",logsEmpty:"No logs recorded yet",keepLogs:"Keep logs",keepLogsHint:"Record a rolling buffer of in-app log messages",debugMode:"Debug mode",debugModeHint:"Verbose logs across live, playback and scrub \u2014 sent to the server",logsClear:"Clear",resetSettings:"Reset settings",resetSettingsHint:"Restore all defaults",resetConfirmTitle:"Reset settings?",resetConfirmBody:"This restores all settings to their defaults.",cancel:"Cancel",confirm:"Confirm",timeline:"Timeline & highlights",reel:"Event reel",reelThumbSize:"Reel thumbnail size",reelThumbSizeHint:"Size of the tiles in the Recent events reel.",reelSizeSmall:"Small",reelSizeMedium:"Medium",reelSizeLarge:"Large",reelShowLabels:"Show labels",reelShowLabelsHint:"Show the class/identity label on reel items.",reelLabelStyle:"Class display",reelLabelStyleHint:"Show the detection class as an icon or as text on reel items.",reelShowImportance:"Show importance",reelShowImportanceHint:"Show the importance badge on reel items.",events:"Events",eventsPage:"Events page",minImportance:"Minimum importance",minImportanceHint:"Hide events scored below this across the events page and the camera timeline.",minImportanceOff:"Off",tileShowLabels:"Show labels",tileShowLabelsHint:"Show the class / identity / audio labels on event cards.",tileShowImportance:"Show importance",tileShowImportanceHint:"Show the importance badge on event cards (when scored).",tileShowCameraName:"Show camera name",tileShowCameraNameHint:"Show the camera name in the event card footer.",tileLabelStyle:"Class display",tileLabelStyleHint:"Show the detection class as an icon or as text.",tileLabelStyleIcon:"Icon",tileLabelStyleText:"Text",comingSoon:"Coming soon",cameras:"Cameras",manageCameras:"Manage cameras",manageCamerasHint:"Rename, hide, reorder",pinchExpandsHeight:"Pinch enlarges the view",pinchExpandsHeightHint:"Pinching to zoom also grows the video taller (crops the side edges on 16:9 cameras).","timeline.gapPercent":"Cluster gap (%)","timeline.sizePercent":"Cluster size (%)","timeline.indicatorPositionPct":"Indicator position (%)","timeline.showImportance":"Show importance on items","timeline.showClass":"Show detection class on items","timeline.cardWidthPct":"Card width (%)",haptics:"Event haptics",hapticsEnabled:"Vibrate on events",hapticsEnabledHint:"Small vibration pulses for key events on the camera you're watching. Native only (iOS/Android).",hapticsMotion:"Motion",hapticsDetection:"Detection",hapticsPerson:"Person / recognized"},login:{loginFailed:"Login failed",verifyFailed:"Verification failed",serverUrl:"Server URL",username:"Username",password:"Password",showPassword:"Show password",hidePassword:"Hide password",signIn:"Sign in",signingIn:"Signing in\u2026",twoFactor:"Two-factor authentication",totpHint:"Enter the 6-digit code from your authenticator app to sign in as ",verificationCode:"Verification code",verifyAndSignIn:"Verify and sign in",verifying:"Verifying\u2026",back:"Back",or:"or",signInWithCamStack:"Sign in with CamStack",hubSignInHint:"Opens your hub\u2019s login page and links this app without typing your password here.",handoffFailed:"Sign-in with CamStack failed \u2014 try again or use username and password",invalidServerUrl:"Enter a valid server URL (https://\u2026) first"},live:{webUnsupported:"Live view is not available on the web version yet.",connecting:"Connecting to live stream\u2026",error:"Unable to load the live stream.",retry:"Retry",noConnection:"No connection to the server",failed:"Connection failed"},ptz:{title:"PTZ",notAvailable:"PTZ controls are not available for this camera.",zoom:"Zoom",home:"Home position",presets:"Presets",noPresets:"No presets saved."},timeline:{activityTitle:"Activity",last24h:"Last 24h",loading:"Loading activity\u2026",noActivity:"No activity in the last 24 hours.",legendRecording:"Recorded",legendMotion:"Motion",legendAudio:"Audio"},theater:{back:"Back",today:"Today",yesterday:"Yesterday",selectDate:"Pick a date",live:"LIVE",now:"NOW",auto:"Auto",quality:"Stream quality",filterAll:"All",filter_motion:"Motion",filter_audio:"Audio",goToLive:"Go to live",noRecording:"No recording",noRecordingHint:"No footage at this time",detailCount:"{{frames}} frames \xb7 {{count}} detections",detailTracks:"{{tracks}} tracks \xb7 {{count}} detections",detailEmpty:"No detail images for this moment",detailSeek:"Go to this moment",zoneHint:"Drag a rectangle over the video to filter events by zone",zoneConfirm:"Confirm",zoneCancel:"Cancel"},mediaKind:{crop:"Object crop",thumbnail:"Best shot",faceCrop:"Face",plateCrop:"Plate",fullFrame:"Frame",fullFrameBoxed:"Boxed",keyFrame:"Key frame",firstFrame:"First",lastFrame:"Last",snapshot:"Snapshot"},tracks:{crop:"Crop",fullFrame:"Full frame",zones:"Zones",audio:"Audio",reason:"Why notable",empty:"No tracks",recent:"Recent",searchPlaceholder:"Search events (e.g. \"person in red\")",noMatches:"No matching events",person:"Person",assignPerson:"Assign to person",changePerson:"Change",notAssigned:"Not assigned",assignFaceTitle:"Assign face",newPersonPlaceholder:"New person name\u2026",createAndAssign:"Create & assign",assignFailed:"Couldn't assign the face",removePerson:"Remove person",removePersonConfirmTitle:"Remove person?",removePersonConfirmBody:"This unlinks the person from this face. The face returns to the unassigned buffer and can be reassigned later.",disassociateFailed:"Couldn't remove the person",removePersonAll:"Remove from all events",removePersonAllConfirmTitle:"Remove from all events?",removePersonAllConfirmBody:"This unlinks this person from EVERY event. All faces currently recognized as this person return to the unassigned buffer and can be reassigned later. The person is kept.",disassociateAllFailed:"Couldn't remove the person from all events",existingPersons:"People",noPersons:"No people yet",metadata:"Metadata",copy:"Copy",copied:"Copied","meta.trackId":"Track ID","meta.eventId":"Best event ID","meta.deviceId":"Device ID","meta.camera":"Camera","meta.className":"Class","meta.label":"Label","meta.firstSeen":"First seen","meta.lastSeen":"Last seen","meta.state":"State","meta.importance":"Importance","meta.confidence":"Confidence","meta.mediaKeys":"Media keys"},accessories:{on:"On",off:"Off",dimUp:"Brighter",dimDown:"Dimmer",lock:"Lock",unlock:"Unlock",open:"Open",close:"Close",stop:"Stop",arm:"Arm",disarm:"Disarm",onMotion:"On motion",warmer:"Warmer",cooler:"Cooler",speedUp:"Faster",speedDown:"Slower",oscillate:"Oscillate",press:"Press",play:"Play",pause:"Pause",previous:"Previous",next:"Next",start:"Start",dock:"Dock",locate:"Locate",feed:"Feed",feeding:"Feeding\u2026",install:"Install",installing:"Installing\u2026",upToDate:"Up to date",increase:"Increase",decrease:"Decrease",select:"Select",climateModes:{off:"Off",heat:"Heat",cool:"Cool",auto:"Auto",heat_cool:"Heat/Cool",fan_only:"Fan",dry:"Dry"}},cameraMenu:{title:"View options",boundingBoxes:"Bounding boxes",streamStats:"Stream stats",audioLevel:"Audio level",densityTitle:"Timeline density",density_compact:"Compact",density_medium:"Medium",density_wide:"Wide",densityCustom:"Custom",indicatorPosition:"Indicator position",showImportance:"Show importance",showClass:"Show detection class",managementTitle:"Management"},stats:{title:"Stream stats",resolution:"Resolution",fps:"FPS",bitrate:"Bitrate",packetLoss:"Packet loss",jitter:"Jitter",codec:"Codec",frames:"Frames (dropped/total)",waiting:"Measuring\u2026",playbackHint:"Full WebRTC stats need the native player."},exportActions:{title:"Capture",recordingExport:"Recording export"},exports:{title:"Exports",empty:"No exports yet.",settingsHint:"Download recorded clips",range:"Range",rangeStart:"Start",rangeEnd:"End",profile:"Profile",noFootage:"No footage in this range.",speed:"Speed",timelapse:"Timelapse",cadence:"Frame every",audio:"Audio",includeAudio:"Include audio",audioUnavailable:"Audio is only available at 0.5\u20132\xd7 speed.",retention:"Keep for",life24h:"24 hours",life7d:"7 days",life30d:"30 days",deleteAfterDownload:"Delete after download",deleteAfterDownloadHint:"Remove the file once downloaded.",creating:"Creating\u2026",createAction:"Export",createFailed:"Could not create the export.",withAudio:"with audio",variantRegular:"1\xd7",variantAccelerated:"Accelerated {{speed}}\xd7",variantSlow:"Slow {{speed}}\xd7",variantTimelapse:"Timelapse",expired:"Expired",expiresInDays:"Expires in {{count}}d",expiresInHours:"Expires in {{count}}h",expiresInMinutes:"Expires in {{count}}m",downloadAction:"Download",downloadUnavailable:"Download not available.",downloadFailed:"Download failed.",cancelAction:"Cancel",cancelConfirmTitle:"Cancel export?",cancelConfirmBody:"This stops rendering and discards the partial file.",deleteAction:"Delete",deleteConfirmTitle:"Delete export?",deleteConfirmBody:"This removes the file. The history entry is kept.",dismiss:"Dismiss",state:{queued:"Queued",rendering:"Rendering",ready:"Ready",failed:"Failed",expired:"Expired",deleted:"Deleted"}},streamBar:{play:"Play",pause:"Pause",mute:"Mute",unmute:"Unmute",talkStart:"Start talking",talkStop:"Stop talking",quality:"Stream quality",menu:"View options",snapshot:"Snapshot",pip:"Picture in picture",fullscreen:"Fullscreen",exitFullscreen:"Exit fullscreen"},playback:{prevFrame:"Previous frame",nextFrame:"Next frame",speed:"Playback speed",audioMuted:"Audio off at \u2260 1\xd7",audioOn:"Audio on"},cameraSwitcher:{title:"Switch camera",empty:"No cameras available",openGrid:"Open grid ({{n}})",selectA11y:"Select {{name}}"},storage:{title:"Storage",usageTitle:"Usage",nodeTotal:"Node total",defaultLocation:"Default location",locationFree:"{{free}} free",retentionTitle:"Retention",pruneAction:"Apply retention now",pruneConfirmTitle:"Apply retention?",pruneConfirmBody:"Delete footage on {{name}} that exceeds its retention policy.",pruneResult:"Reclaimed {{bytes}} ({{buckets}} segments).",deleteTitle:"Delete footage",deleteAction:"Delete",deleteConfirmTitle:"Delete footage?",deleteConfirmBody:"Permanently delete {{range}} of footage on {{name}}. This cannot be undone.",deleteResult:"Reclaimed {{bytes}} ({{buckets}} segments).",cancel:"Cancel",window24h:"Last 24h",window7d:"Last 7 days",window30d:"Last 30 days",windowAll:"Everything"},eventsMgmt:{title:"Events",footprintTitle:"Footprint",rowsBytes:"{{rows}} events \xb7 {{bytes}}",clusterTotal:"Cluster total",pruneTitle:"Prune older than",pruneHint:"Applies to all cameras.",pruneAction:"Prune",pruneConfirmTitle:"Prune old events?",pruneConfirmBody:"Delete events older than {{range}} across ALL cameras. This cannot be undone.",pruneResult:"Deleted {{count}} events.",deleteTitle:"Delete camera events",deleteAction:"Delete all events for this camera",deleteConfirmTitle:"Delete all events?",deleteConfirmBody:"Permanently delete every event for {{name}}. This cannot be undone.",deleteResult:"Deleted {{count}} events.",cancel:"Cancel",older24h:"24 hours",older7d:"7 days",older30d:"30 days"}},prototype:{today:"Today",yesterday:"Yesterday",now:"NOW",endOfDay:"END OF DAY",loading:"Loading...",timeline:"Timeline",events:"Events",playClip:"Play clip",goToNow:"NOW",noEvents:"No events"},eventKind:{motion:"Motion",audio:"Audio",person:"Person",vehicle:"Vehicle",animal:"Animal",package:"Package",sensor:"Sensor",control:"Control",car:"Car",truck:"Truck",bus:"Bus",motorcycle:"Motorcycle",bicycle:"Bicycle",airplane:"Airplane",boat:"Boat",train:"Train",bird:"Bird",cat:"Cat",dog:"Dog",horse:"Horse",sheep:"Sheep",cow:"Cow",elephant:"Elephant",bear:"Bear",zebra:"Zebra",giraffe:"Giraffe",contact:"Contact","motion-sensor":"Motion sensor",smoke:"Smoke",flood:"Water leak",gas:"Gas","carbon-monoxide":"Carbon monoxide",vibration:"Vibration",tamper:"Tamper",presence:"Presence","enum-sensor":"Sensor state","device-event":"Device event",lock:"Lock",switch:"Switch",siren:"Siren",button:"Button",doorbell:"Doorbell","package-delivered":"Package delivered","package-picked-up":"Package picked up","audio-speech":"Speech","audio-music":"Music","audio-dog":"Dog","audio-doorbell":"Doorbell","audio-siren":"Siren","audio-alarm":"Alarm"}}},3578,[]);
16000
+ __d(function(e,i,a,t,o,n,r){o.exports={devices:{editDevice:"Modifica dispositivo",originalName:"Nome originale",customName:"Nome personalizzato",customNamePlaceholder:"Lascia vuoto per usare l'originale",icon:"Icona",typeLight:"Luce",typeSwitch:"Interruttore",typeCover:"Tapparella",typeLock:"Serratura",typeAlarm:"Allarme",typeButton:"Pulsante",typeSelect:"Selezione",typeSiren:"Sirena",typeSensor:"Sensore",typeEntry:"Ingresso",typeMediaPlayer:"Media Player",typeScript:"Script",run:"Esegui",sourceHA:"Home Assistant",sourceScrypted:"Scrypted",off:"Off",on:"On",mute:"Muto",unmute:"Audio",stop:"Stop",locked:"Chiusa",unlocked:"Aperta",open:"Aperta",closed:"Chiusa",disarmed:"Disinserito",disarm:"Disinserisci"},common:{error:"Errore",save:"Salva",cancel:"Annulla",loading:"Caricamento...",comingSoon:"In arrivo",back:"Indietro",fullscreen:"Schermo intero",exitFullscreen:"Esci da schermo intero",reset:"Reimposta",selectAll:"Seleziona tutte",deselectAll:"Deseleziona tutte",delete:"Elimina",retry:"Riprova"},grids:{newGrid:"Nuova griglia",deleteConfirm:"Eliminare questa griglia?",noGrids:"Nessuna griglia. Creane una per disporre le telecamere in vista mosaico.",createGrid:"Crea griglia",cameras:"telecamere",notFound:"Griglia non trovata.",noCameras:"Nessuna telecamera in questa griglia. Modifica per aggiungerne.",edit:"Modifica",addCamera:"Aggiungi telecamera",presets:"Preset",auto:"Auto",manual:"Manuale",gridName:"Nome griglia",view:"Visualizza",addCameraHint:"Aggiungi almeno una telecamera dal pulsante sopra.",allCamerasAdded:"Tutte le telecamere sono gi\xe0 in griglia",cameraUnavailable:"Telecamera non disponibile",camerasInGrid:"Telecamere nella griglia",addAll:"Aggiungi tutte",addCameras:"Aggiungi Telecamere",backToGrid:"Torna alla Griglia",timelineNotSupported:"Timeline non supportata"},nav:{cameras:"Telecamere",grids:"Griglie",events:"Eventi",videoclips:"Videoclip",list:"Lista",settings:"Impostazioni"},cameras:{addCamera:"Aggiungi telecamera",pipActive:"PiP attivo",reorderEnable:"Riordina",reorderDisable:"Sblocca",live:"Live",noCameras:"Nessuna telecamera configurata",noIntegrations:"Nessuna integrazione configurata. Aggiungi un sistema per iniziare.",createSystem:"Crea sistema",importFrom:"Importa telecamere da",importSuccess:"Importazione completata",importCount:"{{count}} telecamere importate",selectCamerasToImport:"Seleziona telecamere da importare",selectAll:"Seleziona tutte",deselectAll:"Deseleziona tutte",importSelected:"Importa {{count}} selezionate",noCamerasFound:"Nessuna telecamera trovata",play:"\u25b6 Riproduci",paused:"In pausa",noDataForDate:"Nessun dato per questa data",recordingNotAvailable:"Registrazione non disponibile",noEventsReel:"Nessun evento recente",settings:"Impostazioni",highlightMotion:"Evidenza movimento",highlightOnMotion:"Evidenzia al movimento",highlightAudio:"Evidenza audio",audioMode:"Modalit\xe0",audioModeOff:"Off",audioModeSensor:"Sensore",audioModeLevel:"Livello",audioPreset:"Preset audio",audioPresetCustom:"Personalizzato",audioPresetCrying:"Pianto / neonato",audioPresetAlarm:"Allarme / sirena",audioPresetDog:"Abbaio cane",audioPresetDoorbell:"Campanello / bussata",audioPresetGlass:"Rottura vetro",audioWindow:"Finestra (s)",audioThreshold:"Soglia (dB)",audioHitPercentage:"Percentuale (%)",audioHoldSeconds:"Mantenimento (s)",highlightDetection:"Evidenza rilevamento oggetti",highlightOnDetection:"Evidenzia al rilevamento",detectionClasses:"Classi",holdSeconds:"Mantenimento (s)",rtspNotSupportedWeb:"Gli stream RTSP non sono supportati sul web. Usa l'app mobile.",liveDetections:"Detections live",filterTimeline:"Filtra timeline",filterClasses:"Filtra classi...",filterBySeverity:"Filtra per severit\xe0",severityAlert:"Allarme",severityDetection:"Rilevamento",statusPosition:"Posizione indicatori di stato",today:"Oggi",yesterday:"Ieri",timeline:"Timeline",timelineEventsClusterEvents:"Eventi",selectDate:"Seleziona una data",videoclipsNotSupported:"Videoclip non supportati per questa telecamera",noVideoclipsForDate:"Nessun videoclip per questa data",endOfList:"Fine elenco",backToLive:"Torna al live",goLive:"Vai al live",loadingClip:"Caricamento clip...",clusterDetailShowBbox:"Mostra bounding box sull'immagine",clusterDetailOpenVideoclip:"Apri videoclip",clusterDetailLoadingEvents:"Caricamento eventi...",devices:"Dispositivi",noAssociatedDevices:"Nessun dispositivo collegato. Configura in Impostazioni > Telecamere.",timelineData:"Dati timeline",timelineDataHint:"Cosa mostrare sulla timeline.",timelineDataVideoclips:"Videoclip",timelineDataAdvancedNotifier:"Advanced Notifier",timelineDataEvents:"Eventi",timelineEvents:"Eventi timeline",timelineEventsHint:"Quali tipi di eventi mostrare sulla timeline, in base alla severit\xe0.",timelinePresetAll:"Tutti",timelinePresetImportant:"Importanti",timelinePresetCritical:"Critici",timelinePresetCustom:"Personalizzato",statusBlock:"Blocco stato",sensorsBlock:"Blocco sensori",position:"Posizione",indicators:"Indicatori",downloadSnapshot:"Scarica Istantanea",exportDownloadClip:"Scarica Clip",exportRecordingWebOnly:"Esporta registrazione (solo web)",exportSnapshot:"Esporta Istantanea",intercomError:"Errore interfono",multiCam:"Multi-Camera",ptzNotSupported:"PTZ non supportato",ptzSelectPreset:"Seleziona Preset PTZ",snapshotFailed:"Istantanea fallita"},events:{loading:"Caricamento eventi...",filterByLabel:"Filtra per etichetta",filterByLabelPlaceholder:"es. person, doorbell",filterByCamera:"Filtra per telecamera",date:"Data",detectionTypes:"Tipi di rilevamento",source:"Sorgente",cameras:"Telecamere",groupingRange:"Raggruppamento",groupingPresetMinutes:"{{m}} min",groupingCustom:"Personalizzato",groupingCustomMinutes:"Minuti",groupingCustomApply:"Applica",today:"Oggi",noCamerasFromConfig:"Telecamere caricate dalla config EventsApp",all:"Tutti",typesCount:"{{count}} tipi",camerasCount:"{{count}} telecamere",cols:"col",sourceAuto:"Auto",sourceNVR:"NVR",sourceFrigate:"Frigate",sourceVideoClips:"API VideoClips",sourceRawDetection:"Raw",sourceAdvancedNotifier:"Advanced Notifier",detectionPerson:"Persona",detectionVehicle:"Veicolo",detectionAnimal:"Animale",detectionAudio:"Audio",detectionFace:"Volto",detectionPlate:"Targa",detectionPackage:"Pacco",detectionDoorbell:"Campanello",detectionSensor:"Sensore",detectionMotion:"Motion",detectionRules:"Regole",noScryptedIntegration:"Aggiungi un'integrazione Scrypted in Impostazioni per vedere gli eventi.",frigateNoEvents:"Gli eventi sono disponibili solo per Scrypted. Seleziona un'istanza Scrypted in Impostazioni.",noSource:"Aggiungi un'integrazione Scrypted o Frigate in Impostazioni, poi selezionala come sorgente per Eventi e Videoclip.",loadError:"Errore nel caricamento degli eventi",noEvents:"Nessun evento per questa data. Prova a cambiare data o filtri.",clearCacheTitle:"Svuota cache",clearCacheMessage:"Svuotare tutti i dati in cache di eventi e videoclip? Verr\xe0 effettuato un nuovo caricamento al prossimo accesso.",clearCacheConfirm:"Svuota",columnsPerRow:"Colonne per riga",onlyWithClips:"Solo con clip",relatedClip:"Clip Correlata"},videoclips:{loading:"Caricamento videoclip...",noCamerasFromConfig:"Telecamere caricate dalla config",noScryptedIntegration:"Aggiungi un'integrazione Scrypted in Impostazioni per vedere i videoclip.",noFrigateIntegration:"Seleziona un'integrazione Frigate in Impostazioni per vedere i videoclip.",noSource:"Aggiungi un'integrazione Scrypted o Frigate in Impostazioni, poi selezionala come sorgente per Eventi e Videoclip.",loadError:"Errore nel caricamento dei videoclip",noVideoclips:"Nessun videoclip per questa data. Prova a cambiare data o filtri.",openVideoclip:"Apri videoclip",clearCacheTitle:"Svuota cache",clearCacheMessage:"Svuotare tutti i dati in cache di eventi e videoclip? Verr\xe0 effettuato un nuovo caricamento al prossimo accesso.",clearCacheConfirm:"Svuota"},settings:{integrations:"Integrazioni",camstackProxy:"CamStack Proxy",scrypted:"Scrypted",frigate:"Frigate",rtsp:"RTSP",homeAssistant:"Home Assistant",name:"Nome",baseUrl:"URL base",urlLocal:"URL locale",urlPublic:"URL pubblico",username:"Username",password:"Password",token:"Token (opzionale)",frigateTokenHint:"Token (opzionale): JWT dal browser",tokenRequired:"Token",testConnection:"Test connessione",testLocal:"Test Local",testPublic:"Test Public",testMqtt:"Test MQTT",connectionOk:"Connessione riuscita",connectionError:"Connessione fallita",scryptedCredentialsPromptTitle:"Accesso Scrypted",scryptedCredentialsPromptSubtitle:"Inserisci username e password Scrypted per connettere.",scryptedCredentialsPromptSkip:"Salta per ora",usernamePlaceholder:"admin",save:"Salva",tabStream:"Stream e riproduzione",tabGeneral:"Generale",data:"Dati",clearCacheEventsClips:"Svuota cache eventi e videoclip",eventsClipsSourceHint:"Sorgente per le schede Eventi e Videoclip.",hubReelTitle:"Hub & Reel",reelIntegrationsHint:"Scegli quali integrazioni usare per il reel.",reelScryptedSourceHint:"Con Scrypted: sorgente eventi per il reel.",eventsClipsAuto:"Auto",eventsClipsNoInstance:"Aggiungi prima un'integrazione Scrypted o Frigate.",exportBackup:"Esporta backup",exportError:"Esportazione fallita",importBackup:"Importa backup",importConfirm:"Questo sostituir\xe0 tutte le telecamere, integrazioni e impostazioni con i dati del backup. Continuare?",importSuccess:"Backup ripristinato con successo",importError:"Importazione fallita",uiPrototypes:"Prototipi UI",uiPrototypesHint:"Esplora design sperimentali della timeline",versions:"Versioni",appVersion:"App",nativeVersion:"Nativa",updateNow:"Aggiorna ora",updateError:"Aggiornamento fallito",updateAvailableTitle:"Aggiornamento disponibile",updateAvailableMessage:"Una nuova versione di CamStack \xe8 stata scaricata ed \xe8 pronta per l'installazione. L'app verr\xe0 riavviata per applicare l'aggiornamento.",updateInstall:"Installa e riavvia",updateLater:"Pi\xf9 tardi",tabIntegrations:"Integrazioni",tabCameras:"Telecamere",theme:"Tema",themeSystem:"Sistema",themeLight:"Chiaro",themeDark:"Scuro",language:"Lingua",languageSystem:"Sistema",languageEn:"English",languageIt:"Italiano",timelineMode:"Modalit\xe0 timeline",timelineModeClassic:"Classica",timelineModeTheater:"Theater",timeline:"Timeline",timelineVisible:"Mostra timeline rilevamenti",timelineVisibleDescription:"Visualizza il pannello della timeline nella vista telecamera.",clusterSize:"Dimensione cluster",snapshotInterval:"Intervallo aggiornamento snapshot",clusterSizeXS:"Molto piccola",clusterSizeS:"Piccola",clusterSizeM:"Normale",clusterSizeL:"Grande",clusterSizeXL:"Molto grande",highlightAppearance:"Aspetto evidenze",highlightAppearanceHint:"Colore e spessore del bordo per evidenze movimento, audio e rilevamento sugli stream delle telecamere.",highlightMotion:"Movimento",highlightAudio:"Audio",highlightDetection:"Rilevamento",highlightColor:"Colore",highlightThickness:"Spessore",selectSection:"Seleziona sezione",addSystem:"Aggiungi sistema",selectPlatform:"Seleziona piattaforma",deleteInstance:"Elimina istanza",deleteInstanceConfirm:"Vuoi eliminare questa istanza?",delete:"Elimina",mqttEvents:"MQTT - Eventi in tempo reale",mqttBrokerUrl:"URL broker MQTT",mqttUsername:"Username MQTT",mqttPassword:"Password MQTT",mqttTopicPrefix:"Prefisso topic (default: frigate)",mqttOptional:"Opzionale",scryptedAddressAlreadyUsed:"Questo indirizzo Scrypted \xe8 gi\xe0 configurato. \xc8 consentita una sola istanza per indirizzo.",scryptedAdvancedNotifierRequired:"Il plugin Advanced Notifier \xe8 richiesto per la connessione.",scryptedCorsTitle:"Configurazione CORS richiesta (Web)",scryptedCorsBody:"In Scrypted, apri le impostazioni del plugin Cloud e aggiungi il tuo dominio ({{domain}}) alla lista CORS Allowed Origins. Senza questa configurazione, il browser bloccher\xe0 le richieste verso il server Scrypted.",scryptedUrlHint:"L'URL locale viene provato per primo (es. in LAN), poi quello pubblico. Ne serve almeno uno.",gridLayout:"Layout griglia",gridLayoutHint:"Opzioni di visualizzazione per la griglia telecamere.",gridColumns:"Colonne griglia",gridColumnsHint:"Numero di telecamere per riga. Auto = 1 su mobile, 4 su tablet.",gridShowName:"Mostra nome telecamera",gridShowState:"Mostra stato (batteria, registrazione, sleep)",reorderCameras:"Riordina telecamere",reorderCamerasHint:"Trascina per riordinare le telecamere",reorderDone:"Fatto",manageCameras:"Gestisci telecamere",manageCamerasHint:"Rimuovi telecamere dall'app.",downloadSnapshot:"Scarica snapshot",snapshotFailed:"Impossibile recuperare lo snapshot",exportSnapshot:"Snapshot",exportDownloadClip:"Scarica clip",exportStartRecording:"Avvia registrazione",exportStopRecording:"Ferma registrazione",exportRecordingWebOnly:"Registrazione disponibile su web",intercomError:"Intercom non disponibile. Verifica le credenziali della telecamera su Scrypted.",deleteCamera:"Rimuovi telecamera",deleteCameraConfirm:"Rimuovere {{name}} dall'app?",streamPlayback:"Stream e riproduzione",playOnOpen:"Avvia stream all'apertura telecamera",playOnOpenHint:"Carica automaticamente lo stream live quando apri una telecamera.",audioOnOpen:"Audio attivo all'apertura",audioOnOpenHint:"Riproduci audio quando apri una telecamera (se supportato).",streamWatchdog:"Stream watchdog",streamWatchdogHint:"Riavvia lo stream quando non arrivano dati (aiuta con connessioni bloccate).",cameraPlayer:"Player telecamera",webViewCameraDetail:"Usa player WebView",webViewCameraDetailHint:"Usa WebView per le telecamere Scrypted (primo frame pi\xf9 veloce, pi\xf9 stabile). PiP, fullscreen e intercom funzionano. Default: player nativo.",streamQuality:"Qualit\xe0 stream",streamQualitySingle:"Qualit\xe0 singola telecamera",streamQualityGrid:"Qualit\xe0 griglia",qualityAuto:"Auto",qualityHigh:"High",qualityMedium:"Mid",qualityLow:"Sub",auto:"Auto",associatedDevices:"Dispositivi associati",associatedDevicesHint:"Aggiungi attuatori (luci, interruttori, tapparelle, ecc.) per controllarli dalla vista telecamera.",linkedDevices:"Collegati",reorderHint:"Usa le frecce per riordinare",addDevice:"Aggiungi dispositivo",noEligibleDevices:"Nessun Scrypted o Home Assistant configurato. Aggiungi prima un'integrazione.",configureDevices:"Configura dispositivi",cameraSettingsHint:"Scegli una telecamera per configurarne le opzioni.",noCamerasConfigured:"Nessuna telecamera configurata.",searchDevices:"Cerca dispositivi...",source:"Sorgente",type:"Tipo",all:"Tutti",noMatchingDevices:"Nessun dispositivo corrisponde ai filtri.",frigateStream:"Stream Frigate",frigateStreamSourceHint:"Sorgente stream: WebRTC (default), RTSP o MJPEG.",frigateStreamMapping:"Mappatura stream (nomi go2rtc da config)",frigateStreamMappingHint:"Seleziona dagli stream go2rtc disponibili. Ordine: High, Mid, Sub.",frigateSelectStream:"Seleziona stream",frigateAddStream:"Aggiungi stream",frigateInfo:"Info telecamera",frigateShowConfig:"Mostra config",frigateShowGo2rtc:"Mostra go2rtc",frigateMissingConfig:"Mancano baseUrl o cameraName nella config della telecamera.",tabLogs:"Log",logsCount:"{{count}} voci",logsDownload:"Scarica",logsClear:"Svuota",logsEmpty:"Nessun log. L'output della console apparir\xe0 qui.",logsExportError:"Esportazione fallita",logsExportTitle:"Esporta log",logsClearConfirmTitle:"Svuota log",logsClearConfirmMessage:"Rimuovere tutte le voci di log?",hubAppearanceTitle:"Aspetto",hubAppearanceDesc:"Tema, lingua, timeline e evidenze",hubCamerasTitle:"Telecamere",hubCamerasDesc:"Layout griglia, qualit\xe0 stream e gestione telecamere",hubIntegrationsTitle:"Integrazioni",hubIntegrationsDesc:"Gestisci Scrypted, Frigate e altri sistemi",hubAdvancedTitle:"Avanzato",hubAdvancedDesc:"Backup dati e gestione cache",hubLogsTitle:"Log",hubLogsDesc:"Visualizza ed esporta i log dell'applicazione",hubCacheTitle:"Cache",frigateAutoSnap:"Istantanea Automatica",frigateSegmentNav:"Navigazione Segmenti",frigateShowGo:"Mostra Go2RTC",frigateTimeline:"Timeline",reelCameras:"Telecamere Reel",reelCamerasHint:"Seleziona quali telecamere appaiono nel reel eventi",reelDeselectAll:"Deseleziona Tutto",reelDetectionClasses:"Classi di Rilevamento",reelDetectionClassesHint:"Filtra gli eventi per classe di rilevamento",reelIncludeRuleArtifacts:"Includi Artefatti Regole",reelIncludeRuleArtifactsHint:"Mostra gli eventi basati su regole nel reel",reelRuleArtifacts:"Artefatti Regole",reelSelectAll:"Seleziona Tutto",reelBadgeContent:"Contenuto badge",reelBadgePosition:"Posizione badge",reelBadgeSize:"Dimensione badge",reelBadgeBoth:"Ora + Classe",reelBadgeTime:"Solo ora",reelBadgeClass:"Solo classe",reelBadgeNone:"Nascosto",reelBadgeSmall:"Piccolo",reelBadgeMedium:"Medio",reelBadgeLarge:"Grande"},reel:{filterMotion:"Motion",filterOnlyRules:"Solo rule",filterOnlySensors:"Solo sensori",goToMostRecent:"Vai al pi\xf9 recente"},v2:{common:{connecting:"Connessione\u2026",online:"Online",offline:"Offline",loadError:"Errore di caricamento",create:"Crea"},cameras:{empty:"Nessuna telecamera",statusOnline:" \xb7 online",statusOffline:" \xb7 offline",sleeping:"In standby",unavailable:"Non disponibile",motion:"Movimento",doorbell:"Campanello",doorbellRinging:"Sta suonando",doorbellLastRing:"Suonato {{time}} fa",snapshotLoading:"Caricamento\u2026",manage:"Gestisci telecamere",manageHint:"Trascina per riordinare. Rinomina al volo. Usa lo switch per mostrare o nascondere una telecamera dall\u2019elenco.",reorderHandle:"Trascina per riordinare",appearance:"Aspetto",editList:"Modifica elenco",listOptions:"Opzioni elenco telecamere"},cameraDetail:{fallbackName:"Camera #{{id}}",mute:"Disattiva audio",unmute:"Attiva audio",snapshot:"Istantanea",snapshotFailed:"Impossibile acquisire l'istantanea.",ptz:"Controlli PTZ",talk:"Parla",fullscreen:"Schermo intero",talkFailed:"Impossibile avviare la comunicazione. Verifica l'accesso al microfono.",pip:"Picture in Picture",exitFullscreen:"Esci da schermo intero",devices:"Dispositivi",devicesEmpty:"Nessun dispositivo collegato.",linkedModeAuto:"Collegamento: Auto (posizione)",linkedModeManual:"Collegamento: Manuale",motionBoxes:"Riquadri movimento",close:"Chiudi",deviceOnline:"Online",deviceOffline:"Offline"},grids:{createA11y:"Crea griglia",empty:"Nessuna griglia",emptyHint:"Tocca + per creare la tua prima griglia",countNone:"Nessuna telecamera",countOne:"1 telecamera",countOther:"{{count}} telecamere",defaultName:"Nuova griglia",deleteTitle:"Elimina griglia",deleteConfirm:"Eliminare \"{{name}}\"? L'operazione non \xe8 reversibile.",export:"Esporta",exportAllA11y:"Esporta tutte le griglie",shareA11y:"Condividi griglia",editA11y:"Modifica griglia",deleteA11y:"Elimina griglia",linkCopied:"Link della griglia copiato negli appunti",layoutAuto:"Auto",layoutColumns:"{{count}} col"},gridView:{editA11y:"Modifica griglia",fallbackTitle:"Griglia",notFound:"Griglia non trovata",emptyGrid:"Questa griglia \xe8 vuota",addCameras:"Aggiungi telecamere",reorderTitle:"Riordina telecamere",reorderA11y:"Riordina telecamere",reorderDoneA11y:"Fine riordino",allHidden:"Tutte le telecamere sono nascoste. Usa la modalit\xe0 riordino per mostrarne alcune.",dragA11y:"Trascina per riordinare",hideA11y:"Nascondi dalla griglia",showA11y:"Mostra nella griglia",removeA11y:"Rimuovi dalla griglia",adhocTitle:"Griglia rapida"},gridBuilder:{title:"Modifica griglia",nameLabel:"Nome",namePlaceholder:"Nome griglia",camerasSelected:"Telecamere ({{count}} selezionate)",optionsTitle:"Opzioni",showName:"Mostra nome telecamera",export:"Esporta griglia",orderSection:"Nella griglia",orderHint:"Trascina per riordinare",emptyOrder:"Nessuna telecamera \u2014 aggiungine qui sotto.",addSection:"Aggiungi telecamere",removeA11y:"Rimuovi dalla griglia",addA11y:"Aggiungi alla griglia",highlightTitle:"Evidenziazione",highlightMotion:"Su movimento",highlightAudio:"Su audio",highlightAudioOff:"Off",highlightAudioSensor:"Presenza",highlightAudioLevel:"Livello",highlightThreshold:"Soglia",highlightHold:"Mantieni",highlightDetection:"Su rilevamento",clusterLabel:"Etichetta cluster",clusterLabelIcon:"Icona",clusterLabelText:"Testo"},gridBar:{back:"Indietro",pauseAll:"Metti tutto in pausa",playAll:"Riproduci tutto",audio:"Audio",quality:"Qualit\xe0 stream",layout:"Layout",highlightMenu:"Evidenziazione e overlay",activeOnly:"Solo attive",share:"Condividi griglia",edit:"Modifica griglia",hide:"Nascondi controlli",show:"Mostra controlli",muteAll:"Silenzia tutte",unmuteAll:"Riattiva audio"},gridMenu:{highlightMaster:"Bordi di evidenziazione"},gridShare:{title:"Condividi \"{{name}}\"",quality:"Qualit\xe0 stream",layout:"Layout",showNames:"Mostra nomi delle camere",activeOnly:"Solo camere attive",boxes:"Bounding box",highlightEnable:"Evidenziazione",audioSummary:"Audio attivo all\u2019apertura per {{count}} camera/e",ttlTitle:"Scadenza del link",ttl_1d:"1 giorno",ttl_7d:"7 giorni",ttl_30d:"30 giorni",ttl_never:"Per sempre",tokenNotice:"Il link include un token di sola visualizzazione limitato a queste camere. Chiunque abbia il link pu\xf2 guardare finch\xe9 non scade o viene revocato.",copyLink:"Copia link",creating:"Creazione link\u2026",copiedExpires:"Link copiato \u2014 scade il {{date}}",copiedNever:"Link copiato \u2014 non scade mai",error:"Impossibile creare il link di condivisione. Controlla la connessione e riprova.",optionAuto:"Auto",optionHigh:"Alta",optionMedium:"Media",optionLow:"Bassa"},gridControls:{play:"Riproduci",pause:"Pausa",mute:"Muto",unmute:"Riattiva audio",quality:"Qualit\xe0",layout:"Layout",layoutAuto:"Auto"},events:{comingSoon:"Eventi \u2014 in arrivo",searchLabel:"Cerca etichetta\u2026",empty:"Nessun evento",today:"Oggi",filteredEmpty:"Nessuna corrispondenza nell'intervallo caricato",loadOlder:"Carica meno recenti",selectPrompt:"Seleziona un evento per vederne i dettagli",filters:"Filtri",all:"Tutte",day:"Giorno",sort:"Ordina",sortTime:"Recenti",sortImportance:"Importanza",cameras:"Telecamere",classes:"Classi",search:"Cerca",searchCameras:"Cerca telecamere\u2026",searchClasses:"Cerca classi\u2026",allCamerasHint:"Nessuna = tutte",allClassesHint:"Nessuna = tutte",done:"Fatto",density:"Densit\xe0",selectHint:"Seleziona un evento",eventKinds:"Tipi di evento",displayOptions:"Aspetto",displayTitle:"Opzioni di visualizzazione"},settings:{themeSystem:"Sistema",themeDark:"Scuro",themeLight:"Chiaro",server:"Server",hubActive:"Hub attivo",changeServer:"Cambia server",signOut:"Esci",network:"Rete",networkNone:"Nessuna rotta ancora rilevata",endpointUnlikely:"Probabilmente non utilizzabile",reprobe:"Ri-rileva rotte",reprobing:"Rilevamento\u2026",appearance:"Aspetto",theme:"Tema",info:"Info",app:"App",version:"Versione",noServer:"Nessun server",footerNote:"CamStack Viewer si connette a un singolo hub camstack. Telecamere, griglie ed eventi sono gestiti dal server.",language:"Lingua",langSystem:"Sistema",gridDefaults:"Impostazioni griglia",showName:"Mostra nome telecamera",showNameHint:"Sovrapponi il nome della telecamera su ogni riquadro",showState:"Mostra stato",showStateHint:"Mostra lo stato online / registrazione su ogni riquadro",columns:"Colonne",cameraOrder:"Ordine telecamere",orderName:"Per nome",orderCustom:"Personalizzato",motionHold:"Persistenza evidenziazione movimento",motionHoldHint:"Mantieni accesa l'evidenziazione del movimento su una tile per questo tempo dopo che il movimento si ferma.",motionHoldOff:"Off",streamQuality:"Qualit\xe0 stream",streamDefaults:"Impostazioni stream",playOnOpen:"Riproduci all'apertura",playOnOpenHint:"Avvia lo stream live quando apri una telecamera",audioOnOpen:"Audio all'apertura",audioOnOpenHint:"Attiva l'audio quando apri una telecamera",snapshotInterval:"Aggiornamento snapshot",highlightAppearance:"Aspetto evidenziazione",highlightMotionColor:"Colore movimento",highlightAudioColor:"Colore audio",highlightDetectionColor:"Colore rilevamento",highlightThickness:"Spessore bordo",qualityAuto:"Auto",qualityHigh:"Alta",qualityMid:"Media",qualityLow:"Bassa",secondsValue:"{{count}}s",advanced:"Avanzate",clearCache:"Svuota cache",clearCacheHint:"Libera snapshot e dati in cache (mantiene server e impostazioni)",clearCacheConfirmTitle:"Svuotare la cache?",clearCacheConfirmBody:"Rimuove immagini e dati in cache. Server, accesso e impostazioni vengono mantenuti.",clearCacheDone:"Cache svuotata",exportSettings:"Esporta impostazioni",exportSettingsHint:"Copia le impostazioni in formato JSON",exportSettingsDone:"Impostazioni copiate in JSON",viewLogs:"Visualizza log",viewLogsHint:"Messaggi di log recenti dell'app",logsEmpty:"Nessun log registrato",keepLogs:"Mantieni log",keepLogsHint:"Registra un buffer dei messaggi di log dell'app",debugMode:"Modalit\xe0 debug",debugModeHint:"Log verbosi su live, playback e scrub \u2014 inviati al server",logsClear:"Pulisci",resetSettings:"Ripristina impostazioni",resetSettingsHint:"Ripristina tutti i valori predefiniti",resetConfirmTitle:"Ripristinare le impostazioni?",resetConfirmBody:"Ripristina tutte le impostazioni ai valori predefiniti.",cancel:"Annulla",confirm:"Conferma",timeline:"Timeline ed evidenziazioni",reel:"Sequenza eventi",reelThumbSize:"Dimensione miniature",reelThumbSizeHint:"Dimensione delle miniature nella sequenza eventi recenti.",reelSizeSmall:"Piccola",reelSizeMedium:"Media",reelSizeLarge:"Grande",reelShowLabels:"Mostra etichette",reelShowLabelsHint:"Mostra l'etichetta classe/identit\xe0 sugli elementi della sequenza.",reelLabelStyle:"Visualizzazione classe",reelLabelStyleHint:"Mostra la classe di rilevamento come icona o come testo negli elementi della sequenza.",reelShowImportance:"Mostra importanza",reelShowImportanceHint:"Mostra il badge di importanza sugli elementi della sequenza.",events:"Eventi",eventsPage:"Pagina eventi",minImportance:"Importanza minima",minImportanceHint:"Nascondi gli eventi con punteggio inferiore, nella pagina eventi e nella timeline della telecamera.",minImportanceOff:"Off",tileShowLabels:"Mostra etichette",tileShowLabelsHint:"Mostra le etichette classe / identit\xe0 / audio sulle schede evento.",tileShowImportance:"Mostra importanza",tileShowImportanceHint:"Mostra il badge di importanza sulle schede evento (se valutato).",tileShowCameraName:"Mostra nome telecamera",tileShowCameraNameHint:"Mostra il nome della telecamera nel pi\xe8 di pagina della scheda evento.",tileLabelStyle:"Visualizzazione classe",tileLabelStyleHint:"Mostra la classe di rilevamento come icona o come testo.",tileLabelStyleIcon:"Icona",tileLabelStyleText:"Testo",comingSoon:"Prossimamente",cameras:"Telecamere",manageCameras:"Gestisci telecamere",manageCamerasHint:"Rinomina, nascondi, riordina",pinchExpandsHeight:"Il pizzico ingrandisce la vista",pinchExpandsHeightHint:"Pizzicando per lo zoom il video cresce in altezza (ritaglia i bordi laterali sulle camere 16:9).","timeline.gapPercent":"Gap cluster (%)","timeline.sizePercent":"Dimensione cluster (%)","timeline.indicatorPositionPct":"Posizione indicatore (%)","timeline.showImportance":"Mostra importanza sugli elementi","timeline.showClass":"Mostra classe di rilevamento sugli elementi","timeline.cardWidthPct":"Larghezza card (%)",haptics:"Vibrazione eventi",hapticsEnabled:"Vibra sugli eventi",hapticsEnabledHint:"Brevi vibrazioni per gli eventi chiave sulla telecamera che stai guardando. Solo su dispositivo (iOS/Android).",hapticsMotion:"Movimento",hapticsDetection:"Rilevamento",hapticsPerson:"Persona / riconosciuta"},login:{loginFailed:"Accesso fallito",verifyFailed:"Verifica fallita",serverUrl:"Server URL",username:"Username",password:"Password",showPassword:"Mostra password",hidePassword:"Nascondi password",signIn:"Accedi",signingIn:"Accesso\u2026",twoFactor:"Autenticazione a due fattori",totpHint:"Inserisci il codice a 6 cifre dall'app di autenticazione per accedere come ",verificationCode:"Codice di verifica",verifyAndSignIn:"Verifica e accedi",verifying:"Verifica\u2026",back:"Indietro",or:"oppure",signInWithCamStack:"Accedi con CamStack",hubSignInHint:"Apre la pagina di accesso del tuo hub e collega questa app senza digitare qui la password.",handoffFailed:"Accesso con CamStack non riuscito \u2014 riprova oppure usa nome utente e password",invalidServerUrl:"Inserisci prima un URL server valido (https://\u2026)"},live:{webUnsupported:"La vista live non \xe8 ancora disponibile nella versione web.",connecting:"Connessione allo stream live\u2026",error:"Impossibile caricare lo stream live.",retry:"Riprova",noConnection:"Nessuna connessione al server",failed:"Connessione fallita"},ptz:{title:"PTZ",notAvailable:"I controlli PTZ non sono disponibili per questa telecamera.",zoom:"Zoom",home:"Posizione iniziale",presets:"Preset",noPresets:"Nessun preset salvato."},timeline:{activityTitle:"Attivit\xe0",last24h:"Ultime 24h",loading:"Caricamento attivit\xe0\u2026",noActivity:"Nessuna attivit\xe0 nelle ultime 24 ore.",legendRecording:"Registrato",legendMotion:"Movimento",legendAudio:"Audio"},theater:{back:"Indietro",today:"Oggi",yesterday:"Ieri",selectDate:"Seleziona una data",live:"LIVE",now:"ORA",auto:"Auto",quality:"Qualit\xe0 stream",filterAll:"Tutti",filter_motion:"Movimento",filter_audio:"Audio",goToLive:"Vai al live",noRecording:"Nessuna registrazione",noRecordingHint:"Nessun filmato per questo momento",detailCount:"{{frames}} frame \xb7 {{count}} rilevamenti",detailTracks:"{{tracks}} tracce \xb7 {{count}} rilevamenti",detailEmpty:"Nessuna immagine di dettaglio per questo istante",detailSeek:"Vai a questo momento",zoneHint:"Trascina un rettangolo sul video per filtrare gli eventi per zona",zoneConfirm:"Conferma",zoneCancel:"Annulla"},mediaKind:{crop:"Ritaglio oggetto",thumbnail:"Best shot",faceCrop:"Volto",plateCrop:"Targa",fullFrame:"Frame",fullFrameBoxed:"Riquadrato",keyFrame:"Frame chiave",firstFrame:"Primo",lastFrame:"Ultimo",snapshot:"Istantanea"},tracks:{crop:"Ritaglio",fullFrame:"Frame completo",zones:"Zone",audio:"Audio",reason:"Perch\xe9 rilevante",empty:"Nessuna traccia",recent:"Recenti",searchPlaceholder:"Cerca eventi (es. \"persona in rosso\")",noMatches:"Nessun evento corrispondente",person:"Persona",assignPerson:"Associa a persona",changePerson:"Cambia",notAssigned:"Non associata",assignFaceTitle:"Associa volto",newPersonPlaceholder:"Nome nuova persona\u2026",createAndAssign:"Crea e associa",assignFailed:"Associazione del volto non riuscita",removePerson:"Rimuovi persona",removePersonConfirmTitle:"Rimuovere la persona?",removePersonConfirmBody:"Questo scollega la persona da questo volto. Il volto torna tra quelli non associati e potr\xe0 essere riassociato in seguito.",disassociateFailed:"Rimozione della persona non riuscita",removePersonAll:"Rimuovi da tutti gli eventi",removePersonAllConfirmTitle:"Rimuovere da tutti gli eventi?",removePersonAllConfirmBody:"Questo scollega la persona da OGNI evento. Tutti i volti attualmente riconosciuti come questa persona tornano tra quelli non associati e potranno essere riassociati in seguito. La persona viene mantenuta.",disassociateAllFailed:"Rimozione della persona da tutti gli eventi non riuscita",existingPersons:"Persone",noPersons:"Ancora nessuna persona",metadata:"Metadati",copy:"Copia",copied:"Copiato","meta.trackId":"ID traccia","meta.eventId":"ID evento migliore","meta.deviceId":"ID dispositivo","meta.camera":"Telecamera","meta.className":"Classe","meta.label":"Etichetta","meta.firstSeen":"Prima apparizione","meta.lastSeen":"Ultima apparizione","meta.state":"Stato","meta.importance":"Importanza","meta.confidence":"Confidenza","meta.mediaKeys":"Chiavi media"},accessories:{on:"Acceso",off:"Spento",dimUp:"Pi\xf9 luminoso",dimDown:"Meno luminoso",lock:"Blocca",unlock:"Sblocca",open:"Apri",close:"Chiudi",stop:"Ferma",arm:"Attiva",disarm:"Disattiva",onMotion:"Su movimento",warmer:"Pi\xf9 caldo",cooler:"Pi\xf9 freddo",speedUp:"Pi\xf9 veloce",speedDown:"Pi\xf9 lento",oscillate:"Oscillazione",press:"Premi",play:"Riproduci",pause:"Pausa",previous:"Precedente",next:"Successivo",start:"Avvia",dock:"Rientra",locate:"Localizza",feed:"Eroga",feeding:"Erogazione\u2026",install:"Installa",installing:"Installazione\u2026",upToDate:"Aggiornato",increase:"Aumenta",decrease:"Diminuisci",select:"Seleziona",climateModes:{off:"Spento",heat:"Riscaldamento",cool:"Raffreddamento",auto:"Auto",heat_cool:"Caldo/Freddo",fan_only:"Ventola",dry:"Deumidificazione"}},cameraMenu:{title:"Opzioni vista",boundingBoxes:"Bounding box",streamStats:"Statistiche stream",audioLevel:"Livello audio",densityTitle:"Densit\xe0 timeline",density_compact:"Compatta",density_medium:"Media",density_wide:"Ampia",densityCustom:"Personalizzata",indicatorPosition:"Posizione indicatore",showImportance:"Mostra importanza",showClass:"Mostra classe rilevata",managementTitle:"Gestione"},stats:{title:"Statistiche stream",resolution:"Risoluzione",fps:"FPS",bitrate:"Bitrate",packetLoss:"Pacchetti persi",jitter:"Jitter",codec:"Codec",frames:"Frame (persi/totali)",waiting:"Misurazione\u2026",playbackHint:"Le statistiche WebRTC complete richiedono il player nativo."},exportActions:{title:"Cattura",recordingExport:"Esporta registrazione"},exports:{title:"Esportazioni",empty:"Nessuna esportazione.",settingsHint:"Scarica clip registrate",range:"Intervallo",rangeStart:"Inizio",rangeEnd:"Fine",profile:"Profilo",noFootage:"Nessuna registrazione in questo intervallo.",speed:"Velocit\xe0",timelapse:"Timelapse",cadence:"Un fotogramma ogni",audio:"Audio",includeAudio:"Includi audio",audioUnavailable:"L'audio \xe8 disponibile solo a velocit\xe0 0,5\u20132\xd7.",retention:"Conserva per",life24h:"24 ore",life7d:"7 giorni",life30d:"30 giorni",deleteAfterDownload:"Elimina dopo il download",deleteAfterDownloadHint:"Rimuovi il file una volta scaricato.",creating:"Creazione\u2026",createAction:"Esporta",createFailed:"Impossibile creare l'esportazione.",withAudio:"con audio",variantRegular:"1\xd7",variantAccelerated:"Accelerato {{speed}}\xd7",variantSlow:"Rallentato {{speed}}\xd7",variantTimelapse:"Timelapse",expired:"Scaduto",expiresInDays:"Scade tra {{count}}g",expiresInHours:"Scade tra {{count}}h",expiresInMinutes:"Scade tra {{count}}m",downloadAction:"Scarica",downloadUnavailable:"Download non disponibile.",downloadFailed:"Download non riuscito.",cancelAction:"Annulla",cancelConfirmTitle:"Annullare l'esportazione?",cancelConfirmBody:"Interrompe il rendering ed elimina il file parziale.",deleteAction:"Elimina",deleteConfirmTitle:"Eliminare l'esportazione?",deleteConfirmBody:"Rimuove il file. La voce nella cronologia viene mantenuta.",dismiss:"Chiudi",state:{queued:"In coda",rendering:"Rendering",ready:"Pronto",failed:"Non riuscito",expired:"Scaduto",deleted:"Eliminato"}},streamBar:{play:"Riproduci",pause:"Pausa",mute:"Silenzia",unmute:"Riattiva audio",talkStart:"Inizia a parlare",talkStop:"Smetti di parlare",quality:"Qualit\xe0 stream",menu:"Opzioni vista",snapshot:"Istantanea",pip:"Picture in picture",fullscreen:"Schermo intero",exitFullscreen:"Esci da schermo intero"},playback:{prevFrame:"Frame precedente",nextFrame:"Frame successivo",speed:"Velocit\xe0 riproduzione",audioMuted:"Audio off a \u2260 1\xd7",audioOn:"Audio attivo"},cameraSwitcher:{title:"Cambia videocamera",empty:"Nessuna videocamera disponibile",openGrid:"Apri griglia ({{n}})",selectA11y:"Seleziona {{name}}"},storage:{title:"Archiviazione",usageTitle:"Utilizzo",nodeTotal:"Totale nodo",defaultLocation:"Posizione predefinita",locationFree:"{{free}} liberi",retentionTitle:"Conservazione",pruneAction:"Applica conservazione ora",pruneConfirmTitle:"Applicare la conservazione?",pruneConfirmBody:"Elimina le registrazioni su {{name}} che superano la policy di conservazione.",pruneResult:"Recuperati {{bytes}} ({{buckets}} segmenti).",deleteTitle:"Elimina registrazioni",deleteAction:"Elimina",deleteConfirmTitle:"Eliminare le registrazioni?",deleteConfirmBody:"Elimina definitivamente {{range}} di registrazioni su {{name}}. Operazione irreversibile.",deleteResult:"Recuperati {{bytes}} ({{buckets}} segmenti).",cancel:"Annulla",window24h:"Ultime 24h",window7d:"Ultimi 7 giorni",window30d:"Ultimi 30 giorni",windowAll:"Tutto"},eventsMgmt:{title:"Eventi",footprintTitle:"Ingombro",rowsBytes:"{{rows}} eventi \xb7 {{bytes}}",clusterTotal:"Totale cluster",pruneTitle:"Elimina pi\xf9 vecchi di",pruneHint:"Si applica a tutte le telecamere.",pruneAction:"Elimina",pruneConfirmTitle:"Eliminare gli eventi vecchi?",pruneConfirmBody:"Elimina gli eventi pi\xf9 vecchi di {{range}} su TUTTE le telecamere. Operazione irreversibile.",pruneResult:"Eliminati {{count}} eventi.",deleteTitle:"Elimina eventi telecamera",deleteAction:"Elimina tutti gli eventi di questa telecamera",deleteConfirmTitle:"Eliminare tutti gli eventi?",deleteConfirmBody:"Elimina definitivamente ogni evento di {{name}}. Operazione irreversibile.",deleteResult:"Eliminati {{count}} eventi.",cancel:"Annulla",older24h:"24 ore",older7d:"7 giorni",older30d:"30 giorni"}},prototype:{today:"Oggi",yesterday:"Ieri",now:"ORA",endOfDay:"FINE GIORNATA",loading:"Caricamento...",timeline:"Timeline",events:"Eventi",playClip:"Riproduci clip",goToNow:"ORA",noEvents:"Nessun evento"},eventKind:{motion:"Movimento",audio:"Audio",person:"Persona",vehicle:"Veicolo",animal:"Animale",package:"Pacco",sensor:"Sensore",control:"Controllo",car:"Auto",truck:"Camion",bus:"Autobus",motorcycle:"Motocicletta",bicycle:"Bicicletta",airplane:"Aereo",boat:"Barca",train:"Treno",bird:"Uccello",cat:"Gatto",dog:"Cane",horse:"Cavallo",sheep:"Pecora",cow:"Mucca",elephant:"Elefante",bear:"Orso",zebra:"Zebra",giraffe:"Giraffa",contact:"Contatto","motion-sensor":"Sensore movimento",smoke:"Fumo",flood:"Allagamento",gas:"Gas","carbon-monoxide":"Monossido di carbonio",vibration:"Vibrazione",tamper:"Manomissione",presence:"Presenza","enum-sensor":"Stato sensore","device-event":"Evento dispositivo",lock:"Serratura",switch:"Interruttore",siren:"Sirena",button:"Pulsante",doorbell:"Campanello","package-delivered":"Pacco consegnato","package-picked-up":"Pacco ritirato","audio-speech":"Voce","audio-music":"Musica","audio-dog":"Cane","audio-doorbell":"Campanello","audio-siren":"Sirena","audio-alarm":"Allarme"}}},3579,[]);
16001
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.RootProviders=function(v){const _=(0,t.c)(4),{children:f}=v;let y,P,S;_[0]===Symbol.for("react.memo_cache_sentinel")?(y={flex:1},_[0]=y):y=_[0];_[1]===Symbol.for("react.memo_cache_sentinel")?(P=(0,j.jsx)(s.ThemedStatusBar,{}),_[1]=P):P=_[1];_[2]!==f?(S=(0,j.jsx)(n.GestureHandlerRootView,{style:y,children:(0,j.jsx)(c.SafeAreaProvider,{initialMetrics:c.initialWindowMetrics,children:(0,j.jsx)(o.QueryClientProvider,{client:x,children:(0,j.jsxs)(l.ThemeProvider,{children:[P,(0,j.jsx)(h.ServerProvider,{children:(0,j.jsx)(u.LoggerBridge,{children:f})})]})})})}),_[2]=f,_[3]=S):S=_[3];return S};var t=r(d[0]);r(d[1]);var n=r(d[2]),c=r(d[3]),o=r(d[4]),l=r(d[5]),s=r(d[6]),h=r(d[7]),u=r(d[8]),v=r(d[9]),j=r(d[10]);const x=(0,v.createQueryClient)()},3580,[15,17,3241,466,3081,2587,3581,3144,3582,3149,10]);
16002
16002
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.ThemedStatusBar=function(){const c=(0,t.c)(2),{mode:o}=(0,u.useTheme)(),l="dark"===o?"light":"dark";let _;c[0]!==l?(_=(0,n.jsx)(s.StatusBar,{style:l}),c[0]=l,c[1]=_):_=c[1];return _};var t=r(d[0]);r(d[1]);var s=r(d[2]),u=r(d[3]),n=r(d[4])},3581,[15,17,3429,2587,10]);
16003
16003
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.LoggerBridge=function(f){const p=(0,n.c)(9),{children:v}=f,{server:b,token:h}=(0,t.useServer)(),S=(0,s.useSettingsStore)(l);let L,_;p[0]!==S?(L=()=>{(0,u.setLogVerbose)(S),u.log.info("app","debug mode "+(S?"ON (verbose)":"off"))},_=[S],p[0]=S,p[1]=L,p[2]=_):(L=p[1],_=p[2]);(0,o.useEffect)(L,_);const U=b?.serverUrl??null;let j,k,E;p[3]!==U||p[4]!==h?(j=()=>{U&&h?((0,u.configureLogShipping)({serverUrl:U,token:h}),u.log.info("app","log shipping configured",{serverUrl:U})):(0,u.configureLogShipping)(null)},k=[U,h],p[3]=U,p[4]=h,p[5]=j,p[6]=k):(j=p[5],k=p[6]);(0,o.useEffect)(j,k),p[7]!==v?(E=(0,c.jsx)(c.Fragment,{children:v}),p[7]=v,p[8]=E):E=p[8];return E};var n=r(d[0]),o=r(d[1]),t=r(d[2]),s=r(d[3]),u=r(d[4]),c=r(d[5]);function l(n){return n.settings.advanced.debugMode}},3582,[15,17,3144,3140,2705,10]);
16004
16004
  __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,"default",{enumerable:!0,get:function(){return _}});var n=r(d[0]),t=e(r(d[1])),o=e(r(d[2])),c=r(d[3]),u=r(d[4]),l=r(d[5]),s=r(d[6]),f=r(d[7]),b=r(d[8]);function _(){const e=(0,n.c)(10),{loading:_,server:y,token:j}=(0,u.useServer)(),{colors:S}=(0,l.useTheme)();if(_){let n,c,u;return e[0]!==S.background?(n={flex:1,backgroundColor:S.background,alignItems:"center",justifyContent:"center"},e[0]=S.background,e[1]=n):n=e[1],e[2]!==S.primary?(c=(0,b.jsx)(t.default,{color:S.primary}),e[2]=S.primary,e[3]=c):c=e[3],e[4]!==n||e[5]!==c?(u=(0,b.jsx)(o.default,{style:n,children:c}),e[4]=n,e[5]=c,e[6]=u):u=e[6],u}if(!y||!j){if((0,f.canReuseHubSession)(!1)){let n;return e[7]===Symbol.for("react.memo_cache_sentinel")?(n=(0,b.jsx)(f.HubSessionBootstrap,{fallback:(0,b.jsx)(s.LoginScreen,{})}),e[7]=n):n=e[7],n}let n;return e[8]===Symbol.for("react.memo_cache_sentinel")?(n=(0,b.jsx)(s.LoginScreen,{}),e[8]=n):n=e[8],n}let x;return e[9]===Symbol.for("react.memo_cache_sentinel")?(x=(0,b.jsx)(c.Redirect,{href:"/cameras"}),e[9]=x):x=e[9],x}},3583,[15,240,20,743,3144,2587,3584,3591,10]);