Instantly share code, notes, and snippets.
Last active
August 21, 2020 00:28
-
Star
0
(0)
You must be signed in to star a gist -
Fork
0
(0)
You must be signed in to fork a gist
-
Save dabbott/8aeaf791bb9fa75e67d1639b4a4dd448 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-native")):"function"==typeof define&&define.amd?define(["React","ReactNative"],t):"object"==typeof exports?exports["react-navigation-bundle"]=t(require("react"),require("react-native")):e["react-navigation-bundle"]=t(e.React,e.ReactNative)}(window,(function(e,t){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=81)}([function(t,r){t.exports=e},function(e,r){e.exports=t},function(e,t,r){"use strict";var n=r(10);r.o(n,"NavigationContext")&&r.d(t,"NavigationContext",(function(){return n.NavigationContext})),r.o(n,"NavigationHelpersContext")&&r.d(t,"NavigationHelpersContext",(function(){return n.NavigationHelpersContext})),r.o(n,"NavigationRouteContext")&&r.d(t,"NavigationRouteContext",(function(){return n.NavigationRouteContext})),r.o(n,"StackActions")&&r.d(t,"StackActions",(function(){return n.StackActions})),r.o(n,"StackRouter")&&r.d(t,"StackRouter",(function(){return n.StackRouter})),r.o(n,"createNavigatorFactory")&&r.d(t,"createNavigatorFactory",(function(){return n.createNavigatorFactory})),r.o(n,"useNavigationBuilder")&&r.d(t,"useNavigationBuilder",(function(){return n.useNavigationBuilder}));var o=r(44);r.o(o,"NavigationContext")&&r.d(t,"NavigationContext",(function(){return o.NavigationContext})),r.o(o,"NavigationHelpersContext")&&r.d(t,"NavigationHelpersContext",(function(){return o.NavigationHelpersContext})),r.o(o,"NavigationRouteContext")&&r.d(t,"NavigationRouteContext",(function(){return o.NavigationRouteContext})),r.o(o,"StackActions")&&r.d(t,"StackActions",(function(){return o.StackActions})),r.o(o,"StackRouter")&&r.d(t,"StackRouter",(function(){return o.StackRouter})),r.o(o,"createNavigatorFactory")&&r.d(t,"createNavigatorFactory",(function(){return o.createNavigatorFactory})),r.o(o,"useNavigationBuilder")&&r.d(t,"useNavigationBuilder",(function(){return o.useNavigationBuilder}))},function(e,t,r){"use strict";var n=r(0);const o=n.createContext({onDispatchAction:()=>{},onOptionsChange:()=>{}});t.a=o},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));let n=(e=21)=>{let t="",r=e;for(;r--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t}},function(e,t,r){"use strict";var n=r(0);const o=n.createContext(void 0);t.a=o},function(e,t,r){"use strict";var n=r(32);r.d(t,"CommonActions",(function(){return n}));var o=r(29);r.d(t,"StackRouter",(function(){return o.b})),r.d(t,"StackActions",(function(){return o.a}))},function(e,t,r){"use strict";var n=r(0);const o=n.createContext(void 0);t.a=o},function(e,t,r){"use strict";var n=r(0);const o="Couldn't find a navigation context. Have you wrapped your app with 'NavigationContainer'? See https://reactnavigation.org/docs/getting-started for setup instructions.";t.a=n.createContext({isDefault:!0,get getKey(){throw new Error(o)},get setKey(){throw new Error(o)},get getState(){throw new Error(o)},get setState(){throw new Error(o)},get getIsInitial(){throw new Error(o)}})},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(0),o=r(7);function a(){const e=n.useContext(o.a);if(void 0===e)throw new Error("Couldn't find a navigation object. Is your component inside a screen in a navigator?");return e}},function(e,t,r){"use strict";var n=r(6);r.o(n,"StackActions")&&r.d(t,"StackActions",(function(){return n.StackActions})),r.o(n,"StackRouter")&&r.d(t,"StackRouter",(function(){return n.StackRouter}));var o=r(33);r.d(t,"BaseNavigationContainer",(function(){return o.a}));var a=r(34);r.d(t,"createNavigatorFactory",(function(){return a.a}));var i=r(35);r.d(t,"NavigationHelpersContext",(function(){return i.a}));var s=r(7);r.d(t,"NavigationContext",(function(){return s.a}));var c=r(5);r.d(t,"NavigationRouteContext",(function(){return c.a}));r(15);var l=r(47);r.d(t,"useNavigationBuilder",(function(){return l.a}));r(9),r(36),r(37),r(38),r(39);var u=r(40);r.d(t,"getStateFromPath",(function(){return u.a}));var d=r(41);r.d(t,"getPathFromState",(function(){return d.a}));var p=r(42);r.d(t,"getActionFromState",(function(){return p.a}));r(43),r(11)},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));class n{constructor(){var e,t,r;r=void 0,(t="")in(e=this)?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}}},function(e,t,r){"use strict";t.a={dark:!1,colors:{primary:"rgb(0, 122, 255)",background:"rgb(242, 242, 242)",card:"rgb(255, 255, 255)",text:"rgb(28, 28, 30)",border:"rgb(216, 216, 216)",notification:"rgb(255, 59, 48)"}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return a}));var n=r(0);const o=n.createContext(void 0);function a({children:e}){const t=n.useRef(),r=n.useMemo(()=>({register(e){const r=t.current;if(void 0!==r&&e!==r)throw new Error('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.');t.current=e},unregister(e){e===t.current&&(t.current=void 0)}}),[]);return n.createElement(o.Provider,{value:r},e)}},function(e,t,r){"use strict";var n=r(4);function o(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 a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const s={getStateForAction(e,t){switch(t.type){case"SET_PARAMS":{const r=t.source?e.routes.findIndex(e=>e.key===t.source):e.index;return-1===r?null:a(a({},e),{},{routes:e.routes.map((e,n)=>n===r?a(a({},e),{},{params:a(a({},e.params),t.payload.params)}):e)})}case"RESET":{const r=t.payload;return 0===r.routes.length||r.routes.some(t=>!e.routeNames.includes(t.name))?null:!1===r.stale?e.routeNames.length!==r.routeNames.length||r.routeNames.some(t=>!e.routeNames.includes(t))?null:a(a({},r),{},{routes:r.routes.map(e=>e.key?e:a(a({},e),{},{key:"".concat(e.name,"-").concat(Object(n.a)())}))}):r}default:return null}},shouldActionChangeFocus:e=>"NAVIGATE"===e.type};t.a=s},function(e,t,r){"use strict";var n=r(0);const o=n.createContext(void 0);t.a=o},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(0),o=r(1);function a(e){n.useEffect(()=>{const t=o.BackHandler.addEventListener("hardwareBackPress",()=>{const t=e.current;return null!=t&&(!!t.canGoBack()&&(t.goBack(),!0))});return()=>t.remove()},[e])}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(0),o=r(28);function a({value:e,children:t}){return n.createElement(o.a.Provider,{value:e},t)}},function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(0),o=r(10),a=r(4);var i=n.createContext(void 0);const s=()=>{let e=0,t=[];const r=[],n=()=>{r.forEach(e=>{const t=e.cb;e.cb=()=>t(!0)})};return{get index(){var e;const r=null===(e=window.history.state)||void 0===e?void 0:e.id;if(r){const e=t.findIndex(e=>e.id===r);return e>-1?e:0}return 0},get:e=>t[e],backIndex({path:r}){for(let n=e-1;n>=0;n--){if(t[n].path===r)return n}return-1},push({path:r,state:o}){n();const i=Object(a.a)();t=t.slice(0,e+1),t.push({path:r,state:o,id:i}),e=t.length-1,window.history.pushState({id:i},"",r)},replace({path:r,state:o}){var i,s;n();const c=null!==(i=null===(s=window.history.state)||void 0===s?void 0:s.id)&&void 0!==i?i:Object(a.a)();t.length?t[e]={path:r,state:o,id:c}:t.push({path:r,state:o,id:c}),window.history.replaceState({id:c},"",r)},go(o){if(n(),o>0?o=Math.min(o,t.length-1):o<0&&(o=e+o<0?-e:o),0!==o)return e+=o,new Promise((e,t)=>{const n=r=>{if(clearTimeout(a),r)return void t(new Error("History was changed during navigation."));const{title:n}=window.document;window.document.title="",window.document.title=n,e()};r.push({ref:n,cb:n});const a=setTimeout(()=>{const e=r.findIndex(e=>e.ref===n);e>-1&&(r[e].cb(),r.splice(e,1))},100),i=()=>{const e=r.pop();window.removeEventListener("popstate",i),null==e||e.cb()};window.addEventListener("popstate",i),window.history.go(o)})},listen(e){const t=()=>{r.length||e()};return window.addEventListener("popstate",t),()=>window.removeEventListener("popstate",t)}}},c=(e,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],a=t.routes[t.index],i=o.state,s=a.state;return r!==n||o.key!==a.key||void 0===i||void 0===s||i.key!==s.key?[e,t]:c(i,s)};let l=!1;function u(e,{enabled:t=!0,config:r,getStateFromPath:a=o.getStateFromPath,getPathFromState:u=o.getPathFromState}){n.useEffect(()=>{if(!1!==t&&l)throw new Error(["Looks like you have configured linking in multiple places. This is likely an error since URL integration should only be handled in one place to avoid conflicts. Make sure that:","- You are not using both 'linking' prop and 'useLinking'","- You don't have 'useLinking' in multiple components"].join("\n").trim());return l=!1!==t,()=>{l=!1}});const[d]=n.useState(s),p=n.useRef(t),f=n.useRef(r),h=n.useRef(a),g=n.useRef(u);n.useEffect(()=>{p.current=t,f.current=r,h.current=a,g.current=u},[r,t,u,a]);const y=n.useContext(i),b=n.useCallback(()=>{let e;if(p.current){var t;const r=null!==(t=null==y?void 0:y.location)&&void 0!==t?t:"undefined"!=typeof window?window.location:void 0,n=r?r.pathname+r.search:void 0;n&&(e=h.current(n,f.current))}const r={then:t=>Promise.resolve(t?t(e):e),catch:()=>r};return r},[]),m=n.useRef(void 0),v=n.useRef(void 0),O=n.useRef(void 0);return n.useEffect(()=>(m.current=d.index,d.listen(()=>{var r;const n=e.current;if(!n||!t)return;const a=location.pathname+location.search,i=d.index,s=null!==(r=m.current)&&void 0!==r?r:0;m.current=i,O.current=a;const c=d.get(i);if((null==c?void 0:c.path)===a&&(null==c?void 0:c.state))return void n.resetRoot(c.state);const l=h.current(a,f.current);if(l&&i>s){const e=Object(o.getActionFromState)(l);void 0!==e?n.dispatch(e):n.resetRoot(l)}else n.resetRoot(l)})),[t,d,e]),n.useEffect(()=>{var r;if(!t)return;if(e.current){const t=e.current.getRootState(),r=g.current(t,f.current);void 0===v.current&&(v.current=t),d.replace({path:r,state:t})}return null===(r=e.current)||void 0===r?void 0:r.addListener("state",(e=>{let t=!1,r=[];const n=async()=>{try{if(t)return void r.unshift(n);t=!0,await e()}finally{if(t=!1,r.length){const e=r.pop();null==e||e()}}};return n})(async()=>{const r=e.current;if(!r||!t)return;const n=v.current,o=r.getRootState(),a=O.current,i=g.current(o,f.current);v.current=o,O.current=void 0;const[s,l]=c(n,o);if(s&&l&&i!==a){const e=(l.history?l.history.length:l.routes.length)-(s.history?s.history.length:s.routes.length);if(e>0)d.push({path:i,state:o});else if(e<0){const t=d.backIndex({path:i}),r=d.index;try{-1!==t&&t<r?await d.go(t-r):await d.go(e),d.replace({path:i,state:o})}catch(e){}}else d.replace({path:i,state:o})}else d.replace({path:i,state:o})}))}),{getInitialState:b}}},function(e,t,r){"use strict";var n=r(0);const o=n.createContext(void 0);t.a=o},function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return a}));var n=r(0);const o=n.createContext({scheduleUpdate(){throw new Error("Couldn't find a schedule context.")},flushUpdates(){throw new Error("Couldn't find a schedule context.")}});function a(e){const{scheduleUpdate:t,flushUpdates:r}=n.useContext(o);t(e),n.useEffect(r)}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(0);function o(){const{current:e}=n.useRef({action:[],focus:[]}),t=n.useCallback((t,r)=>(e[t].push(r),()=>{const n=e[t].indexOf(r);e[t].splice(n,1)}),[e]);return{listeners:e,addListener:t}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(0);function o(){const{current:e}=n.useRef({getState:{},beforeRemove:{}}),t=n.useCallback((t,r,n)=>(e[t][r]=n,()=>{e[t][r]=void 0}),[e]);return{keyedListeners:e,addKeyedListener:t}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(0),o=r(8),a=r(3);function i({key:e,options:t,navigation:r}){const i=n.useRef(t),s=n.useRef({}),{onOptionsChange:c}=n.useContext(a.a),{addOptionsGetter:l}=n.useContext(o.a),u=n.useCallback(()=>{var e;const t=null===(e=null==r?void 0:r.isFocused())||void 0===e||e,n=Object.keys(s.current).length;var o;t&&!n&&c(null!==(o=i.current)&&void 0!==o?o:{})},[r,c]);n.useEffect(()=>(i.current=t,u(),null==r?void 0:r.addListener("focus",u)),[r,t,u]);const d=n.useCallback(()=>{for(let r in s.current)if(s.current.hasOwnProperty(r)){var e,t;const n=null===(e=(t=s.current)[r])||void 0===e?void 0:e.call(t);if(null!==n)return n}return null},[]),p=n.useCallback(()=>{var e;if(!(null===(e=null==r?void 0:r.isFocused())||void 0===e||e))return null;const t=d();return null!==t?t:i.current},[r,d]);n.useEffect(()=>null==l?void 0:l(e,p),[p,l,e]);return{addOptionsGetter:n.useCallback((e,t)=>(s.current[e]=t,u(),()=>{delete s.current[e],u()}),[u]),getCurrentOptions:p}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(0);function o(e){const t=n.useRef(e);n.useEffect(()=>{t.current=e});const r=n.useRef({}),o=n.useCallback(e=>{const t=(t,n)=>{const o=r.current[t]?r.current[t][e]:void 0;if(!o)return;const a=o.indexOf(n);o.splice(a,1)};return{addListener:(n,o)=>(r.current[n]=r.current[n]||{},r.current[n][e]=r.current[n][e]||[],r.current[n][e].push(o),()=>t(n,o)),removeListener:t}},[]),a=n.useCallback(({type:e,data:n,target:o,canPreventDefault:a})=>{var i;const s=r.current[e]||{},c=void 0!==o?s[o]&&s[o].slice():[].concat(...Object.keys(s).map(e=>s[e])).filter((e,t,r)=>r.lastIndexOf(e)===t),l={get type(){return e}};if(void 0!==o&&Object.defineProperty(l,"target",{enumerable:!0,get:()=>o}),void 0!==n&&Object.defineProperty(l,"data",{enumerable:!0,get:()=>n}),a){let e=!1;Object.defineProperties(l,{defaultPrevented:{enumerable:!0,get:()=>e},preventDefault:{enumerable:!0,value(){e=!0}}})}return null===(i=t.current)||void 0===i||i.call(t,l),null==c||c.forEach(e=>e(l)),l},[]);return n.useMemo(()=>({create:o,emit:a}),[o,a])}},function(e,t,r){"use strict";function n(e){return null}r.d(t,"a",(function(){return n}))},function(e,t,r){"use strict";const n=r(68),o=r(69),a=r(70);function i(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function s(e,t){return t.encode?t.strict?n(e):encodeURIComponent(e):e}function c(e,t){return t.decode?o(e):e}function l(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function u(e){const t=(e=l(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function d(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function p(e,t){i((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const r=function(e){let t;switch(e.arrayFormat){case"index":return(e,r,n)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===n[e]&&(n[e]={}),n[e][t[1]]=r):n[e]=r};case"bracket":return(e,r,n)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==n[e]?n[e]=[].concat(n[e],r):n[e]=[r]:n[e]=r};case"comma":case"separator":return(t,r,n)=>{const o="string"==typeof r&&r.split("").indexOf(e.arrayFormatSeparator)>-1?r.split(e.arrayFormatSeparator).map(t=>c(t,e)):null===r?r:c(r,e);n[t]=o};default:return(e,t,r)=>{void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=t}}}(t),n=Object.create(null);if("string"!=typeof e)return n;if(!(e=e.trim().replace(/^[?#&]/,"")))return n;for(const o of e.split("&")){let[e,i]=a(t.decode?o.replace(/\+/g," "):o,"=");i=void 0===i?null:["comma","separator"].includes(t.arrayFormat)?i:c(i,t),r(c(e,t),i,n)}for(const e of Object.keys(n)){const r=n[e];if("object"==typeof r&&null!==r)for(const e of Object.keys(r))r[e]=d(r[e],t);else n[e]=d(r,t)}return!1===t.sort?n:(!0===t.sort?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((e,t)=>{const r=n[t];return Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort((e,t)=>Number(e)-Number(t)).map(e=>t[e]):t}(r):e[t]=r,e},Object.create(null))}t.extract=u,t.parse=p,t.stringify=(e,t)=>{if(!e)return"";i((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const r=r=>t.skipNull&&null==e[r]||t.skipEmptyString&&""===e[r],n=function(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{const o=r.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[s(t,e),"[",o,"]"].join("")]:[...r,[s(t,e),"[",s(o,e),"]=",s(n,e)].join("")]};case"bracket":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[s(t,e),"[]"].join("")]:[...r,[s(t,e),"[]=",s(n,e)].join("")];case"comma":case"separator":return t=>(r,n)=>null==n||0===n.length?r:0===r.length?[[s(t,e),"=",s(n,e)].join("")]:[[r,s(n,e)].join(e.arrayFormatSeparator)];default:return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,s(t,e)]:[...r,[s(t,e),"=",s(n,e)].join("")]}}(t),o={};for(const t of Object.keys(e))r(t)||(o[t]=e[t]);const a=Object.keys(o);return!1!==t.sort&&a.sort(t.sort),a.map(r=>{const o=e[r];return void 0===o?"":null===o?s(r,t):Array.isArray(o)?o.reduce(n(r),[]).join("&"):s(r,t)+"="+s(o,t)}).filter(e=>e.length>0).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[r,n]=a(e,"#");return Object.assign({url:r.split("?")[0]||"",query:p(u(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:c(n,t)}:{})},t.stringifyUrl=(e,r)=>{r=Object.assign({encode:!0,strict:!0},r);const n=l(e.url).split("?")[0]||"",o=t.extract(e.url),a=t.parse(o,{sort:!1}),i=Object.assign(a,e.query);let c=t.stringify(i,r);c&&(c="?"+c);let u=function(e){let t="";const r=e.indexOf("#");return-1!==r&&(t=e.slice(r)),t}(e.url);return e.fragmentIdentifier&&(u="#"+s(e.fragmentIdentifier,r)),`${n}${c}${u}`}},function(e,t,r){"use strict";function n(e){let t=!1;if(e&&(t=Object.keys(e).some(e=>"screens"!==e&&"initialRouteName"!==e),t&&(e.hasOwnProperty("screens")||e.hasOwnProperty("initialRouteName"))))throw new Error("Found invalid keys in the configuration object. See https://reactnavigation.org/docs/configuring-links/ for more details on the shape of the configuration object.");return t?[t,{screens:e}]:[t,e]}r.d(t,"a",(function(){return n}))},function(e,t,r){"use strict";var n=r(0),o=r(12);const a=n.createContext(o.a);t.a=a},function(e,t,r){"use strict";r.d(t,"a",(function(){return c})),r.d(t,"b",(function(){return l}));var n=r(4),o=r(14);function a(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 i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const c={replace:(e,t)=>({type:"REPLACE",payload:{name:e,params:t}}),push:(e,t)=>({type:"PUSH",payload:{name:e,params:t}}),pop:(e=1)=>({type:"POP",payload:{count:e}}),popToTop:()=>({type:"POP_TO_TOP"})};function l(e){const t=i(i({},o.a),{},{type:"stack",getInitialState({routeNames:t,routeParamList:r}){const o=void 0!==e.initialRouteName&&t.includes(e.initialRouteName)?e.initialRouteName:t[0];return{stale:!1,type:"stack",key:"stack-".concat(Object(n.a)()),index:0,routeNames:t,routes:[{key:"".concat(o,"-").concat(Object(n.a)()),name:o,params:r[o]}]}},getRehydratedState(t,{routeNames:r,routeParamList:o}){let a=t;if(!1===a.stale)return a;const s=a.routes.filter(e=>r.includes(e.name)).map(e=>i(i({},e),{},{key:e.key||"".concat(e.name,"-").concat(Object(n.a)()),params:void 0!==o[e.name]?i(i({},o[e.name]),e.params):e.params}));if(0===s.length){const t=void 0!==e.initialRouteName?e.initialRouteName:r[0];s.push({key:"".concat(t,"-").concat(Object(n.a)()),name:t,params:o[t]})}return{stale:!1,type:"stack",key:"stack-".concat(Object(n.a)()),index:s.length-1,routeNames:r,routes:s}},getStateForRouteNamesChange(t,{routeNames:r,routeParamList:o}){const a=t.routes.filter(e=>r.includes(e.name));if(0===a.length){const t=void 0!==e.initialRouteName&&r.includes(e.initialRouteName)?e.initialRouteName:r[0];a.push({key:"".concat(t,"-").concat(Object(n.a)()),name:t,params:o[t]})}return i(i({},t),{},{routeNames:r,routes:a,index:Math.min(t.index,a.length-1)})},getStateForRouteFocus(e,t){const r=e.routes.findIndex(e=>e.key===t);return-1===r||r===e.index?e:i(i({},e),{},{index:r,routes:e.routes.slice(0,r+1)})},getStateForAction(e,r,a){const{routeParamList:s}=a;switch(r.type){case"REPLACE":{const t=r.target===e.key&&r.source?e.routes.findIndex(e=>e.key===r.source):e.index;if(-1===t)return null;const{name:o,key:a,params:c}=r.payload;return e.routeNames.includes(o)?i(i({},e),{},{routes:e.routes.map((e,r)=>r===t?{key:void 0!==a?a:"".concat(o,"-").concat(Object(n.a)()),name:o,params:void 0!==s[o]?i(i({},s[o]),c):c}:e)}):null}case"PUSH":return e.routeNames.includes(r.payload.name)?i(i({},e),{},{index:e.index+1,routes:[...e.routes,{key:void 0===r.payload.key?"".concat(r.payload.name,"-").concat(Object(n.a)()):r.payload.key,name:r.payload.name,params:void 0!==s[r.payload.name]?i(i({},s[r.payload.name]),r.payload.params):r.payload.params}]}):null;case"POP":{const t=r.target===e.key&&r.source?e.routes.findIndex(e=>e.key===r.source):e.index;if(t>0){const n=Math.max(t-r.payload.count+1,1),o=e.routes.slice(0,n).concat(e.routes.slice(t+1));return i(i({},e),{},{index:o.length-1,routes:o})}return null}case"POP_TO_TOP":return t.getStateForAction(e,{type:"POP",payload:{count:e.routes.length-1}},a);case"NAVIGATE":if(r.payload.key||r.payload.name&&e.routeNames.includes(r.payload.name)){let n=-1;if(e.routes[e.index].name===r.payload.name&&void 0===r.payload.key||e.routes[e.index].key===r.payload.key)n=e.index;else for(let t=e.routes.length-1;t>=0;t--)if(e.routes[t].name===r.payload.name&&void 0===r.payload.key||e.routes[t].key===r.payload.key){n=t;break}return-1===n&&r.payload.key&&void 0===r.payload.name?null:-1===n&&void 0!==r.payload.name?t.getStateForAction(e,{type:"PUSH",payload:{key:r.payload.key,name:r.payload.name,params:r.payload.params}},a):i(i({},e),{},{index:n,routes:[...e.routes.slice(0,n),void 0!==r.payload.params?i(i({},e.routes[n]),{},{params:i(i({},e.routes[n].params),r.payload.params)}):e.routes[n]]})}return null;case"GO_BACK":return e.index>0?t.getStateForAction(e,{type:"POP",payload:{count:1},target:r.target,source:r.source},a):null;default:return o.a.getStateForAction(e,r)}},actionCreators:c});return t}},,,function(e,t,r){"use strict";function n(){return{type:"GO_BACK"}}function o(...e){if("string"==typeof e[0])return{type:"NAVIGATE",payload:{name:e[0],params:e[1]}};{const t=e[0]||{};if(!t.hasOwnProperty("key")&&!t.hasOwnProperty("name"))throw new Error("You need to specify name or key when calling navigate with an object as the argument. See https://reactnavigation.org/docs/navigation-actions#navigate for usage.");return{type:"NAVIGATE",payload:t}}}function a(e){return{type:"RESET",payload:e}}function i(e){return{type:"SET_PARAMS",payload:{params:e}}}r.r(t),r.d(t,"goBack",(function(){return n})),r.d(t,"navigate",(function(){return o})),r.d(t,"reset",(function(){return a})),r.d(t,"setParams",(function(){return i}))},function(e,t,r){"use strict";(function(e){var n=r(0),o=r(6),a=r(13),i=r(3),s=r(8),c=r(19),l=r(20),u=r(21),d=r(22),p=r(23),f=r(24),h=r(49);r(63);function g(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 y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach((function(t){b(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}try{Object.defineProperty(e,"REACT_NAVIGATION_REDUX_DEVTOOLS_EXTENSION_INTEGRATION_ENABLED",{set(e){console.warn("Redux devtools extension integration can be enabled with the '@react-navigation/devtools' package. For more details, see https://reactnavigation.org/docs/devtools")}})}catch(e){}const v=e=>{if(void 0===e)return;const{key:t,routeNames:r}=e;return y(y({},m(e,["key","routeNames"])),{},{stale:!0,routes:e.routes.map(e=>void 0===e.state?e:y(y({},e),{},{state:v(e.state)}))})},O=n.forwardRef((function({initialState:e,onStateChange:t,independent:r,children:g},b){if(!n.useContext(s.a).isDefault&&!r)throw new Error("Looks like you have nested a 'NavigationContainer' inside another. Normally you need only one container at the root of the app, so this was probably an error. If this was intentional, pass 'independent={true}' explicitely. Note that this will make the child navigators disconnected from the parent and you won't be able to navigate between them.");const[m,O,w,k,S]=Object(h.a)(()=>v(null==e?void 0:e)),j=n.useRef(!0),P=n.useRef(),E=n.useCallback(()=>P.current,[]),x=n.useCallback(e=>{P.current=e},[]),{listeners:C,addListener:R}=Object(u.a)(),{keyedListeners:A,addKeyedListener:I}=Object(d.a)(),T=e=>{if(null==C.focus[0])throw new 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.");C.focus[0](t=>t.dispatch(e))},D=()=>{if(null==C.focus[0])return!1;const{result:e,handled:t}=C.focus[0](e=>e.canGoBack());return!!t&&e},M=n.useCallback(e=>{w(e)},[w]),N=n.useCallback(()=>{var e,t;return null===(e=(t=A.getState).root)||void 0===e?void 0:e.call(t)},[A.getState]),L=n.useCallback(()=>{let e=N();if(void 0!==e){for(;void 0!==e.routes[e.index].state;)e=e.routes[e.index].state;return e.routes[e.index]}},[N]),F=Object(f.a)(),{addOptionsGetter:B,getCurrentOptions:V}=Object(p.a)({});n.useImperativeHandle(b,()=>y(y(y({},Object.keys(o.CommonActions).reduce((e,t)=>(e[t]=(...e)=>T(o.CommonActions[t](...e)),e),{})),F.create("root")),{},{resetRoot:M,dispatch:T,canGoBack:D,getRootState:N,dangerouslyGetState:()=>m,dangerouslyGetParent:()=>{},getCurrentRoute:L,getCurrentOptions:V}));const H=n.useCallback((e,t)=>{F.emit({type:"__unsafe_action__",data:{action:e,noop:t}})},[F]),G=n.useRef(),K=n.useCallback(e=>{G.current!==e&&(G.current=e,F.emit({type:"options",data:{options:e}}))},[F]),z=n.useMemo(()=>({addListener:R,addKeyedListener:I,onDispatchAction:H,onOptionsChange:K}),[R,I,H,K]),U=n.useMemo(()=>({scheduleUpdate:k,flushUpdates:S}),[k,S]),W=n.useRef(!0),q=n.useCallback(()=>W.current,[]),$=n.useMemo(()=>({state:m,getState:O,setState:w,getKey:E,setKey:x,getIsInitial:q,addOptionsGetter:B}),[m,O,w,E,x,q,B]),_=n.useRef(t);n.useEffect(()=>{W.current=!1,_.current=t}),n.useEffect(()=>{F.emit({type:"state",data:{state:m}}),!j.current&&_.current&&_.current(N()),j.current=!1},[N,F,m]);const Y=n.useCallback(e=>{},[]);return n.createElement(l.a.Provider,{value:U},n.createElement(i.a.Provider,{value:z},n.createElement(s.a.Provider,{value:$},n.createElement(c.a.Provider,{value:Y},n.createElement(a.b,null,g)))))}));t.a=O}).call(this,r(62))},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(25);function o(e){return function(){if(void 0!==arguments[0])throw new Error("Creating a navigator doesn't take an argument. Maybe you are trying to use React Navigation 4 API with React Navigation 5? See https://reactnavigation.org/docs/upgrading-from-4.x for migration guide.");return{Navigator:e,Screen:n.a}}}},function(e,t,r){"use strict";var n=r(0);const o=n.createContext(void 0);t.a=o},function(e,t,r){"use strict";r(0),r(5)},function(e,t,r){"use strict";r(0),r(9)},function(e,t,r){"use strict";r(0),r(50),r(9)},function(e,t,r){"use strict";r(0),r(9)},function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var n=r(51),o=r.n(n),a=r(26),i=r.n(a),s=r(27);function c(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 l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d(e,t){const[r,n]=Object(s.a)(t);let o=[];(null==n?void 0:n.initialRouteName)&&o.push({initialRouteName:n.initialRouteName,connectedRoutes:Object.keys(n.screens)});const a=null==n?void 0:n.screens;let i=e.replace(/\/+/g,"/").replace(/^\//,"").replace(/\?.*$/,"");if(i=i.endsWith("/")?i:"".concat(i,"/"),void 0===a){const t=i.split("/").filter(Boolean).map((t,r,n)=>{const o=decodeURIComponent(t);return r===n.length-1?{name:o,params:k(e)}:{name:o}});return t.length?v(t,o):void 0}const c=[].concat(...Object.keys(a).map(e=>h(r,e,a,[],o))).sort((e,t)=>{if(e.pattern.startsWith(t.pattern))return 1;if(t.pattern.startsWith(e.pattern))return 1;const r=e.pattern.split("/"),n=t.pattern.split("/"),o=r.indexOf("*"),a=n.indexOf("*");return-1===o&&-1!==a?-1:-1!==o&&-1===a?1:o===a?n.length-r.length:a-o});if("/"===i){const t=c.find(e=>""===e.path&&e.routeNames.every(e=>{var t;return!(null===(t=c.find(t=>t.screen===e))||void 0===t?void 0:t.path)}));return t?v(t.routeNames.map((r,n,o)=>n===o.length-1?{name:r,params:k(e,t.parse)}:{name:r}),o):void 0}let u,d;if(!1===r){const{routeNames:e,allParams:t,remainingPath:r}=f(i,c.map(e=>l(l({},e),{},{regex:e.regex?new RegExp(e.regex.source+"$"):void 0})));void 0!==e&&(i=r,d=v(O(c,e,t),o),u=d)}else for(;i;){let{routeNames:e,allParams:t,remainingPath:r}=f(i,c);if(i=r,void 0===e){const t=i.split("/");e=[decodeURIComponent(t[0])],t.shift(),i=t.join("/")}const n=v(O(c,e,t),o);if(d){for(var p;null===(g=d)||void 0===g?void 0:g.routes[d.index||0].state;){var g;d=d.routes[d.index||0].state}d.routes[(null===(p=d)||void 0===p?void 0:p.index)||0].state=n}else u=n;d=n}if(null==d||null==u)return;const b=w(d),m=k(e,y(b.name,c));return m&&(b.params=l(l({},b.params),m)),u}const p=(...e)=>[].concat(...e.map(e=>e.split("/"))).filter(Boolean).join("/"),f=(e,t)=>{let r,n,o=e;for(const e of t){if(!e.regex)continue;const t=o.match(e.regex);if(t){r=[...e.routeNames];const a=e.pattern.split("/").filter(e=>e.startsWith(":"));a.length&&(n=a.reduce((e,r,n)=>{const o=t[2*(n+1)].replace(/\//,"");return e[r]=o,e},{})),o=o.replace(t[1],"");break}}return{routeNames:r,allParams:n,remainingPath:o}},h=(e,t,r,n=[],o,a)=>{const i=[];n.push(t);const s=r[t];if("string"==typeof s){const r=a?p(a,s):s;i.push(g(e,t,n,r,s))}else if("object"==typeof s){let r;if("string"==typeof s.path){if(e)r=!0!==s.exact&&a?p(a,s.path):s.path;else{if(s.exact&&void 0===s.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: ''`.");r=!0!==s.exact?p(a||"",s.path||""):s.path||""}i.push(g(e,t,n,r,s.path,s.parse))}s.screens&&(s.initialRouteName&&o.push({initialRouteName:s.initialRouteName,connectedRoutes:Object.keys(s.screens)}),Object.keys(s.screens).forEach(t=>{var c;const l=h(e,t,s.screens,n,o,null!==(c=r)&&void 0!==c?c:a);i.push(...l)}))}return n.pop(),i},g=(e,t,r,n,a,i)=>({screen:t,regex:(n=n.split("/").filter(Boolean).join("/"))?new RegExp("^(".concat(n.split("/").map(t=>{if(e&&"*"===t)throw new Error("Please update your config to the new format to use wildcard pattern ('*'). https://reactnavigation.org/docs/configuring-links/#updating-config");return t.startsWith(":")?"(([^/]+\\/)".concat(t.endsWith("?")?"?":"",")"):"".concat("*"===t?".*":o()(t),"\\/")}).join(""),")")):void 0,pattern:n,path:a,routeNames:[...r],parse:i}),y=(e,t)=>{for(const r of t)if(e===r.routeNames[r.routeNames.length-1])return r.parse},b=(e,t)=>{for(const r of t)if(r.connectedRoutes.includes(e))return r.initialRouteName===e?void 0:r.initialRouteName},m=(e,t,r,n)=>n?e?{index:1,routes:[{name:e},{name:t,params:r}]}:{routes:[{name:t,params:r}]}:e?{index:1,routes:[{name:e},{name:t,params:r,state:{routes:[]}}]}:{routes:[{name:t,params:r,state:{routes:[]}}]},v=(e,t)=>{let r,n=e.shift(),o=b(n.name,t);if(r=m(o,n.name,n.params,0===e.length),e.length>0){let a=r;for(;n=e.shift();){o=b(n.name,t);const r=a.index||a.routes.length-1;a.routes[r].state=m(o,n.name,n.params,0===e.length),e.length>0&&(a=a.routes[r].state)}}return r},O=(e,t,r)=>t.map(t=>{const n=e.find(e=>e.screen===t);let o;if(r&&(null==n?void 0:n.path)){const e=n.path;if(e){const t=e.split("/").filter(e=>e.startsWith(":"));t.length&&(o=t.reduce((e,t)=>{const o=t.replace(/^:/,"").replace(/\?$/,""),a=r[t];return a&&(e[o]=n.parse&&n.parse[o]?n.parse[o](a):a),e},{}))}}return o&&Object.keys(o).length?{name:t,params:o}:{name:t}}),w=e=>{var t;let r=e;for(;null===(n=r)||void 0===n?void 0:n.routes[r.index||0].state;){var n;r=r.routes[r.index||0].state}return r.routes[(null===(t=r)||void 0===t?void 0:t.index)||0]},k=(e,t)=>{const r=e.split("?")[1],n=i.a.parse(r);return t&&Object.keys(n).forEach(e=>{t[e]&&"string"==typeof n[e]&&(n[e]=t[e](n[e]))}),Object.keys(n).length?n:void 0}},function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(26),o=r.n(n),a=r(27);function i(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 s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const l=e=>{const t="number"==typeof e.index?e.routes[e.index]:e.routes[e.routes.length-1];return t.state?l(t.state):t};function u(e,t){if(null==e)throw Error("Got 'undefined' for the navigation state. You must pass a valid state object.");const[r,n]=Object(a.a)(t),i=n?h(r,n.screens):{};let c="/",u=e;const f={};for(;u;){let t,n,a="number"==typeof u.index?u.index:0,h=u.routes[a],b=l(e),m=i,v=[],O=!0;for(;h.name in m&&O;){if(t=m[h.name].pattern,v.push(h.name),h.params){var g;const e=null===(g=m[h.name])||void 0===g?void 0:g.stringify,r=d(Object.entries(h.params).map(([t,r])=>[t,(null==e?void 0:e[t])?e[t](r):String(r)]));var y;if(t&&Object.assign(f,r),b===h)n=s({},r),null===(y=t)||void 0===y||y.split("/").filter(e=>e.startsWith(":")).forEach(e=>{const t=p(e);n&&delete n[t]})}if(m[h.name].screens&&void 0!==h.state){a="number"==typeof h.state.index?h.state.index:h.state.routes.length-1;const e=h.state.routes[a],t=m[h.name].screens;t&&e.name in t?(h=e,m=t):O=!1}else O=!1}if(void 0===t&&(t=v.join("/")),void 0!==m[h.name]?c+=t.split("/").map(e=>{const t=p(e);if("*"===e){if(r)throw new Error("Please update your config to the new format to use wildcard pattern ('*'). https://reactnavigation.org/docs/configuring-links/#updating-config");return h.name}if(e.startsWith(":")){const r=f[t];return void 0===r&&e.endsWith("?")?"":encodeURIComponent(r)}return encodeURIComponent(e)}).join("/"):c+=encodeURIComponent(h.name),n||(n=b.params),h.state)c+="/";else if(n){for(let e in n)"undefined"===n[e]&&delete n[e];const e=o.a.stringify(n);e&&(c+="?".concat(e))}u=h.state}return c=c.replace(/\/+/g,"/"),c=c.length>1?c.replace(/\/$/,""):c,c}const d=e=>e.reduce((e,[t,r])=>(e[t]=r,e),{}),p=e=>e.replace(/^:/,"").replace(/\?$/,""),f=(...e)=>[].concat(...e.map(e=>e.split("/"))).filter(Boolean).join("/"),h=(e,t,r)=>d(Object.entries(t).map(([t,n])=>[t,((e,t,r)=>{var n;if("string"==typeof t){return{pattern:r?f(r,t):t}}let o;if(e)o=!0!==t.exact&&r&&t.path?f(r,t.path):t.path;else{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: ''`.");o=!0!==t.exact?f(r||"",t.path||""):t.path||""}const a=t.screens?h(e,t.screens,o):void 0;return{pattern:null===(n=o)||void 0===n?void 0:n.split("/").filter(Boolean).join("/"),stringify:t.stringify,screens:a}})(e,n,r)]))},function(e,t,r){"use strict";function n(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 o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e){if(0===e.routes.length)return;let t=e.routes[e.routes.length-1],r={name:t.name,params:o({},t.params)},n=t.state,a=r.params;for(;n;){if(0===n.routes.length)return;t=n.routes[n.routes.length-1],a.initial=1===n.routes.length,a.screen=t.name,t.state?(a.params=o({},t.params),a=a.params):a.params=t.params,n=t.state}return{type:"NAVIGATE",payload:r}}r.d(t,"a",(function(){return i}))},function(e,t,r){"use strict"},function(e,t){},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(0),o=r(28);function a(){return n.useContext(o.a)}},function(e,t,r){var n=r(79),o={};for(var a in n)n.hasOwnProperty(a)&&(o[n[a]]=a);var i=e.exports={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"]}};for(var s in i)if(i.hasOwnProperty(s)){if(!("channels"in i[s]))throw new Error("missing channels property: "+s);if(!("labels"in i[s]))throw new Error("missing channel labels property: "+s);if(i[s].labels.length!==i[s].channels)throw new Error("channel and label counts mismatch: "+s);var c=i[s].channels,l=i[s].labels;delete i[s].channels,delete i[s].labels,Object.defineProperty(i[s],"channels",{value:c}),Object.defineProperty(i[s],"labels",{value:l})}i.rgb.hsl=function(e){var t,r,n=e[0]/255,o=e[1]/255,a=e[2]/255,i=Math.min(n,o,a),s=Math.max(n,o,a),c=s-i;return s===i?t=0:n===s?t=(o-a)/c:o===s?t=2+(a-n)/c:a===s&&(t=4+(n-o)/c),(t=Math.min(60*t,360))<0&&(t+=360),r=(i+s)/2,[t,100*(s===i?0:r<=.5?c/(s+i):c/(2-s-i)),100*r]},i.rgb.hsv=function(e){var t,r,n,o,a,i=e[0]/255,s=e[1]/255,c=e[2]/255,l=Math.max(i,s,c),u=l-Math.min(i,s,c),d=function(e){return(l-e)/6/u+.5};return 0===u?o=a=0:(a=u/l,t=d(i),r=d(s),n=d(c),i===l?o=n-r:s===l?o=1/3+t-n:c===l&&(o=2/3+r-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*a,100*l]},i.rgb.hwb=function(e){var t=e[0],r=e[1],n=e[2];return[i.rgb.hsl(e)[0],100*(1/255*Math.min(t,Math.min(r,n))),100*(n=1-1/255*Math.max(t,Math.max(r,n)))]},i.rgb.cmyk=function(e){var t,r=e[0]/255,n=e[1]/255,o=e[2]/255;return[100*((1-r-(t=Math.min(1-r,1-n,1-o)))/(1-t)||0),100*((1-n-t)/(1-t)||0),100*((1-o-t)/(1-t)||0),100*t]},i.rgb.keyword=function(e){var t=o[e];if(t)return t;var r,a,i,s=1/0;for(var c in n)if(n.hasOwnProperty(c)){var l=n[c],u=(a=e,i=l,Math.pow(a[0]-i[0],2)+Math.pow(a[1]-i[1],2)+Math.pow(a[2]-i[2],2));u<s&&(s=u,r=c)}return r},i.keyword.rgb=function(e){return n[e]},i.rgb.xyz=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.1805*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)),100*(.2126*t+.7152*r+.0722*n),100*(.0193*t+.1192*r+.9505*n)]},i.rgb.lab=function(e){var t=i.rgb.xyz(e),r=t[0],n=t[1],o=t[2];return n/=100,o/=108.883,r=(r/=95.047)>.008856?Math.pow(r,1/3):7.787*r+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(r-n),200*(n-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]},i.hsl.rgb=function(e){var t,r,n,o,a,i=e[0]/360,s=e[1]/100,c=e[2]/100;if(0===s)return[a=255*c,a,a];t=2*c-(r=c<.5?c*(1+s):c+s-c*s),o=[0,0,0];for(var l=0;l<3;l++)(n=i+1/3*-(l-1))<0&&n++,n>1&&n--,a=6*n<1?t+6*(r-t)*n:2*n<1?r:3*n<2?t+(r-t)*(2/3-n)*6:t,o[l]=255*a;return o},i.hsl.hsv=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,o=r,a=Math.max(n,.01);return r*=(n*=2)<=1?n:2-n,o*=a<=1?a:2-a,[t,100*(0===n?2*o/(a+o):2*r/(n+r)),100*((n+r)/2)]},i.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,n=e[2]/100,o=Math.floor(t)%6,a=t-Math.floor(t),i=255*n*(1-r),s=255*n*(1-r*a),c=255*n*(1-r*(1-a));switch(n*=255,o){case 0:return[n,c,i];case 1:return[s,n,i];case 2:return[i,n,c];case 3:return[i,s,n];case 4:return[c,i,n];case 5:return[n,i,s]}},i.hsv.hsl=function(e){var t,r,n,o=e[0],a=e[1]/100,i=e[2]/100,s=Math.max(i,.01);return n=(2-a)*i,r=a*s,[o,100*(r=(r/=(t=(2-a)*s)<=1?t:2-t)||0),100*(n/=2)]},i.hwb.rgb=function(e){var t,r,n,o,a,i,s,c=e[0]/360,l=e[1]/100,u=e[2]/100,d=l+u;switch(d>1&&(l/=d,u/=d),n=6*c-(t=Math.floor(6*c)),0!=(1&t)&&(n=1-n),o=l+n*((r=1-u)-l),t){default:case 6:case 0:a=r,i=o,s=l;break;case 1:a=o,i=r,s=l;break;case 2:a=l,i=r,s=o;break;case 3:a=l,i=o,s=r;break;case 4:a=o,i=l,s=r;break;case 5:a=r,i=l,s=o}return[255*a,255*i,255*s]},i.cmyk.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o))]},i.xyz.rgb=function(e){var t,r,n,o=e[0]/100,a=e[1]/100,i=e[2]/100;return r=-.9689*o+1.8758*a+.0415*i,n=.0557*o+-.204*a+1.057*i,t=(t=3.2406*o+-1.5372*a+-.4986*i)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,[255*(t=Math.min(Math.max(0,t),1)),255*(r=Math.min(Math.max(0,r),1)),255*(n=Math.min(Math.max(0,n),1))]},i.xyz.lab=function(e){var t=e[0],r=e[1],n=e[2];return r/=100,n/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(t-r),200*(r-(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116))]},i.lab.xyz=function(e){var t,r,n,o=e[0];t=e[1]/500+(r=(o+16)/116),n=r-e[2]/200;var a=Math.pow(r,3),i=Math.pow(t,3),s=Math.pow(n,3);return r=a>.008856?a:(r-16/116)/7.787,t=i>.008856?i:(t-16/116)/7.787,n=s>.008856?s:(n-16/116)/7.787,[t*=95.047,r*=100,n*=108.883]},i.lab.lch=function(e){var t,r=e[0],n=e[1],o=e[2];return(t=360*Math.atan2(o,n)/2/Math.PI)<0&&(t+=360),[r,Math.sqrt(n*n+o*o),t]},i.lch.lab=function(e){var t,r=e[0],n=e[1];return t=e[2]/360*2*Math.PI,[r,n*Math.cos(t),n*Math.sin(t)]},i.rgb.ansi16=function(e){var t=e[0],r=e[1],n=e[2],o=1 in arguments?arguments[1]:i.rgb.hsv(e)[2];if(0===(o=Math.round(o/50)))return 30;var a=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return 2===o&&(a+=60),a},i.hsv.ansi16=function(e){return i.rgb.ansi16(i.hsv.rgb(e),e[2])},i.rgb.ansi256=function(e){var t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},i.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},i.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var r;return e-=16,[Math.floor(e/36)/5*255,Math.floor((r=e%36)/6)/5*255,r%6/5*255]},i.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},i.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var r=t[0];3===t[0].length&&(r=r.split("").map((function(e){return e+e})).join(""));var n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},i.rgb.hcg=function(e){var t,r=e[0]/255,n=e[1]/255,o=e[2]/255,a=Math.max(Math.max(r,n),o),i=Math.min(Math.min(r,n),o),s=a-i;return t=s<=0?0:a===r?(n-o)/s%6:a===n?2+(o-r)/s:4+(r-n)/s+4,t/=6,[360*(t%=1),100*s,100*(s<1?i/(1-s):0)]},i.hsl.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1,o=0;return(n=r<.5?2*t*r:2*t*(1-r))<1&&(o=(r-.5*n)/(1-n)),[e[0],100*n,100*o]},i.hsv.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=t*r,o=0;return n<1&&(o=(r-n)/(1-n)),[e[0],100*n,100*o]},i.hcg.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100;if(0===r)return[255*n,255*n,255*n];var o,a=[0,0,0],i=t%1*6,s=i%1,c=1-s;switch(Math.floor(i)){case 0:a[0]=1,a[1]=s,a[2]=0;break;case 1:a[0]=c,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=s;break;case 3:a[0]=0,a[1]=c,a[2]=1;break;case 4:a[0]=s,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=c}return o=(1-r)*n,[255*(r*a[0]+o),255*(r*a[1]+o),255*(r*a[2]+o)]},i.hcg.hsv=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t),n=0;return r>0&&(n=t/r),[e[0],100*n,100*r]},i.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100*(1-t)+.5*t,n=0;return r>0&&r<.5?n=t/(2*r):r>=.5&&r<1&&(n=t/(2*(1-r))),[e[0],100*n,100*r]},i.hcg.hwb=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],100*(r-t),100*(1-r)]},i.hwb.hcg=function(e){var t=e[1]/100,r=1-e[2]/100,n=r-t,o=0;return n<1&&(o=(r-n)/(1-n)),[e[0],100*n,100*o]},i.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},i.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},i.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},i.gray.hsl=i.gray.hsv=function(e){return[0,0,e[0]]},i.gray.hwb=function(e){return[0,100,e[0]]},i.gray.cmyk=function(e){return[0,0,0,e[0]]},i.gray.lab=function(e){return[e[0],0,0]},i.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},i.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},function(e,t,r){"use strict";r.d(t,"a",(function(){return J}));var n=r(0),o=(r(64),r(6)),a=r(8),i=r(5),s=r(25),c=r(24),l=r(4),u=r(13);function d(e){return e.children}var p=n.memo(d,(e,t)=>{const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const n of r)if("children"!==n&&e[n]!==t[n])return!1;return!0}),f=r(23);function h(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 g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b({screen:e,route:t,navigation:r,getState:o,setState:i,options:s}){const c=n.useRef(),l=n.useCallback(()=>c.current,[]),{addOptionsGetter:d}=Object(f.a)({key:t.key,options:s,navigation:r}),h=n.useCallback(e=>{c.current=e},[]),y=n.useCallback(()=>{const e=o().routes.find(e=>e.key===t.key);return e?e.state:void 0},[o,t.key]),b=n.useCallback(e=>{const r=o();i(g(g({},r),{},{routes:r.routes.map(r=>r.key===t.key?g(g({},r),{},{state:e}):r)}))},[o,t.key,i]),m=n.useRef(!0);n.useEffect(()=>{m.current=!1});const v=n.useCallback(()=>m.current,[]),O=n.useMemo(()=>({state:t.state,getState:y,setState:b,getKey:l,setKey:h,getIsInitial:v,addOptionsGetter:d}),[t.state,y,b,l,h,v,d]),w=e.getComponent?e.getComponent():e.component;return n.createElement(a.a.Provider,{value:O},n.createElement(u.b,null,n.createElement(p,{name:e.name,render:w||e.children,navigation:r,route:t},void 0!==w?n.createElement(w,{navigation:r,route:t}):void 0!==e.children?e.children({navigation:r,route:t}):null)))}var m=r(3);function v(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function O(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 w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?O(Object(r),!0).forEach((function(t){k(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function k(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var S=r(7);function j(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 P(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?j(Object(r),!0).forEach((function(t){E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function E(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function x({state:e,screens:t,navigation:r,screenOptions:a,onAction:s,getState:c,setState:l,addListener:u,addKeyedListener:d,onRouteFocus:p,router:f,emitter:h}){const[g,y]=n.useState({}),{onDispatchAction:O,onOptionsChange:k}=n.useContext(m.a),j=n.useMemo(()=>({navigation:r,onAction:s,addListener:u,addKeyedListener:d,onRouteFocus:p,onDispatchAction:O,onOptionsChange:k}),[r,s,u,d,p,O,k]),E=function({state:e,getState:t,navigation:r,setOptions:a,router:i,emitter:s}){const c=n.useMemo(()=>({current:{}}),[t,r,a,i,s]),l=w(w({},i.actionCreators),o.CommonActions);return c.current=e.routes.reduce((e,n)=>{const o=c.current[n.key];if(o)e[n.key]=o;else{const{emit:o}=r,i=v(r,["emit"]),c=e=>{const o="function"==typeof e?e(t()):e;r.dispatch("object"==typeof o&&null!=o?w({source:n.key},o):o)},u=Object.keys(l).reduce((e,t)=>(e[t]=(...e)=>c(l[t](...e)),e),{});e[n.key]=w(w(w(w({},i),u),s.create(n.key)),{},{dispatch:c,setOptions:e=>a(t=>w(w({},t),{},{[n.key]:w(w({},t[n.key]),e)})),isFocused:()=>{const e=t();return e.routes[e.index].key===n.key&&(!r||r.isFocused())}})}return e},{}),c.current}({state:e,getState:c,navigation:r,setOptions:y,router:f,emitter:h});return e.routes.reduce((e,r)=>{const o=t[r.name],s=E[r.key],u=P(P(P({},"object"==typeof a||null==a?a:a({route:r,navigation:s})),"object"==typeof o.options||null==o.options?o.options:o.options({route:r,navigation:s})),g[r.key]);return e[r.key]={navigation:s,render:()=>n.createElement(m.a.Provider,{key:r.key,value:j},n.createElement(S.a.Provider,{value:s},n.createElement(i.a.Provider,{value:r},n.createElement(b,{navigation:s,route:r,screen:o,getState:c,setState:l,options:u})))),options:u},e},{})}var C=r(19),R=r(11);function A(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 I(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?A(Object(r),!0).forEach((function(t){T(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function T(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function D(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 M(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?D(Object(r),!0).forEach((function(t){N(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):D(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function N(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}R.a;const L=Symbol("VISITED_ROUTE_KEYS"),F=(e,t,r,n)=>{var o;const a=[...r].reverse(),i=null!==(o=n[L])&&void 0!==o?o:new Set,s=M(M({},n),{},{[L]:i});for(const r of a){var c;if(i.has(r.key))continue;if(null===(c=t[r.key])||void 0===c?void 0:c.call(t,s))return!0;i.add(r.key);if(e.emit({type:"beforeRemove",target:r.key,data:{action:s},canPreventDefault:!0}).defaultPrevented)return!0}return!1};function B({router:e,getState:t,setState:r,key:o,actionListeners:a,beforeRemoveListeners:s,routerConfigOptions:c,emitter:l}){const{onAction:u,onRouteFocus:d,addListener:p,onDispatchAction:f}=n.useContext(m.a),h=n.useRef(c);n.useEffect(()=>{h.current=c});const g=n.useCallback((n,i=new Set)=>{const c=t();if(i.has(c.key))return!1;if(i.add(c.key),"string"!=typeof n.target||n.target===c.key){let t=e.getStateForAction(c,n,h.current);if(t=null===t&&n.target===c.key?c:t,null!==t){if(f(n,c===t),c!==t){const e=t.routes.map(e=>e.key),o=c.routes.filter(t=>!e.includes(t.key));if(F(l,s,o,n))return!0;r(t)}if(void 0!==d){e.shouldActionChangeFocus(n)&&void 0!==o&&d(o)}return!0}}if(void 0!==u&&u(n,i))return!0;for(let e=a.length-1;e>=0;e--){if((0,a[e])(n,i))return!0}return!1},[a,s,l,t,o,u,f,d,e,r]);return function({getState:e,emitter:t,beforeRemoveListeners:r}){const{addKeyedListener:o}=n.useContext(m.a),a=n.useContext(i.a),s=null==a?void 0:a.key;n.useEffect(()=>{if(s)return null==o?void 0:o("beforeRemove",s,n=>{const o=e();return F(t,r,o.routes,n)})},[o,r,t,e,s])}({getState:t,emitter:l,beforeRemoveListeners:s}),n.useEffect(()=>null==p?void 0:p("action",g),[p,g]),g}var V=r(21);var H=r(22);function G(e,t){return e.length===t.length&&e.every((e,r)=>e===t[r])}function K(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 z(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?K(Object(r),!0).forEach((function(t){U(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):K(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function U(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var W=r(20),q=r(15);function $(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;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$(Object(r),!0).forEach((function(t){Y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Q(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}R.a;const X=e=>n.Children.toArray(e).reduce((e,t)=>{if(n.isValidElement(t)){if(t.type===s.a)return e.push(t.props),e;if(t.type===n.Fragment)return e.push(...X(t.props.children)),e}throw new Error("A navigator can only contain 'Screen' components as its direct children (found '".concat(t.type&&t.type.name?t.type.name:String(t),"')"))},[]);function J(e,t){var r;const s=function(){const[e]=n.useState(()=>Object(l.a)()),t=n.useContext(u.a);if(void 0===t)throw new Error("Couldn't register the navigator. Have you wrapped your app with 'NavigationContainer'?");return n.useEffect(()=>{const{register:r,unregister:n}=t;return r(e),()=>n(e)},[t,e]),e}(),d=n.useContext(i.a),p=n.useRef(null==d?void 0:d.params);n.useEffect(()=>{p.current=null==d?void 0:d.params},[d]);const{children:f}=t,h=Q(t,["children"]),{current:g}=n.useRef(e(_(_({},h),(null==d?void 0:d.params)&&!1!==d.params.initial&&"string"==typeof d.params.screen?{initialRouteName:d.params.screen}:null))),y=X(f),b=y.reduce((e,t)=>{if(t.name in e)throw new Error("A navigator cannot contain multiple 'Screen' components with the same name (found duplicate screen named '".concat(t.name,"')"));return e[t.name]=t,e},{}),v=y.map(e=>e.name),O=v.reduce((e,t)=>{var r,n;const{initialParams:o}=b[t],a=!1!==(null==d||null===(r=d.params)||void 0===r?void 0:r.initial)&&(null==d||null===(n=d.params)||void 0===n?void 0:n.screen)===t?d.params.params:void 0;return e[t]=void 0!==o||void 0!==a?_(_({},o),a):void 0,e},{});if(!v.length)throw new Error("Couldn't find any screens for the navigator. Have you defined any screens as its children?");const w=n.useCallback(e=>void 0===e.type||e.type===g.type,[g.type]),k=n.useCallback(e=>void 0!==e&&!1===e.stale&&w(e),[w]),{state:j,getState:P,setState:E,setKey:R,getKey:A,getIsInitial:T}=n.useContext(a.a),[D,M]=n.useMemo(()=>void 0!==j&&w(j)?[g.getRehydratedState(j,{routeNames:v,routeParamList:O}),!1]:[g.getInitialState({routeNames:v,routeParamList:O}),!0],[j,g,w]);let N=k(j)?j:D,L=N;if(G(N.routeNames,v)||(L=g.getStateForRouteNamesChange(N,{routeNames:v,routeParamList:O})),"string"==typeof(null==d||null===(r=d.params)||void 0===r?void 0:r.screen)&&(d.params!==p.current||!1===d.params.initial&&M)){const e=g.getStateForAction(L,o.CommonActions.navigate(d.params.screen,d.params.params),{routeNames:v,routeParamList:O});L=null!==e?g.getRehydratedState(e,{routeNames:v,routeParamList:O}):L}const F=N!==L;Object(W.b)(()=>{F&&E(L)}),N=L,n.useEffect(()=>(R(s),T()||E(L),()=>{setTimeout(()=>{void 0!==P()&&A()===s&&E(void 0)},0)}),[]);const K=n.useRef();K.current=D;const U=n.useCallback(()=>{const e=P();return k(e)?e:K.current},[P,k]),$=Object(c.a)(e=>{let t,r=[];var n;e.target?(t=N.routes.find(t=>t.key===e.target),(null===(n=t)||void 0===n?void 0:n.name)&&r.push(t.name)):(t=N.routes[N.index],r.push(...Object.keys(b).filter(e=>{var r;return(null===(r=t)||void 0===r?void 0:r.name)===e})));if(null==t)return;const o=oe[t.key].navigation;[].concat(...r.map(r=>{const{listeners:n}=b[r],a="function"==typeof n?n({route:t,navigation:o}):n;return a?Object.keys(a).filter(t=>t===e.type).map(e=>null==a?void 0:a[e]):void 0})).filter((e,t,r)=>e&&r.lastIndexOf(e)===t).forEach(t=>null==t?void 0:t(e))});!function({state:e,emitter:t}){const r=n.useContext(S.a),o=n.useRef(),a=e.routes[e.index].key;n.useEffect(()=>null==r?void 0:r.addListener("focus",()=>{o.current=a,t.emit({type:"focus",target:a})}),[a,t,r]),n.useEffect(()=>null==r?void 0:r.addListener("blur",()=>{o.current=void 0,t.emit({type:"blur",target:a})}),[a,t,r]),n.useEffect(()=>{const e=o.current;o.current=a,void 0!==e||r||t.emit({type:"focus",target:a}),e===a||r&&!r.isFocused()||void 0!==e&&(t.emit({type:"blur",target:e}),t.emit({type:"focus",target:a}))},[a,t,r])}({state:N,emitter:$}),n.useEffect(()=>{$.emit({type:"state",data:{state:N}})},[$,N]);const{listeners:Y,addListener:J}=Object(V.a)(),{keyedListeners:Z,addKeyedListener:ee}=Object(H.a)(),te=B({router:g,getState:U,setState:E,key:null==d?void 0:d.key,actionListeners:Y.action,beforeRemoveListeners:Z.beforeRemove,routerConfigOptions:{routeNames:v,routeParamList:O},emitter:$}),re=function({router:e,getState:t,key:r,setState:o}){const{onRouteFocus:a}=n.useContext(m.a);return n.useCallback(n=>{const i=t(),s=e.getStateForRouteFocus(i,n);s!==i&&o(s),void 0!==a&&void 0!==r&&a(r)},[t,a,e,o,r])}({router:g,key:null==d?void 0:d.key,getState:U,setState:E}),ne=function({onAction:e,getState:t,emitter:r,router:a}){const i=n.useContext(C.a),s=n.useContext(S.a);return n.useMemo(()=>{const n=r=>{const n="function"==typeof r?r(t()):r;e(n)||null==i||i(n)},c=I(I({},a.actionCreators),o.CommonActions),l=Object.keys(c).reduce((e,t)=>(e[t]=(...e)=>n(c[t](...e)),e),{});return I(I(I({},s),l),{},{dispatch:n,emit:r.emit,isFocused:s?s.isFocused:()=>!0,canGoBack:()=>{const e=t();return null!==a.getStateForAction(e,o.CommonActions.goBack(),{routeNames:e.routeNames,routeParamList:{}})||(null==s?void 0:s.canGoBack())||!1},dangerouslyGetParent:()=>s,dangerouslyGetState:t})},[r.emit,t,e,i,s,a])}({onAction:te,getState:U,emitter:$,router:g});!function({navigation:e,focusedListeners:t}){const{addListener:r}=n.useContext(m.a),o=n.useCallback(r=>{if(e.isFocused()){for(const e of t){const{handled:t,result:n}=e(r);if(t)return{handled:t,result:n}}return{handled:!0,result:r(e)}}return{handled:!1,result:null}},[t,e]);n.useEffect(()=>null==r?void 0:r("focus",o),[r,o])}({navigation:ne,focusedListeners:Y.focus}),function({getState:e,getStateListeners:t}){const{addKeyedListener:r}=n.useContext(m.a),o=n.useContext(i.a),a=o?o.key:"root",s=n.useCallback(()=>{const r=e(),n=r.routes.map(e=>{var r;const n=null===(r=t[e.key])||void 0===r?void 0:r.call(t);return e.state===n?e:z(z({},e),{},{state:n})});return G(r.routes,n)?r:z(z({},r),{},{routes:n})},[e,t]);n.useEffect(()=>null==r?void 0:r("getState",a,s),[r,s,a])}({getState:U,getStateListeners:Z.getState});const oe=x({state:N,screens:b,navigation:ne,screenOptions:t.screenOptions,onAction:te,getState:U,setState:E,onRouteFocus:re,addListener:J,addKeyedListener:ee,router:g,emitter:$});return function({state:e,navigation:t,descriptors:r}){const o=n.useContext(q.a);o&&t.isFocused()&&(o.options=r[e.routes[e.index].key].options)}({state:N,navigation:ne,descriptors:oe}),{state:N,navigation:ne,descriptors:oe}}},function(e,t,r){"use strict";var n=r(0),o=r(10),a=r(17),i=r(12);var s=n.createContext({options:void 0});function c(e){const[t]=n.useState(e);let r,o=!1;t.then(e=>{o=!0,r=e});const[a,i]=n.useState([o,r]);return n.useEffect(()=>{let e=!1;return o||(async()=>{let r;try{r=await t}finally{e||i([!0,r])}})(),()=>{e=!0}},[t,o]),a}var l=r(18);var u=r(16);function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function p(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 f(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const g=n.forwardRef((function(e,t){let{theme:r=i.a,linking:g,fallback:y=null,documentTitle:b,onReady:m}=e,v=h(e,["theme","linking","fallback","documentTitle","onReady"]);const O=!!g&&!1!==g.enabled,w=n.useRef(null);Object(u.a)(w),function(e,{enabled:t=!0,formatter:r=((e,t)=>{var r;return null!==(r=null==e?void 0:e.title)&&void 0!==r?r:null==t?void 0:t.name})}={}){n.useEffect(()=>{if(!t)return;const n=e.current;if(n){const e=r(n.getCurrentOptions(),n.getCurrentRoute());document.title=e}return null==n?void 0:n.addListener("options",e=>{const t=r(e.data.options,null==n?void 0:n.getCurrentRoute());document.title=t})})}(w,b);const{getInitialState:k}=Object(l.a)(w,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){f(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({enabled:O,prefixes:[]},g)),[S,j]=c(k);n.useImperativeHandle(t,()=>w.current);const P=n.useMemo(()=>({options:g}),[g]),E=null!=v.initialState||!O||S,x=n.useRef(m);return n.useEffect(()=>{x.current=m}),n.useEffect(()=>{var e;E&&(null===(e=x.current)||void 0===e||e.call(x))},[E]),E?n.createElement(s.Provider,{value:P},n.createElement(a.a,{value:r},n.createElement(o.BaseNavigationContainer,d({},v,{initialState:null==v.initialState?j:v.initialState,ref:w})))):y}));t.a=g},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(0);const o={};function a(e){const t=n.useRef(o),r=n.useRef(!1),a=n.useRef(!0);n.useEffect(()=>(a.current=!0,()=>{a.current=!1}),[]),t.current===o&&(t.current="function"==typeof e?e():e);const[i,s]=n.useState(t.current),c=n.useCallback(()=>t.current,[]),l=n.useCallback(e=>{e!==t.current&&a.current&&(t.current=e,r.current||s(e))},[]),u=n.useCallback(e=>{r.current=!0;try{e()}finally{r.current=!1}},[]),d=n.useCallback(()=>{a.current&&s(t.current)},[]);i!==t.current&&s(t.current);return[t.current,c,l,u,d]}},function(e,t,r){"use strict";e.exports=r(66)},function(e,t,r){"use strict";e.exports=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}},function(e,t,r){"use strict";var n=r(74),o=r(78),a=[].slice,i=["keyword","gray","hex"],s={};Object.keys(o).forEach((function(e){s[a.call(o[e].labels).sort().join("")]=e}));var c={};function l(e,t){if(!(this instanceof l))return new l(e,t);if(t&&t in i&&(t=null),t&&!(t in o))throw new Error("Unknown model: "+t);var r,u;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof l)this.model=e.model,this.color=e.color.slice(),this.valpha=e.valpha;else if("string"==typeof e){var d=n.get(e);if(null===d)throw new Error("Unable to parse color from string: "+e);this.model=d.model,u=o[this.model].channels,this.color=d.value.slice(0,u),this.valpha="number"==typeof d.value[u]?d.value[u]:1}else if(e.length){this.model=t||"rgb",u=o[this.model].channels;var p=a.call(e,0,u);this.color=f(p,u),this.valpha="number"==typeof e[u]?e[u]:1}else if("number"==typeof e)e&=16777215,this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;var h=Object.keys(e);"alpha"in e&&(h.splice(h.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);var g=h.sort().join("");if(!(g in s))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=s[g];var y=o[this.model].labels,b=[];for(r=0;r<y.length;r++)b.push(e[y[r]]);this.color=f(b)}if(c[this.model])for(u=o[this.model].channels,r=0;r<u;r++){var m=c[this.model][r];m&&(this.color[r]=m(this.color[r]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}function u(e,t,r){return(e=Array.isArray(e)?e:[e]).forEach((function(e){(c[e]||(c[e]=[]))[t]=r})),e=e[0],function(n){var o;return arguments.length?(r&&(n=r(n)),(o=this[e]()).color[t]=n,o):(o=this[e]().color[t],r&&(o=r(o)),o)}}function d(e){return function(t){return Math.max(0,Math.min(e,t))}}function p(e){return Array.isArray(e)?e:[e]}function f(e,t){for(var r=0;r<t;r++)"number"!=typeof e[r]&&(e[r]=0);return e}l.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(e){var t=this.model in n.to?this:this.rgb(),r=1===(t=t.round("number"==typeof e?e:1)).valpha?t.color:t.color.concat(this.valpha);return n.to[t.model](r)},percentString:function(e){var t=this.rgb().round("number"==typeof e?e:1),r=1===t.valpha?t.color:t.color.concat(this.valpha);return n.to.rgb.percent(r)},array:function(){return 1===this.valpha?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var e={},t=o[this.model].channels,r=o[this.model].labels,n=0;n<t;n++)e[r[n]]=this.color[n];return 1!==this.valpha&&(e.alpha=this.valpha),e},unitArray:function(){var e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e},unitObject:function(){var e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e},round:function(e){return e=Math.max(e||0,0),new l(this.color.map(function(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}(e)).concat(this.valpha),this.model)},alpha:function(e){return arguments.length?new l(this.color.concat(Math.max(0,Math.min(1,e))),this.model):this.valpha},red:u("rgb",0,d(255)),green:u("rgb",1,d(255)),blue:u("rgb",2,d(255)),hue:u(["hsl","hsv","hsl","hwb","hcg"],0,(function(e){return(e%360+360)%360})),saturationl:u("hsl",1,d(100)),lightness:u("hsl",2,d(100)),saturationv:u("hsv",1,d(100)),value:u("hsv",2,d(100)),chroma:u("hcg",1,d(100)),gray:u("hcg",2,d(100)),white:u("hwb",1,d(100)),wblack:u("hwb",2,d(100)),cyan:u("cmyk",0,d(100)),magenta:u("cmyk",1,d(100)),yellow:u("cmyk",2,d(100)),black:u("cmyk",3,d(100)),x:u("xyz",0,d(100)),y:u("xyz",1,d(100)),z:u("xyz",2,d(100)),l:u("lab",0,d(100)),a:u("lab",1),b:u("lab",2),keyword:function(e){return arguments.length?new l(e):o[this.model].keyword(this.color)},hex:function(e){return arguments.length?new l(e):n.to.hex(this.rgb().round().color)},rgbNumber:function(){var e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity:function(){for(var e=this.rgb().color,t=[],r=0;r<e.length;r++){var n=e[r]/255;t[r]=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),r=e.luminosity();return t>r?(t+.05)/(r+.05):(r+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},isDark:function(){var e=this.rgb().color;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var e=this.rgb(),t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten:function(e){var t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken:function(e){var t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate:function(e){var t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate:function(e){var t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten:function(e){var t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken:function(e){var t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale:function(){var e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return l.rgb(t,t,t)},fade:function(e){return this.alpha(this.valpha-this.valpha*e)},opaquer:function(e){return this.alpha(this.valpha+this.valpha*e)},rotate:function(e){var t=this.hsl(),r=t.color[0];return r=(r=(r+e)%360)<0?360+r:r,t.color[0]=r,t},mix:function(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);var r=e.rgb(),n=this.rgb(),o=void 0===t?.5:t,a=2*o-1,i=r.alpha()-n.alpha(),s=((a*i==-1?a:(a+i)/(1+a*i))+1)/2,c=1-s;return l.rgb(s*r.red()+c*n.red(),s*r.green()+c*n.green(),s*r.blue()+c*n.blue(),r.alpha()*o+n.alpha()*(1-o))}},Object.keys(o).forEach((function(e){if(-1===i.indexOf(e)){var t=o[e].channels;l.prototype[e]=function(){if(this.model===e)return new l(this);if(arguments.length)return new l(arguments,e);var r="number"==typeof arguments[t]?t:this.valpha;return new l(p(o[this.model][e].raw(this.color)).concat(r),e)},l[e]=function(r){return"number"==typeof r&&(r=f(a.call(arguments),t)),new l(r,e)}}})),e.exports=l},,,,,,,,,,function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict"},function(e,t,r){"use strict";e.exports=r(65)},function(e,t,r){"use strict"; | |
/** @license React v16.13.1 | |
* react-is.production.min.js | |
* | |
* Copyright (c) Facebook, Inc. and its affiliates. | |
* | |
* This source code is licensed under the MIT license found in the | |
* LICENSE file in the root directory of this source tree. | |
*/var n="function"==typeof Symbol&&Symbol.for,o=n?Symbol.for("react.element"):60103,a=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,c=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,d=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,g=n?Symbol.for("react.suspense_list"):60120,y=n?Symbol.for("react.memo"):60115,b=n?Symbol.for("react.lazy"):60116,m=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,O=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function k(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case d:case p:case i:case c:case s:case h:return e;default:switch(e=e&&e.$$typeof){case u:case f:case b:case y:case l:return e;default:return t}}case a:return t}}}function S(e){return k(e)===p}t.AsyncMode=d,t.ConcurrentMode=p,t.ContextConsumer=u,t.ContextProvider=l,t.Element=o,t.ForwardRef=f,t.Fragment=i,t.Lazy=b,t.Memo=y,t.Portal=a,t.Profiler=c,t.StrictMode=s,t.Suspense=h,t.isAsyncMode=function(e){return S(e)||k(e)===d},t.isConcurrentMode=S,t.isContextConsumer=function(e){return k(e)===u},t.isContextProvider=function(e){return k(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return k(e)===f},t.isFragment=function(e){return k(e)===i},t.isLazy=function(e){return k(e)===b},t.isMemo=function(e){return k(e)===y},t.isPortal=function(e){return k(e)===a},t.isProfiler=function(e){return k(e)===c},t.isStrictMode=function(e){return k(e)===s},t.isSuspense=function(e){return k(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===p||e===c||e===s||e===h||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===b||e.$$typeof===y||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===v||e.$$typeof===O||e.$$typeof===w||e.$$typeof===m)},t.typeOf=k},function(e,t,r){"use strict"; | |
/** @license React v1.4.1 | |
* use-subscription.production.min.js | |
* | |
* Copyright (c) Facebook, Inc. and its affiliates. | |
* | |
* This source code is licensed under the MIT license found in the | |
* LICENSE file in the root directory of this source tree. | |
*/var n=r(67),o=r(0);t.useSubscription=function(e){var t=e.getCurrentValue,r=e.subscribe,a=o.useState((function(){return{getCurrentValue:t,subscribe:r,value:t()}}));e=a[0];var i=a[1];return a=e.value,e.getCurrentValue===t&&e.subscribe===r||(a=t(),i({getCurrentValue:t,subscribe:r,value:a})),o.useDebugValue(a),o.useEffect((function(){function e(){if(!o){var e=t();i((function(o){return o.getCurrentValue!==t||o.subscribe!==r||o.value===e?o:n({},o,{value:e})}))}}var o=!1,a=r(e);return e(),function(){o=!0,a()}}),[t,r]),a}},function(e,t,r){"use strict"; | |
/* | |
object-assign | |
(c) Sindre Sorhus | |
@license MIT | |
*/var n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,s,c=i(e),l=1;l<arguments.length;l++){for(var u in r=Object(arguments[l]))o.call(r,u)&&(c[u]=r[u]);if(n){s=n(r);for(var d=0;d<s.length;d++)a.call(r,s[d])&&(c[s[d]]=r[s[d]])}}return c}},function(e,t,r){"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase())},function(e,t,r){"use strict";var n=new RegExp("%[a-f0-9]{2}","gi"),o=new RegExp("(%[a-f0-9]{2})+","gi");function a(e,t){try{return decodeURIComponent(e.join(""))}catch(e){}if(1===e.length)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],a(r),a(n))}function i(e){try{return decodeURIComponent(e)}catch(o){for(var t=e.match(n),r=1;r<t.length;r++)t=(e=a(t,r).join("")).match(n);return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},r=o.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch(e){var n=i(r[0]);n!==r[0]&&(t[r[0]]=n)}r=o.exec(e)}t["%C2"]="�";for(var a=Object.keys(t),s=0;s<a.length;s++){var c=a[s];e=e.replace(new RegExp(c,"g"),t[c])}return e}(e)}}},function(e,t,r){"use strict";e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const r=e.indexOf(t);return-1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}},function(e,t){e.exports="data:image/png;charset=utf-8;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAQAAABIkb+zAAAAlklEQVR4Ae3a1REDMRDG4A3VmHbcUFLigf0exn/mkxuQjmELAAAAAD5Eq5atP6+rZeuPhGz9kZCtPxKy9fs6Zuuf60CfPn369OnTp0+fPn369OnTfx36X1vh+nO6/pytL+D1BCexy+iNhFPt6/dIOEiQIEGCBAkSJEiQ8B0k+PwoQYKhP2OXAYOvRo+vD38bvwcAAACABXF8ILs1PQqpAAAAAElFTkSuQmCC"},function(e,t){e.exports="data:image/png;charset=utf-8;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAABVCAQAAAChx3/YAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QA/4ePzL8AAAAHdElNRQfkAQMKHDc9iQjuAAACmUlEQVRo3r3ZS2sUQRAH8M5zklwWg0K8mKBB/AIqXhTEi1cTPQe9iH4AUXBNjh79EooKgggSHyCICIIQL7NV1T2bze6EFS/xoms0ie0hs+sa9zE901U79/3R8+iu+pdSnn/VfbCAz/Um2r+XV8AO0jH9pP3vvSN2COdhGX8xInbIzNMKbv1PeEPsiLmEn2i7E+EJsSN4Az+UtjoTXpBwlG7CGnQlPCA2oFtQxZ3uRG7EBnAvjHsTOREbwB2s9bpRuZHKGCzCer9V5ELi8ehuOiIzYkejBUTYTkNkREyAV5DgdzoiE2ICuoYaUxMZEBPQdYpdCGfkzbA+rUsugDNiAnOGwJVwQipj0XlCd8IBscN0wv1GOSEmCE9qyEakREyAZ4myEqkQE+hzupydSIHE4+aUjvIQfZH6hL6QbxV9kfqEnqP1vEQPxA6YA3hReyB6IOUC3vZDdEXKBVPUG36ILkhlihbxqy+iI1KZogf4xW0zd0TWDuJD+AYWLRuyOo2P0DOxB6nM4Fv87pv4B1mdxhfY8E+0IeaIfok/OIgWEs3q97DJQyTI5xn9FBpcBFqlVDgLz6CBlu9S8SS9JlYCraKlTv2qb+QdN4FWYV0AEVkJLQH/M4kn9Sv2t0vkOxH64pt7F9f22LYLVw8D9y4sdJ40T0bgPRmVUqp+iP2MF6pWkrrrPnPdJVRB7tbCVMQNZkSkqlfKDtD+kLs/Eem0xHpGoe631cdHzIhIIiGUrSQp0XHmlEgo7xJK7loZZMiMJGlqjTVNbebCRKy5cPJsLjMn3EJZvdDUQWh+krwCReZJUHOmVaqxzrSEpnNCc0ahiWlz9ksrrLNfoSn27sgf5mCZfrIiStnB8lF8rHdYEaWU+ljQV/dW0X8Ac6zWpmDZsO8AAAAldEVYdGRhdGU6Y3JlYXRlADIwMjAtMDEtMDNUMTA6Mjg6NTIrMDA6MDD7fVVWAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIwLTAxLTAzVDEwOjI4OjUyKzAwOjAwiiDt6gAAAABJRU5ErkJggg=="},function(e,t,r){"use strict";r.r(t),r.d(t,"enableScreens",(function(){return l})),r.d(t,"screensEnabled",(function(){return u})),r.d(t,"NativeScreen",(function(){return d})),r.d(t,"Screen",(function(){return p})),r.d(t,"ScreenContainer",(function(){return f})),r.d(t,"NativeScreenContainer",(function(){return h}));var n=r(0),o=r.n(n),a=r(1);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function s(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}let c=!0;function l(e=!0){c=e}function u(){return c}class d extends o.a.Component{render(){const e=this.props,{active:t,style:r}=e,n=s(e,["active","style"]);return o.a.createElement(a.View,i({style:[r,c&&!t?{display:"none"}:null]},n))}}const p=a.Animated.createAnimatedComponent(d),f=a.View,h=a.View},function(e,t,r){var n=r(75),o=r(76),a={};for(var i in n)n.hasOwnProperty(i)&&(a[n[i]]=i);var s=e.exports={to:{},get:{}};function c(e,t,r){return Math.min(Math.max(t,e),r)}function l(e){var t=e.toString(16).toUpperCase();return t.length<2?"0"+t:t}s.get=function(e){var t,r;switch(e.substring(0,3).toLowerCase()){case"hsl":t=s.get.hsl(e),r="hsl";break;case"hwb":t=s.get.hwb(e),r="hwb";break;default:t=s.get.rgb(e),r="rgb"}return t?{model:r,value:t}:null},s.get.rgb=function(e){if(!e)return null;var t,r,o,a=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(o=t[2],t=t[1],r=0;r<3;r++){var i=2*r;a[r]=parseInt(t.slice(i,i+2),16)}o&&(a[3]=Math.round(parseInt(o,16)/255*100)/100)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(o=(t=t[1])[3],r=0;r<3;r++)a[r]=parseInt(t[r]+t[r],16);o&&(a[3]=Math.round(parseInt(o+o,16)/255*100)/100)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)){for(r=0;r<3;r++)a[r]=parseInt(t[r+1],0);t[4]&&(a[3]=parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)))return(t=e.match(/(\D+)/))?"transparent"===t[1]?[0,0,0,0]:(a=n[t[1]])?(a[3]=1,a):null:null;for(r=0;r<3;r++)a[r]=Math.round(2.55*parseFloat(t[r+1]));t[4]&&(a[3]=parseFloat(t[4]))}for(r=0;r<3;r++)a[r]=c(a[r],0,255);return a[3]=c(a[3],0,1),a},s.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d*\.)?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/);if(t){var r=parseFloat(t[4]);return[(parseFloat(t[1])+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(r)?1:r,0,1)]}return null},s.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d*[\.]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/);if(t){var r=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(r)?1:r,0,1)]}return null},s.to.hex=function(){var e=o(arguments);return"#"+l(e[0])+l(e[1])+l(e[2])+(e[3]<1?l(Math.round(255*e[3])):"")},s.to.rgb=function(){var e=o(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},s.to.rgb.percent=function(){var e=o(arguments),t=Math.round(e[0]/255*100),r=Math.round(e[1]/255*100),n=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+r+"%, "+n+"%)":"rgba("+t+"%, "+r+"%, "+n+"%, "+e[3]+")"},s.to.hsl=function(){var e=o(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},s.to.hwb=function(){var e=o(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},s.to.keyword=function(e){return a[e.slice(0,3)]}},function(e,t,r){"use strict";e.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]}},function(e,t,r){"use strict";var n=r(77),o=Array.prototype.concat,a=Array.prototype.slice,i=e.exports=function(e){for(var t=[],r=0,i=e.length;r<i;r++){var s=e[r];n(s)?t=o.call(t,a.call(s)):t.push(s)}return t};i.wrap=function(e){return function(){return e(i(arguments))}}},function(e,t){e.exports=function(e){return!(!e||"string"==typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},function(e,t,r){var n=r(46),o=r(80),a={};Object.keys(n).forEach((function(e){a[e]={},Object.defineProperty(a[e],"channels",{value:n[e].channels}),Object.defineProperty(a[e],"labels",{value:n[e].labels});var t=o(e);Object.keys(t).forEach((function(r){var n=t[r];a[e][r]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var r=e(t);if("object"==typeof r)for(var n=r.length,o=0;o<n;o++)r[o]=Math.round(r[o]);return r};return"conversion"in e&&(t.conversion=e.conversion),t}(n),a[e][r].raw=function(e){var t=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(n)}))})),e.exports=a},function(e,t,r){"use strict";e.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]}},function(e,t,r){var n=r(46);function o(e){var t=function(){for(var e={},t=Object.keys(n),r=t.length,o=0;o<r;o++)e[t[o]]={distance:-1,parent:null};return e}(),r=[e];for(t[e].distance=0;r.length;)for(var o=r.pop(),a=Object.keys(n[o]),i=a.length,s=0;s<i;s++){var c=a[s],l=t[c];-1===l.distance&&(l.distance=t[o].distance+1,l.parent=o,r.unshift(c))}return t}function a(e,t){return function(r){return t(e(r))}}function i(e,t){for(var r=[t[e].parent,e],o=n[t[e].parent][e],i=t[e].parent;t[i].parent;)r.unshift(t[i].parent),o=a(n[t[i].parent][i],o),i=t[i].parent;return o.conversion=r,o}e.exports=function(e){for(var t=o(e),r={},n=Object.keys(t),a=n.length,s=0;s<a;s++){var c=n[s];null!==t[c].parent&&(r[c]=i(c,t))}return r}},function(e,t,r){"use strict";r.r(t),r.d(t,"NavigationContainer",(function(){return n.a})),r.d(t,"createStackNavigator",(function(){return Tt}));var n=r(48),o=r(0),a=r(1),i=r(2);const s={WebkitTransition:"webkitTransitionEnd",Transition:"transitionEnd",MozTransition:"transitionend",MSTransition:"msTransitionEnd",OTransition:"oTransitionEnd"};function c({children:e,style:t,onInsetsChange:r}){return o.useEffect(()=>{if("undefined"==typeof document)return;const e=function(){const e=document.createElement("div"),{style:t}=e;return t.position="fixed",t.left="0",t.top="0",t.width="0",t.height="0",t.zIndex="-1",t.overflow="hidden",t.visibility="hidden",t.transitionDuration="0.05s",t.transitionProperty="padding",t.transitionDelay="0s",t.paddingTop=p("top"),t.paddingBottom=p("bottom"),t.paddingLeft=p("left"),t.paddingRight=p("right"),e}();document.body.appendChild(e);const t=()=>{const{paddingTop:t,paddingBottom:n,paddingLeft:o,paddingRight:a}=window.getComputedStyle(e),i={top:t?parseInt(t,10):0,bottom:n?parseInt(n,10):0,left:o?parseInt(o,10):0,right:a?parseInt(a,10):0},s={x:0,y:0,width:document.documentElement.offsetWidth,height:document.documentElement.offsetHeight};r({nativeEvent:{insets:i,frame:s}})};return e.addEventListener(u(),t),t(),()=>{document.body.removeChild(e),e.removeEventListener(u(),t)}},[r]),o.createElement(a.View,{style:t},e)}let l=null;function u(){if(null!==l)return l;const e=document.createElement("invalidtype");l=s.Transition;for(const t in s)if(void 0!==e.style[t]){l=s[t];break}return l}let d=null;function p(e){return"".concat(function(){if(null!==d)return d;const{CSS:e}=window;return d=e&&e.supports&&e.supports("top: constant(safe-area-inset-top)")?"constant":"env",d}(),"(safe-area-inset-").concat(e,")")}const f=o.createContext(null),h=o.createContext(null);function g({children:e,initialMetrics:t,initialSafeAreaInsets:r,style:n}){var i,s,l,u,d;const p=o.useContext(f),g=o.useContext(h),[b,m]=o.useState(null!==(i=null!==(s=null!==(l=null==t?void 0:t.insets)&&void 0!==l?l:r)&&void 0!==s?s:p)&&void 0!==i?i:null),[v,O]=o.useState(null!==(u=null!==(d=null==t?void 0:t.frame)&&void 0!==d?d:g)&&void 0!==u?u:{x:0,y:0,width:a.Dimensions.get("window").width,height:a.Dimensions.get("window").height}),w=o.useCallback(e=>{const{nativeEvent:{frame:t,insets:r}}=e;!t||t.height===v.height&&t.width===v.width&&t.x===v.x&&t.y===v.y||O(t),b&&r.bottom===b.bottom&&r.left===b.left&&r.right===b.right&&r.top===b.top||m(r)},[v,b]);return o.createElement(c,{style:[y.fill,n],onInsetsChange:w},null!=b?o.createElement(h.Provider,{value:v},o.createElement(f.Provider,{value:b},e)):null)}const y=a.StyleSheet.create({fill:{flex:1}});const b=f.Consumer,m=({children:e})=>o.createElement(o.Fragment,null,e),v=a.View,O=2,w=3,k=5;function S(){return(S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function j(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}let P;try{P=r(73)}catch(e){}class E extends o.Component{render(){const e=this.props,{active:t,style:r}=e,n=j(e,["active","style"]);return o.createElement(a.View,S({hidden:!t,style:[r,{display:t?"flex":"none"}]},n))}}const x=a.Animated.createAnimatedComponent(E),C=e=>{let{enabled:t}=e,r=j(e,["enabled"]);return t&&"web"!==a.Platform.OS&&P&&P.screensEnabled()?o.createElement(P.ScreenContainer,r):o.createElement(a.View,r)},R=e=>{let{enabled:t,active:r}=e,n=j(e,["enabled","active"]);return t&&"web"===a.Platform.OS?o.createElement(x,S({active:r},n)):t&&P&&P.screensEnabled()?o.createElement(P.Screen,S({active:r},n)):o.createElement(a.View,n)};var A=r(45);function I({children:e}){return e}function T(){return(T=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function D(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function M(e){let{borderless:t=!1,pressColor:r="rgba(0, 0, 0, .32)",style:n,children:i}=e,s=D(e,["borderless","pressColor","style","children"]);return"android"===a.Platform.OS&&a.Platform.Version>=21?o.createElement(a.TouchableNativeFeedback,T({},s,{useForeground:a.TouchableNativeFeedback.canUseNativeForeground(),background:a.TouchableNativeFeedback.Ripple(r,t)}),o.createElement(a.View,{style:n},o.Children.only(i))):o.createElement(a.TouchableOpacity,T({style:n},s),i)}function N(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 L(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function F({disabled:e,allowFontScaling:t,backImage:n,label:i,labelStyle:s,labelVisible:c="ios"===a.Platform.OS,onLabelLayout:l,onPress:u,pressColorAndroid:d,screenLayout:p,tintColor:f,titleLayout:h,truncatedLabel:g="Back",accessibilityLabel:y=(i&&"Back"!==i?"".concat(i,", back"):"Go back"),style:b}){const{dark:m,colors:v}=Object(A.a)(),[O,w]=o.useState(void 0),k=void 0!==f?f:a.Platform.select({ios:v.primary,default:v.text}),S=void 0!==d?d:m?"rgba(255, 255, 255, .32)":"rgba(0, 0, 0, .32)",j=e=>{null==l||l(e),w(e.nativeEvent.layout.x+e.nativeEvent.layout.width)};return o.createElement(M,{disabled:e,accessible:!0,accessibilityRole:"button",accessibilityComponentType:"button",accessibilityLabel:y,accessibilityTraits:"button",testID:"header-back",delayPressIn:0,onPress:e?void 0:()=>u&&requestAnimationFrame(u),pressColor:S,style:[B.container,e&&B.disabled,b],hitSlop:a.Platform.select({ios:void 0,default:{top:16,right:16,bottom:16,left:16}}),borderless:!0},o.createElement(o.Fragment,null,n?n({tintColor:k}):o.createElement(a.Image,{style:[B.icon,Boolean(c)&&B.iconWithLabel,Boolean(k)&&{tintColor:k}],source:r(71),fadeDuration:0}),(()=>{const e=!i||O&&h&&p&&(p.width-h.width)/2<O+26?g:i;if(!c||void 0===e)return null;const l=o.createElement(a.View,{style:p?[B.labelWrapper,{minWidth:p.width/2-27}]:null},o.createElement(a.Animated.Text,{accessible:!1,onLayout:e===i?j:void 0,style:[B.label,k?{color:k}:null,s],numberOfLines:1,allowFontScaling:!!t},e));return n||"ios"!==a.Platform.OS?l:o.createElement(I,{maskElement:o.createElement(a.View,{style:B.iconMaskContainer},o.createElement(a.Image,{source:r(72),style:B.iconMask}),o.createElement(a.View,{style:B.iconMaskFillerRect}))},l)})()))}const B=a.StyleSheet.create({container:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?N(Object(r),!0).forEach((function(t){L(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):N(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({alignItems:"center",flexDirection:"row"},a.Platform.select({ios:null,default:{marginVertical:3,marginHorizontal:11}})),disabled:{opacity:.5},label:{fontSize:17,letterSpacing:.35},labelWrapper:{flexDirection:"row",alignItems:"flex-start"},icon:a.Platform.select({ios:{height:21,width:13,marginLeft:8,marginRight:22,marginVertical:12,resizeMode:"contain",transform:[{scaleX:a.I18nManager.isRTL?-1:1}]},default:{height:24,width:24,margin:3,resizeMode:"contain",transform:[{scaleX:a.I18nManager.isRTL?-1:1}]}}),iconWithLabel:"ios"===a.Platform.OS?{marginRight:6}:{},iconMaskContainer:{flex:1,flexDirection:"row",justifyContent:"center"},iconMaskFillerRect:{flex:1,backgroundColor:"#000"},iconMask:{height:21,width:13,marginLeft:-14.5,marginVertical:12,alignSelf:"center",resizeMode:"contain",transform:[{scaleX:a.I18nManager.isRTL?-1:1}]}});function V(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 H(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function G(){return(G=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function K(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function z(e){let{style:t}=e,r=K(e,["style"]);const{colors:n}=Object(A.a)();return o.createElement(a.Animated.View,G({style:[U.container,{backgroundColor:n.card,borderBottomColor:n.border,shadowColor:n.border},t]},r))}const U=a.StyleSheet.create({container:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?V(Object(r),!0).forEach((function(t){H(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):V(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({flex:1},a.Platform.select({android:{elevation:4},ios:{shadowOpacity:.85,shadowRadius:0,shadowOffset:{width:0,height:a.StyleSheet.hairlineWidth}},default:{borderBottomWidth:a.StyleSheet.hairlineWidth}}))});function W(e){let t,r;return(...n)=>{let o=!1;if(t){if(t.length!==n.length)o=!0;else for(let e=0;e<t.length;e++)if(t[e]!==n[e]){o=!0;break}}else o=!0;return t=n,(o||void 0===r)&&(r=e(...n)),r}}function q(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function $(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const _=(e,t)=>{const r=e.width>e.height;let n;return n="ios"===a.Platform.OS?r&&!a.Platform.isPad?32:44:"android"===a.Platform.OS?56:64,n+t};class Y extends o.Component{constructor(...e){super(...e),$(this,"state",{}),$(this,"handleTitleLayout",e=>{const{height:t,width:r}=e.nativeEvent.layout;this.setState(({titleLayout:e})=>e&&t===e.height&&r===e.width?null:{titleLayout:{height:t,width:r}})}),$(this,"handleLeftLabelLayout",e=>{const{height:t,width:r}=e.nativeEvent.layout,{leftLabelLayout:n}=this.state;n&&t===n.height&&r===n.width||this.setState({leftLabelLayout:{height:t,width:r}})}),$(this,"getInterpolatedStyle",W((e,t,r,n,o,a,i)=>e({current:{progress:r},next:n&&{progress:n},layouts:{header:{height:i,width:t.width},screen:t,title:o,leftLabel:a}})))}render(){const{scene:e,layout:t,insets:r,title:n,leftLabel:i,onGoBack:s,headerTitle:c,headerTitleAlign:l=a.Platform.select({ios:"center",default:"left"}),headerLeft:u=(s?e=>o.createElement(F,e):void 0),headerTransparent:d,headerTintColor:p,headerBackground:f,headerRight:h,headerBackImage:g,headerBackTitle:y,headerBackTitleVisible:b,headerTruncatedBackTitle:m,headerPressColorAndroid:v,headerBackAllowFontScaling:O,headerTitleAllowFontScaling:w,headerTitleStyle:k,headerBackTitleStyle:S,headerLeftContainerStyle:j,headerRightContainerStyle:P,headerTitleContainerStyle:E,headerStyle:x,headerStatusBarHeight:C=r.top,styleInterpolator:R}=this.props,{leftLabelLayout:A,titleLayout:I}=this.state,T=_(t,C),D=a.StyleSheet.flatten(x||{}),{height:M=T,minHeight:N,maxHeight:L,backgroundColor:B,borderBottomColor:V,borderBottomEndRadius:H,borderBottomLeftRadius:G,borderBottomRightRadius:K,borderBottomStartRadius:U,borderBottomWidth:W,borderColor:$,borderEndColor:Y,borderEndWidth:X,borderLeftColor:J,borderLeftWidth:Z,borderRadius:ee,borderRightColor:te,borderRightWidth:re,borderStartColor:ne,borderStartWidth:oe,borderStyle:ae,borderTopColor:ie,borderTopEndRadius:se,borderTopLeftRadius:ce,borderTopRightRadius:le,borderTopStartRadius:ue,borderTopWidth:de,borderWidth:pe,boxShadow:fe,elevation:he,shadowColor:ge,shadowOffset:ye,shadowOpacity:be,shadowRadius:me,opacity:ve,transform:Oe}=D;q(D,["height","minHeight","maxHeight","backgroundColor","borderBottomColor","borderBottomEndRadius","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStartRadius","borderBottomWidth","borderColor","borderEndColor","borderEndWidth","borderLeftColor","borderLeftWidth","borderRadius","borderRightColor","borderRightWidth","borderStartColor","borderStartWidth","borderStyle","borderTopColor","borderTopEndRadius","borderTopLeftRadius","borderTopRightRadius","borderTopStartRadius","borderTopWidth","borderWidth","boxShadow","elevation","shadowColor","shadowOffset","shadowOpacity","shadowRadius","opacity","transform"]);const we={backgroundColor:B,borderBottomColor:V,borderBottomEndRadius:H,borderBottomLeftRadius:G,borderBottomRightRadius:K,borderBottomStartRadius:U,borderBottomWidth:W,borderColor:$,borderEndColor:Y,borderEndWidth:X,borderLeftColor:J,borderLeftWidth:Z,borderRadius:ee,borderRightColor:te,borderRightWidth:re,borderStartColor:ne,borderStartWidth:oe,borderStyle:ae,borderTopColor:ie,borderTopEndRadius:se,borderTopLeftRadius:ce,borderTopRightRadius:le,borderTopStartRadius:ue,borderTopWidth:de,borderWidth:pe,boxShadow:fe,elevation:he,shadowColor:ge,shadowOffset:ye,shadowOpacity:be,shadowRadius:me,opacity:ve,transform:Oe};for(const e in we)void 0===we[e]&&delete we[e];const{titleStyle:ke,leftButtonStyle:Se,leftLabelStyle:je,rightButtonStyle:Pe,backgroundStyle:Ee}=this.getInterpolatedStyle(R,t,e.progress.current,e.progress.next,I,i?A:void 0,"number"==typeof M?M:T),xe=u?u({backImage:g,pressColorAndroid:v,allowFontScaling:O,onPress:s,labelVisible:b,label:void 0!==y?y:i,truncatedLabel:m,labelStyle:[je,S],onLabelLayout:this.handleLeftLabelLayout,screenLayout:t,titleLayout:I,tintColor:p,canGoBack:Boolean(s)}):null,Ce=h?h({tintColor:p}):null;return o.createElement(o.Fragment,null,o.createElement(a.Animated.View,{pointerEvents:"box-none",style:[a.StyleSheet.absoluteFill,{zIndex:0},Ee]},f?f({style:we}):d?null:o.createElement(z,{style:we})),o.createElement(a.Animated.View,{pointerEvents:"box-none",style:[{height:M,minHeight:N,maxHeight:L,opacity:ve,transform:Oe}]},o.createElement(a.View,{pointerEvents:"none",style:{height:C}}),o.createElement(a.View,{pointerEvents:"box-none",style:Q.content},xe?o.createElement(a.Animated.View,{pointerEvents:"box-none",style:[Q.left,{left:r.left},Se,j]},xe):null,o.createElement(a.Animated.View,{pointerEvents:"box-none",style:["left"===l?{position:"absolute",left:(xe?72:16)+r.left,right:(Ce?72:16)+r.right}:{marginHorizontal:(xe?32:16)+(xe&&!1!==b?40:0)+Math.max(r.left,r.right)},ke,E]},c({children:n,onLayout:this.handleTitleLayout,allowFontScaling:w,tintColor:p,style:k})),Ce?o.createElement(a.Animated.View,{pointerEvents:"box-none",style:[Q.right,{right:r.right},Pe,P]},Ce):null)))}}const Q=a.StyleSheet.create({content:{flex:1,flexDirection:"row",alignItems:"center",justifyContent:"center"},left:{position:"absolute",left:0,top:0,bottom:0,justifyContent:"center",alignItems:"flex-start"},right:{position:"absolute",right:0,top:0,bottom:0,justifyContent:"center",alignItems:"flex-end"}});var X=r(52),J=r.n(X);function Z(){return(Z=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function ee(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var te=o.forwardRef((function(e,t){let{enabled:r,layout:n,style:i}=e,s=ee(e,["enabled","layout","style"]);const[c,l]=o.useState(!1);return o.useEffect(()=>{if("undefined"==typeof document||!document.body)return;const e=document.body.clientWidth,t=document.body.clientHeight;l(e===n.width&&t===n.height)},[n.height,n.width]),o.createElement(a.View,Z({},s,{ref:t,style:[r&&c?re.page:re.card,i]}))}));const re=a.StyleSheet.create({page:{minHeight:"100%"},card:{flex:1,overflow:"hidden"}});var ne=o.createContext(void 0);function oe(e){switch(e){case"vertical":return 1;case"vertical-inverted":return-1;case"horizontal":return a.I18nManager.isRTL?-1:1;case"horizontal-inverted":return a.I18nManager.isRTL?1:-1}}function ae(e,t){const r=oe(t);switch(t){case"vertical":case"vertical-inverted":return e.height*r;case"horizontal":case"horizontal-inverted":return e.width*r}}function ie(){return(ie=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function se(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function ce(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 le(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ce(Object(r),!0).forEach((function(t){ue(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ce(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ue(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const de="web"!==a.Platform.OS;class pe extends o.Component{constructor(...e){super(...e),ue(this,"isCurrentlyMounted",!1),ue(this,"isClosing",new a.Animated.Value(0)),ue(this,"inverted",new a.Animated.Value(oe(this.props.gestureDirection))),ue(this,"layout",{width:new a.Animated.Value(this.props.layout.width),height:new a.Animated.Value(this.props.layout.height)}),ue(this,"isSwiping",new a.Animated.Value(0)),ue(this,"interactionHandle",void 0),ue(this,"pendingGestureCallback",void 0),ue(this,"lastToValue",void 0),ue(this,"animate",({closing:e,velocity:t})=>{const{gesture:r,transitionSpec:n,onOpen:o,onClose:i,onTransitionStart:s}=this.props,c=this.getAnimateToValue(le(le({},this.props),{},{closing:e}));this.lastToValue=c;const l=e?n.close:n.open,u="spring"===l.animation?a.Animated.spring:a.Animated.timing;this.setPointerEventsEnabled(!e),this.handleStartInteraction(),clearTimeout(this.pendingGestureCallback),null==s||s({closing:e}),u(r,le(le({},l.config),{},{velocity:t,toValue:c,useNativeDriver:de,isInteraction:!1})).start(({finished:t})=>{this.handleEndInteraction(),clearTimeout(this.pendingGestureCallback),t&&(e?i():o(),this.isCurrentlyMounted&&this.forceUpdate())})}),ue(this,"getAnimateToValue",({closing:e,layout:t,gestureDirection:r})=>e?ae(t,r):0),ue(this,"setPointerEventsEnabled",e=>{var t;const r=e?"box-none":"none";null===(t=this.contentRef.current)||void 0===t||t.setNativeProps({pointerEvents:r})}),ue(this,"handleStartInteraction",()=>{void 0===this.interactionHandle&&(this.interactionHandle=a.InteractionManager.createInteractionHandle())}),ue(this,"handleEndInteraction",()=>{void 0!==this.interactionHandle&&(a.InteractionManager.clearInteractionHandle(this.interactionHandle),this.interactionHandle=void 0)}),ue(this,"handleGestureStateChange",({nativeEvent:e})=>{const{layout:t,onClose:r,onGestureBegin:n,onGestureCanceled:o,onGestureEnd:a,gestureDirection:i,gestureVelocityImpact:s}=this.props;switch(e.state){case O:this.isSwiping.setValue(1),this.handleStartInteraction(),null==n||n();break;case w:{this.isSwiping.setValue(0),this.handleEndInteraction();const t="vertical"===i||"vertical-inverted"===i?e.velocityY:e.velocityX;this.animate({closing:this.props.closing,velocity:t}),null==o||o();break}case k:{let n,o,c;this.isSwiping.setValue(0),"vertical"===i||"vertical-inverted"===i?(n=t.height,o=e.translationY,c=e.velocityY):(n=t.width,o=e.translationX,c=e.velocityX);const l=(o+c*s)*oe(i)>n/2?0!==c||0!==o:this.props.closing;this.animate({closing:l,velocity:c}),l&&(this.pendingGestureCallback=setTimeout(()=>{r(),this.forceUpdate()},32)),null==a||a();break}}}),ue(this,"getInterpolatedStyle",W((e,t,r,n,o,a,i,s,c)=>e({index:t,current:{progress:r},next:n&&{progress:n},closing:this.isClosing,swiping:this.isSwiping,inverted:this.inverted,layouts:{screen:o},insets:{top:a,right:i,bottom:s,left:c}}))),ue(this,"getCardAnimationContext",W((e,t,r,n,o,a,i,s)=>({index:e,current:{progress:t},next:r&&{progress:r},closing:this.isClosing,swiping:this.isSwiping,inverted:this.inverted,layouts:{screen:n},insets:{top:o,right:a,bottom:i,left:s}}))),ue(this,"contentRef",o.createRef())}componentDidMount(){this.animate({closing:this.props.closing}),this.isCurrentlyMounted=!0}componentDidUpdate(e){const{layout:t,gestureDirection:r,closing:n}=this.props,{width:o,height:a}=t;o!==e.layout.width&&this.layout.width.setValue(o),a!==e.layout.height&&this.layout.height.setValue(a),r!==e.gestureDirection&&this.inverted.setValue(oe(r));const i=this.getAnimateToValue(this.props);this.getAnimateToValue(e)===i&&this.lastToValue===i||this.animate({closing:n})}componentWillUnmount(){this.isCurrentlyMounted=!1,this.handleEndInteraction()}gestureActivationCriteria(){const{layout:e,gestureDirection:t,gestureResponseDistance:r}=this.props,n="vertical"===t||"vertical-inverted"===t?void 0!==(null==r?void 0:r.vertical)?r.vertical:135:void 0!==(null==r?void 0:r.horizontal)?r.horizontal:50;if("vertical"===t)return{maxDeltaX:15,minOffsetY:5,hitSlop:{bottom:-e.height+n}};if("vertical-inverted"===t)return{maxDeltaX:15,minOffsetY:-5,hitSlop:{top:-e.height+n}};{const r=-e.width+n;return 1===oe(t)?{minOffsetX:5,maxDeltaY:20,hitSlop:{right:r}}:{minOffsetX:-5,maxDeltaY:20,hitSlop:{left:r}}}}render(){const e=this.props,{styleInterpolator:t,index:r,current:n,gesture:i,next:s,layout:c,insets:l,overlay:u,overlayEnabled:d,shadowEnabled:p,gestureEnabled:f,gestureDirection:h,pageOverflowEnabled:g,children:y,containerStyle:b,contentStyle:v}=e,O=se(e,["styleInterpolator","index","current","gesture","next","layout","insets","overlay","overlayEnabled","shadowEnabled","gestureEnabled","gestureDirection","pageOverflowEnabled","children","containerStyle","contentStyle"]),w=this.getInterpolatedStyle(t,r,n,s,c,l.top,l.right,l.bottom,l.left),k=this.getCardAnimationContext(r,n,s,c,l.top,l.right,l.bottom,l.left),{containerStyle:S,cardStyle:j,overlayStyle:P,shadowStyle:E}=w,x=f?a.Animated.event([{nativeEvent:"vertical"===h||"vertical-inverted"===h?{translationY:i}:{translationX:i}}],{useNativeDriver:de}):void 0,{backgroundColor:C}=a.StyleSheet.flatten(v||{}),R="string"==typeof C&&0===J()(C).alpha();return o.createElement(ne.Provider,{value:k},o.createElement(a.Animated.View,{style:{opacity:n},collapsable:!1}),o.createElement(a.View,ie({pointerEvents:"box-none"},O),d?o.createElement(a.View,{pointerEvents:"box-none",style:a.StyleSheet.absoluteFill},u({style:P})):null,o.createElement(a.Animated.View,{style:[fe.container,S,b],pointerEvents:"box-none"},o.createElement(m,ie({enabled:0!==c.width&&f,onGestureEvent:x,onHandlerStateChange:this.handleGestureStateChange},this.gestureActivationCriteria()),o.createElement(a.Animated.View,{style:[fe.container,j]},p&&E&&!R?o.createElement(a.Animated.View,{style:[fe.shadow,"horizontal"===h?[fe.shadowHorizontal,fe.shadowLeft]:"horizontal-inverted"===h?[fe.shadowHorizontal,fe.shadowRight]:"vertical"===h?[fe.shadowVertical,fe.shadowTop]:[fe.shadowVertical,fe.shadowBottom],{backgroundColor:C},E],pointerEvents:"none"}):null,o.createElement(te,{ref:this.contentRef,enabled:g,layout:c,style:v},y))))))}}ue(pe,"defaultProps",{overlayEnabled:"ios"!==a.Platform.OS,shadowEnabled:!0,gestureEnabled:!0,gestureVelocityImpact:.3,overlay:({style:e})=>e?o.createElement(a.Animated.View,{pointerEvents:"none",style:[fe.overlay,e]}):null});const fe=a.StyleSheet.create({container:{flex:1},overlay:{flex:1,backgroundColor:"#000"},shadow:{position:"absolute",shadowRadius:5,shadowColor:"#000",shadowOpacity:.3},shadowHorizontal:{top:0,bottom:0,width:3,shadowOffset:{width:-1,height:1}},shadowLeft:{left:0},shadowRight:{right:0},shadowVertical:{left:0,right:0,height:3,shadowOffset:{width:1,height:-1}},shadowTop:{top:0},shadowBottom:{bottom:0}});var he=o.createContext(void 0);var ge=o.createContext(!1);var ye=o.createContext(void 0);function be({active:e,cardOverlay:t,cardOverlayEnabled:r,cardShadowEnabled:n,cardStyle:i,cardStyleInterpolator:s,closing:c,gesture:l,focused:u,gestureDirection:d,gestureEnabled:p,gestureResponseDistance:f,gestureVelocityImpact:h,getPreviousScene:g,getFocusedRoute:y,mode:b,headerMode:m,headerShown:v,headerStyleInterpolator:O,hasAbsoluteHeader:w,headerHeight:k,onHeaderHeightChange:S,index:j,layout:P,onCloseRoute:E,onOpenRoute:x,onPageChangeCancel:C,onPageChangeConfirm:R,onPageChangeStart:I,onGestureCancel:T,onGestureEnd:D,onGestureStart:M,onTransitionEnd:N,onTransitionStart:L,renderHeader:F,renderScene:B,safeAreaInsetBottom:V,safeAreaInsetLeft:H,safeAreaInsetRight:G,safeAreaInsetTop:K,scene:z,transitionSpec:U}){o.useEffect(()=>{null==R||R()},[e,R]);const W={top:K,right:G,bottom:V,left:H},{colors:q}=Object(A.a)(),[$,_]=o.useState("box-none");o.useEffect(()=>{var e,t;const r=null===(e=z.progress.next)||void 0===e||null===(t=e.addListener)||void 0===t?void 0:t.call(e,({value:e})=>{_(e<=.1?"box-none":"none")});return()=>{var e,t;r&&(null===(e=z.progress.next)||void 0===e||null===(t=e.removeListener)||void 0===t||t.call(e,r))}},[$,z.progress.next]);const Y=o.useContext(ge),Q="none"!==m&&!1!==v,X=g({route:z.route});return o.createElement(pe,{index:j,gestureDirection:d,layout:P,insets:W,gesture:l,current:z.progress.current,next:z.progress.next,closing:c,onOpen:()=>{null==N||N({route:z.route},!1),x({route:z.route})},onClose:()=>{null==N||N({route:z.route},!0),E({route:z.route})},overlay:t,overlayEnabled:r,shadowEnabled:n,onTransitionStart:({closing:t})=>{e&&t?null==R||R():null==C||C(),null==L||L({route:z.route},t)},onGestureBegin:()=>{null==I||I(),null==M||M({route:z.route})},onGestureCanceled:()=>{null==C||C(),null==T||T({route:z.route})},onGestureEnd:()=>{null==D||D({route:z.route})},gestureEnabled:p,gestureResponseDistance:f,gestureVelocityImpact:h,transitionSpec:U,styleInterpolator:s,accessibilityElementsHidden:!u,importantForAccessibility:u?"auto":"no-hide-descendants",pointerEvents:e?"box-none":$,pageOverflowEnabled:"screen"===m&&"card"===b,containerStyle:w?{marginTop:k}:null,contentStyle:[{backgroundColor:q.background},i],style:a.StyleSheet.absoluteFill},o.createElement(a.View,{style:ve.container},o.createElement(a.View,{style:ve.scene},o.createElement(ye.Provider,{value:X},o.createElement(ge.Provider,{value:Y||Q},o.createElement(he.Provider,{value:k},B({route:z.route}))))),"screen"===m?F({mode:"screen",layout:P,insets:W,scenes:[X,z],getPreviousScene:g,getFocusedRoute:y,gestureDirection:d,styleInterpolator:O,onContentHeightChange:S}):null))}var me=o.memo(be);const ve=a.StyleSheet.create({container:{flex:1,flexDirection:"column-reverse"},scene:{flex:1}});function Oe(){const e=a.Dimensions.get("window");return!("ios"!==a.Platform.OS||a.Platform.isPad||a.Platform.isTVOS||812!==e.height&&812!==e.width&&896!==e.height&&896!==e.width)}const{add:we,multiply:ke}=a.Animated;function Se(e,t,r){return we(ke(e,t),ke(e.interpolate({inputRange:[0,1],outputRange:[1,0]}),r))}const{add:je,multiply:Pe}=a.Animated;function Ee(){return{}}const{add:xe}=a.Animated;function Ce({current:e,next:t}){const r=xe(e.progress.interpolate({inputRange:[0,1],outputRange:[0,1],extrapolate:"clamp"}),t?t.progress.interpolate({inputRange:[0,1],outputRange:[0,1],extrapolate:"clamp"}):0),n=r.interpolate({inputRange:[0,1,2],outputRange:[0,1,0]});return{leftButtonStyle:{opacity:n},rightButtonStyle:{opacity:n},titleStyle:{opacity:n},backgroundStyle:{opacity:r.interpolate({inputRange:[0,1,1.9,2],outputRange:[0,1,1,0]})}}}function Re({current:e,next:t,layouts:{screen:r}}){const n=[{translateX:xe(e.progress.interpolate({inputRange:[0,1],outputRange:[0,1],extrapolate:"clamp"}),t?t.progress.interpolate({inputRange:[0,1],outputRange:[0,1],extrapolate:"clamp"}):0).interpolate({inputRange:[0,1,2],outputRange:a.I18nManager.isRTL?[-r.width,0,r.width]:[r.width,0,-r.width]})}];return{leftButtonStyle:{transform:n},rightButtonStyle:{transform:n},titleStyle:{transform:n},backgroundStyle:{transform:n}}}function Ae({current:e,next:t,layouts:{screen:r}}){const n=[{translateX:xe(e.progress.interpolate({inputRange:[0,1],outputRange:[0,1],extrapolate:"clamp"}),t?t.progress.interpolate({inputRange:[0,1],outputRange:[0,1],extrapolate:"clamp"}):0).interpolate({inputRange:[0,1,2],outputRange:a.I18nManager.isRTL?[r.width,0,-r.width]:[-r.width,0,r.width]})}];return{leftButtonStyle:{transform:n},rightButtonStyle:{transform:n},titleStyle:{transform:n},backgroundStyle:{transform:n}}}function Ie({current:e,next:t,layouts:{header:r}}){const n=[{translateY:xe(e.progress.interpolate({inputRange:[0,1],outputRange:[0,1],extrapolate:"clamp"}),t?t.progress.interpolate({inputRange:[0,1],outputRange:[0,1],extrapolate:"clamp"}):0).interpolate({inputRange:[0,1,2],outputRange:[-r.height,0,-r.height]})}];return{leftButtonStyle:{transform:n},rightButtonStyle:{transform:n},titleStyle:{transform:n},backgroundStyle:{transform:n}}}function Te(){return{}}const De={animation:"spring",config:{stiffness:1e3,damping:500,mass:3,overshootClamping:!0,restDisplacementThreshold:10,restSpeedThreshold:10}},Me={animation:"timing",config:{duration:350,easing:a.Easing.out(a.Easing.poly(5))}},Ne={animation:"timing",config:{duration:150,easing:a.Easing.in(a.Easing.linear)}},Le={animation:"timing",config:{duration:425,easing:a.Easing.bezier(.35,.45,0,1)}},Fe=(a.Easing.bezier(.35,.45,0,1),{gestureDirection:"horizontal",transitionSpec:{open:De,close:De},cardStyleInterpolator:function({current:e,next:t,inverted:r,layouts:{screen:n}}){return{cardStyle:{transform:[{translateX:Pe(e.progress.interpolate({inputRange:[0,1],outputRange:[n.width,0],extrapolate:"clamp"}),r)},{translateX:t?Pe(t.progress.interpolate({inputRange:[0,1],outputRange:[0,-.3*n.width],extrapolate:"clamp"}),r):0}]},overlayStyle:{opacity:e.progress.interpolate({inputRange:[0,1],outputRange:[0,.07],extrapolate:"clamp"})},shadowStyle:{shadowOpacity:e.progress.interpolate({inputRange:[0,1],outputRange:[0,.3],extrapolate:"clamp"})}}},headerStyleInterpolator:Ce}),Be={gestureDirection:"vertical",transitionSpec:{open:De,close:De},cardStyleInterpolator:function({current:e,inverted:t,layouts:{screen:r}}){return{cardStyle:{transform:[{translateY:Pe(e.progress.interpolate({inputRange:[0,1],outputRange:[r.height,0],extrapolate:"clamp"}),t)}]}}},headerStyleInterpolator:Ce},Ve={gestureDirection:"vertical",transitionSpec:{open:Me,close:Ne},cardStyleInterpolator:function({current:e,inverted:t,layouts:{screen:r},closing:n}){const o=Pe(e.progress.interpolate({inputRange:[0,1],outputRange:[.08*r.height,0],extrapolate:"clamp"}),t);return{cardStyle:{opacity:Se(n,e.progress,e.progress.interpolate({inputRange:[0,.5,.9,1],outputRange:[0,.25,.7,1]})),transform:[{translateY:o}]}}},headerStyleInterpolator:Ce},He={gestureDirection:"vertical",transitionSpec:{open:Le,close:Le},cardStyleInterpolator:function({current:e,next:t,inverted:r,layouts:{screen:n}}){return{containerStyle:{overflow:"hidden",transform:[{translateY:Pe(e.progress.interpolate({inputRange:[0,1],outputRange:[n.height,0],extrapolate:"clamp"}),r)}]},cardStyle:{transform:[{translateY:Pe(e.progress.interpolate({inputRange:[0,1],outputRange:[n.height*(95.9/100)*-1,0],extrapolate:"clamp"}),r)},{translateY:t?Pe(t.progress.interpolate({inputRange:[0,1],outputRange:[0,.02*n.height*-1],extrapolate:"clamp"}),r):0}]},overlayStyle:{opacity:e.progress.interpolate({inputRange:[0,.36,1],outputRange:[0,.1,.1],extrapolate:"clamp"})}}},headerStyleInterpolator:Ce},Ge=a.Platform.select({ios:Fe,default:"android"===a.Platform.OS&&a.Platform.Version>=28?He:Ve}),Ke=a.Platform.select({ios:Be,default:Ge});function ze(){return(ze=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function Ue(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 We(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ue(Object(r),!0).forEach((function(t){qe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ue(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function qe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const $e=Object.freeze({options:{}}),_e=(e,t,r,n,o)=>e.reduce((e,i)=>{const{options:s={}}=r[i.key]||{},c=a.StyleSheet.flatten(s.headerStyle||{}),l="number"==typeof c.height?c.height:o[i.key],u=We(We({},t),s.safeAreaInsets),{headerStatusBarHeight:d=u.top}=s;return e[i.key]="number"==typeof l?l:_(n,d),e},{}),Ye=(e,t,r)=>{const{gestureDirection:n=("modal"===e?Ke.gestureDirection:Ge.gestureDirection)}=(null==r?void 0:r.options)||{};return ae(t,n)},Qe=(e,t,r,n)=>{const o=Ye(e,{width:Math.max(1,r.width),height:Math.max(1,r.height)},n);return o>0?t.interpolate({inputRange:[0,o],outputRange:[1,0]}):t.interpolate({inputRange:[o,0],outputRange:[0,1]})};class Xe extends o.Component{static getDerivedStateFromProps(e,t){if(e.routes===t.routes&&e.descriptors===t.descriptors)return null;const r=e.routes.reduce((r,n)=>{const o=e.descriptors[n.key],{animationEnabled:i}=(null==o?void 0:o.options)||{};return r[n.key]=t.gestures[n.key]||new a.Animated.Value(e.openingRouteKeys.includes(n.key)&&!1!==i?Ye(e.mode,t.layout,o):0),r},{});return{routes:e.routes,scenes:e.routes.map((n,o,a)=>{const i=a[o-1],s=a[o+1],c=t.scenes[o],l=r[n.key],u=i?r[i.key]:void 0,d=s?r[s.key]:void 0,p=e.descriptors[n.key]||t.descriptors[n.key]||(c?c.descriptor:$e),f=e.descriptors[null==s?void 0:s.key]||t.descriptors[null==s?void 0:s.key],h=e.descriptors[null==i?void 0:i.key]||t.descriptors[null==i?void 0:i.key],g={route:n,descriptor:p,progress:{current:Qe(e.mode,l,t.layout,p),next:d?Qe(e.mode,d,t.layout,f):void 0,previous:u?Qe(e.mode,u,t.layout,h):void 0},__memo:[n,t.layout,p,f,h,l,d,u]};return c&&g.__memo.every((e,t)=>c.__memo[t]===e)?c:g}),gestures:r,descriptors:e.descriptors,headerHeights:_e(e.routes,e.insets,t.descriptors,t.layout,t.headerHeights)}}constructor(e){super(e),qe(this,"handleLayout",e=>{const{height:t,width:r}=e.nativeEvent.layout,n={width:r,height:t};this.setState((e,o)=>t===e.layout.height&&r===e.layout.width?null:{layout:n,headerHeights:_e(o.routes,o.insets,e.descriptors,n,e.headerHeights)})}),qe(this,"handleHeaderLayout",({route:e,height:t})=>{this.setState(({headerHeights:r})=>r[e.key]===t?null:{headerHeights:We(We({},r),{},{[e.key]:t})})}),qe(this,"getFocusedRoute",()=>{const{state:e}=this.props;return e.routes[e.index]}),qe(this,"getPreviousScene",({route:e})=>{const{getPreviousRoute:t}=this.props,{scenes:r}=this.state,n=t({route:e});if(n){return r.find(e=>e.route.key===n.key)}});const{height:t=0,width:r=0}=a.Dimensions.get("window");this.state={routes:[],scenes:[],gestures:{},layout:{height:t,width:r},descriptors:this.props.descriptors,headerHeights:{}}}render(){const{mode:e,insets:t,descriptors:r,state:n,routes:i,closingRouteKeys:s,onOpenRoute:c,onCloseRoute:l,getGesturesEnabled:u,renderHeader:d,renderScene:p,headerMode:f,onTransitionStart:h,onTransitionEnd:g,onPageChangeStart:y,onPageChangeConfirm:b,onPageChangeCancel:m,onGestureStart:v,onGestureEnd:O,onGestureCancel:w}=this.props,{scenes:k,layout:S,gestures:j,headerHeights:P}=this.state,E=n.routes[n.index],x=r[E.key],A=x?x.options:{};let I="modal"===e?Ke:Ge;"screen"===f&&(I=We(We({},I),{},{headerStyleInterpolator:Te}));const{top:T=t.top,right:D=t.right,bottom:M=t.bottom,left:N=t.left}=A.safeAreaInsets||{},L="ios"!==a.Platform.OS&&"modal"!==e;return o.createElement(ge.Consumer,null,r=>{const n="float"===f&&this.state.scenes.slice(-2).some(e=>{const{descriptor:t}=e,n=t?t.options:{},{headerTransparent:o,headerShown:a=!1===r}=n;return!(!o&&!1!==a)}),x="float"===f?o.createElement(o.Fragment,{key:"header"},d({mode:"float",layout:S,insets:{top:T,right:D,bottom:M,left:N},scenes:k,getPreviousScene:this.getPreviousScene,getFocusedRoute:this.getFocusedRoute,onContentHeightChange:this.handleHeaderLayout,gestureDirection:void 0!==A.gestureDirection?A.gestureDirection:I.gestureDirection,styleInterpolator:void 0!==A.headerStyleInterpolator?A.headerStyleInterpolator:I.headerStyleInterpolator,style:[Je.floating,n&&Je.absolute]})):null;return o.createElement(o.Fragment,null,n?null:x,o.createElement(C,{enabled:L,style:Je.container,onLayout:this.handleLayout},i.map((i,x,C)=>{const A=E.key===i.key,T=j[i.key],D=k[x],M=D.progress.next?D.progress.next.interpolate({inputRange:[0,.99,1],outputRange:[1,1,0],extrapolate:"clamp"}):1,{safeAreaInsets:N,headerShown:F=!1===r,headerTransparent:B,cardShadowEnabled:V,cardOverlayEnabled:H,cardOverlay:G,cardStyle:K,animationEnabled:z,gestureResponseDistance:U,gestureVelocityImpact:W,gestureDirection:q=I.gestureDirection,transitionSpec:$=I.transitionSpec,cardStyleInterpolator:_=(!1===z?Ee:I.cardStyleInterpolator),headerStyleInterpolator:Y=I.headerStyleInterpolator}=D.descriptor?D.descriptor.options:{};let Q={gestureDirection:q,transitionSpec:$,cardStyleInterpolator:_,headerStyleInterpolator:Y};if(x!==C.length-1){const e=k[x+1];if(e){const{animationEnabled:t,gestureDirection:r=I.gestureDirection,transitionSpec:n=I.transitionSpec,cardStyleInterpolator:o=(!1===t?Ee:I.cardStyleInterpolator),headerStyleInterpolator:a=I.headerStyleInterpolator}=e.descriptor?e.descriptor.options:{};Q={gestureDirection:r,transitionSpec:n,cardStyleInterpolator:o,headerStyleInterpolator:a}}}const{top:X=t.top,right:J=t.right,bottom:Z=t.bottom,left:ee=t.left}=N||{},te="none"!==f&&!1!==F?P[i.key]:0;return o.createElement(R,{key:i.key,style:a.StyleSheet.absoluteFill,enabled:L,active:M,pointerEvents:"box-none"},o.createElement(me,ze({index:x,active:x===C.length-1,focused:A,closing:s.includes(i.key),layout:S,gesture:T,scene:D,safeAreaInsetTop:X,safeAreaInsetRight:J,safeAreaInsetBottom:Z,safeAreaInsetLeft:ee,cardOverlay:G,cardOverlayEnabled:H,cardShadowEnabled:V,cardStyle:K,onPageChangeStart:y,onPageChangeConfirm:b,onPageChangeCancel:m,onGestureStart:v,onGestureCancel:w,onGestureEnd:O,gestureResponseDistance:U,headerHeight:te,onHeaderHeightChange:this.handleHeaderLayout,getPreviousScene:this.getPreviousScene,getFocusedRoute:this.getFocusedRoute,mode:e,headerMode:f,headerShown:F,hasAbsoluteHeader:n&&!B,renderHeader:d,renderScene:p,onOpenRoute:c,onCloseRoute:l,onTransitionStart:h,onTransitionEnd:g,gestureEnabled:0!==x&&u({route:i}),gestureVelocityImpact:W},Q)))})),n?x:null)})}}const Je=a.StyleSheet.create({container:{flex:1},absolute:{position:"absolute",top:0,left:0,right:0},floating:{zIndex:1}});function Ze(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class et extends o.Component{constructor(...e){super(...e),Ze(this,"previouslyFocusedTextInput",null),Ze(this,"startTimestamp",0),Ze(this,"keyboardTimeout",void 0),Ze(this,"clearKeyboardTimeout",()=>{void 0!==this.keyboardTimeout&&(clearTimeout(this.keyboardTimeout),this.keyboardTimeout=void 0)}),Ze(this,"handlePageChangeStart",()=>{if(!this.props.enabled)return;this.clearKeyboardTimeout();const e=a.TextInput.State.currentlyFocusedInput?a.TextInput.State.currentlyFocusedInput():a.TextInput.State.currentlyFocusedField();a.TextInput.State.blurTextInput(e),this.previouslyFocusedTextInput=e,this.startTimestamp=Date.now()}),Ze(this,"handlePageChangeConfirm",()=>{if(!this.props.enabled)return;this.clearKeyboardTimeout();const e=this.previouslyFocusedTextInput;"android"===a.Platform.OS?a.Keyboard.dismiss():e&&a.TextInput.State.blurTextInput(e),this.previouslyFocusedTextInput=null}),Ze(this,"handlePageChangeCancel",()=>{if(!this.props.enabled)return;this.clearKeyboardTimeout();const e=this.previouslyFocusedTextInput;e&&(Date.now()-this.startTimestamp<100?this.keyboardTimeout=setTimeout(()=>{a.TextInput.State.focusTextInput(e),this.previouslyFocusedTextInput=null},100):(a.TextInput.State.focusTextInput(e),this.previouslyFocusedTextInput=null))})}componentWillUnmount(){this.clearKeyboardTimeout()}render(){return this.props.children({onPageChangeStart:this.handlePageChangeStart,onPageChangeConfirm:this.handlePageChangeConfirm,onPageChangeCancel:this.handlePageChangeCancel})}}function tt(){return(tt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function rt(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function nt(e){let{tintColor:t,style:r}=e,n=rt(e,["tintColor","style"]);const{colors:i}=Object(A.a)();return o.createElement(a.Animated.Text,tt({accessibilityRole:"header",numberOfLines:1},n,{style:[ot.title,{color:void 0===t?i.text:t},r]}))}const ot=a.StyleSheet.create({title:a.Platform.select({ios:{fontSize:17,fontWeight:"600"},android:{fontSize:20,fontFamily:"sans-serif-medium",fontWeight:"normal"},default:{fontSize:18,fontWeight:"500"}})});function at(){return(at=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function it(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 st(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?it(Object(r),!0).forEach((function(t){ct(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):it(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ct(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var lt=o.memo((function(e){const{scene:t,previous:r,layout:n,insets:a,navigation:s,styleInterpolator:c}=e,{options:l}=t.descriptor,u="function"!=typeof l.headerTitle&&void 0!==l.headerTitle?l.headerTitle:void 0!==l.title?l.title:t.route.name;let d;if(void 0!==l.headerBackTitle)d=l.headerBackTitle;else if(r){const e=r.descriptor.options;d="function"!=typeof e.headerTitle&&void 0!==e.headerTitle?e.headerTitle:void 0!==e.title?e.title:r.route.name}const p=o.useCallback(function(e,t){let r;return function(...n){r||(e.apply(this,n),r=setTimeout(()=>{r=void 0},t))}}(()=>{s.isFocused()&&s.canGoBack()&&s.dispatch(st(st({},i.StackActions.pop()),{},{source:t.route.key}))},50),[s,t.route.key]);return o.createElement(Y,at({},l,{insets:a,layout:n,scene:t,title:u,leftLabel:d,headerTitle:"function"!=typeof l.headerTitle?e=>o.createElement(nt,e):l.headerTitle,onGoBack:r?p:void 0,styleInterpolator:c}))}));function ut({mode:e,scenes:t,layout:r,insets:n,getPreviousScene:s,getFocusedRoute:c,onContentHeightChange:l,gestureDirection:u,styleInterpolator:d,style:p}){const f=c(),h=o.useContext(ge),g=o.useContext(ye);return o.createElement(a.View,{pointerEvents:"box-none",style:p},t.slice(-3).map((t,c,p)=>{var y;if("screen"===e&&c!==p.length-1||!t)return null;const{header:b,headerShown:m=!1===h,headerTransparent:v}=t.descriptor.options||{};if(!m)return null;const O=f.key===t.route.key,w=null!==(y=s({route:t.route}))&&void 0!==y?y:g,k=p[c-1],S=p[c+1],{headerShown:j=!1===h}=(null==k?void 0:k.descriptor.options)||{},{headerShown:P=!1===h}=(null==S?void 0:S.descriptor.options)||{},E=!1===j&&!S||!1===P,x={mode:e,layout:r,insets:n,scene:t,previous:w,navigation:t.descriptor.navigation,styleInterpolator:"float"===e?E?"vertical"===u||"vertical-inverted"===u?Ie:"horizontal-inverted"===u?Ae:Re:d:Te};return o.createElement(i.NavigationContext.Provider,{key:t.route.key,value:t.descriptor.navigation},o.createElement(i.NavigationRouteContext.Provider,{value:t.route},o.createElement(a.View,{onLayout:l?e=>l({route:t.route,height:e.nativeEvent.layout.height}):void 0,pointerEvents:O?"box-none":"none",accessibilityElementsHidden:!O,importantForAccessibility:O?"auto":"no-hide-descendants",style:"float"===e&&!O||v?dt.header:null},void 0!==b?b(x):o.createElement(lt,x))))}))}const dt=a.StyleSheet.create({header:{position:"absolute",top:0,left:0,right:0}});function pt(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 ft(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ht=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?pt(Object(r),!0).forEach((function(t){ft(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({top:(gt=!0,a.Platform.select({ios:(yt=gt?44:30,bt=20,Oe()?yt:bt),android:a.StatusBar.currentHeight,default:0})),bottom:Oe()?34:0,right:0,left:0},null);var gt,yt,bt;function mt({children:e}){return o.createElement(b,null,t=>t?e:o.createElement(g,{initialSafeAreaInsets:ht},e))}function vt(){return(vt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function Ot(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function wt(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 kt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?wt(Object(r),!0).forEach((function(t){St(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function St(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const jt=null!=v?v:a.View;class Pt extends o.Component{constructor(...e){super(...e),St(this,"state",{routes:[],previousRoutes:[],previousDescriptors:{},openingRouteKeys:[],closingRouteKeys:[],replacingRouteKeys:[],descriptors:{}}),St(this,"getGesturesEnabled",({route:e})=>{const t=this.state.descriptors[e.key];if(t){const{gestureEnabled:e,animationEnabled:r}=t.options;return!1!==r&&!1!==e}return!1}),St(this,"getPreviousRoute",({route:e})=>{const{closingRouteKeys:t,replacingRouteKeys:r}=this.state,n=this.state.routes.filter(n=>n.key===e.key||!t.includes(n.key)&&!r.includes(n.key)),o=n.findIndex(t=>t.key===e.key);return n[o-1]}),St(this,"renderScene",({route:e})=>{const t=this.state.descriptors[e.key]||this.props.descriptors[e.key];return t?t.render():null}),St(this,"renderHeader",e=>o.createElement(ut,e)),St(this,"handleOpenRoute",({route:e})=>{const{state:t,navigation:r}=this.props,{closingRouteKeys:n,replacingRouteKeys:o}=this.state;n.some(t=>t===e.key)&&o.every(t=>t!==e.key)&&t.routeNames.includes(e.name)&&!t.routes.some(t=>t.key===e.key)?r.navigate(e):this.setState(t=>({routes:t.replacingRouteKeys.length?t.routes.filter(e=>!t.replacingRouteKeys.includes(e.key)):t.routes,openingRouteKeys:t.openingRouteKeys.filter(t=>t!==e.key),closingRouteKeys:t.closingRouteKeys.filter(t=>t!==e.key),replacingRouteKeys:[]}))}),St(this,"handleCloseRoute",({route:e})=>{const{state:t,navigation:r}=this.props;t.routes.some(t=>t.key===e.key)?r.dispatch(kt(kt({},i.StackActions.pop()),{},{source:e.key,target:t.key})):this.setState(t=>({routes:t.routes.filter(t=>t.key!==e.key),openingRouteKeys:t.openingRouteKeys.filter(t=>t!==e.key),closingRouteKeys:t.closingRouteKeys.filter(t=>t!==e.key)}))}),St(this,"handleTransitionStart",({route:e},t)=>this.props.navigation.emit({type:"transitionStart",data:{closing:t},target:e.key})),St(this,"handleTransitionEnd",({route:e},t)=>this.props.navigation.emit({type:"transitionEnd",data:{closing:t},target:e.key})),St(this,"handleGestureStart",({route:e})=>{this.props.navigation.emit({type:"gestureStart",target:e.key})}),St(this,"handleGestureEnd",({route:e})=>{this.props.navigation.emit({type:"gestureEnd",target:e.key})}),St(this,"handleGestureCancel",({route:e})=>{this.props.navigation.emit({type:"gestureCancel",target:e.key})})}static getDerivedStateFromProps(e,t){if((e.state.routes===t.previousRoutes||(r=e.state.routes.map(e=>e.key),n=t.previousRoutes.map(e=>e.key),r.length===n.length&&r.every((e,t)=>e===n[t])))&&t.routes.length){let r=t.routes,n=t.previousRoutes,o=e.descriptors,a=t.previousDescriptors;if(e.descriptors!==t.previousDescriptors&&(o=t.routes.reduce((r,n)=>(r[n.key]=e.descriptors[n.key]||t.descriptors[n.key],r),{}),a=e.descriptors),e.state.routes!==t.previousRoutes){const o=e.state.routes.reduce((e,t)=>(e[t.key]=t,e),{});r=t.routes.map(e=>o[e.key]||e),n=e.state.routes}return{routes:r,previousRoutes:n,descriptors:o,previousDescriptors:a}}var r,n;let o=e.state.index<e.state.routes.length-1?e.state.routes.slice(0,e.state.index+1):e.state.routes,{openingRouteKeys:a,closingRouteKeys:i,replacingRouteKeys:s,previousRoutes:c}=t;const l=c[c.length-1],u=o[o.length-1],d=r=>{const n=e.descriptors[r]||t.descriptors[r];return!n||!1!==n.options.animationEnabled};var p,f;if(l&&l.key!==u.key?c.some(e=>e.key===u.key)?o.some(e=>e.key===l.key)||d(l.key)&&!i.includes(l.key)&&(i=[...i,l.key],a=a.filter(e=>e!==l.key),s=s.filter(e=>e!==l.key),o=[...o,l]):d(u.key)&&!a.includes(u.key)&&(a=[...a,u.key],i=i.filter(e=>e!==u.key),s=s.filter(e=>e!==u.key),o.some(e=>e.key===l.key)||(a=a.filter(e=>e!==l.key),"pop"===(p=u.key,null!==(f=(e.descriptors[p]||t.descriptors[p]).options.animationTypeForReplace)&&void 0!==f?f:"push")?(i=[...i,l.key],a=a.filter(e=>e!==u.key),o=[...o,l]):(s=[...s,l.key],i=i.filter(e=>e!==l.key),o=o.slice(),o.splice(o.length-1,0,l)))):(s.length||i.length)&&(o=o.slice(),o.splice(o.length-1,0,...t.routes.filter(({key:e})=>!!d(e)&&(s.includes(e)||i.includes(e))))),!o.length)throw new Error("There should always be at least one route in the navigation state.");const h=o.reduce((r,n)=>(r[n.key]=e.descriptors[n.key]||t.descriptors[n.key],r),{});return{routes:o,previousRoutes:e.state.routes,previousDescriptors:e.descriptors,openingRouteKeys:a,closingRouteKeys:i,replacingRouteKeys:s,descriptors:h}}render(){const e=this.props,{state:t,navigation:r,keyboardHandlingEnabled:n,mode:s="card",headerMode:c=("card"===s&&"ios"===a.Platform.OS?"float":"screen"),descriptors:l}=e,u=Ot(e,["state","navigation","keyboardHandlingEnabled","mode","headerMode","descriptors"]),{routes:d,descriptors:p,openingRouteKeys:f,closingRouteKeys:h}=this.state;return o.createElement(i.NavigationHelpersContext.Provider,{value:r},o.createElement(jt,{style:Et.container},o.createElement(mt,null,o.createElement(b,null,e=>o.createElement(et,{enabled:!1!==n},r=>o.createElement(Xe,vt({mode:s,insets:e,getPreviousRoute:this.getPreviousRoute,getGesturesEnabled:this.getGesturesEnabled,routes:d,openingRouteKeys:f,closingRouteKeys:h,onOpenRoute:this.handleOpenRoute,onCloseRoute:this.handleCloseRoute,onTransitionStart:this.handleTransitionStart,onTransitionEnd:this.handleTransitionEnd,renderHeader:this.renderHeader,renderScene:this.renderScene,headerMode:c,state:t,descriptors:p,onGestureStart:this.handleGestureStart,onGestureEnd:this.handleGestureEnd,onGestureCancel:this.handleGestureCancel},u,r)))))))}}const Et=a.StyleSheet.create({container:{flex:1}});function xt(){return(xt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function Ct(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 Rt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ct(Object(r),!0).forEach((function(t){At(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ct(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function At(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function It(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Tt=Object(i.createNavigatorFactory)((function(e){let{initialRouteName:t,children:r,screenOptions:n}=e,s=It(e,["initialRouteName","children","screenOptions"]);const c={gestureEnabled:"ios"===a.Platform.OS,animationEnabled:"web"!==a.Platform.OS&&"windows"!==a.Platform.OS&&"macos"!==a.Platform.OS},{state:l,descriptors:u,navigation:d}=Object(i.useNavigationBuilder)(i.StackRouter,{initialRouteName:t,children:r,screenOptions:"function"==typeof n?(...e)=>Rt(Rt({},c),n(...e)):Rt(Rt({},c),n)});return o.useEffect(()=>d.addListener&&d.addListener("tabPress",e=>{const t=d.isFocused();requestAnimationFrame(()=>{l.index>0&&t&&!e.defaultPrevented&&d.dispatch(Rt(Rt({},i.StackActions.popToTop()),{},{target:l.key}))})}),[d,l.index,l.key]),o.createElement(Pt,xt({},s,{state:l,descriptors:u,navigation:d}))}))}])})); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment