diff --git a/_expo/static/js/web/entry-0827f9e1035719dcc213cbb2ffb822c2.js b/_expo/static/js/web/entry-0827f9e1035719dcc213cbb2ffb822c2.js new file mode 100644 index 0000000..9fba717 --- /dev/null +++ b/_expo/static/js/web/entry-0827f9e1035719dcc213cbb2ffb822c2.js @@ -0,0 +1,985 @@ +var __BUNDLE_START_TIME__=globalThis.nativePerformanceNow?nativePerformanceNow():Date.now(),__DEV__=false,process=globalThis.process||{},__METRO_GLOBAL_PREFIX__='';process.env=process.env||{};process.env.NODE_ENV=process.env.NODE_ENV||"production"; +!(function(e){'use strict';e[`${__METRO_GLOBAL_PREFIX__}__d`]||(e.__r=i,e[`${__METRO_GLOBAL_PREFIX__}__d`]=function(e,n,o){if(t.has(n))return;const i={dependencyMap:o,factory:e,hasError:!1,importedAll:r,importedDefault:r,isInitialized:!1,publicModule:{exports:{}}};t.set(n,i)},e.__c=o,e.__registerSegment=function(e,r,n){c[e]=r,n&&n.forEach(r=>{t.has(r)||s.has(r)||s.set(r,e)})});var t=o();const r={},{hasOwnProperty:n}={};function o(){return t=new Map}function i(e,r){if(null===e)throw new Error('Cannot find module');const n=t.get(e);return n&&n.isInitialized?n.publicModule.exports:a(e,n,r)}function l(e,n){var o;if(t.has(e)&&(null==(o=t.get(e))?void 0:o.importedDefault)!==r)return t.get(e).importedDefault;const l=i(e,n),u=l&&l.__esModule?l.default:l;return t.get(e).importedDefault=u}function u(e,o){var l;if(t.has(e)&&(null==(l=t.get(e))?void 0:l.importedAll)!==r)return t.get(e).importedAll;const u=i(e,o);let d;if(u&&u.__esModule)d=u;else{if(d={},u)for(const e in u)n.call(u,e)&&(d[e]=u[e]);d.default=u}return t.get(e).importedAll=d}i.importDefault=l,i[Symbol.for('expo.require')]=!0,i.importAll=u,i.context=function(){throw new Error('The experimental Metro feature `require.context` is not enabled in your project.')},i.resolveWeak=function(){throw new Error('require.resolveWeak cannot be called dynamically.')},i.unguarded=function(e,r){const n=t.get(e);return n&&n.isInitialized?n.publicModule.exports:f(e,n,r)};let d=!1;function a(t,r,n){if(!d&&e.ErrorUtils){let o;d=!0;try{o=f(t,r,n)}catch(t){e.ErrorUtils.reportFatalError(t)}return d=!1,o}return f(t,r,n)}i.unpackModuleId=function(e){if('number'!=typeof e)throw new Error('Module ID must be a number in unpackModuleId.');return{segmentId:e>>>16,localId:65535&e}},i.packModuleId=function(e){return(e.segmentId<<16)+e.localId};const c=[],s=new Map;function f(r,n,o){if(!n&&c.length>0){const e=s.get(r)??0,o=c[e];null!=o&&(o(r),n=t.get(r),s.delete(r))}if(!n)throw p(r,o);if(n.hasError)throw n.error;n.isInitialized=!0;const{factory:d,dependencyMap:a}=n;try{const t=n.publicModule;return t.id=r,null==d||d(e,i,l,u,t,t.exports,a),n.factory=void 0,n.dependencyMap=void 0,t.exports}catch(e){throw n.hasError=!0,n.error=e,n.isInitialized=!1,n.publicModule.exports=void 0,e}}function p(e,t){return Error('Requiring unknown module "'+(e??t??"[unknown optional import]")+'".')}})('undefined'!=typeof globalThis?globalThis:'undefined'!=typeof global?global:'undefined'!=typeof window?window:this); +!(function(e){e.$$require_external="undefined"!=typeof require?e=>require(e):()=>null})('undefined'!=typeof globalThis?globalThis:'undefined'!=typeof global?global:'undefined'!=typeof window?window:this); +'undefined'!=typeof globalThis?globalThis:'undefined'!=typeof global?global:'undefined'!=typeof window&&window; +!(function(r){let l=0,n=!0===r.RN$useAlwaysAvailableJSErrorHandling?r.RN$handleException:(r,l)=>{throw r};const t={setGlobalHandler(r){n=r},getGlobalHandler:()=>n,reportError(r){n&&n(r,!1)},reportFatalError(r){n&&n(r,!0)},applyWithGuard(r,n,e,a,o){try{return l++,r.apply(n,e)}catch(r){t.reportError(r)}finally{l--}return null},applyWithGuardIfNeeded:(r,l,n)=>t.inGuard()?r.apply(l,n):(t.applyWithGuard(r,l,n),null),inGuard:()=>!!l,guard(r,l,n){if('function'!=typeof r)return console.warn('A function must be passed to ErrorUtils.guard, got ',r),null;const e=l??r.name??'';return function(...l){return t.applyWithGuard(r,n??this,l,null,e)}}};r.ErrorUtils=t})('undefined'!=typeof globalThis?globalThis:'undefined'!=typeof global?global:'undefined'!=typeof window?window:this); +__d(function(g,r,i,a,m,e,d){"use strict";r(d[0])},0,[1]); +__d(function(g,r,i,a,m,e,d){"use strict";r(d[0]);var n=r(d[1]);(0,r(d[2]).renderRootComponent)(n.App)},1,[2,5,889]); +__d(function(g,r,i,a,m,e,d){"use strict";r(d[0]),r(d[1])},2,[3,4]); +__d(function(g,r,i,a,m,e,d){},3,[]); +__d(function(g,r,i,a,m,e,d){const _='undefined'==typeof window;globalThis.__webpack_chunk_load__=_=>g[`${__METRO_GLOBAL_PREFIX__}__loadBundleAsync`](_),globalThis.__webpack_require__=o=>{const t=ErrorUtils.reportFatalError;_&&(ErrorUtils.reportFatalError=_=>{throw _});try{return g[`${__METRO_GLOBAL_PREFIX__}__r`](o)}finally{_&&(ErrorUtils.reportFatalError=t)}}},4,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.App=function(){return(0,t.jsx)(c.Head.Provider,{children:(0,t.jsx)(n.ExpoRoot,{context:o.ctx})})};const t=r(d[0]),o=r(d[1]);r(d[2]);const n=r(d[3]),c=r(d[4]);r(d[5])},5,[6,8,11,730,883,888]); +__d(function(g,r,i,a,m,e,d){'use strict';m.exports=r(d[0])},6,[7]); +__d(function(g,r,i,a,m,e,d){ +/** + * @license React + * react-jsx-runtime.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +"use strict";var n=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function o(t,o,f){var l=null;if(void 0!==f&&(l=""+f),void 0!==o.key&&(l=""+o.key),"key"in o)for(var y in f={},o)"key"!==y&&(f[y]=o[y]);else f=o;return o=f.ref,{$$typeof:n,type:t,key:l,ref:void 0!==o?o:null,props:f}}e.Fragment=t,e.jsx=o,e.jsxs=o},7,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ctx",{enumerable:!0,get:function(){return t}});const t=r(d[0])},8,[9]); +__d(function(g,r,i,a,m,e,d){const t=Object.defineProperties({},{"./_layout.tsx":{enumerable:!0,get:()=>r(d[0])},"./claim-username.tsx":{enumerable:!0,get:()=>r(d[1])},"./create.tsx":{enumerable:!0,get:()=>r(d[2])},"./friends.tsx":{enumerable:!0,get:()=>r(d[3])},"./game/[id].tsx":{enumerable:!0,get:()=>r(d[4])},"./game/[id]/chat.tsx":{enumerable:!0,get:()=>r(d[5])},"./inbox.tsx":{enumerable:!0,get:()=>r(d[6])},"./index.tsx":{enumerable:!0,get:()=>r(d[7])},"./invite.tsx":{enumerable:!0,get:()=>r(d[8])},"./onboarding.tsx":{enumerable:!0,get:()=>r(d[9])},"./profile.tsx":{enumerable:!0,get:()=>r(d[10])},"./profile/edit.tsx":{enumerable:!0,get:()=>r(d[11])},"./reset-password.tsx":{enumerable:!0,get:()=>r(d[12])},"./sign-in.tsx":{enumerable:!0,get:()=>r(d[13])},"./u/[username].tsx":{enumerable:!0,get:()=>r(d[14])}});function n(n){return t[n]}n.keys=function(){return Object.keys(t)},n.resolve=function(t){throw new Error('Unimplemented Metro module context functionality')},m.exports=n},9,[10,830,831,856,861,865,866,870,871,872,873,879,880,881,882]); +__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 j}});var e,n=r(d[0]),t=r(d[1]),o=r(d[2]),s=r(d[3]),c=r(d[4]),l=(e=c)&&e.__esModule?e:{default:e},S=r(d[5]),u=r(d[6]),h=r(d[7]),p=r(d[8]),f=r(d[9]);function x(){const{ready:e,session:o,profile:s}=(0,S.useAuth)(),c=(0,t.useSegments)(),l=(0,t.useRouter)();return(0,n.useEffect)(()=>{if(!e)return;const n='sign-in'===c[0]||'claim-username'===c[0];o?s?n&&l.replace('/'):'claim-username'!==c[0]&&l.replace('/claim-username'):n||l.replace('/sign-in')},[e,o,s,c]),e?(0,f.jsxs)(t.Stack,{screenOptions:{headerStyle:{backgroundColor:p.c.bg},headerTintColor:p.c.text,headerTitleStyle:{fontWeight:'700'},headerShadowVisible:!1,contentStyle:{backgroundColor:p.c.bg},animation:'slide_from_right'},children:[(0,f.jsx)(t.Stack.Screen,{name:"index",options:{headerShown:!1}}),(0,f.jsx)(t.Stack.Screen,{name:"sign-in",options:{headerShown:!1}}),(0,f.jsx)(t.Stack.Screen,{name:"reset-password",options:{headerShown:!1}}),(0,f.jsx)(t.Stack.Screen,{name:"claim-username",options:{headerShown:!1,gestureEnabled:!1}}),(0,f.jsx)(t.Stack.Screen,{name:"onboarding",options:{title:'Your sports'}}),(0,f.jsx)(t.Stack.Screen,{name:"create",options:{title:'Post a game',presentation:'modal'}}),(0,f.jsx)(t.Stack.Screen,{name:"game/[id]",options:{title:'Game'}}),(0,f.jsx)(t.Stack.Screen,{name:"game/[id]/chat",options:{title:'Chat'}}),(0,f.jsx)(t.Stack.Screen,{name:"profile",options:{headerShown:!1}}),(0,f.jsx)(t.Stack.Screen,{name:"friends",options:{headerShown:!1}}),(0,f.jsx)(t.Stack.Screen,{name:"invite",options:{headerShown:!1}}),(0,f.jsx)(t.Stack.Screen,{name:"profile/edit",options:{title:'Edit profile'}}),(0,f.jsx)(t.Stack.Screen,{name:"u/[username]",options:{headerShown:!1}})]}):(0,f.jsx)(h.Loading,{})}function j(){return(0,n.useEffect)(()=>{(0,u.captureRefFromUrl)()},[]),(0,f.jsx)(s.SafeAreaProvider,{children:(0,f.jsxs)(l.default,{style:{flex:1,backgroundColor:p.c.bg},children:[(0,f.jsx)(o.StatusBar,{style:"light"}),(0,f.jsx)(S.AuthProvider,{children:(0,f.jsx)(x,{})})]})})}},10,[11,13,767,17,85,769,827,828,829,6]); +__d(function(g,r,i,a,m,e,d){'use strict';m.exports=r(d[0])},11,[12]); +__d(function(g,r,_i,a,m,e,d){ +/** + * @license React + * react.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +"use strict";var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),s=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),h=Symbol.for("react.activity"),_=Symbol.iterator;var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,S={};function E(t,n,o){this.props=t,this.context=n,this.refs=S,this.updater=o||v}function w(){}function H(t,n,o){this.props=t,this.context=n,this.refs=S,this.updater=o||v}E.prototype.isReactComponent={},E.prototype.setState=function(t,n){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,n,"setState")},E.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},w.prototype=E.prototype;var j=H.prototype=new w;j.constructor=H,b(j,E.prototype),j.isPureReactComponent=!0;var R=Array.isArray;function k(){}var C={H:null,A:null,T:null,S:null},$=Object.prototype.hasOwnProperty;function T(n,o,u){var c=u.ref;return{$$typeof:t,type:n,key:o,ref:void 0!==c?c:null,props:u}}function A(n){return"object"==typeof n&&null!==n&&n.$$typeof===t}var O=/\/+/g;function x(t,n){return"object"==typeof t&&null!==t&&null!=t.key?(o=""+t.key,u={"=":"=0",":":"=2"},"$"+o.replace(/[=:]/g,function(t){return u[t]})):n.toString(36);var o,u}function I(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch("string"==typeof t.status?t.then(k,k):(t.status="pending",t.then(function(n){"pending"===t.status&&(t.status="fulfilled",t.value=n)},function(n){"pending"===t.status&&(t.status="rejected",t.reason=n)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function P(o,u,c,i,s){var f=typeof o;"undefined"!==f&&"boolean"!==f||(o=null);var l,p,h=!1;if(null===o)h=!0;else switch(f){case"bigint":case"string":case"number":h=!0;break;case"object":switch(o.$$typeof){case t:case n:h=!0;break;case y:return P((h=o._init)(o._payload),u,c,i,s)}}if(h)return s=s(o),h=""===i?"."+x(o,0):i,R(s)?(c="",null!=h&&(c=h.replace(O,"$&/")+"/"),P(s,u,c,"",function(t){return t})):null!=s&&(A(s)&&(l=s,p=c+(null==s.key||o&&o.key===s.key?"":(""+s.key).replace(O,"$&/")+"/")+h,s=T(l.type,p,l.props)),u.push(s)),1;h=0;var v,b=""===i?".":i+":";if(R(o))for(var S=0;S');return t}function b(t){const n=(0,f.useContextKey)(),{screens:o,protectedScreens:i}=(0,x.useFilterScreenChildren)([],{contextKey:n}),{state:u,descriptors:c,NavigationContent:l}=(0,h.useNavigationBuilder)(v.StackRouter,Object.assign({},t,{id:n,children:(0,j.useSortedScreens)(o??[],i)}));return(0,s.jsx)(l,{children:c[u.routes[u.index].key].render()})}function p(){const t=O(),{state:n,descriptors:o}=t;return o[n.routes[n.index].key]?.render()??null}e.NavigatorContext=u.createContext(null),N.Slot=p,N.useContext=O,N.Screen=l.Screen},16,[6,11,17,118,448,451,452,119,541]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0});var t=r(d[0]);Object.keys(t).forEach(function(n){'default'===n||Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})});var n=r(d[1]);Object.keys(n).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}})});var c=r(d[2]);Object.keys(c).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return c[t]}})});var o=r(d[3]);Object.keys(o).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}})})},17,[18,115,116,117]); +__d(function(g,_r,i,a,m,_e,_d){"use strict";const e=["children","initialMetrics","initialSafeAreaInsets","style"],t=["onChange","style","children"];function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"SafeAreaInsetsContext",{enumerable:!0,get:function(){return c}}),Object.defineProperty(_e,"SafeAreaFrameContext",{enumerable:!0,get:function(){return d}}),_e.SafeAreaProvider=function(t){let{children:n,initialMetrics:l,initialSafeAreaInsets:v,style:y}=t,b=(0,r.default)(t,e);const S=o.useContext(c),p=o.useContext(d),[w,C]=o.useState(l?.insets??v??S??null),[A,P]=o.useState(l?.frame??p??{x:0,y:0,width:u.default.get('window').width,height:u.default.get('window').height}),x=o.useCallback(e=>{const{nativeEvent:{frame:t,insets:n}}=e;P(e=>!t||t.height===e.height&&t.width===e.width&&t.x===e.x&&t.y===e.y?e:t),C(e=>e&&n.bottom===e.bottom&&n.left===e.left&&n.right===e.right&&n.top===e.top?e:n)},[]);return o.createElement(s.NativeSafeAreaProvider,f({style:[h.fill,y],onInsetsChange:x},b),null!=w?o.createElement(d.Provider,{value:A},o.createElement(c.Provider,{value:w},n)):null)},_e.SafeAreaListener=function(e){let{onChange:n,style:u,children:l}=e,c=(0,r.default)(e,t);return o.createElement(s.NativeSafeAreaProvider,f({},c,{style:[h.fill,u],onInsetsChange:e=>{n({insets:e.nativeEvent.insets,frame:e.nativeEvent.frame})}}),l)},_e.useSafeAreaInsets=y,_e.useSafeAreaFrame=function(){const e=o.useContext(d);if(null==e)throw new Error(v);return e},_e.withSafeAreaInsets=function(e){return o.forwardRef((t,n)=>{const r=y();return o.createElement(e,f({},t,{insets:r,ref:n}))})},_e.useSafeArea=function(){return y()},Object.defineProperty(_e,"SafeAreaConsumer",{enumerable:!0,get:function(){return b}}),Object.defineProperty(_e,"SafeAreaContext",{enumerable:!0,get:function(){return S}});var r=n(_r(_d[0])),o=(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[1])),u=n(_r(_d[2])),l=n(_r(_d[3])),s=_r(_d[4]);function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;te(s))}class w{static get(e){return c&&(c=!1,l()),(0,t.default)(s[e],"No dimension set for key "+e),s[e]}static set(e){e&&(n.default?(0,t.default)(!1,'Dimensions cannot be set in the browser'):(null!=e.screen&&(s.screen=e.screen),null!=e.window&&(s.window=e.window)))}static addEventListener(e,t){return o[e]=o[e]||[],o[e].push(t),{remove:()=>{this.removeEventListener(e,t)}}}static removeEventListener(e,t){Array.isArray(o[e])&&(o[e]=o[e].filter(e=>e!==t))}}n.default&&(window.visualViewport?window.visualViewport.addEventListener('resize',u,!1):window.addEventListener('resize',u,!1))},20,[21,22]); +__d(function(g,r,i,a,m,e,d){'use strict';m.exports=function(n,o){for(var t=arguments.length,f=new Array(t>2?t-2:0),s=2;s{var e=t[0],n=t[1];null!=v&&e.forEach(t=>{v.insert(t,n)})})}function p(t,e){var n=(0,i.classic)(t,e),o=n[0];return h(n[1]),o}var b={position:'absolute',left:0,right:0,top:0,bottom:0},y=A({x:(0,e.default)({},b)}).x;function A(t){return Object.keys(t).forEach(e=>{var n,o,l,c,f=t[e];null!=f&&!0!==f.$$css&&(e.indexOf('$raw')>-1?n=p(f,e.split('$raw')[0]):(o=f,l=(0,i.atomic)((0,u.preprocess)(o,O)),c=l[0],h(l[1]),n=c),_.set(f,n))}),t}function E(t,e){void 0===e&&(e={});var n='rtl'===e.writingDirection,o=w(t,e);return Array.isArray(o)&&null!=o[1]&&(o[1]=(0,i.inline)(o[1],n)),o}E.absoluteFill=y,E.absoluteFillObject=b,E.create=A,E.compose=function(t,e){return[t,e]},E.flatten=function(){for(var t=arguments.length,e=new Array(t),n=0;n{var o=n[t];if(null!=o){var l;if(P.indexOf(t)>-1){var s=i(t,t,'left'),u=i(t,t,'right');'start'===o?l=[s,u]:'end'===o&&(l=[u,s])}var f=N[t];if(null!=f){var p=i(t,f,o),c=i(t,_[f],o);l=[p,c]}if('transitionProperty'===t){for(var b=Array.isArray(o)?o:[o],h=[],v=0;v0){var S=[...b],E=[...b];h.forEach(n=>{var e=S[n];if('string'==typeof e){var o=N[e],s=_[o];S[n]=o,E[n]=s;var u=i(t,t,S),f=i(t,t,E);l=[u,f]}})}}null==l?l=i(t,t,o):e.$$css$localize=!0,e[t]=l}}),[e,t]},_e.classic=function(n,i){var o,l={$$css:!0},s=[],u=n.animationKeyframes,p=(0,t.default)(n,f),c=T('css',i,JSON.stringify(n)),h="."+c;if(null!=u){var v=V(u),y=v[0],S=v[1];o=y.join(','),s.push(...S)}var E=M((0,e.default)((0,e.default)({},p),{},{animationName:o}));return s.push(""+h+E),l[c]=c,[l,[[s,b]]]},_e.inline=function(n,e){var t=n||c,o={},l={},s=function(){var n=t[u],i=u,s=n;if(!Object.prototype.hasOwnProperty.call(t,u)||null==n)return"continue";P.indexOf(u)>-1&&('start'===n?s=e?'right':'left':'end'===n&&(s=e?'left':'right'));var f=N[u];if(null!=f&&(i=e?_[f]:f),'transitionProperty'===u){var p=Array.isArray(n)?n:[n];p.forEach((n,t)=>{if('string'==typeof n){var i=N[n];null!=i&&(p[t]=e?_[i]:i,s=p.join(' '))}})}o[i]||(l[i]=s),i===u&&(o[i]=!0)};for(var u in t)s();return(0,i.default)(l,!0)},_e.stringifyValueWithProperty=J;var e=n(r(d[0])),t=n(r(d[1])),i=n(r(d[2])),o=n(r(d[3])),l=n(r(d[4])),s=n(r(d[5])),u=n(r(d[6])),f=["animationKeyframes"],p=new Map,c={},b=1,h=3,v={borderColor:2,borderRadius:2,borderStyle:2,borderWidth:2,display:2,flex:2,inset:2,margin:2,overflow:2,overscrollBehavior:2,padding:2,insetBlock:2.1,insetInline:2.1,marginInline:2.1,marginBlock:2.1,paddingInline:2.1,paddingBlock:2.1,borderBlockStartColor:2.2,borderBlockStartStyle:2.2,borderBlockStartWidth:2.2,borderBlockEndColor:2.2,borderBlockEndStyle:2.2,borderBlockEndWidth:2.2,borderInlineStartColor:2.2,borderInlineStartStyle:2.2,borderInlineStartWidth:2.2,borderInlineEndColor:2.2,borderInlineEndStyle:2.2,borderInlineEndWidth:2.2,borderEndStartRadius:2.2,borderEndEndRadius:2.2,borderStartStartRadius:2.2,borderStartEndRadius:2.2,insetBlockEnd:2.2,insetBlockStart:2.2,insetInlineEnd:2.2,insetInlineStart:2.2,marginBlockStart:2.2,marginBlockEnd:2.2,marginInlineStart:2.2,marginInlineEnd:2.2,paddingBlockStart:2.2,paddingBlockEnd:2.2,paddingInlineStart:2.2,paddingInlineEnd:2.2},y='borderTopLeftRadius',S='borderTopRightRadius',E='borderBottomLeftRadius',I='borderBottomRightRadius',k='borderLeftColor',R='borderLeftStyle',B='borderLeftWidth',W='borderRightColor',j='borderRightStyle',C='borderRightWidth',O='right',w='marginLeft',A='marginRight',x='paddingLeft',L='paddingRight',$='left',_={[y]:S,[S]:y,[E]:I,[I]:E,[k]:W,[R]:j,[B]:C,[W]:k,[j]:R,[C]:B,[$]:O,[w]:A,[A]:w,[x]:L,[L]:x,[O]:$},N={borderStartStartRadius:y,borderStartEndRadius:S,borderEndStartRadius:E,borderEndEndRadius:I,borderInlineStartColor:k,borderInlineStartStyle:R,borderInlineStartWidth:B,borderInlineEndColor:W,borderInlineEndStyle:j,borderInlineEndWidth:C,insetInlineEnd:O,insetInlineStart:$,marginInlineStart:w,marginInlineEnd:A,paddingInlineStart:x,paddingInlineEnd:L},P=['clear','float','textAlign'];function J(n,e){var t=(0,s.default)(n,e);return'string'!=typeof t?JSON.stringify(t||''):t}function K(n,e,t){var i=[],o="."+n;switch(e){case'animationKeyframes':var l=V(t),s=l[0],u=l[1],f=M({animationName:s.join(',')});i.push(""+o+f,...u);break;case'placeholderTextColor':var p=M({color:t,opacity:1});i.push(o+"::-webkit-input-placeholder"+p,o+"::-moz-placeholder"+p,o+":-ms-input-placeholder"+p,o+"::placeholder"+p);break;case'pointerEvents':var c=t;if('auto'===t)c='auto!important';else if('none'===t){c='none!important';var b=M({pointerEvents:'none'});i.push(o+">* "+b)}else if('box-none'===t){c='none!important';var h=M({pointerEvents:'auto'});i.push(o+">* "+h)}else if('box-only'===t){c='auto!important';var v=M({pointerEvents:'none'});i.push(o+">* "+v)}var y=M({pointerEvents:c});i.push(""+o+y);break;case'scrollbarWidth':'none'===t&&i.push(o+"::-webkit-scrollbar{display:none}");var S=M({scrollbarWidth:t});i.push(""+o+S);break;default:var E=M({[e]:t});i.push(""+o+E)}return i}function M(n){var e=(0,u.default)((0,i.default)(n));return"{"+Object.keys(e).map(n=>{var t=e[n],i=(0,l.default)(n);return Array.isArray(t)?t.map(n=>i+":"+n).join(';'):i+":"+t}).sort().join(';')+";}"}function T(n,e,t){return n+"-"+(0,o.default)(e+t)}function z(n){var e=T('r','animation',JSON.stringify(n)),t='{'+Object.keys(n).map(e=>""+e+M(n[e])).join('')+'}',i=['-webkit-',''].map(n=>"@"+n+"keyframes "+e+t);return[e,i]}function V(n){if('number'==typeof n)throw new Error("Invalid CSS keyframes type: "+typeof n);var e=[],t=[];return(Array.isArray(n)?n:[n]).forEach(n=>{if('string'==typeof n)e.push(n);else{var i=z(n),o=i[0],l=i[1];e.push(o),t.push(...l)}}),[e,t]}},30,[24,29,31,38,39,32,40]); +__d(function(g,r,_i,a,m,_e,d){"use strict";function o(o){return o&&o.__esModule?o:{default:o}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return p}});var e=o(r(d[0])),t=o(r(d[1])),i={},n=!t.default||null!=window.CSS&&null!=window.CSS.supports&&(window.CSS.supports('text-decoration-line','none')||window.CSS.supports('-webkit-text-decoration-line','none')),l='-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif',b={borderColor:['borderTopColor','borderRightColor','borderBottomColor','borderLeftColor'],borderBlockColor:['borderTopColor','borderBottomColor'],borderInlineColor:['borderRightColor','borderLeftColor'],borderRadius:['borderTopLeftRadius','borderTopRightRadius','borderBottomRightRadius','borderBottomLeftRadius'],borderStyle:['borderTopStyle','borderRightStyle','borderBottomStyle','borderLeftStyle'],borderBlockStyle:['borderTopStyle','borderBottomStyle'],borderInlineStyle:['borderRightStyle','borderLeftStyle'],borderWidth:['borderTopWidth','borderRightWidth','borderBottomWidth','borderLeftWidth'],borderBlockWidth:['borderTopWidth','borderBottomWidth'],borderInlineWidth:['borderRightWidth','borderLeftWidth'],insetBlock:['top','bottom'],insetInline:['left','right'],marginBlock:['marginTop','marginBottom'],marginInline:['marginRight','marginLeft'],paddingBlock:['paddingTop','paddingBottom'],paddingInline:['paddingRight','paddingLeft'],overflow:['overflowX','overflowY'],overscrollBehavior:['overscrollBehaviorX','overscrollBehaviorY'],borderBlockStartColor:['borderTopColor'],borderBlockStartStyle:['borderTopStyle'],borderBlockStartWidth:['borderTopWidth'],borderBlockEndColor:['borderBottomColor'],borderBlockEndStyle:['borderBottomStyle'],borderBlockEndWidth:['borderBottomWidth'],borderEndStartRadius:['borderBottomLeftRadius'],borderEndEndRadius:['borderBottomRightRadius'],borderStartStartRadius:['borderTopLeftRadius'],borderStartEndRadius:['borderTopRightRadius'],insetBlockEnd:['bottom'],insetBlockStart:['top'],marginBlockStart:['marginTop'],marginBlockEnd:['marginBottom'],paddingBlockStart:['paddingTop'],paddingBlockEnd:['paddingBottom']},p=(o,t)=>{if(!o)return i;var p={},s=function(){var i=o[f];if(null==i)return"continue";if('backgroundClip'===f)'text'===i&&(p.backgroundClip=i,p.WebkitBackgroundClip=i);else if('flex'===f)-1===i?(p.flexGrow=0,p.flexShrink=1,p.flexBasis='auto'):p.flex=i;else if('font'===f)p[f]=i.replace('System',l);else if('fontFamily'===f)if(i.indexOf('System')>-1){var s=i.split(/,\s*/);s[s.indexOf('System')]=l,p[f]=s.join(',')}else p[f]='monospace'===i?"monospace,monospace":i;else if('textDecorationLine'===f)n?p.textDecorationLine=i:p.textDecoration=i;else if('writingDirection'===f)p.direction=i;else{var c=(0,e.default)(o[f],f),u=b[f];t&&'inset'===f?(null==o.insetInline&&(p.left=c,p.right=c),null==o.insetBlock&&(p.top=c,p.bottom=c)):t&&'margin'===f?(null==o.marginInline&&(p.marginLeft=c,p.marginRight=c),null==o.marginBlock&&(p.marginTop=c,p.marginBottom=c)):t&&'padding'===f?(null==o.paddingInline&&(p.paddingLeft=c,p.paddingRight=c),null==o.paddingBlock&&(p.paddingTop=c,p.paddingBottom=c)):u?u.forEach((e,t)=>{null==o[e]&&(p[e]=c)}):p[f]=c}};for(var f in o)s();return p}},31,[32,22]); +__d(function(g,r,i,a,m,_e,d){"use strict";function o(o){return o&&o.__esModule?o:{default:o}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}});var e=o(r(d[0])),t=o(r(d[1])),l={backgroundColor:!0,borderColor:!0,borderTopColor:!0,borderRightColor:!0,borderBottomColor:!0,borderLeftColor:!0,color:!0,shadowColor:!0,textDecorationColor:!0,textShadowColor:!0};function u(o,u){var n=o;return null!=u&&e.default[u]||'number'!=typeof o?null!=u&&l[u]&&(n=(0,t.default)(o)):n=o+"px",n}},32,[33,34]); +__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={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexOrder:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,gridRow:!0,gridRowEnd:!0,gridRowGap:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnGap:!0,gridColumnStart:!0,lineClamp:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0,scale:!0,scaleX:!0,scaleY:!0,scaleZ:!0,shadowOpacity:!0},o=['ms','Moz','O','Webkit'],l=(t,o)=>t+o.charAt(0).toUpperCase()+o.substring(1);Object.keys(t).forEach(n=>{o.forEach(o=>{t[l(o,n)]=t[n]})});var n=t},33,[]); +__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 n}});var t=e(_r(d[0])),u=e(_r(d[1])),n=function(e,n){if(void 0===n&&(n=1),null!=e){if('string'==typeof e&&(0,t.default)(e))return e;var r=(0,u.default)(e);if(null!=r)return"rgba("+(r>>16&255)+","+(r>>8&255)+","+(255&r)+","+((r>>24&255)/255*n).toFixed(2)+")"}}},34,[35,36]); +__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=t=>'currentcolor'===t||'currentColor'===t||'inherit'===t||0===t.indexOf('var(')},35,[]); +__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,t=r(d[0]),u=(e=t)&&e.__esModule?e:{default:e},n=e=>{if(null==e)return e;var t=(0,u.default)(e);return null!=t?t=(t<<24|t>>>8)>>>0:void 0}},36,[37]); +__d(function(_g,_r,i,a,m,e,d){'use strict';function r(r,n,t){return t<0&&(t+=1),t>1&&(t-=1),t<.16666666666666666?r+6*(n-r)*t:t<.5?n:t<.6666666666666666?r+(n-r)*(.6666666666666666-t)*6:r}function n(n,t,s){const u=s<.5?s*(1+t):s+t-s*t,c=2*s-u,l=r(c,u,n+.3333333333333333),o=r(c,u,n),g=r(c,u,n-.3333333333333333);return Math.round(255*l)<<24|Math.round(255*o)<<16|Math.round(255*g)<<8}function t(n,t,s){if(t+s>=1){const r=Math.round(255*t/(t+s));return r<<24|r<<16|r<<8}const u=r(0,1,n+.3333333333333333)*(1-t-s)+t,c=r(0,1,n)*(1-t-s)+t,l=r(0,1,n-.3333333333333333)*(1-t-s)+t;return Math.round(255*u)<<24|Math.round(255*c)<<16|Math.round(255*l)<<8}const s='[-+]?\\d*\\.?\\d+',u="[-+]?\\d*\\.?\\d+%";function c(...r){return'\\(\\s*('+r.join(')\\s*,?\\s*(')+')\\s*\\)'}function l(...r){return'\\(\\s*('+r.slice(0,r.length-1).join(')\\s*,?\\s*(')+')\\s*/\\s*('+r[r.length-1]+')\\s*\\)'}function o(...r){return'\\(\\s*('+r.join(')\\s*,\\s*(')+')\\s*\\)'}let g;function h(){return void 0===g&&(g={rgb:new RegExp('rgb'+c(s,s,s)),rgba:new RegExp('rgba('+o(s,s,s,s)+'|'+l(s,s,s,s)+')'),hsl:new RegExp('hsl'+c(s,u,u)),hsla:new RegExp('hsla('+o(s,u,u,s)+'|'+l(s,u,u,s)+')'),hwb:new RegExp('hwb'+c(s,u,u)),hex3:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#([0-9a-fA-F]{6})$/,hex8:/^#([0-9a-fA-F]{8})$/}),g}function b(r){const n=parseInt(r,10);return n<0?0:n>255?255:n}function p(r){return(parseFloat(r)%360+360)%360/360}function f(r){const n=parseFloat(r);return n<0?0:n>1?255:Math.round(255*n)}function y(r){const n=parseFloat(r);return n<0?0:n>100?1:n/100}function k(r){switch(r){case'transparent':return 0;case'aliceblue':return 4042850303;case'antiquewhite':return 4209760255;case'aqua':case'cyan':return 16777215;case'aquamarine':return 2147472639;case'azure':return 4043309055;case'beige':return 4126530815;case'bisque':return 4293182719;case'black':return 255;case'blanchedalmond':return 4293643775;case'blue':return 65535;case'blueviolet':return 2318131967;case'brown':return 2771004159;case'burlywood':return 3736635391;case'burntsienna':return 3934150143;case'cadetblue':return 1604231423;case'chartreuse':return 2147418367;case'chocolate':return 3530104575;case'coral':return 4286533887;case'cornflowerblue':return 1687547391;case'cornsilk':return 4294499583;case'crimson':return 3692313855;case'darkblue':return 35839;case'darkcyan':return 9145343;case'darkgoldenrod':return 3095792639;case'darkgray':case'darkgrey':return 2846468607;case'darkgreen':return 6553855;case'darkkhaki':return 3182914559;case'darkmagenta':return 2332068863;case'darkolivegreen':return 1433087999;case'darkorange':return 4287365375;case'darkorchid':return 2570243327;case'darkred':return 2332033279;case'darksalmon':return 3918953215;case'darkseagreen':return 2411499519;case'darkslateblue':return 1211993087;case'darkslategray':case'darkslategrey':return 793726975;case'darkturquoise':return 13554175;case'darkviolet':return 2483082239;case'deeppink':return 4279538687;case'deepskyblue':return 12582911;case'dimgray':case'dimgrey':return 1768516095;case'dodgerblue':return 512819199;case'firebrick':return 2988581631;case'floralwhite':return 4294635775;case'forestgreen':return 579543807;case'fuchsia':case'magenta':return 4278255615;case'gainsboro':return 3705462015;case'ghostwhite':return 4177068031;case'gold':return 4292280575;case'goldenrod':return 3668254975;case'gray':case'grey':return 2155905279;case'green':return 8388863;case'greenyellow':return 2919182335;case'honeydew':return 4043305215;case'hotpink':return 4285117695;case'indianred':return 3445382399;case'indigo':return 1258324735;case'ivory':return 4294963455;case'khaki':return 4041641215;case'lavender':return 3873897215;case'lavenderblush':return 4293981695;case'lawngreen':return 2096890111;case'lemonchiffon':return 4294626815;case'lightblue':return 2916673279;case'lightcoral':return 4034953471;case'lightcyan':return 3774873599;case'lightgoldenrodyellow':return 4210742015;case'lightgray':case'lightgrey':return 3553874943;case'lightgreen':return 2431553791;case'lightpink':return 4290167295;case'lightsalmon':return 4288707327;case'lightseagreen':return 548580095;case'lightskyblue':return 2278488831;case'lightslategray':case'lightslategrey':return 2005441023;case'lightsteelblue':return 2965692159;case'lightyellow':return 4294959359;case'lime':return 16711935;case'limegreen':return 852308735;case'linen':return 4210091775;case'maroon':return 2147483903;case'mediumaquamarine':return 1724754687;case'mediumblue':return 52735;case'mediumorchid':return 3126187007;case'mediumpurple':return 2473647103;case'mediumseagreen':return 1018393087;case'mediumslateblue':return 2070474495;case'mediumspringgreen':return 16423679;case'mediumturquoise':return 1221709055;case'mediumvioletred':return 3340076543;case'midnightblue':return 421097727;case'mintcream':return 4127193855;case'mistyrose':return 4293190143;case'moccasin':return 4293178879;case'navajowhite':return 4292783615;case'navy':return 33023;case'oldlace':return 4260751103;case'olive':return 2155872511;case'olivedrab':return 1804477439;case'orange':return 4289003775;case'orangered':return 4282712319;case'orchid':return 3664828159;case'palegoldenrod':return 4008225535;case'palegreen':return 2566625535;case'paleturquoise':return 2951671551;case'palevioletred':return 3681588223;case'papayawhip':return 4293907967;case'peachpuff':return 4292524543;case'peru':return 3448061951;case'pink':return 4290825215;case'plum':return 3718307327;case'powderblue':return 2967529215;case'purple':return 2147516671;case'rebeccapurple':return 1714657791;case'red':return 4278190335;case'rosybrown':return 3163525119;case'royalblue':return 1097458175;case'saddlebrown':return 2336560127;case'salmon':return 4202722047;case'sandybrown':return 4104413439;case'seagreen':return 780883967;case'seashell':return 4294307583;case'sienna':return 2689740287;case'silver':return 3233857791;case'skyblue':return 2278484991;case'slateblue':return 1784335871;case'slategray':case'slategrey':return 1887473919;case'snow':return 4294638335;case'springgreen':return 16744447;case'steelblue':return 1182971135;case'tan':return 3535047935;case'teal':return 8421631;case'thistle':return 3636451583;case'tomato':return 4284696575;case'turquoise':return 1088475391;case'violet':return 4001558271;case'wheat':return 4125012991;case'white':return 4294967295;case'whitesmoke':return 4126537215;case'yellow':return 4294902015;case'yellowgreen':return 2597139199}return null}m.exports=function(r){if('number'==typeof r)return r>>>0===r&&r>=0&&r<=4294967295?r:null;if('string'!=typeof r)return null;const s=h();let u;if(u=s.hex6.exec(r))return parseInt(u[1]+'ff',16)>>>0;const c=k(r);return null!=c?c:(u=s.rgb.exec(r))?(b(u[1])<<24|b(u[2])<<16|b(u[3])<<8|255)>>>0:(u=s.rgba.exec(r))?void 0!==u[6]?(b(u[6])<<24|b(u[7])<<16|b(u[8])<<8|f(u[9]))>>>0:(b(u[2])<<24|b(u[3])<<16|b(u[4])<<8|f(u[5]))>>>0:(u=s.hex3.exec(r))?parseInt(u[1]+u[1]+u[2]+u[2]+u[3]+u[3]+'ff',16)>>>0:(u=s.hex8.exec(r))?parseInt(u[1],16)>>>0:(u=s.hex4.exec(r))?parseInt(u[1]+u[1]+u[2]+u[2]+u[3]+u[3]+u[4]+u[4],16)>>>0:(u=s.hsl.exec(r))?(255|n(p(u[1]),y(u[2]),y(u[3])))>>>0:(u=s.hsla.exec(r))?void 0!==u[6]?(n(p(u[6]),y(u[7]),y(u[8]))|f(u[9]))>>>0:(n(p(u[2]),y(u[3]),y(u[4]))|f(u[5]))>>>0:(u=s.hwb.exec(r))?(255|t(p(u[1]),y(u[2]),y(u[3])))>>>0:null}},37,[]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(t,c){for(var o,n=t.length,u=c^n,h=0;n>=4;)o=1540483477*(65535&(o=255&t.charCodeAt(h)|(255&t.charCodeAt(++h))<<8|(255&t.charCodeAt(++h))<<16|(255&t.charCodeAt(++h))<<24))+((1540483477*(o>>>16)&65535)<<16),u=1540483477*(65535&u)+((1540483477*(u>>>16)&65535)<<16)^(o=1540483477*(65535&(o^=o>>>24))+((1540483477*(o>>>16)&65535)<<16)),n-=4,++h;switch(n){case 3:u^=(255&t.charCodeAt(h+2))<<16;case 2:u^=(255&t.charCodeAt(h+1))<<8;case 1:u=1540483477*(65535&(u^=255&t.charCodeAt(h)))+((1540483477*(u>>>16)&65535)<<16)}return u=1540483477*(65535&(u^=u>>>13))+((1540483477*(u>>>16)&65535)<<16),(u^=u>>>15)>>>0}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return c}});var c=c=>t(c,1).toString(36)},38,[]); +__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 c}});var t=/[A-Z]/g,n=/^ms-/,u={};function o(t){return'-'+t.toLowerCase()}var c=function(c){if(c in u)return u[c];var f=c.replace(t,o);return u[c]=n.test(f)?'-'+f:f}},39,[]); +__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 n}});var t=e(r(d[0])),u=e(r(d[1])),n=(0,t.default)(u.default)},40,[41,47]); +__d(function(g,r,_i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(l){var i=l.prefixMap,o=l.plugins;return function l(s){for(var v in s){var c=s[v];if((0,n.default)(c))s[v]=l(c);else if(Array.isArray(c)){for(var _=[],p=0,y=c.length;p0&&(s[v]=_)}else{var h=(0,u.default)(o,v,c,s,i);h&&(s[v]=h),s=(0,t.default)(i,v,s)}}return s}};var t=l(r(d[0])),u=l(r(d[1])),f=l(r(d[2])),n=l(r(d[3]));function l(t){return t&&t.__esModule?t:{default:t}}},41,[42,44,45,46]); +__d(function(g,r,_i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,u,n){var l=t[u];if(l&&n.hasOwnProperty(u))for(var o=(0,f.default)(u),_=0;_t.length)&&(n=t.length);for(var o=0,i=new Array(n);o-1)return f.map(function(t){return u.replace(/image-set\(/g,t+'image-set(')})};var t,u=r(d[0]),n=(t=u)&&t.__esModule?t:{default:t};var f=['-webkit-','']},63,[64]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n){return'string'==typeof n&&t.test(n)};var t=/-webkit-|-moz-|-ms-/},64,[]); +__d(function(g,r,_i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(o,n,i){if(Object.prototype.hasOwnProperty.call(t,o))for(var l=t[o],b=0,B=l.length;b-1)return p;var v=l.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(t){return!/-webkit-|-ms-/.test(t)}).join(',');return t.indexOf('Moz')>-1?v:(o['Webkit'+(0,n.default)(t)]=p,o['Moz'+(0,n.default)(t)]=v,l)}};var t=o(r(d[0])),i=o(r(d[1])),n=o(r(d[2]));function o(t){return t&&t.__esModule?t:{default:t}}var f={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},u={Webkit:'-webkit-',Moz:'-moz-',ms:'-ms-'};function s(n,o){if((0,i.default)(n))return n;for(var f=n.split(/,(?![^()]*(?:\([^()]*\))?\))/g),s=0,l=f.length;s-1&&'order'!==b)for(var k=o[c],z=0,M=k.length;z{h.insert(e,0)}),o.set(b,l.length),l.push(h);else{var p=o.get(b);if(null==p){var v=l[0],k=null!=v?v.getTextContent():'';h=(0,u.default)((0,n.default)(f,b,k)),o.set(b,l.length),l.push(h)}else h=l[p]}}else 0===l.length?(h=(0,u.default)((0,n.default)(f)),c.forEach(e=>{h.insert(e,0)}),l.push(h)):h=l[0];return{getTextContent:()=>h.getTextContent(),id:f,insert(e,t){l.forEach(n=>{n.insert(e,t)})}}};var t=e(r(d[0])),n=e(r(d[1])),u=e(r(d[2])),s='react-native-stylesheet',o=new WeakMap,l=[],c=['html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);}','body{margin:0;}','button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0;}','input::-webkit-search-cancel-button,input::-webkit-search-decoration,input::-webkit-search-results-button,input::-webkit-search-results-decoration{display:none;}']},70,[22,71,72]); +__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]),n=(e=t)&&e.__esModule?e:{default:e};function u(e,t,u){if(n.default){var l=null!=t?t:document,o=l.getElementById(e);if(null==o)if((o=document.createElement('style')).setAttribute('id',e),'string'==typeof u&&o.appendChild(document.createTextNode(u)),l instanceof ShadowRoot)l.insertBefore(o,l.firstChild);else{var f=l.head;f&&f.insertBefore(o,f.firstChild)}return o.sheet}return null}},71,[22]); +__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 e}});var t=Array.prototype.slice;function e(e){var u,a={},c={};null!=e&&t.call(e.cssRules).forEach((t,e)=>{var n=t.cssText;if(n.indexOf('stylesheet-group')>-1)u=l(t),a[u]={start:e,rules:[n]};else{var s=i(n);null!=s&&(c[s]=!0,a[u].rules.push(n))}});function f(t,e,n){var u=s(a),l=u.indexOf(e)+1,i=u[l],c=null!=i&&null!=a[i].start?a[i].start:t.cssRules.length,f=o(t,n,c);if(f){null==a[e].start&&(a[e].start=c);for(var v=l;vs(a).map(t=>{var e=a[t].rules,n=e.shift();return e.sort(),e.unshift(n),e.join('\n')}).join('\n'),insert(t,u){var l=Number(u);if(null==a[l]){var s=n(l);a[l]={start:null,rules:[s]},null!=e&&f(e,l,s)}var o=i(t);null!=o&&null==c[o]&&(c[o]=!0,a[l].rules.push(t),null!=e&&(f(e,l,t)||a[l].rules.pop()))}};return v}function n(t){return"[stylesheet-group=\""+t+"\"]{}"}var u=/["']/g;function l(t){return Number(t.selectorText.split(u)[1])}function s(t){return Object.keys(t).map(Number).sort((t,e)=>t>e?1:-1)}var a=/\s*([,])\s*/g;function i(t){var e=t.split('{')[0].trim();return''!==e?e.replace(a,'$1'):null}function o(t,e,n){try{return t.insertRule(e,n),!0}catch(t){return!1}}},72,[]); +__d(function(g,r,i,a,m,e,d){m.exports=r(d[0])},73,[74]); +__d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.localizeStyle=function(l,s){if(null!=l[t]){var c=s?1:0;if(n.has(l)){var f=n.get(l),o=f[c];return null==o&&(o=u(l,s),f[c]=o,n.set(l,f)),o}var v=u(l,s),y=new Array(2);return y[c]=v,n.set(l,y),v}return l};var n=new WeakMap,t='$$css$localize';function u(n,u){var l={};for(var s in n)if(s!==t){var c=n[s];Array.isArray(c)?l[s]=u?c[1]:c[0]:l[s]=c}return l}},74,[]); +__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 O}}),Object.defineProperty(_e,"createBoxShadowValue",{enumerable:!0,get:function(){return s}}),Object.defineProperty(_e,"createTextShadowValue",{enumerable:!0,get:function(){return f}}),Object.defineProperty(_e,"createBoxShadowArrayValue",{enumerable:!0,get:function(){return S}}),Object.defineProperty(_e,"createTransformValue",{enumerable:!0,get:function(){return b}}),Object.defineProperty(_e,"createTransformOriginValue",{enumerable:!0,get:function(){return w}}),Object.defineProperty(_e,"preprocess",{enumerable:!0,get:function(){return x}});var t=e(r(d[0])),n=e(r(d[1])),o=r(d[2]),l={},u={height:0,width:0},s=e=>{var o=e.shadowColor,l=e.shadowOffset,s=e.shadowOpacity,f=e.shadowRadius,h=l||u,S=h.height,c=h.width,b=(0,n.default)(c),w=(0,n.default)(S),p=(0,n.default)(f||0),y=(0,t.default)(o||'black',s);if(null!=y&&null!=b&&null!=w&&null!=p)return b+" "+w+" "+p+" "+y},f=e=>{var t=e.textShadowColor,o=e.textShadowOffset,l=e.textShadowRadius,s=o||u,f=s.height,h=s.width,S=l||0,c=(0,n.default)(h),b=(0,n.default)(f),w=(0,n.default)(S),p=(0,n.default)(t,'textShadowColor');if(p&&(0!==f||0!==h||0!==S)&&null!=c&&null!=b&&null!=w)return c+" "+b+" "+w+" "+p},h=e=>{if('string'==typeof e)return e;var o=(0,n.default)(e.offsetX)||0,l=(0,n.default)(e.offsetY)||0,u=(0,n.default)(e.blurRadius)||0,s=(0,n.default)(e.spreadDistance)||0,f=(0,t.default)(e.color)||'black';return""+(e.inset?'inset ':'')+o+" "+l+" "+u+" "+s+" "+f},S=e=>e.map(h).join(', '),c=e=>{var t=Object.keys(e)[0],o=e[t];return'matrix'===t||'matrix3d'===t?t+"("+o.join(',')+")":t+"("+(0,n.default)(o,t)+")"},b=e=>e.map(c).join(' '),w=e=>e.map(e=>(0,n.default)(e)).join(' '),p={borderBottomEndRadius:'borderEndEndRadius',borderBottomStartRadius:'borderEndStartRadius',borderTopEndRadius:'borderStartEndRadius',borderTopStartRadius:'borderStartStartRadius',borderEndColor:'borderInlineEndColor',borderEndStyle:'borderInlineEndStyle',borderEndWidth:'borderInlineEndWidth',borderStartColor:'borderInlineStartColor',borderStartStyle:'borderInlineStartStyle',borderStartWidth:'borderInlineStartWidth',end:'insetInlineEnd',marginEnd:'marginInlineEnd',marginHorizontal:'marginInline',marginStart:'marginInlineStart',marginVertical:'marginBlock',paddingEnd:'paddingInlineEnd',paddingHorizontal:'paddingInline',paddingStart:'paddingInlineStart',paddingVertical:'paddingBlock',start:'insetInlineStart'},y={elevation:!0,overlayColor:!0,resizeMode:!0,tintColor:!0},x=function(e,t){void 0===t&&(t={});var n=e||l,u={};if(t.shadow,null!=n.shadowColor||null!=n.shadowOffset||null!=n.shadowOpacity||null!=n.shadowRadius){(0,o.warnOnce)('shadowStyles',"\"shadow*\" style props are deprecated. Use \"boxShadow\".");var h=s(n);null!=h&&(u.boxShadow=h)}if(t.textShadow,null!=n.textShadowColor||null!=n.textShadowOffset||null!=n.textShadowRadius){(0,o.warnOnce)('textShadowStyles',"\"textShadow*\" style props are deprecated. Use \"textShadow\".");var c=f(n);if(null!=c&&null==u.textShadow){var x=n.textShadow,O=x?x+", "+c:c;u.textShadow=O}}for(var v in n)if(null==y[v]&&'shadowColor'!==v&&'shadowOffset'!==v&&'shadowOpacity'!==v&&'shadowRadius'!==v&&'textShadowColor'!==v&&'textShadowOffset'!==v&&'textShadowRadius'!==v){var E=n[v],R=p[v]||v,j=E;if(Object.prototype.hasOwnProperty.call(n,v)&&(R===v||null==n[R]))if('aspectRatio'===R&&'number'==typeof j)u[R]=j.toString();else if('boxShadow'===R){Array.isArray(j)&&(j=S(j));var I=u.boxShadow;u.boxShadow=I?j+", "+I:j}else'fontVariant'===R?(Array.isArray(j)&&j.length>0&&(j=j.join(' ')),u[R]=j):'textAlignVertical'===R?null==n.verticalAlign&&(u.verticalAlign='center'===j?'middle':j):'transform'===R?(Array.isArray(j)&&(j=b(j)),u.transform=j):'transformOrigin'===R?(Array.isArray(j)&&(j=w(j)),u.transformOrigin=j):u[R]=j}return u},O=x},75,[34,32,76]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.warnOnce=function(n,t){}},76,[]); +__d(function(g,r,_i2,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.styleq=void 0;var l=new WeakMap;function n(n){var s,u,t;return null!=n&&(s=!0===n.disableCache,u=!0===n.disableMix,t=n.transform),function(){for(var n=[],i='',o=null,f=s?null:l,v=new Array(arguments.length),c=0;c0;){var p=v.pop();if(null!=p&&!1!==p)if(Array.isArray(p))for(var y=0;y-1)s("Invalid style declaration \""+u+":"+c+"\". Values cannot include \"!important\""),f=!0;else{var p='';'animation'===u||'animationName'===u?(p='Did you mean "animationKeyframes"?',f=!0):'direction'===u?(p='Did you mean "writingDirection"?',f=!0):t[u]?(p='Please use long-form properties.',f=!0):l[u]&&'string'==typeof c&&(0,o.default)(c).nodes.length>1&&(p="Value is \""+c+"\" but only single values are supported.",f=!0),''!==p&&s("Invalid style property of \""+u+"\". "+p)}f&&delete e[n]}}};var e,n=r(d[0]),o=(e=n)&&e.__esModule?e:{default:e},t={background:!0,borderBottom:!0,borderLeft:!0,borderRight:!0,borderTop:!0,font:!0,grid:!0,outline:!0,textDecoration:!0},l={flex:!0,margin:!0,padding:!0,borderColor:!0,borderRadius:!0,borderStyle:!0,borderWidth:!0,inset:!0,insetBlock:!0,insetInline:!0,marginBlock:!0,marginInline:!0,marginHorizontal:!0,marginVertical:!0,paddingBlock:!0,paddingInline:!0,paddingHorizontal:!0,paddingVertical:!0,overflow:!0,overscrollBehavior:!0,backgroundPosition:!0};function s(e){console.error(e)}},78,[79]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=r(d[1]),o=r(d[2]);function s(n){return this instanceof s?(this.nodes=t(n),this):new s(n)}s.prototype.toString=function(){return Array.isArray(this.nodes)?o(this.nodes):""},s.prototype.walk=function(t,o){return n(this.nodes,t,o),this},s.unit=r(d[3]),s.walk=n,s.stringify=o,m.exports=s},79,[80,81,82,83]); +__d(function(g,r,i,a,m,e,d){var o="(".charCodeAt(0),n=")".charCodeAt(0),c="'".charCodeAt(0),t='"'.charCodeAt(0),s="\\".charCodeAt(0),u="/".charCodeAt(0),l=",".charCodeAt(0),h=":".charCodeAt(0),f="*".charCodeAt(0),p="u".charCodeAt(0),x="U".charCodeAt(0),A="+".charCodeAt(0),C=/^[a-f0-9?-]+$/i;m.exports=function(I){for(var v,E,y,w,O,b,_,q,U,$=[],j=I,k=0,z=j.charCodeAt(k),B=j.length,D=[{nodes:$}],F=0,G="",H="",J="";k=48&&A<=57)return!0;var n=h.charCodeAt(2);return A===c&&n>=48&&n<=57}return C===c?(A=h.charCodeAt(1))>=48&&A<=57:C>=48&&C<=57}m.exports=function(n){var f,u,v,l=0,s=n.length;if(0===s||!C(n))return!1;for((f=n.charCodeAt(l))!==o&&f!==t||l++;l57);)l+=1;if(f=n.charCodeAt(l),u=n.charCodeAt(l+1),f===c&&u>=48&&u<=57)for(l+=2;l57);)l+=1;if(f=n.charCodeAt(l),u=n.charCodeAt(l+1),v=n.charCodeAt(l+2),(f===h||f===A)&&(u>=48&&u<=57||(u===o||u===t)&&v>=48&&v<=57))for(l+=u===o||u===t?3:2;l57);)l+=1;return{number:n.slice(0,l),unit:n.slice(l)}}},83,[]); +__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.NativeSafeAreaProvider=function({children:t,style:n,onInsetsChange:d}){return e.useEffect(()=>{if('undefined'==typeof document)return;const t=p();document.body.appendChild(t);const e=()=>{const{paddingTop:e,paddingBottom:n,paddingLeft:o,paddingRight:s}=window.getComputedStyle(t),u={top:e?parseInt(e,10):0,bottom:n?parseInt(n,10):0,left:o?parseInt(o,10):0,right:s?parseInt(s,10):0},c={x:0,y:0,width:document.documentElement.offsetWidth,height:document.documentElement.offsetHeight};d({nativeEvent:{insets:u,frame:c}})};return t.addEventListener(u(),e),e(),()=>{document.body.removeChild(t),t.removeEventListener(u(),e)}},[d]),e.createElement(o.default,{style:n},t)};var t,e=(function(t){if(t&&t.__esModule)return t;var e={};return t&&Object.keys(t).forEach(function(n){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}),e.default=t,e})(r(_d[0])),n=r(_d[1]),o=(t=n)&&t.__esModule?t:{default:t};const d={WebkitTransition:'webkitTransitionEnd',Transition:'transitionEnd',MozTransition:'transitionend',MSTransition:'msTransitionEnd',OTransition:'oTransitionEnd'};let s=null;function u(){if(null!=s)return s;const t=document.createElement('invalidtype');s=d.Transition;for(const e in d)if(void 0!==t.style[e]){s=d[e];break}return s}let c=null;function f(){if(null!==c)return c;const{CSS:t}=window;return c=t&&t.supports&&t.supports('top: constant(safe-area-inset-top)')?'constant':'env',c}function l(t){return`${f()}(safe-area-inset-${t})`}function p(){const t=document.createElement('div'),{style:e}=t;return e.position='fixed',e.left='0',e.top='0',e.width='0',e.height='0',e.zIndex='-1',e.overflow='hidden',e.visibility='hidden',e.transitionDuration='0.05s',e.transitionProperty='padding',e.transitionDelay='0s',e.paddingTop=l('top'),e.paddingBottom=l('bottom'),e.paddingLeft=l('left'),e.paddingRight=l('right'),t}},84,[11,85]); +__d(function(g,r,i,a,m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}function o(e){if(e&&e.__esModule)return e;var o={};return e&&Object.keys(e).forEach(function(n){var t=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(o,n,t.get?t:{enumerable:!0,get:function(){return e[n]}})}),o.default=e,o}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return M}});var n=e(r(_d[0])),t=o(r(_d[1])),d=e(r(_d[2])),l=o(r(_d[3])),s=e(r(_d[4])),u=e(r(_d[5])),p=e(r(_d[6])),S=e(r(_d[7])),R=e(r(_d[8])),c=e(r(_d[9])),h=e(r(_d[10])),f=r(_d[11]),v=["hrefAttrs","onLayout","onMoveShouldSetResponder","onMoveShouldSetResponderCapture","onResponderEnd","onResponderGrant","onResponderMove","onResponderReject","onResponderRelease","onResponderStart","onResponderTerminate","onResponderTerminationRequest","onScrollShouldSetResponder","onScrollShouldSetResponderCapture","onSelectionChangeShouldSetResponder","onSelectionChangeShouldSetResponderCapture","onStartShouldSetResponder","onStartShouldSetResponderCapture"],C=Object.assign({},l.defaultProps,l.accessibilityProps,l.clickProps,l.focusProps,l.keyboardProps,l.mouseProps,l.touchProps,l.styleProps,{href:!0,lang:!0,onScroll:!0,onWheel:!0,pointerEvents:!0}),y=e=>(0,s.default)(e,C),b=t.forwardRef((e,o)=>{var l=e.hrefAttrs,s=e.onLayout,c=e.onMoveShouldSetResponder,C=e.onMoveShouldSetResponderCapture,b=e.onResponderEnd,M=e.onResponderGrant,P=e.onResponderMove,w=e.onResponderReject,_=e.onResponderRelease,j=e.onResponderStart,O=e.onResponderTerminate,k=e.onResponderTerminationRequest,T=e.onScrollShouldSetResponder,D=e.onScrollShouldSetResponderCapture,E=e.onSelectionChangeShouldSetResponder,L=e.onSelectionChangeShouldSetResponderCapture,q=e.onStartShouldSetResponder,A=e.onStartShouldSetResponderCapture,G=(0,n.default)(e,v),z=t.useContext(h.default),I=t.useRef(null),W=(0,f.useLocaleContext)().direction;(0,u.default)(I,s),(0,R.default)(I,{onMoveShouldSetResponder:c,onMoveShouldSetResponderCapture:C,onResponderEnd:b,onResponderGrant:M,onResponderMove:P,onResponderReject:w,onResponderRelease:_,onResponderStart:j,onResponderTerminate:O,onResponderTerminationRequest:k,onScrollShouldSetResponder:T,onScrollShouldSetResponderCapture:D,onSelectionChangeShouldSetResponder:E,onSelectionChangeShouldSetResponderCapture:L,onStartShouldSetResponder:q,onStartShouldSetResponderCapture:A});var $='div',B=null!=e.lang?(0,f.getLocaleDirection)(e.lang):null,H=e.dir||B,N=H||W,V=y(G);if(V.dir=H,V.style=[x.view$raw,z&&x.inline,e.style],null!=e.href&&($='a',null!=l)){var F=l.download,J=l.rel,K=l.target;null!=F&&(V.download=F),null!=J&&(V.rel=J),'string'==typeof K&&(V.target='_'!==K.charAt(0)?'_'+K:K)}var Q=(0,S.default)(V),U=(0,p.default)(I,Q,o);return V.ref=U,(0,d.default)($,V,{writingDirection:N})});b.displayName='View';var x=c.default.create({view$raw:{alignContent:'flex-start',alignItems:'stretch',backgroundColor:'transparent',border:'0 solid black',boxSizing:'border-box',display:'flex',flexBasis:'auto',flexDirection:'column',flexShrink:0,listStyle:'none',margin:0,minHeight:0,minWidth:0,padding:0,position:'relative',textDecoration:'none',zIndex:0},inline:{display:'inline-flex'}}),M=b},85,[29,11,86,94,95,96,103,105,107,23,114,92]); +__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 o}});var t=e(r(d[0])),n=e(r(d[1])),l=e(r(d[2])),u=r(d[3]),o=(e,o,c)=>{var f;e&&e.constructor===String&&(f=t.default.propsToAccessibilityComponent(o));var s=f||e,_=(0,n.default)(s,o,c),p=l.default.createElement(s,_);return _.dir?l.default.createElement(u.LocaleProvider,{children:p,direction:_.dir,locale:_.lang}):p}},86,[87,91,11,92]); +__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 n}});var t=e(r(d[0])),u=e(r(d[1])),o=e(r(d[2])),n={isDisabled:t.default,propsToAccessibilityComponent:u.default,propsToAriaRole:o.default}},87,[88,89,90]); +__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=t=>t.disabled||Array.isArray(t.accessibilityStates)&&t.accessibilityStates.indexOf('disabled')>-1},88,[]); +__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]),n=(e=t)&&e.__esModule?e:{default:e},o={article:'article',banner:'header',blockquote:'blockquote',button:'button',code:'code',complementary:'aside',contentinfo:'footer',deletion:'del',emphasis:'em',figure:'figure',insertion:'ins',form:'form',list:'ul',listitem:'li',main:'main',navigation:'nav',paragraph:'p',region:'section',strong:'strong'},l={},u=function(e){if(void 0===e&&(e=l),'label'===(e.role||e.accessibilityRole))return'label';var t=(0,n.default)(e);if(t){if('heading'===t){var u=e.accessibilityLevel||e['aria-level'];return null!=u?"h"+u:'h1'}return o[t]}}},89,[90]); +__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 n={adjustable:'slider',button:'button',header:'heading',image:'img',imagebutton:null,keyboardkey:null,label:null,link:'link',none:'presentation',search:'search',summary:'region',text:null},t=t=>{var l=t.accessibilityRole,u=t.role||l;if(u){var o=n[u];if(null!==o)return o||u}}},90,[]); +__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 l=e(r(d[0])),t=e(r(d[1])),s=e(r(d[2])),n=e(r(d[3])),c=r(d[4]),u=["aria-activedescendant","accessibilityActiveDescendant","aria-atomic","accessibilityAtomic","aria-autocomplete","accessibilityAutoComplete","aria-busy","accessibilityBusy","aria-checked","accessibilityChecked","aria-colcount","accessibilityColumnCount","aria-colindex","accessibilityColumnIndex","aria-colspan","accessibilityColumnSpan","aria-controls","accessibilityControls","aria-current","accessibilityCurrent","aria-describedby","accessibilityDescribedBy","aria-details","accessibilityDetails","aria-disabled","accessibilityDisabled","aria-errormessage","accessibilityErrorMessage","aria-expanded","accessibilityExpanded","aria-flowto","accessibilityFlowTo","aria-haspopup","accessibilityHasPopup","aria-hidden","accessibilityHidden","aria-invalid","accessibilityInvalid","aria-keyshortcuts","accessibilityKeyShortcuts","aria-label","accessibilityLabel","aria-labelledby","accessibilityLabelledBy","aria-level","accessibilityLevel","aria-live","accessibilityLiveRegion","aria-modal","accessibilityModal","aria-multiline","accessibilityMultiline","aria-multiselectable","accessibilityMultiSelectable","aria-orientation","accessibilityOrientation","aria-owns","accessibilityOwns","aria-placeholder","accessibilityPlaceholder","aria-posinset","accessibilityPosInSet","aria-pressed","accessibilityPressed","aria-readonly","accessibilityReadOnly","aria-required","accessibilityRequired","role","accessibilityRole","aria-roledescription","accessibilityRoleDescription","aria-rowcount","accessibilityRowCount","aria-rowindex","accessibilityRowIndex","aria-rowspan","accessibilityRowSpan","aria-selected","accessibilitySelected","aria-setsize","accessibilitySetSize","aria-sort","accessibilitySort","aria-valuemax","accessibilityValueMax","aria-valuemin","accessibilityValueMin","aria-valuenow","accessibilityValueNow","aria-valuetext","accessibilityValueText","dataSet","focusable","id","nativeID","pointerEvents","style","tabIndex","testID"],o={},b=Object.prototype.hasOwnProperty,y=Array.isArray,v=/[A-Z]/g;function p(e){return'-'+e.toLowerCase()}function x(e){return e.replace(v,p)}function w(e){return y(e)?e.join(' '):e}var f=n.default.create({auto:{pointerEvents:'auto'},'box-none':{pointerEvents:'box-none'},'box-only':{pointerEvents:'box-only'},none:{pointerEvents:'none'}}),h=(e,y,v)=>{y||(y=o);var p=y,h=p['aria-activedescendant'],S=p.accessibilityActiveDescendant,C=p['aria-atomic'],I=p.accessibilityAtomic,R=p['aria-autocomplete'],D=p.accessibilityAutoComplete,M=p['aria-busy'],E=p.accessibilityBusy,O=p['aria-checked'],P=p.accessibilityChecked,k=p['aria-colcount'],A=p.accessibilityColumnCount,L=p['aria-colindex'],V=p.accessibilityColumnIndex,q=p['aria-colspan'],B=p.accessibilityColumnSpan,_=p['aria-controls'],z=p.accessibilityControls,T=p['aria-current'],j=p.accessibilityCurrent,H=p['aria-describedby'],N=p.accessibilityDescribedBy,F=p['aria-details'],K=p.accessibilityDetails,U=p['aria-disabled'],Z=p.accessibilityDisabled,G=p['aria-errormessage'],J=p.accessibilityErrorMessage,Q=p['aria-expanded'],W=p.accessibilityExpanded,X=p['aria-flowto'],Y=p.accessibilityFlowTo,$=p['aria-haspopup'],aa=p.accessibilityHasPopup,ia=p['aria-hidden'],ea=p.accessibilityHidden,la=p['aria-invalid'],ra=p.accessibilityInvalid,ta=p['aria-keyshortcuts'],sa=p.accessibilityKeyShortcuts,na=p['aria-label'],ca=p.accessibilityLabel,ua=p['aria-labelledby'],oa=p.accessibilityLabelledBy,ba=p['aria-level'],da=p.accessibilityLevel,ya=p['aria-live'],va=p.accessibilityLiveRegion,pa=p['aria-modal'],xa=p.accessibilityModal,ma=p['aria-multiline'],wa=p.accessibilityMultiline,fa=p['aria-multiselectable'],ha=p.accessibilityMultiSelectable,Sa=p['aria-orientation'],Ca=p.accessibilityOrientation,Ia=p['aria-owns'],Ra=p.accessibilityOwns,Da=p['aria-placeholder'],Ma=p.accessibilityPlaceholder,Ea=p['aria-posinset'],Oa=p.accessibilityPosInSet,Pa=p['aria-pressed'],ga=p.accessibilityPressed,ka=p['aria-readonly'],Aa=p.accessibilityReadOnly,La=p['aria-required'],Va=p.accessibilityRequired,qa=(p.role,p.accessibilityRole,p['aria-roledescription']),Ba=p.accessibilityRoleDescription,_a=p['aria-rowcount'],za=p.accessibilityRowCount,Ta=p['aria-rowindex'],ja=p.accessibilityRowIndex,Ha=p['aria-rowspan'],Na=p.accessibilityRowSpan,Fa=p['aria-selected'],Ka=p.accessibilitySelected,Ua=p['aria-setsize'],Za=p.accessibilitySetSize,Ga=p['aria-sort'],Ja=p.accessibilitySort,Qa=p['aria-valuemax'],Wa=p.accessibilityValueMax,Xa=p['aria-valuemin'],Ya=p.accessibilityValueMin,$a=p['aria-valuenow'],ai=p.accessibilityValueNow,ii=p['aria-valuetext'],ei=p.accessibilityValueText,li=p.dataSet,ri=p.focusable,ti=p.id,si=p.nativeID,ni=p.pointerEvents,ci=p.style,ui=p.tabIndex,oi=p.testID,bi=(0,t.default)(p,u),di=U||Z,yi=s.default.propsToAriaRole(y),vi=null!=h?h:S;null!=vi&&(bi['aria-activedescendant']=vi);var pi=null!=C?h:I;null!=pi&&(bi['aria-atomic']=pi);var xi=null!=R?R:D;null!=xi&&(bi['aria-autocomplete']=xi);var mi=null!=M?M:E;null!=mi&&(bi['aria-busy']=mi);var wi=null!=O?O:P;null!=wi&&(bi['aria-checked']=wi);var fi=null!=k?k:A;null!=fi&&(bi['aria-colcount']=fi);var hi=null!=L?L:V;null!=hi&&(bi['aria-colindex']=hi);var Si=null!=q?q:B;null!=Si&&(bi['aria-colspan']=Si);var Ci=null!=_?_:z;null!=Ci&&(bi['aria-controls']=w(Ci));var Ii=null!=T?T:j;null!=Ii&&(bi['aria-current']=Ii);var Ri=null!=H?H:N;null!=Ri&&(bi['aria-describedby']=w(Ri));var Di=null!=F?F:K;null!=Di&&(bi['aria-details']=Di),!0===di&&(bi['aria-disabled']=!0,'button'!==e&&'form'!==e&&'input'!==e&&'select'!==e&&'textarea'!==e||(bi.disabled=!0));var Mi=null!=G?G:J;null!=Mi&&(bi['aria-errormessage']=Mi);var Ei=null!=Q?Q:W;null!=Ei&&(bi['aria-expanded']=Ei);var Oi=null!=X?X:Y;null!=Oi&&(bi['aria-flowto']=w(Oi));var Pi=null!=$?$:aa;null!=Pi&&(bi['aria-haspopup']=Pi);var gi=null!=ia?ia:ea;!0===gi&&(bi['aria-hidden']=gi);var ki=null!=la?la:ra;null!=ki&&(bi['aria-invalid']=ki);var Ai=null!=ta?ta:sa;null!=Ai&&(bi['aria-keyshortcuts']=w(Ai));var Li=null!=na?na:ca;null!=Li&&(bi['aria-label']=Li);var Vi=null!=ua?ua:oa;null!=Vi&&(bi['aria-labelledby']=w(Vi));var qi=null!=ba?ba:da;null!=qi&&(bi['aria-level']=qi);var Bi=null!=ya?ya:va;null!=Bi&&(bi['aria-live']='none'===Bi?'off':Bi);var _i=null!=pa?pa:xa;null!=_i&&(bi['aria-modal']=_i);var zi=null!=ma?ma:wa;null!=zi&&(bi['aria-multiline']=zi);var Ti=null!=fa?fa:ha;null!=Ti&&(bi['aria-multiselectable']=Ti);var ji=null!=Sa?Sa:Ca;null!=ji&&(bi['aria-orientation']=ji);var Hi=null!=Ia?Ia:Ra;null!=Hi&&(bi['aria-owns']=w(Hi));var Ni=null!=Da?Da:Ma;null!=Ni&&(bi['aria-placeholder']=Ni);var Fi=null!=Ea?Ea:Oa;null!=Fi&&(bi['aria-posinset']=Fi);var Ki=null!=Pa?Pa:ga;null!=Ki&&(bi['aria-pressed']=Ki);var Ui=null!=ka?ka:Aa;null!=Ui&&(bi['aria-readonly']=Ui,'input'!==e&&'select'!==e&&'textarea'!==e||(bi.readOnly=!0));var Zi=null!=La?La:Va;null!=Zi&&(bi['aria-required']=Zi,'input'!==e&&'select'!==e&&'textarea'!==e||(bi.required=Va)),null!=yi&&(bi.role='none'===yi?'presentation':yi);var Gi=null!=qa?qa:Ba;null!=Gi&&(bi['aria-roledescription']=Gi);var Ji=null!=_a?_a:za;null!=Ji&&(bi['aria-rowcount']=Ji);var Qi=null!=Ta?Ta:ja;null!=Qi&&(bi['aria-rowindex']=Qi);var Wi=null!=Ha?Ha:Na;null!=Wi&&(bi['aria-rowspan']=Wi);var Xi=null!=Fa?Fa:Ka;null!=Xi&&(bi['aria-selected']=Xi);var Yi=null!=Ua?Ua:Za;null!=Yi&&(bi['aria-setsize']=Yi);var $i=null!=Ga?Ga:Ja;null!=$i&&(bi['aria-sort']=$i);var ae=null!=Qa?Qa:Wa;null!=ae&&(bi['aria-valuemax']=ae);var ie=null!=Xa?Xa:Ya;null!=ie&&(bi['aria-valuemin']=ie);var ee=null!=$a?$a:ai;null!=ee&&(bi['aria-valuenow']=ee);var le=null!=ii?ii:ei;if(null!=le&&(bi['aria-valuetext']=le),null!=li)for(var re in li)if(b.call(li,re)){var te=x(re),se=li[re];null!=se&&(bi["data-"+te]=se)}0===ui||'0'===ui||-1===ui||'-1'===ui?bi.tabIndex=ui:(!1===ri&&(bi.tabIndex='-1'),'a'===e||'button'===e||'input'===e||'select'===e||'textarea'===e?!1!==ri&&!0!==Z||(bi.tabIndex='-1'):'button'===yi||'checkbox'===yi||'link'===yi||'radio'===yi||'textbox'===yi||'switch'===yi?!1!==ri&&(bi.tabIndex='0'):!0===ri&&(bi.tabIndex='0')),null!=ni&&(0,c.warnOnce)('pointerEvents',"props.pointerEvents is deprecated. Use style.pointerEvents");var ne=(0,n.default)([ci,ni&&f[ni]],(0,l.default)({writingDirection:'ltr'},v)),ce=ne[0],ue=ne[1];ce&&(bi.className=ce),ue&&(bi.style=ue);var oe=null!=ti?ti:si;return null!=oe&&(bi.id=oe),null!=oi&&(bi['data-testid']=oi),null==bi.type&&'button'===e&&(bi.type='button'),bi}},91,[24,29,87,23,76]); +__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.getLocaleDirection=u,_e.LocaleProvider=function(e){var t=e.direction,o=e.locale,l=e.children;return t||o?n.default.createElement(c.Provider,{children:l,value:{direction:o?u(o):t,locale:o}}):l},_e.useLocaleContext=function(){return(0,t.useContext)(c)};var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e},o=r(d[1]),l={direction:'ltr',locale:'en-US'},c=(0,t.createContext)(l);function u(e){return(0,o.isLocaleRTL)(e)?'rtl':'ltr'}},92,[11,93]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.isLocaleRTL=function(s){var l=c.get(s);if(l)return l;var o=!1;if(Intl.Locale)try{var u=new Intl.Locale(s).maximize().script;o=t.has(u)}catch(t){var h=s.split('-')[0];o=n.has(h)}else{var v=s.split('-')[0];o=n.has(v)}return c.set(s,o),o};var t=new Set(['Arab','Syrc','Samr','Mand','Thaa','Mend','Nkoo','Adlm','Rohg','Hebr']),n=new Set(['ae','ar','arc','bcc','bqi','ckb','dv','fa','far','glk','he','iw','khw','ks','ku','mzn','nqo','pnb','ps','sd','ug','ur','yi']),c=new Map},93,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"defaultProps",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"accessibilityProps",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"clickProps",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"focusProps",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"keyboardProps",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"mouseProps",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"touchProps",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"styleProps",{enumerable:!0,get:function(){return b}});var t={children:!0,dataSet:!0,dir:!0,id:!0,ref:!0,suppressHydrationWarning:!0,tabIndex:!0,testID:!0,focusable:!0,nativeID:!0},c={'aria-activedescendant':!0,'aria-atomic':!0,'aria-autocomplete':!0,'aria-busy':!0,'aria-checked':!0,'aria-colcount':!0,'aria-colindex':!0,'aria-colspan':!0,'aria-controls':!0,'aria-current':!0,'aria-describedby':!0,'aria-details':!0,'aria-disabled':!0,'aria-errormessage':!0,'aria-expanded':!0,'aria-flowto':!0,'aria-haspopup':!0,'aria-hidden':!0,'aria-invalid':!0,'aria-keyshortcuts':!0,'aria-label':!0,'aria-labelledby':!0,'aria-level':!0,'aria-live':!0,'aria-modal':!0,'aria-multiline':!0,'aria-multiselectable':!0,'aria-orientation':!0,'aria-owns':!0,'aria-placeholder':!0,'aria-posinset':!0,'aria-pressed':!0,'aria-readonly':!0,'aria-required':!0,inert:!0,role:!0,'aria-roledescription':!0,'aria-rowcount':!0,'aria-rowindex':!0,'aria-rowspan':!0,'aria-selected':!0,'aria-setsize':!0,'aria-sort':!0,'aria-valuemax':!0,'aria-valuemin':!0,'aria-valuenow':!0,'aria-valuetext':!0,accessibilityActiveDescendant:!0,accessibilityAtomic:!0,accessibilityAutoComplete:!0,accessibilityBusy:!0,accessibilityChecked:!0,accessibilityColumnCount:!0,accessibilityColumnIndex:!0,accessibilityColumnSpan:!0,accessibilityControls:!0,accessibilityCurrent:!0,accessibilityDescribedBy:!0,accessibilityDetails:!0,accessibilityDisabled:!0,accessibilityErrorMessage:!0,accessibilityExpanded:!0,accessibilityFlowTo:!0,accessibilityHasPopup:!0,accessibilityHidden:!0,accessibilityInvalid:!0,accessibilityKeyShortcuts:!0,accessibilityLabel:!0,accessibilityLabelledBy:!0,accessibilityLevel:!0,accessibilityLiveRegion:!0,accessibilityModal:!0,accessibilityMultiline:!0,accessibilityMultiSelectable:!0,accessibilityOrientation:!0,accessibilityOwns:!0,accessibilityPlaceholder:!0,accessibilityPosInSet:!0,accessibilityPressed:!0,accessibilityReadOnly:!0,accessibilityRequired:!0,accessibilityRole:!0,accessibilityRoleDescription:!0,accessibilityRowCount:!0,accessibilityRowIndex:!0,accessibilityRowSpan:!0,accessibilitySelected:!0,accessibilitySetSize:!0,accessibilitySort:!0,accessibilityValueMax:!0,accessibilityValueMin:!0,accessibilityValueNow:!0,accessibilityValueText:!0},o={onClick:!0,onAuxClick:!0,onContextMenu:!0,onGotPointerCapture:!0,onLostPointerCapture:!0,onPointerCancel:!0,onPointerDown:!0,onPointerEnter:!0,onPointerMove:!0,onPointerLeave:!0,onPointerOut:!0,onPointerOver:!0,onPointerUp:!0},s={onBlur:!0,onFocus:!0},n={onKeyDown:!0,onKeyDownCapture:!0,onKeyUp:!0,onKeyUpCapture:!0},l={onMouseDown:!0,onMouseEnter:!0,onMouseLeave:!0,onMouseMove:!0,onMouseOver:!0,onMouseOut:!0,onMouseUp:!0},u={onTouchCancel:!0,onTouchCancelCapture:!0,onTouchEnd:!0,onTouchEndCapture:!0,onTouchMove:!0,onTouchMoveCapture:!0,onTouchStart:!0,onTouchStartCapture:!0},b={style:!0}},94,[]); +__d(function(g,r,i,a,m,e,d){"use strict";function t(t,n){var u={};for(var o in t)t.hasOwnProperty(o)&&!0===n[o]&&(u[o]=t[o]);return u}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}})},95,[]); +__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=e(r(d[1])),u=e(r(d[2])),l='__reactLayoutHandler',o=(u.default,null);function f(e,f){var v=(u.default&&void 0!==window.ResizeObserver&&null==o&&(o=new window.ResizeObserver(function(e){e.forEach(e=>{var t=e.target,u=t[l];'function'==typeof u&&n.default.measure(t,(t,n,l,o,f,v)=>{var c={nativeEvent:{layout:{x:t,y:n,width:l,height:o,left:f,top:v}},timeStamp:Date.now()};Object.defineProperty(c.nativeEvent,'target',{enumerable:!0,get:()=>e.target}),u(c)})})})),o);(0,t.default)(()=>{var t=e.current;null!=t&&(t[l]=f)},[e,f]),(0,t.default)(()=>{var t=e.current;return null!=t&&null!=v&&('function'==typeof t[l]?v.observe(t):v.unobserve(t)),()=>{null!=t&&null!=v&&v.unobserve(t)}},[e,v])}},96,[97,98,22]); +__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 f}});var e,t=r(d[0]),u=r(d[1]),f=((e=u)&&e.__esModule?e:{default:e}).default?t.useLayoutEffect:t.useEffect},97,[11,22]); +__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])),o=e(r(d[1])),s=e=>{var t=e.offsetHeight,o=e.offsetWidth,s=e.offsetLeft,n=e.offsetTop;for(e=e.offsetParent;e&&1===e.nodeType;)s+=e.offsetLeft+e.clientLeft-e.scrollLeft,n+=e.offsetTop+e.clientTop-e.scrollTop,e=e.offsetParent;return{width:o,height:t,top:n-=window.scrollY,left:s-=window.scrollX}},n=(e,t,o)=>{var n=t||e&&e.parentNode;e&&n&&setTimeout(()=>{if(e.isConnected&&n.isConnected){var t=s(n),l=s(e),f=l.height,u=l.left,c=l.top,b=l.width,p=u-t.left,h=c-t.top;o(p,h,b,f,u,c)}},0)},l={A:!0,BODY:!0,INPUT:!0,SELECT:!0,TEXTAREA:!0},f={blur(e){try{e.blur()}catch(e){}},focus(e){try{var t=e.nodeName;null==e.getAttribute('tabIndex')&&!0!==e.isContentEditable&&null==l[t]&&e.setAttribute('tabIndex','-1'),e.focus()}catch(e){}},measure(e,t){n(e,null,t)},measureInWindow(e,o){e&&setTimeout(()=>{var s=(0,t.default)(e),n=s.height,l=s.left,f=s.top,u=s.width;o(l,f,u,n)},0)},measureLayout(e,t,o,s){n(e,t,s)},updateView(e,t){for(var s in t)if(Object.prototype.hasOwnProperty.call(t,s)){var n=t[s];switch(s){case'style':(0,o.default)(e,n);break;case'class':case'className':e.setAttribute('class',n);break;case'text':case'value':e.value=n;break;default:e.setAttribute(s,n)}}},configureNextLayoutAnimation(e,t){t()},setLayoutAnimationEnabledExperimental(){}}},98,[99,100]); +__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=t=>{if(null!=t&&(1===t.nodeType&&'function'==typeof t.getBoundingClientRect))return t.getBoundingClientRect()}},99,[]); +__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 f}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e};var f=function(e,t){var f=e.style;for(var o in t)if(t.hasOwnProperty(o)){var u=0===o.indexOf('--'),l=(0,n.default)(o,t[o],u);'float'===o&&(o='cssFloat'),u?f.setProperty(o,l):f[o]=l}}},100,[101]); +__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,t=r(d[0]),u=(e=t)&&e.__esModule?e:{default:e};var n=function(e,t,n){return null==t||'boolean'==typeof t||''===t?'':n||'number'!=typeof t||0===t||u.default.hasOwnProperty(e)&&u.default[e]?(''+t).trim():t+'px'}},101,[102]); +__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={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexOrder:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,gridRow:!0,gridRowEnd:!0,gridRowGap:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnGap:!0,gridColumnStart:!0,lineClamp:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0,scale:!0,scaleX:!0,scaleY:!0,scaleZ:!0,shadowOpacity:!0},o=['ms','Moz','O','Webkit'],l=(t,o)=>t+o.charAt(0).toUpperCase()+o.substring(1);Object.keys(t).forEach(n=>{o.forEach(o=>{t[l(o,n)]=t[n]})});var n=t},102,[]); +__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};function o(){for(var e=arguments.length,n=new Array(e),o=0;o(0,u.default)(...n),[...n])}},103,[11,104]); +__d(function(g,r,i,a,m,e,d){"use strict";function n(){for(var n=arguments.length,t=new Array(n),o=0;o{null!=t&&('function'!=typeof t?'object'!=typeof t?console.error("mergeRefs cannot handle Refs of type boolean, number or string, received ref "+String(t)):t.current=n:t(n))})}}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}}),r(d[0])},104,[11]); +__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return n}});var u=e(r(d[0])),t=e(r(d[1]));function n(e){e.pointerEvents,e.style;return(0,t.default)(()=>e=>{null!=e&&(e.measure=t=>u.default.measure(e,t),e.measureLayout=(t,n,l)=>u.default.measureLayout(e,t,l,n),e.measureInWindow=t=>u.default.measureInWindow(e,t))})}},105,[98,106]); +__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=(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])),t='function'==typeof Symbol&&'symbol'==typeof Symbol()?Symbol():Object.freeze({});function n(n){var u=e.useRef(t);return u.current===t&&(u.current=n()),u.current}},106,[11]); +__d(function(g,r,i,a,m,_e,_d){"use strict";function e(e){if(e&&e.__esModule)return e;var n={};return e&&Object.keys(e).forEach(function(t){var u=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,u.get?u:{enumerable:!0,get:function(){return e[t]}})}),n.default=e,n}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return l}});var n=e(r(_d[0])),t=e(r(_d[1])),u={},o=0;function l(e,l){void 0===l&&(l=u);var d,c,s=(d=()=>o++,null==(c=n.useRef(null)).current&&(c.current=d()),c.current),S=n.useRef(!1);n.useEffect(()=>(t.attachListeners(),()=>{t.removeNode(s)}),[s]),n.useEffect(()=>{var n=l,u=n.onMoveShouldSetResponder,o=n.onMoveShouldSetResponderCapture,d=n.onScrollShouldSetResponder,c=n.onScrollShouldSetResponderCapture,f=n.onSelectionChangeShouldSetResponder,p=n.onSelectionChangeShouldSetResponderCapture,h=n.onStartShouldSetResponder,R=n.onStartShouldSetResponderCapture,v=null!=u||null!=o||null!=d||null!=c||null!=f||null!=p||null!=h||null!=R,b=e.current;v?(t.addNode(s,b,l),S.current=!0):S.current&&(t.removeNode(s),S.current=!1)},[l,e,s]),n.useDebugValue({isResponder:e.current===t.getResponderNode()}),n.useDebugValue(l)}},107,[11,108]); +__d(function(g,r,_i2,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.attachListeners=function(){s.default&&null==window.__reactResponderSystemActive&&(window.addEventListener('blur',P),E.forEach(e=>{document.addEventListener(e,P)}),_.forEach(e=>{document.addEventListener(e,P,!0)}),window.__reactResponderSystemActive=!0)},_e.addNode=function(e,n,t){(0,o.setResponderId)(n,e),f.set(e,t)},_e.removeNode=function(e){S.id===e&&M();f.has(e)&&f.delete(e)},_e.terminateResponder=M,_e.getResponderNode=function(){return S.node};var n=e(r(d[0])),t=r(d[1]),o=r(d[2]),i=r(d[3]),s=e(r(d[4])),l={},u=['onStartShouldSetResponderCapture','onStartShouldSetResponder',{bubbles:!0}],c=['onMoveShouldSetResponderCapture','onMoveShouldSetResponder',{bubbles:!0}],p={touchstart:u,mousedown:u,touchmove:c,mousemove:c,scroll:['onScrollShouldSetResponderCapture','onScrollShouldSetResponder',{bubbles:!1}]},h={id:null,idPath:null,node:null},f=new Map,v=!1,R=0,S={id:null,node:null,idPath:null},b=new i.ResponderTouchHistoryStore;function T(e){S=e}function C(e){var n=f.get(e);return null!=n?n:l}function P(e){var i=e.type,s=e.target;if('touchstart'===i&&(v=!0),('touchmove'===i||R>1)&&(v=!1),!('mousedown'===i&&v||'mousemove'===i&&v||'mousemove'===i&&R<1))if(v&&'mouseup'===i)0===R&&(v=!1);else{var l=(0,t.isStartish)(i)&&(0,o.isPrimaryPointerDown)(e),u=(0,t.isMoveish)(i),c=(0,t.isEndish)(i),p=(0,t.isScroll)(i),f=(0,t.isSelectionChange)(i),P=(0,n.default)(e,b);(l||u||c)&&(e.touches?R=e.touches.length:l?R=1:c&&(R=0),b.recordTouchTrack(i,P.nativeEvent));var _,E=(0,o.getResponderPaths)(e),M=!1;if(l||u||p&&R>0){var y=S.idPath,x=E.idPath;if(null!=y&&null!=x){var L=(0,o.getLowestCommonAncestor)(y,x);if(null!=L){var q=x.indexOf(L)+(L===S.id?1:0);E={idPath:x.slice(q),nodePath:E.nodePath.slice(q)}}else E=null}null!=E&&null!=(_=w(E,e,P))&&(N(P,_),M=!0)}if(null!=S.id&&null!=S.node){var j=S,A=j.id,G=j.node,O=C(A),k=O.onResponderStart,D=O.onResponderMove,H=O.onResponderEnd,I=O.onResponderRelease,V=O.onResponderTerminate,z=O.onResponderTerminationRequest;if(P.bubbles=!1,P.cancelable=!1,P.currentTarget=G,l)null!=k&&(P.dispatchConfig.registrationName='onResponderStart',k(P));else if(u)null!=D&&(P.dispatchConfig.registrationName='onResponderMove',D(P));else{var B=(0,t.isCancelish)(i)||'contextmenu'===i||'blur'===i&&s===window||'blur'===i&&s.contains(G)&&e.relatedTarget!==G||p&&0===R||p&&s.contains(G)&&s!==G||f&&(0,o.hasValidSelection)(e),F=c&&!B&&!(0,o.hasTargetTouches)(G,e.touches);if(c&&null!=H&&(P.dispatchConfig.registrationName='onResponderEnd',H(P)),F&&(null!=I&&(P.dispatchConfig.registrationName='onResponderRelease',I(P)),T(h)),B){var J=!0;'contextmenu'!==i&&'scroll'!==i&&'selectionchange'!==i||(M?J=!1:null!=z&&(P.dispatchConfig.registrationName='onResponderTerminationRequest',!1===z(P)&&(J=!1))),J&&(null!=V&&(P.dispatchConfig.registrationName='onResponderTerminate',V(P)),T(h),v=!1,R=0)}}}}}function w(e,n,t){var o=p[n.type];if(null!=o){for(var i=e.idPath,s=e.nodePath,l=o[0],u=o[1],c=o[2].bubbles,h=function(e,n,o){var s=C(e)[o];if(null!=s&&(t.currentTarget=n,!0===s(t)))return{id:e,node:n,idPath:i.slice(i.indexOf(e))}},f=i.length-1;f>=0;f--){var v=h(i[f],s[f],l);if(null!=v)return v;if(!0===t.isPropagationStopped())return}if(c)for(var R=0;R{},o={},c=[];function l(e){return e>20?e%20:e}function f(e,t){var f,p,s,v=!1,y=e.changedTouches,h=e.type,X=!0===e.metaKey,Y=!0===e.shiftKey,P=y&&y[0].force||0,b=l(y&&y[0].identifier||0),T=y&&y[0].clientX||e.clientX,K=y&&y[0].clientY||e.clientY,_=y&&y[0].pageX||e.pageX,D=y&&y[0].pageY||e.pageY,S='function'==typeof e.preventDefault?e.preventDefault.bind(e):u,j=e.timeStamp;function H(e){return Array.prototype.slice.call(e).map(e=>({force:e.force,identifier:l(e.identifier),get locationX(){return A(e.clientX)},get locationY(){return C(e.clientY)},pageX:e.pageX,pageY:e.pageY,target:e.target,timestamp:j}))}if(null!=y)p=H(y),s=H(e.touches);else{var M=[{force:P,identifier:b,get locationX(){return A(T)},get locationY(){return C(K)},pageX:_,pageY:D,target:e.target,timestamp:j}];p=M,s='mouseup'===h||'dragstart'===h?c:M}var O={bubbles:!0,cancelable:!0,currentTarget:null,defaultPrevented:e.defaultPrevented,dispatchConfig:o,eventPhase:e.eventPhase,isDefaultPrevented:()=>e.defaultPrevented,isPropagationStopped:()=>v,isTrusted:e.isTrusted,nativeEvent:{altKey:!1,ctrlKey:!1,metaKey:X,shiftKey:Y,changedTouches:p,force:P,identifier:b,get locationX(){return A(T)},get locationY(){return C(K)},pageX:_,pageY:D,target:e.target,timestamp:j,touches:s,type:h},persist:u,preventDefault:S,stopPropagation(){v=!0},target:e.target,timeStamp:j,touchHistory:t.touchHistory};function A(e){if(f=f||(0,n.default)(O.currentTarget))return e-f.left}function C(e){if(f=f||(0,n.default)(O.currentTarget))return e-f.top}return O}},109,[99]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"BLUR",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"CONTEXT_MENU",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"FOCUS_OUT",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"MOUSE_DOWN",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"MOUSE_MOVE",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"MOUSE_UP",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"MOUSE_CANCEL",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"TOUCH_START",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"TOUCH_MOVE",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"TOUCH_END",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"TOUCH_CANCEL",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"SCROLL",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"SELECT",{enumerable:!0,get:function(){return C}}),Object.defineProperty(e,"SELECTION_CHANGE",{enumerable:!0,get:function(){return P}}),e.isStartish=function(t){return t===b||t===o},e.isMoveish=function(t){return t===l||t===c},e.isEndish=function(t){return t===s||t===f||j(t)},e.isCancelish=j,e.isScroll=function(t){return t===p},e.isSelectionChange=function(t){return t===C||t===P};var t='blur',n='contextmenu',u='focusout',o='mousedown',c='mousemove',f='mouseup',O='dragstart',b='touchstart',l='touchmove',s='touchend',E='touchcancel',p='scroll',C='select',P='selectionchange';function j(t){return t===E||t===O}},110,[]); +__d(function(g,r,_i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.setResponderId=function(e,t){null!=e&&(e[o]=t)},_e.getResponderPaths=function(e){for(var t=[],n=[],o=u(e),l=0;l0&&(u=e[l=n-o],n=o);o-n>0&&(c=t[i=o-n],o=n);var s=n;for(;s--;){if(u===c)return u;u=e[l++],c=t[i++]}return null},_e.hasTargetTouches=function(e,t){if(!t||0===t.length)return!1;for(var n=0;n=1&&'\n'!==o&&c}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}})},112,[]); +__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ResponderTouchHistoryStore",{enumerable:!0,get:function(){return T}});var t=r(d[0]);function n(t){return t.timeStamp||t.timestamp}function i(t){return{touchActive:!0,startPageX:t.pageX,startPageY:t.pageY,startTimeStamp:n(t),currentPageX:t.pageX,currentPageY:t.pageY,currentTimeStamp:n(t),previousPageX:t.pageX,previousPageY:t.pageY,previousTimeStamp:n(t)}}function c(t,i){t.touchActive=!0,t.startPageX=i.pageX,t.startPageY=i.pageY,t.startTimeStamp=n(i),t.currentPageX=i.pageX,t.currentPageY=i.pageY,t.currentTimeStamp=n(i),t.previousPageX=i.pageX,t.previousPageY=i.pageY,t.previousTimeStamp=n(i)}function o(t){var n=t.identifier;return null==n&&console.error('Touch object is missing identifier.'),n}function u(t,u){var s=o(t),h=u.touchBank[s];h?c(h,t):u.touchBank[s]=i(t),u.mostRecentTimeStamp=n(t)}function s(t,i){var c=i.touchBank[o(t)];c?(c.touchActive=!0,c.previousPageX=c.currentPageX,c.previousPageY=c.currentPageY,c.previousTimeStamp=c.currentTimeStamp,c.currentPageX=t.pageX,c.currentPageY=t.pageY,c.currentTimeStamp=n(t),i.mostRecentTimeStamp=n(t)):console.warn('Cannot record touch move without a touch start.\n',"Touch Move: "+p(t)+"\n","Touch Bank: "+v(i))}function h(t,i){var c=i.touchBank[o(t)];c?(c.touchActive=!1,c.previousPageX=c.currentPageX,c.previousPageY=c.currentPageY,c.previousTimeStamp=c.currentTimeStamp,c.currentPageX=t.pageX,c.currentPageY=t.pageY,c.currentTimeStamp=n(t),i.mostRecentTimeStamp=n(t)):console.warn('Cannot record touch end without a touch start.\n',"Touch End: "+p(t)+"\n","Touch Bank: "+v(i))}function p(t){return JSON.stringify({identifier:t.identifier,pageX:t.pageX,pageY:t.pageY,timestamp:n(t)})}function v(t){var n=t.touchBank,i=JSON.stringify(n.slice(0,20));return n.length>20&&(i+=' (original size: '+n.length+')'),i}class T{constructor(){this._touchHistory={touchBank:[],numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0}}recordTouchTrack(n,i){var c=this._touchHistory;if((0,t.isMoveish)(n))i.changedTouches.forEach(t=>s(t,c));else if((0,t.isStartish)(n))i.changedTouches.forEach(t=>u(t,c)),c.numberActiveTouches=i.touches.length,1===c.numberActiveTouches&&(c.indexOfSingleActiveTouch=i.touches[0].identifier);else if((0,t.isEndish)(n)&&(i.changedTouches.forEach(t=>h(t,c)),c.numberActiveTouches=i.touches.length,1===c.numberActiveTouches))for(var o=c.touchBank,p=0;p{let{style:p={},mode:b,edges:h}=e,v=(0,r.default)(e,t);const y=(0,u.useSafeAreaInsets)(),O=n.useMemo(()=>null==h?l:Array.isArray(h)?h.reduce((t,e)=>(t[e]='additive',t),{}):h,[h]),_=n.useMemo(()=>{const t=o.default.flatten(p);if('margin'===b){const{margin:e=0,marginVertical:r=e,marginHorizontal:n=e,marginTop:o=r,marginRight:d=n,marginBottom:u=r,marginLeft:f=n}=t,l={marginTop:c(y.top,o,O.top),marginRight:c(y.right,d,O.right),marginBottom:c(y.bottom,u,O.bottom),marginLeft:c(y.left,f,O.left)};return[p,l]}{const{padding:e=0,paddingVertical:r=e,paddingHorizontal:n=e,paddingTop:o=r,paddingRight:d=n,paddingBottom:u=r,paddingLeft:f=n}=t,l={paddingTop:c(y.top,o,O.top),paddingRight:c(y.right,d,O.right),paddingBottom:c(y.bottom,u,O.bottom),paddingLeft:c(y.left,f,O.left)};return[p,l]}},[O.bottom,O.left,O.right,O.top,y.bottom,y.left,y.right,y.top,b,p]);return n.createElement(d.default,f({style:_},v,{ref:s}))})},115,[19,11,23,85,18]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"initialWindowMetrics",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"initialWindowSafeAreaInsets",{enumerable:!0,get:function(){return t}});const n=null,t=null},116,[]); +__d(function(g,r,i,a,m,e,d){},117,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Screen=p,e.isScreen=function(n,o){if((0,t.isValidElement)(n)&&n&&n.type===p){if('object'==typeof n.props&&n.props&&'name'in n.props&&!n.props.name)throw new Error(` component in \`default export\` at \`app${o}/_layout\` must have a \`name\` prop when used as a child of a Layout Route.`);return!0}return!1};const t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),u=r(d[4]);function p({name:t,options:p}){if(t)throw new Error("The name prop on the Screen component may only be used when it is inside a Layout route");const c=(0,n.useRoute)(),f=(0,o.useNavigation)(),l=f.isFocused(),y=(0,u.isRoutePreloadedInStack)(f.getState(),c);return(0,s.useSafeLayoutEffect)(()=>{p&&Object.keys(p).length&&(!y||y&&l)&&f.setOptions(p)},[l,y,f,p]),null}},118,[11,119,401,446,447]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,u){void 0===u&&(u=o);var c=Object.getOwnPropertyDescriptor(n,o);c&&!("get"in c?!n.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,u,c)}:function(t,n,o,u){void 0===u&&(u=o),t[u]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var u in n)"default"===u||Object.prototype.hasOwnProperty.call(o,u)||t(o,n,u)};Object.defineProperty(e,"__esModule",{value:!0}),e.useScrollToTop=e.useRoutePath=e.useLocale=e.useLinkTo=e.useLinkProps=e.useLinkBuilder=e.UNSTABLE_UnhandledLinkingContext=e.DefaultTheme=e.DarkTheme=e.ServerContainer=e.NavigationContainer=e.LocaleDirContext=e.LinkingContext=e.Link=e.createStaticNavigation=void 0;var o=r(d[0]);Object.defineProperty(e,"createStaticNavigation",{enumerable:!0,get:function(){return o.createStaticNavigation}});var u=r(d[1]);Object.defineProperty(e,"Link",{enumerable:!0,get:function(){return u.Link}});var c=r(d[2]);Object.defineProperty(e,"LinkingContext",{enumerable:!0,get:function(){return c.LinkingContext}});var l=r(d[3]);Object.defineProperty(e,"LocaleDirContext",{enumerable:!0,get:function(){return l.LocaleDirContext}});var f=r(d[4]);Object.defineProperty(e,"NavigationContainer",{enumerable:!0,get:function(){return f.NavigationContainer}});var b=r(d[5]);Object.defineProperty(e,"ServerContainer",{enumerable:!0,get:function(){return b.ServerContainer}});var s=r(d[6]);Object.defineProperty(e,"DarkTheme",{enumerable:!0,get:function(){return s.DarkTheme}});var v=r(d[7]);Object.defineProperty(e,"DefaultTheme",{enumerable:!0,get:function(){return v.DefaultTheme}}),n(r(d[8]),e);var p=r(d[9]);Object.defineProperty(e,"UNSTABLE_UnhandledLinkingContext",{enumerable:!0,get:function(){return p.UnhandledLinkingContext}});var L=r(d[10]);Object.defineProperty(e,"useLinkBuilder",{enumerable:!0,get:function(){return L.useLinkBuilder}});var P=r(d[11]);Object.defineProperty(e,"useLinkProps",{enumerable:!0,get:function(){return P.useLinkProps}});var m=r(d[12]);Object.defineProperty(e,"useLinkTo",{enumerable:!0,get:function(){return m.useLinkTo}});var O=r(d[13]);Object.defineProperty(e,"useLocale",{enumerable:!0,get:function(){return O.useLocale}});var k=r(d[14]);Object.defineProperty(e,"useRoutePath",{enumerable:!0,get:function(){return k.useRoutePath}});var j=r(d[15]);Object.defineProperty(e,"useScrollToTop",{enumerable:!0,get:function(){return j.useScrollToTop}}),n(r(d[16]),e)},119,[120,391,380,381,219,393,394,383,395,382,396,392,397,398,399,400,121]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t=r(d[0]).default;const n=["linking"];var i,o=this&&this.__createBinding||(Object.create?function(t,n,i,o){void 0===o&&(o=i);var c=Object.getOwnPropertyDescriptor(n,i);c&&!("get"in c?!n.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return n[i]}}),Object.defineProperty(t,o,c)}:function(t,n,i,o){void 0===o&&(o=i),t[o]=n[i]}),c=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),u=this&&this.__importStar||(i=function(t){return i=Object.getOwnPropertyNames||function(t){var n=[];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[n.length]=i);return n},i(t)},function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var u=i(t),l=0;l{const t=(0,f.createPathConfigForStaticNavigation)(i,{initialRouteName:h?.config?.initialRouteName},'auto'===h?.enabled);if(t)return{path:h?.config?.path,initialRouteName:h?.config?.initialRouteName,screens:t}},[h?.enabled,h?.config?.path,h?.config?.initialRouteName]),O=s.useMemo(()=>{if(!h)return;const t='boolean'==typeof h.enabled?h.enabled:null!=v?.screens;return Object.assign({},h,{enabled:t,config:v})},[h,v]);if(!0===h?.enabled&&null==v?.screens)throw new Error("Linking is enabled but no linking configuration was found for the screens.\n\nTo solve this:\n- Specify a 'linking' property for the screens you want to link to.\n- Or set 'linking.enabled' to 'auto' to generate paths automatically.\n\nSee usage guide: https://reactnavigation.org/docs/static-configuration#linking");return(0,l.jsx)(b.NavigationContainer,Object.assign({},p,{ref:u,linking:O,children:(0,l.jsx)(o,{})}))})};const l=r(d[1]),s=u(r(d[2])),f=r(d[3]),b=r(d[4])},120,[19,6,11,121,219]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,u){void 0===u&&(u=o);var v=Object.getOwnPropertyDescriptor(n,o);v&&!("get"in v?!n.__esModule:v.writable||v.configurable)||(v={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,u,v)}:function(t,n,o,u){void 0===u&&(u=o),t[u]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var u in n)"default"===u||Object.prototype.hasOwnProperty.call(o,u)||t(o,n,u)};Object.defineProperty(e,"__esModule",{value:!0}),e.validatePathConfig=e.useStateForPath=e.useRoute=e.usePreventRemoveContext=e.usePreventRemove=e.useNavigationState=e.useNavigationIndependentTree=e.useNavigationContainerRef=e.useNavigationBuilder=e.useNavigation=e.useIsFocused=e.useFocusEffect=e.useTheme=e.ThemeProvider=e.ThemeContext=e.createPathConfigForStaticNavigation=e.createComponentForStaticNavigation=e.PreventRemoveProvider=e.PreventRemoveContext=e.NavigationRouteContext=e.NavigationProvider=e.NavigationMetaContext=e.NavigationIndependentTree=e.NavigationHelpersContext=e.NavigationContext=e.NavigationContainerRefContext=e.getStateFromPath=e.getPathFromState=e.getFocusedRouteNameFromRoute=e.getActionFromState=e.findFocusedRoute=e.CurrentRenderContext=e.createNavigatorFactory=e.createNavigationContainerRef=e.BaseNavigationContainer=void 0;var o=r(d[0]);Object.defineProperty(e,"BaseNavigationContainer",{enumerable:!0,get:function(){return o.BaseNavigationContainer}});var u=r(d[1]);Object.defineProperty(e,"createNavigationContainerRef",{enumerable:!0,get:function(){return u.createNavigationContainerRef}});var v=r(d[2]);Object.defineProperty(e,"createNavigatorFactory",{enumerable:!0,get:function(){return v.createNavigatorFactory}});var c=r(d[3]);Object.defineProperty(e,"CurrentRenderContext",{enumerable:!0,get:function(){return c.CurrentRenderContext}});var f=r(d[4]);Object.defineProperty(e,"findFocusedRoute",{enumerable:!0,get:function(){return f.findFocusedRoute}});var b=r(d[5]);Object.defineProperty(e,"getActionFromState",{enumerable:!0,get:function(){return b.getActionFromState}});var m=r(d[6]);Object.defineProperty(e,"getFocusedRouteNameFromRoute",{enumerable:!0,get:function(){return m.getFocusedRouteNameFromRoute}});var P=r(d[7]);Object.defineProperty(e,"getPathFromState",{enumerable:!0,get:function(){return P.getPathFromState}});var s=r(d[8]);Object.defineProperty(e,"getStateFromPath",{enumerable:!0,get:function(){return s.getStateFromPath}});var p=r(d[9]);Object.defineProperty(e,"NavigationContainerRefContext",{enumerable:!0,get:function(){return p.NavigationContainerRefContext}});var N=r(d[10]);Object.defineProperty(e,"NavigationContext",{enumerable:!0,get:function(){return N.NavigationContext}});var l=r(d[11]);Object.defineProperty(e,"NavigationHelpersContext",{enumerable:!0,get:function(){return l.NavigationHelpersContext}});var C=r(d[12]);Object.defineProperty(e,"NavigationIndependentTree",{enumerable:!0,get:function(){return C.NavigationIndependentTree}});var y=r(d[13]);Object.defineProperty(e,"NavigationMetaContext",{enumerable:!0,get:function(){return y.NavigationMetaContext}});var O=r(d[14]);Object.defineProperty(e,"NavigationProvider",{enumerable:!0,get:function(){return O.NavigationProvider}});var j=r(d[14]);Object.defineProperty(e,"NavigationRouteContext",{enumerable:!0,get:function(){return j.NavigationRouteContext}});var R=r(d[15]);Object.defineProperty(e,"PreventRemoveContext",{enumerable:!0,get:function(){return R.PreventRemoveContext}});var F=r(d[16]);Object.defineProperty(e,"PreventRemoveProvider",{enumerable:!0,get:function(){return F.PreventRemoveProvider}});var h=r(d[17]);Object.defineProperty(e,"createComponentForStaticNavigation",{enumerable:!0,get:function(){return h.createComponentForStaticNavigation}}),Object.defineProperty(e,"createPathConfigForStaticNavigation",{enumerable:!0,get:function(){return h.createPathConfigForStaticNavigation}});var x=r(d[18]);Object.defineProperty(e,"ThemeContext",{enumerable:!0,get:function(){return x.ThemeContext}});var S=r(d[19]);Object.defineProperty(e,"ThemeProvider",{enumerable:!0,get:function(){return S.ThemeProvider}});var T=r(d[20]);Object.defineProperty(e,"useTheme",{enumerable:!0,get:function(){return T.useTheme}}),n(r(d[21]),e);var _=r(d[22]);Object.defineProperty(e,"useFocusEffect",{enumerable:!0,get:function(){return _.useFocusEffect}});var I=r(d[23]);Object.defineProperty(e,"useIsFocused",{enumerable:!0,get:function(){return I.useIsFocused}});var B=r(d[24]);Object.defineProperty(e,"useNavigation",{enumerable:!0,get:function(){return B.useNavigation}});var M=r(d[25]);Object.defineProperty(e,"useNavigationBuilder",{enumerable:!0,get:function(){return M.useNavigationBuilder}});var w=r(d[26]);Object.defineProperty(e,"useNavigationContainerRef",{enumerable:!0,get:function(){return w.useNavigationContainerRef}});var A=r(d[27]);Object.defineProperty(e,"useNavigationIndependentTree",{enumerable:!0,get:function(){return A.useNavigationIndependentTree}});var E=r(d[28]);Object.defineProperty(e,"useNavigationState",{enumerable:!0,get:function(){return E.useNavigationState}});var H=r(d[29]);Object.defineProperty(e,"usePreventRemove",{enumerable:!0,get:function(){return H.usePreventRemove}});var D=r(d[30]);Object.defineProperty(e,"usePreventRemoveContext",{enumerable:!0,get:function(){return D.usePreventRemoveContext}});var k=r(d[31]);Object.defineProperty(e,"useRoute",{enumerable:!0,get:function(){return k.useRoute}});var q=r(d[32]);Object.defineProperty(e,"useStateForPath",{enumerable:!0,get:function(){return q.useStateForPath}});var z=r(d[33]);Object.defineProperty(e,"validatePathConfig",{enumerable:!0,get:function(){return z.validatePathConfig}}),n(r(d[34]),e)},121,[122,143,154,157,144,158,159,162,170,137,174,175,176,180,177,181,182,183,146,145,187,188,189,178,179,190,215,150,207,216,217,186,218,169,124]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t=r(d[0]).default;const n=["key","routeNames"];var o,i=this&&this.__createBinding||(Object.create?function(t,n,o,i){void 0===i&&(i=o);var s=Object.getOwnPropertyDescriptor(n,o);s&&!("get"in s?!n.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,i,s)}:function(t,n,o,i){void 0===i&&(i=o),t[i]=n[o]}),s=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),u=this&&this.__importStar||(o=function(t){return o=Object.getOwnPropertyNames||function(t){var n=[];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[n.length]=o);return n},o(t)},function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var u=o(t),c=0;cL(null==n?void 0:n)),F=f.useRef(!0),Z=f.useRef(void 0),H=f.useCallback(()=>Z.current,[]),q=f.useCallback(t=>{Z.current=t},[]),{listeners:z,addListener:J}=(0,x.useChildListeners)(),{keyedListeners:Q,addKeyedListener:V}=(0,k.useKeyedChildListeners)(),W=(0,v.default)(t=>{null==z.focus[0]?console.error(j.NOT_INITIALIZED_ERROR):z.focus[0](n=>n.dispatch(t))}),X=(0,v.default)(()=>{if(null==z.focus[0])return!1;const{result:t,handled:n}=z.focus[0](t=>t.canGoBack());return!!n&&t}),Y=(0,v.default)(t=>{const n=t?.key??Q.getState.root?.().key;null==n?console.error(j.NOT_INITIALIZED_ERROR):z.focus[0](o=>o.dispatch(Object.assign({},p.CommonActions.reset(t),{target:n})))}),$=(0,v.default)(()=>Q.getState.root?.()),ee=(0,v.default)(()=>{const t=$();if(null==t)return;return(0,N.findFocusedRoute)(t)}),te=(0,v.default)(()=>null!=z.focus[0]),ne=(0,S.useEventEmitter)(),{addOptionsGetter:re,getCurrentOptions:ae}=(0,P.useOptionsGetters)({}),oe=f.useMemo(()=>Object.assign({},Object.keys(p.CommonActions).reduce((t,n)=>(t[n]=(...t)=>W(p.CommonActions[n](...t)),t),{}),ne.create('root'),{dispatch:W,resetRoot:Y,isFocused:()=>!0,canGoBack:X,getParent:()=>{},getState:U,getRootState:$,getCurrentRoute:ee,getCurrentOptions:ae,isReady:te,setOptions:()=>{throw new Error('Cannot call setOptions outside a screen')}}),[X,W,ne,ae,ee,$,U,te,Y]);f.useImperativeHandle(t,()=>oe,[oe]);const ie=(0,v.default)((t,n)=>{ne.emit({type:'__unsafe_action__',data:{action:t,noop:n,stack:ce.current}})}),se=f.useRef(void 0),ue=(0,v.default)(t=>{se.current!==t&&(se.current=t,ne.emit({type:'options',data:{options:t}}))}),ce=f.useRef(void 0),de=f.useMemo(()=>({addListener:J,addKeyedListener:V,onDispatchAction:ie,onOptionsChange:ue,scheduleUpdate:G,flushUpdates:K,stackRef:ce}),[J,V,ie,ue,G,K]),le=f.useRef(!0),fe=f.useCallback(()=>le.current,[]),he=f.useMemo(()=>({state:T,getState:U,setState:B,getKey:H,setKey:q,getIsInitial:fe,addOptionsGetter:re}),[T,U,B,H,q,fe,re]),ve=f.useRef(i),pe=f.useRef(o);f.useEffect(()=>{le.current=!1,pe.current=o,ve.current=i});const ge=f.useRef(!1);f.useEffect(()=>{!ge.current&&te()&&(ge.current=!0,ve.current?.(),ne.emit({type:'ready'}))},[T,te,ne]),f.useEffect(()=>{const t=$();ne.emit({type:'state',data:{state:T}}),!F.current&&pe.current&&pe.current(t),F.current=!1},[$,ne,T]);const ye=(0,v.default)(t=>{});return(0,l.jsx)(b.NavigationIndependentTreeContext.Provider,{value:!1,children:(0,l.jsx)(_.NavigationContainerRefContext.Provider,{value:oe,children:(0,l.jsx)(O.NavigationBuilderContext.Provider,{value:de,children:(0,l.jsx)(C.NavigationStateContext.Provider,{value:he,children:(0,l.jsx)(R.UnhandledActionContext.Provider,{value:s??ye,children:(0,l.jsx)(y.DeprecatedNavigationInChildContext.Provider,{value:u,children:(0,l.jsx)(m.EnsureSingleNavigator,{children:(0,l.jsx)(I.ThemeProvider,{value:c,children:A})})})})})})})})};const l=r(d[1]),f=u(r(d[2])),h=r(d[2]),v=c(r(d[3])),p=r(d[4]),y=r(d[5]),m=r(d[6]),O=r(d[7]),_=r(d[8]),b=r(d[9]),C=r(d[10]),R=r(d[11]),j=(r(d[12]),r(d[13]),r(d[14])),N=r(d[15]),I=r(d[16]),x=r(d[17]),S=r(d[18]),k=r(d[19]),w=r(d[20]),P=r(d[21]),E=r(d[22]),L=o=>{if(void 0===o)return;const i=t(o,n);return Object.assign({},i,{stale:!0,routes:o.routes.map(t=>void 0===t.state?t:Object.assign({},t,{state:L(t.state)}))})}},122,[19,6,11,123,124,134,135,136,137,138,139,140,141,142,143,144,145,147,148,149,150,151,152]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,u,i){void 0===i&&(i=u);var o=Object.getOwnPropertyDescriptor(n,u);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[u]}}),Object.defineProperty(t,i,o)}:function(t,n,u,i){void 0===i&&(i=u),t[i]=n[u]}),u=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),i=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var u in t)Object.prototype.hasOwnProperty.call(t,u)&&(n[n.length]=u);return n},t(n)},function(i){if(i&&i.__esModule)return i;var o={};if(null!=i)for(var c=t(i),f=0;f{n.current=t},[t]),u};const o=i(r(d[0])),c='undefined'!=typeof document||'undefined'!=typeof navigator&&'ReactNative'===navigator.product?o.useInsertionEffect:o.useEffect},123,[11]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,o,u){void 0===u&&(u=o);var i=Object.getOwnPropertyDescriptor(n,o);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,u,i)}:function(t,n,o,u){void 0===u&&(u=o),t[u]=n[o]}),o=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),u=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[n.length]=o);return n},t(n)},function(u){if(u&&u.__esModule)return u;var i={};if(null!=u)for(var c=t(u),f=0;fs.key===o.source):t.index;return-1===s?null:Object.assign({},t,{routes:t.routes.map((t,n)=>n===s?Object.assign({},t,{params:'REPLACE_PARAMS'===o.type?o.payload.params:Object.assign({},t.params,o.payload.params)}):t)})}case'RESET':{const n=o.payload;return 0===n.routes.length||n.routes.some(s=>!t.routeNames.includes(s.name))?null:!1===n.stale?t.routeNames.length!==n.routeNames.length||n.routeNames.some(s=>!t.routeNames.includes(s))?null:Object.assign({},n,{routes:n.routes.map(t=>t.key?t:Object.assign({},t,{key:`${t.name}-${(0,s.nanoid)()}`}))}):n}default:return null}},shouldActionChangeFocus:s=>'NAVIGATE'===s.type||'NAVIGATE_DEPRECATED'===s.type}},126,[127]); +__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"nanoid",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"customAlphabet",{enumerable:!0,get:function(){return t}});let t=(t,n=21)=>(o=n)=>{let u='',l=0|o;for(;l-- >0;)u+=t[Math.random()*t.length|0];return u},n=(t=21)=>{let n='',o=0|t;for(;o-- >0;)n+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return n}},127,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=r(d[0]).default;const o=["defaultStatus"];Object.defineProperty(e,"__esModule",{value:!0}),e.DrawerActions=void 0,e.DrawerRouter=function(u){let{defaultStatus:c="closed"}=u,l=t(u,o);const y=(0,n.TabRouter)(l),A=t=>Boolean(t.history?.some(t=>'drawer'===t.type)),R=t=>A(t)?t:Object.assign({},t,{history:[...t.history,{type:'drawer',status:'open'===c?'closed':'open'}]}),E=t=>A(t)?Object.assign({},t,{history:t.history.filter(t=>'drawer'!==t.type)}):t,p=t=>'open'===c?E(t):R(t),w=t=>'open'===c?R(t):E(t);return Object.assign({},y,{type:'drawer',getInitialState({routeNames:t,routeParamList:o,routeGetIdList:n}){const u=y.getInitialState({routeNames:t,routeParamList:o,routeGetIdList:n});return Object.assign({},u,{default:c,stale:!1,type:'drawer',key:`drawer-${(0,s.nanoid)()}`})},getRehydratedState(t,{routeNames:o,routeParamList:n,routeGetIdList:u}){if(!1===t.stale)return t;let l=y.getRehydratedState(t,{routeNames:o,routeParamList:n,routeGetIdList:u});return A(t)&&(l=E(l),l=R(l)),Object.assign({},l,{default:c,type:'drawer',key:`drawer-${(0,s.nanoid)()}`})},getStateForRouteFocus(t,o){const s=y.getStateForRouteFocus(t,o);return w(s)},getStateForAction(t,o,s){switch(o.type){case'OPEN_DRAWER':return p(t);case'CLOSE_DRAWER':return w(t);case'TOGGLE_DRAWER':return A(t)?E(t):R(t);case'JUMP_TO':case'NAVIGATE':case'NAVIGATE_DEPRECATED':{const n=y.getStateForAction(t,o,s);return null!=n&&n.index!==t.index?w(n):n}case'GO_BACK':return A(t)?E(t):y.getStateForAction(t,o,s);default:return y.getStateForAction(t,o,s)}},actionCreators:e.DrawerActions})};const s=r(d[1]),n=r(d[2]);e.DrawerActions=Object.assign({},n.TabActions,{openDrawer:()=>({type:'OPEN_DRAWER'}),closeDrawer:()=>({type:'CLOSE_DRAWER'}),toggleDrawer:()=>({type:'TOGGLE_DRAWER'})})},128,[19,127,129]); +__d(function(g,_r,_i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TabActions=void 0,e.TabRouter=function(t){const r=y(t);return Object.assign({},r,{getStateForAction:(t,s,o)=>{if(s.target&&s.target!==t.key)return null;if('REPLACE'===s.type){const n=s;let i=r.getStateForAction(t,Object.assign({},n,{type:'JUMP_TO'}),o);if(!i||void 0===i.index||!Array.isArray(i.history))return null;if(0!==i.index){const t=i.index-1;i=Object.assign({},i,{key:`${i.key}-replace`,history:[...i.history.slice(0,t),...i.history.splice(i.index)]})}return i}return r.getStateForAction(t,s,o)}})};const t=_r(d[0]),r=_r(d[1]),s=_r(d[2]),o='route';e.TabActions={jumpTo:(t,r)=>({type:'JUMP_TO',payload:{name:t,params:r}})};const n=(t,r,s,n)=>{const i=[{type:o,key:t[r].key}];let y;switch(s){case'order':for(let s=r;s>0;s--)i.unshift({type:o,key:t[s-1].key});break;case'firstRoute':0!==r&&i.unshift({type:o,key:t[0].key});break;case'initialRoute':y=t.findIndex(t=>t.name===n),y=-1===y?0:y,r!==y&&i.unshift({type:o,key:t[y].key})}return i},i=(t,r,s,i)=>{let y=t.history;if('history'===s||'fullHistory'===s){const n=t.routes[r];if('history'===s)y=y.filter(t=>'route'===t.type&&t.key!==n.key);else if('fullHistory'===s){const t=y.findLastIndex(t=>'route'===t.type);n.key===y[t]?.key&&(y=[...y.slice(0,t),...y.slice(t+1)])}y=y.concat({type:o,key:n.key,params:'fullHistory'===s?n.params:void 0})}else y=n(t.routes,r,s,i);return Object.assign({},t,{index:r,history:y})};function y({initialRouteName:o,backBehavior:y="firstRoute"}){return Object.assign({},r.BaseRouter,{type:'tab',getInitialState({routeNames:r,routeParamList:s}){const i=void 0!==o&&r.includes(o)?r.indexOf(o):0,u=r.map(r=>({name:r,key:`${r}-${(0,t.nanoid)()}`,params:s[r]})),c=n(u,i,y,o);return{stale:!1,type:'tab',key:`tab-${(0,t.nanoid)()}`,index:i,routeNames:r,history:c,routes:u,preloadedRouteKeys:[]}},getRehydratedState(r,{routeNames:s,routeParamList:n}){const u=r;if(!1===u.stale)return u;const c=s.map(r=>{const s=u.routes.find(t=>t.name===r);return Object.assign({},s,{name:r,key:s&&s.name===r&&s.key?s.key:`${r}-${(0,t.nanoid)()}`,params:void 0!==n[r]?Object.assign({},n[r],s?s.params:void 0):s?s.params:void 0})}),l=Math.min(Math.max(s.indexOf(u.routes[u?.index??0]?.name),0),c.length-1),p=c.map(t=>t.key),f=u.history?.filter(t=>p.includes(t.key))??[];return i({stale:!1,type:'tab',key:`tab-${(0,t.nanoid)()}`,index:l,routeNames:s,history:f,routes:c,preloadedRouteKeys:u.preloadedRouteKeys?.filter(t=>p.includes(t))??[]},l,y,o)},getStateForRouteNamesChange(r,{routeNames:s,routeParamList:i,routeKeyChanges:u}){const c=s.map(s=>r.routes.find(t=>t.name===s&&!u.includes(t.name))||{name:s,key:`${s}-${(0,t.nanoid)()}`,params:i[s]}),l=r.preloadedRouteKeys.filter(t=>c.some(r=>r.key===t)),p=Math.max(0,s.indexOf(r.routes[r.index].name));let f=r.history.filter(t=>'route'!==t.type||c.find(r=>r.key===t.key));return f.length||(f=n(c,p,y,o)),Object.assign({},r,{history:f,routeNames:s,routes:c,preloadedRouteKeys:l,index:p})},getStateForRouteFocus(t,r){const s=t.routes.findIndex(t=>t.key===r);return-1===s||s===t.index?t:i(t,s,y,o)},getStateForAction(n,u,{routeParamList:c,routeGetIdList:l}){switch(u.type){case'JUMP_TO':case'NAVIGATE':case'NAVIGATE_DEPRECATED':{const r=n.routes.findIndex(t=>t.name===u.payload.name);if(-1===r)return null;const p=i(Object.assign({},n,{routes:n.routes.map(r=>{if(r.name!==u.payload.name)return r;const o=l[r.name],n=o?.({params:r.params}),i=o?.({params:u.payload.params}),y=n===i?r.key:`${r.name}-${(0,t.nanoid)()}`;let p;p='NAVIGATE'!==u.type&&'NAVIGATE_DEPRECATED'!==u.type||!u.payload.merge||n!==i?(0,s.createParamsFromAction)({action:u,routeParamList:c}):void 0!==u.payload.params||void 0!==c[r.name]?Object.assign({},c[r.name],r.params,u.payload.params):r.params;const f='NAVIGATE'===u.type&&null!=u.payload.path?u.payload.path:r.path;return p!==r.params||f!==r.path?Object.assign({},r,{key:y,path:f,params:p}):r})}),r,y,o);return Object.assign({},p,{preloadedRouteKeys:p.preloadedRouteKeys.filter(t=>t!==n.routes[p.index].key)})}case'SET_PARAMS':case'REPLACE_PARAMS':{const t=r.BaseRouter.getStateForAction(n,u);if(null!==t){const r=t.index;if(null!=r){const s=t.routes[r],o=n.history.findLastIndex(t=>t.key===s.key);let i=n.history;return-1!==o&&(i=[...n.history],i[o]=Object.assign({},i[o],{params:s.params})),Object.assign({},t,{history:i})}}return t}case'GO_BACK':{if(1===n.history.length)return null;const t=n.history[n.history.length-2],r=t?.key,s=n.routes.findLastIndex(t=>t.key===r);if(-1===s)return null;let o=n.routes;return'fullHistory'===y&&o[s].params!==t.params&&(o=[...n.routes],o[s]=Object.assign({},o[s],{params:t.params})),Object.assign({},n,{routes:o,preloadedRouteKeys:n.preloadedRouteKeys.filter(t=>t!==n.routes[s].key),history:n.history.slice(0,-1),index:s})}case'PRELOAD':{const r=n.routes.findIndex(t=>t.name===u.payload.name);if(-1===r)return null;const o=n.routes[r],i=l[o.name],y=i?.({params:o.params}),p=i?.({params:u.payload.params}),f=y===p?o.key:`${o.name}-${(0,t.nanoid)()}`,k=(0,s.createParamsFromAction)({action:u,routeParamList:c}),h=k!==o.params?Object.assign({},o,{key:f,params:k}):o;return Object.assign({},n,{preloadedRouteKeys:n.preloadedRouteKeys.filter(t=>t!==o.key).concat(h.key),routes:n.routes.map((t,s)=>s===r?h:t),history:f===o.key?n.history:n.history.filter(t=>t.key!==o.key)})}default:return r.BaseRouter.getStateForAction(n,u)}},actionCreators:e.TabActions})}},129,[127,126,130]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createParamsFromAction=function({action:t,routeParamList:n}){const{name:o,params:c}=t.payload;return void 0!==n[o]?Object.assign({},n[o],c):c}},130,[]); +__d(function(g,_r,_i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StackActions=void 0,e.StackRouter=function(n){const i=Object.assign({},o.BaseRouter,{type:'stack',getInitialState({routeNames:o,routeParamList:s}){const r=void 0!==n.initialRouteName&&o.includes(n.initialRouteName)?n.initialRouteName:o[0];return{stale:!1,type:'stack',key:`stack-${(0,t.nanoid)()}`,index:0,routeNames:o,preloadedRoutes:[],routes:[{key:`${r}-${(0,t.nanoid)()}`,name:r,params:s[r]}]}},getRehydratedState(o,{routeNames:s,routeParamList:r}){const i=o;if(!1===i.stale)return i;const p=i.routes.filter(t=>s.includes(t.name)).map(o=>Object.assign({},o,{key:o.key||`${o.name}-${(0,t.nanoid)()}`,params:void 0!==r[o.name]?Object.assign({},r[o.name],o.params):o.params})),u=i.preloadedRoutes?.filter(t=>s.includes(t.name)).map(o=>Object.assign({},o,{key:o.key||`${o.name}-${(0,t.nanoid)()}`,params:void 0!==r[o.name]?Object.assign({},r[o.name],o.params):o.params}))??[];if(0===p.length){const o=void 0!==n.initialRouteName?n.initialRouteName:s[0];p.push({key:`${o}-${(0,t.nanoid)()}`,name:o,params:r[o]})}return{stale:!1,type:'stack',key:`stack-${(0,t.nanoid)()}`,index:p.length-1,routeNames:s,routes:p,preloadedRoutes:u}},getStateForRouteNamesChange(o,{routeNames:s,routeParamList:r,routeKeyChanges:i}){const p=o.routes.filter(t=>s.includes(t.name)&&!i.includes(t.name)),u=o.preloadedRoutes.filter(t=>s.includes(t.name)&&!i.includes(t.name));if(0===p.length){const o=void 0!==n.initialRouteName&&s.includes(n.initialRouteName)?n.initialRouteName:s[0];p.push({key:`${o}-${(0,t.nanoid)()}`,name:o,params:r[o]})}return Object.assign({},o,{routeNames:s,routes:p,preloadedRoutes:u,index:Math.min(o.index,p.length-1)})},getStateForRouteFocus(t,o){const s=t.routes.findIndex(t=>t.key===o);return-1===s||s===t.index?t:Object.assign({},t,{index:s,routes:t.routes.slice(0,s+1)})},getStateForAction(n,p,u){const{routeParamList:l}=u;switch(p.type){case'REPLACE':{const t=p.target===n.key&&p.source?n.routes.findIndex(t=>t.key===p.source):n.index;if(-1===t)return null;if(!n.routeNames.includes(p.payload.name))return null;const o=u.routeGetIdList[p.payload.name],s=o?.({params:p.payload.params});let i=n.preloadedRoutes.find(t=>t.name===p.payload.name&&s===o?.({params:t.params}));return i||(i=(0,r.createRouteFromAction)({action:p,routeParamList:l})),Object.assign({},n,{routes:n.routes.map((o,s)=>s===t?i:o),preloadedRoutes:n.preloadedRoutes.filter(t=>t.key!==i.key)})}case'PUSH':case'NAVIGATE':{if(!n.routeNames.includes(p.payload.name))return null;const o=u.routeGetIdList[p.payload.name],r=o?.({params:p.payload.params});let i,c,y;if(void 0!==r)i=n.routes.findLast(t=>t.name===p.payload.name&&r===o?.({params:t.params}));else if('NAVIGATE'===p.type){const t=n.routes[n.index];p.payload.name===t.name?i=t:p.payload.pop&&(i=n.routes.findLast(t=>t.name===p.payload.name))}if(i||(i=n.preloadedRoutes.find(t=>t.name===p.payload.name&&r===o?.({params:t.params}))),c='NAVIGATE'===p.type&&p.payload.merge&&i?void 0!==p.payload.params||void 0!==l[p.payload.name]?Object.assign({},l[p.payload.name],i.params,p.payload.params):i.params:(0,s.createParamsFromAction)({action:p,routeParamList:l}),i)if('NAVIGATE'===p.type&&p.payload.pop){y=[];for(const t of n.routes){if(t.key===i.key){y.push(Object.assign({},i,{path:void 0!==p.payload.path?p.payload.path:i.path,params:c}));break}y.push(t)}}else y=n.routes.filter(t=>t.key!==i.key),y.push(Object.assign({},i,{path:'NAVIGATE'===p.type&&void 0!==p.payload.path?p.payload.path:i.path,params:c}));else y=[...n.routes,{key:`${p.payload.name}-${(0,t.nanoid)()}`,name:p.payload.name,path:'NAVIGATE'===p.type?p.payload.path:void 0,params:c}];return Object.assign({},n,{index:y.length-1,preloadedRoutes:n.preloadedRoutes.filter(t=>y[y.length-1].key!==t.key),routes:y})}case'NAVIGATE_DEPRECATED':{if(!n.routeNames.includes(p.payload.name))return null;if(n.preloadedRoutes.find(t=>t.name===p.payload.name&&i===o?.({params:t.params})))return null;let t=-1;const o=u.routeGetIdList[p.payload.name],i=o?.({params:p.payload.params});if(t=void 0!==i?n.routes.findIndex(t=>t.name===p.payload.name&&i===o?.({params:t.params})):n.routes[n.index].name===p.payload.name?n.index:n.routes.findLastIndex(t=>t.name===p.payload.name),-1===t){const t=[...n.routes,(0,r.createRouteFromAction)({action:p,routeParamList:l})];return Object.assign({},n,{routes:t,index:t.length-1})}const c=n.routes[t];let y;return y=p.payload.merge?void 0!==p.payload.params||void 0!==l[c.name]?Object.assign({},l[c.name],c.params,p.payload.params):c.params:(0,s.createParamsFromAction)({action:p,routeParamList:l}),Object.assign({},n,{index:t,routes:[...n.routes.slice(0,t),y!==c.params?Object.assign({},c,{params:y}):n.routes[t]]})}case'POP':{const t=p.target===n.key&&p.source?n.routes.findIndex(t=>t.key===p.source):n.index;if(t>0){const o=Math.max(t-p.payload.count+1,1),s=n.routes.slice(0,o).concat(n.routes.slice(t+1));return Object.assign({},n,{index:s.length-1,routes:s})}return null}case'POP_TO_TOP':return i.getStateForAction(n,{type:'POP',payload:{count:n.routes.length-1}},u);case'POP_TO':{const t=p.target===n.key&&p.source?n.routes.findLastIndex(t=>t.key===p.source):n.index;if(-1===t)return null;if(!n.routeNames.includes(p.payload.name))return null;let o=-1;const i=u.routeGetIdList[p.payload.name],c=i?.({params:p.payload.params});if(void 0!==c)o=n.routes.findIndex(t=>t.name===p.payload.name&&c===i?.({params:t.params}));else if(n.routes[t].name===p.payload.name)o=t;else for(let s=t;s>=0;s--)if(n.routes[s].name===p.payload.name){o=s;break}if(-1===o){let o=n.preloadedRoutes.find(t=>t.name===p.payload.name&&c===i?.({params:t.params}));o||(o=(0,r.createRouteFromAction)({action:p,routeParamList:l}));const s=n.routes.slice(0,t).concat(o);return Object.assign({},n,{index:s.length-1,routes:s,preloadedRoutes:n.preloadedRoutes.filter(t=>t.key!==o.key)})}const y=n.routes[o];let f;return f=p.payload.merge?void 0!==p.payload.params||void 0!==l[y.name]?Object.assign({},l[y.name],y.params,p.payload.params):y.params:(0,s.createParamsFromAction)({action:p,routeParamList:l}),Object.assign({},n,{index:o,routes:[...n.routes.slice(0,o),f!==y.params?Object.assign({},y,{params:f}):n.routes[o]]})}case'GO_BACK':return n.index>0?i.getStateForAction(n,{type:'POP',payload:{count:1},target:p.target,source:p.source},u):null;case'PRELOAD':{const t=u.routeGetIdList[p.payload.name],o=t?.({params:p.payload.params});let i;return void 0!==o&&(i=n.routes.find(s=>s.name===p.payload.name&&o===t?.({params:s.params}))),i?Object.assign({},n,{routes:n.routes.map(t=>t.key!==i?.key?t:Object.assign({},t,{params:(0,s.createParamsFromAction)({action:p,routeParamList:l})}))}):Object.assign({},n,{preloadedRoutes:n.preloadedRoutes.filter(s=>s.name!==p.payload.name||o!==t?.({params:s.params})).concat((0,r.createRouteFromAction)({action:p,routeParamList:l}))})}default:return o.BaseRouter.getStateForAction(n,p)}},actionCreators:e.StackActions});return i};const t=_r(d[0]),o=_r(d[1]),s=_r(d[2]),r=_r(d[3]);e.StackActions={replace:(t,o)=>({type:'REPLACE',payload:{name:t,params:o}}),push:(t,o)=>({type:'PUSH',payload:{name:t,params:o}}),pop:(t=1)=>({type:'POP',payload:{count:t}}),popToTop:()=>({type:'POP_TO_TOP'}),popTo:(t,o,s)=>('boolean'==typeof s&&console.warn("Passing a boolean as the third argument to 'popTo' is deprecated. Pass '{ merge: true }' instead."),{type:'POP_TO',payload:{name:t,params:o,merge:'boolean'==typeof s?s:s?.merge}})}},131,[127,126,130,132]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createRouteFromAction=function({action:n,routeParamList:c}){const{name:s}=n.payload;return{key:`${s}-${(0,t.nanoid)()}`,name:s,params:(0,o.createParamsFromAction)({action:n,routeParamList:c})}};const t=r(d[0]),o=r(d[1])},132,[127,130]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},133,[]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,i,o){void 0===o&&(o=i);var u=Object.getOwnPropertyDescriptor(n,i);u&&!("get"in u?!n.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return n[i]}}),Object.defineProperty(t,o,u)}:function(t,n,i,o){void 0===o&&(o=i),t[o]=n[i]}),i=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),o=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[n.length]=i);return n},t(n)},function(o){if(o&&o.__esModule)return o;var u={};if(null!=o)for(var c=t(o),l=0;l({register(t){const i=n.current;if(void 0!==i&&t!==i)throw new Error(s);n.current=t},unregister(t){t===n.current&&(n.current=void 0)}}),[]);return(0,u.jsx)(e.SingleNavigatorContext.Provider,{value:i,children:t})};const u=r(d[0]),c=o(r(d[1])),s="Another navigator is already registered for this container. You likely have multiple navigators under a single \"NavigationContainer\" or \"Screen\". Make sure each navigator is under a separate \"Screen\" container. See https://reactnavigation.org/docs/nesting-navigators for a guide on nesting.";e.SingleNavigatorContext=c.createContext(void 0)},135,[6,11]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,o,i){void 0===i&&(i=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&!("get"in u?!n.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,i,u)}:function(t,n,o,i){void 0===i&&(i=o),t[i]=n[o]}),o=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),i=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[n.length]=o);return n},t(n)},function(i){if(i&&i.__esModule)return i;var u={};if(null!=i)for(var c=t(i),l=0;l{},onOptionsChange:()=>{},scheduleUpdate:()=>{throw new Error("Couldn't find a context for scheduling updates.")},flushUpdates:()=>{throw new Error("Couldn't find a context for flushing updates.")}})},136,[11]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,i,o){void 0===o&&(o=i);var u=Object.getOwnPropertyDescriptor(n,i);u&&!("get"in u?!n.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return n[i]}}),Object.defineProperty(t,o,u)}:function(t,n,i,o){void 0===o&&(o=i),t[o]=n[i]}),i=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),o=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[n.length]=i);return n},t(n)},function(o){if(o&&o.__esModule)return o;var u={};if(null!=o)for(var c=t(o),f=0;f{c.routes.forEach(c=>{const o=t?`${t} > ${c.name}`:c.name;c.state?.routeNames?.forEach(t=>{t===c.name&&n.push([o,`${o} > ${c.name}`])}),c.state&&s(o,c.state)})};return s('',t),n}},141,[]); +__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.checkSerializable=function(n){return t(n,new Set,[])};const t=(n,i,o)=>{if(null==n||'boolean'==typeof n||'number'==typeof n||'string'==typeof n)return{serializable:!0};if('[object Object]'!==Object.prototype.toString.call(n)&&!Array.isArray(n))return{serializable:!1,location:o,reason:'function'==typeof n?'Function':String(n)};if(i.has(n))return{serializable:!1,reason:'Circular reference',location:o};if(i.add(n),Array.isArray(n))for(let l=0;l{o[t]&&(o[t]=o[t].filter(t=>t!==n))};let c=null;return Object.assign({get current(){return c},set current(t){c=t,null!=t&&Object.entries(o).forEach(([n,o])=>{o.forEach(o=>{t.addListener(n,o)})})},isReady:()=>null!=c&&c.isReady()},n.reduce((t,n)=>(t[n]=(...t)=>{if(null!=c)return c[n](...t);switch(n){case'addListener':{const[n,c]=t;return o[n]=o[n]||[],o[n].push(c),()=>s(n,c)}case'removeListener':{const[n,o]=t;s(n,o);break}default:console.error(e.NOT_INITIALIZED_ERROR)}},t),{}))};const t=r(d[0]);e.NOT_INITIALIZED_ERROR="The 'navigation' object hasn't been initialized yet. This might happen if you don't have a navigator mounted, or if the navigator hasn't finished mounting. See https://reactnavigation.org/docs/navigating-without-navigation-prop#handling-initialization for more details."},143,[124]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.findFocusedRoute=function(t){let n=t;for(;null!=n?.routes[n.index??0].state;)n=n.routes[n.index??0].state;const u=n?.routes[n?.index??0];return u}},144,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ThemeProvider=function({value:o,children:u}){return(0,n.jsx)(t.ThemeContext.Provider,{value:o,children:u})};const n=r(d[0]),t=r(d[1])},145,[6,146]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,o,i){void 0===i&&(i=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&!("get"in u?!n.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,i,u)}:function(t,n,o,i){void 0===i&&(i=o),t[i]=n[o]}),o=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),i=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[n.length]=o);return n},t(n)},function(i){if(i&&i.__esModule)return i;var u={};if(null!=i)for(var c=t(i),f=0;f{t[n].push(i);let u=!1;return()=>{const o=t[n].indexOf(i);!u&&o>-1&&(u=!0,t[n].splice(o,1))}},[t]);return{listeners:t,addListener:n}};const o=u(r(d[0]))},147,[11]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,u,c){void 0===c&&(c=u);var i=Object.getOwnPropertyDescriptor(n,u);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[u]}}),Object.defineProperty(t,c,i)}:function(t,n,u,c){void 0===c&&(c=u),t[c]=n[u]}),u=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),c=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var u in t)Object.prototype.hasOwnProperty.call(t,u)&&(n[n.length]=u);return n},t(n)},function(c){if(c&&c.__esModule)return c;var i={};if(null!=c)for(var o=t(c),l=0;l{n.current=t});const u=i.useRef(Object.create(null)),c=i.useCallback(t=>{const n=(n,c)=>{const i=u.current[n]?u.current[n][t]:void 0;if(!i)return;const o=i.indexOf(c);o>-1&&i.splice(o,1)};return{addListener:(c,i)=>{u.current[c]=u.current[c]||{},u.current[c][t]=u.current[c][t]||[],u.current[c][t].push(i);let o=!1;return()=>{o||(o=!0,n(c,i))}},removeListener:n}},[]),o=i.useCallback(({type:t,data:c,target:i,canPreventDefault:o})=>{const l=u.current[t]||{},f=void 0!==i?l[i]?.slice():[].concat(...Object.keys(l).map(t=>l[t])).filter((t,n,u)=>u.lastIndexOf(t)===n),s={get type(){return t}};if(void 0!==i&&Object.defineProperty(s,'target',{enumerable:!0,get:()=>i}),void 0!==c&&Object.defineProperty(s,'data',{enumerable:!0,get:()=>c}),o){let t=!1;Object.defineProperties(s,{defaultPrevented:{enumerable:!0,get:()=>t},preventDefault:{enumerable:!0,value(){t=!0}}})}return n.current?.(s),f?.forEach(t=>t(s)),s},[]);return i.useMemo(()=>({create:c,emit:o}),[c,o])};const i=c(r(d[0]))},148,[11]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,i,u){void 0===u&&(u=i);var o=Object.getOwnPropertyDescriptor(n,i);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[i]}}),Object.defineProperty(t,u,o)}:function(t,n,i,u){void 0===u&&(u=i),t[u]=n[i]}),i=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),u=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[n.length]=i);return n},t(n)},function(u){if(u&&u.__esModule)return u;var o={};if(null!=u)for(var c=t(u),s=0;s(t[n][i]=u,()=>{t[n][i]=void 0}),[t]);return{keyedListeners:t,addKeyedListener:n}};const o=u(r(d[0]))},149,[11]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useNavigationIndependentTree=function(){return(0,n.use)(t.NavigationIndependentTreeContext)};const n=r(d[0]),t=r(d[1])},150,[11,138]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,u,i){void 0===i&&(i=u);var o=Object.getOwnPropertyDescriptor(n,u);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[u]}}),Object.defineProperty(t,i,o)}:function(t,n,u,i){void 0===i&&(i=u),t[i]=n[u]}),u=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),i=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var u in t)Object.prototype.hasOwnProperty.call(t,u)&&(n[n.length]=u);return n},t(n)},function(i){if(i&&i.__esModule)return i;var o={};if(null!=i)for(var c=t(i),s=0;s{const t=u?.isFocused()??!0,n=Object.keys(f.current).length;t&&!n&&b(i.current??{})},[u,b]);o.useEffect(()=>(i.current=n,p(),u?.addListener('focus',p)),[u,n,p]);const _=o.useCallback(()=>{for(const t in f.current)if(t in f.current){const n=f.current[t]?.();if(null!==n)return n}return null},[]),v=o.useCallback(()=>{if(!(u?.isFocused()??!0))return null;const t=_();return null!==t?t:i.current},[u,_]);o.useEffect(()=>O?.(t,v),[v,O,t]);return{addOptionsGetter:o.useCallback((t,n)=>(f.current[t]=n,p(),()=>{delete f.current[t],p()}),[p]),getCurrentOptions:v}};const o=i(r(d[0])),c=r(d[0]),s=r(d[1]),l=r(d[2])},151,[11,136,139]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,u,c){void 0===c&&(c=u);var s=Object.getOwnPropertyDescriptor(n,u);s&&!("get"in s?!n.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return n[u]}}),Object.defineProperty(t,c,s)}:function(t,n,u,c){void 0===c&&(c=u),t[c]=n[u]}),u=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),c=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var u in t)Object.prototype.hasOwnProperty.call(t,u)&&(n[n.length]=u);return n},t(n)},function(c){if(c&&c.__esModule)return c;var s={};if(null!=c)for(var o=t(c),i=0;i{c.current.push(t)}),i=(0,f.default)(()=>{const t=c.current;c.current=[],0!==t.length&&n.batchUpdates(()=>{for(const n of t)n()})});return{state:u,getState:n.getState,setState:n.setState,scheduleUpdate:s,flushUpdates:i}};const o=c(r(d[0])),i=r(d[1]),f=s(r(d[2])),l=t=>{const n=[];let u,c=!1;let s=!1,o=!1;return{getState:()=>(c||(c=!0,u=(0,i.deepFreeze)(t())),u),setState:t=>{u=(0,i.deepFreeze)(t),o=!0,s||n.forEach(t=>t())},batchUpdates:t=>{s=!0,t(),s=!1,o&&(o=!1,n.forEach(t=>t()))},subscribe:t=>(n.push(t),()=>{const u=n.indexOf(t);u>-1&&n.splice(u,1)})}}},152,[11,153,123]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.deepFreeze=e.isPlainObject=void 0;e.isPlainObject=t=>'object'==typeof t&&null!==t&&Object.getPrototypeOf(t)===Object.prototype;e.deepFreeze=t=>t},153,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createNavigatorFactory=function(t){return function(c){return null!=c?{Navigator:t,Screen:o.Screen,Group:n.Group,config:c}:{Navigator:t,Screen:o.Screen,Group:n.Group}}};const n=r(d[0]),o=r(d[1])},154,[155,156]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Group=function(u){return null}},155,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Screen=function(n){return null}},156,[]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,o,i){void 0===i&&(i=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&!("get"in u?!n.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,i,u)}:function(t,n,o,i){void 0===i&&(i=o),t[i]=n[o]}),o=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),i=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[n.length]=o);return n},t(n)},function(i){if(i&&i.__esModule)return i;var u={};if(null!=i)for(var c=t(i),f=0;f'object'==typeof t&&null!=t?{initialRouteName:t.initialRouteName,screens:null!=t.screens?n(t.screens):void 0}:{},n=n=>Object.entries(n).reduce((n,[s,o])=>(n[s]=t(o),n),{})},158,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getFocusedRouteNameFromRoute=function(n){const o=n[t.CHILD_STATE]??n.state,s=n.params;return o?o.routes[o.index??('string'==typeof o.type&&'stack'!==o.type?0:o.routes.length-1)].name:'string'==typeof s?.screen?s.screen:void 0};const t=r(d[0])},159,[160]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t=r(d[0]).default;const n=["state"];var u,o=this&&this.__createBinding||(Object.create?function(t,n,u,o){void 0===o&&(o=u);var c=Object.getOwnPropertyDescriptor(n,u);c&&!("get"in c?!n.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return n[u]}}),Object.defineProperty(t,o,c)}:function(t,n,u,o){void 0===o&&(o=u),t[o]=n[u]}),c=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),i=this&&this.__importStar||(u=function(t){return u=Object.getOwnPropertyNames||function(t){var n=[];for(var u in t)Object.prototype.hasOwnProperty.call(t,u)&&(n[n.length]=u);return n},u(t)},function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var i=u(t),l=0;l({current:new Map}),[]);return o.current=u.reduce((u,c)=>{const i=o.current.get(c.key),{state:l}=c,s=t(c,n);let _;return _=i&&(0,f.isRecordEqual)(i,s)?i:s,Object.defineProperty(_,e.CHILD_STATE,{enumerable:!1,configurable:!0,value:l}),u.set(c.key,_),u},new Map),Array.from(o.current.values())};const l=i(r(d[1])),f=r(d[2]);e.CHILD_STATE=Symbol('CHILD_STATE')},160,[19,11,161]); +__d(function(g,r,i,_a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isRecordEqual=function(t,n){if(t===n)return!0;const c=Object.keys(t),u=Object.keys(n);if(c.length!==u.length)return!1;return c.every(c=>Object.is(t[c],n[c]))}},161,[]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,s,i){void 0===i&&(i=s);var o=Object.getOwnPropertyDescriptor(n,s);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[s]}}),Object.defineProperty(t,i,o)}:function(t,n,s,i){void 0===i&&(i=s),t[i]=n[s]}),s=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),i=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(n[n.length]=s);return n},t(n)},function(i){if(i&&i.__esModule)return i;var o={};if(null!=i)for(var c=t(i),u=0;u{if(void 0===s){if(!t)return null;{const s=t.parts?.find(t=>t.param===n)?.optional;if(s)return null}}return[n,(t?.stringify?.[n]??String)(s)]}).filter(t=>null!=t));n?.length&&Object.assign(p,s),b===m&&(u=Object.assign({},s),n?.forEach(({param:t})=>{t&&u&&delete u[t]}))}if(h[m.name].screens&&void 0!==m.state){l='number'==typeof m.state.index?m.state.index:m.state.routes.length-1;const t=m.state.routes[l],n=h[m.name].screens;n&&t.name in n?(m=t,h=n):j=!1}else j=!1}if(void 0!==h[m.name]?i+=n?.map(({segment:t,param:n,optional:s})=>{if('*'===t)return m.name;if(n){const t=p[n];return void 0===t&&s?'':Array.from(String(t)).map(t=>/[^A-Za-z0-9\-._~!$&'()*+,;=:@]/g.test(t)?encodeURIComponent(t):t).join('')}return encodeURIComponent(t)}).join('/'):i+=encodeURIComponent(m.name),!u&&b.params&&(u=Object.fromEntries(Object.entries(b.params).map(([t,n])=>[t,String(n)]))),m.state)i+='/';else if(u){for(const t in u)'undefined'===u[t]&&delete u[t];const t=o.stringify(u,{sort:!1});t&&(i+=`?${t}`)}c=m.state}n?.path&&(i=`${n.path}/${i}`);i=i.replace(/\/+/g,'/'),i=i.length>1?i.replace(/\/$/,''):i,i.startsWith('/')||(i=`/${i}`);return i};const o=i(r(d[0])),c=r(d[1]),u=r(d[2]),f=t=>{const n=null!=t.index?t.routes[t.index]:t.routes[t.routes.length-1];return n.state?f(n.state):n},p=new WeakMap,l=t=>{if(!t?.screens)return{};const n=p.get(t?.screens);if(n)return n;const s=h(t.screens);return p.set(t.screens,s),s};const m=(t,n)=>{if('string'==typeof t){const s=(0,c.getPatternParts)(t);return n?{parts:[...n,...s]}:{parts:s}}if(t.exact&&void 0===t.path)throw new Error("A 'path' needs to be specified when specifying 'exact: true'. If you don't want this screen in the URL, specify it as empty string, e.g. `path: ''`.");const s=!0!==t.exact?[...n||[],...t.path?(0,c.getPatternParts)(t.path):[]]:t.path?(0,c.getPatternParts)(t.path):void 0,i=t.screens?h(t.screens,s):void 0;return{parts:s,stringify:t.stringify,screens:i}},h=(t,n)=>Object.fromEntries(Object.entries(t).map(([t,s])=>[t,m(s,n)]))},162,[163,168,169]); +__d(function(g,r,i,_a,m,e,d){'use strict';const t=r(d[0]),n=r(d[1]),a=r(d[2]),o=r(d[3]),s=Symbol('encodeFragmentIdentifier');function c(t){switch(t.arrayFormat){case'index':return n=>(a,o)=>{const s=a.length;return void 0===o||t.skipNull&&null===o||t.skipEmptyString&&''===o?a:null===o?[...a,[p(n,t),'[',s,']'].join('')]:[...a,[p(n,t),'[',p(s,t),']=',p(o,t)].join('')]};case'bracket':return n=>(a,o)=>void 0===o||t.skipNull&&null===o||t.skipEmptyString&&''===o?a:null===o?[...a,[p(n,t),'[]'].join('')]:[...a,[p(n,t),'[]=',p(o,t)].join('')];case'colon-list-separator':return n=>(a,o)=>void 0===o||t.skipNull&&null===o||t.skipEmptyString&&''===o?a:null===o?[...a,[p(n,t),':list='].join('')]:[...a,[p(n,t),':list=',p(o,t)].join('')];case'comma':case'separator':case'bracket-separator':{const n='bracket-separator'===t.arrayFormat?'[]=':'=';return a=>(o,s)=>void 0===s||t.skipNull&&null===s||t.skipEmptyString&&''===s?o:(s=null===s?'':s,0===o.length?[[p(a,t),n,p(s,t)].join('')]:[[o,p(s,t)].join(t.arrayFormatSeparator)])}default:return n=>(a,o)=>void 0===o||t.skipNull&&null===o||t.skipEmptyString&&''===o?a:null===o?[...a,p(n,t)]:[...a,[p(n,t),'=',p(o,t)].join('')]}}function l(t){let n;switch(t.arrayFormat){case'index':return(t,a,o)=>{n=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,''),n?(void 0===o[t]&&(o[t]={}),o[t][n[1]]=a):o[t]=a};case'bracket':return(t,a,o)=>{n=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,''),n?void 0!==o[t]?o[t]=[].concat(o[t],a):o[t]=[a]:o[t]=a};case'colon-list-separator':return(t,a,o)=>{n=/(:list)$/.exec(t),t=t.replace(/:list$/,''),n?void 0!==o[t]?o[t]=[].concat(o[t],a):o[t]=[a]:o[t]=a};case'comma':case'separator':return(n,a,o)=>{const s='string'==typeof a&&a.includes(t.arrayFormatSeparator),c='string'==typeof a&&!s&&f(a,t).includes(t.arrayFormatSeparator);a=c?f(a,t):a;const l=s||c?a.split(t.arrayFormatSeparator).map(n=>f(n,t)):null===a?a:f(a,t);o[n]=l};case'bracket-separator':return(n,a,o)=>{const s=/(\[\])$/.test(n);if(n=n.replace(/\[\]$/,''),!s)return void(o[n]=a?f(a,t):a);const c=null===a?[]:a.split(t.arrayFormatSeparator).map(n=>f(n,t));void 0!==o[n]?o[n]=[].concat(o[n],c):o[n]=c};default:return(t,n,a)=>{void 0!==a[t]?a[t]=[].concat(a[t],n):a[t]=n}}}function u(t){if('string'!=typeof t||1!==t.length)throw new TypeError('arrayFormatSeparator must be single character string')}function p(n,a){return a.encode?a.strict?t(n):encodeURIComponent(n):n}function f(t,a){return a.decode?n(t):t}function y(t){return Array.isArray(t)?t.sort():'object'==typeof t?y(Object.keys(t)).sort((t,n)=>Number(t)-Number(n)).map(n=>t[n]):t}function b(t){const n=t.indexOf('#');return-1!==n&&(t=t.slice(0,n)),t}function j(t){let n='';const a=t.indexOf('#');return-1!==a&&(n=t.slice(a)),n}function k(t){const n=(t=b(t)).indexOf('?');return-1===n?'':t.slice(n+1)}function F(t,n){return n.parseNumbers&&!Number.isNaN(Number(t))&&'string'==typeof t&&''!==t.trim()?t=Number(t):!n.parseBooleans||null===t||'true'!==t.toLowerCase()&&'false'!==t.toLowerCase()||(t='true'===t.toLowerCase()),t}function O(t,n){u((n=Object.assign({decode:!0,sort:!0,arrayFormat:'none',arrayFormatSeparator:',',parseNumbers:!1,parseBooleans:!1},n)).arrayFormatSeparator);const o=l(n),s=Object.create(null);if('string'!=typeof t)return s;if(!(t=t.trim().replace(/^[?#&]/,'')))return s;for(const c of t.split('&')){if(''===c)continue;let[t,l]=a(n.decode?c.replace(/\+/g,' '):c,'=');l=void 0===l?null:['comma','separator','bracket-separator'].includes(n.arrayFormat)?l:f(l,n),o(f(t,n),l,s)}for(const t of Object.keys(s)){const a=s[t];if('object'==typeof a&&null!==a)for(const t of Object.keys(a))a[t]=F(a[t],n);else s[t]=F(a,n)}return!1===n.sort?s:(!0===n.sort?Object.keys(s).sort():Object.keys(s).sort(n.sort)).reduce((t,n)=>{const a=s[n];return Boolean(a)&&'object'==typeof a&&!Array.isArray(a)?t[n]=y(a):t[n]=a,t},Object.create(null))}e.extract=k,e.parse=O,e.stringify=(t,n)=>{if(!t)return'';u((n=Object.assign({encode:!0,strict:!0,arrayFormat:'none',arrayFormatSeparator:','},n)).arrayFormatSeparator);const a=a=>n.skipNull&&null==t[a]||n.skipEmptyString&&''===t[a],o=c(n),s={};for(const n of Object.keys(t))a(n)||(s[n]=t[n]);const l=Object.keys(s);return!1!==n.sort&&l.sort(n.sort),l.map(a=>{const s=t[a];return void 0===s?'':null===s?p(a,n):Array.isArray(s)?0===s.length&&'bracket-separator'===n.arrayFormat?p(a,n)+'[]':s.reduce(o(a),[]).join('&'):p(a,n)+'='+p(s,n)}).filter(t=>t.length>0).join('&')},e.parseUrl=(t,n)=>{n=Object.assign({decode:!0},n);const[o,s]=a(t,'#');return Object.assign({url:o.split('?')[0]||'',query:O(k(t),n)},n&&n.parseFragmentIdentifier&&s?{fragmentIdentifier:f(s,n)}:{})},e.stringifyUrl=(t,n)=>{n=Object.assign({encode:!0,strict:!0,[s]:!0},n);const a=b(t.url).split('?')[0]||'',o=e.extract(t.url),c=e.parse(o,{sort:!1}),l=Object.assign(c,t.query);let u=e.stringify(l,n);u&&(u=`?${u}`);let f=j(t.url);return t.fragmentIdentifier&&(f=`#${n[s]?p(t.fragmentIdentifier,n):t.fragmentIdentifier}`),`${a}${u}${f}`},e.pick=(t,n,a)=>{a=Object.assign({parseFragmentIdentifier:!0,[s]:!1},a);const{url:c,query:l,fragmentIdentifier:u}=e.parseUrl(t,a);return e.stringifyUrl({url:c,query:o(l,n),fragmentIdentifier:u},a)},e.exclude=(t,n,a)=>{const o=Array.isArray(n)?t=>!n.includes(t):(t,a)=>!n(t,a);return e.pick(t,o,a)}},163,[164,165,166,167]); +__d(function(g,r,i,a,m,e,d){'use strict';m.exports=t=>encodeURIComponent(t).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)},164,[]); +__d(function(g,r,_i,a,m,e,d){'use strict';var t=new RegExp("(%[a-f0-9]{2})|([^%]+?)",'gi'),n=new RegExp("(%[a-f0-9]{2})+",'gi');function o(t,n){try{return[decodeURIComponent(t.join(''))]}catch(t){}if(1===t.length)return t;n=n||1;var c=t.slice(0,n),p=t.slice(n);return Array.prototype.concat.call([],o(c),o(p))}function c(n){try{return decodeURIComponent(n)}catch(i){for(var c=n.match(t)||[],p=1;p{if('string'!=typeof t||'string'!=typeof n)throw new TypeError('Expected the arguments to be of type `string`');if(''===n)return[t];const s=t.indexOf(n);return-1===s?[t]:[t.slice(0,s),t.slice(s+n.length)]}},166,[]); +__d(function(g,r,_i,a,m,e,d){'use strict';m.exports=function(t,n){for(var i={},s=Object.keys(t),c=Array.isArray(n),f=0;fn.param).filter(Boolean);for(const[t,i]of f.entries())if(f.indexOf(i)!==t)throw new Error(`Duplicate param name '${i}' found in path: ${n}`);return t}},168,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.validatePathConfig=function n(o,s=!0){const c=Object.assign({path:'string',initialRouteName:'string',screens:'object'},s?null:{alias:'array',exact:'boolean',stringify:'object',parse:'object'});if('object'!=typeof o||null===o)throw new Error(`Expected the configuration to be an object, but got ${JSON.stringify(o)}.`);const f=Object.fromEntries(Object.keys(o).map(t=>{if(!(t in c))return[t,'extraneous'];{const n=c[t],s=o[t];if(void 0!==s)if('array'===n){if(!Array.isArray(s))return[t,`expected 'Array', got '${typeof s}'`]}else if(typeof s!==n)return[t,`expected '${n}', got '${typeof s}'`]}return null}).filter(Boolean));if(Object.keys(f).length)throw new Error(`Found invalid properties in the configuration:\n${t(f)}\n\nYou can only specify the following properties:\n${t(c)}\n\nIf you want to specify configuration for screens, you need to specify them under a 'screens' property.\n\nSee https://reactnavigation.org/docs/configuring-links for more details on how to specify a linking configuration.`);if(s&&'path'in o&&'string'==typeof o.path&&o.path.includes(':'))throw new Error(`Found invalid path '${o.path}'. The 'path' in the top-level configuration cannot contain patterns for params.`);'screens'in o&&o.screens&&Object.entries(o.screens).forEach(([t,o])=>{'string'!=typeof o&&n(o,!1)})};const t=t=>Object.entries(t).map(([t,n])=>`- ${t} (${n})`).join('\n')},169,[]); +__d(function(g,r,_i,_a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,s,a){void 0===a&&(a=s);var i=Object.getOwnPropertyDescriptor(n,s);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[s]}}),Object.defineProperty(t,a,i)}:function(t,n,s,a){void 0===a&&(a=s),t[a]=n[s]}),s=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),a=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(n[n.length]=s);return n},t(n)},function(a){if(a&&a.__esModule)return a;var i={};if(null!=a)for(var o=t(a),u=0;u({name:decodeURIComponent(t)}));return n.length?S(t,n,s):void 0}if('/'===o){const n=a.find(t=>''===t.segments.join('/'));return n?S(t,n.routeNames.map(t=>({name:t})),s,a):void 0}let c,p;const{routes:l,remainingPath:f}=_(o,a);void 0!==l&&(p=S(t,l,s,a),o=f,c=p);if(null==p||null==c)return;return c};const o=i(r(d[0])),u=a(r(d[1])),c=r(d[2]),p=r(d[3]),l=r(d[4]),f=r(d[5]),m=r(d[6]);const h=new WeakMap;function b(t){if(!t)return y();const n=h.get(t);if(n)return n;const s=y(t);return h.set(t,s),s}function y(t){t&&(0,m.validatePathConfig)(t);const n=j(t),s=v(n,t?.screens);O(s);return{initialRoutes:n,configs:s,configWithRegexes:x(s)}}function j(t){const n=[];return t?.initialRouteName&&n.push({initialRouteName:t.initialRouteName,parentScreens:[]}),n}function v(t,n={}){return[].concat(...Object.keys(n).map(s=>N(s,n,t,[],[],[]))).sort((t,n)=>{if((0,f.isArrayEqual)(t.segments,n.segments))return n.routeNames.join('>').localeCompare(t.routeNames.join('>'));if((0,c.arrayStartsWith)(t.segments,n.segments))return-1;if((0,c.arrayStartsWith)(n.segments,t.segments))return 1;for(let s=0;s{const s=n.segments.join('/');if(t[s]){const a=t[s].routeNames,i=n.routeNames;if(!(a.length>i.length?i.every((t,n)=>a[n]===t):a.every((t,n)=>i[n]===t)))throw new Error(`Found conflicting screens with the same pattern. The pattern '${s}' resolves to both '${a.join(' > ')}' and '${i.join(' > ')}'. Patterns must be unique and cannot resolve to more than one screen.`)}return Object.assign(t,{[s]:n})},{})}function x(t){return t.map(t=>Object.assign({},t,{regex:t.regex?new RegExp(t.regex.source+'$'):void 0}))}const _=(t,n)=>{let s,a=t;for(const t of n){if(!t.regex)continue;const i=a.match(t.regex);if(i){s=t.routeNames.map(s=>{const a=n.find(n=>n.screen===s&&(0,c.arrayStartsWith)(t.segments,n.segments)),o=a&&i.groups?Object.fromEntries(Object.entries(i.groups).map(([t,n])=>{const i=Number(t.replace('param_','')),o=a.params.find(t=>t.index===i);return o?.screen===s&&o?.name?[o.name,n]:null}).filter(t=>null!=t).map(([t,n])=>{if(null==n)return[t,void 0];const s=decodeURIComponent(n);return[t,a.parse?.[t]?a.parse[t](s):s]})):void 0;return o&&Object.keys(o).length?{name:s,params:o}:{name:s}}),a=a.replace(i[0],'');break}}return{routes:s,remainingPath:a}},N=(t,n,s,a,i,o)=>{const u=[];o.push(t),i.push(t);const c=n[t];if('string'==typeof c)a.push({screen:t,path:c}),u.push(w(t,[...o],[...a]));else if('object'==typeof c){if('string'==typeof c.path){if(c.exact&&null==c.path)throw new Error(`Screen '${t}' doesn't specify a 'path'. A 'path' needs to be specified when specifying 'exact: true'. If you don't want this screen in the URL, specify it as empty string, e.g. \`path: ''\`.`);const n=[];if(c.alias)for(const s of c.alias)'string'==typeof s?n.push(w(t,[...o],[...a,{screen:t,path:s}],c.parse)):'object'==typeof s&&n.push(w(t,[...o],s.exact?[{screen:t,path:s.path}]:[...a,{screen:t,path:s.path}],s.parse));c.exact&&(a.length=0),a.push({screen:t,path:c.path}),u.push(w(t,[...o],[...a],c.parse)),u.push(...n)}if('string'!=typeof c&&'string'!=typeof c.path&&c.alias?.length)throw new Error(`Screen '${t}' doesn't specify a 'path'. A 'path' needs to be specified in order to use 'alias'.`);c.screens&&(c.initialRouteName&&s.push({initialRouteName:c.initialRouteName,parentScreens:i}),Object.keys(c.screens).forEach(t=>{const n=N(t,c.screens,s,[...a],[...i],o);u.push(...n)}))}return o.pop(),u},w=(t,n,s,a)=>{const i=[];for(const{screen:t,path:n}of s)i.push(...(0,l.getPatternParts)(n).map(n=>Object.assign({},n,{screen:t})));return{screen:t,regex:i.length?new RegExp(`^(${i.map((t,n)=>{if(t.param){return`(((?${t.regex||'[^/]+'})\\/)${t.optional?'?':''})`}return`${'*'===t.segment?'.*':(0,o.default)(t.segment)}\\/`}).join('')})$`):void 0,segments:i.map(t=>t.segment),params:i.map((t,n)=>t.param?{index:n,screen:t.screen,name:t.param}:null).filter(t=>null!=t),routeNames:n,parse:a}},R=(t,n)=>{for(const s of n)if(t===s.routeNames[s.routeNames.length-1])return s.parse},$=(t,n,s)=>{for(const a of s)if(n.length===a.parentScreens.length){let s=!0;for(let t=0;ts?t?{index:1,routes:[{name:t},n]}:{routes:[n]}:t?{index:1,routes:[{name:t},Object.assign({},n,{state:{routes:[]}})]}:{routes:[Object.assign({},n,{state:{routes:[]}})]},S=(t,n,s,a)=>{let i=n.shift();const o=[];let u=$(i.name,o,s);o.push(i.name);const c=P(u,i,0===n.length);if(n.length>0){let t=c;for(;i=n.shift();){u=$(i.name,o,s);const a=t.index||t.routes.length-1;t.routes[a].state=P(u,i,0===n.length),n.length>0&&(t=t.routes[a].state),o.push(i.name)}}i=(0,p.findFocusedRoute)(c),i.path=t.replace(/\/$/,'');const l=W(t,a?R(i.name,a):void 0);return l&&(i.params=Object.assign({},i.params,l)),c},W=(t,n)=>{const s=t.split('?')[1];if(!s)return;const a=u.parse(s);return n&&Object.keys(a).forEach(t=>{Object.hasOwnProperty.call(n,t)&&'string'==typeof a[t]&&(a[t]=n[t](a[t]))}),Object.keys(a).length?a:void 0}},170,[171,163,172,144,168,173,169]); +__d(function(g,r,i,a,m,e,d){'use strict';m.exports=t=>{if('string'!=typeof t)throw new TypeError('Expected a string');return t.replace(/[|\\{}()[\]^$+*?.]/g,'\\$&').replace(/-/g,'\\x2d')}},171,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.arrayStartsWith=function(t,n){if(n.length>t.length)return!1;return n.every((n,u)=>n===t[u])}},172,[]); +__d(function(g,r,i,_a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isArrayEqual=function(t,n){if(t===n)return!0;if(t.length!==n.length)return!1;return t.every((t,u)=>Object.is(t,n[u]))}},173,[]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,i,o){void 0===o&&(o=i);var u=Object.getOwnPropertyDescriptor(n,i);u&&!("get"in u?!n.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return n[i]}}),Object.defineProperty(t,o,u)}:function(t,n,i,o){void 0===o&&(o=i),t[o]=n[i]}),i=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),o=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[n.length]=i);return n},t(n)},function(o){if(o&&o.__esModule)return o;var u={};if(null!=o)for(var c=t(o),f=0;f{if(o)return()=>{};const u=n.addListener('focus',t),i=n.addListener('blur',t);return()=>{u(),i()}},[o,n]),f=i.useSyncExternalStore(u,n.isFocused,n.isFocused);return t??f};const i=u(r(d[0])),c=r(d[0]),s=r(d[1]);e.FocusedRouteKeyContext=i.createContext(void 0),e.IsFocusedContext=i.createContext(void 0)},178,[11,179]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useNavigation=function(){const u=(0,n.use)(o.NavigationContainerRefContext),s=(0,n.use)(t.NavigationContext);if(void 0===s&&void 0===u)throw new Error("Couldn't find a navigation object. Is your component inside NavigationContainer?");return s??u};const n=r(d[0]),o=r(d[1]),t=r(d[2])},179,[11,137,174]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,i,o){void 0===o&&(o=i);var u=Object.getOwnPropertyDescriptor(n,i);u&&!("get"in u?!n.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return n[i]}}),Object.defineProperty(t,o,u)}:function(t,n,i,o){void 0===o&&(o=i),t[o]=n[i]}),i=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),o=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[n.length]=i);return n},t(n)},function(o){if(o&&o.__esModule)return o;var u={};if(null!=o)for(var c=t(o),f=0;f(0,s.nanoid)()),[o,u]=c.useState(()=>new Map),i=(0,l.use)(f.NavigationHelpersContext),h=(0,l.use)(p.NavigationRouteContext),P=(0,l.use)(m.PreventRemoveContext),R=P?.setPreventRemove,b=(0,y.default)((t,n,o)=>{if(o&&(null==i||i?.getState().routes.every(t=>t.key!==n)))throw new Error(`Couldn't find a route with the key ${n}. Is your component inside NavigationContent?`);u(u=>{if(n===u.get(t)?.routeKey&&o===u.get(t)?.preventRemove)return u;const i=new Map(u);return o?i.set(t,{routeKey:n,preventRemove:o}):i.delete(t),i})}),O=[...o.values()].some(({preventRemove:t})=>t);c.useEffect(()=>{if(void 0!==h?.key&&void 0!==R)return R(n,h.key,O),()=>{R(n,h.key,!1)}},[n,O,h?.key,R]);const j=c.useMemo(()=>({setPreventRemove:b,preventedRoutes:_(o)}),[b,o]);return(0,v.jsx)(m.PreventRemoveContext.Provider,{value:j,children:t})};const v=r(d[0]),s=r(d[1]),c=u(r(d[2])),l=r(d[2]),f=r(d[3]),p=r(d[4]),m=r(d[5]),y=i(r(d[6])),_=t=>[...t.values()].reduce((t,{routeKey:n,preventRemove:o})=>(t[n]={preventRemove:t[n]?.preventRemove||o},t),{})},182,[6,127,11,175,177,181,123]); +__d(function(g,r,_i,_a,_m,e,d){"use strict";var n=r(d[0]).default;const t=["screen","if"],i=["screens","groups"],o=["if"];var s,c=this&&this.__createBinding||(Object.create?function(n,t,i,o){void 0===o&&(o=i);var s=Object.getOwnPropertyDescriptor(t,i);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(n,o,s)}:function(n,t,i,o){void 0===o&&(o=i),n[o]=t[i]}),a=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),l=this&&this.__importStar||(s=function(n){return s=Object.getOwnPropertyNames||function(n){var t=[];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[t.length]=i);return t},s(n)},function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var i=s(n),o=0;o{const l=(n,t)=>Object.fromEntries(Object.entries(n).sort(([n],[i])=>n===t?-1:i===t?1:0).map(([n,l])=>{const u={};let f;'linking'in l&&('string'==typeof l.linking?u.path=l.linking:Object.assign(u,l.linking),'string'==typeof u.path&&(u.path=u.path.replace(/^\//,'').replace(/\/$/,'')));const p=a||null!=u.path&&''!==u.path;return'config'in l?f=c(l,void 0,p):'screen'in l&&'config'in l.screen&&(l.screen.config.screens||l.screen.config.groups)&&(f=c(l.screen,void 0,p)),f&&(u.screens=f),!i||u.screens||'linking'in l&&null==l.linking||(null!=u.path?a||(n===t&&null!=u.path?s=!0:''===u.path&&(o=void 0)):(a||null!=o||(o=u),u.path=n.replace(/([A-Z]+)/g,'-$1').replace(/^-/,'').toLowerCase())),[n,u]}).filter(([,n])=>Object.keys(n).length>0)),u={};for(const i in n.config)'screens'===i&&n.config.screens&&Object.assign(u,l(n.config.screens,t?.initialRouteName??n.config.initialRouteName)),'groups'===i&&n.config.groups&&Object.entries(n.config.groups).forEach(([,i])=>{Object.assign(u,l(i.screens,t?.initialRouteName??n.config.initialRouteName))});if(0!==Object.keys(u).length)return u},a=c(n,t,!1);i&&o&&!s&&(o.path='');return a};const u=r(d[1]),f=l(r(d[2])),p=r(d[3]),h=r(d[4]),m=f.memo(({component:n})=>{const t=(0,h.useRoute)();return f.createElement(n,{route:t})});m.displayName='Memo(Screen)';const b=(i,o)=>Object.entries(o).map(([o,s])=>{let c,a,l={},h=!1;if('screen'in s){const{screen:i,if:u}=s,f=n(s,t);a=u,l=f,(0,p.isValidElementType)(i)?c=i:'config'in i&&(h=!0,c=j(i,`${o}Navigator`))}else(0,p.isValidElementType)(s)?c=s:'config'in s&&(h=!0,c=j(s,`${o}Navigator`));if(null==c)throw new Error(`Couldn't find a 'screen' property for the screen '${o}'. This can happen if you passed 'undefined'. You likely forgot to export your component from the file it's defined in, or mixed up default import and named import when importing.`);const b=h?f.createElement(c,{}):(0,u.jsx)(m,{component:c});return()=>null==a||a()?(0,u.jsx)(i,Object.assign({name:o},l,{children:()=>b}),o):null});function j(t,s){const{Navigator:c,Group:a,Screen:l,config:f}=t,{screens:p,groups:h}=f,m=n(f,i);if(null==p&&null==h)throw new Error("Couldn't find a 'screens' or 'groups' property. Make sure to define your screens under a 'screens' property in the configuration.");const j=[];for(const t in f)'screens'===t&&p&&j.push(...b(l,p)),'groups'===t&&h&&j.push(...Object.entries(h).map(([t,i])=>{let{if:s}=i,c=n(i,o);const f=b(l,c.screens);return()=>{const n=f.map(n=>n());return null==s||s()?(0,u.jsx)(a,Object.assign({navigationKey:t},c,{children:n}),t):null}}));const O=()=>{const n=j.map(n=>n());return(0,u.jsx)(c,Object.assign({},m,{children:n}))};return O.displayName=s,O}},183,[19,6,11,184,186]); +__d(function(g,r,i,a,m,e,d){'use strict';m.exports=r(d[0])},184,[185]); +__d(function(g,r,i,a,m,e,d){ +/** + * @license React + * react-is.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +"use strict";var t=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),u=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),b=Symbol.for("react.view_transition"),w=Symbol.for("react.client.reference");function v(w){if("object"==typeof w&&null!==w){var v=w.$$typeof;switch(v){case t:switch(w=w.type){case n:case f:case c:case y:case p:case b:return w;default:switch(w=w&&w.$$typeof){case u:case l:case $:case S:case s:return w;default:return v}}case o:return v}}}e.ContextConsumer=s,e.ContextProvider=u,e.Element=t,e.ForwardRef=l,e.Fragment=n,e.Lazy=$,e.Memo=S,e.Portal=o,e.Profiler=f,e.StrictMode=c,e.Suspense=y,e.SuspenseList=p,e.isContextConsumer=function(t){return v(t)===s},e.isContextProvider=function(t){return v(t)===u},e.isElement=function(o){return"object"==typeof o&&null!==o&&o.$$typeof===t},e.isForwardRef=function(t){return v(t)===l},e.isFragment=function(t){return v(t)===n},e.isLazy=function(t){return v(t)===$},e.isMemo=function(t){return v(t)===S},e.isPortal=function(t){return v(t)===o},e.isProfiler=function(t){return v(t)===f},e.isStrictMode=function(t){return v(t)===c},e.isSuspense=function(t){return v(t)===y},e.isSuspenseList=function(t){return v(t)===p},e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===f||t===c||t===y||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===$||t.$$typeof===S||t.$$typeof===u||t.$$typeof===s||t.$$typeof===l||t.$$typeof===w||void 0!==t.getModuleId)},e.typeOf=v},185,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useRoute=function(){const n=(0,o.use)(t.NavigationRouteContext);if(void 0===n)throw new Error("Couldn't find a route object. Is your component inside a screen in a navigator?");return n};const o=r(d[0]),t=r(d[1])},186,[11,177]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useTheme=function(){const o=(0,n.use)(t.ThemeContext);if(null==o)throw new Error("Couldn't find a theme. Is your component inside NavigationContainer or does it have a theme?");return o};const n=r(d[0]),t=r(d[1])},187,[11,146]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PrivateValueStore=void 0;e.PrivateValueStore=class{}},188,[]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,o,u){void 0===u&&(u=o);var c=Object.getOwnPropertyDescriptor(n,o);c&&!("get"in c?!n.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,u,c)}:function(t,n,o,u){void 0===u&&(u=o),t[u]=n[o]}),o=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),u=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[n.length]=o);return n},t(n)},function(u){if(u&&u.__esModule)return u;var c={};if(null!=u)for(var i=t(u),s=0;s{let o,u=!1;const c=()=>{const n=t();if(void 0===n||'function'==typeof n)return n};n.isFocused()&&(o=c(),u=!0);const i=n.addListener('focus',()=>{u||(void 0!==o&&o(),o=c(),u=!0)}),s=n.addListener('blur',()=>{void 0!==o&&o(),o=void 0,u=!1});return()=>{void 0!==o&&o(),i(),s()}},[t,n])};const c=u(r(d[0])),i=r(d[1])},189,[11,179]); +__d(function(g,_r,_i,a,_m,_e,d){"use strict";var e=_r(d[0]).default;const t=["children","layout","screenOptions","screenLayout","screenListeners","UNSTABLE_router"];var r,n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o=r(e),i=0;i{if(null!=Y.initialRouteName&&Z.every(e=>e.props.name!==Y.initialRouteName))throw new Error(`Couldn't find a screen named '${Y.initialRouteName}' to use as 'initialRouteName'.`);const e=r(Y);if(null!=X){const t=X(e);return Object.assign({},e,t)}return e}),te=Z.reduce((e,t)=>{if(t.props.name in e)throw new Error(`A navigator cannot contain multiple 'Screen' components with the same name (found duplicate screen named '${t.props.name}')`);return e[t.props.name]=t,e},{}),re=Z.map(e=>e.props.name),ae=re.reduce((e,t)=>(e[t]=te[t].keys.map(e=>e??'').join(':'),e),{}),ne=re.reduce((e,t)=>{const{initialParams:r}=te[t].props;return e[t]=r,e},{}),se=re.reduce((e,t)=>Object.assign(e,{[t]:te[t].props.getId}),{});if(!re.length)throw new Error("Couldn't find any screens for the navigator. Have you defined any screens as its children?");const oe=c.useCallback(e=>void 0===e.type||e.type===ee.type,[ee.type]),ie=c.useCallback(e=>void 0!==e&&!1===e.stale&&oe(e),[oe]),ue=c.useCallback(e=>e.routes.every(e=>!re.includes(e.name)),[re]),{state:pe,getState:ce,setState:le,setKey:de,getKey:me,getIsInitial:fe}=(0,l.use)(S.NavigationStateContext),ye=c.useRef(!1),ve=c.useRef(void 0),ge=(0,m.default)(e=>{ye.current?ve.current=e:le(e)}),[he,Le,Se,Ne]=c.useMemo(()=>{if(ye.current&&ve.current&&oe(ve.current)){return[void 0,ie(ve.current)?ve.current:ee.getRehydratedState(ve.current,{routeNames:re,routeParamList:ne,routeGetIdList:se}),!1,void 0]}const e=re.reduce((e,t)=>{const{initialParams:r}=te[t].props,n=null==o?.params?.state&&!1!==o?.params?.initial&&o?.params?.screen===t?o.params.params:void 0;return e[t]=void 0!==r||void 0!==n?Object.assign({},r,n):void 0,e},{});if(void 0!==pe&&oe(pe)||null!=o?.params?.state||'string'==typeof o?.params?.screen&&!1!==o?.params?.initial||i){const t=i?void 0:o?.params,r=(t?W(t):void 0)??pe,s=null==r?ee.getInitialState({routeNames:re,routeParamList:e,routeGetIdList:se}):ee.getRehydratedState(r,{routeNames:re,routeParamList:e,routeGetIdList:se});return null!=r&&'lastUnhandled'===n.UNSTABLE_routeNamesChangeBehavior&&ue(r)?[r,s,!0,t]:[void 0,s,!1,t]}return[void 0,ee.getInitialState({routeNames:re,routeParamList:e,routeGetIdList:se}),!0,void 0]},[pe,ee,oe]),be=c.useRef(ae);c.useEffect(()=>{be.current=ae});const Oe=be.current,[Ee,Ce]=c.useState(he);'lastUnhandled'===n.UNSTABLE_routeNamesChangeBehavior&&he&&Ee!==he&&Ce(he);let je=ie(pe)?pe:Le,Re=je,Pe=!1;Ee?.routes.every(e=>re.includes(e.name))&&je?.routes.every(e=>!re.includes(e.name))?(Pe=!0,Re=ee.getRehydratedState(Ee,{routeNames:re,routeParamList:ne,routeGetIdList:se})):(0,C.isArrayEqual)(je.routeNames,re)&&(0,j.isRecordEqual)(ae,Oe)||(Re=ee.getStateForRouteNamesChange(je,{routeNames:re,routeParamList:ne,routeGetIdList:se,routeKeyChanges:Object.keys(ae).filter(e=>e in Oe&&ae[e]!==Oe[e])}));let Ae=o?.params===Ne;if(o?.params&&!Ae){let e;if('object'!=typeof o.params.state||null==o.params.state||i){if('string'==typeof o.params.screen&&(!1===o.params.initial&&Se||!i))if(Ae=!0,'lastUnhandled'!==n.UNSTABLE_routeNamesChangeBehavior||re.includes(o.params.screen))e=f.CommonActions.navigate({name:o.params.screen,params:o.params.params,path:o.params.path,merge:o.params.merge,pop:o.params.pop});else{const e=W(o.params);null==e||(0,p.default)(e,Ee)||Ce(e)}}else Ae=!0,'lastUnhandled'===n.UNSTABLE_routeNamesChangeBehavior&&ue(o.params.state)?o.params.state!==Ee&&Ce(o.params.state):e=f.CommonActions.reset(o.params.state);const t=e?ee.getStateForAction(Re,e,{routeNames:re,routeParamList:ne,routeGetIdList:se}):null;Re=null!==t?ee.getRehydratedState(t,{routeNames:re,routeParamList:ne,routeGetIdList:se}):Re}c.useEffect(()=>{Ae&&'object'==typeof o?.params&&null!=o.params&&Object.defineProperty(o.params,H,{value:o.params,enumerable:!1})},[Ae,o?.params]);const we=je!==Re;(0,J.useScheduleUpdate)(()=>{we&&(ge(Re),Pe&&Ce(void 0))}),je=Re,c.useEffect(()=>{ve.current=je});const Ie=c.useRef(null);c.useEffect(()=>(ye.current=!1,de(s),fe()||Ie.current===je||(ge(je),Ie.current=je),()=>{void 0!==ce()&&me()===s&&(le(void 0),ye.current=!0)}),[]);const Ge=c.useRef(je);Ge.current=je,(0,_.useClientLayoutEffect)(()=>{Ge.current=null});const Ke=(0,m.default)(()=>{const e=ce();return(0,E.deepFreeze)(ie(e)?e:Le)}),ke=(0,G.useEventEmitter)(e=>{const t=[];let r;if(e.target?(r=je.routes.find(t=>t.key===e.target),r?.name&&t.push(r.name)):(r=je.routes[je.index],t.push(...Object.keys(te).filter(e=>r?.name===e))),null==r)return;const n=He[r.key].navigation;[].concat(...[z,...t.map(e=>{const{listeners:t}=te[e].props;return t})].map(t=>{const s='function'==typeof t?t({route:r,navigation:n}):t;return s?Object.keys(s).filter(t=>t===e.type).map(e=>s?.[e]):void 0})).filter((e,t,r)=>e&&r.lastIndexOf(e)===t).forEach(t=>t?.(e))});(0,K.useFocusEvents)({state:je,emitter:ke}),c.useEffect(()=>{ke.emit({type:'state',data:{state:je}})},[ke,je]);const{listeners:Ue,addListener:xe}=(0,P.useChildListeners)(),{keyedListeners:Be,addKeyedListener:$e}=(0,x.useKeyedChildListeners)(),Fe=(0,M.useOnAction)({router:ee,getState:Ke,setState:ge,key:o?.key,actionListeners:Ue.action,beforeRemoveListeners:Be.beforeRemove,routerConfigOptions:{routeNames:re,routeParamList:ne,routeGetIdList:se},emitter:ke}),Me=(0,D.useOnRouteFocus)({router:ee,key:o?.key,getState:Ke,setState:ge}),Te=(0,l.use)(O.UnhandledActionContext),De=(0,m.default)(e=>{if('lastUnhandled'===n.UNSTABLE_routeNamesChangeBehavior&&'NAVIGATE'===e.type&&null!=e.payload&&'name'in e.payload&&'string'==typeof e.payload.name&&!re.includes(e.payload.name)){const t={routes:[{name:e.payload.name,params:'params'in e.payload&&'object'==typeof e.payload.params&&null!==e.payload.params?e.payload.params:void 0,path:'path'in e.payload&&'string'==typeof e.payload.path?e.payload.path:void 0}]};Ce(t)}Te?.(e)}),Ve=(0,$.useNavigationHelpers)({id:n.id,onAction:Fe,onUnhandledAction:De,getState:Ke,emitter:ke,router:ee,stateRef:Ge});(0,k.useFocusedListenersChildrenAdapter)({navigation:Ve,focusedListeners:Ue.focus}),(0,T.useOnGetState)({getState:Ke,getStateListeners:Be.getState});const{describe:Je,descriptors:He}=(0,I.useDescriptors)({state:je,screens:te,navigation:Ve,screenOptions:R,screenLayout:q,onAction:Fe,getState:Ke,setState:ge,onRouteFocus:Me,addListener:xe,addKeyedListener:$e,router:ee,emitter:ke});(0,w.useCurrentRender)({state:je,navigation:Ve,descriptors:He});const qe=(0,A.useComponent)(e=>{const t=null!=b?b({state:je,descriptors:He,navigation:Ve,children:e}):e;return(0,u.jsx)(h.NavigationMetaContext.Provider,{value:void 0,children:(0,u.jsx)(v.NavigationHelpersContext.Provider,{value:Ve,children:(0,u.jsx)(F.NavigationStateListenerProvider,{state:je,children:(0,u.jsx)(U.FocusedRouteKeyContext.Provider,{value:je.routes[je.index].key,children:(0,u.jsx)(N.PreventRemoveProvider,{children:t})})})})})});return{state:je,navigation:Ve,describe:Je,descriptors:He,NavigationContent:qe}};const u=_r(d[1]),p=i(_r(d[2])),c=o(_r(d[3])),l=_r(d[3]),m=(_r(d[4]),i(_r(d[5]))),f=_r(d[6]),y=_r(d[7]),v=_r(d[8]),h=_r(d[9]),L=_r(d[10]),S=_r(d[11]),N=_r(d[12]),b=_r(d[13]),O=_r(d[14]),E=_r(d[15]),C=_r(d[16]),j=_r(d[17]),R=_r(d[18]),P=_r(d[19]),_=_r(d[20]),A=_r(d[21]),w=_r(d[22]),I=_r(d[23]),G=_r(d[24]),K=_r(d[25]),k=_r(d[26]),U=_r(d[27]),x=_r(d[28]),B=_r(d[29]),$=_r(d[30]),F=_r(d[31]),M=_r(d[32]),T=_r(d[33]),D=_r(d[34]),V=_r(d[35]),J=_r(d[36]);R.PrivateValueStore;const H=Symbol('CONSUMED_PARAMS'),q=e=>e.type===b.Screen,z=e=>e.type===c.Fragment||e.type===y.Group,Q=(e,t,r,n)=>c.Children.toArray(e).reduce((e,s)=>{if(c.isValidElement(s)){if(q(s)){if('object'!=typeof s.props||null===s.props)throw new Error("Got an invalid element for screen.");if('string'!=typeof s.props.name||''===s.props.name)throw new Error(`Got an invalid name (${JSON.stringify(s.props.name)}) for the screen. It must be a non-empty string.`);if(void 0!==s.props.navigationKey&&('string'!=typeof s.props.navigationKey||''===s.props.navigationKey))throw new Error(`Got an invalid 'navigationKey' prop (${JSON.stringify(s.props.navigationKey)}) for the screen '${s.props.name}'. It must be a non-empty string or 'undefined'.`);return e.push({keys:[t,s.props.navigationKey],options:r,layout:n,props:s.props}),e}if(z(s)){if(void 0!==(o=s.props.navigationKey)&&('string'!=typeof o||''===o))throw new Error(`Got an invalid 'navigationKey' prop (${JSON.stringify(s.props.navigationKey)}) for the group. It must be a non-empty string or 'undefined'.`);return e.push(...Q(s.props.children,s.props.navigationKey,s.type!==y.Group?r:null!=r?[...r,s.props.screenOptions]:[s.props.screenOptions],'function'==typeof s.props.screenLayout?s.props.screenLayout:n)),e}}var o;throw new Error(`A navigator can only contain 'Screen', 'Group' or 'React.Fragment' as its direct children (found ${c.isValidElement(s)?`'${'string'==typeof s.type?s.type:s.type?.name}'${null!=s.props&&'object'==typeof s.props&&'name'in s.props&&s.props?.name?` for the screen '${s.props.name}'`:''}`:'object'==typeof s?JSON.stringify(s):`'${String(s)}'`}). To render this component in the navigator, pass it in the 'component' prop to 'Screen'.`)},[]),W=e=>null!=e?.state?e.state:'string'==typeof e?.screen&&!1!==e?.initial?{routes:[{name:e.screen,params:e.params,path:e.path}]}:void 0},190,[19,6,191,11,184,123,124,155,175,180,177,139,182,156,140,153,173,161,188,147,192,193,194,195,148,203,204,178,149,205,206,207,209,211,212,213,214]); +__d(function(g,r,_i,_a,m,e,d){'use strict';m.exports=function t(n,o){if(n===o)return!0;if(n&&o&&'object'==typeof n&&'object'==typeof o){if(n.constructor!==o.constructor)return!1;var f,u,i;if(Array.isArray(n)){if((f=n.length)!=o.length)return!1;for(u=f;0!==u--;)if(!t(n[u],o[u]))return!1;return!0}if(n.constructor===RegExp)return n.source===o.source&&n.flags===o.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===o.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===o.toString();if((f=(i=Object.keys(n)).length)!==Object.keys(o).length)return!1;for(u=f;0!==u--;)if(!Object.prototype.hasOwnProperty.call(o,i[u]))return!1;for(u=f;0!==u--;){var c=i[u];if(!t(n[c],o[c]))return!1}return!0}return n!=n&&o!=o}},191,[]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,u,i){void 0===i&&(i=u);var o=Object.getOwnPropertyDescriptor(n,u);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[u]}}),Object.defineProperty(t,i,o)}:function(t,n,u,i){void 0===i&&(i=u),t[i]=n[u]}),u=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),i=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var u in t)Object.prototype.hasOwnProperty.call(t,u)&&(n[n.length]=u);return n},t(n)},function(i){if(i&&i.__esModule)return i;var o={};if(null!=i)for(var f=t(i),c=0;c{n.current=null}),i.useRef(({children:t})=>{const u=n.current;if(null===u)throw new Error('The returned component must be rendered in the same render phase as the hook.');return(0,c.jsx)(f,{render:u,children:t})}).current};const c=r(d[0]),i=o(r(d[1])),f=({render:t,children:n})=>t(n)},193,[6,11]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useCurrentRender=function({state:o,navigation:s,descriptors:u}){const c=(0,t.use)(n.CurrentRenderContext);c&&s.isFocused()&&(c.options=u[o.routes[o.index].key].options)};const t=r(d[0]),n=r(d[1])},194,[11,157]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=r(d[0]).default,o=r(d[1]).default,i=this&&this.__createBinding||(Object.create?function(t,n,o,i){void 0===i&&(i=o);var s=Object.getOwnPropertyDescriptor(n,o);s&&!("get"in s?!n.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,i,s)}:function(t,n,o,i){void 0===i&&(i=o),t[i]=n[o]}),s=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),u=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[n.length]=o);return n},t(n)},function(n){if(n&&n.__esModule)return n;var o={};if(null!=n)for(var u=t(n),c=0;c({navigation:s,onAction:m,addListener:S,addKeyedListener:w,onRouteFocus:C,onDispatchAction:N,onOptionsChange:R,scheduleUpdate:A,flushUpdates:B,stackRef:U}),[s,m,S,w,C,N,R,A,B,U]),{base:K,navigations:E}=(0,O.useNavigationCache)({state:t,getState:j,navigation:s,setOptions:M,router:P,emitter:x}),T=(0,b.useRouteCache)(t.routes),V=(t,n,o)=>{const s=i[t.name],c=s.props;return[u,...s.options?s.options.filter(Boolean):[],c.options,o].reduce((o,i)=>Object.assign(o,'function'!=typeof i?i:i({route:t,navigation:n,theme:D})),{})},$=(t,s,u,l)=>{const p=i[t.name],y=p.props,O=y.layout??p.layout??_;let b=(0,c.jsx)(h.SceneView,{navigation:s,route:t,screen:y,routeState:l,getState:j,setState:k,options:u,clearOptions:()=>M(i=>{if(t.key in i){var s;return n(i,[s].map(o))}return i})});return null!=O&&(b=O({route:t,navigation:s,options:u,theme:D,children:b})),(0,c.jsx)(f.NavigationBuilderContext.Provider,{value:F,children:(0,c.jsx)(v.NavigationProvider,{route:t,navigation:s,children:b})},t.key)},q=T.reduce((n,o,i)=>{const s=E[o.key],u=V(o,s,L[o.key]),c=$(o,s,u,t.routes[i].state);return n[o.key]={route:o,navigation:s,render:()=>c,options:u},n},{});return{describe:(t,n)=>{if(!n){if(!(t.key in q))throw new Error(`Couldn't find a route with the key ${t.key}.`);return q[t.key]}const o=K,i=V(t,o,{}),s=$(t,o,i,void 0);return{route:t,navigation:o,render:()=>s,options:i}},descriptors:q}};const c=r(d[2]),l=u(r(d[3])),p=r(d[3]),f=r(d[4]),v=r(d[5]),h=r(d[6]),y=r(d[7]),O=r(d[8]),b=r(d[9])},195,[19,196,6,11,136,177,199,146,202,160]); +__d(function(g,r,_i,a,m,e,d){var t=r(d[0]).default,o=r(d[1]);m.exports=function(s){var n=o(s,"string");return"symbol"==t(n)?n:n+""},m.exports.__esModule=!0,m.exports.default=m.exports},196,[197,198]); +__d(function(g,r,i,a,m,e,d){function o(t){return m.exports=o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},m.exports.__esModule=!0,m.exports.default=m.exports,o(t)}m.exports=o,m.exports.__esModule=!0,m.exports.default=m.exports},197,[]); +__d(function(g,_r,_i,a,m,_e,d){var r=_r(d[0]).default;m.exports=function(t,e){if("object"!=r(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},m.exports.__esModule=!0,m.exports.default=m.exports},198,[197]); +__d(function(g,_r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,r,o){void 0===o&&(o=r);var i=Object.getOwnPropertyDescriptor(n,r);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(t,o,i)}:function(t,n,r,o){void 0===o&&(o=r),t[o]=n[r]}),r=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),o=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[n.length]=r);return n},t(n)},function(o){if(o&&o.__esModule)return o;var i={};if(null!=o)for(var s=t(o),u=0;uj.current,[]),{addOptionsGetter:_}=(0,y.useOptionsGetters)({key:n.key,options:m,navigation:r}),S=s.useCallback(t=>{j.current=t},[]),C=s.useCallback(()=>{const t=b().routes.find(t=>t.key===n.key);return t?t.state:void 0},[b,n.key]),x=s.useCallback(t=>{const r=b(),o=r.routes.map(r=>r.key===n.key&&r.state!==t?Object.assign({},r,{state:t}):r);(0,p.isArrayEqual)(r.routes,o)||h(Object.assign({},r,{routes:o}))},[b,n.key,h]),P=s.useRef(!0);s.useEffect(()=>{P.current=!1}),s.useEffect(()=>O,[]);const M=s.useCallback(()=>P.current,[]),w=(0,u.use)(l.NavigationFocusedRouteStateContext),N=s.useMemo(()=>{const t={routes:[{key:n.key,name:n.name,params:n.params,path:n.path}]},r=n=>{const o=n?.routes[0];return o?{routes:[Object.assign({},o,{state:r(o.state)})]}:t};return r(w)},[w,n.key,n.name,n.params,n.path]),E=s.useMemo(()=>({state:o,getState:C,setState:x,getKey:k,setKey:S,getIsInitial:M,addOptionsGetter:_}),[o,C,x,k,S,M,_]),R=t.getComponent?t.getComponent():t.component;return(0,i.jsx)(f.NavigationStateContext.Provider,{value:E,children:(0,i.jsx)(l.NavigationFocusedRouteStateContext.Provider,{value:N,children:(0,i.jsx)(c.EnsureSingleNavigator,{children:(0,i.jsx)(v.StaticContainer,{name:t.name,render:R||t.children,navigation:r,route:n,children:void 0!==R?(0,i.jsx)(R,{navigation:r,route:n}):void 0!==t.children?t.children({navigation:r,route:n}):null})})})})};const i=_r(d[0]),s=o(_r(d[1])),u=_r(d[1]),c=_r(d[2]),l=_r(d[3]),f=_r(d[4]),v=_r(d[5]),p=_r(d[6]),y=_r(d[7])},199,[6,11,135,200,139,201,173,151]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,o,i){void 0===i&&(i=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&!("get"in u?!n.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,i,u)}:function(t,n,o,i){void 0===i&&(i=o),t[i]=n[o]}),o=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),i=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[n.length]=o);return n},t(n)},function(i){if(i&&i.__esModule)return i;var u={};if(null!=i)for(var c=t(i),f=0;f{const i=Object.keys(t),o=Object.keys(n);if(i.length!==o.length)return!1;for(const o of i)if('children'!==o&&t[o]!==n[o])return!1;return!0})},201,[11]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t=r(d[0]).default;const n=["emit"];var o,s=this&&this.__createBinding||(Object.create?function(t,n,o,s){void 0===s&&(s=o);var i=Object.getOwnPropertyDescriptor(n,o);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,s,i)}:function(t,n,o,s){void 0===s&&(s=o),t[s]=n[o]}),i=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),c=this&&this.__importStar||(o=function(t){return o=Object.getOwnPropertyNames||function(t){var n=[];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[n.length]=o);return n},o(t)},function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var c=o(t),u=0;u{const o=t(i,n),s=Object.assign({},O.actionCreators,f.CommonActions),c=()=>{throw new Error('Actions cannot be dispatched from a placeholder screen.')},u=Object.keys(s).reduce((t,n)=>(t[n]=c,t),{});return Object.assign({},o,u,{addListener:()=>()=>{},removeListener:()=>{},dispatch:c,getParent:t=>void 0!==t&&t===o.getId()?h:o.getParent(t),setOptions:()=>{throw new Error('Options cannot be set from a placeholder screen.')},isFocused:()=>!1})},[i,O.actionCreators]),v=u.useMemo(()=>({current:{}}),[h,s,i,c,y]);return v.current=o.routes.reduce((t,n)=>{const o=v.current[n.key];if(o)t[n.key]=o;else{const o=t=>{const o='function'==typeof t?t(s()):t;null!=o&&i.dispatch(Object.assign({source:n.key},o))},u=t=>{try{t()}finally{}},l=Object.assign({},O.actionCreators,f.CommonActions),b=Object.keys(l).reduce((t,n)=>(t[n]=(...t)=>u(()=>o(l[n](...t))),t),{});t[n.key]=Object.assign({},h,b,y.create(n.key),{dispatch:t=>u(()=>o(t)),getParent:o=>void 0!==o&&o===h.getId()?t[n.key]:h.getParent(o),setOptions:t=>{c(o=>Object.assign({},o,{[n.key]:Object.assign({},o[n.key],t)}))},isFocused:()=>{const t=h.getState();return t.routes[t.index].key===n.key&&(!i||i.isFocused())}})}return t},{}),{base:h,navigations:v.current}};const u=c(r(d[1])),l=r(d[1]),f=r(d[2]),b=r(d[3])},202,[19,11,124,136]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,u,i){void 0===i&&(i=u);var o=Object.getOwnPropertyDescriptor(n,u);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[u]}}),Object.defineProperty(t,i,o)}:function(t,n,u,i){void 0===i&&(i=u),t[i]=n[u]}),u=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),i=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var u in t)Object.prototype.hasOwnProperty.call(t,u)&&(n[n.length]=u);return n},t(n)},function(i){if(i&&i.__esModule)return i;var o={};if(null!=i)for(var c=t(i),s=0;su?.addListener('focus',()=>{i.current=f,n.emit({type:'focus',target:f})}),[f,n,u]),o.useEffect(()=>u?.addListener('blur',()=>{i.current=void 0,n.emit({type:'blur',target:f})}),[f,n,u]),o.useEffect(()=>{const t=i.current;i.current=f,void 0!==t||u||n.emit({type:'focus',target:f}),t===f||u&&!u.isFocused()||void 0!==t&&(n.emit({type:'blur',target:t}),n.emit({type:'focus',target:f}))},[f,n,u])};const o=i(r(d[0])),c=r(d[0]),s=r(d[1])},203,[11,174]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,u,i){void 0===i&&(i=u);var o=Object.getOwnPropertyDescriptor(n,u);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[u]}}),Object.defineProperty(t,i,o)}:function(t,n,u,i){void 0===i&&(i=u),t[i]=n[u]}),u=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),i=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var u in t)Object.prototype.hasOwnProperty.call(t,u)&&(n[n.length]=u);return n},t(n)},function(i){if(i&&i.__esModule)return i;var o={};if(null!=i)for(var s=t(i),c=0;c{if(t.isFocused()){for(const t of n){const{handled:n,result:i}=t(u);if(n)return{handled:n,result:i}}return{handled:!0,result:u(t)}}return{handled:!1,result:null}},[n,t]);o.useEffect(()=>u?.('focus',i),[u,i])};const o=i(r(d[0])),s=r(d[0]),c=r(d[1])},204,[11,136]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,u,i){void 0===i&&(i=u);var o=Object.getOwnPropertyDescriptor(n,u);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[u]}}),Object.defineProperty(t,i,o)}:function(t,n,u,i){void 0===i&&(i=u),t[i]=n[u]}),u=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),i=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var u in t)Object.prototype.hasOwnProperty.call(t,u)&&(n[n.length]=u);return n},t(n)},function(i){if(i&&i.__esModule)return i;var o={};if(null!=i)for(var c=t(i),f=0;f{const u=t=>{const u='function'==typeof t?t(i()):t;n(u)||o?.(u)},c=Object.assign({},m.actionCreators,s.CommonActions),l=Object.keys(c).reduce((t,n)=>(t[n]=(...t)=>u(c[n](...t)),t),{}),O=Object.assign({},v,l,{dispatch:u,emit:f.emit,isFocused:v?v.isFocused:()=>!0,canGoBack:()=>{const t=i();return null!==m.getStateForAction(t,s.CommonActions.goBack(),{routeNames:t.routeNames,routeParamList:{},routeGetIdList:{}})||v?.canGoBack()||!1},getId:()=>t,getParent:t=>{if(void 0!==t){let n=O;for(;n&&t!==n.getId();)n=n.getParent();return n}return v},getState:()=>null!=b.current?b.current:i()});return O},[m,v,f.emit,i,n,o,t,b])};const u=i(r(d[0])),c=r(d[0]),s=r(d[1]),l=r(d[2]);r(d[3]).PrivateValueStore},206,[11,124,174,188]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,u,i){void 0===i&&(i=u);var o=Object.getOwnPropertyDescriptor(n,u);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[u]}}),Object.defineProperty(t,i,o)}:function(t,n,u,i){void 0===i&&(i=u),t[i]=n[u]}),u=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),i=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var u in t)Object.prototype.hasOwnProperty.call(t,u)&&(n[n.length]=u);return n},t(n)},function(i){if(i&&i.__esModule)return i;var o={};if(null!=i)for(var c=t(i),s=0;si.current),l=(0,f.default)(t=>(u.current.push(t),()=>{u.current=u.current.filter(n=>n!==t)}));s.default.useLayoutEffect(()=>{i.current=t,u.current.forEach(t=>t())},[t]);const v=s.default.useMemo(()=>({getState:o,subscribe:l}),[o,l]);return(0,c.jsx)(h.Provider,{value:v,children:n})};const c=r(d[0]),s=i(r(d[1])),f=o(r(d[2])),l=r(d[3]);const h=s.default.createContext(void 0)},207,[6,11,123,208]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useSyncExternalStoreWithSelector=function(u,n,l,s,c){const o=(0,t.useRef)(null);let f;null===o.current?(f={hasValue:!1,value:null},o.current=f):f=o.current;const[v,S]=(0,t.useMemo)(()=>{let t,u,o=!1;const v=n=>{if(!o){o=!0,t=n;const l=s(n);if(void 0!==c&&f.hasValue){const t=f.value;if(c(t,l))return u=t,t}return u=l,l}const l=t,v=u;if(Object.is(l,n))return v;const S=s(n);return void 0!==c&&c(v,S)?(t=n,v):(t=n,u=S,S)};return[()=>v(n()),null==l?void 0:()=>v(l())]},[n,l,s,c]),h=(0,t.useSyncExternalStore)(u,v,S);return(0,t.useEffect)(()=>{f.hasValue=!0,f.value=h},[h]),(0,t.useDebugValue)(h),h};const t=r(d[0])},208,[11]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,o,i){void 0===i&&(i=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&!("get"in u?!n.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,i,u)}:function(t,n,o,i){void 0===i&&(i=o),t[i]=n[o]}),o=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),i=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[n.length]=o);return n},t(n)},function(i){if(i&&i.__esModule)return i;var u={};if(null!=i)for(var s=t(i),c=0;c{j.current=p});const A=u.useCallback((u,s=new Set)=>{const c=n();if(s.has(c.key))return!1;if(s.add(c.key),'string'!=typeof u.target||u.target===c.key){let n=t.getStateForAction(c,u,j.current);if(n=null===n&&u.target===c.key?c:n,null!==n){if(m(u,c===n),c!==n){if((0,l.shouldPreventRemove)(b,h,c.routes,n.routes,u))return!0;o(n)}if(void 0!==_){t.shouldActionChangeFocus(u)&&void 0!==i&&_(i)}return!0}}if(void 0!==y&&y(u,s))return!0;if('string'==typeof u.target||'NAVIGATE_DEPRECATED'===u.type||P)for(let t=v.length-1;t>=0;t--){if((0,v[t])(u,s))return!0}return!1},[v,h,b,n,P,i,y,m,_,t,o]);return(0,l.useOnPreventRemove)({getState:n,emitter:b,beforeRemoveListeners:h}),u.useEffect(()=>O?.('action',A),[O,A]),A};const u=i(r(d[0])),s=r(d[0]),c=r(d[1]),f=r(d[2]),l=r(d[3])},209,[11,134,136,210]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,o,i){void 0===i&&(i=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&!("get"in u?!n.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,i,u)}:function(t,n,o,i){void 0===i&&(i=o),t[i]=n[o]}),o=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),i=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[n.length]=o);return n},t(n)},function(i){if(i&&i.__esModule)return i;var u={};if(null!=i)for(var c=t(i),s=0;s{if(v)return i?.('beforeRemove',v,i=>{const u=t();return(0,e.shouldPreventRemove)(n,o,u.routes,[],i)})},[i,o,n,t,v])};const u=i(r(d[0])),c=r(d[0]),s=r(d[1]),f=r(d[2]),l=Symbol('VISITED_ROUTE_KEYS');e.shouldPreventRemove=(t,n,o,i,u)=>{const c=i.map(t=>t.key),s=o.filter(t=>!c.includes(t.key)).reverse(),f=u[l]??new Set,v=Object.assign({},u,{[l]:f});for(const o of s){if(f.has(o.key))continue;const i=n[o.key]?.(v);if(i)return!0;f.add(o.key);if(t.emit({type:'beforeRemove',target:o.key,data:{action:v},canPreventDefault:!0}).defaultPrevented)return!0}return!1}},210,[11,136,177]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,o,u){void 0===u&&(u=o);var i=Object.getOwnPropertyDescriptor(n,o);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,u,i)}:function(t,n,o,u){void 0===u&&(u=o),t[u]=n[o]}),o=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),u=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[n.length]=o);return n},t(n)},function(u){if(u&&u.__esModule)return u;var i={};if(null!=u)for(var s=t(u),c=0;c{const o=t(),u=o.routes.map(t=>{const o=n[t.key]?.();return t.state===o?t:Object.assign({},t,{state:o})});return(0,l.isArrayEqual)(o.routes,u)?o:Object.assign({},o,{routes:u})},[t,n]);i.useEffect(()=>o?.('getState',b,O),[o,O,b])};const i=u(r(d[0])),s=r(d[0]),c=r(d[1]),f=r(d[2]),l=r(d[3])},211,[11,136,177,173]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,o,u){void 0===u&&(u=o);var i=Object.getOwnPropertyDescriptor(n,o);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,u,i)}:function(t,n,o,u){void 0===u&&(u=o),t[u]=n[o]}),o=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),u=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[n.length]=o);return n},t(n)},function(u){if(u&&u.__esModule)return u;var i={};if(null!=u)for(var c=t(u),s=0;s{const c=n(),s=t.getStateForRouteFocus(c,i);s!==c&&u(s),void 0!==l&&void 0!==o&&l(o)},[n,l,t,u,o])};const i=u(r(d[0])),c=r(d[0]),s=r(d[1])},212,[11,136]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,i,o){void 0===o&&(o=i);var u=Object.getOwnPropertyDescriptor(n,i);u&&!("get"in u?!n.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return n[i]}}),Object.defineProperty(t,o,u)}:function(t,n,i,o){void 0===o&&(o=i),t[o]=n[i]}),i=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),o=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[n.length]=i);return n},t(n)},function(o){if(o&&o.__esModule)return o;var u={};if(null!=o)for(var c=t(o),s=0;s(0,u.nanoid)()),n=(0,s.use)(f.SingleNavigatorContext);if(void 0===n)throw new Error("Couldn't register the navigator. Have you wrapped your app with 'NavigationContainer'?\n\nThis can also happen if there are multiple copies of '@react-navigation' packages installed.");return c.useEffect(()=>{const{register:i,unregister:o}=n;return i(t),()=>o(t)},[n,t]),t};const u=r(d[0]),c=o(r(d[1])),s=r(d[1]),f=r(d[2])},213,[127,11,135]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useScheduleUpdate=function(n){const{scheduleUpdate:c,flushUpdates:o}=(0,t.use)(u.NavigationBuilderContext);c(n),(0,s.useClientLayoutEffect)(o)};const t=r(d[0]),u=r(d[1]),s=r(d[2])},214,[11,136,192]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,i,u){void 0===u&&(u=i);var o=Object.getOwnPropertyDescriptor(n,i);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[i]}}),Object.defineProperty(t,u,o)}:function(t,n,i,u){void 0===u&&(u=i),t[u]=n[i]}),i=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),u=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[n.length]=i);return n},t(n)},function(u){if(u&&u.__esModule)return u;var o={};if(null!=u)for(var c=t(u),f=0;f(0,i.nanoid)()),u=(0,s.useNavigation)(),{key:o}=(0,v.useRoute)(),{setPreventRemove:_}=(0,l.usePreventRemoveContext)();f.useEffect(()=>(_(n,o,e),()=>{_(n,o,!1)}),[_,n,o,e]);const b=(0,c.default)(n=>{e&&(n.preventDefault(),t({data:n.data}))});f.useEffect(()=>u?.addListener('beforeRemove',b),[u,b])};const i=r(d[0]),f=u(r(d[1])),c=o(r(d[2])),s=r(d[3]),l=r(d[4]),v=r(d[5])},216,[127,11,123,179,217,186]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.usePreventRemoveContext=function(){const o=(0,t.use)(n.PreventRemoveContext);if(null==o)throw new Error("Couldn't find the prevent remove context. Is your component inside NavigationContent?");return o};const t=r(d[0]),n=r(d[1])},217,[11,181]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useStateForPath=function(){return(0,t.use)(o.NavigationFocusedRouteStateContext)};const t=r(d[0]),o=r(d[1])},218,[11,200]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t=r(d[0]).default;const n=["direction","theme","linking","fallback","documentTitle","onReady","onStateChange"];var i,o=this&&this.__createBinding||(Object.create?function(t,n,i,o){void 0===o&&(o=i);var l=Object.getOwnPropertyDescriptor(n,i);l&&!("get"in l?!n.__esModule:l.writable||l.configurable)||(l={enumerable:!0,get:function(){return n[i]}}),Object.defineProperty(t,o,l)}:function(t,n,i,o){void 0===o&&(o=i),t[o]=n[i]}),l=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),u=this&&this.__importStar||(i=function(t){return i=Object.getOwnPropertyNames||function(t){var n=[];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[n.length]=i);return n},i(t)},function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var u=i(t),c=0;c({options:c}),[c]),I=f.useMemo(()=>({lastUnhandledLink:D,setLastUnhandledLink:F}),[D,F]),w=(0,v.default)(()=>{const t=A.current?.getCurrentRoute()?.path;F(n=>{if(n!==t)return n}),k?.()}),E=(0,v.default)(t=>{const n=A.current?.getCurrentRoute()?.path;F(t=>{if(t!==n)return t}),L?.(t)});f.useEffect(()=>{A.current&&REACT_NAVIGATION_DEVTOOLS.set(A.current,{get linking(){return Object.assign({},c,{enabled:R,prefixes:c?.prefixes??[],getStateFromPath:c?.getStateFromPath??m.getStateFromPath,getPathFromState:c?.getPathFromState??m.getPathFromState,getActionFromState:c?.getActionFromState??m.getActionFromState})}})});const[B,V]=(0,C.useThenable)(M);return f.useImperativeHandle(o,()=>A.current),null!=y.initialState||!R||B?(0,s.jsx)(_.LocaleDirContext.Provider,{value:l,children:(0,s.jsx)(S.UnhandledLinkingContext.Provider,{value:I,children:(0,s.jsx)(b.LinkingContext.Provider,{value:N,children:(0,s.jsx)(m.BaseNavigationContainer,Object.assign({},y,{theme:u,onReady:w,onStateChange:E,initialState:null==y.initialState?V:y.initialState,ref:A}))})})}):(0,s.jsx)(_.LocaleDirContext.Provider,{value:l,children:(0,s.jsx)(m.ThemeProvider,{value:u,children:T})})})},219,[19,6,11,220,123,121,380,381,382,383,385,386,387,390]); +__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,"unstable_createElement",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(_e,"findNodeHandle",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(_e,"processColor",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(_e,"render",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(_e,"unmountComponentAtNode",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(_e,"NativeModules",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(_e,"AccessibilityInfo",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(_e,"Alert",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(_e,"Animated",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(_e,"Appearance",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(_e,"AppRegistry",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(_e,"AppState",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(_e,"BackHandler",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(_e,"Clipboard",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(_e,"Dimensions",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(_e,"Easing",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(_e,"I18nManager",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(_e,"Keyboard",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(_e,"InteractionManager",{enumerable:!0,get:function(){return B.default}}),Object.defineProperty(_e,"LayoutAnimation",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(_e,"Linking",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(_e,"NativeEventEmitter",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(_e,"PanResponder",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(_e,"PixelRatio",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(_e,"Platform",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(_e,"Share",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(_e,"StyleSheet",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(_e,"UIManager",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(_e,"Vibration",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(_e,"ActivityIndicator",{enumerable:!0,get:function(){return V.default}}),Object.defineProperty(_e,"Button",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(_e,"CheckBox",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(_e,"FlatList",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(_e,"Image",{enumerable:!0,get:function(){return F.default}}),Object.defineProperty(_e,"ImageBackground",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(_e,"KeyboardAvoidingView",{enumerable:!0,get:function(){return K.default}}),Object.defineProperty(_e,"Modal",{enumerable:!0,get:function(){return W.default}}),Object.defineProperty(_e,"Picker",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(_e,"Pressable",{enumerable:!0,get:function(){return U.default}}),Object.defineProperty(_e,"ProgressBar",{enumerable:!0,get:function(){return Y.default}}),Object.defineProperty(_e,"RefreshControl",{enumerable:!0,get:function(){return q.default}}),Object.defineProperty(_e,"SafeAreaView",{enumerable:!0,get:function(){return G.default}}),Object.defineProperty(_e,"ScrollView",{enumerable:!0,get:function(){return J.default}}),Object.defineProperty(_e,"SectionList",{enumerable:!0,get:function(){return Q.default}}),Object.defineProperty(_e,"StatusBar",{enumerable:!0,get:function(){return X.default}}),Object.defineProperty(_e,"Switch",{enumerable:!0,get:function(){return Z.default}}),Object.defineProperty(_e,"Text",{enumerable:!0,get:function(){return $.default}}),Object.defineProperty(_e,"TextInput",{enumerable:!0,get:function(){return ee.default}}),Object.defineProperty(_e,"Touchable",{enumerable:!0,get:function(){return te.default}}),Object.defineProperty(_e,"TouchableHighlight",{enumerable:!0,get:function(){return ne.default}}),Object.defineProperty(_e,"TouchableNativeFeedback",{enumerable:!0,get:function(){return re.default}}),Object.defineProperty(_e,"TouchableOpacity",{enumerable:!0,get:function(){return ue.default}}),Object.defineProperty(_e,"TouchableWithoutFeedback",{enumerable:!0,get:function(){return fe.default}}),Object.defineProperty(_e,"View",{enumerable:!0,get:function(){return ae.default}}),Object.defineProperty(_e,"VirtualizedList",{enumerable:!0,get:function(){return ie.default}}),Object.defineProperty(_e,"YellowBox",{enumerable:!0,get:function(){return oe.default}}),Object.defineProperty(_e,"LogBox",{enumerable:!0,get:function(){return le.default}}),Object.defineProperty(_e,"DeviceEventEmitter",{enumerable:!0,get:function(){return ce.default}}),Object.defineProperty(_e,"useColorScheme",{enumerable:!0,get:function(){return de.default}}),Object.defineProperty(_e,"useLocaleContext",{enumerable:!0,get:function(){return be.default}}),Object.defineProperty(_e,"useWindowDimensions",{enumerable:!0,get:function(){return ge.default}});var t=e(r(d[0])),n=e(r(d[1])),u=e(r(d[2])),f=e(r(d[3])),o=e(r(d[4])),l=e(r(d[5])),c=e(r(d[6])),b=e(r(d[7])),p=e(r(d[8])),y=e(r(d[9])),P=e(r(d[10])),O=e(r(d[11])),j=e(r(d[12])),s=e(r(d[13])),h=e(r(d[14])),A=e(r(d[15])),v=e(r(d[16])),S=e(r(d[17])),B=e(r(d[18])),I=e(r(d[19])),k=e(r(d[20])),w=e(r(d[21])),x=e(r(d[22])),C=e(r(d[23])),L=e(r(d[24])),M=e(r(d[25])),T=e(r(d[26])),_=e(r(d[27])),E=e(r(d[28])),V=e(r(d[29])),N=e(r(d[30])),R=e(r(d[31])),D=e(r(d[32])),F=e(r(d[33])),H=e(r(d[34])),K=e(r(d[35])),W=e(r(d[36])),z=e(r(d[37])),U=e(r(d[38])),Y=e(r(d[39])),q=e(r(d[40])),G=e(r(d[41])),J=e(r(d[42])),Q=e(r(d[43])),X=e(r(d[44])),Z=e(r(d[45])),$=e(r(d[46])),ee=e(r(d[47])),te=e(r(d[48])),ne=e(r(d[49])),re=e(r(d[50])),ue=e(r(d[51])),fe=e(r(d[52])),ae=e(r(d[53])),ie=e(r(d[54])),oe=e(r(d[55])),le=e(r(d[56])),ce=e(r(d[57])),de=e(r(d[58])),be=e(r(d[59])),ge=e(r(d[60]))},220,[86,221,36,222,229,230,231,232,233,321,322,325,326,327,20,318,328,329,253,330,332,333,334,293,235,337,23,98,338,339,340,344,238,290,345,346,347,352,354,359,245,360,246,296,361,362,300,364,365,369,370,341,372,85,373,374,375,376,377,378,379]); +__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=t=>{throw new Error("findNodeHandle is not supported on web. Use the ref property on the component instead.")}},221,[]); +__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}}),e.hydrate=function(u,o){return(0,n.createSheet)(o),(0,t.hydrateRoot)(o,u)};var t=r(d[0]),n=r(d[1]);function u(u,o){(0,n.createSheet)(o);var c=(0,t.createRoot)(o);return c.render(u),c}},222,[223,70]); +__d(function(g,r,i,a,m,e,d){'use strict';!(function _(){if('undefined'!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&'function'==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(_)}catch(_){console.error(_)}})(),m.exports=r(d[0])},223,[224]); +__d(function(e,n,t,r,l,a,o){ +/** + * @license React + * react-dom-client.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +"use strict";var u=n(o[0]),i=n(o[1]),s=n(o[2]);function c(e){var n="https://react.dev/errors/"+e;if(1Q||(e.current=V[Q],V[Q]=null,Q--)}function W(e,n){Q++,V[Q]=e.current,e.current=n}var q,K,Y=B(null),X=B(null),G=B(null),Z=B(null);function J(e,n){switch(W(G,n),W(X,e),W(Y,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?If(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)e=Uf(n=If(n),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}H(Y),W(Y,e)}function ee(){H(Y),H(X),H(G)}function ne(e){null!==e.memoizedState&&W(Z,e);var n=Y.current,t=Uf(n,e.type);n!==t&&(W(X,e),W(Y,t))}function te(e){X.current===e&&(H(Y),H(X)),Z.current===e&&(H(Z),Id._currentValue=j)}function re(e){if(void 0===q)try{throw Error()}catch(e){var n=e.stack.trim().match(/\n( *(at )?)/);q=n&&n[1]||"",K=-1)":-1--l||i[r]!==s[l]){var c="\n"+i[r].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}}while(1<=r&&0<=l);break}}}finally{le=!1,Error.prepareStackTrace=t}return(t=e?e.displayName||e.name:"")?re(t):""}function oe(e,n){switch(e.tag){case 26:case 27:case 5:return re(e.type);case 16:return re("Lazy");case 13:return e.child!==n&&null!==n?re("Suspense Fallback"):re("Suspense");case 19:return re("SuspenseList");case 0:case 15:return ae(e.type,!1);case 11:return ae(e.type.render,!1);case 1:return ae(e.type,!0);case 31:return re("Activity");default:return""}}function ue(e){try{var n="",t=null;do{n+=oe(e,t),t=e,e=e.return}while(e);return n}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}var ie=Object.prototype.hasOwnProperty,se=u.unstable_scheduleCallback,ce=u.unstable_cancelCallback,fe=u.unstable_shouldYield,de=u.unstable_requestPaint,pe=u.unstable_now,me=u.unstable_getCurrentPriorityLevel,he=u.unstable_ImmediatePriority,ge=u.unstable_UserBlockingPriority,ve=u.unstable_NormalPriority,ye=u.unstable_LowPriority,be=u.unstable_IdlePriority,ke=u.log,we=u.unstable_setDisableYieldValue,Se=null,Ee=null;function xe(e){if("function"==typeof ke&&we(e),Ee&&"function"==typeof Ee.setStrictMode)try{Ee.setStrictMode(Se,e)}catch(e){}}var Ce=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(ze(e)/Pe|0)|0},ze=Math.log,Pe=Math.LN2;var Ne=256,Le=262144,Te=4194304;function _e(e){var n=42&e;if(0!==n)return n;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return 261888&e;case 262144:case 524288:case 1048576:case 2097152:return 3932160&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Fe(e,n,t){var r=e.pendingLanes;if(0===r)return 0;var l=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var u=134217727&r;return 0!==u?0!==(r=u&~a)?l=_e(r):0!==(o&=u)?l=_e(o):t||0!==(t=u&~e)&&(l=_e(t)):0!==(u=r&~a)?l=_e(u):0!==o?l=_e(o):t||0!==(t=r&~e)&&(l=_e(t)),0===l?0:0!==n&&n!==l&&0===(n&a)&&((a=l&-l)>=(t=n&-n)||32===a&&4194048&t)?n:l}function De(e,n){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)}function Oe(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;default:return-1}}function Me(){var e=Te;return!(62914560&(Te<<=1))&&(Te=4194304),e}function Ae(e){for(var n=[],t=0;31>t;t++)n.push(e);return n}function Re(e,n){e.pendingLanes|=n,268435456!==n&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ie(e,n,t,r,l,a){var o=e.pendingLanes;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=t,e.entangledLanes&=t,e.errorRecoveryDisabledLanes&=t,e.shellSuspendCounter=0;var u=e.entanglements,i=e.expirationTimes,s=e.hiddenUpdates;for(t=o&~t;0=Dt),At=String.fromCharCode(32),Rt=!1;function It(e,n){switch(e){case"keyup":return-1!==_t.indexOf(n.keyCode);case"keydown":return 229!==n.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ut(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var $t=!1;function jt(e,n){switch(e){case"compositionend":return Ut(n);case"keypress":return 32!==n.which?null:(Rt=!0,At);case"textInput":return(e=n.data)===At&&Rt?null:e;default:return null}}function Vt(e,n){if($t)return"compositionend"===e||!Ft&&It(e,n)?(e=nt(),et=Jn=Zn=null,$t=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1=n)return{node:r,offset:n-e};e=t}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=sr(r)}}function fr(e,n){return!(!e||!n)&&(e===n||(!e||3!==e.nodeType)&&(n&&3===n.nodeType?fr(e,n.parentNode):"contains"in e?e.contains(n):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(n))))}function dr(e){for(var n=En((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);n instanceof e.HTMLIFrameElement;){try{var t="string"==typeof n.contentWindow.location.href}catch(e){t=!1}if(!t)break;n=En((e=n.contentWindow).document)}return n}function pr(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&("input"===n&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===n||"true"===e.contentEditable)}var mr=Yn&&"documentMode"in document&&11>=document.documentMode,hr=null,gr=null,vr=null,yr=!1;function br(e,n,t){var r=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;yr||null==hr||hr!==En(r)||("selectionStart"in(r=hr)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},vr&&ir(vr,r)||(vr=r,0<(r=Sf(gr,"onSelect")).length&&(n=new ct("onSelect","select",null,n,t),e.push({event:n,listeners:r}),n.target=hr)))}function kr(e,n){var t={};return t[e.toLowerCase()]=n.toLowerCase(),t["Webkit"+e]="webkit"+n,t["Moz"+e]="moz"+n,t}var wr={animationend:kr("Animation","AnimationEnd"),animationiteration:kr("Animation","AnimationIteration"),animationstart:kr("Animation","AnimationStart"),transitionrun:kr("Transition","TransitionRun"),transitionstart:kr("Transition","TransitionStart"),transitioncancel:kr("Transition","TransitionCancel"),transitionend:kr("Transition","TransitionEnd")},Sr={},Er={};function xr(e){if(Sr[e])return Sr[e];if(!wr[e])return e;var n,t=wr[e];for(n in t)if(t.hasOwnProperty(n)&&n in Er)return Sr[e]=t[n];return e}Yn&&(Er=document.createElement("div").style,"AnimationEvent"in window||(delete wr.animationend.animation,delete wr.animationiteration.animation,delete wr.animationstart.animation),"TransitionEvent"in window||delete wr.transitionend.transition);var Cr=xr("animationend"),zr=xr("animationiteration"),Pr=xr("animationstart"),Nr=xr("transitionrun"),Lr=xr("transitionstart"),Tr=xr("transitioncancel"),_r=xr("transitionend"),Fr=new Map,Dr="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Or(e,n){Fr.set(e,n),cn(n,[e])}Dr.push("scrollEnd");var Mr="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},Ar=[],Rr=0,Ir=0;function Ur(){for(var e=Rr,n=Ir=Rr=0;n>=o,l-=o,fl=1<<32-Ce(n)+l|t<h?(g=f,f=null):g=f.sibling;var v=p(l,f,u[h],i);if(null===v){null===f&&(f=g);break}e&&f&&null===v.alternate&&n(l,f),o=a(v,o,h),null===c?s=v:c.sibling=v,c=v,f=g}if(h===u.length)return t(l,f),kl&&pl(l,h),s;if(null===f){for(;hg?(v=h,h=null):v=h.sibling;var b=p(l,h,y.value,i);if(null===b){null===h&&(h=v);break}e&&h&&null===b.alternate&&n(l,h),o=a(b,o,g),null===f?s=b:f.sibling=b,f=b,h=v}if(y.done)return t(l,h),kl&&pl(l,g),s;if(null===h){for(;!y.done;g++,y=u.next())null!==(y=d(l,y.value,i))&&(o=a(y,o,g),null===f?s=y:f.sibling=y,f=y);return kl&&pl(l,g),s}for(h=r(h);!y.done;g++,y=u.next())null!==(y=m(h,l,g,y.value,i))&&(e&&null!==y.alternate&&h.delete(null===y.key?g:y.key),o=a(y,o,g),null===f?s=y:f.sibling=y,f=y);return e&&h.forEach(function(e){return n(l,e)}),kl&&pl(l,g),s}function v(e,r,a,u){if("object"==typeof a&&null!==a&&a.type===S&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case k:e:{for(var i=a.key;null!==r;){if(r.key===i){if((i=a.type)===S){if(7===r.tag){t(e,r.sibling),(u=l(r,a.props.children)).return=e,e=u;break e}}else if(r.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===_&&pa(i)===r.type){t(e,r.sibling),ka(u=l(r,a.props),a),u.return=e,e=u;break e}t(e,r);break}n(e,r),r=r.sibling}a.type===S?((u=Zr(a.props.children,e.mode,u,a.key)).return=e,e=u):(ka(u=Gr(a.type,a.key,a.props,null,e.mode,u),a),u.return=e,e=u)}return o(e);case w:e:{for(i=a.key;null!==r;){if(r.key===i){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){t(e,r.sibling),(u=l(r,a.children||[])).return=e,e=u;break e}t(e,r);break}n(e,r),r=r.sibling}(u=nl(a,e.mode,u)).return=e,e=u}return o(e);case _:return v(e,r,a=pa(a),u)}if(I(a))return h(e,r,a,u);if(M(a)){if("function"!=typeof(i=M(a)))throw Error(c(150));return g(e,r,a=i.call(a),u)}if("function"==typeof a.then)return v(e,r,ba(a),u);if(a.$$typeof===z)return v(e,r,Vl(e,a),u);wa(e,a)}return"string"==typeof a&&""!==a||"number"==typeof a||"bigint"==typeof a?(a=""+a,null!==r&&6===r.tag?(t(e,r.sibling),(u=l(r,a)).return=e,e=u):(t(e,r),(u=Jr(a,e.mode,u)).return=e,e=u),o(e)):t(e,r)}return function(e,n,t,r){try{ya=0;var l=v(e,n,t,r);return va=null,l}catch(n){if(n===ua||n===sa)throw n;var a=qr(29,n,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ea=Sa(!0),xa=Sa(!1),Ca=!1;function za(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Pa(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Na(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function La(e,n,t){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Ls){var l=r.pending;return null===l?n.next=n:(n.next=l.next,l.next=n),r.pending=n,n=Br(e),Qr(e,null,t),n}return $r(e,r,n,t),Br(e)}function Ta(e,n,t){if(null!==(n=n.updateQueue)&&(n=n.shared,4194048&t)){var r=n.lanes;t|=r&=e.pendingLanes,n.lanes=t,$e(e,t)}}function _a(e,n){var t=e.updateQueue,r=e.alternate;if(null!==r&&t===(r=r.updateQueue)){var l=null,a=null;if(null!==(t=t.firstBaseUpdate)){do{var o={lane:t.lane,tag:t.tag,payload:t.payload,callback:null,next:null};null===a?l=a=o:a=a.next=o,t=t.next}while(null!==t);null===a?l=a=n:a=a.next=n}else l=a=n;return t={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=t)}null===(e=t.lastBaseUpdate)?t.firstBaseUpdate=n:e.next=n,t.lastBaseUpdate=n}var Fa=!1;function Da(){if(Fa){if(null!==Jl)throw Jl}}function Oa(e,n,t,r){Fa=!1;var l=e.updateQueue;Ca=!1;var a=l.firstBaseUpdate,o=l.lastBaseUpdate,u=l.shared.pending;if(null!==u){l.shared.pending=null;var i=u,s=i.next;i.next=null,null===o?a=s:o.next=s,o=i;var c=e.alternate;null!==c&&((u=(c=c.updateQueue).lastBaseUpdate)!==o&&(null===u?c.firstBaseUpdate=s:u.next=s,c.lastBaseUpdate=i))}if(null!==a){var f=l.baseState;for(o=0,c=s=i=null,u=a;;){var d=-536870913&u.lane,p=d!==u.lane;if(p?(Fs&d)===d:(r&d)===d){0!==d&&d===Zl&&(Fa=!0),null!==c&&(c=c.next={lane:0,tag:u.tag,payload:u.payload,callback:null,next:null});e:{var m=e,h=u;d=n;var g=t;switch(h.tag){case 1:if("function"==typeof(m=h.payload)){f=m.call(g,f,d);break e}f=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(d="function"==typeof(m=h.payload)?m.call(g,f,d):m))break e;f=y({},f,d);break e;case 2:Ca=!0}}null!==(d=u.callback)&&(e.flags|=64,p&&(e.flags|=8192),null===(p=l.callbacks)?l.callbacks=[d]:p.push(d))}else p={lane:d,tag:u.tag,payload:u.payload,callback:u.callback,next:null},null===c?(s=c=p,i=f):c=c.next=p,o|=d;if(null===(u=u.next)){if(null===(u=l.shared.pending))break;u=(p=u).next,p.next=null,l.lastBaseUpdate=p,l.shared.pending=null}}null===c&&(i=f),l.baseState=i,l.firstBaseUpdate=s,l.lastBaseUpdate=c,null===a&&(l.shared.lanes=0),$s|=o,e.lanes=o,e.memoizedState=f}}function Ma(e,n){if("function"!=typeof e)throw Error(c(191,e));e.call(n)}function Aa(e,n){var t=e.callbacks;if(null!==t)for(e.callbacks=null,e=0;ea?a:8;var o,u,i,s=U.T,c={};U.T=c,Su(e,!1,n,t);try{var f=l(),d=U.S;if(null!==d&&d(c,f),null!==f&&"object"==typeof f&&"function"==typeof f.then)wu(e,n,(o=r,u=[],i={status:"pending",value:null,reason:null,then:function(e){u.push(e)}},f.then(function(){i.status="fulfilled",i.value=o;for(var e=0;e<\/script>",a=a.removeChild(a.firstChild);break;case"select":a="string"==typeof r.is?o.createElement("select",{is:r.is}):o.createElement("select"),r.multiple?a.multiple=!0:r.size&&(a.size=r.size);break;default:a="string"==typeof r.is?o.createElement(l,{is:r.is}):o.createElement(l)}}a[qe]=n,a[Ke]=r;e:for(o=n.child;null!==o;){if(5===o.tag||6===o.tag)a.appendChild(o.stateNode);else if(4!==o.tag&&27!==o.tag&&null!==o.child){o.child.return=o,o=o.child;continue}if(o===n)break e;for(;null===o.sibling;){if(null===o.return||o.return===n)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}n.stateNode=a;e:switch(_f(a,l,r),l){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&wi(n)}}return zi(n),Si(n,n.type,null===e||e.memoizedProps,n.pendingProps,t),null;case 6:if(e&&null!=n.stateNode)e.memoizedProps!==r&&wi(n);else{if("string"!=typeof r&&null===n.stateNode)throw Error(c(166));if(e=G.current,Pl(n)){if(e=n.stateNode,t=n.memoizedProps,r=null,null!==(l=yl))switch(l.tag){case 27:case 5:r=l.memoizedProps}e[qe]=n,(e=!!(e.nodeValue===t||null!==r&&!0===r.suppressHydrationWarning||Nf(e.nodeValue,t)))||xl(n,!0)}else(e=Rf(e).createTextNode(r))[qe]=n,n.stateNode=e}return zi(n),null;case 31:if(t=n.memoizedState,null===e||null!==e.memoizedState){if(r=Pl(n),null!==t){if(null===e){if(!r)throw Error(c(318));if(!(e=null!==(e=n.memoizedState)?e.dehydrated:null))throw Error(c(557));e[qe]=n}else Nl(),!(128&n.flags)&&(n.memoizedState=null),n.flags|=4;zi(n),e=!1}else t=Ll(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=t),e=!0;if(!e)return 256&n.flags?(Ka(n),n):(Ka(n),null);if(128&n.flags)throw Error(c(558))}return zi(n),null;case 13:if(r=n.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(l=Pl(n),null!==r&&null!==r.dehydrated){if(null===e){if(!l)throw Error(c(318));if(!(l=null!==(l=n.memoizedState)?l.dehydrated:null))throw Error(c(317));l[qe]=n}else Nl(),!(128&n.flags)&&(n.memoizedState=null),n.flags|=4;zi(n),l=!1}else l=Ll(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=l),l=!0;if(!l)return 256&n.flags?(Ka(n),n):(Ka(n),null)}return Ka(n),128&n.flags?(n.lanes=t,n):(t=null!==r,e=null!==e&&null!==e.memoizedState,t&&(l=null,null!==(r=n.child).alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(l=r.alternate.memoizedState.cachePool.pool),a=null,null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(a=r.memoizedState.cachePool.pool),a!==l&&(r.flags|=2048)),t!==e&&t&&(n.child.flags|=8192),xi(n,n.updateQueue),zi(n),null);case 4:return ee(),null===e&&yf(n.stateNode.containerInfo),zi(n),null;case 10:return Ml(n.type),zi(n),null;case 19:if(H(Ya),null===(r=n.memoizedState))return zi(n),null;if(l=!!(128&n.flags),null===(a=r.rendering))if(l)Ci(r,!1);else{if(0!==Us||null!==e&&128&e.flags)for(e=n.child;null!==e;){if(null!==(a=Xa(e))){for(n.flags|=128,Ci(r,!1),e=a.updateQueue,n.updateQueue=e,xi(n,e),n.subtreeFlags=0,e=t,t=n.child;null!==t;)Xr(t,e),t=t.sibling;return W(Ya,1&Ya.current|2),kl&&pl(n,r.treeForkCount),n.child}e=e.sibling}null!==r.tail&&pe()>Xs&&(n.flags|=128,l=!0,Ci(r,!1),n.lanes=4194304)}else{if(!l)if(null!==(e=Xa(a))){if(n.flags|=128,l=!0,e=e.updateQueue,n.updateQueue=e,xi(n,e),Ci(r,!0),null===r.tail&&"hidden"===r.tailMode&&!a.alternate&&!kl)return zi(n),null}else 2*pe()-r.renderingStartTime>Xs&&536870912!==t&&(n.flags|=128,l=!0,Ci(r,!1),n.lanes=4194304);r.isBackwards?(a.sibling=n.child,n.child=a):(null!==(e=r.last)?e.sibling=a:n.child=a,r.last=a)}return null!==r.tail?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=pe(),e.sibling=null,t=Ya.current,W(Ya,l?1&t|2:1&t),kl&&pl(n,r.treeForkCount),e):(zi(n),null);case 22:case 23:return Ka(n),ja(),r=null!==n.memoizedState,null!==e?null!==e.memoizedState!==r&&(n.flags|=8192):r&&(n.flags|=8192),r?!!(536870912&t)&&!(128&n.flags)&&(zi(n),6&n.subtreeFlags&&(n.flags|=8192)):zi(n),null!==(t=n.updateQueue)&&xi(n,t.retryQueue),t=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(t=e.memoizedState.cachePool.pool),r=null,null!==n.memoizedState&&null!==n.memoizedState.cachePool&&(r=n.memoizedState.cachePool.pool),r!==t&&(n.flags|=2048),null!==e&&H(ra),null;case 24:return t=null,null!==e&&(t=e.memoizedState.cache),n.memoizedState.cache!==t&&(n.flags|=2048),Ml(ql),zi(n),null;case 25:case 30:return null}throw Error(c(156,n.tag))}function Ni(e,n){switch(gl(n),n.tag){case 1:return 65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 3:return Ml(ql),ee(),65536&(e=n.flags)&&!(128&e)?(n.flags=-65537&e|128,n):null;case 26:case 27:case 5:return te(n),null;case 31:if(null!==n.memoizedState){if(Ka(n),null===n.alternate)throw Error(c(340));Nl()}return 65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 13:if(Ka(n),null!==(e=n.memoizedState)&&null!==e.dehydrated){if(null===n.alternate)throw Error(c(340));Nl()}return 65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 19:return H(Ya),null;case 4:return ee(),null;case 10:return Ml(n.type),null;case 22:case 23:return Ka(n),ja(),null!==e&&H(ra),65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 24:return Ml(ql),null;default:return null}}function Li(e,n){switch(gl(n),n.tag){case 3:Ml(ql),ee();break;case 26:case 27:case 5:te(n);break;case 4:ee();break;case 31:null!==n.memoizedState&&Ka(n);break;case 13:Ka(n);break;case 19:H(Ya);break;case 10:Ml(n.type);break;case 22:case 23:Ka(n),ja(),null!==e&&H(ra);break;case 24:Ml(ql)}}function Ti(e,n){try{var t=n.updateQueue,r=null!==t?t.lastEffect:null;if(null!==r){var l=r.next;t=l;do{if((t.tag&e)===e){r=void 0;var a=t.create,o=t.inst;r=a(),o.destroy=r}t=t.next}while(t!==l)}}catch(e){$c(n,n.return,e)}}function _i(e,n,t){try{var r=n.updateQueue,l=null!==r?r.lastEffect:null;if(null!==l){var a=l.next;r=a;do{if((r.tag&e)===e){var o=r.inst,u=o.destroy;if(void 0!==u){o.destroy=void 0,l=n;var i=t,s=u;try{s()}catch(e){$c(l,i,e)}}}r=r.next}while(r!==a)}}catch(e){$c(n,n.return,e)}}function Fi(e){var n=e.updateQueue;if(null!==n){var t=e.stateNode;try{Aa(n,t)}catch(n){$c(e,e.return,n)}}}function Di(e,n,t){t.props=Ou(e.type,e.memoizedProps),t.state=e.memoizedState;try{t.componentWillUnmount()}catch(t){$c(e,n,t)}}function Oi(e,n){try{var t=e.ref;if(null!==t){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;default:r=e.stateNode}"function"==typeof t?e.refCleanup=t(r):t.current=r}}catch(t){$c(e,n,t)}}function Mi(e,n){var t=e.ref,r=e.refCleanup;if(null!==t)if("function"==typeof r)try{r()}catch(t){$c(e,n,t)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof t)try{t(null)}catch(t){$c(e,n,t)}else t.current=null}function Ai(e){var n=e.type,t=e.memoizedProps,r=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":t.autoFocus&&r.focus();break e;case"img":t.src?r.src=t.src:t.srcSet&&(r.srcset=t.srcSet)}}catch(n){$c(e,e.return,n)}}function Ri(e,n,t){try{var r=e.stateNode;Ff(r,e.type,t,n),r[Ke]=n}catch(n){$c(e,e.return,n)}}function Ii(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&Kf(e.type)||4===e.tag}function Ui(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Ii(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&Kf(e.type))continue e;if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function $i(e,n,t){var r=e.tag;if(5===r||6===r)e=e.stateNode,n?(9===t.nodeType?t.body:"HTML"===t.nodeName?t.ownerDocument.body:t).insertBefore(e,n):((n=9===t.nodeType?t.body:"HTML"===t.nodeName?t.ownerDocument.body:t).appendChild(e),null!=(t=t._reactRootContainer)||null!==n.onclick||(n.onclick=$n));else if(4!==r&&(27===r&&Kf(e.type)&&(t=e.stateNode,n=null),null!==(e=e.child)))for($i(e,n,t),e=e.sibling;null!==e;)$i(e,n,t),e=e.sibling}function ji(e,n,t){var r=e.tag;if(5===r||6===r)e=e.stateNode,n?t.insertBefore(e,n):t.appendChild(e);else if(4!==r&&(27===r&&Kf(e.type)&&(t=e.stateNode),null!==(e=e.child)))for(ji(e,n,t),e=e.sibling;null!==e;)ji(e,n,t),e=e.sibling}function Vi(e){var n=e.stateNode,t=e.memoizedProps;try{for(var r=e.type,l=n.attributes;l.length;)n.removeAttributeNode(l[0]);_f(n,r,t),n[qe]=e,n[Ke]=t}catch(n){$c(e,e.return,n)}}var Qi=!1,Bi=!1,Hi=!1,Wi="function"==typeof WeakSet?WeakSet:Set,qi=null;function Ki(e,n){if(e=e.containerInfo,Mf=qd,pr(e=dr(e))){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(t=(t=e.ownerDocument)&&t.defaultView||window).getSelection&&t.getSelection();if(r&&0!==r.rangeCount){t=r.anchorNode;var l=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{t.nodeType,a.nodeType}catch(e){t=null;break e}var o=0,u=-1,i=-1,s=0,f=0,d=e,p=null;n:for(;;){for(var m;d!==t||0!==l&&3!==d.nodeType||(u=o+l),d!==a||0!==r&&3!==d.nodeType||(i=o+r),3===d.nodeType&&(o+=d.nodeValue.length),null!==(m=d.firstChild);)p=d,d=m;for(;;){if(d===e)break n;if(p===t&&++s===l&&(u=o),p===a&&++f===r&&(i=o),null!==(m=d.nextSibling))break;p=(d=p).parentNode}d=m}t=-1===u||-1===i?null:{start:u,end:i}}else t=null}t=t||{start:0,end:0}}else t=null;for(Af={focusedElem:e,selectionRange:t},qd=!1,qi=n;null!==qi;)if(e=(n=qi).child,1028&n.subtreeFlags&&null!==e)e.return=n,qi=e;else for(;null!==qi;){switch(a=(n=qi).alternate,e=n.flags,n.tag){case 0:if(4&e&&null!==(e=null!==(e=n.updateQueue)?e.events:null))for(t=0;t title"))),_f(a,r,t),a[qe]=e,on(a),r=a;break e;case"link":var o=Pd("link","href",l).get(r+(t.href||""));if(o)for(var u=0;ug&&(o=g,g=h,h=o);var v=cr(u,h),y=cr(u,g);if(v&&y&&(1!==p.rangeCount||p.anchorNode!==v.node||p.anchorOffset!==v.offset||p.focusNode!==y.node||p.focusOffset!==y.offset)){var b=f.createRange();b.setStart(v.node,v.offset),p.removeAllRanges(),h>g?(p.addRange(b),p.extend(y.node,y.offset)):(b.setEnd(y.node,y.offset),p.addRange(b))}}}}for(f=[],p=u;p=p.parentNode;)1===p.nodeType&&f.push({element:p,left:p.scrollLeft,top:p.scrollTop});for("function"==typeof u.focus&&u.focus(),u=0;ut?32:t,U.T=null,t=lc,lc=null;var a=ec,o=tc;if(Js=0,nc=ec=null,tc=0,6&Ls)throw Error(c(331));var u=Ls;if(Ls|=4,xs(a.current),gs(a,a.current,o,t),Ls=u,Jc(0,!1),Ee&&"function"==typeof Ee.onPostCommitFiberRoot)try{Ee.onPostCommitFiberRoot(Se,a)}catch(e){}return!0}finally{$.p=l,U.T=r,Ac(e,n)}}function Uc(e,n,t){n=rl(t,n),null!==(e=La(e,n=$u(e.stateNode,n,2),2))&&(Re(e,2),Zc(e))}function $c(e,n,t){if(3===e.tag)Uc(e,e,t);else for(;null!==n;){if(3===n.tag){Uc(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Zs||!Zs.has(r))){e=rl(t,e),null!==(r=La(n,t=ju(2),2))&&(Vu(t,r,n,e),Re(r,2),Zc(r));break}}n=n.return}}function jc(e,n,t){var r=e.pingCache;if(null===r){r=e.pingCache=new Ns;var l=new Set;r.set(n,l)}else void 0===(l=r.get(n))&&(l=new Set,r.set(n,l));l.has(t)||(Rs=!0,l.add(t),e=Vc.bind(null,e,n,t),n.then(e,e))}function Vc(e,n,t){var r=e.pingCache;null!==r&&r.delete(n),e.pingedLanes|=e.suspendedLanes&t,e.warmLanes&=~t,Ts===e&&(Fs&t)===t&&(4===Us||3===Us&&(62914560&Fs)===Fs&&300>pe()-Ks?!(2&Ls)&&vc(e,0):Vs|=t,Bs===Fs&&(Bs=0)),Zc(e)}function Qc(e,n){0===n&&(n=Me()),null!==(e=Vr(e,n))&&(Re(e,n),Zc(e))}function Bc(e){var n=e.memoizedState,t=0;null!==n&&(t=n.retryLane),Qc(e,t)}function Hc(e,n){var t=0;switch(e.tag){case 31:case 13:var r=e.stateNode,l=e.memoizedState;null!==l&&(t=l.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(c(314))}null!==r&&r.delete(n),Qc(e,t)}var Wc=null,qc=null,Kc=!1,Yc=!1,Xc=!1,Gc=0;function Zc(e){e!==qc&&null===e.next&&(null===qc?Wc=qc=e:qc=qc.next=e),Yc=!0,Kc||(Kc=!0,Wf(function(){6&Ls?se(he,ef):nf()}))}function Jc(e,n){if(!Xc&&Yc){Xc=!0;do{for(var t=!1,r=Wc;null!==r;){if(!n)if(0!==e){var l=r.pendingLanes;if(0===l)var a=0;else{var o=r.suspendedLanes,u=r.pingedLanes;a=(1<<31-Ce(42|e)+1)-1,a=201326741&(a&=l&~(o&~u))?201326741&a|1:a?2|a:0}0!==a&&(t=!0,lf(r,a))}else a=Fs,!(3&(a=Fe(r,r===Ts?a:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||De(r,a)||(t=!0,lf(r,a));r=r.next}}while(t);Xc=!1}}function ef(){nf()}function nf(){Yc=Kc=!1;var e=0;0!==Gc&&Vf()&&(e=Gc);for(var n=pe(),t=null,r=Wc;null!==r;){var l=r.next,a=tf(r,n);0===a?(r.next=null,null===t?Wc=l:t.next=l,null===l&&(qc=t)):(t=r,(0!==e||3&a)&&(Yc=!0)),r=l}0!==Js&&5!==Js||Jc(e,!1),0!==Gc&&(Gc=0)}function tf(e,n){for(var t=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,a=-62914561&e.pendingLanes;0u)break;var c=i.transferSize,f=i.initiatorType;c&&Df(f)&&(o+=c*((i=i.responseEnd) title"):null)}function Ld(e,n,t){if(1===t||null!=n.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof n.precedence||"string"!=typeof n.href||""===n.href)break;return!0;case"link":if("string"!=typeof n.rel||"string"!=typeof n.href||""===n.href||n.onLoad||n.onError)break;return"stylesheet"!==n.rel||(e=n.disabled,"string"==typeof n.precedence&&null==e);case"script":if(n.async&&"function"!=typeof n.async&&"symbol"!=typeof n.async&&!n.onLoad&&!n.onError&&n.src&&"string"==typeof n.src)return!0}return!1}function Td(e){return!!("stylesheet"!==e.type||3&e.state.loading)}function _d(e,n,t,r){if(!("stylesheet"!==t.type||"string"==typeof r.media&&!1===matchMedia(r.media).matches||4&t.state.loading)){if(null===t.instance){var l=vd(r.href),a=n.querySelector(yd(l));if(a)return null!==(n=a._p)&&"object"==typeof n&&"function"==typeof n.then&&(e.count++,e=Od.bind(e),n.then(e,e)),t.state.loading|=4,t.instance=a,void on(a);a=n.ownerDocument||n,r=bd(r),(l=cd.get(l))&&xd(r,l),on(a=a.createElement("link"));var o=a;o._p=new Promise(function(e,n){o.onload=e,o.onerror=n}),_f(a,"link",r),t.instance=a}null===e.stylesheets&&(e.stylesheets=new Map),e.stylesheets.set(t,n),(n=t.state.preload)&&!(3&t.state.loading)&&(e.count++,t=Od.bind(e),n.addEventListener("load",t),n.addEventListener("error",t))}}var Fd=0;function Dd(e,n){return e.stylesheets&&0===e.count&&Ad(e,e.stylesheets),0Fd?50:800)+n);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(l)}}:null}function Od(){if(this.count--,0===this.count&&(0===this.imgCount||!this.waitingForImages))if(this.stylesheets)Ad(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var Md=null;function Ad(e,n){e.stylesheets=null,null!==e.unsuspend&&(e.count++,Md=new Map,n.forEach(Rd,e),Md=null,Od.call(e))}function Rd(e,n){if(!(4&n.state.loading)){var t=Md.get(e);if(t)var r=t.get(null);else{t=new Map,Md.set(e,t);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;a>>1,u=n[o];if(!(0>>1;ol(c,a))bl(p,c)?(n[o]=p,n[b]=a,o=b):(n[o]=c,n[f]=a,o=f);else{if(!(bl(p,a)))break e;n[o]=p,n[b]=a,o=b}}}return t}function l(n,t){var a=n.sortIndex-t.sortIndex;return 0!==a?a:n.id-t.id}if(e.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var o=performance;e.unstable_now=function(){return o.now()}}else{var u=Date,s=u.now();e.unstable_now=function(){return u.now()-s}}var f=[],c=[],b=1,p=null,v=3,y=!1,_=!1,k=!1,w=!1,h="function"==typeof setTimeout?setTimeout:null,T="function"==typeof clearTimeout?clearTimeout:null,x="undefined"!=typeof setImmediate?setImmediate:null;function I(l){for(var o=t(c);null!==o;){if(null===o.callback)a(c);else{if(!(o.startTime<=l))break;a(c),o.sortIndex=o.expirationTime,n(f,o)}o=t(c)}}function P(n){if(k=!1,I(n),!_)if(null!==t(f))_=!0,L||(L=!0,C());else{var a=t(c);null!==a&&N(P,a.startTime-n)}}var C,L=!1,M=-1,j=5,F=-1;function R(){return!!w||!(e.unstable_now()-Fn&&R());){var u=p.callback;if("function"==typeof u){p.callback=null,v=p.priorityLevel;var s=u(p.expirationTime<=n);if(n=e.unstable_now(),"function"==typeof s){p.callback=s,I(n),l=!0;break n}p===t(f)&&a(f),I(n)}else a(f);p=t(f)}if(null!==p)l=!0;else{var b=t(c);null!==b&&N(P,b.startTime-n),l=!1}}break e}finally{p=null,v=o,y=!1}l=void 0}}finally{l?C():L=!1}}}if("function"==typeof x)C=function(){x(q)};else if("undefined"!=typeof MessageChannel){var B=new MessageChannel,D=B.port2;B.port1.onmessage=q,C=function(){D.postMessage(null)}}else C=function(){h(q,0)};function N(n,t){M=h(function(){n(e.unstable_now())},t)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(n){n.callback=null},e.unstable_forceFrameRate=function(n){0>n||125u?(a.sortIndex=o,n(c,a),null===t(f)&&a===t(c)&&(k?(T(M),M=-1):k=!0,N(P,o-u))):(a.sortIndex=s,n(f,a),_||y||(_=!0,L||(L=!0,C()))),a},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(n){var t=v;return function(){var a=v;v=t;try{return n.apply(this,arguments)}finally{v=a}}}},226,[]); +__d(function(g,r,i,a,m,e,d){'use strict';!(function _(){if('undefined'!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&'function'==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(_)}catch(_){console.error(_)}})(),m.exports=r(d[0])},227,[228]); +__d(function(g,r,_i,_a,m,e,d){ +/** + * @license React + * react-dom.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +"use strict";var t=r(d[0]);function i(t){var i="https://react.dev/errors/"+t;if(1{e(!0)})}var o=((e=n)&&e.__esModule?e:{default:e}).default&&'function'==typeof window.matchMedia?window.matchMedia('(prefers-reduced-motion: reduce)'):null;var u={},c={isScreenReaderEnabled:t,isReduceMotionEnabled:function(){return new Promise((e,n)=>{e(!o||o.matches)})},fetch:t,addEventListener:function(e,n){if('reduceMotionChanged'===e){if(!o)return;var t=e=>{n(e.matches)};s=t,null!=o&&(null!=o.addEventListener?o.addEventListener('change',s):o.addListener(s)),u[n]=t}var s;return{remove:()=>c.removeEventListener(e,n)}},setAccessibilityFocus:function(e){},announceForAccessibility:function(e){},removeEventListener:function(e,n){if('reduceMotionChanged'===e){var t=u[n];if(!t||!o)return;c=t,null!=o&&(null!=o.removeEventListener?o.removeEventListener('change',c):o.removeListener(c))}var c}},s=c},231,[22]); +__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=class{static alert(){}}},232,[]); +__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},233,[234]); +__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 p}});var t=e(r(d[0])),u=e(r(d[1])),l=e(r(d[2])),f=e(r(d[3])),n=e(r(d[4])),o=e(r(d[5])),c=e(r(d[6])),s=e(r(d[7])),_=e(r(d[8])),b=e(r(d[9])),j=u.default.isTesting?_.default:b.default,p=(0,t.default)({FlatList:l.default,Image:f.default,ScrollView:n.default,SectionList:o.default,Text:c.default,View:s.default},j)},234,[24,235,236,289,294,295,299,301,302,303]); +__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={OS:'web',select:t=>'web'in t?t.web:t.default,get isTesting(){return!1},get Version(){return'0.0.0'}}},235,[]); +__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])),f=e(r(_d[3])),o=n.forwardRef((e,f)=>n.createElement(u.default,(0,t.default)({scrollEventThrottle:1e-4},e,{ref:f}))),c=(0,f.default)(o)},236,[237,11,238,269]); +__d(function(g,_r,i,a,m,_e,d){"use strict";function e(){return e=Object.assign?Object.assign.bind():function(e){for(var n=1;n{this._listRef=e},this._getItem=(e,t)=>{var s=b(this.props.numColumns);if(s>1){for(var n=[],l=0;l{if(null!=e&&v(e)){var t=b(this.props.numColumns);return t>1?Math.ceil(e.length/t):e.length}return 0},this._keyExtractor=(e,t)=>{var s,n=b(this.props.numColumns),l=null!==(s=this.props.keyExtractor)&&void 0!==s?s:d.keyExtractor;return n>1?((0,h.default)(Array.isArray(e),"FlatList: Encountered internal consistency error, expected each item to consist of an array with 1-%s columns; instead, received a single item.",n),e.map((e,s)=>l(e,t*n+s)).join(':')):l(e,t)},this._renderer=(e,t,s,n,o)=>{var u=b(n),f=s=>e?p.createElement(e,s):t?t(s):null,d=e=>{if(u>1){var t=e.item,n=e.index;return(0,h.default)(Array.isArray(t),'Expected array of items with numColumns > 1'),p.createElement(l.default,{style:[y.row,s]},t.map((t,s)=>{var l=f({item:t,index:n*u+s,separators:e.separators});return null!=l?p.createElement(p.Fragment,{key:s},l):null}))}return f(e)};return e?{ListItemComponent:d}:{renderItem:d}},this._memoizedRenderer=(0,c.default)(this._renderer),this._checkProps(this.props),this.props.viewabilityConfigCallbackPairs?this._virtualizedListPairs=this.props.viewabilityConfigCallbackPairs.map(e=>({viewabilityConfig:e.viewabilityConfig,onViewableItemsChanged:this._createOnViewableItemsChanged(e.onViewableItemsChanged)})):this.props.onViewableItemsChanged&&this._virtualizedListPairs.push({viewabilityConfig:this.props.viewabilityConfig,onViewableItemsChanged:this._createOnViewableItemsChanged(this.props.onViewableItemsChanged)})}componentDidUpdate(e){(0,h.default)(e.numColumns===this.props.numColumns,"Changing numColumns on the fly is not supported. Change the key prop on FlatList when changing the number of columns to force a fresh render of the component."),(0,h.default)(e.onViewableItemsChanged===this.props.onViewableItemsChanged,'Changing onViewableItemsChanged on the fly is not supported'),(0,h.default)(!(0,u.default)(e.viewabilityConfig,this.props.viewabilityConfig),'Changing viewabilityConfig on the fly is not supported'),(0,h.default)(e.viewabilityConfigCallbackPairs===this.props.viewabilityConfigCallbackPairs,'Changing viewabilityConfigCallbackPairs on the fly is not supported'),this._checkProps(this.props)}_checkProps(e){var t=e.getItem,s=e.getItemCount,n=e.horizontal,l=e.columnWrapperStyle,o=e.onViewableItemsChanged,u=e.viewabilityConfigCallbackPairs,p=b(this.props.numColumns);(0,h.default)(!t&&!s,'FlatList does not support custom data formats.'),p>1?(0,h.default)(!n,'numColumns does not support horizontal.'):(0,h.default)(!l,'columnWrapperStyle not supported for single column lists'),(0,h.default)(!(o&&u),"FlatList does not support setting both onViewableItemsChanged and viewabilityConfigCallbackPairs.")}_pushMultiColumnViewable(e,t){var s,l=b(this.props.numColumns),o=null!==(s=this.props.keyExtractor)&&void 0!==s?s:d.keyExtractor;t.item.forEach((s,u)=>{(0,h.default)(null!=t.index,'Missing index!');var p=t.index*l+u;e.push((0,n.default)((0,n.default)({},t),{},{item:s,key:o(s,p),index:p}))})}_createOnViewableItemsChanged(e){return t=>{var s=b(this.props.numColumns);if(e)if(s>1){var n=[],l=[];t.viewableItems.forEach(e=>this._pushMultiColumnViewable(l,e)),t.changed.forEach(e=>this._pushMultiColumnViewable(n,e)),e({viewableItems:l,changed:n})}else e(t)}}render(){var e,n=this.props,l=n.numColumns,o=n.columnWrapperStyle,u=n.removeClippedSubviews,h=n.strictMode,d=void 0!==h&&h,c=(0,s.default)(n,C),b=d?this._memoizedRenderer:this._renderer;return p.createElement(f.default,(0,t.default)({},c,{getItem:this._getItem,getItemCount:this._getItemCount,keyExtractor:this._keyExtractor,ref:this._captureRef,viewabilityConfigCallbackPairs:this._virtualizedListPairs,removeClippedSubviews:(e=u,null!=e&&e)},b(this.props.ListItemComponent,this.props.renderItem,o,l,this.props.extraData)))}}var y=o.default.create({row:{flexDirection:'row'}}),w=_},239,[237,29,24,85,23,240,235,21,11,241,266,268]); +__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=function t(n,f,u){if(void 0===u&&(u=-1),0===u)return!0;if(n===f)return!1;if('function'==typeof n&&'function'==typeof f)return!1;if('object'!=typeof n||null===n)return n!==f;if('object'!=typeof f||null===f)return!0;if(n.constructor!==f.constructor)return!0;if(Array.isArray(n)){var o=n.length;if(f.length!==o)return!0;for(var c=0;c=0;s--)if(t(e[s]))return e[s];return null}class O extends _.default{scrollToEnd(e){var t=!e||e.animated,s=this.props.getItemCount(this.props.data)-1;if(!(s<0)){var r=this.__getFrameMetricsApprox(s,this.props),i=Math.max(0,r.offset+r.length+this._footerLength-this._scrollMetrics.visibleLength);null!=this._scrollRef&&(null!=this._scrollRef.scrollTo?this._scrollRef.scrollTo(w(this.props.horizontal)?{x:i,animated:t}:{y:i,animated:t}):console.warn("No scrollTo method provided. This may be because you have two nested VirtualizedLists with the same orientation, or because you are using a custom component that does not implement scrollTo."))}}scrollToIndex(e){var t=this.props,s=t.data,r=t.horizontal,i=t.getItemCount,o=t.getItemLayout,l=t.onScrollToIndexFailed,n=e.animated,h=e.index,d=e.viewOffset,c=e.viewPosition;if((0,b.default)(h>=0,"scrollToIndex out of range: requested index "+h+" but minimum is 0"),(0,b.default)(i(s)>=1,"scrollToIndex out of range: item length "+i(s)+" but minimum is 1"),(0,b.default)(hthis._highestMeasuredFrameIndex)return(0,b.default)(!!l,"scrollToIndex should be used in conjunction with getItemLayout or onScrollToIndexFailed, otherwise there is no way to know the location of offscreen indices or handle failures."),void l({averageItemLength:this._averageCellLength,highestMeasuredFrameIndex:this._highestMeasuredFrameIndex,index:h});var u=this.__getFrameMetricsApprox(Math.floor(h),this.props),p=Math.max(0,this._getOffsetApprox(h,this.props)-(c||0)*(this._scrollMetrics.visibleLength-u.length))-(d||0);null!=this._scrollRef&&(null!=this._scrollRef.scrollTo?this._scrollRef.scrollTo(r?{x:p,animated:n}:{y:p,animated:n}):console.warn("No scrollTo method provided. This may be because you have two nested VirtualizedLists with the same orientation, or because you are using a custom component that does not implement scrollTo."))}scrollToItem(e){for(var t=e.item,s=this.props,i=s.data,o=s.getItem,l=(0,s.getItemCount)(i),n=0;n{e.recordInteraction()}),this._viewabilityTuples.forEach(e=>{e.viewabilityHelper.recordInteraction()}),this._updateViewableItems(this.props,this.state.cellsAroundViewport)}flashScrollIndicators(){null!=this._scrollRef&&this._scrollRef.flashScrollIndicators()}getScrollResponder(){if(this._scrollRef&&this._scrollRef.getScrollResponder)return this._scrollRef.getScrollResponder()}getScrollableNode(){return this._scrollRef&&this._scrollRef.getScrollableNode?this._scrollRef.getScrollableNode():this._scrollRef}getScrollRef(){return this._scrollRef&&this._scrollRef.getScrollRef?this._scrollRef.getScrollRef():this._scrollRef}_getCellKey(){var e;return(null==(e=this.context)?void 0:e.cellKey)||'rootList'}hasMore(){return this._hasMore}constructor(e){var t;if(super(e),this._getScrollMetrics=()=>this._scrollMetrics,this._getOutermostParentListRef=()=>this._isNestedWithSameOrientation()?this.context.getOutermostParentListRef():this,this._registerAsNestedChild=e=>{this._nestedChildLists.add(e.ref,e.cellKey),this._hasInteracted&&e.ref.recordInteraction()},this._unregisterAsNestedChild=e=>{this._nestedChildLists.remove(e.ref)},this._onUpdateSeparators=(e,t)=>{e.forEach(e=>{var s=null!=e&&this._cellRefs[e];s&&s.updateSeparatorProps(t)})},this._getSpacerKey=e=>e?'height':'width',this._averageCellLength=0,this._cellRefs={},this._frames={},this._footerLength=0,this._hasTriggeredInitialScrollToIndex=!1,this._hasInteracted=!1,this._hasMore=!1,this._hasWarned={},this._headerLength=0,this._hiPriInProgress=!1,this._highestMeasuredFrameIndex=0,this._indicesToKeys=new Map,this._lastFocusedCellKey=null,this._nestedChildLists=new p.default,this._offsetFromParentVirtualizedList=0,this._prevParentOffset=0,this._scrollMetrics={contentLength:0,dOffset:0,dt:10,offset:0,timestamp:0,velocity:0,visibleLength:0,zoomScale:1},this._scrollRef=null,this._sentStartForContentLength=0,this._sentEndForContentLength=0,this._totalCellLength=0,this._totalCellsMeasured=0,this._viewabilityTuples=[],this._captureScrollRef=e=>{this._scrollRef=e},this._defaultRenderScrollComponent=e=>{var t,r=e.onRefresh;return this._isNestedWithSameOrientation()?M.createElement(l.default,e):r?((0,b.default)('boolean'==typeof e.refreshing,'`refreshing` prop must be set as a boolean in order to use `onRefresh`, but got `'+JSON.stringify(null!==(t=e.refreshing)&&void 0!==t?t:'undefined')+'`'),M.createElement(o.default,(0,s.default)({},e,{refreshControl:null==e.refreshControl?M.createElement(i.default,{refreshing:e.refreshing,onRefresh:r,progressViewOffset:e.progressViewOffset}):e.refreshControl}))):M.createElement(o.default,e)},this._onCellLayout=(e,t,s)=>{var r=e.nativeEvent.layout,i={offset:this._selectOffset(r),length:this._selectLength(r),index:s,inLayout:!0},o=this._frames[t];o&&i.offset===o.offset&&i.length===o.length&&s===o.index?this._frames[t].inLayout=!0:(this._totalCellLength+=i.length-(o?o.length:0),this._totalCellsMeasured+=o?0:1,this._averageCellLength=this._totalCellLength/this._totalCellsMeasured,this._frames[t]=i,this._highestMeasuredFrameIndex=Math.max(this._highestMeasuredFrameIndex,s),this._scheduleCellsToRenderUpdate()),this._triggerRemeasureForChildListsInCell(t),this._computeBlankness(),this._updateViewableItems(this.props,this.state.cellsAroundViewport)},this._onCellUnmount=e=>{delete this._cellRefs[e];var t=this._frames[e];t&&(this._frames[e]=(0,r.default)((0,r.default)({},t),{},{inLayout:!1}))},this._onLayout=e=>{this._isNestedWithSameOrientation()?this.measureLayoutRelativeToContainingList():this._scrollMetrics.visibleLength=this._selectLength(e.nativeEvent.layout),this.props.onLayout&&this.props.onLayout(e),this._scheduleCellsToRenderUpdate(),this._maybeCallOnEdgeReached()},this._onLayoutEmpty=e=>{this.props.onLayout&&this.props.onLayout(e)},this._onLayoutFooter=e=>{this._triggerRemeasureForChildListsInCell(this._getFooterCellKey()),this._footerLength=this._selectLength(e.nativeEvent.layout)},this._onLayoutHeader=e=>{this._headerLength=this._selectLength(e.nativeEvent.layout)},this._onContentSizeChange=(e,t)=>{e>0&&t>0&&null!=this.props.initialScrollIndex&&this.props.initialScrollIndex>0&&!this._hasTriggeredInitialScrollToIndex&&(null==this.props.contentOffset&&(this.props.initialScrollIndex{var t=e.offset-this._offsetFromParentVirtualizedList,s=e.visibleLength,r=t-this._scrollMetrics.offset;return{visibleLength:s,contentLength:this._scrollMetrics.contentLength,offset:t,dOffset:r}},this._onScroll=e=>{this._nestedChildLists.forEach(t=>{t._onScroll(e)}),this.props.onScroll&&this.props.onScroll(e);var t=e.timeStamp,s=this._selectLength(e.nativeEvent.layoutMeasurement),r=this._selectLength(e.nativeEvent.contentSize),i=this._selectOffset(e.nativeEvent.contentOffset),o=i-this._scrollMetrics.offset;if(this._isNestedWithSameOrientation()){if(0===this._scrollMetrics.contentLength)return;var l=this._convertParentScrollMetrics({visibleLength:s,offset:i});s=l.visibleLength,r=l.contentLength,i=l.offset,o=l.dOffset}var n=this._scrollMetrics.timestamp?Math.max(1,t-this._scrollMetrics.timestamp):1,h=o/n;n>500&&this._scrollMetrics.dt>500&&r>5*s&&!this._hasWarned.perf&&((0,c.default)("VirtualizedList: You have a large list that is slow to update - make sure your renderItem function renders components that follow React performance best practices like PureComponent, shouldComponentUpdate, etc.",{dt:n,prevDt:this._scrollMetrics.dt,contentLength:r}),this._hasWarned.perf=!0);var d=e.nativeEvent.zoomScale<0?1:e.nativeEvent.zoomScale;this._scrollMetrics={contentLength:r,dt:n,dOffset:o,offset:i,timestamp:t,velocity:h,visibleLength:s,zoomScale:d},this._updateViewableItems(this.props,this.state.cellsAroundViewport),this.props&&(this._maybeCallOnEdgeReached(),0!==h&&this._fillRateHelper.activate(),this._computeBlankness(),this._scheduleCellsToRenderUpdate())},this._onScrollBeginDrag=e=>{this._nestedChildLists.forEach(t=>{t._onScrollBeginDrag(e)}),this._viewabilityTuples.forEach(e=>{e.viewabilityHelper.recordInteraction()}),this._hasInteracted=!0,this.props.onScrollBeginDrag&&this.props.onScrollBeginDrag(e)},this._onScrollEndDrag=e=>{this._nestedChildLists.forEach(t=>{t._onScrollEndDrag(e)});var t=e.nativeEvent.velocity;t&&(this._scrollMetrics.velocity=this._selectOffset(t)),this._computeBlankness(),this.props.onScrollEndDrag&&this.props.onScrollEndDrag(e)},this._onMomentumScrollBegin=e=>{this._nestedChildLists.forEach(t=>{t._onMomentumScrollBegin(e)}),this.props.onMomentumScrollBegin&&this.props.onMomentumScrollBegin(e)},this._onMomentumScrollEnd=e=>{this._nestedChildLists.forEach(t=>{t._onMomentumScrollEnd(e)}),this._scrollMetrics.velocity=0,this._computeBlankness(),this.props.onMomentumScrollEnd&&this.props.onMomentumScrollEnd(e)},this._updateCellsToRender=()=>{this._updateViewableItems(this.props,this.state.cellsAroundViewport),this.setState((e,t)=>{var s=this._adjustCellsAroundViewport(t,e.cellsAroundViewport),r=O._createRenderMask(t,s,this._getNonViewportRenderRegions(t));return s.first===e.cellsAroundViewport.first&&s.last===e.cellsAroundViewport.last&&r.equals(e.renderMask)?null:{cellsAroundViewport:s,renderMask:r}})},this._createViewToken=(e,t,s)=>{var r=s.data,i=(0,s.getItem)(r,e);return{index:e,item:i,key:this._keyExtractor(i,e,s),isViewable:t}},this._getOffsetApprox=(e,t)=>{if(Number.isInteger(e))return this.__getFrameMetricsApprox(e,t).offset;var s=this.__getFrameMetricsApprox(Math.floor(e),t),r=e-Math.floor(e);return s.offset+r*s.length},this.__getFrameMetricsApprox=(e,t)=>{var s=this._getFrameMetrics(e,t);if(s&&s.index===e)return s;var r=t.data,i=t.getItemCount,o=t.getItemLayout;return(0,b.default)(e>=0&&e{var s=t.data,r=t.getItem,i=t.getItemCount,o=t.getItemLayout;(0,b.default)(e>=0&&e{if(!this._lastFocusedCellKey||!this._cellRefs[this._lastFocusedCellKey])return[];var t=this._cellRefs[this._lastFocusedCellKey].props.index,s=e.getItemCount(e.data);if(t>=s||this._keyExtractor(e.getItem(e.data,t),t,e)!==this._lastFocusedCellKey)return[];for(var r=t,i=0,o=r-1;o>=0&&i({viewabilityHelper:new v.default(e.viewabilityConfig),onViewableItemsChanged:e.onViewableItemsChanged}));else{var n=this.props,d=n.onViewableItemsChanged,u=n.viewabilityConfig;d&&this._viewabilityTuples.push({viewabilityHelper:new v.default(u),onViewableItemsChanged:d})}var _=O._initialRenderRegion(e);this.state={cellsAroundViewport:_,renderMask:O._createRenderMask(e,_)},this.invertedWheelEventHandler=e=>{var t=this.props.horizontal?e.target.scrollLeft:e.target.scrollTop,s=this.props.horizontal?e.target.scrollWidth:e.target.scrollHeight,r=this.props.horizontal?e.target.clientWidth:e.target.clientHeight,i=s>r,o=this.props.horizontal?e.deltaX||e.wheelDeltaX:e.deltaY||e.wheelDeltaY,l=o;i&&(l=o<0?Math.min(o+t,0):Math.max(o-(s-r-t),0));var n=o-l;if(this.props.inverted&&this._scrollRef&&this._scrollRef.getScrollableNode){var h=this._scrollRef.getScrollableNode();if(this.props.horizontal){e.target.scrollLeft+=n;var d=h.scrollLeft-l;h.scrollLeft=this.props.getItemLayout?d:Math.min(d,this._totalCellLength)}else{e.target.scrollTop+=n;var c=h.scrollTop-l;h.scrollTop=this.props.getItemLayout?c:Math.min(c,this._totalCellLength)}e.preventDefault()}}}_checkProps(e){var t=e.onScroll,s=e.windowSize,r=e.getItemCount,i=e.data,o=e.initialScrollIndex;(0,b.default)(!t||!t.__isNative,"Components based on VirtualizedList must be wrapped with Animated.createAnimatedComponent to support native onScroll events with useNativeDriver"),(0,b.default)(V(s)>0,'VirtualizedList: The windowSize prop must be present and set to a value greater than 0.'),(0,b.default)(r,'VirtualizedList: The "getItemCount" prop must be provided');var l=r(i);null==o||this._hasTriggeredInitialScrollToIndex||!(o<0||l>0&&o>=l)||this._hasWarned.initialScrollIndex||(console.warn("initialScrollIndex \""+o+"\" is not valid (list has "+l+" items)"),this._hasWarned.initialScrollIndex=!0)}static _createRenderMask(e,t,s){var r=e.getItemCount(e.data);(0,b.default)(t.first>=0&&t.last>=t.first-1&&t.last0){for(var o=0,l=[t,...null!=s?s:[]];o=0;o--)if(t.has(o+i)){s.addCells({first:o,last:o});break}}_adjustCellsAroundViewport(e,t){var s,r=e.data,i=e.getItemCount,o=T(e.onEndReachedThreshold),l=this._scrollMetrics,n=l.contentLength,h=l.offset,d=l.visibleLength,c=n-d-h;if(d<=0||n<=0)return t.last>=i(r)?O._constrainToItemCount(t,e):t;if(e.disableVirtualization){var u=c=Number.EPSILON)return t.last>=i(r)?O._constrainToItemCount(t,e):t;s=(0,L.computeWindowedRenderLimits)(e,x(e.maxToRenderPerBatch),V(e.windowSize),t,this.__getFrameMetricsApprox,this._scrollMetrics),(0,b.default)(s.last0){var p=this._findFirstChildWithMore(s.first,s.last);s.last=null!=p?p:s.last}return s}_findFirstChildWithMore(e,t){for(var s=e;s<=t;s++){var r=this._indicesToKeys.get(s);if(null!=r&&this._nestedChildLists.anyInCell(r,e=>e.hasMore()))return s}return null}componentDidMount(){this._isNestedWithSameOrientation()&&this.context.registerAsNestedChild({ref:this,cellKey:this.context.cellKey}),this.setupWebWheelHandler()}componentWillUnmount(){this._isNestedWithSameOrientation()&&this.context.unregisterAsNestedChild({ref:this}),this._updateCellsToRenderBatcher.dispose({abort:!0}),this._viewabilityTuples.forEach(e=>{e.viewabilityHelper.dispose()}),this._fillRateHelper.deactivateAndFlush(),this.teardownWebWheelHandler()}setupWebWheelHandler(){this._scrollRef&&this._scrollRef.getScrollableNode?this._scrollRef.getScrollableNode().addEventListener('wheel',this.invertedWheelEventHandler):setTimeout(()=>this.setupWebWheelHandler(),50)}teardownWebWheelHandler(){this._scrollRef&&this._scrollRef.getScrollableNode&&this._scrollRef.getScrollableNode().removeEventListener('wheel',this.invertedWheelEventHandler)}static getDerivedStateFromProps(e,t){if(e.getItemCount(e.data)===t.renderMask.numCells())return t;var s=O._constrainToItemCount(t.cellsAroundViewport,e);return{cellsAroundViewport:s,renderMask:O._createRenderMask(e,s)}}_pushCells(e,t,r,i,o,l){var n,h=this,d=this.props,c=d.CellRendererComponent,u=d.ItemSeparatorComponent,p=d.ListHeaderComponent,f=d.ListItemComponent,_=d.data,v=d.debug,C=d.getItem,L=d.getItemCount,b=d.getItemLayout,S=d.horizontal,I=d.renderItem,R=p?1:0,w=L(_)-1;o=Math.min(w,o);for(var x=function(){var i=C(_,E),o=h._keyExtractor(i,E,h.props);h._indicesToKeys.set(E,o),r.has(E+R)&&t.push(e.length);var d=null==b||v||h._fillRateHelper.enabled();e.push(M.createElement(y.default,(0,s.default)({CellRendererComponent:c,ItemSeparatorComponent:Eh._onCellFocusCapture(o),onUnmount:h._onCellUnmount,ref:e=>{h._cellRefs[o]=e},renderItem:I},d&&{onCellLayout:h._onCellLayout}))),n=o},E=i;E<=o;E++)x()}static _constrainToItemCount(e,t){var s=t.getItemCount(t.data),r=Math.min(s-1,e.last),i=x(t.maxToRenderPerBatch);return{first:(0,d.default)(0,s-1-i,e.first),last:r}}_isNestedWithSameOrientation(){var e=this.context;return!(!e||!!e.horizontal!==w(this.props.horizontal))}_keyExtractor(e,t,s){if(null!=s.keyExtractor)return s.keyExtractor(e,t);var r=(0,L.keyExtractor)(e,t);return r===String(t)&&(I=!0,e.type&&e.type.displayName&&(R=e.type.displayName)),r}render(){this._checkProps(this.props);var e=this.props,s=e.ListEmptyComponent,i=e.ListFooterComponent,o=e.ListHeaderComponent,n=this.props,h=n.data,c=n.horizontal,u=this.props.inverted?w(this.props.horizontal)?z.horizontallyInverted:z.verticallyInverted:null,p=[],f=new Set(this.props.stickyHeaderIndices),_=[];if(o){f.has(0)&&_.push(0);var v=M.isValidElement(o)?o:M.createElement(o,null);p.push(M.createElement(C.VirtualizedListCellContextProvider,{cellKey:this._getCellKey()+'-header',key:"$header"},M.createElement(l.default,{onLayout:this._onLayoutHeader,style:[u,this.props.ListHeaderComponentStyle]},v)))}var y=this.props.getItemCount(h);if(0===y&&s){var L=M.isValidElement(s)?s:M.createElement(s,null);p.push(M.createElement(C.VirtualizedListCellContextProvider,{cellKey:this._getCellKey()+'-empty',key:"$empty"},M.cloneElement(L,{onLayout:e=>{this._onLayoutEmpty(e),L.props.onLayout&&L.props.onLayout(e)},style:[u,L.props.style]})))}if(y>0){I=!1,R='';for(var b,S=this._getSpacerKey(!c),x=this.state.renderMask.enumerateRegions(),E=k(x,e=>e.isSpacer),T=(0,t.default)(x);!(b=T()).done;){var F=b.value;if(F.isSpacer){if(this.props.disableVirtualization)continue;var V=F===E&&!this.props.getItemLayout?(0,d.default)(F.first-1,F.last,this._highestMeasuredFrameIndex):F.last,O=this.__getFrameMetricsApprox(F.first,this.props),A=this.__getFrameMetricsApprox(V,this.props),P=A.offset+A.length-O.offset;p.push(M.createElement(l.default,{key:"$spacer-"+F.first,style:{[S]:P}}))}else this._pushCells(p,_,f,F.first,F.last,u)}!this._hasWarned.keys&&I&&(console.warn("VirtualizedList: missing keys for items, make sure to specify a key or id property on each item or provide a custom keyExtractor.",R),this._hasWarned.keys=!0)}if(i){var N=M.isValidElement(i)?i:M.createElement(i,null);p.push(M.createElement(C.VirtualizedListCellContextProvider,{cellKey:this._getFooterCellKey(),key:"$footer"},M.createElement(l.default,{onLayout:this._onLayoutFooter,style:[u,this.props.ListFooterComponentStyle]},N)))}var W,H=(0,r.default)((0,r.default)({},this.props),{},{onContentSizeChange:this._onContentSizeChange,onLayout:this._onLayout,onScroll:this._onScroll,onScrollBeginDrag:this._onScrollBeginDrag,onScrollEndDrag:this._onScrollEndDrag,onMomentumScrollBegin:this._onMomentumScrollBegin,onMomentumScrollEnd:this._onMomentumScrollEnd,scrollEventThrottle:(W=this.props.scrollEventThrottle,null!=W?W:50),invertStickyHeaders:void 0!==this.props.invertStickyHeaders?this.props.invertStickyHeaders:this.props.inverted,stickyHeaderIndices:_,style:u?[u,this.props.style]:this.props.style});this._hasMore=this.state.cellsAroundViewport.last{e.viewabilityHelper.resetViewableIndices()});var i=this._hiPriInProgress;this._scheduleCellsToRenderUpdate(),i&&(this._hiPriInProgress=!1)}_computeBlankness(){this._fillRateHelper.computeBlankness(this.props,this.state.cellsAroundViewport,this._scrollMetrics)}_onCellFocusCapture(e){this._lastFocusedCellKey=e,this._updateCellsToRender()}_triggerRemeasureForChildListsInCell(e){this._nestedChildLists.forEachInCell(e,e=>{e.measureLayoutRelativeToContainingList()})}measureLayoutRelativeToContainingList(){try{if(!this._scrollRef)return;this._scrollRef.measureLayout(this.context.getOutermostParentListRef().getScrollRef(),(e,t,s,r)=>{this._offsetFromParentVirtualizedList=this._selectOffset({x:e,y:t}),this._scrollMetrics.contentLength=this._selectLength({width:s,height:r});var i=this._convertParentScrollMetrics(this.context.getScrollMetrics());(this._scrollMetrics.visibleLength!==i.visibleLength||this._scrollMetrics.offset!==i.offset)&&(this._scrollMetrics.visibleLength=i.visibleLength,this._scrollMetrics.offset=i.offset,this._nestedChildLists.forEach(e=>{e.measureLayoutRelativeToContainingList()}))},e=>{console.warn("VirtualizedList: Encountered an error while measuring a list's offset from its containing VirtualizedList.")})}catch(e){console.warn('measureLayoutRelativeToContainingList threw an error',e.stack)}}_getFooterCellKey(){return this._getCellKey()+'-footer'}_renderDebugOverlay(){for(var e=this._scrollMetrics.visibleLength/(this._scrollMetrics.contentLength||1),t=[],s=this.props.getItemCount(this.props.data),r=0;rM.createElement(l.default,{key:'f'+s,style:[z.debugOverlayBase,z.debugOverlayFrame,{top:t.offset*e,height:t.length*e}]})),M.createElement(l.default,{style:[z.debugOverlayBase,z.debugOverlayFrameLast,{top:o*e,height:h*e}]}),M.createElement(l.default,{style:[z.debugOverlayBase,z.debugOverlayFrameVis,{top:d*e,height:c*e}]}))}_selectLength(e){return w(this.props.horizontal)?e.width:e.height}_selectOffset(e){return w(this.props.horizontal)?e.x:e.y}_maybeCallOnEdgeReached(){var e=this.props,t=e.data,s=e.getItemCount,r=e.onStartReached,i=e.onStartReachedThreshold,o=e.onEndReached,l=e.onEndReachedThreshold,n=e.initialScrollIndex,h=this._scrollMetrics,d=h.contentLength,c=h.visibleLength,u=h.offset,p=u,f=d-c-u;p<.001&&(p=0),f<.001&&(f=0);var _=p<=(null!=i?i*c:2),v=f<=(null!=l?l*c:2);o&&this.state.cellsAroundViewport.last===s(t)-1&&v&&this._scrollMetrics.contentLength!==this._sentEndForContentLength?(this._sentEndForContentLength=this._scrollMetrics.contentLength,o({distanceFromEnd:f})):null!=r&&0===this.state.cellsAroundViewport.first&&_&&this._scrollMetrics.contentLength!==this._sentStartForContentLength?n&&0===this._scrollMetrics.timestamp||(this._sentStartForContentLength=this._scrollMetrics.contentLength,r({distanceFromStart:p})):(this._sentStartForContentLength=_?this._sentStartForContentLength:0,this._sentEndForContentLength=v?this._sentEndForContentLength:0)}_scheduleCellsToRenderUpdate(){var e=this.state.cellsAroundViewport,t=e.first,s=e.last,r=this._scrollMetrics,i=r.offset,o=r.visibleLength,l=r.velocity,n=this.props.getItemCount(this.props.data),h=!1,d=E(this.props.onStartReachedThreshold),c=T(this.props.onEndReachedThreshold);if(t>0){var u=i-this.__getFrameMetricsApprox(t,this.props).offset;h=u<0||l<-2&&u=0&&s2&&p{s.viewabilityHelper.onUpdate(e,this._scrollMetrics.offset,this._scrollMetrics.visibleLength,this._getFrameMetrics,this._createViewToken,s.onViewableItemsChanged,t)})}}O.contextType=C.VirtualizedListContext;var z=n.default.create({verticallyInverted:{transform:'scaleY(-1)'},horizontallyInverted:{transform:'scaleX(-1)'},debug:{flex:1},debugOverlayBase:{position:'absolute',top:0,right:0},debugOverlay:{bottom:0,width:20,borderColor:'blue',borderWidth:1},debugOverlayFrame:{left:0,backgroundColor:'orange'},debugOverlayFrameLast:{left:0,borderColor:'green',borderWidth:2},debugOverlayFrameVis:{left:0,borderColor:'red',borderWidth:2}}),A=O},241,[242,237,24,245,246,85,23,252,257,258,259,260,261,262,263,264,265,266,21,267,11]); +__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,t=_r(d[0]),r=(e=t)&&e.__esModule?e:{default:e};function n(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=(0,r.default)(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},242,[243]); +__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,t=_r(d[0]),r=(e=t)&&e.__esModule?e:{default:e};function n(e,t){if(e){if("string"==typeof e)return(0,r.default)(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.default)(e,t):void 0}}},243,[244]); +__d(function(g,_r,i,_a,m,_e,d){"use strict";function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nthis.isTouching,this.scrollResponderHandleStartShouldSetResponderCapture=e=>this.scrollResponderIsAnimating(),this.scrollResponderHandleTerminationRequest=()=>!this.observedScrollSinceBecomingResponder,this.scrollResponderHandleTouchEnd=e=>{var o=e.nativeEvent;this.isTouching=0!==o.touches.length,this.props.onTouchEnd&&this.props.onTouchEnd(e)},this.scrollResponderHandleResponderRelease=e=>{this.props.onResponderRelease&&this.props.onResponderRelease(e);var o=u.default.currentlyFocusedField();this.props.keyboardShouldPersistTaps||null==o||e.target===o||this.observedScrollSinceBecomingResponder||this.becameResponderWhileAnimating||(this.props.onScrollResponderKeyboardDismissed&&this.props.onScrollResponderKeyboardDismissed(e),u.default.blurTextInput(o))},this.scrollResponderHandleScroll=e=>{this.observedScrollSinceBecomingResponder=!0,this.props.onScroll&&this.props.onScroll(e)},this.scrollResponderHandleResponderGrant=e=>{this.observedScrollSinceBecomingResponder=!1,this.props.onResponderGrant&&this.props.onResponderGrant(e),this.becameResponderWhileAnimating=this.scrollResponderIsAnimating()},this.scrollResponderHandleScrollBeginDrag=e=>{this.props.onScrollBeginDrag&&this.props.onScrollBeginDrag(e)},this.scrollResponderHandleScrollEndDrag=e=>{this.props.onScrollEndDrag&&this.props.onScrollEndDrag(e)},this.scrollResponderHandleMomentumScrollBegin=e=>{this.lastMomentumScrollBeginTime=Date.now(),this.props.onMomentumScrollBegin&&this.props.onMomentumScrollBegin(e)},this.scrollResponderHandleMomentumScrollEnd=e=>{this.lastMomentumScrollEndTime=Date.now(),this.props.onMomentumScrollEnd&&this.props.onMomentumScrollEnd(e)},this.scrollResponderHandleTouchStart=e=>{this.isTouching=!0,this.props.onTouchStart&&this.props.onTouchStart(e)},this.scrollResponderHandleTouchMove=e=>{this.props.onTouchMove&&this.props.onTouchMove(e)},this.scrollResponderIsAnimating=()=>Date.now()-this.lastMomentumScrollEndTime<16||this.lastMomentumScrollEndTime{if('number'==typeof e)console.warn('`scrollResponderScrollTo(x, y, animated)` is deprecated. Use `scrollResponderScrollTo({x: 5, y: 5, animated: true})` instead.');else{var n=e||b;e=n.x,o=n.y,l=n.animated}var t=this.getScrollableNode(),s=e||0,i=o||0;null!=t&&('function'==typeof t.scroll?t.scroll({top:i,left:s,behavior:l?'smooth':'auto'}):(t.scrollLeft=s,t.scrollTop=i))},this.scrollResponderZoomTo=(e,o)=>{(0,i.default)('zoomToRect is not implemented')},this.scrollResponderScrollNativeHandleToKeyboard=(e,o,l)=>{this.additionalScrollOffset=o||0,this.preventNegativeScrollOffset=!!l,S.default.measureLayout(e,this.getInnerViewNode(),this.scrollResponderTextInputFocusError,this.scrollResponderInputMeasureAndScrollToKeyboard)},this.scrollResponderInputMeasureAndScrollToKeyboard=(e,o,l,n)=>{var s=t.default.get('window').height;this.keyboardWillOpenTo&&(s=this.keyboardWillOpenTo.endCoordinates.screenY);var i=o-s+n+this.additionalScrollOffset;this.preventNegativeScrollOffset&&(i=Math.max(0,i)),this.scrollResponderScrollTo({x:0,y:i,animated:!0}),this.additionalOffset=0,this.preventNegativeScrollOffset=!1},this.scrollResponderKeyboardWillShow=e=>{this.keyboardWillOpenTo=e,this.props.onKeyboardWillShow&&this.props.onKeyboardWillShow(e)},this.scrollResponderKeyboardWillHide=e=>{this.keyboardWillOpenTo=null,this.props.onKeyboardWillHide&&this.props.onKeyboardWillHide(e)},this.scrollResponderKeyboardDidShow=e=>{e&&(this.keyboardWillOpenTo=e),this.props.onKeyboardDidShow&&this.props.onKeyboardDidShow(e)},this.scrollResponderKeyboardDidHide=e=>{this.keyboardWillOpenTo=null,this.props.onKeyboardDidHide&&this.props.onKeyboardDidHide(e)},this.flashScrollIndicators=()=>{this.scrollResponderFlashScrollIndicators()},this.getScrollResponder=()=>this,this.getScrollableNode=()=>this._scrollNodeRef,this.getInnerViewRef=()=>this._innerViewRef,this.getInnerViewNode=()=>this._innerViewRef,this.getNativeScrollRef=()=>this._scrollNodeRef,this.scrollTo=(e,o,l)=>{if('number'==typeof e)console.warn('`scrollTo(y, x, animated)` is deprecated. Use `scrollTo({x: 5, y: 5, animated: true})` instead.');else{var n=e||b;o=n.x,e=n.y,l=n.animated}this.scrollResponderScrollTo({x:o||0,y:e||0,animated:!1!==l})},this.scrollToEnd=e=>{var o=!1!==(e&&e.animated),l=this.props.horizontal,n=this.getScrollableNode(),t=l?n.scrollWidth:0,s=l?0:n.scrollHeight;this.scrollResponderScrollTo({x:t,y:s,animated:o})},this._handleContentOnLayout=e=>{var o=e.nativeEvent.layout,l=o.width,n=o.height;this.props.onContentSizeChange(l,n)},this._handleScroll=e=>{'on-drag'===this.props.keyboardDismissMode&&(0,s.default)(),this.scrollResponderHandleScroll(e)},this._setInnerViewRef=e=>{this._innerViewRef=e},this._setScrollNodeRef=e=>{this._scrollNodeRef=e,null!=e&&(e.getScrollResponder=this.getScrollResponder,e.getInnerViewNode=this.getInnerViewNode,e.getInnerViewRef=this.getInnerViewRef,e.getNativeScrollRef=this.getNativeScrollRef,e.getScrollableNode=this.getScrollableNode,e.scrollTo=this.scrollTo,e.scrollToEnd=this.scrollToEnd,e.flashScrollIndicators=this.flashScrollIndicators,e.scrollResponderZoomTo=this.scrollResponderZoomTo,e.scrollResponderScrollNativeHandleToKeyboard=this.scrollResponderScrollNativeHandleToKeyboard),(0,c.default)(this.props.forwardedRef)(e)}}scrollResponderHandleStartShouldSetResponder(){return!1}scrollResponderHandleResponderReject(){(0,y.default)(!1,"ScrollView doesn't take rejection well - scrolls anyway")}scrollResponderFlashScrollIndicators(){}scrollResponderTextInputFocusError(e){console.error('Error measuring text field: ',e)}render(){var e=this.props,t=e.contentContainerStyle,s=e.horizontal,c=e.onContentSizeChange,p=e.refreshControl,u=e.stickyHeaderIndices,S=e.pagingEnabled,y=(e.forwardedRef,e.keyboardDismissMode,e.onScroll,e.centerContent),b=(0,n.default)(e,T),v={};c&&(v={onLayout:this._handleContentOnLayout});var H=!s&&Array.isArray(u),E=H||S?f.default.Children.map(this.props.children,(e,o)=>{var l=H&&u.indexOf(o)>-1;return null!=e&&(l||S)?f.default.createElement(R.default,{style:[l&&w.stickyHeader,S&&w.pagingEnabledChild]},e):e}):this.props.children,C=f.default.createElement(R.default,(0,l.default)({},v,{children:E,collapsable:!1,ref:this._setInnerViewRef,style:[s&&w.contentContainerHorizontal,y&&w.contentContainerCenterContent,t]})),M=s?w.baseHorizontal:w.baseVertical,D=s?w.pagingEnabledHorizontal:w.pagingEnabledVertical,I=(0,o.default)((0,o.default)({},b),{},{style:[M,S&&D,this.props.style],onTouchStart:this.scrollResponderHandleTouchStart,onTouchMove:this.scrollResponderHandleTouchMove,onTouchEnd:this.scrollResponderHandleTouchEnd,onScrollBeginDrag:this.scrollResponderHandleScrollBeginDrag,onScrollEndDrag:this.scrollResponderHandleScrollEndDrag,onMomentumScrollBegin:this.scrollResponderHandleMomentumScrollBegin,onMomentumScrollEnd:this.scrollResponderHandleMomentumScrollEnd,onStartShouldSetResponder:this.scrollResponderHandleStartShouldSetResponder,onStartShouldSetResponderCapture:this.scrollResponderHandleStartShouldSetResponderCapture,onScrollShouldSetResponder:this.scrollResponderHandleScrollShouldSetResponder,onScroll:this._handleScroll,onResponderGrant:this.scrollResponderHandleResponderGrant,onResponderTerminationRequest:this.scrollResponderHandleTerminationRequest,onResponderTerminate:this.scrollResponderHandleTerminate,onResponderRelease:this.scrollResponderHandleResponderRelease,onResponderReject:this.scrollResponderHandleResponderReject}),N=h.default;(0,i.default)(void 0!==N,'ScrollViewClass must not be undefined');var x=f.default.createElement(N,(0,l.default)({},I,{ref:this._setScrollNodeRef}),C);return p?f.default.cloneElement(p,{style:I.style},x):x}}var H={flexGrow:1,flexShrink:1,transform:'translateZ(0)',WebkitOverflowScrolling:'touch'},w=p.default.create({baseVertical:(0,o.default)((0,o.default)({},H),{},{flexDirection:'column',overflowX:'hidden',overflowY:'auto'}),baseHorizontal:(0,o.default)((0,o.default)({},H),{},{flexDirection:'row',overflowX:'auto',overflowY:'hidden'}),contentContainerHorizontal:{flexDirection:'row'},contentContainerCenterContent:{justifyContent:'center',flexGrow:1},stickyHeader:{position:'sticky',top:0,zIndex:10},pagingEnabledHorizontal:{scrollSnapType:'x mandatory'},pagingEnabledVertical:{scrollSnapType:'y mandatory'},pagingEnabledChild:{scrollSnapAlign:'start'}}),E=f.default.forwardRef((e,o)=>f.default.createElement(v,(0,l.default)({},e,{forwardedRef:o})));E.displayName='ScrollView';var C=E},246,[24,237,29,20,247,21,104,235,249,23,248,98,85,11,250]); +__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]),u=(e=t)&&e.__esModule?e:{default:e},l=()=>{u.default.blurTextInput(u.default.currentlyFocusedField())}},247,[248]); +__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,u=r(d[0]),t=(e=u)&&e.__esModule?e:{default:e},l={_currentlyFocusedNode:null,currentlyFocusedField(){return document.activeElement!==this._currentlyFocusedNode&&(this._currentlyFocusedNode=null),this._currentlyFocusedNode},focusTextInput(e){null!==e&&(this._currentlyFocusedNode=e,document.activeElement!==e&&t.default.focus(e))},blurTextInput(e){null!==e&&(this._currentlyFocusedNode=null,document.activeElement===e&&t.default.blur(e))}}},248,[98]); +__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=e(r(_d[0])),o=e(r(_d[1])),n=(function(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})(r(_d[2])),l=e(r(_d[3])),c=e(r(_d[4])),u=e(r(_d[5])),s=["onScroll","onTouchMove","onWheel","scrollEnabled","scrollEventThrottle","showsHorizontalScrollIndicator","showsVerticalScrollIndicator","style"];function f(e){return{nativeEvent:{contentOffset:{get x(){return e.target.scrollLeft},get y(){return e.target.scrollTop}},contentSize:{get height(){return e.target.scrollHeight},get width(){return e.target.scrollWidth}},layoutMeasurement:{get height(){return e.target.offsetHeight},get width(){return e.target.offsetWidth}}},timeStamp:Date.now()}}var d=n.forwardRef((e,l)=>{var d=e.onScroll,v=e.onTouchMove,S=e.onWheel,b=e.scrollEnabled,w=void 0===b||b,T=e.scrollEventThrottle,p=void 0===T?0:T,y=e.showsHorizontalScrollIndicator,_=e.showsVerticalScrollIndicator,E=e.style,M=(0,o.default)(e,s),O=n.useRef({isScrolling:!1,scrollLastTick:0}),D=n.useRef(null),W=n.useRef(null);function j(e){return t=>{w&&e&&e(t)}}function P(e){O.current.isScrolling=!0,k(e)}function k(e){O.current.scrollLastTick=Date.now(),d&&d(f(e))}function H(e){O.current.isScrolling=!1,d&&d(f(e))}var I=!1===y||!1===_;return n.createElement(c.default,(0,t.default)({},M,{onScroll:function(e){var t,o,n;e.stopPropagation(),e.target===W.current&&(e.persist(),null!=D.current&&clearTimeout(D.current),D.current=setTimeout(()=>{H(e)},100),O.current.isScrolling?(t=O.current.scrollLastTick,o=p,n=Date.now()-t,o>0&&n>=o&&k(e)):P(e))},onTouchMove:j(v),onWheel:j(S),ref:(0,u.default)(W,l),style:[E,!w&&h.scrollDisabled,I&&h.hideScrollbar]}))}),h=l.default.create({scrollDisabled:{overflowX:'hidden',overflowY:'hidden',touchAction:'none'},hideScrollbar:{scrollbarWidth:'none'}}),v=d},249,[237,29,11,23,85,103]); +__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);m.exports=t},250,[251]); +__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return function(){return t}}var n=function(){};n.thatReturns=t,n.thatReturnsFalse=t(!1),n.thatReturnsTrue=t(!0),n.thatReturnsNull=t(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(t){return t},m.exports=n},251,[]); +__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 e,t=r(d[0]),l=(e=t)&&e.__esModule?e:{default:e};var s=class{constructor(e,t){this._delay=t,this._callback=e}dispose(e){void 0===e&&(e={abort:!1}),this._taskHandle&&(this._taskHandle.cancel(),e.abort||this._callback(),this._taskHandle=null)}schedule(){if(!this._taskHandle){var e=setTimeout(()=>{this._taskHandle=l.default.runAfterInteractions(()=>{this._taskHandle=null,this._callback()})},this._delay);this._taskHandle={cancel:()=>clearTimeout(e)}}}}},252,[253]); +__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 t=e(r(d[0])),n=e(r(d[1])),o=e(r(d[2])),s=e(r(d[3])),c=new o.default,u={Events:{interactionStart:'interactionStart',interactionComplete:'interactionComplete'},runAfterInteractions(e){var t=[],n=new Promise(n=>{S(),e&&t.push(e),t.push({run:n,name:'resolve '+(e&&e.name||'?')}),h.enqueueTasks(t)});return{then:n.then.bind(n),done:n.then.bind(n),cancel:()=>{h.cancelTasks(t)}}},createInteractionHandle(){S();var e=++w;return f.add(e),e},clearInteractionHandle(e){(0,t.default)(!!e,'Must provide a handle to clear.'),S(),f.delete(e),v.add(e)},addListener:c.addListener.bind(c),setDeadline(e){b=e}},l=new Set,f=new Set,v=new Set,h=new n.default({onMoreTasks:S}),p=0,w=0,b=-1;function S(){p||(p=b>0?setTimeout(T):(0,s.default)(T))}function T(){p=0;var e=l.size;f.forEach(e=>l.add(e)),v.forEach(e=>l.delete(e));var t=l.size;if(0!==e&&0===t?c.emit(u.Events.interactionComplete):0===e&&0!==t&&c.emit(u.Events.interactionStart),0===t)for(var n=Date.now();h.hasTasksToProcess();)if(h.processNext(),b>0&&Date.now()-n>=b){S();break}f.clear(),v.clear()}var _=u},253,[21,254,255,256]); +__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])),s=e(r(d[1]));var u=class{constructor(e){var t=e.onMoreTasks;this._onMoreTasks=t,this._queueStack=[{tasks:[],popable:!0}]}enqueue(e){this._getCurrentQueue().push(e)}enqueueTasks(e){e.forEach(e=>this.enqueue(e))}cancelTasks(e){this._queueStack=this._queueStack.map(s=>(0,t.default)((0,t.default)({},s),{},{tasks:s.tasks.filter(t=>-1===e.indexOf(t))})).filter((e,t)=>e.tasks.length>0||0===t)}hasTasksToProcess(){return this._getCurrentQueue().length>0}processNext(){var e=this._getCurrentQueue();if(e.length){var t=e.shift();try{'object'==typeof t&&t.gen?this._genPromise(t):'object'==typeof t&&t.run?t.run():((0,s.default)('function'==typeof t,'Expected Function, SimpleTask, or PromiseTask, but got:\n'+JSON.stringify(t,null,2)),t())}catch(e){throw e.message='TaskQueue: Error with task '+(t.name||'')+': '+e.message,e}}}_getCurrentQueue(){var e=this._queueStack.length-1,t=this._queueStack[e];return t.popable&&0===t.tasks.length&&e>0?(this._queueStack.pop(),this._getCurrentQueue()):t.tasks}_genPromise(e){var t=this._queueStack.push({tasks:[],popable:!1})-1,s=this._queueStack[t];e.gen().then(()=>{s.popable=!0,this.hasTasksToProcess()&&this._onMoreTasks()}).catch(t=>{setTimeout(()=>{throw t.message="TaskQueue: Error resolving Promise in task "+e.name+": "+t.message,t},0)})}}},254,[24,21]); +__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(){this._registry={}}addListener(t,s,l){var u=n(this._registry,t),o={context:l,listener:s,remove(){u.delete(o)}};return u.add(o),o}emit(t){var n=this._registry[t];if(null!=n){for(var s=arguments.length,l=new Array(s>1?s-1:0),u=1;u{var t=Date.now();e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))})},1)},u=n?window.cancelIdleCallback:function(e){clearTimeout(e)},o=l},256,[22]); +__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=function(t,n,u){return nu?u:n}},257,[]); +__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=function(){return console.log(...arguments)}},258,[]); +__d(function(g,r,_i,a,m,_e,d){"use strict";function s(s){return s&&s.__esModule?s:{default:s}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"CellRenderMask",{enumerable:!0,get:function(){return i}});var e=s(r(d[0])),t=s(r(d[1]));class i{constructor(s){(0,t.default)(s>=0,'CellRenderMask must contain a non-negative number os cells'),this._numCells=s,this._regions=0===s?[]:[{first:0,last:s-1,isSpacer:!0}]}enumerateRegions(){return this._regions}addCells(s){if((0,t.default)(s.first>=0&&s.first=-1&&s.last=s.first-1,'CellRenderMask.addCells called with invalid cell range'),!(s.lasth.last&&(u.isSpacer?c.push({first:h.last+1,last:u.last,isSpacer:!0}):h.last=u.last);var p=[..._,h,...c],C=o-n+1;this._regions.splice(n,C,...p)}}}numCells(){return this._numCells}equals(s){return this._numCells===s._numCells&&this._regions.length===s._regions.length&&this._regions.every((e,t)=>e.first===s._regions[t].first&&e.last===s._regions[t].last&&e.isSpacer===s._regions[t].isSpacer)}_findRegion(s){for(var e=0,i=this._regions.length-1;e<=i;){var l=Math.floor((e+i)/2),n=this._regions[l];if(s>=n.first&&s<=n.last)return[n,l];sn.last&&(e=l+1)}(0,t.default)(!1,"A region was not found containing cellIdx "+s)}}},259,[24,21]); +__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 n}});var l=e(r(d[0])),t=e(r(d[1]));class n{constructor(){this._cellKeyToChildren=new Map,this._childrenToCellKey=new Map}add(e,l){var n;(0,t.default)(!this._childrenToCellKey.has(e),'Trying to add already present child list');var o=null!==(n=this._cellKeyToChildren.get(l))&&void 0!==n?n:new Set;o.add(e),this._cellKeyToChildren.set(l,o),this._childrenToCellKey.set(e,l)}remove(e){var l=this._childrenToCellKey.get(e);(0,t.default)(null!=l,'Trying to remove non-present child list'),this._childrenToCellKey.delete(e);var n=this._cellKeyToChildren.get(l);(0,t.default)(n,'_cellKeyToChildren should contain cellKey'),n.delete(e),0===n.size&&this._cellKeyToChildren.delete(l)}forEach(e){for(var t,n=(0,l.default)(this._cellKeyToChildren.values());!(t=n()).done;)for(var o,h=t.value,s=(0,l.default)(h);!(o=s()).done;){e(o.value)}}forEachInCell(e,t){for(var n,o,h=null!==(n=this._cellKeyToChildren.get(e))&&void 0!==n?n:[],s=(0,l.default)(h);!(o=s()).done;){t(o.value)}}anyInCell(e,t){for(var n,o,h=null!==(n=this._cellKeyToChildren.get(e))&&void 0!==n?n:[],s=(0,l.default)(h);!(o=s()).done;){if(t(o.value))return!0}return!1}size(){return this._childrenToCellKey.size}}},260,[242,21]); +__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,e=r(d[0]),s=(t=e)&&t.__esModule?t:{default:t};class n{constructor(){this.any_blank_count=0,this.any_blank_ms=0,this.any_blank_speed_sum=0,this.mostly_blank_count=0,this.mostly_blank_ms=0,this.pixels_blank=0,this.pixels_sampled=0,this.pixels_scrolled=0,this.total_time_spent=0,this.sample_count=0}}var l=[],_=10,h=null;var o=class{static addListener(t){return null===h&&console.warn('Call `FillRateHelper.setSampleRate` before `addListener`.'),l.push(t),{remove:()=>{l=l.filter(e=>t!==e)}}}static setSampleRate(t){h=t}static setMinSampleCount(t){_=t}constructor(t){this._anyBlankStartTime=null,this._enabled=!1,this._info=new n,this._mostlyBlankStartTime=null,this._samplesStartTime=null,this._getFrameMetrics=t,this._enabled=(h||0)>Math.random(),this._resetData()}activate(){this._enabled&&null==this._samplesStartTime&&(this._samplesStartTime=g.performance.now())}deactivateAndFlush(){if(this._enabled){var t=this._samplesStartTime;if(null!=t)if(this._info.sample_count<_)this._resetData();else{var e=g.performance.now()-t,n=(0,s.default)((0,s.default)({},this._info),{},{total_time_spent:e});l.forEach(t=>t(n)),this._resetData()}}}computeBlankness(t,e,s){if(!this._enabled||0===t.getItemCount(t.data)||e.last0&&(f=Math.min(h,Math.max(0,p.offset-l)));for(var b=0,y=e.last,k=this._getFrameMetrics(y,t);y>=e.first&&(!k||!k.inLayout);)k=this._getFrameMetrics(y,t),y--;if(k&&y0?(this._anyBlankStartTime=u,this._info.any_blank_speed_sum+=o,this._info.any_blank_count++,this._info.pixels_blank+=M,v>.5&&(this._mostlyBlankStartTime=u,this._info.mostly_blank_count++)):(o<.01||Math.abs(n)<1)&&this.deactivateAndFlush(),v}enabled(){return this._enabled}_resetData(){this._anyBlankStartTime=null,this._info=new n,this._mostlyBlankStartTime=null,this._samplesStartTime=null}}},261,[24]); +__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,e=r(_d[0]),s=(t=e)&&t.__esModule?t:{default:t},n=(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[1]));class o extends n.PureComponent{constructor(t){super(t),this._inAsyncStateUpdate=!1,this._installSetStateHooks()}setState(t,e){'function'==typeof t?super.setState((e,s)=>{var n;this._inAsyncStateUpdate=!0;try{n=t(e,s)}catch(t){throw t}finally{this._inAsyncStateUpdate=!1}return n},e):super.setState(t,e)}_installSetStateHooks(){var t=this,e=this.props,n=this.state;Object.defineProperty(this,'props',{get:()=>((0,s.default)(!t._inAsyncStateUpdate,'"this.props" should not be accessed during state updates'),e),set(t){e=t}}),Object.defineProperty(this,'state',{get:()=>((0,s.default)(!t._inAsyncStateUpdate,'"this.state" should not be acceessed during state updates'),n),set(t){n=t}})}}},262,[21,11]); +__d(function(g,r,i,a,m,_e,d){'use strict';function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}});var t=e(r(d[0])),n=e(r(d[1])),s=e(r(d[2]));function l(e,t,n,s,l,u){if(h(n,s,l))return!0;var c=o(n,s,l);return 100*(e?c/l:c/u)>=t}function o(e,t,n){var s=Math.min(t,n)-Math.max(e,0);return Math.max(0,s)}function h(e,t,n){return e>=0&&t<=n&&t>e}var u=class{constructor(e){void 0===e&&(e={viewAreaCoveragePercentThreshold:0}),this._hasInteracted=!1,this._timers=new Set,this._viewableIndices=[],this._viewableItems=new Map,this._config=e}dispose(){this._timers.forEach(clearTimeout)}computeViewableItems(e,t,n,o,h){var u=e.getItemCount(e.data),c=this._config,f=c.itemVisiblePercentThreshold,v=c.viewAreaCoveragePercentThreshold,_=null!=v,w=_?v:f;(0,s.default)(null!=w&&null!=f!=(null!=v),'Must set exactly one of itemVisiblePercentThreshold or viewAreaCoveragePercentThreshold');var b=[];if(0===u)return b;var I=-1,p=h||{first:0,last:u-1},y=p.first,T=p.last;if(T>=u)return console.warn('Invalid render range computing viewability '+JSON.stringify({renderRange:h,itemCount:u})),[];for(var M=y;M<=T;M++){var V=o(M,e);if(V){var C=V.offset-t,P=C+V.length;if(C0)I=M,l(_,w,C,P,n,V.length)&&b.push(M);else if(I>=0)break}}return b}onUpdate(e,t,n,s,l,o,h){var u=e.getItemCount(e.data);if((!this._config.waitForInteraction||this._hasInteracted)&&0!==u&&s(0,e)){var c=[];if(u&&(c=this.computeViewableItems(e,t,n,s,h)),this._viewableIndices.length!==c.length||!this._viewableIndices.every((e,t)=>e===c[t]))if(this._viewableIndices=c,this._config.minimumViewTime){var f=setTimeout(()=>{this._timers.delete(f),this._onUpdateSync(e,c,o,l)},this._config.minimumViewTime);this._timers.add(f)}else this._onUpdateSync(e,c,o,l)}}resetViewableIndices(){this._viewableIndices=[]}recordInteraction(){this._hasInteracted=!0}_onUpdateSync(e,s,l,o){s=s.filter(e=>this._viewableIndices.includes(e));for(var h,u=this._viewableItems,c=new Map(s.map(t=>{var n=o(t,!0,e);return[n.key,n]})),f=[],v=(0,n.default)(c);!(h=v()).done;){var _=h.value,w=_[0],b=_[1];u.has(w)||f.push(b)}for(var I,p=(0,n.default)(u);!(I=p()).done;){var y=I.value,T=y[0],M=y[1];c.has(T)||f.push((0,t.default)((0,t.default)({},M),{},{isViewable:!1}))}f.length>0&&(this._viewableItems=c,l({viewableItems:Array.from(c.values()),changed:f,viewabilityConfig:this._config}))}}},263,[24,242,21]); +__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 d}});var t=e(r(_d[0])),o=e(r(_d[1])),s=e(r(_d[2])),n=e(r(_d[3])),l=r(_d[4]),p=e(r(_d[5])),u=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(o){var s=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,s.get?s:{enumerable:!0,get:function(){return e[o]}})}),t.default=e,t})(r(_d[6]));class d extends u.Component{constructor(){super(...arguments),this.state={separatorProps:{highlighted:!1,leadingItem:this.props.item}},this._separators={highlight:()=>{var e=this.props,t=e.cellKey,o=e.prevCellKey;this.props.onUpdateSeparators([t,o],{highlighted:!0})},unhighlight:()=>{var e=this.props,t=e.cellKey,o=e.prevCellKey;this.props.onUpdateSeparators([t,o],{highlighted:!1})},updateProps:(e,t)=>{var o=this.props,s=o.cellKey,n=o.prevCellKey;this.props.onUpdateSeparators(['leading'===e?n:s],t)}},this._onLayout=e=>{this.props.onCellLayout&&this.props.onCellLayout(e,this.props.cellKey,this.props.index)}}static getDerivedStateFromProps(e,t){return{separatorProps:(0,o.default)((0,o.default)({},t.separatorProps),{},{leadingItem:e.item})}}updateSeparatorProps(e){this.setState(t=>({separatorProps:(0,o.default)((0,o.default)({},t.separatorProps),e)}))}componentWillUnmount(){this.props.onUnmount(this.props.cellKey)}_renderElement(e,t,o,s){return e&&t&&console.warn("VirtualizedList: Both ListItemComponent and renderItem props are present. ListItemComponent will take precedence over renderItem."),t?u.createElement(t,{item:o,index:s,separators:this._separators}):e?e({item:o,index:s,separators:this._separators}):void(0,p.default)(!1,'VirtualizedList: Either ListItemComponent or renderItem props are required but none were found.')}render(){var e=this.props,o=e.CellRendererComponent,n=e.ItemSeparatorComponent,p=e.ListItemComponent,d=e.cellKey,h=e.horizontal,y=e.item,f=e.index,v=e.inversionStyle,C=e.onCellFocusCapture,_=e.onCellLayout,L=e.renderItem,P=this._renderElement(L,p,y,f),K=u.isValidElement(n)?n:n&&u.createElement(n,this.state.separatorProps),I=v?h?[c.rowReverse,v]:[c.columnReverse,v]:h?[c.row,v]:v,w=o?u.createElement(o,(0,t.default)({cellKey:d,index:f,item:y,style:I,onFocusCapture:C},_&&{onLayout:this._onLayout}),P,K):u.createElement(s.default,(0,t.default)({style:I,onFocusCapture:C},_&&{onLayout:this._onLayout}),P,K);return u.createElement(l.VirtualizedListCellContextProvider,{cellKey:this.props.cellKey},w)}}var c=n.default.create({row:{flexDirection:'row'},rowReverse:{flexDirection:'row-reverse'},columnReverse:{flexDirection:'column-reverse'}})},264,[237,24,85,23,265,21,11]); +__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"VirtualizedListContext",{enumerable:!0,get:function(){return o}}),_e.VirtualizedListContextResetter=function(e){var t=e.children;return u.createElement(o.Provider,{value:null},t)},_e.VirtualizedListContextProvider=function(e){var t=e.children,l=e.value,s=(0,n.useMemo)(()=>({cellKey:null,getScrollMetrics:l.getScrollMetrics,horizontal:l.horizontal,getOutermostParentListRef:l.getOutermostParentListRef,registerAsNestedChild:l.registerAsNestedChild,unregisterAsNestedChild:l.unregisterAsNestedChild}),[l.getScrollMetrics,l.horizontal,l.getOutermostParentListRef,l.registerAsNestedChild,l.unregisterAsNestedChild]);return u.createElement(o.Provider,{value:s},t)},_e.VirtualizedListCellContextProvider=function(e){var t=e.cellKey,s=e.children,d=(0,n.useContext)(o),c=(0,n.useMemo)(()=>null==d?null:(0,l.default)((0,l.default)({},d),{},{cellKey:t}),[d,t]);return u.createElement(o.Provider,{value:c},s)};var e,t=r(_d[0]),l=(e=t)&&e.__esModule?e:{default:e},n=r(_d[1]),u=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(l){var n=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(t,l,n.get?n:{enumerable:!0,get:function(){return e[l]}})}),t.default=e,t})(n),o=u.createContext(null)},265,[24,11]); +__d(function(g,r,i,a,m,e,d){'use strict';function t(t,n,f,o){void 0===o&&(o=1);for(var s=n.getItemCount(n.data),l=[],u=0;u>>1),b=f(M,n),x=b.offset*o,y=(b.offset+b.length)*o;if(0===M&&vy)){l[u]=M;break}c=M+1}}return l}function n(t,n){return n.last-n.first+1-Math.max(0,1+Math.min(n.last,t.last)-Math.max(n.first,t.first))}Object.defineProperty(e,'__esModule',{value:!0}),e.elementsThatOverlapOffsets=t,e.newRangeCount=n,e.computeWindowedRenderLimits=function(f,o,s,l,u,v){var c=f.getItemCount(f.data);if(0===c)return{first:0,last:-1};var h=v.offset,M=v.velocity,b=v.visibleLength,x=v.zoomScale,y=void 0===x?1:x,w=Math.max(0,h),k=w+b,p=(s-1)*b,C=M>1?'after':M<-1?'before':'none',O=Math.max(0,w-.5*p),_=Math.max(0,k+.5*p);if(u(c-1,f).offset*y=I);){var B=z>=o,F=S<=l.first||S>l.last,J=S>L&&(!B||!F),N=E>=l.last||E=S&&S>=0&&E=L&&E<=I&&S<=R.first&&E>=R.last))throw new Error('Bad window calculation '+JSON.stringify({first:S,last:E,itemCount:c,overscanFirst:L,overscanLast:I,visible:R}));return{first:S,last:E}},e.keyExtractor=function(t,n){if('object'==typeof t&&null!=(null==t?void 0:t.key))return t.key;if('object'==typeof t&&null!=(null==t?void 0:t.id))return t.id;return String(n)}},266,[]); +__d(function(g,r,i,a,m,e,d){'use strict';function t(t,o){if(null!=t)return t;var n=new Error(void 0!==o?o:'Got unexpected '+t);throw n.framesToPop=1,n}m.exports=t,m.exports.default=t,Object.defineProperty(m.exports,'__esModule',{value:!0})},267,[]); +__d(function(g,r,_i2,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return l}});var t=Number.isNaN||function(t){return'number'==typeof t&&t!=t};function n(n,u){return n===u||!(!t(n)||!t(u))}function u(t,u){if(t.length!==u.length)return!1;for(var l=0;l{var s=(0,n.default)(c),y=s[0],p=s[1],_=(0,f.default)(p,d),b=y.passthroughAnimatedPropExplicitValues,v=y.style,O=null!=b?b:{},j=O.style,P=(0,u.default)(O,o),h=[v,j];return l.createElement(e,(0,t.default)({},y,P,{style:h,ref:_}))})}},269,[237,29,270,288,23,85,11]); +__d(function(g,r,i,a,m,_e,d){'use strict';function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return _}});var t=e(r(d[0])),u=e(r(d[1])),n=r(d[2]),l=e(r(d[3])),c=e(r(d[4])),f=r(d[5]),o=e(r(d[6]));function _(e){var t=(0,f.useReducer)(e=>e+1,0)[1],c=(0,f.useRef)(null),o=(0,f.useMemo)(()=>new u.default(e,()=>null==c.current?void 0:c.current()),[e]);v(o);var _=(0,f.useCallback)(u=>{o.setNativeView(u),c.current=()=>{t()};var l=b(u),f=[];for(var _ in e){var s=e[_];s instanceof n.AnimatedEvent&&s.__isNative&&(s.__attach(l,_),f.push([_,s]))}return()=>{c.current=null;for(var e=0,t=f;e{c.default.API.flushQueue()}),(0,o.default)(()=>(u.current=!1,()=>{u.current=!0}),[]),(0,o.default)(()=>{if(e.__attach(),null!=t.current){var n=t.current;n.__restoreDefaultValues(),n.__detach(),t.current=null}return()=>{u.current?e.__detach():t.current=e}},[e])}function b(e){return'object'==typeof e&&'function'==typeof(null==e?void 0:e.getScrollableNode)?e.getScrollableNode():e}},270,[24,271,272,287,277,11,97]); +__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=e(r(d[0])),_=r(d[1]),s=e(r(d[2])),n=e(r(d[3])),o=e(r(d[4])),l=e(r(d[5]));class u extends s.default{constructor(e,_){super(),e.style&&(e=(0,t.default)((0,t.default)({},e),{},{style:new n.default(e.style)})),this._props=e,this._callback=_}__getValue(){var e={};for(var t in this._props){var o=this._props[t];o instanceof s.default?(!o.__isNative||o instanceof n.default)&&(e[t]=o.__getValue()):o instanceof _.AnimatedEvent?e[t]=o.__getHandler():e[t]=o}return e}__getAnimatedValue(){var e={};for(var t in this._props){var _=this._props[t];_ instanceof s.default&&(e[t]=_.__getAnimatedValue())}return e}__attach(){for(var e in this._props){var t=this._props[e];t instanceof s.default&&t.__addChild(this)}}__detach(){for(var e in this.__isNative&&this._animatedView&&this.__disconnectAnimatedView(),this._animatedView=null,this._props){var t=this._props[e];t instanceof s.default&&t.__removeChild(this)}super.__detach()}update(){this._callback()}__makeNative(){if(!this.__isNative){for(var e in this.__isNative=!0,this._props){var t=this._props[e];t instanceof s.default&&t.__makeNative()}this._animatedView&&this.__connectAnimatedView()}}setNativeView(e){this._animatedView!==e&&(this._animatedView=e,this.__isNative&&this.__connectAnimatedView())}__connectAnimatedView(){(0,l.default)(this.__isNative,'Expected node to be marked as "native"');var e=this._animatedView;(0,l.default)(null!=e,'Unable to locate attached view in the native tree'),o.default.API.connectAnimatedNodeToView(this.__getNativeTag(),e)}__disconnectAnimatedView(){(0,l.default)(this.__isNative,'Expected node to be marked as "native"');var e=this._animatedView;(0,l.default)(null!=e,'Unable to locate attached view in the native tree'),o.default.API.disconnectAnimatedNodeFromView(this.__getNativeTag(),e)}__restoreDefaultValues(){this.__isNative&&o.default.API.restoreDefaultValues(this.__getNativeTag())}__getNativeConfig(){var e={};for(var t in this._props){var _=this._props[t];_ instanceof s.default&&(_.__makeNative(),e[t]=_.__getNativeTag())}return{type:'props',props:e}}}var h=u},271,[24,272,276,285,277,21]); +__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.attachNativeEvent=v,Object.defineProperty(_e,"AnimatedEvent",{enumerable:!0,get:function(){return _}});var t=e(r(d[0])),n=r(d[1]),s=e(n),l=e(r(d[2]));function v(e,n,v){var _=[],o=(e,n)=>{if(e instanceof t.default)e.__makeNative(),_.push({nativeEventPath:n,animatedValueTag:e.__getNativeTag()});else if('object'==typeof e)for(var s in e)o(e[s],n.concat(s))};return(0,l.default)(v[0]&&v[0].nativeEvent,'Native driven events only support animated values contained inside `nativeEvent`.'),o(v[0].nativeEvent,[]),null!=e&&_.forEach(t=>{s.default.API.addAnimatedEventToView(e,n,t)}),{detach(){null!=e&&_.forEach(t=>{s.default.API.removeAnimatedEventFromView(e,n,t.animatedValueTag)})}}}class _{constructor(e,t){this._listeners=[],this._argMapping=e,null==t&&(console.warn('Animated.event now requires a second argument for options'),t={useNativeDriver:!1}),t.listener&&this.__addListener(t.listener),this._callListeners=this._callListeners.bind(this),this._attachedEvent=null,this.__isNative=(0,n.shouldUseNativeDriver)(t)}__addListener(e){this._listeners.push(e)}__removeListener(e){this._listeners=this._listeners.filter(t=>t!==e)}__attach(e,t){(0,l.default)(this.__isNative,'Only native driven events need to be attached.'),this._attachedEvent=v(e,t,this._argMapping)}__detach(e,t){(0,l.default)(this.__isNative,'Only native driven events need to be detached.'),this._attachedEvent&&this._attachedEvent.detach()}__getHandler(){var e=this;if(this.__isNative)return this._callListeners;return function(){for(var n=arguments.length,s=new Array(n),l=0;l{if(e instanceof t.default)'number'==typeof n&&e.setValue(n);else if('object'==typeof e)for(var l in e)v(e[l],n[l],l)};e._argMapping.forEach((e,t)=>{v(e,s[t],'arg'+t)}),e._callListeners(...s)}}_callListeners(){for(var e=arguments.length,t=new Array(e),n=0;ne(...t))}}},272,[273,277,21]); +__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=t(r(d[0])),s=t(r(d[1])),n=t(r(d[2])),_=t(r(d[3])).default.API;class u extends s.default{constructor(t,e){if(super(),'number'!=typeof t)throw new Error('AnimatedValue: Attempting to set value to undefined');this._startingValue=this._value=t,this._offset=0,this._animation=null,e&&e.useNativeDriver&&this.__makeNative()}__detach(){this.__isNative&&_.getValue(this.__getNativeTag(),t=>{this._value=t-this._offset}),this.stopAnimation(),super.__detach()}__getValue(){return this._value+this._offset}setValue(t){var e,s;this._animation&&(this._animation.stop(),this._animation=null),this._updateValue(t,!this.__isNative),this.__isNative&&(e=this.__getNativeTag().toString(),s=()=>_.setAnimatedNodeValue(this.__getNativeTag(),t),_.setWaitingForIdentifier(e),s(),_.unsetWaitingForIdentifier(e))}setOffset(t){this._offset=t,this.__isNative&&_.setAnimatedNodeOffset(this.__getNativeTag(),t)}flattenOffset(){this._value+=this._offset,this._offset=0,this.__isNative&&_.flattenAnimatedNodeOffset(this.__getNativeTag())}extractOffset(){this._offset+=this._value,this._value=0,this.__isNative&&_.extractAnimatedNodeOffset(this.__getNativeTag())}stopAnimation(t){this.stopTracking(),this._animation&&this._animation.stop(),this._animation=null,t&&(this.__isNative?_.getValue(this.__getNativeTag(),t):t(this.__getValue()))}resetAnimation(t){this.stopAnimation(t),this._value=this._startingValue,this.__isNative&&_.setAnimatedNodeValue(this.__getNativeTag(),this._startingValue)}__onAnimatedValueUpdateReceived(t){this._updateValue(t,!1)}interpolate(t){return new e.default(this,t)}animate(t,e){var s=null;t.__isInteraction&&(s=n.default.createInteractionHandle());var _=this._animation;this._animation&&this._animation.stop(),this._animation=t,t.start(this._value,t=>{this._updateValue(t,!0)},t=>{this._animation=null,null!==s&&n.default.clearInteractionHandle(s),e&&e(t)},_,this)}stopTracking(){this._tracking&&this._tracking.__detach(),this._tracking=null}track(t){this.stopTracking(),this._tracking=t,this._tracking&&this._tracking.update()}_updateValue(t,e){if(void 0===t)throw new Error('AnimatedValue: Attempting to set value to undefined');var s,n;this._value=t,e&&(s=this,n=new Set,(function t(e){'function'==typeof e.update?n.add(e):e.__getChildren().forEach(t)})(s),n.forEach(t=>t.update())),super.__callListeners(this.__getValue())}__getNativeConfig(){return{type:'value',value:this._value,offset:this._offset}}}var h=u},273,[274,275,253,277]); +__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 g}});var e=t(_r(d[0])),a=t(_r(d[1])),n=t(_r(d[2])),r=t(_r(d[3])),i=t(_r(d[4])),o=t=>t;function u(t){if(t.outputRange&&'string'==typeof t.outputRange[0])return _(t);var e=t.outputRange,a=t.inputRange,n=t.easing||o,i='extend';void 0!==t.extrapolateLeft?i=t.extrapolateLeft:void 0!==t.extrapolate&&(i=t.extrapolate);var u='extend';return void 0!==t.extrapolateRight?u=t.extrapolateRight:void 0!==t.extrapolate&&(u=t.extrapolate),t=>{(0,r.default)('number'==typeof t,'Cannot interpolation an input which is not a number');var o=s(t,a);return p(t,a[o],a[o+1],e[o],e[o+1],n,i,u)}}function p(t,e,a,n,r,i,o,u){var p=t;if(pa){if('identity'===u)return p;'clamp'===u&&(p=a)}return n===r?n:e===a?t<=e?n:r:(e===-1/0?p=-p:a===1/0?p-=e:p=(p-e)/(a-e),p=i(p),n===-1/0?p=-p:r===1/0?p+=n:p=p*(r-n)+n,p)}function l(t){var e=(0,i.default)(t);return null===e||'number'!=typeof e?t:"rgba("+((4278190080&(e=e||0))>>>24)+", "+((16711680&e)>>>16)+", "+((65280&e)>>>8)+", "+(255&e)/255+")"}var f=/[+-]?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/g;function _(t){var a=t.outputRange;(0,r.default)(a.length>=2,'Bad output range'),h(a=a.map(l));var n=a[0].match(f).map(()=>[]);a.forEach(t=>{t.match(f).forEach((t,e)=>{n[e].push(+t)})});var i,o=a[0].match(f).map((a,r)=>u((0,e.default)((0,e.default)({},t),{},{outputRange:n[r]}))),p='string'==typeof(i=a[0])&&i.startsWith('rgb');return t=>{var e=0;return a[0].replace(f,()=>{var a=+o[e++](t);return p&&(a=e<4?Math.round(a):Math.round(1e3*a)/1e3),String(a)})}}function h(t){for(var e=t[0].replace(f,''),a=1;a=t);++a);return a-1}class c extends a.default{constructor(t,e){super(),this._parent=t,this._config=e,this._interpolation=u(e)}__makeNative(t){this._parent.__makeNative(t),super.__makeNative(t)}__getValue(){var t=this._parent.__getValue();return(0,r.default)('number'==typeof t,'Cannot interpolate an input which is not a number.'),this._interpolation(t)}interpolate(t){return new c(this,t)}__attach(){this._parent.__addChild(this)}__detach(){this._parent.__removeChild(this),super.__detach()}__transformDataType(t){return t.map(n.default.transformDataType)}__getNativeConfig(){return{inputRange:this._config.inputRange,outputRange:this.__transformDataType(this._config.outputRange),extrapolateLeft:this._config.extrapolateLeft||this._config.extrapolate||'extend',extrapolateRight:this._config.extrapolateRight||this._config.extrapolate||'extend',type:'interpolation'}}}c.__createInterpolation=u;var g=c},274,[24,275,277,21,37]); +__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])),_=e(r(d[1])),s=e(r(d[2]));class n extends _.default{constructor(){super(),this._children=[]}__makeNative(e){if(!this.__isNative){this.__isNative=!0;for(var _,n=(0,t.default)(this._children);!(_=n()).done;){var l=_.value;l.__makeNative(e),s.default.API.connectAnimatedNodes(this.__getNativeTag(),l.__getNativeTag())}}super.__makeNative(e)}__addChild(e){0===this._children.length&&this.__attach(),this._children.push(e),this.__isNative&&(e.__makeNative(this.__getPlatformConfig()),s.default.API.connectAnimatedNodes(this.__getNativeTag(),e.__getNativeTag()))}__removeChild(e){var t=this._children.indexOf(e);-1!==t?(this.__isNative&&e.__isNative&&s.default.API.disconnectAnimatedNodes(this.__getNativeTag(),e.__getNativeTag()),this._children.splice(t,1),0===this._children.length&&this.__detach()):console.warn("Trying to remove a child that doesn't exist")}__getChildren(){return this._children}__callListeners(e){if(super.__callListeners(e),!this.__isNative)for(var _,s=(0,t.default)(this._children);!(_=s()).done;){var n=_.value;n.__getValue&&n.__callListeners(n.__getValue())}}}var l=n},275,[242,276,277]); +__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 o}});var t=e(r(d[0])),s=e(r(d[1])),n=t.default.API,_=1;var o=class{__attach(){}__detach(){this.__isNative&&null!=this.__nativeTag&&(t.default.API.dropAnimatedNode(this.__nativeTag),this.__nativeTag=void 0)}__getValue(){}__getAnimatedValue(){return this.__getValue()}__addChild(e){}__removeChild(e){}__getChildren(){return[]}constructor(){this._listeners={}}__makeNative(e){if(!this.__isNative)throw new Error('This node cannot be made a "native" animated node');this._platformConfig=e,this.hasListeners()&&this._startListeningToNativeValueUpdates()}addListener(e){var t=String(_++);return this._listeners[t]=e,this.__isNative&&this._startListeningToNativeValueUpdates(),t}removeListener(e){delete this._listeners[e],this.__isNative&&!this.hasListeners()&&this._stopListeningForNativeValueUpdates()}removeAllListeners(){this._listeners={},this.__isNative&&this._stopListeningForNativeValueUpdates()}hasListeners(){return!!Object.keys(this._listeners).length}_startListeningToNativeValueUpdates(){this.__nativeAnimatedValueListener&&!this.__shouldUpdateListenersForNewNativeTag||(this.__shouldUpdateListenersForNewNativeTag&&(this.__shouldUpdateListenersForNewNativeTag=!1,this._stopListeningForNativeValueUpdates()),n.startListeningToAnimatedNodeValue(this.__getNativeTag()),this.__nativeAnimatedValueListener=t.default.nativeEventEmitter.addListener('onAnimatedValueUpdate',e=>{e.tag===this.__getNativeTag()&&this.__onAnimatedValueUpdateReceived(e.value)}))}__onAnimatedValueUpdateReceived(e){this.__callListeners(e)}__callListeners(e){for(var t in this._listeners)this._listeners[t]({value:e})}_stopListeningForNativeValueUpdates(){this.__nativeAnimatedValueListener&&(this.__nativeAnimatedValueListener.remove(),this.__nativeAnimatedValueListener=null,n.stopListeningToAnimatedNodeValue(this.__getNativeTag()))}__getNativeTag(){var e;t.default.assertNativeAnimatedModule(),(0,s.default)(this.__isNative,'Attempt to get native tag from node not marked as "native"');var n=null!==(e=this.__nativeTag)&&void 0!==e?e:t.default.generateNewNodeTag();if(null==this.__nativeTag){this.__nativeTag=n;var _=this.__getNativeConfig();this._platformConfig&&(_.platformConfig=this._platformConfig),t.default.API.createAnimatedNode(n,_),this.__shouldUpdateListenersForNewNativeTag=!0}return n}__getNativeConfig(){throw new Error('This JS animated node type cannot be used as native animated node')}toJSON(){return this.__getValue()}__getPlatformConfig(){return this._platformConfig}__setPlatformConfig(e){this._platformConfig=e}}},276,[277,21]); +__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 k}}),Object.defineProperty(_e,"API",{enumerable:!0,get:function(){return A}}),Object.defineProperty(_e,"isSupportedColorStyleProp",{enumerable:!0,get:function(){return j}}),Object.defineProperty(_e,"isSupportedStyleProp",{enumerable:!0,get:function(){return R}}),Object.defineProperty(_e,"isSupportedTransformProp",{enumerable:!0,get:function(){return I}}),Object.defineProperty(_e,"isSupportedInterpolationParam",{enumerable:!0,get:function(){return D}}),Object.defineProperty(_e,"addWhitelistedStyleProp",{enumerable:!0,get:function(){return S}}),Object.defineProperty(_e,"addWhitelistedTransformProp",{enumerable:!0,get:function(){return q}}),Object.defineProperty(_e,"addWhitelistedInterpolationParam",{enumerable:!0,get:function(){return V}}),Object.defineProperty(_e,"validateStyles",{enumerable:!0,get:function(){return E}}),Object.defineProperty(_e,"validateTransform",{enumerable:!0,get:function(){return C}}),Object.defineProperty(_e,"validateInterpolation",{enumerable:!0,get:function(){return F}}),Object.defineProperty(_e,"generateNewNodeTag",{enumerable:!0,get:function(){return x}}),Object.defineProperty(_e,"generateNewAnimationId",{enumerable:!0,get:function(){return L}}),Object.defineProperty(_e,"assertNativeAnimatedModule",{enumerable:!0,get:function(){return W}}),Object.defineProperty(_e,"shouldUseNativeDriver",{enumerable:!0,get:function(){return M}}),Object.defineProperty(_e,"transformDataType",{enumerable:!0,get:function(){return _}});var t=e(r(d[0])),n=e(r(d[1]));r(d[2]);var o=e(r(d[3]));r(d[4]);var u=e(r(d[5])),l=e(r(d[6]));r(d[7]);var s,f=n.default,p=1,c=1,v=new Set,b=!1,N=[],O=null,y=f,A={getValue:function(e,t){(0,l.default)(y,'Native animated module is not available'),A.queueOperation(y.getValue,e,t)},setWaitingForIdentifier:function(e){v.add(e),b=!0,u.default.animatedShouldDebounceQueueFlush()&&O&&clearTimeout(O)},unsetWaitingForIdentifier:function(e){v.delete(e),0===v.size&&(b=!1,A.disableQueue())},disableQueue:function(){((0,l.default)(y,'Native animated module is not available'),u.default.animatedShouldDebounceQueueFlush())?(clearImmediate(O),O=setImmediate(A.flushQueue)):A.flushQueue()},flushQueue:function(){},queueOperation:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;oe(...n)):e(...n)},createAnimatedNode:function(e,t){(0,l.default)(y,'Native animated module is not available'),A.queueOperation(y.createAnimatedNode,e,t)},updateAnimatedNodeConfig:function(e,t){(0,l.default)(y,'Native animated module is not available')},startListeningToAnimatedNodeValue:function(e){(0,l.default)(y,'Native animated module is not available'),A.queueOperation(y.startListeningToAnimatedNodeValue,e)},stopListeningToAnimatedNodeValue:function(e){(0,l.default)(y,'Native animated module is not available'),A.queueOperation(y.stopListeningToAnimatedNodeValue,e)},connectAnimatedNodes:function(e,t){(0,l.default)(y,'Native animated module is not available'),A.queueOperation(y.connectAnimatedNodes,e,t)},disconnectAnimatedNodes:function(e,t){(0,l.default)(y,'Native animated module is not available'),A.queueOperation(y.disconnectAnimatedNodes,e,t)},startAnimatingNode:function(e,t,n,o){(0,l.default)(y,'Native animated module is not available'),A.queueOperation(y.startAnimatingNode,e,t,n,o)},stopAnimation:function(e){(0,l.default)(y,'Native animated module is not available'),A.queueOperation(y.stopAnimation,e)},setAnimatedNodeValue:function(e,t){(0,l.default)(y,'Native animated module is not available'),A.queueOperation(y.setAnimatedNodeValue,e,t)},setAnimatedNodeOffset:function(e,t){(0,l.default)(y,'Native animated module is not available'),A.queueOperation(y.setAnimatedNodeOffset,e,t)},flattenAnimatedNodeOffset:function(e){(0,l.default)(y,'Native animated module is not available'),A.queueOperation(y.flattenAnimatedNodeOffset,e)},extractAnimatedNodeOffset:function(e){(0,l.default)(y,'Native animated module is not available'),A.queueOperation(y.extractAnimatedNodeOffset,e)},connectAnimatedNodeToView:function(e,t){(0,l.default)(y,'Native animated module is not available'),A.queueOperation(y.connectAnimatedNodeToView,e,t)},disconnectAnimatedNodeFromView:function(e,t){(0,l.default)(y,'Native animated module is not available'),A.queueOperation(y.disconnectAnimatedNodeFromView,e,t)},restoreDefaultValues:function(e){(0,l.default)(y,'Native animated module is not available'),null!=y.restoreDefaultValues&&A.queueOperation(y.restoreDefaultValues,e)},dropAnimatedNode:function(e){(0,l.default)(y,'Native animated module is not available'),A.queueOperation(y.dropAnimatedNode,e)},addAnimatedEventToView:function(e,t,n){(0,l.default)(y,'Native animated module is not available'),A.queueOperation(y.addAnimatedEventToView,e,t,n)},removeAnimatedEventFromView(e,t,n){(0,l.default)(y,'Native animated module is not available'),A.queueOperation(y.removeAnimatedEventFromView,e,t,n)}},P={backgroundColor:!0,borderBottomColor:!0,borderColor:!0,borderEndColor:!0,borderLeftColor:!0,borderRightColor:!0,borderStartColor:!0,borderTopColor:!0,color:!0,tintColor:!0},h=(0,t.default)((0,t.default)({},P),{},{borderBottomEndRadius:!0,borderBottomLeftRadius:!0,borderBottomRightRadius:!0,borderBottomStartRadius:!0,borderRadius:!0,borderTopEndRadius:!0,borderTopLeftRadius:!0,borderTopRightRadius:!0,borderTopStartRadius:!0,elevation:!0,opacity:!0,transform:!0,zIndex:!0,shadowOpacity:!0,shadowRadius:!0,scaleX:!0,scaleY:!0,translateX:!0,translateY:!0}),w={translateX:!0,translateY:!0,scale:!0,scaleX:!0,scaleY:!0,rotate:!0,rotateX:!0,rotateY:!0,rotateZ:!0,perspective:!0},T={inputRange:!0,outputRange:!0,extrapolate:!0,extrapolateRight:!0,extrapolateLeft:!0};function S(e){h[e]=!0}function q(e){w[e]=!0}function V(e){T[e]=!0}function j(e){return P.hasOwnProperty(e)}function R(e){return h.hasOwnProperty(e)}function I(e){return w.hasOwnProperty(e)}function D(e){return T.hasOwnProperty(e)}function C(e){e.forEach(e=>{if(!I(e.property))throw new Error("Property '"+e.property+"' is not supported by native animated module")})}function E(e){for(var t in e)if(!R(t))throw new Error("Style property '"+t+"' is not supported by native animated module")}function F(e){for(var t in e)if(!D(t))throw new Error("Interpolation property '"+t+"' is not supported by native animated module")}function x(){return p++}function L(){return c++}function W(){(0,l.default)(f,'Native animated module is not available')}var Q=!1;function M(e){return null==e.useNativeDriver&&console.warn("Animated: `useNativeDriver` was not specified. This is a required option and must be explicitly set to `true` or `false`"),!0!==e.useNativeDriver||f?e.useNativeDriver||!1:(Q||(console.warn("Animated: `useNativeDriver` is not supported because the native animated module is missing. Falling back to JS-based animation. To resolve this, add `RCTAnimation` module to this app, or remove `useNativeDriver`. Make sure to run `bundle exec pod install` first. Read more about autolinking: https://github.com/react-native-community/cli/blob/master/docs/autolinking.md"),Q=!0),!1)}function _(e){return'string'!=typeof e?e:/deg$/.test(e)?(parseFloat(e)||0)*Math.PI/180:e}var k={API:A,isSupportedColorStyleProp:j,isSupportedStyleProp:R,isSupportedTransformProp:I,isSupportedInterpolationParam:D,addWhitelistedStyleProp:S,addWhitelistedTransformProp:q,addWhitelistedInterpolationParam:V,validateStyles:E,validateTransform:C,validateInterpolation:F,generateNewNodeTag:x,generateNewAnimationId:L,assertNativeAnimatedModule:W,shouldUseNativeDriver:M,transformDataType:_,get nativeEventEmitter(){return s||(s=new o.default(null)),s}}},277,[24,278,280,281,283,284,21,282]); +__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 e}});var e=(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])).get('NativeAnimatedModule')},278,[279]); +__d(function(g,r,i,a,m,_e,d){'use strict';Object.defineProperty(_e,'__esModule',{value:!0}),_e.get=u,_e.getEnforcing=function(e){var n=null;return(0,t.default)(null!=n,"TurboModuleRegistry.getEnforcing(...): '"+e+"' could not be found. Verify that a module by this name is registered in the native binary."),n};var e,n=r(d[0]),t=(e=n)&&e.__esModule?e:{default:e};function u(e){return null}},279,[21]); +__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 e}});var e=(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])).get('NativeAnimatedTurboModule')},280,[279]); +__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}}),r(d[0]);var t=e(r(d[1])),n=e(r(d[2]));class l{constructor(e){}addListener(e,n,l){var u;null==(u=this._nativeModule)||u.addListener(e);var s=t.default.addListener(e,n,l);return{remove:()=>{var e;null!=s&&(null==(e=this._nativeModule)||e.removeListeners(1),s.remove(),s=null)}}}removeListener(e,n){var l;null==(l=this._nativeModule)||l.removeListeners(1),t.default.removeListener(e,n)}emit(e){for(var n=arguments.length,l=new Array(n>1?n-1:0),u=1;u!0,shouldEmitW3CPointerEvents:()=>!1,shouldPressibilityUseW3CPointerEventsForHover:()=>!1,animatedShouldDebounceQueueFlush:()=>!1,animatedShouldUseSingleOp:()=>!1}},284,[]); +__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 y}});var t=e(r(d[0])),s=e(r(d[1])),l=e(r(d[2])),n=e(r(d[3])),_=e(r(d[4])).default.flatten;function u(e){var l=_(e),n={};for(var f in l){var y=l[f];'transform'===f&&Array.isArray(y)?n[f]=new s.default(y):y instanceof t.default?n[f]=y:y&&!Array.isArray(y)&&'object'==typeof y&&(n[f]=u(y))}return n}class f extends l.default{constructor(e){super(),this._inputStyle=e,this._style=u(e)}_walkStyleAndGetValues(e){var s={};for(var l in e){var n=e[l];n instanceof t.default?n.__isNative||(s[l]=n.__getValue()):n&&!Array.isArray(n)&&'object'==typeof n?s[l]=this._walkStyleAndGetValues(n):s[l]=n}return s}__getValue(){return[this._inputStyle,this._walkStyleAndGetValues(this._style)]}_walkStyleAndGetAnimatedValues(e){var s={};for(var l in e){var n=e[l];n instanceof t.default?s[l]=n.__getAnimatedValue():n&&!Array.isArray(n)&&'object'==typeof n&&(s[l]=this._walkStyleAndGetAnimatedValues(n))}return s}__getAnimatedValue(){return this._walkStyleAndGetAnimatedValues(this._style)}__attach(){for(var e in this._style){var s=this._style[e];s instanceof t.default&&s.__addChild(this)}}__detach(){for(var e in this._style){var s=this._style[e];s instanceof t.default&&s.__removeChild(this)}super.__detach()}__makeNative(){for(var e in this._style){var s=this._style[e];s instanceof t.default&&s.__makeNative()}super.__makeNative()}__getNativeConfig(){var e={};for(var s in this._style)if(this._style[s]instanceof t.default){var l=this._style[s];l.__makeNative(),e[s]=l.__getNativeTag()}return n.default.validateStyles(e),{type:'style',style:e}}}var y=f},285,[276,286,275,277,23]); +__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=t(r(d[0])),n=t(r(d[1])),s=t(r(d[2]));class f extends n.default{constructor(t){super(),this._transforms=t}__makeNative(){this._transforms.forEach(t=>{for(var n in t){var s=t[n];s instanceof e.default&&s.__makeNative()}}),super.__makeNative()}__getValue(){return this._transforms.map(t=>{var n={};for(var s in t){var f=t[s];f instanceof e.default?n[s]=f.__getValue():n[s]=f}return n})}__getAnimatedValue(){return this._transforms.map(t=>{var n={};for(var s in t){var f=t[s];f instanceof e.default?n[s]=f.__getAnimatedValue():n[s]=f}return n})}__attach(){this._transforms.forEach(t=>{for(var n in t){var s=t[n];s instanceof e.default&&s.__addChild(this)}})}__detach(){this._transforms.forEach(t=>{for(var n in t){var s=t[n];s instanceof e.default&&s.__removeChild(this)}}),super.__detach()}__getNativeConfig(){var t=[];return this._transforms.forEach(n=>{for(var f in n){var o=n[f];o instanceof e.default?t.push({type:'animated',property:f,nodeTag:o.__getNativeTag()}):t.push({type:'static',property:f,value:s.default.transformDataType(o)})}}),s.default.validateTransform(t),{type:'transform',transforms:t}}}var o=f},286,[276,275,277]); +__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 t=r(d[0]);function u(u){var n=(0,t.useRef)(void 0);return(0,t.useCallback)(t=>{n.current&&(n.current(),n.current=void 0),null!=t&&(n.current=u(t))},[u])}},287,[11]); +__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 n=r(d[0]);function t(){for(var t=arguments.length,u=new Array(t),f=0;f{for(var t=0,f=u;t0&&(b=p.join(' ')),[d,b,f]}function C(e){if('number'==typeof e){var t=(0,d.getAssetByID)(e);return{height:t.height,width:t.width}}if(null!=e&&!Array.isArray(e)&&'object'==typeof e)return{height:e.height,width:e.width}}function O(e){var t=null;if('number'==typeof e){var n=(0,d.getAssetByID)(e);if(null==n)throw new Error("Image: asset with ID \""+e+"\" could not be found. Please check the image source or packager.");var o=n.scales[0];if(n.scales.length>1){var l=f.default.get();o=n.scales.reduce((e,t)=>Math.abs(t-l){var d=e['aria-label'],s=e.accessibilityLabel,f=e.blurRadius,h=e.defaultSource,y=e.draggable,S=e.onError,L=e.onLayout,M=e.onLoad,P=e.onLoadEnd,j=e.onLoadStart,D=e.pointerEvents,_=e.source,A=e.style,B=(0,o.default)(e,v),F=d||s,H=l.useState(()=>{var e=O(_);if(null!=e&&c.default.has(e))return w;return"IDLE"}),W=H[0],q=H[1],N=l.useState({}),$=N[0],G=N[1],U=l.useContext(p.default),V=l.useRef(null),J=l.useRef(z++),K=l.useRef(null),Q=W===w||W===E&&null==h,T=I(A,f,J.current,e.tintColor),X=T[0],Y=T[1],Z=T[2],ee=e.resizeMode||X||'cover',te=e.tintColor||Z,re=Q?_:h,ae=O(re),ne=C(re),oe=ae?"url(\""+ae+"\")":null,le=(function(){if(null!=V.current&&('center'===ee||'repeat'===ee)){var e=V.current,t=e.naturalHeight,n=e.naturalWidth,o=$.height,l=$.width;if(t&&n&&o&&l){var u=Math.min(1,l/n,o/t);return Math.ceil(u*n)+"px "+Math.ceil(u*t)+"px"}}})(),ue=ae?(0,u.default)('img',{alt:F||'',style:R.accessibilityImage$raw,draggable:y||!1,ref:V,src:ae}):null;var ie=O(_);return l.useEffect(()=>{function e(){null!=K.current&&(c.default.abort(K.current),K.current=null)}return e(),null!=ie&&(q(E),j&&j(),K.current=c.default.load(ie,function(e){q(w),M&&M(e),P&&P()},function(){q("ERRORED"),S&&S({nativeEvent:{error:"Failed to load resource "+ie}}),P&&P()})),e},[ie,K,q,S,M,P,j]),l.createElement(b.default,(0,n.default)({},B,{"aria-label":F,onLayout:function(e){if('center'===ee||'repeat'===ee||L){var t=e.nativeEvent.layout;L&&L(e),G(t)}},pointerEvents:D,ref:t,style:[R.root,U&&R.inline,ne,A,R.undo,{boxShadow:null}]}),l.createElement(b.default,{style:[R.image,x[ee],{backgroundImage:oe,filter:Y},null!=le&&{backgroundSize:le}],suppressHydrationWarning:!0}),ue,k(te,J.current))});L.displayName='Image';var M=L;M.getSize=function(e,t,n){c.default.getSize(e,t,n)},M.prefetch=function(e){return c.default.prefetch(e)},M.queryCache=function(e){return c.default.queryCache(e)};var R=h.default.create({root:{flexBasis:'auto',overflow:'hidden',zIndex:0},inline:{display:'inline-flex'},undo:{blurRadius:null,shadowColor:null,shadowOpacity:null,shadowOffset:null,shadowRadius:null,tintColor:null,overlayColor:null,resizeMode:null},image:(0,t.default)((0,t.default)({},h.default.absoluteFillObject),{},{backgroundColor:'transparent',backgroundPosition:'center',backgroundRepeat:'no-repeat',backgroundSize:'cover',height:'100%',width:'100%',zIndex:-1}),accessibilityImage$raw:(0,t.default)((0,t.default)({},h.default.absoluteFillObject),{},{height:'100%',opacity:0,width:'100%',zIndex:-1})}),x=h.default.create({center:{backgroundSize:'auto'},contain:{backgroundSize:'contain'},cover:{backgroundSize:'cover'},none:{backgroundPosition:'0',backgroundSize:'auto'},repeat:{backgroundPosition:'0',backgroundRepeat:'repeat',backgroundSize:'auto'},stretch:{backgroundSize:'100% 100%'}}),P=M},290,[24,237,29,11,86,291,75,292,293,23,114,85,76]); +__d(function(g,r,i,a,m,e,d){const s=[];m.exports={registerAsset:t=>s.push(t),getAssetByID:t=>s[t-1]}},291,[]); +__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}}),Object.defineProperty(_e,"ImageUriCache",{enumerable:!0,get:function(){return t}});var e=/^data:/;class t{static has(n){var o=t._entries;return e.test(n)||Boolean(o[n])}static add(e){var n=t._entries,o=Date.now();n[e]?(n[e].lastUsedTimestamp=o,n[e].refCount+=1):n[e]={lastUsedTimestamp:o,refCount:1}}static remove(e){var n=t._entries;n[e]&&(n[e].refCount-=1),t._cleanUpIfNeeded()}static _cleanUpIfNeeded(){var e,n,o=t._entries,s=Object.keys(o);s.length+1>t._maximumEntries&&(s.forEach(t=>{var s=o[t];(!n||s.lastUsedTimestampt.has(e),load(e,t,s){n+=1;var l=new window.Image;return l.onerror=s,l.onload=e=>{var n=()=>t({nativeEvent:e});'function'==typeof l.decode?l.decode().then(n,n):setTimeout(n,0)},l.src=e,o[""+n]=l,n},prefetch:e=>new Promise((n,o)=>{s.load(e,()=>{t.add(e),t.remove(e),n()},o)}),queryCache(e){var n={};return e.forEach(e=>{t.has(e)&&(n[e]='disk/memory')}),Promise.resolve(n)}},l=s},292,[]); +__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,t=r(d[0]),u=(e=t)&&e.__esModule?e:{default:e};class n{static get(){return u.default.get('window').scale}static getFontScale(){return u.default.get('window').fontScale||n.get()}static getPixelSizeForLayoutSize(e){return Math.round(e*n.get())}static roundToNearestPixel(e){var t=n.get();return Math.round(e*t)/t}}},293,[20]); +__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])),f=e(r(_d[3])),o=n.forwardRef((e,f)=>n.createElement(u.default,(0,t.default)({scrollEventThrottle:1e-4},e,{ref:f}))),c=(0,f.default)(o)},294,[237,11,246,269]); +__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])),f=e(r(_d[3])),o=n.forwardRef((e,f)=>n.createElement(u.default,(0,t.default)({scrollEventThrottle:1e-4},e,{ref:f}))),c=(0,f.default)(o)},295,[237,11,296,269]); +__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},296,[297]); +__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]));r(_d[2]);var n=(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[3])),o=e(r(_d[4])),c=["stickySectionHeadersEnabled"];class l extends n.PureComponent{constructor(){super(...arguments),this._captureRef=e=>{this._wrapperListRef=e}}scrollToLocation(e){null!=this._wrapperListRef&&this._wrapperListRef.scrollToLocation(e)}recordInteraction(){var e=this._wrapperListRef&&this._wrapperListRef.getListRef();e&&e.recordInteraction()}flashScrollIndicators(){var e=this._wrapperListRef&&this._wrapperListRef.getListRef();e&&e.flashScrollIndicators()}getScrollResponder(){var e=this._wrapperListRef&&this._wrapperListRef.getListRef();if(e)return e.getScrollResponder()}getScrollableNode(){var e=this._wrapperListRef&&this._wrapperListRef.getListRef();if(e)return e.getScrollableNode()}render(){var e=this.props,l=e.stickySectionHeadersEnabled,f=(0,s.default)(e,c),p=null!=l&&l;return n.createElement(o.default,(0,t.default)({},f,{stickySectionHeadersEnabled:p,ref:this._captureRef,getItemCount:e=>e.length,getItem:(e,t)=>e[t]}))}}},297,[237,29,235,11,298]); +__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 S}});var t=e(r(_d[0])),i=e(r(_d[1])),n=e(r(_d[2])),o=e(r(_d[3])),s=e(r(_d[4])),l=e(r(_d[5])),d=r(_d[6]),p=e(r(_d[7])),u=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(i){var n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,n.get?n:{enumerable:!0,get:function(){return e[i]}})}),t.default=e,t})(r(_d[8])),c=["ItemSeparatorComponent","SectionSeparatorComponent","renderItem","renderSectionFooter","renderSectionHeader","sections","stickySectionHeadersEnabled"];class h extends u.PureComponent{constructor(){super(...arguments),this._keyExtractor=(e,t)=>{var i=this._subExtractor(t);return i&&i.key||String(t)},this._convertViewable=e=>{var t;(0,p.default)(null!=e.index,'Received a broken ViewToken');var i=this._subExtractor(e.index);if(!i)return null;var n=i.section.keyExtractor,s=this.props.keyExtractor||d.keyExtractor,l=null!=n?n(e.item,i.index):s(e.item,null!==(t=i.index)&&void 0!==t?t:0);return(0,o.default)((0,o.default)({},e),{},{index:i.index,key:l,section:i.section})},this._onViewableItemsChanged=e=>{var t=e.viewableItems,i=e.changed,n=this.props.onViewableItemsChanged;null!=n&&n({viewableItems:t.map(this._convertViewable,this).filter(Boolean),changed:i.map(this._convertViewable,this).filter(Boolean)})},this._renderItem=e=>t=>{var i=t.item,n=t.index,o=this._subExtractor(n);if(!o)return null;var s=o.index;if(null==s){var l=o.section;if(!0===o.header){var d=this.props.renderSectionHeader;return d?d({section:l}):null}var c=this.props.renderSectionFooter;return c?c({section:l}):null}var h=o.section.renderItem||this.props.renderItem,S=this._getSeparatorComponent(n,o,e);return(0,p.default)(h,'no renderItem!'),u.createElement(f,{SeparatorComponent:S,LeadingSeparatorComponent:0===s?this.props.SectionSeparatorComponent:void 0,cellKey:o.key,index:s,item:i,leadingItem:o.leadingItem,leadingSection:o.leadingSection,prevCellKey:(this._subExtractor(n-1)||{}).key,setSelfHighlightCallback:this._setUpdateHighlightFor,setSelfUpdatePropsCallback:this._setUpdatePropsFor,updateHighlightFor:this._updateHighlightFor,updatePropsFor:this._updatePropsFor,renderItem:h,section:o.section,trailingItem:o.trailingItem,trailingSection:o.trailingSection,inverted:!!this.props.inverted})},this._updatePropsFor=(e,t)=>{var i=this._updatePropsMap[e];null!=i&&i(t)},this._updateHighlightFor=(e,t)=>{var i=this._updateHighlightMap[e];null!=i&&i(t)},this._setUpdateHighlightFor=(e,t)=>{null!=t?this._updateHighlightMap[e]=t:delete this._updateHighlightFor[e]},this._setUpdatePropsFor=(e,t)=>{null!=t?this._updatePropsMap[e]=t:delete this._updatePropsMap[e]},this._updateHighlightMap={},this._updatePropsMap={},this._captureRef=e=>{this._listRef=e}}scrollToLocation(e){for(var t=e.itemIndex,i=0;i0&&this.props.stickySectionHeadersEnabled)n+=this._listRef.__getFrameMetricsApprox(t-e.itemIndex,this._listRef.props).length;var s=(0,o.default)((0,o.default)({},e),{},{viewOffset:n,index:t});this._listRef.scrollToIndex(s)}}getListRef(){return this._listRef}render(){for(var e,o=this.props,s=(o.ItemSeparatorComponent,o.SectionSeparatorComponent,o.renderItem,o.renderSectionFooter,o.renderSectionHeader,o.sections,o.stickySectionHeadersEnabled,(0,n.default)(o,c)),d=this.props.ListHeaderComponent?1:0,p=this.props.stickySectionHeadersEnabled?[]:void 0,h=0,f=(0,i.default)(this.props.sections);!(e=f()).done;){var S=e.value;null!=p&&p.push(h+d),h+=2,h+=this.props.getItemCount(S.data)}var _=this._renderItem(h);return u.createElement(l.default,(0,t.default)({},s,{keyExtractor:this._keyExtractor,stickyHeaderIndices:p,renderItem:_,data:this.props.sections,getItem:(e,t)=>this._getItem(this.props,e,t),getItemCount:()=>h,onViewableItemsChanged:this.props.onViewableItemsChanged?this._onViewableItemsChanged:void 0,ref:this._captureRef}))}_getItem(e,t,i){if(!t)return null;for(var n=i-1,o=0;o=o(c)+1))return-1===t?{section:u,key:h+':header',index:null,header:!0,trailingSection:l[p+1]}:t===o(c)?{section:u,key:h+':footer',index:null,header:!1,trailingSection:l[p+1]}:{section:u,key:h+':'+(u.keyExtractor||s||d.keyExtractor)(n(c,t),t),index:t,leadingItem:n(c,t-1),leadingSection:l[p-1],trailingItem:n(c,t+1),trailingSection:l[p+1]};t-=o(c)+1}}_getSeparatorComponent(e,t,i){if(!(t=t||this._subExtractor(e)))return null;var n=t.section.ItemSeparatorComponent||this.props.ItemSeparatorComponent,o=this.props.SectionSeparatorComponent,s=e===i-1,l=t.index===this.props.getItemCount(t.section.data)-1;return o&&l?o:!n||l||s?null:n}}function f(e){var i=e.LeadingSeparatorComponent,n=e.SeparatorComponent,l=e.cellKey,d=e.prevCellKey,p=e.setSelfHighlightCallback,c=e.updateHighlightFor,h=e.setSelfUpdatePropsCallback,f=e.updatePropsFor,S=e.item,_=e.index,I=e.section,v=e.inverted,x=u.useState(!1),C=x[0],b=x[1],y=u.useState(!1),k=y[0],E=y[1],H=u.useState({leadingItem:e.leadingItem,leadingSection:e.leadingSection,section:e.section,trailingItem:e.item,trailingSection:e.trailingSection}),P=H[0],F=H[1],w=u.useState({leadingItem:e.item,leadingSection:e.leadingSection,section:e.section,trailingItem:e.trailingItem,trailingSection:e.trailingSection}),M=w[0],R=w[1];u.useEffect(()=>(p(l,E),h(l,R),()=>{h(l,null),p(l,null)}),[l,p,R,h]);var V={highlight:()=>{b(!0),E(!0),null!=d&&c(d,!0)},unhighlight:()=>{b(!1),E(!1),null!=d&&c(d,!1)},updateProps:(e,t)=>{'leading'===e?null!=i?F((0,o.default)((0,o.default)({},P),t)):null!=d&&f(d,(0,o.default)((0,o.default)({},P),t)):'trailing'===e&&null!=n&&R((0,o.default)((0,o.default)({},M),t))}},O=e.renderItem({item:S,index:_,section:I,separators:V}),U=null!=i&&u.createElement(i,(0,t.default)({highlighted:C},P)),j=null!=n&&u.createElement(n,(0,t.default)({highlighted:k},M));return U||j?u.createElement(s.default,null,!1===v?U:j,O,!1===v?j:U):O}var S=h},298,[237,242,29,24,85,241,266,21,11]); +__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}}),r(d[0]);var t=e(r(d[1])),u=(0,e(r(d[2])).default)(t.default)},299,[11,300,269]); +__d(function(g,r,i,a,m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}function o(e){if(e&&e.__esModule)return e;var o={};return e&&Object.keys(e).forEach(function(n){var t=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(o,n,t.get?t:{enumerable:!0,get:function(){return e[n]}})}),o.default=e,o}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return k}});var n=e(r(_d[0])),t=e(r(_d[1])),l=o(r(_d[2])),d=e(r(_d[3])),s=o(r(_d[4])),u=e(r(_d[5])),p=e(r(_d[6])),S=e(r(_d[7])),c=e(r(_d[8])),R=e(r(_d[9])),h=e(r(_d[10])),f=e(r(_d[11])),b=r(_d[12]),v=["hrefAttrs","numberOfLines","onClick","onLayout","onPress","onMoveShouldSetResponder","onMoveShouldSetResponderCapture","onResponderEnd","onResponderGrant","onResponderMove","onResponderReject","onResponderRelease","onResponderStart","onResponderTerminate","onResponderTerminationRequest","onScrollShouldSetResponder","onScrollShouldSetResponderCapture","onSelectionChangeShouldSetResponder","onSelectionChangeShouldSetResponderCapture","onStartShouldSetResponder","onStartShouldSetResponderCapture","selectable"],C=Object.assign({},s.defaultProps,s.accessibilityProps,s.clickProps,s.focusProps,s.keyboardProps,s.mouseProps,s.touchProps,s.styleProps,{href:!0,lang:!0,pointerEvents:!0}),x=e=>(0,u.default)(e,C),w=l.forwardRef((e,o)=>{var n=e.hrefAttrs,s=e.numberOfLines,u=e.onClick,h=e.onLayout,C=e.onPress,w=e.onMoveShouldSetResponder,y=e.onMoveShouldSetResponderCapture,k=e.onResponderEnd,M=e.onResponderGrant,O=e.onResponderMove,L=e.onResponderReject,_=e.onResponderRelease,j=e.onResponderStart,A=e.onResponderTerminate,T=e.onResponderTerminationRequest,E=e.onScrollShouldSetResponder,W=e.onScrollShouldSetResponderCapture,D=e.onSelectionChangeShouldSetResponder,$=e.onSelectionChangeShouldSetResponderCapture,q=e.onStartShouldSetResponder,G=e.onStartShouldSetResponderCapture,H=e.selectable,z=(0,t.default)(e,v),B=l.useContext(f.default),N=l.useRef(null),F=(0,b.useLocaleContext)().direction;(0,p.default)(N,h),(0,R.default)(N,{onMoveShouldSetResponder:w,onMoveShouldSetResponderCapture:y,onResponderEnd:k,onResponderGrant:M,onResponderMove:O,onResponderReject:L,onResponderRelease:_,onResponderStart:j,onResponderTerminate:A,onResponderTerminationRequest:T,onScrollShouldSetResponder:E,onScrollShouldSetResponderCapture:W,onSelectionChangeShouldSetResponder:D,onSelectionChangeShouldSetResponderCapture:$,onStartShouldSetResponder:q,onStartShouldSetResponderCapture:G});var I=l.useCallback(e=>{null!=u?u(e):null!=C&&(e.stopPropagation(),C(e))},[u,C]),J=B?'span':'div',K=null!=e.lang?(0,b.getLocaleDirection)(e.lang):null,Q=e.dir||K,U=Q||F,V=x(z);if(V.dir=Q,B||(V.dir=null!=Q?Q:'auto'),(u||C)&&(V.onClick=I),V.style=[null!=s&&s>1&&{WebkitLineClamp:s},!0===B?P.textHasAncestor$raw:P.text$raw,1===s&&P.textOneLine,null!=s&&s>1&&P.textMultiLine,e.style,!0===H&&P.selectable,!1===H&&P.notSelectable,C&&P.pressable],null!=e.href&&(J='a',null!=n)){var X=n.download,Y=n.rel,Z=n.target;null!=X&&(V.download=X),null!=Y&&(V.rel=Y),'string'==typeof Z&&(V.target='_'!==Z.charAt(0)?'_'+Z:Z)}var ee=(0,c.default)(V),oe=(0,S.default)(N,ee,o);V.ref=oe;var ne=(0,d.default)(J,V,{writingDirection:U});return B?ne:l.createElement(f.default.Provider,{value:!0},ne)});w.displayName='Text';var y={backgroundColor:'transparent',border:'0 solid black',boxSizing:'border-box',color:'black',display:'inline',font:'14px System',listStyle:'none',margin:0,padding:0,position:'relative',textAlign:'start',textDecoration:'none',whiteSpace:'pre-wrap',wordWrap:'break-word'},P=h.default.create({text$raw:y,textHasAncestor$raw:(0,n.default)((0,n.default)({},y),{},{color:'inherit',font:'inherit',textAlign:'inherit',whiteSpace:'inherit'}),textOneLine:{maxWidth:'100%',overflow:'hidden',textOverflow:'ellipsis',whiteSpace:'nowrap',wordWrap:'normal'},textMultiLine:{display:'-webkit-box',maxWidth:'100%',overflow:'clip',textOverflow:'ellipsis',WebkitBoxOrient:'vertical'},notSelectable:{userSelect:'none'},selectable:{userSelect:'text'},pressable:{cursor:'pointer'}}),k=w},300,[24,29,11,86,94,95,96,103,105,107,23,114,92]); +__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}}),r(d[0]);var t=e(r(d[1])),u=(0,e(r(d[2])).default)(t.default)},301,[11,85,269]); +__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=t(r(d[0])),n=r(d[1]),u=t(r(d[2])),l=t(r(d[3])),f=t(r(d[4])),o=t(r(d[5])),c=t(r(d[6])),s=t(r(d[7])),v=t(r(d[8])),p=!1;function E(t){return e=>{var n=null==e?e:function(){if(p)console.warn('Ignoring recursive animation callback when running mock animations');else{p=!0;try{e(...arguments)}finally{p=!1}}};t(n)}}var y={start:()=>{},stop:()=>{},reset:()=>{},_startNativeLoop:()=>{},_isUsingNativeDriver:()=>!1},_=t=>(0,e.default)((0,e.default)({},y),{},{start:E(e=>{t.forEach(t=>t.start()),null==e||e({finished:!0})})}),h={Value:o.default,ValueXY:c.default,Color:v.default,Interpolation:l.default,Node:f.default,decay:function(t,e){return y},timing:function(t,n){var u=t;return(0,e.default)((0,e.default)({},y),{},{start:E(t=>{u.setValue(n.toValue),null==t||t({finished:!0})})})},spring:function(t,n){var u=t;return(0,e.default)((0,e.default)({},y),{},{start:E(t=>{u.setValue(n.toValue),null==t||t({finished:!0})})})},add:u.default.add,subtract:u.default.subtract,divide:u.default.divide,multiply:u.default.multiply,modulo:u.default.modulo,diffClamp:u.default.diffClamp,delay:function(t){return y},sequence:function(t){return _(t)},parallel:function(t,e){return _(t)},stagger:function(t,e){return _(e)},loop:function(t,e){(void 0===e?{}:e).iterations;return y},event:u.default.event,createAnimatedComponent:s.default,attachNativeEvent:n.attachNativeEvent,forkEvent:u.default.forkEvent,unforkEvent:u.default.unforkEvent,Event:n.AnimatedEvent}},302,[24,272,303,274,276,273,311,269,316]); +__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 k}});var n=t(_r(d[0])),e=_r(d[1]),i=t(_r(d[2])),r=t(_r(d[3])),a=t(_r(d[4])),o=t(_r(d[5])),u=t(_r(d[6])),f=t(_r(d[7])),s=t(_r(d[8]));_r(d[9]);var c=t(_r(d[10])),v=t(_r(d[11])),l=t(_r(d[12])),p=t(_r(d[13])),g=t(_r(d[14])),_=t(_r(d[15])),h=t(_r(d[16])),N=t(_r(d[17])),w=t(_r(d[18])),E=function(t,n){return t&&n.onComplete?function(){n.onComplete&&n.onComplete(...arguments),t&&t(...arguments)}:t||n.onComplete},A=function(t,e,i){if(t instanceof p.default){var r=(0,n.default)({},e),a=(0,n.default)({},e);for(var o in e){var u=e[o],f=u.x,s=u.y;void 0!==f&&void 0!==s&&(r[o]=f,a[o]=s)}var c=i(t.x,r),v=i(t.y,a);return y([c,v],{stopTogether:!1})}if(t instanceof w.default){var l=(0,n.default)({},e),g=(0,n.default)({},e),_=(0,n.default)({},e),h=(0,n.default)({},e);for(var N in e){var E=e[N],A=E.r,D=E.g,L=E.b,U=E.a;void 0!==A&&void 0!==D&&void 0!==L&&void 0!==U&&(l[N]=A,g[N]=D,_[N]=L,h[N]=U)}var k=i(t.r,l),C=i(t.g,g),V=i(t.b,_),b=i(t.a,h);return y([k,C,V,b],{stopTogether:!1})}return null},D=function t(e,i){var r=function(t,n,e){e=E(e,n);var i=t,r=n;i.stopTracking(),n.toValue instanceof s.default?i.track(new v.default(i,n.toValue,h.default,r,e)):i.animate(new h.default(r),e)};return A(e,i,t)||{start:function(t){r(e,i,t)},stop:function(){e.stopAnimation()},reset:function(){e.resetAnimation()},_startNativeLoop:function(t){var a=(0,n.default)((0,n.default)({},i),{},{iterations:t});r(e,a)},_isUsingNativeDriver:function(){return i.useNativeDriver||!1}}},L=function(t){var n=0;return{start:function(e){0===t.length?e&&e({finished:!0}):t[n].start(function i(r){if(r.finished){if(++n===t.length)return n=0,void(e&&e(r));t[n].start(i)}else e&&e(r)})},stop:function(){n{e<=n&&t.reset()}),n=0},_startNativeLoop:function(){throw new Error('Loops run using the native driver cannot contain Animated.sequence animations')},_isUsingNativeDriver:function(){return!1}}},y=function(t,n){var e=0,i={},r=!(n&&!1===n.stopTogether),a={start:function(n){e!==t.length?t.forEach((o,u)=>{var f=function(o){if(i[u]=!0,++e===t.length)return e=0,void(n&&n(o));!o.finished&&r&&a.stop()};o?o.start(f):f({finished:!0})}):n&&n({finished:!0})},stop:function(){t.forEach((t,n)=>{!i[n]&&t.stop(),i[n]=!0})},reset:function(){t.forEach((t,n)=>{t.reset(),i[n]=!1,e=0})},_startNativeLoop:function(){throw new Error('Loops run using the native driver cannot contain Animated.parallel animations')},_isUsingNativeDriver:function(){return!1}};return a},U=function(t){return D(new l.default(0),{toValue:0,delay:t,duration:0,useNativeDriver:!1})};var k={Value:l.default,ValueXY:p.default,Color:w.default,Interpolation:o.default,Node:s.default,decay:function t(e,i){var r=function(t,n,e){e=E(e,n);var i=t,r=n;i.stopTracking(),i.animate(new g.default(r),e)};return A(e,i,t)||{start:function(t){r(e,i,t)},stop:function(){e.stopAnimation()},reset:function(){e.resetAnimation()},_startNativeLoop:function(t){var a=(0,n.default)((0,n.default)({},i),{},{iterations:t});r(e,a)},_isUsingNativeDriver:function(){return i.useNativeDriver||!1}}},timing:D,spring:function t(e,i){var r=function(t,n,e){e=E(e,n);var i=t,r=n;i.stopTracking(),n.toValue instanceof s.default?i.track(new v.default(i,n.toValue,_.default,r,e)):i.animate(new _.default(r),e)};return A(e,i,t)||{start:function(t){r(e,i,t)},stop:function(){e.stopAnimation()},reset:function(){e.resetAnimation()},_startNativeLoop:function(t){var a=(0,n.default)((0,n.default)({},i),{},{iterations:t});r(e,a)},_isUsingNativeDriver:function(){return i.useNativeDriver||!1}}},add:function(t,n){return new i.default(t,n)},subtract:function(t,n){return new c.default(t,n)},divide:function(t,n){return new a.default(t,n)},multiply:function(t,n){return new f.default(t,n)},modulo:function(t,n){return new u.default(t,n)},diffClamp:function(t,n,e){return new r.default(t,n,e)},delay:U,sequence:L,parallel:y,stagger:function(t,n){return y(n.map((n,e)=>L([U(t*e),n])))},loop:function(t,n){var e=void 0===n?{}:n,i=e.iterations,r=void 0===i?-1:i,a=e.resetBeforeIteration,o=void 0===a||a,u=!1,f=0;return{start:function(n){t&&0!==r?t._isUsingNativeDriver()?t._startNativeLoop(r):(function e(i){void 0===i&&(i={finished:!0}),u||f===r||!1===i.finished?n&&n(i):(f++,o&&t.reset(),t.start(e))})():n&&n({finished:!0})},stop:function(){u=!0,t.stop()},reset:function(){f=0,u=!1,t.reset()},_startNativeLoop:function(){throw new Error('Loops run using the native driver cannot contain Animated.loop animations')},_isUsingNativeDriver:function(){return t._isUsingNativeDriver()}}},event:function(t,n){var i=new e.AnimatedEvent(t,n);return i.__isNative?i:i.__getHandler()},createAnimatedComponent:N.default,attachNativeEvent:e.attachNativeEvent,forkEvent:function(t,n){return t?t instanceof e.AnimatedEvent?(t.__addListener(n),t):function(){'function'==typeof t&&t(...arguments),n(...arguments)}:n},unforkEvent:function(t,n){t&&t instanceof e.AnimatedEvent&&t.__removeListener(n)},Event:e.AnimatedEvent}},303,[24,272,304,305,306,274,307,308,276,271,309,310,273,311,312,314,317,269,316]); +__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 s}});var t=e(r(d[0])),_=e(r(d[1])),a=e(r(d[2]));class u extends a.default{constructor(e,t){super(),this._a='number'==typeof e?new _.default(e):e,this._b='number'==typeof t?new _.default(t):t}__makeNative(e){this._a.__makeNative(e),this._b.__makeNative(e),super.__makeNative(e)}__getValue(){return this._a.__getValue()+this._b.__getValue()}interpolate(e){return new t.default(this,e)}__attach(){this._a.__addChild(this),this._b.__addChild(this)}__detach(){this._a.__removeChild(this),this._b.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:'addition',input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}}var s=u},304,[274,273,275]); +__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 s}});var e=t(r(d[0])),a=t(r(d[1]));class _ extends a.default{constructor(t,e,a){super(),this._a=t,this._min=e,this._max=a,this._value=this._lastValue=this._a.__getValue()}__makeNative(t){this._a.__makeNative(t),super.__makeNative(t)}interpolate(t){return new e.default(this,t)}__getValue(){var t=this._a.__getValue(),e=t-this._lastValue;return this._lastValue=t,this._value=Math.min(Math.max(this._value+e,this._min),this._max),this._value}__attach(){this._a.__addChild(this)}__detach(){this._a.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:'diffclamp',input:this._a.__getNativeTag(),min:this._min,max:this._max}}}var s=_},305,[274,275]); +__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 o}});var t=e(r(d[0])),_=e(r(d[1])),a=e(r(d[2])),n=e(r(d[3]));class s extends n.default{constructor(e,t){super(),this._warnedAboutDivideByZero=!1,(0===t||t instanceof _.default&&0===t.__getValue())&&console.error('Detected potential division by zero in AnimatedDivision'),this._a='number'==typeof e?new a.default(e):e,this._b='number'==typeof t?new a.default(t):t}__makeNative(e){this._a.__makeNative(e),this._b.__makeNative(e),super.__makeNative(e)}__getValue(){var e=this._a.__getValue(),t=this._b.__getValue();return 0===t?(this._warnedAboutDivideByZero||(console.error('Detected division by zero in AnimatedDivision'),this._warnedAboutDivideByZero=!0),0):(this._warnedAboutDivideByZero=!1,e/t)}interpolate(e){return new t.default(this,e)}__attach(){this._a.__addChild(this),this._b.__addChild(this)}__detach(){this._a.__removeChild(this),this._b.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:'division',input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}}var o=s},306,[274,276,273,275]); +__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 a}});var t=e(r(d[0])),_=e(r(d[1]));class u extends _.default{constructor(e,t){super(),this._a=e,this._modulus=t}__makeNative(e){this._a.__makeNative(e),super.__makeNative(e)}__getValue(){return(this._a.__getValue()%this._modulus+this._modulus)%this._modulus}interpolate(e){return new t.default(this,e)}__attach(){this._a.__addChild(this)}__detach(){this._a.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:'modulus',input:this._a.__getNativeTag(),modulus:this._modulus}}}var a=u},307,[274,275]); +__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 s}});var t=e(r(d[0])),_=e(r(d[1])),a=e(r(d[2]));class u extends a.default{constructor(e,t){super(),this._a='number'==typeof e?new _.default(e):e,this._b='number'==typeof t?new _.default(t):t}__makeNative(e){this._a.__makeNative(e),this._b.__makeNative(e),super.__makeNative(e)}__getValue(){return this._a.__getValue()*this._b.__getValue()}interpolate(e){return new t.default(this,e)}__attach(){this._a.__addChild(this),this._b.__addChild(this)}__detach(){this._a.__removeChild(this),this._b.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:'multiplication',input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}}var s=u},308,[274,273,275]); +__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 s}});var t=e(r(d[0])),_=e(r(d[1])),a=e(r(d[2]));class u extends a.default{constructor(e,t){super(),this._a='number'==typeof e?new _.default(e):e,this._b='number'==typeof t?new _.default(t):t}__makeNative(e){this._a.__makeNative(e),this._b.__makeNative(e),super.__makeNative(e)}__getValue(){return this._a.__getValue()-this._b.__getValue()}interpolate(e){return new t.default(this,e)}__attach(){this._a.__addChild(this),this._b.__addChild(this)}__detach(){this._a.__removeChild(this),this._b.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:'subtraction',input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}}var s=u},309,[274,273,275]); +__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 u}});var e=t(r(d[0]));r(d[1]);var _=t(r(d[2])),n=r(d[3]);class s extends _.default{constructor(t,e,_,s,u){super(),this._value=t,this._parent=e,this._animationClass=_,this._animationConfig=s,this._useNativeDriver=(0,n.shouldUseNativeDriver)(s),this._callback=u,this.__attach()}__makeNative(){this.__isNative=!0,this._parent.__makeNative(),super.__makeNative(),this._value.__makeNative()}__getValue(){return this._parent.__getValue()}__attach(){this._parent.__addChild(this),this._useNativeDriver&&this.__makeNative()}__detach(){this._parent.__removeChild(this),super.__detach()}update(){this._value.animate(new this._animationClass((0,e.default)((0,e.default)({},this._animationConfig),{},{toValue:this._animationConfig.toValue.__getValue()})),this._callback)}__getNativeConfig(){var t=new this._animationClass((0,e.default)((0,e.default)({},this._animationConfig),{},{toValue:void 0})).__getNativeAnimationConfig();return{type:'tracking',animationId:(0,n.generateNewAnimationId)(),animationConfig:t,toValue:this._parent.__getNativeTag(),value:this._value.__getNativeTag()}}}var u=s},310,[24,273,276,277]); +__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 u}});var e=t(r(d[0])),s=t(r(d[1])),n=t(r(d[2])),l=1;class f extends s.default{constructor(t){super();var s=t||{x:0,y:0};'number'==typeof s.x&&'number'==typeof s.y?(this.x=new e.default(s.x),this.y=new e.default(s.y)):((0,n.default)(s.x instanceof e.default&&s.y instanceof e.default,"AnimatedValueXY must be initialized with an object of numbers or AnimatedValues."),this.x=s.x,this.y=s.y),this._listeners={}}setValue(t){this.x.setValue(t.x),this.y.setValue(t.y)}setOffset(t){this.x.setOffset(t.x),this.y.setOffset(t.y)}flattenOffset(){this.x.flattenOffset(),this.y.flattenOffset()}extractOffset(){this.x.extractOffset(),this.y.extractOffset()}__getValue(){return{x:this.x.__getValue(),y:this.y.__getValue()}}resetAnimation(t){this.x.resetAnimation(),this.y.resetAnimation(),t&&t(this.__getValue())}stopAnimation(t){this.x.stopAnimation(),this.y.stopAnimation(),t&&t(this.__getValue())}addListener(t){var e=String(l++),s=e=>{e.value;t(this.__getValue())};return this._listeners[e]={x:this.x.addListener(s),y:this.y.addListener(s)},e}removeListener(t){this.x.removeListener(this._listeners[t].x),this.y.removeListener(this._listeners[t].y),delete this._listeners[t]}removeAllListeners(){this.x.removeAllListeners(),this.y.removeAllListeners(),this._listeners={}}getLayout(){return{left:this.x,top:this.y}}getTranslateTransform(){return[{translateX:this.x},{translateY:this.y}]}}var u=f},311,[273,275,21]); +__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 _}});var t,e=r(d[0]),s=(t=e)&&t.__esModule?t:{default:t},n=r(d[1]);class o extends s.default{constructor(t){var e,s,o;super(),this._deceleration=null!==(e=t.deceleration)&&void 0!==e?e:.998,this._velocity=t.velocity,this._useNativeDriver=(0,n.shouldUseNativeDriver)(t),this.__isInteraction=null!==(s=t.isInteraction)&&void 0!==s?s:!this._useNativeDriver,this.__iterations=null!==(o=t.iterations)&&void 0!==o?o:1}__getNativeAnimationConfig(){return{type:'decay',deceleration:this._deceleration,velocity:this._velocity,iterations:this.__iterations}}start(t,e,s,n,o){this.__active=!0,this._lastValue=t,this._fromValue=t,this._onUpdate=e,this.__onEnd=s,this._startTime=Date.now(),this._useNativeDriver?this.__startNativeAnimation(o):this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))}onUpdate(){var t=Date.now(),e=this._fromValue+this._velocity/(1-this._deceleration)*(1-Math.exp(-(1-this._deceleration)*(t-this._startTime)));this._onUpdate(e),Math.abs(this._lastValue-e)<.1?this.__debouncedOnEnd({finished:!0}):(this._lastValue=e,this.__active&&(this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))))}stop(){super.stop(),this.__active=!1,g.cancelAnimationFrame(this._animationFrame),this.__debouncedOnEnd({finished:!1})}}var _=o},312,[313,277]); +__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 _}});var t,e=r(d[0]),n=(t=e)&&t.__esModule?t:{default:t},o=1;var _=class{start(t,e,n,o,_){}stop(){this.__nativeId&&n.default.API.stopAnimation(this.__nativeId)}__getNativeAnimationConfig(){throw new Error('This animation type cannot be offloaded to native')}__debouncedOnEnd(t){var e=this.__onEnd;this.__onEnd=null,e&&e(t)}__startNativeAnimation(t){var e=o+":startAnimation";o+=1,n.default.API.setWaitingForIdentifier(e);try{var _=this.__getNativeAnimationConfig();t.__makeNative(_.platformConfig),this.__nativeId=n.default.generateNewAnimationId(),n.default.API.startAnimatingNode(this.__nativeId,t.__getNativeTag(),_,this.__debouncedOnEnd.bind(this))}catch(t){throw t}finally{n.default.API.unsetWaitingForIdentifier(e)}}}},313,[277]); +__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 l}});var s=t(r(d[0])),e=t(r(d[1])),n=t(r(d[2])),o=r(d[3]);r(d[4]);class h extends s.default{constructor(t){var s,h,l,_,f,u,m,v,c,p,V;if(super(),this._overshootClamping=null!==(s=t.overshootClamping)&&void 0!==s&&s,this._restDisplacementThreshold=null!==(h=t.restDisplacementThreshold)&&void 0!==h?h:.001,this._restSpeedThreshold=null!==(l=t.restSpeedThreshold)&&void 0!==l?l:.001,this._initialVelocity=null!==(_=t.velocity)&&void 0!==_?_:0,this._lastVelocity=null!==(f=t.velocity)&&void 0!==f?f:0,this._toValue=t.toValue,this._delay=null!==(u=t.delay)&&void 0!==u?u:0,this._useNativeDriver=(0,o.shouldUseNativeDriver)(t),this._platformConfig=t.platformConfig,this.__isInteraction=null!==(m=t.isInteraction)&&void 0!==m?m:!this._useNativeDriver,this.__iterations=null!==(v=t.iterations)&&void 0!==v?v:1,void 0!==t.stiffness||void 0!==t.damping||void 0!==t.mass)(0,n.default)(void 0===t.bounciness&&void 0===t.speed&&void 0===t.tension&&void 0===t.friction,'You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one'),this._stiffness=null!==(c=t.stiffness)&&void 0!==c?c:100,this._damping=null!==(p=t.damping)&&void 0!==p?p:10,this._mass=null!==(V=t.mass)&&void 0!==V?V:1;else if(void 0!==t.bounciness||void 0!==t.speed){var T,y;(0,n.default)(void 0===t.tension&&void 0===t.friction&&void 0===t.stiffness&&void 0===t.damping&&void 0===t.mass,'You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one');var b=e.default.fromBouncinessAndSpeed(null!==(T=t.bounciness)&&void 0!==T?T:8,null!==(y=t.speed)&&void 0!==y?y:12);this._stiffness=b.stiffness,this._damping=b.damping,this._mass=1}else{var M,P,D=e.default.fromOrigamiTensionAndFriction(null!==(M=t.tension)&&void 0!==M?M:40,null!==(P=t.friction)&&void 0!==P?P:7);this._stiffness=D.stiffness,this._damping=D.damping,this._mass=1}(0,n.default)(this._stiffness>0,'Stiffness value must be greater than 0'),(0,n.default)(this._damping>0,'Damping value must be greater than 0'),(0,n.default)(this._mass>0,'Mass value must be greater than 0')}__getNativeAnimationConfig(){var t;return{type:'spring',overshootClamping:this._overshootClamping,restDisplacementThreshold:this._restDisplacementThreshold,restSpeedThreshold:this._restSpeedThreshold,stiffness:this._stiffness,damping:this._damping,mass:this._mass,initialVelocity:null!==(t=this._initialVelocity)&&void 0!==t?t:this._lastVelocity,toValue:this._toValue,iterations:this.__iterations,platformConfig:this._platformConfig}}start(t,s,e,n,o){if(this.__active=!0,this._startPosition=t,this._lastPosition=this._startPosition,this._onUpdate=s,this.__onEnd=e,this._lastTime=Date.now(),this._frameTime=0,n instanceof h){var l=n.getInternalState();this._lastPosition=l.lastPosition,this._lastVelocity=l.lastVelocity,this._initialVelocity=this._lastVelocity,this._lastTime=l.lastTime}var _=()=>{this._useNativeDriver?this.__startNativeAnimation(o):this.onUpdate()};this._delay?this._timeout=setTimeout(_,this._delay):_()}getInternalState(){return{lastPosition:this._lastPosition,lastVelocity:this._lastVelocity,lastTime:this._lastTime}}onUpdate(){var t=Date.now();t>this._lastTime+64&&(t=this._lastTime+64);var s=(t-this._lastTime)/1e3;this._frameTime+=s;var e=this._damping,n=this._mass,o=this._stiffness,h=-this._initialVelocity,l=e/(2*Math.sqrt(o*n)),_=Math.sqrt(o/n),f=_*Math.sqrt(1-l*l),u=this._toValue-this._startPosition,m=0,v=0,c=this._frameTime;if(l<1){var p=Math.exp(-l*_*c);m=this._toValue-p*((h+l*_*u)/f*Math.sin(f*c)+u*Math.cos(f*c)),v=l*_*p*(Math.sin(f*c)*(h+l*_*u)/f+u*Math.cos(f*c))-p*(Math.cos(f*c)*(h+l*_*u)-f*u*Math.sin(f*c))}else{var V=Math.exp(-_*c);m=this._toValue-V*(u+(h+_*u)*c),v=V*(h*(c*_-1)+c*u*(_*_))}if(this._lastTime=t,this._lastPosition=m,this._lastVelocity=v,this._onUpdate(m),this.__active){var T=!1;this._overshootClamping&&0!==this._stiffness&&(T=this._startPositionthis._toValue:m18&&v<=44?p(v):M(v),s(2*w-w*w,l,.01));return{stiffness:n(b),damping:t(O)}}}},315,[]); +__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])),s=t(_r(d[1])),a=t(_r(d[2])),r=t(_r(d[3])).default.API,n={r:0,g:0,b:0,a:1},h=1;function l(t){if(null==t)return null;if(_(t))return t;var e=(0,a.default)(t);if(null==e)return null;if('object'==typeof e){if(null!=e)return e}else if('number'==typeof e){return{r:(4278190080&e)>>>24,g:(16711680&e)>>>16,b:(65280&e)>>>8,a:(255&e)/255}}return null}function _(t){return t&&'number'==typeof t.r&&'number'==typeof t.g&&'number'==typeof t.b&&'number'==typeof t.a}function o(t){return t&&t.r instanceof e.default&&t.g instanceof e.default&&t.b instanceof e.default&&t.a instanceof e.default}class f extends s.default{constructor(t,s){super(),this._listeners={};var a=null!=t?t:n;if(o(a)){var r=a;this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a}else{var h,f=null!==(h=l(a))&&void 0!==h?h:n,u=n;_(f)?u=f:this.nativeColor=f,this.r=new e.default(u.r),this.g=new e.default(u.g),this.b=new e.default(u.b),this.a=new e.default(u.a)}(this.nativeColor||s&&s.useNativeDriver)&&this.__makeNative()}setValue(t){var e,s=!1;if(this.__isNative){var a=this.__getNativeTag();r.setWaitingForIdentifier(a.toString())}var h=null!==(e=l(t))&&void 0!==e?e:n;if(_(h)){var o=h;this.r.setValue(o.r),this.g.setValue(o.g),this.b.setValue(o.b),this.a.setValue(o.a),null!=this.nativeColor&&(this.nativeColor=null,s=!0)}else{var f=h;this.nativeColor!==f&&(this.nativeColor=f,s=!0)}if(this.__isNative){var u=this.__getNativeTag();s&&r.updateAnimatedNodeConfig(u,this.__getNativeConfig()),r.unsetWaitingForIdentifier(u.toString())}}setOffset(t){this.r.setOffset(t.r),this.g.setOffset(t.g),this.b.setOffset(t.b),this.a.setOffset(t.a)}flattenOffset(){this.r.flattenOffset(),this.g.flattenOffset(),this.b.flattenOffset(),this.a.flattenOffset()}extractOffset(){this.r.extractOffset(),this.g.extractOffset(),this.b.extractOffset(),this.a.extractOffset()}addListener(t){var e=String(h++),s=e=>{e.value;t(this.__getValue())};return this._listeners[e]={r:this.r.addListener(s),g:this.g.addListener(s),b:this.b.addListener(s),a:this.a.addListener(s)},e}removeListener(t){this.r.removeListener(this._listeners[t].r),this.g.removeListener(this._listeners[t].g),this.b.removeListener(this._listeners[t].b),this.a.removeListener(this._listeners[t].a),delete this._listeners[t]}removeAllListeners(){this.r.removeAllListeners(),this.g.removeAllListeners(),this.b.removeAllListeners(),this.a.removeAllListeners(),this._listeners={}}stopAnimation(t){this.r.stopAnimation(),this.g.stopAnimation(),this.b.stopAnimation(),this.a.stopAnimation(),t&&t(this.__getValue())}resetAnimation(t){this.r.resetAnimation(),this.g.resetAnimation(),this.b.resetAnimation(),this.a.resetAnimation(),t&&t(this.__getValue())}__getValue(){return null!=this.nativeColor?this.nativeColor:"rgba("+this.r.__getValue()+", "+this.g.__getValue()+", "+this.b.__getValue()+", "+this.a.__getValue()+")"}__attach(){this.r.__addChild(this),this.g.__addChild(this),this.b.__addChild(this),this.a.__addChild(this),super.__attach()}__detach(){this.r.__removeChild(this),this.g.__removeChild(this),this.b.__removeChild(this),this.a.__removeChild(this),super.__detach()}__makeNative(t){this.r.__makeNative(t),this.g.__makeNative(t),this.b.__makeNative(t),this.a.__makeNative(t),super.__makeNative(t)}__getNativeConfig(){return{type:'color',r:this.r.__getNativeTag(),g:this.g.__getNativeTag(),b:this.b.__getNativeTag(),a:this.a.__getNativeTag(),nativeColor:this.nativeColor}}}},316,[273,275,37,277]); +__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}}),r(d[0]),r(d[1]),r(d[2]);var e,s=t(r(d[3])),n=t(r(d[4])),o=r(d[5]);r(d[6]);class _ extends n.default{constructor(t){var n,_,h,u,l;super(),this._toValue=t.toValue,this._easing=null!==(n=t.easing)&&void 0!==n?n:(e||(e=s.default.inOut(s.default.ease)),e),this._duration=null!==(_=t.duration)&&void 0!==_?_:500,this._delay=null!==(h=t.delay)&&void 0!==h?h:0,this.__iterations=null!==(u=t.iterations)&&void 0!==u?u:1,this._useNativeDriver=(0,o.shouldUseNativeDriver)(t),this._platformConfig=t.platformConfig,this.__isInteraction=null!==(l=t.isInteraction)&&void 0!==l?l:!this._useNativeDriver}__getNativeAnimationConfig(){for(var t=[],e=Math.round(this._duration/16.666666666666668),s=0;s{0!==this._duration||this._useNativeDriver?(this._startTime=Date.now(),this._useNativeDriver?this.__startNativeAnimation(o):this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))):(this._onUpdate(this._toValue),this.__debouncedOnEnd({finished:!0}))};this._delay?this._timeout=setTimeout(_,this._delay):_()}onUpdate(){var t=Date.now();if(t>=this._startTime+this._duration)return 0===this._duration?this._onUpdate(this._toValue):this._onUpdate(this._fromValue+this._easing(1)*(this._toValue-this._fromValue)),void this.__debouncedOnEnd({finished:!0});this._onUpdate(this._fromValue+this._easing((t-this._startTime)/this._duration)*(this._toValue-this._fromValue)),this.__active&&(this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this)))}stop(){super.stop(),this.__active=!1,clearTimeout(this._timeout),g.cancelAnimationFrame(this._animationFrame),this.__debouncedOnEnd({finished:!1})}}var h=_},317,[273,311,274,318,313,277,316]); +__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},318,[319]); +__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,e,u=r(d[0]),c=(t=u)&&t.__esModule?t:{default:t};class n{static step0(t){return t>0?1:0}static step1(t){return t>=1?1:0}static linear(t){return t}static ease(t){return e||(e=n.bezier(.42,0,1,1)),e(t)}static quad(t){return t*t}static cubic(t){return t*t*t}static poly(t){return e=>Math.pow(e,t)}static sin(t){return 1-Math.cos(t*Math.PI/2)}static circle(t){return 1-Math.sqrt(1-t*t)}static exp(t){return Math.pow(2,10*(t-1))}static elastic(t){void 0===t&&(t=1);var e=t*Math.PI;return t=>1-Math.pow(Math.cos(t*Math.PI/2),3)*Math.cos(t*e)}static back(t){return void 0===t&&(t=1.70158),e=>e*e*((t+1)*e-t)}static bounce(t){if(t<.36363636363636365)return 7.5625*t*t;if(t<.7272727272727273){var e=t-.5454545454545454;return 7.5625*e*e+.75}if(t<.9090909090909091){var u=t-.8181818181818182;return 7.5625*u*u+.9375}var c=t-.9545454545454546;return 7.5625*c*c+.984375}static bezier(t,e,u,n){return(0,c.default)(t,e,u,n)}static in(t){return t}static out(t){return e=>1-t(1-e)}static inOut(t){return e=>e<.5?t(2*e)/2:1-t(2*(1-e))/2}}var s=n},319,[320]); +__d(function(g,r,_i,a,m,e,d){ +/** + * BezierEasing - use bezier curve for transition easing function + * https://github.com/gre/bezier-easing + * @copyright 2014-2015 Gaëtan Renaudeau. MIT License. + */ +'use strict';Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return h}});var n=4,t=.001,u=1e-7,o=10,f=11,i=.1,c='function'==typeof Float32Array;function v(n,t){return 1-3*t+3*n}function l(n,t){return 3*t-6*n}function b(n){return 3*n}function s(n,t,u){return((v(t,u)*n+l(t,u))*n+b(t))*n}function y(n,t,u){return 3*v(t,u)*n*n+2*l(t,u)*n+b(t)}function w(n,t,f,i,c){var v,l,b=0,y=t,w=f;do{(v=s(l=y+(w-y)/2,i,c)-n)>0?w=l:y=l}while(Math.abs(v)>u&&++b=0&&n<=1&&o>=0&&o<=1))throw new Error('bezier x values must be in [0, 1] range');var l=c?new Float32Array(f):new Array(f);if(n!==u||o!==v)for(var b=0;b=t?_(u,v,n,o):0===b?v:w(u,f,f+i,n,o)}return function(t){return n===u&&o===v?t:0===t?0:1===t?1:s(h(t),u,v)}}},320,[]); +__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]);var n=((e=t)&&e.__esModule?e:{default:e}).default&&null!=window.matchMedia?window.matchMedia('(prefers-color-scheme: dark)'):null,l=new WeakMap,o={getColorScheme:()=>n&&n.matches?'dark':'light',addChangeListener(e){var t=l.get(e);return t||(t=t=>{var n=t.matches;e({colorScheme:n?'dark':'light'})},l.set(e,t)),n&&n.addListener(t),{remove:function(){var t=l.get(e);n&&t&&n.removeListener(t),l.delete(e)}}}}},321,[22]); +__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}}),r(d[0]);var e,n=t(r(d[1])),o=t(r(d[2])),p=r(d[3]),s=t(p),u={},l={},c=t=>t();class f{static getAppKeys(){return Object.keys(l)}static getApplication(t,e){return(0,n.default)(l[t]&&l[t].getApplication,"Application "+t+" has not been registered. This is either due to an import error during initialization or failure to call AppRegistry.registerComponent."),l[t].getApplication(e)}static registerComponent(t,n){return l[t]={getApplication:t=>(0,p.getApplication)(c(n),t?t.initialProps:u,e&&e(t)),run:t=>(0,s.default)(c(n),e&&e(t),t.callback,{hydrate:t.hydrate||!1,initialProps:t.initialProps||u,mode:t.mode||'concurrent',rootTag:t.rootTag})},t}static registerConfig(t){t.forEach(t=>{var e=t.appKey,o=t.component,p=t.run;p?f.registerRunnable(e,p):((0,n.default)(o,'No component provider passed in'),f.registerComponent(e,o))})}static registerRunnable(t,e){return l[t]={run:e},t}static runApplication(t,e){return(0,n.default)(l[t]&&l[t].run,"Application \""+t+"\" has not been registered. This is either due to an import error during initialization or failure to call AppRegistry.registerComponent."),l[t].run(e)}static setComponentProviderInstrumentationHook(t){c=t}static setWrapperComponentProvider(t){e=t}static unmountApplicationComponentAtRootTag(t){(0,o.default)(t)}}},322,[24,21,229,323]); +__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 p}}),_e.getApplication=function(e,l,u){return{element:c.default.createElement(n.default,{WrapperComponent:u,rootTag:{}},c.default.createElement(e,l)),getStyleElement:e=>{var n=f.default.getSheet();return c.default.createElement("style",(0,t.default)({},e,{dangerouslySetInnerHTML:{__html:n.textContent},id:n.id}))}}};var t=e(r(d[0])),n=e(r(d[1])),l=e(r(d[2])),u=r(d[3]),o=e(u),f=e(r(d[4])),c=e(r(d[5]));function p(e,t,f,p){var s=p.hydrate,_=p.initialProps,y=p.rootTag,E=s?u.hydrate:o.default;return(0,l.default)(y,'Expect to have a valid rootTag, instead got ',y),E(c.default.createElement(n.default,{WrapperComponent:t,ref:f,rootTag:y},c.default.createElement(e,_)),y)}},323,[237,324,21,222,23,11]); +__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=function({children:t}){return t}},324,[]); +__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=e(r(d[0])),n=e(r(d[1])),u=e(r(d[2])),c=u.default&&!document.hasOwnProperty('hidden')&&document.hasOwnProperty('webkitHidden'),s=['change','memoryWarning'],l=c?'webkitvisibilitychange':'visibilitychange',o=c?'webkitVisibilityState':'visibilityState',b='background',f='active',v=null;class h{static get currentState(){if(!h.isAvailable)return f;switch(document[o]){case'hidden':case'prerender':case'unloaded':return b;default:return f}}static addEventListener(e,u){if(h.isAvailable&&((0,t.default)(-1!==s.indexOf(e),'Trying to subscribe to unknown event: "%s"',e),'change'===e))return v||(v=new n.default,document.addEventListener(l,()=>{v&&v.emit('change',h.currentState)},!1)),v.addListener(e,u)}}h.isAvailable=u.default&&!!document[o]},325,[21,255,22]); +__d(function(g,r,i,a,m,e,d){"use strict";function t(){}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}});var n={exitApp:t,addEventListener:()=>({remove:t}),removeEventListener:t}},326,[]); +__d(function(g,r,i,a,m,_e,d){"use strict";var e;Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return t}});class t{static isAvailable(){return void 0===e&&(e='function'==typeof document.queryCommandSupported&&document.queryCommandSupported('copy')),e}static getString(){return Promise.resolve('')}static setString(e){var t=!1,n=document.body;if(n){var o=document.createElement('span');o.textContent=e,o.style.opacity='0',o.style.position='absolute',o.style.whiteSpace='pre-wrap',o.style.userSelect='auto',n.appendChild(o);var c=window.getSelection();c.removeAllRanges();var u=document.createRange();u.selectNodeContents(o),c.addRange(u);try{document.execCommand('copy'),t=!0}catch(e){}c.removeAllRanges(),n.removeChild(o)}return t}}},327,[]); +__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={allowRTL(){},forceRTL(){},getConstants:()=>({isRTL:!1})}},328,[]); +__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,t=r(d[0]),s=(e=t)&&e.__esModule?e:{default:e},n={isVisible:()=>!1,addListener:()=>({remove:()=>{}}),dismiss(){(0,s.default)()},removeAllListeners(){},removeListener(){}}},329,[247]); +__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},330,[331]); +__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]));function s(e,s){t.default.isTesting||n.default.configureNextLayoutAnimation(e,null!=s?s:function(){},function(){})}function u(e,t,n){return{duration:e,create:{type:t,property:n},update:{type:t},delete:{type:t,property:n}}}var o={easeInEaseOut:u(300,'easeInEaseOut','opacity'),linear:u(500,'linear','opacity'),spring:{duration:700,create:{type:'linear',property:'opacity'},update:{type:'spring',springDamping:.4},delete:{type:'linear',property:'opacity'}}},c={configureNext:s,create:u,Types:Object.freeze({spring:'spring',linear:'linear',easeInEaseOut:'easeInEaseOut',easeIn:'easeIn',easeOut:'easeOut',keyboard:'keyboard'}),Properties:Object.freeze({opacity:'opacity',scaleX:'scaleX',scaleY:'scaleY',scaleXY:'scaleXY'}),checkConfig(){console.error('LayoutAnimation.checkConfig(...) has been disabled.')},Presets:o,easeInEaseOut:s.bind(null,o.easeInEaseOut),linear:s.bind(null,o.linear),spring:s.bind(null,o.spring)}},331,[235,98]); +__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 s}});var t=e(r(d[0])),n=e(r(d[1])),l=n.default?window.location.href:'';var o=(e,t)=>{if(n.default){var l=new URL(e,window.location).toString();0===l.indexOf('tel:')?window.location=l:window.open(l,t,'noopener')}},s=new class{constructor(){this._eventCallbacks={}}_dispatchEvent(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),l=1;l{e(...n)})}addEventListener(e,t){var n=this;return n._eventCallbacks[e]||(n._eventCallbacks[e]=[t]),n._eventCallbacks[e].push(t),{remove(){var l=n._eventCallbacks[e].filter(e=>e.toString()!==t.toString());n._eventCallbacks[e]=l}}}removeEventListener(e,t){console.error("Linking.removeEventListener('"+e+"', ...): Method has been deprecated. Please instead use `remove()` on the subscription returned by `Linking.addEventListener`.");var n=this._eventCallbacks[e].filter(e=>e.toString()!==t.toString());this._eventCallbacks[e]=n}canOpenURL(){return Promise.resolve(!0)}getInitialURL(){return Promise.resolve(l)}openURL(e,t){1===arguments.length&&(t='_blank');try{return o(e,t),this._dispatchEvent('onOpen',e),Promise.resolve()}catch(e){return Promise.reject(e)}}_validateURL(e){(0,t.default)('string'==typeof e,'Invalid URL: should be a string. Was: '+e),(0,t.default)(e,'Invalid URL: cannot be empty')}}},332,[21,22]); +__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},333,[281]); +__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},334,[335]); +__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 T}});var o=e(r(d[0])),n=e(r(d[1])),t=n.default.currentCentroidXOfTouchesChangedAfter,u=n.default.currentCentroidYOfTouchesChangedAfter,s=n.default.previousCentroidXOfTouchesChangedAfter,c=n.default.previousCentroidYOfTouchesChangedAfter,l=n.default.currentCentroidX,p=n.default.currentCentroidY,v={_initializeGestureState(e){e.moveX=0,e.moveY=0,e.x0=0,e.y0=0,e.dx=0,e.dy=0,e.vx=0,e.vy=0,e.numberActiveTouches=0,e._accountsForMovesUpTo=0},_updateGestureStateOnMove(e,o){e.numberActiveTouches=o.numberActiveTouches,e.moveX=t(o,e._accountsForMovesUpTo),e.moveY=u(o,e._accountsForMovesUpTo);var n=e._accountsForMovesUpTo,l=s(o,n),p=t(o,n),v=c(o,n),h=u(o,n),S=e.dx+(p-l),R=e.dy+(h-v),T=o.mostRecentTimeStamp-e._accountsForMovesUpTo;e.vx=(S-e.dx)/T,e.vy=(R-e.dy)/T,e.dx=S,e.dy=R,e._accountsForMovesUpTo=o.mostRecentTimeStamp},create(e){var n={handle:null,shouldCancelClick:!1,timeout:null},t={stateID:Math.random(),moveX:0,moveY:0,x0:0,y0:0,dx:0,dy:0,vx:0,vy:0,numberActiveTouches:0,_accountsForMovesUpTo:0};return{panHandlers:{onStartShouldSetResponder:o=>null!=e.onStartShouldSetPanResponder&&e.onStartShouldSetPanResponder(o,t),onMoveShouldSetResponder:o=>null!=e.onMoveShouldSetPanResponder&&e.onMoveShouldSetPanResponder(o,t),onStartShouldSetResponderCapture:o=>(1===o.nativeEvent.touches.length&&v._initializeGestureState(t),t.numberActiveTouches=o.touchHistory.numberActiveTouches,null!=e.onStartShouldSetPanResponderCapture&&e.onStartShouldSetPanResponderCapture(o,t)),onMoveShouldSetResponderCapture(o){var n=o.touchHistory;return t._accountsForMovesUpTo!==n.mostRecentTimeStamp&&(v._updateGestureStateOnMove(t,n),!!e.onMoveShouldSetPanResponderCapture&&e.onMoveShouldSetPanResponderCapture(o,t))},onResponderGrant:u=>(n.handle||(n.handle=o.default.createInteractionHandle()),n.timeout&&S(n),n.shouldCancelClick=!0,t.x0=l(u.touchHistory),t.y0=p(u.touchHistory),t.dx=0,t.dy=0,e.onPanResponderGrant&&e.onPanResponderGrant(u,t),null==e.onShouldBlockNativeResponder||e.onShouldBlockNativeResponder(u,t)),onResponderReject(o){h(n,e.onPanResponderReject,o,t)},onResponderRelease(o){h(n,e.onPanResponderRelease,o,t),R(n),v._initializeGestureState(t)},onResponderStart(o){var n=o.touchHistory;t.numberActiveTouches=n.numberActiveTouches,e.onPanResponderStart&&e.onPanResponderStart(o,t)},onResponderMove(o){var n=o.touchHistory;t._accountsForMovesUpTo!==n.mostRecentTimeStamp&&(v._updateGestureStateOnMove(t,n),e.onPanResponderMove&&e.onPanResponderMove(o,t))},onResponderEnd(o){var u=o.touchHistory;t.numberActiveTouches=u.numberActiveTouches,h(n,e.onPanResponderEnd,o,t)},onResponderTerminate(o){h(n,e.onPanResponderTerminate,o,t),R(n),v._initializeGestureState(t)},onResponderTerminationRequest:o=>null==e.onPanResponderTerminationRequest||e.onPanResponderTerminationRequest(o,t),onClickCapture:e=>{!0===n.shouldCancelClick&&(e.stopPropagation(),e.preventDefault())}},getInteractionHandle:()=>n.handle}}};function h(e,n,t,u){e.handle&&(o.default.clearInteractionHandle(e.handle),e.handle=null),n&&n(t,u)}function S(e){clearTimeout(e.timeout)}function R(e){e.timeout=setTimeout(()=>{e.shouldCancelClick=!1},250)}var T=v},335,[253,336]); +__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 n={centroidDimension:function(t,i,o,u){var c=t.touchBank,f=0,s=0,h=1===t.numberActiveTouches?t.touchBank[t.indexOfSingleActiveTouch]:null;if(null!==h)h.touchActive&&h.currentTimeStamp>i&&(f+=u&&o?h.currentPageX:u&&!o?h.currentPageY:!u&&o?h.previousPageX:h.previousPageY,s=1);else for(var v=0;v=i){f+=u&&o?l.currentPageX:u&&!o?l.currentPageY:!u&&o?l.previousPageX:l.previousPageY,s++}}return s>0?f/s:n.noCentroid},currentCentroidXOfTouchesChangedAfter:function(t,i){return n.centroidDimension(t,i,!0,!0)},currentCentroidYOfTouchesChangedAfter:function(t,i){return n.centroidDimension(t,i,!1,!0)},previousCentroidXOfTouchesChangedAfter:function(t,i){return n.centroidDimension(t,i,!0,!1)},previousCentroidYOfTouchesChangedAfter:function(t,i){return n.centroidDimension(t,i,!1,!1)},currentCentroidX:function(t){return n.centroidDimension(t,0,!0,!0)},currentCentroidY:function(t){return n.centroidDimension(t,0,!1,!0)},noCentroid:-1},t=n},336,[]); +__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};var o=class{static share(e,t){return void 0===t&&(t={}),(0,s.default)('object'==typeof e&&null!==e,'Content to share must be a valid object'),(0,s.default)('string'==typeof e.url||'string'==typeof e.message,'At least one of URL and message is required'),(0,s.default)('object'==typeof t&&null!==t,'Options must be a valid object'),(0,s.default)(!e.title||'string'==typeof e.title,'Invalid title: title should be a string.'),void 0!==window.navigator.share?window.navigator.share({title:e.title,text:e.message,url:e.url}):Promise.reject(new Error('Share is not supported in this browser'))}static get sharedAction(){return'sharedAction'}static get dismissedAction(){return'dismissedAction'}}},337,[21]); +__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=t=>{'vibrate'in window.navigator&&window.navigator.vibrate(t)},n={cancel(){t(0)},vibrate(n){void 0===n&&(n=400),t(n)}}},338,[]); +__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 y}});var t=e(r(_d[0])),n=e(r(_d[1])),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[2])),l=e(r(_d[3])),d=e(r(_d[4])),s=["animating","color","hidesWhenStopped","size","style"],u=e=>o.createElement("circle",{cx:"16",cy:"16",fill:"none",r:"14",strokeWidth:"4",style:e}),c=o.forwardRef((e,l)=>{var c=e.animating,y=void 0===c||c,p=e.color,v=void 0===p?'#1976D2':p,b=e.hidesWhenStopped,_=void 0===b||b,w=e.size,P=void 0===w?'small':w,j=e.style,k=(0,n.default)(e,s),O=o.createElement("svg",{height:"100%",viewBox:"0 0 32 32",width:"100%"},u({stroke:v,opacity:.2}),u({stroke:v,strokeDasharray:80,strokeDashoffset:60}));return o.createElement(d.default,(0,t.default)({},k,{"aria-valuemax":1,"aria-valuemin":0,ref:l,role:"progressbar",style:[f.container,j]}),o.createElement(d.default,{children:O,style:['number'==typeof P?{height:P,width:P}:h[P],f.animation,!y&&f.animationPause,!y&&_&&f.hidesWhenStopped]}))});c.displayName='ActivityIndicator';var f=l.default.create({container:{alignItems:'center',justifyContent:'center'},hidesWhenStopped:{visibility:'hidden'},animation:{animationDuration:'0.75s',animationKeyframes:[{'0%':{transform:'rotate(0deg)'},'100%':{transform:'rotate(360deg)'}}],animationTimingFunction:'linear',animationIterationCount:'infinite'},animationPause:{animationPlayState:'paused'}}),h=l.default.create({small:{width:20,height:20},large:{width:36,height:36}}),y=c},339,[237,29,11,23,85]); +__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=(function(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})(r(_d[0])),o=e(r(_d[1])),n=e(r(_d[2])),l=e(r(_d[3])),u=t.forwardRef((e,o)=>{var u=e.accessibilityLabel,c=e.color,s=e.disabled,f=e.onPress,b=e.testID,y=e.title;return t.createElement(n.default,{accessibilityLabel:u,accessibilityRole:"button",disabled:s,focusable:!s,onPress:f,ref:o,style:[d.button,c&&{backgroundColor:c},s&&d.buttonDisabled],testID:b},t.createElement(l.default,{style:[d.text,s&&d.textDisabled]},y))});u.displayName='Button';var d=o.default.create({button:{backgroundColor:'#2196F3',borderRadius:2},text:{color:'#fff',fontWeight:'500',padding:8,textAlign:'center',textTransform:'uppercase'},buttonDisabled:{backgroundColor:'#dfdfdf'},textDisabled:{color:'#a1a1a1'}}),c=u},340,[11,23,341,300]); +__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 p}});var t=e(r(_d[0])),n=e(r(_d[1])),s=r(_d[2]),o=(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})(s),l=e(r(_d[3])),u=e(r(_d[4])),c=e(r(_d[5])),d=e(r(_d[6])),f=["activeOpacity","delayPressIn","delayPressOut","delayLongPress","disabled","focusable","onLongPress","onPress","onPressIn","onPressOut","rejectResponderTermination","style"];function y(e,c){var y=e.activeOpacity,b=e.delayPressIn,p=e.delayPressOut,O=e.delayLongPress,v=e.disabled,_=e.focusable,j=e.onLongPress,L=e.onPress,h=e.onPressIn,k=e.onPressOut,C=e.rejectResponderTermination,E=e.style,R=(0,n.default)(e,f),S=(0,s.useRef)(null),D=(0,l.default)(c,S),I=(0,s.useState)('0s'),M=I[0],w=I[1],T=(0,s.useState)(null),N=T[0],x=T[1],A=(0,s.useCallback)((e,t)=>{x(e),w(t?t/1e3+"s":'0s')},[x,w]),G=(0,s.useCallback)(e=>{A(null!=y?y:.2,e)},[y,A]),q=(0,s.useCallback)(e=>{A(null,e)},[A]),z=(0,s.useMemo)(()=>({cancelable:!C,disabled:v,delayLongPress:O,delayPressStart:b,delayPressEnd:p,onLongPress:j,onPress:L,onPressStart(e){var t=null!=e.dispatchConfig?'onResponderGrant'===e.dispatchConfig.registrationName:'keydown'===e.type;G(t?0:150),null!=h&&h(e)},onPressEnd(e){q(250),null!=k&&k(e)}}),[O,b,p,v,j,L,h,k,C,G,q]),B=(0,u.default)(S,z);return o.createElement(d.default,(0,t.default)({},R,B,{accessibilityDisabled:v,focusable:!v&&!1!==_,pointerEvents:v?'box-none':void 0,ref:D,style:[P.root,!v&&P.actionable,E,null!=N&&{opacity:N},{transitionDuration:M}]}))}var P=c.default.create({root:{transitionProperty:'opacity',transitionDuration:'0.15s',userSelect:'none'},actionable:{cursor:'pointer',touchAction:'manipulation'}}),b=o.memo(o.forwardRef(y));b.displayName='TouchableOpacity';var p=b},341,[237,29,11,103,342,23,85]); +__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 f}});var e,u=r(d[0]),t=(e=u)&&e.__esModule?e:{default:e},n=r(d[1]);function f(e,u){var f=(0,n.useRef)(null);null==f.current&&(f.current=new t.default(u));var l=f.current;return(0,n.useEffect)(()=>{l.configure(u)},[u,l]),(0,n.useEffect)(()=>()=>{l.reset()},[l]),(0,n.useDebugValue)(u),l.getEventHandlers()}},342,[343,11]); +__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='DELAY',s='ERROR',n='LONG_PRESS_DETECTED',o='NOT_RESPONDER',l='RESPONDER_ACTIVE_LONG_PRESS_START',_='RESPONDER_ACTIVE_PRESS_START',E='RESPONDER_INACTIVE_PRESS_START',u='RESPONDER_RELEASE',h='RESPONDER_TERMINATED',c=Object.freeze({NOT_RESPONDER:{DELAY:s,RESPONDER_GRANT:E,RESPONDER_RELEASE:s,RESPONDER_TERMINATED:s,LONG_PRESS_DETECTED:s},RESPONDER_INACTIVE_PRESS_START:{DELAY:_,RESPONDER_GRANT:s,RESPONDER_RELEASE:o,RESPONDER_TERMINATED:o,LONG_PRESS_DETECTED:s},RESPONDER_ACTIVE_PRESS_START:{DELAY:s,RESPONDER_GRANT:s,RESPONDER_RELEASE:o,RESPONDER_TERMINATED:o,LONG_PRESS_DETECTED:l},RESPONDER_ACTIVE_LONG_PRESS_START:{DELAY:s,RESPONDER_GRANT:s,RESPONDER_RELEASE:o,RESPONDER_TERMINATED:o,LONG_PRESS_DETECTED:l},ERROR:{DELAY:o,RESPONDER_GRANT:E,RESPONDER_RELEASE:o,RESPONDER_TERMINATED:o,LONG_PRESS_DETECTED:o}}),R=t=>t.getAttribute('role'),T=t=>t.tagName.toLowerCase(),P=t=>t===_||t===l,S=t=>'button'===R(t),D=t=>t===E||t===_||t===l,v=t=>t===h||t===u,p=t=>{var s=t.key,n=t.target,o=' '===s||'Spacebar'===s,l='button'===T(n)||S(n);return'Enter'===s||o&&l};class N{constructor(t){this._eventHandlers=null,this._isPointerTouch=!1,this._longPressDelayTimeout=null,this._longPressDispatched=!1,this._pressDelayTimeout=null,this._pressOutDelayTimeout=null,this._touchState=o,this._responderElement=null,this.configure(t)}configure(t){this._config=t}reset(){this._cancelLongPressDelayTimeout(),this._cancelPressDelayTimeout(),this._cancelPressOutDelayTimeout()}getEventHandlers(){return null==this._eventHandlers&&(this._eventHandlers=this._createEventHandlers()),this._eventHandlers}_createEventHandlers(){var s=(s,n)=>{s.persist(),this._cancelPressOutDelayTimeout(),this._longPressDispatched=!1,this._selectionTerminated=!1,this._touchState=o,this._isPointerTouch='touchstart'===s.nativeEvent.type,this._receiveSignal("RESPONDER_GRANT",s);var l=O(this._config.delayPressStart,0,50);!1!==n&&l>0?this._pressDelayTimeout=setTimeout(()=>{this._receiveSignal(t,s)},l):this._receiveSignal(t,s);var _=O(this._config.delayLongPress,10,450);this._longPressDelayTimeout=setTimeout(()=>{this._handleLongPress(s)},_+l)},n=t=>{this._receiveSignal(u,t)},l=t=>{var s=this._config.onPress,_=t.target;if(this._touchState!==o&&p(t)){n(t),document.removeEventListener('keyup',l);var E=_.getAttribute('role'),u=T(_),h='link'===E||'a'===u||'button'===u||'input'===u||'select'===u||'textarea'===u,c=this._responderElement===_;null!=s&&!h&&c&&s(t),this._responderElement=null}};return{onStartShouldSetResponder:t=>{var s=this._config.disabled;return s&&S(t.currentTarget)&&t.stopPropagation(),null==s||!s},onKeyDown:t=>{var n=this._config.disabled,_=t.key,E=t.target;if(!n&&p(t)){this._touchState===o&&(s(t,!1),this._responderElement=E,document.addEventListener('keyup',l));var u=' '===_||'Spacebar'===_,h=R(E);u&&('button'===h||'menuitem'===h)&&'button'!==T(E)&&t.preventDefault(),t.stopPropagation()}},onResponderGrant:t=>s(t),onResponderMove:t=>{null!=this._config.onPressMove&&this._config.onPressMove(t);var s=f(t);if(null!=this._touchActivatePosition){var n=this._touchActivatePosition.pageX-s.pageX,o=this._touchActivatePosition.pageY-s.pageY;Math.hypot(n,o)>10&&this._cancelLongPressDelayTimeout()}},onResponderRelease:t=>n(t),onResponderTerminate:t=>{'selectionchange'===t.nativeEvent.type&&(this._selectionTerminated=!0),this._receiveSignal(h,t)},onResponderTerminationRequest:t=>{var s=this._config,n=s.cancelable,o=s.disabled,l=s.onLongPress;return!(!o&&null!=l&&this._isPointerTouch&&'contextmenu'===t.nativeEvent.type)&&(null==n||n)},onClick:t=>{var s=this._config,n=s.disabled,o=s.onPress;n?S(t.currentTarget)&&t.stopPropagation():(t.stopPropagation(),this._longPressDispatched||this._selectionTerminated?t.preventDefault():null!=o&&!1===t.altKey&&o(t))},onContextMenu:t=>{var s=this._config,n=s.disabled,o=s.onLongPress;n?S(t.currentTarget)&&t.stopPropagation():null!=o&&this._isPointerTouch&&!t.defaultPrevented&&(t.preventDefault(),t.stopPropagation())}}}_receiveSignal(t,n){var l=this._touchState,_=null;null!=c[l]&&(_=c[l][t]),this._touchState===o&&t===u||(null==_||_===s?console.error("PressResponder: Invalid signal "+t+" for state "+l+" on responder"):l!==_&&(this._performTransitionSideEffects(l,_,t,n),this._touchState=_))}_performTransitionSideEffects(t,s,o,_){if(v(o)&&(setTimeout(()=>{this._isPointerTouch=!1},0),this._touchActivatePosition=null,this._cancelLongPressDelayTimeout()),D(t)&&o===n){var E=this._config.onLongPress;null!=E&&null==_.nativeEvent.key&&(E(_),this._longPressDispatched=!0)}var h=P(t),c=P(s);if(!h&&c?this._activate(_):h&&!c&&this._deactivate(_),D(t)&&o===u){var R=this._config,T=R.onLongPress;if(null!=R.onPress)null!=T&&t===l||c||h||(this._activate(_),this._deactivate(_))}this._cancelPressDelayTimeout()}_activate(t){var s=this._config,n=s.onPressChange,o=s.onPressStart,l=f(t);this._touchActivatePosition={pageX:l.pageX,pageY:l.pageY},null!=o&&o(t),null!=n&&n(!0)}_deactivate(t){var s=this._config,n=s.onPressChange,o=s.onPressEnd;function l(){null!=o&&o(t),null!=n&&n(!1)}var _=O(this._config.delayPressEnd);_>0?this._pressOutDelayTimeout=setTimeout(()=>{l()},_):l()}_handleLongPress(t){this._touchState!==_&&this._touchState!==l||this._receiveSignal(n,t)}_cancelLongPressDelayTimeout(){null!=this._longPressDelayTimeout&&(clearTimeout(this._longPressDelayTimeout),this._longPressDelayTimeout=null)}_cancelPressDelayTimeout(){null!=this._pressDelayTimeout&&(clearTimeout(this._pressDelayTimeout),this._pressDelayTimeout=null)}_cancelPressOutDelayTimeout(){null!=this._pressOutDelayTimeout&&(clearTimeout(this._pressOutDelayTimeout),this._pressOutDelayTimeout=null)}}function O(t,s,n){return void 0===s&&(s=0),void 0===n&&(n=0),Math.max(s,null!=t?t:n)}function f(t){var s=t.nativeEvent,n=s.changedTouches,o=s.touches;return null!=o&&o.length>0?o[0]:null!=n&&n.length>0?n[0]:t.nativeEvent}},343,[]); +__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 y}});var o=e(r(_d[0])),t=e(r(_d[1])),l=e(r(_d[2])),n=(function(e){if(e&&e.__esModule)return e;var o={};return e&&Object.keys(e).forEach(function(t){var l=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,l.get?l:{enumerable:!0,get:function(){return e[t]}})}),o.default=e,o})(r(_d[3])),d=e(r(_d[4])),c=e(r(_d[5])),u=e(r(_d[6])),C=["aria-readonly","color","disabled","onChange","onValueChange","readOnly","style","value"],M=n.forwardRef((e,o)=>{var c=e['aria-readonly'],M=e.color,y=e.disabled,I=e.onChange,s=e.onValueChange,f=e.readOnly,v=e.style,h=e.value,k=(0,l.default)(e,C);var j=n.createElement(u.default,{style:[b.fakeControl,h&&b.fakeControlChecked,h&&M&&{backgroundColor:M,borderColor:M},y&&b.fakeControlDisabled,h&&y&&b.fakeControlCheckedAndDisabled]}),z=(0,d.default)('input',{checked:h,disabled:y,onChange:function(e){var o=e.nativeEvent.target.checked;e.nativeEvent.value=o,I&&I(e),s&&s(o)},readOnly:!0===f||!0===c||!0===k.accessibilityReadOnly,ref:o,style:[b.nativeControl,b.cursorInherit],type:'checkbox'});return n.createElement(u.default,(0,t.default)({},k,{"aria-disabled":y,"aria-readonly":c,style:[b.root,v,y&&b.cursorDefault]}),j,z)});M.displayName='CheckBox';var b=c.default.create({root:{cursor:'pointer',height:16,userSelect:'none',width:16},cursorDefault:{cursor:'default'},cursorInherit:{cursor:'inherit'},fakeControl:{alignItems:'center',backgroundColor:'#fff',borderColor:'#657786',borderRadius:2,borderStyle:'solid',borderWidth:2,height:'100%',justifyContent:'center',width:'100%'},fakeControlChecked:{backgroundColor:'#009688',backgroundImage:'url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgdmVyc2lvbj0iMS4xIgogICB2aWV3Qm94PSIwIDAgMSAxIgogICBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWluWU1pbiBtZWV0Ij4KICA8cGF0aAogICAgIGQ9Ik0gMC4wNDAzODA1OSwwLjYyNjc3NjcgMC4xNDY0NDY2MSwwLjUyMDcxMDY4IDAuNDI5Mjg5MzIsMC44MDM1NTMzOSAwLjMyMzIyMzMsMC45MDk2MTk0MSB6IE0gMC4yMTcxNTcyOSwwLjgwMzU1MzM5IDAuODUzNTUzMzksMC4xNjcxNTcyOSAwLjk1OTYxOTQxLDAuMjczMjIzMyAwLjMyMzIyMzMsMC45MDk2MTk0MSB6IgogICAgIGlkPSJyZWN0Mzc4MCIKICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lIiAvPgo8L3N2Zz4K")',backgroundRepeat:'no-repeat',borderColor:'#009688'},fakeControlDisabled:{borderColor:'#CCD6DD'},fakeControlCheckedAndDisabled:{backgroundColor:'#AAB8C2',borderColor:'#AAB8C2'},nativeControl:(0,o.default)((0,o.default)({},c.default.absoluteFillObject),{},{height:'100%',margin:0,appearance:'none',padding:0,width:'100%'})}),y=M},344,[24,237,29,11,86,23,85]); +__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=e(r(_d[0])),n=e(r(_d[1])),l=r(_d[2]),u=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var l=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,l.get?l:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(l),f=e(r(_d[3])),d=e(r(_d[4])),c=e(r(_d[5])),o=["children","style","imageStyle","imageRef"],s={},y=(0,l.forwardRef)((e,l)=>{var y=e.children,h=e.style,b=void 0===h?s:h,_=e.imageStyle,v=e.imageRef,p=(0,n.default)(e,o),O=d.default.flatten(b),j=O.height,w=O.width;return u.createElement(c.default,{ref:l,style:b},u.createElement(f.default,(0,t.default)({},p,{ref:v,style:[{width:w,height:j,zIndex:-1},d.default.absoluteFill,_]})),y)});y.displayName='ImageBackground';var h=y},345,[237,29,11,290,23,85]); +__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])),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[2])),u=e(r(_d[3])),f=["behavior","contentContainerStyle","keyboardVerticalOffset"];class s extends o.Component{constructor(){super(...arguments),this.frame=null,this.onLayout=e=>{this.frame=e.nativeEvent.layout}}relativeKeyboardHeight(e){var t=this.frame;if(!t||!e)return 0;var n=e.screenY-(this.props.keyboardVerticalOffset||0);return Math.max(t.y+t.height-n,0)}onKeyboardChange(e){}render(){var e=this.props,s=(e.behavior,e.contentContainerStyle,e.keyboardVerticalOffset,(0,n.default)(e,f));return o.createElement(u.default,(0,t.default)({onLayout:this.onLayout},s))}}var c=s},346,[237,29,11,85]); +__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 t=e(r(_d[0])),n=e(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])),o=e(r(_d[3])),l=e(r(_d[4])),s=e(r(_d[5])),f=e(r(_d[6])),c=["animationType","children","onDismiss","onRequestClose","onShow","transparent","visible"],d=0,v=[],p={};function b(){if(0!==v.length){var e=v[v.length-1];v.forEach(t=>{t in p&&p[t](t===e)})}}function h(e){e in p&&(p[e](!1),delete p[e]);var t=v.indexOf(e);-1!==t&&(v.splice(t,1),b())}function y(e,t){h(e),v.push(e),p[e]=t,b()}var _=u.forwardRef((e,v)=>{var p=e.animationType,b=e.children,_=e.onDismiss,E=e.onRequestClose,O=e.onShow,j=e.transparent,w=e.visible,C=void 0===w||w,D=(0,n.default)(e,c),M=u.useMemo(()=>d++,[]),P=u.useState(!1),R=P[0],S=P[1],k=u.useCallback(()=>{h(M),_&&_()},[M,_]),q=u.useCallback(()=>{y(M,S),O&&O()},[M,O]);return u.useEffect(()=>()=>h(M),[M]),u.createElement(o.default,null,u.createElement(l.default,{animationType:p,onDismiss:k,onShow:q,visible:C},u.createElement(f.default,{active:R},u.createElement(s.default,(0,t.default)({},D,{active:R,onRequestClose:E,ref:v,transparent:j}),b))))})},347,[237,29,11,348,349,350,351]); +__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 d}});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=r(_d[2]),c=(e=u)&&e.__esModule?e:{default:e};var d=function(e){var u=e.children,d=t.useRef(null);if(c.default&&!d.current){var o=document.createElement('div');o&&document.body&&(document.body.appendChild(o),d.current=o)}return t.useEffect(()=>{if(c.default)return()=>{document.body&&d.current&&(document.body.removeChild(d.current),d.current=null)}},[]),d.current&&c.default?(0,n.createPortal)(u,d.current):null}},348,[11,227,22]); +__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 y}});var n=(function(e){if(e&&e.__esModule)return e;var n={};return e&&Object.keys(e).forEach(function(t){var o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:function(){return e[t]}})}),n.default=e,n})(r(_d[0])),t=e(r(_d[1])),o=e(r(_d[2]));function u(e,n){return'slide'===e?n?s:f:'fade'===e?n?d:l:n?c.container:c.hidden}var c=t.default.create({container:{position:'fixed',top:0,right:0,bottom:0,left:0,zIndex:9999},animatedIn:{animationDuration:"250ms",animationTimingFunction:'cubic-bezier(0.215, 0.61, 0.355, 1)'},animatedOut:{pointerEvents:'none',animationDuration:"250ms",animationTimingFunction:'cubic-bezier(0.47, 0, 0.745, 0.715)'},fadeIn:{opacity:1,animationKeyframes:{'0%':{opacity:0},'100%':{opacity:1}}},fadeOut:{opacity:0,animationKeyframes:{'0%':{opacity:1},'100%':{opacity:0}}},slideIn:{transform:'translateY(0%)',animationKeyframes:{'0%':{transform:'translateY(100%)'},'100%':{transform:'translateY(0%)'}}},slideOut:{transform:'translateY(100%)',animationKeyframes:{'0%':{transform:'translateY(0%)'},'100%':{transform:'translateY(100%)'}}},hidden:{opacity:0}}),s=[c.container,c.animatedIn,c.slideIn],f=[c.container,c.animatedOut,c.slideOut],d=[c.container,c.animatedIn,c.fadeIn],l=[c.container,c.animatedOut,c.fadeOut],y=function(e){var t=e.animationType,s=e.children,f=e.onDismiss,d=e.onShow,l=e.visible,y=n.useState(!1),p=y[0],b=y[1],O=n.useRef(!1),v=n.useRef(!1),h=t&&'none'!==t,I=n.useCallback(e=>{e&&e.currentTarget!==e.target||(l?d&&d():b(!1))},[d,l]);return n.useEffect(()=>{v.current&&!p&&f&&f(),v.current=p},[p,f]),n.useEffect(()=>{l&&b(!0),l===O.current||h||I(),O.current=l},[h,l,I]),p||l?(0,o.default)('div',{style:p?u(t,l):c.hidden,onAnimationEnd:I,children:s}):null}},349,[11,23,86]); +__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 p}});var t=e(r(_d[0])),n=e(r(_d[1])),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[2])),u=e(r(_d[3])),l=e(r(_d[4])),d=e(r(_d[5])),c=["active","children","onRequestClose","transparent"],f=o.forwardRef((e,l)=>{var f=e.active,p=e.children,v=e.onRequestClose,b=e.transparent,y=(0,n.default)(e,c);o.useEffect(()=>{if(d.default){var e=e=>{f&&'Escape'===e.key&&(e.stopPropagation(),v&&v())};return document.addEventListener('keyup',e,!1),()=>document.removeEventListener('keyup',e,!1)}},[f,v]);var O=o.useMemo(()=>[s.modal,b?s.modalTransparent:s.modalOpaque],[b]);return o.createElement(u.default,(0,t.default)({},y,{"aria-modal":!0,ref:l,role:f?'dialog':null,style:O}),o.createElement(u.default,{style:s.container},p))}),s=l.default.create({modal:{position:'fixed',top:0,right:0,bottom:0,left:0},modalTransparent:{backgroundColor:'transparent'},modalOpaque:{backgroundColor:'white'},container:{top:0,flex:1}}),p=f},350,[237,29,11,85,23,22]); +__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=(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])),c=e(r(_d[3])),o=e(r(_d[4])),l=e(r(_d[5])),f=()=>(0,u.default)('div',{role:'none',tabIndex:0,style:E.focusBracket});function s(e){if(!l.default)return!1;try{e.focus()}catch(e){}return document.activeElement===e}function d(e){for(var t=0;t=0;t--){var n=e.childNodes[t];if(s(n)||i(n))return!0}return!1}var v=e=>{var u=e.active,c=e.children,s=t.useRef(),v=t.useRef({trapFocusInProgress:!1,lastFocusedElement:null});return t.useEffect(()=>{if(l.default){var e=()=>{if(null!=s.current&&!v.current.trapFocusInProgress&&u){try{if(v.current.trapFocusInProgress=!0,document.activeElement instanceof Node&&!s.current.contains(document.activeElement)){var e=d(s.current);v.current.lastFocusedElement===document.activeElement&&(e=i(s.current)),!e&&null!=s.current&&document.activeElement&&o.default.focus(s.current)}}finally{v.current.trapFocusInProgress=!1}v.current.lastFocusedElement=document.activeElement}};return e(),document.addEventListener('focus',e,!0),()=>document.removeEventListener('focus',e,!0)}},[u]),t.useEffect(function(){if(l.default){var e=document.activeElement;return function(){e&&document.contains(e)&&o.default.focus(e)}}},[]),t.createElement(t.Fragment,null,t.createElement(f,null),t.createElement(n.default,{ref:s},c),t.createElement(f,null))},E=c.default.create({focusBracket:{outlineStyle:'none'}})},351,[11,85,86,23,98,22]); +__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=e(r(_d[1])),l=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var l=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,l.get?l:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[2])),u=e(r(_d[3])),d=e(r(_d[4])),f=e(r(_d[5])),o=e(r(_d[6])),c=e(r(_d[7])),s=["children","enabled","onValueChange","selectedValue","style","testID","itemStyle","mode","prompt"],y=l.forwardRef((e,o)=>{var c=e.children,y=e.enabled,b=e.onValueChange,p=e.selectedValue,h=e.style,_=e.testID,O=(e.itemStyle,e.mode,e.prompt,(0,n.default)(e,s)),j=l.useRef(null);var I=(0,t.default)({children:c,disabled:!1===y||void 0,onChange:function(e){var t=e.target,n=t.selectedIndex,l=t.value;b&&b(l,n)},style:[v.initial,h],testID:_,value:p},O),D=(0,f.default)(I),P=(0,d.default)(j,D,o);return I.ref=P,(0,u.default)('select',I)});y.Item=o.default;var v=c.default.create({initial:{fontFamily:'System',fontSize:'inherit',margin:0}}),b=y},352,[24,29,11,86,103,105,353,23]); +__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]),l=(e=t)&&e.__esModule?e:{default:e};function u(e){var t=e.color,u=e.label,n=e.testID,o=e.value,c={color:t};return(0,l.default)('option',{children:u,style:c,testID:n,value:o})}},353,[86]); +__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 p}});var n=e(r(_d[0])),t=e(r(_d[1])),o=r(_d[2]),s=(function(e){if(e&&e.__esModule)return e;var n={};return e&&Object.keys(e).forEach(function(t){var o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:function(){return e[t]}})}),n.default=e,n})(o),l=e(r(_d[3])),u=e(r(_d[4])),d=e(r(_d[5])),c=e(r(_d[6])),f=e(r(_d[7])),v=["children","delayLongPress","delayPressIn","delayPressOut","disabled","onBlur","onContextMenu","onFocus","onHoverIn","onHoverOut","onKeyDown","onLongPress","onPress","onPressMove","onPressIn","onPressOut","style","tabIndex","testOnly_hovered","testOnly_pressed"];function P(e,c){var P=e.children,O=e.delayLongPress,p=e.delayPressIn,_=e.delayPressOut,M=e.disabled,C=e.onBlur,h=e.onContextMenu,I=e.onFocus,x=e.onHoverIn,E=e.onHoverOut,H=e.onKeyDown,w=e.onLongPress,L=e.onPress,j=e.onPressMove,k=e.onPressIn,D=e.onPressOut,K=e.style,S=e.tabIndex,B=e.testOnly_hovered,F=e.testOnly_pressed,R=(0,t.default)(e,v),A=y(!0===B),N=A[0],q=A[1],z=y(!1),G=z[0],J=z[1],Q=y(!0===F),T=Q[0],U=Q[1],V=(0,o.useRef)(null),W=(0,l.default)(c,V),X=(0,o.useMemo)(()=>({delayLongPress:O,delayPressStart:p,delayPressEnd:_,disabled:M,onLongPress:w,onPress:L,onPressChange:U,onPressStart:k,onPressMove:j,onPressEnd:D}),[O,p,_,M,w,L,k,j,D,U]),Y=(0,d.default)(V,X),Z=Y.onContextMenu,$=Y.onKeyDown;(0,u.default)(V,{contain:!0,disabled:M,onHoverChange:q,onHoverStart:x,onHoverEnd:E});var ee,ne={hovered:N,focused:G,pressed:T},te=s.useCallback(e=>{e.nativeEvent.target===V.current&&(J(!1),null!=C&&C(e))},[V,J,C]),oe=s.useCallback(e=>{e.nativeEvent.target===V.current&&(J(!0),null!=I&&I(e))},[V,J,I]),re=s.useCallback(e=>{null!=Z&&Z(e),null!=h&&h(e)},[h,Z]),se=s.useCallback(e=>{null!=$&&$(e),null!=H&&H(e)},[H,$]);return ee=void 0!==S?S:M?-1:0,s.createElement(f.default,(0,n.default)({},R,Y,{"aria-disabled":M,onBlur:te,onContextMenu:re,onFocus:oe,onKeyDown:se,ref:W,style:[M?b.disabled:b.active,'function'==typeof K?K(ne):K],tabIndex:ee}),'function'==typeof P?P(ne):P)}function y(e){var n=(0,o.useState)(!1);return[n[0]||e,n[1]]}var b=c.default.create({active:{cursor:'pointer',touchAction:'manipulation'},disabled:{pointerEvents:'box-none'}}),O=(0,o.memo)((0,o.forwardRef)(P));O.displayName='Pressable';var p=O},354,[237,29,11,103,355,342,23,85]); +__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,"default",{enumerable:!0,get:function(){return b}});var e=r(d[0]),t=n(r(d[1])),u=n(r(d[2])),l={},o={passive:!0},c='react-gui:hover:lock',f='react-gui:hover:unlock',v=()=>!('undefined'==typeof window||null==window.PointerEvent);function s(n,e,t){var u=document.createEvent('CustomEvent'),o=t||l,c=o.bubbles,f=void 0===c||c,v=o.cancelable,s=void 0===v||v,p=o.detail;u.initCustomEvent(e,f,s,p),n.dispatchEvent(u)}function p(n){var t=n.pointerType;return null!=t?t:(0,e.getModality)()}function b(n,e){var l=e.contain,b=e.disabled,h=e.onHoverStart,y=e.onHoverChange,E=e.onHoverUpdate,_=e.onHoverEnd,w=v(),H=(0,t.default)(w?'pointermove':'mousemove',o),C=(0,t.default)(w?'pointerenter':'mouseenter',o),M=(0,t.default)(w?'pointerleave':'mouseleave',o),P=(0,t.default)(c,o),j=(0,t.default)(f,o);(0,u.default)(()=>{var e=n.current;if(null!==e){var t=function(n){null!=_&&_(n),null!=y&&y(!1),H(e,null),M(e,null)},u=function(e){var u=n.current;null!=u&&'touch'!==p(e)&&(l&&s(u,f),t(e))},o=function(n){'touch'!==p(n)&&null!=E&&(null==n.x&&(n.x=n.clientX),null==n.y&&(n.y=n.clientY),E(n))},v=function(n){null!=h&&h(n),null!=y&&y(!0),null!=E&&H(e,b?null:o),M(e,b?null:u)};C(e,b?null:function(e){var u=n.current;if(null!=u&&'touch'!==p(e)){l&&s(u,c),v(e);P(u,b?null:function(n){n.target!==u&&t(e)}),j(u,b?null:function(n){n.target!==u&&v(e)})}})}},[C,H,M,P,j,l,b,h,y,E,_,n])}},355,[356,358,97]); +__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.getActiveModality=function(){return s},_e.getModality=function(){return l},_e.addModalityListener=function(e){return y.add(e),()=>{y.delete(e)}},_e.testOnly_resetActiveModality=function(){v=!1,s=f,l=f};var e,t,n,o=r(d[0]),u=r(d[1]),c=(e=u)&&e.__esModule?e:{default:e},s='keyboard',l='keyboard',v=!1,y=new Set,f='keyboard',p='mouse',E='touch',L='contextmenu',w='mousedown',h='mousemove',b='mouseup',M='pointerdown',_='pointermove',T='scroll',k='selectionchange',K='touchcancel',A='touchmove',O='touchstart',P={passive:!0},S={capture:!0,passive:!0};function j(){null==t&&null==n||(null!=t&&(l=t,t=null),null!=n&&(s=n,n=null),q())}function x(e){var t=e.type;if('undefined'!=typeof window&&null!=window.PointerEvent){if(t===M)return void(s!==e.pointerType&&(l=e.pointerType,s=e.pointerType,q()));if(t===_)return void(l!==e.pointerType&&(l=e.pointerType,q()))}else{if(v||(t===w&&s!==p&&(l=p,s=p,q()),t===h&&l!==p&&(l=p,q())),t===O)return v=!0,e.touches&&e.touches.length>1&&(v=!1),void(s!==E&&(l=E,s=E,q()));t!==L&&t!==b&&t!==k&&t!==T&&t!==K&&t!==A||(v=!1)}}function q(){var e={activeModality:s,modality:l};y.forEach(t=>{t(e)})}c.default&&((0,o.addEventListener)(window,'blur',function(){t=l,n=s,s=f,l=f,q(),v=!1},P),(0,o.addEventListener)(window,'focus',function(){j()},P),(0,o.addEventListener)(document,'keydown',function(e){e.metaKey||e.altKey||e.ctrlKey||l!==f&&(l=f,s=f,q())},S),(0,o.addEventListener)(document,'visibilitychange',function(){'hidden'!==document.visibilityState&&j()},S),(0,o.addEventListener)(document,M,x,S),(0,o.addEventListener)(document,_,x,S),(0,o.addEventListener)(document,L,x,S),(0,o.addEventListener)(document,w,x,S),(0,o.addEventListener)(document,h,x,S),(0,o.addEventListener)(document,b,x,S),(0,o.addEventListener)(document,K,x,S),(0,o.addEventListener)(document,A,x,S),(0,o.addEventListener)(document,O,x,S),(0,o.addEventListener)(document,k,x,S),(0,o.addEventListener)(document,T,x,S))},356,[357,22]); +__d(function(g,r,i,a,m,_e,d){'use strict';Object.defineProperty(_e,'__esModule',{value:!0}),_e.addEventListener=function(e,t,n,u){var o=s(u),l=e=>n(c(e));return e.addEventListener(t,l,o),function(){null!=e&&e.removeEventListener(t,l,o)}};var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e},u=()=>{};var o=(function(){var e=!1;if(n.default)try{var t={};Object.defineProperty(t,'passive',{get:()=>(e=!0,!1)}),window.addEventListener('test',null,t),window.removeEventListener('test',null,t)}catch(e){}return e})();function s(e){return null!=e&&(o?e:Boolean(e.capture))}function l(){return this.cancelBubble}function v(){return this.defaultPrevented}function c(e){return e.nativeEvent=e,e.persist=u,e.isDefaultPrevented=v,e.isPropagationStopped=l,e}},357,[22]); +__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=r(d[0]),n=e(r(d[1])),u=e(r(d[2]));function l(e,l){var f=(0,u.default)(()=>new Map),c=(0,u.default)(()=>(n,u)=>{var c=f.get(n);null!=c&&c(),null==u&&(f.delete(n),u=()=>{});var o=(0,t.addEventListener)(n,e,u,l);return f.set(n,o),o});return(0,n.default)(()=>()=>{f.forEach(e=>{e()}),f.clear()},[f]),c}},358,[357,97,106]); +__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=e(r(_d[1])),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[2])),l=e(r(_d[3])),u=e(r(_d[4])),d=["color","indeterminate","progress","trackColor","style"],s=o.forwardRef((e,l)=>{var s=e.color,f=void 0===s?'#1976D2':s,v=e.indeterminate,p=void 0!==v&&v,y=e.progress,b=void 0===y?0:y,_=e.trackColor,h=void 0===_?'transparent':_,j=e.style,k=(0,n.default)(e,d),C=100*b,O=p?'25%':C+"%";return o.createElement(u.default,(0,t.default)({},k,{"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":p?null:C,ref:l,role:"progressbar",style:[c.track,j,{backgroundColor:h}]}),o.createElement(u.default,{style:[{backgroundColor:f,width:O},c.progress,p&&c.animation]}))});s.displayName='ProgressBar';var c=l.default.create({track:{forcedColorAdjust:'none',height:5,overflow:'hidden',userSelect:'none',zIndex:0},progress:{forcedColorAdjust:'none',height:'100%',zIndex:-1},animation:{animationDuration:'1s',animationKeyframes:[{'0%':{transform:'translateX(-100%)'},'100%':{transform:'translateX(400%)'}}],animationTimingFunction:'linear',animationIterationCount:'infinite'}}),f=s},359,[237,29,11,23,85]); +__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 w}});var t=e(r(_d[0])),n=e(r(_d[1])),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[2])),f=e(r(_d[3])),u=e(r(_d[4])),d=e(r(_d[5])),s=["style"],l=d.default&&window.CSS&&window.CSS.supports&&window.CSS.supports('top: constant(safe-area-inset-top)')?'constant':'env',c=o.forwardRef((e,f)=>{var d=e.style,l=(0,n.default)(e,s);return o.createElement(u.default,(0,t.default)({},l,{ref:f,style:[p.root,d]}))});c.displayName='SafeAreaView';var p=f.default.create({root:{paddingTop:l+"(safe-area-inset-top)",paddingRight:l+"(safe-area-inset-right)",paddingBottom:l+"(safe-area-inset-bottom)",paddingLeft:l+"(safe-area-inset-left)"}}),w=c},360,[237,29,11,23,85,22]); +__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 t=()=>{};function n(){return null}n.setBackgroundColor=t,n.setBarStyle=t,n.setHidden=t,n.setNetworkActivityIndicatorVisible=t,n.setTranslucent=t;var u=n},361,[]); +__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 j}});var t=e(r(_d[0])),l=e(r(_d[1])),o=e(r(_d[2])),n=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(l){var o=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(t,l,o.get?o:{enumerable:!0,get:function(){return e[l]}})}),t.default=e,t})(r(_d[3])),u=e(r(_d[4])),c=e(r(_d[5])),d=e(r(_d[6])),f=e(r(_d[7])),s=["aria-label","accessibilityLabel","activeThumbColor","activeTrackColor","disabled","onValueChange","style","thumbColor","trackColor","value"],b={},h='0px 1px 3px rgba(0,0,0,0.5)',p='#D5D5D5',v='#BDBDBD',y=n.forwardRef((e,t)=>{var y=e['aria-label'],j=e.accessibilityLabel,k=e.activeThumbColor,x=e.activeTrackColor,D=e.disabled,w=void 0!==D&&D,A=e.onValueChange,O=e.style,_=void 0===O?b:O,F=e.thumbColor,S=e.trackColor,E=e.value,B=void 0!==E&&E,P=(0,o.default)(e,s),R=n.useRef(null);function T(e){var t='focus'===e.nativeEvent.type?"0px 1px 3px rgba(0,0,0,0.5), 0 0 0 10px rgba(0,0,0,0.1)":h;null!=R.current&&(R.current.style.boxShadow=t)}var I=d.default.flatten(_),M=I.height,L=I.width,V=M||'20px',N=(0,c.default)(V,2),Z=L>N?L:N,q=(0,c.default)(V,.5),z=!0===B?null!=S&&'object'==typeof S?S.true:null!=x?x:"#A3D3CF":null!=S&&'object'==typeof S?S.false:null!=S?S:"#939393",G=B?null!=k?k:"#009688":null!=F?F:"#FAFAFA",H=V,J=H,K=[C.root,_,w&&C.cursorDefault,{height:V,width:Z}],Q=!0===B?'string'==typeof x&&null!=x||'object'==typeof S&&null!=S&&S.true?z:p:'string'==typeof S&&null!=S||'object'==typeof S&&null!=S&&S.false?z:p,U=!0===B?null==k?v:G:null==F?v:G,W=[C.track,{backgroundColor:w?Q:z,borderRadius:q}],X=[C.thumb,B&&C.thumbActive,{backgroundColor:w?U:G,height:H,marginStart:B?(0,c.default)(J,-1):0,width:J}],Y=(0,u.default)('input',{'aria-label':y||j,checked:B,disabled:w,onBlur:T,onChange:function(e){null!=A&&A(e.nativeEvent.target.checked)},onFocus:T,ref:t,style:[C.nativeControl,C.cursorInherit],type:'checkbox',role:'switch'});return n.createElement(f.default,(0,l.default)({},P,{style:K}),n.createElement(f.default,{style:W}),n.createElement(f.default,{ref:R,style:X}),Y)});y.displayName='Switch';var C=d.default.create({root:{cursor:'pointer',userSelect:'none'},cursorDefault:{cursor:'default'},cursorInherit:{cursor:'inherit'},track:(0,t.default)((0,t.default)({forcedColorAdjust:'none'},d.default.absoluteFillObject),{},{height:'70%',margin:'auto',transitionDuration:'0.1s',width:'100%'}),thumb:{forcedColorAdjust:'none',alignSelf:'flex-start',borderRadius:'100%',boxShadow:h,start:'0%',transform:'translateZ(0)',transitionDuration:'0.1s'},thumbActive:{insetInlineStart:'100%'},nativeControl:(0,t.default)((0,t.default)({},d.default.absoluteFillObject),{},{height:'100%',margin:0,appearance:'none',padding:0,width:'100%'})}),j=y},362,[24,237,29,11,86,363,23,85]); +__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=/^[+-]?\d*(?:\.\d+)?(?:[Ee][+-]?\d+)?(%|\w*)/,n=(n,o)=>{var u;return'string'==typeof n?""+parseFloat(n)*o+n.match(t)[1]:(u=n,!isNaN(parseFloat(u))&&isFinite(u)?n*o:void 0)}},363,[]); +__d(function(g,r,i,a,m,_e,_d){"use strict";function e(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}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 w}});var n=e(r(_d[0])),o=t(r(_d[1])),l=e(r(_d[2])),u=t(r(_d[3])),d=t(r(_d[4])),c=t(r(_d[5])),s=t(r(_d[6])),p=t(r(_d[7])),h=t(r(_d[8])),v=r(_d[9]),f=t(r(_d[10])),S=t(r(_d[11])),R=(e,t)=>{var n=e.selectionEnd,o=e.selectionStart,l=t.start,u=t.end;return l!==o||u!==n},C=(e,t)=>{if(R(e,t)){var n=t.start,o=t.end;try{e.setSelectionRange(n,o||n)}catch(e){}}},y=Object.assign({},l.defaultProps,l.accessibilityProps,l.clickProps,l.focusProps,l.keyboardProps,l.mouseProps,l.touchProps,l.styleProps,{autoCapitalize:!0,autoComplete:!0,autoCorrect:!0,autoFocus:!0,defaultValue:!0,disabled:!0,lang:!0,maxLength:!0,onChange:!0,onScroll:!0,placeholder:!0,pointerEvents:!0,readOnly:!0,rows:!0,spellCheck:!0,value:!0,type:!0}),b=e=>(0,u.default)(e,y);function x(e){return e.isComposing||229===e.keyCode}var k=null,E=n.forwardRef((e,t)=>{var l,u,f=e.autoCapitalize,R=void 0===f?'sentences':f,y=e.autoComplete,E=e.autoCompleteType,w=e.autoCorrect,O=void 0===w||w,P=e.blurOnSubmit,M=e.caretHidden,F=e.clearTextOnFocus,_=e.dir,j=e.editable,z=e.enterKeyHint,D=e.inputMode,H=e.keyboardType,K=e.multiline,L=void 0!==K&&K,N=e.numberOfLines,q=e.onBlur,A=e.onChange,B=e.onChangeText,G=e.onContentSizeChange,I=e.onFocus,W=e.onKeyPress,$=e.onLayout,V=e.onMoveShouldSetResponder,J=e.onMoveShouldSetResponderCapture,Q=e.onResponderEnd,U=e.onResponderGrant,X=e.onResponderMove,Y=e.onResponderReject,Z=e.onResponderRelease,ee=e.onResponderStart,te=e.onResponderTerminate,ne=e.onResponderTerminationRequest,re=e.onScrollShouldSetResponder,oe=e.onScrollShouldSetResponderCapture,ae=e.onSelectionChange,le=e.onSelectionChangeShouldSetResponder,ue=e.onSelectionChangeShouldSetResponderCapture,de=e.onStartShouldSetResponder,ie=e.onStartShouldSetResponderCapture,ce=e.onSubmitEditing,se=e.placeholderTextColor,pe=e.readOnly,he=void 0!==pe&&pe,ve=e.returnKeyType,fe=e.rows,Se=e.secureTextEntry,Re=void 0!==Se&&Se,ge=e.selection,Ce=e.selectTextOnFocus,ye=e.showSoftInputOnFocus,me=e.spellCheck;if(null!=D)u=D,l='email'===D?'email':'tel'===D?'tel':'search'===D?'search':'url'===D?'url':'text';else if(null!=H)switch(H){case'email-address':l='email';break;case'number-pad':case'numeric':u='numeric';break;case'decimal-pad':u='decimal';break;case'phone-pad':l='tel';break;case'search':case'web-search':l='search';break;case'url':l='url';break;default:l='text'}Re&&(l='password');var be=n.useRef({height:null,width:null}),xe=n.useRef(null),ke=n.useRef(null),Ee=n.useRef(!1);n.useEffect(()=>{xe.current&&ke.current&&C(xe.current,ke.current),Ee.current=Re},[Re]);var Te=n.useCallback(e=>{if(L&&G&&null!=e){var t=e.scrollHeight,n=e.scrollWidth;t===be.current.height&&n===be.current.width||(be.current.height=t,be.current.width=n,G({nativeEvent:{contentSize:{height:be.current.height,width:be.current.width}}}))}},[L,G]),we=n.useMemo(()=>e=>{null!=e&&(e.clear=function(){null!=e&&(e.value='')},e.isFocused=function(){return null!=e&&S.default.currentlyFocusedField()===e},Te(e))},[Te]);(0,c.default)(()=>{var e=xe.current;null!=e&&null!=ge&&C(e,ge),document.activeElement===e&&(S.default._currentlyFocusedNode=e)},[xe,ge]);var Oe=L?'textarea':'input';(0,d.default)(xe,$),(0,h.default)(xe,{onMoveShouldSetResponder:V,onMoveShouldSetResponderCapture:J,onResponderEnd:Q,onResponderGrant:U,onResponderMove:X,onResponderReject:Y,onResponderRelease:Z,onResponderStart:ee,onResponderTerminate:te,onResponderTerminationRequest:ne,onScrollShouldSetResponder:re,onScrollShouldSetResponderCapture:oe,onSelectionChangeShouldSetResponder:le,onSelectionChangeShouldSetResponderCapture:ue,onStartShouldSetResponder:de,onStartShouldSetResponderCapture:ie});var Pe=(0,v.useLocaleContext)().direction,Me=b(e);Me.autoCapitalize=R,Me.autoComplete=y||E||'on',Me.autoCorrect=O?'on':'off',Me.dir=void 0!==_?_:'auto',Me.enterKeyHint=z||ve,Me.inputMode=u,Me.onBlur=function(e){S.default._currentlyFocusedNode=null,q&&(e.nativeEvent.text=e.target.value,q(e))},Me.onChange=function(e){var t=e.target,n=t.value;e.nativeEvent.text=n,Te(t),A&&A(e),B&&B(n)},Me.onFocus=function(e){var t=e.target;I&&(e.nativeEvent.text=t.value,I(e)),null!=t&&(S.default._currentlyFocusedNode=t,F&&(t.value=''),Ce&&(null!=k&&clearTimeout(k),k=setTimeout(()=>{null!=t&&document.activeElement===t&&t.select()},0)))},Me.onKeyDown=function(e){var t=e.target;e.stopPropagation();var n=null==P?!L:P,o=e.nativeEvent,l=x(o);W&&W(e),'Enter'!==e.key||e.shiftKey||l||e.isDefaultPrevented()||(!P&&L||!ce||(e.preventDefault(),o.text=e.target.value,ce(e)),n&&null!=t&&setTimeout(()=>t.blur(),0))},Me.onSelect=function(e){try{var t=e.target,n={start:t.selectionStart,end:t.selectionEnd};ae&&(e.nativeEvent.selection=n,e.nativeEvent.text=e.target.value,ae(e)),Ee.current===Re&&(ke.current=n)}catch(e){}},Me.readOnly=!0===he||!1===j,Me.rows=L?null!=fe?fe:N:1,Me.spellCheck=null!=me?me:O,Me.style=[{'--placeholderTextColor':se},T.textinput$raw,T.placeholder,e.style,M&&T.caretHidden],Me.type=L?void 0:l,Me.virtualkeyboardpolicy=!1===ye?'manual':'auto';var Fe=(0,p.default)(Me),je=(0,s.default)(xe,Fe,we,t);Me.ref=je;var ze=null!=e.lang?(0,v.getLocaleDirection)(e.lang):null,De=e.dir||ze||Pe;return(0,o.default)(Oe,Me,{writingDirection:De})});E.displayName='TextInput',E.State=S.default;var T=f.default.create({textinput$raw:{MozAppearance:'textfield',WebkitAppearance:'none',backgroundColor:'transparent',border:'0 solid black',borderRadius:0,boxSizing:'border-box',font:'14px System',margin:0,padding:0,resize:'none'},placeholder:{placeholderTextColor:'var(--placeholderTextColor)'},caretHidden:{caretColor:'transparent'}}),w=E},364,[11,86,94,95,96,97,103,105,107,92,23,248]); +__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])),o=e(r(d[1])),s=e(r(d[2])),E=e(r(d[3])),n=e(r(d[4])),l=e(r(d[5])),h=e(r(d[6])),u=e(r(d[7])),R=e(r(d[8])),c=r(d[9]),_=e=>{var t=e.touches,o=e.changedTouches,s=t&&t.length>0,E=o&&o.length>0;return!s&&E?o[0]:s?t[0]:e},S='NOT_RESPONDER',T='RESPONDER_INACTIVE_PRESS_IN',P='RESPONDER_INACTIVE_PRESS_OUT',D='RESPONDER_ACTIVE_PRESS_IN',N='RESPONDER_ACTIVE_PRESS_OUT',b='RESPONDER_ACTIVE_LONG_PRESS_IN',O='RESPONDER_ACTIVE_LONG_PRESS_OUT',A='ERROR',p={NOT_RESPONDER:!1,RESPONDER_INACTIVE_PRESS_IN:!1,RESPONDER_INACTIVE_PRESS_OUT:!1,RESPONDER_ACTIVE_PRESS_IN:!1,RESPONDER_ACTIVE_PRESS_OUT:!1,RESPONDER_ACTIVE_LONG_PRESS_IN:!1,RESPONDER_ACTIVE_LONG_PRESS_OUT:!1,ERROR:!1},f=(0,o.default)((0,o.default)({},p),{},{RESPONDER_ACTIVE_PRESS_OUT:!0,RESPONDER_ACTIVE_PRESS_IN:!0}),v=(0,o.default)((0,o.default)({},p),{},{RESPONDER_INACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_LONG_PRESS_IN:!0}),L=(0,o.default)((0,o.default)({},p),{},{RESPONDER_ACTIVE_LONG_PRESS_IN:!0}),I='DELAY',y='RESPONDER_GRANT',C='RESPONDER_RELEASE',G='RESPONDER_TERMINATED',H='ENTER_PRESS_RECT',V='LEAVE_PRESS_RECT',M='LONG_PRESS_DETECTED',U={NOT_RESPONDER:{DELAY:A,RESPONDER_GRANT:T,RESPONDER_RELEASE:A,RESPONDER_TERMINATED:A,ENTER_PRESS_RECT:A,LEAVE_PRESS_RECT:A,LONG_PRESS_DETECTED:A},RESPONDER_INACTIVE_PRESS_IN:{DELAY:D,RESPONDER_GRANT:A,RESPONDER_RELEASE:S,RESPONDER_TERMINATED:S,ENTER_PRESS_RECT:T,LEAVE_PRESS_RECT:P,LONG_PRESS_DETECTED:A},RESPONDER_INACTIVE_PRESS_OUT:{DELAY:N,RESPONDER_GRANT:A,RESPONDER_RELEASE:S,RESPONDER_TERMINATED:S,ENTER_PRESS_RECT:T,LEAVE_PRESS_RECT:P,LONG_PRESS_DETECTED:A},RESPONDER_ACTIVE_PRESS_IN:{DELAY:A,RESPONDER_GRANT:A,RESPONDER_RELEASE:S,RESPONDER_TERMINATED:S,ENTER_PRESS_RECT:D,LEAVE_PRESS_RECT:N,LONG_PRESS_DETECTED:b},RESPONDER_ACTIVE_PRESS_OUT:{DELAY:A,RESPONDER_GRANT:A,RESPONDER_RELEASE:S,RESPONDER_TERMINATED:S,ENTER_PRESS_RECT:D,LEAVE_PRESS_RECT:N,LONG_PRESS_DETECTED:A},RESPONDER_ACTIVE_LONG_PRESS_IN:{DELAY:A,RESPONDER_GRANT:A,RESPONDER_RELEASE:S,RESPONDER_TERMINATED:S,ENTER_PRESS_RECT:b,LEAVE_PRESS_RECT:O,LONG_PRESS_DETECTED:b},RESPONDER_ACTIVE_LONG_PRESS_OUT:{DELAY:A,RESPONDER_GRANT:A,RESPONDER_RELEASE:S,RESPONDER_TERMINATED:S,ENTER_PRESS_RECT:b,LEAVE_PRESS_RECT:O,LONG_PRESS_DETECTED:A},error:{DELAY:S,RESPONDER_GRANT:T,RESPONDER_RELEASE:S,RESPONDER_TERMINATED:S,ENTER_PRESS_RECT:S,LEAVE_PRESS_RECT:S,LONG_PRESS_DETECTED:S}},Y={componentDidMount:function(){(0,c.warnOnce)('TouchableMixin','TouchableMixin is deprecated. Please use Pressable.');var e=this.getTouchableNode&&this.getTouchableNode();e&&e.addEventListener&&(this._touchableBlurListener=e=>{this._isTouchableKeyboardActive&&(this.state.touchable.touchState&&this.state.touchable.touchState!==S&&this.touchableHandleResponderTerminate({nativeEvent:e}),this._isTouchableKeyboardActive=!1)},e.addEventListener('blur',this._touchableBlurListener))},componentWillUnmount:function(){var e=this.getTouchableNode&&this.getTouchableNode();e&&e.addEventListener&&e.removeEventListener('blur',this._touchableBlurListener),this.touchableDelayTimeout&&clearTimeout(this.touchableDelayTimeout),this.longPressDelayTimeout&&clearTimeout(this.longPressDelayTimeout),this.pressOutDelayTimeout&&clearTimeout(this.pressOutDelayTimeout),this.pressInLocation=null,this.state.touchable.responderID=null},touchableGetInitialState:function(){return{touchable:{touchState:void 0,responderID:null}}},touchableHandleResponderTerminationRequest:function(){return!this.props.rejectResponderTermination},touchableHandleStartShouldSetResponder:function(){return!this.props.disabled},touchableLongPressCancelsPress:function(){return!0},touchableHandleResponderGrant:function(e){var t=e.currentTarget;e.persist(),this.pressOutDelayTimeout&&clearTimeout(this.pressOutDelayTimeout),this.pressOutDelayTimeout=null,this.state.touchable.touchState=S,this.state.touchable.responderID=t,this._receiveSignal(y,e);var o=void 0!==this.touchableGetHighlightDelayMS?Math.max(this.touchableGetHighlightDelayMS(),0):130;0!==(o=isNaN(o)?130:o)?this.touchableDelayTimeout=setTimeout(this._handleDelay.bind(this,e),o):this._handleDelay(e);var s=void 0!==this.touchableGetLongPressDelayMS?Math.max(this.touchableGetLongPressDelayMS(),10):370;s=isNaN(s)?370:s,this.longPressDelayTimeout=setTimeout(this._handleLongDelay.bind(this,e),s+o)},touchableHandleResponderRelease:function(e){this.pressInLocation=null,this._receiveSignal(C,e)},touchableHandleResponderTerminate:function(e){this.pressInLocation=null,this._receiveSignal(G,e)},touchableHandleResponderMove:function(e){if(this.state.touchable.positionOnActivate){var t=this.state.touchable.positionOnActivate,o=this.state.touchable.dimensionsOnActivate,s=this.touchableGetPressRectOffset?this.touchableGetPressRectOffset():{left:20,right:20,top:20,bottom:20},E=s.left,n=s.top,l=s.right,h=s.bottom,u=this.touchableGetHitSlop?this.touchableGetHitSlop():null;u&&(E+=u.left||0,n+=u.top||0,l+=u.right||0,h+=u.bottom||0);var R=_(e.nativeEvent),c=R&&R.pageX,S=R&&R.pageY;if(this.pressInLocation)this._getDistanceBetweenPoints(c,S,this.pressInLocation.pageX,this.pressInLocation.pageY)>10&&this._cancelLongPressDelayTimeout();if(c>t.left-E&&S>t.top-n&&c{this.touchableHandleActivePressOut(e)},this.touchableGetPressOutDelayMS()):this.touchableHandleActivePressOut(e))},touchableHandleKeyEvent:function(e){var t=e.type,o=e.key;'Enter'!==o&&' '!==o||('keydown'===t?this._isTouchableKeyboardActive||this.state.touchable.touchState&&this.state.touchable.touchState!==S||(this.touchableHandleResponderGrant(e),this._isTouchableKeyboardActive=!0):'keyup'===t&&this._isTouchableKeyboardActive&&this.state.touchable.touchState&&this.state.touchable.touchState!==S&&(this.touchableHandleResponderRelease(e),this._isTouchableKeyboardActive=!1),e.stopPropagation(),'Enter'===o&&'link'===s.default.propsToAriaRole(this.props)||e.preventDefault())},withoutDefaultFocusAndBlur:{}},B=(Y.touchableHandleFocus,Y.touchableHandleBlur,(0,t.default)(Y,["touchableHandleFocus","touchableHandleBlur"]));Y.withoutDefaultFocusAndBlur=B;var w={Mixin:Y,TOUCH_TARGET_DEBUG:!1,renderDebugView:e=>{var t=e.color,s=e.hitSlop;if(!w.TOUCH_TARGET_DEBUG)return null;var E={};for(var l in s=s||{top:0,bottom:0,left:0,right:0})E[l]=-s[l];var u=(0,n.default)(t);if('number'!=typeof u)return null;var c='#'+('00000000'+u.toString(16)).substr(-8);return h.default.createElement(R.default,{pointerEvents:"none",style:(0,o.default)({position:'absolute',borderColor:c.slice(0,-2)+'55',borderWidth:1,borderStyle:'dashed',backgroundColor:c.slice(0,-2)+'0F'},E)})}},F=w},365,[29,24,87,366,37,368,11,98,85,76]); +__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]),o=(e=t)&&e.__esModule?e:{default:e},n=o.default.twoArgumentPooler;function u(e,t){this.width=e,this.height=t}u.prototype.destructor=function(){this.width=null,this.height=null},u.getPooledFromElement=function(e){return u.getPooled(e.offsetWidth,e.offsetHeight)},o.default.addPoolingTo(u,n);var l=u},366,[367]); +__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}}),r(d[0]);var o=function(o,n){var t=this;if(t.instancePool.length){var l=t.instancePool.pop();return t.call(l,o,n),l}return new t(o,n)},n=function(o){var n=this;o.destructor(),n.instancePool.length{P(e)&&(q(f(b,H)),null!=w&&w())},[b,w,e,H]),B=(0,s.useCallback)(()=>{!0!==U&&P(e)&&(q(null),null!=C&&C())},[C,e,U]),F=(0,s.useMemo)(()=>({cancelable:!M,disabled:j,delayLongPress:_,delayPressStart:h,delayPressEnd:v,onLongPress:E,onPress:S,onPressStart(e){z(),null!=k&&k(e)},onPressEnd(e){B(),null!=I&&I(e)}}),[_,h,v,j,E,S,k,I,M,z,B]),G=(0,u.default)(D,F),J=t.Children.only(O);return t.createElement(c.default,(0,n.default)({},T,G,{accessibilityDisabled:j,focusable:!j&&!1!==L,pointerEvents:j?'box-none':void 0,ref:x,style:[p.root,R,!j&&p.actionable,N&&N.underlay]}),t.cloneElement(J,{style:[J.props.style,N&&N.child]}))}var p=d.default.create({root:{userSelect:'none'},actionable:{cursor:'pointer',touchAction:'manipulation'}}),O=t.memo(t.forwardRef(b));O.displayName='TouchableHighlight';var h=O},369,[237,29,11,103,342,23,85]); +__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},370,[371]); +__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 o}});var t=e(r(d[0])),u=e(r(d[1])),n=e(r(d[2])),l=e(r(d[3])),f=["style"];var c={},o=function(e){var o=e.style,s=(0,u.default)(e,f);return l.default.createElement(n.default,(0,t.default)({},s,{style:[c,o]}))}},371,[237,29,85,11]); +__d(function(g,r,i,a,m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return y}});var s=r(_d[0]),t=(function(e){if(e&&e.__esModule)return e;var s={};return e&&Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(s,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),s.default=e,s})(s),n=e(r(_d[1])),l=e(r(_d[2])),o=e(r(_d[3])),c=r(_d[4]),u={accessibilityDisabled:!0,accessibilityLabel:!0,accessibilityLiveRegion:!0,accessibilityRole:!0,accessibilityState:!0,accessibilityValue:!0,children:!0,disabled:!0,focusable:!0,nativeID:!0,onBlur:!0,onFocus:!0,onLayout:!0,testID:!0},d=e=>(0,n.default)(e,u);function b(e,n){(0,c.warnOnce)('TouchableWithoutFeedback','TouchableWithoutFeedback is deprecated. Please use Pressable.');var u=e.delayPressIn,b=e.delayPressOut,f=e.delayLongPress,y=e.disabled,P=e.focusable,h=e.onLongPress,p=e.onPress,v=e.onPressIn,O=e.onPressOut,_=e.rejectResponderTermination,j=(0,s.useRef)(null),L=(0,s.useMemo)(()=>({cancelable:!_,disabled:y,delayLongPress:f,delayPressStart:u,delayPressEnd:b,onLongPress:h,onPress:p,onPressStart:v,onPressEnd:O}),[y,u,b,f,h,p,v,O,_]),D=(0,o.default)(j,L),R=t.Children.only(e.children),k=[R.props.children],E=d(e);E.accessibilityDisabled=y,E.focusable=!y&&!1!==P,E.ref=(0,l.default)(n,j,R.ref);var F=Object.assign(E,D);return t.cloneElement(R,F,...k)}var f=t.memo(t.forwardRef(b));f.displayName='TouchableWithoutFeedback';var y=f},372,[11,95,103,342,76]); +__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},373,[241]); +__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=e(r(d[1]));function u(e){return t.default.createElement(n.default,e)}u.ignoreWarnings=()=>{};var f=u},374,[11,371]); +__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 n={ignoreLogs(){},ignoreAllLogs(){},uninstall(){},install(){}}},375,[]); +__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},376,[282]); +__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};function o(){var e=t.useState(u.default.getColorScheme()),n=e[0],o=e[1];return t.useEffect(()=>u.default.addChangeListener(function(e){o(e.colorScheme)}).remove),n}},377,[11,321]); +__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=r(d[0]).useLocaleContext},378,[92]); +__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 f}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e},u=r(d[1]);function f(){var e=(0,u.useState)(()=>n.default.get('window')),t=e[0],f=e[1];return(0,u.useEffect)(()=>{function e(e){var t=e.window;null!=t&&f(t)}return n.default.addEventListener('change',e),f(n.default.get('window')),()=>{n.default.removeEventListener('change',e)}},[]),t}},379,[20,11]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,i,o){void 0===o&&(o=i);var u=Object.getOwnPropertyDescriptor(n,i);u&&!("get"in u?!n.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return n[i]}}),Object.defineProperty(t,o,u)}:function(t,n,i,o){void 0===o&&(o=i),t[o]=n[i]}),i=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),o=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[n.length]=i);return n},t(n)},function(o){if(o&&o.__esModule)return o;var u={};if(null!=o)for(var c=t(o),f=0;fe?.title??t?.name}={}){u.useEffect(()=>{if(!t)return;const o=e.current;if(o){const e=n(o.getCurrentOptions(),o.getCurrentRoute());document.title=e}return o?.addListener('options',e=>{const t=n(e.data.options,o?.getCurrentRoute());document.title=t})})};const u=o(r(d[0]))},386,[11]); +__d(function(g,_r,_i,_a,_m,_e,d){"use strict";var e,t=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=this&&this.__importStar||(e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},e(t)},function(n){if(n&&n.__esModule)return n;var o={};if(null!=n)for(var s=e(n),u=0;u{},[t,p]);const[y]=u.useState(a.createMemoryHistory),v=u.useRef(t),m=u.useRef(r),R=u.useRef(n),_=u.useRef(o),b=u.useRef(l);u.useEffect(()=>{v.current=t,m.current=r,R.current=n,_.current=o,b.current=l});const k=u.useCallback(t=>{const r=e.current,n=r?.getRootState();return t?.routes.some(e=>!n?.routeNames.includes(e.name))},[e]),w=u.useContext(i.ServerContext),S=u.useCallback(()=>{let e;if(v.current){const t=w?.location??('undefined'!=typeof window?window.location:void 0),r=t?t.pathname+t.search:void 0;r&&(e=R.current(r,m.current)),h(r)}const t={then:t=>Promise.resolve(t?t(e):e),catch:()=>t};return t},[]),P=u.useRef(void 0),O=u.useRef(void 0),F=u.useRef(void 0);return u.useEffect(()=>(P.current=y.index,y.listen(()=>{const r=e.current;if(!r||!t)return;const{location:n}=window,o=n.pathname+n.search,s=y.index,u=P.current??0;P.current=s,F.current=o;const c=y.get(s);if(c?.path===o&&c?.state)return void r.resetRoot(c.state);const i=R.current(o,m.current);if(i){if(h(o),k(i))return;if(s>u){const e=b.current(i,m.current);if(void 0!==e)try{r.dispatch(e)}catch(e){console.warn(`An error occurred when trying to handle the link '${o}': ${'object'==typeof e&&null!=e&&'message'in e?e.message:e}`)}else r.resetRoot(i)}else r.resetRoot(i)}else r.resetRoot(i)})),[t,y,h,e,k]),u.useEffect(()=>{if(!t)return;const r=(e,t)=>{let r;if(e?.path){const t=R.current(e.path,m.current);if(t){const n=(0,c.findFocusedRoute)(t);n&&n.name===e.name&&(0,s.default)(n.params,e.params)&&(r=e.path)}}null==r&&(r=_.current(t,m.current));const n=O.current?(0,c.findFocusedRoute)(O.current):void 0;return n&&e&&'key'in n&&'key'in e&&n.key===e.key&&(r+=location.hash),r};if(e.current){const t=e.current.getRootState();if(t){const e=(0,c.findFocusedRoute)(t),n=r(e,t);void 0===O.current&&(O.current=t),y.replace({path:n,state:t})}}return e.current?.addListener('state',(0,_e.series)(async()=>{const n=e.current;if(!n||!t)return;const o=O.current,s=n.getRootState();if(!s)return;const u=F.current,i=(0,c.findFocusedRoute)(s),a=r(i,s);O.current=s,F.current=void 0;const[l,h]=f(o,s);if(l&&h&&a!==u){const e=(h.history?h.history.length:h.routes.length)-(l.history?l.history.length:l.routes.length);if(e>0)y.push({path:a,state:s});else if(e<0){const t=y.backIndex({path:a}),r=y.index;try{-1!==t&&t{if(void 0===e||void 0===t||e.key!==t.key)return[void 0,void 0];const r=e.history?e.history.length:e.routes.length,n=t.history?t.history.length:t.routes.length,o=e.routes[e.index],s=t.routes[t.index],u=o?.state,c=s?.state;return r!==n||o?.key!==s?.key||void 0===u||void 0===c||u.key!==c.key?[e,t]:f(u,c)};_e.series=e=>{let t=Promise.resolve();return()=>{t=t.then(e)}}},387,[191,11,121,388,389]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,o,i){void 0===i&&(i=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&!("get"in u?!n.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,i,u)}:function(t,n,o,i){void 0===i&&(i=o),t[i]=n[o]}),o=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),i=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[n.length]=o);return n},t(n)},function(i){if(i&&i.__esModule)return i;var u={};if(null!=i)for(var c=t(i),f=0;f{o.forEach(t=>{const n=t.cb;t.cb=()=>n(!0)})};return{get index(){const t=window.history.state?.id;if(t){const n=i.findIndex(n=>n.id===t);return n>-1?n:0}return 0},get:t=>i[t],backIndex({path:t}){for(let o=n-1;o>=0;o--){const n=i[o];if(n?.path===t)return o}return-1},push({path:o,state:c}){s();const h=(0,t.nanoid)();i=i.slice(0,n+1),i.push({path:o,state:c,id:h}),n=i.length-1,window.history.pushState({id:h},'',o)},replace({path:o,state:c}){s();const h=window.history.state?.id??(0,t.nanoid)();let w=o;const p=w.includes('#')?'':location.hash;!i.length||i.findIndex(t=>t.id===h)<0?(w+=p,i=[{path:w,state:c,id:h}],n=0):(i[n]?.path===o&&(w+=p),i[n]={path:o,state:c,id:h}),window.history.replaceState({id:h},'',w)},go(t){s();const c=n+t,h=i.length-1;if(t<0&&!i[c]?(t=-n,n=0):t>0&&c>h?(t=h-n,n=h):n=c,0!==t)return new Promise((i,s)=>{const c=t=>{if(clearTimeout(h),t)return void s(new Error('History was changed during navigation.'));const{title:n}=window.document;window.document.title='',window.document.title=n,i()};o.push({ref:c,cb:c});const h=setTimeout(()=>{const t=o.findIndex(t=>t.ref===c);t>-1&&(o[t]?.cb(),o.splice(t,1)),n=this.index},100),w=()=>{n=this.index;const t=o.pop();window.removeEventListener('popstate',w),t?.cb()};window.addEventListener('popstate',w),window.history.go(t)})},listen(t){const i=()=>{n=this.index,o.length||t()};return window.addEventListener('popstate',i),()=>window.removeEventListener('popstate',i)}}};const t=r(d[0])},389,[127]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,u,i){void 0===i&&(i=u);var o=Object.getOwnPropertyDescriptor(n,u);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[u]}}),Object.defineProperty(t,i,o)}:function(t,n,u,i){void 0===i&&(i=u),t[i]=n[u]}),u=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),i=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var u in t)Object.prototype.hasOwnProperty.call(t,u)&&(n[n.length]=u);return n},t(n)},function(i){if(i&&i.__esModule)return i;var o={};if(null!=i)for(var c=t(i),l=0;l{u=[!0,t]});const[i,c]=o.useState(u),[l]=i;return o.useEffect(()=>{let t=!1;return l||(async()=>{let u;try{u=await n}finally{t||c([!0,u])}})(),()=>{t=!0}},[n,l]),i};const o=i(r(d[0]))},390,[11]); +__d(function(g,r,_i,a,_m,_e,d){"use strict";var e=r(d[0]).default;const t=["screen","params","action","href","style"];var n,o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var s=Object.getOwnPropertyDescriptor(t,n);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,s)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||(n=function(e){return n=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},n(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i=n(e),c=0;c{'onPress'in _&&_.onPress?.(e),e.defaultPrevented||v.onPress(e)};return c.createElement(u.Text,Object.assign({},v,_,u.Platform.select({web:{onClick:O},default:{onPress:O}}),{style:[{color:h.primary},P.regular,b]}))};const c=i(r(d[1])),u=r(d[2]),l=r(d[3]),f=r(d[4])},391,[19,11,220,121,392]); +__d(function(g,r,_i,a,_m,_e,d){"use strict";var e,t=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||(e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)},function(i){if(i&&i.__esModule)return i;var o={};if(null!=i)for(var s=e(i),u=0;u{let o=!1;if('web'===s.Platform.OS&&n){const e='metaKey'in n&&n.metaKey||'altKey'in n&&n.altKey||'ctrlKey'in n&&n.ctrlKey||'shiftKey'in n&&n.shiftKey,t=!('button'in n)||null==n.button||0===n.button,i=!n.currentTarget||!('target'in n.currentTarget)||[void 0,null,'','self'].includes(n.currentTarget.target);!e&&t&&i&&(n.preventDefault?.(),o=!0)}else n?.preventDefault?.(),o=!0;if(o)if(i)if(p)p.dispatch(i);else{if(!f)throw new Error("Couldn't find a navigation object. Is your component inside NavigationContainer?");f.dispatch(i)}else p?.navigate(e,t)}}};const o=i(r(d[0])),s=r(d[1]),u=r(d[2]),c=r(d[3]),l=e=>e?.state?e.state:e?.screen?{routes:[{name:e.screen,params:e.params,state:e.screen?l(e.params):void 0}]}:void 0},392,[11,220,121,380]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,o,i){void 0===i&&(i=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&!("get"in u?!n.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,i,u)}:function(t,n,o,i){void 0===i&&(i=o),t[i]=n[o]}),o=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),i=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[n.length]=o);return n},t(n)},function(i){if(i&&i.__esModule)return i;var u={};if(null!=i)for(var c=t(i),l=0;l{console.error("'ServerContainer' should only be used on the server with 'react-dom/server' for SSR.")},[]);const i={};if(t){const n={getCurrentOptions:()=>i.options};'function'==typeof t?t(n):t.current=n}return(0,u.jsx)(f.ServerContext.Provider,{value:{location:o},children:(0,u.jsx)(l.CurrentRenderContext.Provider,{value:i,children:n})})};const u=r(d[0]),c=i(r(d[1])),l=r(d[2]),f=r(d[3])},393,[6,11,121,388]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DarkTheme=void 0;const o=r(d[0]);e.DarkTheme={dark:!0,colors:{primary:'rgb(10, 132, 255)',background:'rgb(1, 1, 1)',card:'rgb(18, 18, 18)',text:'rgb(229, 229, 231)',border:'rgb(39, 39, 41)',notification:'rgb(255, 69, 58)'},fonts:o.fonts}},394,[384]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},395,[]); +__d(function(g,_r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,r,o){void 0===o&&(o=r);var i=Object.getOwnPropertyDescriptor(n,r);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(t,o,i)}:function(t,n,r,o){void 0===o&&(o=r),t[o]=n[r]}),r=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),o=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[n.length]=r);return n},t(n)},function(o){if(o&&o.__esModule)return o;var i={};if(null!=o)for(var u=t(o),s=0;s{if(!1===r?.enabled)return;const c=!!(t&&n?.key&&o)&&(n.key===(0,s.findFocusedRoute)(o)?.key&&t.getState().routes.some(t=>t.key===n.key)),l={routes:[{name:i,params:u}]},h=t=>{if(t){const n=t.routes[0];return c&&!n.state?l:{routes:[Object.assign({},n,{state:h(n.state)})]}}return l},b=h(o);return f(b,r?.config)},[r?.enabled,r?.config,n?.key,t,o,f])}e.useBuildAction=()=>{const{options:t}=(0,u.use)(c.LinkingContext),n=t?.getStateFromPath??s.getStateFromPath,r=t?.getActionFromState??s.getActionFromState;return i.useCallback(o=>{if(!o.startsWith('/'))throw new Error(`The href must start with '/' (${o}).`);const i=n(o,t?.config);if(i){return r(i,t?.config)??s.CommonActions.reset(i)}throw new Error('Failed to parse the href to a navigation state.')},[t?.config,n,r])}},396,[11,121,380]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,i,o){void 0===o&&(o=i);var u=Object.getOwnPropertyDescriptor(n,i);u&&!("get"in u?!n.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return n[i]}}),Object.defineProperty(t,o,u)}:function(t,n,i,o){void 0===o&&(o=i),t[o]=n[i]}),i=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),o=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[n.length]=i);return n},t(n)},function(o){if(o&&o.__esModule)return o;var u={};if(null!=o)for(var c=t(o),f=0;f{if(void 0===t)throw new Error("Couldn't find a navigation object. Is your component inside NavigationContainer?");const o=n(i);t.dispatch(o)},[n,t])};const u=o(r(d[0])),c=r(d[1]),f=r(d[2])},397,[11,121,396]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useLocale=function(){const o=(0,t.use)(n.LocaleDirContext);if(void 0===o)throw new Error("Couldn't determine the text direction. Is your component inside NavigationContainer?");return{direction:o}};const t=r(d[0]),n=r(d[1])},398,[11,381]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,o,i){void 0===i&&(i=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&!("get"in u?!n.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,i,u)}:function(t,n,o,i){void 0===i&&(i=o),t[i]=n[o]}),o=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),i=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[n.length]=o);return n},t(n)},function(i){if(i&&i.__esModule)return i;var u={};if(null!=i)for(var c=t(i),f=0;f{if(!1===t?.enabled)return;return o(n,t?.config)},[t?.enabled,t?.config,n,o])};const u=i(r(d[0])),c=r(d[0]),f=r(d[1]),s=r(d[2])},399,[11,121,380]); +__d(function(g,r,_i,a,_m,_e,d){"use strict";var e,t=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var c=Object.getOwnPropertyDescriptor(t,n);c&&!("get"in c?!t.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,c)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||(e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)},function(o){if(o&&o.__esModule)return o;var c={};if(null!=o)for(var l=e(o),i=0;i{const o=[];let c=t;for(;c;)'tab'===c.getState().type&&o.push(c),c=c.getParent();if(0===o.length)return;const l=o.map(c=>c.addListener('tabPress',c=>{const l=t.isFocused(),i=o.includes(t)||t.getState().routes[0].key===n.key;requestAnimationFrame(()=>{const t=u(e);l&&i&&t&&!c.defaultPrevented&&('scrollToTop'in t?t.scrollToTop():'scrollTo'in t?t.scrollTo({y:0,animated:!0}):'scrollToOffset'in t?t.scrollToOffset({offset:0,animated:!0}):'scrollResponderScrollTo'in t&&t.scrollResponderScrollTo({y:0,animated:!0}))})}));return()=>{l.forEach(e=>e())}},[t,e,n.key])};const c=o(r(d[0])),l=r(d[0]),i=r(d[1]);function u(e){return null==e.current?null:'scrollToTop'in e.current||'scrollTo'in e.current||'scrollToOffset'in e.current||'scrollResponderScrollTo'in e.current?e.current:'getScrollResponder'in e.current?e.current.getScrollResponder():'getNode'in e.current?e.current.getNode():e.current}},400,[11,121]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useNavigation=function(s){let u=(0,o.useNavigation)(),l=(0,o.useStateForPath)();if(void 0===s)return u;const c=u.getId();if(''===c||"/expo-router/build/views/Navigator"===c)return u;'object'==typeof s&&(s=(0,n.resolveHref)(s));if('/'===s)return u.getParent("/expo-router/build/views/Navigator")??u.getParent("");if(s?.startsWith('../')){const n=[];for(;l;){const t=l.routes[0];l=t.state,l&&n.push(t.name)}const o=s;s.endsWith('/')&&(s=s.slice(0,-1));const u=s.split('/');if(!u.every(t=>'..'===t))throw new Error(`Invalid parent path "${o}". Only "../" segments are allowed when using relative paths.`);const c=u.length,v=n.length-1-c;if(v<0)throw new Error(`Invalid parent path "${o}". Cannot go up ${c} levels from the current route.`);(s=n[v])&&!(0,t.getRootStackRouteNames)().includes(s)&&(s=`/${s}`)}return u=u.getParent(s),u};const t=r(d[0]),n=r(d[1]),o=r(d[2])},401,[402,445,119]); +__d(function(g,r,i,a,m,e,d){"use strict";var o=this&&this.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0}),e.useColorSchemeChangesIfNeeded=void 0,e.shouldAppendSitemap=s,e.shouldAppendNotFound=c,e.shouldReactToColorSchemeChanges=f,e.getRootStackRouteNames=function(){const o=[u.INTERNAL_SLOT_NAME];c()&&o.push(u.NOT_FOUND_ROUTE_NAME);s()&&o.push(u.SITEMAP_ROUTE_NAME);return o};const t=o(r(d[0])),n=r(d[1]),u=r(d[2]);function s(){const o=t.default.expoConfig?.extra?.router;return!1!==o?.sitemap}function c(){const o=t.default.expoConfig?.extra?.router;return!1!==o?.notFound}function f(){const o=t.default.expoConfig?.extra?.router;return!1!==o?.adaptiveColors}e.useColorSchemeChangesIfNeeded=f()?n.useColorScheme:function(){}},402,[403,220,444]); +__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,"AppOwnership",{enumerable:!0,get:function(){return l.AppOwnership}}),Object.defineProperty(_e,"ExecutionEnvironment",{enumerable:!0,get:function(){return l.ExecutionEnvironment}}),Object.defineProperty(_e,"UserInterfaceIdiom",{enumerable:!0,get:function(){return l.UserInterfaceIdiom}}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return N}});var n=e(r(d[0])),t=r(d[1]);r(d[2]);var u=e(r(d[3])),l=r(d[4]),o=e(r(d[5]));o.default||console.warn("No native ExponentConstants module found, are you sure the expo-constants's module is linked properly?");const s=(0,t.requireOptionalNativeModule)('ExpoUpdates');let f=null;if(s){let e;s.manifest?e=s.manifest:s.manifestString&&(e=JSON.parse(s.manifestString)),e&&Object.keys(e).length>0&&(f=e)}let c=null;if(u.default.EXDevLauncher){let e;u.default.EXDevLauncher.manifestString&&(e=JSON.parse(u.default.EXDevLauncher.manifestString)),e&&Object.keys(e).length>0&&(c=e)}let p=null;if(o.default&&o.default.manifest){const e=o.default.manifest;p='string'==typeof e?JSON.parse(e):e}let b=f??c??p;const E=o.default||{},{appOwnership:O}=E,x=(0,n.default)(E,["name","appOwnership"]),v=Object.assign({},x,{appOwnership:O??null});function _(e){return!h(e)}function h(e){return'metadata'in e}function S(e=!1){if(!b){const e=null===b?'null':'undefined';if(x.executionEnvironment,l.ExecutionEnvironment.Bare,x.executionEnvironment===l.ExecutionEnvironment.StoreClient||x.executionEnvironment===l.ExecutionEnvironment.Standalone)throw new t.CodedError('ERR_CONSTANTS_MANIFEST_UNAVAILABLE',`Constants.manifest is ${e}, must be an object.`)}return b}Object.defineProperties(v,{__unsafeNoWarnManifest:{get(){const e=S(!0);return e&&_(e)?e:null},enumerable:!1},__unsafeNoWarnManifest2:{get(){const e=S(!0);return e&&h(e)?e:null},enumerable:!1},manifest:{get(){const e=S();return e&&_(e)?e:null},enumerable:!0},manifest2:{get(){const e=S();return e&&h(e)?e:null},enumerable:!0},expoConfig:{get(){const e=S(!0);return e?s&&s.isEmbeddedLaunch?p:h(e)?e.extra?.expoClient??null:_(e)?e:null:null},enumerable:!0},expoGoConfig:{get(){const e=S(!0);return e?h(e)?e.extra?.expoGo??null:_(e)?e:null:null},enumerable:!0},easConfig:{get(){const e=S(!0);return e?h(e)?e.extra?.eas??null:_(e)?e:null:null},enumerable:!0},__rawManifest_TEST:{get:()=>b,set(e){b=e},enumerable:!1}});var N=v},403,[19,404,235,230,442,443]); +__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,"EventEmitter",{enumerable:!0,get:function(){return t.EventEmitter}}),Object.defineProperty(_e,"NativeModule",{enumerable:!0,get:function(){return n.NativeModule}}),Object.defineProperty(_e,"SharedObject",{enumerable:!0,get:function(){return o.SharedObject}}),Object.defineProperty(_e,"SharedRef",{enumerable:!0,get:function(){return u.SharedRef}}),Object.defineProperty(_e,"Platform",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(_e,"uuid",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(_e,"requireNativeViewManager",{enumerable:!0,get:function(){return l.requireNativeViewManager}}),Object.defineProperty(_e,"CodedError",{enumerable:!0,get:function(){return E.CodedError}}),Object.defineProperty(_e,"UnavailabilityError",{enumerable:!0,get:function(){return w.UnavailabilityError}}),Object.defineProperty(_e,"LegacyEventEmitter",{enumerable:!0,get:function(){return k.LegacyEventEmitter}}),Object.defineProperty(_e,"NativeModulesProxy",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(_e,"installOnUIRuntime",{enumerable:!0,get:function(){return _.installOnUIRuntime}}),r(d[0]),r(d[1]),r(d[2]);var t=r(d[3]),n=r(d[4]),o=r(d[5]),u=r(d[6]),c=e(r(d[7])),f=e(r(d[8])),l=r(d[9]),b=r(d[10]);Object.keys(b).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return b[e]}})});var y=r(d[11]);Object.keys(y).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return y[e]}})});var O=r(d[12]);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 p=r(d[13]);Object.keys(p).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return p[e]}})});var j=r(d[14]);Object.keys(j).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return j[e]}})});var P=r(d[15]);Object.keys(P).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return P[e]}})});var s=r(d[16]);Object.keys(s).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return s[e]}})});var h=r(d[17]);Object.keys(h).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return h[e]}})});var v=r(d[18]);Object.keys(v).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return v[e]}})});var E=r(d[19]),w=r(d[20]),k=r(d[21]),M=e(r(d[22])),_=r(d[23])},404,[405,410,411,419,421,422,423,424,414,426,429,430,431,432,433,434,435,436,437,428,427,438,440,441]); +__d(function(g,r,i,a,m,e,d){"use strict";r(d[0]),r(d[1]),r(d[2]),r(d[3])},405,[406,407,408,409]); +__d(function(g,r,i,a,m,e,d){},406,[]); +__d(function(g,r,i,a,m,e,d){},407,[]); +__d(function(g,r,i,a,m,e,d){},408,[]); +__d(function(g,r,i,a,m,e,d){},409,[]); +__d(function(g,r,i,a,m,e,d){},410,[]); +__d(function(g,r,i,a,m,e,d){"use strict";(0,r(d[0]).installExpoGlobalPolyfill)()},411,[412]); +__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.installExpoGlobalPolyfill=function(){if(globalThis.expo)return;globalThis.expo={EventEmitter:o.EventEmitter,NativeModule:o.NativeModule,SharedObject:o.SharedObject,SharedRef:o.SharedRef,modules:globalThis.ExpoDomWebView?.expoModulesProxy??{},uuidv4:l.default.v4,uuidv5:l.default.v5,getViewConfig:()=>{throw new Error('Method not implemented.')},reloadAppAsync:async()=>{window.location.reload()},expoModulesCoreVersion:void 0,cacheDir:void 0,documentsDir:void 0,installOnUIRuntime:e=>{throw new Error('Method not implemented.')}}};var e,o=r(d[0]),t=r(d[1]),l=(e=t)&&e.__esModule?e:{default:e},n=r(d[2]);Object.keys(n).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return n[e]}})})},412,[413,414,405]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"EventEmitter",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"NativeModule",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"SharedObject",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"SharedRef",{enumerable:!0,get:function(){return o}});class t{addListener(t,s){this.listeners||(this.listeners=new Map),this.listeners?.has(t)||this.listeners?.set(t,new Set);const n=this.listenerCount(t);return this.listeners?.get(t)?.add(s),0===n&&1===this.listenerCount(t)&&this.startObserving(t),{remove:()=>{this.removeListener(t,s)}}}removeListener(t,s){const n=this.listeners?.get(t)?.delete(s);0===this.listenerCount(t)&&n&&this.stopObserving(t)}removeAllListeners(t){const s=this.listenerCount(t);this.listeners?.get(t)?.clear(),s>0&&this.stopObserving(t)}emit(t,...s){new Set(this.listeners?.get(t)).forEach(t=>{try{t(...s)}catch(t){console.error(t)}})}listenerCount(t){return this.listeners?.get(t)?.size??0}startObserving(t){}stopObserving(t){}}class s extends t{}class n extends t{release(){}}class o extends n{nativeRefType='unknown'}},413,[]); +__d(function(g,r,i,a,m,_e,d){"use strict";function _interopDefault(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return _default}});var _libSha=r(d[0]),sha1=_interopDefault(_libSha),_libV=r(d[1]),v35=_interopDefault(_libV),_uuidTypes=r(d[2]);function uuidv4(){return'undefined'==typeof crypto&&'undefined'==typeof window?eval('require')('node:crypto').randomUUID():crypto.randomUUID()}const uuid={v4:uuidv4,v5:(0,v35.default)('v5',80,sha1.default),namespace:_uuidTypes.Uuidv5Namespace};var _default=uuid},414,[415,416,418]); +__d(function(g,r,_i,_a,m,_e,_d){'use strict';function e(e,t,n,o){switch(e){case 0:return t&n^~t&o;case 1:case 3:return t^n^o;case 2:return t&n^t&o^n&o;default:return 0}}function t(e,t){return e<>>32-t}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return n}});var n=function(n){const o=[1518500249,1859775393,2400959708,3395469782],c=[1732584193,4023233417,2562383102,271733878,3285377520];if('string'==typeof n){const e=unescape(encodeURIComponent(n));n=new Array(e.length);for(let t=0;t>>0;i=h,h=s,s=t(a,30)>>>0,a=f,f=u}c[0]=c[0]+f>>>0,c[1]=c[1]+a>>>0,c[2]=c[2]+s>>>0,c[3]=c[3]+h>>>0,c[4]=c[4]+i>>>0}return[c[0]>>24&255,c[0]>>16&255,c[0]>>8&255,255&c[0],c[1]>>24&255,c[1]>>16&255,c[1]>>8&255,255&c[1],c[2]>>24&255,c[2]>>16&255,c[2]>>8&255,255&c[2],c[3]>>24&255,c[3]>>16&255,c[3]>>8&255,255&c[3],c[4]>>24&255,c[4]>>16&255,c[4]>>8&255,255&c[4]]}},415,[]); +__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]),n=(e=t)&&e.__esModule?e:{default:e};function o(e){const t=[];return e.replace(/[a-fA-F0-9]{2}/g,e=>(t.push(parseInt(e,16)),'')),t}function c(e){e=unescape(encodeURIComponent(e));const t=new Array(e.length);for(let n=0;nc(e,t)};var t,u=r(d[0]),n=(t=u)&&t.__esModule?t:{default:t},s=r(d[1]);function c(t,u){const c=(0,s.useRef)(!0),[o,l]=(0,s.useState)(null),f=u||{},{get:h=!0,request:M=!1}=f,_=(0,n.default)(f,e),b=(0,s.useCallback)(async()=>{let e;return e=Object.keys(_).length>0?await t.getMethod(_):await t.getMethod(),c.current&&l(e),e},[t.getMethod]),k=(0,s.useCallback)(async()=>{let e;return e=Object.keys(_).length>0?await t.requestMethod(_):await t.requestMethod(),c.current&&l(e),e},[t.requestMethod]);return(0,s.useEffect)(function(){M&&k(),!M&&h&&b()},[h,M,k,b]),(0,s.useEffect)(function(){return c.current=!0,()=>{c.current=!1}},[]),[o,k,b]}},433,[19,11]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.createSnapshotFriendlyRef=function(){return(0,t.createRef)()};var t=r(d[0])},434,[11]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useReleasingSharedObject=function(c,n){return(0,t.useReleasingSharedObjectWithLifecycle)({factory:c},n)};var t=r(d[0])},435,[436]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useReleasingSharedObjectWithLifecycle=function(u,c){const s=(0,n.useRef)(null),l=(0,n.useRef)(null),o=(0,n.useRef)(null),f=(0,n.useRef)(null),R=(0,n.useRef)(!1),h=(0,n.useRef)(c),p=(0,n.useRef)(u);p.current=u,null==s.current&&(s.current=p.current.factory());const y=(0,n.useMemo)(()=>{let n=s.current;const u={previousDependencies:h.current,dependencies:c};return n&&t(h.current,c)||(!n||(p.current.shouldRecreate?.(n,u)??!0)?(l.current=s.current,n=p.current.factory(),s.current=n):p.current.update&&(o.current={object:n,context:u}),h.current=c),n},c);function b(n){(p.current.release??(n=>n.release()))(n)}return(0,n.useEffect)(()=>{if(l.current){const n=l.current;l.current=null;const t=()=>b(n);f.current?f.current.then(t,t):t()}if(o.current){const n=o.current;o.current=null;const t=p.current.update?.(n.object,n.context);t instanceof Promise&&(f.current=t,t.then(()=>{f.current=null},n=>{f.current=null,console.error(n)}))}},c),(0,n.useMemo)(()=>{R.current=!0},[]),(0,n.useEffect)(()=>(R.current=!1,()=>{if(!R.current&&s.current){const n=s.current,t=()=>b(n);f.current?f.current.then(t,t):t()}}),[]),y};var n=r(d[0]);function t(n,t){return n.length===t.length&&t.every((t,u)=>t===n[u])}},436,[11]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.reloadAppAsync=async function(o="Reloaded from JS call"){await(globalThis.expo?.reloadAppAsync(o))}},437,[]); +__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,"LegacyEventEmitter",{enumerable:!0,get:function(){return o}});var t=e(r(d[0])),n=e(r(d[1]));r(d[2]);const s='@@nativeEmitterSubscription@@';class o{_listenerCount=0;constructor(e){if(e.__expo_module_name__)return e;this._nativeModule=e,this._eventEmitter=new n.default(e)}addListener(e,t){!this._listenerCount&&this._nativeModule.startObserving&&this._nativeModule.startObserving(),this._listenerCount++;const n=this._eventEmitter.addListener(e,t),o={[s]:n,remove:()=>{this.removeSubscription(o)}};return o}removeAllListeners(e){const n=this._eventEmitter.listenerCount?this._eventEmitter.listenerCount(e):this._eventEmitter.listeners(e).length;this._eventEmitter.removeAllListeners(e),this._listenerCount-=n,(0,t.default)(this._listenerCount>=0,"EventEmitter must have a non-negative number of listeners"),!this._listenerCount&&this._nativeModule.stopObserving&&this._nativeModule.stopObserving()}removeSubscription(e){const t=e,n=t[s];n&&('remove'in n&&n.remove?.(),this._listenerCount--,delete t[s],e.remove=()=>{},!this._listenerCount&&this._nativeModule.stopObserving&&this._nativeModule.stopObserving())}emit(e,...t){this._eventEmitter.emit(e,...t)}}},438,[439,333,235]); +__d(function(g,r,i,_a,m,_e,_d){'use strict';m.exports=function(e,n,o,t,a,f,s,d){if(!e){var u;if(void 0===n)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[o,t,a,f,s,d],l=0;(u=new Error(n.replace(/%s/g,function(){return c[l++]}))).name='Invariant Violation'}throw u.framesToPop=1,u}}},439,[]); +__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={}},440,[]); +__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)}},441,[]); +__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={}))},442,[]); +__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 n=r(d[0]);const t=(Date.now()+'-'+Math.floor(1e9*Math.random())).toString();function o(){if('undefined'!=typeof navigator&&'string'==typeof navigator.userAgent){const n=navigator.userAgent.toLowerCase();if(n.includes('edge'))return'Edge';if(n.includes('edg'))return'Chromium Edge';if(n.includes('opr')&&'opr'in window&&window.opr)return'Opera';if(n.includes('chrome')&&'chrome'in window&&window.chrome)return'Chrome';if(n.includes('trident'))return'IE';if(n.includes('firefox'))return'Firefox';if(n.includes('safari'))return'Safari'}}var u={get appOwnership(){return null},get executionEnvironment(){return n.ExecutionEnvironment.Bare},get sessionId(){return t},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\":\"Pull Up\",\"slug\":\"pullup\",\"version\":\"0.1.0\",\"orientation\":\"portrait\",\"scheme\":\"pullup\",\"userInterfaceStyle\":\"dark\",\"newArchEnabled\":true,\"splash\":{\"image\":\"./assets/splash-icon.png\",\"resizeMode\":\"contain\",\"backgroundColor\":\"#0B0F14\"},\"web\":{\"bundler\":\"metro\",\"output\":\"single\",\"favicon\":\"./assets/favicon.png\",\"shortName\":\"Pull Up\",\"orientation\":\"portrait\",\"name\":\"Pull Up\"},\"experiments\":{\"typedRoutes\":true},\"sdkVersion\":\"57.0.0\",\"platforms\":[\"ios\",\"android\",\"web\"],\"extra\":{\"router\":{}}}"},get manifest2(){return null},get experienceUrl(){return'undefined'!=typeof location?location.origin:''},get debugMode(){return!1},getWebViewUserAgentAsync:async()=>'undefined'!=typeof navigator?navigator.userAgent:null}},443,[442]); +__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'},444,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.resolveHref=void 0,e.resolveHrefStringWithSegments=function(t,{segments:n=[],params:s={}}={},{relativeToDirectory:o}={}){if(t.startsWith('.')){let c=n?.map(t=>{if(!t.startsWith('['))return t;if(t.startsWith('[...')){t=t.slice(4,-1);const n=s[t];return Array.isArray(n)?n.join('/'):n?.split(',')?.join('/')??''}return t=t.slice(1,-1),s[t]}).filter(Boolean).join('/')??'/';o&&(c=`${c}/`);const l=new URL(t,`http://hostname/${c}`);t=`${l.pathname}${l.search}`}return t.replace(/^\/+/,'/')};function t(t,s){for(const[o,c=""]of Object.entries(s)){const l=`[${o}]`,f=`[...${o}]`;if(t.includes(l))t=t.replace(l,n(c));else{if(!t.includes(f))continue;t=t.replace(f,n(c))}delete s[o]}return{pathname:t,params:s}}function n(t){return Array.isArray(t)?t.map(t=>n(t)).join('/'):encodeURIComponent(t.toString())}function s(t){return Object.entries(t).filter(([,t])=>null!=t).map(([t,n])=>`${t}=${encodeURIComponent(n.toString())}`).join('&')}e.resolveHref=n=>{if('string'==typeof n)return(0,e.resolveHref)({pathname:n});const o=n.pathname??'';if(!n?.params)return o;const{pathname:c,params:l}=t(o,Object.assign({},n.params)),f=s(l);return c+(f?`?${f}`:'')}},445,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useSafeLayoutEffect=void 0;const t=r(d[0]);e.useSafeLayoutEffect='undefined'!=typeof window?t.useLayoutEffect:function(){}},446,[11]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isRoutePreloadedInStack=function(t,o){if(!t||'stack'!==t.type)return!1;return t.preloadedRoutes.some(t=>t.key===o.key)}},447,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sortRoutes=e.sortRoutesWithInitial=e.LocalRouteParamsContext=e.SuspenseFallbackContext=void 0,e.useRouteNode=l,e.useContextKey=function(){const t=l();if(null==t)throw new Error('No filename found. This is likely a bug in expo-router.');return(0,n.getContextKey)(t.contextKey)},e.Route=function({children:o,node:n,params:u}){return(0,t.jsx)(e.LocalRouteParamsContext.Provider,{value:u,children:(0,t.jsx)(s.Provider,{value:n,children:o})})};const t=r(d[0]),o=r(d[1]),n=r(d[2]),u=r(d[3]);Object.defineProperty(e,"sortRoutesWithInitial",{enumerable:!0,get:function(){return u.sortRoutesWithInitial}}),Object.defineProperty(e,"sortRoutes",{enumerable:!0,get:function(){return u.sortRoutes}});const s=(0,o.createContext)(null);function l(){return(0,o.use)(s)}e.SuspenseFallbackContext=(0,o.createContext)(void 0),e.LocalRouteParamsContext=(0,o.createContext)({})},448,[6,11,449,450]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.matchDynamicName=function(n){const u=n.match(t)?.[1];return null==u?void 0:u.startsWith('...')?{name:u.slice(3),deep:!0}:{name:u,deep:!1}},e.testNotFound=function(t){return/\+not-found$/.test(t)},e.matchGroupName=n,e.matchLastGroupName=function(t){return t.match(/.*(?:\/|^)\(([^\\/]+)\)[^\s]*$/)?.[1]},e.matchArrayGroupName=function(t){return t.match(/(?:[^\\()])*?\(([^\\/]+,[^\\/]+)\)/)?.[1]},e.getNameFromFilePath=u,e.getContextKey=function(t){const n='/'+u(t);if(!n.endsWith('_layout'))return n;return n.replace(/\/?_layout$/,'')},e.removeSupportedExtensions=o,e.removeFileSystemExtensions=function(t){return t.replace(/\.[jt]sx?$/g,'')},e.removeFileSystemDots=c,e.stripGroupSegmentsFromPath=s,e.stripInvisibleSegmentsFromPath=function(t){return s(t).replace(/\/?index$/,'')},e.isTypedRoute=function(t){return!t.startsWith('+')&&null===t.match(/(_layout|[^/]*?\+[^/]*?)\.[tj]sx?$/)};const t=/^\[([^[\]]+?)\]$/;function n(t){return t.match(/^(?:[^\\()])*?\(([^\\/]+)\)/)?.[1]}function u(t){return o(c(t))}function o(t){return t.replace(/(\+api)?\.[jt]sx?$/g,'')}function c(t){return t.replace(/^(?:\.\.?\/)+/g,'')}function s(t){return t.split('/').reduce((t,u)=>(null==n(u)&&t.push(u),t),[]).join('/')}},449,[]); +__d(function(g,r,_i,_a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sortRoutes=u,e.sortRoutesWithInitial=function(n){return(t,o)=>{if(n){if(t.route===n)return-1;if(o.route===n)return 1}return u(t,o)}};const n=r(d[0]);function t(n,t){return n.deep&&!t.deep?1:!n.deep&&t.deep?-1:0}function u(u,o){if(u.dynamic&&!o.dynamic)return 1;if(!u.dynamic&&o.dynamic)return-1;if(u.dynamic&&o.dynamic){if(u.dynamic.length!==o.dynamic.length)return o.dynamic.length-u.dynamic.length;for(let n=0;n!!t.payload&&'params'in t.payload&&'object'==typeof t.payload.params&&!!(0,l.getInternalExpoRouterParams)(t.payload?.params??void 0)[l.INTERNAL_EXPO_ROUTER_IS_PREVIEW_NAVIGATION_PARAM_NAME],N=t=>{const n=t.payload&&'params'in t.payload&&'object'==typeof t.payload.params?t.payload.params:void 0,r=(0,l.getInternalExpoRouterParams)(n??void 0)[l.INTERNAL_EXPO_ROUTER_ZOOM_TRANSITION_SOURCE_ID_PARAM_NAME];if(r&&'string'==typeof r)return r};function S(t,n){return'function'==typeof t?r=>t(n,r.params??{}):!0===t?t=>(0,c.getSingularId)(n,t):void 0}function T(t,n){if(!t)return t;if(!t.routes)return t;const r=t.index||t.routes.length-1,o=t.routes[r],s=o.name,p=n?.({params:o.params});if(!p)return t;let l=t.routes;return l=l.filter((t,o)=>o===r||(s!==t.name||p!==n?.({params:t.params}))),Object.assign({},t,{index:l.length-1,routes:l})}e.stackRouterOverride=t=>({getStateForAction:(r,o,s)=>{if(o.target&&o.target!==r.key)return null;if(!_(o))return t.getStateForAction(r,o,s);const p=o.payload&&'singular'in o.payload?o.payload.singular:void 0;const{routeParamList:u}=s;switch(o.type){case'PUSH':case'NAVIGATE':{if(!r.routeNames.includes(o.payload.name))return null;const t=(function(){if(!('payload'in o)||!o.payload||!('name'in o.payload)||'string'!=typeof o.payload.name)return;const t=o.payload.name;return S(p,t)||s.routeGetIdList[t]})(),y=t?.({params:o.payload.params});let O;if(void 0!==y)O=r.routes.findLast(n=>n.name===o.payload.name&&y===t?.({params:n.params}));else if('NAVIGATE'===o.type){const t=r.routes[r.index];o.payload.name!==t.name||E(o)?o.payload.pop&&(O=r.routes.findLast(t=>t.name===o.payload.name)):O=t}let A,f,R=!1;if(E(o)&&!O&&(O=r.preloadedRoutes.find(t=>t.name===o.payload.name&&y===t.key),R=!!O),O||(O=r.preloadedRoutes.find(n=>n.name===o.payload.name&&y===t?.({params:n.params})),R=!!O),A='NAVIGATE'===o.type&&o.payload.merge&&O?void 0!==o.payload.params||void 0!==u[o.payload.name]?Object.assign({},u[o.payload.name],O.params,o.payload.params):O.params:void 0!==u[o.payload.name]?Object.assign({},u[o.payload.name],o.payload.params):o.payload.params,O)if('NAVIGATE'===o.type&&o.payload.pop){f=[];for(const t of r.routes){if(t.key===O.key){f.push(Object.assign({},O,{path:void 0!==o.payload.path?o.payload.path:O.path,params:A}));break}f.push(t)}}else{if(void 0!==y)f=r.routes.filter(t=>t.key!==O.key);else if('NAVIGATE'===o.type&&r.routes.length>0){const t=r.routes[r.routes.length-1];f=(0,c.getSingularId)(t.name,{params:t.params})===(0,c.getSingularId)(O.name,{params:A})?r.routes.slice(0,-1):[...r.routes]}else f=[...r.routes];const t=f.length!==r.routes.length||R?O.key:`${o.payload.name}-${(0,n.nanoid)()}`;f.push(Object.assign({},O,{key:t,path:'NAVIGATE'===o.type&&void 0!==o.payload.path?o.payload.path:O.path,params:A}))}else f=[...r.routes,{key:`${o.payload.name}-${(0,n.nanoid)()}`,name:o.payload.name,path:'NAVIGATE'===o.type?o.payload.path:void 0,params:A}];const _=Object.assign({},r,{index:f.length-1,preloadedRoutes:r.preloadedRoutes.filter(t=>f[f.length-1].key!==t.key),routes:f});if(p)return T(_,t);if(N(o)){const t=_.routes[_.routes.length-1],n=t.key,r=Object.assign({},t,{params:Object.assign({},t.params,{[l.INTERNAL_EXPO_ROUTER_ZOOM_TRANSITION_SCREEN_ID_PARAM_NAME]:n})});return Object.assign({},_,{routes:[..._.routes.slice(0,-1),r]})}return _}case'PRELOAD':{if(!r.routeNames.includes(o.payload.name))return null;const t=s.routeGetIdList[o.payload.name],p=t?.({params:o.payload.params});let c;void 0!==p&&(c=r.routes.find(n=>n.name===o.payload.name&&p===t?.({params:n.params})));const y=N(o);if(c)return Object.assign({},r,{routes:r.routes.map(t=>{if(t.key!==c?.key)return t;const n=void 0!==u[o.payload.name]?Object.assign({},u[o.payload.name],o.payload.params):o.payload.params;return Object.assign({},t,{params:y?Object.assign({},n,{[l.INTERNAL_EXPO_ROUTER_ZOOM_TRANSITION_SCREEN_ID_PARAM_NAME]:t.key}):n})})});{const s=`${o.payload.name}-${(0,n.nanoid)()}`,c=void 0!==u[o.payload.name]?Object.assign({},u[o.payload.name],o.payload.params):o.payload.params,O={key:s,name:o.payload.name,params:y?Object.assign({},c,{[l.INTERNAL_EXPO_ROUTER_ZOOM_TRANSITION_SCREEN_ID_PARAM_NAME]:s}):c};return Object.assign({},r,{preloadedRoutes:[O].concat(r.preloadedRoutes.filter(n=>n.name!==o.payload.name||p!==t?.({params:n.params})))})}}default:return t.getStateForAction(r,o,s)}}});const I=Object.assign(n=>{const{isStackAnimationDisabled:o}=(0,p.useLinkPreviewContext)(),s=(0,r.useMemo)(()=>{const t=r.Children.toArray(n.children).find(t=>(0,O.isChildOfType)(t,u.StackHeader));if(t){const r={children:t},o=n.screenOptions;return o?'function'==typeof o?(...t)=>{const n=o(...t);return(0,u.appendScreenStackPropsToOptions)(n,r)}:(0,u.appendScreenStackPropsToOptions)(o,r):(0,u.appendScreenStackPropsToOptions)({},r)}if(n.screenOptions){const t=n.screenOptions;return(0,u.validateStackPresentation)(t)}return n.screenOptions},[n.screenOptions,n.children]),l=(0,r.useMemo)(()=>k(s,o?()=>!0:h),[s,o]),c=(0,r.useMemo)(()=>(0,u.mapProtectedScreen)({guard:!0,children:n.children}).children,[n.children]);return(0,t.jsx)(R,Object.assign({},n,{children:c,screenOptions:l,UNSTABLE_router:e.stackRouterOverride}))},{Screen:u.StackScreen,Protected:A.Protected,Header:u.StackHeader,SearchBar:u.StackSearchBar,Title:u.StackTitle,Toolbar:u.StackToolbar});function k(t,n){return t&&'function'==typeof t?r=>{const o=t(r);return n(r.route)?Object.assign({},o,{animation:'none'}):o??{}}:r=>n(r.route)?Object.assign({},t??{},{animation:'none'}):t??{}}function h(t){return!!(0,l.getInternalExpoRouterParams)(t.params)[l.INTERNAL_EXPO_ROUTER_NO_ANIMATION_PARAM_NAME]}e.default=I;e.StackRouter=t=>{const n=(0,y.StackRouter)(t);return Object.assign({},n,(0,e.stackRouterOverride)(n))}},451,[6,127,11,452,689,668,526,541,701,119,462,688]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=r(d[0]).default;const n=["children"];Object.defineProperty(e,"__esModule",{value:!0}),e.useFilterScreenChildren=y,e.withLayoutContext=function(u,S,b=!1){return Object.assign((0,s.forwardRef)((s,h)=>{let{children:f}=s,v=t(s,n);const x=(0,c.useContextKey)(),{screens:C,protectedScreens:j}=y(f,{contextKey:x}),L=S?S(C??[]):C,O=(0,l.useSortedScreens)(L??[],j,b);return O.length?(0,o.jsx)(p.IsWithinLayoutContext,{value:!0,children:(0,o.jsx)(u,Object.assign({},v,{id:x,ref:h,children:O}))}):null}),{Screen:f.Screen,Protected:h.Protected})};const o=r(d[1]),s=r(d[2]),c=r(d[3]),u=r(d[4]),l=r(d[5]),p=r(d[6]),h=r(d[7]),f=r(d[8]);function y(t,{isCustomNavigator:n,contextKey:o}={}){return(0,s.useMemo)(()=>{const c=[],l=[],p=new Set;function y(t,S=!1){if((0,f.isScreen)(t,o))S?p.add(t.props.name):l.push(t.props);else{if(!(0,u.isNativeTabTrigger)(t,o)){if((0,h.isProtectedReactElement)(t)){const n=S||!t.props.guard;return void s.Children.forEach(t.props.children,t=>{y(t,n)})}return n?(c.push(t),null):(console.warn(`Layout children must be of type Screen, all other children are ignored. To use custom children, create a custom . Update Layout Route at: "app${o}/_layout"`),null)}if(S)p.add(t.props.name);else{const n=(0,u.convertTabPropsToOptions)(t.props);!1===n.hidden?l.push(Object.assign({},t.props,{options:n})):p.add(t.props.name)}}}return s.Children.forEach(t,t=>y(t)),{screens:l,children:c,protectedScreens:p}},[t])}},452,[19,6,11,448,453,541,687,688,118]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NativeTabTrigger=void 0,e.convertTabPropsToOptions=T,e.isNativeTabTrigger=function(t,o){if((0,p.isChildOfType)(t,e.NativeTabTrigger)){if('name'in t.props&&!t.props.name)throw new Error(` component in \`default export\` at \`app${o}/_layout\` must have a \`name\` prop when used as a child of a Layout Route.`);return!0}return!1};const t=r(d[0]),o=r(d[1]),n=r(d[2]),l=r(d[3]),s=r(d[4]),c=r(d[5]),b=r(d[6]),p=r(d[7]);function T({hidden:t,children:o,role:n,disablePopToTop:c,disableScrollToTop:b,unstable_nativeProps:T,disableAutomaticContentInsets:f,contentStyle:y,disableTransparentOnScrollEdge:h,disabled:I,rippleColor:C,indicatorColor:N,disableIndicator:O,labelVisibilityMode:S,testID:B,accessibilityLabel:L},E=!1){const w=E?Object.assign({},T?{nativeProps:T}:{},void 0!==h?{disableTransparentOnScrollEdge:h}:{},void 0!==I?{disabled:I}:{},void 0!==C?{rippleColor:C}:{},void 0!==N?{indicatorColor:N}:{},void 0!==O?{disableIndicator:O}:{},void 0!==S?{labelVisibilityMode:S}:{},void 0!==B?{tabBarItemTestID:B}:{},void 0!==L?{tabBarItemAccessibilityLabel:L}:{}):Object.assign({hidden:!!t,specialEffects:{repeatedTabSelection:{popToRoot:!c,scrollToTop:!b}},contentStyle:y,role:n,nativeProps:T,disableAutomaticContentInsets:f},void 0!==h?{disableTransparentOnScrollEdge:h}:{},void 0!==I?{disabled:I}:{},void 0!==C?{rippleColor:C}:{},void 0!==N?{indicatorColor:N}:{},void 0!==O?{disableIndicator:O}:{},void 0!==S?{labelVisibilityMode:S}:{},void 0!==B?{tabBarItemTestID:B}:{},void 0!==L?{tabBarItemAccessibilityLabel:L}:{});return(0,p.filterAllowedChildrenElements)(o,[l.NativeTabsTriggerBadge,l.NativeTabsTriggerLabel,l.NativeTabsTriggerIcon]).reduce((t,o)=>((0,p.isChildOfType)(o,l.NativeTabsTriggerBadge)?v(t,o.props):(0,p.isChildOfType)(o,l.NativeTabsTriggerLabel)?u(t,o.props):(0,p.isChildOfType)(o,l.NativeTabsTriggerIcon)&&(0,s.appendIconOptions)(t,o.props),t),Object.assign({},w))}function v(t,o){o.children?(t.badgeValue=String(o.children),t.selectedBadgeBackgroundColor=o.selectedBackgroundColor):o.hidden||(t.badgeValue=' ')}function u(t,n){n.hidden?t.title='':(t.title=n.children,n.selectedStyle&&(t.selectedLabelStyle=o.StyleSheet.flatten(n.selectedStyle)))}e.NativeTabTrigger=Object.assign(function(o){const l=(0,n.useRoute)(),s=(0,n.useNavigation)(),p=(0,c.useIsPreview)();return(0,b.useFocusEffect)((0,t.useCallback)(()=>{if(!p){if('tab'!==s.getState()?.type)throw new Error(`Trigger component can only be used in the tab screen. Current route: ${l.name}`);const t=T(o,!0);s.setOptions(t)}},[o,p])),null},{Label:l.NativeTabsTriggerLabel,Icon:l.NativeTabsTriggerIcon,Badge:l.NativeTabsTriggerBadge,VectorIcon:l.NativeTabsTriggerVectorIcon})},453,[11,220,119,454,459,463,464,462]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NativeTabsBottomAccessory=e.NativeTabsTriggerBadge=e.NativeTabsTriggerPromiseIcon=e.NativeTabsTriggerVectorIcon=e.NativeTabsTriggerIcon=e.NativeTabsTriggerLabel=void 0;const t=r(d[0]);e.NativeTabsTriggerLabel=t.Label,e.NativeTabsTriggerIcon=t.Icon,e.NativeTabsTriggerVectorIcon=t.VectorIcon;e.NativeTabsTriggerPromiseIcon=function(t){return null},e.NativeTabsTriggerBadge=t.Badge;e.NativeTabsBottomAccessory=()=>null},454,[455]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&!("get"in u?!n.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),e.Group=e.Screen=void 0;var o=r(d[0]);Object.defineProperty(e,"Screen",{enumerable:!0,get:function(){return o.Screen}}),Object.defineProperty(e,"Group",{enumerable:!0,get:function(){return o.Group}}),n(r(d[1]),e),n(r(d[2]),e)},455,[456,457,458]); +__d(function(g,r,i,a,m,e,d){"use strict";var o;Object.defineProperty(e,"__esModule",{value:!0}),e.Group=e.Screen=void 0;o=(0,r(d[0]).createNavigatorFactory)({})(),e.Screen=o.Screen,e.Group=o.Group},456,[119]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},457,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Badge=function(n){return null},e.Icon=function(n){return null},e.VectorIcon=function(n){return null},e.Label=function(n){return null}},458,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.appendIconOptions=function(o,c){'src'in c&&c.src&&(0,n.applyIconSrcOptions)(o,c);(0,n.applySelectedColor)(o,c.selectedColor)},e.convertOptionsIconToScreensPropsIcon=function(n,o){return};const n=r(d[0])},459,[460]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.applyIconSrcOptions=function(n,c){const t=o(c);n.icon=t?.icon,n.selectedIcon=t?.selectedIcon},e.applySelectedColor=function(n,c){c&&(n.selectedIconColor=c)};const n=r(d[0]),c=r(d[1]);function o(n){if(n&&n.src){const{defaultIcon:c,selected:o}='object'==typeof n.src&&'selected'in n.src?{defaultIcon:n.src.default,selected:n.src.selected}:{defaultIcon:n.src},s={};return s.icon=t(c,{renderingMode:n.renderingMode}),s.selectedIcon=t(o,{renderingMode:n.renderingMode}),s}}function t(o,t){if(o)return(0,n.isValidElement)(o)?(0,c.convertComponentSrcToImageSource)(o,t.renderingMode):{src:o,renderingMode:t.renderingMode}}},460,[11,461]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.convertIconColorPropToObject=function(n){if(n)return'object'==typeof n&&('default'in n||'selected'in n)?n:{default:n};return{}},e.useAwaitedScreensIcon=function(o){const t=o&&'object'==typeof o&&'src'in o?o.src:void 0,s=o&&'object'==typeof o&&'renderingMode'in o?o.renderingMode:void 0,[u,f]=(0,n.useState)(void 0);return(0,n.useEffect)(()=>{(async()=>{if(t&&t instanceof Promise){const n=await t;n&&f({src:n})}})()},[t]),(0,n.useMemo)(()=>{const n=c(o)?o:u;return n&&s&&'src'in n?Object.assign({},n,{renderingMode:s}):n},[u,o,s])},e.convertComponentSrcToImageSource=function(n,c){let s;if((0,o.isChildOfType)(n,t.NativeTabsTriggerVectorIcon)){const o=n.props;s={src:o.family.getImageSource(o.name,24,'white')}}else{if(!(0,o.isChildOfType)(n,t.NativeTabsTriggerPromiseIcon))return void console.warn('Only VectorIcon is supported as a React element in Icon.src');s={src:n.props.loader()}}c&&(s=Object.assign({},s,{renderingMode:c}));return s};const n=r(d[0]),o=r(d[1]),t=r(d[2]);function c(n){return!n||!('src'in n&&n.src instanceof Promise)}},461,[11,462,454]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isChildOfType=n,e.getFirstChildOfType=function(l,f){return t.Children.toArray(l).find(t=>n(t,f))},e.getAllChildrenOfType=function(l,f){return t.Children.toArray(l).filter(t=>n(t,f))},e.getAllChildrenNotOfType=function(l,f){return t.Children.toArray(l).filter(t=>!n(t,f))},e.filterAllowedChildrenElements=function(n,l){return t.Children.toArray(n).filter(n=>(0,t.isValidElement)(n)&&l.includes(n.type))};const t=r(d[0]);function n(n,l){return(0,t.isValidElement)(n)&&n.type===l}},462,[11]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewRouteContext=void 0,e.usePreviewInfo=n,e.useIsPreview=function(){const{isPreview:t}=n();return t};const t=r(d[0]);function n(){const n=(0,t.use)(e.PreviewRouteContext);return Object.assign({isPreview:!!n},n)}e.PreviewRouteContext=(0,t.createContext)(void 0)},463,[11]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,o,u){void 0===u&&(u=o);var c=Object.getOwnPropertyDescriptor(n,o);c&&!("get"in c?!n.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,u,c)}:function(t,n,o,u){void 0===u&&(u=o),t[u]=n[o]}),o=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),u=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[n.length]=o);return n},t(n)},function(u){if(u&&u.__esModule)return u;var c={};if(null!=u)for(var s=t(u),i=0;i{if(!u||!o)return;let n,c=!1;const s=()=>{const n=t();if(void 0===n||'function'==typeof n)return n};u.isFocused()&&(n=s(),c=!0);const i=u.addListener('focus',()=>{c||(void 0!==n&&n(),n=s(),c=!0)}),f=u.addListener('blur',()=>{void 0!==n&&n(),n=void 0,c=!1});return()=>{void 0!==n&&n(),i(),f()}},[t,u,o])};const c=u(r(d[0])),s=r(d[1]),i=r(d[2])},464,[11,465,401]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useLoadedNavigation=c,e.useOptionalNavigation=function(){const[n,u]=(0,t.useState)(null),s=c();return(0,t.useEffect)(()=>{s(t=>u(t))},[]),n};const t=r(d[0]),n=r(d[1]),u=r(d[2]);function c(){const c=(0,u.useNavigation)(),s=(0,t.useRef)(!0),o=(0,t.useRef)([]);(0,t.useEffect)(()=>(s.current=!0,()=>{s.current=!1}),[]);const f=(0,t.useCallback)(()=>{if(s.current){const t=o.current;o.current=[],t.forEach(t=>{t(c)})}},[c]);(0,t.useEffect)(()=>{n.store.navigationRef.current&&f()},[f]);return(0,t.useCallback)(t=>{o.current.push(t),n.store.navigationRef.current&&f()},[f])}},465,[11,466,119]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useRouteInfo=e.useStore=e.store=void 0;var t=r(d[0]);Object.defineProperty(e,"store",{enumerable:!0,get:function(){return t.store}});var o=r(d[1]);Object.defineProperty(e,"useStore",{enumerable:!0,get:function(){return o.useStore}});var u=r(d[2]);Object.defineProperty(e,"useRouteInfo",{enumerable:!0,get:function(){return u.useRouteInfo}})},466,[467,497,511]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,o,i){void 0===i&&(i=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&!("get"in u?!n.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,i,u)}:function(t,n,o,i){void 0===i&&(i=o),t[i]=n[o]}),o=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),i=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[n.length]=o);return n},t(n)},function(i){if(i&&i.__esModule)return i;var u={};if(null!=i)for(var s=t(i),f=0;f!e.storeRef.current.routeNode&&!1,get state(){return e.storeRef.current.state},get navigationRef(){return e.storeRef.current.navigationRef},get routeNode(){return e.storeRef.current.routeNode},getRouteInfo:()=>e.storeRef.current.routeInfo||u.defaultRouteInfo,get redirects(){return e.storeRef.current.redirects||[]},get rootComponent(){return e.storeRef.current.rootComponent},getStateForHref(t,n){return t=(0,f.resolveHref)(t),t=(0,f.resolveHrefStringWithSegments)(t,e.store.getRouteInfo(),n),this.linking?.getStateFromPath(t,this.linking.config)},get linking(){return e.storeRef.current.linking},setFocusedState(t){const n=(0,s.getCachedRouteInfo)(t);e.storeRef.current.routeInfo=n},onReady(){R||(m(!0),h(requestAnimationFrame(()=>{c._internal_maybeHideAsync?.()})))},onStateChange(t){if(t){e.storeRef.current.state=t,e.storeRef.current.routeInfo=(0,s.getCachedRouteInfo)(t);for(const t of s.routeInfoSubscribers)t()}},assertIsReady(){if(!e.storeRef.current.navigationRef.isReady())throw new Error('Attempted to navigate before mounting the Root Layout component. Ensure the Root Layout component is rendering a Slot, or other navigator on the first render.')}}},467,[468,471,445,472]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultRouteInfo=void 0,e.getRouteInfoFromState=function(o){if(!o)return e.defaultRouteInfo;const c='index'in o?o.index??0:0;let p=o.routes[c];if(p.name===t.NOT_FOUND_ROUTE_NAME||p.name===t.SITEMAP_ROUTE_NAME){const n=p.path||(p.name===t.NOT_FOUND_ROUTE_NAME?'/':`/${p.name}`);return Object.assign({},e.defaultRouteInfo,{unstable_globalHref:(0,s.appendBaseUrl)(n),pathname:n,pathnameWithParams:n,segments:[p.name]})}if(p.name!==t.INTERNAL_SLOT_NAME)throw new Error(`Expected the first route to be ${t.INTERNAL_SLOT_NAME}, but got ${p.name}`);o=p.state;const l=[];let f=Object.create(null);for(;o;){p=o.routes['index'in o&&o.index?o.index:0],Object.assign(f,p.params);let t=p.name;t.startsWith('/')&&(t=t.slice(1)),l.push(...t.split('/')),o=p.state}f=Object.fromEntries(Object.entries(f).map(([t,s])=>'string'==typeof s?[t,(0,n.safeDecodeURIComponent)(s)]:Array.isArray(s)?[t,s.map(t=>(0,n.safeDecodeURIComponent)(t))]:[t,s]));let u=p.params;for(;u&&'screen'in u;){if('string'==typeof u.screen){const t=u.screen.startsWith('/')?u.screen.slice(1):u.screen;l.push(...t.split('/'))}u='object'!=typeof u.params||Array.isArray(u.params)?void 0:u.params}if(p.params&&'screen'in p.params&&'string'===p.params.screen){const t=p.params.screen.startsWith('/')?p.params.screen.slice(1):p.params.screen;l.push(...t.split('/'))}'index'===l[l.length-1]&&l.pop();delete f.screen,delete f.params;const h=new Set,_='/'+l.filter(t=>!(t.startsWith('(')&&t.endsWith(')'))).flatMap(t=>{if('+not-found'===t){const t=f['not-found'];return h.add('not-found'),void 0===t?[]:Array.isArray(t)?t:[t]}if(t.startsWith('[...')&&t.endsWith(']')){let s=t.slice(4,-1);s.endsWith('?')&&(s=s.slice(0,-1));const n=f[s];return h.add(s),n||[]}if(t.startsWith('[')&&t.endsWith(']')){const s=t.slice(1,-1),n=f[s];return h.add(s),n?[n]:[]}return[t]}).join('/'),b=new URLSearchParams(Object.entries(f).flatMap(([t,s])=>h.has(t)?[]:Array.isArray(s)?s.map(s=>[t,s]):[[t,s]]));let A;b.has('#')&&(A=b.get('#')||void 0,b.delete('#'));const O=b.toString();let E=O?_+'?'+O:_;return E=A?E+'#'+A:E,{segments:l,pathname:_,params:f,unstable_globalHref:(0,s.appendBaseUrl)(E),searchParams:b,pathnameWithParams:E,isIndex:!1}};const t=r(d[0]),s=r(d[1]),n=r(d[2]);e.defaultRouteInfo={unstable_globalHref:'',searchParams:new URLSearchParams,pathname:'/',params:{},segments:[],pathnameWithParams:'/',isIndex:!1}},468,[444,469,470]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t=r(d[0]).default;const n=["preserveDynamicRoutes","preserveGroups","shouldEncodeURISegment"],i=["#"];var o,s=this&&this.__createBinding||(Object.create?function(t,n,i,o){void 0===o&&(o=i);var s=Object.getOwnPropertyDescriptor(n,i);s&&!("get"in s?!n.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return n[i]}}),Object.defineProperty(t,o,s)}:function(t,n,i,o){void 0===o&&(o=i),t[o]=n[i]}),u=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),c=this&&this.__importStar||(o=function(t){return o=Object.getOwnPropertyNames||function(t){var n=[];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[n.length]=i);return n},o(t)},function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var i=o(t),c=0;c'screen'===t||'params'===t?[]:[[t,i?.[t]?i[t](n):Array.isArray(n)?n.map(String):String(n)]]));return Object.assign(t,o),o},e.appendQueryAndHash=function(n,o){let{'#':s}=o,u=t(o,i);const c=l.stringify(u,{sort:!1});c&&(n+=`?${c}`);s&&(n+=`#${s}`);return n},e.appendBaseUrl=function(t,n=""){if(n)return`/${n.replace(/^\/+/,'').replace(/\/$/,'')}${t}`;return t},e.getPathWithConventionsCollapsed=function({pattern:t,route:n,params:i,preserveGroups:o,preserveDynamicRoutes:s,shouldEncodeURISegment:u=!0,initialRouteName:c}){const l=t.split('/');return l.map((t,p)=>{const h=(0,e.getParamName)(t);if(t.startsWith('*'))return s?'not-found'===h?'+not-found':`[...${h}]`:i[h]?Array.isArray(i[h])?i[h].join('/'):i[h]:n.name.startsWith('[')&&n.name.endsWith(']')||'*not-found'===t?'':n.name;if(t.startsWith(':')){if(s)return`[${h}]`;const n=i[h];if(void 0===n&&t.endsWith('?'))return;return(u?m(n):n)??'undefined'}return o||null==(0,f.matchGroupName)(t)?u?m(t,{preserveBrackets:!0}):t:l.length-1===p&&c?'index'===(v=c)||null!=(0,f.matchGroupName)(v)||null!=(0,f.matchDynamicName)(v)?'':u?m(c,{preserveBrackets:!0}):c:'';var v}).map(t=>t??'').join('/')},e.isDynamicPart=function(t){return t.startsWith(':')||t.startsWith('*')};const l=c(r(d[1])),f=r(d[2]),p=r(d[3]);function m(t,{preserveBrackets:n=!1}={}){return t=String(t).replace(/[^A-Za-z0-9\-._~!$&'()*+,;=:@]/g,t=>encodeURIComponent(t)),n&&(t=t.replace(/%5B/g,'[').replace(/%5D/g,']')),t}e.getParamName=t=>t.replace(/^[:*]/,'').replace(/\?$/,'')},469,[19,163,449,119]); +__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return/^([\w\d_+.-]+:)?\/\//.test(t)}function n(t){return/^(https?|mailto|tel|sms|geo|maps|market|itmss?|itms-apps|content|file):/.test(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.hasUrlProtocolPrefix=t,e.isWellKnownUri=n,e.shouldLinkExternally=function(o){return!o.startsWith('.')&&(t(o)||n(o))},e.parseUrlUsingCustomBase=function(t){return new URL(t,'file:')},e.safeDecodeURI=function(t){try{return'string'==typeof t?decodeURI(t):t}catch{return t}},e.safeDecodeURIComponent=function(t){try{return'string'==typeof t?decodeURIComponent(t):t}catch{return t}}},470,[]); +__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)})},471,[468]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&!("get"in u?!n.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e)},472,[473]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hide=c,e.hideAsync=async function(){c()},e.preventAutoHideAsync=async function(){if(!n)return;return n.preventAutoHideAsync()},e._internal_preventAutoHideAsync=async function(){if(!n||!n.internalPreventAutoHideAsync)return!1;if(!t){if(ErrorUtils?.getGlobalHandler){const n=ErrorUtils.getGlobalHandler();ErrorUtils.setGlobalHandler((t,l)=>{c(),n(t,l)})}t=!0}return n.internalPreventAutoHideAsync()},e._internal_maybeHideAsync=async function(){if(!n||!n.internalMaybeHideAsync)return!1;return n.internalMaybeHideAsync()};const n=(0,r(d[0]).requireOptionalNativeModule)('ExpoSplashScreen');let t=!1;function c(){n&&n.hide()}},473,[474]); +__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"disableErrorHandling",{enumerable:!0,get:function(){return t.disableErrorHandling}}),Object.defineProperty(_e,"registerRootComponent",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(_e,"isRunningInExpoGo",{enumerable:!0,get:function(){return o.isRunningInExpoGo}}),Object.defineProperty(_e,"getExpoGoProjectConfig",{enumerable:!0,get:function(){return o.getExpoGoProjectConfig}}),Object.defineProperty(_e,"EventEmitter",{enumerable:!0,get:function(){return c.EventEmitter}}),Object.defineProperty(_e,"SharedObject",{enumerable:!0,get:function(){return c.SharedObject}}),Object.defineProperty(_e,"SharedRef",{enumerable:!0,get:function(){return c.SharedRef}}),Object.defineProperty(_e,"NativeModule",{enumerable:!0,get:function(){return c.NativeModule}}),Object.defineProperty(_e,"requireNativeModule",{enumerable:!0,get:function(){return c.requireNativeModule}}),Object.defineProperty(_e,"requireOptionalNativeModule",{enumerable:!0,get:function(){return c.requireOptionalNativeModule}}),Object.defineProperty(_e,"requireNativeView",{enumerable:!0,get:function(){return c.requireNativeViewManager}}),Object.defineProperty(_e,"registerWebModule",{enumerable:!0,get:function(){return c.registerWebModule}}),Object.defineProperty(_e,"reloadAppAsync",{enumerable:!0,get:function(){return c.reloadAppAsync}}),Object.defineProperty(_e,"installOnUIRuntime",{enumerable:!0,get:function(){return c.installOnUIRuntime}}),Object.defineProperty(_e,"PermissionStatus",{enumerable:!0,get:function(){return c.PermissionStatus}}),Object.defineProperty(_e,"createPermissionHook",{enumerable:!0,get:function(){return c.createPermissionHook}}),Object.defineProperty(_e,"useEvent",{enumerable:!0,get:function(){return f.useEvent}}),Object.defineProperty(_e,"useEventListener",{enumerable:!0,get:function(){return f.useEventListener}}),r(d[0]);var e,t=r(d[1]),n=r(d[2]),u=(e=n)&&e.__esModule?e:{default:e},o=r(d[3]),c=r(d[4]),f=r(d[5])},474,[475,492,493,495,404,496]); +__d(function(g,r,i,a,m,e,d){"use strict";r(d[0]),r(d[1]),r(d[2])},475,[476,481,491]); +__d(function(g,r,i,a,m,e,d){"use strict";r(d[0])},476,[477]); +__d(function(g,r,i,a,m,e,d){"use strict";r(d[0]),Object.defineProperty(globalThis,'__ExpoImportMetaRegistry',{value:r(d[1]).ImportMetaRegistry,enumerable:!1,writable:!0})},477,[478,479]); +__d(function(g,r,i,a,m,e,d){},478,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ImportMetaRegistry",{enumerable:!0,get:function(){return n}});var t=r(d[0]);const n={get url(){return(0,t.getBundleUrl)()}}},479,[480]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.getBundleUrl=function(){let t=n;'undefined'==typeof window&&(t='file://'+__filename);if(null==t)return null;const o=new URL(t);return`${o.protocol}//${o.host}${o.pathname}`};const n='undefined'!=typeof window?document.currentScript?.src:null},480,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var _=r(d[0]);globalThis[`${globalThis.__METRO_GLOBAL_PREFIX__??''}__loadBundleAsync`]=(0,_.buildAsyncRequire)()},481,[482]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.buildAsyncRequire=function(){const t=new Map;return async function(c){if(t.has(c))return t.get(c);const u=(0,n.loadBundleAsync)(c).catch(n=>{throw t.delete(c),n});return t.set(c,u),u}};var n=r(d[0])},482,[483]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.loadBundleAsync=async function(t){const u=(0,n.buildUrlForBundle)(t);return(0,c.fetchThenEvalAsync)(u)};var n=r(d[0]),c=r(d[1])},483,[484,487]); +__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.buildUrlForBundle=function(e){if(/^https?:\/\//.test(e))return e;const{url:t}=(0,u.default)();return t?new URL(e,t).toString():`//${e.replace(/^\/+/,'')}`};var e,t=r(d[0]),u=(e=t)&&e.__esModule?e:{default:e}},484,[485]); +__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 l=r(d[0]);var n=()=>'undefined'==typeof window?{bundleLoadedFromServer:!0,fullBundleUrl:'',url:''}:{bundleLoadedFromServer:!0,get fullBundleUrl(){return(0,l.getFullBundlerUrl)()},url:location.origin+location.pathname}},485,[486]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.getFullBundlerUrl=function(){const t=document?.currentScript,n=new URL(t&&'src'in t?t.src:location.href,location.href);n.searchParams.has('platform')||n.searchParams.set('platform',"web");return n.toString()}},486,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.fetchThenEvalAsync=function(o,{scriptType:c,nonce:s,crossOrigin:u}={}){if('undefined'==typeof window)return r(d[0]).fetchThenEvalAsync(o);return new Promise((p,l)=>{const f=document.createElement('script');c&&(f.type=c),s&&f.setAttribute('nonce',s),f.src=o,u&&0!==f.src.indexOf(window.location.origin+'/')&&(f.crossOrigin=u),f.onload=()=>{f.parentNode&&f.parentNode.removeChild(f),p()};const y=new t;f.onerror=n=>{let t;t='string'==typeof n?{type:'error',target:{src:t}}:n;const c=t&&('load'===t.type?'missing':t.type),s=t?.target?.src;y.message='Loading module '+o+' failed.\n('+c+': '+s+')',y.type=c,y.request=s,f.parentNode&&f.parentNode.removeChild(f),l(y)},f.src===n?p():document.head.appendChild(f)})};const n='undefined'!=typeof document&&document.currentScript&&'src'in document.currentScript&&document.currentScript.src||null;class t extends Error{name='AsyncRequireError'}},487,[488]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.fetchThenEvalAsync=fetchThenEvalAsync,r(d[0]);var _fetchAsync=r(d[1]);function fetchThenEvalAsync(url){return(0,_fetchAsync.fetchAsync)(url).then(({body:body,status:status,headers:headers})=>{if(null!=headers?.has?.('Content-Type')&&headers.get('Content-Type').includes('application/json'))throw new Error(JSON.parse(body).message||`Unknown error fetching '${url}'`);if(200===status)return eval(body);throw new Error(`Failed to load split bundle from URL: ${url}\n${body}`)})}},488,[489,490]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"MetroServerError",{enumerable:!0,get:function(){return t}});class t extends Error{code='METRO_SERVER_ERROR';constructor(t,o){super(t.message),this.name='MetroServerError',this.url=o;for(const o in t)this[o]=t[o]}}},489,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.fetchAsync=async function(t){const s=await fetch(t,{method:'GET',headers:{'expo-platform':'web'}});return{body:await s.text(),status:s.status,headers:s.headers}}},490,[]); +__d(function(g,r,i,a,m,e,d){},491,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.createErrorHandler=function(n){return(t,o)=>n(t,o)},e.disableErrorHandling=function(){}},492,[]); +__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}}),r(d[0]);var e,t=r(d[1]),n=(e=t)&&e.__esModule?e:{default:e};function o(e){let t=e;if(n.default.registerComponent('main',()=>t),'undefined'!=typeof window){const e=document.getElementById('root');n.default.runApplication('main',{rootTag:e,hydrate:globalThis.__EXPO_ROUTER_HYDRATE__})}}},493,[475,494]); +__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}},494,[322]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.isRunningInExpoGo=function(){return!1},e.getExpoGoProjectConfig=function(){return null}},495,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useEvent=function(u,s,c=null){const[o,f]=(0,t.useState)(c);return n(u,s,t=>f(t)),o},e.useEventListener=n;var t=r(d[0]);function n(n,u,s){const c=(0,t.useRef)(s);c.current=s,(0,t.useEffect)(()=>{const t=n.addListener(u,(...t)=>c.current(...t));return()=>t.remove()},[n,u,c])}},496,[11]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.useStore=function(t,x,C){const k=(0,S.useNavigationContainerRef)(),y=o.default.expoConfig?.extra?.router;let I,P,E=n.Fragment;const O=(0,F.getRoutes)(t,Object.assign({},y,{skipGenerated:!0,ignoreEntryPoints:!0,platform:s.Platform.OS,preserveRedirectAndRewrites:!0})),w=[y?.redirects,y?.rewrites].filter(Boolean).flat().map(t=>[(0,p.routePatternToRegex)((0,h.parseRouteSegments)(t.source)),t,(0,v.shouldLinkExternally)(t.destination)]);if(!O)throw new Error('No routes found');{I=(0,R.getLinkingConfig)(O,t,()=>c.store.getRouteInfo(),{metaOnly:x.metaOnly,serverUrl:C,redirects:w,skipGenerated:y?.skipGenerated??!1,sitemap:y?.sitemap??!0,notFound:y?.notFound??!0}),E=(0,_.getQualifiedRouteComponent)(O);const o=I?.getInitialURL?.();if('string'==typeof o){let t=(0,l.extractExpoPathFromURL)(I.prefixes,o);t.startsWith('/')||(t='/'+t),P=I.getStateFromPath(t,I.config);const n=(0,u.getRouteInfoFromState)(P);(0,f.setCachedRouteInfo)(P,n)}}c.storeRef.current={navigationRef:k,routeNode:O,config:y,rootComponent:E,linking:I,redirects:w,state:P},P&&(c.storeRef.current.routeInfo=(0,f.getCachedRouteInfo)(P));return(0,n.useEffect)(()=>()=>{const t=(0,c.getSplashScreenAnimationFrame)();t&&(cancelAnimationFrame(t),(0,c.setSplashScreenAnimationFrame)(void 0))}),c.store};const o=t(r(d[0])),n=r(d[1]),s=r(d[2]),u=r(d[3]),f=r(d[4]),c=r(d[5]),l=r(d[6]),p=r(d[7]),R=r(d[8]),h=r(d[9]),F=r(d[10]),S=r(d[11]),_=r(d[12]),v=r(d[13])},497,[403,11,220,468,471,467,498,499,500,501,674,119,541,470]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parsePathAndParamsFromExpoGoLink=function(t){const o=n(t).match(/([^?]*)(\?.*)?/);return{pathname:o?.[1]??'',queryString:o?.[2]??''}},e.parsePathFromExpoGoLink=n,e.extractExpoPathFromURL=function(t,n=""){return o(n).replace(/^\//,'')};const t=r(d[0]);function n(t){return t.match(/exps?:\/\/.*?\/--\/(.*)/)?.[1]??''}function o(t){if(t.match(/^https?:\/\//)){const{origin:n,href:o,hostname:s}=new URL(t);return'exp.host'===s||'u.expo.dev'===s?'':o.replace(n,'')}if('undefined'!=typeof expo&&globalThis.expo?.modules?.ExpoGo&&t.match(/^exp(s)?:\/\//)){const o=n(t);if(o)return c('a://'+o);const s=t.match(/exps?:\/\/.*\?(.*)/)?.[1];return s?c('a://?'+s):''}return c(t)}function s(t){return'expo-development-client'===t.hostname}function c(n){let c;try{c=new URL(n)}catch{return n.startsWith('/')?n:n.replace(/^[^:]+:\/\//,'')}if(s(c)){if(!c.searchParams.get('url'))return'';const n=c.searchParams.get('url');return o((0,t.safeDecodeURI)(n))}let u='';c.host&&(u+=c.host),c.pathname&&(u+=c.pathname);const p=c.search?[...c.searchParams.entries()].map(([n,o])=>`${n}=${(0,t.safeDecodeURIComponent)(o)}`).join('&'):'';return p&&(u+='?'+p),u}},498,[470]); +__d(function(g,r,_i,_a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.populateParams=function(t,n){if(!t||!n||0===Object.keys(n).length)return;for(const a of t)Object.assign(a,{params:n});return t},e.safelyDecodeURIComponent=function(t){try{return decodeURIComponent(t)}catch{return t}},e.getUrlWithReactNavigationConcessions=function(t,n=""){const i=(0,a.stripGroupSegmentsFromPath)(o(t,n));let c='',u='';try{const n=(0,s.parseUrlUsingCustomBase)(t);c=n.pathname,u=n.hash}catch{}const p=o(c,n);return{path:t,nonstandardPathname:p.replace(/^\/+/g,'').replace(/\/+$/g,'')+'/',hash:u,pathWithoutGroups:i}},e.createConfig=function(t,n,s,i={}){const o=[];let c=!1;const u='index'===t||t.endsWith('/index');let p=0;for(const t of n.split('/'))if(t){const n=t.startsWith(':')||t.startsWith('*')||t.includes('*not-found');c||=n,(0,a.matchGroupName)(t)||(o.push(t),n||p++)}const l=!!i.screens&&!!Object.keys(i.screens)?.length,h=l?'layout':c?'dynamic':'static';u&&(o.push('index'),p++);return{type:h,isIndex:u,hasChildren:l,parts:o,staticPartCount:p,userReadableName:[...s.slice(0,-1),i.path||t].join('/'),expandedRouteNames:s.slice(1).flatMap(t=>t.split('/'))}},e.assertScreens=function(t){if(!t?.screens)throw Error("You must pass a 'screens' object to 'getStateFromPath' to generate a path.")},e.configRegExp=function(t){return t.pattern?new RegExp(`^(${t.pattern.split('/').map(i).join('')})$`):void 0},e.isDynamicPart=function(t){return t.length>1&&(t.startsWith(':')||t.startsWith('*'))},e.replacePart=function(t){return t.replace(/^[:*]/,'').replace(/\?$/,'')},e.getParamValue=function(t,n){if(t.startsWith('*')){const a=n.split('/').filter(t=>''!==t);return 0===a.length&&t.endsWith('?')?void 0:a}return n},e.handleUrlParams=function(t,n){if(n){t.params=Object.assign(Object.create(null),t.params);for(const[a,s]of Object.entries(n))t.params,t.params?.[a]||(t.params[a]=s);0===Object.keys(t.params).length&&delete t.params}},e.spreadParamsAcrossAllStates=function(t,n){for(;t;){const a=t.routes[0];a.params=Object.assign({},a.params,n)}},e.stripBaseUrl=o,e.matchForEmptyPath=function(t){const n=t.filter(t=>!t.hasChildren).map(t=>Object.assign({},t,{path:(0,a.stripGroupSegmentsFromPath)(t.path)}));return n.find(t=>''===t.path&&(!t.regex||t.regex.test('')))??n.find(t=>t.path.startsWith(':')&&t.regex.test(''))??n.find(t=>t.path.startsWith('*')&&t.regex.test('/'))},e.appendIsInitial=function(t){const n=t.map(t=>c(...t.parentScreens,t.initialRouteName));return function(t){return t.isInitial=n.includes(t.routeNames.join('/')),t}},e.getRouteConfigSorter=function(t=[]){return function(n,a){if(n.pattern===a.pattern)return a.routeNames.join('>').localeCompare(n.routeNames.join('>'));if(n.pattern.startsWith(a.pattern)&&!a.isIndex)return-1;if(a.pattern.startsWith(n.pattern)&&!n.isIndex)return 1;if('static'===n.type&&'static'!==a.type)return-1;if('static'!==n.type&&'static'===a.type)return 1;if(n.staticPartCount!==a.staticPartCount)return a.staticPartCount-n.staticPartCount;const s=t.filter((t,a)=>t===n.expandedRouteNames[a]&&t.startsWith('(')&&t.endsWith(')')),i=t.filter((t,n)=>t===a.expandedRouteNames[n]&&t.startsWith('(')&&t.endsWith(')'));if((s.length>0||i.length>0)&&s.length!==i.length)return i.length-s.length;for(let t=0;ta[t](n)):o.getAll(t);c[t]=1===n.length?n[0]:n}return Object.keys(c).length?c:void 0},e.cleanPath=function(t){return(t=t.replace(/\/+/g,'/').replace(/^\//,'').replace(/\?.*$/,'')).endsWith('/')?t:`${t}/`},e.routePatternToRegex=function(t){return new RegExp(`^(${t.split('/').map(t=>t.startsWith('(')&&t.endsWith(')')?`${t}?`:t.startsWith(':')?`(([^/]+\\/)${t.endsWith('?')?'?':''})`:`${'*'===t?'.*':(0,n.default)(t)}\\/`).join('')})`)};const n=t(r(d[0])),a=r(d[1]),s=r(d[2]);function i(t){return(t=t.replace(/ /g,'%20')).startsWith(':')?`(([^/]+\\/)${t.endsWith('?')?'?':''})`:t.startsWith('*')?`((.*\\/)${t.endsWith('?')?'?':''})`:null!=(0,a.matchGroupName)(t)?`(?:${(0,n.default)(t)}\\/)?`:(0,n.default)(t)+"\\/"}function o(t,a=""){return a?t.replace(/^\/+/g,'/').replace(new RegExp(`^\\/?${(0,n.default)(a)}`,'g'),''):t}const c=(...t)=>[].concat(...t.map(t=>t.split('/'))).filter(Boolean).join('/')},499,[171,449,470]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getNavigationConfig=f,e.getLinkingConfig=function(n,s,p,{metaOnly:h=!0,serverUrl:l,redirects:y,skipGenerated:S,sitemap:O,notFound:_}){let P,b=!1;const F=s.keys().find(t=>t.match(/^\.\/\+native-intent\.[tj]sx?$/)),N=F?s(F):void 0,R=f(n,h,{sitemap:!S&&O,notFound:!S&&_});return{prefixes:[],config:R,getInitialURL:()=>(b||('web'===t.Platform.OS?P=l??(0,c.getInitialURL)():(P=l??(0,c.getInitialURL)(),'string'==typeof P?(P=(0,o.applyRedirects)(P,y),P&&'function'==typeof N?.redirectSystemPath&&(P=N.redirectSystemPath({path:P,initial:!0}))):P&&(P=P.then(t=>(t=(0,o.applyRedirects)(t,y))&&'function'==typeof N?.redirectSystemPath?N.redirectSystemPath({path:t,initial:!0}):t))),b=!0),P),subscribe:(0,c.subscribe)(N,y),getStateFromPath:(t,n)=>(0,c.getStateFromPath)(t,n,p().segments),getPathFromState:(t,n)=>(0,c.getPathFromState)(t,Object.assign({},R,n,{screens:R.screens??n?.screens??{}}))??'/',getActionFromState:u.getActionFromState}};const t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]),c=r(d[4]),u=r(d[5]);function f(t,o,{sitemap:c,notFound:u}){const f=(0,s.getReactNavigationConfig)(t,o),l=(()=>{const t='_sitemap';return!1===c||p(f,t)?{}:h(n.SITEMAP_ROUTE_NAME,t,o)})(),y=(()=>{const t='*not-found';return!1===u||p(f,t)?{}:h(n.NOT_FOUND_ROUTE_NAME,t,o)})();return{screens:Object.assign({[n.INTERNAL_SLOT_NAME]:Object.assign({path:''},f)},l,y)}}function p(t,n){return Object.values(t.screens).some(t=>'string'==typeof t?t===n:t.path===n)}function h(t,n,s){return s?{[t]:n}:{[t]:{path:n}}}},500,[404,444,501,502,658,119]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseRouteSegments=o,e.getReactNavigationScreensConfig=c,e.getReactNavigationConfig=function(t,n){const o={initialRouteName:void 0,screens:t?c(t.children,n):{}};t?.initialRouteName&&(o.initialRouteName=t.initialRouteName);return o};const t=r(d[0]);function n(n){if('index'===n)return'';if('+not-found'===n)return'*not-found';const o=(0,t.matchDynamicName)(n);return o&&!o.deep?`:${o.name}`:o?.deep?'*'+o.name:n}function o(t){return t.split('/').map(n).filter(Boolean).join('/')}function u(t,n){const u=o(t.route);if(!t.children.length)return n?u:{path:u,screens:{},_route:t};const s={path:u,screens:c(t.children,n)};return t.initialRouteName&&(s.initialRouteName=t.initialRouteName),n||(s._route=t),s}function c(t,n){return Object.fromEntries(t.map(t=>[t.route,u(t,n)]))}},501,[449]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,i,o){void 0===o&&(o=i);var c=Object.getOwnPropertyDescriptor(n,i);c&&!("get"in c?!n.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return n[i]}}),Object.defineProperty(t,o,c)}:function(t,n,i,o){void 0===o&&(o=i),t[o]=n[i]}),i=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),o=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[n.length]=i);return n},t(n)},function(o){if(o&&o.__esModule)return o;var c={};if(null!=o)for(var u=t(o),s=0;st.test(o));if(!u)return n;if(u[2]){let t=u[1].destination;return t.startsWith('//'),c.openURL(t),t}return t(p(n,u[1]),i)},e.getRedirectModule=function(t){return{default:function(){const n=r(d[5]).usePathname(),i=(0,l.shouldLinkExternally)(t.destination);if((0,u.useEffect)(()=>{if(i){let n=t.destination;n.startsWith('//'),0,c.openURL(n)}},[]),i)return null;const o=p(n,t);return(0,u.createElement)(r(d[6]).Redirect,{href:o})}}},e.convertRedirect=p,e.mergeVariablesWithPath=h;const c=o(r(d[0])),u=r(d[1]),s=r(d[2]),f=r(d[3]),l=r(d[4]);function p(t,n){const i={},o=t.split('/'),c=n.source.split('/');for(const[t,n]of c.entries()){const c=(0,f.matchDynamicName)(n);if(c){if(c.deep){i[c.name]=o.slice(t);break}i[c.name]=o[t]}else;}return h(n.destination,i)}function h(t,n){return t.split('/').map(t=>{const i=(0,f.matchDynamicName)(t);if(i){const t=n[i.name];return delete n[i.name],t}return t}).filter(Boolean).join('/')}},502,[503,11,499,449,470,510,641]); +__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,"parse",{enumerable:!0,get:function(){return l.parse}}),Object.defineProperty(_e,"createURL",{enumerable:!0,get:function(){return l.createURL}}),_e.addEventListener=L,_e.parseInitialURLAsync=async function(){const e=await c.default.getInitialURL();if(!e)return{scheme:null,hostname:null,path:null,queryParams:null};return(0,l.parse)(e)},_e.sendIntent=async function(e,t){throw new n.UnavailabilityError('Linking','sendIntent')},_e.openSettings=async function(){throw new n.UnavailabilityError('Linking','openSettings')},_e.getInitialURL=p,_e.getLinkingURL=function(){return u.default.getLinkingURL()},_e.clearInitialURL=function(){u.default.clearInitialURL?.()},_e.openURL=U,_e.canOpenURL=async function(e){return(0,o.validateURL)(e),await c.default.canOpenURL(e)},_e.useURL=function(){const[e,n]=(0,t.useState)(null);function u(e){n(e.url)}return(0,t.useEffect)(()=>{p().then(e=>n(e));const e=L('url',u);return()=>e.remove()},[]),e},_e.useLinkingURL=function(){const[e,n]=(0,t.useState)(u.default.getLinkingURL);function c(e){n(e.url)}return(0,t.useEffect)(()=>{const e=u.default.addListener('onURLReceived',c);return()=>e.remove()},[]),e??null};var n=r(d[0]),t=r(d[1]);r(d[2]);var u=e(r(d[3])),c=e(r(d[4])),l=r(d[5]),o=r(d[6]),f=r(d[7]);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 s=r(d[8]);function L(e,n){return c.default.addEventListener(e,n)}async function p(){return await c.default.getInitialURL()??null}async function U(e){return(0,o.validateURL)(e),await c.default.openURL(e)}Object.keys(s).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return s[e]}})})},503,[404,11,235,504,505,506,507,508,509]); +__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,n=r(d[0]),t=(e=n)&&e.__esModule?e:{default:e},o={addListener(e,n){if((0,t.default)('onURLReceived'===e,`Linking.addListener(): ${e} is not a valid event`),'undefined'==typeof window)return{remove(){}};const o=e=>n({url:window.location.href,nativeEvent:e});return window.addEventListener('message',o,!1),{remove:()=>{window.removeEventListener('message',o)}}},getLinkingURL:()=>'undefined'==typeof window?'':window.location.href,clearInitialURL(){}}},504,[439]); +__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 e,n=r(d[0]),t=(e=n)&&e.__esModule?e:{default:e};const o=[];var s={addEventListener(e,n){if('undefined'==typeof window)return{remove(){}};(0,t.default)('url'===e,`Linking.addEventListener(): ${e} is not a valid event`);const s=e=>n({url:window.location.href,nativeEvent:e});return o.push({listener:n,nativeListener:s}),window.addEventListener('message',s,!1),{remove:()=>{this.removeEventListener(e,n)}}},removeEventListener(e,n){if('undefined'==typeof window)return;(0,t.default)('url'===e,`Linking.addEventListener(): ${e} is not a valid event`);const s=o.findIndex(e=>e.listener===n);(0,t.default)(-1!==s,'Linking.removeEventListener(): cannot remove an unregistered event listener.');const v=o[s]?.nativeListener;null!=v&&(window.removeEventListener('message',v,!1),o.splice(s,1))},canOpenURL:async()=>!0,getInitialURL:async()=>'undefined'==typeof window?'':window.location.href,async openURL(e){'undefined'!=typeof window&&(window.location=new URL(e,window.location).toString())}}},505,[439]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.createURL=function(n,{queryParams:t={}}={}){if('undefined'==typeof window)return'';const o=new URL(n,window.location.origin);return Object.entries(t).forEach(([n,t])=>{'string'==typeof t?o.searchParams.set(n,encodeURIComponent(t)):null!=t&&o.searchParams.set(n,t)}),o.toString().replace(/\/$/,'')},e.parse=function(n){let t;try{t=new URL(n)}catch{return'undefined'==typeof window?{hostname:null,path:n,queryParams:{},scheme:null}:{hostname:'localhost',path:n,queryParams:{},scheme:'http'}}const o={};return t.searchParams.forEach((n,t)=>{o[t]=decodeURIComponent(n)}),{hostname:t.hostname||null,path:t.hostname||t.pathname?''===t.pathname?null:t.pathname.replace(/^\//,''):null,queryParams:o,scheme:t.protocol.replace(/:$/,'')}}},506,[]); +__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.validateURL=function(e){(0,n.default)('string'==typeof e,'Invalid URL: should be a string. Was: '+e),(0,n.default)(e,'Invalid URL: cannot be empty')};var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e}},507,[439]); +__d(function(g,r,i,a,m,e,d){},508,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.hasCustomScheme=function(){return!0},e.collectManifestSchemes=function(){return[]},e.hasConstantsManifest=function(){return!1},e.resolveScheme=function(){return'https'}},509,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useCurrentRouteInfo=e.useLoaderData=e.useSearchParams=e.useLocalSearchParams=e.useGlobalSearchParams=e.usePathname=e.useSegments=e.useUnstableGlobalHref=e.useRouter=e.useNavigationContainerRef=e.useRootNavigation=e.useRootNavigationState=e.useRouteInfo=void 0;var t=r(d[0]);Object.defineProperty(e,"useRouteInfo",{enumerable:!0,get:function(){return t.useRouteInfo}});var n=r(d[1]);Object.defineProperty(e,"useRootNavigationState",{enumerable:!0,get:function(){return n.useRootNavigationState}});var u=r(d[2]);Object.defineProperty(e,"useRootNavigation",{enumerable:!0,get:function(){return u.useRootNavigation}});var o=r(d[3]);Object.defineProperty(e,"useNavigationContainerRef",{enumerable:!0,get:function(){return o.useNavigationContainerRef}});var s=r(d[4]);Object.defineProperty(e,"useRouter",{enumerable:!0,get:function(){return s.useRouter}});var c=r(d[5]);Object.defineProperty(e,"useUnstableGlobalHref",{enumerable:!0,get:function(){return c.useUnstableGlobalHref}});var f=r(d[6]);Object.defineProperty(e,"useSegments",{enumerable:!0,get:function(){return f.useSegments}});var b=r(d[7]);Object.defineProperty(e,"usePathname",{enumerable:!0,get:function(){return b.usePathname}});var l=r(d[8]);Object.defineProperty(e,"useGlobalSearchParams",{enumerable:!0,get:function(){return l.useGlobalSearchParams}});var P=r(d[9]);Object.defineProperty(e,"useLocalSearchParams",{enumerable:!0,get:function(){return P.useLocalSearchParams}});var v=r(d[10]);Object.defineProperty(e,"useSearchParams",{enumerable:!0,get:function(){return v.useSearchParams}});var R=r(d[11]);Object.defineProperty(e,"useLoaderData",{enumerable:!0,get:function(){return R.useLoaderData}});var S=r(d[12]);Object.defineProperty(e,"useCurrentRouteInfo",{enumerable:!0,get:function(){return S.useCurrentRouteInfo}})},510,[511,512,513,514,515,530,531,532,533,534,535,536,543]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useRouteInfo=function(){const u=(0,t.useSyncExternalStore)(n.routeInfoSubscribe,s.store.getRouteInfo,s.store.getRouteInfo),{isPreview:c,segments:f,params:h,pathname:l}=(0,o.usePreviewInfo)();if(c)return{pathname:l??'',segments:f??[],unstable_globalHref:'',params:h??{},searchParams:new URLSearchParams,pathnameWithParams:l??'',isIndex:!1};return u};const t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3])},511,[11,471,467,463]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useRootNavigationState=function(){const n=(0,o.useNavigation)().getParent(t.INTERNAL_SLOT_NAME);if(!n)throw new Error('useRootNavigationState was called from a generated route. This is likely a bug in Expo Router.');return n.getState()};const t=r(d[0]),o=r(d[1])},512,[444,119]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useRootNavigation=function(){return t.store.navigationRef.current};const t=r(d[0])},513,[467]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useNavigationContainerRef=function(){return n.store.navigationRef};const n=r(d[0])},514,[467]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useRouter=function(){const{isPreview:c}=(0,t.usePreviewInfo)();if(c)return n;return s.router};const s=r(d[0]),t=r(d[1]),n={back:()=>{},canGoBack:()=>!1,push:()=>{},navigate:()=>{},replace:()=>{},dismiss:()=>{},dismissTo:()=>{},dismissAll:()=>{},canDismiss:()=>!1,setParams:()=>{},reload:()=>{},prefetch:()=>{}}},515,[516,463]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.router=void 0,e.useImperativeApiEmitter=function(u){const o=(0,t.useSyncExternalStore)(n.routingQueue.subscribe,n.routingQueue.snapshot,n.routingQueue.snapshot);return(0,t.useEffect)(()=>{n.routingQueue.run(u)},[o,u]),null};const t=r(d[0]),u=r(d[1]);Object.defineProperty(e,"router",{enumerable:!0,get:function(){return u.router}});const n=r(d[2])},516,[11,517,529]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,o,i){void 0===i&&(i=o);var s=Object.getOwnPropertyDescriptor(n,o);s&&!("get"in s?!n.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,i,s)}:function(t,n,o,i){void 0===i&&(i=o),t[i]=n[o]}),o=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),i=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[n.length]=o);return n},t(n)},function(i){if(i&&i.__esModule)return i;var s={};if(null!=i)for(var u=t(i),c=0;c1)return!0;if(void 0===t.index)return!1;t=t.routes?.[t.index]?.state}return!1}function E(t={}){if(!(0,p.emitDomSetParams)(t))return l.store.assertIsReady(),(l.store.navigationRef?.current?.setParams)(t)}function A(t,n={}){let o=t='string'==typeof t?t:(0,m.resolveHref)(t);if((0,p.emitDomLinkEvent)(o,n))return;if((0,v.shouldLinkExternally)(o))return o.startsWith('//')&&'web'!==c.Platform.OS&&(o=`https:${o}`),void u.openURL(o);if('..'===o||'../'===o){l.store.assertIsReady();const t=l.store.navigationRef.current;if(null==t)throw new Error("Couldn't find a navigation object. Is your component inside NavigationContainer?");if(!l.store.linking)throw new Error('Attempted to link to route when no routes are present');return void t.goBack()}const i={type:'ROUTER_LINK',payload:{href:o,options:n}};f.routingQueue.add(i)}e.router={navigate:h,push:P,dismiss:_,dismissAll:w,dismissTo:b,canDismiss:R,replace:D,back:()=>j(),canGoBack:k,reload:O,prefetch:y,setParams:E}},517,[518,503,220,523,467,527,445,470]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0});var t=r(d[0]);Object.keys(t).forEach(function(n){'default'===n||Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})})},518,[519]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"IS_DOM",{enumerable:!0,get:function(){return n}});var t=r(d[0]);Object.keys(t).forEach(function(n){'default'===n||Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})});const n='undefined'!=typeof $$EXPO_INITIAL_PROPS},519,[520]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useDOMImperativeHandle=function(_,l,n){const P=!(0,t.hasWebViewBridge)()&&void 0===window.$$EXPO_INITIAL_PROPS,f=(0,o.useCallback)(()=>({}),n??[]);(0,o.useImperativeHandle)(_,P?l:f,n),(0,o.useEffect)(()=>(P||(globalThis._domRefProxy=l(),(0,t.getWebViewBridge)().postMessage(JSON.stringify({type:s.REGISTER_DOM_IMPERATIVE_HANDLE_PROPS,data:Object.keys(globalThis._domRefProxy)}))),()=>{P||(globalThis._domRefProxy=void 0)}),n)};var o=r(d[0]),s=r(d[1]),t=r(d[2])},520,[11,521,522]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"NATIVE_ACTION",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"NATIVE_ACTION_RESULT",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"DOM_EVENT",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"MATCH_CONTENTS_EVENT",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"REGISTER_DOM_IMPERATIVE_HANDLE_PROPS",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"DOM_READY",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"getInjectEventScript",{enumerable:!0,get:function(){return b}}),e.getInjectBodySizeObserverScript=function(){return`;(function observeDocumentBodySize() {\n if (window.ReactNativeWebView == null) {\n throw new Error(\n 'window.ReactNativeWebView is not defined. This script should only be injected in a WebView environment.'\n );\n }\n\n function registerObserver() {\n new ResizeObserver(entries => {\n const { width, height } = entries[0].contentRect;\n window.ReactNativeWebView.postMessage(JSON.stringify({\n type: '${c}',\n data: {\n width,\n height,\n },\n }));\n })\n .observe(document.body);\n window.ReactNativeWebView.postMessage(JSON.stringify({\n type: '${c}',\n data: {\n width: document.body.clientWidth,\n height: document.body.clientHeight,\n },\n }));\n }\n\n if (document.readyState !== 'loading') {\n registerObserver();\n return;\n }\n window.addEventListener('DOMContentLoaded', () => {\n registerObserver();\n });\n })();\n true;`};const n='$$native_action',t='$$native_action_result',o='$$dom_event',c='$$match_contents_event',u='$$register_dom_imperative_handle_props',s='$$dom_ready',b=n=>`;(function() {\n try {\n window.dispatchEvent(new CustomEvent("${o}",${JSON.stringify({detail:n})}));\n } catch (e) {}\n })();\n true;`},521,[]); +__d(function(g,r,i,a,m,e,d){"use strict";function n(){return'undefined'!=typeof window?window.ReactNativeWebView:void 0}Object.defineProperty(e,'__esModule',{value:!0}),e.hasWebViewBridge=function(){return null!=n()},e.getWebViewBridge=function(){const t=n();if(!t)throw new Error("The react-native-webview bridge (window.ReactNativeWebView) is not available. This module must only be called from code running inside a DOM Component WebView. Guard the call with hasWebViewBridge() when the caller may also run on web or React Native.");return t}},522,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.routingQueue=void 0;const u=r(d[0]);e.routingQueue={queue:[],subscribers:new Set,subscribe:u=>(e.routingQueue.subscribers.add(u),()=>{e.routingQueue.subscribers.delete(u)}),snapshot:()=>e.routingQueue.queue,add(u){e.routingQueue.queue.push(u);for(const u of e.routingQueue.subscribers)u()},run(t){const n=e.routingQueue.queue;let s;for(e.routingQueue.queue=[];s=n.shift();)if(t.current)if('ROUTER_LINK'===s.type){const{payload:{href:n,options:o}}=s;s=(0,u.getNavigateAction)(n,o,o.event,o.withAnchor,o.dangerouslySingular,!!o.__internal__PreviewKey),s&&t.current.dispatch(s)}else t.current.dispatch(s)}}},523,[524]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getNavigateAction=function(c,p,u="NAVIGATE",A,R,E){let _=c;n.store.assertIsReady();const f=n.store.navigationRef.current;if(null==f)throw new Error("Couldn't find a navigation object. Is your component inside NavigationContainer?");if(!n.store.linking)throw new Error('Attempted to link to route when no routes are present');const N=f.getRootState();if(_=(0,s.resolveHrefStringWithSegments)(_,n.store.getRouteInfo(),p),_=(0,o.applyRedirects)(_,n.store.redirects)??void 0,!_)return;const I=n.store.linking.getStateFromPath(_,n.store.linking.config);if(!I||0===I.routes.length)return void console.error('Could not generate a valid navigation state for the given path: '+_);const{actionStateRoute:v,navigationState:P}=(0,t.findDivergentState)(I,N,'PRELOAD'===u),y=(0,t.getPayloadFromStateRoute)(v||{});'PUSH'===u&&'stack'!==P.type?u='NAVIGATE':('expo-tab'===P.type||'REPLACE'===u&&'drawer'===P.type)&&(u='JUMP_TO');if(A){y.params.initial;let t=y.params;for(;t;)t.initial=!A,t=t.params}const O=E?{[l.INTERNAL_EXPO_ROUTER_IS_PREVIEW_NAVIGATION_PARAM_NAME]:!0,[l.INTERNAL_EXPO_ROUTER_NO_ANIMATION_PARAM_NAME]:!0}:{},S=(0,l.appendInternalExpoRouterParams)(y.params,O);return{type:u,target:P.key,payload:{name:y.screen,params:S,singular:R}}};const t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),l=r(d[4])},524,[525,467,502,445,526]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getPayloadFromStateRoute=function(t){const n={params:{}};let s=n,o=s.params,u=t;for(;u;)Object.assign(o,Object.assign({},s.params,u.params)),s.screen=u.name,s.params=Object.assign({},o),delete s.params.screen,s=s.params,o=s,u=u.state?.routes[u.state?.routes.length-1];return n},e.findDivergentState=function(n,s,o=!1){let u,c=n,p=s;const f=[];for(;c&&p;){u=c.routes[c.routes.length-1];const n=(()=>'tab'===p.type&&o&&p.routes.find(t=>t.name===u?.name)||p.routes[p.index??0])(),s=u.state,l=n.state,b=(0,t.matchDynamicName)(u.name);if(u.name!==n.name||!s||!l||b&&u.params?.[b.name]!==n.params?.[b.name]){'tab'===p.type&&o&&f.push(n);break}f.push(n),c=s,p=l}return{actionState:c,navigationState:p,actionStateRoute:u,navigationRoutes:f}};const t=r(d[0])},525,[449]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.INTERNAL_EXPO_ROUTER_GESTURE_ENABLED_OPTION_NAME=e.INTERNAL_EXPO_ROUTER_ZOOM_TRANSITION_SCREEN_ID_PARAM_NAME=e.INTERNAL_EXPO_ROUTER_ZOOM_TRANSITION_SOURCE_ID_PARAM_NAME=e.INTERNAL_EXPO_ROUTER_IS_PREVIEW_NAVIGATION_PARAM_NAME=e.INTERNAL_EXPO_ROUTER_NO_ANIMATION_PARAM_NAME=void 0,e.appendInternalExpoRouterParams=function(_,E){let N={},t={};_&&(N=Object.assign({},_),'params'in _&&'object'==typeof _.params&&_.params&&(t=_.params));t=Object.assign({},t,E),N=Object.assign({},N,E),Object.keys(t).length>0&&(N.params=t);if(0===Object.keys(N).length&&void 0===_)return;return N},e.getInternalExpoRouterParams=function(E){const N={},t=E||{},R='params'in t&&'object'==typeof t.params&&t.params?t.params:{};for(const E of _)E in t?N[E]=t[E]:E in R&&(N[E]=R[E]);return N},e.hasParam=function _(E,N){if(E&&'object'==typeof E){const t=E;if(void 0!==t[N])return!0;if(t.params&&'object'==typeof t.params)return _(t.params,N)}return!1},e.removeParams=E,e.removeInternalExpoRouterParams=function(N){if(!N)return;return E(N,[..._,'params'])},e.INTERNAL_EXPO_ROUTER_NO_ANIMATION_PARAM_NAME='__internal_expo_router_no_animation',e.INTERNAL_EXPO_ROUTER_IS_PREVIEW_NAVIGATION_PARAM_NAME='__internal__expo_router_is_preview_navigation',e.INTERNAL_EXPO_ROUTER_ZOOM_TRANSITION_SOURCE_ID_PARAM_NAME='__internal_expo_router_zoom_transition_source_id',e.INTERNAL_EXPO_ROUTER_ZOOM_TRANSITION_SCREEN_ID_PARAM_NAME='__internal_expo_router_zoom_transition_screen_id',e.INTERNAL_EXPO_ROUTER_GESTURE_ENABLED_OPTION_NAME='internal_gestureEnabled';const _=[e.INTERNAL_EXPO_ROUTER_NO_ANIMATION_PARAM_NAME,e.INTERNAL_EXPO_ROUTER_IS_PREVIEW_NAVIGATION_PARAM_NAME,e.INTERNAL_EXPO_ROUTER_ZOOM_TRANSITION_SOURCE_ID_PARAM_NAME,e.INTERNAL_EXPO_ROUTER_ZOOM_TRANSITION_SCREEN_ID_PARAM_NAME];function E(_,N){if(!_)return;const t='params'in _&&'object'==typeof _.params&&_.params?_.params:void 0,R=t?E(t,N):void 0,A=Object.fromEntries(Object.entries(_).filter(([_])=>!N.includes(_)&&'params'!==_));return Object.keys(R??{}).length>0?Object.assign({},A,{params:R}):A}},526,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.emitDomSetParams=function(o={}){return n(t.ROUTER_SET_PARAMS_TYPE,{params:o})},e.emitDomDismiss=function(o){return n(t.ROUTER_DISMISS_TYPE,{count:o})},e.emitDomGoBack=function(){return n(t.ROUTER_BACK_TYPE)},e.emitDomDismissAll=function(){return n(t.ROUTER_DISMISS_ALL_TYPE)},e.emitDomLinkEvent=function(o,u){return n(t.ROUTER_LINK_TYPE,{href:o,options:u})};const t=r(d[0]);function n(t,n={}){return'undefined'!=typeof $$EXPO_INITIAL_PROPS&&'undefined'!=typeof ReactNativeWebView&&(window.ReactNativeWebView.postMessage(JSON.stringify({type:t,data:n})),!0)}},527,[528]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ROUTER_SET_PARAMS_TYPE=e.ROUTER_BACK_TYPE=e.ROUTER_DISMISS_TYPE=e.ROUTER_DISMISS_ALL_TYPE=e.ROUTER_LINK_TYPE=void 0,e.ROUTER_LINK_TYPE='$$router_link',e.ROUTER_DISMISS_ALL_TYPE='$$router_dismissAll',e.ROUTER_DISMISS_TYPE='$$router_dismiss',e.ROUTER_BACK_TYPE='$$router_goBack',e.ROUTER_SET_PARAMS_TYPE='$$router_setParams'},528,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getPayloadFromStateRoute=e.findDivergentState=e.prefetch=e.reload=e.linkTo=e.setParams=e.canDismiss=e.canGoBack=e.goBack=e.dismissAll=e.dismissTo=e.dismiss=e.replace=e.push=e.navigate=e.routingQueue=void 0;var t=r(d[0]);Object.defineProperty(e,"routingQueue",{enumerable:!0,get:function(){return t.routingQueue}});var n=r(d[1]);Object.defineProperty(e,"navigate",{enumerable:!0,get:function(){return n.navigate}}),Object.defineProperty(e,"push",{enumerable:!0,get:function(){return n.push}}),Object.defineProperty(e,"replace",{enumerable:!0,get:function(){return n.replace}}),Object.defineProperty(e,"dismiss",{enumerable:!0,get:function(){return n.dismiss}}),Object.defineProperty(e,"dismissTo",{enumerable:!0,get:function(){return n.dismissTo}}),Object.defineProperty(e,"dismissAll",{enumerable:!0,get:function(){return n.dismissAll}}),Object.defineProperty(e,"goBack",{enumerable:!0,get:function(){return n.goBack}}),Object.defineProperty(e,"canGoBack",{enumerable:!0,get:function(){return n.canGoBack}}),Object.defineProperty(e,"canDismiss",{enumerable:!0,get:function(){return n.canDismiss}}),Object.defineProperty(e,"setParams",{enumerable:!0,get:function(){return n.setParams}}),Object.defineProperty(e,"linkTo",{enumerable:!0,get:function(){return n.linkTo}}),Object.defineProperty(e,"reload",{enumerable:!0,get:function(){return n.reload}}),Object.defineProperty(e,"prefetch",{enumerable:!0,get:function(){return n.prefetch}});var u=r(d[2]);Object.defineProperty(e,"findDivergentState",{enumerable:!0,get:function(){return u.findDivergentState}}),Object.defineProperty(e,"getPayloadFromStateRoute",{enumerable:!0,get:function(){return u.getPayloadFromStateRoute}})},529,[523,517,525]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useUnstableGlobalHref=function(){return(0,t.useRouteInfo)().unstable_globalHref};const t=r(d[0])},530,[511]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useSegments=function(){return(0,t.useRouteInfo)().segments};const t=r(d[0])},531,[511]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.usePathname=function(){return(0,t.useRouteInfo)().pathname};const t=r(d[0])},532,[511]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useGlobalSearchParams=function(){return(0,t.useRouteInfo)().params};const t=r(d[0])},533,[511]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.useLocalSearchParams=function(){const t=n.default.use(u.LocalRouteParamsContext)??{},{params:c}=(0,o.usePreviewInfo)();return Object.fromEntries(Object.entries(c??t).map(([t,n])=>{if(null==n)return[t,n];if(Array.isArray(n))return[t,n.map(t=>{try{return decodeURIComponent(t)}catch{return t}})];try{return[t,decodeURIComponent(n)]}catch{return[t,n]}}))};const n=t(r(d[0])),u=r(d[1]),o=r(d[2])},534,[11,448,463]); +__d(function(g,r,i,a,m,e,d){"use strict";var s=this&&this.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0}),e.useSearchParams=function({global:s=!1}={}){t.default.useRef(s);const c=s?(0,n.useGlobalSearchParams)():(0,o.useLocalSearchParams)(),h=Object.entries(c).flatMap(([t,n])=>{if(s){if('params'===t)return[];if('screen'===t)return[]}return Array.isArray(n)?n.map(s=>[t,s]):[[t,n]]});return new u(h)};const t=s(r(d[0])),n=r(d[1]),o=r(d[2]);class u extends URLSearchParams{set(){throw new Error('The URLSearchParams object return from useSearchParams is read-only')}append(){throw new Error('The URLSearchParams object return from useSearchParams is read-only')}delete(){throw new Error('The URLSearchParams object return from useSearchParams is read-only')}}},535,[11,533,534]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useLoaderData=function(){const l=(0,t.use)(_.ServerDataLoaderContext),E=(0,t.use)(n.LoaderCacheContext);(0,t.useSyncExternalStore)(E.subscribe,E.getSnapshot,E.getSnapshot);const O=(0,h.useStateForPath)(),R=(0,o.useContextKey)(),A=(0,t.useMemo)(()=>{const t=(0,s.getRouteInfoFromState)(O),o=R.startsWith('/')?R.slice(1):R,n=`/${(0,f.getSingularId)(o,{params:t.params})}`,_=t.searchParams?.toString()||'';return _?`${n}?${_}`:n},[R,O]);if(l)return l[A];if('undefined'!=typeof window&&globalThis.__EXPO_ROUTER_LOADER_DATA__&&globalThis.__EXPO_ROUTER_LOADER_DATA__[A])return globalThis.__EXPO_ROUTER_LOADER_DATA__[A];const D=(0,u.getLoaderData)({resolvedPath:A,cache:E,fetcher:c.fetchLoader});if(D instanceof Promise)return(0,t.use)(D);return D};const t=r(d[0]),o=r(d[1]),s=r(d[2]),n=r(d[3]),_=r(d[4]),u=r(d[5]),c=r(d[6]),h=r(d[7]),f=r(d[8])},536,[11,448,468,537,538,539,540,119,541]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LoaderCacheContext=e.defaultLoaderCache=e.LoaderCache=void 0;const t=r(d[0]);class s{data=new Map;errors=new Map;promises=new Map;version=0;listeners=new Set;subscribe=t=>(this.listeners.add(t),()=>{this.listeners.delete(t)});getSnapshot=()=>this.version;invalidateAll(){this.clear(),this.version++;for(const t of this.listeners)t()}getData(t){return this.data.get(t)}hasData(t){return this.data.has(t)}getError(t){return this.errors.get(t)}getPromise(t){return this.promises.get(t)}setData(t,s){this.data.set(t,s)}deleteData(t){this.data.delete(t)}setError(t,s){this.errors.set(t,s)}deleteError(t){this.errors.delete(t)}setPromise(t,s){this.promises.set(t,s)}deletePromise(t){this.promises.delete(t)}clear(){this.data.clear(),this.errors.clear(),this.promises.clear()}}e.LoaderCache=s,e.defaultLoaderCache=new s,e.LoaderCacheContext=(0,t.createContext)(e.defaultLoaderCache)},537,[11]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ServerDataLoaderContext=void 0;const t=r(d[0]);e.ServerDataLoaderContext=(0,t.createContext)(null)},538,[11]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLoaderData=function({resolvedPath:t,cache:o,fetcher:s}){const c=o.getError(t);if(c)throw c;if(o.hasData(t))return o.getData(t);const n=o.getPromise(t);if(n)return n;const l=s(t).then(s=>(o.setData(t,s),o.deleteError(t),o.deletePromise(t),s)).catch(s=>{const c=new Error(`Failed to load loader data for route: ${t}`,{cause:s});throw o.setError(t,c),o.deleteData(t),o.deletePromise(t),c});return o.setPromise(t,l),l}},539,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLoaderModulePath=o,e.fetchLoader=async function(t){const n=o(t),c=await fetch(n,{headers:{Accept:'application/json'}});if(!c.ok)throw new Error(`Failed to fetch loader data: ${c.status}`);try{return await c.json()}catch(t){throw new Error(`Failed to parse loader data: ${t}`)}};const t=r(d[0]);function o(o){const{pathname:n,search:c}=(0,t.parseUrlUsingCustomBase)(o),s='/'===n?'/':n.replace(/\/$/,'');return`/_expo/loaders${'/'===s?'/index':s}${c}`}},540,[470]); +__d(function(g,r,_i,a,_m,_e,d){"use strict";var e=r(d[0]).default;const t=["ErrorBoundary","SuspenseFallback"],n=["route","navigation"],s=["options","getId"];var o,u=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,o)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||(o=function(e){return o=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},o(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=o(e),s=0;se.some(e=>e.name===t.route||`${e.name}/index`===t.route)):o,i=u.length?F(u,e,s?.initialRouteName):[];return f.default.useMemo(()=>i.filter(e=>{const n=e.route.route;return!t.has(n)&&!t.has(n.replace(/\/index$/,''))}).map(e=>B(e.route,e.props)),[i,t])},_e.getQualifiedRouteComponent=M,_e.screenOptionsFactory=T,_e.routeToScreen=B,_e.getSingularId=C;const p=r(d[1]),m=r(d[2]),f=l(r(d[1])),h=r(d[3]),b=r(d[4]),y=r(d[5]),_=r(d[6]),v=c(r(d[7])),E=r(d[8]),S=r(d[9]),I=r(d[10]),R=r(d[11]),O=r(d[12]),j=r(d[13]),x=r(d[14]),P=r(d[15]),N=r(d[16]);function F(e,t=[],n){if(!t?.length)return e.sort((0,h.sortRoutesWithInitial)(n)).map(e=>({route:e,props:{}}));const s=[...e],o=t.map(({name:t,redirect:n,initialParams:o,listeners:u,options:i,getId:l,dangerouslySingular:c})=>{if(!s.length)return console.warn(`[Layout children]: Too many screens defined. Route "${t}" is extraneous.`),null;const p=s.findIndex(e=>e.route===t||e.route===`${t}/index`);if(-1===p)return console.warn(`[Layout children]: No route named "${t}" exists in nested children:`,e.map(({route:e})=>e)),null;{const e=s[p];if(s.splice(p,1),n){if('string'==typeof n)throw new Error("Redirecting to a specific route is not supported yet.");return null}return l?(console.warn(`Deprecated: prop 'getId' on screen ${t} is deprecated. Please rename the prop to 'dangerouslySingular'`),c&&console.warn(`Screen ${t} cannot use both getId and dangerouslySingular together.`)):c&&('string'==typeof c?l=()=>c:'function'==typeof c&&t?l=e=>c(t,e.params||{}):!0===c&&t&&(l=e=>C(t,e))),{route:e,props:{initialParams:o,listeners:u,options:i,getId:l}}}}).filter(Boolean);return o.push(...s.sort((0,h.sortRoutesWithInitial)(n)).map(e=>({route:e,props:{}}))),o}function k(n,s){let{ErrorBoundary:o,SuspenseFallback:u}=s,i=e(s,t);if(o){return{default:f.default.forwardRef((e,t)=>{const n=f.default.createElement(i.default||x.EmptyRoute,Object.assign({},e,{ref:t}));return(0,m.jsx)(N.Try,{catch:o,children:n})}),SuspenseFallback:u}}return{default:i.default,SuspenseFallback:u}}const w=new WeakMap;function M(t){if(w.has(t))return w.get(t);let s,o;if('lazy'===v.default)s=f.default.lazy(()=>{const e=t.loadRoute();return'then'in e?e.then(k.bind(null,t)):{then(t){const n=k(0,e);return Promise.resolve(t?t(n):n)}}});else{const e=k(0,t.loadRoute());s=e.default,o='layout'===t.type?e.SuspenseFallback:void 0}const u=e=>((0,y.useColorSchemeChangesIfNeeded)(),(0,m.jsx)(s,Object.assign({},e)));function i(s){let{route:i,navigation:l}=s,c=e(s,n);const p=(0,j.useStateForPath)(),y=l.isFocused(),_=(0,b.useExpoRouterStore)(),O=(0,f.use)(h.SuspenseFallbackContext),x='lazy'===v.default?P.SuspenseFallback:o??O??P.SuspenseFallback,N='layout'===t.type?o??O:O;if(y){const e=l.getState();!(e&&'state'in e.routes[e.index])&&p&&_.setFocusedState(p)}(0,f.useEffect)(()=>l.addListener('focus',()=>{const e=l.getState();!(e&&'state'in e.routes[e.index])&&p&&_.setFocusedState(p)}),[l]),(0,f.useEffect)(()=>l.addListener('transitionEnd',e=>{e?.data?.closing||(0,R.hasParam)(i?.params,R.INTERNAL_EXPO_ROUTER_NO_ANIMATION_PARAM_NAME)&&l.replaceParams((0,R.removeParams)(i?.params,[R.INTERNAL_EXPO_ROUTER_NO_ANIMATION_PARAM_NAME]))}),[l]);const F='route'===t.type,k=!!i?.key;return(0,m.jsx)(h.Route,{node:t,params:i?.params,children:(0,m.jsxs)(h.SuspenseFallbackContext,{value:N,children:[I.unstable_navigationEvents.isEnabled()&&F&&k&&(0,m.jsx)(A,{navigation:l,screenId:i.key}),(0,m.jsxs)(S.ZoomTransitionTargetContextProvider,{route:i,children:[(0,m.jsx)(E.ZoomTransitionEnabler,{route:i}),(0,m.jsx)(f.default.Suspense,{name:i?`Route(${i.name})`:void 0,fallback:(0,m.jsx)(x,{route:t.contextKey,params:i?.params??{}}),children:(0,m.jsx)(u,Object.assign({},c,{segment:t.route}))})]})]})})}return w.set(t,i),i}function A({navigation:e,screenId:t}){const n=f.default.useRef(!0),s=f.default.useRef(!0),o=(0,_.useCurrentRouteInfo)(),u=e.isFocused();return n.current&&(n.current=!1,o&&!u&&I.unstable_navigationEvents.emit('pagePreloaded',{pathname:o.pathname,params:o.params,segments:o.segments,screenId:t})),(0,f.useEffect)(()=>o?()=>{I.unstable_navigationEvents.emit('pageRemoved',{pathname:o.pathname,params:o.params,segments:o.segments,screenId:t})}:()=>{},[o?.params,o?.pathname,o?.segments,t]),(0,f.useEffect)(()=>{u&&o&&s.current&&(I.unstable_navigationEvents.emit('pageFocused',{pathname:o.pathname,params:o.params,segments:o.segments,screenId:t}),s.current=!1)},[u,o?.pathname,o?.params,o?.segments,t]),(0,f.useEffect)(()=>{if(o){const n=e.addListener('focus',()=>{s.current&&(I.unstable_navigationEvents.emit('pageFocused',{pathname:o.pathname,params:o.params,segments:o.segments,screenId:t}),s.current=!1)}),u=e.addListener('blur',()=>{I.unstable_navigationEvents.emit('pageBlurred',{pathname:o.pathname,params:o.params,segments:o.segments,screenId:t}),s.current=!0});return()=>{n(),u()}}return()=>{}},[e,o?.pathname,o?.params,o?.segments,t]),null}function T(e,t){return n=>{const s=e.generated?e.loadRoute()?.getNavOptions:null,o='function'==typeof s?s(n):s,u='function'==typeof t?t?.(n):t,i=Object.assign({},o,u);return e.internal&&(i.tabBarItemStyle={display:'none'},i.tabBarButton=()=>null,i.drawerItemStyle={height:0,display:'none'}),i}}function B(t,n={}){let{options:o,getId:u}=n,i=e(n,s);return(0,p.createElement)(O.Screen,Object.assign({},i,{name:t.route,key:t.route,getId:u,options:T(t,o),getComponent:()=>M(t)}))}function C(e,t={}){return e.split('/').map(e=>e.startsWith('[...')?t.params?.[e.slice(4,-1)]?.join('/')||e:e.startsWith('[')&&e.endsWith(']')&&t.params?.[e.slice(1,-1)]||e).join('/')}},541,[19,11,6,448,542,402,543,544,545,546,547,526,455,119,548,638,639]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useExpoRouterStore=e.StoreContext=void 0;const t=r(d[0]);e.StoreContext=(0,t.createContext)(null);e.useExpoRouterStore=()=>(0,t.use)(e.StoreContext)},542,[11]); +__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])},543,[11,471,119]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default="sync"},544,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.disableZoomTransition=function(){},e.isZoomTransitionEnabled=function(){return!1},e.ZoomTransitionEnabler=function(n){return null}},545,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ZoomTransitionSourceContextProvider=function({children:n}){return n},e.ZoomTransitionTargetContextProvider=function({children:n}){return n}},546,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unstable_navigationEvents=void 0,e.emit=o;const t=['pagePreloaded','pageFocused','pageBlurred','pageRemoved','actionDispatched'],n={};function o(t,o){const s=n[t];if(s)for(const t of s)t(o)}let s=!1;e.unstable_navigationEvents={addListener:function(o,s){if(!t.includes(o))throw new Error(`Unsupported event type: ${o}`);return n[o]||(n[o]=new Set),n[o].add(s),()=>{n[o].delete(s),0===n[o].size&&delete n[o]}},emit:o,enable:()=>{s=!0},isEnabled:()=>s}},547,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EmptyRoute=function(){const s=(0,o.useRouteNode)();return(0,t.jsx)(n.ToastWrapper,{children:(0,t.jsx)(n.Toast,{warning:!0,filename:s?.contextKey,children:"Missing default export"})})};const t=r(d[0]),n=r(d[1]),o=r(d[2])},548,[6,549,448]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.CODE_FONT=void 0,e.ToastWrapper=function({children:t}){const u=n.default.use(c.BottomTabBarHeightContext)?l.View:s.SafeAreaView;return(0,o.jsx)(u,{collapsable:!1,style:{flex:1},children:t})},e.Toast=function({children:t,filename:s,warning:c}){const h=n.default.useMemo(()=>{if(s)return'app'+s.replace(/^\./,'')},[s]),x=u();return(0,o.jsx)(l.View,{style:f.container,children:(0,o.jsxs)(l.Animated.View,{style:[f.toast,{position:l.Platform.select({web:'fixed',default:'absolute'}),opacity:x}],children:[!c&&(0,o.jsx)(l.ActivityIndicator,{color:"white"}),c&&(0,o.jsx)(l.Image,{source:r(d[5]),style:f.icon}),(0,o.jsxs)(l.View,{style:{marginLeft:8},children:[(0,o.jsx)(l.Text,{style:f.text,children:t}),h&&(0,o.jsx)(l.Text,{style:f.filename,children:h})]})]})})};const o=r(d[0]),n=t(r(d[1])),l=r(d[2]),s=r(d[3]),c=r(d[4]);function u(){const[t]=n.default.useState(()=>new l.Animated.Value(0));return n.default.useEffect(()=>{l.Animated.timing(t,{toValue:1,duration:200,useNativeDriver:!0}).start()},[]),t}e.CODE_FONT=l.Platform.select({default:'Courier',ios:'Courier New',android:'monospace'});const f=l.StyleSheet.create({container:{backgroundColor:'transparent',flex:1},icon:{width:20,height:20,resizeMode:'contain'},toast:{alignItems:'center',borderWidth:1,borderColor:'rgba(255,255,255,0.2)',flexDirection:'row',bottom:8,left:8,paddingVertical:8,paddingHorizontal:12,borderRadius:4,backgroundColor:'black'},text:{color:'white',fontSize:16},filename:{fontFamily:e.CODE_FONT,opacity:.8,color:'white',fontSize:12},code:{fontFamily:e.CODE_FONT}})},549,[6,11,220,17,550,637]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t,o=this&&this.__createBinding||(Object.create?function(t,o,n,i){void 0===i&&(i=n);var u=Object.getOwnPropertyDescriptor(o,n);u&&!("get"in u?!o.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return o[n]}}),Object.defineProperty(t,i,u)}:function(t,o,n,i){void 0===i&&(i=n),t[i]=o[n]}),n=this&&this.__setModuleDefault||(Object.create?function(t,o){Object.defineProperty(t,"default",{enumerable:!0,value:o})}:function(t,o){t.default=o}),i=this&&this.__importStar||(t=function(o){return t=Object.getOwnPropertyNames||function(t){var o=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(o[o.length]=n);return o},t(o)},function(i){if(i&&i.__esModule)return i;var u={};if(null!=i)for(var c=t(i),b=0;b{const t=I.current;let n;if(t!==C&&h[t]?.options.popToTopOnBlur){const i=o.routes.find(n=>n.key===t);'stack'===i?.state?.type&&i.state.key&&(n=Object.assign({},f.StackActions.popToTop(),{target:i.state.key}))}t!==C&&i.emit({type:'transitionStart',target:C}),c.Animated.parallel(o.routes.map((n,i)=>{const{options:s}=h[n.key],{animation:l="none",transitionSpec:u=k[l].transitionSpec}=s;let p=u;n.key!==t&&n.key!==C&&(p=k.none.transitionSpec),p=p??k.none.transitionSpec;const f=i===o.index?0:i>=o.index?1:-1;return c.Animated[p.animation](z[n.key],Object.assign({},p.config,{toValue:f,useNativeDriver:B}))}).filter(Boolean)).start(({finished:o})=>{o&&n&&i.dispatch(n),t!==C&&i.emit({type:'transitionEnd',target:C})}),I.current=C},[h,C,i,o.index,o.routes,z]);const D=p.SafeAreaProviderCompat.initialMetrics.frame,[R,F]=l.useState(()=>(0,y.getTabBarHeight)({state:o,descriptors:h,dimensions:D,insets:Object.assign({},p.SafeAreaProviderCompat.initialMetrics.insets,t.safeAreaInsets),style:h[o.routes[o.index].key].options.tabBarStyle})),{routes:E}=o,N=!E.some(t=>P(h[t.key].options)),{tabBarPosition:V="bottom"}=h[C].options,K=(0,s.jsx)(m.BottomTabBarHeightCallbackContext.Provider,{value:F,children:(0,s.jsx)(u.SafeAreaInsetsContext.Consumer,{children:t=>n({state:o,descriptors:h,navigation:i,insets:{top:w?.top??t?.top??0,right:w?.right??t?.right??0,bottom:w?.bottom??t?.bottom??0,left:w?.left??t?.left??0}})})},"tabbar");return(0,s.jsxs)(p.SafeAreaProviderCompat,{style:{flexDirection:'left'===V||'right'===V?'row':'column'},children:['top'===V||'left'===V?K:null,(0,s.jsx)(b.MaybeScreenContainer,{enabled:A,hasTwoStates:N,style:_.screens,children:E.map((t,n)=>{const i=h[t.key],{lazy:l=!0,animation:u="none",sceneStyleInterpolator:f=k[u].sceneStyleInterpolator}=i.options,y=o.index===n,m=o.preloadedRouteKeys.includes(t.key);if(l&&!M.includes(t.key)&&!y&&!m)return null;const{freezeOnBlur:v,header:B=({layout:n,options:o})=>(0,s.jsx)(p.Header,Object.assign({},o,{layout:n,title:(0,p.getHeaderTitle)(o,t.name)})),headerShown:T,headerStatusBarHeight:_,headerTransparent:w,sceneStyle:C}=i.options,{sceneStyle:H}=f?.({current:{progress:z[t.key]}})??{},I=P(i.options),F=y?j:I?z[t.key].interpolate({inputRange:[0,.99999,1],outputRange:[O,O,x],extrapolate:'extend'}):x;return(0,s.jsx)(b.MaybeScreen,{style:[c.StyleSheet.absoluteFill,{zIndex:y?0:-1}],active:F,enabled:A,freezeOnBlur:v,shouldFreeze:F===x&&!m,children:(0,s.jsx)(S.BottomTabBarHeightContext.Provider,{value:'bottom'===V?R:0,children:(0,s.jsx)(p.Screen,{focused:y,route:i.route,navigation:i.navigation,headerShown:T,headerStatusBarHeight:_,headerTransparent:w,header:B({layout:D,route:i.route,navigation:i.navigation,options:i.options}),style:[C,I&&H],children:i.render()})})},t.key)})},"screens"),'bottom'===V||'right'===V?K:null]})};const s=r(d[0]),l=i(r(d[1])),c=r(d[2]),u=r(d[3]),p=r(d[4]),f=r(d[5]),h=r(d[6]),y=r(d[7]),b=r(d[8]),m=r(d[9]),S=r(d[10]),v=r(d[11]),x=0,O=1,j=2,k={fade:h.FadeTransition,shift:h.ShiftTransition,none:{sceneStyleInterpolator:void 0,transitionSpec:{animation:'timing',config:{duration:0}}}},B='web'!==c.Platform.OS,P=t=>{const{animation:n,transitionSpec:o}=t;return n?'none'!==n:Boolean(o)},T=t=>(0,s.jsx)(y.BottomTabBar,Object.assign({},t));const _=c.StyleSheet.create({screens:{flex:1,overflow:'hidden'}})},555,[6,11,220,17,556,119,552,601,606,604,634,635]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,u,o){void 0===o&&(o=u);var c=Object.getOwnPropertyDescriptor(n,u);c&&!("get"in c?!n.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return n[u]}}),Object.defineProperty(t,o,c)}:function(t,n,u,o){void 0===o&&(o=u),t[o]=n[u]}),n=this&&this.__exportStar||function(n,u){for(var o in n)"default"===o||Object.prototype.hasOwnProperty.call(u,o)||t(u,n,o)},u=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Assets=e.useFrameSize=e.Text=e.Screen=e.SafeAreaProviderCompat=e.ResourceSavingView=e.PlatformPressable=e.MissingIcon=e.Lazy=e.Label=e.getLabel=e.useHeaderHeight=e.HeaderTitle=e.HeaderShownContext=e.HeaderHeightContext=e.HeaderButton=e.HeaderBackground=e.HeaderBackContext=e.HeaderBackButton=e.Header=e.getHeaderTitle=e.getDefaultHeaderHeight=e.getDefaultSidebarWidth=e.Button=e.Badge=e.Background=void 0;const o=u(r(d[0])),c=u(r(d[1])),f=u(r(d[2])),b=u(r(d[3])),l=u(r(d[4]));var H=r(d[5]);Object.defineProperty(e,"Background",{enumerable:!0,get:function(){return H.Background}});var s=r(d[6]);Object.defineProperty(e,"Badge",{enumerable:!0,get:function(){return s.Badge}});var v=r(d[7]);Object.defineProperty(e,"Button",{enumerable:!0,get:function(){return v.Button}});var P=r(d[8]);Object.defineProperty(e,"getDefaultSidebarWidth",{enumerable:!0,get:function(){return P.getDefaultSidebarWidth}});var p=r(d[9]);Object.defineProperty(e,"getDefaultHeaderHeight",{enumerable:!0,get:function(){return p.getDefaultHeaderHeight}});var m=r(d[10]);Object.defineProperty(e,"getHeaderTitle",{enumerable:!0,get:function(){return m.getHeaderTitle}});var y=r(d[11]);Object.defineProperty(e,"Header",{enumerable:!0,get:function(){return y.Header}});var O=r(d[12]);Object.defineProperty(e,"HeaderBackButton",{enumerable:!0,get:function(){return O.HeaderBackButton}});var j=r(d[13]);Object.defineProperty(e,"HeaderBackContext",{enumerable:!0,get:function(){return j.HeaderBackContext}});var B=r(d[14]);Object.defineProperty(e,"HeaderBackground",{enumerable:!0,get:function(){return B.HeaderBackground}});var h=r(d[15]);Object.defineProperty(e,"HeaderButton",{enumerable:!0,get:function(){return h.HeaderButton}});var S=r(d[16]);Object.defineProperty(e,"HeaderHeightContext",{enumerable:!0,get:function(){return S.HeaderHeightContext}});var _=r(d[17]);Object.defineProperty(e,"HeaderShownContext",{enumerable:!0,get:function(){return _.HeaderShownContext}});var x=r(d[18]);Object.defineProperty(e,"HeaderTitle",{enumerable:!0,get:function(){return x.HeaderTitle}});var k=r(d[19]);Object.defineProperty(e,"useHeaderHeight",{enumerable:!0,get:function(){return k.useHeaderHeight}});var C=r(d[20]);Object.defineProperty(e,"getLabel",{enumerable:!0,get:function(){return C.getLabel}});var w=r(d[21]);Object.defineProperty(e,"Label",{enumerable:!0,get:function(){return w.Label}});var L=r(d[22]);Object.defineProperty(e,"Lazy",{enumerable:!0,get:function(){return L.Lazy}});var T=r(d[23]);Object.defineProperty(e,"MissingIcon",{enumerable:!0,get:function(){return T.MissingIcon}});var D=r(d[24]);Object.defineProperty(e,"PlatformPressable",{enumerable:!0,get:function(){return D.PlatformPressable}});var z=r(d[25]);Object.defineProperty(e,"ResourceSavingView",{enumerable:!0,get:function(){return z.ResourceSavingView}});var M=r(d[26]);Object.defineProperty(e,"SafeAreaProviderCompat",{enumerable:!0,get:function(){return M.SafeAreaProviderCompat}});var A=r(d[27]);Object.defineProperty(e,"Screen",{enumerable:!0,get:function(){return A.Screen}});var F=r(d[28]);Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return F.Text}});var I=r(d[29]);Object.defineProperty(e,"useFrameSize",{enumerable:!0,get:function(){return I.useFrameSize}}),e.Assets=[c.default,o.default,l.default,b.default,f.default],n(r(d[30]),e)},556,[557,558,559,560,561,562,563,573,576,577,578,579,581,590,585,582,591,587,589,592,593,594,595,596,574,597,598,599,575,580,600]); +__d(function(g,r,i,a,m,e,d){m.exports={uri:"/assets/node_modules/expo-router/assets/react-navigation/elements/back-icon-mask.0a328cd9c1afd0afe8e3b1ec5165b1b4.png",width:50,height:85,toString(){return this.uri}}},557,[]); +__d(function(g,r,i,a,m,e,d){m.exports={uri:"/assets/node_modules/expo-router/assets/react-navigation/elements/back-icon.35ba0eaec5a4f5ed12ca16fabeae451d.png",width:96,height:96,toString(){return this.uri}}},558,[]); +__d(function(g,r,i,a,m,e,d){m.exports={uri:"/assets/node_modules/expo-router/assets/react-navigation/elements/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55.png",width:64,height:64,toString(){return this.uri}}},559,[]); +__d(function(g,r,i,a,m,e,d){m.exports={uri:"/assets/node_modules/expo-router/assets/react-navigation/elements/close-icon.808e1b1b9b53114ec2838071a7e6daa7.png",width:96,height:96,toString(){return this.uri}}},560,[]); +__d(function(g,r,i,a,m,e,d){m.exports={uri:"/assets/node_modules/expo-router/assets/react-navigation/elements/search-icon.286d67d3f74808a60a78d3ebf1a5fb57.png",width:96,height:96,toString(){return this.uri}}},561,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=r(d[0]).default;const n=["style"];Object.defineProperty(e,"__esModule",{value:!0}),e.Background=function(u){let{style:l}=u,f=t(u,n);const{colors:b}=(0,c.useTheme)();return(0,o.jsx)(s.Animated.View,Object.assign({},f,{style:[{flex:1,backgroundColor:b.background},l]}))};const o=r(d[1]),s=r(d[2]),c=r(d[3])},562,[19,6,220,119]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t=r(d[0]).default;const n=["children","style","visible","size"],i=["backgroundColor"];var o,l=this&&this.__createBinding||(Object.create?function(t,n,i,o){void 0===o&&(o=i);var l=Object.getOwnPropertyDescriptor(n,i);l&&!("get"in l?!n.__esModule:l.writable||l.configurable)||(l={enumerable:!0,get:function(){return n[i]}}),Object.defineProperty(t,o,l)}:function(t,n,i,o){void 0===o&&(o=i),t[o]=n[i]}),u=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),c=this&&this.__importStar||(o=function(t){return o=Object.getOwnPropertyNames||function(t){var n=[];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[n.length]=i);return n},o(t)},function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var i=o(t),c=0;cnew h.Animated.Value(c?1:0)),[j,S]=f.useState(c),{colors:w,fonts:P}=(0,v.useTheme)();if(f.useEffect(()=>{if(j)return h.Animated.timing(y,{toValue:c?1:0,duration:150,useNativeDriver:p}).start(({finished:t})=>{t&&!c&&S(!1)}),()=>y.stopAnimation()},[y,j,c]),!j){if(!c)return null;S(!0)}const A=h.StyleSheet.flatten(u)||{},{backgroundColor:C=w.notification}=A,M=t(A,i),k=(0,b.Color)(C)?.isLight()?'black':'white',x=O/2,z=Math.floor(3*O/4);return(0,s.jsx)(h.Animated.Text,Object.assign({numberOfLines:1,style:[{transform:[{scale:y.interpolate({inputRange:[0,1],outputRange:[.5,1]})}],color:k,lineHeight:O-1,height:O,minWidth:O,opacity:y,backgroundColor:C,fontSize:z,borderRadius:x,borderCurve:'continuous'},P.regular,m.container,M]},_,{children:l}))};const s=r(d[1]),f=c(r(d[2])),h=r(d[3]),b=r(d[4]),v=r(d[5]),p='web'!==h.Platform.OS;const m=h.StyleSheet.create({container:{alignSelf:'flex-end',textAlign:'center',paddingHorizontal:4,overflow:'hidden'}})},563,[19,6,11,220,564,119]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Color=function(t){if('string'==typeof t&&!t.startsWith('var('))return(0,u.default)(t);return};const u=t(r(d[0]))},564,[565]); +__d(function(g,r,_i,_a,_m,e,d){const t=r(d[0]),o=r(d[1]),n=['keyword','gray','hex'],s={};for(const t of Object.keys(o))s[[...o[t].labels].sort().join('')]=t;const h={};function l(i,a){if(!(this instanceof l))return new l(i,a);if(a&&a in n&&(a=null),a&&!(a in o))throw new Error('Unknown model: '+a);let c,u;if(null==i)this.model='rgb',this.color=[0,0,0],this.valpha=1;else if(i instanceof l)this.model=i.model,this.color=[...i.color],this.valpha=i.valpha;else if('string'==typeof i){const n=t.get(i);if(null===n)throw new Error('Unable to parse color from string: '+i);this.model=n.model,u=o[this.model].channels,this.color=n.value.slice(0,u),this.valpha='number'==typeof n.value[u]?n.value[u]:1}else if(i.length>0){this.model=a||'rgb',u=o[this.model].channels;const t=Array.prototype.slice.call(i,0,u);this.color=p(t,u),this.valpha='number'==typeof i[u]?i[u]:1}else if('number'==typeof i)this.model='rgb',this.color=[i>>16&255,i>>8&255,255&i],this.valpha=1;else{this.valpha=1;const t=Object.keys(i);'alpha'in i&&(t.splice(t.indexOf('alpha'),1),this.valpha='number'==typeof i.alpha?i.alpha:0);const n=t.sort().join('');if(!(n in s))throw new Error('Unable to parse color from object: '+JSON.stringify(i));this.model=s[n];const{labels:h}=o[this.model],l=[];for(c=0;c(t%360+360)%360),saturationl:c('hsl',1,u(100)),lightness:c('hsl',2,u(100)),saturationv:c('hsv',1,u(100)),value:c('hsv',2,u(100)),chroma:c('hcg',1,u(100)),gray:c('hcg',2,u(100)),white:c('hwb',1,u(100)),wblack:c('hwb',2,u(100)),cyan:c('cmyk',0,u(100)),magenta:c('cmyk',1,u(100)),yellow:c('cmyk',2,u(100)),black:c('cmyk',3,u(100)),x:c('xyz',0,u(95.047)),y:c('xyz',1,u(100)),z:c('xyz',2,u(108.833)),l:c('lab',0,u(100)),a:c('lab',1),b:c('lab',2),keyword(t){return void 0!==t?new l(t):o[this.model].keyword(this.color)},hex(o){return void 0!==o?new l(o):t.to.hex(this.rgb().round().color)},hexa(o){if(void 0!==o)return new l(o);const n=this.rgb().round().color;let s=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===s.length&&(s='0'+s),t.to.hex(n)+s},rgbNumber(){const t=this.rgb().color;return(255&t[0])<<16|(255&t[1])<<8|255&t[2]},luminosity(){const t=this.rgb().color,o=[];for(const[n,s]of t.entries()){const t=s/255;o[n]=t<=.04045?t/12.92:((t+.055)/1.055)**2.4}return.2126*o[0]+.7152*o[1]+.0722*o[2]},contrast(t){const o=this.luminosity(),n=t.luminosity();return o>n?(o+.05)/(n+.05):(n+.05)/(o+.05)},level(t){const o=this.contrast(t);return o>=7?'AAA':o>=4.5?'AA':''},isDark(){const t=this.rgb().color;return(2126*t[0]+7152*t[1]+722*t[2])/1e4<128},isLight(){return!this.isDark()},negate(){const t=this.rgb();for(let o=0;o<3;o++)t.color[o]=255-t.color[o];return t},lighten(t){const o=this.hsl();return o.color[2]+=o.color[2]*t,o},darken(t){const o=this.hsl();return o.color[2]-=o.color[2]*t,o},saturate(t){const o=this.hsl();return o.color[1]+=o.color[1]*t,o},desaturate(t){const o=this.hsl();return o.color[1]-=o.color[1]*t,o},whiten(t){const o=this.hwb();return o.color[1]+=o.color[1]*t,o},blacken(t){const o=this.hwb();return o.color[2]+=o.color[2]*t,o},grayscale(){const t=this.rgb().color,o=.3*t[0]+.59*t[1]+.11*t[2];return l.rgb(o,o,o)},fade(t){return this.alpha(this.valpha-this.valpha*t)},opaquer(t){return this.alpha(this.valpha+this.valpha*t)},rotate(t){const o=this.hsl();let n=o.color[0];return n=(n+t)%360,n=n<0?360+n:n,o.color[0]=n,o},mix(t,o){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);const n=t.rgb(),s=this.rgb(),h=void 0===o?.5:o,i=2*h-1,a=n.alpha()-s.alpha(),c=((i*a===-1?i:(i+a)/(1+i*a))+1)/2,u=1-c;return l.rgb(c*n.red()+u*s.red(),c*n.green()+u*s.green(),c*n.blue()+u*s.blue(),n.alpha()*h+s.alpha()*(1-h))}};for(const t of Object.keys(o)){if(n.includes(t))continue;const{channels:s}=o[t];l.prototype[t]=function(...n){return this.model===t?new l(this):n.length>0?new l(n,t):new l([...(s=o[this.model][t].raw(this.color),Array.isArray(s)?s:[s]),this.valpha],t);var s},l[t]=function(...o){let n=o[0];return'number'==typeof n&&(n=p(o,s)),new l(n,t)}}function i(t,o){return Number(t.toFixed(o))}function a(t){return function(o){return i(o,t)}}function c(t,o,n){t=Array.isArray(t)?t:[t];for(const s of t)(h[s]||(h[s]=[]))[o]=n;return t=t[0],function(s){let h;return void 0!==s?(n&&(s=n(s)),h=this[t](),h.color[o]=s,h):(h=this[t]().color[o],n&&(h=n(h)),h)}}function u(t){return function(o){return Math.max(0,Math.min(t,o))}}function p(t,o){for(let n=0;n=4&&1!==r[3]&&(a=', '+r[3]),'hwb('+r[0]+', '+r[1]+'%, '+r[2]+'%'+a+')'},o.to.keyword=function(r){return n[r.slice(0,3)]}},566,[567,568]); +__d(function(g,r,i,a,m,e,d){'use strict';m.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},567,[]); +__d(function(g,r,_i,a,m,e,d){'use strict';var t=r(d[0]),n=Array.prototype.concat,o=Array.prototype.slice,c=m.exports=function(c){for(var u=[],p=0,i=c.length;p=0&&(n.splice instanceof Function||Object.getOwnPropertyDescriptor(n,n.length-1)&&'String'!==n.constructor.name))}},569,[]); +__d(function(g,r,_i,a,m,e,d){const n=r(d[0]),o=r(d[1]),t={};function c(n){const o=function(...o){const t=o[0];return null==t?t:(t.length>1&&(o=t),n(o))};return'conversion'in n&&(o.conversion=n.conversion),o}function s(n){const o=function(...o){const t=o[0];if(null==t)return t;t.length>1&&(o=t);const c=n(o);if('object'==typeof c)for(let n=c.length,o=0;o{t[i]={},Object.defineProperty(t[i],'channels',{value:n[i].channels}),Object.defineProperty(t[i],'labels',{value:n[i].labels});const l=o(i);Object.keys(l).forEach(n=>{const o=l[n];t[i][n]=s(o),t[i][n].raw=c(o)})}),m.exports=t},570,[571,572]); +__d(function(_g,_r,_i,_a,_m,e,d){const n=_r(d[0]),t={};for(const r of Object.keys(n))t[n[r]]=r;const r={rgb:{channels:3,labels:'rgb'},hsl:{channels:3,labels:'hsl'},hsv:{channels:3,labels:'hsv'},hwb:{channels:3,labels:'hwb'},cmyk:{channels:4,labels:'cmyk'},xyz:{channels:3,labels:'xyz'},lab:{channels:3,labels:'lab'},lch:{channels:3,labels:'lch'},hex:{channels:1,labels:['hex']},keyword:{channels:1,labels:['keyword']},ansi16:{channels:1,labels:['ansi16']},ansi256:{channels:1,labels:['ansi256']},hcg:{channels:3,labels:['h','c','g']},apple:{channels:3,labels:['r16','g16','b16']},gray:{channels:1,labels:['gray']}};_m.exports=r;for(const n of Object.keys(r)){if(!('channels'in r[n]))throw new Error('missing channels property: '+n);if(!('labels'in r[n]))throw new Error('missing channel labels property: '+n);if(r[n].labels.length!==r[n].channels)throw new Error('channel and label counts mismatch: '+n);const{channels:t,labels:a}=r[n];delete r[n].channels,delete r[n].labels,Object.defineProperty(r[n],'channels',{value:t}),Object.defineProperty(r[n],'labels',{value:a})}function a(n,t){return(n[0]-t[0])**2+(n[1]-t[1])**2+(n[2]-t[2])**2}r.rgb.hsl=function(n){const t=n[0]/255,r=n[1]/255,a=n[2]/255,c=Math.min(t,r,a),s=Math.max(t,r,a),o=s-c;let l,h;s===c?l=0:t===s?l=(r-a)/o:r===s?l=2+(a-t)/o:a===s&&(l=4+(t-r)/o),l=Math.min(60*l,360),l<0&&(l+=360);const u=(c+s)/2;return h=s===c?0:u<=.5?o/(s+c):o/(2-s-c),[l,100*h,100*u]},r.rgb.hsv=function(n){let t,r,a,c,s;const o=n[0]/255,l=n[1]/255,h=n[2]/255,u=Math.max(o,l,h),i=u-Math.min(o,l,h),b=function(n){return(u-n)/6/i+.5};return 0===i?(c=0,s=0):(s=i/u,t=b(o),r=b(l),a=b(h),o===u?c=a-r:l===u?c=.3333333333333333+t-a:h===u&&(c=.6666666666666666+r-t),c<0?c+=1:c>1&&(c-=1)),[360*c,100*s,100*u]},r.rgb.hwb=function(n){const t=n[0],a=n[1];let c=n[2];const s=r.rgb.hsl(n)[0],o=.00392156862745098*Math.min(t,Math.min(a,c));return c=1-.00392156862745098*Math.max(t,Math.max(a,c)),[s,100*o,100*c]},r.rgb.cmyk=function(n){const t=n[0]/255,r=n[1]/255,a=n[2]/255,c=Math.min(1-t,1-r,1-a);return[100*((1-t-c)/(1-c)||0),100*((1-r-c)/(1-c)||0),100*((1-a-c)/(1-c)||0),100*c]},r.rgb.keyword=function(r){const c=t[r];if(c)return c;let s,o=1/0;for(const t of Object.keys(n)){const c=a(r,n[t]);c.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,a=a>.04045?((a+.055)/1.055)**2.4:a/12.92;return[100*(.4124*t+.3576*r+.1805*a),100*(.2126*t+.7152*r+.0722*a),100*(.0193*t+.1192*r+.9505*a)]},r.rgb.lab=function(n){const t=r.rgb.xyz(n);let a=t[0],c=t[1],s=t[2];a/=95.047,c/=100,s/=108.883,a=a>.008856?a**.3333333333333333:7.787*a+.13793103448275862,c=c>.008856?c**.3333333333333333:7.787*c+.13793103448275862,s=s>.008856?s**.3333333333333333:7.787*s+.13793103448275862;return[116*c-16,500*(a-c),200*(c-s)]},r.hsl.rgb=function(n){const t=n[0]/360,r=n[1]/100,a=n[2]/100;let c,s,o;if(0===r)return o=255*a,[o,o,o];c=a<.5?a*(1+r):a+r-a*r;const l=2*a-c,h=[0,0,0];for(let n=0;n<3;n++)s=t+.3333333333333333*-(n-1),s<0&&s++,s>1&&s--,o=6*s<1?l+6*(c-l)*s:2*s<1?c:3*s<2?l+(c-l)*(.6666666666666666-s)*6:l,h[n]=255*o;return h},r.hsl.hsv=function(n){const t=n[0];let r=n[1]/100,a=n[2]/100,c=r;const s=Math.max(a,.01);a*=2,r*=a<=1?a:2-a,c*=s<=1?s:2-s;return[t,100*(0===a?2*c/(s+c):2*r/(a+r)),100*((a+r)/2)]},r.hsv.rgb=function(n){const t=n[0]/60,r=n[1]/100;let a=n[2]/100;const c=Math.floor(t)%6,s=t-Math.floor(t),o=255*a*(1-r),l=255*a*(1-r*s),h=255*a*(1-r*(1-s));switch(a*=255,c){case 0:return[a,h,o];case 1:return[l,a,o];case 2:return[o,a,h];case 3:return[o,l,a];case 4:return[h,o,a];case 5:return[a,o,l]}},r.hsv.hsl=function(n){const t=n[0],r=n[1]/100,a=n[2]/100,c=Math.max(a,.01);let s,o;o=(2-r)*a;const l=(2-r)*c;return s=r*c,s/=l<=1?l:2-l,s=s||0,o/=2,[t,100*s,100*o]},r.hwb.rgb=function(n){const t=n[0]/360;let r=n[1]/100,a=n[2]/100;const c=r+a;let s;c>1&&(r/=c,a/=c);const o=Math.floor(6*t),l=1-a;s=6*t-o,1&o&&(s=1-s);const h=r+s*(l-r);let u,i,b;switch(o){default:case 6:case 0:u=l,i=h,b=r;break;case 1:u=h,i=l,b=r;break;case 2:u=r,i=l,b=h;break;case 3:u=r,i=h,b=l;break;case 4:u=h,i=r,b=l;break;case 5:u=l,i=r,b=h}return[255*u,255*i,255*b]},r.cmyk.rgb=function(n){const t=n[0]/100,r=n[1]/100,a=n[2]/100,c=n[3]/100;return[255*(1-Math.min(1,t*(1-c)+c)),255*(1-Math.min(1,r*(1-c)+c)),255*(1-Math.min(1,a*(1-c)+c))]},r.xyz.rgb=function(n){const t=n[0]/100,r=n[1]/100,a=n[2]/100;let c,s,o;return c=3.2406*t+-1.5372*r+-.4986*a,s=-.9689*t+1.8758*r+.0415*a,o=.0557*t+-.204*r+1.057*a,c=c>.0031308?1.055*c**.4166666666666667-.055:12.92*c,s=s>.0031308?1.055*s**.4166666666666667-.055:12.92*s,o=o>.0031308?1.055*o**.4166666666666667-.055:12.92*o,c=Math.min(Math.max(0,c),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[255*c,255*s,255*o]},r.xyz.lab=function(n){let t=n[0],r=n[1],a=n[2];t/=95.047,r/=100,a/=108.883,t=t>.008856?t**.3333333333333333:7.787*t+.13793103448275862,r=r>.008856?r**.3333333333333333:7.787*r+.13793103448275862,a=a>.008856?a**.3333333333333333:7.787*a+.13793103448275862;return[116*r-16,500*(t-r),200*(r-a)]},r.lab.xyz=function(n){let t,r,a;r=(n[0]+16)/116,t=n[1]/500+r,a=r-n[2]/200;const c=r**3,s=t**3,o=a**3;return r=c>.008856?c:(r-.13793103448275862)/7.787,t=s>.008856?s:(t-.13793103448275862)/7.787,a=o>.008856?o:(a-.13793103448275862)/7.787,t*=95.047,r*=100,a*=108.883,[t,r,a]},r.lab.lch=function(n){const t=n[0],r=n[1],a=n[2];let c;c=360*Math.atan2(a,r)/2/Math.PI,c<0&&(c+=360);return[t,Math.sqrt(r*r+a*a),c]},r.lch.lab=function(n){const t=n[0],r=n[1],a=n[2]/360*2*Math.PI;return[t,r*Math.cos(a),r*Math.sin(a)]},r.rgb.ansi16=function(n,t=null){const[a,c,s]=n;let o=null===t?r.rgb.hsv(n)[2]:t;if(o=Math.round(o/50),0===o)return 30;let l=30+(Math.round(s/255)<<2|Math.round(c/255)<<1|Math.round(a/255));return 2===o&&(l+=60),l},r.hsv.ansi16=function(n){return r.rgb.ansi16(r.hsv.rgb(n),n[2])},r.rgb.ansi256=function(n){const t=n[0],r=n[1],a=n[2];if(t===r&&r===a)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;return 16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(a/255*5)},r.ansi16.rgb=function(n){let t=n%10;if(0===t||7===t)return n>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const r=.5*(1+~~(n>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},r.ansi256.rgb=function(n){if(n>=232){const t=10*(n-232)+8;return[t,t,t]}let t;n-=16;return[Math.floor(n/36)/5*255,Math.floor((t=n%36)/6)/5*255,t%6/5*255]},r.rgb.hex=function(n){const t=(((255&Math.round(n[0]))<<16)+((255&Math.round(n[1]))<<8)+(255&Math.round(n[2]))).toString(16).toUpperCase();return'000000'.substring(t.length)+t},r.hex.rgb=function(n){const t=n.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];3===t[0].length&&(r=r.split('').map(n=>n+n).join(''));const a=parseInt(r,16);return[a>>16&255,a>>8&255,255&a]},r.rgb.hcg=function(n){const t=n[0]/255,r=n[1]/255,a=n[2]/255,c=Math.max(Math.max(t,r),a),s=Math.min(Math.min(t,r),a),o=c-s;let l,h;return l=o<1?s/(1-o):0,h=o<=0?0:c===t?(r-a)/o%6:c===r?2+(a-t)/o:4+(t-r)/o,h/=6,h%=1,[360*h,100*o,100*l]},r.hsl.hcg=function(n){const t=n[1]/100,r=n[2]/100,a=r<.5?2*t*r:2*t*(1-r);let c=0;return a<1&&(c=(r-.5*a)/(1-a)),[n[0],100*a,100*c]},r.hsv.hcg=function(n){const t=n[1]/100,r=n[2]/100,a=t*r;let c=0;return a<1&&(c=(r-a)/(1-a)),[n[0],100*a,100*c]},r.hcg.rgb=function(n){const t=n[0]/360,r=n[1]/100,a=n[2]/100;if(0===r)return[255*a,255*a,255*a];const c=[0,0,0],s=t%1*6,o=s%1,l=1-o;let h=0;switch(Math.floor(s)){case 0:c[0]=1,c[1]=o,c[2]=0;break;case 1:c[0]=l,c[1]=1,c[2]=0;break;case 2:c[0]=0,c[1]=1,c[2]=o;break;case 3:c[0]=0,c[1]=l,c[2]=1;break;case 4:c[0]=o,c[1]=0,c[2]=1;break;default:c[0]=1,c[1]=0,c[2]=l}return h=(1-r)*a,[255*(r*c[0]+h),255*(r*c[1]+h),255*(r*c[2]+h)]},r.hcg.hsv=function(n){const t=n[1]/100,r=t+n[2]/100*(1-t);let a=0;return r>0&&(a=t/r),[n[0],100*a,100*r]},r.hcg.hsl=function(n){const t=n[1]/100,r=n[2]/100*(1-t)+.5*t;let a=0;return r>0&&r<.5?a=t/(2*r):r>=.5&&r<1&&(a=t/(2*(1-r))),[n[0],100*a,100*r]},r.hcg.hwb=function(n){const t=n[1]/100,r=t+n[2]/100*(1-t);return[n[0],100*(r-t),100*(1-r)]},r.hwb.hcg=function(n){const t=n[1]/100,r=1-n[2]/100,a=r-t;let c=0;return a<1&&(c=(r-a)/(1-a)),[n[0],100*a,100*c]},r.apple.rgb=function(n){return[n[0]/65535*255,n[1]/65535*255,n[2]/65535*255]},r.rgb.apple=function(n){return[n[0]/255*65535,n[1]/255*65535,n[2]/255*65535]},r.gray.rgb=function(n){return[n[0]/100*255,n[0]/100*255,n[0]/100*255]},r.gray.hsl=function(n){return[0,0,n[0]]},r.gray.hsv=r.gray.hsl,r.gray.hwb=function(n){return[0,100,n[0]]},r.gray.cmyk=function(n){return[0,0,0,n[0]]},r.gray.lab=function(n){return[n[0],0,0]},r.gray.hex=function(n){const t=255&Math.round(n[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return'000000'.substring(r.length)+r},r.rgb.gray=function(n){return[(n[0]+n[1]+n[2])/3/255*100]}},571,[567]); +__d(function(g,r,_i,a,m,e,d){const n=r(d[0]);function t(){const t={},c=Object.keys(n);for(let n=c.length,o=0;o=21,b='web'!==u.Platform.OS;_e.PlatformPressable=function(o){let{ref:n,disabled:i,onPress:s,onPressIn:y,onPressOut:h,android_ripple:O,pressColor:m,pressOpacity:_=.3,hoverEffect:j,style:w,children:S}=o,K=e(o,t);const{dark:x}=(0,f.useTheme)(),[$]=c.useState(()=>new u.Animated.Value(1)),A=(e,t)=>{p||u.Animated.timing($,{toValue:e,duration:t,easing:u.Easing.inOut(u.Easing.quad),useNativeDriver:b}).start()};return(0,l.jsxs)(v,Object.assign({ref:n,accessible:!0,role:'web'===u.Platform.OS&&null!=K.href?'link':'button',onPress:i?void 0:e=>{if('web'===u.Platform.OS&&null!==K.href){const t='metaKey'in e&&e.metaKey||'altKey'in e&&e.altKey||'ctrlKey'in e&&e.ctrlKey||'shiftKey'in e&&e.shiftKey,o=!('button'in e)||(null==e.button||0===e.button),n=!e.currentTarget||!('target'in e.currentTarget)||[void 0,null,'','self'].includes(e.currentTarget.target);!t&&o&&n&&(e.preventDefault(),s?.(e))}else s?.(e)},onPressIn:i?void 0:e=>{A(_,0),y?.(e)},onPressOut:i?void 0:e=>{A(1,200),h?.(e)},android_ripple:p&&!i?Object.assign({color:void 0!==m?m:x?'rgba(255, 255, 255, .32)':'rgba(0, 0, 0, .32)'},O):void 0,style:[{cursor:'web'!==u.Platform.OS&&'ios'!==u.Platform.OS||i?'auto':'pointer',opacity:p||i?1:$},w]},K,{children:[i?null:(0,l.jsx)(P,Object.assign({},j)),S]}))};const y=String.raw,h="__react-navigation_elements_Pressable_hover",O=y` + .${h} { + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + border-radius: inherit; + background-color: var(--overlay-color); + opacity: 0; + transition: opacity 0.15s; + pointer-events: none; + } + + a:hover > .${h}, button:hover > .${h} { + opacity: var(--overlay-hover-opacity); + } + + a:active > .${h}, button:active > .${h} { + opacity: var(--overlay-active-opacity); + } +`,P=({color:e,hoverOpacity:t=.08,activeOpacity:o=.16})=>'web'!==u.Platform.OS||null==e?null:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("style",{href:h,precedence:"elements",children:O}),(0,l.jsx)("div",{className:h,style:{'--overlay-color':e,'--overlay-hover-opacity':t,'--overlay-active-opacity':o}})]})},574,[19,6,11,220,119]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=r(d[0]).default;const s=["style"];Object.defineProperty(e,"__esModule",{value:!0}),e.Text=function(l){let{style:u}=l,f=t(l,s);const{colors:x,fonts:y}=(0,c.useTheme)();return(0,o.jsx)(n.Text,Object.assign({},f,{style:[{color:x.text},y.regular,u]}))};const o=r(d[1]),n=r(d[2]),c=r(d[3])},575,[19,6,220,119]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getDefaultSidebarWidth=void 0;e.getDefaultSidebarWidth=({width:t})=>t-56<=360?t-56:360},576,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getDefaultHeaderHeight=function(o,l,s){let f;const n='ios'===t.Platform.OS&&s>50?s-(5+1/t.PixelRatio.get()):s,u=o.width>o.height;f='ios'===t.Platform.OS?t.Platform.isPad||t.Platform.isTV?l?56:50:u?32:l?56:44:64;return f+n};const t=r(d[0])},577,[220]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getHeaderTitle=function(t,l){return'string'==typeof t.headerTitle?t.headerTitle:void 0!==t.title?t.title:l}},578,[]); +__d(function(g,r,_i,a,_m,_e,d){"use strict";var e=r(d[0]).default;const t=["height","maxHeight","minHeight","backfaceVisibility","backgroundColor","borderBlockColor","borderBlockEndColor","borderBlockStartColor","borderBottomColor","borderBottomEndRadius","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStartRadius","borderBottomWidth","borderColor","borderCurve","borderEndColor","borderEndEndRadius","borderEndStartRadius","borderEndWidth","borderLeftColor","borderLeftWidth","borderRadius","borderRightColor","borderRightWidth","borderStartColor","borderStartEndRadius","borderStartStartRadius","borderStartWidth","borderStyle","borderTopColor","borderTopEndRadius","borderTopLeftRadius","borderTopRightRadius","borderTopStartRadius","borderTopWidth","borderWidth","boxShadow","elevation","filter","mixBlendMode","opacity","shadowColor","shadowOffset","shadowOpacity","shadowRadius","transform","transformOrigin"];var o,i=this&&this.__createBinding||(Object.create?function(e,t,o,i){void 0===i&&(i=o);var n=Object.getOwnPropertyDescriptor(t,o);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[o]}}),Object.defineProperty(e,i,n)}:function(e,t,o,i){void 0===i&&(i=o),e[i]=t[o]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||(o=function(e){return o=Object.getOwnPropertyNames||function(e){var t=[];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[t.length]=o);return t},o(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var l=o(e),s=0;se,!0),{colors:l}=(0,m.useTheme)(),s=(0,m.useNavigation)(),k=(0,u.use)(w.HeaderShownContext),[T,W]=h.useState(!1),[H,_]=h.useState(void 0),{layout:L=n,modal:P=!1,back:M,title:V,headerTitle:A,headerTitleAlign:D="left",headerLeft:N=(M?e=>(0,b.jsx)(S.HeaderBackButton,Object.assign({},e)):void 0),headerSearchBarOptions:F,headerTransparent:I,headerTintColor:z,headerBackground:G,headerRight:q,headerTitleAllowFontScaling:J,headerTitleStyle:K,headerLeftContainerStyle:Q,headerRightContainerStyle:U,headerTitleContainerStyle:X,headerBackButtonDisplayMode:Y="minimal",headerBackTitleStyle:Z,headerBackgroundContainerStyle:$,headerStyle:ee,headerShadowVisible:re,headerPressColor:te,headerPressOpacity:oe,headerStatusBarHeight:de=(k?0:i.top)}=o,ie=(0,v.getDefaultHeaderHeight)(L,P,de),ae=c.StyleSheet.flatten(ee||{}),{height:ne=ie,maxHeight:le,minHeight:se,backfaceVisibility:be,backgroundColor:he,borderBlockColor:ue,borderBlockEndColor:ce,borderBlockStartColor:fe,borderBottomColor:ge,borderBottomEndRadius:pe,borderBottomLeftRadius:me,borderBottomRightRadius:Ce,borderBottomStartRadius:Se,borderBottomWidth:ye,borderColor:Re,borderCurve:Be,borderEndColor:xe,borderEndEndRadius:we,borderEndStartRadius:Ee,borderEndWidth:ve,borderLeftColor:Oe,borderLeftWidth:je,borderRadius:ke,borderRightColor:Te,borderRightWidth:We,borderStartColor:He,borderStartEndRadius:Le,borderStartStartRadius:Pe,borderStartWidth:Me,borderStyle:Ve,borderTopColor:Ae,borderTopEndRadius:De,borderTopLeftRadius:Ne,borderTopRightRadius:Fe,borderTopStartRadius:Ie,borderTopWidth:ze,borderWidth:Ge,boxShadow:qe,elevation:Je,filter:Ke,mixBlendMode:Qe,opacity:Ue,shadowColor:Xe,shadowOffset:Ye,shadowOpacity:Ze,shadowRadius:$e,transform:er,transformOrigin:rr}=ae,tr=(e(ae,t),{backfaceVisibility:be,backgroundColor:he,borderBlockColor:ue,borderBlockEndColor:ce,borderBlockStartColor:fe,borderBottomColor:ge,borderBottomEndRadius:pe,borderBottomLeftRadius:me,borderBottomRightRadius:Ce,borderBottomStartRadius:Se,borderBottomWidth:ye,borderColor:Re,borderCurve:Be,borderEndColor:xe,borderEndEndRadius:we,borderEndStartRadius:Ee,borderEndWidth:ve,borderLeftColor:Oe,borderLeftWidth:je,borderRadius:ke,borderRightColor:Te,borderRightWidth:We,borderStartColor:He,borderStartEndRadius:Le,borderStartStartRadius:Pe,borderStartWidth:Me,borderStyle:Ve,borderTopColor:Ae,borderTopEndRadius:De,borderTopLeftRadius:Ne,borderTopRightRadius:Fe,borderTopStartRadius:Ie,borderTopWidth:ze,borderWidth:Ge,boxShadow:qe,elevation:Je,filter:Ke,mixBlendMode:Qe,opacity:Ue,shadowColor:Xe,shadowOffset:Ye,shadowOpacity:Ze,shadowRadius:$e,transform:er,transformOrigin:rr});for(const e in tr)void 0===tr[e]&&delete tr[e];const or=Object.assign({},I&&{backgroundColor:'transparent'},(I||!1===re)&&Object.assign({borderBottomWidth:0},c.Platform.select({android:{elevation:0},web:{boxShadow:'none'},default:{shadowOpacity:0}})),tr),dr=z??c.Platform.select({ios:l.primary,default:l.text}),ir=N?N({tintColor:dr,pressColor:te,pressOpacity:oe,displayMode:Y,titleLayout:H,screenLayout:L,canGoBack:Boolean(M),onPress:M?s.goBack:void 0,label:M?.title,labelStyle:Z,href:M?.href}):null,ar=q?q({tintColor:dr,pressColor:te,pressOpacity:oe,canGoBack:Boolean(M)}):null,nr='function'!=typeof A?e=>(0,b.jsx)(E.HeaderTitle,Object.assign({},e)):A;return(0,b.jsxs)(c.Animated.View,{style:[j.boxNone,{height:ne,minHeight:se,maxHeight:le,opacity:Ue,transform:er}],children:[(0,b.jsx)(c.Animated.View,{style:[c.StyleSheet.absoluteFill,j.boxNone,$],children:G?G({style:or}):(0,b.jsx)(y.HeaderBackground,{style:[{pointerEvents:I&&('transparent'===or.backgroundColor||or.backgroundColor&&0===(0,O.Color)(or.backgroundColor)?.alpha())?'none':'auto'},or]})}),(0,b.jsx)(c.View,{style:[j.pointerEventsNone,{height:de}]}),(0,b.jsxs)(c.View,{style:[j.content,null],children:[(0,b.jsx)(c.Animated.View,{style:[j.start,!T&&'center'===D&&j.expand,{marginStart:i.left},Q],children:ir}),T?null:(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(c.Animated.View,{style:[j.title,{maxWidth:'center'===D?L.width-2*((ir?'minimal'!==Y?80:32:16)+(ar||F?16:0)+Math.max(i.left,i.right)):L.width-((ir?52:16)+(ar||F?52:16)+i.left-i.right)},'left'===D&&ir?{marginStart:4}:{marginHorizontal:16},X],children:nr({children:V,allowFontScaling:J,tintColor:z,onLayout:e=>{const{height:t,width:o}=e.nativeEvent.layout;_(e=>e&&t===e.height&&o===e.width?e:{height:t,width:o})},style:K})}),(0,b.jsxs)(c.Animated.View,{style:[j.end,j.expand,{marginEnd:i.right},U],children:[ar,F?(0,b.jsx)(R.HeaderButton,{tintColor:dr,pressColor:te,pressOpacity:oe,onPress:()=>{W(!0),F?.onOpen?.()},children:(0,b.jsx)(B.HeaderIcon,{source:p.default,tintColor:dr})}):null]})]}),T?(0,b.jsx)(x.HeaderSearchBar,Object.assign({},F,{visible:T,onClose:()=>{W(!1),F?.onClose?.()},tintColor:z,style:[!ir&&{marginStart:8}]})):null]})]})};const b=r(d[1]),h=l(r(d[2])),u=r(d[2]),c=r(d[3]),f=r(d[4]),p=s(r(d[5])),m=r(d[6]),C=r(d[7]),S=r(d[8]),y=r(d[9]),R=r(d[10]),B=r(d[11]),x=r(d[12]),w=r(d[13]),E=r(d[14]),v=r(d[15]),O=r(d[16]);const j=c.StyleSheet.create({content:{flex:1,flexDirection:'row',alignItems:'stretch',pointerEvents:'box-none'},large:{marginHorizontal:5},title:{pointerEvents:'box-none',justifyContent:'center'},start:{pointerEvents:'box-none',flexDirection:'row',alignItems:'center',justifyContent:'flex-start'},end:{pointerEvents:'box-none',flexDirection:'row',alignItems:'center',justifyContent:'flex-end'},expand:{flexGrow:1,flexBasis:0},boxNone:{pointerEvents:'box-none'},pointerEventsNone:{pointerEvents:'none'}})},579,[19,6,11,220,17,561,119,580,581,585,582,583,586,587,589,577,564]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,i,u){void 0===u&&(u=i);var o=Object.getOwnPropertyDescriptor(n,i);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[i]}}),Object.defineProperty(t,u,o)}:function(t,n,i,u){void 0===u&&(u=i),t[u]=n[i]}),i=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),u=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[n.length]=i);return n},t(n)},function(u){if(u&&u.__esModule)return u;var o={};if(null!=u)for(var c=t(u),s=0;si.current),h=(0,f.default)(t=>(u.current.add(t),()=>{u.current.delete(t)})),b=(0,f.default)(t=>{let n,i=!1,u=!1;const o=h(()=>{clearTimeout(n),i=!0,u?n=setTimeout(()=>{i&&(i=!1,t())},100):(u=!0,setTimeout(function(){u=!1},100),i=!1,t())});return()=>{o(),clearTimeout(n)}}),m=s.useMemo(()=>({getCurrent:o,subscribe:h,subscribeThrottled:b}),[h,b,o]),_=(0,f.default)(t=>{i.current.height===t.height&&i.current.width===t.width||(i.current={width:t.width,height:t.height},u.current.forEach(t=>t()))}),p=s.useRef(null);s.useEffect(()=>{'web'!==l.Platform.OS&&p.current?.measure((t,n,i,u)=>{_({width:i,height:u})})},[_]);return(0,c.jsxs)(w.Provider,{value:m,children:['web'===l.Platform.OS?(0,c.jsx)(v,{onChange:_}):null,n({ref:p,onLayout:t=>{const{width:n,height:i}=t.nativeEvent.layout;_({width:n,height:i})}})]})};const c=r(d[0]),s=u(r(d[1])),h=r(d[1]),l=r(d[2]),f=o(r(d[3])),b=r(d[4]),w=s.createContext(void 0);function v({onChange:t}){const n=s.useRef(null);return s.useEffect(()=>{if(null==n.current)return;const i=n.current.getBoundingClientRect();t({width:i.width,height:i.height});const u=new ResizeObserver(n=>{const i=n[0];if(i){const{width:n,height:u}=i.contentRect;t({width:n,height:u})}});return u.observe(n.current),()=>{u.disconnect()}},[t]),(0,c.jsx)("div",{ref:n,style:{position:'absolute',left:0,right:0,top:0,bottom:0,pointerEvents:'none',visibility:'hidden'}})}},580,[6,11,220,123,208]); +__d(function(g,r,_i,a,_m,_e,d){"use strict";var e,t=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var l=Object.getOwnPropertyDescriptor(t,n);l&&!("get"in l?!t.__esModule:l.writable||l.configurable)||(l={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,l)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||(e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)},function(i){if(i&&i.__esModule)return i;var l={};if(null!=i)for(var o=e(i),s=0;s{_&&requestAnimationFrame(()=>_())},pressColor:w,pressOpacity:S,style:[j.container,I],children:(0,o.jsxs)(o.Fragment,{children:[n?n({tintColor:M??W.text}):(0,o.jsx)(f.HeaderIcon,{source:h.default,tintColor:M,style:[j.icon,'minimal'!==O&&j.iconWithLabel]}),(()=>{if('minimal'===O)return null;const e=k&&L?(L.width-k.width)/2-(p+f.ICON_MARGIN):null,s='default'===O?i:v,u=e&&E&&V?e>E?s:e>V?v:null:s,h=[A.regular,j.label,l],b=[h,{position:'absolute',top:0,left:0,opacity:0}],_=(0,o.jsxs)(c.View,{style:j.labelWrapper,children:[i&&'default'===O?(0,o.jsx)(c.Animated.Text,{style:b,numberOfLines:1,onLayout:e=>F(e.nativeEvent.layout.width),children:i}):null,v?(0,o.jsx)(c.Animated.Text,{style:b,numberOfLines:1,onLayout:e=>H(e.nativeEvent.layout.width),children:v}):null,u?(0,o.jsx)(c.Animated.Text,{accessible:!1,onLayout:x,style:[M?{color:M}:null,h],numberOfLines:1,allowFontScaling:!!t,children:u}):null]});return n||'ios'!==c.Platform.OS?_:(0,o.jsx)(y.MaskedView,{maskElement:(0,o.jsxs)(c.View,{style:[j.iconMaskContainer,L?{minWidth:L.width/2-27}:null],children:[(0,o.jsx)(c.Image,{source:m.default,resizeMode:"contain",style:[j.iconMask,'rtl'===B&&j.flip]}),(0,o.jsx)(c.View,{style:j.iconMaskFillerRect})]}),children:_})})()]})})};const o=r(d[0]),s=i(r(d[1])),c=r(d[2]),u=r(d[3]),f=r(d[4]),m=l(r(d[5])),h=l(r(d[6])),b=r(d[7]),y=r(d[8]);const p='ios'===c.Platform.OS?13:24,O='ios'===c.Platform.OS?22:3,j=c.StyleSheet.create({container:Object.assign({paddingHorizontal:0,minWidth:c.StyleSheet.hairlineWidth},c.Platform.select({ios:null,default:{marginVertical:3,marginHorizontal:11}})),label:{fontSize:17,letterSpacing:.35},labelWrapper:{flexDirection:'row',alignItems:'flex-start',marginEnd:f.ICON_MARGIN},icon:{width:p,marginEnd:O},iconWithLabel:'ios'===c.Platform.OS?{marginEnd:6}:{},iconMaskContainer:{flex:1,flexDirection:'row',justifyContent:'center'},iconMaskFillerRect:{flex:1,backgroundColor:'#000'},iconMask:{height:21,width:13,marginStart:-14.5,marginVertical:12,alignSelf:'center'},flip:{transform:'scaleX(-1)'}})},581,[6,11,220,582,583,557,558,119,584]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HeaderButton=void 0;const t=r(d[0]),o=r(d[1]),s=r(d[2]);e.HeaderButton=function({ref:c,disabled:f,onPress:u,pressColor:b,pressOpacity:p,accessibilityLabel:y,testID:P,style:h,href:_,children:v}){return(0,t.jsx)(s.PlatformPressable,{ref:c,disabled:f,href:_,"aria-label":y,testID:P,onPress:u,pressColor:b,pressOpacity:p,android_ripple:l,style:[n.container,f&&n.disabled,h],hitSlop:o.Platform.select({ios:void 0,default:{top:16,right:16,bottom:16,left:16}}),children:v})};const l={borderless:!0,foreground:'android'===o.Platform.OS&&o.Platform.Version>=23,radius:20},n=o.StyleSheet.create({container:{flexDirection:'row',alignItems:'center',paddingHorizontal:8,borderRadius:10,borderCurve:'continuous'},disabled:{opacity:.5}})},582,[6,220,574]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=r(d[0]).default;const o=["source","style"];Object.defineProperty(e,"__esModule",{value:!0}),e.ICON_MARGIN=e.ICON_SIZE=void 0,e.HeaderIcon=function(I){let{source:u,style:O}=I,_=t(I,o);const{colors:f}=(0,n.useTheme)(),{direction:N}=(0,n.useLocale)();return(0,s.jsx)(c.Image,Object.assign({source:u,resizeMode:"contain",fadeDuration:0,tintColor:f.text,style:[l.icon,'rtl'===N&&l.flip,O]},_))};const s=r(d[1]),c=r(d[2]),n=r(d[3]);e.ICON_SIZE='ios'===c.Platform.OS?21:24,e.ICON_MARGIN='ios'===c.Platform.OS?8:3;const l=c.StyleSheet.create({icon:{width:e.ICON_SIZE,height:e.ICON_SIZE,margin:e.ICON_MARGIN},flip:{transform:'scaleX(-1)'}})},583,[19,6,220,119]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MaskedView=function({children:n}){return n}},584,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=r(d[0]).default;const o=["style"];Object.defineProperty(e,"__esModule",{value:!0}),e.HeaderBackground=function(h){let{style:u}=h,b=t(h,o);const{colors:f,dark:y}=(0,l.useTheme)();return(0,s.jsx)(n.Animated.View,Object.assign({style:[c.container,Object.assign({backgroundColor:f.card,borderBottomColor:f.border},'ios'===n.Platform.OS&&{shadowColor:y?'rgba(255, 255, 255, 0.45)':'rgba(0, 0, 0, 1)'}),u]},b))};const s=r(d[1]),n=r(d[2]),l=r(d[3]);const c=n.StyleSheet.create({container:Object.assign({flex:1},n.Platform.select({android:{elevation:4},ios:{shadowOpacity:.3,shadowRadius:0,shadowOffset:{width:0,height:n.StyleSheet.hairlineWidth}},default:{borderBottomWidth:n.StyleSheet.hairlineWidth}}))})},585,[19,6,220,119]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t=r(d[0]).default;const o=["ref","visible","inputType","autoFocus","autoCapitalize","placeholder","cancelButtonText","enterKeyHint","onChangeText","onClose","tintColor","style"];var n,l=this&&this.__createBinding||(Object.create?function(t,o,n,l){void 0===l&&(l=n);var i=Object.getOwnPropertyDescriptor(o,n);i&&!("get"in i?!o.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return o[n]}}),Object.defineProperty(t,l,i)}:function(t,o,n,l){void 0===l&&(l=n),t[l]=o[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,o){Object.defineProperty(t,"default",{enumerable:!0,value:o})}:function(t,o){t.default=o}),s=this&&this.__importStar||(n=function(t){return n=Object.getOwnPropertyNames||function(t){var o=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(o[o.length]=n);return o},n(t)},function(t){if(t&&t.__esModule)return t;var o={};if(null!=t)for(var s=n(t),c=0;cnew p.Animated.Value(i?1:0)),[q]=f.useState(()=>new p.Animated.Value(0)),G=f.useRef(i),J=f.useRef(!1),Q=f.useRef(null);f.useEffect(()=>{if(i!==G.current)return p.Animated.timing(W,{toValue:i?1:0,duration:100,useNativeDriver:_}).start(({finished:t})=>{t&&(L(i),G.current=i)}),()=>{W.stopAnimation()}},[i,W]);const U=''!==R;f.useEffect(()=>{J.current!==U&&p.Animated.timing(q,{toValue:U?1:0,duration:100,useNativeDriver:_}).start(({finished:t})=>{t&&(J.current=U)})},[q,U]);const X=f.useCallback(()=>{Q.current?.clear(),Q.current?.focus(),F('')},[]),Y=f.useCallback(()=>{X(),z?.({nativeEvent:{text:''}})},[X,z]),Z=f.useCallback(()=>{Y(),I()},[Y,I]);if(f.useEffect(()=>V?.addListener('blur',Z),[Z,V]),f.useImperativeHandle(l,()=>({focus:()=>{Q.current?.focus()},blur:()=>{Q.current?.blur()},setText:t=>{Q.current?.setNativeProps({text:t}),F(t)},clearText:X,cancelSearch:Z}),[Z,X]),!i&&!K)return null;const $=D??E.text;return(0,u.jsxs)(p.Animated.View,{"aria-live":"polite","aria-hidden":!i,style:[O.container,{pointerEvents:i?'auto':'none',opacity:W},M],children:[(0,u.jsxs)(p.View,{style:O.searchbarContainer,children:[(0,u.jsx)(P.HeaderIcon,{source:b.default,tintColor:$,style:O.inputSearchIcon}),(0,u.jsx)(p.TextInput,Object.assign({},A,{ref:Q,onChange:z,onChangeText:F,autoFocus:c,autoCapitalize:'systemDefault'===T?void 0:T,inputMode:S[s??'text'],enterKeyHint:w,placeholder:B,placeholderTextColor:(0,y.Color)($)?.alpha(.5).string(),cursorColor:E.primary,selectionHandleColor:E.primary,selectionColor:(0,y.Color)(E.primary)?.alpha(.3).string(),style:[N.regular,O.searchbar,{backgroundColor:p.Platform.select({ios:k?'rgba(255, 255, 255, 0.1)':'rgba(0, 0, 0, 0.1)',default:'transparent'}),color:$,borderBottomColor:(0,y.Color)($)?.alpha(.2).string()??(k?'rgba(255, 255, 255, 0.2)':'rgba(0, 0, 0, 0.2)')}]})),'ios'===p.Platform.OS?(0,u.jsx)(x.PlatformPressable,{onPress:Y,style:[{opacity:q,transform:[{scale:q}]},O.clearButton],children:(0,u.jsx)(p.Image,{source:h.default,resizeMode:"contain",tintColor:$,style:O.clearIcon})}):null]}),'ios'!==p.Platform.OS?(0,u.jsx)(v.HeaderButton,{onPress:()=>{R?Y():I()},style:O.closeButton,children:(0,u.jsx)(P.HeaderIcon,{source:m.default,tintColor:$})}):null,'ios'===p.Platform.OS?(0,u.jsx)(x.PlatformPressable,{onPress:Z,style:O.cancelButton,children:(0,u.jsx)(C.Text,{style:[N.regular,{color:D??E.primary},O.cancelText],children:H})}):null]})}},586,[19,6,11,220,559,560,561,564,574,575,582,583,119]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HeaderShownContext=void 0;const t=r(d[0]);e.HeaderShownContext=(0,t.getNamedContext)('HeaderShownContext',!1)},587,[588]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,i,o){void 0===o&&(o=i);var u=Object.getOwnPropertyDescriptor(n,i);u&&!("get"in u?!n.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return n[i]}}),Object.defineProperty(t,o,u)}:function(t,n,i,o){void 0===o&&(o=i),t[o]=n[i]}),i=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),o=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[n.length]=i);return n},t(n)},function(o){if(o&&o.__esModule)return o;var u={};if(null!=o)for(var l=t(o),c=0;c{if(!1===o)return;const t=requestIdleCallback(()=>{l(!0)});return()=>cancelIdleCallback(t)},[o]),n&&!1===i)return l(!0),u;if(i)return u;return null};const c=i(r(d[0]))},595,[11]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MissingIcon=function({color:n,size:s,style:l}){return(0,t.jsx)(o.Text,{style:[c.icon,{color:n,fontSize:s},l],children:"\u23f7"})};const t=r(d[0]),n=r(d[1]),o=r(d[2]);const c=n.StyleSheet.create({icon:{backgroundColor:'transparent'}})},596,[6,220,575]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=r(d[0]).default;const n=["visible","children","style"];Object.defineProperty(e,"__esModule",{value:!0}),e.ResourceSavingView=function(c){let{visible:f,children:u,style:h}=c,v=t(c,n);if('web'===l.Platform.OS)return(0,o.jsx)(l.View,Object.assign({hidden:!f,style:[{pointerEvents:f?'auto':'none',display:f?'flex':'none'},s.container,h]},v,{children:u}));return(0,o.jsx)(l.View,{style:[{pointerEvents:f?'auto':'none'},s.container,h],children:(0,o.jsx)(l.View,{collapsable:!1,removeClippedSubviews:'ios'!==l.Platform.OS&&'macos'!==l.Platform.OS||!f,style:[{pointerEvents:f?'auto':'none'},f?s.attached:s.detached],children:u})})};const o=r(d[1]),l=r(d[2]);const s=l.StyleSheet.create({container:{flex:1,overflow:'hidden'},attached:{flex:1},detached:{flex:1,top:3e4}})},597,[19,6,220]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SafeAreaProviderCompat=u;const t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),c=r(d[4]);const{width:h,height:l}=(function(){if('web'===o.Platform.OS)return{width:0,height:0};const{width:t=0,height:n=0}=o.Dimensions.get('window');return{width:t,height:n}})(),f='web'===o.Platform.OS||null==s.initialWindowMetrics?{frame:{x:0,y:0,width:h,height:l},insets:{top:0,left:0,right:0,bottom:0}}:s.initialWindowMetrics;function u({children:h,style:l}){const u=(0,n.use)(s.SafeAreaInsetsContext);return(0,t.jsx)(c.FrameSizeProvider,{initialFrame:f.frame,render:({ref:n,onLayout:c})=>u?(0,t.jsx)(o.View,{ref:n,onLayout:c,style:[w.container,l],children:h}):(0,t.jsx)(s.SafeAreaProvider,{initialMetrics:f,style:l,onLayout:c,children:h})})}u.initialMetrics=f;const w=o.StyleSheet.create({container:{flex:1}})},598,[6,11,220,17,580]); +__d(function(g,r,_i,a,_m,_e,d){"use strict";var e,t=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||(e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)},function(o){if(o&&o.__esModule)return o;var i={};if(null!=o)for(var u=e(o),l=0;l(0,p.getDefaultHeaderHeight)(e,_,H)),D=u.useRef(null),[E,z]=u.useState(B);return u.useLayoutEffect(()=>{D.current?.measure((e,t,n,o)=>{z(o)})},[m.name]),(0,i.jsxs)(f.Background,{"aria-hidden":!x,style:[j.container,M],collapsable:!1,children:[S?(0,i.jsx)(h.NavigationProvider,{route:m,navigation:P,children:(0,i.jsx)(s.View,{ref:D,onLayout:e=>{const{height:t}=e.nativeEvent.layout;z(t)},style:[j.header,w?j.absolute:null],children:O})}):null,(0,i.jsx)(s.View,{style:j.content,children:(0,i.jsx)(b.HeaderShownContext.Provider,{value:n||!1!==S,children:(0,i.jsx)(v.HeaderHeightContext.Provider,{value:S?E:o??0,children:C})})})]})};const i=r(d[0]),u=o(r(d[1])),l=r(d[1]),s=r(d[2]),c=r(d[3]),h=r(d[4]),f=r(d[5]),v=r(d[6]),b=r(d[7]),p=r(d[8]),y=r(d[9]);const j=s.StyleSheet.create({container:{flex:1},content:{flex:1},header:{zIndex:1,pointerEvents:'box-none'},absolute:{position:'absolute',top:0,start:0,end:0}})},599,[6,11,220,17,119,562,591,587,577,580]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},600,[]); +__d(function(g,r,_i,a,_m,_e,d){"use strict";var t,e=this&&this.__createBinding||(Object.create?function(t,e,i,o){void 0===o&&(o=i);var n=Object.getOwnPropertyDescriptor(e,i);n&&!("get"in n?!e.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,o,n)}:function(t,e,i,o){void 0===o&&(o=i),t[o]=e[i]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||(t=function(e){return t=Object.getOwnPropertyNames||function(t){var e=[];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[e.length]=i);return e},t(e)},function(o){if(o&&o.__esModule)return o;var n={};if(null!=o)for(var s=t(o),l=0;l{R.current=_});const[K,Y]=s.default.useState(!N),[q]=s.default.useState(()=>new l.Animated.Value(N?1:0));s.default.useEffect(()=>{const t=R.current;if(N){('spring'===t?.show?.animation?l.Animated.spring:l.Animated.timing)(q,Object.assign({toValue:1,useNativeDriver:y,duration:250},t?.show?.config)).start(({finished:t})=>{t&&Y(!1)})}else{Y(!0);('spring'===t?.hide?.animation?l.Animated.spring:l.Animated.timing)(q,Object.assign({toValue:0,useNativeDriver:y,duration:200},t?.hide?.config)).start()}return()=>q.stopAnimation()},[q,N]);const[G,J]=s.default.useState({height:0}),{routes:Q}=t,U=(0,c.useFrameSize)(e=>(0,_e.getTabBarHeight)({state:t,descriptors:i,insets:o,dimensions:e,style:[W,w]})),X=(0,c.useFrameSize)(e=>B({state:t,descriptors:i,dimensions:e})),Z=(0,c.useFrameSize)(e=>v({state:t,descriptors:i,dimensions:e})),$='left'===j||'right'===j,tt='material'===I?p:f,et=(0,c.useFrameSize)(t=>$&&X?(0,c.getDefaultSidebarWidth)(t):0),it=D?.();return(0,n.jsxs)(l.Animated.View,{style:[{pointerEvents:K?'none':'auto'},'left'===j?S.start:'right'===j?S.end:S.bottom,'right'===j?{borderLeftWidth:l.StyleSheet.hairlineWidth}:'left'===j?{borderRightWidth:l.StyleSheet.hairlineWidth}:'top'===j?{borderBottomWidth:l.StyleSheet.hairlineWidth}:{borderTopWidth:l.StyleSheet.hairlineWidth},{backgroundColor:null!=it?'transparent':k.card,borderColor:k.border},$?{paddingTop:(X?tt:tt/2)+o.top,paddingBottom:(X?tt:tt/2)+o.bottom,paddingStart:tt+('left'===j?o.left:0),paddingEnd:tt+('right'===j?o.right:0),minWidth:et}:[{transform:[{translateY:q.interpolate({inputRange:[0,1],outputRange:[G.height+o['top'===j?'top':'bottom']+l.StyleSheet.hairlineWidth,0]})}],position:K?'absolute':void 0},{height:U,paddingBottom:'bottom'===j?o.bottom:0,paddingTop:'top'===j?o.top:0,paddingHorizontal:Math.max(o.left,o.right)}],W],onLayout:$?void 0:t=>{const{height:e}=t.nativeEvent.layout;M?.(e),J(t=>e===t.height?t:{height:e})},children:[(0,n.jsx)(l.View,{style:[l.StyleSheet.absoluteFill,S.pointerEventsNone],children:it}),(0,n.jsx)(l.View,{role:"tablist",style:$?S.sideContent:S.bottomContent,children:Q.map((o,s)=>{const l=s===t.index,{options:h}=i[o.key],m='function'==typeof h.tabBarLabel?h.tabBarLabel:(0,c.getLabel)({label:h.tabBarLabel,title:h.title},o.name),f=void 0!==h.tabBarAccessibilityLabel?h.tabBarAccessibilityLabel:void 0;return(0,n.jsx)(u.NavigationProvider,{route:o,navigation:i[o.key].navigation,children:(0,n.jsx)(b.BottomTabItem,{href:x(o.name,o.params),route:o,descriptor:i[o.key],focused:l,horizontal:X,compact:Z,sidebar:$,variant:I,onPress:()=>{const i=e.emit({type:'tabPress',target:o.key,canPreventDefault:!0});l||i.defaultPrevented||e.dispatch(Object.assign({},u.CommonActions.navigate(o),{target:t.key}))},onLongPress:()=>{e.emit({type:'tabLongPress',target:o.key})},accessibilityLabel:f,testID:h.tabBarButtonTestID,allowFontScaling:h.tabBarAllowFontScaling,activeTintColor:E,inactiveTintColor:V,activeBackgroundColor:z,inactiveBackgroundColor:F,button:h.tabBarButton,icon:h.tabBarIcon??(({color:t,size:e})=>(0,n.jsx)(c.MissingIcon,{color:t,size:e})),badge:h.tabBarBadge,badgeStyle:h.tabBarBadgeStyle,label:m,showLabel:T,labelStyle:h.tabBarLabelStyle,iconStyle:h.tabBarIconStyle,style:[$?{marginVertical:X?'material'===I?0:1:tt/2}:S.bottomItem,h.tabBarItemStyle]})},o.key)})})]})};const n=r(d[0]),s=o(r(d[1])),l=r(d[2]),b=r(d[3]),c=r(d[4]),u=r(d[5]),h=r(d[6]),m=r(d[7]),f=15,p=12,y=!1,B=({state:t,descriptors:e,dimensions:i})=>{const{tabBarLabelPosition:o}=e[t.routes[t.index].key].options;if(o)switch(o){case'beside-icon':return!0;case'below-icon':return!1}if(i.width>=768){return t.routes.reduce((t,i)=>{const{tabBarItemStyle:o}=e[i.key].options,n=l.StyleSheet.flatten(o);if(n){if('number'==typeof n.width)return t+n.width;if('number'==typeof n.maxWidth)return t+n.maxWidth}return t+125},0)<=i.width}return i.width>i.height},v=({state:t,descriptors:e,dimensions:i})=>{const{tabBarPosition:o,tabBarVariant:n}=e[t.routes[t.index].key].options;if('left'===o||'right'===o||'material'===n)return!1;const s=i.width>i.height,b=B({state:t,descriptors:e,dimensions:i});return!('ios'!==l.Platform.OS||l.Platform.isPad||!s||!b)};_e.getTabBarHeight=({state:t,descriptors:e,dimensions:i,insets:o,style:n})=>{const{tabBarPosition:s}=e[t.routes[t.index].key].options,b=l.StyleSheet.flatten(n),c=b&&'height'in b?b.height:void 0;if('number'==typeof c)return c;const u=o['top'===s?'top':'bottom'];return v({state:t,descriptors:e,dimensions:i})?32+u:49+u};const S=l.StyleSheet.create({start:{top:0,bottom:0,start:0},end:{top:0,bottom:0,end:0},bottom:{start:0,end:0,bottom:0,elevation:8},bottomContent:{flex:1,flexDirection:'row'},sideContent:{flex:1,flexDirection:'column'},bottomItem:{flex:1},pointerEventsNone:{pointerEvents:'none'}})},601,[6,11,220,602,556,119,604,605]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BottomTabItem=function({route:p,href:S,focused:y,descriptor:h,label:C,icon:v,badge:x,badgeStyle:B,button:w=b,accessibilityLabel:U,testID:k,onPress:j,onLongPress:V,horizontal:I,compact:L,sidebar:P,variant:z,activeTintColor:K,inactiveTintColor:M,activeBackgroundColor:T,inactiveBackgroundColor:D="transparent",showLabel:O=!0,allowFontScaling:_=!u&&void 0,labelStyle:F,iconStyle:H,style:E}){const{colors:R,fonts:q}=(0,c.useTheme)(),A=K??('uikit'===z&&P&&I?(0,n.Color)(R.primary)?.isDark()?'white':(0,n.Color)(R.primary)?.darken(.71).string():void 0)??R.primary,G=M??('material'===z?(0,n.Color)(R.text)?.alpha(.68).string():(0,n.Color)(R.text)?.alpha(.5).string())??R.text,J=T??('material'===z?(0,n.Color)(A)?.alpha(.12).string():P&&I?R.primary:'transparent')??'transparent',{options:N}=h,Q=(0,s.getLabel)({label:'string'==typeof N.tabBarLabel?N.tabBarLabel:void 0,title:N.title},p.name);let W=G,X=G;'uikit'===z&&P&&I&&void 0===M&&(X=R.primary,W=R.text);const Y={route:p,focused:y},Z=y?J:D,{flex:$}=l.StyleSheet.flatten(E||{}),ee='material'===z?I?56:16:P&&I?10:0;return(0,t.jsx)(l.View,{style:[{borderRadius:ee,overflow:'material'===z?'hidden':'visible'},E],children:w({href:S,onPress:j,onLongPress:V,testID:k,'aria-label':U,accessibilityLargeContentTitle:Q,accessibilityShowsLargeContentViewer:!0,role:l.Platform.select({ios:'button',default:'tab'}),'aria-selected':y,android_ripple:{borderless:!0},hoverEffect:'material'===z||P&&I?{color:R.text}:void 0,pressOpacity:1,style:[f.tab,{flex:$,backgroundColor:Z,borderRadius:ee},P?'material'===z?I?f.tabBarSidebarMaterial:f.tabVerticalMaterial:I?f.tabBarSidebarUiKit:f.tabVerticalUiKit:'material'===z?f.tabVerticalMaterial:I?f.tabHorizontalUiKit:f.tabVerticalUiKit],children:(0,t.jsxs)(t.Fragment,{children:[(({focused:l})=>{if(void 0===v)return null;const n=l?1:0,s=l?0:1;return(0,t.jsx)(o.TabBarIcon,{route:p,variant:z,size:L?'compact':'regular',badge:x,badgeStyle:B,activeOpacity:n,allowFontScaling:_,inactiveOpacity:s,activeTintColor:A,inactiveTintColor:X,renderIcon:v,style:H})})(Y),(({focused:l})=>{if(!1===O)return null;const o=l?A:W;return'string'!=typeof C?C({focused:l,color:o,position:I?'beside-icon':'below-icon',children:Q}):(0,t.jsx)(s.Label,{style:[I?[f.labelBeside,'material'===z?f.labelSidebarMaterial:P?f.labelSidebarUiKit:L?f.labelBesideUikitCompact:f.labelBesideUikit,null==v&&{marginStart:0}]:f.labelBeneath,L||'uikit'===z&&P&&I?q.regular:q.medium,F],allowFontScaling:_,tintColor:o,children:C})})(Y)]})})})};const t=r(d[0]),l=r(d[1]),o=r(d[2]),n=r(d[3]),s=r(d[4]),c=r(d[5]),b=l=>(0,t.jsx)(s.PlatformPressable,Object.assign({},l)),u='ios'===l.Platform.OS&&parseInt(l.Platform.Version,10)>=13;const f=l.StyleSheet.create({tab:{alignItems:'center',borderRadius:10,borderCurve:'continuous'},tabVerticalUiKit:{justifyContent:'flex-start',flexDirection:'column',padding:5},tabVerticalMaterial:{padding:10},tabHorizontalUiKit:{justifyContent:'center',alignItems:'center',flexDirection:'row',padding:5},tabBarSidebarUiKit:{justifyContent:'flex-start',alignItems:'center',flexDirection:'row',paddingVertical:7,paddingHorizontal:5},tabBarSidebarMaterial:{justifyContent:'flex-start',alignItems:'center',flexDirection:'row',paddingVertical:15,paddingStart:16,paddingEnd:24},labelSidebarMaterial:{marginStart:12},labelSidebarUiKit:{fontSize:17,marginStart:10},labelBeneath:{fontSize:10},labelBeside:{marginEnd:12,lineHeight:24},labelBesideUikit:{fontSize:13,marginStart:5},labelBesideUikitCompact:{fontSize:12,marginStart:5}})},602,[6,220,603,564,556,119]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TabBarIcon=function({route:h,variant:w,size:u,badge:y,badgeStyle:b,activeOpacity:f,inactiveOpacity:v,activeTintColor:j,inactiveTintColor:S,renderIcon:C,allowFontScaling:k,style:x}){const z='material'===w?s:'compact'===u?l:n;return(0,t.jsxs)(o.View,{style:['material'===w?p.wrapperMaterial:'compact'===u?p.wrapperUikitCompact:p.wrapperUikit,x],children:[(0,t.jsx)(o.View,{style:[p.icon,{opacity:f,minWidth:z}],children:C({focused:!0,size:z,color:j})}),(0,t.jsx)(o.View,{style:[p.icon,{opacity:v}],children:C({focused:!1,size:z,color:S})}),(0,t.jsx)(c.Badge,{visible:null!=y,size:.75*z,allowFontScaling:k,style:[p.badge,b],children:y})]})};const t=r(d[0]),o=r(d[1]),c=r(d[2]),n=25,l=18,s=24;const p=o.StyleSheet.create({icon:{position:'absolute',alignSelf:'center',alignItems:'center',justifyContent:'center',height:'100%',width:'100%'},wrapperUikit:{width:31,height:28},wrapperUikitCompact:{width:23,height:20},wrapperMaterial:{width:s,height:s},badge:{position:'absolute',end:-3,top:-3}})},603,[6,220,556]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,o,i){void 0===i&&(i=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&!("get"in u?!n.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,i,u)}:function(t,n,o,i){void 0===i&&(i=o),t[i]=n[o]}),o=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),i=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[n.length]=o);return n},t(n)},function(i){if(i&&i.__esModule)return i;var u={};if(null!=i)for(var c=t(i),l=0;l{const t=()=>n(!0),o=()=>n(!1);let i;return i='ios'===c.Platform.OS?[c.Keyboard.addListener('keyboardWillShow',t),c.Keyboard.addListener('keyboardWillHide',o)]:[c.Keyboard.addListener('keyboardDidShow',t),c.Keyboard.addListener('keyboardDidHide',o)],()=>{i.forEach(t=>t.remove())}},[]),t};const u=i(r(d[0])),c=r(d[1])},605,[11,220]); +__d(function(g,r,i,a,m,_e,d){"use strict";var e=r(d[0]).default;const n=["enabled"],t=["enabled","active"];Object.defineProperty(_e,"__esModule",{value:!0}),_e.MaybeScreenContainer=void 0,_e.MaybeScreen=function(n){let{enabled:l,active:o}=n,j=e(n,t);if(b?.screensEnabled?.())return(0,c.jsx)(b.Screen,Object.assign({enabled:l,activityState:o},j));return(0,c.jsx)(s.View,Object.assign({},j))};const c=r(d[1]),s=r(d[2]);let b;try{b=r(d[3],"react-native-screens")}catch(e){}_e.MaybeScreenContainer=t=>{let{enabled:l}=t,o=e(t,n);return b?.screensEnabled?.()?(0,c.jsx)(b.ScreenContainer,Object.assign({enabled:l},o)):(0,c.jsx)(s.View,Object.assign({},o))}},606,[19,6,220,607]); +__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,"enableScreens",{enumerable:!0,get:function(){return t.enableScreens}}),Object.defineProperty(_e,"enableFreeze",{enumerable:!0,get:function(){return t.enableFreeze}}),Object.defineProperty(_e,"screensEnabled",{enumerable:!0,get:function(){return t.screensEnabled}}),Object.defineProperty(_e,"freezeEnabled",{enumerable:!0,get:function(){return t.freezeEnabled}}),Object.defineProperty(_e,"Screen",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(_e,"InnerScreen",{enumerable:!0,get:function(){return n.InnerScreen}}),Object.defineProperty(_e,"ScreenContext",{enumerable:!0,get:function(){return n.ScreenContext}}),Object.defineProperty(_e,"ScreenStackHeaderConfig",{enumerable:!0,get:function(){return u.ScreenStackHeaderConfig}}),Object.defineProperty(_e,"ScreenStackHeaderSubview",{enumerable:!0,get:function(){return u.ScreenStackHeaderSubview}}),Object.defineProperty(_e,"ScreenStackHeaderLeftView",{enumerable:!0,get:function(){return u.ScreenStackHeaderLeftView}}),Object.defineProperty(_e,"ScreenStackHeaderCenterView",{enumerable:!0,get:function(){return u.ScreenStackHeaderCenterView}}),Object.defineProperty(_e,"ScreenStackHeaderRightView",{enumerable:!0,get:function(){return u.ScreenStackHeaderRightView}}),Object.defineProperty(_e,"ScreenStackHeaderBackButtonImage",{enumerable:!0,get:function(){return u.ScreenStackHeaderBackButtonImage}}),Object.defineProperty(_e,"ScreenStackHeaderSearchBarView",{enumerable:!0,get:function(){return u.ScreenStackHeaderSearchBarView}}),Object.defineProperty(_e,"SearchBar",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(_e,"ScreenContainer",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(_e,"ScreenStack",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(_e,"ScreenStackItem",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(_e,"FullWindowOverlay",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(_e,"ScreenFooter",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(_e,"ScreenContentWrapper",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(_e,"isSearchBarAvailableForCurrentPlatform",{enumerable:!0,get:function(){return P.isSearchBarAvailableForCurrentPlatform}}),Object.defineProperty(_e,"executeNativeBackPress",{enumerable:!0,get:function(){return P.executeNativeBackPress}}),Object.defineProperty(_e,"compatibilityFlags",{enumerable:!0,get:function(){return O.compatibilityFlags}}),Object.defineProperty(_e,"featureFlags",{enumerable:!0,get:function(){return O.featureFlags}}),Object.defineProperty(_e,"useTransitionProgress",{enumerable:!0,get:function(){return j.default}}),r(d[0]);var t=r(d[1]),n=r(d[2]),c=e(n),u=r(d[3]),o=e(r(d[4])),f=e(r(d[5])),b=e(r(d[6])),l=e(r(d[7])),S=e(r(d[8])),p=e(r(d[9])),y=e(r(d[10])),P=r(d[11]),O=r(d[12]),j=e(r(d[13])),s=r(d[14]);Object.keys(s).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return s[e]}})})},607,[608,609,610,611,612,613,614,615,625,620,618,626,622,627,629]); +__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={}},608,[]); +__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"isNativePlatformSupported",{enumerable:!0,get:function(){return t}}),_e.enableScreens=function(e=!0){return void(u=e)},_e.enableFreeze=function(e=!0){return},_e.screensEnabled=function(){return u},_e.freezeEnabled=function(){return o},r(d[0]);var e,n=r(d[1]);(e=n)&&e.__esModule;const t=!1;let u=t;let o=!1},609,[235,98]); +__d(function(g,_r,i,a,m,_e,d){"use strict";const e=["active","activityState","style","enabled"];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}}),Object.defineProperty(_e,"InnerScreen",{enumerable:!0,get:function(){return f}}),Object.defineProperty(_e,"NativeScreen",{enumerable:!0,get:function(){return s}}),Object.defineProperty(_e,"ScreenContext",{enumerable:!0,get:function(){return p}});var n=t(_r(d[0])),r=t(_r(d[1])),l=t(_r(d[2])),u=t(_r(d[3])),c=_r(d[4]);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;tn.default.createElement(r.default,null,n.default.createElement(t.default,u({resizeMode:"center",fadeDuration:0},e))),l=e=>n.default.createElement(r.default,e),f=e=>n.default.createElement(r.default,e),o=e=>n.default.createElement(r.default,e),b=e=>n.default.createElement(r.default,e),S=e=>n.default.createElement(r.default,e),p=r.default},611,[290,85,11]); +__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},612,[85]); +__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},613,[85]); +__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},614,[85]); +__d(function(g,_r,i,a,m,_e,_d){"use strict";const e=["children","headerConfig","activityState","shouldFreeze","stackPresentation","sheetAllowedDetents","contentStyle","style","screenId","onHeaderHeightChange","scrollEdgeEffects","unstable_sheetFooter"];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 S}});var n=t(_r(_d[0])),r=(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[1]));_r(_d[2]);var l=t(_r(_d[3])),o=t(_r(_d[4])),s=t(_r(_d[5])),c=_r(_d[6]),u=t(_r(_d[7])),d=t(_r(_d[8])),f=_r(_d[9]),h=_r(_d[10]),p=_r(_d[11]);_r(_d[12]);var b=_r(_d[13]),v=_r(_d[14]);function E(){return E=Object.assign?Object.assign.bind():function(e){for(var t=1;tM.current);const B=A??'push',V=k?.hidden??!1,W='push'!==B&&!1===V,U=r.useRef(V);r.useEffect(()=>{(0,o.default)('push'!==B&&U.current!==V,"Dynamically changing header's visibility in modals will result in remounting the screen and losing all local state."),U.current=V},[V,B]);const q=void 0===x||Object.values(x).some(e=>'hidden'!==e),G=void 0!==k?.blurEffect&&'none'!==k.blurEffect;(0,o.default)(q&&G&&b.isIOS26OrHigher,'[RNScreens] Using both `blurEffect` and `scrollEdgeEffects` simultaneously may cause overlapping effects.');const J=C(P,B);let K;const Q=b.isIOS26OrHigher,X=r.createElement(r.Fragment,null,r.createElement(v.EdgeInsetApplicationContext.Provider,{value:L},r.createElement(s.default,{contentStyle:_,style:J,stackPresentation:B},Q?r.createElement(p.SafeAreaView,{edges:H(k)},S):S)),r.createElement(c.ScreenStackHeaderConfig,k),'formSheet'===B&&N&&r.createElement(h.FooterComponent,null,N()));return r.createElement(u.default,E({ref:e=>{if(M.current=e,null===T)return void console.warn('Looks like RNSScreensRefContext is missing. Make sure the ScreenStack component is wrapped in it');const t=T.current;null===e?delete t[R]:t[R]={current:e}},enabled:!0,isNativeStack:!0,activityState:I,shouldFreeze:w,screenId:R,stackPresentation:B,hasLargeHeader:k?.largeTitle??!1,sheetAllowedDetents:P,style:[F,K],scrollEdgeEffects:W?void 0:x,onHeaderHeightChange:W?void 0:j},D),W?r.createElement(d.default,{style:O.container},r.createElement(u.default,{enabled:!0,isNativeStack:!0,activityState:I,shouldFreeze:w,hasLargeHeader:k?.largeTitle??!1,scrollEdgeEffects:x,style:l.default.absoluteFill,onHeaderHeightChange:j},X)):X)}var S=r.forwardRef(y);function C(e,t){return'formSheet'!==t?O.container:'fitToContents'===e?O.absoluteWithNoBottom:O.container}function H(e){return{}}const O=l.default.create({container:{flex:1},absoluteWithNoBottom:{position:'absolute',top:0,start:0,end:0}})},615,[19,11,235,23,616,617,611,610,614,619,620,621,622,623,624]); +__d(function(g,r,i,a,m,e,d){new Set;m.exports=function(n,...t){}},616,[]); +__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 c}});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};function c(e){return t.createElement(u.default,e)}},617,[11,618]); +__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},618,[85]); +__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"GHContext",{enumerable:!0,get:function(){return u}}),Object.defineProperty(_e,"RNSScreensRefContext",{enumerable:!0,get:function(){return l}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e};const u=n.default.createContext(e=>n.default.createElement(n.default.Fragment,null,e.children)),l=n.default.createContext(null)},619,[11]); +__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 f}}),Object.defineProperty(_e,"FooterComponent",{enumerable:!0,get:function(){return o}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e};const u=n.default,o=n.default;var f=u},620,[85]); +__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"SafeAreaView",{enumerable:!0,get:function(){return u}});var e,t=r(d[0]);const u=((e=t)&&e.__esModule?e:{default:e}).default},621,[85]); +__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}}),Object.defineProperty(e,"compatibilityFlags",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"featureFlags",{enumerable:!0,get:function(){return U}});const t=!0,n=!0,s=!0,o=!1,c=!0,u=!1,l={isNewBackTitleImplementation:!0,usesHeaderFlexboxImplementation:!0,usesNewAndroidHeaderHeightImplementation:!0,usesStableTabsApi:!0},b={experiment:{synchronousScreenUpdatesEnabled:t,synchronousHeaderConfigUpdatesEnabled:n,synchronousHeaderSubviewUpdatesEnabled:s,androidLegacyTopInsetBehavior:o,androidResetScreenShadowStateOnOrientationChangeEnabled:c},stable:{debugLogging:u}},h=(t,n)=>({get:()=>b.experiment[t],set(s){s!==b.experiment[t]&&b.experiment[t]!==n&&console.error(`[RNScreens] ${t} feature flag modified for a second time; this might lead to unexpected effects`),b.experiment[t]=s}}),p=h('synchronousScreenUpdatesEnabled',t),f=h('synchronousHeaderConfigUpdatesEnabled',n),S=h('synchronousHeaderSubviewUpdatesEnabled',s),y=h('androidLegacyTopInsetBehavior',o),E=h('androidResetScreenShadowStateOnOrientationChangeEnabled',c),O=(v='debugLogging',w=u,{get:()=>b.stable[v],set(t){t!==b.stable[v]&&b.stable[v]!==w&&console.error(`[RNScreens] ${v} feature flag modified for a second time; this might lead to unexpected effects`),b.stable[v]=t}});var v,w;const U={experiment:{get synchronousScreenUpdatesEnabled(){return p.get()},set synchronousScreenUpdatesEnabled(t){p.set(t)},get synchronousHeaderConfigUpdatesEnabled(){return f.get()},set synchronousHeaderConfigUpdatesEnabled(t){f.set(t)},get synchronousHeaderSubviewUpdatesEnabled(){return S.get()},set synchronousHeaderSubviewUpdatesEnabled(t){S.set(t)},get androidLegacyTopInsetBehavior(){return y.get()},set androidLegacyTopInsetBehavior(t){y.set(t)},get androidResetScreenShadowStateOnOrientationChangeEnabled(){return E.get()},set androidResetScreenShadowStateOnOrientationChangeEnabled(t){E.set(t)},get iosPreventReattachmentOfDismissedScreens(){return!0},set iosPreventReattachmentOfDismissedScreens(t){},get iosPreventReattachmentOfDismissedModals(){return!0},set iosPreventReattachmentOfDismissedModals(t){},get ios26AllowInteractionsDuringTransition(){return!0},set ios26AllowInteractionsDuringTransition(t){}},stable:{get debugLogging(){return O.get()},set debugLogging(t){O.set(t)}}};var H=U},622,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isIOS26OrHigher",{enumerable:!0,get:function(){return t}}),r(d[0]);const t=!1},623,[235]); +__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"EdgeInsetApplicationContext",{enumerable:!0,get:function(){return o}}),_e.useEdgeInsetApplication=function(n,s,l,u,d){const{topAlreadyApplied:c,leftDisabled:p,rightDisabled:b,bottomDisabled:f}=e.useContext(o),y=t.featureFlags.experiment?.androidLegacyTopInsetBehavior??!1,D=y||!c&&n,A=D&&!s,h=p||l,I=b||u,v=f||d,x=e.useMemo(()=>({topAlreadyApplied:c||D,leftDisabled:h,rightDisabled:I,bottomDisabled:v}),[c,D,h,I,v]);return{appliesTopInset:A,consumeLeftInset:!h,consumeRightInset:!I,consumeBottomInset:!v,useLegacyBehavior:y,nextContextValue:x}};var e=(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[0])),t=r(_d[1]);const n={topAlreadyApplied:!1,leftDisabled:!1,rightDisabled:!1,bottomDisabled:!1},o=e.createContext(n)},624,[11,622]); +__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},625,[85]); +__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"isSearchBarAvailableForCurrentPlatform",{enumerable:!0,get:function(){return o}}),Object.defineProperty(_e,"isHeaderBarButtonsAvailableForCurrentPlatform",{enumerable:!0,get:function(){return u}}),_e.executeNativeBackPress=function(){return n.default.exitApp(),!0},_e.parseBooleanToOptionalBooleanNativeProp=function(e){switch(e){case void 0:return'undefined';case!0:return'true';case!1:return'false'}};var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e};r(d[1]);const o=['ios','android'].includes("web"),u=!1},626,[326,235]); +__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};function o(){const e=t.useContext(u.default);if(void 0===e)throw new Error("Couldn't find values for transition progress. Are you inside a screen in Native Stack?");return e}},627,[11,628]); +__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 e}});var e=(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])).createContext(void 0)},628,[11]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"Tabs",{enumerable:!0,get:function(){return s}});var t=r(d[0]),n=r(d[1]);const s={Host:t.TabsHost,Screen:n.TabsScreen}},629,[630,632]); +__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"TabsHost",{enumerable:!0,get:function(){return u.default}});var e,t=r(d[0]),u=(e=t)&&e.__esModule?e:{default:e}},630,[631]); +__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},631,[85]); +__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"TabsScreen",{enumerable:!0,get:function(){return u.default}});var e,t=r(d[0]),u=(e=t)&&e.__esModule?e:{default:e}},632,[633]); +__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},633,[85]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,o,i){void 0===i&&(i=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&!("get"in u?!n.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,i,u)}:function(t,n,o,i){void 0===i&&(i=o),t[i]=n[o]}),o=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),i=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[n.length]=o);return n},t(n)},function(i){if(i&&i.__esModule)return i;var u={};if(null!=i)for(var c=t(i),f=0;ff.includes(t.key)))return i;return u.current={},t.forEach(({key:t},c)=>{u.current[t]=i[t]??new o.Animated.Value(c===n?0:c>=n?1:-1)}),u.current};const c=i(r(d[0])),o=r(d[1])},635,[11,220]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useBottomTabBarHeight=function(){const n=(0,t.use)(o.BottomTabBarHeightContext);if(void 0===n)throw new Error("Couldn't find the bottom tab bar height. Are you inside a screen in Bottom Tab Navigator?");return n};const t=r(d[0]),o=r(d[1])},636,[11,634]); +__d(function(g,r,i,a,m,e,d){m.exports={uri:"/assets/node_modules/expo-router/assets/error.d1ea1496f9057eb392d5bbf3732a61b7.png",width:48,height:48,toString(){return this.uri}}},637,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SuspenseFallback=function({route:u}){return null};r(d[0]),r(d[1])},638,[6,549]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,o,i){void 0===i&&(i=o);var c=Object.getOwnPropertyDescriptor(n,o);c&&!("get"in c?!n.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,i,c)}:function(t,n,o,i){void 0===i&&(i=o),t[i]=n[o]}),o=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),i=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[n.length]=o);return n},t(n)},function(i){if(i&&i.__esModule)return i;var c={};if(null!=i)for(var s=t(i),u=0;unew Promise(t=>{this.setState({error:void 0},()=>{t()})});render(){const{error:t}=this.state,{catch:n,children:o}=this.props;return t?(0,c.jsx)(n,{error:t,retry:this.retry}):o}}e.Try=l},639,[6,11,472,640]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NetworkError=e.ReactServerError=e.MetroServerError=void 0;class t extends Error{code='METRO_SERVER_ERROR';constructor(t,o){super(t.message),this.url=o,this.name='MetroServerError';for(const o in t)this[o]=t[o]}}e.MetroServerError=t;class o extends Error{code='REACT_SERVER_ERROR';constructor(t,o,s,E){super(t),this.url=o,this.statusCode=s,this.headers=E,this.name='ReactServerError'}}e.ReactServerError=o;class s extends Error{code='NETWORK_ERROR';constructor(t,o){super(t),this.url=o,this.name='NetworkError'}}e.NetworkError=s},640,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Redirect=e.Link=void 0;const n=r(d[0]),t=r(d[1]),o=r(d[2]),c=r(d[3]),u=r(d[4]),p=r(d[5]);e.Link=Object.assign(function(o){return(0,n.jsx)(t.ExpoLink,Object.assign({},o))},{resolveHref:c.resolveHref,Menu:o.LinkMenu,Trigger:o.LinkTrigger,Preview:o.LinkPreview,MenuAction:o.LinkMenuAction,AppleZoom:u.LinkAppleZoom,AppleZoomTarget:p.LinkAppleZoomTarget});var s=r(d[6]);Object.defineProperty(e,"Redirect",{enumerable:!0,get:function(){return s.Redirect}})},641,[6,642,653,445,666,672,673]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,i,o){void 0===o&&(o=i);var u=Object.getOwnPropertyDescriptor(n,i);u&&!("get"in u?!n.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return n[i]}}),Object.defineProperty(t,o,u)}:function(t,n,i,o){void 0===o&&(o=i),t[o]=n[i]}),i=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),o=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[n.length]=i);return n},t(n)},function(o){if(o&&o.__esModule)return o;var u={};if(null!=o)for(var c=t(o),l=0;l1){const n=c.default.Children.toArray(t.children).filter(t=>!(0,c.isValidElement)(t)||t.type!==s.LinkPreview&&t.type!==s.LinkMenu);i=1===n.length?n[0]:t.children}return(0,u.jsx)(l.BaseExpoRouterLink,Object.assign({},t,{href:n,children:i}))}},642,[6,11,643,650,653,463,671,470,546]); +__d(function(g,r,_i,a,_m,_e,d){"use strict";var e=r(d[0]).default;const t=["href","replace","push","dismissTo","relativeToDirectory","asChild","rel","target","download","withAnchor","dangerouslySingular","prefetch"];var n,o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(n=function(e){return n=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},n(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var s=n(e),l=0;l{if(null==o)throw new Error('Link: href is required');return(0,h.resolveHref)(o)},[o]);let A;s&&(A='PUSH');i&&(A='REPLACE');l&&(A='POP_TO');const E=(0,_.default)({href:x,event:A,relativeToDirectory:w,withAnchor:j,dangerouslySingular:C}),k=e=>{'onPress'in D&&D.onPress?.(e),E.onPress(e)},L=y?P.Slot:f.Text;if(y&&c.default.Children.count(D.children)>1)throw new Error('Link: When using `asChild`, you must pass a single child element that will emit the `onPress` event.');const H=(0,u.jsx)(L,Object.assign({},E,S,D,{style:M},f.Platform.select({web:{onClick:k},default:{onPress:k}})));return T?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(v.Prefetch,{href:o}),H]}):H};const u=r(d[1]),c=s(r(d[2])),f=r(d[3]),h=r(d[4]),p=r(d[5]),_=l(r(d[6])),v=r(d[7]),P=r(d[8])},643,[19,6,11,220,445,644,645,646,647]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useHrefAttrs=void 0,e.useInteropClassName=function(l){if('web'!==s.Platform.OS)return l.style;return(0,t.useMemo)(()=>{if(null==l.className)return l.style;const t={$$css:!0,__routerLinkClassName:l.className};return Array.isArray(l.style)?[...l.style,t]:[l.style,t]},[l.style,l.className])};const t=r(d[0]),s=r(d[1]);e.useHrefAttrs=s.Platform.select({web:function({asChild:s,rel:l,target:n,download:u}){return(0,t.useMemo)(()=>{const t={rel:l,target:n,download:u};return s?t:{hrefAttrs:t}},[s,l,n,u])},default:function(){return{}}})},644,[11,220]); +__d(function(g,r,i,a,m,_e,d){"use strict";var e=r(d[0]).default;const t=["href"];Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(n){let{href:v}=n,h=e(n,t);let p=(0,f.stripGroupSegmentsFromPath)(v)||'/';(0,s.shouldLinkExternally)(p)||(p=(0,u.appendBaseUrl)(p));return{href:p,role:'link',onPress:e=>{if(c(e)){if((0,l.emitDomLinkEvent)(v,h))return;(0,o.linkTo)(v,h)}}}},_e.shouldHandleMouseEvent=c;const n=r(d[1]),l=r(d[2]),u=r(d[3]),o=r(d[4]),f=r(d[5]),s=r(d[6]);function c(e){return'web'!==n.Platform.OS?!e?.defaultPrevented:!(!e||(t=e,t?.defaultPrevented||!('button'in t)||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||null!=t.button&&0!==t.button||![void 0,null,'','self'].includes(t.currentTarget.target)))&&(e.preventDefault(),!0);var t}},645,[19,220,527,469,529,449,470]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Prefetch=function(o){const c=(0,n.useOptionalNavigation)();return(0,t.useLayoutEffect)(()=>{c?.isFocused()&&u.router.prefetch(o.href)},[c,o.href]),null};const t=r(d[0]),u=r(d[1]),n=r(d[2])},646,[11,516,465]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t=r(d[0]).default;const n=["style"];var o,i=this&&this.__createBinding||(Object.create?function(t,n,o,i){void 0===i&&(i=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&!("get"in u?!n.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,i,u)}:function(t,n,o,i){void 0===i&&(i=o),t[i]=n[o]}),u=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),l=this&&this.__importStar||(o=function(t){return o=Object.getOwnPropertyNames||function(t){var n=[];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[n.length]=o);return n},o(t)},function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var l=o(t),c=0;c_.StyleSheet.flatten(u),[u]),(0,c.jsx)(b,Object.assign({ref:i},l,{style:u}))}))},647,[19,6,648,11,220]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=r(d[0]).default;const o=["children"];var n,l=Object.create,c=Object.defineProperty,s=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,f=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,b=(t,o)=>c(t,"name",{value:o,configurable:!0}),y=(t,o,n,l)=>{if(o&&"object"==typeof o||"function"==typeof o)for(let f of p(o))u.call(t,f)||f===n||c(t,f,{get:()=>o[f],enumerable:!(l=s(o,f))||l.enumerable});return t},h={};((t,o)=>{for(var n in o)c(t,n,{get:o[n],enumerable:!0})})(h,{Root:()=>j,Slot:()=>j,Slottable:()=>R,createSlot:()=>_,createSlottable:()=>E}),m.exports=(n=h,y(c({},"__esModule",{value:!0}),n));var S=((t,o,n)=>(n=null!=t?l(f(t)):{},y(!o&&t&&t.__esModule?n:c(n,"default",{value:t,enumerable:!0}),t)))(r(d[1])),O=r(d[2]);function _(n){const l=S.forwardRef((l,c)=>{let{children:s}=l,p=t(l,o),f=null,u=!1;const b=[];N(s)&&"function"==typeof I&&(s=I(s._payload)),S.Children.forEach(s,t=>{if(x(t)){u=!0;const o=t;let n="child"in o.props?o.props.child:o.props.children;N(n)&&"function"==typeof I&&(n=I(n._payload)),f=P(o,n),b.push(f?.props?.children)}else b.push(t)}),f?f=S.cloneElement(f,void 0,b):!u&&1===S.Children.count(s)&&S.isValidElement(s)&&(f=s);const y=f?$(f):void 0,h=(0,O.useComposedRefs)(c,y);if(!f){if(s||0===s)throw new Error(u?D(n):W(n));return s}const _=w(p,f.props??{});return f.type!==S.Fragment&&(_.ref=c?h:y),S.cloneElement(f,_)});return l.displayName=`${n}.Slot`,l}b(_,"createSlot");var j=_("Slot"),v=Symbol.for("radix.slottable");function E(t){const o=b(t=>"child"in t?t.children(t.child):t.children,"Slottable");return o.displayName=`${t}.Slottable`,o.__radixId=v,o}b(E,"createSlottable");var R=E("Slottable"),P=b((t,o)=>{if("child"in t.props){const o=t.props.child;return S.isValidElement(o)?S.cloneElement(o,void 0,t.props.children(o.props.children)):null}return S.isValidElement(o)?o:null},"getSlottableElementFromSlottable");function w(t,o){const n=Object.assign({},o);for(const l in o){const c=t[l],s=o[l];/^on[A-Z]/.test(l)?c&&s?n[l]=(...t)=>{const o=s(...t);return c(...t),o}:c&&(n[l]=c):"style"===l?n[l]=Object.assign({},c,s):"className"===l&&(n[l]=[c,s].filter(Boolean).join(" "))}return Object.assign({},t,n)}function $(t){let o=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=o&&"isReactWarning"in o&&o.isReactWarning;return n?t.ref:(o=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=o&&"isReactWarning"in o&&o.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}function x(t){return S.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===v}b(w,"mergeProps"),b($,"getElementRef"),b(x,"isSlottable");var C=Symbol.for("react.lazy");function N(t){return null!=t&&"object"==typeof t&&"$$typeof"in t&&t.$$typeof===C&&"_payload"in t&&V(t._payload)}function V(t){return"object"==typeof t&&null!==t&&"then"in t}b(N,"isLazyComponent"),b(V,"isPromiseLike");var W=b(t=>`${t} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),D=b(t=>`${t} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),I=S[" use ".trim().toString()]},648,[19,11,649]); +__d(function(g,r,_i,a,m,e,d){"use strict";var t,o=Object.create,n=Object.defineProperty,u=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,c=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,s=(t,o)=>n(t,"name",{value:o,configurable:!0}),p=(t,o,c,s)=>{if(o&&"object"==typeof o||"function"==typeof o)for(let p of f(o))l.call(t,p)||p===c||n(t,p,{get:()=>o[p],enumerable:!(s=u(o,p))||s.enumerable});return t},i={};((t,o)=>{for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(i,{composeRefs:()=>O,useComposedRefs:()=>j}),m.exports=(t=i,p(n({},"__esModule",{value:!0}),t));var b=((t,u,f)=>(f=null!=t?o(c(t)):{},p(!u&&t&&t.__esModule?f:n(f,"default",{value:t,enumerable:!0}),t)))(r(d[0]));function y(t,o){if("function"==typeof t)return t(o);null!=t&&(t.current=o)}function O(...t){return o=>{let n=!1;const u=t.map(t=>{const u=y(t,o);return n||"function"!=typeof u||(n=!0),u});if(n)return()=>{for(let o=0;o{if(m){if(C.current!==M)throw new Error('Link does not support changing the href prop after the preview has been opened. Please ensure that the href prop is stable and does not change between renders.')}else C.current=M},[M]);const[{nextScreenId:F,tabPath:S},T]=(0,O.useNextScreenId)();(0,c.useEffect)(()=>{s.replace&&console.warn('Using replace links with preview is not supported')},[s.href,s.replace]);const E=c.default.useMemo(()=>(0,j.getFirstChildOfType)(o,P.LinkTrigger),[o]),N=c.default.useMemo(()=>(0,j.getFirstChildOfType)(o,P.LinkMenu),[o]),R=c.default.useMemo(()=>(0,j.getFirstChildOfType)(o,P.LinkPreview),[o]);!R&&!N||E||console.warn('When you use Link.Preview, you must use Link.Trigger to specify the trigger element.');const I=c.default.useMemo(()=>E??(0,l.jsx)(P.LinkTrigger,{children:o}),[E,o]),W=c.default.useMemo(()=>(0,k.shouldLinkExternally)(String(s.href))||!R?null:R,[R,s.href]),B=(0,c.useRef)(!1),D=(0,c.useMemo)(()=>({path:S}),[S]),K=!!R;if(s.replace)return(0,l.jsx)(v.BaseExpoRouterLink,Object.assign({children:o},s));return(0,l.jsx)(y.NativeLinkPreview,{nextScreenId:x?void 0:F,tabPath:x?void 0:D,onWillPreviewOpen:()=>{K&&(B.current=!1,T(s.href),L(!0))},onPreviewWillClose:()=>{K&&(L(!1),B.current&&!x||f(void 0))},onPreviewDidClose:()=>{K&&B.current&&x&&u.navigate(s.href,{__internal__PreviewKey:F})},onPreviewTapped:()=>{B.current=!0,x||u.navigate(s.href,{__internal__PreviewKey:F})},style:{display:'contents'},disableForceFlatten:!0,children:(0,l.jsx)(w.NativeMenuContext,{value:!0,children:(0,l.jsxs)(p.InternalLinkPreviewContext,{value:{isVisible:m,href:s.hrefForPreviewNavigation},children:[(0,l.jsx)(v.BaseExpoRouterLink,Object.assign({},s,{children:I,ref:s.ref})),W,N]})})})};const l=r(d[1]),c=u(r(d[2])),f=r(d[3]),h=r(d[4]),v=r(d[5]),p=r(d[6]),w=r(d[7]),P=r(d[8]),_=r(d[9]),b=r(d[10]),y=r(d[11]),O=r(d[12]),j=r(d[13]),k=r(d[14]),x='ios'===f.Platform.OS&&f.Platform.isPad},650,[19,6,11,220,510,643,651,652,653,445,668,665,669,462,470]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InternalLinkPreviewContext=void 0;const t=r(d[0]);e.InternalLinkPreviewContext=(0,t.createContext)(void 0)},651,[11]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NativeMenuContext=void 0;const t=r(d[0]);e.NativeMenuContext=(0,t.createContext)(!1)},652,[11]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t=r(d[0]).default;const n=["width","height"],i=["withAppleZoom"];var u,l=this&&this.__createBinding||(Object.create?function(t,n,i,u){void 0===u&&(u=i);var l=Object.getOwnPropertyDescriptor(n,i);l&&!("get"in l?!n.__esModule:l.writable||l.configurable)||(l={enumerable:!0,get:function(){return n[i]}}),Object.defineProperty(t,u,l)}:function(t,n,i,u){void 0===u&&(u=i),t[u]=n[i]}),o=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),s=this&&this.__importStar||(u=function(t){return u=Object.getOwnPropertyNames||function(t){var n=[];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[n.length]=i);return n},u(t)},function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var i=u(t),s=0;s1||!(0,f.isValidElement)(l.children)){if(l&&'object'==typeof l&&'onPress'in l)throw new Error('When using Link.Trigger in an asChild Link, you must pass a single child element that will emit onPress event.');return l.children}const o=(0,c.jsx)(b.Slot,Object.assign({},l));if(u)return(0,c.jsx)(P.LinkAppleZoom,{children:o});return o};const c=r(d[1]),f=s(r(d[2])),h=r(d[3]),v=(r(d[4]),r(d[5]),r(d[6])),p=r(d[7]),w=r(d[8]),b=r(d[9]),P=r(d[10]);r(d[11]);function j(t){(0,f.useId)();return(0,p.useIsPreview)(),null}e.LinkMenu=t=>{(0,f.useId)();return(0,p.useIsPreview)(),null}},653,[19,6,11,651,652,455,654,463,665,647,666,462]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HrefPreview=function({href:n}){const c=(0,o.useMemo)(()=>_(n),[n]),f=c?.index??0;let p=!1;if(c?.routes[f]?.name===u.INTERNAL_SLOT_NAME){let o=c,s=l.store.state;for(;o&&s;){const t=o.routes[0];if(!1===s.stale&&!s.routeNames?.includes(t.name)){p=!0;break}const n=s.routes.findIndex(o=>o.name===t.name);if(-1===n)break;o=t.state,s=s.routes[n]?.state}if(!p)return(0,t.jsx)(j,{hrefState:c,href:n})}const h=n.toString(),x=h.split('/').filter(Boolean);return(0,t.jsx)(s.PreviewRouteContext.Provider,{value:{params:{},pathname:h,segments:x},children:(0,t.jsx)(S,{})})};const t=r(d[0]),o=r(d[1]),n=r(d[2]),s=r(d[3]),u=r(d[4]),c=r(d[5]),l=r(d[6]),f=r(d[7]),p=r(d[8]),h=r(d[9]),x=r(d[10]),v=r(d[11]),N=r(d[12]);function j({hrefState:n,href:u}){const l=(0,x.useNavigation)(),{routeNode:f,params:p,state:j}=E(n),S=j?(0,N.getPathFromState)(j):void 0,_=(0,o.useMemo)(()=>({params:p,pathname:u.toString(),segments:S?.split('/').filter(Boolean)||[]}),[p,u]);if(!f)return null;const P=(0,v.getQualifiedRouteComponent)(f);return(0,t.jsx)(s.PreviewRouteContext,{value:_,children:(0,t.jsx)(c.CompositionContext,{value:{set:()=>{},unset:()=>{}},children:(0,t.jsx)(h.NavigationContext,{value:T,children:(0,t.jsx)(P,{navigation:l})})})})}function S(){const o=(0,p.usePathname)();return(0,t.jsxs)(n.View,{style:{flex:1,justifyContent:'center',alignItems:'center',gap:8,backgroundColor:'white'},children:[(0,t.jsx)(n.Text,{style:{fontWeight:'600',fontSize:24},children:"Invalid preview"}),(0,t.jsx)(n.Text,{style:{fontWeight:'200',fontSize:14},children:o})]})}function _(t){return l.store.getStateForHref(t)}function E(t){const o=t?.index??0;if(t?.routes[o]&&t.routes[o].name!==u.INTERNAL_SLOT_NAME){const n=t.routes[o].name;n!==u.SITEMAP_ROUTE_NAME&&n!==u.NOT_FOUND_ROUTE_NAME||(console.log(l.store.routeNode),console.log(t));const s=`Expo Router Error: Expected navigation state to begin with one of [${(0,f.getRootStackRouteNames)().join(', ')}] routes`;console.warn(s)}const n=t?.routes[o]?.state;let s=n,c=l.store.routeNode;const p={};for(;s&&c;){const t=s.routes[s.index||s.routes.length-1];Object.assign(p,t.params),s=t.state,c=c.children.find(o=>o.route===t.name)}return{params:p,routeNode:c,state:n}}const T={setParams:()=>{},setOptions:()=>{},addListener:()=>()=>{},removeListener:()=>{},isFocused:()=>!0,canGoBack:()=>!1,dispatch:()=>{},navigate:()=>{},goBack:()=>{},reset:()=>{},push:()=>{},pop:()=>{},popToTop:()=>{},navigateDeprecated:()=>{},preload:()=>{},getId:()=>'',getParent:()=>{},getState:()=>({key:'',index:0,routeNames:[],routes:[],type:'',stale:!1})}},654,[6,11,220,463,444,655,466,402,510,119,401,541,658]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useCompositionOption=e.useCompositionRegistry=e.CompositionContext=e.mergeOptions=void 0;var t=r(d[0]);Object.defineProperty(e,"mergeOptions",{enumerable:!0,get:function(){return t.mergeOptions}});var o=r(d[1]);Object.defineProperty(e,"CompositionContext",{enumerable:!0,get:function(){return o.CompositionContext}}),Object.defineProperty(e,"useCompositionRegistry",{enumerable:!0,get:function(){return o.useCompositionRegistry}}),Object.defineProperty(e,"useCompositionOption",{enumerable:!0,get:function(){return o.useCompositionOption}})},655,[656,657]); +__d(function(g,_r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mergeOptions=function(n,t,o){const s={},c=o.routes[o.index]?.key;for(const u in n){const r=n[u],f=t[u];if(!f||0===f.length){s[u]=r;continue}if((o.preloadedRoutes?.some(n=>n.key===u)??!1)&&u!==c){s[u]=r;continue}const p=Object.assign({},r.options,...f),l=Object.assign({},r,{options:p});s[u]=l}return s}},656,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=r(d[0]).default,o=r(d[1]).default;Object.defineProperty(e,"__esModule",{value:!0}),e.CompositionContext=void 0,e.registryReducer=c,e.useCompositionRegistry=function(){const[t,o]=(0,n.useReducer)(c,{}),s=(0,n.useCallback)((t,n)=>{o({type:'set',routeKey:t,options:n})},[]),u=(0,n.useCallback)((t,n)=>{o({type:'unset',routeKey:t,options:n})},[]),p=(0,n.useMemo)(()=>({set:s,unset:u}),[s,u]);return{registry:t,contextValue:p}},e.useCompositionOption=function(t){const o=(0,n.use)(e.CompositionContext);if(!o)throw new Error('useCompositionOption must be used within a RouterCompositionOptionsProvider. This is likely a bug in Expo Router.');const c=(0,s.useRoute)(),{set:p,unset:l}=o;(0,u.useSafeLayoutEffect)(()=>(p(c.key,t),()=>{l(c.key,t)}),[c.key,p,l,t])};const n=r(d[2]),s=r(d[3]),u=r(d[4]);function c(n,s){if('set'===s.type){const{routeKey:t,options:o}=s;return n[t]?.includes(o)?n:Object.assign({},n,{[t]:[...n[t]??[],o]})}if('unset'===s.type){const{routeKey:u,options:c}=s,p=n[u],l=p?.filter(t=>t!==c);if(!p||l?.length===p.length)return n;if(!l?.length){return t(n,[u].map(o))}return Object.assign({},n,{[u]:l})}return n}e.CompositionContext=(0,n.createContext)(null)},657,[19,196,11,119,446]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,i,o){void 0===o&&(o=i);var u=Object.getOwnPropertyDescriptor(n,i);u&&!("get"in u?!n.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return n[i]}}),Object.defineProperty(t,o,u)}:function(t,n,i,o){void 0===o&&(o=i),t[o]=n[i]}),i=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),o=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[n.length]=i);return n},t(n)},function(o){if(o&&o.__esModule)return o;var u={};if(null!=o)for(var c=t(o),l=0;ly(t)??b())},e.getRootURL=b,e.subscribe=function(t,n){return i=>{let o;const c=t?.legacy_subscribe?.(i);o=m?async({url:o})=>{let u=y(o);u=(0,p.applyRedirects)(u,n),u&&t?.redirectSystemPath&&(u=await t.redirectSystemPath({path:u,initial:!1})),u&&i(u)}:async({url:o})=>{let u=(0,p.applyRedirects)(o,n);u&&t?.redirectSystemPath&&(u=await t.redirectSystemPath({path:u,initial:!1})),u&&i(u)};const l=u.addEventListener('url',o);return()=>{l?.remove?.(),c?.()}}};const u=o(r(d[0])),c=r(d[1]),l=r(d[2]),s=r(d[3]);Object.defineProperty(e,"getPathFromState",{enumerable:!0,get:function(){return s.getPathFromState}});const f=r(d[4]);Object.defineProperty(e,"getStateFromPath",{enumerable:!0,get:function(){return f.getStateFromPath}});const h=r(d[5]),p=r(d[6]),m='undefined'!=typeof expo&&globalThis.expo?.modules?.ExpoGo;let P;function b(){return void 0===P&&(P=u.createURL('/'),m&&(P=(0,l.parsePathFromExpoGoLink)(P))),P}function y(t){if(!t||!m)return t;const{pathname:n,queryString:i}=(0,l.parsePathAndParamsFromExpoGoLink)(t);return n&&'/'!==n?t:b()+i}},658,[503,220,498,659,660,662,502]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,s,i){void 0===i&&(i=s);var o=Object.getOwnPropertyDescriptor(n,s);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[s]}}),Object.defineProperty(t,i,o)}:function(t,n,s,i){void 0===i&&(i=s),t[i]=n[s]}),s=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),i=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(n[n.length]=s);return n},t(n)},function(i){if(i&&i.__esModule)return i;var o={};if(null!=i)for(var c=t(i),l=0;l{const n=null!=t.index?t.routes[t.index]:t.routes[t.routes.length-1];return n.state?u(n.state):n};let p=[void 0,{}];function f(t,n){if(null==t)throw Error("Got 'undefined' for the navigation state. You must pass a valid state object.");n&&c.validatePathConfig(n),p[0]!==n?.screens&&(p=[n?.screens,n?.screens?v(n.screens):{}]);const s=p[1];let i='/',f=t;const h={};for(;f;){let p,m,v='number'==typeof f.index?f.index:0,b=f.routes[v];const y=u(t);let j=s;const O=[];let P=!0;for(;b.name in j&&P;){if(p=j[b.name].pattern,O.push(b.name),b.params){const t=j[b.name]?.stringify,n=c.fixCurrentParams(h,b,t);y===b&&(m=Object.assign({},n),p?.split('/').filter(t=>c.isDynamicPart(t)).forEach(t=>{const n=c.getParamName(t);m&&delete m[n]}))}if(j[b.name].screens&&void 0!==b.state){v=null!=b.state.index?b.state.index:b.state.routes.length-1;const t=b.state.routes[v],n=j[b.name].screens;n&&t.name in n?(b=t,j=n):P=!1}else{const t=j[b.name].screens,n=b.params&&'screen'in b.params&&'string'==typeof b.params.screen?b.params.screen:'index',s=t?t[n]?n:Object.keys(t)[0]:void 0;if(s&&t&&j[b.name].screens?.[s]){const n=b.params?.params;b=Object.assign({},t[s],{name:s,key:s,params:n}),j=t}else P=!1}}if(void 0===p&&(p=O.join('/')),void 0!==j[b.name]?i+=c.getPathWithConventionsCollapsed(Object.assign({},n,{pattern:p,route:b,params:h,initialRouteName:s[b.name]?.initialRouteName})):b.name.startsWith('+')||(i+=encodeURIComponent(b.name)),m||(m=y.params?Object.assign({},y.params):void 0),b.state)i+='/';else if(m){for(const t in m)'undefined'===m[t]&&delete m[t];delete m['#'],m=(0,l.removeInternalExpoRouterParams)(m);const t=o.stringify(m,{sort:!1});t&&(i+=`?${t}`)}f=b.state}return i=i.replace(/\/+/g,'/'),i=i.length>1?i.replace(/\/$/,''):i,n?.path&&(i=m(n.path,i)),i=c.appendBaseUrl(i),h['#']&&(i+=`#${h['#']}`),{path:i,params:h}}const m=(...t)=>[].concat(...t.map(t=>t.split('/'))).filter(Boolean).join('/'),h=(t,n)=>{if('string'==typeof t){return{pattern:n?m(n,t):t}}if(t.exact&&void 0===t.path)throw new Error("A 'path' needs to be specified when specifying 'exact: true'. If you don't want this screen in the URL, specify it as empty string, e.g. `path: ''`.");const s=!0!==t.exact?m(n||'',t.path||''):t.path||'',i=t.screens?v(t.screens,s):void 0;return{pattern:s?.split('/').filter(Boolean).join('/'),stringify:t.stringify,screens:i}},v=(t,n)=>Object.fromEntries(Object.entries(t).map(([t,s])=>[t,h(s,n)]))},659,[163,469,526]); +__d(function(g,r,_i,_a,_m,e,d){"use strict";var t=r(d[0]).default;const n=["path"];var a,s=this&&this.__createBinding||(Object.create?function(t,n,a,s){void 0===s&&(s=a);var o=Object.getOwnPropertyDescriptor(n,a);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[a]}}),Object.defineProperty(t,s,o)}:function(t,n,a,s){void 0===s&&(s=a),t[s]=n[a]}),o=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),i=this&&this.__importStar||(a=function(t){return a=Object.getOwnPropertyNames||function(t){var n=[];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(n[n.length]=a);return n},a(t)},function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var i=a(t),c=0;c({name:decodeURIComponent(t)}));return t.length?C(u,t,s,[],u.hash):void 0}if('/'===p){const t=l.matchForEmptyPath(i);return t?C(u,t.routeNames.map(t=>({name:t})),s,o,u.hash):void 0}let h,m;const{routes:j,remainingPath:v}=N(p,i);void 0!==j&&(m=C(u,j,s,o,u.hash),p=v,h=m);if(null==m||null==h)return;return h};const u=c(r(d[1])),p=r(d[2]),l=i(r(d[3])),f=r(d[4]),h=r(d[5]);let m=[void 0,j()];function b(t,n){return m=[t,j(t,n)],m[1]}function j(t,n){t&&(0,h.validatePathConfig)(t);const a=v(t),s=O(a,t?.screens,n);P(s);return{initialRoutes:a,configs:s,configWithRegexes:y(s)}}function v(t){const n=[];return t?.initialRouteName&&n.push({initialRouteName:t.initialRouteName,parentScreens:[]}),n}function O(t,n={},a){return[].concat(...Object.keys(n).map(a=>_(a,n,[],t,[]))).map(l.appendIsInitial(t)).sort(l.getRouteConfigSorter(a))}function P(t){t.reduce((t,n)=>{if(t[n.pattern]){const a=t[n.pattern].routeNames,s=n.routeNames;if(!(a.length>s.length?s.every((t,n)=>a[n]===t):a.every((t,n)=>s[n]===t)))throw new Error(`Found conflicting screens with the same pattern. The pattern '${n.pattern}' resolves to both '${a.join(' > ')}' and '${s.join(' > ')}'. Patterns must be unique and cannot resolve to more than one screen.`)}return Object.assign(t,{[n.pattern]:n})},{})}function y(t){return t.map(t=>Object.assign({},t,{regex:l.configRegExp(t)}))}const R=(...t)=>[].concat(...t.map(t=>t.split('/'))).filter(Boolean).join('/'),N=(t,n)=>{let a,s=t;const o=Object.create(null);for(const t of n){if(!t.regex)continue;const i=s.match(t.regex);if(i){const c=t.pattern?.split('/').reduce((t,n,a)=>{if(!l.isDynamicPart(n))return t;t.pos+=1;const s=l.safelyDecodeURIComponent(i[2*(t.pos+1)].replace(/\/$/,''));return Object.assign(t.matchedParams,{[n]:Object.assign(t.matchedParams[n]||{},{[a]:s})}),t},{pos:-1,matchedParams:{}}),p=c.matchedParams||{};a=t.routeNames.map(a=>{const s=n.find(n=>n.screen===a&&t.pattern.startsWith(n.pattern)),i=s?.path.split('/').filter(Boolean).join('/'),c=s?.pattern.replace(new RegExp(`${(0,u.default)(i)}$`),'')?.split('/').length,f=i?.split('/').reduce((t,n,a)=>{if(!l.isDynamicPart(n))return t;const o=c?c-1:0,i=l.getParamValue(n,p[n]?.[a+o]);if(i){const a=l.replacePart(n);t[a]=s?.parse?.[a]?s.parse[a](i):i}return t},{});return f&&Object.keys(f).length?(Object.assign(o,f),{name:a,params:f}):{name:a}}),s=s.replace(i[1],'');break}}return l.populateParams(a,o),{routes:a,remainingPath:s}},_=(t,n,a=[],s,o,i)=>{const c=[];a.push(t),o.push(t);const u=n[t];if('string'==typeof u){const n=i?R(i,u):u;c.push(x(t,a,n,u))}else if('object'==typeof u){let n;if('string'==typeof u.path){if(u.exact&&void 0===u.path)throw new Error("A 'path' needs to be specified when specifying 'exact: true'. If you don't want this screen in the URL, specify it as empty string, e.g. `path: ''`.");n=!0!==u.exact?R(i||'',u.path||''):u.path||'',t!==f.INTERNAL_SLOT_NAME&&c.push(x(t,a,n,u.path,u.parse,u))}u.screens&&(u.initialRouteName&&s.push({initialRouteName:u.initialRouteName,parentScreens:o}),Object.keys(u.screens).forEach(t=>{const p=_(t,u.screens,a,s,[...o],n??i);c.push(...p)}))}return a.pop(),c},x=(t,n,a,s,o=void 0,i={})=>{const c=(a=a.split('/').filter(Boolean).join('/'))?l.routePatternToRegex(a):void 0;return Object.assign({screen:t,regex:c,pattern:a,path:s,routeNames:[...n],parse:o},l.createConfig(t,a,n,i))},w=(t,n)=>{for(const a of n)if(t===a.routeNames[a.routeNames.length-1])return a.parse},E=(t,n,a)=>{for(const s of a)if(n.length===s.parentScreens.length){let a=!0;for(let t=0;ta?t?{index:1,routes:[{name:t,params:n.params},n]}:{routes:[n]}:t?{index:1,routes:[{name:t,params:n.params},Object.assign({},n,{state:{routes:[]}})]}:{routes:[Object.assign({},n,{state:{routes:[]}})]},C=(a,s,o,i,c)=>{let{path:u}=a,f=t(a,n),h=s.shift();const m=[];let b=E(h.name,m,o);m.push(h.name);const j=S(b,h,0===s.length);if(s.length>0){let t=j;for(;h=s.shift();){b=E(h.name,m,o);const n=t.index||t.routes.length-1;t.routes[n].state=S(b,h,0===s.length),s.length>0&&(t=t.routes[n].state),m.push(h.name)}}h=(0,p.findFocusedRoute)(j),h.path=f.pathWithoutGroups;const v=l.parseQueryParams(u,h,i?w(h.name,i):void 0,c);return v&&(h.params=Object.assign({},h.params,v)),j}},660,[19,171,661,499,444,119]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.findFocusedRoute=function(t){let n=t;for(;null!=n?.routes[n.index??0]?.state;)n=n.routes[n.index??0].state;const u=n?.routes[n?.index??0];return u}},661,[]); +__d(function(g,_r,i,_a,m,_e,d){"use strict";var e=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.series=void 0,_e.useLinking=function(e,{enabled:f=!0,config:l,getStateFromPath:p=a.getStateFromPath,getPathFromState:y=a.getPathFromState,getActionFromState:v=a.getActionFromState},R){const w=(0,a.useNavigationIndependentTree)(),S=(0,c.useExpoRouterStore)();(0,r.useEffect)(()=>{},[f,w]);const[k]=(0,r.useState)(n.createMemoryHistory),F=(0,r.useRef)(f),b=(0,r.useRef)(l),x=(0,r.useRef)(p),_=(0,r.useRef)(y),P=(0,r.useRef)(v);(0,r.useEffect)(()=>{F.current=f,b.current=l,x.current=p,_.current=y,P.current=v});const E=(0,r.useCallback)(e=>{const t=(0,u.getRootStackRouteNames)();return e?.routes.some(e=>!t.includes(e.name))},[e]),j=(0,r.use)(s.ServerContext),I=(0,r.useCallback)(()=>{let e;if(F.current){const t=j?.location??('undefined'!=typeof window?window.location:void 0),r=t?t.pathname+t.search+(t.hash??''):void 0;r&&(e=x.current(r,b.current)),R(r)}const t={then:t=>Promise.resolve(t?t(e):e),catch:()=>t};return t},[]),$=(0,r.useRef)(void 0),A=(0,r.useRef)(void 0),C=(0,r.useRef)(void 0);return(0,r.useEffect)(()=>($.current=k.index,k.listen(()=>{const t=e.current;if(!t||!f)return;const{location:r}=window,n=r.pathname+r.search+r.hash,o=k.index,s=$.current??0;$.current=o,C.current=n;const c=k.get(o);if(c?.path===n&&c?.state)return void t.resetRoot(c.state);const u=x.current(n,b.current);if(u){if(R(n),E(u))return;if(o>s||o===s&&(!c||`${c?.path}${r.hash}`===n)){const e=P.current(u,b.current);if(void 0!==e)try{t.dispatch(e)}catch(e){console.warn(`An error occurred when trying to handle the link '${n}': ${'object'==typeof e&&null!=e&&'message'in e?e.message:e}`)}else t.resetRoot(u)}else t.resetRoot(u)}else t.resetRoot(u)})),[f,k,R,e,E]),(0,r.useEffect)(()=>{if(!f)return;const r=(e,r)=>{let n;if(e?.path){const r=x.current(e.path,b.current);if(r){const s=(0,a.findFocusedRoute)(r);s&&s.name===e.name&&(0,t.default)(Object.assign({},s.params),Object.assign({},e.params))&&(n=(0,o.appendBaseUrl)(e.path))}}return null==n&&(n=_.current(r,b.current)),n};if(e.current){const t=e.current.getRootState(),n=S.state;if(n){const e=(0,a.findFocusedRoute)(n),o=r(e,n);void 0===A.current&&(A.current=t),k.replace({path:o,state:n})}}return e.current?.addListener('state',(0,_e.series)(async()=>{const t=e.current;if(!t||!f)return;const n=A.current,o=t.getRootState(),s=S.state;if(!s)return;const c=C.current,u=(0,a.findFocusedRoute)(s),l=r(u,s);A.current=o,C.current=void 0;const[p,y]=h(n,s);if(p&&y&&l!==c){const e=(y.history?y.history.length:y.routes.length)-(p.history?p.history.length:p.routes.length);if(e>0)k.push({path:l,state:s});else if(e<0){const t=k.backIndex({path:l}),r=k.index;try{-1!==t&&t{if(void 0===e||void 0===t||e.key!==t.key)return[void 0,void 0];const r=e.history?e.history.length:e.routes.length,n=t.history?t.history.length:t.routes.length,o=e.routes[e.index],s=t.routes[t.index],c=o.state,u=s.state;return r!==n||o.key!==s.key||void 0===c||void 0===u||c.key!==u.key?[e,t]:h(c,u)};_e.series=e=>{let t=Promise.resolve();return()=>{t=t.then(e)}}},662,[191,11,663,659,664,542,402,119]); +__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createMemoryHistory=function(){let n=0,i=[];const o=[],s=()=>{o.forEach(t=>{const n=t.cb;t.cb=()=>n(!0)})};return{get index(){const t=window.history.state?.id;if(t){const n=i.findIndex(n=>n.id===t);return n>-1?n:0}return 0},get:t=>i[t],backIndex({path:t}){for(let o=n-1;o>=0;o--){if(i[o].path===t)return o}return-1},push({path:o,state:c}){s();const w=(0,t.nanoid)();i=i.slice(0,n+1),i.push({path:o,state:c,id:w}),n=i.length-1,window.history.pushState({id:w},'',o)},replace({path:o,state:c}){s();const w=window.history.state?.id??(0,t.nanoid)();let h=o;const p=h.includes('#')?'':location.hash;!i.length||i.findIndex(t=>t.id===w)<0?(h+=p,i=[{path:h,state:c,id:w}],n=0):(i[n].path===o&&(h+=p),i[n]={path:o,state:c,id:w}),window.history.replaceState({id:w},'',h)},go(t){s();const c=n+t,w=i.length-1;if(t<0&&!i[c]?(t=-n,n=0):t>0&&c>w?(t=w-n,n=w):n=c,0!==t)return new Promise((s,c)=>{const w=t=>{if(clearTimeout(h),t)return void c(new Error('History was changed during navigation.'));const{title:n}=window.document;window.document.title='',window.document.title=n,s()};o.push({ref:w,cb:w});const h=setTimeout(()=>{const t=o.findIndex(t=>t.ref===w);t>-1&&(o[t].cb(),o.splice(t,1))},100),p=()=>{const t=window.history.state?.id,s=i.findIndex(n=>n.id===t);n=Math.max(s,0);const c=o.pop();window.removeEventListener('popstate',p),c?.cb()};window.addEventListener('popstate',p),window.history.go(t)})},listen(t){const n=()=>{o.length||t()};return window.addEventListener('popstate',n),()=>window.removeEventListener('popstate',n)}}};const t=r(d[0])},663,[127]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ServerContext=void 0;const t=r(d[0]);e.ServerContext=(0,t.createContext)(void 0)},664,[11]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NativeLinkPreviewAction=function(n){return null},e.NativeLinkPreview=function(n){return null},e.NativeLinkPreviewContent=function(n){return null},e.LinkZoomTransitionEnabler=function(n){return null},e.LinkZoomTransitionSource=function(n){return null},e.LinkZoomTransitionAlignmentRectDetector=function(t){if(!o)return null;return(0,n.jsx)(o,Object.assign({},t,{disableForceFlatten:!0,collapsable:!1,collapsableChildren:!1,style:{display:'contents'}}))};const n=r(d[0]),t=(r(d[1]),r(d[2]));r(d[3]);const o=t.Fragment},665,[6,474,11,220]); +__d(function(g,r,i,a,m,e,d){"use strict";var n=r(d[0]).default;const t=["children","alignmentRect"];Object.defineProperty(e,"__esModule",{value:!0}),e.LinkAppleZoom=function(n){if(!(0,c.isZoomTransitionEnabled)())return(0,o.jsx)(l.Slot,Object.assign({},n));return(0,o.jsx)(h,Object.assign({},n))};const o=r(d[1]),s=r(d[2]),c=r(d[3]),u=r(d[4]),l=r(d[5]),f=r(d[6]);function h(c){let{children:h,alignmentRect:j}=c,S=n(c,t);const b=(0,s.use)(u.ZoomTransitionSourceContext);if(!b)throw new Error('[expo-router] Link.ZoomTransitionSource must be used within a Link');const{identifier:x,addSource:p,removeSource:Z}=b;(0,s.useEffect)(()=>(p(),Z),[p,Z]);const k=s.Children.count(h)>1;return(0,s.useEffect)(()=>{},[k]),k?null:(0,o.jsx)(f.LinkZoomTransitionSource,{identifier:x,alignment:j,animateAspectRatioChange:!0,children:(0,o.jsx)(l.Slot,Object.assign({},S,{children:h}))})}},666,[19,6,11,545,667,647,665]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ZoomTransitionTargetContext=e.ZoomTransitionSourceContext=void 0;const t=r(d[0]);e.ZoomTransitionSourceContext=(0,t.createContext)(void 0),e.ZoomTransitionTargetContext=(0,t.createContext)({identifier:null,dismissalBoundsRect:null,setDismissalBoundsRect:()=>{},addEnabler:()=>{},removeEnabler:()=>{},hasEnabler:!1})},667,[11]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useLinkPreviewContext=void 0,e.LinkPreviewContextProvider=function({children:s}){const[u,v]=(0,n.useState)(void 0),c=void 0!==u;return(0,t.jsx)(o.Provider,{value:{isStackAnimationDisabled:c,openPreviewKey:u,setOpenPreviewKey:v},children:s})};const t=r(d[0]),n=r(d[1]),o=(0,n.createContext)(void 0);e.useLinkPreviewContext=()=>{const t=(0,n.use)(o);if(null==t)throw new Error('useLinkPreviewContext must be used within a LinkPreviewContextProvider. This is likely a bug in Expo Router.');return t}},668,[6,11]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useNextScreenId=function(){const c=(0,s.useRouter)(),{setOpenPreviewKey:f}=(0,n.useLinkPreviewContext)(),[v,l]=(0,t.useState)(),P=(0,t.useRef)(void 0),[R,S]=(0,t.useState)([]);(0,t.useEffect)(()=>u.store.navigationRef.addListener('state',({data:{state:t}})=>{if(P.current&&t){const n=(0,o.getPreloadedRouteFromRootStateByHref)(P.current,t),u=n?.key,s=(0,o.getTabPathFromRootStateByHref)(P.current,t);(u||s.length)&&setTimeout(()=>{l(u),f(u),S(s)}),P.current=void 0}}),[]);const h=(0,t.useCallback)(t=>{l(void 0),c.prefetch(t),P.current=t},[c.prefetch]);return[{nextScreenId:v,tabPath:R},h]};const t=r(d[0]),n=r(d[1]),o=r(d[2]),u=r(d[3]),s=r(d[4])},669,[11,668,670,466,510]); +__d(function(g,r,_i,_a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getTabPathFromRootStateByHref=function(o,s){const u=t.store.getStateForHref((0,a.resolveHref)(o)),i=s;if(!u||!i)return[];const{navigationRoutes:f}=(0,n.findDivergentState)(u,i,!0);if(!f.length)return[];const c=[];return f.forEach((t,n,o)=>{if('tab'===t.state?.type){const a=t.state,s=a.routes[a.index].key;if(!o[n+1])throw new Error(`New tab route is missing for ${t.key}. This is likely an internal Expo Router bug.`);const u=o[n+1].key;c.push({oldTabKey:s,newTabKey:u})}}),c},e.getPreloadedRouteFromRootStateByHref=function(u,i){const f=t.store.getStateForHref((0,a.resolveHref)(u)),c=i;if(!f||!c)return;const{navigationState:l,actionStateRoute:p}=(0,n.findDivergentState)(f,c,!0);if(!l||!p)return;if('stack'===l.type){const t=l,a=(0,n.getPayloadFromStateRoute)(p),u=t.preloadedRoutes.find(t=>t.name===p.name&&s((0,o.removeInternalExpoRouterParams)(t.params),(0,o.removeInternalExpoRouterParams)(a.params))),i=t.routes[t.index];if(i.name===u?.name&&s((0,o.removeInternalExpoRouterParams)(i.params??{}),(0,o.removeInternalExpoRouterParams)(a.params??{})))return;return u}return},e.deepEqual=s;const t=r(d[0]),n=r(d[1]),o=r(d[2]),a=r(d[3]);function s(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if('object'!=typeof t||'object'!=typeof n)return!1;const o=Object.keys(t);return o.length===Object.keys(n).length&&o.every(o=>s(t[o],n[o]))}},670,[466,529,526,445]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useZoomHref=function({href:t}){return t}},671,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LinkAppleZoomTarget=function({children:l}){if(t.Children.count(l)>1)return console.warn('[expo-router] Link.AppleZoomTarget only accepts a single child component. Please wrap multiple children in a View or another container component.'),null;const{identifier:s}=(0,t.use)(o.ZoomTransitionTargetContext);if(!s)return l;return(0,n.jsx)(c.LinkZoomTransitionAlignmentRectDetector,{identifier:s,children:l})};const n=r(d[0]),t=r(d[1]),o=r(d[2]),c=r(d[3])},672,[6,11,667,665]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Redirect=function({href:n,relativeToDirectory:u,withAnchor:s}){const l=(0,t.useRouter)(),f=(0,o.useIsPreview)();return(0,c.useFocusEffect)(()=>{if(!f)try{l.replace(n,{relativeToDirectory:u,withAnchor:s})}catch(t){console.error(t)}}),null};const t=r(d[0]),c=r(d[1]),o=r(d[2])},673,[510,464,463]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.extrapolateGroups=e.generateDynamic=void 0,e.getRoutes=n,e.getExactRoutes=function(t,o={}){return n(t,Object.assign({},o,{skipGenerated:!0}))};const t=r(d[0]);function n(n,o={}){return(0,t.getRoutes)(n,Object.assign({getSystemRoute({route:t,type:o,defaults:u,redirectConfig:s,rewriteConfig:c}){if(''===t&&'layout'===o)return{type:'layout',loadRoute:()=>({default:r(d[1]).DefaultNavigator}),contextKey:'expo-router/build/views/Navigator.js',route:'',generated:!0,dynamic:null,children:[]};if('_sitemap'===t&&'route'===o)return{loadRoute(){const{Sitemap:t,getNavOptions:n}=r(d[2]);return{default:t,getNavOptions:n}},route:'_sitemap',type:'route',contextKey:'expo-router/build/views/Sitemap.js',generated:!0,internal:!0,dynamic:null,children:[]};if('+not-found'===t&&'route'===o)return{loadRoute:()=>({default:r(d[3]).Unmatched}),type:'route',route:'+not-found',contextKey:'expo-router/build/views/Unmatched.js',generated:!0,internal:!0,dynamic:[{name:'+not-found',deep:!0,notFound:!0}],children:[]};if('redirect'===o&&s&&u)return Object.assign({},u,{loadRoute:()=>r(d[4]).getRedirectModule(s)});if('rewrite'===o&&c&&u)return Object.assign({},u,{loadRoute:()=>({default:n(c.destinationContextKey).default})});throw new Error(`Unknown system route: ${t} and type: ${o} and redirectConfig: ${s} and rewriteConfig: ${c}`)}},o))}var o=r(d[0]);Object.defineProperty(e,"generateDynamic",{enumerable:!0,get:function(){return o.generateDynamic}}),Object.defineProperty(e,"extrapolateGroups",{enumerable:!0,get:function(){return o.extrapolateGroups}})},674,[675,16,676,685,502]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getRoutes=function(t,n){const o=s(t,n),l=u(t,n);if(!l)return null;const c=p(l,n);n.importMode;o&&(c.middleware=o);n.ignoreEntryPoints||$(c,n);return c},e.extrapolateGroups=y,e.generateDynamic=w;const t=r(d[0]),n=r(d[1]),o=new Set(['android','ios','native','web']);function s(t,n){const o=t.keys().filter(t=>t.includes('+middleware'));if(!n.unstable_useServerMiddleware)return o.length>0&&console.warn('Server middleware is not enabled. Add unstable_useServerMiddleware: true to your `expo-router` plugin config.\n\n'+JSON.stringify({expo:{plugins:[['expo-router',{unstable_useServerMiddleware:!0}]]}},null,2)),null;const s=o.filter(t=>/^\.\/\+middleware\.[tj]sx?$/.test(t)),u=o.filter(t=>!s.includes(t));if(u.length>0)throw new Error(`The middleware file can only be placed at the root level. Remove the following files: ${u.join(', ')}`);if(0===s.length)return null;s.length;const l=s[0],c={loadRoute(){if(!n.ignoreRequireErrors)return t(l);try{return t(l)}catch{return{}}},contextKey:l};return n.internal_stripLoadRoute&&delete c.loadRoute,c}function u(o,s){const u=s.importMode||"sync",p=[/^\.\/\+(html|native-intent)\.[tj]sx?$/];s.ignore&&p.push(...s.ignore),s.preserveApiRoutes||p.push(/\+api$/,/\+api\.[tj]sx?$/),p.push(/\+middleware$/,/\+middleware\.[tj]sx?$/);const w={files:new Map,subdirectories:new Map};let $=!1,b=!1;const _=o.keys(),S={},E={};let K;const j=()=>(K??=_.map(n=>({contextKey:n,nameWithoutInvisible:c((0,t.removeSupportedExtensions)(n))})),K);if(s.preserveRedirectAndRewrites){if(s.redirects)for(const t of s.redirects){const o=f(t.source),u=l(t.source),h=(0,n.shouldLinkExternally)(t.destination),y=h?t.destination:c(t.destination);if(p.some(t=>t.test(o)))continue;const w=h?void 0:j().find(t=>t.nameWithoutInvisible===y),x=h?y:w?.nameWithoutInvisible,R=h?y:w?.contextKey;if(R&&void 0!==x)_.push(o),S[u]={source:u,destination:x,destinationContextKey:R,permanent:Boolean(t.permanent),external:h,methods:t.methods};else if(s.preserveApiRoutes)throw new Error(`Redirect destination "${t.destination}" does not exist.`)}if(s.rewrites)for(const t of s.rewrites){const n=f(t.source),o=l(t.source),u=_.includes(n)?l(t.destination):c(t.destination);if(p.some(t=>t.test(n)))continue;const h=j().find(t=>t.nameWithoutInvisible===u),y=h?.nameWithoutInvisible,w=h?.contextKey;if(w&&void 0!==y)_.push(n),E[o]={source:o,destination:y,destinationContextKey:w,methods:t.methods};else if(s.preserveApiRoutes)throw new Error(`Rewrite destination "${t.destination}" does not exist.`)}}const L=new Set;for(const t of _){if(p.some(n=>n.test(t)))continue;b=!0;const n=h(t,s,S,E);if(n.specificity<0)continue;let l={type:n.isApi?'api':n.isLayout?'layout':'route',loadRoute(){let n;if(s.ignoreRequireErrors)try{n=o(t)}catch{n={}}else n=o(t);return'lazy'!==u&&'lazy-once'!==u||(n='_result'in n&&null!=n._result?n._result:n),n},contextKey:t,route:'',dynamic:null,children:[]};if(n.isRedirect){if(L.has(n.route))continue;const t=S[n.route];l.destinationContextKey=t.destinationContextKey,l.permanent=t.permanent,l.generated=!0,'route'===l.type&&(l=s.getSystemRoute({type:'redirect',route:t.destination,defaults:l,redirectConfig:t})),t.methods&&(l.methods=t.methods),l.type='redirect',L.add(n.route)}if(n.isRewrite){if(L.has(n.route))continue;const t=E[n.route];l.destinationContextKey=t.destinationContextKey,l.generated=!0,'route'===l.type&&(l=s.getSystemRoute({type:'rewrite',route:t.destination,defaults:l,rewriteConfig:t})),t.methods&&(l.methods=t.methods),l.type='rewrite',L.add(n.route)}for(const t of y(n.route)){const o=t.split('/').slice(0,-1);let u=w;for(const t of o){let n=u.subdirectories.get(t);n||(n={files:new Map,subdirectories:new Map},u.subdirectories.set(t,n)),u=n}if(l=Object.assign({},l,{route:t}),n.isLayout){u.layout??=[];u.layout[n.specificity]||(l=v(l,s),u.layout[n.specificity]=l)}else if(n.isApi){const n=`${t}+api`;let o=u.files.get(n);o||(o=[],u.files.set(n,o));o[0]||(o[0]=l)}else{let o=u.files.get(t);o||(o=[],u.files.set(t,o));o[n.specificity]||($||=!0,o[n.specificity]=l)}}}return b?(w.layout||(w.layout=[s.getSystemRoute({type:'layout',route:''})]),s.skipGenerated||($&&!1!==s.sitemap&&x(w,s),!1!==s.notFound&&R(w,s)),w):null}function l(n){return(0,t.removeFileSystemExtensions)((0,t.removeFileSystemDots)(n)).replace(/^\//,'')}function c(n){return(0,t.stripInvisibleSegmentsFromPath)(l(n))}function f(t){const n=l(t);return`./${n}${/\.[tj]sx?$/.test(n)?'':'.js'}`}function p(t,n,o,s=""){if(t.layout){const u=o;o=b(t.layout),u&&u.children.push(o),n.internal_stripLoadRoute&&delete o.loadRoute;const l=o.route.replace(s,'');s=o.route?`${o.route}/`:'',o.route=l,o.dynamic=w(o.contextKey.slice(0))}if(!o)throw new Error('Expo Router Internal Error: No nearest layout');for(const u of t.files.values()){const t=b(u);t.route=t.route.replace(s,''),t.dynamic=w(t.route),n.internal_stripLoadRoute&&delete t.loadRoute,o.children.push(t)}for(const u of t.subdirectories.values())p(u,n,o,s);return o}function h(n,s,u,l){const c=(0,t.removeSupportedExtensions)((0,t.removeFileSystemDots)(n));let f=c;const p=(0,t.removeFileSystemDots)(n).split('/'),h=p[p.length-1],y=(0,t.removeSupportedExtensions)(h).split('.'),w=y[0],x=y[1],R='_layout'===w,v=n.match(/\+api\.(\w+\.)?[jt]sx?$/);if(w.startsWith('(')&&w.endsWith(')'))throw new Error(`Invalid route ${n}. Routes cannot end with '(group)' syntax`);if(!v&&h.startsWith('+')&&'+not-found'!==w){const t=[...p.slice(0,-1),h.slice(1)].join('/');throw new Error(`Invalid route ${n}. Route nodes cannot start with the '+' character. "Rename it to ${t}"`)}let $=0;const b=o.has(x),_=s.platformRoutes??!0;if(b){if(_&&s.platform?x===s.platform?$=2:'native'===x&&'web'!==s.platform?$=1:x!==s.platform&&($=-1):$=-1,v&&0!==$)throw new Error(`API routes cannot have platform extensions. Remove '.${x}' from '${n}'`);f=f.replace(new RegExp(`.${x}$`),'')}return{route:f,specificity:$,isLayout:R,isApi:v,isRedirect:c in u,isRewrite:c in l}}function y(n,o=new Set){const s=(0,t.matchArrayGroupName)(n);if(!s)return o.add(n),o;const u=s.split(',');if(new Set(u).size!==u.length)throw new Error(`Array syntax cannot contain duplicate group name "${u}" in "${n}".`);if(1===u.length)return o.add(n),o;for(const t of u)y(n.replace(s,t.trim()),o);return o}function w(n){const o=n.split('/').map(n=>'+not-found'===n?{name:'+not-found',deep:!0,notFound:!0}:(0,t.matchDynamicName)(n)??null).filter(t=>!!t);return 0===o.length?null:o}function x(t,n){!t.files.has('_sitemap')&&n.getSystemRoute&&t.files.set('_sitemap',[n.getSystemRoute({type:'route',route:'_sitemap'})])}function R(t,n){!t.files.has('+not-found')&&n.getSystemRoute&&t.files.set('+not-found',[n.getSystemRoute({type:'route',route:'+not-found'})])}function v(n,o){const s=(0,t.matchLastGroupName)(n.route),u=n.children.find(t=>t.route.replace(/\/index$/,'')===s);let l=u?.route;const c=n.loadRoute();if(c?.unstable_settings){try{l=c.unstable_settings.anchor??c.unstable_settings.initialRouteName??l}catch(t){if(t instanceof Error&&!t.message.match(/You cannot dot into a client module/))throw t}if(s){l=c.unstable_settings?.[s]?.anchor??c.unstable_settings?.[s]?.initialRouteName??l}}return Object.assign({},n,{route:n.route.replace(/\/?_layout$/,''),children:[],initialRouteName:l})}function $(n,o,s=[]){if('route'===n.type)n.entryPoints=[...new Set([...s,n.contextKey])];else if('redirect'===n.type)n.entryPoints=[...new Set([...s,n.destinationContextKey])];else if('layout'===n.type){if(!n.children)throw new Error(`Layout "${n.contextKey}" does not contain any child routes`);s=[...s,n.contextKey];const u=(0,t.matchGroupName)(n.route),l=n.children.find(t=>t.route.replace(/\/index$/,'')===u);let c=l?.route;if(!o.internal_stripLoadRoute){const t=n.loadRoute();if(t?.unstable_settings){try{c=t.unstable_settings.anchor??t.unstable_settings.initialRouteName??c}catch(t){if(t instanceof Error&&!t.message.match(/You cannot dot into a client module/))throw t}if(u){const n=t.unstable_settings?.[u]?.anchor??t.unstable_settings?.[u]?.initialRouteName;c=n??c}}}if(c){const t=n.children.find(t=>t.route===c);if(!t){const t=n.children.filter(t=>!t.generated).map(t=>`'${t.route}'`).join(', ');throw u?new Error(`Layout ${n.contextKey} has invalid anchor '${c}' for group '(${u})'. Valid options are: ${t}`):new Error(`Layout ${n.contextKey} has invalid anchor '${c}'. Valid options are: ${t}`)}n.initialRouteName=c,s.push(t.contextKey)}for(const t of n.children)$(t,o,s)}}function b(t){const n=t[t.length-1];if(!t[0])throw new Error(`The file ${n.contextKey} does not have a fallback sibling file without a platform extension.`);return n}},675,[449,470]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=r(d[0]).default;const n=["style","leftIcon","rightIcon","filename","level","info"];var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Sitemap=void 0,e.getNavOptions=function(){return{title:'sitemap',presentation:'modal',headerLargeTitle:!1,headerTitleStyle:{color:'white'},headerShown:!0,headerTintColor:'white',headerLargeTitleStyle:{color:'white'},headerStyle:{backgroundColor:'black',borderBottomColor:'#323232'},header:()=>{const t='android'===u.Platform.OS?f.SafeAreaView:u.View;return(0,l.jsx)(t,{style:L.header,children:(0,l.jsxs)(u.View,{style:L.headerContent,children:[(0,l.jsx)(u.View,{style:L.headerIcon,children:(0,l.jsx)(k,{})}),(0,l.jsx)(u.Text,{role:"heading","aria-level":1,style:L.title,children:"Sitemap"})]})})}}};const l=r(d[1]),s=o(r(d[2])),c=o(r(d[3])),u=r(d[4]),f=r(d[5]),h=r(d[6]),x=r(d[7]),y=r(d[8]),p=r(d[9]);function j(){const t=(0,y.useSitemap)(),n=c.default.useMemo(()=>t?.children.filter(({isInternal:t})=>!t)??[],[t]),o='android'===u.Platform.OS?f.SafeAreaView:u.View;return(0,l.jsx)(o,{style:L.container,testID:"expo-router-sitemap",children:(0,l.jsxs)(u.ScrollView,{contentContainerStyle:L.scroll,automaticallyAdjustContentInsets:!0,contentInsetAdjustmentBehavior:"automatic",children:[n.map(t=>(0,l.jsx)(u.View,{testID:"sitemap-item-container",style:L.itemContainer,children:(0,l.jsx)(b,{node:t})},t.contextKey)),(0,l.jsx)(D,{})]})})}function b({node:t,level:n=0}){const o=c.default.useMemo(()=>t.children.length>0||t.contextKey.match(/_layout\.[jt]sx?$/),[t]),s=t.isInitial?'Initial':t.isGenerated?'Generated':'';return o?(0,l.jsx)(I,{node:t,level:n,info:s}):(0,l.jsx)(w,{node:t,level:n,info:s})}function I({node:t,level:n,info:o}){const[s,f]=c.default.useState(!0);return(0,l.jsxs)(u.View,{style:L.itemInnerContainer,children:[(0,l.jsx)(C,{style:{opacity:.4},leftIcon:(0,l.jsx)(v,{}),rightIcon:(0,l.jsx)(z,{rotation:s?0:180}),filename:t.filename,level:n,info:o,onPress:()=>f(t=>!t)}),!s&&t.children.map(o=>(0,l.jsx)(b,{node:o,level:n+(t.isGenerated?0:1)},o.contextKey))]})}function w({node:t,info:n,level:o}){return(0,l.jsx)(p.Link,{accessibilityLabel:t.contextKey,href:t.href,asChild:!0,replace:!0,children:(0,l.jsx)(C,{leftIcon:(0,l.jsx)(S,{}),rightIcon:(0,l.jsx)(V,{}),filename:t.filename,level:o,info:n})})}function C(o){let{style:s,leftIcon:c,rightIcon:f,filename:h,level:y,info:p}=o,j=t(o,n);return(0,l.jsx)(x.Pressable,Object.assign({},j,{children:({pressed:t,hovered:n})=>(0,l.jsxs)(u.View,{testID:"sitemap-item",style:[L.itemInnerContainer,L.itemPressable,{paddingLeft:20+20*y,backgroundColor:n?'#202425':'#151718'},t&&{backgroundColor:'#26292b'},s],children:[(0,l.jsxs)(u.View,{style:{flexDirection:'row',alignItems:'center'},children:[c,(0,l.jsx)(u.Text,{style:L.filename,children:h})]}),(0,l.jsxs)(u.View,{style:{flexDirection:'row',alignItems:'center'},children:[!!p&&(0,l.jsx)(u.Text,{style:[L.virtual,{marginRight:8}],children:p}),f]})]})}))}function S(){return(0,l.jsx)(u.Image,{style:L.image,source:r(d[10])})}function v(){return(0,l.jsx)(u.Image,{style:L.image,source:r(d[11])})}function V(){return(0,l.jsx)(u.Image,{style:L.image,source:r(d[12])})}function k(){return(0,l.jsx)(u.Image,{style:L.image,source:r(d[13])})}function z({rotation:t=0}){return(0,l.jsx)(u.Image,{style:[L.image,{transform:[{rotate:`${t}deg`}]}],source:r(d[14])})}function D(){const t=window.location.origin,n=s.default.expoConfig?.sdkVersion||'Unknown',o=(()=>{if(!g.HermesInternal)return null;const t=g.HermesInternal?.getRuntimeProperties?.()??{},n=t['OSS Release Version'],o=t['Static Hermes'];return t?o?`${n} (shermes)`:n:null})();return(0,l.jsxs)(u.View,{testID:"sitemap-system-info",style:{gap:8,marginTop:16},children:[(0,l.jsx)(u.Text,{style:L.systemInfoTitle,children:"System Information"}),(0,l.jsxs)(u.View,{style:L.systemInfoContainer,children:[(0,l.jsx)(T,{right:"production",children:"Mode"}),(0,l.jsx)(T,{right:n,children:"Expo SDK"}),o&&(0,l.jsx)(T,{right:o,children:"Hermes version"}),t&&(0,l.jsx)(T,{right:t,children:"Location origin"})]})]})}function T({children:t,right:n}){return(0,l.jsxs)(u.View,{style:L.systemInfoItem,children:[(0,l.jsx)(u.Text,{style:L.systemInfoLabel,numberOfLines:1,ellipsizeMode:"tail",children:t}),(0,l.jsx)(u.View,{style:{flex:1}}),(0,l.jsx)(u.Text,{selectable:!0,style:[L.systemInfoValue,L.code],numberOfLines:1,ellipsizeMode:"tail",children:n})]})}e.Sitemap=()=>(0,l.jsx)(h.NoSSR,{children:(0,l.jsx)(j,{})});const L=u.StyleSheet.create({container:{backgroundColor:'black',flex:1,alignItems:'stretch'},header:{backgroundColor:'#151718',paddingVertical:16,borderBottomWidth:1,borderColor:'#313538',boxShadow:'0px 3px 3px rgba(0, 0, 0, 0.33)'},headerContent:Object.assign({flexDirection:'row',alignItems:'center',gap:14,paddingHorizontal:'5%'},u.Platform.select({web:{width:'100%',maxWidth:960,marginHorizontal:'auto'}})),title:{color:'white',fontSize:28,fontWeight:'bold'},scroll:Object.assign({gap:12,paddingHorizontal:'5%',paddingVertical:16},u.Platform.select({ios:{paddingBottom:24},web:{width:'100%',maxWidth:960,marginHorizontal:'auto',paddingBottom:24},default:{paddingBottom:12}})),itemContainer:{borderWidth:1,borderColor:'#313538',backgroundColor:'#151718',borderRadius:12,borderCurve:'continuous'},itemInnerContainer:{backgroundColor:'#151718',borderRadius:12,borderCurve:'continuous',gap:12},itemPressable:Object.assign({paddingHorizontal:20,paddingVertical:16,flexDirection:'row',justifyContent:'space-between',alignItems:'center'},u.Platform.select({web:{transitionDuration:'100ms'}})),filename:{color:'white',fontSize:20,marginLeft:12},virtual:{textAlign:'right',color:'white'},image:{width:24,height:24,resizeMode:'contain',opacity:.6},headerIcon:{width:40,height:40,backgroundColor:'#202425',borderRadius:8,flexDirection:'row',alignItems:'center',justifyContent:'center'},systemInfoContainer:{borderWidth:1,borderColor:'#313538',backgroundColor:'#151718',borderRadius:12,gap:8,borderCurve:'continuous',padding:20},systemInfoTitle:{color:'white',fontSize:18,fontWeight:'600',marginBottom:12,paddingHorizontal:20},systemInfoItem:{flexDirection:'row',gap:8,alignItems:'center',flexWrap:'wrap'},systemInfoLabel:{color:'white',fontSize:16,lineHeight:24},systemInfoValue:{color:'white',fontSize:16,opacity:.7,flexShrink:1,letterSpacing:.5},code:{fontVariant:['tabular-nums'],fontFamily:u.Platform.select({default:"SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace",ios:'ui-monospace',android:'monospace'}),fontWeight:'500'}})},676,[19,6,403,11,220,17,677,678,679,641,680,681,682,683,684]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.NoSSR=function({children:t}){const[f,l]=n.default.useState(!1);if(n.default.useEffect(()=>{l(!0)},[]),!f)return null;return(0,u.jsx)(u.Fragment,{children:t})};const u=r(d[0]),n=t(r(d[1]))},677,[6,11]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Pressable=void 0;const s=r(d[0]);e.Pressable=s.Pressable},678,[220]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useSitemap=function(){return(0,t.useMemo)(()=>o.store.routeNode?h(o.store.routeNode,[]):null,[o.store.routeNode])};const t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),l=(t,n)=>[...n,...t.route.split('/')],u=(t,n)=>'/'+l(t,n).map(t=>(0,s.matchDynamicName)(t)?.deep?t+'/'+Date.now():'index'===t?'':t).filter(Boolean).join('/'),c=t=>{const n=t.contextKey.split('/');if(t.contextKey.match(/_layout\.[jt]sx?$/))return n[n.length-2]+'/'+n[n.length-1];const o=t.route.split('/').length;return n.slice(-o).join('/')},h=(t,o)=>({contextKey:t.contextKey,filename:c(t),href:u(t,o),isInitial:t.initialRouteName===t.route,isInternal:t.internal??!1,isGenerated:t.generated??!1,children:[...t.children].sort(n.sortRoutes).map(n=>h(n,l(t,o)))})},679,[11,448,466,449]); +__d(function(g,r,i,a,m,e,d){m.exports={uri:"/assets/node_modules/expo-router/assets/file.19eeb73b9593a38f8e9f418337fc7d10.png",width:48,height:48,toString(){return this.uri}}},680,[]); +__d(function(g,r,i,a,m,e,d){m.exports={uri:"/assets/node_modules/expo-router/assets/pkg.ab19f4cbc543357183a20571f68380a3.png",width:48,height:48,toString(){return this.uri}}},681,[]); +__d(function(g,r,i,a,m,e,d){m.exports={uri:"/assets/node_modules/expo-router/assets/forward.d8b800c443b8972542883e0b9de2bdc6.png",width:48,height:48,toString(){return this.uri}}},682,[]); +__d(function(g,r,i,a,m,e,d){m.exports={uri:"/assets/node_modules/expo-router/assets/sitemap.412dd9275b6b48ad28f5e3d81bb1f626.png",width:48,height:48,toString(){return this.uri}}},683,[]); +__d(function(g,r,i,a,m,e,d){m.exports={uri:"/assets/node_modules/expo-router/assets/arrow_down.017bc6ba3fc25503e5eb5e53826d48a8.png",width:48,height:48,toString(){return this.uri}}},684,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Unmatched=function(){return(0,n.jsx)(u.NoSSR,{children:(0,n.jsx)(b,{})})};const n=r(d[0]),o=r(d[1]),s=t(r(d[2])),l=r(d[3]),c=r(d[4]),u=r(d[5]),h=r(d[6]),f=r(d[7]),x=r(d[8]),p=r(d[9]),y=r(d[10]),j=r(d[11]);function b(){const[t,u]=s.default.useState(!1),b=(0,c.useRouter)(),P=(0,p.useRoute)(),T=(0,f.useNavigation)(),v=(0,c.usePathname)(),L=(0,o.createURL)(v);s.default.useEffect(()=>{u(!0)},[]);const w=T.isFocused(),D=(0,y.isRoutePreloadedInStack)(T.getState(),P);return(0,x.useSafeLayoutEffect)(()=>{(!D||D&&w)&&T.setOptions({title:'Not Found'})},[w,D,T]),(0,n.jsxs)(l.View,{testID:"expo-router-unmatched",style:S.container,children:[(0,n.jsx)(k,{}),(0,n.jsx)(l.Text,{role:"heading","aria-level":1,style:S.title,children:"Unmatched Route"}),(0,n.jsx)(l.Text,{role:"heading","aria-level":2,style:[S.subtitle,S.secondaryText],children:"Page could not be found."}),t?(0,n.jsx)(h.Link,Object.assign({href:v,replace:!0},l.Platform.select({native:{asChild:!0}}),{children:(0,n.jsx)(j.Pressable,{children:({hovered:t,pressed:o})=>(0,n.jsx)(l.Text,{style:[S.pageLink,S.secondaryText,l.Platform.select({web:{transitionDuration:'200ms',opacity:1}}),t&&{opacity:.8,textDecorationLine:'underline'},o&&{opacity:.8}],children:L})})})):(0,n.jsx)(l.View,{style:[S.pageLink,S.placeholder]}),(0,n.jsxs)(l.View,{style:S.linkContainer,children:[(0,n.jsx)(j.Pressable,{children:({hovered:t,pressed:o})=>(0,n.jsx)(l.Text,{onPress:()=>{b.canGoBack()?b.back():b.replace('/')},style:[S.link,l.Platform.select({web:{transitionDuration:'200ms',opacity:1}}),t&&{opacity:.8,textDecorationLine:'underline'},o&&{opacity:.8}],children:"Go back"})}),(0,n.jsx)(l.Text,{style:[S.linkSeparator,S.secondaryText],children:"\u2022"}),(0,n.jsx)(h.Link,Object.assign({href:"/_sitemap",replace:!0},l.Platform.select({native:{asChild:!0}}),{children:(0,n.jsx)(j.Pressable,{children:({hovered:t,pressed:o})=>(0,n.jsx)(l.Text,{style:[S.link,l.Platform.select({web:{transitionDuration:'200ms',opacity:1}}),t&&{opacity:.8,textDecorationLine:'underline'},o&&{opacity:.8}],children:"Sitemap"})})}))]})]})}function k(){return(0,n.jsx)(l.Image,{source:r(d[12]),style:S.image})}const S=l.StyleSheet.create({container:{flex:1,backgroundColor:'black',padding:24,paddingBottom:64,alignItems:'center',justifyContent:'center'},image:{width:270,height:168,resizeMode:'contain',marginBottom:28},title:Object.assign({},l.Platform.select({web:{fontSize:64,lineHeight:64},default:{fontSize:56,lineHeight:56}}),{color:'#fff',fontWeight:'800',textAlign:'center'}),subtitle:{fontSize:34,marginTop:4,marginBottom:12,fontWeight:'200',textAlign:'center'},pageLink:{minHeight:20},secondaryText:{color:'#9ba1a6'},placeholder:{backgroundColor:'#9ba1a644',minWidth:180,borderRadius:5},linkContainer:{marginTop:28,flexDirection:'row',gap:12},link:{fontSize:20,textAlign:'center',color:'#52a9ff'},linkSeparator:{fontSize:20}})},685,[6,503,11,220,510,677,641,401,446,119,447,678,686]); +__d(function(g,r,i,a,m,e,d){m.exports={uri:"/assets/node_modules/expo-router/assets/unmatched.20e71bdf79e3a97bf55fd9e164041578.png",width:436,height:266,toString(){return this.uri}}},686,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IsWithinLayoutContext=void 0;const t=r(d[0]);e.IsWithinLayoutContext=(0,t.createContext)(!1)},687,[11]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Protected=void 0,e.isProtectedReactElement=function(n){return Boolean((0,t.isValidElement)(n)&&n.type===o.Group&&n.props&&'guard'in n.props)};const t=r(d[0]),o=r(d[1]);e.Protected=o.Group},688,[11,455]); +__d(function(g,r,_i,a,_m,_e,d){"use strict";var e=r(d[0]).default;const t=["id","initialRouteName","children","layout","screenListeners","screenOptions","screenLayout","UNSTABLE_router"];var n,i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(n=function(e){return n=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},n(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var s=n(e),c=0;cP?.addListener?.('tabPress',e=>{const t=P.isFocused();requestAnimationFrame(()=>{S.index>0&&t&&!e.defaultPrevented&&'native'!==e.data?.__internalTabsType&&P.dispatch(Object.assign({},_.StackActions.popToTop(),{target:S.key}))})}),[P,S.index,S.key]);const{computedState:A,computedDescriptors:R,navigationWrapper:k}=(0,v.usePreviewTransition)(S,P,E,T),w=l.useMemo(()=>{let e=!1;const t={};for(const n of Object.keys(R)){const i=R[n],o=i.options,s=o?.[b.INTERNAL_EXPO_ROUTER_GESTURE_ENABLED_OPTION_NAME],c=void 0!==s,u=h&&'formSheet'===o?.presentation;if(c||u){e=!0;const l=Object.assign({},o);c&&(l.gestureEnabled=s),u&&(l.headerTransparent??=!0,l.contentStyle??={backgroundColor:'transparent'},l.headerShadowVisible??=!1,l.headerLargeTitleShadowVisible??=!1),t[n]=Object.assign({},i,{options:l})}else t[n]=i}return e?t:R},[R]),{registry:M,contextValue:B}=(0,p.useCompositionRegistry)(),C=l.useMemo(()=>(0,p.mergeOptions)(w,M,A),[w,A,M]);return(0,c.jsx)(f.DescriptorsContext,{value:E,children:(0,c.jsx)(x,{children:(0,c.jsx)(p.CompositionContext,{value:B,children:(0,c.jsx)(O.NativeStackView,Object.assign({},L,{state:A,navigation:k,descriptors:C,describe:T}))})})})}},689,[19,6,690,11,655,695,696,526,119,697]); +__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,"GlassView",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(_e,"GlassContainer",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(_e,"isLiquidGlassAvailable",{enumerable:!0,get:function(){return l.isLiquidGlassAvailable}}),Object.defineProperty(_e,"isGlassEffectAPIAvailable",{enumerable:!0,get:function(){return u.isGlassEffectAPIAvailable}});var t=e(r(d[0])),n=e(r(d[1])),l=r(d[2]),u=r(d[3])},690,[691,692,693,694]); +__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 f}});var e,t=r(d[0]),u=r(d[1]),n=(e=u)&&e.__esModule?e:{default:e};function f(e){return(0,t.jsx)(n.default,Object.assign({},e))}},691,[6,85]); +__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 f}});var e,t=r(d[0]),u=r(d[1]),n=(e=u)&&e.__esModule?e:{default:e};function f(e){return(0,t.jsx)(n.default,Object.assign({},e))}},692,[6,85]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.isLiquidGlassAvailable=function(){return!1}},693,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.isGlassEffectAPIAvailable=function(){return!1}},694,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DescriptorsContext=void 0;const t=r(d[0]);e.DescriptorsContext=(0,t.createContext)({})},695,[11]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,o,i){void 0===i&&(i=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&!("get"in u?!n.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,i,u)}:function(t,n,o,i){void 0===i&&(i=o),t[i]=n[o]}),o=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),i=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[n.length]=o);return n},t(n)},function(i){if(i&&i.__esModule)return i;var u={};if(null!=i)for(var s=t(i),c=0;c{f&&t.routes.some(t=>t.key===f)&&l(void 0)},[t,f]);const m=u.useMemo(()=>{if(c){const t=(...t)=>{const{target:o,type:i,data:u}=t[0];return o===c&&u&&'closing'in u&&!u.closing&&('transitionStart'===i?l(c):'transitionEnd'===i&&p(void 0)),n.emit(...t)};return Object.assign({},n,{emit:t})}return n},[n,c,p]),{computedState:v,computedDescriptors:b}=u.useMemo(()=>{if(f){const n=t.preloadedRoutes.find(t=>t.key===f);if(n){return{computedState:Object.assign({},t,{preloadedRoutes:t.preloadedRoutes.filter(t=>t.key!==f),routes:[...t.routes,n],index:t.index+1}),computedDescriptors:f in o?o:Object.assign({},o,{[f]:i(n,!0)})}}}return{computedState:t,computedDescriptors:o}},[t,f,i,o]);return{computedState:v,computedDescriptors:b,navigationWrapper:m}};const u=i(r(d[0])),s=r(d[1])},696,[11,668]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useAnimatedHeaderHeight=e.NativeStackView=e.createNativeStackNavigator=void 0;var t=r(d[0]);Object.defineProperty(e,"createNativeStackNavigator",{enumerable:!0,get:function(){return t.createNativeStackNavigator}});var n=r(d[1]);Object.defineProperty(e,"NativeStackView",{enumerable:!0,get:function(){return n.NativeStackView}});var c=r(d[2]);Object.defineProperty(e,"useAnimatedHeaderHeight",{enumerable:!0,get:function(){return c.useAnimatedHeaderHeight}})},697,[698,699,700]); +__d(function(g,r,_i,a,_m,_e,d){"use strict";var e=r(d[0]).default;const t=["id","initialRouteName","UNSTABLE_routeNamesChangeBehavior","children","layout","screenListeners","screenOptions","screenLayout","UNSTABLE_router"];var n,i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(n=function(e){return n=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},n(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var s=n(e),c=0;c{if(!A||!('type'in A)||'native-tabs'!==A.type)return B?.addListener?.('tabPress',e=>{const t=B.isFocused();requestAnimationFrame(()=>{L.index>0&&t&&!e.defaultPrevented&&B.dispatch(Object.assign({},f.StackActions.popToTop(),{target:L.key}))})})},[A,B,L.index,L.key]),(0,c.jsx)(S,{children:(0,c.jsx)(v.NativeStackView,Object.assign({},O,{state:L,navigation:B,descriptors:m,describe:j}))})}},698,[19,6,11,119,699]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t=r(d[0]).default;const n=["header","headerShown","headerBackIcon","headerBackImageSource","headerLeft","headerTransparent","headerBackTitle","presentation","contentStyle"],o=["label"],i=["tintColor","label"];var l,c=this&&this.__createBinding||(Object.create?function(t,n,o,i){void 0===i&&(i=o);var l=Object.getOwnPropertyDescriptor(n,o);l&&!("get"in l?!n.__esModule:l.writable||l.configurable)||(l={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,i,l)}:function(t,n,o,i){void 0===i&&(i=o),t[i]=n[o]}),s=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),u=this&&this.__importStar||(l=function(t){return l=Object.getOwnPropertyNames||function(t){var n=[];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[n.length]=o);return n},l(t)},function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var o=l(t),i=0;i(t[n.key]=t[n.key]||s(n,!0),t),{});return(0,h.jsx)(v.SafeAreaProviderCompat,{children:l.routes.concat(l.preloadedRoutes).map((s,p)=>{const k=l.index===p,x=l.routes[p-1]?.key,O=l.routes[p+1]?.key,_=x?c[x]:void 0,B=O?c[O]:void 0,{options:w,navigation:C,render:H}=c[s.key]??y[s.key],P=_?{title:(0,v.getHeaderTitle)(_.options,_.route.name),href:f(_.route.name,_.route.params)}:u,T=null!=P,{header:I,headerShown:M,headerBackIcon:L,headerBackImageSource:V,headerLeft:A,headerTransparent:D,headerBackTitle:N,presentation:R,contentStyle:z}=w,E=t(w,n),F=B?.options.presentation,q=void 0!==y[s.key]&&void 0===c[s.key];return(0,h.jsx)(v.Screen,{focused:k,route:s,navigation:C,headerShown:M,headerTransparent:D,header:void 0!==I?I({back:P,options:w,route:s,navigation:C}):(0,h.jsx)(v.Header,Object.assign({},E,{back:P,title:(0,v.getHeaderTitle)(w,s.name),headerLeft:'function'==typeof A?n=>{let{label:i}=n,l=t(n,o);return A(Object.assign({},l,{label:N??i}))}:void 0===A&&T?n=>{let{tintColor:o,label:l}=n,c=t(n,i);return(0,h.jsx)(v.HeaderBackButton,Object.assign({},c,{label:N??l,tintColor:o,backImage:void 0!==L||void 0!==V?()=>(0,h.jsx)(b.Image,{source:L?.source??V,resizeMode:"contain",tintColor:o,style:S.backImage}):void 0,onPress:C.goBack}))}:A,headerTransparent:D})),style:[b.StyleSheet.absoluteFill,{display:(k||null!=F&&j.includes(F))&&!q?'flex':'none'},null!=R&&j.includes(R)?{backgroundColor:'transparent'}:null],children:(0,h.jsx)(v.HeaderBackContext.Provider,{value:P,children:(0,h.jsx)(m,{children:(0,h.jsx)(b.View,{style:[S.contentContainer,z],children:H()})})})},s.key)})})};const h=r(d[1]),f=u(r(d[2])),p=r(d[2]),b=r(d[3]),v=r(d[4]),k=r(d[5]),y=r(d[6]),j=['transparentModal','containedTransparentModal'];const m=({children:t})=>{const n=(0,v.useHeaderHeight)(),[o]=f.useState(()=>new b.Animated.Value(n));return f.useEffect(()=>{o.setValue(n)},[o,n]),(0,h.jsx)(y.AnimatedHeaderHeightContext.Provider,{value:o,children:t})},S=b.StyleSheet.create({contentContainer:{flex:1},backImage:{height:24,width:24,margin:3}})},699,[19,6,11,220,556,119,700]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,i,o){void 0===o&&(o=i);var u=Object.getOwnPropertyDescriptor(n,i);u&&!("get"in u?!n.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return n[i]}}),Object.defineProperty(t,o,u)}:function(t,n,i,o){void 0===o&&(o=i),t[o]=n[i]}),i=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),o=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[n.length]=i);return n},t(n)},function(o){if(o&&o.__esModule)return o;var u={};if(null!=o)for(var c=t(o),f=0;fl({},{children:n,hidden:s,asChild:c,transparent:h,blurEffect:u,style:f,largeStyle:p}),[n,s,c,h,u,f,p]);return(0,o.useCompositionOption)(b),null},e.appendStackHeaderPropsToOptions=l;const t=r(d[0]),n=r(d[1]),o=r(d[2]);function l(t,o){const l=n.StyleSheet.flatten(o.style),s=n.StyleSheet.flatten(o.largeStyle);if(o.hidden)return Object.assign({},t,{headerShown:!1});if(o.asChild)return Object.assign({},t,{header:()=>o.children});o.children&&!o.asChild&&console.warn("To render a custom header, set the 'asChild' prop to true on Stack.Header.");const c='transparent'===l?.backgroundColor,h=void 0!==o.blurEffect,u=!0===o.transparent||!1!==o.transparent&&(c||h);return o.blurEffect&&!1===o.transparent&&console.warn("Stack.Header: 'blurEffect' requires 'transparent' to be enabled."),Object.assign({},t,{headerShown:!o.hidden,headerBlurEffect:o.blurEffect},u&&{headerTransparent:!0},!1===o.transparent&&{headerTransparent:!1},l?.color&&{headerTintColor:l.color},{headerStyle:{backgroundColor:l?.backgroundColor},headerLargeStyle:{backgroundColor:s?.backgroundColor}},'transparent'===l?.shadowColor&&{headerShadowVisible:!1},'transparent'===s?.shadowColor&&{headerLargeTitleShadowVisible:!1})}},702,[11,220,655]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StackSearchBar=function({ref:c,autoCapitalize:l,autoFocus:u,barTintColor:s,tintColor:h,cancelButtonText:p,disableBackButtonOverride:B,hideNavigationBar:C,hideWhenScrolling:S,inputType:T,obscureBackground:b,onBlur:O,onCancelButtonPress:x,onChangeText:f,onClose:k,onFocus:I,onOpen:P,onSearchButtonPress:v,placeholder:w,placement:F,allowToolbarIntegration:_,textColor:j,hintTextColor:y,headerIconColor:z,shouldShowHintSearchIcon:H}){const M=(0,o.useMemo)(()=>t({},{ref:c,autoCapitalize:l,autoFocus:u,barTintColor:s,tintColor:h,cancelButtonText:p,disableBackButtonOverride:B,hideNavigationBar:C,hideWhenScrolling:S,inputType:T,obscureBackground:b,onBlur:O,onCancelButtonPress:x,onChangeText:f,onClose:k,onFocus:I,onOpen:P,onSearchButtonPress:v,placeholder:w,placement:F,allowToolbarIntegration:_,textColor:j,hintTextColor:y,headerIconColor:z,shouldShowHintSearchIcon:H}),[c,l,u,s,h,p,B,C,S,T,b,O,x,f,k,I,P,v,w,F,_,j,y,z,H]);return(0,n.useCompositionOption)(M),null},e.appendStackSearchBarPropsToOptions=t;const o=r(d[0]),n=r(d[1]);function t(o,n){return Object.assign({},o,{headerShown:!0,headerSearchBarOptions:Object.assign({},n)})}},703,[11,655]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StackToolbarView=e.StackToolbarSpacer=e.StackToolbarSearchBarSlot=e.StackToolbarMenuAction=e.StackToolbarMenu=e.StackToolbarButton=e.appendStackToolbarPropsToOptions=e.StackToolbar=e.StackToolbarLabel=e.StackToolbarIcon=e.StackToolbarBadge=void 0;var o=r(d[0]);Object.defineProperty(e,"StackToolbarBadge",{enumerable:!0,get:function(){return o.StackToolbarBadge}}),Object.defineProperty(e,"StackToolbarIcon",{enumerable:!0,get:function(){return o.StackToolbarIcon}}),Object.defineProperty(e,"StackToolbarLabel",{enumerable:!0,get:function(){return o.StackToolbarLabel}});var t=r(d[1]);Object.defineProperty(e,"StackToolbar",{enumerable:!0,get:function(){return t.StackToolbar}});var n=r(d[2]);Object.defineProperty(e,"appendStackToolbarPropsToOptions",{enumerable:!0,get:function(){return n.appendStackToolbarPropsToOptions}});var c=r(d[3]);Object.defineProperty(e,"StackToolbarButton",{enumerable:!0,get:function(){return c.StackToolbarButton}});var b=r(d[4]);Object.defineProperty(e,"StackToolbarMenu",{enumerable:!0,get:function(){return b.StackToolbarMenu}}),Object.defineProperty(e,"StackToolbarMenuAction",{enumerable:!0,get:function(){return b.StackToolbarMenuAction}});var l=r(d[5]);Object.defineProperty(e,"StackToolbarSearchBarSlot",{enumerable:!0,get:function(){return l.StackToolbarSearchBarSlot}});var u=r(d[6]);Object.defineProperty(e,"StackToolbarSpacer",{enumerable:!0,get:function(){return u.StackToolbarSpacer}});var S=r(d[7]);Object.defineProperty(e,"StackToolbarView",{enumerable:!0,get:function(){return S.StackToolbarView}})},704,[705,706,712,707,713,715,717,719]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StackToolbarBadge=e.StackToolbarIcon=e.StackToolbarLabel=void 0;const o=r(d[0]);e.StackToolbarLabel=o.Label,e.StackToolbarIcon=o.Icon,e.StackToolbarBadge=o.Badge},705,[455]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.StackToolbar=void 0;const o=r(d[0]),l=t(r(d[1]));e.StackToolbar=l.default;const c=r(d[2]),u=r(d[3]),n=r(d[4]),S=r(d[5]),f=r(d[6]);l.default.Button=o.StackToolbarButton,l.default.Menu=c.StackToolbarMenu,l.default.MenuAction=c.StackToolbarMenuAction,l.default.SearchBarSlot=u.StackToolbarSearchBarSlot,l.default.Spacer=n.StackToolbarSpacer,l.default.View=S.StackToolbarView,l.default.Label=f.StackToolbarLabel,l.default.Icon=f.StackToolbarIcon,l.default.Badge=f.StackToolbarBadge},706,[707,712,713,715,717,719,705]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StackToolbarButton=void 0,e.convertStackToolbarButtonPropsToRNHeaderItem=function(o){if(o.hidden)return;return Object.assign({},(0,l.convertStackHeaderSharedPropsToRNSharedHeaderItem)(o),{type:'button',onPress:o.onPress??(()=>{}),selected:!!o.selected})};const o=r(d[0]),t=r(d[1]),n=r(d[2]),c=r(d[3]),s=r(d[4]),l=r(d[5]),u=r(d[6]);e.StackToolbarButton=u=>{const S=(0,s.useToolbarPlacement)();(0,t.useMemo)(()=>(0,c.filterAllowedChildrenElements)(u.children,b),[u.children]);if(null==S)throw new Error('Stack.Toolbar.Button must be used inside a Stack.Toolbar');const T=(0,l.convertStackHeaderSharedPropsToRNSharedHeaderItem)(u,!0),k='sfSymbol'===T?.icon?.type?T.icon.name:void 0,h='image'===T?.icon?.type?T.icon.source:void 0,v=(0,l.extractXcassetName)(u),f=(0,l.extractIconRenderingMode)(u)??u.iconRenderingMode;return(0,o.jsx)(n.NativeToolbarButton,Object.assign({},T,{icon:k,source:h,xcassetName:v,image:u.image,imageRenderingMode:f}))};const b=[u.StackToolbarLabel,u.StackToolbarIcon,u.StackToolbarBadge]},707,[6,11,708,462,709,710,705]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NativeToolbarButton=void 0;e.NativeToolbarButton=()=>null},708,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ToolbarColorContext=e.ToolbarPlacementContext=void 0,e.useToolbarPlacement=function(){return(0,o.useContext)(e.ToolbarPlacementContext)},e.useToolbarColors=function(){return(0,o.useContext)(e.ToolbarColorContext)};const o=r(d[0]);e.ToolbarPlacementContext=(0,o.createContext)(null),e.ToolbarColorContext=(0,o.createContext)({})},709,[11]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=r(d[0]).default;const n=["children","style","separateBackground","icon"];Object.defineProperty(e,"__esModule",{value:!0}),e.extractXcassetName=function(t){const n=(0,s.getFirstChildOfType)(t.children,c.StackToolbarIcon)?.props;if(n&&'xcasset'in n)return n.xcasset;return},e.extractIconRenderingMode=function(t){const n=(0,s.getFirstChildOfType)(t.children,c.StackToolbarIcon)?.props;if(n&&'renderingMode'in n)return n.renderingMode;return},e.areAllChildrenPrimitiveValues=function(t){const n=o.Children.toArray(t);return n.filter(t=>u.includes(typeof t)).length===n.length},e.convertChildrenToString=p,e.convertStackHeaderSharedPropsToRNSharedHeaderItem=function(o,u=!1){const{children:f,style:y,separateBackground:h}=o,T=t(o,n),S=p(f),b=(0,s.getFirstChildOfType)(f,c.StackToolbarLabel),x=o.icon?'string'==typeof o.icon?{sf:o.icon}:{src:o.icon}:void 0,v=(0,s.getFirstChildOfType)(f,c.StackToolbarIcon)?.props??x,C=(0,s.getFirstChildOfType)(f,c.StackToolbarBadge),k=(()=>{if(v){if('xcasset'in v&&u)return{type:'xcasset',name:v.xcasset};if('src'in v||'xcasset'in v){return{type:'image',source:'src'in v?v.src:{uri:v.xcasset},tinted:'template'===(('renderingMode'in v?v.renderingMode:void 0)??o.iconRenderingMode??(o.tintColor?'template':'original'))}}return{type:'sfSymbol',name:v.sf}}})(),M=Object.assign({},T,{label:b?.props.children??S,sharesBackground:!h});if(y){const t=(0,l.convertTextStyleToRNTextStyle)(y)??{};M.labelStyle=t}if(C){M.badge={value:C.props.children??''};const t=(0,l.convertTextStyleToRNTextStyle)(C.props.style);t&&(M.badge.style=t)}k&&(M.icon=k);return M};const o=r(d[1]),c=r(d[2]),s=r(d[3]),l=r(d[4]);const u=['string','number'];function p(t){return o.Children.toArray(t).filter(t=>u.includes(typeof t)).join('')}},710,[19,11,705,462,711]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.convertTextStyleToRNTextStyle=function(n){const o=t.StyleSheet.flatten(n);if(!o)return;if('fontWeight'in o)return Object.assign({},o,{fontWeight:'number'==typeof o.fontWeight?String(o.fontWeight):o.fontWeight});return o},e.convertFontWeightToComposeFontWeight=function(t){if(null==t)return;const o=String(t);if(!n.has(o))return;return o};const t=r(d[0]);const n=new Set(['100','200','300','400','500','600','700','800','900','normal','bold'])},711,[220]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StackToolbar=void 0,e.appendStackToolbarPropsToOptions=P;const o=r(d[0]),t=r(d[1]),n=r(d[0]),l=r(d[2]),c=r(d[3]),b=r(d[4]),s=r(d[5]),u=r(d[6]),k=r(d[7]),S=r(d[8]),T=r(d[9]),h=r(d[10]),C=r(d[11]),p=r(d[12]);e.StackToolbar=n=>{if((0,k.useToolbarPlacement)())throw new Error("Stack.Toolbar cannot be nested inside another Stack.Toolbar.");return'bottom'!==n.placement&&n.placement?(0,o.createElement)(j,Object.assign({},n,{key:n.placement})):(0,t.jsx)(f,Object.assign({},n))};const f=({children:o,disableImePadding:l,tintColor:c,backgroundColor:b})=>{const s=(0,n.useMemo)(()=>({tintColor:c,backgroundColor:b}),[c,b]);return(0,t.jsx)(k.ToolbarPlacementContext.Provider,{value:"bottom",children:(0,t.jsx)(k.ToolbarColorContext.Provider,{value:s,children:(0,t.jsx)(C.NativeMenuContext,{value:!0,children:(0,t.jsx)(p.RouterToolbarHost,{withImePadding:!l,backgroundColor:b,children:o})})})})},j=({children:o,placement:t,asChild:l,disableImePadding:c,tintColor:b,backgroundColor:s})=>{if('left'!==t&&'right'!==t)throw new Error(`Invalid placement "${t}" for Stack.Toolbar. Expected "left" or "right".`);const u=(0,n.useMemo)(()=>P({},{children:o,placement:t,asChild:l,disableImePadding:c,tintColor:b,backgroundColor:s}),[o,t,l,c,b,s]);return(0,h.useCompositionOption)(u),null};function P(o,n){const{children:l,placement:c="bottom",asChild:b}=n;if('bottom'===c)return o;const s={tintColor:n.tintColor,backgroundColor:n.backgroundColor};if(b){const n=(0,t.jsx)(k.ToolbarColorContext.Provider,{value:s,children:l});return'left'===c?Object.assign({},o,{headerShown:!0,headerLeft:()=>n}):Object.assign({},o,{headerShown:!0,headerRight:()=>n})}return Object.assign({},o,(0,S.processHeaderItemsForPlatform)(l,c,s)??{})}e.StackToolbar.Button=l.StackToolbarButton,e.StackToolbar.Menu=c.StackToolbarMenu,e.StackToolbar.MenuAction=c.StackToolbarMenuAction,e.StackToolbar.SearchBarSlot=b.StackToolbarSearchBarSlot,e.StackToolbar.Spacer=s.StackToolbarSpacer,e.StackToolbar.View=u.StackToolbarView,e.StackToolbar.Label=T.StackToolbarLabel,e.StackToolbar.Icon=T.StackToolbarIcon,e.StackToolbar.Badge=T.StackToolbarBadge,e.default=e.StackToolbar},712,[11,6,707,713,715,717,719,709,721,705,655,652,722]); +__d(function(g,r,_i,a,m,e,d){"use strict";var o=r(d[0]).default;const t=["title"],n=["children","isOn","unstable_keepPresented","icon"];Object.defineProperty(e,"__esModule",{value:!0}),e.StackToolbarMenuAction=e.StackToolbarMenu=void 0,e.convertStackToolbarMenuPropsToRNHeaderItem=function(n,i=!1){if(n.hidden)return;const{title:l}=n,u=o(n,t),p=c.Children.toArray(n.children).filter(o=>(0,s.isChildOfType)(o,e.StackToolbarMenuAction)||(0,s.isChildOfType)(o,e.StackToolbarMenu)),{label:S,menuTitle:k}=T(n.children,l),M=(0,b.convertStackHeaderSharedPropsToRNSharedHeaderItem)(u,i),y=Object.assign({},M,{label:S,type:'menu',menu:{multiselectable:!0,items:p.map(o=>(0,s.isChildOfType)(o,e.StackToolbarMenu)?f(o.props):h(o.props)).filter(o=>!!o)}});k&&(y.menu.title=k);return y},e.convertStackToolbarMenuActionPropsToRNHeaderItem=h;const i=r(d[1]),c=r(d[2]),l=r(d[3]),s=r(d[4]),u=r(d[5]),b=r(d[6]),p=r(d[7]);function T(o,t){const n=(0,s.getFirstChildOfType)(o,p.StackToolbarLabel),i=n?.props.children;return{label:i??t??'',menuTitle:t??''}}function S(o){return o.tinted?{type:'templateSource',templateSource:o.source}:{type:'imageSource',imageSource:o.source}}function f(o){if(o.hidden)return;const t=(0,b.convertStackHeaderSharedPropsToRNSharedHeaderItem)(o),n={type:'submenu',items:c.Children.toArray(o.children).filter(o=>(0,s.isChildOfType)(o,e.StackToolbarMenuAction)||(0,s.isChildOfType)(o,e.StackToolbarMenu)).map(o=>(0,s.isChildOfType)(o,e.StackToolbarMenu)?f(o.props):h(o.props)).filter(o=>!!o),label:t.label||o.title||'',multiselectable:!0};return void 0!==o.inline&&(n.inline=o.inline),void 0!==o.palette&&(n.layout=o.palette?'palette':'default'),void 0!==o.destructive&&(n.destructive=o.destructive),t.icon&&('sfSymbol'===t.icon.type?n.icon=t.icon:n.icon=S(t.icon)),n}e.StackToolbarMenu=o=>{if(null==(0,u.useToolbarPlacement)())throw new Error('Stack.Toolbar.Menu must be used inside a Stack.Toolbar');const t=(0,c.useMemo)(()=>(0,s.filterAllowedChildrenElements)(o.children,k),[o.children]),n=(0,b.convertStackHeaderSharedPropsToRNSharedHeaderItem)(o,!0),{label:p,menuTitle:S}=T(o.children,o.title),f='sfSymbol'===n?.icon?.type?n.icon.name:void 0,h='image'===n?.icon?.type?n.icon.source:void 0,M=(0,b.extractXcassetName)(o),y=(0,b.extractIconRenderingMode)(o)??o.iconRenderingMode;return(0,i.jsx)(l.NativeToolbarMenu,Object.assign({},o,{icon:f,source:h,xcassetName:M,image:o.image,imageRenderingMode:y,label:p,title:S,badge:n?.badge,children:t}))};function h(t){const{isOn:i,unstable_keepPresented:c}=t,l=o(t,n),s=(0,b.convertStackHeaderSharedPropsToRNSharedHeaderItem)(t),u=Object.assign({},l,{description:t.subtitle,type:'action',label:s.label,state:i?'on':'off',onPress:t.onPress??(()=>{})});return void 0!==c&&(u.keepsMenuPresented=c),s.icon&&('sfSymbol'===s.icon.type?u.icon=s.icon:u.icon=S(s.icon)),u}e.StackToolbarMenuAction=o=>{(0,u.useToolbarPlacement)();const t='string'==typeof o.icon?o.icon:void 0,n='string'!=typeof o.icon?o.icon:void 0;return(0,i.jsx)(l.NativeToolbarMenuAction,Object.assign({},o,{icon:t,source:n,image:o.image,imageRenderingMode:o.iconRenderingMode}))};const k=[e.StackToolbarMenu,e.StackToolbarMenuAction,l.NativeToolbarMenu,l.NativeToolbarMenuAction,p.StackToolbarLabel,p.StackToolbarIcon,p.StackToolbarBadge]},713,[19,6,11,714,462,709,710,705]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NativeToolbarMenuAction=e.NativeToolbarMenu=void 0;e.NativeToolbarMenu=()=>null;e.NativeToolbarMenuAction=()=>null},714,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StackToolbarSearchBarSlot=void 0;const o=r(d[0]),t=r(d[1]),c=r(d[2]);e.StackToolbarSearchBarSlot=l=>{if('bottom'!==(0,c.useToolbarPlacement)())throw new Error('Stack.Toolbar.SearchBarSlot must be used inside a Stack.Toolbar');return(0,o.jsx)(t.NativeToolbarSearchBarSlot,Object.assign({},l))}},715,[6,716,709]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NativeToolbarSearchBarSlot=void 0;e.NativeToolbarSearchBarSlot=()=>null},716,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StackToolbarSpacer=void 0,e.convertStackToolbarSpacerPropsToRNHeaderItem=function(o){const{hidden:t,width:c}=o;if(t)return;if(void 0===c)return;return{type:'spacing',spacing:c??0}};const o=r(d[0]),t=r(d[1]),c=r(d[2]);e.StackToolbarSpacer=n=>{if(null==(0,c.useToolbarPlacement)())throw new Error('Stack.Toolbar.Spacer must be used inside a Stack.Toolbar');return(0,o.jsx)(t.NativeToolbarSpacer,Object.assign({},n,{hidesSharedBackground:!n.sharesBackground}))}},717,[6,718,709]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NativeToolbarSpacer=void 0;e.NativeToolbarSpacer=()=>null},718,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StackToolbarView=void 0,e.convertStackToolbarViewPropsToRNHeaderItem=function(t){if(t.hidden)return;const{children:n,hidesSharedBackground:c}=t;n||console.warn('Stack.Toolbar.View requires a child element to render custom content in the toolbar.');return{type:'custom',element:n||(0,o.jsx)(o.Fragment,{}),hidesSharedBackground:c}};const o=r(d[0]),t=r(d[1]),n=r(d[2]);e.StackToolbarView=c=>{if(null==(0,n.useToolbarPlacement)())throw new Error('Stack.Toolbar.View must be used inside a Stack.Toolbar');return(0,o.jsx)(t.NativeToolbarView,Object.assign({},c,{children:c.children}))}},719,[6,720,709]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NativeToolbarView=void 0;e.NativeToolbarView=()=>null},720,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.processHeaderItemsForPlatform=function(t,n,o){return null}},721,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RouterToolbarHost=function(t){return null},e.RouterToolbarItem=function(t){return null}},722,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.appendStackScreenBackButtonPropsToOptions=e.StackScreenBackButton=e.appendStackScreenTitlePropsToOptions=e.StackScreenTitle=void 0;var t=r(d[0]);Object.defineProperty(e,"StackScreenTitle",{enumerable:!0,get:function(){return t.StackScreenTitle}}),Object.defineProperty(e,"appendStackScreenTitlePropsToOptions",{enumerable:!0,get:function(){return t.appendStackScreenTitlePropsToOptions}});var n=r(d[1]);Object.defineProperty(e,"StackScreenBackButton",{enumerable:!0,get:function(){return n.StackScreenBackButton}}),Object.defineProperty(e,"appendStackScreenBackButtonPropsToOptions",{enumerable:!0,get:function(){return n.appendStackScreenBackButtonPropsToOptions}})},723,[724,727]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.appendStackScreenTitlePropsToOptions=e.StackScreenTitle=void 0;const t=r(d[0]);e.StackScreenTitle=t.StackTitle,e.appendStackScreenTitlePropsToOptions=t.appendStackTitlePropsToOptions},724,[725]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StackTitle=function({children:t,asChild:n,style:o,largeStyle:s,large:S}){const f=(0,l.useMemo)(()=>c({},{children:t,asChild:n,style:o,largeStyle:s,large:S}),[t,n,o,s,S]);return(0,h.useCompositionOption)(f),null},e.appendStackTitlePropsToOptions=c;const t=r(d[0]),l=r(d[1]),n=r(d[2]),o=r(d[3]),h=r(d[4]),s=r(d[5]);function c(l,h){const c=n.StyleSheet.flatten(h.style),S=n.StyleSheet.flatten(h.largeStyle);let f=h.asChild?{headerTitle:()=>(0,t.jsx)(t.Fragment,{children:h.children})}:{title:(0,o.convertChildrenToString)(h.children)};return h.asChild&&'string'==typeof h.children&&(f={}),h.asChild||null==h.children||(0,o.areAllChildrenPrimitiveValues)(h.children)||(f={}),Object.assign({},l,f,{headerLargeTitle:h.large},void 0!==c?.textAlign?{headerTitleAlign:c.textAlign}:{},{headerTitleStyle:Object.assign({},c,c?.fontWeight?{fontWeight:(0,s.convertFontWeightToStringFontWeight)(c?.fontWeight)}:{}),headerLargeTitleStyle:Object.assign({},S,S?.fontWeight?{fontWeight:(0,s.convertFontWeightToStringFontWeight)(S?.fontWeight)}:{})})}},725,[6,11,220,710,655,726]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.convertFontWeightToStringFontWeight=function(t){if('number'==typeof t)return String(t);return t}},726,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StackScreenBackButton=function({children:o,style:s,withMenu:u,displayMode:l,hidden:h,src:B}){const p=(0,n.useMemo)(()=>c({},{children:o,style:s,withMenu:u,displayMode:l,hidden:h,src:B}),[o,s,u,l,h,B]);return(0,t.useCompositionOption)(p),null},e.appendStackScreenBackButtonPropsToOptions=c;const n=r(d[0]),t=r(d[1]);function c(n,t){return Object.assign({},n,{headerBackTitle:t.children,headerBackTitleStyle:t.style,headerBackImageSource:t.src,headerBackButtonDisplayMode:t.displayMode,headerBackButtonMenuEnabled:t.withMenu,headerBackVisible:!t.hidden})}},727,[11,655]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=r(d[0]).default;const n=["children","options"];Object.defineProperty(e,"__esModule",{value:!0}),e.StackScreen=void 0,e.validateStackPresentation=T,e.appendScreenStackPropsToOptions=function(t,n){let o=Object.assign({},t,n.options);function f(t,n){if((0,S.isChildOfType)(t,s.StackHeaderComponent))return(0,s.appendStackHeaderPropsToOptions)(n,t.props);if((0,S.isChildOfType)(t,p.StackTitle))return(0,p.appendStackTitlePropsToOptions)(n,t.props);if((0,S.isChildOfType)(t,l.StackScreenBackButton))return(0,l.appendStackScreenBackButtonPropsToOptions)(n,t.props);if((0,S.isChildOfType)(t,u.StackToolbar)){if('bottom'===(t.props.placement??'bottom'))throw new Error("Stack.Toolbar with placement=\"bottom\" cannot be used inside Stack.Screen.");return(0,u.appendStackToolbarPropsToOptions)(n,t.props)}const o='function'==typeof t.type?t.type.name||'Unknown':String(t.type);return console.warn(`Unknown child element passed to Stack.Screen: ${o}`),n}return T(o),c.Children.forEach(n.children,t=>{(0,c.isValidElement)(t)&&(o=f(t,o))}),o};const o=r(d[1]),c=r(d[2]),s=r(d[3]),p=r(d[4]),l=r(d[5]),u=r(d[6]),S=r(d[7]),f=r(d[8]);e.StackScreen=Object.assign(function(s){let{children:p,options:l}=s,u=t(s,n);const S=(0,c.useMemo)(()=>T('function'==typeof l?{}:l??{}),[l]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(f.Screen,Object.assign({},u,{options:S})),p]})},{Title:p.StackTitle,BackButton:l.StackScreenBackButton});const k=['card','modal','transparentModal','containedModal','containedTransparentModal','fullScreenModal','formSheet','pageSheet'];function T(t){if('function'==typeof t)return(...n)=>{const o=t(...n);return T(o),o};const n=t.presentation;if(n&&!k.includes(n))throw new Error(`Invalid presentation value "${n}" passed to Stack.Screen. Valid values are: ${k.map(t=>`"${t}"`).join(', ')}.`);return t}},728,[19,6,11,702,725,723,704,462,118]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t=r(d[0]).default;const n=["children","options"];var o,i=this&&this.__createBinding||(Object.create?function(t,n,o,i){void 0===i&&(i=o);var c=Object.getOwnPropertyDescriptor(n,o);c&&!("get"in c?!n.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,i,c)}:function(t,n,o,i){void 0===i&&(i=o),t[i]=n[o]}),c=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),s=this&&this.__importStar||(o=function(t){return o=Object.getOwnPropertyNames||function(t){var n=[];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[n.length]=o);return n},o(t)},function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var s=o(t),l=0;l{if((0,h.isChildOfType)(c,f.StackScreen)){const o=c.props,{children:i,options:s}=o,u=t(o,n),p='function'==typeof s?(...t)=>(0,f.appendScreenStackPropsToOptions)(s(...t),{children:i}):(0,f.appendScreenStackPropsToOptions)(s??{},{children:i});return(0,l.jsx)(b.Screen,Object.assign({},u,{options:p}),u.name)}return(0,h.isChildOfType)(c,O.Protected)?(0,l.jsx)(O.Protected,Object.assign({},o(c.props)),`${s}-${i.guard}`):((0,h.isChildOfType)(c,p.StackHeaderComponent)||(u.default.isValidElement(c)?console.warn(`Unknown child element passed to Stack: ${c.type}`):console.warn(`Unknown child element passed to Stack: ${c}`)),null)}).filter(Boolean)})};const l=r(d[1]),u=s(r(d[2])),p=r(d[3]),f=r(d[4]),h=r(d[5]),O=r(d[6]),b=r(d[7])},729,[19,6,11,702,728,462,688,118]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t=r(d[0]).default;const n=["wrapper"];var o,i=this&&this.__createBinding||(Object.create?function(t,n,o,i){void 0===i&&(i=o);var c=Object.getOwnPropertyDescriptor(n,o);c&&!("get"in c?!n.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,i,c)}:function(t,n,o,i){void 0===i&&(i=o),t[i]=n[o]}),c=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),s=this&&this.__importStar||(o=function(t){return o=Object.getOwnPropertyNames||function(t){var n=[];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[n.length]=o);return n},o(t)},function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var s=o(t),l=0;l({children:t})=>(0,l.jsx)(i,{children:(0,l.jsx)(x.LinkPreviewContextProvider,{children:(0,l.jsx)(p.SafeAreaProvider,{initialMetrics:C,children:t})})}),[i]);return(0,l.jsx)(L,Object.assign({},c,{wrapper:s}))};const l=r(d[1]),u=r(d[2]),h=r(d[3]),p=r(d[4]),f=r(d[5]),m=r(d[6]),v=r(d[7]),_=r(d[8]),j=r(d[9]),O=r(d[10]),S=r(d[11]),x=r(d[12]),w=r(d[13]),b=r(d[14]),N=r(d[15]),y=r(d[16]),P=r(d[17]),R=r(d[18]),A=r(d[19]),M=s(r(d[20])),C='web'===h.Platform.OS?{frame:{x:0,y:0,width:0,height:0},insets:{top:0,left:0,right:0,bottom:0}}:void 0,E={enabled:!1};const T='web'===h.Platform.OS&&'undefined'!=typeof window?new URL(window.location.href):void 0;function U(){(0,w.handleNavigationOnReady)(),_.store.onReady()}function L({context:t,location:n=T,wrapper:o=u.Fragment,linking:i={}}){const c=(0,u.useMemo)(()=>{let t={};const o='string'==typeof n?(0,P.parseUrlUsingCustomBase)(n):n;return o&&o instanceof URL&&(t={location:{pathname:o.pathname,search:o.search,hash:o.hash}}),t},[]),s=c.location?`${c.location.pathname}${c.location.search}${c.location.hash??''}`:void 0,h=(0,_.useStore)(t,i,s);return(0,m.useDomComponentNavigation)(),h.shouldShowTutorial()?(M.hideAsync(),null):(0,l.jsx)(O.StoreContext.Provider,{value:h,children:(0,l.jsx)(v.NavigationContainer,{ref:h.navigationRef,initialState:h.state,linking:h.linking,onUnhandledAction:F,onStateChange:h.onStateChange,documentTitle:E,onReady:U,children:(0,l.jsx)(j.ServerContext.Provider,{value:c,children:(0,l.jsx)(o,{children:(0,l.jsx)(k,{})})})})})}function k(){const t=[(0,l.jsx)(b.Screen,{name:f.INTERNAL_SLOT_NAME,component:_.store.rootComponent})];(0,S.shouldAppendNotFound)()&&t.push((0,l.jsx)(b.Screen,{name:f.NOT_FOUND_ROUTE_NAME,component:R.RootUnmatched})),(0,S.shouldAppendSitemap)()&&t.push((0,l.jsx)(b.Screen,{name:f.SITEMAP_ROUTE_NAME,component:A.Sitemap}));const{state:n,descriptors:o,NavigationContent:i}=(0,N.useNavigationBuilder)(N.StackRouter,{children:t,id:f.INTERNAL_SLOT_NAME});return(0,l.jsx)(i,{children:o[n.routes[n.index].key].render()})}let F;F=function(){}},730,[19,6,11,220,17,444,731,734,466,664,542,402,668,738,455,119,739,470,740,676,472]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.useDomComponentNavigation=function(){u.default.useEffect(()=>()=>{},[])};r(d[0]);const u=t(r(d[1]));r(d[2]),r(d[3])},731,[732,11,528,529]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0});var t=r(d[0]);Object.keys(t).forEach(function(n){'default'===n||Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})})},732,[733]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e._emitGlobalEvent=function(n){t.forEach(t=>t(n))},Object.defineProperty(e,"addGlobalDomEventListener",{enumerable:!0,get:function(){return n}});const t=new Set;const n=n=>(t.add(n),()=>{t.delete(n)})},733,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=r(d[0]).default;const n=["direction","theme","linking","fallback","documentTitle","onReady","onStateChange"];var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.NavigationContainer=void 0;const l=r(d[1]),u=o(r(d[2])),s=r(d[3]),c=r(d[4]),f=r(d[5]),h=r(d[6]),S=r(d[7]),v=r(d[8]),C=r(d[9]),T=o(r(d[10]));globalThis.REACT_NAVIGATION_DEVTOOLS=new WeakMap,e.NavigationContainer=u.default.forwardRef(function(o,_){let{direction:k=(s.I18nManager.getConstants().isRTL?'rtl':'ltr'),theme:p=C.DefaultTheme,linking:P,fallback:b=null,documentTitle:x,onReady:A,onStateChange:L}=o,O=t(o,n);const R=!!P&&!1!==P.enabled;P?.config&&(0,C.validatePathConfig)(P.config);const j=u.default.useRef(null);(0,c.useBackButton)(j),(0,f.useDocumentTitle)(j,x),(0,v.useImperativeApiEmitter)(j);const[F,I]=u.default.useState(),{getInitialState:N}=(0,h.useLinking)(j,Object.assign({enabled:R,prefixes:[]},P),I),E=u.default.useMemo(()=>({options:P}),[P]),D=u.default.useMemo(()=>({lastUnhandledLink:F,setLastUnhandledLink:I}),[F,I]),M=(0,T.default)(()=>{const t=j.current?.getCurrentRoute()?.path;I(n=>{if(n!==t)return n}),A?.()}),y=(0,T.default)(t=>{const n=j.current?.getCurrentRoute()?.path;I(t=>{if(t!==n)return t}),L?.(t)});u.default.useEffect(()=>{j.current&&REACT_NAVIGATION_DEVTOOLS.set(j.current,{get linking(){return Object.assign({},P,{enabled:R,prefixes:P?.prefixes??[],getStateFromPath:P?.getStateFromPath??C.getStateFromPath,getPathFromState:P?.getPathFromState??C.getPathFromState,getActionFromState:P?.getActionFromState??C.getActionFromState})}})});const[B,U]=(0,S.useThenable)(N);return u.default.useImperativeHandle(_,()=>j.current),null!=O.initialState||!R||B?(0,l.jsx)(C.LocaleDirContext.Provider,{value:k,children:(0,l.jsx)(C.UNSTABLE_UnhandledLinkingContext.Provider,{value:D,children:(0,l.jsx)(C.LinkingContext.Provider,{value:E,children:(0,l.jsx)(C.BaseNavigationContainer,Object.assign({},O,{theme:p,onReady:M,onStateChange:y,initialState:null==O.initialState?U:O.initialState,ref:j}))})})}):(0,l.jsx)(C.ThemeProvider,{value:p,children:b})})},734,[19,6,11,220,735,736,662,737,516,119,123]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useBackButton=function(t){}},735,[]); +__d(function(g,r,_i,a,_m,_e,d){"use strict";var e,t=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var u=Object.getOwnPropertyDescriptor(t,n);u&&!("get"in u?!t.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,u)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||(e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)},function(o){if(o&&o.__esModule)return o;var u={};if(null!=o)for(var i=e(o),c=0;ce?.title??t?.name}={}){u.useEffect(()=>{if(!t)return;const o=e.current;if(o){const e=n(o.getCurrentOptions(),o.getCurrentRoute());document.title=e}return o?.addListener('options',e=>{const t=n(e.data.options,o?.getCurrentRoute());document.title=t})})};const u=o(r(d[0]))},736,[11]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,u,i){void 0===i&&(i=u);var o=Object.getOwnPropertyDescriptor(n,u);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[u]}}),Object.defineProperty(t,i,o)}:function(t,n,u,i){void 0===i&&(i=u),t[i]=n[u]}),u=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),i=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var u in t)Object.prototype.hasOwnProperty.call(t,u)&&(n[n.length]=u);return n},t(n)},function(i){if(i&&i.__esModule)return i;var o={};if(null!=i)for(var c=t(i),l=0;l{u=[!0,t]});const[i,c]=o.useState(u),[l]=i;return o.useEffect(()=>{let t=!1;return l||(async()=>{let u;try{u=await n}finally{t||c([!0,u])}})(),()=>{t=!0}},[n,l]),i};const o=i(r(d[0]))},737,[11]); +__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,"__esModule",{value:!0}),_e.handleNavigationOnReady=function(){n&&n();n=e.storeRef.current.navigationRef.addListener('__unsafe_action__',n=>{if(!n.data.noop&&e.storeRef.current.state){const o=n.data.action;(0,t.emit)('actionDispatched',{actionType:o.type,payload:o.payload,state:e.storeRef.current.state})}})};const t=r(d[0]),e=r(d[1]);let n},738,[547,467]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.initScreensFeatureFlags=function(){o||(o=!0,s.featureFlags.experiment.synchronousScreenUpdatesEnabled=!u,s.featureFlags.experiment.synchronousHeaderConfigUpdatesEnabled=!u,s.featureFlags.experiment.synchronousHeaderSubviewUpdatesEnabled=!u)};const n=t(r(d[0])),s=r(d[1]),u=!!n.default.expoConfig?.extra?.router?.disableSynchronousScreensUpdates;let o=!1;s.featureFlags.experiment.iosPreventReattachmentOfDismissedScreens=!0},739,[403,607]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,i,o){void 0===o&&(o=i);var u=Object.getOwnPropertyDescriptor(n,i);u&&!("get"in u?!n.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return n[i]}}),Object.defineProperty(t,o,u)}:function(t,n,i,o){void 0===o&&(o=i),t[o]=n[i]}),i=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),o=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[n.length]=i);return n},t(n)},function(o){if(o&&o.__esModule)return o;var u={};if(null!=o)for(var c=t(o),f=0;f{l.hideAsync()},[]),(0,u.jsx)(f.Unmatched,{})};const u=r(d[0]),c=r(d[1]),f=r(d[2]),l=o(r(d[3]))},740,[6,11,685,473]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorBoundary=function({error:u,retry:b}){const y=(0,o.use)(c.BottomTabBarHeightContext)?l.View:n.SafeAreaView,S=u instanceof h.ReactServerError;return(0,t.jsx)(l.View,{style:w.container,children:(0,t.jsxs)(y,{style:{flex:1,gap:8,maxWidth:720,marginHorizontal:'auto'},children:[S?(0,t.jsx)(f,{error:u}):(0,t.jsx)(x,{error:u}),(0,t.jsx)(l.View,{style:{flex:1}}),!1,(0,t.jsx)(s.Pressable,{testID:"router_error_retry",onPress:b,children:({hovered:o,pressed:n})=>(0,t.jsx)(l.View,{style:[w.buttonInner,(o||n)&&{backgroundColor:'white'}],children:(0,t.jsx)(l.Text,{style:[w.buttonText,{color:o||n?'black':'white'}],children:"Retry"})})})]})})};const t=r(d[0]),o=r(d[1]),l=r(d[2]),n=r(d[3]),s=r(d[4]),c=(r(d[5]),r(d[6])),h=r(d[7]);function x({error:o}){return(0,t.jsxs)(l.View,{style:{marginBottom:12,gap:4,flexWrap:'wrap'},children:[(0,t.jsx)(l.Text,{role:"heading","aria-level":1,style:w.title,children:"Something went wrong"}),(0,t.jsxs)(l.Text,{testID:"router_error_message",role:"heading","aria-level":2,style:w.errorMessage,children:["Error: ",o.message]})]})}const u={404:'NOT_FOUND',500:'INTERNAL_SERVER_ERROR',503:'SERVICE_UNAVAILABLE',504:'GATEWAY_TIMEOUT'};function f({error:o}){let n=String(o.statusCode);n+=': '+(u[o.statusCode]??'Server Error');const s=o.headers.get('cf-ray'),c=o.headers.get('Date');return(0,t.jsxs)(l.View,{style:{padding:12,gap:8},children:[(0,t.jsx)(l.Text,{selectable:!0,allowFontScaling:!0,style:{fontSize:l.Platform.select({web:24,default:16}),fontWeight:'bold',marginBottom:4,color:'white'},children:n}),(0,t.jsx)(l.ScrollView,{style:{borderColor:'rgba(255,255,255,0.5)',borderTopWidth:l.StyleSheet.hairlineWidth,borderBottomWidth:l.StyleSheet.hairlineWidth,maxHeight:150},contentContainerStyle:{paddingVertical:4},children:(0,t.jsx)(l.Text,{testID:"router_error_message",selectable:!0,allowFontScaling:!0,style:{color:'white'},children:o.message})}),(0,t.jsx)(b,{title:"Code",right:o.statusCode}),s&&(0,t.jsx)(b,{title:"ID",right:s}),c&&(0,t.jsx)(b,{title:"Date",right:c}),o.url&&(0,t.jsx)(l.Text,{selectable:!0,allowFontScaling:!0,style:{fontSize:14,opacity:.5,color:'white'},children:o.url})]})}function b({title:o,right:n}){const s={fontSize:16,color:'white'};return(0,t.jsxs)(l.View,{style:{flexDirection:'row',justifyContent:'space-between'},children:[(0,t.jsx)(l.Text,{selectable:!0,allowFontScaling:!0,style:s,children:o}),n&&(0,t.jsx)(l.Text,{selectable:!0,allowFontScaling:!0,style:[s,w.code],children:n})]})}const w=l.StyleSheet.create({container:{flex:1,backgroundColor:'black',padding:24,alignItems:'stretch',justifyContent:'center'},title:{color:'white',fontSize:l.Platform.select({web:32,default:24}),fontWeight:'bold'},buttonText:Object.assign({fontSize:18,fontWeight:'bold',color:'black'},l.Platform.select({web:{transitionDuration:'100ms'}})),buttonInner:Object.assign({},l.Platform.select({web:{transitionDuration:'100ms'}}),{paddingVertical:12,paddingHorizontal:24,borderColor:'white',borderWidth:2,marginLeft:8,justifyContent:'center',alignItems:'center'}),code:{fontFamily:l.Platform.select({default:'Courier',ios:'Courier New',android:'monospace'}),fontWeight:'500'},errorMessage:{color:'white',fontSize:16},subtitle:{color:'white',fontSize:14,marginBottom:12},link:{color:'rgba(255,255,255,0.4)',textDecorationStyle:'solid',textDecorationLine:'underline',fontSize:14,textAlign:'center'}})},741,[6,11,220,17,678,641,550,640]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useIsFocused=void 0;var u=r(d[0]);Object.defineProperty(e,"useIsFocused",{enumerable:!0,get:function(){return u.useIsFocused}})},742,[119]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=r(d[0]).default;const n=["id","children","initialRouteName","layout","ref","screenLayout","screenListeners","screenOptions","UNSTABLE_routeNamesChangeBehavior","UNSTABLE_router"];Object.defineProperty(e,"__esModule",{value:!0}),e.unstable_createStandardRouterNavigator=function(t,n,...o){return S((0,u.createStandardNavigator)(t),n,...o)},e.unstable_integrateWithRouter=S;const o=r(d[1]),s=r(d[2]),u=r(d[3]),c=r(d[4]),v=r(d[5]),l=r(d[6]),h=r(d[7]),N=r(d[8]),p=r(d[9]),f=1,y='standard';function S(t,n,...[u]){_(t);const{NavigatorContent:f}=t;return(0,N.withLayoutContext)(function(t){const{extraProps:N,useNavigationBuilderProps:y}=b(t),{state:S,navigation:_,descriptors:L,describe:w,NavigationContent:B}=(0,p.useNavigationBuilder)(n,y),{dispatch:C}=_,E=(0,s.useMemo)(()=>u?.createProps?.({state:S,dispatch:C,navigation:_})??{},[S,C,_,u]),x={state:(0,h.useStandardState)(S),descriptors:(0,c.useProjectedDescriptors)(S,L,w),actions:(0,v.useStandardActions)(_,S.key),emitter:(0,l.useStandardEmitter)(_)};return(0,o.jsx)(B,{children:(0,o.jsx)(f,Object.assign({},N,E,x))})},void 0,u?.useOnlyUserDefinedScreens)}function b(o){const{id:s,children:u,initialRouteName:c,layout:v,screenLayout:l,screenListeners:h,screenOptions:N,UNSTABLE_routeNamesChangeBehavior:p,UNSTABLE_router:f}=o,y=t(o,n),S={id:s,children:u,initialRouteName:c,layout:v,screenLayout:l,screenListeners:h,screenOptions:N,UNSTABLE_routeNamesChangeBehavior:p,UNSTABLE_router:f};return{extraProps:y,useNavigationBuilderProps:Object.assign({},y,S)}}function _(t){if(null==t)throw new Error("Could not integrate a standard navigator because no navigator was provided. Pass the object returned by `createStandardNavigator(...)` from the `standard-navigation` package, or use `unstable_createStandardRouterNavigator(NavigatorContent, router)` which creates it for you.");const{type:n,version:o}=t;if(n!==y)throw new Error(`Could not integrate a standard navigator because its \`type\` is ${JSON.stringify(n)}, not "standard". This value is likely not a standard-navigation navigator. Create it with \`createStandardNavigator(...)\` from the \`standard-navigation\` package, or use \`unstable_createStandardRouterNavigator(NavigatorContent, router)\`.`);o!==f&&console.warn(`This standard navigator targets the standard-navigation v${o} contract, but this version of expo-router was built against v${f}. Integration may still work, but if you hit unexpected navigation behavior, align the installed \`standard-navigation\` version with your expo-router version, or check the standard-navigation release notes for migration steps.`)}},743,[19,6,11,744,745,747,748,749,452,119]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.createStandardNavigator=function(t){return{type:'standard',version:1,NavigatorContent:t}},r(d[0])},744,[11]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useProjectedDescriptors=function(n,s,c){const u=(0,o.getPreloadedRoutes)(n);return(0,t.useMemo)(()=>{if(0===u.length)return s;const t=Object.assign({},s);for(const o of u)t[o.key]=t[o.key]??c(o,!0);return t},[s,u,c])};const t=r(d[0]),o=r(d[1])},745,[11,746]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getPreloadedRoutes=function(o){if('stack'===o.type&&'preloadedRoutes'in o&&Array.isArray(o.preloadedRoutes))return o.preloadedRoutes;return t};const t=[]},746,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useStandardActions=function(n,s){return(0,t.useMemo)(()=>({back:()=>{n.dispatch({type:'GO_BACK',target:s})},navigate:(t,c)=>{n.dispatch({type:'NAVIGATE',payload:{name:t,params:c},target:s})}}),[n,s])};const t=r(d[0])},747,[11]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useStandardEmitter=function(n){return(0,t.useMemo)(()=>({emit(t){const u=n.emit(t),l={type:t.type,data:t.data,target:t.target};return'defaultPrevented'in u?Object.defineProperties(l,{defaultPrevented:{enumerable:!0,get:()=>u.defaultPrevented},preventDefault:{enumerable:!0,value:u.preventDefault}}):l}}),[n])};const t=r(d[0])},748,[11]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useStandardState=function(u){const o=(0,s.useBuildHref)();return(0,t.useMemo)(()=>{const t=[...u.routes,...(0,n.getPreloadedRoutes)(u)];return{index:u.index,routes:t.map(t=>({href:o(t),key:t.key,name:t.name,params:t.params}))}},[u,o])};const t=r(d[0]),n=r(d[1]),s=r(d[2])},749,[11,746,750]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useBuildHref=function(){const o=(0,n.useStateForPath)();return(0,t.useMemo)(()=>{const t=new WeakMap;return n=>{const u=t.get(n);if(void 0!==u)return u;const c={routes:[{name:n.name,params:n.params}]},f=t=>{const s=t?.routes[0];return s?{routes:[Object.assign({},s,{state:f(s.state)})]}:c},p=(0,s.getRouteInfoFromState)(f(o)).pathnameWithParams;return t.set(n,p),p}},[o])};const t=r(d[0]),s=r(d[1]),n=r(d[2])},750,[11,468,121]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,u){void 0===u&&(u=o);var c=Object.getOwnPropertyDescriptor(n,o);c&&!("get"in c?!n.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,u,c)}:function(t,n,o,u){void 0===u&&(u=o),t[u]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var u in n)"default"===u||Object.prototype.hasOwnProperty.call(o,u)||t(o,n,u)},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Tabs=void 0;const u=o(r(d[0]));e.Tabs=u.default;const c=r(d[1]);n(r(d[2]),e),u.default.Screen=c.Screen,e.default=u.default},751,[752,118,550]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=r(d[0]).default;const n=["href"];Object.defineProperty(e,"__esModule",{value:!0});const o=r(d[1]),s=r(d[2]),l=r(d[3]),c=r(d[4]),u=r(d[5]),f=r(d[6]),b=(0,u.createBottomTabNavigator)().Navigator,h=(0,l.withLayoutContext)(b,l=>l.map(l=>{if('function'!=typeof l.options&&void 0!==l.options?.href){const u=l.options,{href:f}=u,b=t(u,n);if(b.tabBarButton)throw new Error('Cannot use `href` and `tabBarButton` together.');return Object.assign({},l,{options:Object.assign({},b,{tabBarItemStyle:null==f?{display:'none'}:b.tabBarItemStyle,tabBarButton:t=>{if(null==f)return null;const n='web'===s.Platform.OS?t.children:(0,o.jsx)(s.Pressable,{children:t.children});return(0,o.jsx)(c.Link,Object.assign({},t,{style:[{display:'flex'},t.style],href:f,asChild:'web'!==s.Platform.OS,children:n}))}})})}return l})),j=Object.assign(t=>(0,o.jsx)(h,Object.assign({},t)),{Screen:h.Screen,Protected:f.Protected});e.default=j},752,[19,6,220,452,641,550,688]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.ExperimentalStack=void 0;const c=r(d[0]),n=t(r(d[1])),u=Object.assign(t=>(0,c.jsx)(n.default,Object.assign({},t)),{Screen:n.default.Screen,Protected:n.default.Protected});e.ExperimentalStack=u,e.default=u},753,[6,754]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Stack=void 0;const l=t(r(d[0]));e.Stack=l.default;const u=r(d[1]);l.default.Screen=u.StackScreen,l.default.Header=u.StackHeader,l.default.Title=u.StackTitle,l.default.Toolbar=u.StackToolbar,e.default=l.default},754,[755,701]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const u=t(r(d[0]));e.default=u.default},755,[756]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const u=t(r(d[0]));e.default=u.default},756,[451]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Stack=void 0;var t=r(d[0]);Object.defineProperty(e,"Stack",{enumerable:!0,get:function(){return t.Stack}})},757,[754]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,s){void 0===s&&(s=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&!("get"in u?!n.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,s,u)}:function(t,n,o,s){void 0===s&&(s=o),t[s]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var s in n)"default"===s||Object.prototype.hasOwnProperty.call(o,s)||t(o,n,s)};Object.defineProperty(e,"__esModule",{value:!0}),e.useIsPreview=e.usePreventZoomTransitionDismissal=void 0,n(r(d[0]),e);var o=r(d[1]);Object.defineProperty(e,"usePreventZoomTransitionDismissal",{enumerable:!0,get:function(){return o.usePreventZoomTransitionDismissal}});var s=r(d[2]);Object.defineProperty(e,"useIsPreview",{enumerable:!0,get:function(){return s.useIsPreview}})},758,[641,759,463]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.usePreventZoomTransitionDismissal=function(n){}},759,[]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,u){void 0===u&&(u=o);var l=Object.getOwnPropertyDescriptor(n,o);l&&!("get"in l?!n.__esModule:l.writable||l.configurable)||(l={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,u,l)}:function(t,n,o,u){void 0===u&&(u=o),t[u]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var u in n)"default"===u||Object.prototype.hasOwnProperty.call(o,u)||t(o,n,u)};Object.defineProperty(e,"__esModule",{value:!0}),e.Color=void 0;r(d[0]),r(d[1]);n(r(d[2]),e),n(r(d[3]),e),n(r(d[4]),e),n(r(d[5]),e),n(r(d[6]),e);const o=new Proxy({},{get:(t,n)=>null}),u=new Proxy({},{get:(t,n)=>null}),l=new Proxy({},{get:(t,n)=>null}),c=new Proxy({},{get:(t,n)=>null}),s=new Proxy({get attr(){return u},get material(){return l},get dynamic(){return c}},{get:(t,n)=>n in t?t[n]:null});e.Color={get ios(){return o},get android(){return s}}},760,[220,761,762,763,764,765,766]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Material3DynamicColor=function(n){return null},e.Material3Color=function(n){return null}},761,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},762,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},763,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},764,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},765,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},766,[]); +__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])},767,[768]); +__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'}},768,[11,321,361,377,6]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"useAuth",{enumerable:!0,get:function(){return l}}),e.AuthProvider=function({children:l}){const[c,f]=(0,s.useState)(null),[p,y]=(0,s.useState)(()=>(0,n.readSync)(n.K.profile)),[h,b]=(0,s.useState)(!1);async function K(s){if(!s)return void y(null);const{data:o}=await t.supabase.from('profiles').select('*').eq('id',s).maybeSingle(),u=o??null;y(u),u?(0,n.write)(n.K.profile,u):(0,n.drop)(n.K.profile)}(0,s.useEffect)(()=>{let s=!0;(async()=>{await(0,n.hydrate)([n.K.profile,n.K.feed,n.K.sports,n.K.mySports]);const{data:o}=await t.supabase.auth.getSession();if(!s)return;f(o.session);const u=(0,n.readSync)(n.K.profile);if(o.session&&u?.id===o.session.user.id)return y(u),b(!0),void K(o.session.user.id);await K(o.session?.user.id),b(!0)})();const{data:o}=t.supabase.auth.onAuthStateChange(async(t,n)=>{s&&(f(n),await K(n?.user.id))});return()=>{s=!1,o.subscription.unsubscribe()}},[]);const S=(0,s.useMemo)(()=>({ready:h,session:c,profile:p,refreshProfile:()=>K(c?.user.id),signOut:async()=>{y(null),(0,n.drop)(n.K.profile),(0,n.drop)(n.K.feed),(0,n.drop)(n.K.mySports),await t.supabase.auth.signOut()}}),[h,c,p]);return(0,o.jsx)(u.Provider,{value:S,children:l})};var s=r(d[0]),t=r(d[1]),n=r(d[2]),o=r(d[3]);const u=(0,s.createContext)({ready:!1,session:null,profile:null,refreshProfile:async()=>{},signOut:async()=>{}}),l=()=>(0,s.useContext)(u)},769,[11,770,826,6]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"supabase",{enumerable:!0,get:function(){return s}}),r(d[0]),r(d[1]);var t=r(d[2]);r(d[3]);const s=(0,t.createClient)("https://pullup.onetouch.studio","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoiYW5vbiIsImlzcyI6InB1bGx1cCIsImlhdCI6MTc4Nzc4MDUxMywiZXhwIjoyMTAzMTQwNTEzfQ.QuVuQHVt9MaZJzFfPxWrrOiu8yWQaTsuBom6BJmFmdY",{db:{schema:'pullup'},auth:Object.assign({},{},{autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0})})},770,[771,777,783,235]); +__d(function(g,r,i,a,m,e,d){"use strict";r(d[0]),r(d[1])},771,[235,772]); +__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.setupURLPolyfill=function(){globalThis.REACT_NATIVE_URL_POLYFILL=`${o.default.name}@${o.default.version}`,globalThis.URL=r(d[4]).URL,globalThis.URLSearchParams=r(d[5]).URLSearchParams},r(d[0]);var e,t=r(d[1]),o=(e=t)&&e.__esModule?e:{default:e},l=r(d[2]);Object.keys(l).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return l[e]}})});var n=r(d[3]);Object.keys(n).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return n[e]}})})},772,[773,774,775,776,775,776]); +__d(function(g,r,i,a,m,_e,d){"use strict";var e,t=r(d[0]),s=(e=t)&&e.__esModule?e:{default:e};parseInt(s.default.Version,10)},773,[235]); +__d(function(e,t,s,i,a,n,r){a.exports={name:"react-native-url-polyfill",version:"4.0.0",description:"A lightweight and trustworthy URL polyfill for React Native",keywords:["URL","URLSearchParams","polyfill","react native","whatwg-url"],bugs:{url:"https://github.com/charpeni/react-native-url-polyfill/issues"},homepage:"https://github.com/charpeni/react-native-url-polyfill",readme:"https://github.com/charpeni/react-native-url-polyfill#readme",repository:{type:"git",url:"https://github.com/charpeni/react-native-url-polyfill.git"},main:"index.js",types:"index.d.ts",files:["index.js","index.d.ts","auto.js","js/URL.js","js/URL.d.ts","js/URLSearchParams.js","js/URLSearchParams.d.ts","js/ios10Fix.js"],scripts:{test:"jest","test:wpt":"jest OfficialWPT-test --runInBand",lint:"eslint .","type-check":"tsgo",build:"tsdown",prepare:"husky install",prepack:"yarn build",benchmark:"yarn build && npx --yes --loglevel error --package whatwg-url --package whatwg-url-minimum -- sh -c 'NODE_PATH=\"${PATH%%/node_modules/.bin*}/node_modules\" node scripts/benchmark.js \"$@\"' sh","benchmark:hermes":"yarn build && npx --yes --loglevel error --package whatwg-url-without-unicode --package whatwg-url-minimum -- sh -c 'NODE_PATH=\"${PATH%%/node_modules/.bin*}/node_modules\" node scripts/benchmark-hermes.js \"$@\"' sh","bundle-size":"node scripts/bundle-size","update-wpt":"node scripts/update-wpt","generate:wpt:react-native":"node scripts/wpt/generate-react-native-wpt.js"},author:"Nicolas Charpentier ",license:"MIT",devDependencies:{"@babel/core":"^7.25.2","@babel/plugin-transform-modules-commonjs":"^7.27.1","@babel/plugin-transform-typescript":"^7.28.0","@babel/preset-env":"^7.25.3","@babel/runtime":"^7.25.0","@react-native-community/eslint-config":"3.2.0","@react-native/babel-preset":"0.81.1","@types/node":"^22.13.10","@types/whatwg-url":"13.0.0","@typescript/native-preview":"7.0.0-dev.20260706.1",detox:"20.34.5",eslint:"8.56.0","eslint-plugin-ft-flow":"^3.0.11","eslint-plugin-prettier":"5.5.4",husky:"8.0.3",jest:"30.1.3","lint-staged":"15.2.0",nanoid:"3.3.11",prettier:"3.6.2",react:"19.1.1","react-native":"0.81.4","react-native-bundle-scale":"2.0.0",tsdown:"0.22.3",typescript:"5.9.2"},peerDependencies:{"react-native":"*"},jest:{preset:"react-native",moduleFileExtensions:["ts","tsx","js","mjs","cjs","jsx","json","node"],testPathIgnorePatterns:["/node_modules/","./platforms/","/wpt/"]},"lint-staged":{"*.{js,ts}":["eslint --fix"]}}},774,[]); +__d(function(_g,_r,_i,_a,_m,_e2,_d){"use strict";Object.defineProperty(_e2,'__esModule',{value:!0}),Object.defineProperty(_e2,"URL",{enumerable:!0,get:function(){return me}}),Object.defineProperty(_e2,"URLSearchParams",{enumerable:!0,get:function(){return fe}});var e=(function(e){return e&&e.__esModule?e:{default:e}})(_r(_d[0]));const t=Symbol("failure");function r(e){let t=[];for(let r=0;r=55296&&n<=57343?n=65533:n>65535&&r++,n<=127?t.push(n):n<=2047?t.push(192|n>>6,128|63&n):n<=65535?t.push(224|n>>12,128|n>>6&63,128|63&n):t.push(240|n>>18,128|n>>12&63,128|n>>6&63,128|63&n)}return t}function n(e){let t="",r=0,n=0,l=0,o=128,s=191;for(let u=0;us?(r=0,l=0,n=0,o=128,s=191,t+="\ufffd",u--):(o=128,s=191,r=r<<6|63&i,n++,n===l&&(t+=String.fromCodePoint(r),r=0,l=0,n=0)):i<=127?t+=String.fromCharCode(i):i>=194&&i<=223?(l=1,r=31&i):i>=224&&i<=239?(224===i&&(o=160),237===i&&(s=159),l=2,r=15&i):i>=240&&i<=244?(240===i&&(o=144),244===i&&(s=143),l=3,r=7&i):t+="\ufffd"}return 0!==l&&(t+="\ufffd"),t}function l(e){let t=e?.charCodeAt(0)??-1;return t>=48&&t<=57}function o(e){let t=e?.charCodeAt(0)??-1;return t>=65&&t<=90||t>=97&&t<=122}function s(e){let t=e?.charCodeAt(0)??-1;return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122}function u(e){let t=e?.charCodeAt(0)??-1;return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function i(e,...t){let r=new Uint8Array(128);null!==e&&r.set(e);for(let e of t)if("number"==typeof e)r[e]=1;else for(let t=e[0];t<=e[1];t++)r[t]=1;return r}const a=i(null,[0,31],127),f=i(a,32,34,60,62,96),h=i(a,32,34,35,60,62),c=i(h,39),p=i(h,63,94,96,123,125),g=i(p,47,58,59,61,64,[91,94],124),d="0123456789ABCDEF";function y(e){return"%"+d[Math.floor(e/16)]+d[e%16]}function m(e,t){let r=e.codePointAt(0);return r<128&&0===t[r]?e:r<128?y(r):r<2048?y(192+Math.floor(r/64))+y(128+r%64):r<65536?y(224+Math.floor(r/4096))+y(128+Math.floor(r/64)%64)+y(128+r%64):y(240+Math.floor(r/262144))+y(128+Math.floor(r/4096)%64)+y(128+Math.floor(r/64)%64)+y(128+r%64)}function b(e,t){let r=0;for(;r=128||1===t[n])break;r++}if(r===e.length)return e;let n=e.slice(0,r);for(let l of e.slice(r))n+=m(l,t);return n}function v(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:-1}function w(e){let t=[];for(let r=0;r=128){t=!0;break}}return t?n(w(r(e))):e}const S=/[\0\t\n\r #/:<>?@[\\\]^|]/,P=/[\0-\x1f\x7f %#/:<>?@[\\\]^|]/;function j(e){return S.test(e)}function k(e){return P.test(e)}function L(e){if(e.includes("\ufffd"))return t;let r=!0;for(let t=0;t=128){r=!1;break}if(r)return e.toLowerCase();let n="";for(let t of e)n+=t>="A"&&t<="Z"?t.toLowerCase():t;return n}function C(e){if(""===e)return t;let r=10;return e.length>=2&&(e.startsWith("0x")||e.startsWith("0X"))?(e=e.substring(2),r=16):e.length>=2&&"0"===e[0]&&(e=e.substring(1),r=8),""===e?0:(16===r?/^[0-9A-Fa-f]+$/:8===r?/^[0-7]+$/:/^[0-9]+$/).test(e)?parseInt(e,r):t}function q(e){if(""===e)return!1;let r=e.length;if(46===e.charCodeAt(r-1)){if(1===r)return!1;r--}let n=e.lastIndexOf(".",r-1)+1,l=e.charCodeAt(n);if(!(l>=48&&l<=57))return!1;let o=e.slice(n,r);return!!/^[0-9]+$/.test(o)||C(o)!==t}function R(e){let r=e.split(".");if(""===r[r.length-1]&&r.length>1&&r.pop(),r.length>4)return t;let n=[];for(let e of r){let r=C(e);if(r===t)return t;n.push(r)}for(let e=0;e255)return t;if(n[n.length-1]>=256**(5-n.length))return t;let l=n.pop();for(let e=0;e>>24)+"."+(e>>>16&255)+"."+(e>>>8&255)+"."+(255&e)}function A(e){let r=[0,0,0,0,0,0,0,0],n=0,o=null,s=0;if(":"===e[s]){if(":"!==e[s+1])return t;s+=2,n++,o=n}for(;s6))return t;let o=0;for(;s0){if(!("."===e[s]&&o<4))return t;s++}if(!l(e[s]))return t;for(;l(e[s]);){let r=parseInt(e[s],10);if(null===u)u=r;else{if(0===u)return t;u=10*u+r}if(u>255)return t;s++}r[n]=256*r[n]+u,o++,(2===o||4===o)&&n++}if(4!==o)return t;break}if(":"===e[s]){if(s++,s===e.length)return t}else if(s0;){let t=r[o+e-1];r[o+e-1]=r[n],r[n]=t,n--,e--}}else if(8!==n)return t;return r}function _(e){let t="",r=null,n=1,l=null,o=0;for(let t=0;t<8;t++)0===e[t]?(null===l&&(l=t),o++,o>n&&(n=o,r=l)):(l=null,o=0);let s=!1;for(let n=0;n<8;n++)if(!s||0!==e[n]){if(s=!1,r===n){t+=0===n?"::":":",s=!0;continue}t+=e[n].toString(16),7!==n&&(t+=":")}return t}function E(e){return j(e.replace(/%/g,""))?t:b(e,a)}function I(e,r){if("["===e[0]){if("]"!==e[e.length-1])return t;let r=A(e.substring(1,e.length-1));return r===t?t:"["+_(r)+"]"}if(r)return E(e);let n=L(O(e));if(n===t||k(n))return t;if(q(n)){let e=R(n);return e===t?t:U(e)}return n}const $=Object.assign(Object.create(null),{ftp:21,file:null,http:80,https:443,ws:80,wss:443});function M(e){let{scheme:t}=e;return"https"===t||"http"===t||"ws"===t||"wss"===t||"ftp"===t||"file"===t}function T(e){return $[e]}function x(e){return"string"==typeof e.path}function D(e){return""!==e.username||""!==e.password}function z(e){return null===e.host||""===e.host||"file"===e.scheme}function B(e){return 2===e.length&&o(e[0])&&(":"===e[1]||"|"===e[1])}function F(e){return 2===e.length&&o(e[0])&&":"===e[1]}function W(e,t){let r=e.length-t;return r>=2&&B(e[t]+e[t+1])&&(2===r||"/"===e[t+2]||"\\"===e[t+2]||"?"===e[t+2]||"#"===e[t+2])}function H(e){let t=e.path;0!==t.length&&("file"===e.scheme&&1===t.length&&F(t[0])||t.pop())}function Q(e){x(e)&&(null!==e.fragment||null!==e.query||(e.path=e.path.replace(/ +$/,"")))}function J(e){return"."===e||3===e.length&&"%2e"===e.toLowerCase()}function N(e){if(".."===e)return!0;if(4!==e.length&&6!==e.length)return!1;let t=e.toLowerCase();return".%2e"===t||"%2e."===t||"%2e%2e"===t}function Z(e,t=null,r=null,n=null){return X(ie(e),t,r,n)}function X(e,r=null,n=null,u=null){null===n&&(n={scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null},e.length>0&&e.charCodeAt(0)<=32&&(e=e.replace(/^[\0- ]+/,"")),e.length>0&&e.charCodeAt(e.length-1)<=32&&(e=e.replace(/[\0- ]+$/,""))),e=e.replace(/[\t\n\r]/g,"");let i=null===u?1:u,d="",y=!1,v=!1,w=!1,O=/[\uD800-\uDFFF]/.test(e)?Array.from(e):e.split("");for(let e=0;e<=O.length;e++){let S=e65535)return t;n.port=e===T(n.scheme)?null:e,d=""}if(null!==u)return n;i=17,e--}break;case 14:n.scheme="file",n.host="","/"===S||"\\"===S?i=15:null!==r&&"file"===r.scheme?(n.host=r.host,n.path=r.path.slice(),n.query=r.query,"?"===S?(n.query="",i=20):"#"===S?(n.fragment="",i=21):void 0!==S&&(n.query=null,W(O,e)?n.path=[]:H(n),i=18,e--)):(i=18,e--);break;case 15:"/"===S||"\\"===S?i=16:(null!==r&&"file"===r.scheme&&(n.host=r.host,!W(O,e)&&F(r.path[0]||"")&&n.path.push(r.path[0])),i=18,e--);break;case 16:if(void 0===S||"/"===S||"\\"===S||"?"===S||"#"===S)if(e--,null===u&&B(d))i=18;else if(""===d){if(n.host="",null!==u)return n;i=17}else{let e=I(d,!M(n));if(e===t)return t;if("localhost"===e&&(e=""),n.host=e,null!==u)return n;d="",i=17}else d+=S;break;case 17:M(n)?(i=18,"/"!==S&&"\\"!==S&&e--):null===u&&"?"===S?(n.query="",i=20):null===u&&"#"===S?(n.fragment="",i=21):void 0===S?null!==u&&null===n.host&&n.path.push(""):(i=18,"/"!==S&&e--);break;case 18:void 0===S||"/"===S||"\\"===S&&M(n)||null===u&&("?"===S||"#"===S)?(N(d)?(H(n),"/"!==S&&!("\\"===S&&M(n))&&n.path.push("")):J(d)?"/"!==S&&!("\\"===S&&M(n))&&n.path.push(""):("file"===n.scheme&&0===n.path.length&&B(d)&&(d=d[0]+":"),n.path.push(d)),d="","?"===S?(n.query="",i=20):"#"===S&&(n.fragment="",i=21)):d+=m(S,p);break;case 19:"?"===S?(n.query="",i=20):"#"===S?(n.fragment="",i=21):void 0!==S&&(" "!==S||"?"!==O[e+1]&&"#"!==O[e+1]?n.path+=m(S,a):n.path+="%20");break;case 20:if(null===u&&"#"===S||void 0===S){let e=M(n)?c:h;n.query+=b(d,e),d="","#"===S&&(n.fragment="",i=21)}else void 0!==S&&(d+=S);break;case 21:void 0!==S&&(n.fragment+=m(S,f))}}return n}function G(e,t=!1){let r=e.scheme+":";return null===e.host?!x(e)&&e.path.length>1&&""===e.path[0]&&(r+="/."):(r+="//",D(e)&&(r+=e.username,""!==e.password&&(r+=":"+e.password),r+="@"),r+=e.host,null!==e.port&&(r+=":"+e.port)),r+=K(e),null!==e.query&&(r+="?"+e.query),!t&&null!==e.fragment&&(r+="#"+e.fragment),r}function K(e){if(x(e))return e.path;let t="";for(let r of e.path)t+="/"+r;return t}function V(e){switch(e.scheme){case"blob":{let r=Z(K(e));return r===t?"null":"http"===r.scheme||"https"===r.scheme||"file"===r.scheme?V(r):"null"}case"ftp":case"http":case"https":case"ws":case"wss":{let t=e.scheme+"://"+e.host;return null!==e.port&&(t+=":"+e.port),t}default:return"null"}}function Y(e){let t=!1;for(let r=0;r=128){t=!0;break}}return t?O(e.replace(/\+/g," ")):e}function ee(e){let t=[];for(let r of String(e).split("&")){if(""===r)continue;let e=r.indexOf("="),n=-1===e?r:r.substring(0,e),l=-1===e?"":r.substring(e+1);t.push([Y(n),Y(l)])}return t}function te(e){if(/^[ *\-.0-9A-Z_a-z]*$/.test(e))return e.includes(" ")?e.replace(/ /g,"+"):e;let t="";for(let n of r(e))t+=32===n?"+":42===n||45===n||46===n||n>=48&&n<=57||n>=65&&n<=90||95===n||n>=97&&n<=122?String.fromCharCode(n):y(n);return t}function re(e){let t="";for(let[r,n]of e)""!==t&&(t+="&"),t+=te(r)+"="+te(n);return t}const ne=new WeakMap;var le=class{constructor(e,t){ne.set(this,{params:e,kind:t,index:0})}next(){let e=ne.get(this);if(void 0===e)throw TypeError("Illegal invocation");let t=ue(e.params).list;if(e.index>=t.length)return{value:void 0,done:!0};let[r,n]=t[e.index++];return{value:"key"===e.kind?r:"value"===e.kind?n:[r,n],done:!1}}};const oe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));Object.setPrototypeOf(le.prototype,oe),delete le.prototype.constructor,Object.defineProperty(le.prototype,"next",Object.assign({},Object.getOwnPropertyDescriptor(le.prototype,"next"),{enumerable:!0})),Object.defineProperty(le.prototype,Symbol.toStringTag,{value:"URLSearchParams Iterator",configurable:!0});const se=new WeakMap;function ue(e){let t=se.get(e);if(void 0===t)throw TypeError("Illegal invocation");return t}function ie(e){if("symbol"==typeof e)throw TypeError("Cannot convert a Symbol value to a string");let t=String(e);if(!/[\uD800-\uDFFF]/.test(t))return t;let r="";for(let e=0;e57343?r+=t[e]:n<=56319&&e+1=56320&&t.charCodeAt(e+1)<=57343?r+=t[e]+t[++e]:r+="\ufffd"}return r}function ae(e,t,r){if(te[0]t[0])),this._update()}forEach(e,t){let r=ue(this).list;if(ae("URLSearchParams.forEach",arguments.length,1),"function"!=typeof e)throw TypeError("URLSearchParams.forEach callback must be callable");for(let n=0;n{try{const n=e();t?.(null,n),o(n)}catch(e){t?.(e),n(e)}})}function c(e,t,o){return Promise.all(e).then(e=>{const n=o?.(e)??null;return t?.(null,n),Promise.resolve(n)},e=>(t?.(e),Promise.reject(e)))}const s={getItem:(e,t)=>l(()=>window.localStorage.getItem(e),t),setItem:(e,t,o)=>l(()=>window.localStorage.setItem(e,t),o),removeItem:(e,t)=>l(()=>window.localStorage.removeItem(e),t),mergeItem:(e,t,o)=>l(()=>n(e,t),o),clear:e=>l(()=>window.localStorage.clear(),e),getAllKeys:e=>l(()=>{const e=window.localStorage.length,t=[];for(let o=0;o{},multiGet:(e,t)=>c(e.map(e=>s.getItem(e)),t,t=>t.map((t,o)=>[e[o],t])),multiSet:(e,t)=>c(e.map(e=>s.setItem(e[0],e[1])),t),multiRemove:(e,t)=>c(e.map(e=>s.removeItem(e)),t),multiMerge:(e,t)=>c(e.map(e=>s.mergeItem(e[0],e[1])),t)};var i=s},778,[779]); +__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},779,[780]); +__d(function(g,r,i,a,m,e,d){'use strict';const t=r(d[0]),{hasOwnProperty:n}=Object.prototype,{propertyIsEnumerable:o}=Object,c=(t,n,o)=>Object.defineProperty(t,n,{value:o,writable:!0,enumerable:!0,configurable:!0}),s=this,f={concatArrays:!1,ignoreUndefined:!1},l=t=>{const c=[];for(const o in t)n.call(t,o)&&c.push(o);if(Object.getOwnPropertySymbols){const n=Object.getOwnPropertySymbols(t);for(const s of n)o.call(t,s)&&c.push(s)}return c};function u(n){return Array.isArray(n)?y(n):t(n)?p(n):n}function y(t){const n=t.slice(0,0);return l(t).forEach(o=>{c(n,o,u(t[o]))}),n}function p(t){const n=null===Object.getPrototypeOf(t)?Object.create(null):{};return l(t).forEach(o=>{c(n,o,u(t[o]))}),n}const b=(t,n,o,s)=>(o.forEach(o=>{void 0===n[o]&&s.ignoreUndefined||(o in t&&t[o]!==Object.getPrototypeOf(t)?c(t,o,h(t[o],n[o],s)):c(t,o,u(n[o])))}),t),O=(t,o,s)=>{let f=t.slice(0,0),y=0;return[t,o].forEach(o=>{const p=[];for(let s=0;s!p.includes(t)),s)}),f};function h(n,o,c){return c.concatArrays&&Array.isArray(n)&&Array.isArray(o)?O(n,o,c):t(o)&&t(n)?b(n,o,l(o),c):u(o)}m.exports=function(...n){const o=h(u(f),this!==s&&this||{},f);let c={_:{}};for(const s of n)if(void 0!==s){if(!t(s))throw new TypeError('`'+s+'` is not an Option Object');c=h(c,{_:s},o)}return c._}},780,[781]); +__d(function(g,r,i,a,m,e,d){'use strict';m.exports=t=>{if('[object Object]'!==Object.prototype.toString.call(t))return!1;const o=Object.getPrototypeOf(t);return null===o||o===Object.prototype}},781,[]); +__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useAsyncStorage=function(e){return{getItem:(...t)=>u.default.getItem(e,...t),setItem:(...t)=>u.default.setItem(e,...t),mergeItem:(...t)=>u.default.mergeItem(e,...t),removeItem:(...t)=>u.default.removeItem(e,...t)}};var e,t=r(d[0]),u=(e=t)&&e.__esModule?e:{default:e}},782,[778]); +__d(function(g,_r,_i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"FunctionRegion",{enumerable:!0,get:function(){return t.FunctionRegion}}),Object.defineProperty(_e,"FunctionsError",{enumerable:!0,get:function(){return t.FunctionsError}}),Object.defineProperty(_e,"FunctionsFetchError",{enumerable:!0,get:function(){return t.FunctionsFetchError}}),Object.defineProperty(_e,"FunctionsHttpError",{enumerable:!0,get:function(){return t.FunctionsHttpError}}),Object.defineProperty(_e,"FunctionsRelayError",{enumerable:!0,get:function(){return t.FunctionsRelayError}}),Object.defineProperty(_e,"PostgrestError",{enumerable:!0,get:function(){return r.PostgrestError}}),Object.defineProperty(_e,"StorageApiError",{enumerable:!0,get:function(){return s.StorageApiError}}),Object.defineProperty(_e,"SupabaseClient",{enumerable:!0,get:function(){return H}}),Object.defineProperty(_e,"createClient",{enumerable:!0,get:function(){return q}});var e=_r(d[0]),t=_r(d[1]),r=_r(d[2]),n=_r(d[3]);Object.keys(n).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return n[e]}})});var s=_r(d[4]),i=_r(d[5]);Object.keys(i).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return i[e]}})});let o,c="";var l;if("undefined"!=typeof Deno)c="deno",o=null===(l=Deno.version)||void 0===l?void 0:l.deno;else if("undefined"!=typeof document)c="web";else if("undefined"!=typeof navigator&&"ReactNative"===navigator.product)c="react-native";else{var u;c="node";const e=globalThis.process;o=null==e||null===(u=e.version)||void 0===u?void 0:u.replace(/^v/,"")}const h=[`runtime=${c}`];o&&h.push(`runtime-version=${o}`);const p={headers:{"X-Client-Info":`supabase-js/2.112.4; ${h.join("; ")}`}},f={schema:"public"},b={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},y={},v={enabled:!1,respectSamplingDecision:!0};function w(e){if(!e||"string"!=typeof e)return null;const t=e.split("-");if(4!==t.length)return null;const[r,n,s,i]=t;if(2!==r.length||32!==n.length||16!==s.length||2!==i.length)return null;const o=/^[0-9a-f]+$/i;return o.test(r)&&o.test(n)&&o.test(s)&&o.test(i)?"00000000000000000000000000000000"===n||"0000000000000000"===s?null:{version:r,traceId:n,parentId:s,traceFlags:i,isSampled:!(1&~parseInt(i,16))}:null}function k(e,t){if(!e||!t||0===t.length)return!1;let r;if(e instanceof URL)r=e;else try{r=new URL(e)}catch(e){return!1}for(const e of t)try{if("string"==typeof e){if(S(r.hostname,e))return!0}else if(e instanceof RegExp){if(e.test(r.hostname))return!0}else if("function"==typeof e&&e(r))return!0}catch(e){continue}return!1}function S(e,t){if(t===e)return!0;if(t.startsWith("*.")){const r=t.slice(2);if(e.endsWith(r)&&(e===r||e.endsWith("."+r)))return!0}return!1}function T(e){const t=[];try{const r=new URL(e);t.push(r.hostname)}catch(e){}return t.push("*.supabase.co","*.supabase.in"),t.push("localhost","127.0.0.1","[::1]"),t}function O(e){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function P(e,t){if("object"!=O(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=O(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function j(e){var t=P(e,"string");return"symbol"==O(t)?t:t+""}function A(e,t,r){return(t=j(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _(e){for(var t=1;te?(...t)=>e(...t):(...e)=>fetch(...e),C=e=>e.startsWith("sb_publishable_")||e.startsWith("sb_secret_"),R=new Set,F=e=>{var t,r;if(!e.startsWith("sb_")||C(e)||e.startsWith("sb_temp_"))return;const n=null!==(t=null===(r=e.match(/^sb_[a-zA-Z0-9]+_/))||void 0===r?void 0:r[0])&&void 0!==t?t:"unknown";R.has(n)||(R.add(n),console.warn("@supabase/supabase-js: Unrecognized Supabase API key format. The client will proceed and send this key as-is; if you see authentication errors you may need to upgrade @supabase/supabase-js to a version that recognizes this key type."))},I=(e,t,r,n,s,i)=>{const o=U(n),c=Headers,l=!0===(null==s?void 0:s.enabled),u=!1!==(null==s?void 0:s.respectSamplingDecision),h=l?T(t):null,p=!((null==i?void 0:i.omitApiKeyAsBearer)&&C(e));return async(t,n)=>{const s=await r();let i=new c(null==n?void 0:n.headers);if(i.has("apikey")||i.set("apikey",e),!i.has("Authorization")){const t=null!=s?s:p?e:null;t&&i.set("Authorization",`Bearer ${t}`)}if(h){const e=L(t,h,u);e&&(e.traceparent&&!i.has("traceparent")&&i.set("traceparent",e.traceparent),e.tracestate&&!i.has("tracestate")&&i.set("tracestate",e.tracestate),e.baggage&&!i.has("baggage")&&i.set("baggage",e.baggage))}return o(t,_(_({},n),{},{headers:i}))}};let D=!1,K=!1;function L(t,r,n){const s=(0,e.t)();if(!s)return D||(D=!0,console.warn("@supabase/supabase-js: tracePropagation is enabled but the tracing runtime is not loaded, so trace headers will not be attached. Add `import '@supabase/supabase-js/tracing'` at your application entry point (requires the OpenTelemetry API package to be installed). The CDN/UMD build does not support trace propagation.")),null;if(!k("string"==typeof t||t instanceof URL?t:t.url,r))return null;const i=s();if(!i||!i.traceparent){var o;if((null==i||null===(o=i.carrierKeys)||void 0===o?void 0:o.length)&&!K){K=!0;const e=i.carrierKeys.includes("sentry-trace")?" Sentry detected: set `propagateTraceparent: true` in Sentry.init() to emit it.":" Configure your tracing SDK to emit W3C trace context on outgoing requests.";console.warn(`@supabase/supabase-js: tracePropagation is enabled and a tracing SDK is active, but its propagator wrote [${i.carrierKeys.join(", ")}] and no W3C traceparent header, so trace headers will not be attached.`+e)}return null}if(n){const e=w(i.traceparent);if(e&&!e.isSampled)return{traceparent:i.traceparent}}return i}function N(e){return"boolean"==typeof e?{enabled:e}:e}function z(e,t){var r,n,s,i,o,c;const{db:l,auth:u,realtime:h,global:p}=e,{db:f,auth:b,realtime:y,global:v}=t,w=N(e.tracePropagation),k=N(t.tracePropagation),S={db:_(_({},f),l),auth:_(_({},b),u),realtime:_(_({},y),h),storage:{},global:_(_(_({},v),p),{},{headers:_(_({},null!==(r=null==v?void 0:v.headers)&&void 0!==r?r:{}),null!==(n=null==p?void 0:p.headers)&&void 0!==n?n:{})}),tracePropagation:{enabled:null!==(s=null!==(i=null==w?void 0:w.enabled)&&void 0!==i?i:null==k?void 0:k.enabled)&&void 0!==s&&s,respectSamplingDecision:null===(o=null!==(c=null==w?void 0:w.respectSamplingDecision)&&void 0!==c?c:null==k?void 0:k.respectSamplingDecision)||void 0===o||o},accessToken:async()=>""};return e.accessToken?S.accessToken=e.accessToken:delete S.accessToken,S}function W(e){const t=null==e?void 0:e.trim();if(!t)throw new Error("supabaseUrl is required.");if(!t.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL((r=t).endsWith("/")?r:r+"/")}catch(e){throw Error("Invalid supabaseUrl: Provided URL is malformed.")}var r}var $=class extends i.AuthClient{constructor(e){super(e)}},H=class{constructor(e,t,n){var i,o;this.supabaseUrl=e,this.supabaseKey=t;const c=W(e);if(!t)throw new Error("supabaseKey is required.");F(t),this.realtimeUrl=new URL("realtime/v1",c),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",c),this.storageUrl=new URL("storage/v1",c),this.functionsUrl=new URL("functions/v1",c);const l=`sb-${c.hostname.split(".")[0]}-auth-token`,u=z(null!=n?n:{},{db:f,realtime:y,auth:_(_({},b),{},{storageKey:l}),global:p,tracePropagation:v});var h;(this.settings=u,this.storageKey=null!==(i=u.auth.storageKey)&&void 0!==i?i:"",this.headers=null!==(o=u.global.headers)&&void 0!==o?o:{},u.accessToken)?(this.accessToken=u.accessToken,this.auth=new Proxy({},{get:(e,t)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(t)} is not possible`)}})):this.auth=this._initSupabaseAuthClient(null!==(h=u.auth)&&void 0!==h?h:{},this.headers,u.global.fetch);this.fetch=I(t,e,this._getSessionToken.bind(this),u.global.fetch,u.tracePropagation),this.functionsFetch=I(t,e,this._getSessionToken.bind(this),u.global.fetch,u.tracePropagation,{omitApiKeyAsBearer:!0}),this.realtime=this._initRealtimeClient(_({headers:this.headers,accessToken:this._getAccessToken.bind(this),fetch:this.fetch},u.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(e=>this.realtime.setAuth(e)).catch(e=>console.warn("Failed to set initial Realtime auth token:",e)),this.rest=new r.PostgrestClient(new URL("rest/v1",c).href,{headers:this.headers,schema:u.db.schema,fetch:this.fetch,timeout:u.db.timeout,urlLengthLimit:u.db.urlLengthLimit,retry:u.db.retry}),this.storage=new s.StorageClient(this.storageUrl.href,this.headers,this.fetch,null==n?void 0:n.storage),u.accessToken||this._listenForAuthEvents()}get functions(){return new t.FunctionsClient(this.functionsUrl.href,{headers:this.headers,customFetch:this.functionsFetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,t={},r={head:!1,get:!1,count:void 0}){return this.rest.rpc(e,t,r)}channel(e,t={config:{}}){return this.realtime.channel(e,t)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getSessionToken(){var e,t,r=this;if(r.accessToken)return await r.accessToken();const{data:n}=await r.auth.getSession();return null!==(e=null===(t=n.session)||void 0===t?void 0:t.access_token)&&void 0!==e?e:null}async _getAccessToken(){var e;return null!==(e=await this._getSessionToken())&&void 0!==e?e:this.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:t,detectSessionInUrl:r,storage:n,userStorage:s,storageKey:i,flowType:o,lock:c,debug:l,throwOnError:u,experimental:h,lockAcquireTimeout:p,skipAutoInitialize:f},b,y){const v={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new $({url:this.authUrl.href,headers:_(_({},v),b),storageKey:i,autoRefreshToken:e,persistSession:t,detectSessionInUrl:r,storage:n,userStorage:s,flowType:o,lock:c,debug:l,throwOnError:u,experimental:h,fetch:y,lockAcquireTimeout:p,skipAutoInitialize:f,hasCustomAuthorizationHeader:Object.keys(this.headers).some(e=>"authorization"===e.toLowerCase())})}_initRealtimeClient(e){return new n.RealtimeClient(this.realtimeUrl.href,_(_({},e),{},{params:_(_({},{apikey:this.supabaseKey}),null==e?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((e,t)=>{this._handleTokenChanged(e,"CLIENT",null==t?void 0:t.access_token)})}_handleTokenChanged(e,t,r){"TOKEN_REFRESHED"!==e&&"SIGNED_IN"!==e&&"INITIAL_SESSION"!==e||this.changedAccessToken===r?"SIGNED_OUT"===e&&(this.realtime.setAuth(),"STORAGE"==t&&this.auth.signOut(),this.changedAccessToken=void 0):(this.changedAccessToken=r,this.realtime.setAuth(r))}};const q=(e,t,r)=>new H(e,t,r);(function(){if("undefined"!=typeof window||void 0!==globalThis.Deno)return!1;const e=globalThis.process;if(!e)return!1;const t=e.version;if(null==t)return!1;const r=t.match(/^v(\d+)\./);return!!r&&parseInt(r[1],10)<=20})()&&console.warn("\u26a0\ufe0f Node.js 20 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 22 or later. For more information, visit: https://github.com/orgs/supabase/discussions/45715")},783,[784,785,790,791,806,808]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"n",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"t",{enumerable:!0,get:function(){return o}});const t=Symbol.for("@supabase/supabase-js.traceContextExtractor");function n(n){globalThis[t]=n}function o(){return globalThis[t]}},784,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"FunctionsClient",{enumerable:!0,get:function(){return n.FunctionsClient}}),Object.defineProperty(e,"FunctionsError",{enumerable:!0,get:function(){return t.FunctionsError}}),Object.defineProperty(e,"FunctionsFetchError",{enumerable:!0,get:function(){return t.FunctionsFetchError}}),Object.defineProperty(e,"FunctionsHttpError",{enumerable:!0,get:function(){return t.FunctionsHttpError}}),Object.defineProperty(e,"FunctionsRelayError",{enumerable:!0,get:function(){return t.FunctionsRelayError}}),Object.defineProperty(e,"FunctionRegion",{enumerable:!0,get:function(){return t.FunctionRegion}});var n=r(d[0]),t=r(d[1])},785,[786,789]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"FunctionsClient",{enumerable:!0,get:function(){return s}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);class s{constructor(t,{headers:s={},customFetch:c,region:l=o.FunctionRegion.Any}={}){this.url=t,this.headers=s,this.region=l,this.fetch=(0,n.resolveFetch)(c)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(n){return(0,t.__awaiter)(this,arguments,void 0,function*(t,n={}){var s,c;let l,u,f;try{const{headers:c,method:h,body:p,signal:y,timeout:b}=n;let F={},{region:v}=n;v||(v=this.region);const w=new URL(`${this.url}/${t}`);let j;v&&'any'!==v&&(F['x-region']=v,w.searchParams.set('forceFunctionRegion',v));const O=!!c&&Object.keys(c).some(t=>'content-type'===t.toLowerCase());p&&!O?'undefined'!=typeof Blob&&p instanceof Blob||p instanceof ArrayBuffer?(F['Content-Type']='application/octet-stream',j=p):'string'==typeof p?(F['Content-Type']='text/plain',j=p):'undefined'!=typeof FormData&&p instanceof FormData?j=p:(F['Content-Type']='application/json',j=JSON.stringify(p)):j=!p||'string'==typeof p||'undefined'!=typeof Blob&&p instanceof Blob||p instanceof ArrayBuffer||'undefined'!=typeof FormData&&p instanceof FormData?p:JSON.stringify(p);let C=y;b&&(u=new AbortController,l=setTimeout(()=>u.abort(),b),y?(C=u.signal,f=()=>u.abort(),y.addEventListener('abort',f)):C=u.signal);const x=yield this.fetch(w.toString(),{method:h||'POST',headers:Object.assign(Object.assign(Object.assign({},F),this.headers),c),body:j,signal:C}).catch(t=>{throw new o.FunctionsFetchError(t)}),B=x.headers.get('x-relay-error');if(B&&'true'===B)throw new o.FunctionsRelayError(x);if(!x.ok)throw new o.FunctionsHttpError(x);let E,T=(null!==(s=x.headers.get('Content-Type'))&&void 0!==s?s:'text/plain').split(';')[0].trim().toLowerCase();return E='application/json'===T?yield x.json():'application/octet-stream'===T||'application/pdf'===T?yield x.blob():'text/event-stream'===T?x:'multipart/form-data'===T?yield x.formData():yield x.text(),{data:E,error:null,response:x}}catch(t){return{data:null,error:t,response:t instanceof o.FunctionsHttpError||t instanceof o.FunctionsRelayError?t.context:void 0}}finally{l&&clearTimeout(l),f&&(null===(c=n.signal)||void 0===c||c.removeEventListener('abort',f))}})}}},786,[787,788,789]); +__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 G}}),_e.__extends=t,Object.defineProperty(_e,"__assign",{enumerable:!0,get:function(){return r}}),_e.__rest=n,_e.__decorate=o,_e.__param=a,_e.__esDecorate=i,_e.__runInitializers=c,_e.__propKey=u,_e.__setFunctionName=s,_e.__metadata=f,_e.__awaiter=l,_e.__generator=p,Object.defineProperty(_e,"__createBinding",{enumerable:!0,get:function(){return y}}),_e.__exportStar=_,_e.__values=d,_e.__read=h,_e.__spread=b,_e.__spreadArrays=v,_e.__spreadArray=w,_e.__await=m,_e.__asyncGenerator=g,_e.__asyncDelegator=O,_e.__asyncValues=j,_e.__makeTemplateObject=P,_e.__importStar=x,_e.__importDefault=T,_e.__classPrivateFieldGet=I,_e.__classPrivateFieldSet=D,_e.__classPrivateFieldIn=R,_e.__addDisposableResource=k,_e.__disposeResources=F,_e.__rewriteRelativeImportExtension=C;var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};function t(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}var r=function(){return r=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0;c--)(o=e[c])&&(i=(a<3?o(i):a>3?o(t,r,i):o(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i}function a(e,t){return function(r,n){t(r,n,e)}}function i(e,t,r,n,o,a){function i(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var c,u=n.kind,s="getter"===u?"get":"setter"===u?"set":"value",f=!t&&e?n.static?e:e.prototype:null,l=t||(f?Object.getOwnPropertyDescriptor(f,n.name):{}),p=!1,y=r.length-1;y>=0;y--){var _={};for(var d in n)_[d]="access"===d?{}:n[d];for(var d in n.access)_.access[d]=n.access[d];_.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");a.push(i(e||null))};var h=(0,r[y])("accessor"===u?{get:l.get,set:l.set}:l[s],_);if("accessor"===u){if(void 0===h)continue;if(null===h||"object"!=typeof h)throw new TypeError("Object expected");(c=i(h.get))&&(l.get=c),(c=i(h.set))&&(l.set=c),(c=i(h.init))&&o.unshift(c)}else(c=i(h))&&("field"===u?o.unshift(c):l[s]=c)}f&&Object.defineProperty(f,n.name,l),p=!0}function c(e,t,r){for(var n=arguments.length>2,o=0;o0&&o[o.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function h(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,a=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i}function b(){for(var e=[],t=0;t1||c(e,t)})},t&&(n[e]=t(n[e])))}function c(e,t){try{(r=o[e](t)).value instanceof m?Promise.resolve(r.value.v).then(u,s):f(a[0][2],r)}catch(e){f(a[0][3],e)}var r}function u(e){c("next",e)}function s(e){c("throw",e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}}function O(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:m(e[n](t)),done:!1}:o?o(t):t}:o}}function j(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=d(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,a){o(n,a,(t=e[r](t)).done,t.value)})}}function o(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)}}function P(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var S=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},E=function(e){return E=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},E(e)};function x(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=E(e),n=0;nt?(...n)=>t(...n):(...t)=>fetch(...t)},788,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"FunctionsError",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"FunctionsFetchError",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"FunctionsRelayError",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"FunctionsHttpError",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"FunctionRegion",{enumerable:!0,get:function(){return u}});class t extends Error{constructor(t,n="FunctionsError",s){super(t),this.name=n,this.context=s}toJSON(){return{name:this.name,message:this.message,context:this.context}}}class n extends t{constructor(t){super('Failed to send a request to the Edge Function','FunctionsFetchError',t)}}class s extends t{constructor(t){super('Relay Error invoking the Edge Function','FunctionsRelayError',t)}}class o extends t{constructor(t){super('Edge Function returned a non-2xx status code','FunctionsHttpError',t)}}var u;!(function(t){t.Any="any",t.ApNortheast1="ap-northeast-1",t.ApNortheast2="ap-northeast-2",t.ApSouth1="ap-south-1",t.ApSoutheast1="ap-southeast-1",t.ApSoutheast2="ap-southeast-2",t.CaCentral1="ca-central-1",t.EuCentral1="eu-central-1",t.EuWest1="eu-west-1",t.EuWest2="eu-west-2",t.EuWest3="eu-west-3",t.SaEast1="sa-east-1",t.UsEast1="us-east-1",t.UsWest1="us-west-1",t.UsWest2="us-west-2"})(u||(u={}))},789,[]); +__d(function(g,_r,_i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"PostgrestBuilder",{enumerable:!0,get:function(){return f}}),Object.defineProperty(_e,"PostgrestClient",{enumerable:!0,get:function(){return $}}),Object.defineProperty(_e,"PostgrestError",{enumerable:!0,get:function(){return s}}),Object.defineProperty(_e,"PostgrestFilterBuilder",{enumerable:!0,get:function(){return b}}),Object.defineProperty(_e,"PostgrestQueryBuilder",{enumerable:!0,get:function(){return P}}),Object.defineProperty(_e,"PostgrestTransformBuilder",{enumerable:!0,get:function(){return y}}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return w}});const e=e=>Math.min(1e3*2**e,3e4),t=[520,503],r=["GET","HEAD","OPTIONS"];var s=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.code=e.code}toJSON(){return{name:this.name,message:this.message,details:this.details,hint:this.hint,code:this.code}}};function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var s=r.call(e,t||"default");if("object"!=n(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function l(e){var t=i(e,"string");return"symbol"==n(t)?t:t+""}function o(e,t,r){return(t=l(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,s)}return r}function u(e){for(var t=1;t{if(null==t?void 0:t.aborted)return void r();const s=setTimeout(()=>{null==t||t.removeEventListener("abort",n),r()},e);function n(){clearTimeout(s),r()}null==t||t.addEventListener("abort",n)})}function p(e,s,n,i){return!(!i||n>=3)&&(!!r.includes(e)&&!!t.includes(s))}var f=class{constructor(e){var t,r,s,n,i;this.shouldThrowOnError=!1,this.retryEnabled=!0,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=null!==(t=e.shouldThrowOnError)&&void 0!==t&&t,this.signal=e.signal,this.isMaybeSingle=null!==(r=e.isMaybeSingle)&&void 0!==r&&r,this.shouldStripNulls=null!==(s=e.shouldStripNulls)&&void 0!==s&&s,this.urlLengthLimit=null!==(n=e.urlLengthLimit)&&void 0!==n?n:8e3,this.retryEnabled=null===(i=e.retry)||void 0===i||i,e.fetch?this.fetch=e.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}stripNulls(){if("text/csv"===this.headers.get("Accept"))throw new Error("stripNulls() cannot be used with csv()");return this.shouldStripNulls=!0,this}setHeader(e,t){return this.headers=new Headers(this.headers),this.headers.set(e,t),this}retry(e){return this.retryEnabled=e,this}then(t,s){var n=this;if(void 0===this.schema||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),"GET"!==this.method&&"HEAD"!==this.method&&this.headers.set("Content-Type","application/json"),this.shouldStripNulls){const e=this.headers.get("Accept");"application/vnd.pgrst.object+json"===e?this.headers.set("Accept","application/vnd.pgrst.object+json;nulls=stripped"):e&&"application/json"!==e||this.headers.set("Accept","application/vnd.pgrst.array+json;nulls=stripped")}const i=this.fetch;let l=(async()=>{let t=0;for(;;){const o={};let h;n.headers.forEach((e,t)=>{o[t]=e}),t>0&&(o["X-Retry-Count"]=String(t));try{h=await i(n.url.toString(),{method:n.method,headers:o,body:JSON.stringify(n.body,(e,t)=>"bigint"==typeof t?t.toString():t),signal:n.signal})}catch(s){if("AbortError"===(null==s?void 0:s.name)||"ABORT_ERR"===(null==s?void 0:s.code))throw s;if(!r.includes(n.method))throw s;if(n.retryEnabled&&t<3){const r=e(t);t++,await c(r,n.signal);continue}throw s}if(p(n.method,h.status,t,n.retryEnabled)){var s,l;const r=null!==(s=null===(l=h.headers)||void 0===l?void 0:l.get("Retry-After"))&&void 0!==s?s:null,i=null!==r?1e3*Math.max(0,parseInt(r,10)||0):e(t);await h.text(),t++,await c(i,n.signal);continue}return await n.processResponse(h)}})();return this.shouldThrowOnError||(l=l.catch(e=>{var t;let r="",s="",n="";const i=null==e?void 0:e.cause;if(i){var l,o,h,u;const t=null!==(l=null==i?void 0:i.message)&&void 0!==l?l:"",s=null!==(o=null==i?void 0:i.code)&&void 0!==o?o:"";r=`${null!==(h=null==e?void 0:e.name)&&void 0!==h?h:"FetchError"}: ${null==e?void 0:e.message}`,r+=`\n\nCaused by: ${null!==(u=null==i?void 0:i.name)&&void 0!==u?u:"Error"}: ${t}`,s&&(r+=` (${s})`),(null==i?void 0:i.stack)&&(r+=`\n${i.stack}`)}else{var c;r=null!==(c=null==e?void 0:e.stack)&&void 0!==c?c:""}const p=this.url.toString().length;return"AbortError"===(null==e?void 0:e.name)||"ABORT_ERR"===(null==e?void 0:e.code)?(n="",s="Request was aborted (timeout or manual cancellation)",p>this.urlLengthLimit&&(s+=`. Note: Your request URL is ${p} characters, which may exceed server limits. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [many IDs])), consider using an RPC function to pass values server-side.`)):"HeadersOverflowError"!==(null==i?void 0:i.name)&&"UND_ERR_HEADERS_OVERFLOW"!==(null==i?void 0:i.code)||(n="",s="HTTP headers exceeded server limits (typically 16KB)",p>this.urlLengthLimit&&(s+=`. Your request URL is ${p} characters. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [200+ IDs])), consider using an RPC function instead.`)),{success:!1,error:{message:`${null!==(t=null==e?void 0:e.name)&&void 0!==t?t:"FetchError"}: ${null==e?void 0:e.message}`,details:r,hint:s,code:n},data:null,count:null,status:0,statusText:""}})),l.then(t,s)}async processResponse(e){var t=this;let r=null,n=null,i=null,l=e.status,o=e.statusText;if(e.ok){var h,c;if("HEAD"!==t.method){var p;const i=await e.text();if(""===i);else if("text/csv"===t.headers.get("Accept"))n=i;else if(t.headers.get("Accept")&&(null===(p=t.headers.get("Accept"))||void 0===p?void 0:p.includes("application/vnd.pgrst.plan+text")))n=i;else try{n=JSON.parse(i)}catch(e){if(r={message:i},n=null,t.shouldThrowOnError)throw new s({message:i,details:"",hint:"",code:""})}}const y=null===(h=t.headers.get("Prefer"))||void 0===h?void 0:h.match(/count=(exact|planned|estimated)/),v=null===(c=e.headers.get("content-range"))||void 0===c?void 0:c.split("/");if(y&&v&&v.length>1&&(i=parseInt(v[1])),t.isMaybeSingle&&Array.isArray(n))if(n.length>1){var f;if(r={code:"PGRST116",details:`Results contain ${n.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},n=null,i=null,l=406,o="Not Acceptable",t.shouldThrowOnError)throw new s(u(u({},r),{},{hint:null!==(f=r.hint)&&void 0!==f?f:""}))}else n=1===n.length?n[0]:null}else{const i=await e.text();try{r=JSON.parse(i),Array.isArray(r)&&404===e.status&&(n=[],r=null,l=200,o="OK")}catch(t){404===e.status&&""===i?(l=204,o="No Content"):r={message:i}}if(r&&t.shouldThrowOnError)throw new s(r)}return{success:null===r,error:r,data:n,count:i,status:l,statusText:o}}returns(){return this}overrideTypes(){return this}},y=class extends f{throwOnError(){return super.throwOnError()}select(e){let t=!1;const r=(null!=e?e:"*").split("").map(e=>/\s/.test(e)&&!t?"":("\""===e&&(t=!t),e)).join("");return this.url.searchParams.set("select",r),this.headers.append("Prefer","return=representation"),this}order(e,{ascending:t=!0,nullsFirst:r,foreignTable:s,referencedTable:n=s}={}){const i=n?`${n}.order`:"order",l=this.url.searchParams.get(i);return this.url.searchParams.set(i,`${l?`${l},`:""}${e}.${t?"asc":"desc"}${void 0===r?"":r?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:t,referencedTable:r=t}={}){const s=void 0===r?"limit":`${r}.limit`;return this.url.searchParams.set(s,`${e}`),this}range(e,t,{foreignTable:r,referencedTable:s=r}={}){const n=void 0===s?"offset":`${s}.offset`,i=void 0===s?"limit":`${s}.limit`;return this.url.searchParams.set(n,`${e}`),this.url.searchParams.set(i,""+(t-e+1)),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}explain({analyze:e=!1,verbose:t=!1,settings:r=!1,buffers:s=!1,wal:n=!1,format:i="text"}={}){var l;const o=[e?"analyze":null,t?"verbose":null,r?"settings":null,s?"buffers":null,n?"wal":null].filter(Boolean).join("|"),h=null!==(l=this.headers.get("Accept"))&&void 0!==l?l:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${i}; for="${h}"; options=${o};`),this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(e){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${e}`),this}};const v=new RegExp("[,()]");var b=class extends y{throwOnError(){return super.throwOnError()}eq(e,t){return this.url.searchParams.append(e,`eq.${t}`),this}neq(e,t){return this.url.searchParams.append(e,`neq.${t}`),this}gt(e,t){return this.url.searchParams.append(e,`gt.${t}`),this}gte(e,t){return this.url.searchParams.append(e,`gte.${t}`),this}lt(e,t){return this.url.searchParams.append(e,`lt.${t}`),this}lte(e,t){return this.url.searchParams.append(e,`lte.${t}`),this}like(e,t){return this.url.searchParams.append(e,`like.${t}`),this}likeAllOf(e,t){return this.url.searchParams.append(e,`like(all).{${t.join(",")}}`),this}likeAnyOf(e,t){return this.url.searchParams.append(e,`like(any).{${t.join(",")}}`),this}ilike(e,t){return this.url.searchParams.append(e,`ilike.${t}`),this}ilikeAllOf(e,t){return this.url.searchParams.append(e,`ilike(all).{${t.join(",")}}`),this}ilikeAnyOf(e,t){return this.url.searchParams.append(e,`ilike(any).{${t.join(",")}}`),this}regexMatch(e,t){return this.url.searchParams.append(e,`match.${t}`),this}regexIMatch(e,t){return this.url.searchParams.append(e,`imatch.${t}`),this}is(e,t){return this.url.searchParams.append(e,`is.${t}`),this}isDistinct(e,t){return this.url.searchParams.append(e,`isdistinct.${t}`),this}in(e,t){const r=Array.from(new Set(t)).map(e=>"string"==typeof e&&v.test(e)?`"${e}"`:`${e}`).join(",");return this.url.searchParams.append(e,`in.(${r})`),this}notIn(e,t){const r=Array.from(new Set(t)).map(e=>"string"==typeof e&&v.test(e)?`"${e}"`:`${e}`).join(",");return this.url.searchParams.append(e,`not.in.(${r})`),this}contains(e,t){return"string"==typeof t?this.url.searchParams.append(e,`cs.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cs.{${t.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(t)}`),this}containedBy(e,t){return"string"==typeof t?this.url.searchParams.append(e,`cd.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cd.{${t.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(t)}`),this}rangeGt(e,t){return this.url.searchParams.append(e,`sr.${t}`),this}rangeGte(e,t){return this.url.searchParams.append(e,`nxl.${t}`),this}rangeLt(e,t){return this.url.searchParams.append(e,`sl.${t}`),this}rangeLte(e,t){return this.url.searchParams.append(e,`nxr.${t}`),this}rangeAdjacent(e,t){return this.url.searchParams.append(e,`adj.${t}`),this}overlaps(e,t){return"string"==typeof t?this.url.searchParams.append(e,`ov.${t}`):this.url.searchParams.append(e,`ov.{${t.join(",")}}`),this}textSearch(e,t,{config:r,type:s}={}){let n="";"plain"===s?n="pl":"phrase"===s?n="ph":"websearch"===s&&(n="w");const i=void 0===r?"":`(${r})`;return this.url.searchParams.append(e,`${n}fts${i}.${t}`),this}match(e){return Object.entries(e).filter(([e,t])=>void 0!==t).forEach(([e,t])=>{this.url.searchParams.append(e,`eq.${t}`)}),this}not(e,t,r){return this.url.searchParams.append(e,`not.${t}.${r}`),this}or(e,{foreignTable:t,referencedTable:r=t}={}){const s=r?`${r}.or`:"or";return this.url.searchParams.append(s,`(${e})`),this}filter(e,t,r){return this.url.searchParams.append(e,`${t}.${r}`),this}},P=class{constructor(e,{headers:t={},schema:r,fetch:s,urlLengthLimit:n=8e3,retry:i}){this.url=e,this.headers=new Headers(t),this.schema=r,this.fetch=s,this.urlLengthLimit=n,this.retry=i}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(e,t){const{head:r=!1,count:s}=null!=t?t:{},n=r?"HEAD":"GET";let i=!1;const l=(null!=e?e:"*").split("").map(e=>/\s/.test(e)&&!i?"":("\""===e&&(i=!i),e)).join(""),{url:o,headers:h}=this.cloneRequestState();return o.searchParams.set("select",l),s&&h.append("Prefer",`count=${s}`),new b({method:n,url:o,headers:h,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}insert(e,{count:t,defaultToNull:r=!0}={}){var s;const{url:n,headers:i}=this.cloneRequestState();if(t&&i.append("Prefer",`count=${t}`),r||i.append("Prefer","missing=default"),Array.isArray(e)){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]);if(t.length>0){const e=[...new Set(t)].map(e=>`"${e}"`);n.searchParams.set("columns",e.join(","))}}return new b({method:"POST",url:n,headers:i,schema:this.schema,body:e,fetch:null!==(s=this.fetch)&&void 0!==s?s:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}upsert(e,{onConflict:t,ignoreDuplicates:r=!1,count:s,defaultToNull:n=!0}={}){var i;const{url:l,headers:o}=this.cloneRequestState();if(o.append("Prefer",`resolution=${r?"ignore":"merge"}-duplicates`),void 0!==t&&l.searchParams.set("on_conflict",t),s&&o.append("Prefer",`count=${s}`),n||o.append("Prefer","missing=default"),Array.isArray(e)){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]);if(t.length>0){const e=[...new Set(t)].map(e=>`"${e}"`);l.searchParams.set("columns",e.join(","))}}return new b({method:"POST",url:l,headers:o,schema:this.schema,body:e,fetch:null!==(i=this.fetch)&&void 0!==i?i:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}update(e,{count:t}={}){var r;const{url:s,headers:n}=this.cloneRequestState();return t&&n.append("Prefer",`count=${t}`),new b({method:"PATCH",url:s,headers:n,schema:this.schema,body:e,fetch:null!==(r=this.fetch)&&void 0!==r?r:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}delete({count:e}={}){var t;const{url:r,headers:s}=this.cloneRequestState();return e&&s.append("Prefer",`count=${e}`),new b({method:"DELETE",url:r,headers:s,schema:this.schema,fetch:null!==(t=this.fetch)&&void 0!==t?t:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}},$=class e{constructor(e,{headers:t={},schema:r,fetch:s,timeout:n,urlLengthLimit:i=8e3,retry:l}={}){this.url=e,this.headers=new Headers(t),this.schemaName=r,this.urlLengthLimit=i;const o=null!=s?s:globalThis.fetch;this.fetch=void 0!==n&&n>0?(e,t)=>{const r=new AbortController,s=setTimeout(()=>r.abort(),n),i=null==t?void 0:t.signal;if(i){if(i.aborted)return clearTimeout(s),o(e,t);const n=()=>{clearTimeout(s),r.abort()};return i.addEventListener("abort",n,{once:!0}),o(e,u(u({},t),{},{signal:r.signal})).finally(()=>{clearTimeout(s),i.removeEventListener("abort",n)})}return o(e,u(u({},t),{},{signal:r.signal})).finally(()=>clearTimeout(s))}:o,this.retry=l}from(e){if(!e||"string"!=typeof e||""===e.trim())throw new Error("Invalid relation name: relation must be a non-empty string.");return new P(new URL(`${this.url}/${e}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}schema(t){return new e(this.url,{headers:this.headers,schema:t,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}rpc(e,t={},{head:r=!1,get:s=!1,count:n}={}){var i;let l;const o=new URL(`${this.url}/rpc/${e}`);let h;const u=e=>null!==e&&"object"==typeof e&&(!Array.isArray(e)||e.some(u)),c=r&&Object.values(t).some(u);c?(l="POST",h=t):r||s?(l=r?"HEAD":"GET",Object.entries(t).filter(([e,t])=>void 0!==t).map(([e,t])=>[e,Array.isArray(t)?`{${t.join(",")}}`:`${t}`]).forEach(([e,t])=>{o.searchParams.append(e,t)})):(l="POST",h=t);const p=new Headers(this.headers);return c?p.set("Prefer",n?`count=${n},return=minimal`:"return=minimal"):n&&p.set("Prefer",`count=${n}`),new b({method:l,url:o,headers:p,schema:this.schemaName,body:h,fetch:null!==(i=this.fetch)&&void 0!==i?i:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}},w={PostgrestClient:$,PostgrestQueryBuilder:P,PostgrestFilterBuilder:b,PostgrestTransformBuilder:y,PostgrestBuilder:f,PostgrestError:s}},790,[]); +__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,"RealtimePresence",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(_e,"RealtimeChannel",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(_e,"RealtimeClient",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(_e,"RealtimePostgresFilterBuilder",{enumerable:!0,get:function(){return n.RealtimePostgresFilterBuilder}}),Object.defineProperty(_e,"postgresChangesFilter",{enumerable:!0,get:function(){return n.postgresChangesFilter}}),Object.defineProperty(_e,"REALTIME_LISTEN_TYPES",{enumerable:!0,get:function(){return n.REALTIME_LISTEN_TYPES}}),Object.defineProperty(_e,"REALTIME_POSTGRES_CHANGES_LISTEN_EVENT",{enumerable:!0,get:function(){return n.REALTIME_POSTGRES_CHANGES_LISTEN_EVENT}}),Object.defineProperty(_e,"REALTIME_PRESENCE_LISTEN_EVENTS",{enumerable:!0,get:function(){return u.REALTIME_PRESENCE_LISTEN_EVENTS}}),Object.defineProperty(_e,"REALTIME_SUBSCRIBE_STATES",{enumerable:!0,get:function(){return n.REALTIME_SUBSCRIBE_STATES}}),Object.defineProperty(_e,"REALTIME_CHANNEL_STATES",{enumerable:!0,get:function(){return n.REALTIME_CHANNEL_STATES}}),Object.defineProperty(_e,"WebSocketFactory",{enumerable:!0,get:function(){return l.default}});var t=e(r(d[0])),n=r(d[1]),E=e(n),u=r(d[2]),o=e(u),l=e(r(d[3]))},791,[792,798,799,793]); +__d(function(g,r,i,a,m,_e2,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e2,'__esModule',{value:!0}),Object.defineProperty(_e2,"default",{enumerable:!0,get:function(){return _}});var t=e(r(d[0])),n=r(d[1]),s=e(r(d[2])),o=r(d[3]),c=e(r(d[4])),l=e(r(d[5]));const h=25e3,u=[1e3,2e3,5e3,1e4];function k(){const e=new Map;return{get length(){return e.size},clear(){e.clear()},getItem:t=>e.has(t)?e.get(t):null,key(t){var n;return null!==(n=Array.from(e.keys())[t])&&void 0!==n?n:null},removeItem(t){e.delete(t)},setItem(t,n){e.set(t,String(n))}}}function p(){try{if('undefined'!=typeof globalThis&&globalThis.sessionStorage)return globalThis.sessionStorage}catch(e){}return k()}class _{get endPoint(){return this.socketAdapter.endPoint}get timeout(){return this.socketAdapter.timeout}get transport(){return this.socketAdapter.transport}get heartbeatCallback(){return this.socketAdapter.heartbeatCallback}get heartbeatIntervalMs(){return this.socketAdapter.heartbeatIntervalMs}get heartbeatTimer(){return this.worker?this._workerHeartbeatTimer:this.socketAdapter.heartbeatTimer}get pendingHeartbeatRef(){return this.worker?this._pendingWorkerHeartbeatRef:this.socketAdapter.pendingHeartbeatRef}get reconnectTimer(){return this.socketAdapter.reconnectTimer}get vsn(){return this.socketAdapter.vsn}get encode(){return this.socketAdapter.encode}get decode(){return this.socketAdapter.decode}get reconnectAfterMs(){return this.socketAdapter.reconnectAfterMs}get sendBuffer(){return this.socketAdapter.sendBuffer}get stateChangeCallbacks(){return this.socketAdapter.stateChangeCallbacks}constructor(e,t){var n;if(this.channels=new Array,this.accessTokenValue=null,this.accessToken=null,this.apiKey=null,this.httpEndpoint='',this.headers={},this.params={},this.ref=0,this.serializer=new s.default,this._manuallySetToken=!1,this._authPromise=null,this._authGeneration=0,this._workerHeartbeatTimer=void 0,this._pendingWorkerHeartbeatRef=null,this._pendingDisconnectTimer=null,this._disconnectOnEmptyChannelsAfterMs=0,this._resolveFetch=e=>e?(...t)=>e(...t):(...e)=>fetch(...e),!(null===(n=null==t?void 0:t.params)||void 0===n?void 0:n.apikey))throw new Error('API key is required to connect to Realtime');this.apiKey=t.params.apikey;const c=this._initializeOptions(t);this.socketAdapter=new l.default(e,c),this.httpEndpoint=(0,o.httpEndpointURL)(e),this.fetch=this._resolveFetch(null==t?void 0:t.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.isConnected())){this.accessToken&&!this._authPromise&&this._setAuthSafely('connect'),this._setupConnectionHandlers();try{this.socketAdapter.connect()}catch(e){const t=e.message;throw new Error(`WebSocket not available: ${t}`)}this._handleNodeJsRaceCondition()}}endpointURL(){return this.socketAdapter.endPointURL()}async disconnect(e,t){return this._cancelPendingDisconnect(),this.isDisconnecting()?'ok':await this.socketAdapter.disconnect(()=>{clearInterval(this._workerHeartbeatTimer),this._terminateWorker()},e,t)}getChannels(){return this.channels}async removeChannel(e){const t=await e.unsubscribe();return'ok'===t&&e.teardown(),t}async removeAllChannels(){const e=this.channels.map(async e=>{const t=await e.unsubscribe();return e.teardown(),t}),t=await Promise.all(e);return await this.disconnect(),t}log(e,t,n){this.socketAdapter.log(e,t,n)}hasLogger(){return this.socketAdapter.hasLogger()}connectionState(){return this.socketAdapter.connectionState()||n.CONNECTION_STATE.closed}isConnected(){return this.socketAdapter.isConnected()}isConnecting(){return this.socketAdapter.isConnecting()}isDisconnecting(){return this.socketAdapter.isDisconnecting()}channel(e,t={config:{}}){const n=`realtime:${e}`,s=this.getChannels().find(e=>e.topic===n);if(s)return s;{const n=new c.default(`realtime:${e}`,t,this);return this._cancelPendingDisconnect(),this.channels.push(n),n}}push(e){this.socketAdapter.push(e)}async setAuth(e=null){const t=++this._authGeneration,n=this._performAuth(e,t);t===this._authGeneration&&(this._authPromise=n);try{await n}finally{this._authPromise===n&&(this._authPromise=null)}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){this.socketAdapter.sendHeartbeat()}onHeartbeat(e){this.socketAdapter.heartbeatCallback=this._wrapHeartbeatCallback(e)}_makeRef(){return this.socketAdapter.makeRef()}_remove(e){this.channels=this.channels.filter(t=>t.topic!==e.topic),0===this.channels.length&&(this.log('transport','no channels remaining, scheduling disconnect'),this._schedulePendingDisconnect())}_schedulePendingDisconnect(){if(this._cancelPendingDisconnect(),0===this._disconnectOnEmptyChannelsAfterMs)return this.log('transport','disconnecting immediately - no channels'),void this.disconnect();this._pendingDisconnectTimer=setTimeout(()=>{this._pendingDisconnectTimer=null,0===this.channels.length&&(this.log('transport','deferred disconnect fired - no channels, disconnecting'),this.disconnect())},this._disconnectOnEmptyChannelsAfterMs),this.log('transport',`deferred disconnect scheduled in ${this._disconnectOnEmptyChannelsAfterMs}ms`)}_cancelPendingDisconnect(){null!==this._pendingDisconnectTimer&&(this.log('transport','pending disconnect cancelled - channel activity detected'),clearTimeout(this._pendingDisconnectTimer),this._pendingDisconnectTimer=null)}async _performAuth(e,t){let s,o=!1;if(e)s=e,o=!0;else if(this.accessToken)try{s=await this.accessToken()}catch(e){this.log('error','Error fetching access token from callback',e),s=this.accessTokenValue}else s=this.accessTokenValue;t===this._authGeneration&&(this.accessToken?this._manuallySetToken=!1:o&&(this._manuallySetToken=!0),this.accessTokenValue!=s&&(this.accessTokenValue=s,this.channels.forEach(e=>{const t={access_token:s,version:n.DEFAULT_VERSION};e.updateJoinPayload(t),e.joinedOnce&&e.channelAdapter.isJoined()&&e.channelAdapter.push(n.CHANNEL_EVENTS.access_token,{access_token:s})})))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(e="general"){this._isManualToken()||this.setAuth().catch(t=>{this.log('error',`Error setting auth in ${e}`,t)})}_setupConnectionHandlers(){this.socketAdapter.onOpen(()=>{(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).catch(e=>{this.log('error','error waiting for auth on connect',e)}),this.worker&&!this.workerRef&&this._startWorkerHeartbeat()}),this.socketAdapter.onClose(()=>{this.worker&&this.workerRef&&this._terminateWorker()}),this.socketAdapter.onMessage(e=>{e.ref&&e.ref===this._pendingWorkerHeartbeatRef&&(this._pendingWorkerHeartbeatRef=null)})}_handleNodeJsRaceCondition(){this.socketAdapter.isConnected()&&this.socketAdapter.getSocket().onConnOpen()}_wrapHeartbeatCallback(e){return(t,n)=>{'disconnected'!==t&&('sent'==t&&this._setAuthSafely(),e&&e(t,n))}}_startWorkerHeartbeat(){this.workerUrl?this.log('worker',`starting worker for from ${this.workerUrl}`):this.log('worker',"starting default worker");const e=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(e),this.workerRef.onerror=e=>{this.log('worker','worker error',e.message),this._terminateWorker(),this.disconnect()},this.workerRef.onmessage=e=>{'keepAlive'===e.data.event&&this.sendHeartbeat()},this.workerRef.postMessage({event:'start',interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&(this.log('worker','terminating worker'),this.workerRef.terminate(),this.workerRef=void 0)}_workerObjectUrl(e){let t;if(e)t=e;else{const e=new Blob(["\n addEventListener(\"message\", (e) => {\n if (e.data.event === \"start\") {\n setInterval(() => postMessage({ event: \"keepAlive\" }), e.data.interval);\n }\n });"],{type:'application/javascript'});t=URL.createObjectURL(e)}return t}_initializeOptions(e){var s,o,c,l,k,_,f,v,w,b,A,T;this.worker=null!==(s=null==e?void 0:e.worker)&&void 0!==s&&s,this.accessToken=null!==(o=null==e?void 0:e.accessToken)&&void 0!==o?o:null;const y={};let C,E;y.timeout=null!==(c=null==e?void 0:e.timeout)&&void 0!==c?c:n.DEFAULT_TIMEOUT,y.heartbeatIntervalMs=null!==(l=null==e?void 0:e.heartbeatIntervalMs)&&void 0!==l?l:h,this._disconnectOnEmptyChannelsAfterMs=null!==(k=null==e?void 0:e.disconnectOnEmptyChannelsAfterMs)&&void 0!==k?k:2*(null!==(_=null==e?void 0:e.heartbeatIntervalMs)&&void 0!==_?_:h),y.transport=null!==(f=null==e?void 0:e.transport)&&void 0!==f?f:t.default.getWebSocketConstructor(),y.params=null==e?void 0:e.params,y.logger=null==e?void 0:e.logger,y.heartbeatCallback=this._wrapHeartbeatCallback(null==e?void 0:e.heartbeatCallback),y.sessionStorage=null!==(v=null==e?void 0:e.sessionStorage)&&void 0!==v?v:p(),y.reconnectAfterMs=null!==(w=null==e?void 0:e.reconnectAfterMs)&&void 0!==w?w:e=>u[e-1]||1e4;const R=null!==(b=null==e?void 0:e.vsn)&&void 0!==b?b:n.DEFAULT_VSN;switch(R){case n.VSN_1_0_0:C=(e,t)=>t(JSON.stringify(e)),E=(e,t)=>t(JSON.parse(e));break;case n.VSN_2_0_0:C=this.serializer.encode.bind(this.serializer),E=this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${y.vsn}`)}if(y.vsn=R,y.encode=null!==(A=null==e?void 0:e.encode)&&void 0!==A?A:C,y.decode=null!==(T=null==e?void 0:e.decode)&&void 0!==T?T:E,y.beforeReconnect=this._reconnectAuth.bind(this),((null==e?void 0:e.logLevel)||(null==e?void 0:e.log_level))&&(this.logLevel=e.logLevel||e.log_level,y.params=Object.assign(Object.assign({},y.params),{log_level:this.logLevel})),this.worker){if('undefined'!=typeof window&&!window.Worker)throw new Error('Web Worker is not supported');this.workerUrl=null==e?void 0:e.workerUrl,y.autoSendHeartbeat=!this.worker}return y}async _reconnectAuth(){await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()}}},792,[793,794,796,797,798,805]); +__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}}),Object.defineProperty(e,"WebSocketFactory",{enumerable:!0,get:function(){return t}});class t{constructor(){}static detectEnvironment(){var t;if('undefined'!=typeof WebSocket)return{type:'native',wsConstructor:WebSocket};const o=globalThis;if('undefined'!=typeof globalThis&&void 0!==o.WebSocket)return{type:'native',wsConstructor:o.WebSocket};const n=void 0!==g?g:void 0;if(n&&void 0!==n.WebSocket)return{type:'native',wsConstructor:n.WebSocket};if('undefined'!=typeof globalThis&&void 0!==o.WebSocketPair&&void 0===globalThis.WebSocket)return{type:'cloudflare',error:'Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.',workaround:'Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime.'};if('undefined'!=typeof globalThis&&o.EdgeRuntime||'undefined'!=typeof navigator&&(null===(t=navigator.userAgent)||void 0===t?void 0:t.includes('Vercel-Edge')))return{type:'unsupported',error:'Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.',workaround:'Use serverless functions or a different deployment target for WebSocket functionality.'};const u=globalThis.process;if(u){const t=u.versions;if(t&&t.node)return{type:'unsupported',error:'Node.js detected but native WebSocket not found.',workaround:'Ensure you are running Node.js 22+ or provide a WebSocket implementation via the transport option.'}}return{type:'unsupported',error:'Unknown JavaScript runtime without WebSocket support.',workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const t=this.detectEnvironment();if(t.wsConstructor)return t.wsConstructor;let o=t.error||'WebSocket not supported in this environment.';throw t.workaround&&(o+=`\n\nSuggested solution: ${t.workaround}`),new Error(o)}static isWebSocketSupported(){try{return'native'===this.detectEnvironment().type}catch(t){return!1}}}var o=t},793,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DEFAULT_VERSION",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"VSN_1_0_0",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"VSN_2_0_0",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"DEFAULT_VSN",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"VERSION",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"DEFAULT_TIMEOUT",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"WS_CLOSE_NORMAL",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"MAX_PUSH_BUFFER_SIZE",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"SOCKET_STATES",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"CHANNEL_STATES",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"CHANNEL_EVENTS",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"TRANSPORTS",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"CONNECTION_STATE",{enumerable:!0,get:function(){return E}});var n=r(d[0]);const t=`realtime-js/${n.version}`,o='1.0.0',c='2.0.0',u=c,l=n.version,b=1e4,_=1e3,f=100,p={connecting:0,open:1,closing:2,closed:3},s={closed:'closed',errored:'errored',joined:'joined',joining:'joining',leaving:'leaving'},O={close:'phx_close',error:'phx_error',join:'phx_join',reply:'phx_reply',leave:'phx_leave',access_token:'access_token'},j={websocket:'websocket'},E={connecting:'connecting',open:'open',closing:'closing',closed:'closed'}},794,[795]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return t}});const t='2.112.4'},795,[]); +__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.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT='broadcast',this.allowedMetadataKeys=[],this.allowedMetadataKeys=null!=t?t:[]}encode(t,n){if(t.event===this.BROADCAST_EVENT&&!(t.payload instanceof ArrayBuffer)&&'string'==typeof t.payload.event)return n(this._binaryEncodeUserBroadcastPush(t));let s=[t.join_ref,t.ref,t.topic,t.event,t.payload];return n(JSON.stringify(s))}_binaryEncodeUserBroadcastPush(t){var n;return this._isArrayBuffer(null===(n=t.payload)||void 0===n?void 0:n.payload)?this._encodeBinaryUserBroadcastPush(t):this._encodeJsonUserBroadcastPush(t)}_encodeBinaryUserBroadcastPush(t){var n,s;const o=null!==(s=null===(n=t.payload)||void 0===n?void 0:n.payload)&&void 0!==s?s:new ArrayBuffer(0);return this._encodeUserBroadcastPush(t,this.BINARY_ENCODING,o)}_encodeJsonUserBroadcastPush(t){var n,s;const o=null!==(s=null===(n=t.payload)||void 0===n?void 0:n.payload)&&void 0!==s?s:{},l=(new TextEncoder).encode(JSON.stringify(o)).buffer;return this._encodeUserBroadcastPush(t,this.JSON_ENCODING,l)}_encodeUserBroadcastPush(t,n,s){var o,l;const c=new TextEncoder,h=c.encode(t.topic),u=c.encode(null!==(o=t.ref)&&void 0!==o?o:''),f=c.encode(null!==(l=t.join_ref)&&void 0!==l?l:''),y=c.encode(t.payload.event),_=this.allowedMetadataKeys?this._pick(t.payload,this.allowedMetadataKeys):{},E=c.encode(0===Object.keys(_).length?'':JSON.stringify(_));if(f.length>255)throw new Error(`joinRef length ${f.length} exceeds maximum of 255`);if(u.length>255)throw new Error(`ref length ${u.length} exceeds maximum of 255`);if(h.length>255)throw new Error(`topic length ${h.length} exceeds maximum of 255`);if(y.length>255)throw new Error(`userEvent length ${y.length} exceeds maximum of 255`);if(E.length>255)throw new Error(`metadata length ${E.length} exceeds maximum of 255`);const B=this.USER_BROADCAST_PUSH_META_LENGTH+f.length+u.length+h.length+y.length+E.length,N=new ArrayBuffer(this.HEADER_LENGTH+B),A=new DataView(N),U=new Uint8Array(N);let p=0;A.setUint8(p++,this.KINDS.userBroadcastPush),A.setUint8(p++,f.length),A.setUint8(p++,u.length),A.setUint8(p++,h.length),A.setUint8(p++,y.length),A.setUint8(p++,E.length),A.setUint8(p++,n),U.set(f,p),p+=f.length,U.set(u,p),p+=u.length,U.set(h,p),p+=h.length,U.set(y,p),p+=y.length,U.set(E,p),p+=E.length;var v=new Uint8Array(N.byteLength+s.byteLength);return v.set(new Uint8Array(N),0),v.set(new Uint8Array(s),N.byteLength),v.buffer}decode(t,n){if(this._isArrayBuffer(t)){return n(this._binaryDecode(t))}if('string'==typeof t){const s=JSON.parse(t),[o,l,c,h,u]=s;return n({join_ref:o,ref:l,topic:c,event:h,payload:u})}return n({})}_binaryDecode(t){const n=new DataView(t),s=n.getUint8(0),o=new TextDecoder;if(s===this.KINDS.userBroadcast)return this._decodeUserBroadcast(t,n,o)}_decodeUserBroadcast(t,n,s){const o=n.getUint8(1),l=n.getUint8(2),c=n.getUint8(3),h=n.getUint8(4);let u=this.HEADER_LENGTH+4;const f=s.decode(t.slice(u,u+o));u+=o;const y=s.decode(t.slice(u,u+l));u+=l;const _=s.decode(t.slice(u,u+c));u+=c;const E=t.slice(u,t.byteLength),B=h===this.JSON_ENCODING?JSON.parse(s.decode(E)):E,N={type:this.BROADCAST_EVENT,event:y,payload:B};return c>0&&(N.meta=JSON.parse(_)),{join_ref:null,ref:null,topic:f,event:this.BROADCAST_EVENT,payload:N}}_isArrayBuffer(t){var n;return t instanceof ArrayBuffer||'ArrayBuffer'===(null===(n=null==t?void 0:t.constructor)||void 0===n?void 0:n.name)}_pick(t,n){return t&&'object'==typeof t?Object.fromEntries(Object.entries(t).filter(([t])=>n.includes(t))):{}}}},796,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var t;Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"PostgresTypes",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"convertChangeData",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"convertColumn",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"convertCell",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"toBoolean",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"toNumber",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"toJson",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"toArray",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"toTimestampString",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"httpEndpointURL",{enumerable:!0,get:function(){return y}}),(function(t){t.abstime="abstime",t.bool="bool",t.date="date",t.daterange="daterange",t.float4="float4",t.float8="float8",t.int2="int2",t.int4="int4",t.int4range="int4range",t.int8="int8",t.int8range="int8range",t.json="json",t.jsonb="jsonb",t.money="money",t.numeric="numeric",t.oid="oid",t.reltime="reltime",t.text="text",t.time="time",t.timestamp="timestamp",t.timestamptz="timestamptz",t.timetz="timetz",t.tsrange="tsrange",t.tstzrange="tstzrange"})(t||(t={}));const n=(t,n,o={})=>{var s;const u=null!==(s=o.skipTypes)&&void 0!==s?s:[];return n?Object.keys(n).reduce((o,s)=>(o[s]=c(s,t,n,u),o),{}):{}},c=(t,n,c,u)=>{const p=n.find(n=>n.name===t),l=null==p?void 0:p.type,f=c[t];return l&&!u.includes(l)?o(l,f):s(f)},o=(n,c)=>{if('_'===n.charAt(0)){const t=n.slice(1,n.length);return f(c,t)}switch(n){case t.bool:return u(c);case t.float4:case t.float8:case t.int2:case t.int4:case t.int8:case t.numeric:case t.oid:return p(c);case t.json:case t.jsonb:return l(c);case t.timestamp:return b(c);case t.abstime:case t.date:case t.daterange:case t.int4range:case t.int8range:case t.money:case t.reltime:case t.text:case t.time:case t.timestamptz:case t.timetz:case t.tsrange:case t.tstzrange:default:return s(c)}},s=t=>t,u=t=>{switch(t){case't':return!0;case'f':return!1;default:return t}},p=t=>{if('string'==typeof t){const n=parseFloat(t);if(!Number.isNaN(n))return n}return t},l=t=>{if('string'==typeof t)try{return JSON.parse(t)}catch(n){return t}return t},f=(t,n)=>{if('string'!=typeof t)return t;const c=t.length-1,s=t[c];if('{'===t[0]&&'}'===s){let s;const u=t.slice(1,c);try{s=JSON.parse('['+u+']')}catch(t){s=u?u.split(','):[]}return s.map(t=>o(n,t))}return t},b=t=>'string'==typeof t?t.replace(' ','T'):t,y=t=>{const n=new URL(t);return n.protocol=n.protocol.replace(/^ws/i,'http'),n.pathname=n.pathname.replace(/\/+$/,'').replace(/\/socket\/websocket$/i,'').replace(/\/socket$/i,'').replace(/\/websocket$/i,''),''===n.pathname||'/'===n.pathname?n.pathname='/api/broadcast':n.pathname=n.pathname+'/api/broadcast',n.href}},797,[]); +__d(function(g,_r,_i,_a2,m,_e2,_d2){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e2,'__esModule',{value:!0}),Object.defineProperty(_e2,"RealtimePostgresFilterBuilder",{enumerable:!0,get:function(){return u.RealtimePostgresFilterBuilder}}),Object.defineProperty(_e2,"postgresChangesFilter",{enumerable:!0,get:function(){return u.postgresChangesFilter}}),Object.defineProperty(_e2,"default",{enumerable:!0,get:function(){return h}}),Object.defineProperty(_e2,"REALTIME_POSTGRES_CHANGES_LISTEN_EVENT",{enumerable:!0,get:function(){return t}}),Object.defineProperty(_e2,"REALTIME_LISTEN_TYPES",{enumerable:!0,get:function(){return i}}),Object.defineProperty(_e2,"REALTIME_SUBSCRIBE_STATES",{enumerable:!0,get:function(){return n}}),Object.defineProperty(_e2,"REALTIME_CHANNEL_STATES",{enumerable:!0,get:function(){return d}});var t,i,n,s=_r(_d2[0]),r=e(_r(_d2[1])),o=_r(_d2[2]),a=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(i){var n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,n.get?n:{enumerable:!0,get:function(){return e[i]}})}),t.default=e,t})(o),c=_r(_d2[3]),l=e(_r(_d2[4])),u=_r(_d2[5]);!(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(t||(t={})),(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(i||(i={})),(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(n||(n={}));const d=s.CHANNEL_STATES;class h{get state(){return this.channelAdapter.state}set state(e){this.channelAdapter.state=e}get joinedOnce(){return this.channelAdapter.joinedOnce}get timeout(){return this.socket.timeout}get joinPush(){return this.channelAdapter.joinPush}get rejoinTimer(){return this.channelAdapter.rejoinTimer}constructor(e,t={config:{}},i){var n,s;if(this.topic=e,this.params=t,this.socket=i,this.bindings={},this.subTopic=e.replace(/^realtime:/i,''),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:'',enabled:!1},private:!1},t.config),this.channelAdapter=new l.default(this.socket.socketAdapter,e,this.params),this.presence=new r.default(this),this._onClose(()=>{this.socket._remove(this)}),this._updateFilterTransform(),this.broadcastEndpointURL=(0,o.httpEndpointURL)(this.socket.socketAdapter.endPointURL()),this.private=this.params.config.private||!1,!this.private&&(null===(s=null===(n=this.params.config)||void 0===n?void 0:n.broadcast)||void 0===s?void 0:s.replay))throw new Error(`tried to use replay on public channel '${this.topic}'. It must be a private channel.`)}subscribe(e,t=this.timeout){var r,o,a;if(this.socket.isConnected()||this.socket.connect(),this.channelAdapter.isClosed()){const{config:{broadcast:l,presence:u,private:d}}=this.params,h=null!==(o=null===(r=this.bindings.postgres_changes)||void 0===r?void 0:r.map(e=>e.filter))&&void 0!==o?o:[],p=!!this.bindings[i.PRESENCE]&&this.bindings[i.PRESENCE].length>0||!0===(null===(a=this.params.config.presence)||void 0===a?void 0:a.enabled),v={},E={broadcast:l,presence:Object.assign(Object.assign({},u),{enabled:p}),postgres_changes:h,private:d};this.socket.accessTokenValue&&(v.access_token=this.socket.accessTokenValue),this._onError(t=>{null==e||e(n.CHANNEL_ERROR,(0,c.normalizeChannelError)(t))}),this._onClose(()=>null==e?void 0:e(n.CLOSED)),this.updateJoinPayload(Object.assign({config:E},v)),this._updateFilterMessage(),this.channelAdapter.subscribe(t).receive('ok',async({postgres_changes:t})=>{this.socket._isManualToken()||this.socket.setAuth(),void 0!==t?this._updatePostgresBindings(t,e):null==e||e(n.SUBSCRIBED)}).receive('error',t=>{this.state=s.CHANNEL_STATES.errored;const i=Object.values(t).join(', ')||'error';null==e||e(n.CHANNEL_ERROR,new Error(i,{cause:t}))}).receive('timeout',()=>{null==e||e(n.TIMED_OUT)})}return this}_updatePostgresBindings(e,t){var i;const r=this.bindings.postgres_changes,o=null!==(i=null==r?void 0:r.length)&&void 0!==i?i:0,a=[];for(let i=0;i{var n,s,r;const o=this.channelAdapter.push(e.type,e,t.timeout||this.timeout);'broadcast'!==e.type||(null===(r=null===(s=null===(n=this.params)||void 0===n?void 0:n.config)||void 0===s?void 0:s.broadcast)||void 0===r?void 0:r.ack)||i('ok'),o.receive('ok',()=>i('ok')),o.receive('error',()=>i('error')),o.receive('timeout',()=>i('timed out'))});{const s="Realtime send() is automatically falling back to REST API. This behavior will be deprecated in the future. Please use httpSend() explicitly for REST delivery.";this.socket.hasLogger()?this.socket.log('channel',s):console.warn(s);const{event:r,payload:o}=e,a={apikey:this.socket.apiKey?this.socket.apiKey:'','Content-Type':'application/json'};this.socket.accessTokenValue&&(a.Authorization=`Bearer ${this.socket.accessTokenValue}`);const c={method:'POST',headers:a,body:JSON.stringify({messages:[{topic:this.subTopic,event:r,payload:o,private:this.private}]})};try{const e=await this._fetchWithTimeout(this.broadcastEndpointURL,c,null!==(i=t.timeout)&&void 0!==i?i:this.timeout);return await(null===(n=e.body)||void 0===n?void 0:n.cancel()),e.ok?'ok':'error'}catch(e){return e instanceof Error&&'AbortError'===e.name?'timed out':'error'}}}updateJoinPayload(e){this.channelAdapter.updateJoinPayload(e)}async unsubscribe(e=this.timeout){return new Promise(t=>{this.channelAdapter.unsubscribe(e).receive('ok',()=>t('ok')).receive('timeout',()=>t('timed out')).receive('error',()=>t('error'))})}teardown(){this.channelAdapter.teardown()}async _fetchWithTimeout(e,t,i){const n=new AbortController,s=setTimeout(()=>n.abort(),i),r=await this.socket.fetch(e,Object.assign(Object.assign({},t),{signal:n.signal}));return clearTimeout(s),r}_on(e,t,n){var s;const r=e.toLocaleLowerCase(),o=null==t?void 0:t.filter;if((o instanceof u.RealtimePostgresFilterBuilder||'object'==typeof o&&null!==o&&'function'==typeof o.build)&&(t=Object.assign(Object.assign({},t),{filter:o.build()})),r===i.POSTGRES_CHANGES){if(null===(s=this.bindings[r])||void 0===s?void 0:s.find(e=>h.isSamePostgresFilter(e.filter,t)))return this.socket.log('error',`duplicate \`postgres_changes\` binding for ${this.topic} ignored`,t),this}const a=this.channelAdapter.on(e,n),c={type:r,filter:t,callback:n,ref:a};return this.bindings[r]?this.bindings[r].push(c):this.bindings[r]=[c],this._updateFilterMessage(),this}_onClose(e){this.channelAdapter.onClose(e)}_onError(e){this.channelAdapter.onError(e)}_updateFilterMessage(){this.channelAdapter.updateFilterBindings((e,t,i)=>{var n,s,r,o,a,c,l;const u=e.event.toLocaleLowerCase();if(this._notThisChannelEvent(u,i))return!1;const d=null===(n=this.bindings[u])||void 0===n?void 0:n.find(t=>t.ref===e.ref);if(!d)return!0;if(['broadcast','presence','postgres_changes'].includes(u)){if('id'in d){const e=d.id,i=null===(s=d.filter)||void 0===s?void 0:s.event;return e&&(null===(r=t.ids)||void 0===r?void 0:r.includes(e))&&('*'===i||(null==i?void 0:i.toLocaleLowerCase())===(null===(o=t.data)||void 0===o?void 0:o.type.toLocaleLowerCase()))}{const e=null===(c=null===(a=null==d?void 0:d.filter)||void 0===a?void 0:a.event)||void 0===c?void 0:c.toLocaleLowerCase();return'*'===e||e===(null===(l=null==t?void 0:t.event)||void 0===l?void 0:l.toLocaleLowerCase())}}return d.type.toLocaleLowerCase()===u})}_notThisChannelEvent(e,t){const{close:i,error:n,leave:r,join:o}=s.CHANNEL_EVENTS;return t&&[i,n,r,o].includes(e)&&t!==this.joinPush.ref}_updateFilterTransform(){this.channelAdapter.updatePayloadTransform((e,t,i)=>{if('object'==typeof t&&'ids'in t){const e=t.data,{schema:i,table:n,commit_timestamp:s,type:r,errors:o}=e,a={schema:i,table:n,commit_timestamp:s,eventType:r,new:{},old:{},errors:o};return Object.assign(Object.assign({},a),this._getPayloadRecords(e))}return t})}copyBindings(e){if(this.joinedOnce)throw new Error('cannot copy bindings into joined channel');for(const t in e.bindings)for(const i of e.bindings[t])this._on(i.type,i.filter,i.callback)}static isFilterValueEqual(e,t){return(null!=e?e:void 0)===(null!=t?t:void 0)}static isSamePostgresFilter(e,t){var i,n,s,r;const o=null!==(n=null===(i=null==e?void 0:e.select)||void 0===i?void 0:i.join())&&void 0!==n?n:void 0,a=null!==(r=null===(s=null==t?void 0:t.select)||void 0===s?void 0:s.join())&&void 0!==r?r:void 0;return(null==e?void 0:e.event)===(null==t?void 0:t.event)&&h.isFilterValueEqual(null==e?void 0:e.schema,null==t?void 0:t.schema)&&h.isFilterValueEqual(null==e?void 0:e.table,null==t?void 0:t.table)&&h.isFilterValueEqual(null==e?void 0:e.filter,null==t?void 0:t.filter)&&o===a}_getPayloadRecords(e){const t={new:{},old:{}};return'INSERT'!==e.type&&'UPDATE'!==e.type||(t.new=a.convertChangeData(e.columns,e.record)),'UPDATE'!==e.type&&'DELETE'!==e.type||(t.old=a.convertChangeData(e.columns,e.old_record)),t}}},798,[794,799,797,802,803,804]); +__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,"REALTIME_PRESENCE_LISTEN_EVENTS",{enumerable:!0,get:function(){return t}});var e,t,n=r(d[0]),c=(e=n)&&e.__esModule?e:{default:e};!(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(t||(t={}));class u{get state(){return this.presenceAdapter.state}constructor(e,t){this.channel=e,this.presenceAdapter=new c.default(this.channel.channelAdapter,t)}}},799,[800]); +__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 n=r(d[0]);class t{constructor(s,c){const u=o(c);this.presence=new n.Presence(s.getChannel(),u),this.presence.onJoin((n,c,o)=>{const u=t.onJoinPayload(n,c,o);s.getChannel().trigger('presence',u)}),this.presence.onLeave((n,c,o)=>{const u=t.onLeavePayload(n,c,o);s.getChannel().trigger('presence',u)}),this.presence.onSync(()=>{s.getChannel().trigger('presence',{event:'sync'})})}get state(){return t.transformState(this.presence.state)}static transformState(n){return n=c(n),Object.getOwnPropertyNames(n).reduce((t,c)=>{const o=n[c];return t[c]=s(o),t},{})}static onJoinPayload(n,t,c){return{event:'join',key:n,currentPresences:u(t),newPresences:s(c)}}static onLeavePayload(n,t,c){return{event:'leave',key:n,currentPresences:u(t),leftPresences:s(c)}}}function s(n){return n.metas.map(n=>{const t=Object.getOwnPropertyDescriptors(n),s=Object.defineProperties({},t);return s.presence_ref=s.phx_ref,delete s.phx_ref,delete s.phx_ref_prev,s})}function c(n){return JSON.parse(JSON.stringify(n))}function o(n){return(null==n?void 0:n.events)&&{events:n.events}}function u(n){return(null==n?void 0:n.metas)?s(n):[]}},800,[801]); +__d(function(g,r,_i,a,_m,_e2,d){"use strict";Object.defineProperty(_e2,'__esModule',{value:!0}),Object.defineProperty(_e2,"Channel",{enumerable:!0,get:function(){return L}}),Object.defineProperty(_e2,"LongPoll",{enumerable:!0,get:function(){return H}}),Object.defineProperty(_e2,"Presence",{enumerable:!0,get:function(){return A}}),Object.defineProperty(_e2,"Push",{enumerable:!0,get:function(){return E}}),Object.defineProperty(_e2,"Serializer",{enumerable:!0,get:function(){return B}}),Object.defineProperty(_e2,"Socket",{enumerable:!0,get:function(){return $}}),Object.defineProperty(_e2,"Timer",{enumerable:!0,get:function(){return w}});var e=e=>{if("function"==typeof e)return e;return function(){return e}},t="undefined"!=typeof self?self:null,s="undefined"!=typeof window?window:null,i=t||s||globalThis,n=0,o=1,h=2,c=3,l="closed",u="errored",f="joined",p="joining",b="leaving",m="phx_close",k="phx_error",y="phx_join",T="phx_reply",v="phx_leave",C="longpoll",j="websocket",R=4,S="base64url.bearer.phx.",E=class{constructor(e,t,s,i){this.channel=e,this.event=t,this.payload=s||function(){return{}},this.receivedResp=null,this.timeout=i,this.timeoutTimer=null,this.recHooks=[],this.sent=!1,this.ref=void 0}resend(e){this.timeout=e,this.reset(),this.send()}send(){this.hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload(),ref:this.ref,join_ref:this.channel.joinRef()}))}receive(e,t){return this.hasReceived(e)&&t(this.receivedResp.response),this.recHooks.push({status:e,callback:t}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}destroy(){this.cancelRefEvent(),this.cancelTimeout()}matchReceive({status:e,response:t,_ref:s}){this.recHooks.filter(t=>t.status===e).forEach(e=>e.callback(t))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,e=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=e,this.matchReceive(e)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}trigger(e,t){this.channel.trigger(this.refEvent,{status:e,response:t})}},w=class{constructor(e,t){this.callback=e,this.timerCalc=t,this.timer=void 0,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}},L=class{constructor(t,s,i){this.state=l,this.topic=t,this.params=e(s||{}),this.socket=i,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new E(this,y,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new w(()=>{this.socket.isConnected()&&this.rejoin()},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()})),this.joinPush.receive("ok",()=>{this.state=f,this.rejoinTimer.reset(),this.pushBuffer.forEach(e=>e.send()),this.pushBuffer=[]}),this.joinPush.receive("error",e=>{this.state=u,this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,e),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic}`),this.state=l,this.socket.remove(this)}),this.onError(e=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,e),this.isJoining()&&this.joinPush.reset(),this.state=u,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.joinPush.receive("timeout",()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),new E(this,v,e({}),this.timeout).send(),this.state=u,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(T,(e,t)=>{this.trigger(this.replyEventName(t),e)})}join(e=this.timeout){if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=e,this.joinedOnce=!0,this.rejoin(),this.joinPush}teardown(){this.pushBuffer.forEach(e=>e.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=l,this.bindings=[]}onClose(e){this.on(m,e)}onError(e){return this.on(k,t=>e(t))}on(e,t){let s=this.bindingRef++;return this.bindings.push({event:e,ref:s,callback:t}),s}off(e,t){this.bindings=this.bindings.filter(s=>!(s.event===e&&(void 0===t||t===s.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(e,t,s=this.timeout){if(t=t||{},!this.joinedOnce)throw new Error(`tried to push '${e}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let i=new E(this,e,function(){return t},s);return this.canPush()?i.send():(i.startTimeout(),this.pushBuffer.push(i)),i}leave(t=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=b;let s=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(m,"leave")},i=new E(this,v,e({}),t);return i.receive("ok",()=>s()).receive("timeout",()=>s()),i.send(),this.canPush()||i.trigger("ok",{}),i}onMessage(e,t,s){return t}filterBindings(e,t,s){return!0}isMember(e,t,s,i){return this.topic===e&&(!i||i===this.joinRef()||(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:e,event:t,payload:s,joinRef:i}),!1))}joinRef(){return this.joinPush.ref}rejoin(e=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=p,this.joinPush.resend(e))}trigger(e,t,s,i){let n=this.onMessage(e,t,s,i);if(t&&!n)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let o=this.bindings.filter(i=>i.event===e&&this.filterBindings(i,t,s));for(let e=0;eu.abort(),o);l.signal=u.signal}return i.fetch(t,l).then(e=>e.text()).then(e=>this.parseJSON(e)).then(e=>c&&c(e)).catch(e=>{"AbortError"===e.name&&h?h():c&&c(null)}),u}static xdomainRequest(e,t,s,i,n,o,h){return e.timeout=n,e.open(t,s),e.onload=()=>{let t=this.parseJSON(e.responseText);h&&h(t)},o&&(e.ontimeout=o),e.onprogress=()=>{},e.send(i),e}static xhrRequest(e,t,s,i,n,o,h,c){e.open(t,s,!0),e.timeout=o;for(let[t,s]of Object.entries(i))e.setRequestHeader(t,s);return e.onerror=()=>c&&c(null),e.onreadystatechange=()=>{if(e.readyState===R&&c){let t=this.parseJSON(e.responseText);c(t)}},h&&(e.ontimeout=h),e.send(n),e}static parseJSON(e){if(!e||""===e)return null;try{return JSON.parse(e)}catch{return console&&console.log("failed to parse JSON response",e),null}}static serialize(e,t){let s=[];for(var i in e){if(!Object.prototype.hasOwnProperty.call(e,i))continue;let n=t?`${t}[${i}]`:i,o=e[i];"object"==typeof o?s.push(this.serialize(o,n)):s.push(encodeURIComponent(n)+"="+encodeURIComponent(o))}return s.join("&")}static appendParams(e,t){if(0===Object.keys(t).length)return e;let s=e.match(/\?/)?"&":"?";return`${e}${s}${this.serialize(t)}`}},O=e=>{let t="",s=new Uint8Array(e),i=s.byteLength;for(let e=0;ethis.poll(),0)}normalizeEndpoint(e){return e.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+j),"$1/"+C)}endpointURL(){return P.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(e,t,s){this.close(e,t,s),this.readyState=n}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===o||this.readyState===n}poll(){const e={Accept:"application/json"};this.authToken&&(e["X-Phoenix-AuthToken"]=this.authToken),this.ajax("GET",e,null,()=>this.ontimeout(),e=>{if(e){var{status:t,token:s,messages:i}=e;if(410===t&&null!==this.token)return this.onerror(410),void this.closeAndRetry(3410,"session_gone",!1);this.token=s}else t=0;switch(t){case 200:i.forEach(e=>{setTimeout(()=>this.onmessage({data:e}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=o,this.onopen({}),this.poll();break;case 403:this.onerror(403),this.close(1008,"forbidden",!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw new Error(`unhandled poll status ${t}`)}})}send(e){"string"!=typeof e&&(e=O(e)),this.currentBatch?this.currentBatch.push(e):this.awaitingBatchAck?this.batchBuffer.push(e):(this.currentBatch=[e],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(e,t=0){this.awaitingBatchAck=!0;const s=t+100,i=e.slice(t,s);this.ajax("POST",{"Content-Type":"application/x-ndjson"},i.join("\n"),()=>this.onerror("timeout"),t=>{t&&200===t.status?s0?(this.batchSend(this.batchBuffer),this.batchBuffer=[]):this.awaitingBatchAck=!1:(this.awaitingBatchAck=!1,this.onerror(t&&t.status),this.closeAndRetry(1011,"internal server error",!1))})}close(e,t,s){for(let e of this.reqs)e.abort();this.readyState=c;let i=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:e,reason:t,wasClean:s});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,"undefined"!=typeof CloseEvent?this.onclose(new CloseEvent("close",i)):this.onclose(i)}ajax(e,t,s,i,n){let o;o=P.request(e,this.endpointURL(),t,s,this.timeout,()=>{this.reqs.delete(o),i()},e=>{this.reqs.delete(o),this.isActive()&&n(e)}),this.reqs.add(o)}},A=class e{constructor(t,s={}){let i=s.events||{state:"presence_state",diff:"presence_diff"};this.state=Object.create(null),this.pendingDiffs=[],this.channel=t,this.joinRef=null,this.caller={onJoin:function(){},onLeave:function(){},onSync:function(){}},this.channel.on(i.state,t=>{let{onJoin:s,onLeave:i,onSync:n}=this.caller;this.joinRef=this.channel.joinRef(),this.state=e.syncState(this.state,t,s,i),this.pendingDiffs.forEach(t=>{this.state=e.syncDiff(this.state,t,s,i)}),this.pendingDiffs=[],n()}),this.channel.on(i.diff,t=>{let{onJoin:s,onLeave:i,onSync:n}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(t):(this.state=e.syncDiff(this.state,t,s,i),n())})}onJoin(e){this.caller.onJoin=e}onLeave(e){this.caller.onLeave=e}onSync(e){this.caller.onSync=e}list(t){return e.list(this.state,t)}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel.joinRef()}static syncState(e,t,s,i){let n=this.toNullProtoObj(this.clone(e));t=this.toNullProtoObj(t);let o=Object.create(null),h=Object.create(null);return this.map(n,(e,s)=>{t[e]||(h[e]=s)}),this.map(t,(e,t)=>{let s=n[e];if(s){let i=t.metas.map(e=>e.phx_ref),n=s.metas.map(e=>e.phx_ref),c=t.metas.filter(e=>n.indexOf(e.phx_ref)<0),l=s.metas.filter(e=>i.indexOf(e.phx_ref)<0);c.length>0&&(o[e]=t,o[e].metas=c),l.length>0&&(h[e]=this.clone(s),h[e].metas=l)}else o[e]=t}),this.syncDiff(n,{joins:o,leaves:h},s,i)}static syncDiff(e,t,s,i){e=this.toNullProtoObj(e);let{joins:n,leaves:o}=this.clone(t);return s||(s=function(){}),i||(i=function(){}),this.map(n,(t,i)=>{let n=e[t];if(e[t]=this.clone(i),n){let s=e[t].metas.map(e=>e.phx_ref),i=n.metas.filter(e=>s.indexOf(e.phx_ref)<0);e[t].metas.unshift(...i)}s(t,n,i)}),this.map(o,(t,s)=>{let n=e[t];if(!n)return;let o=s.metas.map(e=>e.phx_ref);n.metas=n.metas.filter(e=>o.indexOf(e.phx_ref)<0),i(t,n,s),0===n.metas.length&&delete e[t]}),e}static list(e,t){return t||(t=function(e,t){return t}),this.map(e,(e,s)=>t(e,s))}static map(e,t){return Object.getOwnPropertyNames(e).map(s=>t(s,e[s]))}static toNullProtoObj(e){if(null===Object.getPrototypeOf(e))return e;let t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(s=>{t[s]=e[s]}),t}static clone(e){return JSON.parse(JSON.stringify(e))}},B={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(e,t){if(e.payload.constructor===ArrayBuffer)return t(this.binaryEncode(e));{let s=[e.join_ref,e.ref,e.topic,e.event,e.payload];return t(JSON.stringify(s))}},decode(e,t){if(e.constructor===ArrayBuffer)return t(this.binaryDecode(e));{let[s,i,n,o,h]=JSON.parse(e);return t({join_ref:s,ref:i,topic:n,event:o,payload:h})}},binaryEncode(e){let{join_ref:t,ref:s,event:i,topic:n,payload:o}=e,h=new TextEncoder,c=h.encode(t),l=h.encode(s),u=h.encode(n),f=h.encode(i);this.assertFieldSize(c.byteLength,"join_ref"),this.assertFieldSize(l.byteLength,"ref"),this.assertFieldSize(u.byteLength,"topic"),this.assertFieldSize(f.byteLength,"event");let p=this.META_LENGTH+c.byteLength+l.byteLength+u.byteLength+f.byteLength,b=new ArrayBuffer(this.HEADER_LENGTH+p),m=new Uint8Array(b),k=new DataView(b),y=0;k.setUint8(y++,this.KINDS.push),k.setUint8(y++,c.byteLength),k.setUint8(y++,l.byteLength),k.setUint8(y++,u.byteLength),k.setUint8(y++,f.byteLength),m.set(c,y),y+=c.byteLength,m.set(l,y),y+=l.byteLength,m.set(u,y),y+=u.byteLength,m.set(f,y),y+=f.byteLength;var T=new Uint8Array(b.byteLength+o.byteLength);return T.set(m,0),T.set(new Uint8Array(o),b.byteLength),T.buffer},assertFieldSize(e,t){if(e>255)throw new Error(`unable to convert ${t} to binary: must be less than or equal to 255 bytes, but is ${e} bytes`)},binaryDecode(e){let t=new DataView(e),s=t.getUint8(0),i=new TextDecoder;switch(s){case this.KINDS.push:return this.decodePush(e,t,i);case this.KINDS.reply:return this.decodeReply(e,t,i);case this.KINDS.broadcast:return this.decodeBroadcast(e,t,i)}},decodePush(e,t,s){let i=t.getUint8(1),n=t.getUint8(2),o=t.getUint8(3),h=this.HEADER_LENGTH+this.META_LENGTH-1,c=s.decode(e.slice(h,h+i));h+=i;let l=s.decode(e.slice(h,h+n));h+=n;let u=s.decode(e.slice(h,h+o));return h+=o,{join_ref:c,ref:null,topic:l,event:u,payload:e.slice(h,e.byteLength)}},decodeReply(e,t,s){let i=t.getUint8(1),n=t.getUint8(2),o=t.getUint8(3),h=t.getUint8(4),c=this.HEADER_LENGTH+this.META_LENGTH,l=s.decode(e.slice(c,c+i));c+=i;let u=s.decode(e.slice(c,c+n));c+=n;let f=s.decode(e.slice(c,c+o));c+=o;let p=s.decode(e.slice(c,c+h));c+=h;let b=e.slice(c,e.byteLength);return{join_ref:l,ref:u,topic:f,event:T,payload:{status:p,response:b}}},decodeBroadcast(e,t,s){let i=t.getUint8(1),n=t.getUint8(2),o=this.HEADER_LENGTH+2,h=s.decode(e.slice(o,o+i));o+=i;let c=s.decode(e.slice(o,o+n));return o+=n,{join_ref:null,ref:null,topic:h,event:c,payload:e.slice(o,e.byteLength)}}},$=class{constructor(t,n={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.fallbackRef=null,this.timeout=n.timeout||1e4,this.transport=n.transport||i.WebSocket||H,this.conn=void 0,this.primaryPassedHealthCheck=!1,this.longPollFallbackMs=n.longPollFallbackMs,this.fallbackTimer=null;let o=null;try{o=i&&i.sessionStorage}catch{}this.sessionStore=n.sessionStorage||o,this.establishedConnections=0,this.defaultEncoder=B.encode.bind(B),this.defaultDecoder=B.decode.bind(B),this.closeWasClean=!0,this.disconnecting=!1,this.binaryType=n.binaryType||"arraybuffer",this.connectClock=1,this.pageHidden=!1,this.encode=void 0,this.decode=void 0,this.transport!==H?(this.encode=n.encode||this.defaultEncoder,this.decode=n.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let h=null;s&&s.addEventListener&&(s.addEventListener("pagehide",e=>{this.conn&&(this.disconnect(),h=this.connectClock)}),s.addEventListener("pageshow",e=>{h===this.connectClock&&(h=null,this.connect())}),s.addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState?this.pageHidden=!0:(this.pageHidden=!1,this.isConnected()||this.closeWasClean||this.teardown(()=>this.connect()))})),this.heartbeatIntervalMs=n.heartbeatIntervalMs||3e4,this.autoSendHeartbeat=n.autoSendHeartbeat??!0,this.heartbeatCallback=n.heartbeatCallback??(()=>{}),this.rejoinAfterMs=e=>n.rejoinAfterMs?n.rejoinAfterMs(e):[1e3,2e3,5e3][e-1]||1e4,this.reconnectAfterMs=e=>n.reconnectAfterMs?n.reconnectAfterMs(e):[10,50,100,150,200,250,500,1e3,2e3][e-1]||5e3,this.logger=n.logger||null,!this.logger&&n.debug&&(this.logger=(e,t,s)=>{console.log(`${e}: ${t}`,s)}),this.longpollerTimeout=n.longpollerTimeout||2e4,this.params=e(n.params||{}),this.endPoint=`${t}/${j}`,this.vsn=n.vsn||"2.0.0",this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.heartbeatSentAt=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new w(()=>{if(this.pageHidden)return this.log("Not reconnecting as page is hidden!"),void this.teardown();this.teardown(async()=>{n.beforeReconnect&&await n.beforeReconnect(),this.connect()})},this.reconnectAfterMs),this.authToken=n.authToken&&e(n.authToken)}getLongPollTransport(){return H}replaceTransport(e){this.connectClock++,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.conn&&(this.conn.close(),this.conn=null),this.transport=e}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let e=P.appendParams(P.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return"/"!==e.charAt(0)?e:"/"===e.charAt(1)?`${this.protocol()}:${e}`:`${this.protocol()}://${location.host}${e}`}disconnect(e,t,s){this.connectClock++,this.disconnecting=!0,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.teardown(()=>{this.disconnecting=!1,e&&e()},t,s)}connect(t){t&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=e(t)),this.conn&&!this.disconnecting||(this.longPollFallbackMs&&this.transport!==H?this.connectWithFallback(H,this.longPollFallbackMs):this.transportConnect())}log(e,t,s){this.logger&&this.logger(e,t,s)}hasLogger(){return null!==this.logger}onOpen(e){let t=this.makeRef();return this.stateChangeCallbacks.open.push([t,e]),t}onClose(e){let t=this.makeRef();return this.stateChangeCallbacks.close.push([t,e]),t}onError(e){let t=this.makeRef();return this.stateChangeCallbacks.error.push([t,e]),t}onMessage(e){let t=this.makeRef();return this.stateChangeCallbacks.message.push([t,e]),t}onHeartbeat(e){this.heartbeatCallback=e}ping(e){if(!this.isConnected())return!1;let t=this.makeRef(),s=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:t});let i=this.onMessage(n=>{n.ref===t&&(this.off([i]),e(Date.now()-s))});return!0}transportName(e){return e===H?"LongPoll":e.name}transportConnect(){let e;this.connectClock++,this.closeWasClean=!1,this.authToken&&(e=["phoenix",`${S}${btoa(this.authToken()).replace(/=/g,"")}`]),this.conn=new this.transport(this.endPointURL(),e),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=e=>this.onConnError(e),this.conn.onmessage=e=>this.onConnMessage(e),this.conn.onclose=e=>this.onConnClose(e)}getSession(e){return this.sessionStore&&this.sessionStore.getItem(e)}storeSession(e,t){this.sessionStore&&this.sessionStore.setItem(e,t)}connectWithFallback(e,t=2500){clearTimeout(this.fallbackTimer);let s,i=!1,n=!0,o=this.transportName(e),h=t=>{this.log("transport",`falling back to ${o}...`,t),this.off([void 0,s]),n=!1,this.replaceTransport(e),this.transportConnect()};if(this.getSession(`phx:fallback:${o}`))return h("memorized");this.fallbackTimer=setTimeout(h,t),s=this.onError(e=>{this.log("transport","error",e),n&&!i&&(clearTimeout(this.fallbackTimer),h(e))}),this.fallbackRef&&this.off([this.fallbackRef]),this.fallbackRef=this.onOpen(()=>{if(i=!0,!n){let t=this.transportName(e);return this.primaryPassedHealthCheck||this.storeSession(`phx:fallback:${t}`,"true"),this.log("transport",`established ${t} fallback`)}clearTimeout(this.fallbackTimer),this.fallbackTimer=setTimeout(h,t),this.ping(e=>{this.log("transport","connected to primary after",e),this.primaryPassedHealthCheck=!0,clearTimeout(this.fallbackTimer)})}),this.transportConnect()}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.disconnecting=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.autoSendHeartbeat&&this.resetHeartbeat(),this.triggerStateCallbacks("open")}heartbeatTimeout(){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(e){this.log("error","error in heartbeat callback",e)}this.triggerChanError(new Error("heartbeat timeout")),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),1e3,"heartbeat timeout")}}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(e,t,s){if(!this.conn)return e&&e();const i=this.conn;this.waitForBufferDone(i,()=>{t?i.close(t,s||""):i.close(),this.waitForSocketClosed(i,()=>{this.conn===i&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),e&&e()})})}waitForBufferDone(e,t,s=1){5!==s&&e.bufferedAmount?setTimeout(()=>{this.waitForBufferDone(e,t,s+1)},150*s):t()}waitForSocketClosed(e,t,s=1){5!==s&&e.readyState!==c?setTimeout(()=>{this.waitForSocketClosed(e,t,s+1)},150*s):t()}onConnClose(e){this.conn&&(this.conn.onclose=()=>{}),this.hasLogger()&&this.log("transport","close",e),this.triggerChanError(e),this.clearHeartbeats(),this.closeWasClean||this.reconnectTimer.scheduleTimeout(),this.triggerStateCallbacks("close",e)}onConnError(e){this.hasLogger()&&this.log("transport","error",e);let t=this.transport,s=this.establishedConnections;this.triggerStateCallbacks("error",e,t,s),(t===this.transport||s>0)&&this.triggerChanError(e)}triggerChanError(e){this.channels.forEach(t=>{t.isErrored()||t.isLeaving()||t.isClosed()||t.trigger(k,e)})}connectionState(){switch(this.conn&&this.conn.readyState){case n:return"connecting";case o:return"open";case h:return"closing";default:return"closed"}}isConnected(){return"open"===this.connectionState()}remove(e){this.off(e.stateChangeRefs),this.channels=this.channels.filter(t=>t!==e)}off(e){for(let t in this.stateChangeCallbacks)this.stateChangeCallbacks[t]=this.stateChangeCallbacks[t].filter(([t])=>-1===e.indexOf(t))}channel(e,t={}){let s=new L(e,t,this);return this.channels.push(s),s}push(e){if(this.hasLogger()){let{topic:t,event:s,payload:i,ref:n,join_ref:o}=e;this.log("push",`${t} ${s} (${o}, ${n})`,i)}this.isConnected()?this.encode(e,e=>this.conn.send(e)):this.sendBuffer.push(()=>this.encode(e,e=>this.conn.send(e)))}makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}sendHeartbeat(){if(this.isConnected())if(this.pendingHeartbeatRef)this.heartbeatTimeout();else{this.pendingHeartbeatRef=this.makeRef(),this.heartbeatSentAt=Date.now(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(e){this.log("error","error in heartbeat callback",e)}this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs)}else try{this.heartbeatCallback("disconnected")}catch(e){this.log("error","error in heartbeat callback",e)}}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}onConnMessage(e){this.decode(e.data,e=>{let{topic:t,event:s,payload:i,ref:n,join_ref:o}=e;if(n&&n===this.pendingHeartbeatRef){const e=this.heartbeatSentAt?Date.now()-this.heartbeatSentAt:void 0;this.clearHeartbeats();try{this.heartbeatCallback("ok"===i.status?"ok":"error",e)}catch(e){this.log("error","error in heartbeat callback",e)}this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.autoSendHeartbeat&&(this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}this.hasLogger()&&this.log("receive",`${i.status||""} ${t} ${s} ${n&&"("+n+")"||""}`.trim(),i);for(let e=0;e{try{i(...t)}catch(t){this.log("error",`error in ${e} callback`,t)}})}catch(t){this.log("error",`error triggering ${e} callbacks`,t)}}leaveOpenTopic(e){let t=this.channels.find(t=>t.topic===e&&(t.isJoined()||t.isJoining()));t&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${e}"`),t.leave())}}},801,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.normalizeChannelError=function(n){if(n instanceof Error)return n;if('string'==typeof n)return new Error(n);if(n&&'object'==typeof n){const o=n;if('number'==typeof o.code){const t='string'==typeof o.reason&&o.reason?` (${o.reason})`:'';return new Error(`socket closed: ${o.code}${t}`,{cause:n})}return new Error('channel error: transport failure',{cause:n})}return new Error('channel error: connection lost')}},802,[]); +__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 n=r(d[0]);class t{constructor(n,t,s){const h=(o=s,{config:Object.assign({broadcast:{ack:!1,self:!1},presence:{key:'',enabled:!1},private:!1},o.config)});var o;this.channel=n.getSocket().channel(t,h),this.socket=n}get state(){return this.channel.state}set state(n){this.channel.state=n}get joinedOnce(){return this.channel.joinedOnce}get joinPush(){return this.channel.joinPush}get rejoinTimer(){return this.channel.rejoinTimer}on(n,t){return this.channel.on(n,t)}off(n,t){this.channel.off(n,t)}subscribe(n){return this.channel.join(n)}unsubscribe(n){return this.channel.leave(n)}teardown(){this.channel.teardown()}onClose(n){this.channel.onClose(n)}onError(n){return this.channel.onError(n)}push(t,s,h){let o;try{o=this.channel.push(t,s,h)}catch(n){throw new Error(`tried to push '${t}' to '${this.channel.topic}' before joining. Use channel.subscribe() before pushing events`)}if(this.channel.pushBuffer.length>n.MAX_PUSH_BUFFER_SIZE){const n=this.channel.pushBuffer.shift();n.cancelTimeout(),this.socket.log('channel',`discarded push due to buffer overflow: ${n.event}`,n.payload())}return o}updateJoinPayload(n){const t=this.channel.joinPush.payload();this.channel.joinPush.payload=()=>Object.assign(Object.assign({},t),n)}canPush(){return this.socket.isConnected()&&this.state===n.CHANNEL_STATES.joined}isJoined(){return this.state===n.CHANNEL_STATES.joined}isJoining(){return this.state===n.CHANNEL_STATES.joining}isClosed(){return this.state===n.CHANNEL_STATES.closed}isLeaving(){return this.state===n.CHANNEL_STATES.leaving}updateFilterBindings(n){this.channel.filterBindings=n}updatePayloadTransform(n){this.channel.onMessage=n}getChannel(){return this.channel}}},803,[794]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"RealtimePostgresFilterBuilder",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"postgresChangesFilter",{enumerable:!0,get:function(){return c}});const t=/[,()"\\]/,n=n=>t.test(n)||n!==n.trim(),s=t=>`"${t.replace(/\\/g,'\\\\').replace(/"/g,'\\"')}"`,u=t=>{const u=null===t?'null':String(t);return n(u)?s(u):u},l=t=>null===t?'null':String(t),h=(t,n)=>{if('in'===t){const t=Array.isArray(n)?n:[n];if(0===t.length)throw new Error('Realtime `in` filter requires at least one value.');return`in.(${Array.from(new Set(t)).map(t=>u(t)).join(',')})`}return'is'===t?`is.${l(n)}`:`${t}.${u(n)}`};class o{constructor(){this.filters=[]}add(t,n,s,u=!1){const l=u?'not.':'';return this.filters.push(`${t}=${l}${h(n,s)}`),this}eq(t,n){return this.add(t,'eq',n)}neq(t,n){return this.add(t,'neq',n)}gt(t,n){return this.add(t,'gt',n)}gte(t,n){return this.add(t,'gte',n)}lt(t,n){return this.add(t,'lt',n)}lte(t,n){return this.add(t,'lte',n)}in(t,n){return this.add(t,'in',n)}like(t,n){return this.add(t,'like',n)}ilike(t,n){return this.add(t,'ilike',n)}match(t,n){return this.add(t,'match',n)}imatch(t,n){return this.add(t,'imatch',n)}is(t,n){return this.add(t,'is',n)}isDistinct(t,n){return this.add(t,'isdistinct',n)}not(t,n,s){return this.add(t,n,s,!0)}build(){return this.filters.join(',')}toString(){return this.build()}}const c=()=>new o},804,[]); +__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(n,s){this.socket=new t.Socket(n,s)}get timeout(){return this.socket.timeout}get endPoint(){return this.socket.endPoint}get transport(){return this.socket.transport}get heartbeatIntervalMs(){return this.socket.heartbeatIntervalMs}get heartbeatCallback(){return this.socket.heartbeatCallback}set heartbeatCallback(t){this.socket.heartbeatCallback=t}get heartbeatTimer(){return this.socket.heartbeatTimer}get pendingHeartbeatRef(){return this.socket.pendingHeartbeatRef}get reconnectTimer(){return this.socket.reconnectTimer}get vsn(){return this.socket.vsn}get encode(){return this.socket.encode}get decode(){return this.socket.decode}get reconnectAfterMs(){return this.socket.reconnectAfterMs}get sendBuffer(){return this.socket.sendBuffer}get stateChangeCallbacks(){return this.socket.stateChangeCallbacks}connect(){this.socket.connect()}disconnect(t,n,s,o=1e4){return new Promise(c=>{setTimeout(()=>c('timeout'),o),this.socket.disconnect(()=>{t(),c('ok')},n,s)})}push(t){this.socket.push(t)}log(t,n,s){this.socket.log(t,n,s)}hasLogger(){return this.socket.hasLogger()}makeRef(){return this.socket.makeRef()}onOpen(t){this.socket.onOpen(t)}onClose(t){this.socket.onClose(t)}onError(t){this.socket.onError(t)}onMessage(t){this.socket.onMessage(t)}isConnected(){return this.socket.isConnected()}isConnecting(){return this.socket.connectionState()==n.CONNECTION_STATE.connecting}isDisconnecting(){return this.socket.connectionState()==n.CONNECTION_STATE.closing}connectionState(){return this.socket.connectionState()}endPointURL(){return this.socket.endPointURL()}sendHeartbeat(){this.socket.sendHeartbeat()}getSocket(){return this.socket}}},805,[801,794]); +__d(function(g,_r,_i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"StorageAnalyticsClient",{enumerable:!0,get:function(){return Q}}),Object.defineProperty(_e,"StorageApiError",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e,"StorageClient",{enumerable:!0,get:function(){return te}}),Object.defineProperty(_e,"StorageError",{enumerable:!0,get:function(){return i}}),Object.defineProperty(_e,"StorageUnknownError",{enumerable:!0,get:function(){return h}}),Object.defineProperty(_e,"StorageVectorsApiError",{enumerable:!0,get:function(){return y}}),Object.defineProperty(_e,"StorageVectorsClient",{enumerable:!0,get:function(){return Y}}),Object.defineProperty(_e,"StorageVectorsError",{enumerable:!0,get:function(){return p}}),Object.defineProperty(_e,"StorageVectorsErrorCode",{enumerable:!0,get:function(){return v}}),Object.defineProperty(_e,"StorageVectorsUnknownError",{enumerable:!0,get:function(){return b}}),Object.defineProperty(_e,"VectorBucketApi",{enumerable:!0,get:function(){return X}}),Object.defineProperty(_e,"VectorBucketScope",{enumerable:!0,get:function(){return Z}}),Object.defineProperty(_e,"VectorDataApi",{enumerable:!0,get:function(){return W}}),Object.defineProperty(_e,"VectorIndexApi",{enumerable:!0,get:function(){return G}}),Object.defineProperty(_e,"VectorIndexScope",{enumerable:!0,get:function(){return ee}}),Object.defineProperty(_e,"isStorageError",{enumerable:!0,get:function(){return u}}),Object.defineProperty(_e,"isStorageVectorsError",{enumerable:!0,get:function(){return f}});var e=_r(d[0]);function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,r){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,r||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}function n(e){var n=r(e,"string");return"symbol"==t(n)?n:n+""}function o(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t{if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},k=e=>{if(Array.isArray(e))return e.map(e=>k(e));if("function"==typeof e||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([e,r])=>{const n=e.replace(/([-_][a-z])/gi,e=>e.toUpperCase().replace(/[-_]/g,""));t[n]=k(r)}),t},x=e=>!(!e||"string"!=typeof e)&&(!(0===e.length||e.length>100)&&(e.trim()===e&&(!e.includes("/")&&!e.includes("\\")&&/^[\w!.\*'() &$@=;:+,?-]+$/.test(e)))),$=e=>e.split("/").map(encodeURIComponent).join("/"),j=e=>{if("object"==typeof e&&null!==e){const t=e;if("string"==typeof t.msg)return t.msg;if("string"==typeof t.message)return t.message;if("string"==typeof t.error_description)return t.error_description;if("string"==typeof t.error)return t.error;if("object"==typeof t.error&&null!==t.error){const e=t.error;if("string"==typeof e.message)return e.message}}return JSON.stringify(e)},B=async(e,t,r,n)=>{if(null!==e&&"object"==typeof e&&"json"in e&&"function"==typeof e.json){const r=e;let o=parseInt(String(r.status),10);Number.isFinite(o)||(o=500),r.json().then(e=>{const r=(null==e?void 0:e.statusCode)||(null==e?void 0:e.code)||o+"";t(new l(j(e),o,r,n,null==e?void 0:e.code))}).catch(()=>{const e=o+"";t(new l(r.statusText||`HTTP ${o} error`,o,e,n))})}else t(new h(j(e),e,n))},P=(e,t,r,n)=>{const o={method:e,headers:(null==t?void 0:t.headers)||{}};if("GET"===e||"HEAD"===e||!n)return c(c({},o),r);if(S(n)){var s;const e=(null==t?void 0:t.headers)||{};let r;for(const[t,n]of Object.entries(e))"content-type"===t.toLowerCase()&&(r=n);o.headers=w(e,"Content-Type",null!==(s=r)&&void 0!==s?s:"application/json"),o.body=JSON.stringify(n)}else o.body=n;return(null==t?void 0:t.duplex)&&(o.duplex=t.duplex),c(c({},o),r)};async function N(e,t,r,n,o,s,c){return new Promise((i,u)=>{e(r,P(t,n,o,s)).then(e=>{if(!e.ok)throw e;if(null==n?void 0:n.noResolveJson)return e;if("vectors"===c){const t=e.headers.get("content-type");if("0"===e.headers.get("content-length")||204===e.status)return{};if(!t||!t.includes("application/json"))return{}}return e.json()}).then(e=>i(e)).catch(e=>B(e,u,0,c))})}function E(e="storage"){return{get:async(t,r,n,o)=>N(t,"GET",r,n,o,void 0,e),post:async(t,r,n,o,s)=>N(t,"POST",r,o,s,n,e),put:async(t,r,n,o,s)=>N(t,"PUT",r,o,s,n,e),head:async(t,r,n,o)=>N(t,"HEAD",r,c(c({},n),{},{noResolveJson:!0}),o,void 0,e),remove:async(t,r,n,o,s)=>N(t,"DELETE",r,o,s,n,e)}}const C=E("storage"),{get:V,post:I,put:T,head:U,remove:_}=C,F=E("vectors");var R=class{constructor(e,t={},r,n="storage"){var o;this.shouldThrowOnError=!1,this.url=e,this.headers=O(t),this.fetch=(o=r)?(...e)=>o(...e):(...e)=>fetch(...e),this.namespace=n}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=w(this.headers,e,t),this}async handleOperation(e){try{return{data:await e(),error:null}}catch(e){if(this.shouldThrowOnError)throw e;if(u(e))return{data:null,error:e};throw e}}};let L;L=Symbol.toStringTag;var D=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[L]="StreamDownloadBuilder",this.promise=null}then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){try{return{data:(await this.downloadFn()).body,error:null}}catch(e){if(this.shouldThrowOnError)throw e;if(u(e))return{data:null,error:e};throw e}}};let A;A=Symbol.toStringTag;var M=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[A]="BlobDownloadBuilder",this.promise=null}asStream(){return new D(this.downloadFn,this.shouldThrowOnError)}then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){try{return{data:await(await this.downloadFn()).blob(),error:null}}catch(e){if(this.shouldThrowOnError)throw e;if(u(e))return{data:null,error:e};throw e}}};const z={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},J={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var K=class extends R{constructor(e,t={},r,n){super(e,t,n,"storage"),this.bucketId=r}async uploadOrUpdate(e,t,r,n){var o=this;return o.handleOperation(async()=>{let s;const i=c(c({},J),n);let u=c(c({},o.headers),"POST"===e&&{"x-upsert":String(i.upsert)});const l=i.metadata;if("undefined"!=typeof Blob&&r instanceof Blob?(s=new FormData,s.append("cacheControl",i.cacheControl),l&&s.append("metadata",o.encodeMetadata(l)),s.append("",r)):"undefined"!=typeof FormData&&r instanceof FormData?(s=r,s.has("cacheControl")||s.append("cacheControl",i.cacheControl),l&&!s.has("metadata")&&s.append("metadata",o.encodeMetadata(l))):(s=r,u["cache-control"]=`max-age=${i.cacheControl}`,u["content-type"]=i.contentType,l&&(u["x-metadata"]=o.toBase64(o.encodeMetadata(l))),("undefined"!=typeof ReadableStream&&s instanceof ReadableStream||s&&"object"==typeof s&&"pipe"in s&&"function"==typeof s.pipe)&&!i.duplex&&(i.duplex="half")),null==n?void 0:n.headers)for(const[e,t]of Object.entries(n.headers))u=w(u,e,t);const h=o._removeEmptyFolders(t),p=o._getFinalPath(h),f=await("PUT"==e?T:I)(o.fetch,`${o.url}/object/${p}`,s,c({headers:u},(null==i?void 0:i.duplex)?{duplex:i.duplex}:{}));return{path:h,id:f.Id,fullPath:f.Key}})}async upload(e,t,r){return this.uploadOrUpdate("POST",e,t,r)}async uploadToSignedUrl(e,t,r,n){var o=this;const s=o._removeEmptyFolders(e),i=o._getFinalPath(s),u=new URL(o.url+`/object/upload/sign/${i}`);return u.searchParams.set("token",t),o.handleOperation(async()=>{let e;const t=c(c({},J),n);let i=c(c({},o.headers),{"x-upsert":String(t.upsert)});const l=t.metadata;if("undefined"!=typeof Blob&&r instanceof Blob?(e=new FormData,e.append("cacheControl",t.cacheControl),l&&e.append("metadata",o.encodeMetadata(l)),e.append("",r)):"undefined"!=typeof FormData&&r instanceof FormData?(e=r,e.has("cacheControl")||e.append("cacheControl",t.cacheControl),l&&!e.has("metadata")&&e.append("metadata",o.encodeMetadata(l))):(e=r,i["cache-control"]=`max-age=${t.cacheControl}`,i["content-type"]=t.contentType,l&&(i["x-metadata"]=o.toBase64(o.encodeMetadata(l))),("undefined"!=typeof ReadableStream&&e instanceof ReadableStream||e&&"object"==typeof e&&"pipe"in e&&"function"==typeof e.pipe)&&!t.duplex&&(t.duplex="half")),null==n?void 0:n.headers)for(const[e,t]of Object.entries(n.headers))i=w(i,e,t);return{path:s,fullPath:(await T(o.fetch,u.toString(),e,c({headers:i},(null==t?void 0:t.duplex)?{duplex:t.duplex}:{}))).Key}})}async createSignedUploadUrl(e,t){var r=this;return r.handleOperation(async()=>{let n=r._getFinalPath(e);const o=c({},r.headers);(null==t?void 0:t.upsert)&&(o["x-upsert"]="true");const s=await I(r.fetch,`${r.url}/object/upload/sign/${n}`,{},{headers:o}),u=new URL(r.url+s.url),l=u.searchParams.get("token");if(!l)throw new i("No token returned by API");return{signedUrl:u.toString(),path:e,token:l}})}async update(e,t,r){return this.uploadOrUpdate("PUT",e,t,r)}async move(e,t,r){var n=this;return n.handleOperation(async()=>await I(n.fetch,`${n.url}/object/move`,{bucketId:n.bucketId,sourceKey:e,destinationKey:t,destinationBucket:null==r?void 0:r.destinationBucket},{headers:n.headers}))}async copy(e,t,r){var n=this;return n.handleOperation(async()=>({path:(await I(n.fetch,`${n.url}/object/copy`,{bucketId:n.bucketId,sourceKey:e,destinationKey:t,destinationBucket:null==r?void 0:r.destinationBucket},{headers:n.headers})).Key}))}async createSignedUrl(e,t,r){var n=this;return n.handleOperation(async()=>{let o=n._getFinalPath(e);const s="object"==typeof(null==r?void 0:r.transform)&&null!==r.transform&&Object.keys(r.transform).length>0;let i=await I(n.fetch,`${n.url}/object/sign/${o}`,c({expiresIn:t},s?{transform:r.transform}:{}),{headers:n.headers});const u=new URLSearchParams;(null==r?void 0:r.download)&&u.set("download",!0===r.download?"":r.download),null!=(null==r?void 0:r.cacheNonce)&&u.set("cacheNonce",String(r.cacheNonce));const l=u.toString();return{signedUrl:encodeURI(`${n.url}${i.signedURL}${l?`&${l}`:""}`)}})}async createSignedUrls(e,t,r){var n=this;return n.handleOperation(async()=>{const o=await I(n.fetch,`${n.url}/object/sign/${n.bucketId}`,{expiresIn:t,paths:e},{headers:n.headers}),s=new URLSearchParams;(null==r?void 0:r.download)&&s.set("download",!0===r.download?"":r.download),null!=(null==r?void 0:r.cacheNonce)&&s.set("cacheNonce",String(r.cacheNonce));const i=s.toString();return o.map(e=>c(c({},e),{},{signedUrl:e.signedURL?encodeURI(`${n.url}${e.signedURL}${i?`&${i}`:""}`):null}))})}download(e,t,r){const n="object"==typeof(null==t?void 0:t.transform)&&null!==t.transform&&Object.keys(t.transform).length>0?"render/image/authenticated":"object",o=new URLSearchParams;(null==t?void 0:t.transform)&&this.applyTransformOptsToQuery(o,t.transform),null!=(null==t?void 0:t.cacheNonce)&&o.set("cacheNonce",String(t.cacheNonce));const s=o.toString(),c=this._getFinalPath(e);return new M(()=>V(this.fetch,`${this.url}/${n}/${c}${s?`?${s}`:""}`,{headers:this.headers,noResolveJson:!0},r),this.shouldThrowOnError)}async info(e){var t=this;const r=t._getFinalPath(e);return t.handleOperation(async()=>k(await V(t.fetch,`${t.url}/object/info/${r}`,{headers:t.headers})))}async exists(e){var t=this;const r=t._getFinalPath(e);try{return await U(t.fetch,`${t.url}/object/${r}`,{headers:t.headers}),{data:!0,error:null}}catch(e){if(t.shouldThrowOnError)throw e;if(u(e)){var n;const t=e instanceof l?e.status:e instanceof h?null===(n=e.originalError)||void 0===n?void 0:n.status:void 0;if(void 0!==t&&[400,404].includes(t))return{data:!1,error:e}}throw e}}getPublicUrl(e,t){const r=this._getFinalPath(e),n=new URLSearchParams;(null==t?void 0:t.download)&&n.set("download",!0===t.download?"":t.download),(null==t?void 0:t.transform)&&this.applyTransformOptsToQuery(n,t.transform),null!=(null==t?void 0:t.cacheNonce)&&n.set("cacheNonce",String(t.cacheNonce));const o=n.toString(),s="object"==typeof(null==t?void 0:t.transform)&&null!==t.transform&&Object.keys(t.transform).length>0?"render/image":"object";return{data:{publicUrl:encodeURI(`${this.url}/${s}/public/${r}`)+(o?`?${o}`:"")}}}async remove(e){var t=this;return t.handleOperation(async()=>await _(t.fetch,`${t.url}/object/${t.bucketId}`,{prefixes:e},{headers:t.headers}))}async purgeCache(e,t,r){var n=this;return n.handleOperation(async()=>{const o=$(n._getFinalPath(e)),s=new URLSearchParams;(null==t?void 0:t.transformations)&&s.set("transformations","true");const c=s.toString();return await _(n.fetch,`${n.url}/cdn/${o}${c?`?${c}`:""}`,{},{headers:n.headers},r)})}async list(e,t,r){var n=this;return n.handleOperation(async()=>{const o=(null==t?void 0:t.sortBy)?c(c({},z.sortBy),t.sortBy):z.sortBy,s=c(c(c({},z),t),{},{sortBy:o,prefix:e||""});return await I(n.fetch,`${n.url}/object/list/${n.bucketId}`,s,{headers:n.headers},r)})}async listV2(e,t){var r=this;return r.handleOperation(async()=>{const n=c({},e);return await I(r.fetch,`${r.url}/object/list-v2/${r.bucketId}`,n,{headers:r.headers},t)})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return"undefined"!=typeof Buffer?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}applyTransformOptsToQuery(e,t){return t.width&&e.set("width",t.width.toString()),t.height&&e.set("height",t.height.toString()),t.resize&&e.set("resize",t.resize),t.format&&e.set("format",t.format),t.quality&&e.set("quality",t.quality.toString()),e}};const q={"X-Client-Info":"storage-js/2.112.4"};var H=class extends R{constructor(e,t={},r,n){const o=new URL(e);(null==n?void 0:n.useNewHostname)&&/supabase\.(co|in|red)$/.test(o.hostname)&&!o.hostname.includes("storage.supabase.")&&(o.hostname=o.hostname.replace("supabase.","storage.supabase."));super(o.href.replace(/\/$/,""),c(c({},q),t),r,"storage")}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const r=t.listBucketOptionsToQueryString(e);return await V(t.fetch,`${t.url}/bucket${r}`,{headers:t.headers})})}async getBucket(e){var t=this;return t.handleOperation(async()=>await V(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}))}async createBucket(e,t={public:!1}){var r=this;return r.handleOperation(async()=>await I(r.fetch,`${r.url}/bucket`,{id:e,name:e,type:t.type,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:r.headers}))}async updateBucket(e,t){var r=this;return r.handleOperation(async()=>await T(r.fetch,`${r.url}/bucket/${e}`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:r.headers}))}async emptyBucket(e){var t=this;return t.handleOperation(async()=>await I(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await _(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}async purgeBucketCache(e,t,r){var n=this;return n.handleOperation(async()=>{const o=new URLSearchParams;(null==t?void 0:t.transformations)&&o.set("transformations","true");const s=o.toString();return await _(n.fetch,`${n.url}/cdn/${$(e)}${s?`?${s}`:""}`,{},{headers:n.headers},r)})}listBucketOptionsToQueryString(e){const t={};return e&&("limit"in e&&(t.limit=String(e.limit)),"offset"in e&&(t.offset=String(e.offset)),e.search&&(t.search=e.search),e.sortColumn&&(t.sortColumn=e.sortColumn),e.sortOrder&&(t.sortOrder=e.sortOrder)),Object.keys(t).length>0?"?"+new URLSearchParams(t).toString():""}},Q=class extends R{constructor(e,t={},r){super(e.replace(/\/$/,""),c(c({},q),t),r,"storage")}async createBucket(e){var t=this;return t.handleOperation(async()=>await I(t.fetch,`${t.url}/bucket`,{name:e},{headers:t.headers}))}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const r=new URLSearchParams;void 0!==(null==e?void 0:e.limit)&&r.set("limit",e.limit.toString()),void 0!==(null==e?void 0:e.offset)&&r.set("offset",e.offset.toString()),(null==e?void 0:e.sortColumn)&&r.set("sortColumn",e.sortColumn),(null==e?void 0:e.sortOrder)&&r.set("sortOrder",e.sortOrder),(null==e?void 0:e.search)&&r.set("search",e.search);const n=r.toString(),o=n?`${t.url}/bucket?${n}`:`${t.url}/bucket`;return await V(t.fetch,o,{headers:t.headers})})}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await _(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}from(t){var r=this;if(!x(t))throw new i("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");const n=new e.IcebergRestCatalog({baseUrl:this.url,catalogName:t,auth:{type:"custom",getHeaders:async()=>r.headers},fetch:this.fetch}),o=this.shouldThrowOnError;return new Proxy(n,{get(e,t){const r=e[t];return"function"!=typeof r?r:async(...t)=>{try{return{data:await r.apply(e,t),error:null}}catch(e){if(o)throw e;return{data:null,error:e}}}}})}},G=class extends R{constructor(e,t={},r){super(e.replace(/\/$/,""),c(c({},q),{},{"Content-Type":"application/json"},t),r,"vectors")}async createIndex(e){var t=this;return t.handleOperation(async()=>await F.post(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{})}async getIndex(e,t){var r=this;return r.handleOperation(async()=>await F.post(r.fetch,`${r.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:r.headers}))}async listIndexes(e){var t=this;return t.handleOperation(async()=>await F.post(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}))}async deleteIndex(e,t){var r=this;return r.handleOperation(async()=>await F.post(r.fetch,`${r.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:r.headers})||{})}},W=class extends R{constructor(e,t={},r){super(e.replace(/\/$/,""),c(c({},q),{},{"Content-Type":"application/json"},t),r,"vectors")}async putVectors(e){var t=this;if(e.vectors.length<1||e.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return t.handleOperation(async()=>await F.post(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{})}async getVectors(e){var t=this;return t.handleOperation(async()=>await F.post(t.fetch,`${t.url}/GetVectors`,e,{headers:t.headers}))}async listVectors(e){var t=this;if(void 0!==e.segmentCount){if(e.segmentCount<1||e.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");if(void 0!==e.segmentIndex&&(e.segmentIndex<0||e.segmentIndex>=e.segmentCount))throw new Error("segmentIndex must be between 0 and "+(e.segmentCount-1))}return t.handleOperation(async()=>await F.post(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}))}async queryVectors(e){var t=this;return t.handleOperation(async()=>await F.post(t.fetch,`${t.url}/QueryVectors`,e,{headers:t.headers}))}async deleteVectors(e){var t=this;if(e.keys.length<1||e.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return t.handleOperation(async()=>await F.post(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{})}},X=class extends R{constructor(e,t={},r){super(e.replace(/\/$/,""),c(c({},q),{},{"Content-Type":"application/json"},t),r,"vectors")}async createBucket(e){var t=this;return t.handleOperation(async()=>await F.post(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}async getBucket(e){var t=this;return t.handleOperation(async()=>await F.post(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}))}async listBuckets(e={}){var t=this;return t.handleOperation(async()=>await F.post(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await F.post(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}},Y=class extends X{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new Z(this.url,this.headers,e,this.fetch)}async createBucket(e){return(()=>super.createBucket)().call(this,e)}async getBucket(e){return(()=>super.getBucket)().call(this,e)}async listBuckets(e={}){return(()=>super.listBuckets)().call(this,e)}async deleteBucket(e){return(()=>super.deleteBucket)().call(this,e)}},Z=class extends G{constructor(e,t,r,n){super(e,t,n),this.vectorBucketName=r}async createIndex(e){return(()=>super.createIndex)().call(this,c(c({},e),{},{vectorBucketName:this.vectorBucketName}))}async listIndexes(e={}){return(()=>super.listIndexes)().call(this,c(c({},e),{},{vectorBucketName:this.vectorBucketName}))}async getIndex(e){return(()=>super.getIndex)().call(this,this.vectorBucketName,e)}async deleteIndex(e){return(()=>super.deleteIndex)().call(this,this.vectorBucketName,e)}index(e){return new ee(this.url,this.headers,this.vectorBucketName,e,this.fetch)}},ee=class extends W{constructor(e,t,r,n,o){super(e,t,o),this.vectorBucketName=r,this.indexName=n}async putVectors(e){var t=this;return(()=>super.putVectors)().call(t,c(c({},e),{},{vectorBucketName:t.vectorBucketName,indexName:t.indexName}))}async getVectors(e){var t=this;return(()=>super.getVectors)().call(t,c(c({},e),{},{vectorBucketName:t.vectorBucketName,indexName:t.indexName}))}async listVectors(e={}){var t=this;return(()=>super.listVectors)().call(t,c(c({},e),{},{vectorBucketName:t.vectorBucketName,indexName:t.indexName}))}async queryVectors(e){var t=this;return(()=>super.queryVectors)().call(t,c(c({},e),{},{vectorBucketName:t.vectorBucketName,indexName:t.indexName}))}async deleteVectors(e){var t=this;return(()=>super.deleteVectors)().call(t,c(c({},e),{},{vectorBucketName:t.vectorBucketName,indexName:t.indexName}))}},te=class extends H{constructor(e,t={},r,n){super(e,t,r,n)}from(e){return new K(this.url,this.headers,e,this.fetch)}get vectors(){return new Y(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new Q(this.url+"/iceberg",this.headers,this.fetch)}}},806,[807]); +__d(function(g,r,i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"IcebergError",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"IcebergRestCatalog",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"getCurrentSchema",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"isDecimalType",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"isFixedType",{enumerable:!0,get:function(){return w}}),Object.defineProperty(e,"parseDecimalType",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"parseFixedType",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"typesEqual",{enumerable:!0,get:function(){return x}});var t=class extends Error{constructor(t,a){super(t),this.name="IcebergError",this.status=a.status,this.icebergType=a.icebergType,this.icebergCode=a.icebergCode,this.details=a.details,this.isCommitStateUnknown="CommitStateUnknownException"===a.icebergType||[500,502,504].includes(a.status)&&!0===a.icebergType?.includes("CommitState")}isNotFound(){return 404===this.status}isConflict(){return 409===this.status}isAuthenticationTimeout(){return 419===this.status}};function a(t,a,s){const n=new URL(a,t);if(s)for(const[t,a]of Object.entries(s))void 0!==a&&n.searchParams.set(t,a);return n.toString()}async function s(t){return t&&"none"!==t.type?"bearer"===t.type?{Authorization:`Bearer ${t.token}`}:"header"===t.type?{[t.name]:t.value}:"custom"===t.type?await t.getHeaders():{}:{}}function n(n){const c=n.fetchImpl??globalThis.fetch;return{async request({method:o,path:p,query:u,body:l,headers:h}){const b=a(n.baseUrl,p,u),f=await s(n.auth),y=await c(b,{method:o,headers:Object.assign({},l?{"Content-Type":"application/json"}:{},f,h),body:l?JSON.stringify(l):void 0}),T=await y.text(),w=(y.headers.get("content-type")||"").includes("application/json"),x=w&&T?JSON.parse(T):T;if(!y.ok){const a=w?x:void 0,s=a?.error;throw new t(s?.message??`Request failed with status ${y.status}`,{status:y.status,icebergType:s?.type,icebergCode:s?.code,details:a})}return{status:y.status,headers:y.headers,data:x}}}}function c(t){return t.join("\x1f")}var o=class{constructor(t,a=""){this.client=t,this.prefix=a}async listNamespaces(t){const a=t?{parent:c(t.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:a})).data.namespaces.map(t=>({namespace:t}))}async createNamespace(t,a){const s={namespace:t.namespace,properties:a?.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:s})).data}async dropNamespace(t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${c(t.namespace)}`})}async loadNamespaceMetadata(t){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${c(t.namespace)}`})).data.properties}}async namespaceExists(a){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${c(a.namespace)}`}),!0}catch(a){if(a instanceof t&&404===a.status)return!1;throw a}}async createNamespaceIfNotExists(a,s){try{return await this.createNamespace(a,s)}catch(a){if(a instanceof t&&409===a.status)return;throw a}}};function p(t){return t.join("\x1f")}var u=class{constructor(t,a="",s){this.client=t,this.prefix=a,this.accessDelegation=s}async listTables(t){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${p(t.namespace)}/tables`})).data.identifiers}async createTable(t,a){const s={};this.accessDelegation&&(s["X-Iceberg-Access-Delegation"]=this.accessDelegation);return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${p(t.namespace)}/tables`,body:a,headers:s})).data.metadata}async updateTable(t,a){const s=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${p(t.namespace)}/tables/${t.name}`,body:a});return{"metadata-location":s.data["metadata-location"],metadata:s.data.metadata}}async dropTable(t,a){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${p(t.namespace)}/tables/${t.name}`,query:{purgeRequested:String(a?.purge??!1)}})}async loadTable(t){const a={};this.accessDelegation&&(a["X-Iceberg-Access-Delegation"]=this.accessDelegation);return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${p(t.namespace)}/tables/${t.name}`,headers:a})).data.metadata}async tableExists(a){const s={};this.accessDelegation&&(s["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${p(a.namespace)}/tables/${a.name}`,headers:s}),!0}catch(a){if(a instanceof t&&404===a.status)return!1;throw a}}async createTableIfNotExists(a,s){try{return await this.createTable(a,s)}catch(n){if(n instanceof t&&409===n.status)return await this.loadTable({namespace:a.namespace,name:s.name});throw n}}},l=class{constructor(t){let a="v1";t.catalogName&&(a+=`/${t.catalogName}`);const s=t.baseUrl.endsWith("/")?t.baseUrl:`${t.baseUrl}/`;this.client=n({baseUrl:s,auth:t.auth,fetchImpl:t.fetch}),this.accessDelegation=t.accessDelegation?.join(","),this.namespaceOps=new o(this.client,a),this.tableOps=new u(this.client,a,this.accessDelegation)}async listNamespaces(t){return this.namespaceOps.listNamespaces(t)}async createNamespace(t,a){return this.namespaceOps.createNamespace(t,a)}async dropNamespace(t){await this.namespaceOps.dropNamespace(t)}async loadNamespaceMetadata(t){return this.namespaceOps.loadNamespaceMetadata(t)}async listTables(t){return this.tableOps.listTables(t)}async createTable(t,a){return this.tableOps.createTable(t,a)}async updateTable(t,a){return this.tableOps.updateTable(t,a)}async dropTable(t,a){await this.tableOps.dropTable(t,a)}async loadTable(t){return this.tableOps.loadTable(t)}async namespaceExists(t){return this.namespaceOps.namespaceExists(t)}async tableExists(t){return this.tableOps.tableExists(t)}async createNamespaceIfNotExists(t,a){return this.namespaceOps.createNamespaceIfNotExists(t,a)}async createTableIfNotExists(t,a){return this.tableOps.createTableIfNotExists(t,a)}},h=/^decimal\s*\(\s*(\d+)\s*,\s*(\d+)\s*\)$/,b=/^fixed\s*\[\s*(\d+)\s*\]$/;function f(t){const a=t.match(h);return a?{precision:parseInt(a[1],10),scale:parseInt(a[2],10)}:null}function y(t){const a=t.match(b);return a?{length:parseInt(a[1],10)}:null}function T(t){return h.test(t)}function w(t){return b.test(t)}function x(t,a){const s=f(t),n=f(a);if(s&&n)return s.precision===n.precision&&s.scale===n.scale;const c=y(t),o=y(a);return c&&o?c.length===o.length:t===a}function O(t){return t.schemas.find(a=>a["schema-id"]===t["current-schema-id"])}},807,[]); +__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,"navigatorLock",{enumerable:!0,get:function(){return l.navigatorLock}}),Object.defineProperty(_e,"NavigatorLockAcquireTimeoutError",{enumerable:!0,get:function(){return l.NavigatorLockAcquireTimeoutError}}),Object.defineProperty(_e,"lockInternals",{enumerable:!0,get:function(){return l.internals}}),Object.defineProperty(_e,"processLock",{enumerable:!0,get:function(){return l.processLock}}),Object.defineProperty(_e,"GoTrueAdminApi",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(_e,"GoTrueClient",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(_e,"AuthAdminApi",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(_e,"AuthClient",{enumerable:!0,get:function(){return u.default}});var t=e(r(d[0])),n=e(r(d[1])),o=e(r(d[2])),u=e(r(d[3])),c=r(d[4]);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 f=r(d[5]);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=r(d[6])},808,[809,817,824,825,816,814,819]); +__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 t=r(d[0]),s=r(d[1]),n=r(d[2]),o=r(d[3]),h=r(d[4]);class u{constructor({url:t="",headers:s={},fetch:o,experimental:h}){this.url=t,this.headers=s,this.fetch=(0,n.resolveFetch)(o),this.experimental=null!=h?h:{},this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)},this.customProviders={listProviders:this._listCustomProviders.bind(this),createProvider:this._createCustomProvider.bind(this),getProvider:this._getCustomProvider.bind(this),updateProvider:this._updateCustomProvider.bind(this),deleteProvider:this._deleteCustomProvider.bind(this)},this.passkey={listPasskeys:this._adminListPasskeys.bind(this),deletePasskey:this._adminDeletePasskey.bind(this)}}async signOut(t,n=o.SIGN_OUT_SCOPES[0]){if(o.SIGN_OUT_SCOPES.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${o.SIGN_OUT_SCOPES.join(', ')}`);try{return await(0,s._request)(this.fetch,'POST',`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(t){if((0,h.isAuthError)(t))return{data:null,error:t};throw t}}async inviteUserByEmail(t,n={}){try{return await(0,s._request)(this.fetch,'POST',`${this.url}/invite`,{body:{email:t,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:s._userResponse})}catch(t){if((0,h.isAuthError)(t))return{data:{user:null},error:t};throw t}}async generateLink(n){try{const{options:o}=n,h=(0,t.__rest)(n,["options"]),u=Object.assign(Object.assign({},h),o);return'newEmail'in h&&(u.new_email=null==h?void 0:h.newEmail,delete u.newEmail),await(0,s._request)(this.fetch,'POST',`${this.url}/admin/generate_link`,{body:u,headers:this.headers,xform:s._generateLinkResponse,redirectTo:null==o?void 0:o.redirectTo})}catch(t){if((0,h.isAuthError)(t))return{data:{properties:null,user:null},error:t};throw t}}async createUser(t){try{return await(0,s._request)(this.fetch,'POST',`${this.url}/admin/users`,{body:t,headers:this.headers,xform:s._userResponse})}catch(t){if((0,h.isAuthError)(t))return{data:{user:null},error:t};throw t}}async listUsers(t){var n,o,u,l,c,f,_;try{const h={nextPage:null,lastPage:0,total:0},y=await(0,s._request)(this.fetch,'GET',`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:null!==(o=null===(n=null==t?void 0:t.page)||void 0===n?void 0:n.toString())&&void 0!==o?o:'',per_page:null!==(l=null===(u=null==t?void 0:t.perPage)||void 0===u?void 0:u.toString())&&void 0!==l?l:''},xform:s._noResolveJsonResponse});if(y.error)throw y.error;const v=await y.json(),p=null!==(c=y.headers.get('x-total-count'))&&void 0!==c?c:0,E=null!==(_=null===(f=y.headers.get('link'))||void 0===f?void 0:f.split(','))&&void 0!==_?_:[];return E.length>0&&(E.forEach(t=>{const s=parseInt(t.split(';')[0].split('=')[1].substring(0,1)),n=JSON.parse(t.split(';')[1].split('=')[1]);h[`${n}Page`]=s}),h.total=parseInt(p)),{data:Object.assign(Object.assign({},v),h),error:null}}catch(t){if((0,h.isAuthError)(t))return{data:{users:[]},error:t};throw t}}async getUserById(t){(0,n.validateUUID)(t);try{return await(0,s._request)(this.fetch,'GET',`${this.url}/admin/users/${t}`,{headers:this.headers,xform:s._userResponse})}catch(t){if((0,h.isAuthError)(t))return{data:{user:null},error:t};throw t}}async updateUserById(t,o){(0,n.validateUUID)(t);try{return await(0,s._request)(this.fetch,'PUT',`${this.url}/admin/users/${t}`,{body:o,headers:this.headers,xform:s._userResponse})}catch(t){if((0,h.isAuthError)(t))return{data:{user:null},error:t};throw t}}async deleteUser(t,o=!1){(0,n.validateUUID)(t);try{return await(0,s._request)(this.fetch,'DELETE',`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:o},xform:s._userResponse})}catch(t){if((0,h.isAuthError)(t))return{data:{user:null},error:t};throw t}}async _listFactors(t){(0,n.validateUUID)(t.userId);try{const{data:n,error:o}=await(0,s._request)(this.fetch,'GET',`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:t=>({data:{factors:t},error:null})});return{data:n,error:o}}catch(t){if((0,h.isAuthError)(t))return{data:null,error:t};throw t}}async _deleteFactor(t){(0,n.validateUUID)(t.userId),(0,n.validateUUID)(t.id);try{return{data:await(0,s._request)(this.fetch,'DELETE',`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(t){if((0,h.isAuthError)(t))return{data:null,error:t};throw t}}async _listOAuthClients(t){var n,o,u,l,c,f,_;try{const h={nextPage:null,lastPage:0,total:0},y=await(0,s._request)(this.fetch,'GET',`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:null!==(o=null===(n=null==t?void 0:t.page)||void 0===n?void 0:n.toString())&&void 0!==o?o:'',per_page:null!==(l=null===(u=null==t?void 0:t.perPage)||void 0===u?void 0:u.toString())&&void 0!==l?l:''},xform:s._noResolveJsonResponse});if(y.error)throw y.error;const v=await y.json(),p=null!==(c=y.headers.get('x-total-count'))&&void 0!==c?c:0,E=null!==(_=null===(f=y.headers.get('link'))||void 0===f?void 0:f.split(','))&&void 0!==_?_:[];return E.length>0&&(E.forEach(t=>{const s=parseInt(t.split(';')[0].split('=')[1].substring(0,1)),n=JSON.parse(t.split(';')[1].split('=')[1]);h[`${n}Page`]=s}),h.total=parseInt(p)),{data:Object.assign(Object.assign({},v),h),error:null}}catch(t){if((0,h.isAuthError)(t))return{data:{clients:[]},error:t};throw t}}async _createOAuthClient(t){try{return await(0,s._request)(this.fetch,'POST',`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:t=>({data:t,error:null})})}catch(t){if((0,h.isAuthError)(t))return{data:null,error:t};throw t}}async _getOAuthClient(t){try{return await(0,s._request)(this.fetch,'GET',`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:t=>({data:t,error:null})})}catch(t){if((0,h.isAuthError)(t))return{data:null,error:t};throw t}}async _updateOAuthClient(t,n){try{return await(0,s._request)(this.fetch,'PUT',`${this.url}/admin/oauth/clients/${t}`,{body:n,headers:this.headers,xform:t=>({data:t,error:null})})}catch(t){if((0,h.isAuthError)(t))return{data:null,error:t};throw t}}async _deleteOAuthClient(t){try{return await(0,s._request)(this.fetch,'DELETE',`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(t){if((0,h.isAuthError)(t))return{data:null,error:t};throw t}}async _regenerateOAuthClientSecret(t){try{return await(0,s._request)(this.fetch,'POST',`${this.url}/admin/oauth/clients/${t}/regenerate_secret`,{headers:this.headers,xform:t=>({data:t,error:null})})}catch(t){if((0,h.isAuthError)(t))return{data:null,error:t};throw t}}async _listCustomProviders(t){try{const n={};return(null==t?void 0:t.type)&&(n.type=t.type),await(0,s._request)(this.fetch,'GET',`${this.url}/admin/custom-providers`,{headers:this.headers,query:n,xform:t=>{var s;return{data:{providers:null!==(s=null==t?void 0:t.providers)&&void 0!==s?s:[]},error:null}}})}catch(t){if((0,h.isAuthError)(t))return{data:{providers:[]},error:t};throw t}}async _createCustomProvider(t){try{return await(0,s._request)(this.fetch,'POST',`${this.url}/admin/custom-providers`,{body:t,headers:this.headers,xform:t=>({data:t,error:null})})}catch(t){if((0,h.isAuthError)(t))return{data:null,error:t};throw t}}async _getCustomProvider(t){try{return await(0,s._request)(this.fetch,'GET',`${this.url}/admin/custom-providers/${t}`,{headers:this.headers,xform:t=>({data:t,error:null})})}catch(t){if((0,h.isAuthError)(t))return{data:null,error:t};throw t}}async _updateCustomProvider(t,n){try{return await(0,s._request)(this.fetch,'PUT',`${this.url}/admin/custom-providers/${t}`,{body:n,headers:this.headers,xform:t=>({data:t,error:null})})}catch(t){if((0,h.isAuthError)(t))return{data:null,error:t};throw t}}async _deleteCustomProvider(t){try{return await(0,s._request)(this.fetch,'DELETE',`${this.url}/admin/custom-providers/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(t){if((0,h.isAuthError)(t))return{data:null,error:t};throw t}}async _adminListPasskeys(t){(0,n.assertPasskeyExperimentalEnabled)(this.experimental),(0,n.validateUUID)(t.userId);try{return await(0,s._request)(this.fetch,'GET',`${this.url}/admin/users/${t.userId}/passkeys`,{headers:this.headers,xform:t=>({data:t,error:null})})}catch(t){if((0,h.isAuthError)(t))return{data:null,error:t};throw t}}async _adminDeletePasskey(t){(0,n.assertPasskeyExperimentalEnabled)(this.experimental),(0,n.validateUUID)(t.userId),(0,n.validateUUID)(t.passkeyId);try{return await(0,s._request)(this.fetch,'DELETE',`${this.url}/admin/users/${t.userId}/passkeys/${t.passkeyId}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(t){if((0,h.isAuthError)(t))return{data:null,error:t};throw t}}}},809,[787,810,813,816,814]); +__d(function(g,r,_i,_a2,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.handleError=i,_e._request=async function(e,t,o,n){var a;const i=Object.assign({},null==n?void 0:n.headers);i[s.API_VERSION_HEADER_NAME]||(i[s.API_VERSION_HEADER_NAME]=s.API_VERSIONS['2024-01-01'].name);(null==n?void 0:n.jwt)&&(i.Authorization=`Bearer ${n.jwt}`);const u=null!==(a=null==n?void 0:n.query)&&void 0!==a?a:{};(null==n?void 0:n.redirectTo)&&(u.redirect_to=n.redirectTo);const l=Object.keys(u).length?'?'+new URLSearchParams(u).toString():'',_=await c(e,t,o+l,{headers:i,noResolveJson:null==n?void 0:n.noResolveJson},{},null==n?void 0:n.body);return(null==n?void 0:n.xform)?null==n?void 0:n.xform(_):{data:Object.assign({},_),error:null}},_e._sessionResponse=l,_e._sessionResponsePassword=function(e){const s=l(e);!s.error&&e.weak_password&&'object'==typeof e.weak_password&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&'string'==typeof e.weak_password.message&&e.weak_password.reasons.reduce((e,s)=>e&&'string'==typeof s,!0)&&(s.data.weak_password=e.weak_password);return s},_e._userResponse=function(e){var s;return{data:{user:null!==(s=e.user)&&void 0!==s?s:e},error:null}},_e._ssoResponse=function(e){return{data:e,error:null}},_e._generateLinkResponse=function(s){const{action_link:t,email_otp:o,hashed_token:n,redirect_to:a,verification_type:i}=s,u=(0,e.__rest)(s,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),c={action_link:t,email_otp:o,hashed_token:n,redirect_to:a,verification_type:i},l=Object.assign({},u);return{data:{properties:c,user:l},error:null}},_e._noResolveJsonResponse=function(e){return e};var e=r(d[0]),s=r(d[1]),t=r(d[2]),o=r(d[3]);const n=e=>{if('object'==typeof e&&null!==e){const s=e;if('string'==typeof s.msg)return s.msg;if('string'==typeof s.message)return s.message;if('string'==typeof s.error_description)return s.error_description;if('string'==typeof s.error)return s.error}return JSON.stringify(e)},a=[500,501,502,503,504,520,521,522,523,524,525,526,527,528,529,530];async function i(e){var i;if(!(0,t.looksLikeFetchResponse)(e))throw new o.AuthRetryableFetchError(n(e),0);let u,c;try{u=await e.json()}catch(s){if(a.includes(e.status))throw new o.AuthRetryableFetchError(e.statusText||`HTTP ${e.status}`,e.status);throw new o.AuthUnknownError(n(s),s)}if(a.includes(e.status))throw new o.AuthRetryableFetchError(n(u),e.status);const l=(0,t.parseResponseAPIVersion)(e);if(l&&l.getTime()>=s.API_VERSIONS['2024-01-01'].timestamp&&'object'==typeof u&&u&&'string'==typeof u.code?c=u.code:'object'==typeof u&&u&&'string'==typeof u.error_code&&(c=u.error_code),c){if('weak_password'===c)throw new o.AuthWeakPasswordError(n(u),e.status,(null===(i=u.weak_password)||void 0===i?void 0:i.reasons)||[]);if('session_not_found'===c)throw new o.AuthSessionMissingError}else if('object'==typeof u&&u&&'object'==typeof u.weak_password&&u.weak_password&&Array.isArray(u.weak_password.reasons)&&u.weak_password.reasons.length&&u.weak_password.reasons.reduce((e,s)=>e&&'string'==typeof s,!0))throw new o.AuthWeakPasswordError(n(u),e.status,u.weak_password.reasons);throw new o.AuthApiError(n(u),e.status||500,c)}const u=(e,s,t,o)=>{const n={method:e,headers:(null==s?void 0:s.headers)||{}};return'GET'===e?n:(n.headers=Object.assign({'Content-Type':'application/json;charset=UTF-8'},null==s?void 0:s.headers),n.body=JSON.stringify(o),Object.assign(Object.assign({},n),t))};async function c(e,s,t,a,c,l){const _=u(s,a,c,l);let w;try{w=await e(t,Object.assign({},_))}catch(e){throw new o.AuthRetryableFetchError(n(e),0)}if(w.ok||await i(w),null==a?void 0:a.noResolveJson)return w;try{return await w.json()}catch(e){await i(e)}}function l(e){var s;let o=null;_(e)&&(o=Object.assign({},e),e.expires_at||(o.expires_at=(0,t.expiresAt)(e.expires_in)));return{data:{session:o,user:null!==(s=e.user)&&void 0!==s?s:'string'==typeof(null==e?void 0:e.id)?e:null},error:null}}function _(e){return!!e.access_token&&!!e.refresh_token&&!!e.expires_in}},810,[787,811,813,814]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"AUTO_REFRESH_TICK_DURATION_MS",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"AUTO_REFRESH_TICK_THRESHOLD",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"EXPIRY_MARGIN_MS",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"REFRESH_FAILURE_COOLDOWN_MS",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"GOTRUE_URL",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"STORAGE_KEY",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"AUDIENCE",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"DEFAULT_HEADERS",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"NETWORK_FAILURE",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"API_VERSION_HEADER_NAME",{enumerable:!0,get:function(){return R}}),Object.defineProperty(e,"API_VERSIONS",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"BASE64URL_REGEX",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"PKCE_FLOW_ID_PARAM",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"PKCE_MAX_CONCURRENT_FLOWS",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"JWKS_TTL",{enumerable:!0,get:function(){return j}});var t=r(d[0]);const n=3e4,u=3,o=9e4,_=6e4,c='http://localhost:9999',b='supabase.auth.token',f='',E={'X-Client-Info':`gotrue-js/${t.version}`},O={MAX_RETRIES:10,RETRY_INTERVAL:2},R='X-Supabase-Api-Version',p={'2024-01-01':{timestamp:Date.parse('2024-01-01T00:00:00.0Z'),name:'2024-01-01'}},P=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,l='sb_flow_id',A=5,j=6e5},811,[812]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return t}});const t='2.112.4'},812,[]); +__d(function(g,r,_i,a,m,_e2,d){"use strict";Object.defineProperty(_e2,'__esModule',{value:!0}),_e2.expiresAt=function(e){return Math.round(Date.now()/1e3)+e},_e2.generateCallbackId=function(){return Symbol('auth-callback')},Object.defineProperty(_e2,"isBrowser",{enumerable:!0,get:function(){return o}}),Object.defineProperty(_e2,"supportsLocalStorage",{enumerable:!0,get:function(){return s}}),_e2.parseParametersFromURL=function(e){const t={},n=new URL(e);if(n.hash&&'#'===n.hash[0])try{new URLSearchParams(n.hash.substring(1)).forEach((e,n)=>{t[n]=e})}catch(e){}return n.searchParams.forEach((e,n)=>{t[n]=e}),t},Object.defineProperty(_e2,"resolveFetch",{enumerable:!0,get:function(){return u}}),Object.defineProperty(_e2,"looksLikeFetchResponse",{enumerable:!0,get:function(){return c}}),Object.defineProperty(_e2,"setItemAsync",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e2,"getItemAsync",{enumerable:!0,get:function(){return f}}),Object.defineProperty(_e2,"removeItemAsync",{enumerable:!0,get:function(){return h}}),Object.defineProperty(_e2,"Deferred",{enumerable:!0,get:function(){return p}}),_e2.decodeJWT=function(o){const i=o.split('.');if(3!==i.length)throw new t.AuthInvalidJwtError('Invalid JWT structure');for(let n=0;n{setTimeout(()=>t(null),e)})},_e2.retryable=function(e,t){return new Promise((n,o)=>{(async()=>{for(let i=0;i<1/0;i++)try{const o=await e(i);if(!t(i,null,o))return void n(o)}catch(e){if(!t(i,e))return void o(e)}})()})},_e2.generatePKCEVerifier=w,_e2.generatePKCEChallenge=S,_e2.validatePKCEFlowId=A,_e2.generatePKCEFlowId=v,Object.defineProperty(_e2,"pkceVerifierSlotKey",{enumerable:!0,get:function(){return E}}),_e2.storePKCEVerifier=I,_e2.retrievePKCEVerifier=async function(e,t,n){if(n){const o=await f(e,E(t,n));return{verifier:'string'==typeof o?o:null,flowId:n}}const o=await f(e,`${t}-code-verifier`);return{verifier:'string'==typeof o?o:null,flowId:null}},_e2.removePKCEVerifier=async function(e,t,n){const o=`${t}-code-verifier`;if(!n)return void await h(e,o);const i=E(t,n),s=await f(e,i);await h(e,i);const u=await j(e,t),c=u.filter(e=>e!==n);c.length!==u.length&&(c.length>0?await l(e,C(t),c):await h(e,C(t)));null!=s&&s===await f(e,o)&&await h(e,o)},_e2.removeAllPKCEVerifiers=async function(e,t){const n=await j(e,t);for(const o of n)await h(e,E(t,o));await h(e,C(t)),await h(e,`${t}-code-verifier`)},_e2.appendFlowIdToRedirectTo=function(t,n){const o=t.indexOf('#');let i=-1===o?t:t.slice(0,o);const s=-1===o?'':t.slice(o),u=i.indexOf('?');if(-1!==u){const t=i.slice(0,u),n=i.slice(u+1).split('&').filter(t=>''!==t&&t!==e.PKCE_FLOW_ID_PARAM&&!t.startsWith(`${e.PKCE_FLOW_ID_PARAM}=`));i=n.length>0?`${t}?${n.join('&')}`:t}const c=i.includes('?')?'&':'?';return`${i}${c}${e.PKCE_FLOW_ID_PARAM}=${encodeURIComponent(n)}${s}`},_e2.getCodeChallengeAndMethod=async function(e,t,n=!1,o){const i=w();let s=i;n&&(s+='/recovery');const u=v();await I(e,t,u,s,o);const c=await S(i);return[c,i===c?'plain':'s256',u]},_e2.parseResponseAPIVersion=function(t){const n=t.headers.get(e.API_VERSION_HEADER_NAME);if(!n)return null;if(!n.match(_))return null;try{return new Date(`${n}T00:00:00.0Z`)}catch(e){return null}},_e2.validateExp=function(e){if(!e)throw new Error('Missing exp claim');const t=Math.floor(Date.now()/1e3);if(e<=t)throw new Error('JWT has expired')},_e2.getAlgorithm=function(e){switch(e){case'RS256':return{name:'RSASSA-PKCS1-v1_5',hash:{name:'SHA-256'}};case'ES256':return{name:'ECDSA',namedCurve:'P-256',hash:{name:'SHA-256'}};default:throw new Error('Invalid alg claim')}},_e2.validateUUID=function(e){if(!U.test(e))throw new Error('@supabase/auth-js: Expected parameter to be UUID but is not')},_e2.assertPasskeyExperimentalEnabled=function(e){if(!e.passkey)throw new Error('@supabase/auth-js: the passkey API is experimental and disabled by default. Enable it by passing `auth: { experimental: { passkey: true } }` to createClient (or to the GoTrueClient constructor).')},_e2.userNotAvailableProxy=function(){return new Proxy({},{get:(e,t)=>{if('__isUserNotAvailableProxy'===t)return!0;if('symbol'==typeof t){const e=t.toString();if('Symbol(Symbol.toPrimitive)'===e||'Symbol(Symbol.toStringTag)'===e||'Symbol(util.inspect.custom)'===e)return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${t}" property of the session object is not supported. Please use getUser() instead.`)},set:(e,t)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${t}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(e,t)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${t}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})},_e2.insecureUserWarningProxy=function(e,t){return new Proxy(e,{get:(e,n,o)=>{if('__isInsecureUserWarningProxy'===n)return!0;if('symbol'==typeof n){const t=n.toString();if('Symbol(Symbol.toPrimitive)'===t||'Symbol(Symbol.toStringTag)'===t||'Symbol(util.inspect.custom)'===t||'Symbol(nodejs.util.inspect.custom)'===t)return Reflect.get(e,n,o)}return t.value||'string'!=typeof n||(console.warn('Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server.'),t.value=!0),Reflect.get(e,n,o)}})},_e2.deepClone=function(e){return JSON.parse(JSON.stringify(e))};var e=r(d[0]),t=r(d[1]),n=r(d[2]);const o=()=>'undefined'!=typeof window&&'undefined'!=typeof document,i={tested:!1,writable:!1},s=()=>{if(!o())return!1;try{if('object'!=typeof globalThis.localStorage)return!1}catch(e){return!1}if(i.tested)return i.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),i.tested=!0,i.writable=!0}catch(e){i.tested=!0,i.writable=!1}return i.writable};const u=e=>e?(...t)=>e(...t):(...e)=>fetch(...e),c=e=>'object'==typeof e&&null!==e&&'status'in e&&'ok'in e&&'json'in e&&'function'==typeof e.json,l=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},f=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch(e){return null}},h=async(e,t)=>{await e.removeItem(t)};class p{constructor(){this.promise=new p.promiseConstructor((e,t)=>{this.resolve=e,this.reject=t})}}function y(e){return('0'+e.toString(16)).substr(-2)}function w(){const e=new Uint32Array(56);if('undefined'==typeof crypto){const e='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~',t=e.length;let n='';for(let o=0;o<56;o++)n+=e.charAt(Math.floor(Math.random()*t));return n}return crypto.getRandomValues(e),Array.from(e,y).join('')}async function b(e){const t=(new TextEncoder).encode(e),n=await crypto.subtle.digest('SHA-256',t),o=new Uint8Array(n);return Array.from(o).map(e=>String.fromCharCode(e)).join('')}async function S(e){if(!('undefined'!=typeof crypto&&void 0!==crypto.subtle&&'undefined'!=typeof TextEncoder))return console.warn('WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256.'),e;const t=await b(e);return btoa(t).replace(/\+/g,'-').replace(/\//g,'_').replace(/=+$/,'')}p.promiseConstructor=Promise;const P=/^[a-zA-Z0-9_-]{8,64}$/;function A(e){return'string'==typeof e&&P.test(e)?e:null}function v(){if('undefined'!=typeof crypto&&'function'==typeof crypto.getRandomValues){const e=new Uint8Array(16);return crypto.getRandomValues(e),Array.from(e,y).join('')}let e='';for(let t=0;t<32;t++)e+=Math.floor(16*Math.random()).toString(16);return e}const E=(e,t)=>`${e}-flow-${t}-code-verifier`,C=e=>`${e}-flows-code-verifier`;async function j(e,t){const n=await f(e,C(t));return Array.isArray(n)?n.filter(e=>null!==A(e)):[]}async function I(t,n,o,i,s){await l(t,E(n,o),i);const u=(await j(t,n)).filter(e=>e!==o);for(u.push(o);u.length>e.PKCE_MAX_CONCURRENT_FLOWS;){const e=u.shift();await h(t,E(n,e)),null==s||s(e)}await l(t,C(n),u),await l(t,`${n}-code-verifier`,i)}const _=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;const U=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i},813,[811,814,815]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"AuthError",{enumerable:!0,get:function(){return t}}),e.isAuthError=s,Object.defineProperty(e,"AuthApiError",{enumerable:!0,get:function(){return n}}),e.isAuthApiError=function(t){return s(t)&&'AuthApiError'===t.name},Object.defineProperty(e,"AuthUnknownError",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"CustomAuthError",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"AuthSessionMissingError",{enumerable:!0,get:function(){return c}}),e.isAuthSessionMissingError=function(t){return s(t)&&'AuthSessionMissingError'===t.name},Object.defineProperty(e,"AuthInvalidTokenResponseError",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"AuthInvalidCredentialsError",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"AuthImplicitGrantRedirectError",{enumerable:!0,get:function(){return f}}),e.isAuthImplicitGrantRedirectError=function(t){return s(t)&&'AuthImplicitGrantRedirectError'===t.name},Object.defineProperty(e,"AuthPKCEGrantCodeExchangeError",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"AuthPKCECodeVerifierMissingError",{enumerable:!0,get:function(){return A}}),e.isAuthPKCECodeVerifierMissingError=function(t){return s(t)&&'AuthPKCECodeVerifierMissingError'===t.name},Object.defineProperty(e,"AuthRetryableFetchError",{enumerable:!0,get:function(){return p}}),e.isAuthRetryableFetchError=function(t){return s(t)&&'AuthRetryableFetchError'===t.name},Object.defineProperty(e,"AuthRefreshDiscardedError",{enumerable:!0,get:function(){return b}}),e.isAuthRefreshDiscardedError=function(t){return s(t)&&'AuthRefreshDiscardedError'===t.name},Object.defineProperty(e,"AuthWeakPasswordError",{enumerable:!0,get:function(){return O}}),e.isAuthWeakPasswordError=function(t){return s(t)&&'AuthWeakPasswordError'===t.name},Object.defineProperty(e,"AuthInvalidJwtError",{enumerable:!0,get:function(){return P}});class t extends Error{constructor(t,s,n){super(t),this.__isAuthError=!0,this.name='AuthError',this.status=s,this.code=n}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code}}}function s(t){return'object'==typeof t&&null!==t&&'__isAuthError'in t}class n extends t{constructor(t,s,n){super(t,s,n),this.name='AuthApiError',this.status=s,this.code=n}}class o extends t{constructor(t,s){super(t),this.name='AuthUnknownError',this.originalError=s}}class u extends t{constructor(t,s,n,o){super(t,n,o),this.name=s,this.status=n}}class c extends u{constructor(){super('Auth session missing!','AuthSessionMissingError',400,void 0)}}class h extends u{constructor(){super('Auth session or user missing','AuthInvalidTokenResponseError',500,void 0)}}class l extends u{constructor(t){super(t,'AuthInvalidCredentialsError',400,void 0)}}class f extends u{constructor(t,s=null){super(t,'AuthImplicitGrantRedirectError',500,void 0),this.details=null,this.details=s}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}class E extends u{constructor(t,s=null){super(t,'AuthPKCEGrantCodeExchangeError',500,void 0),this.details=null,this.details=s}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}class A extends u{constructor(){super("PKCE code verifier not found in storage. This can happen if the auth flow was initiated in a different browser or device, or if the storage was cleared. For SSR frameworks (Next.js, SvelteKit, etc.), use @supabase/ssr on both the server and client to store the code verifier in cookies.",'AuthPKCECodeVerifierMissingError',400,'pkce_code_verifier_not_found')}}class p extends u{constructor(t,s){super(t,'AuthRetryableFetchError',s,void 0)}}class b extends u{constructor(t="Refresh result discarded: session state changed mid-flight (e.g., concurrent signOut)"){super(t,'AuthRefreshDiscardedError',409,void 0)}}class O extends u{constructor(t,s,n){super(t,'AuthWeakPasswordError',s,'weak_password'),this.reasons=n}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{reasons:this.reasons})}}class P extends u{constructor(t){super(t,'AuthInvalidJwtError',400,'invalid_jwt')}}},814,[]); +__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.byteToBase64URL=o,e.byteFromBase64URL=i,e.stringToBase64URL=function(t){const u=[],n=t=>{u.push(t)},i={queue:0,queuedBits:0};return f(t,t=>{o(t,i,n)}),o(null,i,n),u.join('')},e.stringFromBase64URL=function(t){const u=[],n=t=>{u.push(String.fromCodePoint(t))},o={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},f=t=>{c(t,o,n)};for(let u=0;u{u.push(t)};for(let u=0;uu.push(t)),new Uint8Array(u)},e.bytesToBase64URL=function(t){const u=[],n={queue:0,queuedBits:0},i=t=>{u.push(t)};return t.forEach(t=>o(t,n,i)),o(null,n,i),u.join('')};const t='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_'.split(''),u=' \t\n\r='.split(''),n=(()=>{const n=new Array(128);for(let t=0;t=6;){const u=n.queue>>n.queuedBits-6&63;o(t[u]),n.queuedBits-=6}else if(n.queuedBits>0)for(n.queue=n.queue<<6-n.queuedBits,n.queuedBits=6;n.queuedBits>=6;){const u=n.queue>>n.queuedBits-6&63;o(t[u]),n.queuedBits-=6}}function i(t,u,o){const i=n[t];if(!(i>-1)){if(-2===i)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(t)}"`)}for(u.queue=u.queue<<6|i,u.queuedBits+=6;u.queuedBits>=8;)o(u.queue>>u.queuedBits-8&255),u.queuedBits-=8}function s(t,u){if(!(t<=127)){if(t<=2047)return u(192|t>>6),void u(128|63&t);if(t<=65535)return u(224|t>>12),u(128|t>>6&63),void u(128|63&t);if(t<=1114111)return u(240|t>>18),u(128|t>>12&63),u(128|t>>6&63),void u(128|63&t);throw new Error(`Unrecognized Unicode codepoint: ${t.toString(16)}`)}u(t)}function f(t,u){for(let n=0;n55295&&o<=56319){const u=1024*(o-55296)&65535;o=65536+(t.charCodeAt(n+1)-56320&65535|u),n+=1}s(o,u)}}function c(t,u,n){if(0===u.utf8seq){if(t<=127)return void n(t);for(let n=1;n<6;n+=1)if(!(t>>7-n&1)){u.utf8seq=n;break}if(2===u.utf8seq)u.codepoint=31&t;else if(3===u.utf8seq)u.codepoint=15&t;else{if(4!==u.utf8seq)throw new Error('Invalid UTF-8 sequence');u.codepoint=7&t}u.utf8seq-=1}else if(u.utf8seq>0){if(t<=127)throw new Error('Invalid UTF-8 sequence');u.codepoint=u.codepoint<<6|63&t,u.utf8seq-=1,0===u.utf8seq&&n(u.codepoint)}}},815,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SIGN_OUT_SCOPES",{enumerable:!0,get:function(){return t}});const t=['global','local','others']},816,[]); +__d(function(e,t,s,r,i,n,a){"use strict";Object.defineProperty(n,'__esModule',{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return S}});var o,l=t(a[0]),u=(o=l)&&o.__esModule?o:{default:o},h=t(a[1]),c=t(a[2]),d=t(a[3]),_=t(a[4]),w=t(a[5]),g=t(a[6]),f=t(a[7]),y=t(a[8]),p=t(a[9]),v=t(a[10]),b=t(a[11]);(0,f.polyfillGlobalThis)();const k={url:h.GOTRUE_URL,storageKey:h.STORAGE_KEY,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:h.DEFAULT_HEADERS,flowType:'implicit',debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:5e3,skipAutoInitialize:!1,experimental:{}},m={};let R=!1;class A{get jwks(){var e,t;return null!==(t=null===(e=m[this.storageKey])||void 0===e?void 0:e.jwks)&&void 0!==t?t:{keys:[]}}set jwks(e){m[this.storageKey]=Object.assign(Object.assign({},m[this.storageKey]),{jwks:e})}get jwks_cached_at(){var e,t;return null!==(t=null===(e=m[this.storageKey])||void 0===e?void 0:e.cachedAt)&&void 0!==t?t:Number.MIN_SAFE_INTEGER}set jwks_cached_at(e){m[this.storageKey]=Object.assign(Object.assign({},m[this.storageKey]),{cachedAt:e})}constructor(e){var t,s,r;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.lastRefreshFailure=null,this._sessionRemovalEpoch=0,this.initializePromise=null,this._pendingInitNotifications=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lock=null,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const i=Object.assign(Object.assign({},k),e);if(this.storageKey=i.storageKey,this.instanceID=null!==(t=A.nextInstanceID[this.storageKey])&&void 0!==t?t:0,A.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!i.debug,'function'==typeof i.debug&&(this.logger=i.debug),this.instanceID>0&&(0,_.isBrowser)()){const e=`${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;console.warn(e),this.logDebugMessages&&console.trace(e)}if(this.persistSession=i.persistSession,this.autoRefreshToken=i.autoRefreshToken,this.experimental=null!==(s=i.experimental)&&void 0!==s?s:{},this.admin=new u.default({url:i.url,headers:i.headers,fetch:i.fetch,experimental:this.experimental}),this.url=i.url,this.headers=i.headers,this.fetch=(0,_.resolveFetch)(i.fetch),this.detectSessionInUrl=i.detectSessionInUrl,this.flowType=i.flowType,this.hasCustomAuthorizationHeader=i.hasCustomAuthorizationHeader,this.throwOnError=i.throwOnError,this.lockAcquireTimeout=i.lockAcquireTimeout,null!=i.lock&&(this.lock=i.lock,R||(R=!0,console.warn(`${this._logPrefix()} The "lock" option is deprecated and will be removed in v3. The client now coordinates session refreshes without a lock, so most apps can drop the option. See https://github.com/supabase/supabase-js/blob/master/packages/core/auth-js/migrations/lockless-coordination.md`))),this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this),webauthn:new b.WebAuthnApi(this)},this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.passkey={startRegistration:this._startPasskeyRegistration.bind(this),verifyRegistration:this._verifyPasskeyRegistration.bind(this),startAuthentication:this._startPasskeyAuthentication.bind(this),verifyAuthentication:this._verifyPasskeyAuthentication.bind(this),list:this._listPasskeys.bind(this),update:this._updatePasskey.bind(this),delete:this._deletePasskey.bind(this)},this.persistSession?(i.storage?this.storage=i.storage:(0,_.supportsLocalStorage)()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=(0,w.memoryLocalStorageAdapter)(this.memoryStorage)),i.userStorage&&(this.userStorage=i.userStorage)):(this.memoryStorage={},this.storage=(0,w.memoryLocalStorageAdapter)(this.memoryStorage)),(0,_.isBrowser)()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(e){console.error('Failed to create a new BroadcastChannel, multi-tab state changes will not be available',e)}null===(r=this.broadcastChannel)||void 0===r||r.addEventListener('message',async e=>{this._debug('received broadcast notification from other tab or client',e),'TOKEN_REFRESHED'!==e.data.event&&'SIGNED_IN'!==e.data.event||(this.lastRefreshFailure=null);try{await this._notifyAllSubscribers(e.data.event,e.data.session,!1)}catch(e){this._debug('#broadcastChannel','error',e)}})}i.skipAutoInitialize||this.initialize().catch(e=>{this._debug('#initialize()','error',e)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(e){if(this.throwOnError&&e&&e.error)throw e.error;return e}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${y.version}) ${(new Date).toISOString()}`}_debug(...e){return this.logDebugMessages&&this.logger(this._logPrefix(),...e),this}async initialize(){var e;if(this.initializePromise)return await this.initializePromise;this._pendingInitNotifications=[],this.initializePromise=(async()=>null!=this.lock?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()):await this._initialize())();const t=await this.initializePromise,s=null!==(e=this._pendingInitNotifications)&&void 0!==e?e:[];this._pendingInitNotifications=null;for(const e of s)await this._notifyAllSubscribers(e.event,e.session,e.broadcast);return t}async _initialize(){var e;try{let t={},s='none';if((0,_.isBrowser)()&&(t=(0,_.parseParametersFromURL)(window.location.href),this._isImplicitGrantCallback(t)?s='implicit':await this._isPKCECallback(t)&&(s='pkce')),(0,_.isBrowser)()&&this.detectSessionInUrl&&'none'!==s){const{data:r,error:i}=await this._getSessionFromURL(t,s);if(i){if(this._debug('#_initialize()','error detecting session from URL',i),(0,c.isAuthImplicitGrantRedirectError)(i)){const t=null===(e=i.details)||void 0===e?void 0:e.code;if('identity_already_exists'===t||'identity_not_found'===t||'single_identity_not_deletable'===t)return{error:i}}return{error:i}}const{session:n,redirectType:a}=r;return this._debug('#_initialize()','detected session in URL',n,'redirect type',a),await this._saveSession(n),setTimeout(async()=>{'recovery'===a?await this._notifyAllSubscribers('PASSWORD_RECOVERY',n):await this._notifyAllSubscribers('SIGNED_IN',n)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(e){return(0,c.isAuthError)(e)?this._returnResult({error:e}):this._returnResult({error:new c.AuthUnknownError('Unexpected error during initialization',e)})}finally{await this._handleVisibilityChange(),this._debug('#_initialize()','end')}}async signInAnonymously(e){var t,s,r;try{const i=await(0,d._request)(this.fetch,'POST',`${this.url}/signup`,{headers:this.headers,body:{data:null!==(s=null===(t=null==e?void 0:e.options)||void 0===t?void 0:t.data)&&void 0!==s?s:{},gotrue_meta_security:{captcha_token:null===(r=null==e?void 0:e.options)||void 0===r?void 0:r.captchaToken}},xform:d._sessionResponse}),{data:n,error:a}=i;if(a||!n)return this._returnResult({data:{user:null,session:null},error:a});const o=n.session,l=n.user;return n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers('SIGNED_IN',o)),this._returnResult({data:{user:l,session:o},error:null})}catch(e){if((0,c.isAuthError)(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async signUp(e){var t,s,r;let i=null;try{let n;if('email'in e){const{email:s,password:r,options:a}=e;let o=null,l=null;'pkce'===this.flowType&&([o,l,i]=await this._getCodeChallengeAndMethod()),n=await(0,d._request)(this.fetch,'POST',`${this.url}/signup`,{headers:this.headers,redirectTo:this._maybeAppendFlowIdToRedirect(null==a?void 0:a.emailRedirectTo,i),body:{email:s,password:r,data:null!==(t=null==a?void 0:a.data)&&void 0!==t?t:{},gotrue_meta_security:{captcha_token:null==a?void 0:a.captchaToken},code_challenge:o,code_challenge_method:l},xform:d._sessionResponse})}else{if(!('phone'in e))throw new c.AuthInvalidCredentialsError('You must provide either an email or phone number and a password');{const{phone:t,password:i,options:a}=e;n=await(0,d._request)(this.fetch,'POST',`${this.url}/signup`,{headers:this.headers,body:{phone:t,password:i,data:null!==(s=null==a?void 0:a.data)&&void 0!==s?s:{},channel:null!==(r=null==a?void 0:a.channel)&&void 0!==r?r:'sms',gotrue_meta_security:{captcha_token:null==a?void 0:a.captchaToken}},xform:d._sessionResponse})}}const{data:a,error:o}=n;if(o||!a)return await(0,_.removePKCEVerifier)(this.storage,this.storageKey,i),this._returnResult({data:{user:null,session:null},error:o});const l=a.session,u=a.user;return a.session&&(await this._saveSession(a.session),await this._notifyAllSubscribers('SIGNED_IN',l)),this._returnResult({data:{user:u,session:l},error:null})}catch(e){if(await(0,_.removePKCEVerifier)(this.storage,this.storageKey,i),(0,c.isAuthError)(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async signInWithPassword(e){try{let t;if('email'in e){const{email:s,password:r,options:i}=e;t=await(0,d._request)(this.fetch,'POST',`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:s,password:r,gotrue_meta_security:{captcha_token:null==i?void 0:i.captchaToken}},xform:d._sessionResponsePassword})}else{if(!('phone'in e))throw new c.AuthInvalidCredentialsError('You must provide either an email or phone number and a password');{const{phone:s,password:r,options:i}=e;t=await(0,d._request)(this.fetch,'POST',`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:s,password:r,gotrue_meta_security:{captcha_token:null==i?void 0:i.captchaToken}},xform:d._sessionResponsePassword})}}const{data:s,error:r}=t;if(r)return this._returnResult({data:{user:null,session:null},error:r});if(!s||!s.session||!s.user){const e=new c.AuthInvalidTokenResponseError;return this._returnResult({data:{user:null,session:null},error:e})}return s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers('SIGNED_IN',s.session)),this._returnResult({data:Object.assign({user:s.user,session:s.session},s.weak_password?{weakPassword:s.weak_password}:null),error:r})}catch(e){if((0,c.isAuthError)(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async signInWithOAuth(e){var t,s,r,i;return await this._handleProviderSignIn(e.provider,{redirectTo:null===(t=e.options)||void 0===t?void 0:t.redirectTo,scopes:null===(s=e.options)||void 0===s?void 0:s.scopes,queryParams:null===(r=e.options)||void 0===r?void 0:r.queryParams,skipBrowserRedirect:null===(i=e.options)||void 0===i?void 0:i.skipBrowserRedirect})}async exchangeCodeForSession(e,t){return await this.initializePromise,null!=this.lock?this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(e,t)):this._exchangeCodeForSession(e,t)}async signInWithWeb3(e){const{chain:t}=e;switch(t){case'ethereum':return await this.signInWithEthereum(e);case'solana':return await this.signInWithSolana(e);default:throw new Error(`@supabase/auth-js: Unsupported chain "${t}"`)}}async signInWithEthereum(e){var t,s,r,i,n,a,o,l,u,h,w;let g,f;if('message'in e)g=e.message,f=e.signature;else{const{chain:h,wallet:c,statement:d,options:w}=e;let y;if((0,_.isBrowser)())if('object'==typeof c)y=c;else{const e=window;if(!('ethereum'in e)||'object'!=typeof e.ethereum||!('request'in e.ethereum)||'function'!=typeof e.ethereum.request)throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.");y=e.ethereum}else{if('object'!=typeof c||!(null==w?void 0:w.url))throw new Error('@supabase/auth-js: Both wallet and url must be specified in non-browser environments.');y=c}const p=new URL(null!==(t=null==w?void 0:w.url)&&void 0!==t?t:window.location.href),b=await y.request({method:'eth_requestAccounts'}).then(e=>e).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!b||0===b.length)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const k=(0,v.getAddress)(b[0]);let m=null===(s=null==w?void 0:w.signInWithEthereum)||void 0===s?void 0:s.chainId;if(!m){const e=await y.request({method:'eth_chainId'});m=(0,v.fromHex)(e)}const R={domain:p.host,address:k,statement:d,uri:p.href,version:'1',chainId:m,nonce:null===(r=null==w?void 0:w.signInWithEthereum)||void 0===r?void 0:r.nonce,issuedAt:null!==(n=null===(i=null==w?void 0:w.signInWithEthereum)||void 0===i?void 0:i.issuedAt)&&void 0!==n?n:new Date,expirationTime:null===(a=null==w?void 0:w.signInWithEthereum)||void 0===a?void 0:a.expirationTime,notBefore:null===(o=null==w?void 0:w.signInWithEthereum)||void 0===o?void 0:o.notBefore,requestId:null===(l=null==w?void 0:w.signInWithEthereum)||void 0===l?void 0:l.requestId,resources:null===(u=null==w?void 0:w.signInWithEthereum)||void 0===u?void 0:u.resources};g=(0,v.createSiweMessage)(R),f=await y.request({method:'personal_sign',params:[(0,v.toHex)(g),k]})}try{const{data:t,error:s}=await(0,d._request)(this.fetch,'POST',`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:'ethereum',message:g,signature:f},(null===(h=e.options)||void 0===h?void 0:h.captchaToken)?{gotrue_meta_security:{captcha_token:null===(w=e.options)||void 0===w?void 0:w.captchaToken}}:null),xform:d._sessionResponse});if(s)throw s;if(!t||!t.session||!t.user){const e=new c.AuthInvalidTokenResponseError;return this._returnResult({data:{user:null,session:null},error:e})}return t.session&&(await this._saveSession(t.session),await this._notifyAllSubscribers('SIGNED_IN',t.session)),this._returnResult({data:Object.assign({},t),error:s})}catch(e){if((0,c.isAuthError)(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async signInWithSolana(e){var t,s,r,i,n,a,o,l,u,h,w,g;let f,y;if('message'in e)f=e.message,y=e.signature;else{const{chain:c,wallet:d,statement:w,options:g}=e;let p;if((0,_.isBrowser)())if('object'==typeof d)p=d;else{const e=window;if(!('solana'in e)||'object'!=typeof e.solana||!('signIn'in e.solana&&'function'==typeof e.solana.signIn||'signMessage'in e.solana&&'function'==typeof e.solana.signMessage))throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.");p=e.solana}else{if('object'!=typeof d||!(null==g?void 0:g.url))throw new Error('@supabase/auth-js: Both wallet and url must be specified in non-browser environments.');p=d}const v=new URL(null!==(t=null==g?void 0:g.url)&&void 0!==t?t:window.location.href);if('signIn'in p&&p.signIn){const e=await p.signIn(Object.assign(Object.assign(Object.assign({issuedAt:(new Date).toISOString()},null==g?void 0:g.signInWithSolana),{version:'1',domain:v.host,uri:v.href}),w?{statement:w}:null));let t;if(Array.isArray(e)&&e[0]&&'object'==typeof e[0])t=e[0];else{if(!(e&&'object'==typeof e&&'signedMessage'in e&&'signature'in e))throw new Error('@supabase/auth-js: Wallet method signIn() returned unrecognized value');t=e}if(!('signedMessage'in t&&'signature'in t&&('string'==typeof t.signedMessage||t.signedMessage instanceof Uint8Array)&&t.signature instanceof Uint8Array))throw new Error('@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields');f='string'==typeof t.signedMessage?t.signedMessage:(new TextDecoder).decode(t.signedMessage),y=t.signature}else{if(!('signMessage'in p&&'function'==typeof p.signMessage&&'publicKey'in p&&'object'==typeof p&&p.publicKey&&'toBase58'in p.publicKey&&'function'==typeof p.publicKey.toBase58))throw new Error('@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API');f=[`${v.host} wants you to sign in with your Solana account:`,p.publicKey.toBase58(),...w?['',w,'']:[''],'Version: 1',`URI: ${v.href}`,`Issued At: ${null!==(r=null===(s=null==g?void 0:g.signInWithSolana)||void 0===s?void 0:s.issuedAt)&&void 0!==r?r:(new Date).toISOString()}`,...(null===(i=null==g?void 0:g.signInWithSolana)||void 0===i?void 0:i.notBefore)?[`Not Before: ${g.signInWithSolana.notBefore}`]:[],...(null===(n=null==g?void 0:g.signInWithSolana)||void 0===n?void 0:n.expirationTime)?[`Expiration Time: ${g.signInWithSolana.expirationTime}`]:[],...(null===(a=null==g?void 0:g.signInWithSolana)||void 0===a?void 0:a.chainId)?[`Chain ID: ${g.signInWithSolana.chainId}`]:[],...(null===(o=null==g?void 0:g.signInWithSolana)||void 0===o?void 0:o.nonce)?[`Nonce: ${g.signInWithSolana.nonce}`]:[],...(null===(l=null==g?void 0:g.signInWithSolana)||void 0===l?void 0:l.requestId)?[`Request ID: ${g.signInWithSolana.requestId}`]:[],...(null===(h=null===(u=null==g?void 0:g.signInWithSolana)||void 0===u?void 0:u.resources)||void 0===h?void 0:h.length)?['Resources',...g.signInWithSolana.resources.map(e=>`- ${e}`)]:[]].join('\n');const e=await p.signMessage((new TextEncoder).encode(f),'utf8');if(!(e&&e instanceof Uint8Array))throw new Error('@supabase/auth-js: Wallet signMessage() API returned an recognized value');y=e}}try{const{data:t,error:s}=await(0,d._request)(this.fetch,'POST',`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:'solana',message:f,signature:(0,p.bytesToBase64URL)(y)},(null===(w=e.options)||void 0===w?void 0:w.captchaToken)?{gotrue_meta_security:{captcha_token:null===(g=e.options)||void 0===g?void 0:g.captchaToken}}:null),xform:d._sessionResponse});if(s)throw s;if(!t||!t.session||!t.user){const e=new c.AuthInvalidTokenResponseError;return this._returnResult({data:{user:null,session:null},error:e})}return t.session&&(await this._saveSession(t.session),await this._notifyAllSubscribers('SIGNED_IN',t.session)),this._returnResult({data:Object.assign({},t),error:s})}catch(e){if((0,c.isAuthError)(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async _exchangeCodeForSession(e,t){const s=null!=(null==t?void 0:t.flowId),r=s?(0,_.validatePKCEFlowId)(null==t?void 0:t.flowId):(0,_.isBrowser)()?(0,_.validatePKCEFlowId)((0,_.parseParametersFromURL)(window.location.href)[h.PKCE_FLOW_ID_PARAM]):null;s&&!r&&this._debug('#_exchangeCodeForSession()','provided flowId is not a valid flow id',null==t?void 0:t.flowId);const{verifier:i,flowId:n}=s&&!r?{verifier:null,flowId:null}:await(0,_.retrievePKCEVerifier)(this.storage,this.storageKey,r),[a,o]=(null!=i?i:'').split('/');try{if(!a&&'pkce'===this.flowType)throw new c.AuthPKCECodeVerifierMissingError;const{data:t,error:s}=await(0,d._request)(this.fetch,'POST',`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:e,code_verifier:a},xform:d._sessionResponse});if(await(0,_.removePKCEVerifier)(this.storage,this.storageKey,n),s)throw s;if(!t||!t.session||!t.user){const e=new c.AuthInvalidTokenResponseError;return this._returnResult({data:{user:null,session:null,redirectType:null},error:e})}return t.session&&(await this._saveSession(t.session),await this._notifyAllSubscribers('recovery'===o?'PASSWORD_RECOVERY':'SIGNED_IN',t.session)),this._returnResult({data:Object.assign(Object.assign({},t),{redirectType:null!=o?o:null}),error:s})}catch(e){if(await(0,_.removePKCEVerifier)(this.storage,this.storageKey,n),(0,c.isAuthError)(e))return this._returnResult({data:{user:null,session:null,redirectType:null},error:e});throw e}}async signInWithIdToken(e){try{const{options:t,provider:s,token:r,access_token:i,nonce:n}=e,a=await(0,d._request)(this.fetch,'POST',`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:s,id_token:r,access_token:i,nonce:n,gotrue_meta_security:{captcha_token:null==t?void 0:t.captchaToken}},xform:d._sessionResponse}),{data:o,error:l}=a;if(l)return this._returnResult({data:{user:null,session:null},error:l});if(!o||!o.session||!o.user){const e=new c.AuthInvalidTokenResponseError;return this._returnResult({data:{user:null,session:null},error:e})}return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers('SIGNED_IN',o.session)),this._returnResult({data:o,error:l})}catch(e){if((0,c.isAuthError)(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async signInWithOtp(e){var t,s,r,i,n;let a=null;try{if('email'in e){const{email:r,options:i}=e;let n=null,o=null;'pkce'===this.flowType&&([n,o,a]=await this._getCodeChallengeAndMethod());const{error:l}=await(0,d._request)(this.fetch,'POST',`${this.url}/otp`,{headers:this.headers,body:{email:r,data:null!==(t=null==i?void 0:i.data)&&void 0!==t?t:{},create_user:null===(s=null==i?void 0:i.shouldCreateUser)||void 0===s||s,gotrue_meta_security:{captcha_token:null==i?void 0:i.captchaToken},code_challenge:n,code_challenge_method:o},redirectTo:this._maybeAppendFlowIdToRedirect(null==i?void 0:i.emailRedirectTo,a)});return this._returnResult({data:{user:null,session:null},error:l})}if('phone'in e){const{phone:t,options:s}=e,{data:a,error:o}=await(0,d._request)(this.fetch,'POST',`${this.url}/otp`,{headers:this.headers,body:{phone:t,data:null!==(r=null==s?void 0:s.data)&&void 0!==r?r:{},create_user:null===(i=null==s?void 0:s.shouldCreateUser)||void 0===i||i,gotrue_meta_security:{captcha_token:null==s?void 0:s.captchaToken},channel:null!==(n=null==s?void 0:s.channel)&&void 0!==n?n:'sms'}});return this._returnResult({data:{user:null,session:null,messageId:null==a?void 0:a.message_id},error:o})}throw new c.AuthInvalidCredentialsError('You must provide either an email or phone number.')}catch(e){if(await(0,_.removePKCEVerifier)(this.storage,this.storageKey,a),(0,c.isAuthError)(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async verifyOtp(e){var t,s;try{let r,i;'options'in e&&(r=null===(t=e.options)||void 0===t?void 0:t.redirectTo,i=null===(s=e.options)||void 0===s?void 0:s.captchaToken);const{data:n,error:a}=await(0,d._request)(this.fetch,'POST',`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},e),{gotrue_meta_security:{captcha_token:i}}),redirectTo:r,xform:d._sessionResponse});if(a)throw a;if(!n){throw new Error('An error occurred on token verification.')}const o=n.session,l=n.user;return(null==o?void 0:o.access_token)&&(await this._saveSession(o),await this._notifyAllSubscribers('recovery'==e.type?'PASSWORD_RECOVERY':'SIGNED_IN',o)),this._returnResult({data:{user:l,session:o},error:null})}catch(e){if((0,c.isAuthError)(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async signInWithSSO(e){var t,s,r,i;let n=null;try{let a=null,o=null;'pkce'===this.flowType&&([a,o,n]=await this._getCodeChallengeAndMethod());const l=await(0,d._request)(this.fetch,'POST',`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},'providerId'in e?{provider_id:e.providerId}:null),'domain'in e?{domain:e.domain}:null),{redirect_to:this._maybeAppendFlowIdToRedirect(null===(t=e.options)||void 0===t?void 0:t.redirectTo,n)}),(null===(s=null==e?void 0:e.options)||void 0===s?void 0:s.captchaToken)?{gotrue_meta_security:{captcha_token:e.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:a,code_challenge_method:o}),headers:this.headers,xform:d._ssoResponse});return(null===(r=l.data)||void 0===r?void 0:r.url)&&(0,_.isBrowser)()&&!(null===(i=e.options)||void 0===i?void 0:i.skipBrowserRedirect)&&window.location.assign(l.data.url),this._returnResult(l)}catch(e){if(await(0,_.removePKCEVerifier)(this.storage,this.storageKey,n),(0,c.isAuthError)(e))return this._returnResult({data:null,error:e});throw e}}async reauthenticate(){return await this.initializePromise,null!=this.lock?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate()):await this._reauthenticate()}async _reauthenticate(){try{return await this._useSession(async e=>{const{data:{session:t},error:s}=e;if(s)throw s;if(!t)throw new c.AuthSessionMissingError;const{error:r}=await(0,d._request)(this.fetch,'GET',`${this.url}/reauthenticate`,{headers:this.headers,jwt:t.access_token});return this._returnResult({data:{user:null,session:null},error:r})})}catch(e){if((0,c.isAuthError)(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async resend(e){let t=null;try{const s=`${this.url}/resend`;if('email'in e){const{email:r,type:i,options:n}=e;let a=null,o=null;'pkce'===this.flowType&&([a,o,t]=await this._getCodeChallengeAndMethod());const{error:l}=await(0,d._request)(this.fetch,'POST',s,{headers:this.headers,body:{email:r,type:i,gotrue_meta_security:{captcha_token:null==n?void 0:n.captchaToken},code_challenge:a,code_challenge_method:o},redirectTo:this._maybeAppendFlowIdToRedirect(null==n?void 0:n.emailRedirectTo,t)});return l&&await(0,_.removePKCEVerifier)(this.storage,this.storageKey,t),this._returnResult({data:{user:null,session:null},error:l})}if('phone'in e){const{phone:t,type:r,options:i}=e,{data:n,error:a}=await(0,d._request)(this.fetch,'POST',s,{headers:this.headers,body:{phone:t,type:r,gotrue_meta_security:{captcha_token:null==i?void 0:i.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:null==n?void 0:n.message_id},error:a})}throw new c.AuthInvalidCredentialsError('You must provide either an email or phone number and a type')}catch(e){if(await(0,_.removePKCEVerifier)(this.storage,this.storageKey,t),(0,c.isAuthError)(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async getSession(){return await this.initializePromise,null!=this.lock?await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async e=>e)):await this._useSession(async e=>e)}async _acquireLock(e,t){this._debug('#_acquireLock','begin',e);try{if(this.lockAcquired){const e=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),s=(async()=>(await e,await t()))();return this.pendingInLock.push((async()=>{try{await s}catch(e){}})()),s}return await this.lock(`lock:${this.storageKey}`,e,async()=>{this._debug('#_acquireLock','lock acquired for storage key',this.storageKey);try{this.lockAcquired=!0;const e=t();for(this.pendingInLock.push((async()=>{try{await e}catch(e){}})()),await e;this.pendingInLock.length;){const e=[...this.pendingInLock];await Promise.all(e),this.pendingInLock.splice(0,e.length)}return await e}finally{this._debug('#_acquireLock','lock released for storage key',this.storageKey),this.lockAcquired=!1}})}finally{this._debug('#_acquireLock','end')}}async _useSession(e){this._debug('#_useSession','begin');try{const t=await this.__loadSession();return await e(t)}finally{this._debug('#_useSession','end')}}async __loadSession(){this._debug('#__loadSession()','begin'),null==this.lock||this.lockAcquired||this._debug('#__loadSession()','used outside of an acquired lock!',(new Error).stack);try{let e=null;const t=await(0,_.getItemAsync)(this.storage,this.storageKey);if(this._debug('#getSession()','session from storage',t),null!==t&&(this._isValidSession(t)?e=t:(this._debug('#getSession()','session from storage is not valid'),await this._removeSession())),!e)return{data:{session:null},error:null};const s=!!e.expires_at&&1e3*e.expires_at-Date.now()Date.now())){const t=await(0,_.getItemAsync)(this.storage,this.storageKey);if(t&&t.refresh_token===e.refresh_token)return this._returnResult({data:{session:e},error:null})}return this._returnResult({data:{session:null},error:i})}return this._returnResult({data:{session:r},error:null})}finally{this._debug('#__loadSession()','end')}}async getUser(e){if(e)return await this._getUser(e);let t;return await this.initializePromise,t=null!=this.lock?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser()):await this._getUser(),t.data.user&&(this.suppressGetSessionWarning=!0),t}async _getUser(e){try{return e?await(0,d._request)(this.fetch,'GET',`${this.url}/user`,{headers:this.headers,jwt:e,xform:d._userResponse}):await this._useSession(async e=>{var t,s,r;const{data:i,error:n}=e;if(n)throw n;return(null===(t=i.session)||void 0===t?void 0:t.access_token)||this.hasCustomAuthorizationHeader?await(0,d._request)(this.fetch,'GET',`${this.url}/user`,{headers:this.headers,jwt:null!==(r=null===(s=i.session)||void 0===s?void 0:s.access_token)&&void 0!==r?r:void 0,xform:d._userResponse}):{data:{user:null},error:new c.AuthSessionMissingError}})}catch(e){if((0,c.isAuthError)(e))return(0,c.isAuthSessionMissingError)(e)&&await this._removeSession(),this._returnResult({data:{user:null},error:e});throw e}}async updateUser(e,t={}){return await this.initializePromise,null!=this.lock?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(e,t)):await this._updateUser(e,t)}async _updateUser(e,t={}){let s=null;try{return await this._useSession(async r=>{const{data:i,error:n}=r;if(n)throw n;if(!i.session)throw new c.AuthSessionMissingError;const a=i.session;let o=null,l=null;'pkce'===this.flowType&&null!=e.email&&([o,l,s]=await this._getCodeChallengeAndMethod());const{data:u,error:h}=await(0,d._request)(this.fetch,'PUT',`${this.url}/user`,{headers:this.headers,redirectTo:this._maybeAppendFlowIdToRedirect(null==t?void 0:t.emailRedirectTo,s),body:Object.assign(Object.assign({},e),{code_challenge:o,code_challenge_method:l}),jwt:a.access_token,xform:d._userResponse});if(h)throw h;return a.user=u.user,await this._saveSession(a),await this._notifyAllSubscribers('USER_UPDATED',a),this._returnResult({data:{user:a.user},error:null})})}catch(e){if(await(0,_.removePKCEVerifier)(this.storage,this.storageKey,s),(0,c.isAuthError)(e))return this._returnResult({data:{user:null},error:e});throw e}}async setSession(e){return await this.initializePromise,null!=this.lock?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(e)):await this._setSession(e)}async _setSession(e){try{if(!e.access_token||!e.refresh_token)throw new c.AuthSessionMissingError;const t=Date.now()/1e3;let s=t,r=!0,i=null;const{payload:n}=(0,_.decodeJWT)(e.access_token);if(n.exp&&(s=n.exp,r=s<=t),r){const{data:t,error:s}=await this._callRefreshToken(e.refresh_token);if(s)return this._returnResult({data:{user:null,session:null},error:s});if(!t)return{data:{user:null,session:null},error:null};i=t}else{const{data:r,error:n}=await this._getUser(e.access_token);if(n)return this._returnResult({data:{user:null,session:null},error:n});i={access_token:e.access_token,refresh_token:e.refresh_token,user:r.user,token_type:'bearer',expires_in:s-t,expires_at:s},await this._saveSession(i),await this._notifyAllSubscribers('SIGNED_IN',i)}return this._returnResult({data:{user:i.user,session:i},error:null})}catch(e){if((0,c.isAuthError)(e))return this._returnResult({data:{session:null,user:null},error:e});throw e}}async refreshSession(e){return await this.initializePromise,null!=this.lock?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(e)):await this._refreshSession(e)}async _refreshSession(e){try{return await this._useSession(async t=>{var s;if(!e){const{data:r,error:i}=t;if(i)throw i;e=null!==(s=r.session)&&void 0!==s?s:void 0}if(!(null==e?void 0:e.refresh_token))throw new c.AuthSessionMissingError;const{data:r,error:i}=await this._callRefreshToken(e.refresh_token);return i?this._returnResult({data:{user:null,session:null},error:i}):r?this._returnResult({data:{user:r.user,session:r},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(e){if((0,c.isAuthError)(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async _getSessionFromURL(e,t){var s;try{if(!(0,_.isBrowser)())throw new c.AuthImplicitGrantRedirectError('No browser detected.');if(e.error||e.error_description||e.error_code)throw new c.AuthImplicitGrantRedirectError(e.error_description||'Error in URL with unspecified error_description',{error:e.error||'unspecified_error',code:e.error_code||'unspecified_code'});switch(t){case'implicit':if('pkce'===this.flowType)throw new c.AuthPKCEGrantCodeExchangeError('Not a valid PKCE flow url.');break;case'pkce':if('implicit'===this.flowType)throw new c.AuthImplicitGrantRedirectError('Not a valid implicit grant flow url.')}if('pkce'===t){if(this._debug('#_initialize()','begin','is PKCE flow',!0),!e.code)throw new c.AuthPKCEGrantCodeExchangeError('No code detected.');const{data:t,error:r}=await this._exchangeCodeForSession(e.code,{flowId:e[h.PKCE_FLOW_ID_PARAM]});if(r)throw r;const i=new URL(window.location.href);return i.searchParams.delete('code'),i.searchParams.delete(h.PKCE_FLOW_ID_PARAM),window.history.replaceState(window.history.state,'',i.toString()),{data:{session:t.session,redirectType:null!==(s=t.redirectType)&&void 0!==s?s:null},error:null}}const{provider_token:r,provider_refresh_token:i,access_token:n,refresh_token:a,expires_in:o,expires_at:l,token_type:u}=e;if(!(n&&o&&a&&u))throw new c.AuthImplicitGrantRedirectError('No session defined in URL');const d=Math.round(Date.now()/1e3),w=parseInt(o);let g=d+w;l&&(g=parseInt(l));const f=g-d;1e3*f<=h.AUTO_REFRESH_TICK_DURATION_MS&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${f}s, should have been closer to ${w}s`);const y=g-w;d-y>=120?console.warn('@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale',y,g,d):d-y<0&&console.warn('@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew',y,g,d);const{data:p,error:v}=await this._getUser(n);if(v)throw v;const b={provider_token:r,provider_refresh_token:i,access_token:n,expires_in:w,expires_at:g,refresh_token:a,token_type:u,user:p.user};return window.location.hash='',this._debug('#_getSessionFromURL()','clearing window.location.hash'),this._returnResult({data:{session:b,redirectType:e.type},error:null})}catch(e){if((0,c.isAuthError)(e))return this._returnResult({data:{session:null,redirectType:null},error:e});throw e}}_isImplicitGrantCallback(e){return'function'==typeof this.detectSessionInUrl?this.detectSessionInUrl(new URL(window.location.href),e):Boolean(e.access_token||e.error||e.error_description||e.error_code)}async _isPKCECallback(e){if(!e.code)return!1;const t=(0,_.validatePKCEFlowId)(e[h.PKCE_FLOW_ID_PARAM]);if(t&&await(0,_.getItemAsync)(this.storage,(0,_.pkceVerifierSlotKey)(this.storageKey,t)))return!0;return!!await(0,_.getItemAsync)(this.storage,`${this.storageKey}-code-verifier`)}async signOut(e={scope:'global'}){return await this.initializePromise,null!=this.lock?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(e)):await this._signOut(e)}async _signOut({scope:e}={scope:'global'}){return await this._useSession(async t=>{var s;const r=async()=>{await this._removeSession()},{data:i,error:n}=t;if(n&&!(0,c.isAuthSessionMissingError)(n))return this._returnResult({error:n});const a=null===(s=i.session)||void 0===s?void 0:s.access_token;if(a){const{error:t}=await this.admin.signOut(a,e);if(t&&(!(0,c.isAuthApiError)(t)||404!==t.status&&401!==t.status&&403!==t.status)&&!(0,c.isAuthSessionMissingError)(t))return'others'!==e&&await r(),this._returnResult({error:t})}return'others'!==e&&await r(),this._returnResult({error:null})})}onAuthStateChange(e){const t=(0,_.generateCallbackId)(),s={id:t,callback:e,unsubscribe:()=>{this._debug('#unsubscribe()','state change callback with id removed',t),this.stateChangeEmitters.delete(t)}};return this._debug('#onAuthStateChange()','registered callback with id',t),this.stateChangeEmitters.set(t,s),(async()=>{await this.initializePromise,null!=this.lock?await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(t)}):await this._emitInitialSession(t)})(),{data:{subscription:s}}}async _emitInitialSession(e){return await this._useSession(async t=>{var s,r;try{const{data:{session:r},error:i}=t;if(i)throw i;await(null===(s=this.stateChangeEmitters.get(e))||void 0===s?void 0:s.callback('INITIAL_SESSION',r)),this._debug('INITIAL_SESSION','callback id',e,'session',r)}catch(t){await(null===(r=this.stateChangeEmitters.get(e))||void 0===r?void 0:r.callback('INITIAL_SESSION',null)),this._debug('INITIAL_SESSION','callback id',e,'error',t),(0,c.isAuthSessionMissingError)(t)||(0,c.isAuthRetryableFetchError)(t)||(0,c.isAuthApiError)(t)&&('refresh_token_not_found'===t.code||'refresh_token_already_used'===t.code||'session_expired'===t.code)?console.warn(t):console.error(t)}})}async resetPasswordForEmail(e,t={}){let s=null,r=null,i=null;'pkce'===this.flowType&&([s,r,i]=await this._getCodeChallengeAndMethod(!0));try{return await(0,d._request)(this.fetch,'POST',`${this.url}/recover`,{body:{email:e,code_challenge:s,code_challenge_method:r,gotrue_meta_security:{captcha_token:t.captchaToken}},headers:this.headers,redirectTo:this._maybeAppendFlowIdToRedirect(t.redirectTo,i)})}catch(e){if(await(0,_.removePKCEVerifier)(this.storage,this.storageKey,i),(0,c.isAuthError)(e))return this._returnResult({data:null,error:e});throw e}}async getUserIdentities(){var e;try{const{data:t,error:s}=await this.getUser();if(s)throw s;return this._returnResult({data:{identities:null!==(e=t.user.identities)&&void 0!==e?e:[]},error:null})}catch(e){if((0,c.isAuthError)(e))return this._returnResult({data:null,error:e});throw e}}async linkIdentity(e){return'token'in e?this.linkIdentityIdToken(e):this.linkIdentityOAuth(e)}async linkIdentityOAuth(e){var t;let s=null;try{const{data:r,error:i}=await this._useSession(async t=>{var r,i,n,a,o;const{data:l,error:u}=t;if(u)throw u;const{url:h,flowId:c}=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,e.provider,{redirectTo:null===(r=e.options)||void 0===r?void 0:r.redirectTo,scopes:null===(i=e.options)||void 0===i?void 0:i.scopes,queryParams:null===(n=e.options)||void 0===n?void 0:n.queryParams,skipBrowserRedirect:!0});return s=c,await(0,d._request)(this.fetch,'GET',h,{headers:this.headers,jwt:null!==(o=null===(a=l.session)||void 0===a?void 0:a.access_token)&&void 0!==o?o:void 0})});if(i)throw i;return(0,_.isBrowser)()&&!(null===(t=e.options)||void 0===t?void 0:t.skipBrowserRedirect)&&window.location.assign(null==r?void 0:r.url),this._returnResult({data:{provider:e.provider,url:null==r?void 0:r.url,flowId:s},error:null})}catch(t){if((0,c.isAuthError)(t))return this._returnResult({data:{provider:e.provider,url:null,flowId:s},error:t});throw t}}async linkIdentityIdToken(e){return await this._useSession(async t=>{var s;try{const{error:r,data:{session:i}}=t;if(r)throw r;const{options:n,provider:a,token:o,access_token:l,nonce:u}=e,h=await(0,d._request)(this.fetch,'POST',`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:null!==(s=null==i?void 0:i.access_token)&&void 0!==s?s:void 0,body:{provider:a,id_token:o,access_token:l,nonce:u,link_identity:!0,gotrue_meta_security:{captcha_token:null==n?void 0:n.captchaToken}},xform:d._sessionResponse}),{data:_,error:w}=h;return w?this._returnResult({data:{user:null,session:null},error:w}):_&&_.session&&_.user?(_.session&&(await this._saveSession(_.session),await this._notifyAllSubscribers('USER_UPDATED',_.session)),this._returnResult({data:_,error:w})):this._returnResult({data:{user:null,session:null},error:new c.AuthInvalidTokenResponseError})}catch(e){if(await(0,_.removePKCEVerifier)(this.storage,this.storageKey,null),(0,c.isAuthError)(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}})}async unlinkIdentity(e){try{return await this._useSession(async t=>{var s,r;const{data:i,error:n}=t;if(n)throw n;return await(0,d._request)(this.fetch,'DELETE',`${this.url}/user/identities/${e.identity_id}`,{headers:this.headers,jwt:null!==(r=null===(s=i.session)||void 0===s?void 0:s.access_token)&&void 0!==r?r:void 0})})}catch(e){if((0,c.isAuthError)(e))return this._returnResult({data:null,error:e});throw e}}async _refreshAccessToken(e){const t="#_refreshAccessToken()";this._debug(t,'begin');try{const s=Date.now();return await(0,_.retryable)(async s=>(s>0&&await(0,_.sleep)(200*Math.pow(2,s-1)),this._debug(t,'refreshing attempt',s),await(0,d._request)(this.fetch,'POST',`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:e},headers:this.headers,xform:d._sessionResponse})),(e,t)=>{const r=200*Math.pow(2,e);return t&&(0,c.isAuthRetryableFetchError)(t)&&Date.now()+r-s{});const t=await(0,_.getItemAsync)(this.storage,this.storageKey),{data:s,error:i}=await this._refreshAccessToken(e);if(i)throw i;if(!s.session)throw new c.AuthSessionMissingError;const n=await(0,_.getItemAsync)(this.storage,this.storageKey);if(null!==t&&(null===n||n.refresh_token!==t.refresh_token)){this._debug(r,'commit guard: storage changed since refresh started, discarding rotated tokens',{startedWith:'present',nowHolds:n?'replaced':'cleared'});const e={data:null,error:new c.AuthRefreshDiscardedError};return this.refreshingDeferred.resolve(e),e}const a=this._sessionRemovalEpoch;if(await this._saveSession(s.session),this._sessionRemovalEpoch!==a){this._debug(r,'commit guard (post-save): _removeSession ran during _saveSession, undoing write'),await(0,_.removeItemAsync)(this.storage,this.storageKey),this.userStorage&&await(0,_.removeItemAsync)(this.userStorage,this.storageKey+'-user');const e={data:null,error:new c.AuthRefreshDiscardedError};return this.refreshingDeferred.resolve(e),e}await this._notifyAllSubscribers('TOKEN_REFRESHED',s.session);const o={data:s.session,error:null};return this.lastRefreshFailure=null,this.refreshingDeferred.resolve(o),o}catch(i){if(this._debug(r,'error',i),(0,c.isAuthError)(i)){const s={data:null,error:i};if(!(0,c.isAuthRetryableFetchError)(i)){const e=await(0,_.getItemAsync)(this.storage,this.storageKey);!!((null==e?void 0:e.expires_at)&&1e3*e.expires_at>Date.now())?this._debug(r,'proactive refresh failed, access token still valid \u2014 preserving session'):await this._removeSession()}return this.lastRefreshFailure={refreshToken:e,result:s,expiresAt:Date.now()+h.REFRESH_FAILURE_COOLDOWN_MS},null===(t=this.refreshingDeferred)||void 0===t||t.resolve(s),s}throw null===(s=this.refreshingDeferred)||void 0===s||s.reject(i),i}finally{this.refreshingDeferred=null,this._debug(r,'end')}}async _notifyAllSubscribers(e,t,s=!0){if(null!==this._pendingInitNotifications&&s)return void this._pendingInitNotifications.push({event:e,session:t,broadcast:s});const r=`#_notifyAllSubscribers(${e})`;this._debug(r,'begin',t,`broadcast = ${s}`);try{this.broadcastChannel&&s&&this.broadcastChannel.postMessage({event:e,session:t});const r=[],i=Array.from(this.stateChangeEmitters.values()).map(async s=>{try{await s.callback(e,t)}catch(e){r.push(e)}});if(await Promise.all(i),r.length>0){for(let e=0;ethis._autoRefreshTokenTick(),h.AUTO_REFRESH_TICK_DURATION_MS);this.autoRefreshTicker=e,e&&'object'==typeof e&&'function'==typeof e.unref?e.unref():'undefined'!=typeof Deno&&'function'==typeof Deno.unrefTimer&&Deno.unrefTimer(e);const t=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=t,t&&'object'==typeof t&&'function'==typeof t.unref?t.unref():'undefined'!=typeof Deno&&'function'==typeof Deno.unrefTimer&&Deno.unrefTimer(t)}async _stopAutoRefresh(){this._debug('#_stopAutoRefresh()');const e=this.autoRefreshTicker;this.autoRefreshTicker=null,e&&clearInterval(e);const t=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,t&&clearTimeout(t)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async dispose(){var e;this._removeVisibilityChangedCallback(),await this._stopAutoRefresh(),null===(e=this.broadcastChannel)||void 0===e||e.close(),this.broadcastChannel=null,this.stateChangeEmitters.clear()}async _autoRefreshTokenTick(){if(this._debug('#_autoRefreshTokenTick()','begin'),null==this.lock)if(null===this.refreshingDeferred)try{const e=Date.now();try{await this._useSession(async t=>{const{data:{session:s}}=t;if(!s||!s.refresh_token||!s.expires_at)return void this._debug('#_autoRefreshTokenTick()','no session');const r=Math.floor((1e3*s.expires_at-e)/h.AUTO_REFRESH_TICK_DURATION_MS);this._debug('#_autoRefreshTokenTick()',`access token expires in ${r} ticks, a tick lasts ${h.AUTO_REFRESH_TICK_DURATION_MS}ms, refresh threshold is ${h.AUTO_REFRESH_TICK_THRESHOLD} ticks`),r<=h.AUTO_REFRESH_TICK_THRESHOLD&&await this._callRefreshToken(s.refresh_token)})}catch(e){console.error('Auto refresh tick failed with error. This is likely a transient error.',e)}}finally{this._debug('#_autoRefreshTokenTick()','end')}else this._debug('#_autoRefreshTokenTick()','refresh already in flight, skipping');else try{await this._acquireLock(0,async()=>{try{const e=Date.now();try{return await this._useSession(async t=>{const{data:{session:s}}=t;if(!s||!s.refresh_token||!s.expires_at)return void this._debug('#_autoRefreshTokenTick()','no session');const r=Math.floor((1e3*s.expires_at-e)/h.AUTO_REFRESH_TICK_DURATION_MS);this._debug('#_autoRefreshTokenTick()',`access token expires in ${r} ticks, a tick lasts ${h.AUTO_REFRESH_TICK_DURATION_MS}ms, refresh threshold is ${h.AUTO_REFRESH_TICK_THRESHOLD} ticks`),r<=h.AUTO_REFRESH_TICK_THRESHOLD&&await this._callRefreshToken(s.refresh_token)})}catch(e){console.error('Auto refresh tick failed with error. This is likely a transient error.',e)}}finally{this._debug('#_autoRefreshTokenTick()','end')}})}catch(e){if(!(e instanceof g.LockAcquireTimeoutError))throw e;this._debug('auto refresh token tick lock not available')}}async _handleVisibilityChange(){if(this._debug('#_handleVisibilityChange()'),!(0,_.isBrowser)()||!(null===window||void 0===window?void 0:window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>{try{await this._onVisibilityChanged(!1)}catch(e){this._debug('#visibilityChangedCallback','error',e)}},null===window||void 0===window||window.addEventListener('visibilitychange',this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(e){console.error('_handleVisibilityChange',e)}}async _onVisibilityChanged(e){const t=`#_onVisibilityChanged(${e})`;if(this._debug(t,'visibilityState',document.visibilityState),'visible'===document.visibilityState){if(this.autoRefreshToken&&this._startAutoRefresh(),!e)if(await this.initializePromise,null!=this.lock)await this._acquireLock(this.lockAcquireTimeout,async()=>{'visible'===document.visibilityState?await this._recoverAndRefresh():this._debug(t,'acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting')});else{if('visible'!==document.visibilityState)return void this._debug(t,'visibilityState is no longer visible, skipping recovery');await this._recoverAndRefresh()}}else'hidden'===document.visibilityState&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(e,t,s){let r=null==s?void 0:s.redirectTo,i=null,n=null,a=null;'pkce'===this.flowType&&([i,n,a]=await this._getCodeChallengeAndMethod(),r=this._maybeAppendFlowIdToRedirect(r,a));const o=[`provider=${encodeURIComponent(t)}`];if(r&&o.push(`redirect_to=${encodeURIComponent(r)}`),(null==s?void 0:s.scopes)&&o.push(`scopes=${encodeURIComponent(s.scopes)}`),null!=i&&null!=n){const e=new URLSearchParams({code_challenge:`${encodeURIComponent(i)}`,code_challenge_method:`${encodeURIComponent(n)}`});o.push(e.toString())}if(null==s?void 0:s.queryParams){const e=new URLSearchParams(s.queryParams);o.push(e.toString())}return(null==s?void 0:s.skipBrowserRedirect)&&o.push(`skip_http_redirect=${s.skipBrowserRedirect}`),{url:`${e}?${o.join('&')}`,flowId:a}}_maybeAppendFlowIdToRedirect(e,t){return e&&t&&this.experimental.appendPkceFlowIdToRedirects?(0,_.appendFlowIdToRedirectTo)(e,t):null!=e?e:void 0}async _getCodeChallengeAndMethod(e=!1){return(0,_.getCodeChallengeAndMethod)(this.storage,this.storageKey,e,e=>this._debug('#_getCodeChallengeAndMethod()','evicted oldest pending PKCE verifier slot',e))}async _unenroll(e){try{return await this._useSession(async t=>{var s;const{data:r,error:i}=t;return i?this._returnResult({data:null,error:i}):await(0,d._request)(this.fetch,'DELETE',`${this.url}/factors/${e.factorId}`,{headers:this.headers,jwt:null===(s=null==r?void 0:r.session)||void 0===s?void 0:s.access_token})})}catch(e){if((0,c.isAuthError)(e))return this._returnResult({data:null,error:e});throw e}}async _enroll(e){try{return await this._useSession(async t=>{var s,r;const{data:i,error:n}=t;if(n)return this._returnResult({data:null,error:n});const a=Object.assign({friendly_name:e.friendlyName,factor_type:e.factorType},'phone'===e.factorType?{phone:e.phone}:'totp'===e.factorType?{issuer:e.issuer}:{}),{data:o,error:l}=await(0,d._request)(this.fetch,'POST',`${this.url}/factors`,{body:a,headers:this.headers,jwt:null===(s=null==i?void 0:i.session)||void 0===s?void 0:s.access_token});return l?this._returnResult({data:null,error:l}):('totp'===e.factorType&&'totp'===o.type&&(null===(r=null==o?void 0:o.totp)||void 0===r?void 0:r.qr_code)&&(o.totp.qr_code=`data:image/svg+xml;utf-8,${o.totp.qr_code}`),this._returnResult({data:o,error:null}))})}catch(e){if((0,c.isAuthError)(e))return this._returnResult({data:null,error:e});throw e}}async _verify(e){const t=async()=>{try{return await this._useSession(async t=>{var s;const{data:r,error:i}=t;if(i)return this._returnResult({data:null,error:i});const n=Object.assign({challenge_id:e.challengeId},'webauthn'in e?{webauthn:Object.assign(Object.assign({},e.webauthn),{credential_response:'create'===e.webauthn.type?(0,b.serializeCredentialCreationResponse)(e.webauthn.credential_response):(0,b.serializeCredentialRequestResponse)(e.webauthn.credential_response)})}:{code:e.code}),{data:a,error:o}=await(0,d._request)(this.fetch,'POST',`${this.url}/factors/${e.factorId}/verify`,{body:n,headers:this.headers,jwt:null===(s=null==r?void 0:r.session)||void 0===s?void 0:s.access_token});return o?this._returnResult({data:null,error:o}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+a.expires_in},a)),await this._notifyAllSubscribers('MFA_CHALLENGE_VERIFIED',a),this._returnResult({data:a,error:o}))})}catch(e){if((0,c.isAuthError)(e))return this._returnResult({data:null,error:e});throw e}};return null!=this.lock?this._acquireLock(this.lockAcquireTimeout,t):t()}async _challenge(e){const t=async()=>{try{return await this._useSession(async t=>{var s;const{data:r,error:i}=t;if(i)return this._returnResult({data:null,error:i});const n=await(0,d._request)(this.fetch,'POST',`${this.url}/factors/${e.factorId}/challenge`,{body:e,headers:this.headers,jwt:null===(s=null==r?void 0:r.session)||void 0===s?void 0:s.access_token});if(n.error)return n;const{data:a}=n;if('webauthn'!==a.type)return{data:a,error:null};switch(a.webauthn.type){case'create':return{data:Object.assign(Object.assign({},a),{webauthn:Object.assign(Object.assign({},a.webauthn),{credential_options:Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:(0,b.deserializeCredentialCreationOptions)(a.webauthn.credential_options.publicKey)})})}),error:null};case'request':return{data:Object.assign(Object.assign({},a),{webauthn:Object.assign(Object.assign({},a.webauthn),{credential_options:Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:(0,b.deserializeCredentialRequestOptions)(a.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(e){if((0,c.isAuthError)(e))return this._returnResult({data:null,error:e});throw e}};return null!=this.lock?this._acquireLock(this.lockAcquireTimeout,t):t()}async _challengeAndVerify(e){const{data:t,error:s}=await this._challenge({factorId:e.factorId});return s?this._returnResult({data:null,error:s}):await this._verify({factorId:e.factorId,challengeId:t.id,code:e.code})}async _listFactors(){var e;const{data:{user:t},error:s}=await this.getUser();if(s)return{data:null,error:s};const r={all:[],phone:[],totp:[],webauthn:[]};for(const s of null!==(e=null==t?void 0:t.factors)&&void 0!==e?e:[])r.all.push(s),'verified'===s.status&&r[s.factor_type].push(s);return{data:r,error:null}}async _getAuthenticatorAssuranceLevel(e){var t,s,r,i;if(e)try{const{payload:r}=(0,_.decodeJWT)(e);let i=null;r.aal&&(i=r.aal);let n=i;const{data:{user:a},error:o}=await this.getUser(e);if(o)return this._returnResult({data:null,error:o});(null!==(s=null===(t=null==a?void 0:a.factors)||void 0===t?void 0:t.filter(e=>'verified'===e.status))&&void 0!==s?s:[]).length>0&&(n='aal2');return{data:{currentLevel:i,nextLevel:n,currentAuthenticationMethods:r.amr||[]},error:null}}catch(e){if((0,c.isAuthError)(e))return this._returnResult({data:null,error:e});throw e}const{data:{session:n},error:a}=await this.getSession();if(a)return this._returnResult({data:null,error:a});if(!n)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:o}=(0,_.decodeJWT)(n.access_token);let l=null;o.aal&&(l=o.aal);let u=l;(null!==(i=null===(r=n.user.factors)||void 0===r?void 0:r.filter(e=>'verified'===e.status))&&void 0!==i?i:[]).length>0&&(u='aal2');return{data:{currentLevel:l,nextLevel:u,currentAuthenticationMethods:o.amr||[]},error:null}}async _getAuthorizationDetails(e){try{return await this._useSession(async t=>{const{data:{session:s},error:r}=t;return r?this._returnResult({data:null,error:r}):s?await(0,d._request)(this.fetch,'GET',`${this.url}/oauth/authorizations/${e}`,{headers:this.headers,jwt:s.access_token,xform:e=>({data:e,error:null})}):this._returnResult({data:null,error:new c.AuthSessionMissingError})})}catch(e){if((0,c.isAuthError)(e))return this._returnResult({data:null,error:e});throw e}}async _approveAuthorization(e,t){try{return await this._useSession(async s=>{const{data:{session:r},error:i}=s;if(i)return this._returnResult({data:null,error:i});if(!r)return this._returnResult({data:null,error:new c.AuthSessionMissingError});const n=await(0,d._request)(this.fetch,'POST',`${this.url}/oauth/authorizations/${e}/consent`,{headers:this.headers,jwt:r.access_token,body:{action:'approve'},xform:e=>({data:e,error:null})});return n.data&&n.data.redirect_url&&(0,_.isBrowser)()&&!(null==t?void 0:t.skipBrowserRedirect)&&window.location.assign(n.data.redirect_url),n})}catch(e){if((0,c.isAuthError)(e))return this._returnResult({data:null,error:e});throw e}}async _denyAuthorization(e,t){try{return await this._useSession(async s=>{const{data:{session:r},error:i}=s;if(i)return this._returnResult({data:null,error:i});if(!r)return this._returnResult({data:null,error:new c.AuthSessionMissingError});const n=await(0,d._request)(this.fetch,'POST',`${this.url}/oauth/authorizations/${e}/consent`,{headers:this.headers,jwt:r.access_token,body:{action:'deny'},xform:e=>({data:e,error:null})});return n.data&&n.data.redirect_url&&(0,_.isBrowser)()&&!(null==t?void 0:t.skipBrowserRedirect)&&window.location.assign(n.data.redirect_url),n})}catch(e){if((0,c.isAuthError)(e))return this._returnResult({data:null,error:e});throw e}}async _listOAuthGrants(){try{return await this._useSession(async e=>{const{data:{session:t},error:s}=e;return s?this._returnResult({data:null,error:s}):t?await(0,d._request)(this.fetch,'GET',`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:t.access_token,xform:e=>({data:e,error:null})}):this._returnResult({data:null,error:new c.AuthSessionMissingError})})}catch(e){if((0,c.isAuthError)(e))return this._returnResult({data:null,error:e});throw e}}async _revokeOAuthGrant(e){try{return await this._useSession(async t=>{const{data:{session:s},error:r}=t;return r?this._returnResult({data:null,error:r}):s?(await(0,d._request)(this.fetch,'DELETE',`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:s.access_token,query:{client_id:e.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new c.AuthSessionMissingError})})}catch(e){if((0,c.isAuthError)(e))return this._returnResult({data:null,error:e});throw e}}async fetchJwk(e,t={keys:[]}){let s=t.keys.find(t=>t.kid===e);if(s)return s;const r=Date.now();if(s=this.jwks.keys.find(t=>t.kid===e),s&&this.jwks_cached_at+h.JWKS_TTL>r)return s;const{data:i,error:n}=await(0,d._request)(this.fetch,'GET',`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(n)throw n;return i.keys&&0!==i.keys.length?(this.jwks=i,this.jwks_cached_at=r,s=i.keys.find(t=>t.kid===e),s||null):null}async getClaims(e,t={}){try{let s=e;if(!s){const{data:e,error:t}=await this.getSession();if(t||!e.session)return this._returnResult({data:null,error:t});s=e.session.access_token}const{header:r,payload:i,signature:n,raw:{header:a,payload:o}}=(0,_.decodeJWT)(s);if(!(null==t?void 0:t.allowExpired))try{(0,_.validateExp)(i.exp)}catch(e){throw new c.AuthInvalidJwtError(e instanceof Error?e.message:'JWT validation failed')}const l=r.alg&&!r.alg.startsWith('HS')&&r.kid&&'crypto'in globalThis&&'subtle'in globalThis.crypto?await this.fetchJwk(r.kid,(null==t?void 0:t.keys)?{keys:t.keys}:null==t?void 0:t.jwks):null;if(!l){const{error:e}=await this.getUser(s);if(e)throw e;return{data:{claims:i,header:r,signature:n},error:null}}const u=(0,_.getAlgorithm)(r.alg),h=await crypto.subtle.importKey('jwk',l,u,!0,['verify']);if(!await crypto.subtle.verify(u,h,n,(0,p.stringToUint8Array)(`${a}.${o}`)))throw new c.AuthInvalidJwtError('Invalid JWT signature');return{data:{claims:i,header:r,signature:n},error:null}}catch(e){if((0,c.isAuthError)(e))return this._returnResult({data:null,error:e});throw e}}async signInWithPasskey(e){var t,s,r;(0,_.assertPasskeyExperimentalEnabled)(this.experimental);try{if(!(0,b.browserSupportsWebAuthn)())return this._returnResult({data:null,error:new c.AuthUnknownError('Browser does not support WebAuthn',null)});const{data:i,error:n}=await this._startPasskeyAuthentication({options:{captchaToken:null===(t=null==e?void 0:e.options)||void 0===t?void 0:t.captchaToken}});if(n||!i)return this._returnResult({data:null,error:n});const a=(0,b.deserializeCredentialRequestOptions)(i.options),o=null!==(r=null===(s=null==e?void 0:e.options)||void 0===s?void 0:s.signal)&&void 0!==r?r:b.webAuthnAbortService.createNewAbortSignal(),{data:l,error:u}=await(0,b.getCredential)({publicKey:a,signal:o});if(u||!l)return this._returnResult({data:null,error:null!=u?u:new c.AuthUnknownError('WebAuthn ceremony failed',null)});const h=(0,b.serializeCredentialRequestResponse)(l);return this._verifyPasskeyAuthentication({challengeId:i.challenge_id,credential:h})}catch(e){if((0,c.isAuthError)(e))return this._returnResult({data:null,error:e});throw e}}async registerPasskey(e){var t,s;(0,_.assertPasskeyExperimentalEnabled)(this.experimental);try{if(!(0,b.browserSupportsWebAuthn)())return this._returnResult({data:null,error:new c.AuthUnknownError('Browser does not support WebAuthn',null)});const{data:r,error:i}=await this._startPasskeyRegistration();if(i||!r)return this._returnResult({data:null,error:i});const n=(0,b.deserializeCredentialCreationOptions)(r.options),a=null!==(s=null===(t=null==e?void 0:e.options)||void 0===t?void 0:t.signal)&&void 0!==s?s:b.webAuthnAbortService.createNewAbortSignal(),{data:o,error:l}=await(0,b.createCredential)({publicKey:n,signal:a});if(l||!o)return this._returnResult({data:null,error:null!=l?l:new c.AuthUnknownError('WebAuthn ceremony failed',null)});const u=(0,b.serializeCredentialCreationResponse)(o);return this._verifyPasskeyRegistration({challengeId:r.challenge_id,credential:u})}catch(e){if((0,c.isAuthError)(e))return this._returnResult({data:null,error:e});throw e}}async _startPasskeyRegistration(){(0,_.assertPasskeyExperimentalEnabled)(this.experimental);try{return await this._useSession(async e=>{const{data:{session:t},error:s}=e;if(s)return this._returnResult({data:null,error:s});if(!t)return this._returnResult({data:null,error:new c.AuthSessionMissingError});const{data:r,error:i}=await(0,d._request)(this.fetch,'POST',`${this.url}/passkeys/registration/options`,{headers:this.headers,jwt:t.access_token,body:{}});return i?this._returnResult({data:null,error:i}):this._returnResult({data:r,error:null})})}catch(e){if((0,c.isAuthError)(e))return this._returnResult({data:null,error:e});throw e}}async _verifyPasskeyRegistration(e){(0,_.assertPasskeyExperimentalEnabled)(this.experimental);try{return await this._useSession(async t=>{const{data:{session:s},error:r}=t;if(r)return this._returnResult({data:null,error:r});if(!s)return this._returnResult({data:null,error:new c.AuthSessionMissingError});const{data:i,error:n}=await(0,d._request)(this.fetch,'POST',`${this.url}/passkeys/registration/verify`,{headers:this.headers,jwt:s.access_token,body:{challenge_id:e.challengeId,credential:e.credential}});return n?this._returnResult({data:null,error:n}):this._returnResult({data:i,error:null})})}catch(e){if((0,c.isAuthError)(e))return this._returnResult({data:null,error:e});throw e}}async _startPasskeyAuthentication(e){var t;(0,_.assertPasskeyExperimentalEnabled)(this.experimental);try{const{data:s,error:r}=await(0,d._request)(this.fetch,'POST',`${this.url}/passkeys/authentication/options`,{headers:this.headers,body:{gotrue_meta_security:{captcha_token:null===(t=null==e?void 0:e.options)||void 0===t?void 0:t.captchaToken}}});return r?this._returnResult({data:null,error:r}):this._returnResult({data:s,error:null})}catch(e){if((0,c.isAuthError)(e))return this._returnResult({data:null,error:e});throw e}}async _verifyPasskeyAuthentication(e){(0,_.assertPasskeyExperimentalEnabled)(this.experimental);try{const{data:t,error:s}=await(0,d._request)(this.fetch,'POST',`${this.url}/passkeys/authentication/verify`,{headers:this.headers,body:{challenge_id:e.challengeId,credential:e.credential},xform:d._sessionResponse});return s?this._returnResult({data:null,error:s}):(t.session&&(await this._saveSession(t.session),await this._notifyAllSubscribers('SIGNED_IN',t.session)),this._returnResult({data:t,error:null}))}catch(e){if((0,c.isAuthError)(e))return this._returnResult({data:null,error:e});throw e}}async _listPasskeys(){(0,_.assertPasskeyExperimentalEnabled)(this.experimental);try{return await this._useSession(async e=>{const{data:{session:t},error:s}=e;if(s)return this._returnResult({data:null,error:s});if(!t)return this._returnResult({data:null,error:new c.AuthSessionMissingError});const{data:r,error:i}=await(0,d._request)(this.fetch,'GET',`${this.url}/passkeys`,{headers:this.headers,jwt:t.access_token,xform:e=>({data:e,error:null})});return i?this._returnResult({data:null,error:i}):this._returnResult({data:r,error:null})})}catch(e){if((0,c.isAuthError)(e))return this._returnResult({data:null,error:e});throw e}}async _updatePasskey(e){(0,_.assertPasskeyExperimentalEnabled)(this.experimental);try{return await this._useSession(async t=>{const{data:{session:s},error:r}=t;if(r)return this._returnResult({data:null,error:r});if(!s)return this._returnResult({data:null,error:new c.AuthSessionMissingError});const{data:i,error:n}=await(0,d._request)(this.fetch,'PATCH',`${this.url}/passkeys/${e.passkeyId}`,{headers:this.headers,jwt:s.access_token,body:{friendly_name:e.friendlyName}});return n?this._returnResult({data:null,error:n}):this._returnResult({data:i,error:null})})}catch(e){if((0,c.isAuthError)(e))return this._returnResult({data:null,error:e});throw e}}async _deletePasskey(e){(0,_.assertPasskeyExperimentalEnabled)(this.experimental);try{return await this._useSession(async t=>{const{data:{session:s},error:r}=t;if(r)return this._returnResult({data:null,error:r});if(!s)return this._returnResult({data:null,error:new c.AuthSessionMissingError});const{error:i}=await(0,d._request)(this.fetch,'DELETE',`${this.url}/passkeys/${e.passkeyId}`,{headers:this.headers,jwt:s.access_token,noResolveJson:!0});return i?this._returnResult({data:null,error:i}):this._returnResult({data:null,error:null})})}catch(e){if((0,c.isAuthError)(e))return this._returnResult({data:null,error:e});throw e}}}A.nextInstanceID={};var S=A},817,[809,811,814,810,813,818,819,820,812,815,821,822]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.memoryLocalStorageAdapter=function(t={}){return{getItem:o=>t[o]||null,setItem:(o,n)=>{t[o]=n},removeItem:o=>{delete t[o]}}}},818,[]); +__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"internals",{enumerable:!0,get:function(){return o}}),Object.defineProperty(_e,"LockAcquireTimeoutError",{enumerable:!0,get:function(){return t}}),Object.defineProperty(_e,"NavigatorLockAcquireTimeoutError",{enumerable:!0,get:function(){return n}}),Object.defineProperty(_e,"ProcessLockAcquireTimeoutError",{enumerable:!0,get:function(){return s}}),_e.navigatorLock=async function(e,t,s){o.debug&&console.log('@supabase/gotrue-js: navigatorLock: acquire lock',e,t);const c=new globalThis.AbortController;let l;t>0&&(l=setTimeout(()=>{c.abort(),o.debug&&console.log('@supabase/gotrue-js: navigatorLock acquire timed out',e)},t));await Promise.resolve();try{return await globalThis.navigator.locks.request(e,0===t?{mode:'exclusive',ifAvailable:!0}:{mode:'exclusive',signal:c.signal},async c=>{if(!c){if(0===t)throw o.debug&&console.log('@supabase/gotrue-js: navigatorLock: not immediately available',e),new n(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(o.debug)try{const e=await globalThis.navigator.locks.query();console.log('@supabase/gotrue-js: Navigator LockManager state',JSON.stringify(e,null,' '))}catch(e){console.warn('@supabase/gotrue-js: Error when querying Navigator LockManager state',e)}return console.warn('@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request'),clearTimeout(l),await s()}clearTimeout(l),o.debug&&console.log('@supabase/gotrue-js: navigatorLock: acquired',e,c.name);try{return await s()}finally{o.debug&&console.log('@supabase/gotrue-js: navigatorLock: released',e,c.name)}})}catch(u){if(clearTimeout(l),null!==u&&'object'==typeof u&&'name'in u&&'AbortError'===u.name){if(c.signal.aborted)return o.debug&&console.log('@supabase/gotrue-js: navigatorLock: acquire timeout, recovering by stealing lock',e),console.warn(`@supabase/gotrue-js: Lock "${e}" was not released within ${t}ms. This may indicate an orphaned lock from a component unmount (e.g., React Strict Mode). Forcefully acquiring the lock to recover.`),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,{mode:'exclusive',steal:!0},async t=>{if(!t)return console.warn('@supabase/gotrue-js: Navigator LockManager returned null lock even with steal: true'),await s();o.debug&&console.log('@supabase/gotrue-js: navigatorLock: recovered (stolen)',e,t.name);try{return await s()}finally{o.debug&&console.log('@supabase/gotrue-js: navigatorLock: released (stolen)',e,t.name)}}));throw o.debug&&console.log('@supabase/gotrue-js: navigatorLock: lock was stolen by another request',e),new n(`Lock "${e}" was released because another request stole it`)}throw u}},_e.processLock=async function(e,o,n){var l;const u=null!==(l=c[e])&&void 0!==l?l:Promise.resolve(),b=(async()=>{try{return await u,null}catch(e){return null}})(),k=(async()=>{let c=null;try{const t=o>=0?new Promise((t,n)=>{c=setTimeout(()=>{console.warn(`@supabase/gotrue-js: Lock "${e}" acquisition timed out after ${o}ms. This may be caused by another operation holding the lock. Consider increasing lockAcquireTimeout or checking for stuck operations.`),n(new s(`Acquiring process lock with name "${e}" timed out`))},o)}):null;await Promise.race([b,t].filter(e=>e)),null!==c&&clearTimeout(c)}catch(e){if(null!==c&&clearTimeout(c),e instanceof t)throw e}return await n()})();return c[e]=(async()=>{try{return await k}catch(e){if(e instanceof t){try{await u}catch(e){}return null}throw e}})(),await k};var e=r(d[0]);const o={debug:!!(globalThis&&(0,e.supportsLocalStorage)()&&globalThis.localStorage&&'true'===globalThis.localStorage.getItem('supabase.gotrue-js.locks.debug'))};class t extends Error{constructor(e){super(e),this.isAcquireTimeout=!0}}class n extends t{}class s extends t{}const c={}},819,[813]); +__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.polyfillGlobalThis=function(){if('object'==typeof globalThis)return;try{Object.defineProperty(Object.prototype,'__magic__',{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch(e){'undefined'!=typeof self&&(self.globalThis=self)}}},820,[]); +__d(function(g,r,i,a,m,e,d){"use strict";function t(t){if(!/^0x[a-fA-F0-9]{40}$/.test(t))throw new Error(`@supabase/auth-js: Address "${t}" is invalid.`);return t.toLowerCase()}Object.defineProperty(e,'__esModule',{value:!0}),e.getAddress=t,e.fromHex=function(t){return parseInt(t,16)},e.toHex=function(t){const n=(new TextEncoder).encode(t);return'0x'+Array.from(n,t=>t.toString(16).padStart(2,'0')).join('')},e.createSiweMessage=function(n){var s;const{chainId:o,domain:u,expirationTime:c,issuedAt:l=new Date,nonce:f,notBefore:I,requestId:v,resources:h,scheme:$,uri:w,version:E}=n;if(!Number.isInteger(o))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${o}`);if(!u)throw new Error("@supabase/auth-js: Invalid SIWE message field \"domain\". Domain must be provided.");if(f&&f.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${f}`);if(!w)throw new Error("@supabase/auth-js: Invalid SIWE message field \"uri\". URI must be provided.");if('1'!==E)throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${E}`);if(null===(s=n.statement)||void 0===s?void 0:s.includes('\n'))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${n.statement}`);const S=t(n.address),b=$?`${$}://${u}`:u,p=n.statement?`${n.statement}\n`:'',j=`${b} wants you to sign in with your Ethereum account:\n${S}\n\n${p}`;let x=`URI: ${w}\nVersion: ${E}\nChain ID: ${o}${f?`\nNonce: ${f}`:''}\nIssued At: ${l.toISOString()}`;c&&(x+=`\nExpiration Time: ${c.toISOString()}`);I&&(x+=`\nNot Before: ${I.toISOString()}`);v&&(x+=`\nRequest ID: ${v}`);if(h){let t='\nResources:';for(const n of h){if(!n||'string'!=typeof n)throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${n}`);t+=`\n- ${n}`}x+=t}return`${j}\n${x}`}},821,[]); +__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"WebAuthnError",{enumerable:!0,get:function(){return l.WebAuthnError}}),Object.defineProperty(e,"isWebAuthnError",{enumerable:!0,get:function(){return l.isWebAuthnError}}),Object.defineProperty(e,"identifyRegistrationError",{enumerable:!0,get:function(){return l.identifyRegistrationError}}),Object.defineProperty(e,"identifyAuthenticationError",{enumerable:!0,get:function(){return l.identifyAuthenticationError}}),Object.defineProperty(e,"WebAuthnAbortService",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"webAuthnAbortService",{enumerable:!0,get:function(){return u}}),e.deserializeCredentialCreationOptions=function(i){if(!i)throw new Error('Credential creation options are required');if('undefined'!=typeof PublicKeyCredential&&'parseCreationOptionsFromJSON'in PublicKeyCredential&&'function'==typeof PublicKeyCredential.parseCreationOptionsFromJSON)return PublicKeyCredential.parseCreationOptionsFromJSON(i);const{challenge:o,user:l,excludeCredentials:s}=i,u=(0,t.__rest)(i,["challenge","user","excludeCredentials"]),c=(0,n.base64UrlToUint8Array)(o).buffer,f=Object.assign(Object.assign({},l),{id:(0,n.base64UrlToUint8Array)(l.id).buffer}),h=Object.assign(Object.assign({},u),{challenge:c,user:f});if(s&&s.length>0){h.excludeCredentials=new Array(s.length);for(let t=0;t0){c.allowCredentials=new Array(l.length);for(let t=0;tnull!==t&&'object'==typeof t&&!Array.isArray(t),i=t=>t instanceof ArrayBuffer||ArrayBuffer.isView(t),o={};for(const l of t)if(l)for(const t in l){const s=l[t];if(void 0!==s)if(Array.isArray(s))o[t]=s;else if(i(s))o[t]=s;else if(n(s)){const i=o[t];n(i)?o[t]=p(i,s):o[t]=p(s)}else o[t]=s}return o}function w(t,n){return p(b,t,n||{})}function A(t,n){return p(y,t,n||{})}class O{constructor(t){this.client=t,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(t){return this.client.mfa.enroll(Object.assign(Object.assign({},t),{factorType:'webauthn'}))}async _challenge({factorId:t,webauthn:n,friendlyName:o,signal:l},s){var c;try{const{data:i,error:b}=await this.client.mfa.challenge({factorId:t,webauthn:n});if(!i)return{data:null,error:b};const y=null!=l?l:u.createNewAbortSignal();if('create'===i.webauthn.type){const{user:t}=i.webauthn.credential_options.publicKey;if(!t.name){const n=o;if(n)t.name=`${t.id}:${n}`;else{const n=(await this.client.getUser()).data.user,i=(null===(c=null==n?void 0:n.user_metadata)||void 0===c?void 0:c.name)||(null==n?void 0:n.email)||(null==n?void 0:n.id)||'User';t.name=`${t.id}:${i}`}}t.displayName||(t.displayName=t.name)}switch(i.webauthn.type){case'create':{const n=w(i.webauthn.credential_options.publicKey,null==s?void 0:s.create),{data:o,error:l}=await f({publicKey:n,signal:y});return o?{data:{factorId:t,challengeId:i.id,webauthn:{type:i.webauthn.type,credential_response:o}},error:null}:{data:null,error:l}}case'request':{const n=A(i.webauthn.credential_options.publicKey,null==s?void 0:s.request),{data:o,error:l}=await h(Object.assign(Object.assign({},i.webauthn.credential_options),{publicKey:n,signal:y}));return o?{data:{factorId:t,challengeId:i.id,webauthn:{type:i.webauthn.type,credential_response:o}},error:null}:{data:null,error:l}}}}catch(t){return(0,i.isAuthError)(t)?{data:null,error:t}:{data:null,error:new i.AuthUnknownError('Unexpected error in challenge',t)}}}async _verify({challengeId:t,factorId:n,webauthn:i}){return this.client.mfa.verify({factorId:n,challengeId:t,webauthn:i})}async _authenticate({factorId:t,webauthn:{rpId:n=('undefined'!=typeof window?window.location.hostname:void 0),rpOrigins:o=('undefined'!=typeof window?[window.location.origin]:void 0),signal:l}={}},s){if(!n)return{data:null,error:new i.AuthError('rpId is required for WebAuthn authentication')};try{if(!c())return{data:null,error:new i.AuthUnknownError('Browser does not support WebAuthn',null)};const{data:u,error:f}=await this.challenge({factorId:t,webauthn:{rpId:n,rpOrigins:o},signal:l},{request:s});if(!u)return{data:null,error:f};const{webauthn:h}=u;return this._verify({factorId:t,challengeId:u.challengeId,webauthn:{type:h.type,rpId:n,rpOrigins:o,credential_response:h.credential_response}})}catch(t){return(0,i.isAuthError)(t)?{data:null,error:t}:{data:null,error:new i.AuthUnknownError('Unexpected error in authenticate',t)}}}async _register({friendlyName:t,webauthn:{rpId:n=('undefined'!=typeof window?window.location.hostname:void 0),rpOrigins:o=('undefined'!=typeof window?[window.location.origin]:void 0),signal:l}={}},s){if(!n)return{data:null,error:new i.AuthError('rpId is required for WebAuthn registration')};try{if(!c())return{data:null,error:new i.AuthUnknownError('Browser does not support WebAuthn',null)};const{data:u,error:f}=await this._enroll({friendlyName:t});if(!u)return await this.client.mfa.listFactors().then(n=>{var i;return null===(i=n.data)||void 0===i?void 0:i.all.find(n=>'webauthn'===n.factor_type&&n.friendly_name===t&&'unverified'!==n.status)}).then(t=>t?this.client.mfa.unenroll({factorId:null==t?void 0:t.id}):void 0),{data:null,error:f};const{data:h,error:b}=await this._challenge({factorId:u.id,friendlyName:u.friendly_name,webauthn:{rpId:n,rpOrigins:o},signal:l},{create:s});return h?this._verify({factorId:u.id,challengeId:h.challengeId,webauthn:{rpId:n,rpOrigins:o,type:h.webauthn.type,credential_response:h.webauthn.credential_response}}):{data:null,error:b}}catch(t){return(0,i.isAuthError)(t)?{data:null,error:t}:{data:null,error:new i.AuthUnknownError('Unexpected error in register',t)}}}}},822,[787,815,814,813,823]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"WebAuthnError",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"WebAuthnUnknownError",{enumerable:!0,get:function(){return t}}),e.isWebAuthnError=function(n){return'object'==typeof n&&null!==n&&'__isWebAuthnError'in n},e.identifyRegistrationError=function({error:t,options:s}){var u,c,R;const{publicKey:E}=s;if(!E)throw Error('options was missing required publicKey property');if('AbortError'===t.name){if(s.signal instanceof AbortSignal)return new o({message:'Registration ceremony was sent an abort signal',code:'ERROR_CEREMONY_ABORTED',cause:t})}else if('ConstraintError'===t.name){if(!0===(null===(u=E.authenticatorSelection)||void 0===u?void 0:u.requireResidentKey))return new o({message:'Discoverable credentials were required but no available authenticator supported it',code:'ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT',cause:t});if('conditional'===s.mediation&&'required'===(null===(c=E.authenticatorSelection)||void 0===c?void 0:c.userVerification))return new o({message:'User verification was required during automatic registration but it could not be performed',code:'ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE',cause:t});if('required'===(null===(R=E.authenticatorSelection)||void 0===R?void 0:R.userVerification))return new o({message:'User verification was required but no available authenticator supported it',code:'ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT',cause:t})}else{if('InvalidStateError'===t.name)return new o({message:'The authenticator was previously registered',code:'ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED',cause:t});if('NotAllowedError'===t.name)return new o({message:t.message,code:'ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY',cause:t});if('NotSupportedError'===t.name){return 0===E.pubKeyCredParams.filter(n=>'public-key'===n.type).length?new o({message:'No entry in pubKeyCredParams was of type "public-key"',code:'ERROR_MALFORMED_PUBKEYCREDPARAMS',cause:t}):new o({message:'No available authenticator supported any of the specified pubKeyCredParams algorithms',code:'ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG',cause:t})}if('SecurityError'===t.name){const s=window.location.hostname;if(!(0,n.isValidDomain)(s))return new o({message:`${window.location.hostname} is an invalid domain`,code:'ERROR_INVALID_DOMAIN',cause:t});if(E.rp.id!==s)return new o({message:`The RP ID "${E.rp.id}" is invalid for this domain`,code:'ERROR_INVALID_RP_ID',cause:t})}else if('TypeError'===t.name){if(E.user.id.byteLength<1||E.user.id.byteLength>64)return new o({message:'User ID was not between 1 and 64 characters',code:'ERROR_INVALID_USER_ID_LENGTH',cause:t})}else if('UnknownError'===t.name)return new o({message:'The authenticator was unable to process the specified options, or could not create a new credential',code:'ERROR_AUTHENTICATOR_GENERAL_ERROR',cause:t})}return new o({message:'a Non-Webauthn related error has occurred',code:'ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY',cause:t})},e.identifyAuthenticationError=function({error:t,options:s}){const{publicKey:u}=s;if(!u)throw Error('options was missing required publicKey property');if('AbortError'===t.name){if(s.signal instanceof AbortSignal)return new o({message:'Authentication ceremony was sent an abort signal',code:'ERROR_CEREMONY_ABORTED',cause:t})}else{if('NotAllowedError'===t.name)return new o({message:t.message,code:'ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY',cause:t});if('SecurityError'===t.name){const s=window.location.hostname;if(!(0,n.isValidDomain)(s))return new o({message:`${window.location.hostname} is an invalid domain`,code:'ERROR_INVALID_DOMAIN',cause:t});if(u.rpId!==s)return new o({message:`The RP ID "${u.rpId}" is invalid for this domain`,code:'ERROR_INVALID_RP_ID',cause:t})}else if('UnknownError'===t.name)return new o({message:'The authenticator was unable to process the specified options, or could not create a new assertion signature',code:'ERROR_AUTHENTICATOR_GENERAL_ERROR',cause:t})}return new o({message:'a Non-Webauthn related error has occurred',code:'ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY',cause:t})};var n=r(d[0]);class o extends Error{constructor({message:n,code:o,cause:t,name:s}){var u;super(n,{cause:t}),this.__isWebAuthnError=!0,this.name=null!==(u=null!=s?s:t instanceof Error?t.name:void 0)&&void 0!==u?u:'Unknown Error',this.code=o}toJSON(){return{name:this.name,message:this.message,code:this.code}}}class t extends o{constructor(n,o){super({code:'ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY',cause:o,message:n}),this.name='WebAuthnUnknownError',this.originalError=o}}},823,[822]); +__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},824,[809]); +__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},825,[817]); +__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.readSync=function(t){if(n.has(t))return n.get(t);{const e=o(t);if(e)try{const o=JSON.parse(e);return n.set(t,o),o}catch{}}return null},_e.write=function(t,e){n.set(t,e);const o=JSON.stringify(e);c(t,o)},_e.drop=function(t){n.delete(t);try{globalThis.localStorage?.removeItem(t)}catch{}},_e.hydrate=async function(t){return},Object.defineProperty(_e,"K",{enumerable:!0,get:function(){return u}});var t,e=r(d[0]);(t=e)&&t.__esModule;r(d[1]);const n=new Map;function o(t){try{return globalThis.localStorage?.getItem(t)??null}catch{return null}}function c(t,e){try{globalThis.localStorage?.setItem(t,e)}catch{}}const u={feed:'pu.feed.v1',sports:'pu.sports.v1',mySports:'pu.mysports.v1',profile:'pu.profile.v1'}},826,[777,235]); +__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.pendingRef=f,_e.clearRef=s,_e.captureRefFromUrl=w,_e.referrerUsername=async function(t){const n=l(t);if(!n)return null;try{const{data:t,error:c}=await e.supabase.rpc('referrer_for_code',{code:n});return c?null:'string'==typeof t&&t.length?t:null}catch{return null}},_e.attachReferral=async function(){const t=await f();if(!t)return!1;try{const{data:n,error:c}=await e.supabase.rpc('attach_referral',{code:t});return c?(console.warn('[referral] attach_referral failed:',c.message),!1):(await s(),!0===n)}catch(e){return console.warn('[referral] attach_referral threw:',e),!1}},r(_d[0]),r(_d[1]);!(function(e){if(e&&e.__esModule)return e;var t={};e&&Object.keys(e).forEach(function(n){var c=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,c.get?c:{enumerable:!0,get:function(){return e[n]}})}),t.default=e})(r(_d[2]));var e=r(_d[3]);const t='pullup.ref',n=/^[a-z0-9]{4,12}$/;let c=null,o=!1;function l(e){if(!e)return null;const t=String(e).trim().toLowerCase();return n.test(t)?t:null}async function u(e){c=e,o=!0;try{window.localStorage.setItem(t,e)}catch{}}async function f(){if(o)return c;try{const e=window.localStorage.getItem(t);c=l(e)}catch{c=null}return o=!0,c}async function s(){c=null,o=!0;try{window.localStorage.removeItem(t)}catch{}}function w(){{if('undefined'==typeof window||!window.location)return c;let e=null;try{e=l(new URLSearchParams(window.location.search).get('ref'))}catch{e=null}return e&&u(e),e??c}}w()},827,[235,777,503,770]); +__d(function(g,r,i,a,m,_e,d){"use strict";const e=["label","hint","error","style"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.Button=function({label:e,onPress:t,variant:n="primary",busy:s,disabled:u,style:b}){const h=u||s;return(0,p.jsx)(l.default,{accessibilityRole:"button",accessibilityState:{disabled:!!h,busy:!!s},onPress:h?void 0:t,style:({pressed:e})=>[y.btn,'primary'===n&&y.btnPrimary,'ghost'===n&&y.btnGhost,'danger'===n&&y.btnDanger,h&&{opacity:.5},e&&!h&&{transform:[{scale:.985}]},b],children:s?(0,p.jsx)(o.default,{color:'primary'===n?f.c.onInk:f.c.text}):(0,p.jsx)(c.default,{style:[y.btnLabel,'primary'===n&&{color:f.c.onInk},'danger'===n&&{color:f.c.danger}],numberOfLines:1,children:e})})},_e.Field=function(t){let{label:o,hint:l,error:s,style:h}=t,x=(0,n.default)(t,e);return(0,p.jsxs)(b.default,{style:{marginBottom:(0,f.sp)(4)},children:[(0,p.jsx)(c.default,{style:y.fieldLabel,children:o}),(0,p.jsx)(u.default,Object.assign({placeholderTextColor:f.c.faint,style:[y.input,!!s&&{borderColor:f.c.danger},h]},x)),!!s&&(0,p.jsx)(c.default,{style:y.err,children:s}),!s&&!!l&&(0,p.jsx)(c.default,{style:y.hint,children:l})]})},_e.Card=function({children:e,onPress:t,style:n}){const o=(0,p.jsx)(b.default,{style:[y.card,n],children:e});return t?(0,p.jsx)(l.default,{onPress:t,style:({pressed:e})=>e&&{opacity:.85},accessibilityRole:"button",children:o}):o},_e.Chip=function({label:e,active:t,onPress:n}){return(0,p.jsx)(l.default,{onPress:n,accessibilityRole:"button",accessibilityState:{selected:!!t},style:[y.chip,t&&{borderColor:f.c.lineStrong,backgroundColor:f.c.surfaceUp}],children:(0,p.jsx)(c.default,{style:[y.chipText,t&&{color:f.c.text,fontWeight:'700'}],numberOfLines:1,children:e})})},_e.Empty=function({title:e,body:t,action:n}){return(0,p.jsxs)(b.default,{style:y.empty,children:[(0,p.jsx)(c.default,{style:[f.type.h2,{textAlign:'center'}],children:e}),(0,p.jsx)(c.default,{style:[f.type.small,{textAlign:'center',marginTop:(0,f.sp)(2),maxWidth:320}],children:t}),!!n&&(0,p.jsx)(b.default,{style:{marginTop:(0,f.sp)(5)},children:n})]})},_e.Loading=function(){return(0,p.jsx)(b.default,{style:y.center,children:(0,p.jsx)(o.default,{color:f.c.muted})})};var n=t(r(d[0]));r(d[1]);var o=t(r(d[2])),l=t(r(d[3])),s=t(r(d[4])),c=t(r(d[5])),u=t(r(d[6])),b=t(r(d[7])),f=r(d[8]),p=r(d[9]);const y=s.default.create({btn:{minHeight:f.TAP,paddingHorizontal:(0,f.sp)(5),borderRadius:f.radius.md,alignItems:'center',justifyContent:'center',flexDirection:'row',borderWidth:1,borderColor:'transparent'},btnPrimary:{backgroundColor:f.c.ink},btnGhost:{backgroundColor:'transparent',borderColor:f.c.lineStrong},btnDanger:{backgroundColor:'transparent',borderColor:'rgba(255,107,107,0.4)'},btnLabel:{fontSize:16,fontWeight:'700',color:f.c.text},fieldLabel:Object.assign({},f.type.small,{color:f.c.text,fontWeight:'600',marginBottom:(0,f.sp)(2)}),input:{minHeight:f.TAP,backgroundColor:f.c.surface,borderWidth:1,borderColor:f.c.line,borderRadius:f.radius.md,paddingHorizontal:(0,f.sp)(4),fontSize:16,color:f.c.text},hint:Object.assign({},f.type.small,{fontSize:13,color:f.c.faint,marginTop:(0,f.sp)(1.5)}),err:Object.assign({},f.type.small,{fontSize:13,color:f.c.danger,marginTop:(0,f.sp)(1.5)}),card:{backgroundColor:f.c.surface,borderWidth:1,borderColor:f.c.line,borderRadius:f.radius.lg,padding:(0,f.sp)(4)},chip:{minHeight:40,paddingHorizontal:(0,f.sp)(4),justifyContent:'center',borderRadius:f.radius.pill,borderWidth:1,borderColor:f.c.line,backgroundColor:f.c.surface,marginRight:(0,f.sp)(2)},chipText:{fontSize:14,color:f.c.muted},empty:{alignItems:'center',justifyContent:'center',paddingVertical:(0,f.sp)(16),paddingHorizontal:(0,f.sp)(6)},center:{flex:1,alignItems:'center',justifyContent:'center',backgroundColor:f.c.bg}})},828,[19,11,339,354,23,300,364,85,829,6]); +__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"c",{enumerable:!0,get:function(){return o}}),Object.defineProperty(_e,"sp",{enumerable:!0,get:function(){return c}}),Object.defineProperty(_e,"radius",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e,"type",{enumerable:!0,get:function(){return s}}),Object.defineProperty(_e,"TAP",{enumerable:!0,get:function(){return p}}),Object.defineProperty(_e,"SHELL",{enumerable:!0,get:function(){return b}}),_e.useBp=function(){const{width:e}=(0,n.default)(),t=e>=1e3?'desktop':e>=700?'tablet':'phone';return{bp:t,wide:'phone'!==t,width:e}},r(d[0]);var e,t=r(d[1]),n=(e=t)&&e.__esModule?e:{default:e};const o={bg:'#0C0C0E',surface:'#141417',surfaceUp:'#1B1B1F',surfaceTop:'#232328',line:'rgba(255,255,255,0.07)',lineStrong:'rgba(255,255,255,0.14)',ink:'#EDEDEF',onInk:'#0C0C0E',accent:'#8FE388',accentDim:'#5FB85C',accentGlow:'rgba(143,227,136,0.13)',onAccent:'#08170A',text:'#EDEDEF',muted:'#9797A0',faint:'#63636D',warn:'#E8B457',danger:'#E88585'},c=e=>4*e,l={sm:10,md:14,lg:18,xl:26,pill:999},f='Archivo, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',u={fontVariationSettings:'"wdth" 112'},s={hero:Object.assign({fontFamily:f,fontSize:44,fontWeight:'800',letterSpacing:-1.2,lineHeight:46,color:o.text},{fontVariationSettings:'"wdth" 120'}),display:Object.assign({fontFamily:f,fontSize:30,fontWeight:'800',letterSpacing:-.7,lineHeight:34,color:o.text},u),h1:Object.assign({fontFamily:f,fontSize:23,fontWeight:'800',letterSpacing:-.4,color:o.text},u),h2:{fontFamily:f,fontSize:18,fontWeight:'700',letterSpacing:-.2,color:o.text},body:{fontFamily:f,fontSize:16,fontWeight:'400',color:o.text},small:{fontFamily:f,fontSize:14,fontWeight:'400',color:o.muted},label:Object.assign({fontFamily:f,fontSize:11,fontWeight:'800',letterSpacing:1.4,color:o.faint},u),mono:{fontFamily:'ui-monospace, SFMono-Regular, Menlo, monospace',fontSize:13,color:o.muted}},p=48,b=1080},829,[235,379]); +__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 y}});var t=r(d[0]),n=e(r(d[1])),s=e(r(d[2])),o=r(d[3]),u=r(d[4]),l=r(d[5]),c=r(d[6]),p=r(d[7]),f=r(d[8]),h=r(d[9]);function y(){const{session:e,refreshProfile:y}=(0,l.useAuth)(),b=(0,o.useRouter)(),[j,w]=(0,t.useState)(''),[x,T]=(0,t.useState)(!1),[_,C]=(0,t.useState)(null);async function S(){const t=j.trim().toLowerCase();if(C(null),!/^[a-z0-9_]{2,24}$/.test(t))return C('Letters, numbers and underscores. 2 to 24 characters.');T(!0);const{error:n}=await u.supabase.from('profiles').insert({id:e.user.id,username:t});if(T(!1),n)return C('23505'===n.code?'Someone already has that one. Try another.':n.message);try{await(0,c.attachReferral)()}catch(e){console.warn('[referral] attach after signup failed:',e)}await y(),b.replace('/onboarding')}return(0,h.jsxs)(s.default,{style:{flex:1,backgroundColor:f.c.bg,padding:(0,f.sp)(6),paddingTop:(0,f.sp)(20)},children:[(0,h.jsx)(n.default,{style:f.type.display,children:"Pick a handle."}),(0,h.jsx)(n.default,{style:[f.type.small,{marginTop:(0,f.sp)(2),marginBottom:(0,f.sp)(8),fontSize:16}],children:"This is what people see when you post or join a game. You can change it later."}),(0,h.jsx)(p.Field,{label:"Username",value:j,onChangeText:w,autoCapitalize:"none",autoCorrect:!1,placeholder:"e.g. mayaplays",maxLength:24,error:_,hint:"Lowercase letters, numbers and underscores.",onSubmitEditing:S,returnKeyType:"go"}),(0,h.jsx)(p.Button,{label:"Continue",onPress:S,busy:x,style:{marginTop:(0,f.sp)(2)}})]})}},830,[11,300,85,13,770,769,827,828,829,6]); +__d(function(g,r,i,a,m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return T}});var t=r(_d[0]),l=e(r(_d[1])),s=e(r(_d[2])),n=e(r(_d[3])),o=e(r(_d[4])),d=r(_d[5]),c=r(_d[6]),u=r(_d[7]),h=r(_d[8]),p=r(_d[9]),f=r(_d[10]),x=r(_d[11]),y=r(_d[12]),b=r(_d[13]);const j=['beginner','intermediate','advanced'],S=['morning','afternoon','evening','any'];function C({options:e,value:t,onChange:s,labels:d}){return(0,b.jsx)(o.default,{style:{flexDirection:'row',gap:(0,p.sp)(2)},children:e.map(e=>{const o=t===e;return(0,b.jsx)(l.default,{onPress:()=>s(o?null:e),style:{flex:1,minHeight:44,alignItems:'center',justifyContent:'center',borderRadius:p.radius.sm,borderWidth:1,borderColor:o?p.c.lineStrong:p.c.line,backgroundColor:o?p.c.surfaceUp:p.c.surface},children:(0,b.jsx)(n.default,{style:{fontSize:14,fontWeight:o?'700':'500',color:o?p.c.text:p.c.muted},children:d?.[e]??e[0].toUpperCase()+e.slice(1)})},e)})})}function w({label:e,hint:t,value:s,onChange:d}){return(0,b.jsxs)(l.default,{accessibilityRole:"switch",accessibilityState:{checked:s},accessibilityLabel:e,onPress:()=>d(!s),style:{minHeight:p.TAP,flexDirection:'row',alignItems:'center',gap:(0,p.sp)(3),paddingHorizontal:(0,p.sp)(4),paddingVertical:(0,p.sp)(3),borderRadius:p.radius.md,borderWidth:1,borderColor:s?p.c.lineStrong:p.c.line,backgroundColor:s?p.c.surfaceUp:p.c.surface},children:[(0,b.jsxs)(o.default,{style:{flex:1},children:[(0,b.jsx)(n.default,{style:{fontSize:15,fontWeight:s?'700':'500',color:s?p.c.text:p.c.muted},children:e}),!!t&&(0,b.jsx)(n.default,{style:[p.type.small,{fontSize:13,color:p.c.faint,marginTop:(0,p.sp)(1)}],children:t})]}),(0,b.jsx)(o.default,{style:{width:46,height:28,borderRadius:p.radius.pill,padding:3,borderWidth:1,borderColor:s?p.c.ink:p.c.lineStrong,backgroundColor:s?p.c.ink:p.c.surfaceTop,alignItems:s?'flex-end':'flex-start',justifyContent:'center'},children:(0,b.jsx)(o.default,{style:{width:18,height:18,borderRadius:9,backgroundColor:s?p.c.onInk:p.c.muted}})})]})}function v({label:e,hint:t,value:s,onChange:d,min:c,max:u,step:h=1,format:f}){const x=e=>Math.min(u,Math.max(c,e));function y({by:t,glyph:o}){const c=x(s+t)===s;return(0,b.jsx)(l.default,{onPress:c?void 0:()=>d(x(s+t)),accessibilityRole:"button",accessibilityLabel:t>0?`More ${e}`:`Fewer ${e}`,accessibilityState:{disabled:c},style:{width:p.TAP,height:p.TAP,alignItems:'center',justifyContent:'center',borderRadius:p.radius.sm,borderWidth:1,borderColor:p.c.line,backgroundColor:p.c.surface,opacity:c?.35:1},children:(0,b.jsx)(n.default,{style:{fontSize:22,lineHeight:24,fontWeight:'600',color:p.c.text},children:o})})}return(0,b.jsxs)(o.default,{style:{marginBottom:(0,p.sp)(4)},children:[(0,b.jsx)(n.default,{style:[p.type.small,{color:p.c.text,fontWeight:'600',marginBottom:(0,p.sp)(2)}],children:e}),(0,b.jsxs)(o.default,{style:{flexDirection:'row',alignItems:'center',gap:(0,p.sp)(3)},children:[(0,b.jsx)(y,{by:-h,glyph:"\u2212"}),(0,b.jsx)(o.default,{style:{flex:1,minHeight:p.TAP,alignItems:'center',justifyContent:'center',borderRadius:p.radius.md,borderWidth:1,borderColor:p.c.line,backgroundColor:p.c.surface},children:(0,b.jsx)(n.default,{style:{fontSize:17,fontWeight:'700',color:p.c.text},children:f?f(s):String(s)})}),(0,b.jsx)(y,{by:h,glyph:"+"})]}),!!t&&(0,b.jsx)(n.default,{style:[p.type.small,{fontSize:13,color:p.c.faint,marginTop:(0,p.sp)(1.5)}],children:t})]})}function k({value:e,onChange:t}){const{wide:s}=(0,p.useBp)(),d=s?[[0,1,2,3,4,5,6]]:[[0,1,2,3],[4,5,6]];function c(l){t(e.includes(l)?e.filter(e=>e!==l):(0,y.normaliseWeekdays)([...e,l]))}return(0,b.jsx)(o.default,{style:{gap:(0,p.sp)(2)},children:d.map((t,s)=>(0,b.jsxs)(o.default,{style:{flexDirection:'row',gap:(0,p.sp)(2)},children:[t.map(t=>{const s=e.includes(t);return(0,b.jsx)(l.default,{onPress:()=>c(t),accessibilityRole:"checkbox",accessibilityState:{checked:s},accessibilityLabel:y.DAY_LONG[t],style:{flex:1,minWidth:48,minHeight:p.TAP,alignItems:'center',justifyContent:'center',borderRadius:p.radius.sm,borderWidth:1,borderColor:s?p.c.lineStrong:p.c.line,backgroundColor:s?p.c.surfaceUp:p.c.surface},children:(0,b.jsx)(n.default,{style:{fontSize:14,fontWeight:s?'700':'500',color:s?p.c.text:p.c.muted},children:y.DAY_SHORT[t]})},t)}),t.length<4&&(0,b.jsx)(o.default,{style:{flex:4-t.length}})]},s))})}function T(){const e=(0,d.useRouter)(),{session:T}=(0,u.useAuth)(),[P,W]=(0,t.useState)([]),[D,_]=(0,t.useState)(null),[O,z]=(0,t.useState)(!0),[L,R]=(0,t.useState)(B()),[H,I]=(0,t.useState)('17:00'),[A,Y]=(0,t.useState)('any'),[F,$]=(0,t.useState)(!1),[M,N]=(0,t.useState)([]),[E,U]=(0,t.useState)(''),[G,V]=(0,t.useState)(''),[q,J]=(0,t.useState)([]),[K,Q]=(0,t.useState)(null),[X,Z]=(0,t.useState)(!1),[ee,te]=(0,t.useState)(''),[le,se]=(0,t.useState)(!1),[ne,ae]=(0,t.useState)({name:'',address:'',hours:''}),[oe,ie]=(0,t.useState)(4),[re,de]=(0,t.useState)(!1),[ce,ue]=(0,t.useState)(90),[he,pe]=(0,t.useState)(null),[fe,ge]=(0,t.useState)(null),[me,xe]=(0,t.useState)(''),[ye,be]=(0,t.useState)(''),[je,Se]=(0,t.useState)(!1),[Ce,we]=(0,t.useState)(null),ve=P.find(e=>e.key===D)??null,ke=(0,x.sportConfig)(ve);(0,t.useEffect)(()=>{c.supabase.from('sports').select('*').order('sort').then(({data:e})=>W(e??[]))},[]),(0,t.useEffect)(()=>{const e=(0,x.sportConfig)(P.find(e=>e.key===D)??null);ie(e.slots.default),de(e.openEnded),ue(e.duration),Z(!1),pe(null),ge(null)},[D]),(0,t.useEffect)(()=>{const e=G.trim();if(!D&&e.length<2)return J([]);const t=setTimeout(async()=>{const{data:t}=await c.supabase.rpc('search_venues_for_sport',{q:e,in_sport:X?null:D});J(t??[])},220);return()=>clearTimeout(t)},[G,D,X]);const Te={weekdays:M.length?M:[(0,y.weekdayOf)(L)].filter(e=>e>=0),until:E.trim()||null},Be=O&&F,Pe=Be?(0,y.describeRepeat)(Te):null,We=Be?(0,y.previewLine)((0,y.upcomingDates)(Te,{from:L,time:H,limit:3})):'';return P.length?(0,b.jsx)(s.default,{style:{flex:1,backgroundColor:p.c.bg},contentContainerStyle:{paddingVertical:(0,p.sp)(5),paddingBottom:(0,p.sp)(20),alignItems:'center'},keyboardShouldPersistTaps:"handled",children:(0,b.jsxs)(o.default,{style:{width:'100%',maxWidth:560,paddingHorizontal:(0,p.sp)(5)},children:[(0,b.jsx)(n.default,{style:[p.type.label,{marginBottom:(0,p.sp)(3)}],children:"SPORT"}),(0,b.jsx)(o.default,{style:{flexDirection:'row',flexWrap:'wrap',gap:(0,p.sp)(2),marginBottom:(0,p.sp)(7)},children:P.map(e=>{const t=D===e.key;return(0,b.jsxs)(l.default,{onPress:()=>_(t?null:e.key),style:{minHeight:p.TAP,paddingHorizontal:(0,p.sp)(4),borderRadius:p.radius.md,borderWidth:1,borderColor:t?p.c.lineStrong:p.c.line,backgroundColor:t?p.c.surfaceUp:p.c.surface,flexDirection:'row',alignItems:'center',gap:(0,p.sp)(2)},children:[(0,b.jsx)(f.SportIcon,{sport:e.key,size:19,color:t?p.c.text:p.c.muted}),(0,b.jsx)(n.default,{style:{fontSize:15,fontWeight:t?'700':'500',color:t?p.c.text:p.c.muted},children:e.name})]},e.key)})}),(0,b.jsx)(n.default,{style:[p.type.label,{marginBottom:(0,p.sp)(3)}],children:"WHEN"}),(0,b.jsx)(C,{options:['exact','flexible'],value:O?'exact':'flexible',onChange:e=>{const t='flexible'!==e;z(t),t||$(!1)},labels:{exact:'A set time',flexible:'I am flexible'}}),(0,b.jsx)(o.default,{style:{height:(0,p.sp)(4)}}),(0,b.jsx)(h.Field,{label:"Date",value:L,onChangeText:R,placeholder:"YYYY-MM-DD",autoCapitalize:"none"}),O?(0,b.jsx)(h.Field,{label:"Start time",value:H,onChangeText:I,placeholder:"17:00",autoCapitalize:"none"}):(0,b.jsxs)(o.default,{style:{marginBottom:(0,p.sp)(4)},children:[(0,b.jsx)(n.default,{style:[p.type.small,{color:p.c.text,fontWeight:'600',marginBottom:(0,p.sp)(2)}],children:"Rough time"}),(0,b.jsx)(C,{options:S,value:A,onChange:Y})]}),O&&(0,b.jsxs)(o.default,{style:{marginBottom:(0,p.sp)(4)},children:[(0,b.jsx)(w,{label:"Repeats every week",hint:"Posts itself again, so you do not have to.",value:F,onChange:e=>{if($(e),e&&0===M.length){const e=(0,y.weekdayOf)(L);e>=0&&N([e])}}}),F&&(0,b.jsxs)(o.default,{style:{marginTop:(0,p.sp)(3),gap:(0,p.sp)(3)},children:[(0,b.jsx)(k,{value:M,onChange:N}),(0,b.jsx)(h.Field,{label:"Stop repeating after",value:E,onChangeText:U,placeholder:"YYYY-MM-DD, or leave blank",autoCapitalize:"none",hint:"Blank means it keeps going."}),!!Pe&&(0,b.jsxs)(o.default,{style:{borderLeftWidth:2,borderLeftColor:p.c.lineStrong,paddingLeft:(0,p.sp)(3),gap:(0,p.sp)(1)},children:[(0,b.jsx)(n.default,{style:[p.type.body,{fontWeight:'600',fontSize:15}],children:Pe}),!!We&&(0,b.jsxs)(n.default,{style:[p.type.small,{fontSize:13,color:p.c.faint}],children:["Next up: ",We]}),!We&&(0,b.jsx)(n.default,{style:[p.type.small,{fontSize:13,color:p.c.warn}],children:"Nothing falls inside that. Check the days and the end date."})]})]})]}),(0,b.jsx)(n.default,{style:[p.type.label,{marginTop:(0,p.sp)(3),marginBottom:(0,p.sp)(3)}],children:"WHERE"}),K?(0,b.jsxs)(h.Card,{style:{marginBottom:(0,p.sp)(4),flexDirection:'row',alignItems:'center'},children:[(0,b.jsxs)(o.default,{style:{flex:1},children:[(0,b.jsx)(n.default,{style:[p.type.body,{fontWeight:'600'}],children:K.name}),!!K.area&&(0,b.jsx)(n.default,{style:p.type.small,children:K.area})]}),(0,b.jsx)(l.default,{onPress:()=>Q(null),style:{padding:(0,p.sp)(2)},children:(0,b.jsx)(n.default,{style:{color:p.c.accent,fontWeight:'700'},children:"Change"})})]}):le?(0,b.jsxs)(h.Card,{style:{marginBottom:(0,p.sp)(4)},children:[(0,b.jsx)(n.default,{style:[p.type.h2,{marginBottom:(0,p.sp)(3)}],children:"Add a place"}),(0,b.jsx)(h.Field,{label:"Name",value:ne.name,onChangeText:e=>ae(Object.assign({},ne,{name:e})),placeholder:"e.g. Depot Park courts"}),(0,b.jsx)(h.Field,{label:"Address",value:ne.address,onChangeText:e=>ae(Object.assign({},ne,{address:e})),placeholder:"Optional"}),(0,b.jsx)(h.Field,{label:"Hours",value:ne.hours,onChangeText:e=>ae(Object.assign({},ne,{hours:e})),placeholder:"Optional, e.g. dawn to dusk"}),(0,b.jsxs)(o.default,{style:{flexDirection:'row',gap:(0,p.sp)(3)},children:[(0,b.jsx)(h.Button,{label:"Save place",onPress:async function(){const e=ne.name.trim();if(e.length<3)return we('Give the place a name.');Se(!0);const{data:t,error:l}=await c.supabase.from('venues').insert({name:e,slug:e.toLowerCase().replace(/[^a-z0-9]+/g,'-').replace(/^-|-$/g,'')+'-'+Date.now().toString(36),address:ne.address.trim()||null,hours:ne.hours.trim()||null,sports:D?[D]:[],created_by:T.user.id,source:'user'}).select().single();if(Se(!1),l)return we(l.message);Q(t),se(!1),V(''),we(null)},busy:je,style:{flex:1}}),(0,b.jsx)(h.Button,{label:"Cancel",variant:"ghost",onPress:()=>se(!1),style:{flex:1}})]})]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(h.Field,{label:"Search places",value:G,onChangeText:V,placeholder:"Flavet, Southwest Rec, UVS...",autoCapitalize:"none",hint:"Leave blank if you do not mind where."}),!!ve&&(0,b.jsxs)(o.default,{style:{flexDirection:'row',alignItems:'center',justifyContent:'space-between',gap:(0,p.sp)(3),marginBottom:(0,p.sp)(2)},children:[(0,b.jsx)(n.default,{style:[p.type.small,{fontSize:13,color:p.c.faint,flexShrink:1}],children:X?'Every place on campus':`Places that do ${ve.name.toLowerCase()}`}),(0,b.jsx)(l.default,{onPress:()=>Z(e=>!e),accessibilityRole:"button",style:{minHeight:44,justifyContent:'center',paddingLeft:(0,p.sp)(2)},children:(0,b.jsx)(n.default,{style:{fontSize:14,fontWeight:'700',color:p.c.text},children:X?`Only ${ve.name.toLowerCase()}`:'Show all'})})]}),q.map(e=>(0,b.jsxs)(l.default,{onPress:()=>{Q(e),V('')},style:{minHeight:p.TAP,justifyContent:'center',paddingVertical:(0,p.sp)(2),paddingHorizontal:(0,p.sp)(3),borderRadius:p.radius.sm,backgroundColor:p.c.surface,borderWidth:1,borderColor:p.c.line,marginBottom:(0,p.sp)(2)},children:[(0,b.jsxs)(n.default,{style:[p.type.body,{fontWeight:'600'}],children:[e.name," ",e.verified?'\u2713':'']}),(0,b.jsx)(n.default,{style:p.type.small,children:[e.area,e.courts?`${e.courts} courts`:null,e.indoor?'Indoor':'Outdoor'].filter(Boolean).join(' \xb7 ')})]},e.id)),G.trim().length>=2&&0===q.length&&(0,b.jsxs)(h.Card,{style:{marginBottom:(0,p.sp)(4)},children:[(0,b.jsxs)(n.default,{style:p.type.small,children:["Nothing called \"",G.trim(),"\"",!X&&ve?` does ${ve.name.toLowerCase()}.`:' yet.']}),(0,b.jsx)(h.Button,{label:"Add it as a new place",variant:"ghost",onPress:()=>{ae(Object.assign({},ne,{name:G.trim()})),se(!0)},style:{marginTop:(0,p.sp)(3)}})]}),!G.trim()&&!X&&!!ve&&0===q.length&&(0,b.jsxs)(h.Card,{style:{marginBottom:(0,p.sp)(4)},children:[(0,b.jsxs)(n.default,{style:p.type.small,children:["No ",ve.name.toLowerCase()," spots on file yet. Show all places and pick one, or describe it below."]}),(0,b.jsx)(h.Button,{label:"Show all places",variant:"ghost",onPress:()=>Z(!0),style:{marginTop:(0,p.sp)(3)}})]}),(0,b.jsx)(h.Field,{label:"Or just describe it",value:ee,onChangeText:te,placeholder:"Optional, e.g. the courts behind Beaty"})]}),(0,b.jsx)(n.default,{style:[p.type.label,{marginTop:(0,p.sp)(3),marginBottom:(0,p.sp)(3)}],children:"WHO"}),ke.openEnded&&(0,b.jsx)(o.default,{style:{marginBottom:(0,p.sp)(4)},children:(0,b.jsx)(w,{label:"Anyone can come",hint:"No headcount. People just show up.",value:re,onChange:de})}),!re&&(0,b.jsx)(v,{label:ke.slotsLabel,hint:ke.slotsHint,value:oe,onChange:ie,min:ke.slots.min,max:ke.slots.max}),(0,b.jsxs)(o.default,{style:{marginBottom:(0,p.sp)(4)},children:[(0,b.jsx)(n.default,{style:[p.type.small,{color:p.c.text,fontWeight:'600',marginBottom:(0,p.sp)(2)}],children:ke.levelLabel}),(0,b.jsx)(C,{options:j,value:he,onChange:pe,labels:ke.levels})]}),(0,b.jsx)(v,{label:"How long, roughly",value:ce,onChange:ue,min:15,max:300,step:15,format:x.durationLabel}),(0,b.jsx)(h.Field,{label:"Anything else",value:me,onChangeText:xe,placeholder:"Optional",multiline:!0,style:{minHeight:88,paddingTop:(0,p.sp)(3),textAlignVertical:'top'}}),(0,b.jsx)(h.Field,{label:"Gear you are bringing",value:ye,onChangeText:be,placeholder:"Optional, e.g. 2 spare paddles",hint:"Say this and someone without their own can still join."}),ke.gear.length>0&&(0,b.jsx)(o.default,{style:{flexDirection:'row',flexWrap:'wrap',rowGap:(0,p.sp)(2),marginTop:-(0,p.sp)(2),marginBottom:(0,p.sp)(4)},children:ke.gear.map(e=>(0,b.jsx)(h.Chip,{label:e,active:(0,x.gearItems)(ye).some(t=>t.toLowerCase()===e.toLowerCase()),onPress:()=>be((0,x.toggleGear)(ye,e))},e))}),!!Ce&&(0,b.jsx)(n.default,{style:{color:p.c.danger,marginBottom:(0,p.sp)(3),fontSize:14},children:Ce}),(0,b.jsx)(h.Button,{label:"Post it",onPress:async function(){if(we(null),!D)return we('Pick a sport.');const t=re?x.OPEN_SLOTS:oe;let l=null,s=null;if(O){const e=new Date(`${L}T${H}:00`);if(isNaN(e.getTime()))return we('That date or time is not valid.');if(e.getTime()e>=0),E.trim())){const e=(0,y.parseISODate)(E.trim());if(!e)return we('That end date is not valid. Use YYYY-MM-DD.');if((0,y.toISODate)(e)(0,x.jsxs)(n,Object.assign({},s,{children:[(0,x.jsx)(t.Circle,{cx:"12",cy:"12",r:"8.6"}),(0,x.jsx)(t.Path,{d:"M12 3.4v17.2M3.4 12h17.2",opacity:.5})]})),h={pickleball:s=>(0,x.jsxs)(n,Object.assign({},s,{children:[(0,x.jsx)(t.Path,{d:"M6.6 3.4c3-1 6 .2 6.9 3.1.9 2.9-.7 5.6-3.4 6.6l-1.2 4.3"}),(0,x.jsx)(t.Path,{d:"M6.6 3.4C3.9 4.4 2.6 7.2 3.5 10c.9 2.9 3.9 4.1 6.6 3.1"}),(0,x.jsx)(t.Line,{x1:"7.8",y1:"17.4",x2:"9.6",y2:"18"}),(0,x.jsx)(t.Circle,{cx:"7.2",cy:"7.4",r:".7",fill:s.color??'#EDEDEF',stroke:"none"}),(0,x.jsx)(t.Circle,{cx:"9.6",cy:"9.2",r:".7",fill:s.color??'#EDEDEF',stroke:"none"}),(0,x.jsx)(t.Circle,{cx:"17.8",cy:"17.6",r:"3.4"}),(0,x.jsx)(t.Path,{d:"M16.2 14.6c.9 1 1 2.4.2 3.6M19.6 20.6c-1 .6-2.3.5-3.3-.3"})]})),basketball:s=>(0,x.jsxs)(n,Object.assign({},s,{children:[(0,x.jsx)(t.Circle,{cx:"12",cy:"12",r:"9"}),(0,x.jsx)(t.Path,{d:"M3.2 10.4c4.6.6 8.4 3.6 10 7.9M20.8 10.4c-4.6.6-8.4 3.6-10 7.9"}),(0,x.jsx)(t.Path,{d:"M12 3v18"})]})),volleyball:s=>(0,x.jsxs)(n,Object.assign({},s,{children:[(0,x.jsx)(t.Circle,{cx:"12",cy:"12",r:"9"}),(0,x.jsx)(t.Path,{d:"M12 3c-3.4 3.4-4.2 8.6-2 13"}),(0,x.jsx)(t.Path,{d:"M20.6 9.4c-4.7-.7-9.3 1.6-11.6 5.8"}),(0,x.jsx)(t.Path,{d:"M6.2 19.6c1.4-4.5.3-9.4-2.9-12.8"})]})),sand_volleyball:s=>(0,x.jsxs)(n,Object.assign({},s,{children:[(0,x.jsx)(t.Circle,{cx:"12",cy:"9",r:"5.6"}),(0,x.jsx)(t.Path,{d:"M12 3.4c-2.2 2.2-2.7 5.6-1.3 8.4M17.4 7.8c-3 -.5-6 1-7.4 3.7"}),(0,x.jsx)(t.Path,{d:"M2.5 18.5c1.6-1.1 3.1-1.1 4.7 0s3.1 1.1 4.7 0 3.1-1.1 4.7 0 3.1 1.1 4.7 0"}),(0,x.jsx)(t.Path,{d:"M2.5 21.5c1.6-1.1 3.1-1.1 4.7 0",opacity:.5})]})),spikeball:s=>(0,x.jsxs)(n,Object.assign({},s,{children:[(0,x.jsx)(t.Path,{d:"M3.6 16.2c0-2.3 3.8-4.2 8.4-4.2s8.4 1.9 8.4 4.2-3.8 4.2-8.4 4.2-8.4-1.9-8.4-4.2Z"}),(0,x.jsx)(t.Path,{d:"M6.4 18.6 5 21M17.6 18.6 19 21M12 20.4V22"}),(0,x.jsx)(t.Circle,{cx:"16.6",cy:"5.4",r:"2.6"}),(0,x.jsx)(t.Path,{d:"M14.4 7.4 12 11",strokeDasharray:"2 2"})]})),flag_football:s=>(0,x.jsxs)(n,Object.assign({},s,{children:[(0,x.jsx)(t.Path,{d:"M3.8 12c0-3.6 3.7-6.6 8.2-6.6s8.2 3 8.2 6.6-3.7 6.6-8.2 6.6S3.8 15.6 3.8 12Z"}),(0,x.jsx)(t.Line,{x1:"9.4",y1:"12",x2:"14.6",y2:"12"}),(0,x.jsx)(t.Path,{d:"M11 10.4v3.2M12.6 10.4v3.2"})]})),soccer:s=>(0,x.jsxs)(n,Object.assign({},s,{children:[(0,x.jsx)(t.Circle,{cx:"12",cy:"12",r:"9"}),(0,x.jsx)(t.Path,{d:"m12 7.6 3.6 2.6-1.4 4.3H9.8l-1.4-4.3L12 7.6Z"}),(0,x.jsx)(t.Path,{d:"M12 3v4.6M19.6 9.6l-4 .6M18.2 18.6l-4-4M5.8 18.6l4-4M4.4 9.6l4 .6"})]})),tennis:s=>(0,x.jsxs)(n,Object.assign({},s,{children:[(0,x.jsx)(t.Circle,{cx:"8.4",cy:"8.4",r:"5.4"}),(0,x.jsx)(t.Path,{d:"M4.6 4.6 12.2 12.2M12.2 4.6 4.6 12.2",opacity:.55}),(0,x.jsx)(t.Path,{d:"m12.4 12.4 4.4 5.6a1.7 1.7 0 0 1-2.4 2.4l-5.6-4.4"})]})),softball:s=>(0,x.jsxs)(n,Object.assign({},s,{children:[(0,x.jsx)(t.Circle,{cx:"9",cy:"15",r:"5.4"}),(0,x.jsx)(t.Path,{d:"M5.6 10.8c1.4 1.4 1.8 3.5 1 5.3M12.4 19.2c-1.4-1.4-1.8-3.5-1-5.3"}),(0,x.jsx)(t.Path,{d:"M14.6 10.4 21 4"}),(0,x.jsx)(t.Path,{d:"m19.4 2.4 2.2 2.2-1.4 1.4-2.2-2.2z"})]})),frisbee:s=>(0,x.jsxs)(n,Object.assign({},s,{children:[(0,x.jsx)(t.Path,{d:"M2.8 13.4c0-2.4 4.1-4.4 9.2-4.4s9.2 2 9.2 4.4-4.1 4.4-9.2 4.4-9.2-2-9.2-4.4Z"}),(0,x.jsx)(t.Path,{d:"M6.4 12.6c1.4-.9 3.4-1.4 5.6-1.4s4.2.5 5.6 1.4"})]})),running:s=>(0,x.jsxs)(n,Object.assign({},s,{children:[(0,x.jsx)(t.Circle,{cx:"15.4",cy:"4.6",r:"1.9"}),(0,x.jsx)(t.Path,{d:"M8.6 21.4 11 16l-2.6-2.6.9-4.6 3.5-1.4 3 2.4 2.8.8"}),(0,x.jsx)(t.Path,{d:"m12.8 16 2.8 2.2.9 3.2"}),(0,x.jsx)(t.Path,{d:"M3.4 10.4h3.2M2.2 14h3.2M4.4 17.6h2.4",opacity:.55})]})),climbing:s=>(0,x.jsxs)(n,Object.assign({},s,{children:[(0,x.jsx)(t.Circle,{cx:"8.6",cy:"4.4",r:"1.9"}),(0,x.jsx)(t.Path,{d:"M6.6 21.2v-4.6l2.6-2.6-1-4.4 3-1 2.4 3.2 2.8.6"}),(0,x.jsx)(t.Path,{d:"m11.2 14.4 2.4 2.4v4.4"}),(0,x.jsx)(t.Circle,{cx:"18.6",cy:"6.2",r:".9"}),(0,x.jsx)(t.Circle,{cx:"20.2",cy:"12.4",r:".9"}),(0,x.jsx)(t.Circle,{cx:"17.4",cy:"17.8",r:".9"})]})),swimming:s=>(0,x.jsxs)(n,Object.assign({},s,{children:[(0,x.jsx)(t.Circle,{cx:"16.6",cy:"6.4",r:"1.8"}),(0,x.jsx)(t.Path,{d:"M3.4 12.8 8 9.6l3.6 2.6-2 2.2"}),(0,x.jsx)(t.Path,{d:"m11.6 12.2 3.4-2.4 2.4 3"}),(0,x.jsx)(t.Path,{d:"M2.5 18.2c1.6-1.1 3.1-1.1 4.7 0s3.1 1.1 4.7 0 3.1-1.1 4.7 0 3.1 1.1 4.7 0"}),(0,x.jsx)(t.Path,{d:"M2.5 21.2c1.6-1.1 3.1-1.1 4.7 0s3.1 1.1 4.7 0",opacity:.5})]})),table_tennis:s=>(0,x.jsxs)(n,Object.assign({},s,{children:[(0,x.jsx)(t.Path,{d:"M7.2 3.6c3.2-1.1 6.4.3 7.4 3.4 1 3.1-.8 6-4 7.1l-1.4 4.6"}),(0,x.jsx)(t.Path,{d:"M7.2 3.6C4 4.7 2.3 7.6 3.3 10.7c1 3.1 4.2 4.5 7.3 3.4"}),(0,x.jsx)(t.Line,{x1:"8.2",y1:"18.7",x2:"10.2",y2:"19.3"}),(0,x.jsx)(t.Circle,{cx:"18.6",cy:"16.4",r:"2.2"}),(0,x.jsx)(t.Path,{d:"M2.6 21h18",opacity:.5})]})),badminton:s=>(0,x.jsxs)(n,Object.assign({},s,{children:[(0,x.jsx)(t.Circle,{cx:"7.6",cy:"7.6",r:"4.6"}),(0,x.jsx)(t.Path,{d:"M4.4 4.4 10.8 10.8M10.8 4.4 4.4 10.8",opacity:.55}),(0,x.jsx)(t.Path,{d:"m11.2 11.2 3.6 4.8a1.6 1.6 0 0 1-2.2 2.2l-4.8-3.6"}),(0,x.jsx)(t.Path,{d:"M17.4 6.4 20.8 3M16 8.6c1.6-.4 3-.2 4.2.6M18.6 5c.4 1.6.6 3 .2 4.2"})]})),disc_golf:s=>(0,x.jsxs)(n,Object.assign({},s,{children:[(0,x.jsx)(t.Path,{d:"M5 9.6c0-1.6 3.1-2.9 7-2.9s7 1.3 7 2.9-3.1 2.9-7 2.9-7-1.3-7-2.9Z"}),(0,x.jsx)(t.Path,{d:"M12 12.5V21M8.6 21h6.8"}),(0,x.jsx)(t.Path,{d:"M8 14.4c1.2.9 2.5 1.4 4 1.4s2.8-.5 4-1.4",opacity:.6})]}))};const o=s=>(0,x.jsx)(n,Object.assign({},s,{strokeWidth:s.strokeWidth??2,children:(0,x.jsx)(t.Path,{d:"M12 5v14M5 12h14"})})),M=s=>(0,x.jsx)(n,Object.assign({},s,{children:(0,x.jsx)(t.Path,{d:"M3.6 10.4 12 3.6l8.4 6.8V20a1 1 0 0 1-1 1h-4.6v-6H9.2v6H4.6a1 1 0 0 1-1-1Z"})})),P=s=>(0,x.jsxs)(n,Object.assign({},s,{children:[(0,x.jsx)(t.Circle,{cx:"12",cy:"8",r:"3.6"}),(0,x.jsx)(t.Path,{d:"M4.8 20.4c.6-3.8 3.6-6 7.2-6s6.6 2.2 7.2 6"})]})),b=s=>(0,x.jsx)(n,Object.assign({},s,{strokeWidth:s.strokeWidth??2,children:(0,x.jsx)(t.Path,{d:"M15 5l-7 7 7 7"})})),y=s=>(0,x.jsxs)(n,Object.assign({},s,{children:[(0,x.jsx)(t.Circle,{cx:"9.4",cy:"8",r:"3.4"}),(0,x.jsx)(t.Path,{d:"M2.8 20.4c.6-3.5 3.3-5.6 6.6-5.6s6 2.1 6.6 5.6"}),(0,x.jsx)(t.Path,{d:"M16.4 5.2a3.4 3.4 0 0 1 0 6.4M18 14.9c2.1.6 3.5 2.4 3.9 5",opacity:.7})]})),u=s=>(0,x.jsx)(n,Object.assign({},s,{children:(0,x.jsx)(t.Path,{d:"M21 3 10.6 13.4M21 3l-6.6 18-3.8-7.6L3 9.6 21 3Z"})}))},832,[19,11,833,6]); +__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.default}});var e=r(d[0]);Object.keys(e).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(_e,t)||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return e[t]}})});var t,n=(t=e)&&t.__esModule?t:{default:t}},833,[834]); +__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"inlineStyles",{enumerable:!0,get:function(){return n.inlineStyles}}),Object.defineProperty(_e,"loadLocalRawResource",{enumerable:!0,get:function(){return n.loadLocalRawResource}}),Object.defineProperty(_e,"LocalSvg",{enumerable:!0,get:function(){return n.LocalSvg}}),Object.defineProperty(_e,"SvgCss",{enumerable:!0,get:function(){return n.SvgCss}}),Object.defineProperty(_e,"SvgCssUri",{enumerable:!0,get:function(){return n.SvgCssUri}}),Object.defineProperty(_e,"SvgWithCss",{enumerable:!0,get:function(){return n.SvgWithCss}}),Object.defineProperty(_e,"SvgWithCssUri",{enumerable:!0,get:function(){return n.SvgWithCssUri}}),Object.defineProperty(_e,"WithLocalSvg",{enumerable:!0,get:function(){return n.WithLocalSvg}}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(_e,"camelCase",{enumerable:!0,get:function(){return e.camelCase}}),Object.defineProperty(_e,"fetchText",{enumerable:!0,get:function(){return t.fetchText}}),Object.defineProperty(_e,"parse",{enumerable:!0,get:function(){return e.parse}}),Object.defineProperty(_e,"SvgAst",{enumerable:!0,get:function(){return e.SvgAst}}),Object.defineProperty(_e,"SvgFromUri",{enumerable:!0,get:function(){return e.SvgFromUri}}),Object.defineProperty(_e,"SvgFromXml",{enumerable:!0,get:function(){return e.SvgFromXml}}),Object.defineProperty(_e,"SvgUri",{enumerable:!0,get:function(){return e.SvgUri}}),Object.defineProperty(_e,"SvgXml",{enumerable:!0,get:function(){return e.SvgXml}});var e=r(d[0]),t=r(d[1]),n=r(d[2]),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 o=r(d[4]);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,f=(c=o)&&c.__esModule?c:{default:c}},834,[835,836,852,853,838]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.SvgAst=c,_e.SvgXml=l,_e.SvgUri=function(r){const{onError:o=i,uri:s,onLoad:c,fallback:u}=r,[f,p]=(0,t.useState)(null),[d,h]=(0,t.useState)(!1);if((0,t.useEffect)(()=>{s?(0,n.fetchText)(s).then(t=>{p(t),d&&h(!1),null==c||c()}).catch(t=>{o(t),h(!0)}):p(null)},[o,s,c]),d)return u??null;return e.createElement(l,{xml:f,override:r,fallback:u})},Object.defineProperty(_e,"SvgFromXml",{enumerable:!0,get:function(){return u}}),Object.defineProperty(_e,"SvgFromUri",{enumerable:!0,get:function(){return f}}),Object.defineProperty(_e,"camelCase",{enumerable:!0,get:function(){return d}}),_e.getStyle=h,_e.astToReact=x,_e.parse=j,Object.defineProperty(_e,"tags",{enumerable:!0,get:function(){return r.tags}});var t=_r(_d[0]),e=(function(t){if(t&&t.__esModule)return t;var e={};return t&&Object.keys(t).forEach(function(n){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}),e.default=t,e})(t),n=_r(_d[1]),r=_r(_d[2]);function o(){return o=Object.assign?Object.assign.bind():function(t){for(var e=1;enull!==o?j(o):null,[o]);return e.createElement(c,{ast:r,override:s||n})}catch(t){return r(t),l??null}}class u extends t.Component{state={ast:null};componentDidMount(){this.parse(this.props.xml)}componentDidUpdate(t){const{xml:e}=this.props;e!==t.xml&&this.parse(e)}parse(t){const{onError:e=i}=this.props;try{this.setState({ast:t?j(t):null})}catch(t){const n=t;e(Object.assign({},n,{message:`[RNSVG] Couldn't parse SVG, reason: ${n.message}`}))}}render(){const{props:t,state:{ast:n}}=this;return e.createElement(c,{ast:n,override:t.override||t})}}class f extends t.Component{state={xml:null};componentDidMount(){this.fetch(this.props.uri)}componentDidUpdate(t){const{uri:e}=this.props;e!==t.uri&&this.fetch(e)}async fetch(t){try{this.setState({xml:t?await(0,n.fetchText)(t):null})}catch(t){console.error(t)}}render(){const{props:t,state:{xml:n}}=this;return e.createElement(u,{xml:n,override:t,onError:t.onError})}}const p=(t,e)=>e.toUpperCase(),d=t=>t.replace(/[:-]([a-z])/g,p);function h(t){const e={},n=t.split(';').filter(t=>t.trim()),{length:r}=n;for(let t=0;tb(' ',t.length);function v(t,e){const n=t.split('\n'),r=n.length;let o=e,s=0;for(;s=t))break;o-=t}const c=t.slice(0,e).replace(/^\t+/,y),i=/(^|\n).*$/.exec(c),l=i&&i[0]||'',u=t.slice(e),f=/.*(\n|$)/.exec(u);return{line:s,column:o,snippet:`${l}${f&&f[0]}\n${b(' ',l.length)}^`}}const E=/[a-zA-Z0-9:_-]/,O=/
- +